@withgateway/sdk 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -6
- package/dist/cli.js +7815 -2406
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +7807 -2398
- 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 +2283 -116
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2255 -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 +1876 -32
- package/dist/worlds/index.js.map +1 -1
- package/dist/worlds/index.mjs +1875 -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 +233 -37
- package/runtime/gatewaysdk/environment/schema/batch.py +38 -8
- 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 +442 -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 +349 -35
- package/runtime/gatewaysdk/environment/schema/dependencies.py +235 -0
- package/runtime/gatewaysdk/environment/schema/extract.py +6 -6
- package/runtime/gatewaysdk/environment/schema/host.py +226 -62
- 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 +536 -0
- package/runtime/gatewaysdk/environment/schema/mapping.py +944 -0
- package/runtime/gatewaysdk/environment/schema/platform.py +678 -202
- 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 +391 -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 +424 -57
- 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 +59 -12
- package/runtime/gatewaysdk/environment/schema/world_tests.py +245 -51
- package/skills/benchmarks-getting-started/SKILL.md +391 -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
|
@@ -0,0 +1,1056 @@
|
|
|
1
|
+
"""Jira routes that need more than a filter, persisted through the world's store.
|
|
2
|
+
|
|
3
|
+
Jira names a resource by id *or* key in every path (``{issueIdOrKey}``,
|
|
4
|
+
``{projectIdOrKey}``), resolves the people and types a request names by id into
|
|
5
|
+
the full objects an issue carries, mints string ids, and moves an issue between
|
|
6
|
+
statuses only through a transition. Each of those is a handler here; plain
|
|
7
|
+
list/get/delete routes stay declarative in connector.toml.
|
|
8
|
+
|
|
9
|
+
No credential reaches this world (``auth.scheme = "none"``), so nothing here
|
|
10
|
+
knows who is calling: comments, worklogs and changelog entries written through
|
|
11
|
+
the API carry no ``author``. The tools in ../handlers.py take the actor explicitly.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
import re
|
|
15
|
+
from datetime import datetime, timezone
|
|
16
|
+
|
|
17
|
+
BASE = "https://your-domain.atlassian.net"
|
|
18
|
+
API = BASE + "/rest/api/3"
|
|
19
|
+
AGILE = BASE + "/rest/agile/1.0"
|
|
20
|
+
JIRA_TIME = "%Y-%m-%dT%H:%M:%S.000+0000"
|
|
21
|
+
TIME_UNITS = {"w": 5 * 8 * 3600, "d": 8 * 3600, "h": 3600, "m": 60}
|
|
22
|
+
|
|
23
|
+
USER_DETAILS = ("self", "accountId", "emailAddress", "accountType", "displayName", "active", "avatarUrls", "timeZone")
|
|
24
|
+
PROJECT_DETAILS = ("self", "id", "key", "name", "projectTypeKey", "simplified", "avatarUrls", "projectCategory")
|
|
25
|
+
LINKED_FIELDS = ("summary", "status", "priority", "issuetype")
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# ---------------------------------------------------------------- lookups
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _now(ctx):
|
|
32
|
+
return datetime.fromisoformat(ctx.now().replace("Z", "+00:00")).astimezone(timezone.utc).strftime(JIRA_TIME)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def _next_id(ctx, entity, floor=10000):
|
|
36
|
+
ids = [int(row["id"]) for row in ctx.rows(entity) if str(row.get("id", "")).isdigit()]
|
|
37
|
+
return max(ids + [floor - 1]) + 1
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _first(rows):
|
|
41
|
+
return rows[0] if rows else None
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _issue(ctx, ref):
|
|
45
|
+
return ctx.get("jira_issues", {"id": str(ref)}) or _first(ctx.find("jira_issues", key=str(ref)))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _project(ctx, ref):
|
|
49
|
+
return ctx.get("jira_projects", {"key": str(ref)}) or _first(ctx.find("jira_projects", id=str(ref)))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _user(ctx, account_id):
|
|
53
|
+
return ctx.get("jira_users", {"accountId": str(account_id)}) if account_id else None
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def _by_id_or_name(ctx, entity, ref):
|
|
57
|
+
"""A status, priority, resolution, issue type or link type named by ``{"id"}`` or ``{"name"}``."""
|
|
58
|
+
if not isinstance(ref, dict):
|
|
59
|
+
return None
|
|
60
|
+
if ref.get("id") is not None:
|
|
61
|
+
return ctx.get(entity, {"id": str(ref["id"])})
|
|
62
|
+
if ref.get("name") is not None:
|
|
63
|
+
return _first(ctx.find(entity, name=str(ref["name"])))
|
|
64
|
+
return None
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def _details(row, keys):
|
|
68
|
+
return {k: row[k] for k in keys if k in row}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def _linked(issue):
|
|
72
|
+
return {
|
|
73
|
+
"id": issue["id"],
|
|
74
|
+
"key": issue["key"],
|
|
75
|
+
"self": issue["self"],
|
|
76
|
+
"fields": {k: issue["fields"][k] for k in LINKED_FIELDS if issue["fields"].get(k) is not None},
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def _error(ctx, message, field=None):
|
|
81
|
+
"""Jira's ErrorCollection: a field error under ``errors``, anything else in ``errorMessages``."""
|
|
82
|
+
status, _ = ctx.invalid()
|
|
83
|
+
return status, {"errorMessages": [] if field else [message], "errors": {field: message} if field else {}}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def _int(value, default):
|
|
87
|
+
try:
|
|
88
|
+
return max(int(value), 0) if value is not None else default
|
|
89
|
+
except ValueError:
|
|
90
|
+
return default
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def _page(rows, query, **extra):
|
|
94
|
+
"""Jira's ``startAt``/``maxResults``/``total`` page of an issue search."""
|
|
95
|
+
start, size = _int(query.get("startAt"), 0), _int(query.get("maxResults"), 50)
|
|
96
|
+
return {**extra, "startAt": start, "maxResults": size, "total": len(rows), "issues": rows[start : start + size]}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
# ---------------------------------------------------------------- the gate
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def resolve_references(ctx, args, query, body):
|
|
103
|
+
"""Jira accepts an id or a key wherever a path names one; rows are filed under one of
|
|
104
|
+
them, so the reference is rewritten to the stored form before any route runs. An
|
|
105
|
+
unknown reference is left as it is and the route answers its own 404."""
|
|
106
|
+
if "issueIdOrKey" in args:
|
|
107
|
+
issue = _issue(ctx, args["issueIdOrKey"])
|
|
108
|
+
if issue:
|
|
109
|
+
args["issueIdOrKey"] = issue["id"]
|
|
110
|
+
if "projectIdOrKey" in args:
|
|
111
|
+
project = _project(ctx, args["projectIdOrKey"])
|
|
112
|
+
if project:
|
|
113
|
+
args["projectIdOrKey"] = project["key"]
|
|
114
|
+
if "idOrName" in args and not ctx.get("jira_statuses", {"id": args["idOrName"]}):
|
|
115
|
+
status = _first(ctx.find("jira_statuses", name=args["idOrName"]))
|
|
116
|
+
if status:
|
|
117
|
+
args["idOrName"] = status["id"]
|
|
118
|
+
if "idOrKey" in args and not args["idOrKey"].isdigit():
|
|
119
|
+
category = _first(ctx.find("jira_status_categories", key=args["idOrKey"]))
|
|
120
|
+
if category:
|
|
121
|
+
args["idOrKey"] = str(category["id"])
|
|
122
|
+
return None
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
# ---------------------------------------------------------------- projects, components, versions
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def create_project(ctx, args, query, body):
|
|
129
|
+
lead = _user(ctx, body.get("leadAccountId"))
|
|
130
|
+
if body.get("leadAccountId") and lead is None:
|
|
131
|
+
return _error(ctx, "The user does not exist.", "leadAccountId")
|
|
132
|
+
category = ctx.get("jira_project_categories", {"id": str(body["categoryId"])}) if "categoryId" in body else None
|
|
133
|
+
if "categoryId" in body and category is None:
|
|
134
|
+
return _error(ctx, "The project category does not exist.", "categoryId")
|
|
135
|
+
if _project(ctx, body.get("key", "")):
|
|
136
|
+
return _error(ctx, "A project with that name already exists.", "projectKey")
|
|
137
|
+
project_id = str(_next_id(ctx, "jira_projects"))
|
|
138
|
+
row = {
|
|
139
|
+
"self": f"{API}/project/{project_id}",
|
|
140
|
+
"id": project_id,
|
|
141
|
+
"key": body["key"],
|
|
142
|
+
"name": body["name"],
|
|
143
|
+
"projectTypeKey": body.get("projectTypeKey", "software"),
|
|
144
|
+
"simplified": False,
|
|
145
|
+
"style": "classic",
|
|
146
|
+
"isPrivate": False,
|
|
147
|
+
"avatarUrls": {
|
|
148
|
+
size: f"{BASE}/secure/projectavatar/{project_id}/{size}.png"
|
|
149
|
+
for size in ("16x16", "24x24", "32x32", "48x48")
|
|
150
|
+
},
|
|
151
|
+
**{k: body[k] for k in ("description", "url", "assigneeType") if k in body},
|
|
152
|
+
**({"lead": lead} if lead else {}),
|
|
153
|
+
**({"projectCategory": category} if category else {}),
|
|
154
|
+
}
|
|
155
|
+
ctx.insert("jira_projects", row)
|
|
156
|
+
return 201, {"id": int(project_id), "key": row["key"], "self": row["self"]}
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
def update_project(ctx, args, query, body):
|
|
160
|
+
project = ctx.get("jira_projects", {"key": args["projectIdOrKey"]})
|
|
161
|
+
if project is None:
|
|
162
|
+
return ctx.not_found()
|
|
163
|
+
patch = {k: body[k] for k in ("name", "description", "url", "assigneeType") if k in body}
|
|
164
|
+
if "leadAccountId" in body:
|
|
165
|
+
lead = _user(ctx, body["leadAccountId"])
|
|
166
|
+
if lead is None:
|
|
167
|
+
return _error(ctx, "The user does not exist.", "leadAccountId")
|
|
168
|
+
patch["lead"] = lead
|
|
169
|
+
if "categoryId" in body:
|
|
170
|
+
category = ctx.get("jira_project_categories", {"id": str(body["categoryId"])})
|
|
171
|
+
if category is None:
|
|
172
|
+
return _error(ctx, "The project category does not exist.", "categoryId")
|
|
173
|
+
patch["projectCategory"] = category
|
|
174
|
+
return ctx.update("jira_projects", {"key": project["key"]}, patch)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def _component_fields(ctx, body):
|
|
178
|
+
project = _project(ctx, body.get("project") or body.get("projectId") or "")
|
|
179
|
+
if project is None:
|
|
180
|
+
return None, _error(ctx, "The project does not exist.", "project")
|
|
181
|
+
patch = {k: body[k] for k in ("name", "description", "assigneeType") if k in body}
|
|
182
|
+
patch.update(project=project["key"], projectId=int(project["id"]))
|
|
183
|
+
if "leadAccountId" in body:
|
|
184
|
+
lead = _user(ctx, body["leadAccountId"])
|
|
185
|
+
if lead is None:
|
|
186
|
+
return None, _error(ctx, "The user does not exist.", "leadAccountId")
|
|
187
|
+
patch["lead"] = lead
|
|
188
|
+
return patch, None
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def create_component(ctx, args, query, body):
|
|
192
|
+
if not body.get("name"):
|
|
193
|
+
return _error(ctx, "The component name is required.", "name")
|
|
194
|
+
patch, refused = _component_fields(ctx, body)
|
|
195
|
+
if refused:
|
|
196
|
+
return refused
|
|
197
|
+
component_id = str(_next_id(ctx, "jira_components"))
|
|
198
|
+
row = {"self": f"{API}/component/{component_id}", "id": component_id, **patch}
|
|
199
|
+
return 201, ctx.insert("jira_components", row)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
def update_component(ctx, args, query, body):
|
|
203
|
+
component = ctx.get("jira_components", {"id": args["id"]})
|
|
204
|
+
if component is None:
|
|
205
|
+
return ctx.not_found()
|
|
206
|
+
patch, refused = _component_fields(ctx, {"project": component["project"], **body})
|
|
207
|
+
if refused:
|
|
208
|
+
return refused
|
|
209
|
+
return ctx.update("jira_components", {"id": component["id"]}, patch)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
def _version_fields(body):
|
|
213
|
+
return {
|
|
214
|
+
k: body[k] for k in ("name", "description", "archived", "released", "startDate", "releaseDate") if k in body
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
def create_version(ctx, args, query, body):
|
|
219
|
+
if not body.get("name"):
|
|
220
|
+
return _error(ctx, "The version name is required.", "name")
|
|
221
|
+
project = _project(ctx, body.get("projectId") or body.get("project") or "")
|
|
222
|
+
if project is None:
|
|
223
|
+
return _error(ctx, "The project does not exist.", "projectId")
|
|
224
|
+
version_id = str(_next_id(ctx, "jira_versions"))
|
|
225
|
+
row = {
|
|
226
|
+
"self": f"{API}/version/{version_id}",
|
|
227
|
+
"id": version_id,
|
|
228
|
+
"archived": False,
|
|
229
|
+
"released": False,
|
|
230
|
+
**_version_fields(body),
|
|
231
|
+
"project": project["key"],
|
|
232
|
+
"projectId": int(project["id"]),
|
|
233
|
+
}
|
|
234
|
+
return 201, ctx.insert("jira_versions", row)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def update_version(ctx, args, query, body):
|
|
238
|
+
version = ctx.get("jira_versions", {"id": args["id"]})
|
|
239
|
+
if version is None:
|
|
240
|
+
return ctx.not_found()
|
|
241
|
+
return ctx.update("jira_versions", {"id": version["id"]}, _version_fields(body))
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
# ---------------------------------------------------------------- users
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
def create_user(ctx, args, query, body):
|
|
248
|
+
if not body.get("emailAddress"):
|
|
249
|
+
return _error(ctx, "The email address is required.", "emailAddress")
|
|
250
|
+
if ctx.find("jira_users", emailAddress=body["emailAddress"]):
|
|
251
|
+
return _error(ctx, "A user with that email address already exists.", "emailAddress")
|
|
252
|
+
account_id = f"712020:{ctx.uuid()}"
|
|
253
|
+
row = {
|
|
254
|
+
"self": f"{API}/user?accountId={account_id}",
|
|
255
|
+
"accountId": account_id,
|
|
256
|
+
"accountType": "atlassian",
|
|
257
|
+
"emailAddress": body["emailAddress"],
|
|
258
|
+
"displayName": body.get("displayName") or body["emailAddress"].split("@")[0],
|
|
259
|
+
"active": True,
|
|
260
|
+
"avatarUrls": {
|
|
261
|
+
size: f"{BASE}/secure/useravatar/{account_id}/{size}.png" for size in ("16x16", "24x24", "32x32", "48x48")
|
|
262
|
+
},
|
|
263
|
+
}
|
|
264
|
+
return 201, ctx.insert("jira_users", row)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
# ---------------------------------------------------------------- issue types, priorities, resolutions
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
def create_issue_type(ctx, args, query, body):
|
|
271
|
+
if not body.get("name"):
|
|
272
|
+
return _error(ctx, "The issue type name is required.", "name")
|
|
273
|
+
if ctx.find("jira_issue_types", name=body["name"]):
|
|
274
|
+
return _error(ctx, "An issue type with this name already exists.", "name")
|
|
275
|
+
level = body.get("hierarchyLevel", -1 if body.get("type") == "subtask" else 0)
|
|
276
|
+
type_id = str(_next_id(ctx, "jira_issue_types"))
|
|
277
|
+
row = {
|
|
278
|
+
"self": f"{API}/issuetype/{type_id}",
|
|
279
|
+
"id": type_id,
|
|
280
|
+
"name": body["name"],
|
|
281
|
+
"description": body.get("description", ""),
|
|
282
|
+
"iconUrl": f"{BASE}/rest/api/2/universal_avatar/view/type/issuetype/avatar/10300",
|
|
283
|
+
"subtask": level < 0,
|
|
284
|
+
"avatarId": 10300,
|
|
285
|
+
"hierarchyLevel": level,
|
|
286
|
+
}
|
|
287
|
+
return 201, ctx.insert("jira_issue_types", row)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
def update_issue_type(ctx, args, query, body):
|
|
291
|
+
issue_type = ctx.get("jira_issue_types", {"id": args["id"]})
|
|
292
|
+
if issue_type is None:
|
|
293
|
+
return ctx.not_found()
|
|
294
|
+
patch = {k: body[k] for k in ("name", "description", "avatarId") if k in body}
|
|
295
|
+
return ctx.update("jira_issue_types", {"id": issue_type["id"]}, patch)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
def delete_issue_type(ctx, args, query, body):
|
|
299
|
+
"""Issues of the deleted type move to ``alternativeIssueTypeId``, as the vendor documents;
|
|
300
|
+
without one the type must be unused."""
|
|
301
|
+
issue_type = ctx.get("jira_issue_types", {"id": args["id"]})
|
|
302
|
+
if issue_type is None:
|
|
303
|
+
return ctx.not_found()
|
|
304
|
+
using = [i for i in ctx.rows("jira_issues") if i["fields"]["issuetype"]["id"] == issue_type["id"]]
|
|
305
|
+
alternative = ctx.get("jira_issue_types", {"id": str(query.get("alternativeIssueTypeId", ""))})
|
|
306
|
+
if using and alternative is None:
|
|
307
|
+
return _error(ctx, "The issue type is in use; give alternativeIssueTypeId to move its issues.")
|
|
308
|
+
for issue in using:
|
|
309
|
+
ctx.update("jira_issues", {"id": issue["id"]}, {"fields": {**issue["fields"], "issuetype": alternative}})
|
|
310
|
+
ctx.delete("jira_issue_types", {"id": issue_type["id"]})
|
|
311
|
+
return 204, None
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
def create_priority(ctx, args, query, body):
|
|
315
|
+
for required in ("name", "statusColor"):
|
|
316
|
+
if not body.get(required):
|
|
317
|
+
return _error(ctx, f"The {required} is required.", required)
|
|
318
|
+
priority_id = str(_next_id(ctx, "jira_priorities", floor=1))
|
|
319
|
+
row = {
|
|
320
|
+
"self": f"{API}/priority/{priority_id}",
|
|
321
|
+
"id": priority_id,
|
|
322
|
+
"isDefault": False,
|
|
323
|
+
**{k: body[k] for k in ("name", "description", "statusColor", "iconUrl", "avatarId") if k in body},
|
|
324
|
+
}
|
|
325
|
+
ctx.insert("jira_priorities", row)
|
|
326
|
+
return 201, {"id": priority_id}
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
def update_priority(ctx, args, query, body):
|
|
330
|
+
priority = ctx.get("jira_priorities", {"id": args["id"]})
|
|
331
|
+
if priority is None:
|
|
332
|
+
return ctx.not_found()
|
|
333
|
+
patch = {k: body[k] for k in ("name", "description", "statusColor", "iconUrl", "avatarId") if k in body}
|
|
334
|
+
ctx.update("jira_priorities", {"id": priority["id"]}, patch)
|
|
335
|
+
return 204, None
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
def create_resolution(ctx, args, query, body):
|
|
339
|
+
if not body.get("name"):
|
|
340
|
+
return _error(ctx, "The resolution name is required.", "name")
|
|
341
|
+
resolution_id = str(_next_id(ctx, "jira_resolutions"))
|
|
342
|
+
row = {
|
|
343
|
+
"self": f"{API}/resolution/{resolution_id}",
|
|
344
|
+
"id": resolution_id,
|
|
345
|
+
"name": body["name"],
|
|
346
|
+
"description": body.get("description", ""),
|
|
347
|
+
}
|
|
348
|
+
ctx.insert("jira_resolutions", row)
|
|
349
|
+
return 201, {"id": resolution_id}
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
def update_resolution(ctx, args, query, body):
|
|
353
|
+
resolution = ctx.get("jira_resolutions", {"id": args["id"]})
|
|
354
|
+
if resolution is None:
|
|
355
|
+
return ctx.not_found()
|
|
356
|
+
if not body.get("name"):
|
|
357
|
+
return _error(ctx, "The resolution name is required.", "name")
|
|
358
|
+
patch = {k: body[k] for k in ("name", "description") if k in body}
|
|
359
|
+
ctx.update("jira_resolutions", {"id": resolution["id"]}, patch)
|
|
360
|
+
return 204, None
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
# ---------------------------------------------------------------- issues
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
def _resolve_fields(ctx, fields, current=None):
|
|
367
|
+
"""The ``fields`` of an IssueUpdateDetails as an issue stores them: references by id, key
|
|
368
|
+
or name become the referenced rows, scalars pass through. Returns (fields, refusal)."""
|
|
369
|
+
out = {}
|
|
370
|
+
for name, value in fields.items():
|
|
371
|
+
if name == "project":
|
|
372
|
+
project = _project(ctx, value.get("key") or value.get("id") or "") if isinstance(value, dict) else None
|
|
373
|
+
if project is None:
|
|
374
|
+
return None, _error(ctx, "Valid project is required.", "project")
|
|
375
|
+
out["project"] = _details(project, PROJECT_DETAILS)
|
|
376
|
+
elif name in ("issuetype", "priority", "resolution"):
|
|
377
|
+
entity = {"issuetype": "jira_issue_types", "priority": "jira_priorities", "resolution": "jira_resolutions"}[
|
|
378
|
+
name
|
|
379
|
+
]
|
|
380
|
+
if value is None and name != "issuetype":
|
|
381
|
+
out[name] = None
|
|
382
|
+
continue
|
|
383
|
+
found = _by_id_or_name(ctx, entity, value)
|
|
384
|
+
if found is None:
|
|
385
|
+
return None, _error(ctx, f"The {name} is not valid.", name)
|
|
386
|
+
out[name] = found
|
|
387
|
+
elif name in ("assignee", "reporter"):
|
|
388
|
+
if value is None or (isinstance(value, dict) and not (value.get("accountId") or value.get("id"))):
|
|
389
|
+
out[name] = None
|
|
390
|
+
continue
|
|
391
|
+
user = _user(ctx, value.get("accountId") or value.get("id")) if isinstance(value, dict) else None
|
|
392
|
+
if user is None:
|
|
393
|
+
return None, _error(ctx, "The user does not exist.", name)
|
|
394
|
+
out[name] = user
|
|
395
|
+
elif name == "parent":
|
|
396
|
+
parent = _issue(ctx, value.get("key") or value.get("id") or "") if isinstance(value, dict) else None
|
|
397
|
+
if parent is None:
|
|
398
|
+
return None, _error(ctx, "The parent issue does not exist.", "parent")
|
|
399
|
+
out["parent"] = _linked(parent)
|
|
400
|
+
elif name in ("components", "fixVersions", "versions"):
|
|
401
|
+
entity = "jira_components" if name == "components" else "jira_versions"
|
|
402
|
+
rows = [_by_id_or_name(ctx, entity, item) for item in (value or [])]
|
|
403
|
+
if any(row is None for row in rows):
|
|
404
|
+
return None, _error(ctx, f"One of the {name} does not exist.", name)
|
|
405
|
+
out[name] = rows
|
|
406
|
+
elif name in ("status", "created", "updated", "creator", "statuscategorychangedate", "resolutiondate"):
|
|
407
|
+
return None, _error(
|
|
408
|
+
ctx, f"Field '{name}' cannot be set. It is not on the appropriate screen, or unknown.", name
|
|
409
|
+
)
|
|
410
|
+
else:
|
|
411
|
+
out[name] = value
|
|
412
|
+
return out, None
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
def _initial_status(ctx, project_key):
|
|
416
|
+
"""The status a new issue starts in: the one a seeded issue of the project carries in the
|
|
417
|
+
``new`` category, else the world's first ``new`` status."""
|
|
418
|
+
for issue in ctx.rows("jira_issues"):
|
|
419
|
+
status = issue["fields"]["status"]
|
|
420
|
+
if issue["fields"]["project"]["key"] == project_key and status["statusCategory"].get("key") == "new":
|
|
421
|
+
return status
|
|
422
|
+
for status in ctx.rows("jira_statuses"):
|
|
423
|
+
if status.get("statusCategory", {}).get("key") == "new":
|
|
424
|
+
return status
|
|
425
|
+
return _first(ctx.rows("jira_statuses"))
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
def _next_key(ctx, project_key):
|
|
429
|
+
numbers = [
|
|
430
|
+
int(i["key"].rsplit("-", 1)[1]) for i in ctx.rows("jira_issues") if i["key"].startswith(project_key + "-")
|
|
431
|
+
]
|
|
432
|
+
return f"{project_key}-{max(numbers + [0]) + 1}"
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
def _workflow_transitions(ctx, template, issue_id):
|
|
436
|
+
"""A new issue takes the transitions of a seeded issue in the same project and status."""
|
|
437
|
+
for candidate in ctx.rows("jira_issues"):
|
|
438
|
+
same_project = candidate["fields"]["project"]["key"] == template["fields"]["project"]["key"]
|
|
439
|
+
if same_project and candidate["fields"]["status"]["id"] == template["fields"]["status"]["id"]:
|
|
440
|
+
for transition in ctx.find("jira_transitions", issueId=candidate["id"]):
|
|
441
|
+
ctx.insert("jira_transitions", {**transition, "issueId": issue_id})
|
|
442
|
+
return
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
def create_issue(ctx, args, query, body):
|
|
446
|
+
fields, refused = _resolve_fields(ctx, body.get("fields") or {})
|
|
447
|
+
if refused:
|
|
448
|
+
return refused
|
|
449
|
+
for required in ("project", "issuetype", "summary"):
|
|
450
|
+
if fields.get(required) is None:
|
|
451
|
+
return _error(ctx, f"{required} is required.", required)
|
|
452
|
+
if fields["issuetype"].get("subtask") and "parent" not in fields:
|
|
453
|
+
return _error(ctx, "A subtask needs a parent.", "parent")
|
|
454
|
+
now = _now(ctx)
|
|
455
|
+
issue_id = str(_next_id(ctx, "jira_issues"))
|
|
456
|
+
key = _next_key(ctx, fields["project"]["key"])
|
|
457
|
+
default_priority = _first([p for p in ctx.rows("jira_priorities") if p.get("isDefault")])
|
|
458
|
+
reporter = fields.get("reporter")
|
|
459
|
+
row = {
|
|
460
|
+
"expand": "renderedFields,names,schema,transitions,operations,editmeta,changelog",
|
|
461
|
+
"id": issue_id,
|
|
462
|
+
"self": f"{API}/issue/{issue_id}",
|
|
463
|
+
"key": key,
|
|
464
|
+
"fields": {
|
|
465
|
+
"priority": default_priority,
|
|
466
|
+
"labels": [],
|
|
467
|
+
"components": [],
|
|
468
|
+
"fixVersions": [],
|
|
469
|
+
"versions": [],
|
|
470
|
+
"subtasks": [],
|
|
471
|
+
"issuelinks": [],
|
|
472
|
+
"resolution": None,
|
|
473
|
+
"resolutiondate": None,
|
|
474
|
+
"assignee": None,
|
|
475
|
+
**fields,
|
|
476
|
+
**({"creator": reporter} if reporter else {}),
|
|
477
|
+
"status": _initial_status(ctx, fields["project"]["key"]),
|
|
478
|
+
"statuscategorychangedate": now,
|
|
479
|
+
"created": now,
|
|
480
|
+
"updated": now,
|
|
481
|
+
"watches": {"self": f"{API}/issue/{key}/watchers", "watchCount": 1 if reporter else 0, "isWatching": False},
|
|
482
|
+
"votes": {"self": f"{API}/issue/{key}/votes", "votes": 0, "hasVoted": False},
|
|
483
|
+
},
|
|
484
|
+
}
|
|
485
|
+
inserted = ctx.insert("jira_issues", row)
|
|
486
|
+
_workflow_transitions(ctx, inserted, issue_id)
|
|
487
|
+
if "parent" in fields:
|
|
488
|
+
parent = _issue(ctx, fields["parent"]["id"])
|
|
489
|
+
subtasks = [*parent["fields"].get("subtasks", []), _linked(inserted)]
|
|
490
|
+
ctx.update("jira_issues", {"id": parent["id"]}, {"fields": {**parent["fields"], "subtasks": subtasks}})
|
|
491
|
+
return 201, {"id": issue_id, "key": key, "self": row["self"]}
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
def _apply_update_verbs(fields, update):
|
|
495
|
+
"""The ``update`` half of an IssueUpdateDetails: ``set`` on any field, ``add``/``remove``
|
|
496
|
+
on list fields. Returns an error message for anything else."""
|
|
497
|
+
for name, operations in update.items():
|
|
498
|
+
for operation in operations:
|
|
499
|
+
for verb, value in operation.items():
|
|
500
|
+
if verb == "set":
|
|
501
|
+
fields[name] = value
|
|
502
|
+
elif verb in ("add", "remove"):
|
|
503
|
+
current = list(fields.get(name) or [])
|
|
504
|
+
if verb == "add" and value not in current:
|
|
505
|
+
current.append(value)
|
|
506
|
+
if verb == "remove":
|
|
507
|
+
current = [item for item in current if item != value]
|
|
508
|
+
fields[name] = current
|
|
509
|
+
else:
|
|
510
|
+
return f"Operation '{verb}' is not supported on field '{name}'."
|
|
511
|
+
return None
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
def edit_issue(ctx, args, query, body):
|
|
515
|
+
issue = ctx.get("jira_issues", {"id": args["issueIdOrKey"]})
|
|
516
|
+
if issue is None:
|
|
517
|
+
return ctx.not_found()
|
|
518
|
+
resolved, refused = _resolve_fields(ctx, body.get("fields") or {}, issue)
|
|
519
|
+
if refused:
|
|
520
|
+
return refused
|
|
521
|
+
if "project" in resolved:
|
|
522
|
+
return _error(ctx, "Issues cannot be moved between projects here.", "project")
|
|
523
|
+
fields = {**issue["fields"], **resolved}
|
|
524
|
+
message = _apply_update_verbs(fields, body.get("update") or {})
|
|
525
|
+
if message:
|
|
526
|
+
return _error(ctx, message)
|
|
527
|
+
fields["updated"] = _now(ctx)
|
|
528
|
+
updated = ctx.update("jira_issues", {"id": issue["id"]}, {"fields": fields})
|
|
529
|
+
if query.get("returnIssue", "").lower() == "true":
|
|
530
|
+
return 200, updated
|
|
531
|
+
return 204, None
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
def delete_issue(ctx, args, query, body):
|
|
535
|
+
"""Deleting an issue takes its comments, worklogs, changelog, transitions, links and sprint
|
|
536
|
+
memberships with it, as Jira does; subtasks go too when ``deleteSubtasks=true``."""
|
|
537
|
+
issue = ctx.get("jira_issues", {"id": args["issueIdOrKey"]})
|
|
538
|
+
if issue is None:
|
|
539
|
+
return ctx.not_found()
|
|
540
|
+
subtasks = [i for i in ctx.rows("jira_issues") if (i["fields"].get("parent") or {}).get("id") == issue["id"]]
|
|
541
|
+
if subtasks and query.get("deleteSubtasks", "").lower() != "true":
|
|
542
|
+
return _error(ctx, "The issue has subtasks; pass deleteSubtasks=true to delete them too.")
|
|
543
|
+
for subtask in subtasks:
|
|
544
|
+
delete_issue(ctx, {"issueIdOrKey": subtask["id"]}, {"deleteSubtasks": "true"}, None)
|
|
545
|
+
for entity in ("jira_comments", "jira_worklogs", "jira_changelogs", "jira_transitions", "jira_sprint_issues"):
|
|
546
|
+
for row in ctx.find(entity, issueId=issue["id"]):
|
|
547
|
+
ctx.delete(entity, ctx.key_of(entity, row))
|
|
548
|
+
for link in ctx.rows("jira_issue_links"):
|
|
549
|
+
if issue["id"] in (link["inwardIssue"]["id"], link["outwardIssue"]["id"]):
|
|
550
|
+
ctx.delete("jira_issue_links", {"id": link["id"]})
|
|
551
|
+
ctx.delete("jira_issues", {"id": issue["id"]})
|
|
552
|
+
return 204, None
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
# ---------------------------------------------------------------- JQL
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
JQL_TOKEN = re.compile(r'\s*(?:"([^"]*)"|\'([^\']*)\'|(\(|\)|,|!=|=)|([^\s(),=!]+))')
|
|
559
|
+
JQL_FIELDS = {
|
|
560
|
+
"project": lambda i: [i["fields"]["project"]["key"], i["fields"]["project"]["id"], i["fields"]["project"]["name"]],
|
|
561
|
+
"status": lambda i: [i["fields"]["status"]["name"], i["fields"]["status"]["id"]],
|
|
562
|
+
"statuscategory": lambda i: [
|
|
563
|
+
i["fields"]["status"]["statusCategory"]["key"],
|
|
564
|
+
i["fields"]["status"]["statusCategory"]["name"],
|
|
565
|
+
],
|
|
566
|
+
"issuetype": lambda i: [i["fields"]["issuetype"]["name"], i["fields"]["issuetype"]["id"]],
|
|
567
|
+
"type": lambda i: [i["fields"]["issuetype"]["name"], i["fields"]["issuetype"]["id"]],
|
|
568
|
+
"priority": lambda i: [
|
|
569
|
+
(i["fields"].get("priority") or {}).get("name"),
|
|
570
|
+
(i["fields"].get("priority") or {}).get("id"),
|
|
571
|
+
],
|
|
572
|
+
"resolution": lambda i: [
|
|
573
|
+
(i["fields"].get("resolution") or {}).get("name"),
|
|
574
|
+
(i["fields"].get("resolution") or {}).get("id"),
|
|
575
|
+
],
|
|
576
|
+
"assignee": lambda i: [(i["fields"].get("assignee") or {}).get("accountId")],
|
|
577
|
+
"reporter": lambda i: [(i["fields"].get("reporter") or {}).get("accountId")],
|
|
578
|
+
"key": lambda i: [i["key"], i["id"]],
|
|
579
|
+
"issuekey": lambda i: [i["key"], i["id"]],
|
|
580
|
+
"issue": lambda i: [i["key"], i["id"]],
|
|
581
|
+
"id": lambda i: [i["key"], i["id"]],
|
|
582
|
+
"parent": lambda i: [(i["fields"].get("parent") or {}).get("key"), (i["fields"].get("parent") or {}).get("id")],
|
|
583
|
+
"labels": lambda i: list(i["fields"].get("labels") or []),
|
|
584
|
+
"component": lambda i: [c["name"] for c in i["fields"].get("components") or []]
|
|
585
|
+
+ [c["id"] for c in i["fields"].get("components") or []],
|
|
586
|
+
"fixversion": lambda i: [v["name"] for v in i["fields"].get("fixVersions") or []],
|
|
587
|
+
}
|
|
588
|
+
JQL_ORDER = {
|
|
589
|
+
"created": lambda i: i["fields"]["created"],
|
|
590
|
+
"updated": lambda i: i["fields"]["updated"],
|
|
591
|
+
"key": lambda i: (i["key"].rsplit("-", 1)[0], int(i["key"].rsplit("-", 1)[1])),
|
|
592
|
+
"priority": lambda i: int((i["fields"].get("priority") or {}).get("id") or 0),
|
|
593
|
+
"duedate": lambda i: i["fields"].get("duedate") or "",
|
|
594
|
+
"summary": lambda i: i["fields"]["summary"].lower(),
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
def _tokens(jql):
|
|
599
|
+
out, position = [], 0
|
|
600
|
+
while position < len(jql):
|
|
601
|
+
match = JQL_TOKEN.match(jql, position)
|
|
602
|
+
if not match:
|
|
603
|
+
return None
|
|
604
|
+
position = match.end()
|
|
605
|
+
if position == match.start() or match.group(0).strip() == "":
|
|
606
|
+
continue
|
|
607
|
+
double, single, symbol, word = match.groups()
|
|
608
|
+
out.append((double if double is not None else single) if symbol is None and word is None else (symbol or word))
|
|
609
|
+
return out
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
def _parse_jql(jql):
|
|
613
|
+
"""``field = value``, ``field != value``, ``field in (a, b)``, ``field is EMPTY``, joined by
|
|
614
|
+
AND, with an optional ``ORDER BY field [ASC|DESC]``; enough for the searches an agent
|
|
615
|
+
issues against a world. Returns (clauses, order, error)."""
|
|
616
|
+
tokens = _tokens(jql)
|
|
617
|
+
if tokens is None:
|
|
618
|
+
return None, None, "The JQL query could not be parsed."
|
|
619
|
+
order = None
|
|
620
|
+
lowered = [t.lower() for t in tokens]
|
|
621
|
+
if "order" in lowered and lowered.index("order") + 1 < len(lowered) and lowered[lowered.index("order") + 1] == "by":
|
|
622
|
+
cut = lowered.index("order")
|
|
623
|
+
tail = tokens[cut + 2 :]
|
|
624
|
+
if not tail or tail[0].lower() not in JQL_ORDER:
|
|
625
|
+
return None, None, f"Not able to sort using field '{tail[0] if tail else ''}'."
|
|
626
|
+
order = (tail[0].lower(), len(tail) > 1 and tail[1].lower() == "desc")
|
|
627
|
+
tokens = tokens[:cut]
|
|
628
|
+
clauses, position = [], 0
|
|
629
|
+
while position < len(tokens):
|
|
630
|
+
if tokens[position].lower() == "and":
|
|
631
|
+
position += 1
|
|
632
|
+
continue
|
|
633
|
+
if position + 2 > len(tokens):
|
|
634
|
+
return None, None, "Expecting operator but got end of query."
|
|
635
|
+
field, operator = tokens[position].lower(), tokens[position + 1].lower()
|
|
636
|
+
if field not in JQL_FIELDS:
|
|
637
|
+
return None, None, f"Field '{tokens[position]}' does not exist or you do not have permission to view it."
|
|
638
|
+
if operator in ("=", "!="):
|
|
639
|
+
if position + 2 >= len(tokens):
|
|
640
|
+
return None, None, "Expecting a value but got end of query."
|
|
641
|
+
clauses.append((field, operator == "=", [tokens[position + 2]]))
|
|
642
|
+
position += 3
|
|
643
|
+
elif operator == "is":
|
|
644
|
+
negate = position + 2 < len(tokens) and tokens[position + 2].lower() == "not"
|
|
645
|
+
if position + 3 + negate > len(tokens) or tokens[position + 2 + negate].lower() not in ("empty", "null"):
|
|
646
|
+
return None, None, "Expecting EMPTY after IS."
|
|
647
|
+
clauses.append((field, not negate, [None]))
|
|
648
|
+
position += 3 + negate
|
|
649
|
+
elif operator in ("in", "not"):
|
|
650
|
+
negate = operator == "not"
|
|
651
|
+
if negate:
|
|
652
|
+
if position + 2 >= len(tokens) or tokens[position + 2].lower() != "in":
|
|
653
|
+
return None, None, "Expecting IN after NOT."
|
|
654
|
+
position += 1
|
|
655
|
+
if position + 2 >= len(tokens) or tokens[position + 2] != "(":
|
|
656
|
+
return None, None, "Expecting '(' after IN."
|
|
657
|
+
values, position = [], position + 3
|
|
658
|
+
while position < len(tokens) and tokens[position] != ")":
|
|
659
|
+
if tokens[position] != ",":
|
|
660
|
+
values.append(tokens[position])
|
|
661
|
+
position += 1
|
|
662
|
+
if position >= len(tokens):
|
|
663
|
+
return None, None, "Expecting ')' to close the list."
|
|
664
|
+
clauses.append((field, not negate, values))
|
|
665
|
+
position += 1
|
|
666
|
+
else:
|
|
667
|
+
return None, None, f"The operator '{tokens[position + 1]}' is not supported."
|
|
668
|
+
return clauses, order, None
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
def _search(ctx, jql):
|
|
672
|
+
clauses, order, error = _parse_jql(jql or "")
|
|
673
|
+
if error:
|
|
674
|
+
return None, error
|
|
675
|
+
issues = []
|
|
676
|
+
for issue in ctx.rows("jira_issues"):
|
|
677
|
+
keep = True
|
|
678
|
+
for field, positive, values in clauses:
|
|
679
|
+
have = [str(v).lower() for v in JQL_FIELDS[field](issue) if v is not None]
|
|
680
|
+
wanted = [None if v is None else str(v).lower() for v in values]
|
|
681
|
+
hit = (not have) if None in wanted else any(w in have for w in wanted)
|
|
682
|
+
keep = keep and (hit if positive else not hit)
|
|
683
|
+
if keep:
|
|
684
|
+
issues.append(issue)
|
|
685
|
+
if order:
|
|
686
|
+
issues.sort(key=JQL_ORDER[order[0]], reverse=order[1])
|
|
687
|
+
return issues, None
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
def search_issues(ctx, args, query, body):
|
|
691
|
+
issues, error = _search(ctx, query.get("jql", ""))
|
|
692
|
+
if error:
|
|
693
|
+
return _error(ctx, error)
|
|
694
|
+
return _page(issues, query, expand="schema,names")
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
def search_and_reconcile_issues(ctx, args, query, body):
|
|
698
|
+
issues, error = _search(ctx, query.get("jql", ""))
|
|
699
|
+
if error:
|
|
700
|
+
return _error(ctx, error)
|
|
701
|
+
size = _int(query.get("maxResults"), 50)
|
|
702
|
+
return {"issues": issues[:size], "isLast": len(issues) <= size}
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
# ---------------------------------------------------------------- comments, transitions, changelog, worklogs
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
def _adf_or_error(ctx, value, field):
|
|
709
|
+
if not isinstance(value, dict) or value.get("type") != "doc" or not isinstance(value.get("content"), list):
|
|
710
|
+
return _error(ctx, "Body is an Atlassian Document Format (ADF) document.", field)
|
|
711
|
+
return None
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
def add_comment(ctx, args, query, body):
|
|
715
|
+
issue = ctx.get("jira_issues", {"id": args["issueIdOrKey"]})
|
|
716
|
+
if issue is None:
|
|
717
|
+
return ctx.not_found()
|
|
718
|
+
refused = _adf_or_error(ctx, body.get("body"), "comment")
|
|
719
|
+
if refused:
|
|
720
|
+
return refused
|
|
721
|
+
now = _now(ctx)
|
|
722
|
+
comment_id = str(_next_id(ctx, "jira_comments"))
|
|
723
|
+
row = {
|
|
724
|
+
"self": f"{API}/issue/{issue['id']}/comment/{comment_id}",
|
|
725
|
+
"id": comment_id,
|
|
726
|
+
"issueId": issue["id"],
|
|
727
|
+
"body": body["body"],
|
|
728
|
+
"created": now,
|
|
729
|
+
"updated": now,
|
|
730
|
+
"jsdPublic": body.get("jsdPublic", True),
|
|
731
|
+
**({"visibility": body["visibility"]} if "visibility" in body else {}),
|
|
732
|
+
}
|
|
733
|
+
return 201, ctx.insert("jira_comments", row)
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
def update_comment(ctx, args, query, body):
|
|
737
|
+
comment = ctx.get("jira_comments", {"id": args["id"]})
|
|
738
|
+
if comment is None or comment["issueId"] != args["issueIdOrKey"]:
|
|
739
|
+
return ctx.not_found()
|
|
740
|
+
refused = _adf_or_error(ctx, body.get("body"), "comment")
|
|
741
|
+
if refused:
|
|
742
|
+
return refused
|
|
743
|
+
patch = {"body": body["body"], "updated": _now(ctx)}
|
|
744
|
+
if "visibility" in body:
|
|
745
|
+
patch["visibility"] = body["visibility"]
|
|
746
|
+
return ctx.update("jira_comments", {"id": comment["id"]}, patch)
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
def get_transitions(ctx, args, query, body):
|
|
750
|
+
if ctx.get("jira_issues", {"id": args["issueIdOrKey"]}) is None:
|
|
751
|
+
return ctx.not_found()
|
|
752
|
+
transitions = ctx.find("jira_transitions", issueId=args["issueIdOrKey"])
|
|
753
|
+
if query.get("transitionId"):
|
|
754
|
+
transitions = [t for t in transitions if t["id"] == query["transitionId"]]
|
|
755
|
+
if query.get("includeUnavailableTransitions", "").lower() != "true":
|
|
756
|
+
transitions = [t for t in transitions if t.get("isAvailable", True)]
|
|
757
|
+
return {
|
|
758
|
+
"expand": "transitions",
|
|
759
|
+
"transitions": [{k: v for k, v in t.items() if k != "issueId"} for t in transitions],
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
def _changelog(ctx, issue, changes):
|
|
764
|
+
return {
|
|
765
|
+
"id": str(_next_id(ctx, "jira_changelogs")),
|
|
766
|
+
"issueId": issue["id"],
|
|
767
|
+
"created": _now(ctx),
|
|
768
|
+
"items": [
|
|
769
|
+
{
|
|
770
|
+
"field": field,
|
|
771
|
+
"fieldId": field,
|
|
772
|
+
"fieldtype": "jira",
|
|
773
|
+
**({"from": before_id} if before_id is not None else {}),
|
|
774
|
+
**({"fromString": before} if before is not None else {}),
|
|
775
|
+
**({"to": after_id} if after_id is not None else {}),
|
|
776
|
+
**({"toString": after} if after is not None else {}),
|
|
777
|
+
}
|
|
778
|
+
for field, before_id, before, after_id, after in changes
|
|
779
|
+
],
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
def do_transition(ctx, args, query, body):
|
|
784
|
+
"""Move an issue along one of its transitions: the status changes, ``fields`` sent with
|
|
785
|
+
the transition (a resolution on the way to Done) apply, and the changelog records both."""
|
|
786
|
+
issue = ctx.get("jira_issues", {"id": args["issueIdOrKey"]})
|
|
787
|
+
if issue is None:
|
|
788
|
+
return ctx.not_found()
|
|
789
|
+
wanted = (body.get("transition") or {}).get("id")
|
|
790
|
+
transition = ctx.get("jira_transitions", {"issueId": issue["id"], "id": str(wanted)}) if wanted else None
|
|
791
|
+
if transition is None or not transition.get("isAvailable", True):
|
|
792
|
+
return _error(ctx, "It isn't possible to transition this issue with the given transition.", "transition")
|
|
793
|
+
resolved, refused = _resolve_fields(ctx, body.get("fields") or {}, issue)
|
|
794
|
+
if refused:
|
|
795
|
+
return refused
|
|
796
|
+
now = _now(ctx)
|
|
797
|
+
before, after = issue["fields"]["status"], transition["to"]
|
|
798
|
+
changes = [("status", before["id"], before["name"], after["id"], after["name"])]
|
|
799
|
+
fields = {**issue["fields"], **resolved, "status": after, "statuscategorychangedate": now, "updated": now}
|
|
800
|
+
if "resolution" in resolved:
|
|
801
|
+
old, new = issue["fields"].get("resolution") or {}, resolved["resolution"] or {}
|
|
802
|
+
changes.append(("resolution", old.get("id"), old.get("name"), new.get("id"), new.get("name")))
|
|
803
|
+
fields["resolutiondate"] = now if new else None
|
|
804
|
+
elif after["statusCategory"].get("key") == "done" and not fields.get("resolution"):
|
|
805
|
+
fields["resolutiondate"] = now
|
|
806
|
+
message = _apply_update_verbs(fields, body.get("update") or {})
|
|
807
|
+
if message:
|
|
808
|
+
return _error(ctx, message)
|
|
809
|
+
ctx.insert("jira_changelogs", _changelog(ctx, issue, changes))
|
|
810
|
+
ctx.update("jira_issues", {"id": issue["id"]}, {"fields": fields})
|
|
811
|
+
return 204, None
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
def get_changelogs(ctx, args, query, body):
|
|
815
|
+
if ctx.get("jira_issues", {"id": args["issueIdOrKey"]}) is None:
|
|
816
|
+
return ctx.not_found()
|
|
817
|
+
rows = [
|
|
818
|
+
{k: v for k, v in c.items() if k != "issueId"}
|
|
819
|
+
for c in ctx.find("jira_changelogs", issueId=args["issueIdOrKey"])
|
|
820
|
+
]
|
|
821
|
+
start, size = _int(query.get("startAt"), 0), _int(query.get("maxResults"), 100)
|
|
822
|
+
page = rows[start : start + size]
|
|
823
|
+
return {
|
|
824
|
+
"self": f"{API}/issue/{args['issueIdOrKey']}/changelog?startAt={start}&maxResults={size}",
|
|
825
|
+
"startAt": start,
|
|
826
|
+
"maxResults": size,
|
|
827
|
+
"total": len(rows),
|
|
828
|
+
"isLast": start + size >= len(rows),
|
|
829
|
+
"values": page,
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
def _seconds(body):
|
|
834
|
+
if isinstance(body.get("timeSpentSeconds"), int):
|
|
835
|
+
return body["timeSpentSeconds"]
|
|
836
|
+
spent = str(body.get("timeSpent") or "")
|
|
837
|
+
parts = re.findall(r"(\d+)\s*([wdhm])", spent)
|
|
838
|
+
if not parts or not re.fullmatch(r"(\s*\d+\s*[wdhm])+\s*", spent):
|
|
839
|
+
return None
|
|
840
|
+
return sum(int(n) * TIME_UNITS[unit] for n, unit in parts)
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
def _time_spent(seconds):
|
|
844
|
+
out = []
|
|
845
|
+
for unit, size in TIME_UNITS.items():
|
|
846
|
+
if seconds >= size:
|
|
847
|
+
out.append(f"{seconds // size}{unit}")
|
|
848
|
+
seconds %= size
|
|
849
|
+
return " ".join(out) or "0m"
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
def _worklog_fields(ctx, body):
|
|
853
|
+
seconds = _seconds(body)
|
|
854
|
+
if seconds is None or seconds <= 0:
|
|
855
|
+
return None, _error(ctx, "Worklog must have timeSpent or timeSpentSeconds.", "timeLogged")
|
|
856
|
+
if "comment" in body:
|
|
857
|
+
refused = _adf_or_error(ctx, body["comment"], "comment")
|
|
858
|
+
if refused:
|
|
859
|
+
return None, refused
|
|
860
|
+
patch = {"timeSpentSeconds": seconds, "timeSpent": _time_spent(seconds)}
|
|
861
|
+
patch.update({k: body[k] for k in ("comment", "started", "visibility") if k in body})
|
|
862
|
+
return patch, None
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
def add_worklog(ctx, args, query, body):
|
|
866
|
+
issue = ctx.get("jira_issues", {"id": args["issueIdOrKey"]})
|
|
867
|
+
if issue is None:
|
|
868
|
+
return ctx.not_found()
|
|
869
|
+
patch, refused = _worklog_fields(ctx, body)
|
|
870
|
+
if refused:
|
|
871
|
+
return refused
|
|
872
|
+
now = _now(ctx)
|
|
873
|
+
worklog_id = str(_next_id(ctx, "jira_worklogs"))
|
|
874
|
+
row = {
|
|
875
|
+
"self": f"{API}/issue/{issue['id']}/worklog/{worklog_id}",
|
|
876
|
+
"id": worklog_id,
|
|
877
|
+
"issueId": issue["id"],
|
|
878
|
+
"created": now,
|
|
879
|
+
"updated": now,
|
|
880
|
+
"started": now,
|
|
881
|
+
**patch,
|
|
882
|
+
}
|
|
883
|
+
inserted = ctx.insert("jira_worklogs", row)
|
|
884
|
+
spent = (issue["fields"].get("timespent") or 0) + patch["timeSpentSeconds"]
|
|
885
|
+
ctx.update("jira_issues", {"id": issue["id"]}, {"fields": {**issue["fields"], "timespent": spent, "updated": now}})
|
|
886
|
+
return 201, inserted
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
def update_worklog(ctx, args, query, body):
|
|
890
|
+
worklog = ctx.get("jira_worklogs", {"id": args["id"]})
|
|
891
|
+
if worklog is None or worklog["issueId"] != args["issueIdOrKey"]:
|
|
892
|
+
return ctx.not_found()
|
|
893
|
+
patch, refused = _worklog_fields(ctx, {"timeSpentSeconds": worklog["timeSpentSeconds"], **body})
|
|
894
|
+
if refused:
|
|
895
|
+
return refused
|
|
896
|
+
return ctx.update("jira_worklogs", {"id": worklog["id"]}, {**patch, "updated": _now(ctx)})
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
# ---------------------------------------------------------------- issue links
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
def get_issue_link_types(ctx, args, query, body):
|
|
903
|
+
return {"issueLinkTypes": ctx.rows("jira_issue_link_types")}
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
def link_issues(ctx, args, query, body):
|
|
907
|
+
link_type = _by_id_or_name(ctx, "jira_issue_link_types", body.get("type"))
|
|
908
|
+
inward = _issue(ctx, (body.get("inwardIssue") or {}).get("key") or (body.get("inwardIssue") or {}).get("id") or "")
|
|
909
|
+
outward = _issue(
|
|
910
|
+
ctx, (body.get("outwardIssue") or {}).get("key") or (body.get("outwardIssue") or {}).get("id") or ""
|
|
911
|
+
)
|
|
912
|
+
if link_type is None:
|
|
913
|
+
return _error(ctx, "No issue link type with that id or name exists.", "type")
|
|
914
|
+
if inward is None or outward is None:
|
|
915
|
+
return _error(ctx, "One of the issues does not exist.", "issues")
|
|
916
|
+
if "comment" in body:
|
|
917
|
+
refused = add_comment(ctx, {"issueIdOrKey": inward["id"]}, {}, body["comment"])
|
|
918
|
+
if refused[0] != 201:
|
|
919
|
+
return refused
|
|
920
|
+
link_id = str(_next_id(ctx, "jira_issue_links"))
|
|
921
|
+
row = {
|
|
922
|
+
"id": link_id,
|
|
923
|
+
"self": f"{API}/issueLink/{link_id}",
|
|
924
|
+
"type": link_type,
|
|
925
|
+
"inwardIssue": _linked(inward),
|
|
926
|
+
"outwardIssue": _linked(outward),
|
|
927
|
+
}
|
|
928
|
+
ctx.insert("jira_issue_links", row)
|
|
929
|
+
for issue in (inward, outward):
|
|
930
|
+
links = [*issue["fields"].get("issuelinks", []), row]
|
|
931
|
+
ctx.update("jira_issues", {"id": issue["id"]}, {"fields": {**issue["fields"], "issuelinks": links}})
|
|
932
|
+
return 201, None
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
# ---------------------------------------------------------------- Jira Software: boards and sprints
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
def create_board(ctx, args, query, body):
|
|
939
|
+
if not body.get("name") or body.get("type") not in ("kanban", "scrum", "agility"):
|
|
940
|
+
return _error(ctx, "A board needs a name and a type of kanban, scrum or agility.")
|
|
941
|
+
location = body.get("location") or {}
|
|
942
|
+
project = _project(ctx, location.get("projectKeyOrId") or "")
|
|
943
|
+
if project is None:
|
|
944
|
+
return _error(ctx, "The board location must name an existing project.", "location")
|
|
945
|
+
board_id = _next_id(ctx, "jira_boards", floor=1)
|
|
946
|
+
row = {
|
|
947
|
+
"id": board_id,
|
|
948
|
+
"self": f"{AGILE}/board/{board_id}",
|
|
949
|
+
"name": body["name"],
|
|
950
|
+
"type": body["type"],
|
|
951
|
+
"location": {
|
|
952
|
+
"projectId": int(project["id"]),
|
|
953
|
+
"displayName": f"{project['name']} ({project['key']})",
|
|
954
|
+
"projectName": project["name"],
|
|
955
|
+
"projectKey": project["key"],
|
|
956
|
+
"projectTypeKey": project["projectTypeKey"],
|
|
957
|
+
"avatarURI": project["avatarUrls"]["48x48"],
|
|
958
|
+
"name": f"{project['name']} ({project['key']})",
|
|
959
|
+
},
|
|
960
|
+
}
|
|
961
|
+
return 201, ctx.insert("jira_boards", row)
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
def _board_issues(ctx, board):
|
|
965
|
+
project_key = (board.get("location") or {}).get("projectKey")
|
|
966
|
+
return [i for i in ctx.rows("jira_issues") if i["fields"]["project"]["key"] == project_key]
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
def get_issues_for_board(ctx, args, query, body):
|
|
970
|
+
board = ctx.get("jira_boards", {"id": int(args["boardId"])}) if args["boardId"].isdigit() else None
|
|
971
|
+
if board is None:
|
|
972
|
+
return ctx.not_found()
|
|
973
|
+
issues = _board_issues(ctx, board)
|
|
974
|
+
if query.get("jql"):
|
|
975
|
+
matched, error = _search(ctx, query["jql"])
|
|
976
|
+
if error:
|
|
977
|
+
return _error(ctx, error)
|
|
978
|
+
wanted = {i["id"] for i in matched}
|
|
979
|
+
issues = [i for i in issues if i["id"] in wanted]
|
|
980
|
+
return _page(issues, query, expand="schema,names")
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
def create_sprint(ctx, args, query, body):
|
|
984
|
+
if not body.get("name") or not isinstance(body.get("originBoardId"), int):
|
|
985
|
+
return _error(ctx, "A sprint needs a name and an originBoardId.")
|
|
986
|
+
board = ctx.get("jira_boards", {"id": body["originBoardId"]})
|
|
987
|
+
if board is None:
|
|
988
|
+
return _error(ctx, "The board does not exist.", "originBoardId")
|
|
989
|
+
sprint_id = _next_id(ctx, "jira_sprints", floor=1)
|
|
990
|
+
row = {
|
|
991
|
+
"id": sprint_id,
|
|
992
|
+
"self": f"{AGILE}/sprint/{sprint_id}",
|
|
993
|
+
"state": "future",
|
|
994
|
+
"name": body["name"],
|
|
995
|
+
"originBoardId": board["id"],
|
|
996
|
+
"createdDate": ctx.now().replace("Z", ".000Z"),
|
|
997
|
+
**{k: body[k] for k in ("startDate", "endDate", "goal") if k in body},
|
|
998
|
+
}
|
|
999
|
+
return 201, ctx.insert("jira_sprints", row)
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
def update_sprint(ctx, args, query, body):
|
|
1003
|
+
"""PUT replaces and POST patches the sprint's editable fields; both refuse a state that
|
|
1004
|
+
is not one of Jira's three and a closed sprint reopening."""
|
|
1005
|
+
sprint = ctx.get("jira_sprints", {"id": int(args["sprintId"])}) if args["sprintId"].isdigit() else None
|
|
1006
|
+
if sprint is None:
|
|
1007
|
+
return ctx.not_found()
|
|
1008
|
+
patch = {k: body[k] for k in ("name", "goal", "startDate", "endDate", "completeDate", "state") if k in body}
|
|
1009
|
+
if "state" in patch and patch["state"] not in ("future", "active", "closed"):
|
|
1010
|
+
return _error(ctx, "The sprint state must be future, active or closed.", "state")
|
|
1011
|
+
if sprint["state"] == "closed" and patch.get("state") in ("future", "active"):
|
|
1012
|
+
return _error(ctx, "A closed sprint cannot be reopened.", "state")
|
|
1013
|
+
if patch.get("state") == "closed" and "completeDate" not in patch:
|
|
1014
|
+
patch["completeDate"] = ctx.now().replace("Z", ".000Z")
|
|
1015
|
+
if "originBoardId" in body and body["originBoardId"] != sprint["originBoardId"]:
|
|
1016
|
+
return _error(ctx, "A sprint cannot move to another board.", "originBoardId")
|
|
1017
|
+
return ctx.update("jira_sprints", {"id": sprint["id"]}, patch)
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
def get_issues_for_sprint(ctx, args, query, body):
|
|
1021
|
+
sprint = ctx.get("jira_sprints", {"id": int(args["sprintId"])}) if args["sprintId"].isdigit() else None
|
|
1022
|
+
if sprint is None:
|
|
1023
|
+
return ctx.not_found()
|
|
1024
|
+
members = {m["issueId"] for m in ctx.find("jira_sprint_issues", sprintId=sprint["id"])}
|
|
1025
|
+
issues = [i for i in ctx.rows("jira_issues") if i["id"] in members]
|
|
1026
|
+
if query.get("jql"):
|
|
1027
|
+
matched, error = _search(ctx, query["jql"])
|
|
1028
|
+
if error:
|
|
1029
|
+
return _error(ctx, error)
|
|
1030
|
+
wanted = {i["id"] for i in matched}
|
|
1031
|
+
issues = [i for i in issues if i["id"] in wanted]
|
|
1032
|
+
return _page(issues, query, expand="schema,names")
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
def move_issues_to_sprint(ctx, args, query, body):
|
|
1036
|
+
"""Issues join the sprint and leave any other open sprint they were in; a closed sprint
|
|
1037
|
+
keeps its membership, as Jira keeps a completed sprint's history."""
|
|
1038
|
+
sprint = ctx.get("jira_sprints", {"id": int(args["sprintId"])}) if args["sprintId"].isdigit() else None
|
|
1039
|
+
if sprint is None:
|
|
1040
|
+
return ctx.not_found()
|
|
1041
|
+
if sprint["state"] == "closed":
|
|
1042
|
+
return _error(ctx, "Issues cannot be moved to a closed sprint.", "sprint")
|
|
1043
|
+
refs = body.get("issues") or []
|
|
1044
|
+
if not isinstance(refs, list) or len(refs) > 50:
|
|
1045
|
+
return _error(ctx, "Give between 1 and 50 issues.", "issues")
|
|
1046
|
+
issues = [_issue(ctx, ref) for ref in refs]
|
|
1047
|
+
if any(issue is None for issue in issues):
|
|
1048
|
+
return _error(ctx, "One of the issues does not exist.", "issues")
|
|
1049
|
+
for issue in issues:
|
|
1050
|
+
for membership in ctx.find("jira_sprint_issues", issueId=issue["id"]):
|
|
1051
|
+
other = ctx.get("jira_sprints", {"id": membership["sprintId"]})
|
|
1052
|
+
if other and other["state"] != "closed" and other["id"] != sprint["id"]:
|
|
1053
|
+
ctx.delete("jira_sprint_issues", {"sprintId": other["id"], "issueId": issue["id"]})
|
|
1054
|
+
if ctx.get("jira_sprint_issues", {"sprintId": sprint["id"], "issueId": issue["id"]}) is None:
|
|
1055
|
+
ctx.insert("jira_sprint_issues", {"sprintId": sprint["id"], "issueId": issue["id"]})
|
|
1056
|
+
return 204, None
|