@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,1748 @@
|
|
|
1
|
+
"""Credential-free platform bridge for authored schema bundles.
|
|
2
|
+
|
|
3
|
+
Validation parses Python syntax without importing it. Authored code executes only
|
|
4
|
+
inside the hosted runner or an isolated workbench, never the publication server.
|
|
5
|
+
The stdio protocol deliberately contains bundle bytes and mapping context only.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import ast
|
|
11
|
+
import base64
|
|
12
|
+
import binascii
|
|
13
|
+
import gzip
|
|
14
|
+
import io
|
|
15
|
+
import json
|
|
16
|
+
import os
|
|
17
|
+
import shutil
|
|
18
|
+
import sys
|
|
19
|
+
import tarfile
|
|
20
|
+
import tempfile
|
|
21
|
+
from pathlib import Path, PurePosixPath
|
|
22
|
+
from typing import TYPE_CHECKING, Any
|
|
23
|
+
|
|
24
|
+
from .._materialize import materialize_template
|
|
25
|
+
from . import ContractError, SQLiteStore, bundle_mode, check_bundle, compile_bundle
|
|
26
|
+
from . import snapshot as snapshots
|
|
27
|
+
from .compiler import retarget_empty_journals
|
|
28
|
+
from .redaction import check_world_redaction
|
|
29
|
+
from .validation import (
|
|
30
|
+
digest,
|
|
31
|
+
encoded,
|
|
32
|
+
fail,
|
|
33
|
+
journal_paths,
|
|
34
|
+
members,
|
|
35
|
+
nonempty,
|
|
36
|
+
read_json,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
if TYPE_CHECKING:
|
|
40
|
+
from .compiler import Contract
|
|
41
|
+
from .connector import Spec
|
|
42
|
+
from .dependencies import FieldMap
|
|
43
|
+
from .redaction import RedactPolicy
|
|
44
|
+
|
|
45
|
+
MAX_BYTES = 64 * 1024 * 1024
|
|
46
|
+
MAX_FILES = 2000
|
|
47
|
+
COMMANDS = (
|
|
48
|
+
"validate",
|
|
49
|
+
"validate-archive",
|
|
50
|
+
"init-template",
|
|
51
|
+
"init-template-files",
|
|
52
|
+
"template-summary",
|
|
53
|
+
"describe",
|
|
54
|
+
"compile",
|
|
55
|
+
"apply-batch",
|
|
56
|
+
"build-slack",
|
|
57
|
+
"refresh-slack",
|
|
58
|
+
"capture",
|
|
59
|
+
"import-data",
|
|
60
|
+
"ingest",
|
|
61
|
+
"ingest-calls",
|
|
62
|
+
"conform",
|
|
63
|
+
"reconcile",
|
|
64
|
+
"counts",
|
|
65
|
+
"query",
|
|
66
|
+
"api-bundle",
|
|
67
|
+
"templates",
|
|
68
|
+
"validate-rows",
|
|
69
|
+
"snapshot-build",
|
|
70
|
+
"snapshot-default",
|
|
71
|
+
"run-tests",
|
|
72
|
+
"call",
|
|
73
|
+
"dry-run",
|
|
74
|
+
)
|
|
75
|
+
PLATFORM_MAPPING = {"id": "platform-agent", "version": "1"}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def compile_world(root: Path) -> dict:
|
|
79
|
+
"""Authored files -> generated artifacts, on an arbitrary schema world.
|
|
80
|
+
|
|
81
|
+
The platform stores compiled trees, so a world whose authored inputs changed
|
|
82
|
+
(``schema/world.json``, ``gateway-env.toml``, handlers) is recompiled here
|
|
83
|
+
rather than rejected with ``lock_mismatch``. Only a journal that holds no
|
|
84
|
+
state (``mutations == []``) follows the contract to its new identity, even
|
|
85
|
+
across a changed ``$id`` (``retarget_empty_journals``); a journal with rows is
|
|
86
|
+
refused, never migrated silently — state migration stays manual (re-import
|
|
87
|
+
the rows against the new schema). The snapshots are then rebuilt loudly:
|
|
88
|
+
data the contract refuses is a rejection, not a dropped snapshot.
|
|
89
|
+
"""
|
|
90
|
+
from .snapshot import build_all
|
|
91
|
+
|
|
92
|
+
if bundle_mode(root) is None:
|
|
93
|
+
fail(
|
|
94
|
+
"mode",
|
|
95
|
+
"Expected a schema-backed mock-tools world (gateway-env.toml with [schema] language)",
|
|
96
|
+
)
|
|
97
|
+
added = []
|
|
98
|
+
base = root / "schema/base.json"
|
|
99
|
+
if not base.exists():
|
|
100
|
+
from .scaffold import TEMPLATES
|
|
101
|
+
|
|
102
|
+
base.parent.mkdir(parents=True, exist_ok=True)
|
|
103
|
+
base.write_bytes((TEMPLATES / "base.json").read_bytes())
|
|
104
|
+
added.append("schema/base.json")
|
|
105
|
+
contract = compile_bundle(root, snapshots=False)
|
|
106
|
+
initial = root / "data/initial.json"
|
|
107
|
+
if not initial.exists():
|
|
108
|
+
initial.parent.mkdir(parents=True, exist_ok=True)
|
|
109
|
+
initial.write_bytes(
|
|
110
|
+
encoded(
|
|
111
|
+
{
|
|
112
|
+
"id": f"{contract.metadata['package']['id']}.initial.v1",
|
|
113
|
+
"target": contract.target,
|
|
114
|
+
"mapping": {"id": "empty", "version": "1"},
|
|
115
|
+
"coverage": "partial",
|
|
116
|
+
"mutations": [],
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
)
|
|
120
|
+
added.append("data/initial.json")
|
|
121
|
+
retargeted = retarget_empty_journals(root, contract)
|
|
122
|
+
build_all(root, contract)
|
|
123
|
+
return {"added": added, "retargeted": retargeted}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def append_batch(root: Path, batch: dict, *, source: str | None = None) -> dict:
|
|
127
|
+
"""Validate then append one platform batch as an immutable refresh journal.
|
|
128
|
+
|
|
129
|
+
``target`` is filled from the compiled contract (a caller-supplied one must
|
|
130
|
+
match); ``mapping`` and ``coverage`` default to the platform mapping and
|
|
131
|
+
``partial``. Mutations without ``source`` take ``{"record": "<source>#<n>"}``
|
|
132
|
+
when a source prefix is given, otherwise provenance is required per mutation.
|
|
133
|
+
Replaying every prior journal first makes a repeated batch id idempotent and
|
|
134
|
+
a reused id with different content a conflict, exactly as in the store.
|
|
135
|
+
"""
|
|
136
|
+
contract = check_bundle(root)
|
|
137
|
+
members(
|
|
138
|
+
batch,
|
|
139
|
+
{"id", "target", "mapping", "coverage", "mutations"},
|
|
140
|
+
{"id", "mutations"},
|
|
141
|
+
"/batch",
|
|
142
|
+
)
|
|
143
|
+
nonempty(batch["id"], "/batch/id")
|
|
144
|
+
if "target" in batch and batch["target"] != contract.target:
|
|
145
|
+
fail(
|
|
146
|
+
"batch_target",
|
|
147
|
+
"Batch targets a different domain identity/version/hash",
|
|
148
|
+
"/batch/target",
|
|
149
|
+
)
|
|
150
|
+
if not isinstance(batch["mutations"], list) or not batch["mutations"]:
|
|
151
|
+
fail("batch", "mutations must be a non-empty array", "/batch/mutations")
|
|
152
|
+
mutations = []
|
|
153
|
+
for index, mutation in enumerate(batch["mutations"]):
|
|
154
|
+
if not isinstance(mutation, dict):
|
|
155
|
+
fail("batch", "Each mutation must be an object", f"/batch/mutations/{index}")
|
|
156
|
+
if "source" not in mutation:
|
|
157
|
+
if source is None:
|
|
158
|
+
fail(
|
|
159
|
+
"provenance",
|
|
160
|
+
"Mutation has no source; pass a source prefix or a source.record per mutation",
|
|
161
|
+
f"/batch/mutations/{index}/source",
|
|
162
|
+
)
|
|
163
|
+
mutation = {**mutation, "source": {"record": f"{source}#{index}"}}
|
|
164
|
+
mutations.append(mutation)
|
|
165
|
+
resolved = {
|
|
166
|
+
"id": batch["id"],
|
|
167
|
+
"target": contract.target,
|
|
168
|
+
"mapping": batch.get("mapping", PLATFORM_MAPPING),
|
|
169
|
+
"coverage": batch.get("coverage", "partial"),
|
|
170
|
+
"mutations": mutations,
|
|
171
|
+
}
|
|
172
|
+
journals = journal_paths(root)
|
|
173
|
+
with (
|
|
174
|
+
tempfile.TemporaryDirectory(prefix="gateway-apply-batch-") as temporary,
|
|
175
|
+
SQLiteStore.create(Path(temporary) / "state.sqlite", contract) as store,
|
|
176
|
+
):
|
|
177
|
+
for path in journals:
|
|
178
|
+
store.apply_batch(read_json(path))
|
|
179
|
+
result = store.apply_batch(resolved)
|
|
180
|
+
store.audit()
|
|
181
|
+
if result["status"] == "already_applied":
|
|
182
|
+
return result
|
|
183
|
+
batches = root / "data/batches"
|
|
184
|
+
batches.mkdir(exist_ok=True)
|
|
185
|
+
existing = len(journals) - 1
|
|
186
|
+
target = batches / f"{existing + 1:06d}-{digest(batch['id'].encode())[:16]}.json"
|
|
187
|
+
target.write_bytes(encoded(resolved))
|
|
188
|
+
if snapshots.default_snapshot(root).is_file():
|
|
189
|
+
# The journals grew; a snapshot built before this batch would be served
|
|
190
|
+
# over them. Rebuild so the tree stays one thing (default + scenarios).
|
|
191
|
+
from .compiler import build
|
|
192
|
+
from .snapshot import build_all
|
|
193
|
+
|
|
194
|
+
build_all(root, build(root))
|
|
195
|
+
return {**result, "journal": str(target.relative_to(root))}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def _pinned_state(bundle: Path, contract) -> dict[str, int] | None:
|
|
199
|
+
"""The entity counts of a data-only version whose hosted snapshot is not in the
|
|
200
|
+
tree: ``db/snapshot.json`` alone. The platform audited that snapshot through
|
|
201
|
+
this contract when it built it, so the pin stands in for the state check —
|
|
202
|
+
provided it names this contract; a snapshot built through another contract
|
|
203
|
+
is refused, since the tree's data files cannot reproduce it either. A tree
|
|
204
|
+
that carries its snapshot, or no pin at all, materializes as usual."""
|
|
205
|
+
from .snapshot import contract_hash, current_default, pinned_default
|
|
206
|
+
|
|
207
|
+
pin = pinned_default(bundle)
|
|
208
|
+
if pin is None or current_default(bundle, contract) is not None:
|
|
209
|
+
return None
|
|
210
|
+
if pin.get("contractHash") != contract_hash(contract):
|
|
211
|
+
fail(
|
|
212
|
+
"snapshot_pinned",
|
|
213
|
+
"db/snapshot.json pins a hosted snapshot built through a different contract; "
|
|
214
|
+
"re-import its rows against the current schema (import_world_data, "
|
|
215
|
+
"gateway worlds data import) or restore the schema it was built against",
|
|
216
|
+
"/db/snapshot.json",
|
|
217
|
+
)
|
|
218
|
+
counts = pin.get("entityCounts")
|
|
219
|
+
if not isinstance(counts, dict) or any(
|
|
220
|
+
not isinstance(value, int) or isinstance(value, bool) for value in counts.values()
|
|
221
|
+
):
|
|
222
|
+
fail(
|
|
223
|
+
"snapshot_pin",
|
|
224
|
+
"db/snapshot.json must carry the hosted snapshot's entityCounts",
|
|
225
|
+
"/db/snapshot.json",
|
|
226
|
+
)
|
|
227
|
+
return {entity: int(counts.get(entity, 0)) for entity in contract.entities}
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
def validate_bundle(bundle: str | Path, *, execute: bool = False) -> dict:
|
|
231
|
+
"""Check a schema world: the contract, the handlers by syntax and by name, the
|
|
232
|
+
initial state, every verifier over it, the tasks and the links. ``execute``
|
|
233
|
+
also opens one session — importing the handlers and the dependencies — where
|
|
234
|
+
this runtime may run authored code (:func:`may_execute`)."""
|
|
235
|
+
bundle = Path(bundle)
|
|
236
|
+
if bundle_mode(bundle) is None:
|
|
237
|
+
fail("mode", "Expected a schema-backed mock-tools world")
|
|
238
|
+
contract = check_bundle(bundle)
|
|
239
|
+
declared = set(contract.tools)
|
|
240
|
+
found: dict[str, str] = {}
|
|
241
|
+
for path in sorted((bundle / "tools").glob("*.py")):
|
|
242
|
+
if path.is_symlink():
|
|
243
|
+
fail("path", "Tool handlers must be regular files")
|
|
244
|
+
try:
|
|
245
|
+
tree = ast.parse(path.read_text(encoding="utf-8"), filename=path.name)
|
|
246
|
+
except (SyntaxError, UnicodeError):
|
|
247
|
+
fail("handler", f"Invalid Python handler syntax: {path.name}")
|
|
248
|
+
for node in tree.body:
|
|
249
|
+
if not isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)):
|
|
250
|
+
continue
|
|
251
|
+
names = []
|
|
252
|
+
for decorator in node.decorator_list:
|
|
253
|
+
target = decorator.func if isinstance(decorator, ast.Call) else decorator
|
|
254
|
+
is_tool = (isinstance(target, ast.Name) and target.id == "tool") or (
|
|
255
|
+
isinstance(target, ast.Attribute) and target.attr == "tool"
|
|
256
|
+
)
|
|
257
|
+
if not is_tool:
|
|
258
|
+
continue
|
|
259
|
+
name = node.name
|
|
260
|
+
if isinstance(decorator, ast.Call):
|
|
261
|
+
for keyword in decorator.keywords:
|
|
262
|
+
if keyword.arg == "name":
|
|
263
|
+
if not isinstance(keyword.value, ast.Constant) or not isinstance(keyword.value.value, str):
|
|
264
|
+
fail("handler", "Publication requires literal tool names")
|
|
265
|
+
name = keyword.value.value
|
|
266
|
+
names.append(name)
|
|
267
|
+
if not names and node.name in declared:
|
|
268
|
+
names.append(node.name)
|
|
269
|
+
if not names and node.name == "run" and path.stem in declared:
|
|
270
|
+
names.append(path.stem)
|
|
271
|
+
for name in names:
|
|
272
|
+
if name in found:
|
|
273
|
+
fail("handler", f"Duplicate handler for {name}")
|
|
274
|
+
found[name] = path.name
|
|
275
|
+
if set(found) != declared:
|
|
276
|
+
fail("handler", "Declared tools and Python handlers must match exactly")
|
|
277
|
+
_check_mappings(bundle, contract)
|
|
278
|
+
check_world_redaction(bundle)
|
|
279
|
+
pinned = _pinned_state(bundle, contract)
|
|
280
|
+
verifiers: dict[str, Any] = {}
|
|
281
|
+
if pinned is not None:
|
|
282
|
+
counts, initial_state = pinned, "pinned"
|
|
283
|
+
# The pinned snapshot is not in the tree, so the verifiers run over the
|
|
284
|
+
# bare schema: an error still surfaces; a score means nothing here.
|
|
285
|
+
with tempfile.TemporaryDirectory(prefix="gateway-state-check-") as staging:
|
|
286
|
+
with SQLiteStore.create(Path(staging) / "world.db", contract) as store:
|
|
287
|
+
unattached = _attach_dependencies(bundle, store, Path(staging))
|
|
288
|
+
verifiers = _check_verifiers(bundle, store, unattached, scored=False)
|
|
289
|
+
else:
|
|
290
|
+
initial_state = "validated"
|
|
291
|
+
with tempfile.TemporaryDirectory(prefix="gateway-state-check-") as staging:
|
|
292
|
+
database = Path(staging) / "world.db"
|
|
293
|
+
materialize_template(bundle, database)
|
|
294
|
+
with SQLiteStore.open(database, contract) as store:
|
|
295
|
+
store.audit()
|
|
296
|
+
counts = {entity: len(store.list(entity)) for entity in contract.entities}
|
|
297
|
+
unattached = _attach_dependencies(bundle, store, Path(staging))
|
|
298
|
+
verifiers = _check_verifiers(bundle, store, unattached, scored=True)
|
|
299
|
+
report = {
|
|
300
|
+
"status": "ok",
|
|
301
|
+
"domain": contract.target,
|
|
302
|
+
"package": contract.metadata["package"],
|
|
303
|
+
"initial_state": initial_state,
|
|
304
|
+
"handler_execution": _handler_execution(bundle, execute),
|
|
305
|
+
"entity_counts": counts,
|
|
306
|
+
"tools": sorted(declared),
|
|
307
|
+
"verifiers": verifiers,
|
|
308
|
+
"tasks": _check_tasks(bundle, sorted(verifiers)),
|
|
309
|
+
"dependencies": describe_dependencies(bundle),
|
|
310
|
+
}
|
|
311
|
+
return report
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
def _check_mappings(bundle: Path, contract: Contract) -> None:
|
|
315
|
+
"""Each ``[dependencies.<alias>.entities]`` mapping against this contract
|
|
316
|
+
and, for a dependency whose ``path`` is here, against that contract too."""
|
|
317
|
+
from .. import _bundle
|
|
318
|
+
from .dependencies import FieldMap, check_mappings, parse_dependencies
|
|
319
|
+
|
|
320
|
+
dependencies = parse_dependencies(_bundle.parse_manifest(bundle).raw)
|
|
321
|
+
deps: dict[str, FieldMap] = {}
|
|
322
|
+
for alias, dep in dependencies.items():
|
|
323
|
+
if dep.path is None or not dep.entities:
|
|
324
|
+
continue
|
|
325
|
+
tree = (bundle / dep.path).resolve()
|
|
326
|
+
if (tree / "gateway-env.toml").is_file():
|
|
327
|
+
deps[alias] = _field_map(check_bundle(tree))
|
|
328
|
+
check_mappings(dependencies, _field_map(contract), deps)
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
def _field_map(contract: Contract) -> FieldMap:
|
|
332
|
+
return {name: set(entity["schema"].get("properties", {})) for name, entity in contract.entities.items()}
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
def _attach_dependencies(bundle: Path, store: SQLiteStore, staging: Path) -> dict[str, str]:
|
|
336
|
+
"""Each ``[dependencies]`` entry whose local ``path`` is on this machine,
|
|
337
|
+
materialized beside the root's store and attached as ``<alias>.<table>``,
|
|
338
|
+
so a cross-world verifier runs here the way it runs in a session. Returns
|
|
339
|
+
the aliases left unattached, each with why: a pin without a path is the
|
|
340
|
+
platform's to resolve; a path that is not here (the platform checking a
|
|
341
|
+
pushed tree) resolves there too."""
|
|
342
|
+
from .. import _bundle
|
|
343
|
+
from .dependencies import parse_dependencies
|
|
344
|
+
|
|
345
|
+
manifest = _bundle.parse_manifest(bundle)
|
|
346
|
+
unattached: dict[str, str] = {}
|
|
347
|
+
for alias, dep in parse_dependencies(manifest.raw).items():
|
|
348
|
+
if dep.path is None:
|
|
349
|
+
unattached[alias] = (
|
|
350
|
+
f"'{alias}' has a pin but no path, so it runs where the platform opens the link "
|
|
351
|
+
'(add path = "../<dir>" to run it here)'
|
|
352
|
+
)
|
|
353
|
+
continue
|
|
354
|
+
tree = (bundle / dep.path).resolve()
|
|
355
|
+
if not (tree / "gateway-env.toml").is_file():
|
|
356
|
+
unattached[alias] = (
|
|
357
|
+
f"'{alias}'.path {dep.path!r} is not a schema world here ({tree}); it runs where that tree is"
|
|
358
|
+
)
|
|
359
|
+
continue
|
|
360
|
+
contract = check_bundle(tree)
|
|
361
|
+
database = staging / f"{alias}.db"
|
|
362
|
+
materialize_template(tree, database)
|
|
363
|
+
store.attach(alias, database, contract.entities)
|
|
364
|
+
return unattached
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
def _check_verifiers(bundle: Path, store: SQLiteStore, unattached: dict[str, str], *, scored: bool) -> dict[str, Any]:
|
|
368
|
+
"""Every ``verifiers/*.sql`` run over the template through the store's
|
|
369
|
+
read-only authorizer, the way a session grades. A verifier that names a
|
|
370
|
+
table or column the contract lacks is refused here — at check — not at
|
|
371
|
+
the first grade. ``scored`` reports the score over the initial state. A
|
|
372
|
+
verifier that reads a dependency the check could not attach (a pin
|
|
373
|
+
without a local path) is reported, not refused: it runs where the
|
|
374
|
+
platform opens the link."""
|
|
375
|
+
from .._world import split_sql_statements
|
|
376
|
+
|
|
377
|
+
verifiers_dir = bundle / "verifiers"
|
|
378
|
+
if not verifiers_dir.is_dir():
|
|
379
|
+
return {}
|
|
380
|
+
out: dict[str, Any] = {}
|
|
381
|
+
for path in sorted(verifiers_dir.glob("*.sql")):
|
|
382
|
+
if path.is_symlink():
|
|
383
|
+
fail("path", "Verifiers must be regular files", f"/verifiers/{path.name}")
|
|
384
|
+
score: Any = None
|
|
385
|
+
needs: str | None = None
|
|
386
|
+
for statement in split_sql_statements(path.read_text(encoding="utf-8")):
|
|
387
|
+
try:
|
|
388
|
+
rows = store.query(statement, private=True)
|
|
389
|
+
except ContractError as error:
|
|
390
|
+
reason = error.__cause__ if error.__cause__ is not None else error.detail["message"]
|
|
391
|
+
alias = _missing_dependency_alias(str(reason), unattached)
|
|
392
|
+
if alias is not None:
|
|
393
|
+
needs = alias
|
|
394
|
+
break
|
|
395
|
+
hint = ""
|
|
396
|
+
if "no such table" in str(reason):
|
|
397
|
+
tables = sorted(store.contract.entities)
|
|
398
|
+
tables += [f"{a}.{t}" for a, ts in sorted(store.attached.items()) for t in sorted(ts)]
|
|
399
|
+
hint = f"; the world's entities are {', '.join(tables) or '(none)'}"
|
|
400
|
+
fail(
|
|
401
|
+
"verifier",
|
|
402
|
+
f"verifiers/{path.name} does not run against this schema: {reason}{hint}",
|
|
403
|
+
f"/verifiers/{path.name}",
|
|
404
|
+
)
|
|
405
|
+
if rows:
|
|
406
|
+
score = rows[0][0]
|
|
407
|
+
if needs is not None:
|
|
408
|
+
out[path.stem] = {
|
|
409
|
+
"status": "needs_dependency",
|
|
410
|
+
"dependency": needs,
|
|
411
|
+
"reason": f"reads {needs}.<table>; {unattached[needs]}",
|
|
412
|
+
}
|
|
413
|
+
elif scored:
|
|
414
|
+
out[path.stem] = {"status": "ok", "initial_score": score}
|
|
415
|
+
else:
|
|
416
|
+
out[path.stem] = {"status": "ok"}
|
|
417
|
+
return out
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
def _missing_dependency_alias(reason: str, unattached: dict[str, str]) -> str | None:
|
|
421
|
+
"""The alias of an unattached dependency a ``no such table: alias.table``
|
|
422
|
+
failure names, else ``None``."""
|
|
423
|
+
marker = "no such table: "
|
|
424
|
+
if marker not in reason:
|
|
425
|
+
return None
|
|
426
|
+
table = reason.split(marker, 1)[1].strip()
|
|
427
|
+
alias, dot, _ = table.partition(".")
|
|
428
|
+
if dot and alias in unattached:
|
|
429
|
+
return alias
|
|
430
|
+
return None
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
def _check_tasks(bundle: Path, verifiers: list[str]) -> list[dict[str, Any]]:
|
|
434
|
+
"""The tasks the world declares (``[[tasks]]``, ``tasks.jsonl``/``.json``,
|
|
435
|
+
else one per verifier), each checked to name verifiers the world has."""
|
|
436
|
+
from .. import _bundle
|
|
437
|
+
from .tools_world import load_tasks
|
|
438
|
+
|
|
439
|
+
manifest = _bundle.parse_manifest(bundle)
|
|
440
|
+
tasks = load_tasks(bundle, manifest, verifiers, required=False)
|
|
441
|
+
out = []
|
|
442
|
+
for task in tasks.values():
|
|
443
|
+
unknown = sorted(set(task.selected(verifiers)) - set(verifiers))
|
|
444
|
+
if unknown:
|
|
445
|
+
fail(
|
|
446
|
+
"task",
|
|
447
|
+
f"task '{task.id}' names verifiers the world lacks: {', '.join(unknown)} "
|
|
448
|
+
f"(it has: {', '.join(verifiers) or 'none'})",
|
|
449
|
+
"/gateway-env.toml",
|
|
450
|
+
)
|
|
451
|
+
out.append(
|
|
452
|
+
{
|
|
453
|
+
"id": task.id,
|
|
454
|
+
"verifiers": task.selected(verifiers),
|
|
455
|
+
"dependency_verifiers": {alias: list(names) for alias, names in (task.worlds or {}).items()},
|
|
456
|
+
}
|
|
457
|
+
)
|
|
458
|
+
return out
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
def describe_dependencies(bundle: Path) -> list[dict[str, Any]]:
|
|
462
|
+
"""``[dependencies]`` as the manifest declares them — alias, pin, local
|
|
463
|
+
path, tools, entity mappings — so an offline describe or check shows the
|
|
464
|
+
links a push will commit."""
|
|
465
|
+
from .. import _bundle
|
|
466
|
+
from .dependencies import parse_dependencies
|
|
467
|
+
|
|
468
|
+
manifest = _bundle.parse_manifest(bundle)
|
|
469
|
+
out = []
|
|
470
|
+
for dep in parse_dependencies(manifest.raw).values():
|
|
471
|
+
out.append(
|
|
472
|
+
{
|
|
473
|
+
"alias": dep.alias,
|
|
474
|
+
"pin": dep.pin,
|
|
475
|
+
"slug": dep.slug,
|
|
476
|
+
"ref": dep.ref,
|
|
477
|
+
"path": dep.path,
|
|
478
|
+
"task": dep.task,
|
|
479
|
+
"tools": list(dep.tools),
|
|
480
|
+
"entities": [
|
|
481
|
+
{
|
|
482
|
+
"localEntity": m.local_entity,
|
|
483
|
+
"localField": m.local_field,
|
|
484
|
+
"depEntity": m.dep_entity,
|
|
485
|
+
"depField": m.dep_field,
|
|
486
|
+
"transform": list(m.transform),
|
|
487
|
+
}
|
|
488
|
+
for m in dep.entities
|
|
489
|
+
],
|
|
490
|
+
}
|
|
491
|
+
)
|
|
492
|
+
return out
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
#: Set by a runtime that may run the world's own Python — the CLI's bundled
|
|
496
|
+
#: runtime on the author's machine. The platform's bridge never sets it, so a
|
|
497
|
+
#: request that asks for execution there gets ``not_run`` and the reason.
|
|
498
|
+
EXECUTE_ENV = "GATEWAY_RUNTIME_EXECUTE"
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
def may_execute() -> bool:
|
|
502
|
+
return os.environ.get(EXECUTE_ENV) == "1"
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
def _handler_execution(bundle: Path, execute: bool) -> dict[str, Any]:
|
|
506
|
+
"""Whether the handlers were run: imported, every declared tool bound, the
|
|
507
|
+
``[dependencies]`` opened from their paths — one session of the world,
|
|
508
|
+
opened and closed. Only where authored code may run."""
|
|
509
|
+
if not execute:
|
|
510
|
+
return {
|
|
511
|
+
"status": "not_run",
|
|
512
|
+
"reason": "handlers run where the world runs; `gateway worlds check` "
|
|
513
|
+
"with the bundled runtime imports them, `gateway worlds call` runs one",
|
|
514
|
+
}
|
|
515
|
+
if not may_execute():
|
|
516
|
+
return {
|
|
517
|
+
"status": "not_run",
|
|
518
|
+
"reason": "this runtime does not run a world's Python (the platform's "
|
|
519
|
+
"bridge); check with the CLI's bundled runtime on your machine",
|
|
520
|
+
}
|
|
521
|
+
from .local import open_world
|
|
522
|
+
|
|
523
|
+
with open_world(bundle, http=False) as session:
|
|
524
|
+
return {"status": "ok", "tools": session.tools}
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
API_BUNDLE = "gateway-api-world.toml"
|
|
528
|
+
BUNDLED_WORLD = "server/world"
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
def world_root(root: Path) -> Path:
|
|
532
|
+
"""The world inside the tree the platform holds. ``bench push`` uploads a schema
|
|
533
|
+
world as its api bundle, so a version's tree is ``gateway-api-world.toml`` +
|
|
534
|
+
``seed/`` + ``scenarios/`` + ``server/world/<the authoring world>``: that nested
|
|
535
|
+
world is what data commands operate on. A plain tree is its own root."""
|
|
536
|
+
nested = root / BUNDLED_WORLD
|
|
537
|
+
if (root / API_BUNDLE).is_file() and (
|
|
538
|
+
(nested / "connector.toml").is_file() or (nested / "schema/world.json").is_file()
|
|
539
|
+
):
|
|
540
|
+
return nested
|
|
541
|
+
return root
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
def _write_files(root: Path, entries: list) -> None:
|
|
545
|
+
if not isinstance(entries, list) or len(entries) > MAX_FILES:
|
|
546
|
+
fail("size", "Invalid bundle file count")
|
|
547
|
+
seen = set()
|
|
548
|
+
size = 0
|
|
549
|
+
for entry in entries:
|
|
550
|
+
if not isinstance(entry, dict) or set(entry) != {"path", "content"}:
|
|
551
|
+
fail("input", "Expected path and base64 content")
|
|
552
|
+
name = entry["path"]
|
|
553
|
+
if not isinstance(name, str) or not name or "\\" in name or "\x00" in name:
|
|
554
|
+
fail("path", "Invalid bundle path")
|
|
555
|
+
path = PurePosixPath(name)
|
|
556
|
+
if path.is_absolute() or any(p in ("", ".", "..") for p in name.split("/")) or name in seen:
|
|
557
|
+
fail("path", "Bundle paths must be unique relative file paths")
|
|
558
|
+
seen.add(name)
|
|
559
|
+
try:
|
|
560
|
+
data = base64.b64decode(entry["content"], validate=True)
|
|
561
|
+
except (ValueError, TypeError):
|
|
562
|
+
fail("input", "Invalid base64 bundle content")
|
|
563
|
+
size += len(data)
|
|
564
|
+
if size > MAX_BYTES:
|
|
565
|
+
fail("size", "Bundle exceeds 64 MiB")
|
|
566
|
+
target = root.joinpath(*path.parts)
|
|
567
|
+
target.parent.mkdir(parents=True, exist_ok=True)
|
|
568
|
+
target.write_bytes(data)
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
def _archive_files(encoded: str) -> list:
|
|
572
|
+
try:
|
|
573
|
+
archive = base64.b64decode(encoded, validate=True)
|
|
574
|
+
if len(archive) > MAX_BYTES:
|
|
575
|
+
fail("size", "Schema archive exceeds 64 MiB")
|
|
576
|
+
with gzip.GzipFile(fileobj=io.BytesIO(archive)) as stream:
|
|
577
|
+
data = stream.read(MAX_BYTES + 1)
|
|
578
|
+
if len(data) > MAX_BYTES:
|
|
579
|
+
fail("size", "Expanded schema archive exceeds 64 MiB")
|
|
580
|
+
files = {}
|
|
581
|
+
with tarfile.open(fileobj=io.BytesIO(data), mode="r:") as tar:
|
|
582
|
+
if tar.pax_headers:
|
|
583
|
+
fail("archive", "Global archive metadata is not supported")
|
|
584
|
+
for member in tar:
|
|
585
|
+
if len(files) > MAX_FILES:
|
|
586
|
+
fail("size", "Too many archive files")
|
|
587
|
+
if member.issym() or member.islnk() or not (member.isfile() or member.isdir()):
|
|
588
|
+
fail(
|
|
589
|
+
"archive",
|
|
590
|
+
"Archive may contain only ordinary files and directories",
|
|
591
|
+
)
|
|
592
|
+
if any(
|
|
593
|
+
key
|
|
594
|
+
not in (
|
|
595
|
+
"path",
|
|
596
|
+
"mtime",
|
|
597
|
+
"atime",
|
|
598
|
+
"ctime",
|
|
599
|
+
"uid",
|
|
600
|
+
"gid",
|
|
601
|
+
"uname",
|
|
602
|
+
"gname",
|
|
603
|
+
)
|
|
604
|
+
for key in member.pax_headers
|
|
605
|
+
):
|
|
606
|
+
fail("archive", "Unsupported archive metadata")
|
|
607
|
+
name = member.name
|
|
608
|
+
while name.startswith("./"):
|
|
609
|
+
name = name[2:]
|
|
610
|
+
path = PurePosixPath(name)
|
|
611
|
+
if path.is_absolute() or ".." in path.parts or not name or chr(92) in name:
|
|
612
|
+
fail("path", "Archive path escapes the bundle")
|
|
613
|
+
if member.isdir():
|
|
614
|
+
continue
|
|
615
|
+
stream = tar.extractfile(member)
|
|
616
|
+
if stream is None:
|
|
617
|
+
fail("archive", "Unreadable archive member")
|
|
618
|
+
content = stream.read(MAX_BYTES + 1)
|
|
619
|
+
if len(content) != member.size:
|
|
620
|
+
fail("archive", "Truncated archive member")
|
|
621
|
+
files[str(path)] = base64.b64encode(content).decode("ascii")
|
|
622
|
+
return [{"path": path, "content": content} for path, content in files.items()]
|
|
623
|
+
except (tarfile.TarError, EOFError, OSError, ValueError, TypeError):
|
|
624
|
+
fail("archive", "Invalid world archive")
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
def _capture(request: dict) -> dict:
|
|
628
|
+
"""``capture``: run one connection operation for the platform, from the pod whose
|
|
629
|
+
egress the vendor allow-listed. The spec arrives as text, the credential as the
|
|
630
|
+
environment variable it names (set by the caller, never in the request), and every
|
|
631
|
+
recorded page comes back redacted the way the CLI would have written it."""
|
|
632
|
+
from .connector import CAPTURES, MANIFEST, capture, pairs_of, parse_spec
|
|
633
|
+
|
|
634
|
+
spec_text = request.get("spec")
|
|
635
|
+
op = request.get("op")
|
|
636
|
+
args = request.get("args") or {}
|
|
637
|
+
max_pages = request.get("max_pages")
|
|
638
|
+
if not isinstance(spec_text, str) or not isinstance(op, str):
|
|
639
|
+
fail("input", "Expected the connector.toml text and an operation name")
|
|
640
|
+
if not isinstance(args, dict) or not all(isinstance(k, str) and isinstance(v, str) for k, v in args.items()):
|
|
641
|
+
fail("input", "args map names to strings")
|
|
642
|
+
# params arrive as [[name, value], ...] so a repeated key survives the wire; the
|
|
643
|
+
# {name: value} form older callers send is accepted too.
|
|
644
|
+
try:
|
|
645
|
+
params = pairs_of(request.get("params"))
|
|
646
|
+
except ContractError:
|
|
647
|
+
fail("input", "params are [name, value] pairs or a {name: value} mapping")
|
|
648
|
+
if max_pages is not None and (isinstance(max_pages, bool) or not isinstance(max_pages, int) or max_pages < 1):
|
|
649
|
+
fail("input", "max_pages must be a positive integer")
|
|
650
|
+
parse_spec(spec_text)
|
|
651
|
+
with tempfile.TemporaryDirectory(prefix="gateway-capture-") as directory:
|
|
652
|
+
root = Path(directory) / "world"
|
|
653
|
+
root.mkdir()
|
|
654
|
+
(root / "connector.toml").write_text(spec_text, encoding="utf-8")
|
|
655
|
+
notes: list[str] = []
|
|
656
|
+
written = capture(root, op, args, params, max_pages=max_pages, note=notes.append)
|
|
657
|
+
manifest = json.loads((root / CAPTURES / MANIFEST).read_text(encoding="utf-8"))
|
|
658
|
+
return {
|
|
659
|
+
"status": "ok",
|
|
660
|
+
"notes": notes,
|
|
661
|
+
"files": [
|
|
662
|
+
{
|
|
663
|
+
"path": path.relative_to(root).as_posix(),
|
|
664
|
+
"content": base64.b64encode(path.read_bytes()).decode("ascii"),
|
|
665
|
+
}
|
|
666
|
+
for path in written
|
|
667
|
+
],
|
|
668
|
+
"manifest": manifest,
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
def _template_files(request: dict) -> dict[str, bytes]:
|
|
673
|
+
listed = request.get("files")
|
|
674
|
+
if not isinstance(listed, list) or not listed:
|
|
675
|
+
fail("input", "Expected the template's files as [{path, content}]")
|
|
676
|
+
files: dict[str, bytes] = {}
|
|
677
|
+
for entry in listed:
|
|
678
|
+
if (
|
|
679
|
+
not isinstance(entry, dict)
|
|
680
|
+
or not isinstance(entry.get("path"), str)
|
|
681
|
+
or not isinstance(entry.get("content"), str)
|
|
682
|
+
):
|
|
683
|
+
fail("input", "Each template file is {path, content} with base64 content")
|
|
684
|
+
try:
|
|
685
|
+
files[entry["path"]] = base64.b64decode(entry["content"], validate=True)
|
|
686
|
+
except (ValueError, binascii.Error):
|
|
687
|
+
fail("input", "Template file content must be base64")
|
|
688
|
+
return files
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
def _redact_summary(spec: "Spec | RedactPolicy") -> dict:
|
|
692
|
+
"""The ``[redact]`` table as describe reports it, so a caller can compute a
|
|
693
|
+
stored form from these lists without running Python. ``slug`` is the SALT —
|
|
694
|
+
the connector's slug from connector.toml (``[environment].name`` for a tools-only
|
|
695
|
+
world's gateway-env.toml), which is what ``_digest`` hashes under — and not the
|
|
696
|
+
platform world slug, which may differ (``spycloud`` vs ``spycloud-world``); a caller
|
|
697
|
+
that salts with the wrong one never matches a row."""
|
|
698
|
+
return {
|
|
699
|
+
"slug": spec.slug,
|
|
700
|
+
"hash": sorted(spec.hash_fields),
|
|
701
|
+
"drop": sorted(spec.drop_fields),
|
|
702
|
+
"preserve": sorted(spec.preserve_fields),
|
|
703
|
+
"round": dict(spec.round_fields),
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
def _annotate_redaction(entities: list[dict], spec: "Spec | RedactPolicy | None") -> None:
|
|
708
|
+
"""Stamp every field with the policy it is stored under (``hash``, ``drop``,
|
|
709
|
+
``preserve``, ``round:<n>`` or None), so a reader knows whether it can be looked
|
|
710
|
+
up by plaintext, by digest, or not at all."""
|
|
711
|
+
from .connector import redaction_of
|
|
712
|
+
|
|
713
|
+
for entity in entities:
|
|
714
|
+
for field in entity["fields"]:
|
|
715
|
+
field["redaction"] = redaction_of(spec, field["name"]) if spec else None
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
def _template_summary(files: dict[str, bytes]) -> dict:
|
|
719
|
+
"""What a workspace connector is, read from its files: the vendor connection
|
|
720
|
+
(connector.toml) and the data model (world.json), plus the digest the platform
|
|
721
|
+
pins worlds to. Never runs the template's Python."""
|
|
722
|
+
from .connector import parse_spec
|
|
723
|
+
from .redaction import parse_env_policy
|
|
724
|
+
from .scaffold import template_digest
|
|
725
|
+
|
|
726
|
+
# A template keeps world.json at its root; an initialized world keeps it under schema/.
|
|
727
|
+
world_path = next((path for path in ("world.json", "schema/world.json") if path in files), None)
|
|
728
|
+
if world_path is None:
|
|
729
|
+
fail(
|
|
730
|
+
"template",
|
|
731
|
+
"No world.json (template) or schema/world.json (world) among the files",
|
|
732
|
+
)
|
|
733
|
+
try:
|
|
734
|
+
world = json.loads(files[world_path].decode("utf-8"))
|
|
735
|
+
except (UnicodeDecodeError, json.JSONDecodeError) as error:
|
|
736
|
+
fail("template", f"{world_path} is not valid JSON: {error}")
|
|
737
|
+
gateway = world.get("x-gateway") if isinstance(world, dict) else None
|
|
738
|
+
if not isinstance(gateway, dict):
|
|
739
|
+
fail("template", f"{world_path} is not a gateway-world document")
|
|
740
|
+
spec = parse_spec(files["connector.toml"].decode("utf-8")) if "connector.toml" in files else None
|
|
741
|
+
policy = spec
|
|
742
|
+
if policy is None and "gateway-env.toml" in files:
|
|
743
|
+
policy = parse_env_policy(files["gateway-env.toml"].decode("utf-8"))
|
|
744
|
+
entities = []
|
|
745
|
+
for name, entity in sorted((gateway.get("entities") or {}).items()):
|
|
746
|
+
fields: list = []
|
|
747
|
+
schema = entity.get("schema") if isinstance(entity, dict) else None
|
|
748
|
+
ref = schema.get("$ref") if isinstance(schema, dict) else None
|
|
749
|
+
definition = None
|
|
750
|
+
if isinstance(ref, str) and ref.startswith("#/$defs/"):
|
|
751
|
+
definition = (world.get("$defs") or {}).get(ref[len("#/$defs/") :])
|
|
752
|
+
elif isinstance(schema, dict) and isinstance(schema.get("properties"), dict):
|
|
753
|
+
# An inline payload (`schema entity add --schema '{…}'`) declares its
|
|
754
|
+
# fields right here; it is as much a field list as a $defs entry.
|
|
755
|
+
definition = schema
|
|
756
|
+
properties = (definition or {}).get("properties") or {} if isinstance(definition, dict) else {}
|
|
757
|
+
required = set((definition or {}).get("required") or []) if isinstance(definition, dict) else set()
|
|
758
|
+
for field_name, field_schema in properties.items():
|
|
759
|
+
kind = field_schema.get("type") if isinstance(field_schema, dict) else None
|
|
760
|
+
if isinstance(kind, list):
|
|
761
|
+
# A nullable field is `["string", "null"]` in JSON Schema; the page
|
|
762
|
+
# shows it as one readable type, not the list's concatenation.
|
|
763
|
+
kind = " | ".join(str(part) for part in kind)
|
|
764
|
+
if kind is None and isinstance(field_schema, dict) and isinstance(field_schema.get("$ref"), str):
|
|
765
|
+
kind = field_schema["$ref"].rsplit("/", 1)[-1]
|
|
766
|
+
fields.append({"name": field_name, "type": kind, "required": field_name in required})
|
|
767
|
+
entities.append(
|
|
768
|
+
{
|
|
769
|
+
"name": name,
|
|
770
|
+
"primaryKey": list(entity.get("primary_key") or []) if isinstance(entity, dict) else [],
|
|
771
|
+
"unique": list(entity.get("unique") or []) if isinstance(entity, dict) else [],
|
|
772
|
+
"relationships": list(entity.get("relationships") or []) if isinstance(entity, dict) else [],
|
|
773
|
+
"fields": fields,
|
|
774
|
+
}
|
|
775
|
+
)
|
|
776
|
+
_annotate_redaction(entities, policy)
|
|
777
|
+
connection = None
|
|
778
|
+
if spec is not None:
|
|
779
|
+
connection = {
|
|
780
|
+
"slug": spec.slug,
|
|
781
|
+
"baseUrl": spec.base_url,
|
|
782
|
+
"auth": spec.scheme,
|
|
783
|
+
"redact": _redact_summary(spec),
|
|
784
|
+
"operations": [
|
|
785
|
+
{
|
|
786
|
+
"name": op.name,
|
|
787
|
+
"method": op.method,
|
|
788
|
+
"path": op.path,
|
|
789
|
+
"params": list(op.params),
|
|
790
|
+
"entity": op.entity,
|
|
791
|
+
"results": op.results,
|
|
792
|
+
}
|
|
793
|
+
for op in spec.operations.values()
|
|
794
|
+
],
|
|
795
|
+
}
|
|
796
|
+
package = gateway.get("package") or {}
|
|
797
|
+
return {
|
|
798
|
+
"status": "ok",
|
|
799
|
+
"summary": {
|
|
800
|
+
"packageVersion": package.get("version"),
|
|
801
|
+
"domainVersion": gateway.get("domain_version"),
|
|
802
|
+
"domainId": world.get("$id"),
|
|
803
|
+
"digest": template_digest(files),
|
|
804
|
+
"entities": entities,
|
|
805
|
+
"connection": connection,
|
|
806
|
+
"redact": _redact_summary(policy) if policy is not None else None,
|
|
807
|
+
"tools": sorted((gateway.get("tools") or {}).keys()),
|
|
808
|
+
"files": sorted(files),
|
|
809
|
+
},
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
COMPILED_MARKERS = ("schema/world.json", "tool-schemas.json")
|
|
814
|
+
# The compiled world's files a description is read from; the rest of a bundle
|
|
815
|
+
# (seed data, verifiers, tool sources) says nothing about the contract.
|
|
816
|
+
DESCRIBE_PATHS = (
|
|
817
|
+
"schema/world.json",
|
|
818
|
+
"tool-schemas.json",
|
|
819
|
+
"connector.toml",
|
|
820
|
+
"gateway-env.toml",
|
|
821
|
+
"api/handlers.py",
|
|
822
|
+
)
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
def _describe(request: dict) -> dict:
|
|
826
|
+
"""One description for the connector page and a world's Schema tab: the data
|
|
827
|
+
model, the tools with their schemas, and — when the connector declares a vendor
|
|
828
|
+
connection — the OpenAPI document the served world answers to.
|
|
829
|
+
|
|
830
|
+
The connector is compiled exactly as a world build compiles it (an installed
|
|
831
|
+
template by slug, or a template's files), so the page shows what a world gets;
|
|
832
|
+
a compiled world's own files (``schema/world.json`` + ``tool-schemas.json``) pass
|
|
833
|
+
straight through. Never runs the connector's Python."""
|
|
834
|
+
from .connector import parse_spec
|
|
835
|
+
from .redaction import env_policy
|
|
836
|
+
from .scaffold import (
|
|
837
|
+
TEMPLATES,
|
|
838
|
+
init_bundle,
|
|
839
|
+
init_bundle_from_files,
|
|
840
|
+
template_digest,
|
|
841
|
+
)
|
|
842
|
+
|
|
843
|
+
connector = request.get("connector")
|
|
844
|
+
with tempfile.TemporaryDirectory(prefix="gateway-schema-") as directory:
|
|
845
|
+
root = Path(directory) / "bundle"
|
|
846
|
+
if connector is not None:
|
|
847
|
+
if not isinstance(connector, str):
|
|
848
|
+
fail("input", "Expected an installed connector template slug")
|
|
849
|
+
init_bundle(root, connector=connector)
|
|
850
|
+
template_dir = TEMPLATES / connector
|
|
851
|
+
authored = {
|
|
852
|
+
str(path.relative_to(template_dir)): path.read_bytes()
|
|
853
|
+
for path in sorted(template_dir.rglob("*"))
|
|
854
|
+
if path.is_file() and "__pycache__" not in path.parts
|
|
855
|
+
}
|
|
856
|
+
else:
|
|
857
|
+
authored = _template_files(request)
|
|
858
|
+
if all(marker in authored for marker in COMPILED_MARKERS):
|
|
859
|
+
root.mkdir()
|
|
860
|
+
for path, data in authored.items():
|
|
861
|
+
if path in DESCRIBE_PATHS:
|
|
862
|
+
target = root / path
|
|
863
|
+
target.parent.mkdir(parents=True, exist_ok=True)
|
|
864
|
+
target.write_bytes(data)
|
|
865
|
+
else:
|
|
866
|
+
slug = request.get("slug") if isinstance(request.get("slug"), str) else None
|
|
867
|
+
if slug is None and "connector.toml" in authored:
|
|
868
|
+
slug = parse_spec(authored["connector.toml"].decode("utf-8")).slug
|
|
869
|
+
init_bundle_from_files(root, authored, connector=slug or "custom")
|
|
870
|
+
summary = _template_summary({"world.json": (root / "schema/world.json").read_bytes()})["summary"]
|
|
871
|
+
summary["digest"] = template_digest(authored)
|
|
872
|
+
summary["files"] = sorted(authored)
|
|
873
|
+
tool_schemas = {}
|
|
874
|
+
if (root / "tool-schemas.json").is_file():
|
|
875
|
+
tool_schemas = json.loads((root / "tool-schemas.json").read_text(encoding="utf-8")).get("tools") or {}
|
|
876
|
+
summary["tools"] = [
|
|
877
|
+
{
|
|
878
|
+
"name": name,
|
|
879
|
+
"description": str(entry.get("description") or ""),
|
|
880
|
+
"inputSchema": entry.get("input_schema"),
|
|
881
|
+
"outputSchema": entry.get("output_schema"),
|
|
882
|
+
}
|
|
883
|
+
for name, entry in sorted(tool_schemas.items())
|
|
884
|
+
]
|
|
885
|
+
summary["connection"] = None
|
|
886
|
+
summary["openapi"] = None
|
|
887
|
+
if (root / "connector.toml").is_file():
|
|
888
|
+
from .api import load_api_settings, openapi_document
|
|
889
|
+
|
|
890
|
+
spec = parse_spec((root / "connector.toml").read_text(encoding="utf-8"))
|
|
891
|
+
try:
|
|
892
|
+
settings = load_api_settings(root, spec)
|
|
893
|
+
except ContractError:
|
|
894
|
+
# A template without its handlers still has a shape worth showing;
|
|
895
|
+
# the routes render with the default action and status.
|
|
896
|
+
settings = None
|
|
897
|
+
_annotate_redaction(summary["entities"], spec)
|
|
898
|
+
summary["connection"] = {
|
|
899
|
+
"slug": spec.slug,
|
|
900
|
+
"baseUrl": spec.base_url,
|
|
901
|
+
"auth": spec.scheme,
|
|
902
|
+
"redact": _redact_summary(spec),
|
|
903
|
+
"operations": [
|
|
904
|
+
{
|
|
905
|
+
"name": op.name,
|
|
906
|
+
"method": op.method,
|
|
907
|
+
"path": op.path,
|
|
908
|
+
"params": list(op.params),
|
|
909
|
+
"entity": op.entity,
|
|
910
|
+
"results": op.results,
|
|
911
|
+
"action": settings.for_operation(op.name).action if settings else None,
|
|
912
|
+
"status": settings.for_operation(op.name).status if settings else None,
|
|
913
|
+
}
|
|
914
|
+
for op in spec.operations.values()
|
|
915
|
+
],
|
|
916
|
+
}
|
|
917
|
+
summary["openapi"] = openapi_document(spec, summary.get("domainId") or spec.slug, settings)
|
|
918
|
+
summary["redact"] = summary["connection"]["redact"]
|
|
919
|
+
else:
|
|
920
|
+
policy = env_policy(root / "gateway-env.toml")
|
|
921
|
+
_annotate_redaction(summary["entities"], policy)
|
|
922
|
+
summary["redact"] = _redact_summary(policy) if policy else None
|
|
923
|
+
summary["dependencies"] = describe_dependencies(root) if (root / "gateway-env.toml").is_file() else []
|
|
924
|
+
return {"status": "ok", "description": summary}
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
def _import_data(request: dict) -> dict:
|
|
928
|
+
"""``import-data``: rows into a world the platform holds as files. The tree arrives
|
|
929
|
+
as ``[{path, content}]``, the rows as ``{entity: [row, …]}`` with a mode; the world is
|
|
930
|
+
rebuilt in a temporary directory, the rows go in through :func:`data.import_rows`
|
|
931
|
+
(the same gate the CLI uses, scratch copy first), and every file of the updated
|
|
932
|
+
tree comes back the way ``init-template`` returns one, so the platform commits a
|
|
933
|
+
version from it without knowing which file changed."""
|
|
934
|
+
from .data import KIND_SCHEMA, MODES, import_rows
|
|
935
|
+
from .redaction import parse_mode
|
|
936
|
+
|
|
937
|
+
rows = request.get("rows")
|
|
938
|
+
mode = request.get("mode", "append")
|
|
939
|
+
if not isinstance(rows, dict) or not all(isinstance(v, list) for v in rows.values()):
|
|
940
|
+
fail("input", "Expected rows as {entity: [row, …]}")
|
|
941
|
+
if mode not in MODES:
|
|
942
|
+
fail("input", f"mode must be one of {', '.join(MODES)}")
|
|
943
|
+
redact = parse_mode(request.get("redact"))
|
|
944
|
+
with tempfile.TemporaryDirectory(prefix="gateway-import-") as directory:
|
|
945
|
+
root = Path(directory) / "bundle"
|
|
946
|
+
root.mkdir()
|
|
947
|
+
_write_files(root, request.get("files"))
|
|
948
|
+
world = world_root(root)
|
|
949
|
+
result = import_rows(world, rows, mode=mode, redact=redact)
|
|
950
|
+
if result["kind"] == KIND_SCHEMA and snapshots.default_snapshot(world).is_file():
|
|
951
|
+
# The journals grew; a snapshot built before this import would be
|
|
952
|
+
# served over them. Rebuild so the tree that travels back is one thing.
|
|
953
|
+
from .compiler import build
|
|
954
|
+
from .snapshot import build_all
|
|
955
|
+
|
|
956
|
+
build_all(world, build(world)) # build(): the contract, no snapshot audit
|
|
957
|
+
if world != root and result["kind"] == KIND_SCHEMA:
|
|
958
|
+
# The bundle's base seed is derived from the world's data; older runners post it.
|
|
959
|
+
from .api import write_base_seed
|
|
960
|
+
|
|
961
|
+
write_base_seed(world, root)
|
|
962
|
+
return {
|
|
963
|
+
"status": "ok",
|
|
964
|
+
"kind": result["kind"],
|
|
965
|
+
"entity_counts": result["entity_counts"],
|
|
966
|
+
"changed": result["changed"],
|
|
967
|
+
"files": _tree(root),
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
def _ingest_calls(request: dict) -> dict:
|
|
972
|
+
"""``ingest-calls``: records into a world the platform holds as files — the twin
|
|
973
|
+
of ``import-data`` for the record contract of :mod:`.ingest`. The tree arrives
|
|
974
|
+
as ``[{path, content}]``, the records as a list, with ``redact`` (off by
|
|
975
|
+
default), ``dry_run``, ``mode`` and optionally ``map`` — an ``ingest.toml``
|
|
976
|
+
text or its parsed table (:mod:`.mapping`). Without ``map`` the world's own
|
|
977
|
+
``ingest.toml`` applies when it has one, else each record's tool resolves to
|
|
978
|
+
an operation of ``connector.toml`` and its result is projected the way a
|
|
979
|
+
capture is (:func:`ingest.ingest_records`). Transforms never run here: they
|
|
980
|
+
are the agent's code and run where the agent is. The answer is the report
|
|
981
|
+
plus the projected ``rows`` (``{entity: [row, …]}``, so a caller can push
|
|
982
|
+
them through the batch lane itself) and, when the tree changed, every file
|
|
983
|
+
of the updated tree the way ``import-data`` returns one."""
|
|
984
|
+
from .data import KIND_SCHEMA, MODES
|
|
985
|
+
from .ingest import ingest_records
|
|
986
|
+
from .redaction import parse_mode
|
|
987
|
+
|
|
988
|
+
records = request.get("records")
|
|
989
|
+
if not isinstance(records, list):
|
|
990
|
+
fail("input", "Expected records as a list of tool-call records")
|
|
991
|
+
mode = request.get("mode", "append")
|
|
992
|
+
if mode not in MODES:
|
|
993
|
+
fail("input", f"mode must be one of {', '.join(MODES)}")
|
|
994
|
+
dry_run = request.get("dry_run", False)
|
|
995
|
+
if not isinstance(dry_run, bool):
|
|
996
|
+
fail("input", "dry_run must be a boolean")
|
|
997
|
+
redact = parse_mode(request.get("redact"))
|
|
998
|
+
mapping = request.get("map")
|
|
999
|
+
if mapping is not None and not isinstance(mapping, (str, dict)):
|
|
1000
|
+
fail("input", "map is an ingest.toml text or its parsed table")
|
|
1001
|
+
with tempfile.TemporaryDirectory(prefix="gateway-ingest-calls-") as directory:
|
|
1002
|
+
root = Path(directory) / "bundle"
|
|
1003
|
+
root.mkdir()
|
|
1004
|
+
_write_files(root, request.get("files"))
|
|
1005
|
+
world = world_root(root)
|
|
1006
|
+
report = ingest_records(
|
|
1007
|
+
world, records, mapping=mapping, redact=redact, dry_run=dry_run, mode=mode, keep_rows=True
|
|
1008
|
+
)
|
|
1009
|
+
answer: dict = {"status": "ok", **report}
|
|
1010
|
+
if report["changed"] and report.get("kind") == KIND_SCHEMA:
|
|
1011
|
+
if snapshots.default_snapshot(world).is_file():
|
|
1012
|
+
from .compiler import build
|
|
1013
|
+
from .snapshot import build_all
|
|
1014
|
+
|
|
1015
|
+
build_all(world, build(world))
|
|
1016
|
+
if world != root:
|
|
1017
|
+
from .api import write_base_seed
|
|
1018
|
+
|
|
1019
|
+
write_base_seed(world, root)
|
|
1020
|
+
if report["changed"]:
|
|
1021
|
+
answer["files"] = _tree(root)
|
|
1022
|
+
return answer
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
# ---------------------------------------------------------------- batches
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
def _workdir(request: dict) -> Path:
|
|
1029
|
+
"""The absolute directory the caller prepared; every path in the request is under it."""
|
|
1030
|
+
workdir = request.get("workdir")
|
|
1031
|
+
if not isinstance(workdir, str) or not workdir or not Path(workdir).is_absolute() or not Path(workdir).is_dir():
|
|
1032
|
+
fail(
|
|
1033
|
+
"input",
|
|
1034
|
+
"Expected workdir: an absolute path to a directory the caller prepared",
|
|
1035
|
+
)
|
|
1036
|
+
return Path(workdir).resolve()
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
def _under(workdir: Path, name: Any, what: str) -> Path:
|
|
1040
|
+
if not isinstance(name, str) or not name or "\x00" in name:
|
|
1041
|
+
fail("path", f"{what} must be a path under workdir")
|
|
1042
|
+
candidate = (workdir / name).resolve() if not Path(name).is_absolute() else Path(name).resolve()
|
|
1043
|
+
if not candidate.is_relative_to(workdir):
|
|
1044
|
+
fail("path", f"{what} must stay under workdir")
|
|
1045
|
+
return candidate
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
def _chunk_specs(workdir: Path, request: dict) -> list:
|
|
1049
|
+
from .batch import ChunkSpec
|
|
1050
|
+
|
|
1051
|
+
listed = request.get("chunks")
|
|
1052
|
+
if not isinstance(listed, list) or not listed:
|
|
1053
|
+
fail("input", "Expected chunks as [{ordinal, path, entity?}]")
|
|
1054
|
+
specs = []
|
|
1055
|
+
seen = set()
|
|
1056
|
+
for entry in listed:
|
|
1057
|
+
if (
|
|
1058
|
+
not isinstance(entry, dict)
|
|
1059
|
+
or not isinstance(entry.get("ordinal"), int)
|
|
1060
|
+
or isinstance(entry.get("ordinal"), bool)
|
|
1061
|
+
):
|
|
1062
|
+
fail("input", "Each chunk is {ordinal, path, entity?}")
|
|
1063
|
+
entity = entry.get("entity")
|
|
1064
|
+
if entity is not None and not isinstance(entity, str):
|
|
1065
|
+
fail("input", "chunk entity must be a string")
|
|
1066
|
+
if entry["ordinal"] in seen:
|
|
1067
|
+
fail("input", f"chunk ordinal {entry['ordinal']} is listed twice")
|
|
1068
|
+
seen.add(entry["ordinal"])
|
|
1069
|
+
path = _under(workdir, entry.get("path"), "chunk path")
|
|
1070
|
+
if not path.is_file():
|
|
1071
|
+
fail("input", f"chunk {entry['ordinal']} is missing under workdir")
|
|
1072
|
+
specs.append(ChunkSpec(entry["ordinal"], path, entity))
|
|
1073
|
+
return sorted(specs, key=lambda spec: spec.ordinal)
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
def _tree(root: Path) -> list:
|
|
1077
|
+
"""Every file under ``root`` as ``[{path, content}]``, the encoding ``init-template``
|
|
1078
|
+
returns, so the platform commits a version without knowing which file changed."""
|
|
1079
|
+
return [
|
|
1080
|
+
{
|
|
1081
|
+
"path": path.relative_to(root).as_posix(),
|
|
1082
|
+
"content": base64.b64encode(path.read_bytes()).decode("ascii"),
|
|
1083
|
+
}
|
|
1084
|
+
for path in sorted(root.rglob("*"))
|
|
1085
|
+
if path.is_file() and "__pycache__" not in path.parts
|
|
1086
|
+
]
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
def _write_tree(workdir: Path, request: dict) -> Path:
|
|
1090
|
+
"""The world tree from ``files``, written under ``workdir/tree`` and compiled (the
|
|
1091
|
+
contract alone is enough: generated artifacts are regenerated, snapshots are not)."""
|
|
1092
|
+
from .compiler import compile_bundle
|
|
1093
|
+
|
|
1094
|
+
root = workdir / "tree"
|
|
1095
|
+
if root.exists():
|
|
1096
|
+
shutil.rmtree(root)
|
|
1097
|
+
root.mkdir()
|
|
1098
|
+
_write_files(root, request.get("files"))
|
|
1099
|
+
world = world_root(root)
|
|
1100
|
+
compile_bundle(world, snapshots=False)
|
|
1101
|
+
return world
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
def _flag(request: dict, name: str, default: bool) -> bool:
|
|
1105
|
+
value = request.get(name, default)
|
|
1106
|
+
if not isinstance(value, bool):
|
|
1107
|
+
fail("input", f"{name} must be true or false")
|
|
1108
|
+
return value
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
def _validate_rows(request: dict) -> dict:
|
|
1112
|
+
"""``validate-rows``: shape-only validation of every row in the chunks (type, bounds,
|
|
1113
|
+
required, unknown property, primary key present); no reference checks."""
|
|
1114
|
+
from .batch import validate_chunks
|
|
1115
|
+
from .compiler import check_bundle
|
|
1116
|
+
from .data import MODES
|
|
1117
|
+
|
|
1118
|
+
workdir = _workdir(request)
|
|
1119
|
+
if request.get("mode", "append") not in MODES:
|
|
1120
|
+
fail("input", f"mode must be one of {', '.join(MODES)}")
|
|
1121
|
+
root = _write_tree(workdir, request)
|
|
1122
|
+
report = validate_chunks(check_bundle(root), _chunk_specs(workdir, request), redactor=_redactor(root, request))
|
|
1123
|
+
return {"status": "ok", **report}
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
def _redactor(root: Path, request: dict):
|
|
1127
|
+
"""The batch's redaction hook from ``request.redact`` (off | apply | refuse)."""
|
|
1128
|
+
from .redaction import parse_mode, require_policy, row_redactor
|
|
1129
|
+
|
|
1130
|
+
redact = parse_mode(request.get("redact"))
|
|
1131
|
+
return row_redactor(require_policy(root, redact), redact)
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
def _snapshot_build(request: dict) -> dict:
|
|
1135
|
+
"""``snapshot-build``: the parent snapshot (or the tree's default) with the chunks
|
|
1136
|
+
applied in dependency order, one transaction (atomic) or one per chunk; the new
|
|
1137
|
+
snapshot saved under workdir with its sidecar, or nothing on dryRun or an atomic
|
|
1138
|
+
refusal."""
|
|
1139
|
+
from .batch import build_batch
|
|
1140
|
+
from .compiler import check_bundle
|
|
1141
|
+
from .data import MERGES, MODES
|
|
1142
|
+
from .snapshot import EMPTY_DIGEST, build_default, default_snapshot
|
|
1143
|
+
|
|
1144
|
+
workdir = _workdir(request)
|
|
1145
|
+
mode = request.get("mode", "append")
|
|
1146
|
+
merge = request.get("merge", "upsert")
|
|
1147
|
+
if mode not in MODES:
|
|
1148
|
+
fail("input", f"mode must be one of {', '.join(MODES)}")
|
|
1149
|
+
if merge not in MERGES:
|
|
1150
|
+
fail("input", f"merge must be one of {', '.join(MERGES)}")
|
|
1151
|
+
batch_id = request.get("batchId")
|
|
1152
|
+
parent_digest = request.get("parentBatchDigest", EMPTY_DIGEST)
|
|
1153
|
+
if not isinstance(batch_id, str) or not batch_id or "/" in batch_id or batch_id in (".", ".."):
|
|
1154
|
+
fail("input", "batchId must be a non-empty string without slashes")
|
|
1155
|
+
if not isinstance(parent_digest, str) or len(parent_digest) != 64:
|
|
1156
|
+
fail("input", "parentBatchDigest must be a 64-hex batch digest")
|
|
1157
|
+
atomic = _flag(request, "atomic", True)
|
|
1158
|
+
dry_run = _flag(request, "dryRun", False)
|
|
1159
|
+
root = _write_tree(workdir, request)
|
|
1160
|
+
contract = check_bundle(root)
|
|
1161
|
+
redactor = _redactor(root, request)
|
|
1162
|
+
chunks = _chunk_specs(workdir, request)
|
|
1163
|
+
# One directory per batch, so a parent built by an earlier call in the same
|
|
1164
|
+
# workdir is never the file being written.
|
|
1165
|
+
out_dir = workdir / "snapshot" / batch_id
|
|
1166
|
+
out_dir.mkdir(parents=True, exist_ok=True)
|
|
1167
|
+
out = out_dir / "state.sqlite"
|
|
1168
|
+
out.unlink(missing_ok=True)
|
|
1169
|
+
out.with_name("state.json").unlink(missing_ok=True)
|
|
1170
|
+
if request.get("parentSnapshot") is not None:
|
|
1171
|
+
parent = _under(workdir, request["parentSnapshot"], "parentSnapshot")
|
|
1172
|
+
if not parent.is_file():
|
|
1173
|
+
fail("input", "parentSnapshot is missing under workdir")
|
|
1174
|
+
shutil.copyfile(parent, out)
|
|
1175
|
+
else:
|
|
1176
|
+
build_default(root, contract)
|
|
1177
|
+
shutil.copyfile(default_snapshot(root), out)
|
|
1178
|
+
result = build_batch(
|
|
1179
|
+
contract,
|
|
1180
|
+
out,
|
|
1181
|
+
chunks,
|
|
1182
|
+
mode=mode,
|
|
1183
|
+
merge=merge,
|
|
1184
|
+
atomic=atomic,
|
|
1185
|
+
batch_id=batch_id,
|
|
1186
|
+
parent_digest=parent_digest,
|
|
1187
|
+
dry_run=dry_run,
|
|
1188
|
+
redactor=redactor,
|
|
1189
|
+
)
|
|
1190
|
+
if "snapshot" in result:
|
|
1191
|
+
# Absolute, under workdir: the caller opens it as it is.
|
|
1192
|
+
result["snapshot"] = str(result["snapshot"])
|
|
1193
|
+
return {"status": "ok", **result}
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
def _snapshot_default(request: dict) -> dict:
|
|
1197
|
+
"""``snapshot-default``: the tree's default snapshot and every scenario snapshot,
|
|
1198
|
+
built under ``workdir/tree``; the sidecars come back with absolute paths."""
|
|
1199
|
+
from .compiler import check_bundle
|
|
1200
|
+
from .snapshot import build_all, default_snapshot, scenario_snapshot
|
|
1201
|
+
|
|
1202
|
+
workdir = _workdir(request)
|
|
1203
|
+
root = _write_tree(workdir, request)
|
|
1204
|
+
built = build_all(root, check_bundle(root))
|
|
1205
|
+
# Paths are absolute, under workdir; the sidecar sits both at the top level and
|
|
1206
|
+
# keyed by its tree path, so a reader may take either.
|
|
1207
|
+
return {
|
|
1208
|
+
"status": "ok",
|
|
1209
|
+
"snapshot": str(default_snapshot(root)),
|
|
1210
|
+
"sidecar": built["default"],
|
|
1211
|
+
"sidecars": {"db/state.json": built["default"]},
|
|
1212
|
+
"scenarios": {
|
|
1213
|
+
name: {"snapshot": str(scenario_snapshot(root, name)), "sidecar": sidecar}
|
|
1214
|
+
for name, sidecar in built["scenarios"].items()
|
|
1215
|
+
},
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
def _api_bundle(request: dict) -> dict:
|
|
1220
|
+
"""The api-kind bundle that hosts a world's API, built from the world's files:
|
|
1221
|
+
what `gateway worlds schema api-bundle` writes locally, for a CLI with no Python."""
|
|
1222
|
+
from .api import build_api_bundle
|
|
1223
|
+
|
|
1224
|
+
files = _template_files(request)
|
|
1225
|
+
with tempfile.TemporaryDirectory(prefix="gateway-schema-") as directory:
|
|
1226
|
+
root = Path(directory) / "world"
|
|
1227
|
+
root.mkdir()
|
|
1228
|
+
for path, data in files.items():
|
|
1229
|
+
target = root / path
|
|
1230
|
+
target.parent.mkdir(parents=True, exist_ok=True)
|
|
1231
|
+
target.write_bytes(data)
|
|
1232
|
+
out = Path(directory) / "api"
|
|
1233
|
+
build_api_bundle(root, out)
|
|
1234
|
+
return {"status": "ok", "files": _tree(out)}
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
def _ingest(request: dict) -> dict:
|
|
1238
|
+
"""``ingest``: the world's authored tree, its ``captures/`` and manifest included,
|
|
1239
|
+
seeded from those captures through the contract exactly as the CLI does, and the
|
|
1240
|
+
whole updated tree handed back. Runs no Python of the world's own."""
|
|
1241
|
+
from .connector import check, ingest
|
|
1242
|
+
|
|
1243
|
+
batch_id = request.get("batch_id")
|
|
1244
|
+
if batch_id is not None and not isinstance(batch_id, str):
|
|
1245
|
+
fail("input", "batch_id must be a string")
|
|
1246
|
+
dry_run = request.get("dry_run", False)
|
|
1247
|
+
if not isinstance(dry_run, bool):
|
|
1248
|
+
fail("input", "dry_run must be true or false")
|
|
1249
|
+
with tempfile.TemporaryDirectory(prefix="gateway-ingest-") as directory:
|
|
1250
|
+
root = Path(directory) / "world"
|
|
1251
|
+
root.mkdir()
|
|
1252
|
+
_write_files(root, request.get("files"))
|
|
1253
|
+
if dry_run:
|
|
1254
|
+
# Every violation of every capture, grouped; no files come back since none changed.
|
|
1255
|
+
return {"status": "ok", "result": check(world_root(root))}
|
|
1256
|
+
result = ingest(world_root(root), batch_id=batch_id)
|
|
1257
|
+
return {"status": "ok", "result": result, "files": _tree(root)}
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
def _reconcile(request: dict) -> dict:
|
|
1261
|
+
"""``reconcile``: the world's contract against its captured rows (see
|
|
1262
|
+
:mod:`reconcile`); the report of every change, and with ``write`` the updated
|
|
1263
|
+
tree (``schema/world.json`` rewritten and recompiled)."""
|
|
1264
|
+
from .reconcile import SOURCES, reconcile
|
|
1265
|
+
|
|
1266
|
+
source = request.get("from", "captures")
|
|
1267
|
+
if source not in SOURCES:
|
|
1268
|
+
fail("input", f"from must be one of {', '.join(SOURCES)}")
|
|
1269
|
+
write = request.get("write", False)
|
|
1270
|
+
if not isinstance(write, bool):
|
|
1271
|
+
fail("input", "write must be true or false")
|
|
1272
|
+
with tempfile.TemporaryDirectory(prefix="gateway-reconcile-") as directory:
|
|
1273
|
+
root = Path(directory) / "world"
|
|
1274
|
+
root.mkdir()
|
|
1275
|
+
_write_files(root, request.get("files"))
|
|
1276
|
+
report = reconcile(world_root(root), source=source, write=write).to_json()
|
|
1277
|
+
report["world"] = root.name
|
|
1278
|
+
out = {"status": "ok", "report": report}
|
|
1279
|
+
if report["written"]:
|
|
1280
|
+
out["files"] = _tree(root)
|
|
1281
|
+
return out
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
def _conform(request: dict) -> dict:
|
|
1285
|
+
"""``conform``: serve the world in the bridge and check every operation's answer
|
|
1286
|
+
against the vendor's OpenAPI documents. The report is the one ``connector conform
|
|
1287
|
+
--out`` writes; ``world`` names the bundle, never the bridge's scratch path."""
|
|
1288
|
+
from .conform import conform
|
|
1289
|
+
|
|
1290
|
+
documents = request.get("openapi")
|
|
1291
|
+
if not isinstance(documents, list) or not documents:
|
|
1292
|
+
fail("input", "Expected one or more OpenAPI documents as [{path, content}]")
|
|
1293
|
+
max_operations = request.get("max_operations")
|
|
1294
|
+
if max_operations is not None and (
|
|
1295
|
+
isinstance(max_operations, bool) or not isinstance(max_operations, int) or max_operations < 1
|
|
1296
|
+
):
|
|
1297
|
+
fail("input", "max_operations must be a positive integer")
|
|
1298
|
+
with tempfile.TemporaryDirectory(prefix="gateway-conform-") as directory:
|
|
1299
|
+
root = Path(directory) / "world"
|
|
1300
|
+
root.mkdir()
|
|
1301
|
+
_write_files(root, request.get("files"))
|
|
1302
|
+
openapi = Path(directory) / "openapi"
|
|
1303
|
+
openapi.mkdir()
|
|
1304
|
+
_write_files(openapi, documents)
|
|
1305
|
+
paths = [openapi.joinpath(*PurePosixPath(entry["path"]).parts) for entry in documents]
|
|
1306
|
+
report = conform(world_root(root), paths, max_operations=max_operations).to_json()
|
|
1307
|
+
report["world"] = root.name
|
|
1308
|
+
return {"status": "ok", "report": report}
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
def _run_tests(request: dict) -> dict:
|
|
1312
|
+
"""``run-tests``: serve the world at these files in the bridge and run the tests it
|
|
1313
|
+
ships under ``tests/`` (see :mod:`world_tests`). ``scenario`` starts the world in one
|
|
1314
|
+
of its scenarios; ``snapshot`` ({url, sha256, digest}) lays a pinned data snapshot
|
|
1315
|
+
into the tree first, so a data-only version is tested with its rows."""
|
|
1316
|
+
from .snapshot import fetch as fetch_snapshot
|
|
1317
|
+
from .world_tests import run
|
|
1318
|
+
|
|
1319
|
+
scenario = request.get("scenario")
|
|
1320
|
+
if scenario is not None and not isinstance(scenario, str):
|
|
1321
|
+
fail("input", "scenario must be a string")
|
|
1322
|
+
snapshot = request.get("snapshot")
|
|
1323
|
+
if snapshot is not None and not (
|
|
1324
|
+
isinstance(snapshot, dict) and all(isinstance(snapshot.get(k), str) for k in ("url", "sha256", "digest"))
|
|
1325
|
+
):
|
|
1326
|
+
fail("input", "snapshot must be {url, sha256, digest}")
|
|
1327
|
+
with tempfile.TemporaryDirectory(prefix="gateway-tests-") as directory:
|
|
1328
|
+
root = _world_for(request, Path(directory))
|
|
1329
|
+
if snapshot is not None:
|
|
1330
|
+
fetch_snapshot(root, check_bundle(root), snapshot["url"], snapshot["sha256"], snapshot["digest"])
|
|
1331
|
+
report = run(root, scenario=scenario).to_json()
|
|
1332
|
+
report["world"] = root.name
|
|
1333
|
+
return {"status": "ok", "report": report}
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
def _world_for(request: dict, staging: Path) -> Path:
|
|
1337
|
+
"""The world a run-style command works on: ``files`` laid into ``staging``
|
|
1338
|
+
(what the platform sends), or — where this runtime may run authored code —
|
|
1339
|
+
``world``, an absolute directory on this machine, opened in place so its
|
|
1340
|
+
``[dependencies]`` paths resolve and nothing is copied."""
|
|
1341
|
+
world = request.get("world")
|
|
1342
|
+
if world is None:
|
|
1343
|
+
root = staging / "world"
|
|
1344
|
+
root.mkdir()
|
|
1345
|
+
_write_files(root, request.get("files"))
|
|
1346
|
+
return world_root(root)
|
|
1347
|
+
if not may_execute():
|
|
1348
|
+
fail("input", "world is a local-runtime field; this runtime takes files")
|
|
1349
|
+
if not isinstance(world, str) or not Path(world).is_absolute() or not Path(world).is_dir():
|
|
1350
|
+
fail("input", "world must be an absolute path to a directory on this machine")
|
|
1351
|
+
return world_root(Path(world).resolve())
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
def _call(request: dict) -> dict:
|
|
1355
|
+
"""``call``: open the world at ``world`` (a local directory; ``files`` for a
|
|
1356
|
+
tree without dependencies) as one session and call ``tool`` with ``args``,
|
|
1357
|
+
the way the host would — root tools by name, a dependency's as
|
|
1358
|
+
``alias.tool``. The answer is the tool's ``{status, body}``, the state
|
|
1359
|
+
afterwards when ``state`` is asked for, and the grade when ``grade`` is.
|
|
1360
|
+
Only where this runtime may run a world's Python (:func:`may_execute`)."""
|
|
1361
|
+
from .local import open_world
|
|
1362
|
+
|
|
1363
|
+
if not may_execute():
|
|
1364
|
+
fail(
|
|
1365
|
+
"input",
|
|
1366
|
+
"call runs a world's own Python; it runs on your machine through the CLI's "
|
|
1367
|
+
"bundled runtime (`gateway worlds call`), never through the platform",
|
|
1368
|
+
)
|
|
1369
|
+
tool = request.get("tool")
|
|
1370
|
+
if not isinstance(tool, str) or not tool:
|
|
1371
|
+
fail("input", "tool must be a tool name (root) or alias.tool (a dependency's)")
|
|
1372
|
+
args = request.get("args", {})
|
|
1373
|
+
if not isinstance(args, dict):
|
|
1374
|
+
fail("input", "args must be an object of the tool's arguments")
|
|
1375
|
+
task = request.get("task")
|
|
1376
|
+
if task is not None and not isinstance(task, str):
|
|
1377
|
+
fail("input", "task must be a task name")
|
|
1378
|
+
scenario = request.get("scenario")
|
|
1379
|
+
if scenario is not None and not isinstance(scenario, str):
|
|
1380
|
+
fail("input", "scenario must be a scenario name")
|
|
1381
|
+
seed = request.get("seed")
|
|
1382
|
+
if seed is not None and not isinstance(seed, dict):
|
|
1383
|
+
fail("input", "seed must be an object: {entity: [rows]} or {mode, rows}")
|
|
1384
|
+
with tempfile.TemporaryDirectory(prefix="gateway-call-") as directory:
|
|
1385
|
+
root = _world_for(request, Path(directory))
|
|
1386
|
+
with open_world(root, task=task, scenario=scenario, http=False) as session:
|
|
1387
|
+
answer: dict[str, Any] = {"status": "ok", "tools": session.tools}
|
|
1388
|
+
if seed is not None:
|
|
1389
|
+
answer["seed"] = session.seed(seed)
|
|
1390
|
+
answer["result"] = session.call(tool, args)
|
|
1391
|
+
if _flag(request, "state", False):
|
|
1392
|
+
answer["state"] = session.state()
|
|
1393
|
+
if _flag(request, "grade", False):
|
|
1394
|
+
answer["grade"] = session.grade()
|
|
1395
|
+
return answer
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
def _dry_run(request: dict) -> dict:
|
|
1399
|
+
"""``dry-run``: open the world at ``world`` under ``task`` exactly as a
|
|
1400
|
+
hosted session would (the task's seed laid, its tools served), grade the
|
|
1401
|
+
UNTOUCHED state with the task's verifiers, and close. The answer is the
|
|
1402
|
+
task card (prompt, tools, verifiers), the state's rows per entity, and
|
|
1403
|
+
``grade`` — or, when a verifier cannot run (bad SQL, a missing entity),
|
|
1404
|
+
``grade: null`` and ``verifier_errors`` naming each verifier that failed
|
|
1405
|
+
with SQLite's own words. That is the point of the dry run: a benchmark
|
|
1406
|
+
whose grader dies is found here, not on the runner. Only where this
|
|
1407
|
+
runtime may run a world's Python (:func:`may_execute`)."""
|
|
1408
|
+
from ..errors import VerifierError
|
|
1409
|
+
from .local import open_world
|
|
1410
|
+
|
|
1411
|
+
if not may_execute():
|
|
1412
|
+
fail(
|
|
1413
|
+
"input",
|
|
1414
|
+
"dry-run opens a world's own Python; it runs on your machine through the CLI's "
|
|
1415
|
+
"bundled runtime (`gateway benchmarks dry-run`), never through the platform",
|
|
1416
|
+
)
|
|
1417
|
+
task = request.get("task")
|
|
1418
|
+
if not isinstance(task, str) or not task:
|
|
1419
|
+
fail("input", "task must be the id of one of the world's [[tasks]]")
|
|
1420
|
+
|
|
1421
|
+
def message(error: Exception) -> str:
|
|
1422
|
+
if isinstance(error, ContractError):
|
|
1423
|
+
text = str(error.detail.get("message") or error)
|
|
1424
|
+
sql = error.detail.get("sql")
|
|
1425
|
+
return f"{text}\n SQL: {sql}" if sql else text
|
|
1426
|
+
return str(error)
|
|
1427
|
+
|
|
1428
|
+
with tempfile.TemporaryDirectory(prefix="gateway-dry-run-") as directory:
|
|
1429
|
+
root = _world_for(request, Path(directory))
|
|
1430
|
+
with open_world(root, task=task, http=False) as session:
|
|
1431
|
+
card = session.task()
|
|
1432
|
+
answer: dict[str, Any] = {
|
|
1433
|
+
"status": "ok",
|
|
1434
|
+
"task": card["task"],
|
|
1435
|
+
"prompt": card["prompt"],
|
|
1436
|
+
"tools": session.tools,
|
|
1437
|
+
"verifiers": card["verifiers"],
|
|
1438
|
+
"worlds": card["worlds"],
|
|
1439
|
+
"state": session.state(),
|
|
1440
|
+
}
|
|
1441
|
+
try:
|
|
1442
|
+
answer["grade"] = session.grade()
|
|
1443
|
+
return answer
|
|
1444
|
+
except (ContractError, VerifierError):
|
|
1445
|
+
pass
|
|
1446
|
+
# Name the verifier: the grade runs them together, so run each alone.
|
|
1447
|
+
errors: dict[str, str] = {}
|
|
1448
|
+
for name in card["verifiers"]:
|
|
1449
|
+
try:
|
|
1450
|
+
session.world.world.verify(name)
|
|
1451
|
+
except (ContractError, VerifierError) as error:
|
|
1452
|
+
errors[name] = message(error)
|
|
1453
|
+
for alias, names in card["worlds"].items():
|
|
1454
|
+
for name in names:
|
|
1455
|
+
try:
|
|
1456
|
+
session.world.worlds[alias].verify(name)
|
|
1457
|
+
except (ContractError, VerifierError) as error:
|
|
1458
|
+
errors[f"{alias}/{name}"] = message(error)
|
|
1459
|
+
answer["grade"] = None
|
|
1460
|
+
answer["verifier_errors"] = errors
|
|
1461
|
+
return answer
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
def _counts(request: dict) -> dict:
|
|
1465
|
+
"""``counts``: what the world at these files seeds with. A kind whose seed lives
|
|
1466
|
+
elsewhere (a harbor tree, an unknown layout) answers with the reason instead of
|
|
1467
|
+
a rejection, so the caller can show it."""
|
|
1468
|
+
from .data import entity_counts, entity_rows, world_kind
|
|
1469
|
+
|
|
1470
|
+
entity = request.get("entity")
|
|
1471
|
+
if entity is not None and not isinstance(entity, str):
|
|
1472
|
+
fail("input", "entity must be a string")
|
|
1473
|
+
with tempfile.TemporaryDirectory(prefix="gateway-counts-") as directory:
|
|
1474
|
+
root = Path(directory) / "world"
|
|
1475
|
+
root.mkdir()
|
|
1476
|
+
_write_files(root, request.get("files"))
|
|
1477
|
+
root = world_root(root)
|
|
1478
|
+
kind = world_kind(root)
|
|
1479
|
+
try:
|
|
1480
|
+
counts = entity_counts(root)
|
|
1481
|
+
except ContractError as error:
|
|
1482
|
+
if error.detail.get("code") != "kind":
|
|
1483
|
+
raise
|
|
1484
|
+
return {
|
|
1485
|
+
"status": "ok",
|
|
1486
|
+
"kind": kind,
|
|
1487
|
+
"entity_counts": None,
|
|
1488
|
+
"reason": error.detail["message"],
|
|
1489
|
+
}
|
|
1490
|
+
report = {"status": "ok", "kind": kind, "entity_counts": counts}
|
|
1491
|
+
if entity is not None:
|
|
1492
|
+
report["rows"] = entity_rows(root, entity)
|
|
1493
|
+
return report
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
def _query(request: dict) -> dict:
|
|
1497
|
+
"""``query``: the rows of one entity of the world at these files that match
|
|
1498
|
+
``where`` (a field to a value or a list of values), a page at a time (``limit``,
|
|
1499
|
+
``offset``). With ``resolve``, each value is plaintext and is looked up in the
|
|
1500
|
+
forms the world's ``[redact]`` policy stores (:func:`data.entity_query`). A tree
|
|
1501
|
+
that carries its compiled ``db/state.sqlite`` (a checked-out snapshot) answers
|
|
1502
|
+
from the snapshot, as ``counts`` does; otherwise from its data files. With
|
|
1503
|
+
``across`` (local runtime only: ``world`` is a directory here, so its
|
|
1504
|
+
``[dependencies]`` paths resolve) the answer is :func:`data.entity_query_across`'s
|
|
1505
|
+
groups, one per linked world a mapping carries a ``where`` field into."""
|
|
1506
|
+
from .data import entity_query, entity_query_across, world_kind
|
|
1507
|
+
|
|
1508
|
+
entity = request.get("entity")
|
|
1509
|
+
if not isinstance(entity, str) or not entity:
|
|
1510
|
+
fail("input", "entity must be a non-empty string")
|
|
1511
|
+
where = request.get("where", {})
|
|
1512
|
+
if not isinstance(where, dict):
|
|
1513
|
+
fail("input", "where must be an object mapping a field to a value or a list of values")
|
|
1514
|
+
resolve = request.get("resolve", False)
|
|
1515
|
+
if not isinstance(resolve, bool):
|
|
1516
|
+
fail("input", "resolve must be a boolean")
|
|
1517
|
+
# The platform's cross-world query sends the mapping's transform chain per field
|
|
1518
|
+
# under this key (worldDataQueryService.ts BRIDGE_WHERE_TRANSFORM_KEY).
|
|
1519
|
+
where_transform = request.get("where_transform")
|
|
1520
|
+
if where_transform is not None and not isinstance(where_transform, dict):
|
|
1521
|
+
fail("input", "where_transform must be an object mapping a field to a list of transform names")
|
|
1522
|
+
across = request.get("across", False)
|
|
1523
|
+
compare = request.get("compare", False)
|
|
1524
|
+
if not isinstance(across, bool) or not isinstance(compare, bool):
|
|
1525
|
+
fail("input", "across and compare must be booleans")
|
|
1526
|
+
if compare and not across:
|
|
1527
|
+
fail("input", "compare needs across")
|
|
1528
|
+
scenario = request.get("scenario")
|
|
1529
|
+
if scenario is not None and (not isinstance(scenario, str) or not scenario):
|
|
1530
|
+
fail("input", "scenario must be a non-empty string", "/scenario")
|
|
1531
|
+
with tempfile.TemporaryDirectory(prefix="gateway-query-") as directory:
|
|
1532
|
+
root = _world_for(request, Path(directory))
|
|
1533
|
+
if across:
|
|
1534
|
+
if request.get("world") is None:
|
|
1535
|
+
fail(
|
|
1536
|
+
"input", "across reads the linked worlds at their paths, so it takes world (a directory), not files"
|
|
1537
|
+
)
|
|
1538
|
+
report = entity_query_across(
|
|
1539
|
+
root,
|
|
1540
|
+
entity,
|
|
1541
|
+
where,
|
|
1542
|
+
limit=request.get("limit", 100),
|
|
1543
|
+
offset=request.get("offset", 0),
|
|
1544
|
+
resolve=resolve,
|
|
1545
|
+
compare=compare,
|
|
1546
|
+
scenario=scenario,
|
|
1547
|
+
)
|
|
1548
|
+
return {"status": "ok", "kind": world_kind(root), **report}
|
|
1549
|
+
report = entity_query(
|
|
1550
|
+
root,
|
|
1551
|
+
entity,
|
|
1552
|
+
where,
|
|
1553
|
+
limit=request.get("limit", 100),
|
|
1554
|
+
offset=request.get("offset", 0),
|
|
1555
|
+
resolve=resolve,
|
|
1556
|
+
where_transform=where_transform,
|
|
1557
|
+
scenario=scenario,
|
|
1558
|
+
)
|
|
1559
|
+
return {"status": "ok", "kind": world_kind(root), **report}
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
def _templates(request: dict) -> dict:
|
|
1563
|
+
"""``templates``: every installed connector template, read from its ``world.json``
|
|
1564
|
+
(name and description when the document carries them) and whether it declares a
|
|
1565
|
+
vendor connection. Never runs a template's Python."""
|
|
1566
|
+
from .scaffold import TEMPLATES, list_templates
|
|
1567
|
+
|
|
1568
|
+
templates = []
|
|
1569
|
+
for slug in list_templates():
|
|
1570
|
+
world = json.loads((TEMPLATES / slug / "world.json").read_text(encoding="utf-8"))
|
|
1571
|
+
gateway = world.get("x-gateway") if isinstance(world, dict) else None
|
|
1572
|
+
if not isinstance(gateway, dict):
|
|
1573
|
+
fail("template", f"{slug}/world.json is not a gateway-world document")
|
|
1574
|
+
templates.append(
|
|
1575
|
+
{
|
|
1576
|
+
"slug": slug,
|
|
1577
|
+
"name": world.get("title") if isinstance(world.get("title"), str) else None,
|
|
1578
|
+
"description": world.get("description") if isinstance(world.get("description"), str) else None,
|
|
1579
|
+
"entities": sorted(gateway.get("entities") or {}),
|
|
1580
|
+
"tools": sorted(gateway.get("tools") or {}),
|
|
1581
|
+
"hasConnection": (TEMPLATES / slug / "connector.toml").is_file(),
|
|
1582
|
+
}
|
|
1583
|
+
)
|
|
1584
|
+
return {"status": "ok", "templates": templates}
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
def execute(request: dict) -> dict:
|
|
1588
|
+
if not isinstance(request, dict) or request.get("command") not in COMMANDS:
|
|
1589
|
+
fail(
|
|
1590
|
+
"command",
|
|
1591
|
+
"Expected one of " + ", ".join(COMMANDS[:-1]) + " or " + COMMANDS[-1],
|
|
1592
|
+
)
|
|
1593
|
+
if request["command"] == "validate-rows":
|
|
1594
|
+
return _validate_rows(request)
|
|
1595
|
+
if request["command"] == "snapshot-build":
|
|
1596
|
+
return _snapshot_build(request)
|
|
1597
|
+
if request["command"] == "snapshot-default":
|
|
1598
|
+
return _snapshot_default(request)
|
|
1599
|
+
if request["command"] == "capture":
|
|
1600
|
+
return _capture(request)
|
|
1601
|
+
if request["command"] == "import-data":
|
|
1602
|
+
return _import_data(request)
|
|
1603
|
+
if request["command"] == "ingest":
|
|
1604
|
+
return _ingest(request)
|
|
1605
|
+
if request["command"] == "ingest-calls":
|
|
1606
|
+
return _ingest_calls(request)
|
|
1607
|
+
if request["command"] == "conform":
|
|
1608
|
+
return _conform(request)
|
|
1609
|
+
if request["command"] == "reconcile":
|
|
1610
|
+
return _reconcile(request)
|
|
1611
|
+
if request["command"] == "run-tests":
|
|
1612
|
+
return _run_tests(request)
|
|
1613
|
+
if request["command"] == "call":
|
|
1614
|
+
return _call(request)
|
|
1615
|
+
if request["command"] == "dry-run":
|
|
1616
|
+
return _dry_run(request)
|
|
1617
|
+
if request["command"] == "counts":
|
|
1618
|
+
return _counts(request)
|
|
1619
|
+
if request["command"] == "query":
|
|
1620
|
+
return _query(request)
|
|
1621
|
+
if request["command"] == "templates":
|
|
1622
|
+
return _templates(request)
|
|
1623
|
+
if request["command"] == "api-bundle":
|
|
1624
|
+
return _api_bundle(request)
|
|
1625
|
+
if request["command"] == "template-summary":
|
|
1626
|
+
return _template_summary(_template_files(request))
|
|
1627
|
+
if request["command"] == "describe":
|
|
1628
|
+
return _describe(request)
|
|
1629
|
+
extra: dict = {}
|
|
1630
|
+
with tempfile.TemporaryDirectory(prefix="gateway-schema-") as directory:
|
|
1631
|
+
root = Path(directory) / "bundle"
|
|
1632
|
+
root.mkdir()
|
|
1633
|
+
if request["command"] == "validate-archive":
|
|
1634
|
+
_write_files(root, _archive_files(request.get("archive")))
|
|
1635
|
+
# A stored version may be the api bundle of a schema world: the
|
|
1636
|
+
# world lives under server/world, and that is what gets validated.
|
|
1637
|
+
root = world_root(root)
|
|
1638
|
+
if bundle_mode(root) is None:
|
|
1639
|
+
return {"status": "ok", "mode": "legacy"}
|
|
1640
|
+
if request["command"] == "validate" and request.get("world") is not None:
|
|
1641
|
+
# The CLI's bundled runtime checks a directory in place, so the
|
|
1642
|
+
# ``[dependencies]`` paths beside it resolve and its handlers may run.
|
|
1643
|
+
root = _world_for(request, Path(directory))
|
|
1644
|
+
elif request["command"] in (
|
|
1645
|
+
"validate",
|
|
1646
|
+
"compile",
|
|
1647
|
+
"apply-batch",
|
|
1648
|
+
"refresh-slack",
|
|
1649
|
+
):
|
|
1650
|
+
_write_files(root, request.get("files"))
|
|
1651
|
+
# The tree the platform sent may be a schema world's api bundle; the
|
|
1652
|
+
# world itself sits under server/world and is what compiles, takes a
|
|
1653
|
+
# batch and validates. The whole tree still travels back.
|
|
1654
|
+
world = world_root(root)
|
|
1655
|
+
if request["command"] == "compile":
|
|
1656
|
+
# Arbitrary custom worlds: the agent authors schema/world.json (+ manifest,
|
|
1657
|
+
# handlers, journals); the trusted compiler owns every generated artifact.
|
|
1658
|
+
extra["compile"] = compile_world(world)
|
|
1659
|
+
if world != root and (world / "data/initial.json").is_file():
|
|
1660
|
+
from .api import write_base_seed
|
|
1661
|
+
|
|
1662
|
+
write_base_seed(world, root)
|
|
1663
|
+
if request["command"] == "apply-batch":
|
|
1664
|
+
batch, source = request.get("batch"), request.get("source")
|
|
1665
|
+
if not isinstance(batch, dict) or (source is not None and not isinstance(source, str)):
|
|
1666
|
+
fail(
|
|
1667
|
+
"input",
|
|
1668
|
+
"Expected a batch object and an optional source prefix string",
|
|
1669
|
+
)
|
|
1670
|
+
extra["batch"] = append_batch(world, batch, source=source)
|
|
1671
|
+
if request["command"] == "init-template":
|
|
1672
|
+
# The platform's "create world" for every connector template: the same
|
|
1673
|
+
# init + compile the CLI runs, on a fresh empty tree, with nothing seeded.
|
|
1674
|
+
from .scaffold import init_bundle
|
|
1675
|
+
|
|
1676
|
+
connector = request.get("connector")
|
|
1677
|
+
name = request.get("name")
|
|
1678
|
+
if not isinstance(connector, str) or (name is not None and not isinstance(name, str)):
|
|
1679
|
+
fail("input", "Expected a connector template slug and an optional name")
|
|
1680
|
+
init_bundle(
|
|
1681
|
+
root,
|
|
1682
|
+
connector=connector,
|
|
1683
|
+
name=name,
|
|
1684
|
+
with_example_tool=request.get("with_example_tool") is True,
|
|
1685
|
+
)
|
|
1686
|
+
if request["command"] == "init-template-files":
|
|
1687
|
+
# A workspace connector: the template arrives as files, never as a path
|
|
1688
|
+
# the request chose, and the world is built exactly as from an installed one.
|
|
1689
|
+
from .scaffold import init_bundle_from_files
|
|
1690
|
+
|
|
1691
|
+
connector = request.get("connector")
|
|
1692
|
+
name = request.get("name")
|
|
1693
|
+
if not isinstance(connector, str) or (name is not None and not isinstance(name, str)):
|
|
1694
|
+
fail("input", "Expected the connector slug and an optional name")
|
|
1695
|
+
init_bundle_from_files(root, _template_files(request), connector=connector, name=name)
|
|
1696
|
+
if request["command"] == "build-slack":
|
|
1697
|
+
from .slack import build_slack_bundle
|
|
1698
|
+
|
|
1699
|
+
build_slack_bundle(root, evidence=request.get("evidence"), name=request.get("name"))
|
|
1700
|
+
if request["command"] == "refresh-slack":
|
|
1701
|
+
from .slack import refresh_slack_bundle
|
|
1702
|
+
|
|
1703
|
+
refresh_slack_bundle(root, request.get("evidence"), batch_id=request.get("batch_id"))
|
|
1704
|
+
report = {
|
|
1705
|
+
**validate_bundle(world_root(root), execute=_flag(request, "execute", False)),
|
|
1706
|
+
**extra,
|
|
1707
|
+
}
|
|
1708
|
+
if request["command"] not in ("validate", "validate-archive"):
|
|
1709
|
+
report["files"] = [
|
|
1710
|
+
{
|
|
1711
|
+
"path": str(path.relative_to(root)),
|
|
1712
|
+
"content": base64.b64encode(path.read_bytes()).decode("ascii"),
|
|
1713
|
+
}
|
|
1714
|
+
for path in sorted(root.rglob("*"))
|
|
1715
|
+
if path.is_file()
|
|
1716
|
+
]
|
|
1717
|
+
return report
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
def main():
|
|
1721
|
+
try:
|
|
1722
|
+
raw = sys.stdin.buffer.read(2 * MAX_BYTES + 1)
|
|
1723
|
+
if len(raw) > 2 * MAX_BYTES:
|
|
1724
|
+
fail("size", "Bridge request is too large")
|
|
1725
|
+
result = execute(json.loads(raw))
|
|
1726
|
+
print(json.dumps(result, sort_keys=True))
|
|
1727
|
+
except ContractError as error:
|
|
1728
|
+
print(json.dumps({"status": "rejected", "error": error.detail}, sort_keys=True))
|
|
1729
|
+
return 1
|
|
1730
|
+
except (OSError, ValueError, TypeError):
|
|
1731
|
+
# Never dump request content or provider records in process diagnostics.
|
|
1732
|
+
print(
|
|
1733
|
+
json.dumps(
|
|
1734
|
+
{
|
|
1735
|
+
"status": "rejected",
|
|
1736
|
+
"error": {
|
|
1737
|
+
"code": "input",
|
|
1738
|
+
"message": "Invalid schema bridge input",
|
|
1739
|
+
},
|
|
1740
|
+
}
|
|
1741
|
+
)
|
|
1742
|
+
)
|
|
1743
|
+
return 1
|
|
1744
|
+
return 0
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
if __name__ == "__main__":
|
|
1748
|
+
raise SystemExit(main())
|