diff --git a/cmd/sdk_gen/python.go b/cmd/sdk_gen/python.go index 9dc5e85..18ccbb2 100644 --- a/cmd/sdk_gen/python.go +++ b/cmd/sdk_gen/python.go @@ -15,6 +15,9 @@ const pythonAPIHeader = `import requests # # Requires the requests library to be installed. # python -m pip install requests +# +# For the structure of "snd types" check the following files in the root of the repository: +# data_source.go, entry.go, generator.go, settings.go, template.go class SndAPI: @@ -45,9 +48,13 @@ class SndAPI: ` func pythonArgType(argType string) string { - slice := strings.HasSuffix(argType, "[]") + if strings.HasPrefix(argType, "map") { + return "dict" + } + + slice := strings.HasPrefix(argType, "[]") if slice { - argType = argType[:len(argType)-2] + argType = strings.TrimPrefix(argType, "[]") } typeName := "" @@ -60,10 +67,14 @@ func pythonArgType(argType string) string { typeName = "float" case "bool": typeName = "bool" - case "interface{}": + case "interface {}": typeName = "dict" default: - typeName = strings.Replace(argType, "snd.", "", -1) + if strings.HasPrefix(argType, "snd.") { + typeName = fmt.Sprintf("dict [snd type %s]", strcase.ToSnake(strings.Replace(argType, "snd.", "", -1))) + } else { + typeName = argType + } } if slice { diff --git a/sdk/python/snd_sdk.py b/sdk/python/snd_sdk.py index 299380c..0ab21b1 100644 --- a/sdk/python/snd_sdk.py +++ b/sdk/python/snd_sdk.py @@ -6,6 +6,9 @@ # # Requires the requests library to be installed. # python -m pip install requests +# +# For the structure of "snd types" check the following files in the root of the repository: +# data_source.go, entry.go, generator.go, settings.go, template.go class SndAPI: @@ -34,67 +37,64 @@ def _make_request(self, endpoint, method='GET', params=None): else: response.raise_for_status() - def sync_start(self, arg0, arg1): + def get_settings(self, ): """ - Perform an action using the syncStart API endpoint. + Perform an action using the getSettings API endpoint. Parameters: - - arg0 (str): parameter - - arg1 (str): parameter + """ - endpoint = "api/syncStart" - return self._make_request(endpoint, method='POST', params=[arg0, arg1]) + endpoint = "api/getSettings" + return self._make_request(endpoint, method='POST', params=[]) - def imports_template_json(self, arg0): + def imports_source_csv(self, arg0): """ - Perform an action using the importsTemplateJSON API endpoint. + Perform an action using the importsSourceCSV API endpoint. Parameters: - - arg0 ([]interface {}): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/importsTemplateJSON" + endpoint = "api/importsSourceCSV" return self._make_request(endpoint, method='POST', params=[arg0]) - def import_generator_url(self, arg0): + def get_printer(self, ): """ - Perform an action using the importGeneratorUrl API endpoint. + Perform an action using the getPrinter API endpoint. Parameters: - - arg0 (str): parameter + """ - endpoint = "api/importGeneratorUrl" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/getPrinter" + return self._make_request(endpoint, method='POST', params=[]) - def imports_source_fight_club_5e(self, arg0): + def get_version(self, ): """ - Perform an action using the importsSourceFightClub5e API endpoint. + Perform an action using the getVersion API endpoint. Parameters: - - arg0 ([]interface {}): parameter + """ - endpoint = "api/importsSourceFightClub5e" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/getVersion" + return self._make_request(endpoint, method='POST', params=[]) - def ai_cached(self, arg0, arg1, arg2): + def fetch_image(self, arg0): """ - Perform an action using the aiCached API endpoint. + Perform an action using the fetchImage API endpoint. Parameters: - arg0 (str): parameter - - arg1 (str): parameter - - arg2 (str): parameter """ - endpoint = "api/aiCached" - return self._make_request(endpoint, method='POST', params=[arg0, arg1, arg2]) + endpoint = "api/fetchImage" + return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_template(self, ): + def get_templates(self, ): """ - Perform an action using the importsTemplate API endpoint. + Perform an action using the getTemplates API endpoint. Parameters: """ - endpoint = "api/importsTemplate" + endpoint = "api/getTemplates" return self._make_request(endpoint, method='POST', params=[]) def exports_generator_zip(self, arg0, arg1): @@ -103,380 +103,381 @@ def exports_generator_zip(self, arg0, arg1): Parameters: - arg0 (str): parameter - - arg1 ([]interface {}): parameter + - arg1 (list of dict): parameter """ endpoint = "api/exportsGeneratorZIP" return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def get_repo(self, arg0): + def count_entries(self, arg0): """ - Perform an action using the getRepo API endpoint. + Perform an action using the countEntries API endpoint. Parameters: - arg0 (str): parameter """ - endpoint = "api/getRepo" + endpoint = "api/countEntries" return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_source_5e_tools_folder(self, arg0): + def sync_start(self, arg0, arg1): """ - Perform an action using the importsSource5eToolsFolder API endpoint. + Perform an action using the syncStart API endpoint. Parameters: - - arg0 ([]interface {}): parameter + - arg0 (str): parameter + - arg1 (str): parameter """ - endpoint = "api/importsSource5eToolsFolder" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/syncStart" + return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def get_printer(self, ): + def ai_providers(self, ): """ - Perform an action using the getPrinter API endpoint. + Perform an action using the aiProviders API endpoint. Parameters: """ - endpoint = "api/getPrinter" + endpoint = "api/aiProviders" return self._make_request(endpoint, method='POST', params=[]) - def get_available_printer(self, ): + def ai_models(self, arg0): """ - Perform an action using the getAvailablePrinter API endpoint. + Perform an action using the aiModels API endpoint. Parameters: - + - arg0 (str): parameter """ - endpoint = "api/getAvailablePrinter" - return self._make_request(endpoint, method='POST', params=[]) + endpoint = "api/aiModels" + return self._make_request(endpoint, method='POST', params=[arg0]) - def sync_active(self, arg0): + def save_template(self, arg0): """ - Perform an action using the syncActive API endpoint. + Perform an action using the saveTemplate API endpoint. Parameters: - - arg0 (str): parameter + - arg0 (dict [snd type template]): parameter """ - endpoint = "api/syncActive" + endpoint = "api/saveTemplate" return self._make_request(endpoint, method='POST', params=[arg0]) - def sync_stop(self, arg0): + def get_available_printer(self, ): """ - Perform an action using the syncStop API endpoint. + Perform an action using the getAvailablePrinter API endpoint. Parameters: - - arg0 (str): parameter + """ - endpoint = "api/syncStop" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/getAvailablePrinter" + return self._make_request(endpoint, method='POST', params=[]) - def imports_generator_json(self, arg0): + def exports_template(self, ): """ - Perform an action using the importsGeneratorJSON API endpoint. + Perform an action using the exportsTemplate API endpoint. Parameters: - - arg0 ([]interface {}): parameter + """ - endpoint = "api/importsGeneratorJSON" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/exportsTemplate" + return self._make_request(endpoint, method='POST', params=[]) - def delete_entries(self, arg0): + def save_generator(self, arg0): """ - Perform an action using the deleteEntries API endpoint. + Perform an action using the saveGenerator API endpoint. Parameters: - - arg0 (str): parameter + - arg0 (dict [snd type generator]): parameter """ - endpoint = "api/deleteEntries" + endpoint = "api/saveGenerator" return self._make_request(endpoint, method='POST', params=[arg0]) - def exports_source_zip(self, arg0, arg1): + def get_generators(self, ): """ - Perform an action using the exportsSourceZIP API endpoint. + Perform an action using the getGenerators API endpoint. Parameters: - - arg0 (str): parameter - - arg1 ([]interface {}): parameter + """ - endpoint = "api/exportsSourceZIP" - return self._make_request(endpoint, method='POST', params=[arg0, arg1]) + endpoint = "api/getGenerators" + return self._make_request(endpoint, method='POST', params=[]) - def import_package(self, arg0, arg1, arg2): + def save_entry(self, arg0, arg1): """ - Perform an action using the importPackage API endpoint. + Perform an action using the saveEntry API endpoint. Parameters: - arg0 (str): parameter - - arg1 (map[string]interface {}): parameter - - arg2 (str): parameter + - arg1 (dict [snd type entry]): parameter """ - endpoint = "api/importPackage" - return self._make_request(endpoint, method='POST', params=[arg0, arg1, arg2]) + endpoint = "api/saveEntry" + return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def ai_models(self, arg0): + def imports_template_json(self, arg0): """ - Perform an action using the aiModels API endpoint. + Perform an action using the importsTemplateJSON API endpoint. Parameters: - - arg0 (str): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/aiModels" + endpoint = "api/importsTemplateJSON" return self._make_request(endpoint, method='POST', params=[arg0]) - def print(self, arg0): + def copy_entries(self, arg0, arg1): """ - Perform an action using the print API endpoint. + Perform an action using the copyEntries API endpoint. Parameters: - arg0 (str): parameter + - arg1 (str): parameter """ - endpoint = "api/print" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/copyEntries" + return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def get_version(self, ): + def get_sources(self, ): """ - Perform an action using the getVersion API endpoint. + Perform an action using the getSources API endpoint. Parameters: """ - endpoint = "api/getVersion" + endpoint = "api/getSources" return self._make_request(endpoint, method='POST', params=[]) - def delete_generator(self, arg0): + def exports_source_folder(self, arg0, arg1): """ - Perform an action using the deleteGenerator API endpoint. + Perform an action using the exportsSourceFolder API endpoint. Parameters: - arg0 (str): parameter + - arg1 (list of dict): parameter """ - endpoint = "api/deleteGenerator" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/exportsSourceFolder" + return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def save_entry(self, arg0, arg1): + def exports_source_zip(self, arg0, arg1): """ - Perform an action using the saveEntry API endpoint. + Perform an action using the exportsSourceZIP API endpoint. Parameters: - arg0 (str): parameter - - arg1 (Entry): parameter + - arg1 (list of dict): parameter """ - endpoint = "api/saveEntry" + endpoint = "api/exportsSourceZIP" return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def sync_cloud_to_local(self, ): - """ - Perform an action using the syncCloudToLocal API endpoint. - - Parameters: - - """ - endpoint = "api/syncCloudToLocal" - return self._make_request(endpoint, method='POST', params=[]) - - def get_templates(self, ): + def imports_source_5e_tools_folder(self, arg0): """ - Perform an action using the getTemplates API endpoint. + Perform an action using the importsSource5eToolsFolder API endpoint. Parameters: - + - arg0 (list of dict): parameter """ - endpoint = "api/getTemplates" - return self._make_request(endpoint, method='POST', params=[]) + endpoint = "api/importsSource5eToolsFolder" + return self._make_request(endpoint, method='POST', params=[arg0]) - def exports_template_zip(self, arg0, arg1): + def exports_template_folder(self, arg0, arg1): """ - Perform an action using the exportsTemplateZIP API endpoint. + Perform an action using the exportsTemplateFolder API endpoint. Parameters: - arg0 (str): parameter - - arg1 ([]interface {}): parameter + - arg1 (list of dict): parameter """ - endpoint = "api/exportsTemplateZIP" + endpoint = "api/exportsTemplateFolder" return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def screenshot(self, arg0, arg1): + def imports_template(self, ): """ - Perform an action using the screenshot API endpoint. + Perform an action using the importsTemplate API endpoint. Parameters: - - arg0 (str): parameter - - arg1 (str): parameter + """ - endpoint = "api/screenshot" - return self._make_request(endpoint, method='POST', params=[arg0, arg1]) + endpoint = "api/importsTemplate" + return self._make_request(endpoint, method='POST', params=[]) - def get_template(self, arg0): + def imports_generator_url(self, arg0): """ - Perform an action using the getTemplate API endpoint. + Perform an action using the importsGeneratorURL API endpoint. Parameters: - - arg0 (str): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/getTemplate" + endpoint = "api/importsGeneratorURL" return self._make_request(endpoint, method='POST', params=[arg0]) - def count_entries(self, arg0): + def delete_source(self, arg0): """ - Perform an action using the countEntries API endpoint. + Perform an action using the deleteSource API endpoint. Parameters: - arg0 (str): parameter """ - endpoint = "api/countEntries" + endpoint = "api/deleteSource" return self._make_request(endpoint, method='POST', params=[arg0]) - def get_files(self, arg0, arg1, arg2): + def ai_cached(self, arg0, arg1, arg2): """ - Perform an action using the getFiles API endpoint. + Perform an action using the aiCached API endpoint. Parameters: - arg0 (str): parameter - - arg1 ([]string): parameter - - arg2 (bool): parameter + - arg1 (str): parameter + - arg2 (str): parameter """ - endpoint = "api/getFiles" + endpoint = "api/aiCached" return self._make_request(endpoint, method='POST', params=[arg0, arg1, arg2]) - def exports_generator_folder(self, arg0, arg1): + def save_settings(self, arg0): """ - Perform an action using the exportsGeneratorFolder API endpoint. + Perform an action using the saveSettings API endpoint. Parameters: - - arg0 (str): parameter - - arg1 ([]interface {}): parameter + - arg0 (dict [snd type settings]): parameter """ - endpoint = "api/exportsGeneratorFolder" - return self._make_request(endpoint, method='POST', params=[arg0, arg1]) + endpoint = "api/saveSettings" + return self._make_request(endpoint, method='POST', params=[arg0]) - def delete_entry(self, arg0, arg1): + def delete_template(self, arg0): """ - Perform an action using the deleteEntry API endpoint. + Perform an action using the deleteTemplate API endpoint. Parameters: - arg0 (str): parameter - - arg1 (str): parameter """ - endpoint = "api/deleteEntry" - return self._make_request(endpoint, method='POST', params=[arg0, arg1]) + endpoint = "api/deleteTemplate" + return self._make_request(endpoint, method='POST', params=[arg0]) - def export_source_json(self, arg0): + def get_template(self, arg0): """ - Perform an action using the exportSourceJSON API endpoint. + Perform an action using the getTemplate API endpoint. Parameters: - arg0 (str): parameter """ - endpoint = "api/exportSourceJSON" + endpoint = "api/getTemplate" return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_source_csv(self, arg0): + def imports_generator_zip(self, arg0): """ - Perform an action using the importsSourceCSV API endpoint. + Perform an action using the importsGeneratorZIP API endpoint. Parameters: - - arg0 ([]interface {}): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/importsSourceCSV" + endpoint = "api/importsGeneratorZIP" return self._make_request(endpoint, method='POST', params=[arg0]) - def get_public_packages(self, ): + def save_source(self, arg0): """ - Perform an action using the getPublicPackages API endpoint. + Perform an action using the saveSource API endpoint. Parameters: + - arg0 (dict [snd type data_source]): parameter + """ + endpoint = "api/saveSource" + return self._make_request(endpoint, method='POST', params=[arg0]) + def imports_source_zip(self, arg0): """ - endpoint = "api/getPublicPackages" - return self._make_request(endpoint, method='POST', params=[]) + Perform an action using the importsSourceZIP API endpoint. - def get_settings(self, ): + Parameters: + - arg0 (list of dict): parameter """ - Perform an action using the getSettings API endpoint. + endpoint = "api/importsSourceZIP" + return self._make_request(endpoint, method='POST', params=[arg0]) + + def imports_generator(self, ): + """ + Perform an action using the importsGenerator API endpoint. Parameters: """ - endpoint = "api/getSettings" + endpoint = "api/importsGenerator" return self._make_request(endpoint, method='POST', params=[]) - def save_template(self, arg0): + def export_source_json(self, arg0): """ - Perform an action using the saveTemplate API endpoint. + Perform an action using the exportSourceJSON API endpoint. Parameters: - - arg0 (Template): parameter + - arg0 (str): parameter """ - endpoint = "api/saveTemplate" + endpoint = "api/exportSourceJSON" return self._make_request(endpoint, method='POST', params=[arg0]) - def get_generators(self, ): + def imports_source(self, ): """ - Perform an action using the getGenerators API endpoint. + Perform an action using the importsSource API endpoint. Parameters: """ - endpoint = "api/getGenerators" + endpoint = "api/importsSource" return self._make_request(endpoint, method='POST', params=[]) - def import_generator_json(self, arg0): + def imports_source_5e_tools_single_file(self, arg0): """ - Perform an action using the importGeneratorJSON API endpoint. + Perform an action using the importsSource5eToolsSingleFile API endpoint. Parameters: - - arg0 (str): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/importGeneratorJSON" + endpoint = "api/importsSource5eToolsSingleFile" return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_generator(self, ): + def sync_local_to_cloud(self, ): """ - Perform an action using the importsGenerator API endpoint. + Perform an action using the syncLocalToCloud API endpoint. Parameters: """ - endpoint = "api/importsGenerator" + endpoint = "api/syncLocalToCloud" return self._make_request(endpoint, method='POST', params=[]) - def delete_template(self, arg0): + def import_generator_json(self, arg0): """ - Perform an action using the deleteTemplate API endpoint. + Perform an action using the importGeneratorJSON API endpoint. Parameters: - arg0 (str): parameter """ - endpoint = "api/deleteTemplate" + endpoint = "api/importGeneratorJSON" return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_template_folder(self, arg0): + def delete_entry(self, arg0, arg1): """ - Perform an action using the importsTemplateFolder API endpoint. + Perform an action using the deleteEntry API endpoint. Parameters: - - arg0 ([]interface {}): parameter + - arg0 (str): parameter + - arg1 (str): parameter """ - endpoint = "api/importsTemplateFolder" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/deleteEntry" + return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def save_generator(self, arg0): + def imports_source_json(self, arg0): """ - Perform an action using the saveGenerator API endpoint. + Perform an action using the importsSourceJSON API endpoint. Parameters: - - arg0 (Generator): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/saveGenerator" + endpoint = "api/importsSourceJSON" return self._make_request(endpoint, method='POST', params=[arg0]) - def ai_providers(self, ): + def get_files(self, arg0, arg1, arg2): """ - Perform an action using the aiProviders API endpoint. + Perform an action using the getFiles API endpoint. Parameters: - + - arg0 (str): parameter + - arg1 (list of str): parameter + - arg2 (bool): parameter """ - endpoint = "api/aiProviders" - return self._make_request(endpoint, method='POST', params=[]) + endpoint = "api/getFiles" + return self._make_request(endpoint, method='POST', params=[arg0, arg1, arg2]) def new_version(self, ): """ @@ -488,106 +489,141 @@ def new_version(self, ): endpoint = "api/newVersion" return self._make_request(endpoint, method='POST', params=[]) - def copy_entries(self, arg0, arg1): + def imports_generator_folder(self, arg0): """ - Perform an action using the copyEntries API endpoint. + Perform an action using the importsGeneratorFolder API endpoint. Parameters: - - arg0 (str): parameter - - arg1 (str): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/copyEntries" - return self._make_request(endpoint, method='POST', params=[arg0, arg1]) + endpoint = "api/importsGeneratorFolder" + return self._make_request(endpoint, method='POST', params=[arg0]) - def delete_source(self, arg0): + def imports_generator_json(self, arg0): """ - Perform an action using the deleteSource API endpoint. + Perform an action using the importsGeneratorJSON API endpoint. + + Parameters: + - arg0 (list of dict): parameter + """ + endpoint = "api/importsGeneratorJSON" + return self._make_request(endpoint, method='POST', params=[arg0]) + + def delete_entries(self, arg0): + """ + Perform an action using the deleteEntries API endpoint. Parameters: - arg0 (str): parameter """ - endpoint = "api/deleteSource" + endpoint = "api/deleteEntries" return self._make_request(endpoint, method='POST', params=[arg0]) - def save_settings(self, arg0): + def imports_source_foundry_vtt(self, arg0): """ - Perform an action using the saveSettings API endpoint. + Perform an action using the importsSourceFoundryVTT API endpoint. Parameters: - - arg0 (Settings): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/saveSettings" + endpoint = "api/importsSourceFoundryVTT" return self._make_request(endpoint, method='POST', params=[arg0]) - def get_source(self, arg0): + def get_packages(self, arg0, arg1): """ - Perform an action using the getSource API endpoint. + Perform an action using the getPackages API endpoint. Parameters: - arg0 (str): parameter + - arg1 (dict): parameter """ - endpoint = "api/getSource" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/getPackages" + return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def get_default_directories(self, ): + def import_package(self, arg0, arg1, arg2): """ - Perform an action using the getDefaultDirectories API endpoint. + Perform an action using the importPackage API endpoint. Parameters: + - arg0 (str): parameter + - arg1 (dict): parameter + - arg2 (str): parameter + """ + endpoint = "api/importPackage" + return self._make_request(endpoint, method='POST', params=[arg0, arg1, arg2]) + def imports_template_folder(self, arg0): """ - endpoint = "api/getDefaultDirectories" - return self._make_request(endpoint, method='POST', params=[]) + Perform an action using the importsTemplateFolder API endpoint. - def save_source(self, arg0): + Parameters: + - arg0 (list of dict): parameter """ - Perform an action using the saveSource API endpoint. + endpoint = "api/importsTemplateFolder" + return self._make_request(endpoint, method='POST', params=[arg0]) + + def get_entries_with_sources(self, arg0): + """ + Perform an action using the getEntriesWithSources API endpoint. Parameters: - - arg0 (DataSource): parameter + - arg0 (str): parameter """ - endpoint = "api/saveSource" + endpoint = "api/getEntriesWithSources" return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_source(self, ): + def ai_prompt(self, arg0, arg1, arg2): """ - Perform an action using the importsSource API endpoint. + Perform an action using the aiPrompt API endpoint. Parameters: + - arg0 (str): parameter + - arg1 (str): parameter + - arg2 (str): parameter + """ + endpoint = "api/aiPrompt" + return self._make_request(endpoint, method='POST', params=[arg0, arg1, arg2]) + def get_default_directories(self, ): """ - endpoint = "api/importsSource" + Perform an action using the getDefaultDirectories API endpoint. + + Parameters: + + """ + endpoint = "api/getDefaultDirectories" return self._make_request(endpoint, method='POST', params=[]) - def imports_source_zip(self, arg0): + def imports_template_zip(self, arg0): """ - Perform an action using the importsSourceZIP API endpoint. + Perform an action using the importsTemplateZIP API endpoint. Parameters: - - arg0 ([]interface {}): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/importsSourceZIP" + endpoint = "api/importsTemplateZIP" return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_source_foundry_vtt(self, arg0): + def exports_generator(self, ): """ - Perform an action using the importsSourceFoundryVTT API endpoint. + Perform an action using the exportsGenerator API endpoint. Parameters: - - arg0 ([]interface {}): parameter + """ - endpoint = "api/importsSourceFoundryVTT" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/exportsGenerator" + return self._make_request(endpoint, method='POST', params=[]) - def get_entries(self, arg0): + def exports_generator_folder(self, arg0, arg1): """ - Perform an action using the getEntries API endpoint. + Perform an action using the exportsGeneratorFolder API endpoint. Parameters: - arg0 (str): parameter + - arg1 (list of dict): parameter """ - endpoint = "api/getEntries" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/exportsGeneratorFolder" + return self._make_request(endpoint, method='POST', params=[arg0, arg1]) def get_entry(self, arg0, arg1): """ @@ -600,138 +636,115 @@ def get_entry(self, arg0, arg1): endpoint = "api/getEntry" return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def get_entries_with_sources(self, arg0): + def print(self, arg0): """ - Perform an action using the getEntriesWithSources API endpoint. + Perform an action using the print API endpoint. Parameters: - arg0 (str): parameter """ - endpoint = "api/getEntriesWithSources" - return self._make_request(endpoint, method='POST', params=[arg0]) - - def imports_source_folder(self, arg0): - """ - Perform an action using the importsSourceFolder API endpoint. - - Parameters: - - arg0 ([]interface {}): parameter - """ - endpoint = "api/importsSourceFolder" + endpoint = "api/print" return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_source_5e_tools_single_file(self, arg0): + def sync_stop(self, arg0): """ - Perform an action using the importsSource5eToolsSingleFile API endpoint. + Perform an action using the syncStop API endpoint. Parameters: - - arg0 ([]interface {}): parameter + - arg0 (str): parameter """ - endpoint = "api/importsSource5eToolsSingleFile" + endpoint = "api/syncStop" return self._make_request(endpoint, method='POST', params=[arg0]) - def exports_template(self, ): + def get_public_packages(self, ): """ - Perform an action using the exportsTemplate API endpoint. + Perform an action using the getPublicPackages API endpoint. Parameters: """ - endpoint = "api/exportsTemplate" + endpoint = "api/getPublicPackages" return self._make_request(endpoint, method='POST', params=[]) - def get_generator(self, arg0): + def delete_generator(self, arg0): """ - Perform an action using the getGenerator API endpoint. + Perform an action using the deleteGenerator API endpoint. Parameters: - arg0 (str): parameter """ - endpoint = "api/getGenerator" + endpoint = "api/deleteGenerator" return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_generator_folder(self, arg0): + def import_generator_url(self, arg0): """ - Perform an action using the importsGeneratorFolder API endpoint. + Perform an action using the importGeneratorUrl API endpoint. Parameters: - - arg0 ([]interface {}): parameter + - arg0 (str): parameter """ - endpoint = "api/importsGeneratorFolder" + endpoint = "api/importGeneratorUrl" return self._make_request(endpoint, method='POST', params=[arg0]) - def get_packages(self, arg0, arg1): + def get_entries(self, arg0): """ - Perform an action using the getPackages API endpoint. + Perform an action using the getEntries API endpoint. Parameters: - arg0 (str): parameter - - arg1 (map[string]interface {}): parameter """ - endpoint = "api/getPackages" - return self._make_request(endpoint, method='POST', params=[arg0, arg1]) + endpoint = "api/getEntries" + return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_template_zip(self, arg0): + def exports_source(self, ): """ - Perform an action using the importsTemplateZIP API endpoint. + Perform an action using the exportsSource API endpoint. Parameters: - - arg0 ([]interface {}): parameter + """ - endpoint = "api/importsTemplateZIP" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/exportsSource" + return self._make_request(endpoint, method='POST', params=[]) - def imports_generator_url(self, arg0): + def imports_source_fight_club_5e(self, arg0): """ - Perform an action using the importsGeneratorURL API endpoint. + Perform an action using the importsSourceFightClub5e API endpoint. Parameters: - - arg0 ([]interface {}): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/importsGeneratorURL" + endpoint = "api/importsSourceFightClub5e" return self._make_request(endpoint, method='POST', params=[arg0]) - def ai_prompt(self, arg0, arg1, arg2): + def sync_active(self, arg0): """ - Perform an action using the aiPrompt API endpoint. + Perform an action using the syncActive API endpoint. Parameters: - arg0 (str): parameter - - arg1 (str): parameter - - arg2 (str): parameter - """ - endpoint = "api/aiPrompt" - return self._make_request(endpoint, method='POST', params=[arg0, arg1, arg2]) - - def sync_local_to_cloud(self, ): - """ - Perform an action using the syncLocalToCloud API endpoint. - - Parameters: - """ - endpoint = "api/syncLocalToCloud" - return self._make_request(endpoint, method='POST', params=[]) + endpoint = "api/syncActive" + return self._make_request(endpoint, method='POST', params=[arg0]) - def exports_source(self, ): + def get_source(self, arg0): """ - Perform an action using the exportsSource API endpoint. + Perform an action using the getSource API endpoint. Parameters: - + - arg0 (str): parameter """ - endpoint = "api/exportsSource" - return self._make_request(endpoint, method='POST', params=[]) + endpoint = "api/getSource" + return self._make_request(endpoint, method='POST', params=[arg0]) - def exports_source_folder(self, arg0, arg1): + def screenshot(self, arg0, arg1): """ - Perform an action using the exportsSourceFolder API endpoint. + Perform an action using the screenshot API endpoint. Parameters: - arg0 (str): parameter - - arg1 ([]interface {}): parameter + - arg1 (str): parameter """ - endpoint = "api/exportsSourceFolder" + endpoint = "api/screenshot" return self._make_request(endpoint, method='POST', params=[arg0, arg1]) def preview_cache(self, arg0, arg1): @@ -745,73 +758,63 @@ def preview_cache(self, arg0, arg1): endpoint = "api/previewCache" return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def exports_generator(self, ): + def imports_template_url(self, arg0): """ - Perform an action using the exportsGenerator API endpoint. + Perform an action using the importsTemplateURL API endpoint. Parameters: - + - arg0 (list of dict): parameter """ - endpoint = "api/exportsGenerator" - return self._make_request(endpoint, method='POST', params=[]) + endpoint = "api/importsTemplateURL" + return self._make_request(endpoint, method='POST', params=[arg0]) - def imports_generator_zip(self, arg0): + def get_generator(self, arg0): """ - Perform an action using the importsGeneratorZIP API endpoint. + Perform an action using the getGenerator API endpoint. Parameters: - - arg0 ([]interface {}): parameter + - arg0 (str): parameter """ - endpoint = "api/importsGeneratorZIP" + endpoint = "api/getGenerator" return self._make_request(endpoint, method='POST', params=[arg0]) - def get_sources(self, ): + def sync_cloud_to_local(self, ): """ - Perform an action using the getSources API endpoint. + Perform an action using the syncCloudToLocal API endpoint. Parameters: """ - endpoint = "api/getSources" + endpoint = "api/syncCloudToLocal" return self._make_request(endpoint, method='POST', params=[]) - def imports_source_json(self, arg0): + def exports_template_zip(self, arg0, arg1): """ - Perform an action using the importsSourceJSON API endpoint. + Perform an action using the exportsTemplateZIP API endpoint. Parameters: - - arg0 ([]interface {}): parameter + - arg0 (str): parameter + - arg1 (list of dict): parameter """ - endpoint = "api/importsSourceJSON" - return self._make_request(endpoint, method='POST', params=[arg0]) + endpoint = "api/exportsTemplateZIP" + return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - def fetch_image(self, arg0): + def imports_source_folder(self, arg0): """ - Perform an action using the fetchImage API endpoint. + Perform an action using the importsSourceFolder API endpoint. Parameters: - - arg0 (str): parameter + - arg0 (list of dict): parameter """ - endpoint = "api/fetchImage" + endpoint = "api/importsSourceFolder" return self._make_request(endpoint, method='POST', params=[arg0]) - def exports_template_folder(self, arg0, arg1): + def get_repo(self, arg0): """ - Perform an action using the exportsTemplateFolder API endpoint. + Perform an action using the getRepo API endpoint. Parameters: - arg0 (str): parameter - - arg1 ([]interface {}): parameter """ - endpoint = "api/exportsTemplateFolder" - return self._make_request(endpoint, method='POST', params=[arg0, arg1]) - - def imports_template_url(self, arg0): - """ - Perform an action using the importsTemplateURL API endpoint. - - Parameters: - - arg0 ([]interface {}): parameter - """ - endpoint = "api/importsTemplateURL" + endpoint = "api/getRepo" return self._make_request(endpoint, method='POST', params=[arg0]) \ No newline at end of file