@withgateway/sdk 0.2.0 → 0.2.2
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 +30 -6
- package/dist/cli.js +8950 -3291
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +8753 -3094
- 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 +2288 -116
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2260 -116
- 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 +16 -1
- package/dist/tracing/index.js.map +1 -1
- package/dist/tracing/index.mjs +16 -1
- package/dist/tracing/index.mjs.map +1 -1
- package/dist/worlds/index.d.mts +685 -1
- package/dist/worlds/index.d.ts +685 -1
- package/dist/worlds/index.js +1881 -32
- package/dist/worlds/index.js.map +1 -1
- package/dist/worlds/index.mjs +1880 -32
- package/dist/worlds/index.mjs.map +1 -1
- package/package.json +16 -1
- package/runtime/gatewaysdk/environment/_world.py +14 -1
- package/runtime/gatewaysdk/environment/schema/__init__.py +8 -0
- package/runtime/gatewaysdk/environment/schema/__main__.py +154 -19
- package/runtime/gatewaysdk/environment/schema/api.py +294 -40
- package/runtime/gatewaysdk/environment/schema/batch.py +43 -9
- package/runtime/gatewaysdk/environment/schema/compiler.py +89 -11
- package/runtime/gatewaysdk/environment/schema/conform.py +105 -13
- package/runtime/gatewaysdk/environment/schema/connector.py +453 -103
- 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 +3 -2
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/parity.json +11 -5
- package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/provenance.json +1635 -100
- 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 +49 -22
- 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 +1180 -194
- 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/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/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 +112 -24
- 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/provenance.json +109 -81
- 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 +501 -62
- 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 +14340 -4447
- 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/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 +1255 -80
- 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 +42 -5
- 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 +1972 -108
- 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/provenance.json +9443 -129
- 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 +839 -67
- 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 +10835 -1494
- 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 +73 -14
- 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 +3381 -183
- 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/provenance.json +229 -46
- 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 +118 -39
- 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 +1257 -205
- 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 +8 -5
- 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 +5957 -172
- 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 +49 -19
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/provenance.json +785 -4
- 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 +76 -4
- package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/teams-types.json +29 -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 +74 -6
- 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/parity.json +28 -1
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/provenance.json +215 -49
- 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 +251 -33
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/tests/tools.json +82 -0
- package/runtime/gatewaysdk/environment/schema/connectors/netsuite/world.json +31065 -8232
- 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 +695 -616
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/provenance.json +4254 -111
- 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 +624 -104
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/tests/tools.json +69 -0
- package/runtime/gatewaysdk/environment/schema/connectors/salesforce/world.json +19222 -2654
- 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 +28 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/api/handlers.py +1880 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/capabilities.json +19 -2
- package/runtime/gatewaysdk/environment/schema/connectors/slack/connector.toml +892 -0
- package/runtime/gatewaysdk/environment/schema/connectors/slack/provenance.json +65 -10
- 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 +6 -2
- 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 +396 -8
- 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/parity.json +39 -6
- package/runtime/gatewaysdk/environment/schema/connectors/workday/provenance.json +253 -25
- 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 +178 -14
- 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 +3787 -407
- 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 +424 -36
- package/runtime/gatewaysdk/environment/schema/dependencies.py +245 -0
- package/runtime/gatewaysdk/environment/schema/extract.py +6 -6
- package/runtime/gatewaysdk/environment/schema/host.py +234 -79
- package/runtime/gatewaysdk/environment/schema/host_surfaces.py +62 -17
- package/runtime/gatewaysdk/environment/schema/ingest.py +528 -0
- package/runtime/gatewaysdk/environment/schema/local.py +622 -0
- package/runtime/gatewaysdk/environment/schema/mapping.py +956 -0
- package/runtime/gatewaysdk/environment/schema/platform.py +708 -205
- 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 +68 -7
- package/runtime/gatewaysdk/environment/schema/skill.py +1 -0
- package/runtime/gatewaysdk/environment/schema/skills/benchmarks-getting-started/SKILL.md +394 -0
- package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/CONNECTORS.md +64 -31
- package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/SKILL.md +86 -36
- package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/ROWS.md +20 -0
- package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/SKILL.md +178 -11
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/SKILL.md +184 -74
- 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/store.py +103 -3
- package/runtime/gatewaysdk/environment/schema/tasks.py +8 -3
- package/runtime/gatewaysdk/environment/schema/tools_world.py +429 -58
- 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 +63 -15
- package/runtime/gatewaysdk/environment/schema/world_tests.py +245 -51
- package/skills/benchmarks-getting-started/SKILL.md +394 -0
- package/skills/connector-schema-authoring/CONNECTORS.md +64 -31
- package/skills/connector-schema-authoring/SKILL.md +86 -36
- 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 +20 -0
- package/skills/world-data-ingestion/SKILL.md +178 -11
- package/skills/worlds-getting-started/SKILL.md +184 -74
- package/skills/worlds-getting-started/references/cli-mcp-map.md +49 -0
- package/skills/worlds-getting-started/references/ui-map.md +18 -0
|
@@ -13,16 +13,19 @@ import binascii
|
|
|
13
13
|
import gzip
|
|
14
14
|
import io
|
|
15
15
|
import json
|
|
16
|
+
import os
|
|
16
17
|
import shutil
|
|
17
18
|
import sys
|
|
18
19
|
import tarfile
|
|
19
20
|
import tempfile
|
|
20
21
|
from pathlib import Path, PurePosixPath
|
|
21
|
-
from typing import Any
|
|
22
|
+
from typing import TYPE_CHECKING, Any
|
|
22
23
|
|
|
23
24
|
from .._materialize import materialize_template
|
|
24
25
|
from . import ContractError, SQLiteStore, bundle_mode, check_bundle, compile_bundle
|
|
25
26
|
from . import snapshot as snapshots
|
|
27
|
+
from .compiler import retarget_empty_journals
|
|
28
|
+
from .redaction import check_world_redaction
|
|
26
29
|
from .validation import (
|
|
27
30
|
digest,
|
|
28
31
|
encoded,
|
|
@@ -33,6 +36,12 @@ from .validation import (
|
|
|
33
36
|
read_json,
|
|
34
37
|
)
|
|
35
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
|
+
|
|
36
45
|
MAX_BYTES = 64 * 1024 * 1024
|
|
37
46
|
MAX_FILES = 2000
|
|
38
47
|
COMMANDS = (
|
|
@@ -49,14 +58,19 @@ COMMANDS = (
|
|
|
49
58
|
"capture",
|
|
50
59
|
"import-data",
|
|
51
60
|
"ingest",
|
|
61
|
+
"ingest-calls",
|
|
52
62
|
"conform",
|
|
63
|
+
"reconcile",
|
|
53
64
|
"counts",
|
|
65
|
+
"query",
|
|
54
66
|
"api-bundle",
|
|
55
67
|
"templates",
|
|
56
68
|
"validate-rows",
|
|
57
69
|
"snapshot-build",
|
|
58
70
|
"snapshot-default",
|
|
59
71
|
"run-tests",
|
|
72
|
+
"call",
|
|
73
|
+
"dry-run",
|
|
60
74
|
)
|
|
61
75
|
PLATFORM_MAPPING = {"id": "platform-agent", "version": "1"}
|
|
62
76
|
|
|
@@ -67,11 +81,11 @@ def compile_world(root: Path) -> dict:
|
|
|
67
81
|
The platform stores compiled trees, so a world whose authored inputs changed
|
|
68
82
|
(``schema/world.json``, ``gateway-env.toml``, handlers) is recompiled here
|
|
69
83
|
rather than rejected with ``lock_mismatch``. Only a journal that holds no
|
|
70
|
-
state (``mutations == []``)
|
|
71
|
-
|
|
72
|
-
state migration stays manual (re-import
|
|
73
|
-
|
|
74
|
-
|
|
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.
|
|
75
89
|
"""
|
|
76
90
|
from .snapshot import build_all
|
|
77
91
|
|
|
@@ -104,31 +118,7 @@ def compile_world(root: Path) -> dict:
|
|
|
104
118
|
)
|
|
105
119
|
)
|
|
106
120
|
added.append("data/initial.json")
|
|
107
|
-
retargeted =
|
|
108
|
-
for path in journal_paths(root):
|
|
109
|
-
journal = read_json(path)
|
|
110
|
-
location = str(path.relative_to(root))
|
|
111
|
-
if not isinstance(journal, dict) or not isinstance(journal.get("target"), dict):
|
|
112
|
-
fail("batch", "Journal must be a batch object with a target", location)
|
|
113
|
-
if journal["target"] == contract.target:
|
|
114
|
-
continue
|
|
115
|
-
if journal["target"].get("id") != contract.target["id"]:
|
|
116
|
-
fail(
|
|
117
|
-
"batch_target",
|
|
118
|
-
"Journal belongs to a different domain; remove it or restore the schema's $id",
|
|
119
|
-
location,
|
|
120
|
-
)
|
|
121
|
-
if journal.get("mutations") != []:
|
|
122
|
-
fail(
|
|
123
|
-
"batch_target",
|
|
124
|
-
"Batch targets a different domain identity/version/hash; a journal that holds "
|
|
125
|
-
"state is not migrated to an edited schema — re-import its rows against the new "
|
|
126
|
-
"contract (or restore the schema it was written against)",
|
|
127
|
-
location,
|
|
128
|
-
)
|
|
129
|
-
journal["target"] = contract.target
|
|
130
|
-
path.write_bytes(encoded(journal))
|
|
131
|
-
retargeted.append(location)
|
|
121
|
+
retargeted = retarget_empty_journals(root, contract)
|
|
132
122
|
build_all(root, contract)
|
|
133
123
|
return {"added": added, "retargeted": retargeted}
|
|
134
124
|
|
|
@@ -162,9 +152,7 @@ def append_batch(root: Path, batch: dict, *, source: str | None = None) -> dict:
|
|
|
162
152
|
mutations = []
|
|
163
153
|
for index, mutation in enumerate(batch["mutations"]):
|
|
164
154
|
if not isinstance(mutation, dict):
|
|
165
|
-
fail(
|
|
166
|
-
"batch", "Each mutation must be an object", f"/batch/mutations/{index}"
|
|
167
|
-
)
|
|
155
|
+
fail("batch", "Each mutation must be an object", f"/batch/mutations/{index}")
|
|
168
156
|
if "source" not in mutation:
|
|
169
157
|
if source is None:
|
|
170
158
|
fail(
|
|
@@ -229,8 +217,7 @@ def _pinned_state(bundle: Path, contract) -> dict[str, int] | None:
|
|
|
229
217
|
)
|
|
230
218
|
counts = pin.get("entityCounts")
|
|
231
219
|
if not isinstance(counts, dict) or any(
|
|
232
|
-
not isinstance(value, int) or isinstance(value, bool)
|
|
233
|
-
for value in counts.values()
|
|
220
|
+
not isinstance(value, int) or isinstance(value, bool) for value in counts.values()
|
|
234
221
|
):
|
|
235
222
|
fail(
|
|
236
223
|
"snapshot_pin",
|
|
@@ -240,10 +227,14 @@ def _pinned_state(bundle: Path, contract) -> dict[str, int] | None:
|
|
|
240
227
|
return {entity: int(counts.get(entity, 0)) for entity in contract.entities}
|
|
241
228
|
|
|
242
229
|
|
|
243
|
-
def validate_bundle(bundle: str | Path) -> dict:
|
|
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`)."""
|
|
244
235
|
bundle = Path(bundle)
|
|
245
236
|
if bundle_mode(bundle) is None:
|
|
246
|
-
fail("mode", "Expected a schema
|
|
237
|
+
fail("mode", "Expected a schema world: gateway-env.toml with [schema] beside schema/world.json")
|
|
247
238
|
contract = check_bundle(bundle)
|
|
248
239
|
declared = set(contract.tools)
|
|
249
240
|
found: dict[str, str] = {}
|
|
@@ -259,9 +250,7 @@ def validate_bundle(bundle: str | Path) -> dict:
|
|
|
259
250
|
continue
|
|
260
251
|
names = []
|
|
261
252
|
for decorator in node.decorator_list:
|
|
262
|
-
target = (
|
|
263
|
-
decorator.func if isinstance(decorator, ast.Call) else decorator
|
|
264
|
-
)
|
|
253
|
+
target = decorator.func if isinstance(decorator, ast.Call) else decorator
|
|
265
254
|
is_tool = (isinstance(target, ast.Name) and target.id == "tool") or (
|
|
266
255
|
isinstance(target, ast.Attribute) and target.attr == "tool"
|
|
267
256
|
)
|
|
@@ -271,12 +260,8 @@ def validate_bundle(bundle: str | Path) -> dict:
|
|
|
271
260
|
if isinstance(decorator, ast.Call):
|
|
272
261
|
for keyword in decorator.keywords:
|
|
273
262
|
if keyword.arg == "name":
|
|
274
|
-
if not isinstance(
|
|
275
|
-
|
|
276
|
-
) or not isinstance(keyword.value.value, str):
|
|
277
|
-
fail(
|
|
278
|
-
"handler", "Publication requires literal tool names"
|
|
279
|
-
)
|
|
263
|
+
if not isinstance(keyword.value, ast.Constant) or not isinstance(keyword.value.value, str):
|
|
264
|
+
fail("handler", "Publication requires literal tool names")
|
|
280
265
|
name = keyword.value.value
|
|
281
266
|
names.append(name)
|
|
282
267
|
if not names and node.name in declared:
|
|
@@ -288,10 +273,43 @@ def validate_bundle(bundle: str | Path) -> dict:
|
|
|
288
273
|
fail("handler", f"Duplicate handler for {name}")
|
|
289
274
|
found[name] = path.name
|
|
290
275
|
if set(found) != declared:
|
|
291
|
-
|
|
276
|
+
undeclared = sorted(set(found) - declared)
|
|
277
|
+
unhandled = sorted(declared - set(found))
|
|
278
|
+
parts = []
|
|
279
|
+
if unhandled:
|
|
280
|
+
parts.append(
|
|
281
|
+
"declared in schema/world.json (tools) without a handler under tools/: "
|
|
282
|
+
+ ", ".join(unhandled)
|
|
283
|
+
+ " — add `@tool` def <name>(...) to a tools/*.py, or drop the declaration"
|
|
284
|
+
)
|
|
285
|
+
if undeclared:
|
|
286
|
+
parts.append(
|
|
287
|
+
"handled under tools/ without a declaration: "
|
|
288
|
+
+ ", ".join(f"{name} ({found[name]})" for name in undeclared)
|
|
289
|
+
+ " — declare each in schema/world.json, or remove the handler"
|
|
290
|
+
)
|
|
291
|
+
fail(
|
|
292
|
+
"handler",
|
|
293
|
+
"Declared tools and Python handlers must match exactly; " + "; ".join(parts),
|
|
294
|
+
"/tools",
|
|
295
|
+
)
|
|
296
|
+
if (bundle / "connector.toml").is_file():
|
|
297
|
+
from .api import load_api_settings
|
|
298
|
+
from .connector import parse_spec
|
|
299
|
+
|
|
300
|
+
load_api_settings(bundle, parse_spec((bundle / "connector.toml").read_text(encoding="utf-8")))
|
|
301
|
+
_check_mappings(bundle, contract)
|
|
302
|
+
check_world_redaction(bundle)
|
|
292
303
|
pinned = _pinned_state(bundle, contract)
|
|
304
|
+
verifiers: dict[str, Any] = {}
|
|
293
305
|
if pinned is not None:
|
|
294
306
|
counts, initial_state = pinned, "pinned"
|
|
307
|
+
# The pinned snapshot is not in the tree, so the verifiers run over the
|
|
308
|
+
# bare schema: an error still surfaces; a score means nothing here.
|
|
309
|
+
with tempfile.TemporaryDirectory(prefix="gateway-state-check-") as staging:
|
|
310
|
+
with SQLiteStore.create(Path(staging) / "world.db", contract) as store:
|
|
311
|
+
unattached = _attach_dependencies(bundle, store, Path(staging))
|
|
312
|
+
verifiers = _check_verifiers(bundle, store, unattached, scored=False)
|
|
295
313
|
else:
|
|
296
314
|
initial_state = "validated"
|
|
297
315
|
with tempfile.TemporaryDirectory(prefix="gateway-state-check-") as staging:
|
|
@@ -299,18 +317,235 @@ def validate_bundle(bundle: str | Path) -> dict:
|
|
|
299
317
|
materialize_template(bundle, database)
|
|
300
318
|
with SQLiteStore.open(database, contract) as store:
|
|
301
319
|
store.audit()
|
|
302
|
-
counts = {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
320
|
+
counts = {entity: len(store.list(entity)) for entity in contract.entities}
|
|
321
|
+
unattached = _attach_dependencies(bundle, store, Path(staging))
|
|
322
|
+
verifiers = _check_verifiers(bundle, store, unattached, scored=True)
|
|
323
|
+
report = {
|
|
306
324
|
"status": "ok",
|
|
307
325
|
"domain": contract.target,
|
|
308
326
|
"package": contract.metadata["package"],
|
|
309
327
|
"initial_state": initial_state,
|
|
310
|
-
"handler_execution":
|
|
328
|
+
"handler_execution": _handler_execution(bundle, execute),
|
|
311
329
|
"entity_counts": counts,
|
|
312
330
|
"tools": sorted(declared),
|
|
331
|
+
"verifiers": verifiers,
|
|
332
|
+
"tasks": _check_tasks(bundle, sorted(verifiers)),
|
|
333
|
+
"dependencies": describe_dependencies(bundle),
|
|
313
334
|
}
|
|
335
|
+
return report
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
def _check_mappings(bundle: Path, contract: Contract) -> None:
|
|
339
|
+
"""Each ``[dependencies.<alias>.entities]`` mapping against this contract
|
|
340
|
+
and, for a dependency whose ``path`` is here, against that contract too."""
|
|
341
|
+
from .. import _bundle
|
|
342
|
+
from .dependencies import FieldMap, check_mappings, parse_dependencies
|
|
343
|
+
|
|
344
|
+
dependencies = parse_dependencies(_bundle.parse_manifest(bundle).raw)
|
|
345
|
+
deps: dict[str, FieldMap] = {}
|
|
346
|
+
for alias, dep in dependencies.items():
|
|
347
|
+
if dep.path is None or not dep.entities:
|
|
348
|
+
continue
|
|
349
|
+
tree = (bundle / dep.path).resolve()
|
|
350
|
+
if (tree / "gateway-env.toml").is_file():
|
|
351
|
+
deps[alias] = _field_map(check_bundle(tree))
|
|
352
|
+
check_mappings(dependencies, _field_map(contract), deps)
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
def _field_map(contract: Contract) -> FieldMap:
|
|
356
|
+
return {name: set(entity["schema"].get("properties", {})) for name, entity in contract.entities.items()}
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
def _attach_dependencies(bundle: Path, store: SQLiteStore, staging: Path) -> dict[str, str]:
|
|
360
|
+
"""Each ``[dependencies]`` entry whose local ``path`` is on this machine,
|
|
361
|
+
materialized beside the root's store and attached as ``<alias>.<table>``,
|
|
362
|
+
so a cross-world verifier runs here the way it runs in a session. Returns
|
|
363
|
+
the aliases left unattached, each with why: a pin without a path is the
|
|
364
|
+
platform's to resolve; a path that is not here (the platform checking a
|
|
365
|
+
pushed tree) resolves there too."""
|
|
366
|
+
from .. import _bundle
|
|
367
|
+
from .dependencies import parse_dependencies
|
|
368
|
+
|
|
369
|
+
manifest = _bundle.parse_manifest(bundle)
|
|
370
|
+
unattached: dict[str, str] = {}
|
|
371
|
+
for alias, dep in parse_dependencies(manifest.raw).items():
|
|
372
|
+
if dep.path is None:
|
|
373
|
+
unattached[alias] = (
|
|
374
|
+
f"'{alias}' has a pin but no path, so it runs where the platform opens the link "
|
|
375
|
+
'(add path = "../<dir>" to run it here)'
|
|
376
|
+
)
|
|
377
|
+
continue
|
|
378
|
+
tree = (bundle / dep.path).resolve()
|
|
379
|
+
if not (tree / "gateway-env.toml").is_file():
|
|
380
|
+
unattached[alias] = (
|
|
381
|
+
f"'{alias}'.path {dep.path!r} is not a schema world here ({tree}); it runs where that tree is"
|
|
382
|
+
)
|
|
383
|
+
continue
|
|
384
|
+
contract = check_bundle(tree)
|
|
385
|
+
database = staging / f"{alias}.db"
|
|
386
|
+
materialize_template(tree, database)
|
|
387
|
+
store.attach(alias, database, contract.entities)
|
|
388
|
+
return unattached
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
def _check_verifiers(bundle: Path, store: SQLiteStore, unattached: dict[str, str], *, scored: bool) -> dict[str, Any]:
|
|
392
|
+
"""Every ``verifiers/*.sql`` run over the template through the store's
|
|
393
|
+
read-only authorizer, the way a session grades. A verifier that names a
|
|
394
|
+
table or column the contract lacks is refused here — at check — not at
|
|
395
|
+
the first grade. ``scored`` reports the score over the initial state. A
|
|
396
|
+
verifier that reads a dependency the check could not attach (a pin
|
|
397
|
+
without a local path) is reported, not refused: it runs where the
|
|
398
|
+
platform opens the link."""
|
|
399
|
+
from .._world import split_sql_statements
|
|
400
|
+
|
|
401
|
+
verifiers_dir = bundle / "verifiers"
|
|
402
|
+
if not verifiers_dir.is_dir():
|
|
403
|
+
return {}
|
|
404
|
+
out: dict[str, Any] = {}
|
|
405
|
+
for path in sorted(verifiers_dir.glob("*.sql")):
|
|
406
|
+
if path.is_symlink():
|
|
407
|
+
fail("path", "Verifiers must be regular files", f"/verifiers/{path.name}")
|
|
408
|
+
score: Any = None
|
|
409
|
+
needs: str | None = None
|
|
410
|
+
for statement in split_sql_statements(path.read_text(encoding="utf-8")):
|
|
411
|
+
try:
|
|
412
|
+
rows = store.query(statement, private=True)
|
|
413
|
+
except ContractError as error:
|
|
414
|
+
reason = error.__cause__ if error.__cause__ is not None else error.detail["message"]
|
|
415
|
+
alias = _missing_dependency_alias(str(reason), unattached)
|
|
416
|
+
if alias is not None:
|
|
417
|
+
needs = alias
|
|
418
|
+
break
|
|
419
|
+
hint = ""
|
|
420
|
+
if "no such table" in str(reason):
|
|
421
|
+
tables = sorted(store.contract.entities)
|
|
422
|
+
tables += [f"{a}.{t}" for a, ts in sorted(store.attached.items()) for t in sorted(ts)]
|
|
423
|
+
hint = f"; the world's entities are {', '.join(tables) or '(none)'}"
|
|
424
|
+
fail(
|
|
425
|
+
"verifier",
|
|
426
|
+
f"verifiers/{path.name} does not run against this schema: {reason}{hint}",
|
|
427
|
+
f"/verifiers/{path.name}",
|
|
428
|
+
)
|
|
429
|
+
if rows:
|
|
430
|
+
score = rows[0][0]
|
|
431
|
+
if needs is not None:
|
|
432
|
+
out[path.stem] = {
|
|
433
|
+
"status": "needs_dependency",
|
|
434
|
+
"dependency": needs,
|
|
435
|
+
"reason": f"reads {needs}.<table>; {unattached[needs]}",
|
|
436
|
+
}
|
|
437
|
+
elif scored:
|
|
438
|
+
out[path.stem] = {"status": "ok", "initial_score": score}
|
|
439
|
+
else:
|
|
440
|
+
out[path.stem] = {"status": "ok"}
|
|
441
|
+
return out
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
def _missing_dependency_alias(reason: str, unattached: dict[str, str]) -> str | None:
|
|
445
|
+
"""The alias of an unattached dependency a ``no such table: alias.table``
|
|
446
|
+
failure names, else ``None``."""
|
|
447
|
+
marker = "no such table: "
|
|
448
|
+
if marker not in reason:
|
|
449
|
+
return None
|
|
450
|
+
table = reason.split(marker, 1)[1].strip()
|
|
451
|
+
alias, dot, _ = table.partition(".")
|
|
452
|
+
if dot and alias in unattached:
|
|
453
|
+
return alias
|
|
454
|
+
return None
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
def _check_tasks(bundle: Path, verifiers: list[str]) -> list[dict[str, Any]]:
|
|
458
|
+
"""The tasks the world declares (``[[tasks]]``, ``tasks.jsonl``/``.json``,
|
|
459
|
+
else one per verifier), each checked to name verifiers the world has."""
|
|
460
|
+
from .. import _bundle
|
|
461
|
+
from .tools_world import load_tasks
|
|
462
|
+
|
|
463
|
+
manifest = _bundle.parse_manifest(bundle)
|
|
464
|
+
tasks = load_tasks(bundle, manifest, verifiers, required=False)
|
|
465
|
+
out = []
|
|
466
|
+
for task in tasks.values():
|
|
467
|
+
unknown = sorted(set(task.selected(verifiers)) - set(verifiers))
|
|
468
|
+
if unknown:
|
|
469
|
+
fail(
|
|
470
|
+
"task",
|
|
471
|
+
f"task '{task.id}' names verifiers the world lacks: {', '.join(unknown)} "
|
|
472
|
+
f"(it has: {', '.join(verifiers) or 'none'})",
|
|
473
|
+
"/gateway-env.toml",
|
|
474
|
+
)
|
|
475
|
+
out.append(
|
|
476
|
+
{
|
|
477
|
+
"id": task.id,
|
|
478
|
+
"verifiers": task.selected(verifiers),
|
|
479
|
+
"dependency_verifiers": {alias: list(names) for alias, names in (task.worlds or {}).items()},
|
|
480
|
+
}
|
|
481
|
+
)
|
|
482
|
+
return out
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
def describe_dependencies(bundle: Path) -> list[dict[str, Any]]:
|
|
486
|
+
"""``[dependencies]`` as the manifest declares them — alias, pin, local
|
|
487
|
+
path, tools, entity mappings — so an offline describe or check shows the
|
|
488
|
+
links a push will commit."""
|
|
489
|
+
from .. import _bundle
|
|
490
|
+
from .dependencies import parse_dependencies
|
|
491
|
+
|
|
492
|
+
manifest = _bundle.parse_manifest(bundle)
|
|
493
|
+
out = []
|
|
494
|
+
for dep in parse_dependencies(manifest.raw).values():
|
|
495
|
+
out.append(
|
|
496
|
+
{
|
|
497
|
+
"alias": dep.alias,
|
|
498
|
+
"pin": dep.pin,
|
|
499
|
+
"slug": dep.slug,
|
|
500
|
+
"ref": dep.ref,
|
|
501
|
+
"path": dep.path,
|
|
502
|
+
"task": dep.task,
|
|
503
|
+
"tools": list(dep.tools),
|
|
504
|
+
"entities": [
|
|
505
|
+
{
|
|
506
|
+
"localEntity": m.local_entity,
|
|
507
|
+
"localField": m.local_field,
|
|
508
|
+
"depEntity": m.dep_entity,
|
|
509
|
+
"depField": m.dep_field,
|
|
510
|
+
"transform": list(m.transform),
|
|
511
|
+
}
|
|
512
|
+
for m in dep.entities
|
|
513
|
+
],
|
|
514
|
+
}
|
|
515
|
+
)
|
|
516
|
+
return out
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
#: Set by a runtime that may run the world's own Python — the CLI's bundled
|
|
520
|
+
#: runtime on the author's machine. The platform's bridge never sets it, so a
|
|
521
|
+
#: request that asks for execution there gets ``not_run`` and the reason.
|
|
522
|
+
EXECUTE_ENV = "GATEWAY_RUNTIME_EXECUTE"
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
def may_execute() -> bool:
|
|
526
|
+
return os.environ.get(EXECUTE_ENV) == "1"
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
def _handler_execution(bundle: Path, execute: bool) -> dict[str, Any]:
|
|
530
|
+
"""Whether the handlers were run: imported, every declared tool bound, the
|
|
531
|
+
``[dependencies]`` opened from their paths — one session of the world,
|
|
532
|
+
opened and closed. Only where authored code may run."""
|
|
533
|
+
if not execute:
|
|
534
|
+
return {
|
|
535
|
+
"status": "not_run",
|
|
536
|
+
"reason": "handlers run where the world runs; `gateway worlds schema check` "
|
|
537
|
+
"with the bundled runtime imports them, `gateway worlds call` runs one",
|
|
538
|
+
}
|
|
539
|
+
if not may_execute():
|
|
540
|
+
return {
|
|
541
|
+
"status": "not_run",
|
|
542
|
+
"reason": "this runtime does not run a world's Python (the platform's "
|
|
543
|
+
"bridge); check with the CLI's bundled runtime on your machine",
|
|
544
|
+
}
|
|
545
|
+
from .local import open_world
|
|
546
|
+
|
|
547
|
+
with open_world(bundle, http=False) as session:
|
|
548
|
+
return {"status": "ok", "tools": session.tools}
|
|
314
549
|
|
|
315
550
|
|
|
316
551
|
API_BUNDLE = "gateway-api-world.toml"
|
|
@@ -324,8 +559,7 @@ def world_root(root: Path) -> Path:
|
|
|
324
559
|
world is what data commands operate on. A plain tree is its own root."""
|
|
325
560
|
nested = root / BUNDLED_WORLD
|
|
326
561
|
if (root / API_BUNDLE).is_file() and (
|
|
327
|
-
(nested / "connector.toml").is_file()
|
|
328
|
-
or (nested / "schema/world.json").is_file()
|
|
562
|
+
(nested / "connector.toml").is_file() or (nested / "schema/world.json").is_file()
|
|
329
563
|
):
|
|
330
564
|
return nested
|
|
331
565
|
return root
|
|
@@ -343,11 +577,7 @@ def _write_files(root: Path, entries: list) -> None:
|
|
|
343
577
|
if not isinstance(name, str) or not name or "\\" in name or "\x00" in name:
|
|
344
578
|
fail("path", "Invalid bundle path")
|
|
345
579
|
path = PurePosixPath(name)
|
|
346
|
-
if (
|
|
347
|
-
path.is_absolute()
|
|
348
|
-
or any(p in ("", ".", "..") for p in name.split("/"))
|
|
349
|
-
or name in seen
|
|
350
|
-
):
|
|
580
|
+
if path.is_absolute() or any(p in ("", ".", "..") for p in name.split("/")) or name in seen:
|
|
351
581
|
fail("path", "Bundle paths must be unique relative file paths")
|
|
352
582
|
seen.add(name)
|
|
353
583
|
try:
|
|
@@ -378,11 +608,7 @@ def _archive_files(encoded: str) -> list:
|
|
|
378
608
|
for member in tar:
|
|
379
609
|
if len(files) > MAX_FILES:
|
|
380
610
|
fail("size", "Too many archive files")
|
|
381
|
-
if (
|
|
382
|
-
member.issym()
|
|
383
|
-
or member.islnk()
|
|
384
|
-
or not (member.isfile() or member.isdir())
|
|
385
|
-
):
|
|
611
|
+
if member.issym() or member.islnk() or not (member.isfile() or member.isdir()):
|
|
386
612
|
fail(
|
|
387
613
|
"archive",
|
|
388
614
|
"Archive may contain only ordinary files and directories",
|
|
@@ -406,12 +632,7 @@ def _archive_files(encoded: str) -> list:
|
|
|
406
632
|
while name.startswith("./"):
|
|
407
633
|
name = name[2:]
|
|
408
634
|
path = PurePosixPath(name)
|
|
409
|
-
if (
|
|
410
|
-
path.is_absolute()
|
|
411
|
-
or ".." in path.parts
|
|
412
|
-
or not name
|
|
413
|
-
or chr(92) in name
|
|
414
|
-
):
|
|
635
|
+
if path.is_absolute() or ".." in path.parts or not name or chr(92) in name:
|
|
415
636
|
fail("path", "Archive path escapes the bundle")
|
|
416
637
|
if member.isdir():
|
|
417
638
|
continue
|
|
@@ -432,34 +653,35 @@ def _capture(request: dict) -> dict:
|
|
|
432
653
|
egress the vendor allow-listed. The spec arrives as text, the credential as the
|
|
433
654
|
environment variable it names (set by the caller, never in the request), and every
|
|
434
655
|
recorded page comes back redacted the way the CLI would have written it."""
|
|
435
|
-
from .connector import CAPTURES, MANIFEST, capture, parse_spec
|
|
656
|
+
from .connector import CAPTURES, MANIFEST, capture, pairs_of, parse_spec
|
|
436
657
|
|
|
437
658
|
spec_text = request.get("spec")
|
|
438
659
|
op = request.get("op")
|
|
439
660
|
args = request.get("args") or {}
|
|
440
|
-
params = request.get("params") or {}
|
|
441
661
|
max_pages = request.get("max_pages")
|
|
442
662
|
if not isinstance(spec_text, str) or not isinstance(op, str):
|
|
443
663
|
fail("input", "Expected the connector.toml text and an operation name")
|
|
444
|
-
if not all(
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
):
|
|
664
|
+
if not isinstance(args, dict) or not all(isinstance(k, str) and isinstance(v, str) for k, v in args.items()):
|
|
665
|
+
fail("input", "args map names to strings")
|
|
666
|
+
# params arrive as [[name, value], ...] so a repeated key survives the wire; the
|
|
667
|
+
# {name: value} form older callers send is accepted too.
|
|
668
|
+
try:
|
|
669
|
+
params = pairs_of(request.get("params"))
|
|
670
|
+
except ContractError:
|
|
671
|
+
fail("input", "params are [name, value] pairs or a {name: value} mapping")
|
|
672
|
+
if max_pages is not None and (isinstance(max_pages, bool) or not isinstance(max_pages, int) or max_pages < 1):
|
|
453
673
|
fail("input", "max_pages must be a positive integer")
|
|
454
674
|
parse_spec(spec_text)
|
|
455
675
|
with tempfile.TemporaryDirectory(prefix="gateway-capture-") as directory:
|
|
456
676
|
root = Path(directory) / "world"
|
|
457
677
|
root.mkdir()
|
|
458
678
|
(root / "connector.toml").write_text(spec_text, encoding="utf-8")
|
|
459
|
-
|
|
679
|
+
notes: list[str] = []
|
|
680
|
+
written = capture(root, op, args, params, max_pages=max_pages, note=notes.append)
|
|
460
681
|
manifest = json.loads((root / CAPTURES / MANIFEST).read_text(encoding="utf-8"))
|
|
461
682
|
return {
|
|
462
683
|
"status": "ok",
|
|
684
|
+
"notes": notes,
|
|
463
685
|
"files": [
|
|
464
686
|
{
|
|
465
687
|
"path": path.relative_to(root).as_posix(),
|
|
@@ -490,17 +712,43 @@ def _template_files(request: dict) -> dict[str, bytes]:
|
|
|
490
712
|
return files
|
|
491
713
|
|
|
492
714
|
|
|
715
|
+
def _redact_summary(spec: "Spec | RedactPolicy") -> dict:
|
|
716
|
+
"""The ``[redact]`` table as describe reports it, so a caller can compute a
|
|
717
|
+
stored form from these lists without running Python. ``slug`` is the SALT —
|
|
718
|
+
the connector's slug from connector.toml (``[environment].name`` for a tools-only
|
|
719
|
+
world's gateway-env.toml), which is what ``_digest`` hashes under — and not the
|
|
720
|
+
platform world slug, which may differ (``spycloud`` vs ``spycloud-world``); a caller
|
|
721
|
+
that salts with the wrong one never matches a row."""
|
|
722
|
+
return {
|
|
723
|
+
"slug": spec.slug,
|
|
724
|
+
"hash": sorted(spec.hash_fields),
|
|
725
|
+
"drop": sorted(spec.drop_fields),
|
|
726
|
+
"preserve": sorted(spec.preserve_fields),
|
|
727
|
+
"round": dict(spec.round_fields),
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
def _annotate_redaction(entities: list[dict], spec: "Spec | RedactPolicy | None") -> None:
|
|
732
|
+
"""Stamp every field with the policy it is stored under (``hash``, ``drop``,
|
|
733
|
+
``preserve``, ``round:<n>`` or None), so a reader knows whether it can be looked
|
|
734
|
+
up by plaintext, by digest, or not at all."""
|
|
735
|
+
from .connector import redaction_of
|
|
736
|
+
|
|
737
|
+
for entity in entities:
|
|
738
|
+
for field in entity["fields"]:
|
|
739
|
+
field["redaction"] = redaction_of(spec, field["name"]) if spec else None
|
|
740
|
+
|
|
741
|
+
|
|
493
742
|
def _template_summary(files: dict[str, bytes]) -> dict:
|
|
494
743
|
"""What a workspace connector is, read from its files: the vendor connection
|
|
495
744
|
(connector.toml) and the data model (world.json), plus the digest the platform
|
|
496
745
|
pins worlds to. Never runs the template's Python."""
|
|
497
746
|
from .connector import parse_spec
|
|
747
|
+
from .redaction import parse_env_policy
|
|
498
748
|
from .scaffold import template_digest
|
|
499
749
|
|
|
500
750
|
# A template keeps world.json at its root; an initialized world keeps it under schema/.
|
|
501
|
-
world_path = next(
|
|
502
|
-
(path for path in ("world.json", "schema/world.json") if path in files), None
|
|
503
|
-
)
|
|
751
|
+
world_path = next((path for path in ("world.json", "schema/world.json") if path in files), None)
|
|
504
752
|
if world_path is None:
|
|
505
753
|
fail(
|
|
506
754
|
"template",
|
|
@@ -513,6 +761,10 @@ def _template_summary(files: dict[str, bytes]) -> dict:
|
|
|
513
761
|
gateway = world.get("x-gateway") if isinstance(world, dict) else None
|
|
514
762
|
if not isinstance(gateway, dict):
|
|
515
763
|
fail("template", f"{world_path} is not a gateway-world document")
|
|
764
|
+
spec = parse_spec(files["connector.toml"].decode("utf-8")) if "connector.toml" in files else None
|
|
765
|
+
policy = spec
|
|
766
|
+
if policy is None and "gateway-env.toml" in files:
|
|
767
|
+
policy = parse_env_policy(files["gateway-env.toml"].decode("utf-8"))
|
|
516
768
|
entities = []
|
|
517
769
|
for name, entity in sorted((gateway.get("entities") or {}).items()):
|
|
518
770
|
fields: list = []
|
|
@@ -521,53 +773,38 @@ def _template_summary(files: dict[str, bytes]) -> dict:
|
|
|
521
773
|
definition = None
|
|
522
774
|
if isinstance(ref, str) and ref.startswith("#/$defs/"):
|
|
523
775
|
definition = (world.get("$defs") or {}).get(ref[len("#/$defs/") :])
|
|
524
|
-
|
|
525
|
-
(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
)
|
|
529
|
-
required = (
|
|
530
|
-
set((definition or {}).get("required") or [])
|
|
531
|
-
if isinstance(definition, dict)
|
|
532
|
-
else set()
|
|
533
|
-
)
|
|
776
|
+
elif isinstance(schema, dict) and isinstance(schema.get("properties"), dict):
|
|
777
|
+
# An inline payload (`schema entity add --schema '{…}'`) declares its
|
|
778
|
+
# fields right here; it is as much a field list as a $defs entry.
|
|
779
|
+
definition = schema
|
|
780
|
+
properties = (definition or {}).get("properties") or {} if isinstance(definition, dict) else {}
|
|
781
|
+
required = set((definition or {}).get("required") or []) if isinstance(definition, dict) else set()
|
|
534
782
|
for field_name, field_schema in properties.items():
|
|
535
783
|
kind = field_schema.get("type") if isinstance(field_schema, dict) else None
|
|
536
784
|
if isinstance(kind, list):
|
|
537
785
|
# A nullable field is `["string", "null"]` in JSON Schema; the page
|
|
538
786
|
# shows it as one readable type, not the list's concatenation.
|
|
539
787
|
kind = " | ".join(str(part) for part in kind)
|
|
540
|
-
if (
|
|
541
|
-
kind is None
|
|
542
|
-
and isinstance(field_schema, dict)
|
|
543
|
-
and isinstance(field_schema.get("$ref"), str)
|
|
544
|
-
):
|
|
788
|
+
if kind is None and isinstance(field_schema, dict) and isinstance(field_schema.get("$ref"), str):
|
|
545
789
|
kind = field_schema["$ref"].rsplit("/", 1)[-1]
|
|
546
|
-
fields.append(
|
|
547
|
-
{"name": field_name, "type": kind, "required": field_name in required}
|
|
548
|
-
)
|
|
790
|
+
fields.append({"name": field_name, "type": kind, "required": field_name in required})
|
|
549
791
|
entities.append(
|
|
550
792
|
{
|
|
551
793
|
"name": name,
|
|
552
|
-
"primaryKey": list(entity.get("primary_key") or [])
|
|
553
|
-
if isinstance(entity, dict)
|
|
554
|
-
else [],
|
|
555
|
-
"unique": list(entity.get("unique") or [])
|
|
556
|
-
if isinstance(entity, dict)
|
|
557
|
-
else [],
|
|
558
|
-
"relationships": list(entity.get("relationships") or [])
|
|
559
|
-
if isinstance(entity, dict)
|
|
560
|
-
else [],
|
|
794
|
+
"primaryKey": list(entity.get("primary_key") or []) if isinstance(entity, dict) else [],
|
|
795
|
+
"unique": list(entity.get("unique") or []) if isinstance(entity, dict) else [],
|
|
796
|
+
"relationships": list(entity.get("relationships") or []) if isinstance(entity, dict) else [],
|
|
561
797
|
"fields": fields,
|
|
562
798
|
}
|
|
563
799
|
)
|
|
800
|
+
_annotate_redaction(entities, policy)
|
|
564
801
|
connection = None
|
|
565
|
-
if
|
|
566
|
-
spec = parse_spec(files["connector.toml"].decode("utf-8"))
|
|
802
|
+
if spec is not None:
|
|
567
803
|
connection = {
|
|
568
804
|
"slug": spec.slug,
|
|
569
805
|
"baseUrl": spec.base_url,
|
|
570
806
|
"auth": spec.scheme,
|
|
807
|
+
"redact": _redact_summary(spec),
|
|
571
808
|
"operations": [
|
|
572
809
|
{
|
|
573
810
|
"name": op.name,
|
|
@@ -590,6 +827,7 @@ def _template_summary(files: dict[str, bytes]) -> dict:
|
|
|
590
827
|
"digest": template_digest(files),
|
|
591
828
|
"entities": entities,
|
|
592
829
|
"connection": connection,
|
|
830
|
+
"redact": _redact_summary(policy) if policy is not None else None,
|
|
593
831
|
"tools": sorted((gateway.get("tools") or {}).keys()),
|
|
594
832
|
"files": sorted(files),
|
|
595
833
|
},
|
|
@@ -603,6 +841,7 @@ DESCRIBE_PATHS = (
|
|
|
603
841
|
"schema/world.json",
|
|
604
842
|
"tool-schemas.json",
|
|
605
843
|
"connector.toml",
|
|
844
|
+
"gateway-env.toml",
|
|
606
845
|
"api/handlers.py",
|
|
607
846
|
)
|
|
608
847
|
|
|
@@ -617,6 +856,7 @@ def _describe(request: dict) -> dict:
|
|
|
617
856
|
a compiled world's own files (``schema/world.json`` + ``tool-schemas.json``) pass
|
|
618
857
|
straight through. Never runs the connector's Python."""
|
|
619
858
|
from .connector import parse_spec
|
|
859
|
+
from .redaction import env_policy
|
|
620
860
|
from .scaffold import (
|
|
621
861
|
TEMPLATES,
|
|
622
862
|
init_bundle,
|
|
@@ -647,27 +887,16 @@ def _describe(request: dict) -> dict:
|
|
|
647
887
|
target.parent.mkdir(parents=True, exist_ok=True)
|
|
648
888
|
target.write_bytes(data)
|
|
649
889
|
else:
|
|
650
|
-
slug = (
|
|
651
|
-
request.get("slug")
|
|
652
|
-
if isinstance(request.get("slug"), str)
|
|
653
|
-
else None
|
|
654
|
-
)
|
|
890
|
+
slug = request.get("slug") if isinstance(request.get("slug"), str) else None
|
|
655
891
|
if slug is None and "connector.toml" in authored:
|
|
656
892
|
slug = parse_spec(authored["connector.toml"].decode("utf-8")).slug
|
|
657
893
|
init_bundle_from_files(root, authored, connector=slug or "custom")
|
|
658
|
-
summary = _template_summary(
|
|
659
|
-
{"world.json": (root / "schema/world.json").read_bytes()}
|
|
660
|
-
)["summary"]
|
|
894
|
+
summary = _template_summary({"world.json": (root / "schema/world.json").read_bytes()})["summary"]
|
|
661
895
|
summary["digest"] = template_digest(authored)
|
|
662
896
|
summary["files"] = sorted(authored)
|
|
663
897
|
tool_schemas = {}
|
|
664
898
|
if (root / "tool-schemas.json").is_file():
|
|
665
|
-
tool_schemas = (
|
|
666
|
-
json.loads(
|
|
667
|
-
(root / "tool-schemas.json").read_text(encoding="utf-8")
|
|
668
|
-
).get("tools")
|
|
669
|
-
or {}
|
|
670
|
-
)
|
|
899
|
+
tool_schemas = json.loads((root / "tool-schemas.json").read_text(encoding="utf-8")).get("tools") or {}
|
|
671
900
|
summary["tools"] = [
|
|
672
901
|
{
|
|
673
902
|
"name": name,
|
|
@@ -689,10 +918,12 @@ def _describe(request: dict) -> dict:
|
|
|
689
918
|
# A template without its handlers still has a shape worth showing;
|
|
690
919
|
# the routes render with the default action and status.
|
|
691
920
|
settings = None
|
|
921
|
+
_annotate_redaction(summary["entities"], spec)
|
|
692
922
|
summary["connection"] = {
|
|
693
923
|
"slug": spec.slug,
|
|
694
924
|
"baseUrl": spec.base_url,
|
|
695
925
|
"auth": spec.scheme,
|
|
926
|
+
"redact": _redact_summary(spec),
|
|
696
927
|
"operations": [
|
|
697
928
|
{
|
|
698
929
|
"name": op.name,
|
|
@@ -701,19 +932,19 @@ def _describe(request: dict) -> dict:
|
|
|
701
932
|
"params": list(op.params),
|
|
702
933
|
"entity": op.entity,
|
|
703
934
|
"results": op.results,
|
|
704
|
-
"action": settings.for_operation(op.name).action
|
|
705
|
-
if settings
|
|
706
|
-
else None,
|
|
707
|
-
"status": settings.for_operation(op.name).status
|
|
708
|
-
if settings
|
|
709
|
-
else None,
|
|
935
|
+
"action": settings.for_operation(op.name).action if settings else None,
|
|
936
|
+
"status": settings.for_operation(op.name).status if settings else None,
|
|
710
937
|
}
|
|
711
938
|
for op in spec.operations.values()
|
|
712
939
|
],
|
|
713
940
|
}
|
|
714
|
-
summary["openapi"] = openapi_document(
|
|
715
|
-
|
|
716
|
-
|
|
941
|
+
summary["openapi"] = openapi_document(spec, summary.get("domainId") or spec.slug, settings)
|
|
942
|
+
summary["redact"] = summary["connection"]["redact"]
|
|
943
|
+
else:
|
|
944
|
+
policy = env_policy(root / "gateway-env.toml")
|
|
945
|
+
_annotate_redaction(summary["entities"], policy)
|
|
946
|
+
summary["redact"] = _redact_summary(policy) if policy else None
|
|
947
|
+
summary["dependencies"] = describe_dependencies(root) if (root / "gateway-env.toml").is_file() else []
|
|
717
948
|
return {"status": "ok", "description": summary}
|
|
718
949
|
|
|
719
950
|
|
|
@@ -724,22 +955,25 @@ def _import_data(request: dict) -> dict:
|
|
|
724
955
|
(the same gate the CLI uses, scratch copy first), and every file of the updated
|
|
725
956
|
tree comes back the way ``init-template`` returns one, so the platform commits a
|
|
726
957
|
version from it without knowing which file changed."""
|
|
727
|
-
from .data import KIND_SCHEMA, MODES, import_rows
|
|
958
|
+
from .data import KIND_SCHEMA, MERGES, MODES, import_rows
|
|
959
|
+
from .redaction import parse_mode
|
|
728
960
|
|
|
729
961
|
rows = request.get("rows")
|
|
730
962
|
mode = request.get("mode", "append")
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
):
|
|
963
|
+
merge = request.get("merge", "upsert")
|
|
964
|
+
if not isinstance(rows, dict) or not all(isinstance(v, list) for v in rows.values()):
|
|
734
965
|
fail("input", "Expected rows as {entity: [row, …]}")
|
|
735
966
|
if mode not in MODES:
|
|
736
967
|
fail("input", f"mode must be one of {', '.join(MODES)}")
|
|
968
|
+
if merge not in MERGES:
|
|
969
|
+
fail("input", f"merge must be one of {', '.join(MERGES)}")
|
|
970
|
+
redact = parse_mode(request.get("redact"))
|
|
737
971
|
with tempfile.TemporaryDirectory(prefix="gateway-import-") as directory:
|
|
738
972
|
root = Path(directory) / "bundle"
|
|
739
973
|
root.mkdir()
|
|
740
974
|
_write_files(root, request.get("files"))
|
|
741
975
|
world = world_root(root)
|
|
742
|
-
result = import_rows(world, rows, mode=mode)
|
|
976
|
+
result = import_rows(world, rows, mode=mode, merge=merge, redact=redact)
|
|
743
977
|
if result["kind"] == KIND_SCHEMA and snapshots.default_snapshot(world).is_file():
|
|
744
978
|
# The journals grew; a snapshot built before this import would be
|
|
745
979
|
# served over them. Rebuild so the tree that travels back is one thing.
|
|
@@ -761,18 +995,67 @@ def _import_data(request: dict) -> dict:
|
|
|
761
995
|
}
|
|
762
996
|
|
|
763
997
|
|
|
998
|
+
def _ingest_calls(request: dict) -> dict:
|
|
999
|
+
"""``ingest-calls``: records into a world the platform holds as files — the twin
|
|
1000
|
+
of ``import-data`` for the record contract of :mod:`.ingest`. The tree arrives
|
|
1001
|
+
as ``[{path, content}]``, the records as a list, with ``redact`` (off by
|
|
1002
|
+
default), ``dry_run``, ``mode`` and optionally ``map`` — an ``ingest.toml``
|
|
1003
|
+
text or its parsed table (:mod:`.mapping`). Without ``map`` the world's own
|
|
1004
|
+
``ingest.toml`` applies when it has one, else each record's tool resolves to
|
|
1005
|
+
an operation of ``connector.toml`` and its result is projected the way a
|
|
1006
|
+
capture is (:func:`ingest.ingest_records`). Transforms never run here: they
|
|
1007
|
+
are the agent's code and run where the agent is. The answer is the report
|
|
1008
|
+
plus the projected ``rows`` (``{entity: [row, …]}``, so a caller can push
|
|
1009
|
+
them through the batch lane itself) and, when the tree changed, every file
|
|
1010
|
+
of the updated tree the way ``import-data`` returns one."""
|
|
1011
|
+
from .data import KIND_SCHEMA, MODES
|
|
1012
|
+
from .ingest import ingest_records
|
|
1013
|
+
from .redaction import parse_mode
|
|
1014
|
+
|
|
1015
|
+
records = request.get("records")
|
|
1016
|
+
if not isinstance(records, list):
|
|
1017
|
+
fail("input", "Expected records as a list of tool-call records")
|
|
1018
|
+
mode = request.get("mode", "append")
|
|
1019
|
+
if mode not in MODES:
|
|
1020
|
+
fail("input", f"mode must be one of {', '.join(MODES)}")
|
|
1021
|
+
dry_run = request.get("dry_run", False)
|
|
1022
|
+
if not isinstance(dry_run, bool):
|
|
1023
|
+
fail("input", "dry_run must be a boolean")
|
|
1024
|
+
redact = parse_mode(request.get("redact"))
|
|
1025
|
+
mapping = request.get("map")
|
|
1026
|
+
if mapping is not None and not isinstance(mapping, (str, dict)):
|
|
1027
|
+
fail("input", "map is an ingest.toml text or its parsed table")
|
|
1028
|
+
with tempfile.TemporaryDirectory(prefix="gateway-ingest-calls-") as directory:
|
|
1029
|
+
root = Path(directory) / "bundle"
|
|
1030
|
+
root.mkdir()
|
|
1031
|
+
_write_files(root, request.get("files"))
|
|
1032
|
+
world = world_root(root)
|
|
1033
|
+
report = ingest_records(
|
|
1034
|
+
world, records, mapping=mapping, redact=redact, dry_run=dry_run, mode=mode, keep_rows=True
|
|
1035
|
+
)
|
|
1036
|
+
answer: dict = {"status": "ok", **report}
|
|
1037
|
+
if report["changed"] and report.get("kind") == KIND_SCHEMA:
|
|
1038
|
+
if snapshots.default_snapshot(world).is_file():
|
|
1039
|
+
from .compiler import build
|
|
1040
|
+
from .snapshot import build_all
|
|
1041
|
+
|
|
1042
|
+
build_all(world, build(world))
|
|
1043
|
+
if world != root:
|
|
1044
|
+
from .api import write_base_seed
|
|
1045
|
+
|
|
1046
|
+
write_base_seed(world, root)
|
|
1047
|
+
if report["changed"]:
|
|
1048
|
+
answer["files"] = _tree(root)
|
|
1049
|
+
return answer
|
|
1050
|
+
|
|
1051
|
+
|
|
764
1052
|
# ---------------------------------------------------------------- batches
|
|
765
1053
|
|
|
766
1054
|
|
|
767
1055
|
def _workdir(request: dict) -> Path:
|
|
768
1056
|
"""The absolute directory the caller prepared; every path in the request is under it."""
|
|
769
1057
|
workdir = request.get("workdir")
|
|
770
|
-
if (
|
|
771
|
-
not isinstance(workdir, str)
|
|
772
|
-
or not workdir
|
|
773
|
-
or not Path(workdir).is_absolute()
|
|
774
|
-
or not Path(workdir).is_dir()
|
|
775
|
-
):
|
|
1058
|
+
if not isinstance(workdir, str) or not workdir or not Path(workdir).is_absolute() or not Path(workdir).is_dir():
|
|
776
1059
|
fail(
|
|
777
1060
|
"input",
|
|
778
1061
|
"Expected workdir: an absolute path to a directory the caller prepared",
|
|
@@ -783,11 +1066,7 @@ def _workdir(request: dict) -> Path:
|
|
|
783
1066
|
def _under(workdir: Path, name: Any, what: str) -> Path:
|
|
784
1067
|
if not isinstance(name, str) or not name or "\x00" in name:
|
|
785
1068
|
fail("path", f"{what} must be a path under workdir")
|
|
786
|
-
candidate = (
|
|
787
|
-
(workdir / name).resolve()
|
|
788
|
-
if not Path(name).is_absolute()
|
|
789
|
-
else Path(name).resolve()
|
|
790
|
-
)
|
|
1069
|
+
candidate = (workdir / name).resolve() if not Path(name).is_absolute() else Path(name).resolve()
|
|
791
1070
|
if not candidate.is_relative_to(workdir):
|
|
792
1071
|
fail("path", f"{what} must stay under workdir")
|
|
793
1072
|
return candidate
|
|
@@ -867,10 +1146,18 @@ def _validate_rows(request: dict) -> dict:
|
|
|
867
1146
|
if request.get("mode", "append") not in MODES:
|
|
868
1147
|
fail("input", f"mode must be one of {', '.join(MODES)}")
|
|
869
1148
|
root = _write_tree(workdir, request)
|
|
870
|
-
report = validate_chunks(check_bundle(root), _chunk_specs(workdir, request))
|
|
1149
|
+
report = validate_chunks(check_bundle(root), _chunk_specs(workdir, request), redactor=_redactor(root, request))
|
|
871
1150
|
return {"status": "ok", **report}
|
|
872
1151
|
|
|
873
1152
|
|
|
1153
|
+
def _redactor(root: Path, request: dict):
|
|
1154
|
+
"""The batch's redaction hook from ``request.redact`` (off | apply | refuse)."""
|
|
1155
|
+
from .redaction import parse_mode, require_policy, row_redactor
|
|
1156
|
+
|
|
1157
|
+
redact = parse_mode(request.get("redact"))
|
|
1158
|
+
return row_redactor(require_policy(root, redact), redact)
|
|
1159
|
+
|
|
1160
|
+
|
|
874
1161
|
def _snapshot_build(request: dict) -> dict:
|
|
875
1162
|
"""``snapshot-build``: the parent snapshot (or the tree's default) with the chunks
|
|
876
1163
|
applied in dependency order, one transaction (atomic) or one per chunk; the new
|
|
@@ -890,12 +1177,7 @@ def _snapshot_build(request: dict) -> dict:
|
|
|
890
1177
|
fail("input", f"merge must be one of {', '.join(MERGES)}")
|
|
891
1178
|
batch_id = request.get("batchId")
|
|
892
1179
|
parent_digest = request.get("parentBatchDigest", EMPTY_DIGEST)
|
|
893
|
-
if (
|
|
894
|
-
not isinstance(batch_id, str)
|
|
895
|
-
or not batch_id
|
|
896
|
-
or "/" in batch_id
|
|
897
|
-
or batch_id in (".", "..")
|
|
898
|
-
):
|
|
1180
|
+
if not isinstance(batch_id, str) or not batch_id or "/" in batch_id or batch_id in (".", ".."):
|
|
899
1181
|
fail("input", "batchId must be a non-empty string without slashes")
|
|
900
1182
|
if not isinstance(parent_digest, str) or len(parent_digest) != 64:
|
|
901
1183
|
fail("input", "parentBatchDigest must be a 64-hex batch digest")
|
|
@@ -903,6 +1185,7 @@ def _snapshot_build(request: dict) -> dict:
|
|
|
903
1185
|
dry_run = _flag(request, "dryRun", False)
|
|
904
1186
|
root = _write_tree(workdir, request)
|
|
905
1187
|
contract = check_bundle(root)
|
|
1188
|
+
redactor = _redactor(root, request)
|
|
906
1189
|
chunks = _chunk_specs(workdir, request)
|
|
907
1190
|
# One directory per batch, so a parent built by an earlier call in the same
|
|
908
1191
|
# workdir is never the file being written.
|
|
@@ -929,6 +1212,7 @@ def _snapshot_build(request: dict) -> dict:
|
|
|
929
1212
|
batch_id=batch_id,
|
|
930
1213
|
parent_digest=parent_digest,
|
|
931
1214
|
dry_run=dry_run,
|
|
1215
|
+
redactor=redactor,
|
|
932
1216
|
)
|
|
933
1217
|
if "snapshot" in result:
|
|
934
1218
|
# Absolute, under workdir: the caller opens it as it is.
|
|
@@ -981,19 +1265,49 @@ def _ingest(request: dict) -> dict:
|
|
|
981
1265
|
"""``ingest``: the world's authored tree, its ``captures/`` and manifest included,
|
|
982
1266
|
seeded from those captures through the contract exactly as the CLI does, and the
|
|
983
1267
|
whole updated tree handed back. Runs no Python of the world's own."""
|
|
984
|
-
from .connector import ingest
|
|
1268
|
+
from .connector import check, ingest
|
|
985
1269
|
|
|
986
1270
|
batch_id = request.get("batch_id")
|
|
987
1271
|
if batch_id is not None and not isinstance(batch_id, str):
|
|
988
1272
|
fail("input", "batch_id must be a string")
|
|
1273
|
+
dry_run = request.get("dry_run", False)
|
|
1274
|
+
if not isinstance(dry_run, bool):
|
|
1275
|
+
fail("input", "dry_run must be true or false")
|
|
989
1276
|
with tempfile.TemporaryDirectory(prefix="gateway-ingest-") as directory:
|
|
990
1277
|
root = Path(directory) / "world"
|
|
991
1278
|
root.mkdir()
|
|
992
1279
|
_write_files(root, request.get("files"))
|
|
1280
|
+
if dry_run:
|
|
1281
|
+
# Every violation of every capture, grouped; no files come back since none changed.
|
|
1282
|
+
return {"status": "ok", "result": check(world_root(root))}
|
|
993
1283
|
result = ingest(world_root(root), batch_id=batch_id)
|
|
994
1284
|
return {"status": "ok", "result": result, "files": _tree(root)}
|
|
995
1285
|
|
|
996
1286
|
|
|
1287
|
+
def _reconcile(request: dict) -> dict:
|
|
1288
|
+
"""``reconcile``: the world's contract against its captured rows (see
|
|
1289
|
+
:mod:`reconcile`); the report of every change, and with ``write`` the updated
|
|
1290
|
+
tree (``schema/world.json`` rewritten and recompiled)."""
|
|
1291
|
+
from .reconcile import SOURCES, reconcile
|
|
1292
|
+
|
|
1293
|
+
source = request.get("from", "captures")
|
|
1294
|
+
if source not in SOURCES:
|
|
1295
|
+
fail("input", f"from must be one of {', '.join(SOURCES)}")
|
|
1296
|
+
write = request.get("write", False)
|
|
1297
|
+
if not isinstance(write, bool):
|
|
1298
|
+
fail("input", "write must be true or false")
|
|
1299
|
+
with tempfile.TemporaryDirectory(prefix="gateway-reconcile-") as directory:
|
|
1300
|
+
root = Path(directory) / "world"
|
|
1301
|
+
root.mkdir()
|
|
1302
|
+
_write_files(root, request.get("files"))
|
|
1303
|
+
report = reconcile(world_root(root), source=source, write=write).to_json()
|
|
1304
|
+
report["world"] = root.name
|
|
1305
|
+
out = {"status": "ok", "report": report}
|
|
1306
|
+
if report["written"]:
|
|
1307
|
+
out["files"] = _tree(root)
|
|
1308
|
+
return out
|
|
1309
|
+
|
|
1310
|
+
|
|
997
1311
|
def _conform(request: dict) -> dict:
|
|
998
1312
|
"""``conform``: serve the world in the bridge and check every operation's answer
|
|
999
1313
|
against the vendor's OpenAPI documents. The report is the one ``connector conform
|
|
@@ -1005,9 +1319,7 @@ def _conform(request: dict) -> dict:
|
|
|
1005
1319
|
fail("input", "Expected one or more OpenAPI documents as [{path, content}]")
|
|
1006
1320
|
max_operations = request.get("max_operations")
|
|
1007
1321
|
if max_operations is not None and (
|
|
1008
|
-
isinstance(max_operations, bool)
|
|
1009
|
-
or not isinstance(max_operations, int)
|
|
1010
|
-
or max_operations < 1
|
|
1322
|
+
isinstance(max_operations, bool) or not isinstance(max_operations, int) or max_operations < 1
|
|
1011
1323
|
):
|
|
1012
1324
|
fail("input", "max_operations must be a positive integer")
|
|
1013
1325
|
with tempfile.TemporaryDirectory(prefix="gateway-conform-") as directory:
|
|
@@ -1017,12 +1329,8 @@ def _conform(request: dict) -> dict:
|
|
|
1017
1329
|
openapi = Path(directory) / "openapi"
|
|
1018
1330
|
openapi.mkdir()
|
|
1019
1331
|
_write_files(openapi, documents)
|
|
1020
|
-
paths = [
|
|
1021
|
-
|
|
1022
|
-
]
|
|
1023
|
-
report = conform(
|
|
1024
|
-
world_root(root), paths, max_operations=max_operations
|
|
1025
|
-
).to_json()
|
|
1332
|
+
paths = [openapi.joinpath(*PurePosixPath(entry["path"]).parts) for entry in documents]
|
|
1333
|
+
report = conform(world_root(root), paths, max_operations=max_operations).to_json()
|
|
1026
1334
|
report["world"] = root.name
|
|
1027
1335
|
return {"status": "ok", "report": report}
|
|
1028
1336
|
|
|
@@ -1044,10 +1352,7 @@ def _run_tests(request: dict) -> dict:
|
|
|
1044
1352
|
):
|
|
1045
1353
|
fail("input", "snapshot must be {url, sha256, digest}")
|
|
1046
1354
|
with tempfile.TemporaryDirectory(prefix="gateway-tests-") as directory:
|
|
1047
|
-
root = Path(directory)
|
|
1048
|
-
root.mkdir()
|
|
1049
|
-
_write_files(root, request.get("files"))
|
|
1050
|
-
root = world_root(root)
|
|
1355
|
+
root = _world_for(request, Path(directory))
|
|
1051
1356
|
if snapshot is not None:
|
|
1052
1357
|
fetch_snapshot(root, check_bundle(root), snapshot["url"], snapshot["sha256"], snapshot["digest"])
|
|
1053
1358
|
report = run(root, scenario=scenario).to_json()
|
|
@@ -1055,6 +1360,134 @@ def _run_tests(request: dict) -> dict:
|
|
|
1055
1360
|
return {"status": "ok", "report": report}
|
|
1056
1361
|
|
|
1057
1362
|
|
|
1363
|
+
def _world_for(request: dict, staging: Path) -> Path:
|
|
1364
|
+
"""The world a run-style command works on: ``files`` laid into ``staging``
|
|
1365
|
+
(what the platform sends), or — where this runtime may run authored code —
|
|
1366
|
+
``world``, an absolute directory on this machine, opened in place so its
|
|
1367
|
+
``[dependencies]`` paths resolve and nothing is copied."""
|
|
1368
|
+
world = request.get("world")
|
|
1369
|
+
if world is None:
|
|
1370
|
+
root = staging / "world"
|
|
1371
|
+
root.mkdir()
|
|
1372
|
+
_write_files(root, request.get("files"))
|
|
1373
|
+
return world_root(root)
|
|
1374
|
+
if not may_execute():
|
|
1375
|
+
fail("input", "world is a local-runtime field; this runtime takes files")
|
|
1376
|
+
if not isinstance(world, str) or not Path(world).is_absolute() or not Path(world).is_dir():
|
|
1377
|
+
fail("input", "world must be an absolute path to a directory on this machine")
|
|
1378
|
+
return world_root(Path(world).resolve())
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
def _call(request: dict) -> dict:
|
|
1382
|
+
"""``call``: open the world at ``world`` (a local directory; ``files`` for a
|
|
1383
|
+
tree without dependencies) as one session and call ``tool`` with ``args``,
|
|
1384
|
+
the way the host would — root tools by name, a dependency's as
|
|
1385
|
+
``alias.tool``. The answer is the tool's ``{status, body}``, the state
|
|
1386
|
+
afterwards when ``state`` is asked for, and the grade when ``grade`` is.
|
|
1387
|
+
Only where this runtime may run a world's Python (:func:`may_execute`)."""
|
|
1388
|
+
from .local import open_world
|
|
1389
|
+
|
|
1390
|
+
if not may_execute():
|
|
1391
|
+
fail(
|
|
1392
|
+
"input",
|
|
1393
|
+
"call runs a world's own Python; it runs on your machine through the CLI's "
|
|
1394
|
+
"bundled runtime (`gateway worlds call`), never through the platform",
|
|
1395
|
+
)
|
|
1396
|
+
tool = request.get("tool")
|
|
1397
|
+
if not isinstance(tool, str) or not tool:
|
|
1398
|
+
fail("input", "tool must be a tool name (root) or alias.tool (a dependency's)")
|
|
1399
|
+
args = request.get("args", {})
|
|
1400
|
+
if not isinstance(args, dict):
|
|
1401
|
+
fail("input", "args must be an object of the tool's arguments")
|
|
1402
|
+
task = request.get("task")
|
|
1403
|
+
if task is not None and not isinstance(task, str):
|
|
1404
|
+
fail("input", "task must be a task name")
|
|
1405
|
+
scenario = request.get("scenario")
|
|
1406
|
+
if scenario is not None and not isinstance(scenario, str):
|
|
1407
|
+
fail("input", "scenario must be a scenario name")
|
|
1408
|
+
seed = request.get("seed")
|
|
1409
|
+
if seed is not None and not isinstance(seed, dict):
|
|
1410
|
+
fail("input", "seed must be an object: {entity: [rows]} or {mode, rows}")
|
|
1411
|
+
with tempfile.TemporaryDirectory(prefix="gateway-call-") as directory:
|
|
1412
|
+
root = _world_for(request, Path(directory))
|
|
1413
|
+
with open_world(root, task=task, scenario=scenario, http=False) as session:
|
|
1414
|
+
answer: dict[str, Any] = {"status": "ok", "tools": session.tools}
|
|
1415
|
+
if seed is not None:
|
|
1416
|
+
answer["seed"] = session.seed(seed)
|
|
1417
|
+
answer["result"] = session.call(tool, args)
|
|
1418
|
+
if _flag(request, "state", False):
|
|
1419
|
+
answer["state"] = session.state()
|
|
1420
|
+
if _flag(request, "grade", False):
|
|
1421
|
+
answer["grade"] = session.grade()
|
|
1422
|
+
return answer
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
def _dry_run(request: dict) -> dict:
|
|
1426
|
+
"""``dry-run``: open the world at ``world`` under ``task`` exactly as a
|
|
1427
|
+
hosted session would (the task's seed laid, its tools served), grade the
|
|
1428
|
+
UNTOUCHED state with the task's verifiers, and close. The answer is the
|
|
1429
|
+
task card (prompt, tools, verifiers), the state's rows per entity, and
|
|
1430
|
+
``grade`` — or, when a verifier cannot run (bad SQL, a missing entity),
|
|
1431
|
+
``grade: null`` and ``verifier_errors`` naming each verifier that failed
|
|
1432
|
+
with SQLite's own words. That is the point of the dry run: a benchmark
|
|
1433
|
+
whose grader dies is found here, not on the runner. Only where this
|
|
1434
|
+
runtime may run a world's Python (:func:`may_execute`)."""
|
|
1435
|
+
from ..errors import VerifierError
|
|
1436
|
+
from .local import open_world
|
|
1437
|
+
|
|
1438
|
+
if not may_execute():
|
|
1439
|
+
fail(
|
|
1440
|
+
"input",
|
|
1441
|
+
"dry-run opens a world's own Python; it runs on your machine through the CLI's "
|
|
1442
|
+
"bundled runtime (`gateway benchmarks dry-run`), never through the platform",
|
|
1443
|
+
)
|
|
1444
|
+
task = request.get("task")
|
|
1445
|
+
if not isinstance(task, str) or not task:
|
|
1446
|
+
fail("input", "task must be the id of one of the world's [[tasks]]")
|
|
1447
|
+
|
|
1448
|
+
def message(error: Exception) -> str:
|
|
1449
|
+
if isinstance(error, ContractError):
|
|
1450
|
+
text = str(error.detail.get("message") or error)
|
|
1451
|
+
sql = error.detail.get("sql")
|
|
1452
|
+
return f"{text}\n SQL: {sql}" if sql else text
|
|
1453
|
+
return str(error)
|
|
1454
|
+
|
|
1455
|
+
with tempfile.TemporaryDirectory(prefix="gateway-dry-run-") as directory:
|
|
1456
|
+
root = _world_for(request, Path(directory))
|
|
1457
|
+
with open_world(root, task=task, http=False) as session:
|
|
1458
|
+
card = session.task()
|
|
1459
|
+
answer: dict[str, Any] = {
|
|
1460
|
+
"status": "ok",
|
|
1461
|
+
"task": card["task"],
|
|
1462
|
+
"prompt": card["prompt"],
|
|
1463
|
+
"tools": session.tools,
|
|
1464
|
+
"verifiers": card["verifiers"],
|
|
1465
|
+
"worlds": card["worlds"],
|
|
1466
|
+
"state": session.state(),
|
|
1467
|
+
}
|
|
1468
|
+
try:
|
|
1469
|
+
answer["grade"] = session.grade()
|
|
1470
|
+
return answer
|
|
1471
|
+
except (ContractError, VerifierError):
|
|
1472
|
+
pass
|
|
1473
|
+
# Name the verifier: the grade runs them together, so run each alone.
|
|
1474
|
+
errors: dict[str, str] = {}
|
|
1475
|
+
for name in card["verifiers"]:
|
|
1476
|
+
try:
|
|
1477
|
+
session.world.world.verify(name)
|
|
1478
|
+
except (ContractError, VerifierError) as error:
|
|
1479
|
+
errors[name] = message(error)
|
|
1480
|
+
for alias, names in card["worlds"].items():
|
|
1481
|
+
for name in names:
|
|
1482
|
+
try:
|
|
1483
|
+
session.world.worlds[alias].verify(name)
|
|
1484
|
+
except (ContractError, VerifierError) as error:
|
|
1485
|
+
errors[f"{alias}/{name}"] = message(error)
|
|
1486
|
+
answer["grade"] = None
|
|
1487
|
+
answer["verifier_errors"] = errors
|
|
1488
|
+
return answer
|
|
1489
|
+
|
|
1490
|
+
|
|
1058
1491
|
def _counts(request: dict) -> dict:
|
|
1059
1492
|
"""``counts``: what the world at these files seeds with. A kind whose seed lives
|
|
1060
1493
|
elsewhere (a harbor tree, an unknown layout) answers with the reason instead of
|
|
@@ -1087,6 +1520,72 @@ def _counts(request: dict) -> dict:
|
|
|
1087
1520
|
return report
|
|
1088
1521
|
|
|
1089
1522
|
|
|
1523
|
+
def _query(request: dict) -> dict:
|
|
1524
|
+
"""``query``: the rows of one entity of the world at these files that match
|
|
1525
|
+
``where`` (a field to a value or a list of values), a page at a time (``limit``,
|
|
1526
|
+
``offset``). With ``resolve``, each value is plaintext and is looked up in the
|
|
1527
|
+
forms the world's ``[redact]`` policy stores (:func:`data.entity_query`). A tree
|
|
1528
|
+
that carries its compiled ``db/state.sqlite`` (a checked-out snapshot) answers
|
|
1529
|
+
from the snapshot, as ``counts`` does; otherwise from its data files. With
|
|
1530
|
+
``across`` (local runtime only: ``world`` is a directory here, so its
|
|
1531
|
+
``[dependencies]`` paths resolve) the answer is :func:`data.entity_query_across`'s
|
|
1532
|
+
groups, one per linked world a mapping carries a ``where`` field into."""
|
|
1533
|
+
from .data import entity_query, entity_query_across, world_kind
|
|
1534
|
+
|
|
1535
|
+
entity = request.get("entity")
|
|
1536
|
+
if not isinstance(entity, str) or not entity:
|
|
1537
|
+
fail("input", "entity must be a non-empty string")
|
|
1538
|
+
where = request.get("where", {})
|
|
1539
|
+
if not isinstance(where, dict):
|
|
1540
|
+
fail("input", "where must be an object mapping a field to a value or a list of values")
|
|
1541
|
+
resolve = request.get("resolve", False)
|
|
1542
|
+
if not isinstance(resolve, bool):
|
|
1543
|
+
fail("input", "resolve must be a boolean")
|
|
1544
|
+
# The platform's cross-world query sends the mapping's transform chain per field
|
|
1545
|
+
# under this key (worldDataQueryService.ts BRIDGE_WHERE_TRANSFORM_KEY).
|
|
1546
|
+
where_transform = request.get("where_transform")
|
|
1547
|
+
if where_transform is not None and not isinstance(where_transform, dict):
|
|
1548
|
+
fail("input", "where_transform must be an object mapping a field to a list of transform names")
|
|
1549
|
+
across = request.get("across", False)
|
|
1550
|
+
compare = request.get("compare", False)
|
|
1551
|
+
if not isinstance(across, bool) or not isinstance(compare, bool):
|
|
1552
|
+
fail("input", "across and compare must be booleans")
|
|
1553
|
+
if compare and not across:
|
|
1554
|
+
fail("input", "compare needs across")
|
|
1555
|
+
scenario = request.get("scenario")
|
|
1556
|
+
if scenario is not None and (not isinstance(scenario, str) or not scenario):
|
|
1557
|
+
fail("input", "scenario must be a non-empty string", "/scenario")
|
|
1558
|
+
with tempfile.TemporaryDirectory(prefix="gateway-query-") as directory:
|
|
1559
|
+
root = _world_for(request, Path(directory))
|
|
1560
|
+
if across:
|
|
1561
|
+
if request.get("world") is None:
|
|
1562
|
+
fail(
|
|
1563
|
+
"input", "across reads the linked worlds at their paths, so it takes world (a directory), not files"
|
|
1564
|
+
)
|
|
1565
|
+
report = entity_query_across(
|
|
1566
|
+
root,
|
|
1567
|
+
entity,
|
|
1568
|
+
where,
|
|
1569
|
+
limit=request.get("limit", 100),
|
|
1570
|
+
offset=request.get("offset", 0),
|
|
1571
|
+
resolve=resolve,
|
|
1572
|
+
compare=compare,
|
|
1573
|
+
scenario=scenario,
|
|
1574
|
+
)
|
|
1575
|
+
return {"status": "ok", "kind": world_kind(root), **report}
|
|
1576
|
+
report = entity_query(
|
|
1577
|
+
root,
|
|
1578
|
+
entity,
|
|
1579
|
+
where,
|
|
1580
|
+
limit=request.get("limit", 100),
|
|
1581
|
+
offset=request.get("offset", 0),
|
|
1582
|
+
resolve=resolve,
|
|
1583
|
+
where_transform=where_transform,
|
|
1584
|
+
scenario=scenario,
|
|
1585
|
+
)
|
|
1586
|
+
return {"status": "ok", "kind": world_kind(root), **report}
|
|
1587
|
+
|
|
1588
|
+
|
|
1090
1589
|
def _templates(request: dict) -> dict:
|
|
1091
1590
|
"""``templates``: every installed connector template, read from its ``world.json``
|
|
1092
1591
|
(name and description when the document carries them) and whether it declares a
|
|
@@ -1095,21 +1594,15 @@ def _templates(request: dict) -> dict:
|
|
|
1095
1594
|
|
|
1096
1595
|
templates = []
|
|
1097
1596
|
for slug in list_templates():
|
|
1098
|
-
world = json.loads(
|
|
1099
|
-
(TEMPLATES / slug / "world.json").read_text(encoding="utf-8")
|
|
1100
|
-
)
|
|
1597
|
+
world = json.loads((TEMPLATES / slug / "world.json").read_text(encoding="utf-8"))
|
|
1101
1598
|
gateway = world.get("x-gateway") if isinstance(world, dict) else None
|
|
1102
1599
|
if not isinstance(gateway, dict):
|
|
1103
1600
|
fail("template", f"{slug}/world.json is not a gateway-world document")
|
|
1104
1601
|
templates.append(
|
|
1105
1602
|
{
|
|
1106
1603
|
"slug": slug,
|
|
1107
|
-
"name": world.get("title")
|
|
1108
|
-
if isinstance(world.get("
|
|
1109
|
-
else None,
|
|
1110
|
-
"description": world.get("description")
|
|
1111
|
-
if isinstance(world.get("description"), str)
|
|
1112
|
-
else None,
|
|
1604
|
+
"name": world.get("title") if isinstance(world.get("title"), str) else None,
|
|
1605
|
+
"description": world.get("description") if isinstance(world.get("description"), str) else None,
|
|
1113
1606
|
"entities": sorted(gateway.get("entities") or {}),
|
|
1114
1607
|
"tools": sorted(gateway.get("tools") or {}),
|
|
1115
1608
|
"hasConnection": (TEMPLATES / slug / "connector.toml").is_file(),
|
|
@@ -1136,12 +1629,22 @@ def execute(request: dict) -> dict:
|
|
|
1136
1629
|
return _import_data(request)
|
|
1137
1630
|
if request["command"] == "ingest":
|
|
1138
1631
|
return _ingest(request)
|
|
1632
|
+
if request["command"] == "ingest-calls":
|
|
1633
|
+
return _ingest_calls(request)
|
|
1139
1634
|
if request["command"] == "conform":
|
|
1140
1635
|
return _conform(request)
|
|
1636
|
+
if request["command"] == "reconcile":
|
|
1637
|
+
return _reconcile(request)
|
|
1141
1638
|
if request["command"] == "run-tests":
|
|
1142
1639
|
return _run_tests(request)
|
|
1640
|
+
if request["command"] == "call":
|
|
1641
|
+
return _call(request)
|
|
1642
|
+
if request["command"] == "dry-run":
|
|
1643
|
+
return _dry_run(request)
|
|
1143
1644
|
if request["command"] == "counts":
|
|
1144
1645
|
return _counts(request)
|
|
1646
|
+
if request["command"] == "query":
|
|
1647
|
+
return _query(request)
|
|
1145
1648
|
if request["command"] == "templates":
|
|
1146
1649
|
return _templates(request)
|
|
1147
1650
|
if request["command"] == "api-bundle":
|
|
@@ -1161,7 +1664,11 @@ def execute(request: dict) -> dict:
|
|
|
1161
1664
|
root = world_root(root)
|
|
1162
1665
|
if bundle_mode(root) is None:
|
|
1163
1666
|
return {"status": "ok", "mode": "legacy"}
|
|
1164
|
-
if request["command"]
|
|
1667
|
+
if request["command"] == "validate" and request.get("world") is not None:
|
|
1668
|
+
# The CLI's bundled runtime checks a directory in place, so the
|
|
1669
|
+
# ``[dependencies]`` paths beside it resolve and its handlers may run.
|
|
1670
|
+
root = _world_for(request, Path(directory))
|
|
1671
|
+
elif request["command"] in (
|
|
1165
1672
|
"validate",
|
|
1166
1673
|
"compile",
|
|
1167
1674
|
"apply-batch",
|
|
@@ -1182,9 +1689,7 @@ def execute(request: dict) -> dict:
|
|
|
1182
1689
|
write_base_seed(world, root)
|
|
1183
1690
|
if request["command"] == "apply-batch":
|
|
1184
1691
|
batch, source = request.get("batch"), request.get("source")
|
|
1185
|
-
if not isinstance(batch, dict) or (
|
|
1186
|
-
source is not None and not isinstance(source, str)
|
|
1187
|
-
):
|
|
1692
|
+
if not isinstance(batch, dict) or (source is not None and not isinstance(source, str)):
|
|
1188
1693
|
fail(
|
|
1189
1694
|
"input",
|
|
1190
1695
|
"Expected a batch object and an optional source prefix string",
|
|
@@ -1197,11 +1702,14 @@ def execute(request: dict) -> dict:
|
|
|
1197
1702
|
|
|
1198
1703
|
connector = request.get("connector")
|
|
1199
1704
|
name = request.get("name")
|
|
1200
|
-
if not isinstance(connector, str) or (
|
|
1201
|
-
name is not None and not isinstance(name, str)
|
|
1202
|
-
):
|
|
1705
|
+
if not isinstance(connector, str) or (name is not None and not isinstance(name, str)):
|
|
1203
1706
|
fail("input", "Expected a connector template slug and an optional name")
|
|
1204
|
-
init_bundle(
|
|
1707
|
+
init_bundle(
|
|
1708
|
+
root,
|
|
1709
|
+
connector=connector,
|
|
1710
|
+
name=name,
|
|
1711
|
+
with_example_tool=request.get("with_example_tool") is True,
|
|
1712
|
+
)
|
|
1205
1713
|
if request["command"] == "init-template-files":
|
|
1206
1714
|
# A workspace connector: the template arrives as files, never as a path
|
|
1207
1715
|
# the request chose, and the world is built exactly as from an installed one.
|
|
@@ -1209,26 +1717,21 @@ def execute(request: dict) -> dict:
|
|
|
1209
1717
|
|
|
1210
1718
|
connector = request.get("connector")
|
|
1211
1719
|
name = request.get("name")
|
|
1212
|
-
if not isinstance(connector, str) or (
|
|
1213
|
-
name is not None and not isinstance(name, str)
|
|
1214
|
-
):
|
|
1720
|
+
if not isinstance(connector, str) or (name is not None and not isinstance(name, str)):
|
|
1215
1721
|
fail("input", "Expected the connector slug and an optional name")
|
|
1216
|
-
init_bundle_from_files(
|
|
1217
|
-
root, _template_files(request), connector=connector, name=name
|
|
1218
|
-
)
|
|
1722
|
+
init_bundle_from_files(root, _template_files(request), connector=connector, name=name)
|
|
1219
1723
|
if request["command"] == "build-slack":
|
|
1220
1724
|
from .slack import build_slack_bundle
|
|
1221
1725
|
|
|
1222
|
-
build_slack_bundle(
|
|
1223
|
-
root, evidence=request.get("evidence"), name=request.get("name")
|
|
1224
|
-
)
|
|
1726
|
+
build_slack_bundle(root, evidence=request.get("evidence"), name=request.get("name"))
|
|
1225
1727
|
if request["command"] == "refresh-slack":
|
|
1226
1728
|
from .slack import refresh_slack_bundle
|
|
1227
1729
|
|
|
1228
|
-
refresh_slack_bundle(
|
|
1229
|
-
|
|
1230
|
-
)
|
|
1231
|
-
|
|
1730
|
+
refresh_slack_bundle(root, request.get("evidence"), batch_id=request.get("batch_id"))
|
|
1731
|
+
report = {
|
|
1732
|
+
**validate_bundle(world_root(root), execute=_flag(request, "execute", False)),
|
|
1733
|
+
**extra,
|
|
1734
|
+
}
|
|
1232
1735
|
if request["command"] not in ("validate", "validate-archive"):
|
|
1233
1736
|
report["files"] = [
|
|
1234
1737
|
{
|