omnata-plugin-devkit 0.16.0a273__tar.gz → 0.16.0a275__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.16.0a273 → omnata_plugin_devkit-0.16.0a275}/PKG-INFO +2 -2
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/pyproject.toml +2 -2
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CONFIGURE_APIS.sql.jinja +40 -14
- omnata_plugin_devkit-0.16.0a275/src/omnata_plugin_devkit/jinja_templates/REFRESH_OAUTH_TOKENS.sql.jinja +102 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/plugin_uploader.py +9 -2
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/plugin_configuration.py +21 -5
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/LICENSE +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/README.md +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/__init__.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/airbyte_wrapper.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/cli/__init__.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/development.ipynb +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/development_session.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/initialiser.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/integration_testing.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/API_LIMITS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/ASSIGN_OUTBOUND_TARGET_TYPE.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/BACKFILL_CONNECTIONS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CHECK_CONNECTION_PROGRESS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/COMPLETE_CONNECTION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CONFIGURATION_FORM.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CONNECTION_FORM.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CONNECTION_TEST.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CONSTRUCT_FORM_OPTION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CREATE_BILLING_EVENTS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CREATE_GENERIC_SECRET_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CREATE_GENERIC_SECRET_OBJECT_FROM_EXISTING.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CREATE_NETWORK_RULE_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CREATE_NETWORK_RULE_OBJECT_FROM_EXISTING.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/CREATE_OAUTH_SECRET_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/DELETE_CONNECTION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/DROP_CONFIGURATION_DEFINITION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/DROP_INTEGRATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/DROP_NETWORK_RULES.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/DROP_SECRETS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/DROP_SPECIFICATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/FETCH_CONNECTIONS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/FETCH_CONNECTIONS_LEGACY.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/FETCH_SYNCS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/FETCH_SYNC_BRANCHES.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/GET_MISSING_APP_PRIVILEGES.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/INBOUND_LIST_STREAMS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/LIST_APP_SPECIFICATIONS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/LIST_STAGES.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/MIGRATE_CONNECTION_STATE.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/NETWORK_ADDRESSES.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/NGROK_POST_TUNNEL_FIELDS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/OUTBOUND_RECORD_VALIDATOR.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/PENDING_API_CONFIGURATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/POST_INSTALL_ACTIONS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/RENAME_CONNECTION_METHODS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/RETRIEVE_NETWORK_RULE_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/RETRIEVE_SECRETS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/RETRIEVE_SECRETS_UDF.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/SET_CONNECTION_OBJECTS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/SET_EAI_ACTIVE.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/SET_EAI_SPECIFICATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/SET_SI_SPECIFICATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/SYNC.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/TEST_CALLBACK.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/TEST_OAUTH_TOKEN_EXISTS.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/TUNNEL_TEST.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/UPDATE_API_CONFIGURATION.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/UPDATE_GENERIC_SECRET_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/UPDATE_GENERIC_SECRET_OBJECT_OLD.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/UPDATE_NETWORK_RULE_OBJECT.sql.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/jinja_templates/manifest.yml.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/native_app_packaging.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/plugin_registration.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/plugin_template/icon.svg +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/plugin_template/plugin.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/plugin_template/plugin_development.ipynb +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/plugin_template/requirements.txt +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/__init__.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/__init__.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/api/__init__.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/api/config.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/api/constants.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/api/exceptions.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/api/secure_path.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/api/secure_utils.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/api/utils/__init__.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/api/utils/types.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/app/__init__.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/app/snow_connector.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/plugins/__init__.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/__init__.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/models.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/package/__init__.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/package_utils.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/snowpark_shared.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/venv.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/plugins/snowpark/zipper.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/snowcli/cli/templates/environment.yml.jinja +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/environment.yml +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/index-SCJFQcpn.css +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/index-xyaBmWMr.js +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-300-normal-D0x1uCa7.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-300-normal-DzUz0kzv.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-400-normal-BepgbcUK.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-400-normal-CBPI_iaY.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-500-normal-C8ZOEKN4.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-500-normal-CLao9AfR.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-700-normal-C2o7G-SM.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-700-normal-D8g9KsRf.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-300-normal-C0UYUNTV.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-300-normal-DIxttMbC.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-400-normal-DhDk0Xwi.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-400-normal-qHufge6k.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-500-normal-BWC_xYeb.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-500-normal-SCgicl0l.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-700-normal-BWOtdzfy.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-cyrillic-ext-700-normal-DmFxo5wj.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-300-normal-DJEM9B4Z.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-300-normal-xS8CB6LN.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-400-normal-D904r64h.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-400-normal-ai2Z1K3C.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-500-normal-C9AnhcmC.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-500-normal-XBIQOowA.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-700-normal-0aHWxGLu.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-greek-700-normal-xQsEWSIA.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-300-normal-CCzlftfr.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-300-normal-Dqn3NW0Y.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-400-normal-BqEyEoaF.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-400-normal-D27F5sTu.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-500-normal-7RbcRiD8.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-500-normal-fsTFPL3E.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-700-normal-BZpUvMxY.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-700-normal-YuyVweIx.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-300-normal-B0-sTZUp.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-300-normal-B90pq-BC.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-400-normal-C3tdtHj3.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-400-normal-CIveymTr.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-500-normal-C1cK9xmS.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-500-normal-pMCM9Ixg.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-700-normal-BDePAh3g.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-latin-ext-700-normal-DSBUz0N1.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-300-normal-5dF_7mZP.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-300-normal-CkwMvXpj.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-400-normal-BEFej5gc.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-400-normal-D6sS4O5l.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-500-normal-BNGXE_xU.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-500-normal-C4NU9gLX.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-700-normal-B8YqGHVc.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-math-700-normal-DbhUef31.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-300-normal-CBIeSvs3.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-300-normal-DDU7avhj.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-400-normal-C7tGlxgb.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-400-normal-CB1Ce4Gk.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-500-normal-B_CZKVJS.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-500-normal-DFnofPUt.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-700-normal-BiFDindJ.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-symbols-700-normal-C59U6HqI.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-300-normal-BPvXm_f1.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-300-normal-CYjuQheQ.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-400-normal-Bf76hAzZ.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-400-normal-D2PTxGxD.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-500-normal-B3ncpOoB.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-500-normal-BgoYVz-9.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-700-normal-BEVeWqJt.woff2 +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/assets/roboto-vietnamese-700-normal-kpkdMgbf.woff +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/dist/index.html +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/index.html +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/package.json +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/pnpm-lock.yaml +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/pnpm-workspace.yaml +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/App.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/StreamlitBridge.ts +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Connections/ArchitectureDiagram.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Connections/ConnectionCard.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Connections/ConnectionMetrics.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Connections/ConnectionsList.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Connections/ParameterViewer.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/FontComponent/export.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/FontComponent/index.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/Header.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/PluginInfo/PluginInfoTab.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/ProcsUdfs/ProcsUdfsTab.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/RegistrationWizard/InstallStep.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/RegistrationWizard/RegisterStep.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/RegistrationWizard/RoleGrantStep.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/RegistrationWizard/SqlCodeBlock.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/components/RegistrationWizard/WelcomeStep.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/main.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/themes.ts +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/types.ts +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/ColorPalette/ColorPaletteContextSelector.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/ColorPalette/DefaultColorPaletteItem.ts +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/ColorPalette/TagsColorPalette.ts +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/ScrollbarStyles.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/drawerStyles.ts +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/src/utils/tabPanel.tsx +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/tsconfig.json +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/streamlit/frontend/vite.config.ts +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/test_step_definitions.py +0 -0
- {omnata_plugin_devkit-0.16.0a273 → omnata_plugin_devkit-0.16.0a275}/src/omnata_plugin_devkit/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: omnata-plugin-devkit
|
|
3
|
-
Version: 0.16.
|
|
3
|
+
Version: 0.16.0a275
|
|
4
4
|
Summary:
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: James Weakley
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
14
14
|
Provides-Extra: pytest
|
|
15
15
|
Requires-Dist: behave (>=1.2,<2.0)
|
|
16
16
|
Requires-Dist: behave_pandas (>=0.5.0,<0.6.0)
|
|
17
|
-
Requires-Dist: omnata-plugin-runtime (>=0.15.
|
|
17
|
+
Requires-Dist: omnata-plugin-runtime (>=0.15.0)
|
|
18
18
|
Requires-Dist: omnata_cli (>=0.2.3,<0.3.0)
|
|
19
19
|
Requires-Dist: pyparsing (>=3.0)
|
|
20
20
|
Requires-Dist: pytest (>=7) ; extra == "pytest"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "omnata-plugin-devkit"
|
|
3
|
-
version = "0.16.
|
|
3
|
+
version = "0.16.0a275"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = ["James Weakley <james.weakley@omnata.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -16,7 +16,7 @@ exclude = [
|
|
|
16
16
|
# support 3.10 - 3.13
|
|
17
17
|
python = ">=3.10, <3.14"
|
|
18
18
|
omnata_cli = "^0.2.3"
|
|
19
|
-
omnata-plugin-runtime = ">=0.15.
|
|
19
|
+
omnata-plugin-runtime = ">=0.15.0"
|
|
20
20
|
python-slugify = "^8"
|
|
21
21
|
vcrpy = "^7"
|
|
22
22
|
tabulate = "^0.9"
|
|
@@ -19,9 +19,15 @@ Table-driven EAI binding process, centred on DATA.CONNECTIONS:
|
|
|
19
19
|
2. Attempt to bind the whole set to SYNC as an early validation pass. If it fails for ANY reason,
|
|
20
20
|
probe each integration individually by binding it to an ephemeral DATA.TEST_BINDING() function
|
|
21
21
|
(the TEST_OAUTH_TOKEN_EXISTS pattern). Any integration whose probe throws is recorded against its
|
|
22
|
-
connection (BINDING_ERROR / BINDING_ERROR_TIMESTAMP)
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
connection (BINDING_ERROR / BINDING_ERROR_TIMESTAMP) and dropped from the set; then the binding
|
|
23
|
+
process restarts. This isolates broken connections (missing/uninitialised secrets, missing rules,
|
|
24
|
+
etc.) instead of failing the whole configuration.
|
|
25
|
+
OAuth token errors (the secret's refresh was rejected, or it was never authorised) only leave the
|
|
26
|
+
connection out of this pass: it stays ENABLED, so it is bound again once the secret has been
|
|
27
|
+
re-authorised. These are often transient: binding an OAuth secret whose access token is near
|
|
28
|
+
expiry makes Snowflake refresh it and discard the result, which breaks providers that rotate
|
|
29
|
+
refresh tokens (Zendesk, Xero; see DATA.REFRESH_OAUTH_TOKENS). Any other probe error also
|
|
30
|
+
disables the connection (ENABLED=false).
|
|
25
31
|
|
|
26
32
|
3. Bind the surviving set to every proc/UDF that needs external access.
|
|
27
33
|
|
|
@@ -63,6 +69,11 @@ try{
|
|
|
63
69
|
}
|
|
64
70
|
snowflake.log("info", `Enabled EAIs: ${Object.keys(externalAccessIntegrations).join(',')}`);
|
|
65
71
|
|
|
72
|
+
// Errors meaning an OAuth secret can't currently supply a token: its refresh was rejected, or it was
|
|
73
|
+
// never authorised. Re-authorising fixes both, so these never disable a connection.
|
|
74
|
+
var TOKEN_ERROR = /Secret token refresh failed|is not initialized/i;
|
|
75
|
+
var excludedForTokenErrors = {};
|
|
76
|
+
|
|
66
77
|
// Build the current SECRETS clause entries: 'UNQUALIFIED_NAME' = FULL.QUALIFIED.NAME
|
|
67
78
|
function buildSecretsClause(eais) {
|
|
68
79
|
var all = [...new Set(Object.values(eais).flatMap(function(e) { return e.secrets; }))];
|
|
@@ -106,8 +117,8 @@ ${twoDollars}`;
|
|
|
106
117
|
}
|
|
107
118
|
}
|
|
108
119
|
|
|
109
|
-
// (2) Binding loop. Validate the whole set against SYNC; on any error,
|
|
110
|
-
// integration(s) via per-integration probes and restart. A pass that
|
|
120
|
+
// (2) Binding loop. Validate the whole set against SYNC; on any error, remove the offending
|
|
121
|
+
// integration(s) via per-integration probes and restart. A pass that removes nothing re-raises
|
|
111
122
|
// the original error so we don't loop forever on a non-integration-specific failure.
|
|
112
123
|
var MAX_PASSES = 50;
|
|
113
124
|
var passes = 0;
|
|
@@ -124,28 +135,42 @@ ${twoDollars}`;
|
|
|
124
135
|
break;
|
|
125
136
|
} catch(bindErr) {
|
|
126
137
|
snowflake.log("warn", `Binding failed (${String(bindErr)}); probing integrations individually`);
|
|
127
|
-
var
|
|
138
|
+
var removedAny = false;
|
|
128
139
|
Object.keys(externalAccessIntegrations).forEach(function(eaiName) {
|
|
129
140
|
try {
|
|
130
141
|
probeIntegration(eaiName, externalAccessIntegrations[eaiName].secrets);
|
|
131
142
|
} catch(probeErr) {
|
|
132
|
-
|
|
143
|
+
removedAny = true;
|
|
144
|
+
var tokenError = TOKEN_ERROR.test(String(probeErr));
|
|
145
|
+
if (tokenError) {
|
|
146
|
+
snowflake.log("warn", `Leaving out EAI ${eaiName} until its OAuth secret is re-authorised: ${String(probeErr)}`);
|
|
147
|
+
excludedForTokenErrors[eaiName] = {
|
|
148
|
+
slug: externalAccessIntegrations[eaiName].slug,
|
|
149
|
+
error: String(probeErr)
|
|
150
|
+
};
|
|
151
|
+
} else {
|
|
152
|
+
snowflake.log("warn", `Disabling connection for EAI ${eaiName}: ${String(probeErr)}`);
|
|
153
|
+
}
|
|
133
154
|
try {
|
|
134
155
|
snowflake.createStatement( {
|
|
135
|
-
sqlText:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
156
|
+
sqlText: tokenError
|
|
157
|
+
? `update DATA.CONNECTIONS
|
|
158
|
+
set APPLIED=false,
|
|
159
|
+
BINDING_ERROR=?, BINDING_ERROR_TIMESTAMP=current_timestamp()
|
|
160
|
+
where EXTERNAL_ACCESS_INTEGRATION_NAME=?`
|
|
161
|
+
: `update DATA.CONNECTIONS
|
|
162
|
+
set ENABLED=false, APPLIED=false,
|
|
163
|
+
BINDING_ERROR=?, BINDING_ERROR_TIMESTAMP=current_timestamp()
|
|
164
|
+
where EXTERNAL_ACCESS_INTEGRATION_NAME=?`,
|
|
139
165
|
binds:[String(probeErr), eaiName]
|
|
140
166
|
} ).execute();
|
|
141
167
|
} catch(updErr) {
|
|
142
168
|
snowflake.log("error", `Could not record binding error for ${eaiName}: ${String(updErr)}`);
|
|
143
169
|
}
|
|
144
170
|
delete externalAccessIntegrations[eaiName];
|
|
145
|
-
disabledAny = true;
|
|
146
171
|
}
|
|
147
172
|
});
|
|
148
|
-
if (!
|
|
173
|
+
if (!removedAny) {
|
|
149
174
|
throw bindErr;
|
|
150
175
|
}
|
|
151
176
|
// otherwise restart the loop with the reduced set
|
|
@@ -308,7 +333,8 @@ ${twoDollars}`;
|
|
|
308
333
|
return {
|
|
309
334
|
"success": true,
|
|
310
335
|
"data": {
|
|
311
|
-
"appliedExternalAccessIntegrations": externalAccessIntegrations
|
|
336
|
+
"appliedExternalAccessIntegrations": externalAccessIntegrations,
|
|
337
|
+
"excludedForTokenErrors": excludedForTokenErrors
|
|
312
338
|
}
|
|
313
339
|
}
|
|
314
340
|
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
create or replace procedure DATA.REFRESH_OAUTH_TOKENS()
|
|
2
|
+
returns object
|
|
3
|
+
language javascript
|
|
4
|
+
COMMENT = $$
|
|
5
|
+
Called at the very start of the setup script, before the PLUGIN schema is rebuilt. Refreshes every
|
|
6
|
+
OAuth token through the previous version's PLUGIN.RETRIEVE_SECRETS_UDF, which is still bound to the
|
|
7
|
+
connection secrets at that point, so that the binds performed by CONFIGURE_APIS later in the setup
|
|
8
|
+
script find fresh access tokens.
|
|
9
|
+
$$
|
|
10
|
+
execute as owner
|
|
11
|
+
as
|
|
12
|
+
$$
|
|
13
|
+
/*
|
|
14
|
+
Why: when an OAuth secret is bound (CREATE/ALTER ... SECRETS = (...)) while its access token has less
|
|
15
|
+
than about 5 minutes left, Snowflake refreshes the token and discards what that refresh returned. For
|
|
16
|
+
providers that rotate refresh tokens on every refresh (Zendesk, Xero) the secret is left holding a refresh
|
|
17
|
+
token the provider has already retired, and every later refresh fails with invalid_grant until the
|
|
18
|
+
connection is re-authorised. Refreshes made while retrieving a token at runtime (as RETRIEVE_SECRETS_UDF
|
|
19
|
+
does) save the rotated token correctly, and a bind with a fresh token doesn't refresh at all.
|
|
20
|
+
|
|
21
|
+
Calling a function refreshes every near-expiry secret bound to it, and fails the whole call if any one of
|
|
22
|
+
those refreshes fails (without refreshing the rest). Failures are therefore logged and never fail the
|
|
23
|
+
setup script; the binds that follow will exclude any connection whose token can't be refreshed.
|
|
24
|
+
|
|
25
|
+
This is a JavaScript procedure in the DATA schema because the versioned PLUGIN schema is rebuilt by the
|
|
26
|
+
setup script, recreating RETRIEVE_SECRETS_UDF without its secret bindings.
|
|
27
|
+
*/
|
|
28
|
+
var result = { refreshed: [], failed: {}, skipped: null };
|
|
29
|
+
try {
|
|
30
|
+
// Collect OAuth secret names from the connections mirror and from the legacy registration, whose
|
|
31
|
+
// EXTERNAL_ACCESS_INTEGRATIONS object is {eai_name: {oauth_secret, other_secret, ...}}. Both store
|
|
32
|
+
// bare names, which are also the aliases CONFIGURE_APIS binds them under.
|
|
33
|
+
var secretNames = {};
|
|
34
|
+
try {
|
|
35
|
+
var connResults = snowflake.createStatement( {
|
|
36
|
+
sqlText: `select distinct OAUTH_SECRET_NAME from DATA.CONNECTIONS where OAUTH_SECRET_NAME is not null`,
|
|
37
|
+
binds:[]
|
|
38
|
+
} ).execute();
|
|
39
|
+
while (connResults.next()) {
|
|
40
|
+
secretNames[connResults.getColumnValue(1)] = true;
|
|
41
|
+
}
|
|
42
|
+
} catch(connErr) {
|
|
43
|
+
snowflake.log("info", `REFRESH_OAUTH_TOKENS: could not read DATA.CONNECTIONS: ${String(connErr)}`);
|
|
44
|
+
}
|
|
45
|
+
try {
|
|
46
|
+
var regResults = snowflake.createStatement( {
|
|
47
|
+
sqlText: `select value:oauth_secret::varchar
|
|
48
|
+
from DATA.OMNATA_REGISTRATION,
|
|
49
|
+
lateral flatten(input => EXTERNAL_ACCESS_INTEGRATIONS)
|
|
50
|
+
where value:oauth_secret is not null`,
|
|
51
|
+
binds:[]
|
|
52
|
+
} ).execute();
|
|
53
|
+
while (regResults.next()) {
|
|
54
|
+
secretNames[regResults.getColumnValue(1)] = true;
|
|
55
|
+
}
|
|
56
|
+
} catch(regErr) {
|
|
57
|
+
snowflake.log("info", `REFRESH_OAUTH_TOKENS: could not read DATA.OMNATA_REGISTRATION: ${String(regErr)}`);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
var names = Object.keys(secretNames);
|
|
61
|
+
if (names.length === 0) {
|
|
62
|
+
result.skipped = "no OAuth secrets";
|
|
63
|
+
return { "success": true, "data": result };
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// On a fresh install there is no previous version, so RETRIEVE_SECRETS_UDF doesn't exist yet.
|
|
67
|
+
var udfExists = snowflake.createStatement( {
|
|
68
|
+
sqlText: `select count(*) from INFORMATION_SCHEMA.FUNCTIONS
|
|
69
|
+
where FUNCTION_SCHEMA = 'PLUGIN' and FUNCTION_NAME = 'RETRIEVE_SECRETS_UDF'`,
|
|
70
|
+
binds:[]
|
|
71
|
+
} ).execute();
|
|
72
|
+
udfExists.next();
|
|
73
|
+
if (udfExists.getColumnValue(1) === 0) {
|
|
74
|
+
result.skipped = "PLUGIN.RETRIEVE_SECRETS_UDF does not exist";
|
|
75
|
+
return { "success": true, "data": result };
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
names.forEach(function(name) {
|
|
79
|
+
try {
|
|
80
|
+
// The token itself is discarded; only the side effect of the refresh matters.
|
|
81
|
+
snowflake.createStatement( {
|
|
82
|
+
sqlText: `select PLUGIN.RETRIEVE_SECRETS_UDF(?, null) is not null`,
|
|
83
|
+
binds:[name]
|
|
84
|
+
} ).execute();
|
|
85
|
+
result.refreshed.push(name);
|
|
86
|
+
} catch(refreshErr) {
|
|
87
|
+
snowflake.log("warn", `REFRESH_OAUTH_TOKENS: could not refresh OAuth token for ${name}: ${String(refreshErr)}`);
|
|
88
|
+
result.failed[name] = String(refreshErr);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
snowflake.log("info", `REFRESH_OAUTH_TOKENS: refreshed ${result.refreshed.length}, failed ${Object.keys(result.failed).length}`);
|
|
92
|
+
return { "success": true, "data": result };
|
|
93
|
+
}
|
|
94
|
+
catch(e){
|
|
95
|
+
snowflake.log("warn", `REFRESH_OAUTH_TOKENS: ${String(e)}`);
|
|
96
|
+
return {
|
|
97
|
+
"success": false,
|
|
98
|
+
"error": `REFRESH_OAUTH_TOKENS: ${String(e)}`
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
$$
|
|
102
|
+
;
|
|
@@ -465,13 +465,20 @@ class PluginUploader:
|
|
|
465
465
|
setup_script.write(
|
|
466
466
|
"grant create table on schema CONSUMER_TEMP_DATA to application role OMNATA_MANAGEMENT;\n"
|
|
467
467
|
)
|
|
468
|
+
templates_path = os.path.join(Path(__file__).parent, "jinja_templates")
|
|
469
|
+
environment = Environment(loader=FileSystemLoader(templates_path))
|
|
470
|
+
# Refresh OAuth tokens while the previous version's PLUGIN.RETRIEVE_SECRETS_UDF is still bound,
|
|
471
|
+
# before the PLUGIN schema below is rebuilt. Otherwise CONFIGURE_APIS would bind secrets with
|
|
472
|
+
# near-expiry tokens, and Snowflake loses the rotated refresh token from a bind-time refresh.
|
|
473
|
+
setup_script.write(
|
|
474
|
+
f"{environment.get_template('REFRESH_OAUTH_TOKENS.sql.jinja').render({})}\n"
|
|
475
|
+
)
|
|
476
|
+
setup_script.write("call DATA.REFRESH_OAUTH_TOKENS();\n")
|
|
468
477
|
setup_script.write("create or alter versioned schema PLUGIN;\n")
|
|
469
478
|
setup_script.write(
|
|
470
479
|
"grant usage on schema PLUGIN to application role OMNATA_MANAGEMENT;\n"
|
|
471
480
|
)
|
|
472
481
|
|
|
473
|
-
templates_path = os.path.join(Path(__file__).parent, "jinja_templates")
|
|
474
|
-
environment = Environment(loader=FileSystemLoader(templates_path))
|
|
475
482
|
# These are all the procs/functions which underneath, need to talk to the plugin code and therefore need all the imports available
|
|
476
483
|
for proc_template in [
|
|
477
484
|
"API_LIMITS",
|
|
@@ -459,11 +459,27 @@ if action_event and isinstance(action_event, dict):
|
|
|
459
459
|
))
|
|
460
460
|
conn_count = len(connection_slugs)
|
|
461
461
|
plural = "s" if conn_count != 1 else ""
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
462
|
+
# Connections whose OAuth token couldn't be refreshed are left out (but stay enabled)
|
|
463
|
+
excluded = data.get("excludedForTokenErrors") or {}
|
|
464
|
+
excluded_slugs = sorted(set(
|
|
465
|
+
details.get("slug") for details in excluded.values()
|
|
466
|
+
if details.get("slug")
|
|
467
|
+
))
|
|
468
|
+
if excluded_slugs:
|
|
469
|
+
excluded_plural = "s need their" if len(excluded_slugs) != 1 else " needs its"
|
|
470
|
+
set_binding_message(
|
|
471
|
+
"warning",
|
|
472
|
+
f"Binding complete for {conn_count} connection{plural}. "
|
|
473
|
+
f"{len(excluded_slugs)} connection{excluded_plural} OAuth authorization renewed "
|
|
474
|
+
f"before {'they' if len(excluded_slugs) != 1 else 'it'} can be bound: {', '.join(excluded_slugs)}.",
|
|
475
|
+
data=data,
|
|
476
|
+
)
|
|
477
|
+
else:
|
|
478
|
+
set_binding_message(
|
|
479
|
+
"success",
|
|
480
|
+
f"Binding complete for {conn_count} connection{plural}.",
|
|
481
|
+
data=data,
|
|
482
|
+
)
|
|
467
483
|
else:
|
|
468
484
|
set_binding_message("error", f"Binding failed: {result.get('error')}")
|
|
469
485
|
st.rerun()
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|