omnata-plugin-devkit 0.15.2__tar.gz → 0.15.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/PKG-INFO +1 -1
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/pyproject.toml +1 -1
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/integration_testing.py +134 -4
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/BACKFILL_CONNECTIONS.sql.jinja +2 -1
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/MIGRATE_CONNECTION_STATE.sql.jinja +5 -14
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/LICENSE +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/README.md +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/__init__.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/airbyte_wrapper.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/cli/__init__.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/development.ipynb +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/development_session.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/initialiser.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/API_LIMITS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/ASSIGN_OUTBOUND_TARGET_TYPE.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CHECK_CONNECTION_PROGRESS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/COMPLETE_CONNECTION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CONFIGURATION_FORM.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CONFIGURE_APIS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CONNECTION_FORM.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CONNECTION_TEST.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CONSTRUCT_FORM_OPTION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CREATE_BILLING_EVENTS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CREATE_GENERIC_SECRET_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CREATE_GENERIC_SECRET_OBJECT_FROM_EXISTING.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CREATE_NETWORK_RULE_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CREATE_NETWORK_RULE_OBJECT_FROM_EXISTING.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/CREATE_OAUTH_SECRET_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/DELETE_CONNECTION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/DROP_CONFIGURATION_DEFINITION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/DROP_INTEGRATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/DROP_NETWORK_RULES.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/DROP_SECRETS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/DROP_SPECIFICATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/FETCH_CONNECTIONS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/FETCH_CONNECTIONS_LEGACY.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/FETCH_SYNCS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/FETCH_SYNC_BRANCHES.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/GET_MISSING_APP_PRIVILEGES.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/INBOUND_LIST_STREAMS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/LIST_APP_SPECIFICATIONS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/LIST_STAGES.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/NETWORK_ADDRESSES.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/NGROK_POST_TUNNEL_FIELDS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/OUTBOUND_RECORD_VALIDATOR.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/PENDING_API_CONFIGURATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/POST_INSTALL_ACTIONS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/RENAME_CONNECTION_METHODS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/RETRIEVE_NETWORK_RULE_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/RETRIEVE_SECRETS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/RETRIEVE_SECRETS_UDF.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/SET_CONNECTION_OBJECTS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/SET_EAI_ACTIVE.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/SET_EAI_SPECIFICATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/SET_SI_SPECIFICATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/SYNC.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/TEST_CALLBACK.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/TEST_OAUTH_TOKEN_EXISTS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/TUNNEL_TEST.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/UPDATE_API_CONFIGURATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/UPDATE_GENERIC_SECRET_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/UPDATE_GENERIC_SECRET_OBJECT_OLD.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/UPDATE_NETWORK_RULE_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/jinja_templates/manifest.yml.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/native_app_packaging.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/plugin_registration.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/plugin_template/icon.svg +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/plugin_template/plugin.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/plugin_template/plugin_development.ipynb +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/plugin_template/requirements.txt +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/plugin_uploader.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/__init__.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/__init__.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/api/__init__.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/api/config.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/api/constants.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/api/exceptions.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/api/secure_path.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/api/secure_utils.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/api/utils/__init__.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/api/utils/types.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/app/__init__.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/app/snow_connector.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/plugins/__init__.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/__init__.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/models.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/package/__init__.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/package_utils.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/snowpark_shared.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/venv.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/zipper.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/snowcli/cli/templates/environment.yml.jinja +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/environment.yml +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/index-SCJFQcpn.css +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/index-xyaBmWMr.js +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-300-normal-D0x1uCa7.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-300-normal-DzUz0kzv.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-400-normal-BepgbcUK.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-400-normal-CBPI_iaY.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-500-normal-C8ZOEKN4.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-500-normal-CLao9AfR.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-700-normal-C2o7G-SM.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-700-normal-D8g9KsRf.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-300-normal-C0UYUNTV.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-300-normal-DIxttMbC.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-400-normal-DhDk0Xwi.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-400-normal-qHufge6k.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-500-normal-BWC_xYeb.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-500-normal-SCgicl0l.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-700-normal-BWOtdzfy.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-700-normal-DmFxo5wj.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-300-normal-DJEM9B4Z.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-300-normal-xS8CB6LN.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-400-normal-D904r64h.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-400-normal-ai2Z1K3C.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-500-normal-C9AnhcmC.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-500-normal-XBIQOowA.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-700-normal-0aHWxGLu.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-700-normal-xQsEWSIA.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-300-normal-CCzlftfr.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-300-normal-Dqn3NW0Y.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-400-normal-BqEyEoaF.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-400-normal-D27F5sTu.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-500-normal-7RbcRiD8.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-500-normal-fsTFPL3E.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-700-normal-BZpUvMxY.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-700-normal-YuyVweIx.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-300-normal-B0-sTZUp.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-300-normal-B90pq-BC.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-400-normal-C3tdtHj3.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-400-normal-CIveymTr.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-500-normal-C1cK9xmS.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-500-normal-pMCM9Ixg.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-700-normal-BDePAh3g.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-700-normal-DSBUz0N1.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-300-normal-5dF_7mZP.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-300-normal-CkwMvXpj.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-400-normal-BEFej5gc.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-400-normal-D6sS4O5l.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-500-normal-BNGXE_xU.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-500-normal-C4NU9gLX.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-700-normal-B8YqGHVc.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-700-normal-DbhUef31.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-300-normal-CBIeSvs3.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-300-normal-DDU7avhj.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-400-normal-C7tGlxgb.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-400-normal-CB1Ce4Gk.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-500-normal-B_CZKVJS.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-500-normal-DFnofPUt.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-700-normal-BiFDindJ.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-700-normal-C59U6HqI.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-300-normal-BPvXm_f1.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-300-normal-CYjuQheQ.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-400-normal-Bf76hAzZ.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-400-normal-D2PTxGxD.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-500-normal-B3ncpOoB.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-500-normal-BgoYVz-9.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-700-normal-BEVeWqJt.woff2 +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-700-normal-kpkdMgbf.woff +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/dist/index.html +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/index.html +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/package.json +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/pnpm-lock.yaml +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/pnpm-workspace.yaml +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/App.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/StreamlitBridge.ts +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Connections/ArchitectureDiagram.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Connections/ConnectionCard.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Connections/ConnectionMetrics.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Connections/ConnectionsList.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Connections/ParameterViewer.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/FontComponent/export.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/FontComponent/index.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Header.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/PluginInfo/PluginInfoTab.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/ProcsUdfs/ProcsUdfsTab.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/RegistrationWizard/InstallStep.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/RegistrationWizard/RegisterStep.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/RegistrationWizard/RoleGrantStep.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/RegistrationWizard/SqlCodeBlock.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/components/RegistrationWizard/WelcomeStep.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/main.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/themes.ts +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/types.ts +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/ColorPalette/ColorPaletteContextSelector.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/ColorPalette/DefaultColorPaletteItem.ts +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/ColorPalette/TagsColorPalette.ts +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/ScrollbarStyles.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/drawerStyles.ts +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/tabPanel.tsx +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/tsconfig.json +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/frontend/vite.config.ts +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/streamlit/plugin_configuration.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/test_step_definitions.py +0 -0
- {omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/utils.py +0 -0
|
@@ -20,6 +20,14 @@ default, so most tests never need to pass them:
|
|
|
20
20
|
- ``FORCE_RECREATE_CONNECTION`` - optional; ``true`` reapplies the stored credentials
|
|
21
21
|
to an existing connection (e.g. after they have been rotated).
|
|
22
22
|
|
|
23
|
+
For OAuth connection methods, ``ensure_connection`` creates the security integration,
|
|
24
|
+
OAuth secret and authorization configuration (endpoints/scopes from the plugin's OAuth
|
|
25
|
+
template; ``oauth_client_id`` / ``oauth_client_secret``, or ``client_id`` /
|
|
26
|
+
``client_secret``, from the stored credentials) and
|
|
27
|
+
approves the specifications. The authorization flow itself is interactive, so it then
|
|
28
|
+
raises ``OAuthFlowRequiredError`` linking to the app's setup page; complete the flow
|
|
29
|
+
there and re-run, which picks up the token and completes the connection.
|
|
30
|
+
|
|
23
31
|
Every helper that needs them accepts optional ``app_name`` / ``connection_slug``
|
|
24
32
|
keyword arguments that take precedence over the environment. The environment is read
|
|
25
33
|
at call time, not import time; a ``ValueError`` is raised if neither is supplied. Use
|
|
@@ -214,6 +222,11 @@ CONNECTION_SLUG_ENV_VAR = "CONNECTION_SLUG"
|
|
|
214
222
|
PLUGIN_ID_ENV_VAR = "PLUGIN_ID"
|
|
215
223
|
FORCE_RECREATE_ENV_VAR = "FORCE_RECREATE_CONNECTION"
|
|
216
224
|
DEV_CREDENTIALS_TABLE = "OMNATA_PLUGIN_TEST_DATA.COMMON.DEV_CREDENTIALS"
|
|
225
|
+
APP_SETUP_URL_TEMPLATE = "https://app.snowflake.com/omnata/dev/#/apps/application/{app_name}/setup"
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
class OAuthFlowRequiredError(RuntimeError):
|
|
229
|
+
"""Raised when a connection needs an interactive OAuth flow, which can't be automated."""
|
|
217
230
|
|
|
218
231
|
|
|
219
232
|
@pytest.fixture(scope="session")
|
|
@@ -288,14 +301,14 @@ def get_dev_credentials(
|
|
|
288
301
|
connection_slug = resolve_connection_slug(connection_slug)
|
|
289
302
|
rows = session.sql(
|
|
290
303
|
f"SELECT CONNECTION_METHOD, CONNECTION_PARAMETERS, CONNECTION_SECRETS "
|
|
291
|
-
f"FROM {DEV_CREDENTIALS_TABLE} WHERE PLUGIN_ID = ? AND CONNECTION_SLUG = ?",
|
|
304
|
+
f"FROM {DEV_CREDENTIALS_TABLE} WHERE UPPER(PLUGIN_ID) = UPPER(?) AND CONNECTION_SLUG = ?",
|
|
292
305
|
[plugin_id, connection_slug],
|
|
293
306
|
).collect()
|
|
294
307
|
if not rows:
|
|
295
308
|
available = [
|
|
296
309
|
r["CONNECTION_SLUG"]
|
|
297
310
|
for r in session.sql(
|
|
298
|
-
f"SELECT CONNECTION_SLUG FROM {DEV_CREDENTIALS_TABLE} WHERE PLUGIN_ID = ? ORDER BY 1",
|
|
311
|
+
f"SELECT CONNECTION_SLUG FROM {DEV_CREDENTIALS_TABLE} WHERE UPPER(PLUGIN_ID) = UPPER(?) ORDER BY 1",
|
|
299
312
|
[plugin_id],
|
|
300
313
|
).collect()
|
|
301
314
|
]
|
|
@@ -323,6 +336,83 @@ def get_dev_credentials(
|
|
|
323
336
|
}
|
|
324
337
|
|
|
325
338
|
|
|
339
|
+
def _call_app_proc(session: Session, app_name: str, proc: str, *args: Any) -> Dict[str, Any]:
|
|
340
|
+
placeholders = ", ".join("?" for _ in args)
|
|
341
|
+
res = session.sql(f"CALL {app_name}.PLUGIN.{proc}({placeholders})", list(args)).collect()
|
|
342
|
+
return _as_dict(res[0][proc])
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
def _get_oauth_template(
|
|
346
|
+
session: Session, app_name: str, connection_method: str, connectivity_option: str
|
|
347
|
+
) -> Optional[Dict[str, Any]]:
|
|
348
|
+
"""Return the OAuth template the plugin's connection form defines for the method, if any."""
|
|
349
|
+
try:
|
|
350
|
+
res_json = _call_app_proc(session, app_name, "CONNECTION_FORM", connectivity_option)
|
|
351
|
+
except Exception as e:
|
|
352
|
+
logger.warning("Failed to call PLUGIN.CONNECTION_FORM on %s: %s", app_name, e)
|
|
353
|
+
return None
|
|
354
|
+
if not res_json.get("success"):
|
|
355
|
+
logger.warning("PLUGIN.CONNECTION_FORM failed on %s: %s", app_name, res_json.get("error", res_json))
|
|
356
|
+
return None
|
|
357
|
+
for method in res_json.get("data") or []:
|
|
358
|
+
if isinstance(method, dict) and method.get("name") == connection_method:
|
|
359
|
+
return method.get("oauth_template")
|
|
360
|
+
return None
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
def _oauth_token_exists(session: Session, app_name: str, oauth_secret_name: str, eai_name: str) -> bool:
|
|
364
|
+
"""Return True if the OAuth secret exists and holds a token (i.e. the flow has been completed)."""
|
|
365
|
+
try:
|
|
366
|
+
res_json = _call_app_proc(
|
|
367
|
+
session, app_name, "TEST_OAUTH_TOKEN_EXISTS", f"DATA.{oauth_secret_name}", eai_name
|
|
368
|
+
)
|
|
369
|
+
except Exception as e:
|
|
370
|
+
logger.info("OAuth token check for %s failed (treating as no token): %s", oauth_secret_name, e)
|
|
371
|
+
return False
|
|
372
|
+
return bool(res_json.get("success") and res_json.get("data"))
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
OAUTH_PARAMETER_KEYS = (
|
|
376
|
+
"oauth_grant",
|
|
377
|
+
"oauth_token_endpoint",
|
|
378
|
+
"oauth_authorization_endpoint",
|
|
379
|
+
"oauth_allowed_scopes",
|
|
380
|
+
"oauth_client_id",
|
|
381
|
+
"oauth_client_secret",
|
|
382
|
+
"oauth_client_auth_method",
|
|
383
|
+
)
|
|
384
|
+
|
|
385
|
+
# Credential keys accepted in place of their oauth_-prefixed equivalents
|
|
386
|
+
OAUTH_PARAMETER_ALIASES = {"client_id": "oauth_client_id", "client_secret": "oauth_client_secret"}
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
def _build_oauth_parameters(
|
|
390
|
+
oauth_template: Dict[str, Any], overrides: Dict[str, Any], connection_slug: str
|
|
391
|
+
) -> Dict[str, Any]:
|
|
392
|
+
"""Build SET_CONNECTION_OBJECTS ``oauth_parameters`` from the plugin's OAuth template, with
|
|
393
|
+
any ``oauth_*`` values from the stored credentials taking precedence."""
|
|
394
|
+
oauth_parameters = {k: oauth_template.get(k) for k in OAUTH_PARAMETER_KEYS if oauth_template.get(k) is not None}
|
|
395
|
+
oauth_parameters.update(overrides)
|
|
396
|
+
for key, placeholder in (("oauth_client_id", "<client id>"), ("oauth_client_secret", "<client secret>")):
|
|
397
|
+
if oauth_parameters.get(key) in (None, "", placeholder):
|
|
398
|
+
raise RuntimeError(
|
|
399
|
+
f"Connection '{connection_slug}' uses OAuth, but no '{key}' is set. Add '{key}' (or "
|
|
400
|
+
f"'{key[len('oauth_'):]}') to "
|
|
401
|
+
f"CONNECTION_SECRETS for this connection in {DEV_CREDENTIALS_TABLE}."
|
|
402
|
+
)
|
|
403
|
+
return oauth_parameters
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
def _oauth_flow_required_error(app_name: str, connection_slug: str, connection_method: str) -> OAuthFlowRequiredError:
|
|
407
|
+
setup_url = APP_SETUP_URL_TEMPLATE.format(app_name=app_name)
|
|
408
|
+
return OAuthFlowRequiredError(
|
|
409
|
+
f"Connection '{connection_slug}' on application '{app_name}' uses the OAuth connection method "
|
|
410
|
+
f"'{connection_method}'. Its OAuth objects have been created and the app specifications approved, "
|
|
411
|
+
f"but the OAuth authorization flow must be completed interactively. Open {setup_url}, complete "
|
|
412
|
+
f"the 'Authorize OAuth connection: {connection_slug}' configuration, then re-run this action."
|
|
413
|
+
)
|
|
414
|
+
|
|
415
|
+
|
|
326
416
|
def resolve_connection_slug(connection_slug: Optional[str] = None) -> str:
|
|
327
417
|
"""Return ``connection_slug`` if given, otherwise the ``CONNECTION_SLUG`` environment variable."""
|
|
328
418
|
return _from_env(connection_slug, CONNECTION_SLUG_ENV_VAR)
|
|
@@ -458,6 +548,18 @@ def ensure_connection(
|
|
|
458
548
|
f"No connection method for '{connection_slug}': CONNECTION_METHOD is empty in "
|
|
459
549
|
f"{DEV_CREDENTIALS_TABLE} and none was passed."
|
|
460
550
|
)
|
|
551
|
+
oauth_template = _get_oauth_template(session, app_name, resolved_method, connectivity_option)
|
|
552
|
+
# oauth_* values (client id/secret etc.) only feed the security integration, so keep them
|
|
553
|
+
# out of the generic secret and connection parameters
|
|
554
|
+
oauth_overrides = {
|
|
555
|
+
k: d.pop(k) for d in (resolved_params, resolved_secrets) for k in list(d) if k in OAUTH_PARAMETER_KEYS
|
|
556
|
+
}
|
|
557
|
+
# Plain client_id / client_secret are accepted as fallbacks; they're left in place since
|
|
558
|
+
# the plugin may read them under those names too
|
|
559
|
+
for alias, key in OAUTH_PARAMETER_ALIASES.items():
|
|
560
|
+
for d in (resolved_params, resolved_secrets):
|
|
561
|
+
if key not in oauth_overrides and d.get(alias) not in (None, ""):
|
|
562
|
+
oauth_overrides[key] = d[alias]
|
|
461
563
|
resolved_conn_name = (
|
|
462
564
|
connection_name
|
|
463
565
|
or os.getenv("CONNECTION_NAME")
|
|
@@ -471,7 +573,16 @@ def ensure_connection(
|
|
|
471
573
|
eai_name = f"{app_name}__EAI__{slug_upper}"
|
|
472
574
|
network_rule_name = f"RULE__{slug_upper}"
|
|
473
575
|
secret_name = f"SECRET__{slug_upper}"
|
|
474
|
-
|
|
576
|
+
# Spec names must match the sync engine's (specification_utils.py): spec labels are derived
|
|
577
|
+
# from the slug alone and must be unique, so a differently-named spec for a slug the sync
|
|
578
|
+
# engine already provisioned would clash on its label
|
|
579
|
+
spec_name = f"CONNECTION_EAI_SPEC__{slug_upper}"
|
|
580
|
+
# OAuth object names follow the sync engine's convention (begin_connection_creation.py)
|
|
581
|
+
instance_part = app_name.replace('"', "").upper()
|
|
582
|
+
oauth_secret_name = f"CONNECTION_SECRET_OAUTH__{instance_part}__{slug_upper}__A"
|
|
583
|
+
oauth_si_name = f"CONNECTION_SI__{instance_part}__{slug_upper}__A"
|
|
584
|
+
oauth_secret_configuration_name = f"CONNECTION_OAUTH_CONFIG__{instance_part}__{slug_upper}__A"
|
|
585
|
+
si_spec_name = f"CONNECTION_SI_SPEC__{slug_upper}"
|
|
475
586
|
|
|
476
587
|
# Discover network addresses if not provided
|
|
477
588
|
resolved_network_addresses = network_addresses
|
|
@@ -517,6 +628,19 @@ def ensure_connection(
|
|
|
517
628
|
"connection_version": "V2",
|
|
518
629
|
"is_in_progress": True,
|
|
519
630
|
}
|
|
631
|
+
if oauth_template is not None:
|
|
632
|
+
set_params.update({
|
|
633
|
+
"oauth_security_integration_name": oauth_si_name,
|
|
634
|
+
"oauth_secret_name": oauth_secret_name,
|
|
635
|
+
"oauth_secret_configuration_name": oauth_secret_configuration_name,
|
|
636
|
+
"security_integration_spec_name": si_spec_name,
|
|
637
|
+
})
|
|
638
|
+
# Recreating the security integration and secret discards any token, so only do so if
|
|
639
|
+
# the flow hasn't already been completed (e.g. on the re-run after authorizing)
|
|
640
|
+
if _oauth_token_exists(session, app_name, oauth_secret_name, eai_name):
|
|
641
|
+
logger.info("OAuth secret %s already has a token; reusing it", oauth_secret_name)
|
|
642
|
+
else:
|
|
643
|
+
set_params["oauth_parameters"] = _build_oauth_parameters(oauth_template, oauth_overrides, connection_slug)
|
|
520
644
|
|
|
521
645
|
res = session.sql(
|
|
522
646
|
f"CALL {app_name}.PLUGIN.SET_CONNECTION_OBJECTS(PARSE_JSON(?)::OBJECT)",
|
|
@@ -532,13 +656,19 @@ def ensure_connection(
|
|
|
532
656
|
f"SET_CONNECTION_OBJECTS failed on {app_name}: {res_json.get('error', res_json)}"
|
|
533
657
|
)
|
|
534
658
|
|
|
535
|
-
# 2. Approve external access
|
|
659
|
+
# 2. Approve external access (and OAuth security integration) specifications
|
|
536
660
|
if auto_approve_spec:
|
|
537
661
|
approve_specification(session, spec_name, app_name=app_name, expected_type="EXTERNAL_ACCESS")
|
|
662
|
+
if "oauth_parameters" in set_params:
|
|
663
|
+
approve_specification(session, si_spec_name, app_name=app_name, expected_type="SECURITY_INTEGRATION")
|
|
538
664
|
|
|
539
665
|
# 3. Configure APIs (rebind procs)
|
|
540
666
|
session.sql(f"CALL {app_name}.PLUGIN.CONFIGURE_APIS()").collect()
|
|
541
667
|
|
|
668
|
+
# The OAuth flow itself is interactive; the connection stays in progress until it's done
|
|
669
|
+
if oauth_template is not None and not _oauth_token_exists(session, app_name, oauth_secret_name, eai_name):
|
|
670
|
+
raise _oauth_flow_required_error(app_name, connection_slug, resolved_method)
|
|
671
|
+
|
|
542
672
|
# 4. Complete connection
|
|
543
673
|
complete_res = session.sql(
|
|
544
674
|
f"CALL {app_name}.PLUGIN.COMPLETE_CONNECTION(?)",
|
|
@@ -105,7 +105,8 @@ try{
|
|
|
105
105
|
value:SI_SPEC_NAME::varchar as SI_SPEC_NAME,
|
|
106
106
|
value:OAUTH_SECRET_CONFIGURATION_NAME::varchar as OAUTH_SECRET_CONFIGURATION_NAME,
|
|
107
107
|
iff(contains(value:EXTERNAL_ACCESS_INTEGRATION_NAME::varchar, '__'), 'V2', 'V1') as CONNECTION_VERSION,
|
|
108
|
-
|
|
108
|
+
-- connections returned by the sync engine are always enabled there, regardless of version
|
|
109
|
+
true as DEFAULT_ENABLED
|
|
109
110
|
from lateral flatten(input => parse_json(?))
|
|
110
111
|
) s
|
|
111
112
|
on t.CONNECTION_SLUG = s.CONNECTION_SLUG
|
|
@@ -5,7 +5,8 @@ create or replace procedure PLUGIN.MIGRATE_CONNECTION_STATE()
|
|
|
5
5
|
Called by the setup script during installation/upgrade. One-time, idempotent backfill of the
|
|
6
6
|
binding-state columns on DATA.CONNECTIONS for rows created before those columns existed:
|
|
7
7
|
- CONNECTION_VERSION from the EAI name ('V2' iff it contains '__', else 'V1'), and
|
|
8
|
-
- ENABLED
|
|
8
|
+
- ENABLED = true, since connections are only recorded here once the sync engine reports them
|
|
9
|
+
(in-progress connections are never fetched), so every one we know about is active.
|
|
9
10
|
Only rows whose value is still null are touched, so it is safe to run on every upgrade.
|
|
10
11
|
$$
|
|
11
12
|
execute as owner
|
|
@@ -31,21 +32,11 @@ try{
|
|
|
31
32
|
binds:[]
|
|
32
33
|
} ).execute();
|
|
33
34
|
|
|
34
|
-
// (3) V2 connections:
|
|
35
|
-
|
|
36
|
-
sqlText: `SHOW EXTERNAL ACCESS INTEGRATIONS
|
|
37
|
-
->> SELECT $1 as EAI_NAME, ($5 = 'Active') as IS_ACTIVE FROM $1
|
|
38
|
-
->> MERGE INTO DATA.CONNECTIONS t
|
|
39
|
-
USING $1 s
|
|
40
|
-
ON t.EXTERNAL_ACCESS_INTEGRATION_NAME = s.EAI_NAME
|
|
41
|
-
WHEN MATCHED AND (t.CONNECTION_VERSION = 'V2' OR CONTAINS(t.EXTERNAL_ACCESS_INTEGRATION_NAME, '__')) AND t.ENABLED IS NULL THEN
|
|
42
|
-
UPDATE SET ENABLED = s.IS_ACTIVE`,
|
|
43
|
-
binds:[]
|
|
44
|
-
} ).execute();
|
|
45
|
-
|
|
35
|
+
// (3) V2 connections: the sync engine only reports active connections (not in-progress ones),
|
|
36
|
+
// so any we know about are enabled too.
|
|
46
37
|
snowflake.createStatement( {
|
|
47
38
|
sqlText: `update DATA.CONNECTIONS
|
|
48
|
-
set ENABLED =
|
|
39
|
+
set ENABLED = true
|
|
49
40
|
where (CONNECTION_VERSION = 'V2' or contains(EXTERNAL_ACCESS_INTEGRATION_NAME,'__'))
|
|
50
41
|
and ENABLED is null`,
|
|
51
42
|
binds:[]
|
|
File without changes
|
|
File without changes
|
{omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/cli/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/initialiser.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omnata_plugin_devkit-0.15.2 → omnata_plugin_devkit-0.15.3}/src/omnata_plugin_devkit/utils.py
RENAMED
|
File without changes
|