@withgateway/sdk 0.1.20 → 0.2.1
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.
- package/README.md +165 -2
- package/dist/cli.js +14075 -1326
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +14073 -1325
- package/dist/cli.mjs.map +1 -1
- package/dist/files/index.d.mts +2 -0
- package/dist/files/index.d.ts +2 -0
- package/dist/files/index.js +446 -0
- package/dist/files/index.js.map +1 -0
- package/dist/files/index.mjs +395 -0
- package/dist/files/index.mjs.map +1 -0
- package/dist/index-BgvvQ3BC.d.ts +170 -0
- package/dist/index-CLkMr6VG.d.ts +171 -0
- package/dist/index-CdbmO4aX.d.mts +171 -0
- package/dist/index-CiKWoroJ.d.mts +170 -0
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3341 -241
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3279 -235
- package/dist/index.mjs.map +1 -1
- package/dist/traces/index.d.mts +2 -0
- package/dist/traces/index.d.ts +2 -0
- package/dist/traces/index.js +320 -0
- package/dist/traces/index.js.map +1 -0
- package/dist/traces/index.mjs +278 -0
- package/dist/traces/index.mjs.map +1 -0
- package/dist/tracing/index.js +24 -2
- package/dist/tracing/index.js.map +1 -1
- package/dist/tracing/index.mjs +24 -2
- package/dist/tracing/index.mjs.map +1 -1
- package/dist/worlds/index.d.mts +1419 -25
- package/dist/worlds/index.d.ts +1419 -25
- package/dist/worlds/index.js +2829 -87
- package/dist/worlds/index.js.map +1 -1
- package/dist/worlds/index.mjs +2824 -83
- package/dist/worlds/index.mjs.map +1 -1
- package/package.json +24 -2
- package/runtime/gatewaysdk/__init__.py +0 -0
- package/runtime/gatewaysdk/environment/__init__.py +108 -0
- package/runtime/gatewaysdk/environment/_bundle.py +281 -0
- package/runtime/gatewaysdk/environment/_harbor.py +276 -0
- package/runtime/gatewaysdk/environment/_materialize.py +97 -0
- package/runtime/gatewaysdk/environment/_tar.py +33 -0
- package/runtime/gatewaysdk/environment/_world.py +359 -0
- package/runtime/gatewaysdk/environment/core.py +527 -0
- package/runtime/gatewaysdk/environment/errors.py +58 -0
- package/runtime/gatewaysdk/environment/runtime.py +150 -0
- package/runtime/gatewaysdk/environment/schema/__init__.py +43 -0
- package/runtime/gatewaysdk/environment/schema/__main__.py +360 -0
- package/runtime/gatewaysdk/environment/schema/_slack_fidelity.py +116 -0
- package/runtime/gatewaysdk/environment/schema/_slack_scenario.py +183 -0
- package/runtime/gatewaysdk/environment/schema/api.py +1824 -0
- package/runtime/gatewaysdk/environment/schema/batch.py +785 -0
- package/runtime/gatewaysdk/environment/schema/compiler.py +693 -0
- package/runtime/gatewaysdk/environment/schema/conform.py +520 -0
- package/runtime/gatewaysdk/environment/schema/connector.py +1116 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/api/handlers.py +778 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/connector.toml +671 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/handlers.py +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/parity.json +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/provenance.json +1768 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/instruction.md +7 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_activities.json +24 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_activity_devices.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_applecare_coverages.json +52 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_apps.json +35 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_audit_events.json +139 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_apps.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_configurations.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_devices.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_packages.json +8 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_user_groups.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_users.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprints.json +39 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_configurations.json +64 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_device_assignments.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_device_details.json +55 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_devices.json +33 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_servers.json +56 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_org_devices.json +178 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_organizational_unit_memberships.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_organizational_units.json +24 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_packages.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_user_group_memberships.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_user_groups.json +30 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_users.json +115 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scope.toml +139 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/tests/tools.json +48 -0
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/world.json +2366 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/api/handlers.py +1026 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/connector.toml +511 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/fidelity.json +89 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/handlers.py +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/provenance.json +101 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/account_settings.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/custom_field_settings.json +60 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/custom_fields.json +43 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/enum_options.json +52 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/notifications.json +103 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/project_favorites.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/project_memberships.json +144 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/projects.json +120 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/recent_projects.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/sections.json +102 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/stories.json +852 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_custom_fields.json +508 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_followers.json +368 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_memberships.json +184 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/tasks.json +1921 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/teams.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/user_task_list_sections.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/user_task_lists.json +11 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/users.json +60 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/workspace_memberships.json +76 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/workspaces.json +13 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/scope.toml +156 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/tests/routes.json +298 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/tests/tools.json +152 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/assets/index-DTTTJ6a4.css +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/assets/index-WS8dLEjv.js +67 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/index.html +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/asana/world.json +1911 -0
- package/runtime/gatewaysdk/environment/schema/connectors/base.json +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/api/handlers.py +847 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/connector.toml +457 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/handlers.py +176 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/provenance.json +187 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/instruction.md +39 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/scenario.toml +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_favourites.json +29 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_footer_comments.json +984 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_inline_comments.json +355 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_labels.json +99 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_notifications.json +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_page_labels.json +209 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_page_versions.json +828 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_pages.json +949 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_recently_viewed_pages.json +59 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_sites.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_spaces.json +128 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_users.json +100 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_watches.json +96 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/routes.json +212 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/tools.json +140 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/writes.json +201 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/assets/index-BWaOVdpn.js +70 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/assets/index-CKyfi3i5.css +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-01.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-02.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-03.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-04.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-05.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-06.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-DES.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-ENG.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-OPS.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-ORB.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-PN.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianMono-latin.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianSans-latin.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianSansItalic-latin.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/index.html +47 -0
- package/runtime/gatewaysdk/environment/schema/connectors/confluence/world.json +1346 -0
- package/runtime/gatewaysdk/environment/schema/connectors/custom/handlers.py +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/custom/provenance.json +35 -0
- package/runtime/gatewaysdk/environment/schema/connectors/custom/tests/tools.json +123 -0
- package/runtime/gatewaysdk/environment/schema/connectors/custom/world.json +211 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/api/handlers.py +2923 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/connector.toml +2091 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/handlers.py +81 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/parity.json +37 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/provenance.json +162 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/instruction.md +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_apps.json +49 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_artifacts.json +26 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_branches.json +443 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_check_runs.json +220 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_check_suites.json +404 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_code_scanning_alerts.json +126 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_collaborators.json +100 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commit_comments.json +43 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commit_statuses.json +80 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commits.json +461 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_dependabot_alerts.json +168 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_deployment_statuses.json +86 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_deployments.json +94 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_environments.json +31 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_gist_comments.json +38 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_gists.json +118 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_git_refs.json +59 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_installations.json +54 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_comments.json +151 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_events.json +606 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_types.json +26 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issues.json +758 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_labels.json +64 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_licenses.json +54 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_milestones.json +130 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_organization_memberships.json +139 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_organizations.json +38 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_pull_requests.json +874 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_release_assets.json +45 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_releases.json +92 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_repositories.json +797 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_repository_invitations.json +184 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_review_comments.json +66 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_reviews.json +138 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_secret_scanning_alerts.json +50 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_stargazers.json +88 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_tags.json +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_team_memberships.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_team_repositories.json +258 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_teams.json +130 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_users.json +174 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_webhooks.json +31 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflow_jobs.json +115 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflow_runs.json +1021 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflows.json +30 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/scope.toml +597 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/tests/tools.json +79 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/vendor-openapi.json +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/github/world.json +15762 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/api/handlers.py +1413 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/connector.toml +630 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/handlers.py +136 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/scenario.toml +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/10-gmail_profiles.json +10 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/20-gmail_labels.json +205 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/30-gmail_contacts.json +234 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/40-gmail_threads.json +374 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/50-gmail_messages.json +1015 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/60-gmail_message_parts.json +3039 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/70-gmail_attachments.json +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/80-gmail_drafts.json +39 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/90-gmail_client_settings.json +103 -0
- package/runtime/gatewaysdk/environment/schema/connectors/gmail/world.json +784 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/api/handlers.py +454 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/connector.toml +519 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/handlers.py +23 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/provenance.json +229 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/instruction.md +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/scenario.toml +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/10-calendar_calendars.json +75 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/20-calendar_calendar_list_entries.json +115 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/30-calendar_acl_rules.json +124 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/40-calendar_events.json +810 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/50-calendar_settings.json +76 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/60-calendar_channels.json +26 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/70-calendar_colors.json +48 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scope.toml +105 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/tests/tools.json +53 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/vendor-openapi.json +4185 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/world.json +1384 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/api/handlers.py +782 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/connector.toml +373 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/google-docs-types.json +4939 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/handlers.py +197 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/provenance.json +191 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/instruction.md +29 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_comments.json +50 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_documents.json +8096 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_files.json +1187 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_permissions.json +543 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_replies.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_revisions.json +643 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_users.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scope.toml +148 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/tests/api.json +319 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/tests/tools.json +262 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/assets/index-BH9fmZSS.css +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/assets/index-CU4Fk9dX.js +67 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/README.md +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/google-sans-variable.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-italic-variable-latin.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-variable-latin-ext.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-variable-latin.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/icons/material_common_sprite1038_gm3_grey_medium.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/index.html +13 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-docs/world.json +4489 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/api/handlers.py +466 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/connector.toml +626 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/handlers.py +55 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/provenance.json +342 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/instruction.md +11 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_access_proposals.json +31 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_approvals.json +145 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_apps.json +81 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_comments.json +70 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_drives.json +71 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_files.json +700 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_labels.json +75 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_permissions.json +93 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_replies.json +66 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_revisions.json +82 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scope.toml +126 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/tests/tools.json +101 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/vendor-openapi.json +6193 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-drive/world.json +2150 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/api/handlers.py +1645 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/connector.toml +414 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/handlers.py +200 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_cells.json +10252 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_charts.json +103 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_conditional_formats.json +138 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_dimensions.json +256 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_named_ranges.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_permissions.json +31 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_sheets.json +95 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_spreadsheets.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_view_states.json +26 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/tests/page.json +311 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/tests/vendor.json +843 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/assets/index-CUpfKgm_.js +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/assets/index-D3VhwBIC.css +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-400.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-500.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-700.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-400.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-500.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-700.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-400.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-500.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-700.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/index.html +26 -0
- package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/world.json +4029 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/api/handlers.py +800 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/connector.toml +776 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/handlers.py +226 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/instruction.md +11 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_accounts.json +17 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_associations.json +1478 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_calls.json +147 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_companies.json +144 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_contacts.json +284 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_deals.json +204 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_emails.json +160 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_meetings.json +147 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_nav_items.json +204 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_notes.json +160 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_notifications.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_object_views.json +334 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_owners.json +76 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_pipeline_stages.json +109 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_pipelines.json +13 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_properties.json +1220 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_tasks.json +394 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_tickets.json +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/assets/index-hdb5vB78.css +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/assets/index-xhg5ASqE.js +68 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-300.ttf +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-400.ttf +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-500.ttf +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-600.ttf +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-700.ttf +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-latin.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/add.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/avatar.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/bell.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/breeze.svg +4 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/call.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/chevron-up.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/companies.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/contact.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/contacts.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/date.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/deals.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/duplicate.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/export.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/external-link.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/filter-lines.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/frame-expand.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/funnel.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/help.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/hierarchy.svg +4 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/home.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/hubspot-logo.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/info.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/kanban.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/marketing-email.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/marketplace.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/meetings.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/more.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/pencil.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/pin.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/prospecting.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/refresh.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/search.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/settings.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/sidebar-collapse.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/sort.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/table.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/tasks.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/thumbs-down.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/thumbs-up.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/undo.svg +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/upgrade-arrow.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/vertical-dots.svg +5 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/workflows.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/index.html +37 -0
- package/runtime/gatewaysdk/environment/schema/connectors/hubspot/world.json +1347 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/api/handlers.py +987 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/connector.toml +3057 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/handlers.py +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/parity.json +49 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/provenance.json +9495 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/scenario.toml +4 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_account_groups.json +64 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_accounts.json +58 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_computer_searches.json +139 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_mobile_device_searches.json +61 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_user_content_searches.json +61 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_user_searches.json +124 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_api_integrations.json +37 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_api_roles.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_app_request_form_input_fields.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_buildings.json +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_byo_profiles.json +46 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_categories.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_classes.json +217 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_cloud_idps.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_group_members.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_groups.json +38 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_invitations.json +82 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_prestages.json +274 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computers.json +1537 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_configuration_profiles.json +649 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_departments.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_device_enrollment_devices.json +70 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_device_enrollments.json +46 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_directory_bindings.json +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_disk_encryption_configurations.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_distribution_points.json +91 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_dock_items.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ebooks.json +43 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_enrollment_customizations.json +43 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_extension_attributes.json +52 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ibeacons.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_inventory_preload_records.json +100 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ios_branding_configurations.json +31 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ldap_servers.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_licensed_software_records.json +244 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mac_applications.json +610 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_macos_branding_configurations.json +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_managed_software_update_plans.json +67 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mdm_commands.json +58 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_applications.json +700 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_configuration_profiles.json +652 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_enrollment_profiles.json +160 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_extension_attributes.json +43 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_group_members.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_groups.json +38 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_prestages.json +280 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_provisioning_profiles.json +31 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_devices.json +1558 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_network_segments.json +46 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_packages.json +118 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_patch_software_title_configurations.json +88 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_policies.json +1054 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_printers.json +52 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_removable_mac_addresses.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_restricted_software_titles.json +289 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_return_to_service_configurations.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_scripts.json +61 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_sites.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_software_update_servers.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_supervision_identities.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_user_extension_attributes.json +31 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_user_groups.json +112 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_users.json +37 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_volume_purchasing_locations.json +106 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_volume_purchasing_subscriptions.json +76 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_webhooks.json +70 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/scope.toml +900 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/tests/tools.json +95 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/vendor-openapi.json +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jamf/world.json +11559 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/api/handlers.py +1056 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/connector.toml +955 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/handlers.py +87 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/parity.json +27 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/provenance.json +166 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/instruction.md +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/scenario.toml +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_boards.json +61 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_changelogs.json +136 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_comments.json +205 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_components.json +78 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_fields.json +498 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_link_types.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_links.json +190 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_types.json +44 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issues.json +1448 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_priorities.json +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_project_categories.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_projects.json +111 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_resolutions.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_sprint_issues.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_sprints.json +39 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_status_categories.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_statuses.json +60 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_transitions.json +179 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_users.json +83 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_versions.json +30 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_worklogs.json +96 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/scope.toml +255 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/tests/tools.json +151 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/vendor-openapi.json +13562 -0
- package/runtime/gatewaysdk/environment/schema/connectors/jira/world.json +3587 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/api/handlers.py +406 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/connector.toml +531 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/handlers.py +38 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/parity.json +29 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/provenance.json +335 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_items.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_template_categories.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_templates.json +38 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprints.json +52 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_apps.json +45 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_profiles.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_scripts.json +27 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_activities.json +43 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_apps.json +52 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_commands.json +41 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_notes.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_parameters.json +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_tags.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_devices.json +122 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_in_house_apps.json +33 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_item_activities.json +33 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_item_statuses.json +98 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_items.json +24 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_self_service_categories.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_tags.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_users.json +61 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/scope.toml +199 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/tests/tools.json +64 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/vendor-openapi.json +5463 -0
- package/runtime/gatewaysdk/environment/schema/connectors/kandji/world.json +1817 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/api/handlers.py +139 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/connector.toml +1574 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/handlers.py +23 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/provenance.json +142 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/attachments.json +21 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/comments.json +79 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_needs.json +21 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_statuses.json +26 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_tiers.json +26 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customers.json +48 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/cycles.json +86 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/documents.json +27 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiative_projects.json +13 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiative_updates.json +23 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiatives.json +41 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issue_labels.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issue_relations.json +13 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issues.json +264 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/labels.json +52 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/organizations.json +53 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_labels.json +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_members.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_milestones.json +30 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_relations.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_statuses.json +76 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_updates.json +42 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/projects.json +110 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/reactions.json +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/roadmap_projects.json +13 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/roadmaps.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/team_memberships.json +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/teams.json +114 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/templates.json +27 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/users.json +106 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/webhooks.json +21 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/workflow_states.json +108 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/scope.toml +87 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/tests/tools.json +52 -0
- package/runtime/gatewaysdk/environment/schema/connectors/linear/world.json +6148 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/api/handlers.py +1218 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/connector.toml +1246 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/fidelity.json +75 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/handlers.py +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/provenance.json +1632 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/instruction.md +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_async_operations.json +47 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_hosted_contents.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_members.json +88 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_messages.json +313 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_replies.json +128 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channels.json +319 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_hosted_contents.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_members.json +155 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_messages.json +265 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_views.json +37 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chats.json +167 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_incoming_channels.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_pinned_messages.json +9 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_reply_hosted_contents.json +13 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_shared_channel_teams.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_tag_members.json +31 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_tags.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_team_members.json +117 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_teams.json +193 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scope.md +303 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/teams-types.json +1739 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/tests/routes.json +101 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/vendor-openapi.json +11280 -0
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/world.json +926 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/api/handlers.py +571 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/connector.toml +1484 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/handlers.py +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/parity.json +77 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/provenance.json +303 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/instruction.md +11 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_accounting_periods.json +107 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_accounts.json +514 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_classifications.json +64 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_contacts.json +90 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_credit_memos.json +112 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_currencies.json +37 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_customer_payments.json +108 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_customers.json +232 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_departments.json +80 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_employees.json +124 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_invoices.json +229 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_item_fulfillments.json +85 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_items.json +237 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_journal_entries.json +217 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_locations.json +62 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_price_levels.json +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_purchase_orders.json +152 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_sales_order_lines.json +235 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_sales_orders.json +219 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_subsidiaries.json +85 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_terms.json +48 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_vendor_bills.json +170 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_vendors.json +140 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scope.toml +296 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/tests/tools.json +82 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/world.json +39076 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/api/handlers.py +1330 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/connector.toml +386 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/handlers.py +54 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/blocks.json +4197 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/calendar_events.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/collection_views.json +175 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/comments.json +109 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/databases.json +417 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/favorites.json +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/notifications.json +49 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/pages.json +3758 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/spaces.json +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/teamspaces.json +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/users.json +92 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/tests/01-reads.json +165 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/assets/index-DQ36W7RG.css +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/assets/index-DythuuUy.js +67 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000002.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000003.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000004.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000005.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000006.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000007.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000008.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/dusk-harbor.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/ember-coast.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/green-ridge.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f30a.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f331.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f373.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3a7.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3a8.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3ac.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3af.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3c4.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3d6.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3e0.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f44b.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4a1.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4b0.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4bc.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4c5.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4c8.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4cb.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4ce.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d1.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d3.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d6.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4da.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4dd.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4ec.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4f7.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f527.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f55b.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f5c2.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f5d3.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f680.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f6a2.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ca.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9e0.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ea.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ed.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9f0.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1fab6.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2600.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2693.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2705.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2708.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/270f.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2b50.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/favicon.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/fonts/SourceSerif4-latin.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/index.html +31 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/content-blocks.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/databases.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/sharing.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/style-content.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/home-icon.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/viewer.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/workspace.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/notion/world.json +2796 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_admin_role_assignments.json +44 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_app_assignments.json +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_app_group_assignments.json +59 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_applications.json +265 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_console_dashboards.json +91 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_device_users.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_devices.json +89 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_group_memberships.json +156 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_groups.json +100 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_orgs.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_policies.json +84 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_system_log_events.json +9656 -0
- package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_users.json +744 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/api/handlers.py +624 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/connector.toml +381 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/handlers.py +54 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/provenance.json +408 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/instruction.md +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_attachments.json +44 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_calendars.json +52 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_contacts.json +326 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_events.json +3050 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mail_folders.json +84 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mailbox_settings.json +35 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mailboxes.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_messages.json +1400 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_system_senders.json +44 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_users.json +256 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/tests/routes.json +333 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/assets/index-DRVA5ahH.js +67 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/assets/index-kOnvVBhA.css +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Filled.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Regular.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Resizable.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/controlIcons.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-bold.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-light.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-regular.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-semibold.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-semilight.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/bookings.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/calendar.svg +35 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/copilot.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/excel.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/mail.svg +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/my-day.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/newsletters.svg +37 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/no-mail-selected-dark.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/no-mail-selected.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/onedrive.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/onenote.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/org-explorer.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/outlook.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/people.svg +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/powerpoint.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/ribbon-layout.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/sharepoint.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/teams-chat.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/teams.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/to-do.png +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/viva.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/word.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/index.html +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/outlook/world.json +686 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/api/handlers.py +447 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/connector.toml +3478 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/handlers.py +885 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/parity.json +46 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/provenance.json +4286 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/instruction.md +8 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_contact_relations.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_contact_roles.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_partners.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_team_members.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_accounts.json +38 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_assets.json +35 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_attachments.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_business_hours.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaign_member_statuses.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaign_members.json +38 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaigns.json +35 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_comments.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_histories.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_milestones.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_statuses.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_team_members.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_team_roles.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_cases.json +42 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_collaboration_group_members.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_collaboration_groups.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_addresses.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_emails.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_phones.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contacts.json +34 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_document_links.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_documents.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_folders.json +13 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_notes.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_versions.json +24 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_workspaces.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contract_contact_roles.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contract_line_items.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contracts.json +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_dashboards.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_documents.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_message_relations.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_messages.json +21 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_templates.json +24 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_entitlements.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_events.json +26 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_feed_comments.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_feed_items.json +24 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_fiscal_year_settings.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_folders.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_group_members.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_groups.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_holidays.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_individuals.json +21 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_lead_statuses.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_leads.json +45 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_list_views.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_login_histories.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_milestone_types.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_notes.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_object_territory_associations.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunities.json +48 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_competitors.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_contact_roles.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_field_histories.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_histories.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_line_items.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_partners.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_stages.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_team_members.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_order_items.json +33 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_orders.json +44 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_organizations.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_partners.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_periods.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_permission_set_assignments.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_permission_sets.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_pricebook_entries.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_pricebooks.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_products.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_profiles.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_queue_sobjects.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_quote_line_items.json +43 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_quotes.json +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_record_actions.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_record_types.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_reports.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_service_contracts.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_sla_processes.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_solutions.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_priorities.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_relations.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_statuses.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_tasks.json +26 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territories.json +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territory_models.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territory_types.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_topic_assignments.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_topics.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_user_roles.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_user_territory_associations.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_users.json +57 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_web_links.json +26 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_work_order_line_items.json +42 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_work_orders.json +46 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scope.toml +694 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/tests/tools.json +69 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/world.json +21263 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/api/handlers.py +630 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/connector.toml +266 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/handlers.py +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/provenance.json +245 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/instruction.md +15 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/scenario.toml +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/10-snow_users.json +268 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/11-snow_user_groups.json +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/20-snow_configuration_items.json +684 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/30-snow_catalog_categories.json +52 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/31-snow_catalog_items.json +334 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/40-snow_incidents.json +3086 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/41-snow_incident_tasks.json +54 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/42-snow_task_slas.json +64 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/43-snow_problems.json +148 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/44-snow_change_requests.json +364 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/45-snow_knowledge_articles.json +214 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/46-snow_journal_entries.json +1612 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/60-snow_ui_current_users.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/61-snow_ui_navigation_applications.json +187 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/62-snow_ui_home_widgets.json +91 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/63-snow_ui_notifications.json +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/64-snow_ui_employee_center_pages.json +74 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/65-snow_ui_list_layouts.json +54 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/66-snow_ui_search_facets.json +29 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/67-snow_ui_activity_entries.json +1076 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/68-snow_ui_instances.json +9 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scope.toml +166 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/tests/routes.json +272 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/assets/index-5QHcQLCI.css +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/assets/index-BzeVnzFt.js +67 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/cabin-400-700-italic.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/cabin-400-700.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-0-lato-v17-latin-ext_latin-100.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-1-lato-v17-latin-ext_latin-100.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-10-lato-v17-latin-ext_latin-italic.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-11-lato-v17-latin-ext_latin-italic.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-12-lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-13-lato-v17-latin-ext_latin-700.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-14-lato-v17-latin-ext_latin-700italic.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-15-lato-v17-latin-ext_latin-700italic.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-16-source-sans-pro-v11-latin-300.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-17-source-sans-pro-v11-latin-300.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-18-source-sans-pro-v11-latin-regular.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-19-source-sans-pro-v11-latin-regular.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-2-lato-v17-latin-ext_latin-100italic.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-20-source-sans-pro-v11-latin-600.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-21-source-sans-pro-v11-latin-600.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-22-source-sans-pro-v11-latin-700.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-23-source-sans-pro-v11-latin-700.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-3-lato-v17-latin-ext_latin-100italic.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-4-lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-5-lato-v17-latin-ext_latin-300.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-6-lato-v17-latin-ext_latin-300italic.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-7-lato-v17-latin-ext_latin-300italic.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-8-lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-9-lato-v17-latin-ext_latin-regular.woff +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/index.json +122 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-300.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-600-italic.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-600.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-bold-italic.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-bold.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-normal-italic.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-normal.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/appsee-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/arrow-up-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/available.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/bell-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/caret-down-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/check-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/chevron-right-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-close-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-info-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-question-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circleinfooutline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/ellipsis-v-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/eye-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-bell-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-caret-down-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-check-square.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-chevron-right.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-clock-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-comment-chat.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-external-link.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-facebook.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-heart-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-heart-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-home-fill-teal.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-home-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-linkedin.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-list-alt-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-pencil-square.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-question-circle-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-times.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-twitter.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/filter-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/gear-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/globe-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/home-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-2.svg +17 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-3.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-4.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon.svg +45 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/keyboard-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/link-icon-associated-to-view-all-adoption-blueprints.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/link-icon-associated-to-view-all-applications.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/list-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/loading-2.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/loading.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/magnifying-glass-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/ongoing-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/open-link-right-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/open-link-right-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/pencil-page-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/plus-fill.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/serverbox-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/servicenow-wordmark.svg +20 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/signal-live-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/square-arrow-left-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/star-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/sync-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/task-slas-related-list.svg +24 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/thumbtack-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/trending-downward.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/trending-neutral.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-all-menu.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-favorites-menu.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-history-menu.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/user-outline.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/adoption-blueprints.svg +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/avatar-admin.jpg +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/now-assist-admin.svg +17 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-desk.jpg +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-password.jpg +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-status.jpg +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-accessories.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-computers.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-developer.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-email.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-phone.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-software-catalog.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-software.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-technology.svg +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/index.html +36 -0
- package/runtime/gatewaysdk/environment/schema/connectors/servicenow/world.json +2004 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/MODEL.md +264 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/api/handlers.py +1880 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/capabilities.json +1056 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/connector.toml +892 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/handlers.py +762 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/parity.json +65 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/provenance.json +349 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/scenario.toml +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_apps.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_bookmarks.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_bots.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_channels.json +206 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_conversation_states.json +50 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_emojis.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_message_files.json +12 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_message_threads.json +11 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_messages.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_channel_observations.json +16 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_reaction_summaries.json +10 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_reaction_users.json +10 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_shares.json +29 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_user_states.json +10 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_files.json +64 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_memberships.json +79 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_files.json +18 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_threads.json +10 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_user_states.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_messages.json +127 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_pins.json +11 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_presence.json +35 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_reaction_summaries.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_reaction_users.json +32 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_scheduled_message_threads.json +10 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_scheduled_messages.json +15 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_unavailable_message_files.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_user_profile_fields.json +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroup_channels.json +10 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroup_memberships.json +14 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroups.json +33 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_users.json +228 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_view_state_entries.json +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_views.json +53 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_workspaces.json +37 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/scope.toml +48 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/api.json +177 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/test_threads.py +49 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/tools.json +92 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/assets/index-BSqGskph.css +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/assets/index-CKQh1igo.js +81 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/README.md +15 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-black.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-bold.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-black.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-bold.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-light.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-light.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-regular.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/slack-icons-v2.woff2 +0 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/index.html +35 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/vendor-openapi.json +12515 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/world.json +5381 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/api/handlers.py +175 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/connector.toml +610 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/handlers.py +75 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/parity.json +69 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/provenance.json +407 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/instruction.md +10 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/scenario.toml +2 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_compensations.json +219 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_job_profiles.json +76 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_locations.json +142 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_organizations.json +124 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_positions.json +280 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_absence_leaves.json +66 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_business_title_changes.json +44 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_check_in_topics.json +48 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_check_ins.json +46 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_countries.json +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_currencies.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_change_reasons.json +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_families.json +40 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_profiles.json +202 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_jobs.json +120 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_organization_types.json +19 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_organizations.json +24 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_persons.json +100 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_scorecard_results.json +57 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_scorecards.json +68 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_supervisory_organizations.json +64 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_time_off_details.json +112 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_time_off_entries.json +91 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_worker_history_events.json +58 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_workers.json +90 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_time_off_requests.json +181 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_workers.json +492 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/scope.toml +344 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/tests/tools.json +81 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/vendor-openapi.json +10646 -0
- package/runtime/gatewaysdk/environment/schema/connectors/workday/world.json +4186 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/api/handlers.py +1183 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/connector.toml +645 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/handlers.py +377 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/instruction.md +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/scenario.toml +3 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_brands.json +25 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_group_memberships.json +49 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_groups.json +37 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_macros.json +154 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_organizations.json +65 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_ticket_audits.json +3328 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_ticket_comments.json +2642 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_tickets.json +1439 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_users.json +624 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_views.json +510 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_workspace_tabs.json +10 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/assets/index-JWq7XNO5.css +1 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/assets/index-bn8ezNTi.js +67 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/index.html +22 -0
- package/runtime/gatewaysdk/environment/schema/connectors/zendesk/world.json +1707 -0
- package/runtime/gatewaysdk/environment/schema/data.py +907 -0
- package/runtime/gatewaysdk/environment/schema/dependencies.py +235 -0
- package/runtime/gatewaysdk/environment/schema/extract.py +263 -0
- package/runtime/gatewaysdk/environment/schema/host.py +2571 -0
- package/runtime/gatewaysdk/environment/schema/host_surfaces.py +320 -0
- package/runtime/gatewaysdk/environment/schema/ingest.py +528 -0
- package/runtime/gatewaysdk/environment/schema/local.py +536 -0
- package/runtime/gatewaysdk/environment/schema/mapping.py +944 -0
- package/runtime/gatewaysdk/environment/schema/platform.py +1748 -0
- package/runtime/gatewaysdk/environment/schema/reconcile.py +202 -0
- package/runtime/gatewaysdk/environment/schema/redaction.py +378 -0
- package/runtime/gatewaysdk/environment/schema/scaffold.py +311 -0
- package/runtime/gatewaysdk/environment/schema/skill.py +119 -0
- package/runtime/gatewaysdk/environment/schema/skills/agents/connector-template-author.md +202 -0
- package/runtime/gatewaysdk/environment/schema/skills/benchmarks-getting-started/SKILL.md +391 -0
- package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/CONNECTORS.md +364 -0
- package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/CONVENTIONS.md +100 -0
- package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/SKILL.md +363 -0
- package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/ROWS.md +243 -0
- package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/SKILL.md +460 -0
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/SKILL.md +500 -0
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/cli-mcp-map.md +49 -0
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/ui-map.md +18 -0
- package/runtime/gatewaysdk/environment/schema/slack.py +757 -0
- package/runtime/gatewaysdk/environment/schema/snapshot.py +479 -0
- package/runtime/gatewaysdk/environment/schema/store.py +1004 -0
- package/runtime/gatewaysdk/environment/schema/tasks.py +530 -0
- package/runtime/gatewaysdk/environment/schema/tools_world.py +689 -0
- package/runtime/gatewaysdk/environment/schema/transform.py +200 -0
- package/runtime/gatewaysdk/environment/schema/transforms.py +103 -0
- package/runtime/gatewaysdk/environment/schema/ui.py +455 -0
- package/runtime/gatewaysdk/environment/schema/ui_static/app.js +581 -0
- package/runtime/gatewaysdk/environment/schema/ui_static/index.html +72 -0
- package/runtime/gatewaysdk/environment/schema/validation.py +624 -0
- package/runtime/gatewaysdk/environment/schema/worker.py +78 -0
- package/runtime/gatewaysdk/environment/schema/workers.py +500 -0
- package/runtime/gatewaysdk/environment/schema/world_tests.py +530 -0
- package/skills/agents/connector-template-author.md +202 -0
- package/skills/benchmarks-getting-started/SKILL.md +391 -0
- package/skills/connector-schema-authoring/CONNECTORS.md +364 -0
- package/skills/connector-schema-authoring/CONVENTIONS.md +100 -0
- package/skills/connector-schema-authoring/SKILL.md +363 -0
- package/skills/connector-schema-authoring/connector-worlds.md +355 -0
- package/skills/connector-schema-authoring/world-schema.md +620 -0
- package/skills/world-data-ingestion/ROWS.md +243 -0
- package/skills/world-data-ingestion/SKILL.md +460 -0
- package/skills/worlds-getting-started/SKILL.md +500 -0
- package/skills/worlds-getting-started/references/cli-mcp-map.md +49 -0
- package/skills/worlds-getting-started/references/ui-map.md +18 -0
|
@@ -0,0 +1,1116 @@
|
|
|
1
|
+
"""Custom connections: describe a vendor API once, capture what the agent's
|
|
2
|
+
operations return, and seed the world from those captures through the schema.
|
|
3
|
+
|
|
4
|
+
The same ``connector.toml`` serves the CLI here, the world's own API
|
|
5
|
+
(``gateway worlds serve``) and the platform's custom source later, so a
|
|
6
|
+
connection is described once::
|
|
7
|
+
|
|
8
|
+
[connector]
|
|
9
|
+
slug = "spycloud"
|
|
10
|
+
base_url = "https://api.spycloud.io/investigations-v2"
|
|
11
|
+
|
|
12
|
+
[auth]
|
|
13
|
+
scheme = "header" # header | bearer | basic | query | none
|
|
14
|
+
name = "x-api-key" # header or query parameter that carries the secret
|
|
15
|
+
secret_env = "SPYCLOUD_API_KEY"
|
|
16
|
+
headers = { "X-App-Token" = "SPYCLOUD_APP_TOKEN" } # more credential headers, each named by an env var
|
|
17
|
+
|
|
18
|
+
[capture]
|
|
19
|
+
requests_per_minute = 30 # pacing between requests; providers ask us to be sparing
|
|
20
|
+
timeout_seconds = 30
|
|
21
|
+
max_pages = 5
|
|
22
|
+
cursor_param = "cursor" # optional: cursor pagination, request side
|
|
23
|
+
cursor_field = "cursor" # optional: cursor pagination, response side ('' or null ends)
|
|
24
|
+
|
|
25
|
+
[redact]
|
|
26
|
+
hash = ["email", "password"] # replaced by "sha256:<hex>" salted with the slug, at any depth
|
|
27
|
+
drop = ["ssn"] # removed at any depth
|
|
28
|
+
preserve = ["account_number"] # hashed shape-preservingly: same length, digits stay digits,
|
|
29
|
+
# letters stay letters, separators stay, so the value still
|
|
30
|
+
# matches the field's format and length bounds
|
|
31
|
+
|
|
32
|
+
[[operations]]
|
|
33
|
+
name = "get_records_by_email"
|
|
34
|
+
method = "GET"
|
|
35
|
+
path = "/breach/data/emails/{email}"
|
|
36
|
+
params = ["since", "until", "severity[]"] # a [] suffix: the vendor repeats the key (severity[]=a&severity[]=b)
|
|
37
|
+
entity = "spycloud_records" # optional: rows land in this entity on ingest
|
|
38
|
+
results = "results" # dotted path to the row array; "" means the body is the row
|
|
39
|
+
[operations.ingest]
|
|
40
|
+
drop = ["channels"] # vendor fields the entity does not carry (they are modelled elsewhere)
|
|
41
|
+
carry_args = { account_id = "id" } # row field <- the capture's path argument or query parameter
|
|
42
|
+
[[operations.ingest.explode]]
|
|
43
|
+
field = "channels" # a nested array on the row becomes rows of a child entity
|
|
44
|
+
entity = "spycloud_memberships"
|
|
45
|
+
carry = { user_id = "id" } # child field = parent row field
|
|
46
|
+
take = { channel_id = "id" } # child field = nested item field
|
|
47
|
+
|
|
48
|
+
Captures are written under ``captures/<operation>/`` with the secret stripped
|
|
49
|
+
from the recorded request, a redacted body, and a manifest; every response is
|
|
50
|
+
recorded, including errors, because the vendor's error bodies are part of what
|
|
51
|
+
the world must reproduce. ``ingest`` turns the successful captures into the
|
|
52
|
+
world's ``data/initial.json`` batch, proving it applies through the contract in
|
|
53
|
+
a scratch database before the file is written; ``check`` is its dry run, which
|
|
54
|
+
reports every violation of every capture (records shaped like the ones
|
|
55
|
+
``data import --report`` writes) and writes nothing. Nothing here imports beyond
|
|
56
|
+
the standard library, so the credential-free bridge can load it.
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
from __future__ import annotations
|
|
60
|
+
|
|
61
|
+
import base64
|
|
62
|
+
import hashlib
|
|
63
|
+
import json
|
|
64
|
+
import os
|
|
65
|
+
import re
|
|
66
|
+
import shutil
|
|
67
|
+
import tempfile
|
|
68
|
+
import time
|
|
69
|
+
import tomllib
|
|
70
|
+
import urllib.error
|
|
71
|
+
import urllib.parse
|
|
72
|
+
import urllib.request
|
|
73
|
+
from dataclasses import dataclass, field
|
|
74
|
+
from datetime import datetime, timezone
|
|
75
|
+
from pathlib import Path
|
|
76
|
+
from typing import Any, Callable
|
|
77
|
+
|
|
78
|
+
from .compiler import check_bundle, compile_bundle
|
|
79
|
+
from .store import SQLiteStore
|
|
80
|
+
from .transforms import apply_transforms
|
|
81
|
+
from .validation import ContractError, fail
|
|
82
|
+
|
|
83
|
+
SPEC = "connector.toml"
|
|
84
|
+
CAPTURES = "captures"
|
|
85
|
+
MANIFEST = "manifest.json"
|
|
86
|
+
SCHEMES = ("header", "bearer", "basic", "query", "oauth2", "none")
|
|
87
|
+
DEFAULT_TOKEN_PATH = "/oauth/token"
|
|
88
|
+
METHODS = ("GET", "POST", "PUT", "PATCH", "DELETE")
|
|
89
|
+
SLUG = re.compile(r"^[a-z][a-z0-9-]*$")
|
|
90
|
+
NAME = re.compile(r"^[a-z][a-z0-9_]*$")
|
|
91
|
+
#: Vendor-named things — query parameters, path arguments, redacted fields — keep the
|
|
92
|
+
#: vendor's casing (``startDate``, ``Limit``); only our own operation names are snake_case.
|
|
93
|
+
FIELD = re.compile(r"^[A-Za-z_][A-Za-z0-9_-]*$")
|
|
94
|
+
#: A declared query parameter may end in ``[]``: vendors (Brex, Stripe, PHP-style APIs)
|
|
95
|
+
#: document repeated keys as ``expand[]=a&expand[]=b``, and a world that cannot declare
|
|
96
|
+
#: the name cannot capture, match or filter on it.
|
|
97
|
+
PARAM = re.compile(r"^[A-Za-z_][A-Za-z0-9_-]*(\[\])?$")
|
|
98
|
+
PLACEHOLDER = re.compile(r"\{([A-Za-z_][A-Za-z0-9_]*)\}")
|
|
99
|
+
#: Query parameters as sent: an ordered list of (name, value) pairs, so a repeated
|
|
100
|
+
#: key (``expand[]=a&expand[]=b``) survives; a dict is accepted wherever pairs are.
|
|
101
|
+
Params = list[tuple[str, str]]
|
|
102
|
+
MAX_BODY = 8 * 1024 * 1024
|
|
103
|
+
RECORDED_HEADERS = ("content-type", "retry-after", "x-ratelimit-limit", "x-ratelimit-remaining", "x-ratelimit-reset")
|
|
104
|
+
|
|
105
|
+
Opener = Callable[[urllib.request.Request, float], "Response"]
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
@dataclass(frozen=True)
|
|
109
|
+
class Response:
|
|
110
|
+
status: int
|
|
111
|
+
headers: dict[str, str]
|
|
112
|
+
body: bytes
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
@dataclass(frozen=True)
|
|
116
|
+
class Explode:
|
|
117
|
+
field: str
|
|
118
|
+
entity: str
|
|
119
|
+
carry: dict[str, str]
|
|
120
|
+
take: dict[str, str]
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
@dataclass(frozen=True)
|
|
124
|
+
class Operation:
|
|
125
|
+
name: str
|
|
126
|
+
method: str
|
|
127
|
+
path: str
|
|
128
|
+
params: tuple[str, ...]
|
|
129
|
+
entity: str | None
|
|
130
|
+
results: str
|
|
131
|
+
drop: tuple[str, ...] = ()
|
|
132
|
+
explode: tuple[Explode, ...] = ()
|
|
133
|
+
#: row field <- name of a path argument or query parameter of the capture. A cash
|
|
134
|
+
#: statement only knows its account from the ``{id}`` it was fetched under (Brex
|
|
135
|
+
#: retrospective); the captured row never carries it, so ingest stamps it on.
|
|
136
|
+
carry_args: dict[str, str] = field(default_factory=dict)
|
|
137
|
+
#: Every verb the served route answers (``methods = ["GET", "POST"]``); ``method``
|
|
138
|
+
#: is one of them and the one a capture sends. Slack's Web API takes a read as
|
|
139
|
+
#: GET or POST alike, and its clients post everything.
|
|
140
|
+
methods: tuple[str, ...] = ()
|
|
141
|
+
|
|
142
|
+
def __post_init__(self) -> None:
|
|
143
|
+
if not self.methods:
|
|
144
|
+
object.__setattr__(self, "methods", (self.method,))
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def placeholders(self) -> tuple[str, ...]:
|
|
148
|
+
return tuple(PLACEHOLDER.findall(self.path))
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
@dataclass(frozen=True)
|
|
152
|
+
class Spec:
|
|
153
|
+
slug: str
|
|
154
|
+
base_url: str
|
|
155
|
+
scheme: str
|
|
156
|
+
auth_name: str | None
|
|
157
|
+
secret_env: str | None
|
|
158
|
+
extra_headers: dict[str, str] # header name -> env var holding its value
|
|
159
|
+
#: oauth2 only: where the client-credentials grant is exchanged (absolute, or a
|
|
160
|
+
#: path under base_url), the env var naming the client id, and the scope asked for.
|
|
161
|
+
token_url: str | None
|
|
162
|
+
client_id_env: str | None
|
|
163
|
+
scope: str | None
|
|
164
|
+
requests_per_minute: int
|
|
165
|
+
timeout_seconds: float
|
|
166
|
+
max_pages: int
|
|
167
|
+
cursor_param: str | None
|
|
168
|
+
cursor_field: str | None
|
|
169
|
+
cursor_header: str | None
|
|
170
|
+
hash_fields: frozenset[str]
|
|
171
|
+
drop_fields: frozenset[str]
|
|
172
|
+
round_fields: dict[str, int] = field(default_factory=dict) # numeric field -> decimals kept
|
|
173
|
+
preserve_fields: frozenset[str] = frozenset() # hashed keeping length and character class
|
|
174
|
+
operations: dict[str, Operation] = field(default_factory=dict)
|
|
175
|
+
|
|
176
|
+
def operation(self, name: str) -> Operation:
|
|
177
|
+
if name not in self.operations:
|
|
178
|
+
fail("operation", f"Unknown operation; choose one of {', '.join(sorted(self.operations))}", "/capture/op")
|
|
179
|
+
return self.operations[name]
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
# ---------------------------------------------------------------- spec
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
def _table(value: Any, location: str) -> dict:
|
|
186
|
+
if not isinstance(value, dict):
|
|
187
|
+
fail("spec", "Expected a table", location)
|
|
188
|
+
return value
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def _string(table: dict, key: str, location: str, *, default: str | None = None, required: bool = True) -> str | None:
|
|
192
|
+
if key not in table:
|
|
193
|
+
if required:
|
|
194
|
+
fail("spec", f"Missing {key}", location)
|
|
195
|
+
return default
|
|
196
|
+
value = table[key]
|
|
197
|
+
if not isinstance(value, str) or not value.strip():
|
|
198
|
+
fail("spec", f"{key} must be a non-empty string", f"{location}/{key}")
|
|
199
|
+
return value.strip()
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
RedactTable = tuple[frozenset[str], frozenset[str], dict[str, int], frozenset[str]]
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
def parse_redact(value: Any, location: str) -> RedactTable:
|
|
206
|
+
"""A ``[redact]`` table as ``(hash, drop, round, preserve)`` — the one grammar for
|
|
207
|
+
the policy wherever it is declared (``connector.toml`` for a vendor world,
|
|
208
|
+
``gateway-env.toml`` for a tools-only schema world)."""
|
|
209
|
+
redact = _table(value, location)
|
|
210
|
+
hash_fields = frozenset(_paths(redact, "hash", location))
|
|
211
|
+
drop_fields = frozenset(_paths(redact, "drop", location))
|
|
212
|
+
rounding = redact.get("round", {})
|
|
213
|
+
if not isinstance(rounding, dict) or not all(
|
|
214
|
+
isinstance(k, str) and FIELD.match(k) and isinstance(v, int) and not isinstance(v, bool) and 0 <= v <= 10
|
|
215
|
+
for k, v in rounding.items()
|
|
216
|
+
):
|
|
217
|
+
fail("spec", "redact.round maps numeric field names to the decimals kept (0-10)", f"{location}/round")
|
|
218
|
+
preserve_fields = frozenset(_paths(redact, "preserve", location))
|
|
219
|
+
policies = (hash_fields, drop_fields, frozenset(rounding), preserve_fields)
|
|
220
|
+
if sum(len(policy) for policy in policies) != len(frozenset().union(*policies)):
|
|
221
|
+
fail("spec", "A field is hashed, dropped, rounded or preserved, never two of those", location)
|
|
222
|
+
return hash_fields, drop_fields, dict(rounding), preserve_fields
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
def _paths(table: dict, key: str, location: str) -> tuple[str, ...]:
|
|
226
|
+
"""Redaction names: a bare field name matches at any depth; a dotted path
|
|
227
|
+
(``results.*.email``, ``*`` for list items) matches that place only, so the
|
|
228
|
+
catalog's ``assets`` count map keeps its ``email`` key while records lose theirs."""
|
|
229
|
+
value = table.get(key, [])
|
|
230
|
+
if not isinstance(value, list) or not all(
|
|
231
|
+
isinstance(v, str) and all(part == "*" or FIELD.match(part) for part in v.split(".")) and v for v in value
|
|
232
|
+
):
|
|
233
|
+
fail("spec", f"{key} must be a list of field names or dotted paths", f"{location}/{key}")
|
|
234
|
+
return tuple(value)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def _verbs(table: dict, location: str) -> tuple[str, ...]:
|
|
238
|
+
"""``methods = ["GET", "POST"]``: every verb the route answers, or nothing declared."""
|
|
239
|
+
value = table.get("methods")
|
|
240
|
+
if value is None:
|
|
241
|
+
return ()
|
|
242
|
+
if not isinstance(value, list) or not value or not all(isinstance(v, str) for v in value):
|
|
243
|
+
fail("spec", "methods must be a non-empty list of verbs", f"{location}/methods")
|
|
244
|
+
verbs = tuple(v.upper() for v in value)
|
|
245
|
+
for verb in verbs:
|
|
246
|
+
if verb not in METHODS:
|
|
247
|
+
fail("spec", f"methods must be among {', '.join(METHODS)}", f"{location}/methods")
|
|
248
|
+
if len(set(verbs)) != len(verbs):
|
|
249
|
+
fail("spec", "methods repeats a verb", f"{location}/methods")
|
|
250
|
+
return verbs
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
def _names(table: dict, key: str, location: str, pattern: re.Pattern = FIELD) -> tuple[str, ...]:
|
|
254
|
+
value = table.get(key, [])
|
|
255
|
+
if not isinstance(value, list) or not all(isinstance(v, str) and pattern.match(v) for v in value):
|
|
256
|
+
fail("spec", f"{key} must be a list of field names", f"{location}/{key}")
|
|
257
|
+
if len(set(value)) != len(value):
|
|
258
|
+
fail("spec", f"{key} repeats a name", f"{location}/{key}")
|
|
259
|
+
return tuple(value)
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
def pairs_of(params: Any) -> Params:
|
|
263
|
+
"""Query parameters as an ordered list of ``(name, value)`` pairs.
|
|
264
|
+
|
|
265
|
+
Accepts the pairs themselves (lists or tuples of two strings) or the older
|
|
266
|
+
``{name: value}`` dict, which cannot say ``expand[]=a&expand[]=b``."""
|
|
267
|
+
if params is None:
|
|
268
|
+
return []
|
|
269
|
+
if isinstance(params, dict):
|
|
270
|
+
items = list(params.items())
|
|
271
|
+
elif isinstance(params, (list, tuple)):
|
|
272
|
+
items = [tuple(item) if isinstance(item, (list, tuple)) else item for item in params]
|
|
273
|
+
else:
|
|
274
|
+
fail("capture", "params are name=value pairs or a {name: value} mapping", "/capture/params")
|
|
275
|
+
for item in items:
|
|
276
|
+
if not (isinstance(item, tuple) and len(item) == 2 and all(isinstance(part, str) for part in item)):
|
|
277
|
+
fail("capture", "params are name=value pairs or a {name: value} mapping", "/capture/params")
|
|
278
|
+
return items # type: ignore[return-value]
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
def recorded_params(params: Params) -> dict[str, Any]:
|
|
282
|
+
"""How a capture record writes the query it sent: ``{name: value}``, a list of
|
|
283
|
+
values under a name sent more than once. The recorded URL keeps the exact order."""
|
|
284
|
+
out: dict[str, Any] = {}
|
|
285
|
+
for name, value in params:
|
|
286
|
+
if name not in out:
|
|
287
|
+
out[name] = value
|
|
288
|
+
elif isinstance(out[name], list):
|
|
289
|
+
out[name].append(value)
|
|
290
|
+
else:
|
|
291
|
+
out[name] = [out[name], value]
|
|
292
|
+
return out
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
def _positive(table: dict, key: str, location: str, default: int | float, *, zero_ok: bool = False) -> int | float:
|
|
296
|
+
value = table.get(key, default)
|
|
297
|
+
if isinstance(value, bool) or not isinstance(value, (int, float)) or value < 0 or (value == 0 and not zero_ok):
|
|
298
|
+
fail("spec", f"{key} must be a positive number", f"{location}/{key}")
|
|
299
|
+
return value
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
def parse_spec(text: str) -> Spec:
|
|
303
|
+
try:
|
|
304
|
+
raw = tomllib.loads(text)
|
|
305
|
+
except tomllib.TOMLDecodeError as error:
|
|
306
|
+
fail("spec", f"connector.toml is not valid TOML: {error}", "/connector.toml")
|
|
307
|
+
connector = _table(raw.get("connector"), "/connector")
|
|
308
|
+
slug = _string(connector, "slug", "/connector")
|
|
309
|
+
if not SLUG.match(slug):
|
|
310
|
+
fail("spec", "slug must be lowercase letters, digits and hyphens", "/connector/slug")
|
|
311
|
+
base_url = _string(connector, "base_url", "/connector")
|
|
312
|
+
parsed = urllib.parse.urlsplit(base_url)
|
|
313
|
+
if parsed.scheme not in ("https", "http") or not parsed.netloc or parsed.query or parsed.fragment:
|
|
314
|
+
fail("spec", "base_url must be an http(s) origin with an optional path and no query", "/connector/base_url")
|
|
315
|
+
|
|
316
|
+
auth = _table(raw.get("auth", {"scheme": "none"}), "/auth")
|
|
317
|
+
scheme = _string(auth, "scheme", "/auth")
|
|
318
|
+
if scheme not in SCHEMES:
|
|
319
|
+
fail("spec", f"auth.scheme must be one of {', '.join(SCHEMES)}", "/auth/scheme")
|
|
320
|
+
auth_name = _string(auth, "name", "/auth", required=scheme in ("header", "query"))
|
|
321
|
+
secret_env = _string(auth, "secret_env", "/auth", required=scheme != "none")
|
|
322
|
+
if scheme == "none" and (auth_name or secret_env):
|
|
323
|
+
fail("spec", "auth.scheme none takes no name or secret_env", "/auth")
|
|
324
|
+
token_url = _string(auth, "token_url", "/auth", default=DEFAULT_TOKEN_PATH, required=False)
|
|
325
|
+
client_id_env = _string(auth, "client_id_env", "/auth", required=scheme == "oauth2")
|
|
326
|
+
scope = _string(auth, "scope", "/auth", required=False)
|
|
327
|
+
if scheme != "oauth2" and (client_id_env or scope or "token_url" in auth):
|
|
328
|
+
fail("spec", "token_url, client_id_env and scope belong to auth.scheme oauth2", "/auth")
|
|
329
|
+
if scheme == "oauth2" and not (token_url or "").startswith(("/", "https://", "http://")):
|
|
330
|
+
fail("spec", "auth.token_url is a path under base_url or an absolute URL", "/auth/token_url")
|
|
331
|
+
extra_headers = auth.get("headers", {})
|
|
332
|
+
if not isinstance(extra_headers, dict) or not all(
|
|
333
|
+
isinstance(k, str) and k.strip() and isinstance(v, str) and v.strip() for k, v in extra_headers.items()
|
|
334
|
+
):
|
|
335
|
+
fail("spec", "auth.headers maps header names to environment variable names", "/auth/headers")
|
|
336
|
+
if auth_name and scheme == "header" and any(k.lower() == auth_name.lower() for k in extra_headers):
|
|
337
|
+
fail("spec", "auth.headers repeats the secret header", "/auth/headers")
|
|
338
|
+
|
|
339
|
+
capture = _table(raw.get("capture", {}), "/capture")
|
|
340
|
+
cursor_param = _string(capture, "cursor_param", "/capture", required=False)
|
|
341
|
+
cursor_field = _string(capture, "cursor_field", "/capture", required=False)
|
|
342
|
+
cursor_header = _string(capture, "cursor_header", "/capture", required=False)
|
|
343
|
+
if cursor_field and cursor_header:
|
|
344
|
+
fail("spec", "The next cursor is read from a body field or a response header, not both", "/capture")
|
|
345
|
+
if bool(cursor_param) != bool(cursor_field or cursor_header):
|
|
346
|
+
fail("spec", "cursor_param comes with cursor_field or cursor_header", "/capture")
|
|
347
|
+
|
|
348
|
+
hash_fields, drop_fields, round_fields, preserve_fields = parse_redact(raw.get("redact", {}), "/redact")
|
|
349
|
+
|
|
350
|
+
operations: dict[str, Operation] = {}
|
|
351
|
+
listed = raw.get("operations", [])
|
|
352
|
+
if not isinstance(listed, list) or not listed:
|
|
353
|
+
fail("spec", "Declare at least one [[operations]] entry", "/operations")
|
|
354
|
+
for index, entry in enumerate(listed):
|
|
355
|
+
location = f"/operations/{index}"
|
|
356
|
+
table = _table(entry, location)
|
|
357
|
+
name = _string(table, "name", location)
|
|
358
|
+
if not NAME.match(name):
|
|
359
|
+
fail("spec", "operation name must be snake_case", f"{location}/name")
|
|
360
|
+
if name in operations:
|
|
361
|
+
fail("spec", f"operation {name} is declared twice", f"{location}/name")
|
|
362
|
+
methods = _verbs(table, location)
|
|
363
|
+
method = _string(table, "method", location, default=methods[0] if methods else "GET", required=False).upper()
|
|
364
|
+
if method not in METHODS:
|
|
365
|
+
fail("spec", f"method must be one of {', '.join(METHODS)}", f"{location}/method")
|
|
366
|
+
if methods and method not in methods:
|
|
367
|
+
fail("spec", f"method {method} must be one of methods ({', '.join(methods)})", f"{location}/method")
|
|
368
|
+
path = _string(table, "path", location)
|
|
369
|
+
if not path.startswith("/") or "?" in path or "#" in path:
|
|
370
|
+
fail("spec", "path must start with / and carry no query", f"{location}/path")
|
|
371
|
+
params = _names(table, "params", location, PARAM)
|
|
372
|
+
entity = _string(table, "entity", location, required=False)
|
|
373
|
+
results = table.get("results", "")
|
|
374
|
+
if not isinstance(results, str):
|
|
375
|
+
fail("spec", "results must be a dotted path string", f"{location}/results")
|
|
376
|
+
for placeholder in PLACEHOLDER.findall(path):
|
|
377
|
+
if placeholder in params:
|
|
378
|
+
fail("spec", f"{placeholder} is both a path argument and a query parameter", location)
|
|
379
|
+
drop, explode, carry_args = _ingest_projection(table.get("ingest", {}), f"{location}/ingest")
|
|
380
|
+
if (drop or explode or carry_args) and not entity:
|
|
381
|
+
fail("spec", "ingest projection needs an entity to land rows in", f"{location}/ingest")
|
|
382
|
+
for source in carry_args.values():
|
|
383
|
+
if source not in PLACEHOLDER.findall(path) and source not in params:
|
|
384
|
+
fail(
|
|
385
|
+
"spec",
|
|
386
|
+
f"ingest.carry_args names {source}, which is neither a path argument nor a parameter",
|
|
387
|
+
f"{location}/ingest/carry_args",
|
|
388
|
+
)
|
|
389
|
+
operations[name] = Operation(
|
|
390
|
+
name, method, path, params, entity, results.strip("."), drop, explode, carry_args, methods
|
|
391
|
+
)
|
|
392
|
+
|
|
393
|
+
return Spec(
|
|
394
|
+
slug=slug,
|
|
395
|
+
base_url=base_url.rstrip("/"),
|
|
396
|
+
scheme=scheme,
|
|
397
|
+
auth_name=auth_name,
|
|
398
|
+
secret_env=secret_env,
|
|
399
|
+
extra_headers=dict(extra_headers),
|
|
400
|
+
token_url=token_url if scheme == "oauth2" else None,
|
|
401
|
+
client_id_env=client_id_env if scheme == "oauth2" else None,
|
|
402
|
+
scope=scope if scheme == "oauth2" else None,
|
|
403
|
+
requests_per_minute=int(_positive(capture, "requests_per_minute", "/capture", 30)),
|
|
404
|
+
timeout_seconds=float(_positive(capture, "timeout_seconds", "/capture", 30)),
|
|
405
|
+
max_pages=int(_positive(capture, "max_pages", "/capture", 5)),
|
|
406
|
+
cursor_param=cursor_param,
|
|
407
|
+
cursor_field=cursor_field,
|
|
408
|
+
cursor_header=cursor_header,
|
|
409
|
+
hash_fields=hash_fields,
|
|
410
|
+
drop_fields=drop_fields,
|
|
411
|
+
round_fields=round_fields,
|
|
412
|
+
preserve_fields=preserve_fields,
|
|
413
|
+
operations=operations,
|
|
414
|
+
)
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
def _mapping(table: dict, key: str, location: str) -> dict[str, str]:
|
|
418
|
+
value = table.get(key, {})
|
|
419
|
+
if not isinstance(value, dict) or not all(
|
|
420
|
+
isinstance(k, str) and isinstance(v, str) and k and v for k, v in value.items()
|
|
421
|
+
):
|
|
422
|
+
fail("spec", f"{key} maps child field names to source field names", f"{location}/{key}")
|
|
423
|
+
return dict(value)
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
def _ingest_projection(raw: Any, location: str) -> tuple[tuple[str, ...], tuple[Explode, ...], dict[str, str]]:
|
|
427
|
+
table = _table(raw, location)
|
|
428
|
+
drop = _names(table, "drop", location)
|
|
429
|
+
carry_args = _mapping(table, "carry_args", location)
|
|
430
|
+
explode: list[Explode] = []
|
|
431
|
+
listed = table.get("explode", [])
|
|
432
|
+
if not isinstance(listed, list):
|
|
433
|
+
fail("spec", "explode must be a list of tables", f"{location}/explode")
|
|
434
|
+
for index, entry in enumerate(listed):
|
|
435
|
+
where = f"{location}/explode/{index}"
|
|
436
|
+
item = _table(entry, where)
|
|
437
|
+
field_name = _string(item, "field", where)
|
|
438
|
+
entity = _string(item, "entity", where)
|
|
439
|
+
carry = _mapping(item, "carry", where)
|
|
440
|
+
take = _mapping(item, "take", where)
|
|
441
|
+
if not carry and not take:
|
|
442
|
+
fail("spec", "explode needs carry or take, or the child rows would be empty", where)
|
|
443
|
+
if set(carry) & set(take):
|
|
444
|
+
fail("spec", "a child field is either carried from the parent or taken from the item", where)
|
|
445
|
+
explode.append(Explode(field_name, entity, carry, take))
|
|
446
|
+
return drop, tuple(explode), carry_args
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
def load_spec(world: str | Path) -> Spec:
|
|
450
|
+
path = Path(world) / SPEC
|
|
451
|
+
if not path.is_file():
|
|
452
|
+
fail("spec", f"No {SPEC} in the world; describe the connection first", f"/{SPEC}")
|
|
453
|
+
return parse_spec(path.read_text(encoding="utf-8"))
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
# ---------------------------------------------------------------- requests
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
def _secret_value(spec: Spec, secret: str | None) -> str:
|
|
460
|
+
if secret is not None:
|
|
461
|
+
return secret
|
|
462
|
+
value = os.environ.get(spec.secret_env or "")
|
|
463
|
+
if not value:
|
|
464
|
+
fail("secret", f"Set {spec.secret_env} to the connection's credential", "/auth/secret_env")
|
|
465
|
+
return value
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
def _secret(spec: Spec, secret: str | None, opener: "Opener | None" = None) -> str | None:
|
|
469
|
+
"""The value the requests carry: the credential itself, or for oauth2 the
|
|
470
|
+
access token minted from it."""
|
|
471
|
+
if spec.scheme == "none":
|
|
472
|
+
return None
|
|
473
|
+
if spec.scheme == "oauth2":
|
|
474
|
+
return mint_token(spec, secret=secret, opener=opener)
|
|
475
|
+
return _secret_value(spec, secret)
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
def build_request(
|
|
479
|
+
spec: Spec,
|
|
480
|
+
operation: Operation,
|
|
481
|
+
args: dict[str, str],
|
|
482
|
+
params: Params | dict[str, str],
|
|
483
|
+
*,
|
|
484
|
+
secret: str | None,
|
|
485
|
+
) -> tuple[urllib.request.Request, str]:
|
|
486
|
+
"""The request to send and the URL to record, which never carries the secret.
|
|
487
|
+
|
|
488
|
+
Query parameters go out as given, repeated keys included; a name the operation
|
|
489
|
+
does not declare is sent too (``undeclared_params`` says which), because the
|
|
490
|
+
vendor's documentation, not the world's declaration, is what a capture probes."""
|
|
491
|
+
missing = [name for name in operation.placeholders if name not in args]
|
|
492
|
+
if missing:
|
|
493
|
+
fail("capture", f"Missing path argument(s): {', '.join(missing)}", "/capture/args")
|
|
494
|
+
extra = [name for name in args if name not in operation.placeholders]
|
|
495
|
+
if extra:
|
|
496
|
+
fail("capture", f"Unknown path argument(s): {', '.join(extra)}", "/capture/args")
|
|
497
|
+
path = PLACEHOLDER.sub(lambda m: urllib.parse.quote(args[m.group(1)], safe=""), operation.path)
|
|
498
|
+
query = list(pairs_of(params))
|
|
499
|
+
recorded = spec.base_url + path + (f"?{urllib.parse.urlencode(query)}" if query else "")
|
|
500
|
+
headers = {"Accept": "application/json", "User-Agent": f"gateway-connector/{spec.slug}"}
|
|
501
|
+
for header, variable in spec.extra_headers.items():
|
|
502
|
+
value = os.environ.get(variable)
|
|
503
|
+
if not value:
|
|
504
|
+
fail("secret", f"Set {variable} for the {header} header", "/auth/headers")
|
|
505
|
+
headers[header] = value
|
|
506
|
+
if spec.scheme == "header":
|
|
507
|
+
headers[spec.auth_name or ""] = secret or ""
|
|
508
|
+
elif spec.scheme in ("bearer", "oauth2"):
|
|
509
|
+
headers["Authorization"] = f"Bearer {secret}"
|
|
510
|
+
elif spec.scheme == "basic":
|
|
511
|
+
headers["Authorization"] = "Basic " + base64.b64encode((secret or "").encode()).decode()
|
|
512
|
+
elif spec.scheme == "query":
|
|
513
|
+
query.append((spec.auth_name or "", secret or ""))
|
|
514
|
+
url = spec.base_url + path + (f"?{urllib.parse.urlencode(query)}" if query else "")
|
|
515
|
+
return urllib.request.Request(url, method=operation.method, headers=headers), recorded
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
def undeclared_params(spec: Spec, operation: Operation, params: Params) -> list[str]:
|
|
519
|
+
"""The caller's parameter names the operation does not declare, in order, once each.
|
|
520
|
+
The cursor parameter is the spec's own; nothing else is exempt."""
|
|
521
|
+
seen: list[str] = []
|
|
522
|
+
for name, _ in params:
|
|
523
|
+
if name not in operation.params and name != spec.cursor_param and name not in seen:
|
|
524
|
+
seen.append(name)
|
|
525
|
+
return seen
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
def token_endpoint(spec: Spec) -> str:
|
|
529
|
+
"""Where an oauth2 connection exchanges its client credentials."""
|
|
530
|
+
url = spec.token_url or DEFAULT_TOKEN_PATH
|
|
531
|
+
return url if url.startswith(("https://", "http://")) else spec.base_url + url
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
def mint_token(spec: Spec, *, secret: str | None = None, opener: "Opener | None" = None) -> str:
|
|
535
|
+
"""Exchange the client credentials for an access token (RFC 6749 §4.4).
|
|
536
|
+
|
|
537
|
+
The client id and secret come from the environment the way every other
|
|
538
|
+
credential does; the token is what the captures then send as a bearer.
|
|
539
|
+
Nothing about the exchange is recorded, so the secret never reaches disk."""
|
|
540
|
+
if spec.scheme != "oauth2":
|
|
541
|
+
fail("secret", "Only an oauth2 connection mints tokens", "/auth/scheme")
|
|
542
|
+
client_id = os.environ.get(spec.client_id_env or "")
|
|
543
|
+
if not client_id:
|
|
544
|
+
fail("secret", f"Set {spec.client_id_env} to the connection's client id", "/auth/client_id_env")
|
|
545
|
+
client_secret = _secret_value(spec, secret)
|
|
546
|
+
form = {"grant_type": "client_credentials", "client_id": client_id, "client_secret": client_secret}
|
|
547
|
+
if spec.scope:
|
|
548
|
+
form["scope"] = spec.scope
|
|
549
|
+
request = urllib.request.Request(
|
|
550
|
+
token_endpoint(spec),
|
|
551
|
+
method="POST",
|
|
552
|
+
data=urllib.parse.urlencode(form).encode(),
|
|
553
|
+
headers={
|
|
554
|
+
"Accept": "application/json",
|
|
555
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
556
|
+
"User-Agent": f"gateway-connector/{spec.slug}",
|
|
557
|
+
},
|
|
558
|
+
)
|
|
559
|
+
response = (opener or _open)(request, spec.timeout_seconds)
|
|
560
|
+
try:
|
|
561
|
+
body = json.loads(response.body.decode("utf-8")) if response.body else {}
|
|
562
|
+
except (UnicodeDecodeError, json.JSONDecodeError):
|
|
563
|
+
body = {}
|
|
564
|
+
token = body.get("access_token") if isinstance(body, dict) else None
|
|
565
|
+
if not (200 <= response.status < 300) or not isinstance(token, str) or not token:
|
|
566
|
+
fail("secret", f"Token endpoint answered {response.status} without an access_token", "/auth/token_url")
|
|
567
|
+
return token
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
def _open(request: urllib.request.Request, timeout: float) -> Response:
|
|
571
|
+
try:
|
|
572
|
+
with urllib.request.urlopen(request, timeout=timeout) as reply:
|
|
573
|
+
return Response(reply.status, {k.lower(): v for k, v in reply.headers.items()}, reply.read(MAX_BODY + 1))
|
|
574
|
+
except urllib.error.HTTPError as error:
|
|
575
|
+
return Response(error.code, {k.lower(): v for k, v in error.headers.items()}, error.read(MAX_BODY + 1))
|
|
576
|
+
except (urllib.error.URLError, TimeoutError, OSError) as error:
|
|
577
|
+
fail("transport", f"Could not reach the connection: {error}", "/capture")
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
# ---------------------------------------------------------------- redaction
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
def _named(key: str, here: str, names: frozenset[str]) -> bool:
|
|
584
|
+
return key in names or here in names
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
def _digest(slug: str, item: Any) -> Any:
|
|
588
|
+
"""The hash of a value, keeping its shape: a list of strings hashes element by
|
|
589
|
+
element (an array stays an array, so the world's contract still accepts the row);
|
|
590
|
+
objects are left alone — name their fields instead."""
|
|
591
|
+
if isinstance(item, list):
|
|
592
|
+
return [_digest(slug, element) for element in item]
|
|
593
|
+
if isinstance(item, dict) or item is None:
|
|
594
|
+
return item
|
|
595
|
+
return f"sha256:{hashlib.sha256(f'{slug}:{item}'.encode()).hexdigest()}"
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
def _shaped(slug: str, item: Any) -> Any:
|
|
599
|
+
"""A format-preserving hash: the same length, every ASCII digit still a digit,
|
|
600
|
+
every ASCII letter still a letter of the same case, everything else (separators,
|
|
601
|
+
punctuation) left in place — deterministic from the digest, so joins still line up.
|
|
602
|
+
|
|
603
|
+
``hash`` turned a 15-digit account number into a 71-character ``sha256:`` string
|
|
604
|
+
that the field's own format and length bounds then refused (Brex retrospective);
|
|
605
|
+
this keeps the redacted value inside the contract. Meant for identifiers (account
|
|
606
|
+
and routing numbers, IBANs, phone numbers); free text stays ``hash``, since a
|
|
607
|
+
non-ASCII character is kept as it is."""
|
|
608
|
+
if isinstance(item, list):
|
|
609
|
+
return [_shaped(slug, element) for element in item]
|
|
610
|
+
if isinstance(item, (dict, bool)) or item is None:
|
|
611
|
+
return item
|
|
612
|
+
text = repr(item) if isinstance(item, float) else str(item)
|
|
613
|
+
seed = f"{slug}:{text}".encode()
|
|
614
|
+
digest, cursor, out = hashlib.sha256(seed).digest(), 0, []
|
|
615
|
+
for char in text:
|
|
616
|
+
if cursor == len(digest):
|
|
617
|
+
digest, cursor = hashlib.sha256(digest + seed).digest(), 0
|
|
618
|
+
byte = digest[cursor]
|
|
619
|
+
cursor += 1
|
|
620
|
+
if "0" <= char <= "9":
|
|
621
|
+
out.append(str(byte % 10))
|
|
622
|
+
elif isinstance(item, str) and "a" <= char <= "z":
|
|
623
|
+
out.append(chr(ord("a") + byte % 26))
|
|
624
|
+
elif isinstance(item, str) and "A" <= char <= "Z":
|
|
625
|
+
out.append(chr(ord("A") + byte % 26))
|
|
626
|
+
else:
|
|
627
|
+
out.append(char)
|
|
628
|
+
if isinstance(item, int):
|
|
629
|
+
if len(out) > 1 and out[0] == "0":
|
|
630
|
+
out[0] = str(1 + digest[0] % 9) # an int keeps its digit count; int() would drop a leading zero
|
|
631
|
+
return int("".join(out))
|
|
632
|
+
if isinstance(item, float):
|
|
633
|
+
return float("".join(out))
|
|
634
|
+
return "".join(out)
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
def redaction_of(spec: Spec, field: str) -> str | None:
|
|
638
|
+
"""The ``[redact]`` policy a field of this name falls under: ``hash``, ``drop``,
|
|
639
|
+
``preserve``, ``round:<decimals>``, or None when it is stored in the clear.
|
|
640
|
+
|
|
641
|
+
Read without a path, so a bare name in the spec counts and so does a dotted path
|
|
642
|
+
whose last segment is the field; policies rank as :func:`redact` applies them."""
|
|
643
|
+
|
|
644
|
+
def named(names: frozenset[str]) -> bool:
|
|
645
|
+
return any(name == field or name.rsplit(".", 1)[-1] == field for name in names)
|
|
646
|
+
|
|
647
|
+
if named(spec.drop_fields):
|
|
648
|
+
return "drop"
|
|
649
|
+
if named(spec.hash_fields):
|
|
650
|
+
return "hash"
|
|
651
|
+
if named(spec.preserve_fields):
|
|
652
|
+
return "preserve"
|
|
653
|
+
if field in spec.round_fields:
|
|
654
|
+
return f"round:{spec.round_fields[field]}"
|
|
655
|
+
return None
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
def stored_forms(
|
|
659
|
+
spec: Spec, field: str, plaintext: Any, transform: list[str] | tuple[str, ...] | None = None
|
|
660
|
+
) -> tuple[Any, ...]:
|
|
661
|
+
"""Every value the store may hold for this field given this plaintext — the one
|
|
662
|
+
place the salt rule lives (``sha256`` of ``"<slug>:<value>"``, no lowercasing, no
|
|
663
|
+
other salt), so a lookup by plaintext resolves the same way everywhere::
|
|
664
|
+
|
|
665
|
+
clear field -> (plaintext,)
|
|
666
|
+
hash -> ("sha256:<hex>",)
|
|
667
|
+
preserve -> (the shape-preserving digest,)
|
|
668
|
+
round -> (round(plaintext, decimals),) for a number, (plaintext,) otherwise
|
|
669
|
+
drop -> ()
|
|
670
|
+
|
|
671
|
+
A ``drop``ped field is not on disk: a lookup on it is a documented miss, not an error.
|
|
672
|
+
|
|
673
|
+
``transform`` — a cross-world mapping's chain (:mod:`.transforms`) — runs over the
|
|
674
|
+
plaintext FIRST, so ``hash`` and ``preserve`` salt the normalised text; ``None`` (or
|
|
675
|
+
an empty chain) is today's behaviour, byte for byte."""
|
|
676
|
+
if transform:
|
|
677
|
+
plaintext = apply_transforms(plaintext, transform)
|
|
678
|
+
policy = redaction_of(spec, field)
|
|
679
|
+
if policy == "drop":
|
|
680
|
+
return ()
|
|
681
|
+
if policy == "hash":
|
|
682
|
+
return (_digest(spec.slug, plaintext),)
|
|
683
|
+
if policy == "preserve":
|
|
684
|
+
return (_shaped(spec.slug, plaintext),)
|
|
685
|
+
if policy is not None and isinstance(plaintext, (int, float)) and not isinstance(plaintext, bool):
|
|
686
|
+
return (round(plaintext, spec.round_fields[field]),)
|
|
687
|
+
return (plaintext,)
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
def redact(value: Any, spec: Spec, path: str = "") -> Any:
|
|
691
|
+
"""Hash, drop, round or shape-preservingly hash the named fields; everything else is untouched.
|
|
692
|
+
|
|
693
|
+
A bare name applies at any depth; a dotted path applies at that place only, with
|
|
694
|
+
``*`` standing for a list item."""
|
|
695
|
+
if isinstance(value, dict):
|
|
696
|
+
out = {}
|
|
697
|
+
for key, item in value.items():
|
|
698
|
+
here = f"{path}.{key}" if path else key
|
|
699
|
+
if _named(key, here, spec.drop_fields):
|
|
700
|
+
continue
|
|
701
|
+
if _named(key, here, spec.hash_fields) and item is not None:
|
|
702
|
+
out[key] = _digest(spec.slug, item)
|
|
703
|
+
elif _named(key, here, spec.preserve_fields) and item is not None:
|
|
704
|
+
out[key] = _shaped(spec.slug, item)
|
|
705
|
+
elif key in spec.round_fields and isinstance(item, (int, float)) and not isinstance(item, bool):
|
|
706
|
+
# Coordinates and the like: keep the shape and the type, lose the precision.
|
|
707
|
+
out[key] = round(item, spec.round_fields[key])
|
|
708
|
+
else:
|
|
709
|
+
out[key] = redact(item, spec, here)
|
|
710
|
+
return out
|
|
711
|
+
if isinstance(value, list):
|
|
712
|
+
return [redact(item, spec, f"{path}.*" if path else "*") for item in value]
|
|
713
|
+
return value
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
def _dig(body: Any, path: str) -> Any:
|
|
717
|
+
for part in [p for p in path.split(".") if p]:
|
|
718
|
+
if not isinstance(body, dict) or part not in body:
|
|
719
|
+
return None
|
|
720
|
+
body = body[part]
|
|
721
|
+
return body
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
# ---------------------------------------------------------------- capture
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
def capture(
|
|
728
|
+
world: str | Path,
|
|
729
|
+
op: str,
|
|
730
|
+
args: dict[str, str] | None = None,
|
|
731
|
+
params: Params | dict[str, str] | None = None,
|
|
732
|
+
*,
|
|
733
|
+
secret: str | None = None,
|
|
734
|
+
max_pages: int | None = None,
|
|
735
|
+
opener: Opener = _open,
|
|
736
|
+
sleep: Callable[[float], None] = time.sleep,
|
|
737
|
+
note: Callable[[str], None] | None = None,
|
|
738
|
+
) -> list[Path]:
|
|
739
|
+
"""Run one operation against the live connection and record every page.
|
|
740
|
+
|
|
741
|
+
Returns the capture files written. Pagination follows the spec's cursor;
|
|
742
|
+
a non-2xx reply is recorded and ends the run, since error bodies are
|
|
743
|
+
evidence too. ``params`` are ``(name, value)`` pairs (a dict is accepted), so a
|
|
744
|
+
key the vendor documents as repeatable is sent repeated. A parameter the
|
|
745
|
+
operation does not declare is still sent — declaring it in ``connector.toml``
|
|
746
|
+
is the world's business, probing the vendor is this call's — and ``note`` is
|
|
747
|
+
told which ones, so a typo is visible rather than refused.
|
|
748
|
+
"""
|
|
749
|
+
root = Path(world)
|
|
750
|
+
spec = load_spec(root)
|
|
751
|
+
operation = spec.operation(op)
|
|
752
|
+
args = dict(args or {})
|
|
753
|
+
params = pairs_of(params)
|
|
754
|
+
credential = _secret(spec, secret, opener)
|
|
755
|
+
undeclared = undeclared_params(spec, operation, params)
|
|
756
|
+
if undeclared and note is not None:
|
|
757
|
+
note(
|
|
758
|
+
f"note: {', '.join(undeclared)} not declared by operation {operation.name} in connector.toml; "
|
|
759
|
+
"sent as given (add to its params to filter on it when the world serves the route)"
|
|
760
|
+
)
|
|
761
|
+
pages = max_pages if max_pages is not None else spec.max_pages
|
|
762
|
+
if pages < 1:
|
|
763
|
+
fail("capture", "max_pages must be at least 1", "/capture/max_pages")
|
|
764
|
+
pause = 60.0 / spec.requests_per_minute
|
|
765
|
+
written: list[Path] = []
|
|
766
|
+
cursor: str | None = None
|
|
767
|
+
for page in range(pages):
|
|
768
|
+
if page:
|
|
769
|
+
sleep(pause)
|
|
770
|
+
page_params = list(params)
|
|
771
|
+
if cursor and cursor.startswith(("https://", "http://")):
|
|
772
|
+
# A vendor that hands back the next page as a URL (DRF's ``next``): follow its
|
|
773
|
+
# query, never its host — the page must come from the connection described.
|
|
774
|
+
following = urllib.parse.urlsplit(cursor)
|
|
775
|
+
if following.netloc != urllib.parse.urlsplit(spec.base_url).netloc:
|
|
776
|
+
fail("capture", f"The next-page URL points at {following.netloc}, not the connection", "/capture")
|
|
777
|
+
page_params = [(k, v) for k, v in urllib.parse.parse_qsl(following.query) if k != (spec.auth_name or "")]
|
|
778
|
+
elif cursor:
|
|
779
|
+
cursor_param = spec.cursor_param or ""
|
|
780
|
+
page_params = [(k, v) for k, v in page_params if k != cursor_param] + [(cursor_param, cursor)]
|
|
781
|
+
request, recorded = build_request(spec, operation, args, page_params, secret=credential)
|
|
782
|
+
response = opener(request, spec.timeout_seconds)
|
|
783
|
+
if len(response.body) > MAX_BODY:
|
|
784
|
+
fail("capture", "Response exceeds 8 MiB; narrow the request", "/capture")
|
|
785
|
+
try:
|
|
786
|
+
body: Any = json.loads(response.body.decode("utf-8")) if response.body else None
|
|
787
|
+
raw_text = None
|
|
788
|
+
except (UnicodeDecodeError, json.JSONDecodeError):
|
|
789
|
+
body, raw_text = None, response.body.decode("utf-8", "replace")[:4096]
|
|
790
|
+
redacted = redact(body, spec)
|
|
791
|
+
stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%S%fZ")
|
|
792
|
+
record = {
|
|
793
|
+
"connector": spec.slug,
|
|
794
|
+
"operation": operation.name,
|
|
795
|
+
"captured_at": datetime.now(timezone.utc).isoformat(timespec="seconds"),
|
|
796
|
+
"request": {
|
|
797
|
+
"method": operation.method,
|
|
798
|
+
"url": recorded,
|
|
799
|
+
"args": args,
|
|
800
|
+
"params": recorded_params(page_params),
|
|
801
|
+
**({"undeclared_params": undeclared} if undeclared else {}),
|
|
802
|
+
},
|
|
803
|
+
"status": response.status,
|
|
804
|
+
"headers": {
|
|
805
|
+
k: v
|
|
806
|
+
for k, v in response.headers.items()
|
|
807
|
+
if k in RECORDED_HEADERS or (spec.cursor_header and k == spec.cursor_header.lower())
|
|
808
|
+
},
|
|
809
|
+
"body": redacted,
|
|
810
|
+
**({"text": raw_text} if raw_text is not None else {}),
|
|
811
|
+
"page": page + 1,
|
|
812
|
+
}
|
|
813
|
+
encoded = json.dumps(record, sort_keys=True, indent=1, ensure_ascii=False).encode("utf-8")
|
|
814
|
+
record_path = root / CAPTURES / operation.name / f"{stamp}-p{page + 1}.json"
|
|
815
|
+
record_path.parent.mkdir(parents=True, exist_ok=True)
|
|
816
|
+
record_path.write_bytes(encoded)
|
|
817
|
+
_append_manifest(root, record_path, record, hashlib.sha256(encoded).hexdigest())
|
|
818
|
+
written.append(record_path)
|
|
819
|
+
if not (200 <= response.status < 300) or not (spec.cursor_field or spec.cursor_header):
|
|
820
|
+
break
|
|
821
|
+
if spec.cursor_header:
|
|
822
|
+
cursor = response.headers.get(spec.cursor_header.lower())
|
|
823
|
+
else:
|
|
824
|
+
cursor = _dig(body, spec.cursor_field or "")
|
|
825
|
+
if not isinstance(cursor, str) or not cursor:
|
|
826
|
+
break
|
|
827
|
+
return written
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
def _append_manifest(root: Path, path: Path, record: dict, sha256: str) -> None:
|
|
831
|
+
manifest_path = root / CAPTURES / MANIFEST
|
|
832
|
+
entries = json.loads(manifest_path.read_text()) if manifest_path.is_file() else []
|
|
833
|
+
entries.append(
|
|
834
|
+
{
|
|
835
|
+
"file": path.relative_to(root).as_posix(),
|
|
836
|
+
"operation": record["operation"],
|
|
837
|
+
"status": record["status"],
|
|
838
|
+
"captured_at": record["captured_at"],
|
|
839
|
+
"sha256": sha256,
|
|
840
|
+
}
|
|
841
|
+
)
|
|
842
|
+
manifest_path.write_text(json.dumps(entries, indent=1) + "\n")
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
# ---------------------------------------------------------------- ingest
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
def _key(contract: Any, entity: str, row: dict) -> tuple | None:
|
|
849
|
+
fields = contract.entities.get(entity, {}).get("primary_key", [])
|
|
850
|
+
if not fields or any(field not in row for field in fields):
|
|
851
|
+
return None
|
|
852
|
+
return tuple(json.dumps(row[field], sort_keys=True) for field in fields)
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
def _mutations(root: Path, spec: Spec, contract: Any, prior: list[dict]) -> list[dict]:
|
|
856
|
+
"""Insert what is new, update what changed, skip what the world already holds."""
|
|
857
|
+
held: dict[tuple[str, tuple], dict] = {}
|
|
858
|
+
for mutation in prior:
|
|
859
|
+
if mutation.get("op") in ("insert", "update") and isinstance(mutation.get("value"), dict):
|
|
860
|
+
key = _key(contract, mutation["entity"], mutation["value"])
|
|
861
|
+
if key is not None:
|
|
862
|
+
held[(mutation["entity"], key)] = mutation["value"]
|
|
863
|
+
mutations: list[dict] = []
|
|
864
|
+
seen: dict[tuple[str, str], str] = {}
|
|
865
|
+
for entry in seeding_entries(root, spec):
|
|
866
|
+
operation = spec.operations[entry["operation"]]
|
|
867
|
+
for entity, row in capture_rows(root, spec, entry):
|
|
868
|
+
identity = hashlib.sha256(json.dumps(row, sort_keys=True).encode()).hexdigest()
|
|
869
|
+
token = (entity, identity)
|
|
870
|
+
if token in seen:
|
|
871
|
+
continue
|
|
872
|
+
seen[token] = entry["file"]
|
|
873
|
+
key = _key(contract, entity, row)
|
|
874
|
+
existing = held.get((entity, key)) if key is not None else None
|
|
875
|
+
if existing == row:
|
|
876
|
+
continue
|
|
877
|
+
mutation = {
|
|
878
|
+
"op": "update" if existing is not None else "insert",
|
|
879
|
+
"entity": entity,
|
|
880
|
+
"value": row,
|
|
881
|
+
"source": {
|
|
882
|
+
"record": f"{spec.slug}:{operation.name}:{identity}",
|
|
883
|
+
"evidence": [{"reference": f"capture:{entry['file']}", "digest": entry["sha256"]}],
|
|
884
|
+
},
|
|
885
|
+
}
|
|
886
|
+
if existing is not None:
|
|
887
|
+
fields = contract.entities[entity]["primary_key"]
|
|
888
|
+
mutation["key"] = {field: row[field] for field in fields}
|
|
889
|
+
mutations.append(mutation)
|
|
890
|
+
return mutations
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
def seeding_entries(root: Path, spec: Spec) -> list[dict]:
|
|
894
|
+
"""The manifest entries that seed: successful captures of operations with an entity."""
|
|
895
|
+
manifest_path = root / CAPTURES / MANIFEST
|
|
896
|
+
if not manifest_path.is_file():
|
|
897
|
+
fail("ingest", "No captures to ingest; run capture first", f"/{CAPTURES}")
|
|
898
|
+
entries = []
|
|
899
|
+
for entry in json.loads(manifest_path.read_text()):
|
|
900
|
+
operation = spec.operations.get(entry["operation"])
|
|
901
|
+
if 200 <= entry["status"] < 300 and operation is not None and operation.entity:
|
|
902
|
+
entries.append(entry)
|
|
903
|
+
return entries
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
def capture_rows(root: Path, spec: Spec, entry: dict) -> list[tuple[str, dict]]:
|
|
907
|
+
"""The entity rows one manifest entry yields, in order: the capture verified against
|
|
908
|
+
its digest, the vendor rows read at the results path, the request's arguments stamped
|
|
909
|
+
on (``carry_args``), then projected (children exploded, dropped fields removed)."""
|
|
910
|
+
operation = spec.operations[entry["operation"]]
|
|
911
|
+
path = root / entry["file"]
|
|
912
|
+
if not path.is_file():
|
|
913
|
+
fail("ingest", f"Capture listed in the manifest is missing: {entry['file']}", f"/{CAPTURES}")
|
|
914
|
+
encoded = path.read_bytes()
|
|
915
|
+
if hashlib.sha256(encoded).hexdigest() != entry["sha256"]:
|
|
916
|
+
fail("ingest", f"Capture changed since it was recorded: {entry['file']}", f"/{CAPTURES}")
|
|
917
|
+
record = json.loads(encoded)
|
|
918
|
+
request = record.get("request") or {}
|
|
919
|
+
context = {**(request.get("params") or {}), **(request.get("args") or {})}
|
|
920
|
+
return response_rows(operation, record["body"], context, entry["file"])
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
def response_rows(
|
|
924
|
+
operation: Operation, body: Any, context: dict[str, Any], where: str, pointer: str = f"/{CAPTURES}"
|
|
925
|
+
) -> list[tuple[str, dict]]:
|
|
926
|
+
"""The entity rows one response body of ``operation`` yields, however it was
|
|
927
|
+
obtained — a capture's recorded body or the result a tool call returned — read at
|
|
928
|
+
the operation's ``results`` path, with the request's arguments (``context``:
|
|
929
|
+
the path arguments and parameters, or the tool call's args) stamped on per
|
|
930
|
+
``carry_args``, then projected (children exploded, dropped fields removed).
|
|
931
|
+
``where`` names the source in a refusal (the capture file, ``records[3]``)."""
|
|
932
|
+
rows = _dig(body, operation.results) if operation.results else body
|
|
933
|
+
if rows is None:
|
|
934
|
+
return []
|
|
935
|
+
if isinstance(rows, dict):
|
|
936
|
+
rows = [rows]
|
|
937
|
+
if not isinstance(rows, list):
|
|
938
|
+
fail("ingest", f"results path {operation.results!r} is not an array in {where}", pointer)
|
|
939
|
+
out: list[tuple[str, dict]] = []
|
|
940
|
+
for raw_row in rows:
|
|
941
|
+
if not isinstance(raw_row, dict):
|
|
942
|
+
fail("ingest", f"A row in {where} is not an object", pointer)
|
|
943
|
+
# The request is the authority for what the author asked to carry: a row that
|
|
944
|
+
# names the field itself is overwritten. A parameter the capture was made
|
|
945
|
+
# without is not stamped; the contract then says whether the row lacks it.
|
|
946
|
+
carried = {name: context[source] for name, source in operation.carry_args.items() if source in context}
|
|
947
|
+
out.extend(_project(operation, {**raw_row, **carried}, where, pointer))
|
|
948
|
+
return out
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
def _project(operation: Operation, raw: dict, file: str, pointer: str = f"/{CAPTURES}") -> list[tuple[str, dict]]:
|
|
952
|
+
"""The entity rows one vendor row yields: children exploded first, then the parent without its dropped fields."""
|
|
953
|
+
out: list[tuple[str, dict]] = []
|
|
954
|
+
for explode in operation.explode:
|
|
955
|
+
items = raw.get(explode.field)
|
|
956
|
+
if items is None:
|
|
957
|
+
continue
|
|
958
|
+
if not isinstance(items, list):
|
|
959
|
+
fail("ingest", f"{explode.field} is not an array in {file}", pointer)
|
|
960
|
+
for item in items:
|
|
961
|
+
if not isinstance(item, dict):
|
|
962
|
+
fail("ingest", f"An item of {explode.field} in {file} is not an object", pointer)
|
|
963
|
+
child = {name: raw.get(source) for name, source in explode.carry.items()}
|
|
964
|
+
child.update({name: item.get(source) for name, source in explode.take.items()})
|
|
965
|
+
out.append((explode.entity, child))
|
|
966
|
+
parent = {k: v for k, v in raw.items() if k not in operation.drop}
|
|
967
|
+
assert operation.entity is not None
|
|
968
|
+
out.append((operation.entity, parent))
|
|
969
|
+
return out
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
def ingest(world: str | Path, *, batch_id: str | None = None) -> dict:
|
|
973
|
+
"""Seed the world from its captures, gated by the contract.
|
|
974
|
+
|
|
975
|
+
The existing ``data/initial.json`` mutations are kept and the captured rows
|
|
976
|
+
appended as a new batch version. The batch is applied in a scratch copy of
|
|
977
|
+
the world first; only a batch the store accepts is written back, and the
|
|
978
|
+
world is recompiled and checked so the lock reflects the new state.
|
|
979
|
+
"""
|
|
980
|
+
root = Path(world)
|
|
981
|
+
spec = load_spec(root)
|
|
982
|
+
contract = compile_bundle(root)
|
|
983
|
+
initial_path = root / "data/initial.json"
|
|
984
|
+
previous = json.loads(initial_path.read_text()) if initial_path.is_file() else None
|
|
985
|
+
prior_mutations = list(previous["mutations"]) if previous else []
|
|
986
|
+
prior_id = previous["id"] if previous else f"{contract.metadata['package']['id']}.initial.v0"
|
|
987
|
+
version = int(re.search(r"\.v(\d+)$", prior_id).group(1)) + 1 if re.search(r"\.v(\d+)$", prior_id) else 1
|
|
988
|
+
fresh = _mutations(root, spec, contract, prior_mutations)
|
|
989
|
+
if not fresh:
|
|
990
|
+
if not prior_mutations:
|
|
991
|
+
fail(
|
|
992
|
+
"ingest",
|
|
993
|
+
"No successful capture maps to an entity; give the operation an entity and results path",
|
|
994
|
+
f"/{CAPTURES}",
|
|
995
|
+
)
|
|
996
|
+
counts = _counts(root, contract)
|
|
997
|
+
return {"batch": prior_id, "mutations": len(prior_mutations), "entity_counts": counts, "changed": False}
|
|
998
|
+
batch_id = batch_id or f"{contract.metadata['package']['id']}.initial.v{version}"
|
|
999
|
+
batch = _batch(contract, spec, batch_id, prior_mutations + fresh)
|
|
1000
|
+
counts = _prove(root, contract, batch)
|
|
1001
|
+
initial_path.write_text(json.dumps(batch, sort_keys=True, indent=1) + "\n")
|
|
1002
|
+
compile_bundle(root)
|
|
1003
|
+
check_bundle(root)
|
|
1004
|
+
return {"batch": batch["id"], "mutations": len(batch["mutations"]), "entity_counts": counts, "changed": True}
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
def _batch(contract: Any, spec: Spec, batch_id: str, mutations: list[dict]) -> dict:
|
|
1008
|
+
return {
|
|
1009
|
+
"id": batch_id,
|
|
1010
|
+
"target": contract.target,
|
|
1011
|
+
"mapping": {"id": f"connector-capture:{spec.slug}", "version": "1"},
|
|
1012
|
+
"coverage": "partial",
|
|
1013
|
+
"mutations": mutations,
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
def _prove(root: Path, contract: Any, batch: dict) -> dict[str, int]:
|
|
1018
|
+
"""Apply the batch in a scratch copy of the world; the entity counts it leaves, or the
|
|
1019
|
+
store's refusal. The world on disk is never touched."""
|
|
1020
|
+
from .._materialize import materialize_template # only ingest needs the parent package
|
|
1021
|
+
|
|
1022
|
+
with tempfile.TemporaryDirectory(prefix="gateway-ingest-") as scratch:
|
|
1023
|
+
staged = Path(scratch) / "world"
|
|
1024
|
+
shutil.copytree(
|
|
1025
|
+
root, staged, ignore=shutil.ignore_patterns(CAPTURES, "__pycache__", "state.sqlite", "state.json")
|
|
1026
|
+
)
|
|
1027
|
+
(staged / "data/initial.json").write_text(json.dumps(batch, sort_keys=True, indent=1) + "\n")
|
|
1028
|
+
compile_bundle(staged)
|
|
1029
|
+
database = Path(scratch) / "world.db"
|
|
1030
|
+
materialize_template(staged, database)
|
|
1031
|
+
with SQLiteStore.open(database, check_bundle(staged)) as store:
|
|
1032
|
+
store.audit()
|
|
1033
|
+
return {entity: len(store.list(entity)) for entity in contract.entities}
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
def check(world: str | Path) -> dict:
|
|
1037
|
+
"""The dry run of :func:`ingest`: every violation of every capture, nothing written.
|
|
1038
|
+
|
|
1039
|
+
``ingest`` stops at the first row the contract refuses, so a customer with forty
|
|
1040
|
+
captures fixed one field per run (Brex retrospective). This validates every row of
|
|
1041
|
+
every seeding capture against the entity's shape (type, bounds, required, unknown
|
|
1042
|
+
property, primary key), and only when every row's shape holds proves the whole batch
|
|
1043
|
+
in a scratch copy for what shape checks cannot see (references, uniqueness). Refusal
|
|
1044
|
+
records are the ones ``data import --report`` writes, plus ``capture`` (the file the
|
|
1045
|
+
row came from); ``chunk`` is null since captures are not chunks. Sorted by capture,
|
|
1046
|
+
entity and pointer.
|
|
1047
|
+
"""
|
|
1048
|
+
from .batch import refusal, shape_refusal
|
|
1049
|
+
from .compiler import build
|
|
1050
|
+
|
|
1051
|
+
root = Path(world)
|
|
1052
|
+
spec = load_spec(root)
|
|
1053
|
+
contract = build(root) # reads the authored tree; compile_bundle would write the lock
|
|
1054
|
+
refusals: list[dict] = []
|
|
1055
|
+
rows = 0
|
|
1056
|
+
entities: dict[str, int] = {}
|
|
1057
|
+
entries = seeding_entries(root, spec)
|
|
1058
|
+
for entry in entries:
|
|
1059
|
+
try:
|
|
1060
|
+
projected = capture_rows(root, spec, entry)
|
|
1061
|
+
except ContractError as error:
|
|
1062
|
+
record = refusal(None, None, None, None, None, error.detail["message"])
|
|
1063
|
+
refusals.append({"capture": entry["file"], **record})
|
|
1064
|
+
continue
|
|
1065
|
+
for index, (entity, row) in enumerate(projected):
|
|
1066
|
+
rows += 1
|
|
1067
|
+
refused = shape_refusal(contract, None, index, entity, row) # type: ignore[arg-type]
|
|
1068
|
+
if refused is not None:
|
|
1069
|
+
refusals.append({"capture": entry["file"], **refused})
|
|
1070
|
+
continue
|
|
1071
|
+
entities[entity] = entities.get(entity, 0) + 1
|
|
1072
|
+
if not refusals and entries:
|
|
1073
|
+
initial_path = root / "data/initial.json"
|
|
1074
|
+
previous = json.loads(initial_path.read_text()) if initial_path.is_file() else None
|
|
1075
|
+
prior = list(previous["mutations"]) if previous else []
|
|
1076
|
+
fresh = _mutations(root, spec, contract, prior)
|
|
1077
|
+
try:
|
|
1078
|
+
_prove(root, contract, _batch(contract, spec, "dry-run", prior + fresh))
|
|
1079
|
+
except ContractError as error:
|
|
1080
|
+
detail = error.detail
|
|
1081
|
+
index = detail.get("index")
|
|
1082
|
+
mutation = None
|
|
1083
|
+
if isinstance(index, int) and len(prior) <= index < len(prior) + len(fresh):
|
|
1084
|
+
mutation = fresh[index - len(prior)]
|
|
1085
|
+
capture_file = mutation["source"]["evidence"][0]["reference"].removeprefix("capture:") if mutation else None
|
|
1086
|
+
entity = mutation["entity"] if mutation else detail.get("entity")
|
|
1087
|
+
row = mutation["value"] if mutation else None
|
|
1088
|
+
field_name = detail["path"][1:] if isinstance(detail.get("path"), str) and len(detail["path"]) > 1 else None
|
|
1089
|
+
refusals.append(
|
|
1090
|
+
{"capture": capture_file, **refusal(None, None, entity, row, field_name, detail["message"], contract)}
|
|
1091
|
+
)
|
|
1092
|
+
refusals.sort(key=lambda r: (r["capture"] or "", r["entity"] or "", r["pointer"]))
|
|
1093
|
+
by_capture: dict[str, int] = {}
|
|
1094
|
+
by_entity: dict[str, int] = {}
|
|
1095
|
+
for record in refusals:
|
|
1096
|
+
by_capture[record["capture"] or ""] = by_capture.get(record["capture"] or "", 0) + 1
|
|
1097
|
+
by_entity[record["entity"] or ""] = by_entity.get(record["entity"] or "", 0) + 1
|
|
1098
|
+
return {
|
|
1099
|
+
"dry_run": True,
|
|
1100
|
+
"changed": False,
|
|
1101
|
+
"captures": len(entries),
|
|
1102
|
+
"rows": rows,
|
|
1103
|
+
"entities": entities,
|
|
1104
|
+
"refusals": refusals,
|
|
1105
|
+
"summary": {"refused": len(refusals), "by_capture": by_capture, "by_entity": by_entity},
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
def _counts(root: Path, contract: Any) -> dict[str, int]:
|
|
1110
|
+
from .._materialize import materialize_template
|
|
1111
|
+
|
|
1112
|
+
with tempfile.TemporaryDirectory(prefix="gateway-ingest-") as scratch:
|
|
1113
|
+
database = Path(scratch) / "world.db"
|
|
1114
|
+
materialize_template(root, database)
|
|
1115
|
+
with SQLiteStore.open(database, contract) as store:
|
|
1116
|
+
return {entity: len(store.list(entity)) for entity in contract.entities}
|