@withgateway/sdk 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1188) hide show
  1. package/README.md +30 -6
  2. package/dist/cli.js +8950 -3291
  3. package/dist/cli.js.map +1 -1
  4. package/dist/cli.mjs +8753 -3094
  5. package/dist/cli.mjs.map +1 -1
  6. package/dist/files/index.d.mts +2 -0
  7. package/dist/files/index.d.ts +2 -0
  8. package/dist/files/index.js +446 -0
  9. package/dist/files/index.js.map +1 -0
  10. package/dist/files/index.mjs +395 -0
  11. package/dist/files/index.mjs.map +1 -0
  12. package/dist/index-BgvvQ3BC.d.ts +170 -0
  13. package/dist/index-CLkMr6VG.d.ts +171 -0
  14. package/dist/index-CdbmO4aX.d.mts +171 -0
  15. package/dist/index-CiKWoroJ.d.mts +170 -0
  16. package/dist/index.d.mts +3 -1
  17. package/dist/index.d.ts +3 -1
  18. package/dist/index.js +2288 -116
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +2260 -116
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/traces/index.d.mts +2 -0
  23. package/dist/traces/index.d.ts +2 -0
  24. package/dist/traces/index.js +320 -0
  25. package/dist/traces/index.js.map +1 -0
  26. package/dist/traces/index.mjs +278 -0
  27. package/dist/traces/index.mjs.map +1 -0
  28. package/dist/tracing/index.js +16 -1
  29. package/dist/tracing/index.js.map +1 -1
  30. package/dist/tracing/index.mjs +16 -1
  31. package/dist/tracing/index.mjs.map +1 -1
  32. package/dist/worlds/index.d.mts +685 -1
  33. package/dist/worlds/index.d.ts +685 -1
  34. package/dist/worlds/index.js +1881 -32
  35. package/dist/worlds/index.js.map +1 -1
  36. package/dist/worlds/index.mjs +1880 -32
  37. package/dist/worlds/index.mjs.map +1 -1
  38. package/package.json +16 -1
  39. package/runtime/gatewaysdk/environment/_world.py +14 -1
  40. package/runtime/gatewaysdk/environment/schema/__init__.py +8 -0
  41. package/runtime/gatewaysdk/environment/schema/__main__.py +154 -19
  42. package/runtime/gatewaysdk/environment/schema/api.py +294 -40
  43. package/runtime/gatewaysdk/environment/schema/batch.py +43 -9
  44. package/runtime/gatewaysdk/environment/schema/compiler.py +89 -11
  45. package/runtime/gatewaysdk/environment/schema/conform.py +105 -13
  46. package/runtime/gatewaysdk/environment/schema/connector.py +453 -103
  47. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/api/handlers.py +778 -0
  48. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/connector.toml +671 -0
  49. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/handlers.py +3 -2
  50. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/parity.json +11 -5
  51. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/provenance.json +1635 -100
  52. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/instruction.md +7 -0
  53. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/scenario.toml +2 -0
  54. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_activities.json +24 -0
  55. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_activity_devices.json +12 -0
  56. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_applecare_coverages.json +52 -0
  57. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_apps.json +35 -0
  58. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_audit_events.json +139 -0
  59. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_apps.json +12 -0
  60. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_configurations.json +20 -0
  61. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_devices.json +16 -0
  62. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_packages.json +8 -0
  63. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_user_groups.json +12 -0
  64. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_users.json +12 -0
  65. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprints.json +39 -0
  66. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_configurations.json +64 -0
  67. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_device_assignments.json +20 -0
  68. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_device_details.json +55 -0
  69. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_devices.json +33 -0
  70. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_servers.json +56 -0
  71. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_org_devices.json +178 -0
  72. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_organizational_unit_memberships.json +16 -0
  73. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_organizational_units.json +24 -0
  74. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_packages.json +20 -0
  75. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_user_group_memberships.json +16 -0
  76. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_user_groups.json +30 -0
  77. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_users.json +115 -0
  78. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scope.toml +49 -22
  79. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/tests/tools.json +48 -0
  80. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/world.json +1180 -194
  81. package/runtime/gatewaysdk/environment/schema/connectors/asana/api/handlers.py +1026 -0
  82. package/runtime/gatewaysdk/environment/schema/connectors/asana/connector.toml +511 -0
  83. package/runtime/gatewaysdk/environment/schema/connectors/asana/fidelity.json +89 -0
  84. package/runtime/gatewaysdk/environment/schema/connectors/asana/handlers.py +40 -0
  85. package/runtime/gatewaysdk/environment/schema/connectors/asana/provenance.json +101 -0
  86. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/scenario.toml +2 -0
  87. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/account_settings.json +12 -0
  88. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/custom_field_settings.json +60 -0
  89. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/custom_fields.json +43 -0
  90. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/enum_options.json +52 -0
  91. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/notifications.json +103 -0
  92. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/project_favorites.json +12 -0
  93. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/project_memberships.json +144 -0
  94. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/projects.json +120 -0
  95. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/recent_projects.json +19 -0
  96. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/sections.json +102 -0
  97. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/stories.json +852 -0
  98. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_custom_fields.json +508 -0
  99. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_followers.json +368 -0
  100. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_memberships.json +184 -0
  101. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/tasks.json +1921 -0
  102. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/teams.json +22 -0
  103. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/user_task_list_sections.json +32 -0
  104. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/user_task_lists.json +11 -0
  105. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/users.json +60 -0
  106. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/workspace_memberships.json +76 -0
  107. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/workspaces.json +13 -0
  108. package/runtime/gatewaysdk/environment/schema/connectors/asana/scope.toml +156 -0
  109. package/runtime/gatewaysdk/environment/schema/connectors/asana/tests/routes.json +298 -0
  110. package/runtime/gatewaysdk/environment/schema/connectors/asana/tests/tools.json +152 -0
  111. package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/assets/index-DTTTJ6a4.css +1 -0
  112. package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/assets/index-WS8dLEjv.js +67 -0
  113. package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/index.html +40 -0
  114. package/runtime/gatewaysdk/environment/schema/connectors/asana/world.json +1911 -0
  115. package/runtime/gatewaysdk/environment/schema/connectors/confluence/api/handlers.py +847 -0
  116. package/runtime/gatewaysdk/environment/schema/connectors/confluence/connector.toml +457 -0
  117. package/runtime/gatewaysdk/environment/schema/connectors/confluence/handlers.py +176 -0
  118. package/runtime/gatewaysdk/environment/schema/connectors/confluence/provenance.json +187 -0
  119. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/instruction.md +39 -0
  120. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/scenario.toml +3 -0
  121. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_favourites.json +29 -0
  122. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_footer_comments.json +984 -0
  123. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_inline_comments.json +355 -0
  124. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_labels.json +99 -0
  125. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_notifications.json +40 -0
  126. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_page_labels.json +209 -0
  127. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_page_versions.json +828 -0
  128. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_pages.json +949 -0
  129. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_recently_viewed_pages.json +59 -0
  130. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_sites.json +12 -0
  131. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_spaces.json +128 -0
  132. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_users.json +100 -0
  133. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_watches.json +96 -0
  134. package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/routes.json +212 -0
  135. package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/tools.json +140 -0
  136. package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/writes.json +201 -0
  137. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/assets/index-BWaOVdpn.js +70 -0
  138. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/assets/index-CKyfi3i5.css +1 -0
  139. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-01.svg +1 -0
  140. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-02.svg +1 -0
  141. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-03.svg +1 -0
  142. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-04.svg +1 -0
  143. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-05.svg +1 -0
  144. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-06.svg +1 -0
  145. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-DES.svg +1 -0
  146. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-ENG.svg +1 -0
  147. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-OPS.svg +1 -0
  148. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-ORB.svg +1 -0
  149. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-PN.svg +1 -0
  150. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianMono-latin.woff2 +0 -0
  151. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianSans-latin.woff2 +0 -0
  152. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianSansItalic-latin.woff2 +0 -0
  153. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/index.html +47 -0
  154. package/runtime/gatewaysdk/environment/schema/connectors/confluence/world.json +1346 -0
  155. package/runtime/gatewaysdk/environment/schema/connectors/custom/provenance.json +35 -0
  156. package/runtime/gatewaysdk/environment/schema/connectors/custom/tests/tools.json +123 -0
  157. package/runtime/gatewaysdk/environment/schema/connectors/custom/world.json +112 -24
  158. package/runtime/gatewaysdk/environment/schema/connectors/github/api/handlers.py +2923 -0
  159. package/runtime/gatewaysdk/environment/schema/connectors/github/connector.toml +2091 -0
  160. package/runtime/gatewaysdk/environment/schema/connectors/github/provenance.json +109 -81
  161. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/instruction.md +18 -0
  162. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/scenario.toml +2 -0
  163. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_apps.json +49 -0
  164. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_artifacts.json +26 -0
  165. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_branches.json +443 -0
  166. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_check_runs.json +220 -0
  167. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_check_suites.json +404 -0
  168. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_code_scanning_alerts.json +126 -0
  169. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_collaborators.json +100 -0
  170. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commit_comments.json +43 -0
  171. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commit_statuses.json +80 -0
  172. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commits.json +461 -0
  173. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_dependabot_alerts.json +168 -0
  174. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_deployment_statuses.json +86 -0
  175. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_deployments.json +94 -0
  176. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_environments.json +31 -0
  177. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_gist_comments.json +38 -0
  178. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_gists.json +118 -0
  179. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_git_refs.json +59 -0
  180. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_installations.json +54 -0
  181. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_comments.json +151 -0
  182. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_events.json +606 -0
  183. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_types.json +26 -0
  184. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issues.json +758 -0
  185. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_labels.json +64 -0
  186. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_licenses.json +54 -0
  187. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_milestones.json +130 -0
  188. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_organization_memberships.json +139 -0
  189. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_organizations.json +38 -0
  190. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_pull_requests.json +874 -0
  191. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_release_assets.json +45 -0
  192. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_releases.json +92 -0
  193. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_repositories.json +797 -0
  194. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_repository_invitations.json +184 -0
  195. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_review_comments.json +66 -0
  196. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_reviews.json +138 -0
  197. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_secret_scanning_alerts.json +50 -0
  198. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_stargazers.json +88 -0
  199. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_tags.json +28 -0
  200. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_team_memberships.json +25 -0
  201. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_team_repositories.json +258 -0
  202. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_teams.json +130 -0
  203. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_users.json +174 -0
  204. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_webhooks.json +31 -0
  205. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflow_jobs.json +115 -0
  206. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflow_runs.json +1021 -0
  207. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflows.json +30 -0
  208. package/runtime/gatewaysdk/environment/schema/connectors/github/scope.toml +501 -62
  209. package/runtime/gatewaysdk/environment/schema/connectors/github/tests/tools.json +79 -0
  210. package/runtime/gatewaysdk/environment/schema/connectors/github/vendor-openapi.json +1 -0
  211. package/runtime/gatewaysdk/environment/schema/connectors/github/world.json +14340 -4447
  212. package/runtime/gatewaysdk/environment/schema/connectors/gmail/api/handlers.py +1413 -0
  213. package/runtime/gatewaysdk/environment/schema/connectors/gmail/connector.toml +630 -0
  214. package/runtime/gatewaysdk/environment/schema/connectors/gmail/handlers.py +136 -0
  215. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/scenario.toml +1 -0
  216. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/10-gmail_profiles.json +10 -0
  217. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/20-gmail_labels.json +205 -0
  218. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/30-gmail_contacts.json +234 -0
  219. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/40-gmail_threads.json +374 -0
  220. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/50-gmail_messages.json +1015 -0
  221. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/60-gmail_message_parts.json +3039 -0
  222. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/70-gmail_attachments.json +28 -0
  223. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/80-gmail_drafts.json +39 -0
  224. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/90-gmail_client_settings.json +103 -0
  225. package/runtime/gatewaysdk/environment/schema/connectors/gmail/world.json +784 -0
  226. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/api/handlers.py +454 -0
  227. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/connector.toml +519 -0
  228. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/provenance.json +229 -0
  229. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/instruction.md +25 -0
  230. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/scenario.toml +1 -0
  231. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/10-calendar_calendars.json +75 -0
  232. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/20-calendar_calendar_list_entries.json +115 -0
  233. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/30-calendar_acl_rules.json +124 -0
  234. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/40-calendar_events.json +810 -0
  235. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/50-calendar_settings.json +76 -0
  236. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/60-calendar_channels.json +26 -0
  237. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/70-calendar_colors.json +48 -0
  238. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scope.toml +105 -0
  239. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/tests/tools.json +53 -0
  240. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/vendor-openapi.json +4185 -0
  241. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/world.json +1255 -80
  242. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/api/handlers.py +782 -0
  243. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/connector.toml +373 -0
  244. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/google-docs-types.json +4939 -0
  245. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/handlers.py +197 -0
  246. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/provenance.json +191 -0
  247. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/instruction.md +29 -0
  248. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/scenario.toml +2 -0
  249. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_comments.json +50 -0
  250. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_documents.json +8096 -0
  251. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_files.json +1187 -0
  252. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_permissions.json +543 -0
  253. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_replies.json +22 -0
  254. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_revisions.json +643 -0
  255. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_users.json +32 -0
  256. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scope.toml +148 -0
  257. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/tests/api.json +319 -0
  258. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/tests/tools.json +262 -0
  259. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/assets/index-BH9fmZSS.css +1 -0
  260. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/assets/index-CU4Fk9dX.js +67 -0
  261. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/README.md +20 -0
  262. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/google-sans-variable.woff2 +0 -0
  263. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-italic-variable-latin.woff2 +0 -0
  264. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-variable-latin-ext.woff2 +0 -0
  265. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-variable-latin.woff2 +0 -0
  266. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/icons/material_common_sprite1038_gm3_grey_medium.svg +1 -0
  267. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/index.html +13 -0
  268. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/world.json +4489 -0
  269. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/api/handlers.py +466 -0
  270. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/connector.toml +626 -0
  271. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/handlers.py +42 -5
  272. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/provenance.json +342 -0
  273. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/instruction.md +11 -0
  274. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/scenario.toml +2 -0
  275. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_access_proposals.json +31 -0
  276. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_approvals.json +145 -0
  277. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_apps.json +81 -0
  278. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_comments.json +70 -0
  279. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_drives.json +71 -0
  280. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_files.json +700 -0
  281. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_labels.json +75 -0
  282. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_permissions.json +93 -0
  283. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_replies.json +66 -0
  284. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_revisions.json +82 -0
  285. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scope.toml +126 -0
  286. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/tests/tools.json +101 -0
  287. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/vendor-openapi.json +6193 -0
  288. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/world.json +1972 -108
  289. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/api/handlers.py +1645 -0
  290. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/connector.toml +414 -0
  291. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/handlers.py +200 -0
  292. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/scenario.toml +2 -0
  293. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_cells.json +10252 -0
  294. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_charts.json +103 -0
  295. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_conditional_formats.json +138 -0
  296. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_dimensions.json +256 -0
  297. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_named_ranges.json +16 -0
  298. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_permissions.json +31 -0
  299. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_sheets.json +95 -0
  300. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_spreadsheets.json +14 -0
  301. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_view_states.json +26 -0
  302. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/tests/page.json +311 -0
  303. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/tests/vendor.json +843 -0
  304. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/assets/index-CUpfKgm_.js +40 -0
  305. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/assets/index-D3VhwBIC.css +1 -0
  306. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-400.woff2 +0 -0
  307. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-500.woff2 +0 -0
  308. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-700.woff2 +0 -0
  309. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-400.woff2 +0 -0
  310. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-500.woff2 +0 -0
  311. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-700.woff2 +0 -0
  312. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-400.woff2 +0 -0
  313. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-500.woff2 +0 -0
  314. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-700.woff2 +0 -0
  315. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/index.html +26 -0
  316. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/world.json +4029 -0
  317. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/api/handlers.py +800 -0
  318. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/connector.toml +776 -0
  319. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/handlers.py +226 -0
  320. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/instruction.md +11 -0
  321. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/scenario.toml +2 -0
  322. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_accounts.json +17 -0
  323. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_associations.json +1478 -0
  324. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_calls.json +147 -0
  325. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_companies.json +144 -0
  326. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_contacts.json +284 -0
  327. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_deals.json +204 -0
  328. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_emails.json +160 -0
  329. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_meetings.json +147 -0
  330. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_nav_items.json +204 -0
  331. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_notes.json +160 -0
  332. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_notifications.json +25 -0
  333. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_object_views.json +334 -0
  334. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_owners.json +76 -0
  335. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_pipeline_stages.json +109 -0
  336. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_pipelines.json +13 -0
  337. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_properties.json +1220 -0
  338. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_tasks.json +394 -0
  339. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_tickets.json +34 -0
  340. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/assets/index-hdb5vB78.css +1 -0
  341. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/assets/index-xhg5ASqE.js +68 -0
  342. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-300.ttf +0 -0
  343. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-400.ttf +0 -0
  344. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-500.ttf +0 -0
  345. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-600.ttf +0 -0
  346. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-700.ttf +0 -0
  347. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-latin.woff2 +0 -0
  348. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/add.svg +1 -0
  349. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/avatar.svg +1 -0
  350. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/bell.svg +3 -0
  351. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/breeze.svg +4 -0
  352. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/call.svg +1 -0
  353. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/chevron-up.svg +3 -0
  354. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/companies.svg +1 -0
  355. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/contact.svg +1 -0
  356. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/contacts.svg +1 -0
  357. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/date.svg +1 -0
  358. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/deals.svg +1 -0
  359. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/duplicate.svg +1 -0
  360. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/export.svg +3 -0
  361. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/external-link.svg +1 -0
  362. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/filter-lines.svg +3 -0
  363. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/frame-expand.svg +3 -0
  364. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/funnel.svg +3 -0
  365. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/help.svg +1 -0
  366. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/hierarchy.svg +4 -0
  367. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/home.svg +1 -0
  368. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/hubspot-logo.svg +1 -0
  369. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/info.svg +1 -0
  370. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/kanban.svg +1 -0
  371. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/marketing-email.svg +1 -0
  372. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/marketplace.svg +1 -0
  373. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/meetings.svg +1 -0
  374. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/more.svg +1 -0
  375. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/pencil.svg +3 -0
  376. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/pin.svg +3 -0
  377. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/prospecting.svg +1 -0
  378. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/refresh.svg +1 -0
  379. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/search.svg +1 -0
  380. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/settings.svg +1 -0
  381. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/sidebar-collapse.svg +3 -0
  382. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/sort.svg +3 -0
  383. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/table.svg +1 -0
  384. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/tasks.svg +1 -0
  385. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/thumbs-down.svg +1 -0
  386. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/thumbs-up.svg +1 -0
  387. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/undo.svg +3 -0
  388. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/upgrade-arrow.svg +1 -0
  389. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/vertical-dots.svg +5 -0
  390. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/workflows.svg +1 -0
  391. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/index.html +37 -0
  392. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/world.json +1347 -0
  393. package/runtime/gatewaysdk/environment/schema/connectors/jamf/api/handlers.py +987 -0
  394. package/runtime/gatewaysdk/environment/schema/connectors/jamf/connector.toml +3057 -0
  395. package/runtime/gatewaysdk/environment/schema/connectors/jamf/provenance.json +9443 -129
  396. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/scenario.toml +4 -0
  397. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_account_groups.json +64 -0
  398. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_accounts.json +58 -0
  399. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_computer_searches.json +139 -0
  400. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_mobile_device_searches.json +61 -0
  401. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_user_content_searches.json +61 -0
  402. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_user_searches.json +124 -0
  403. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_api_integrations.json +37 -0
  404. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_api_roles.json +25 -0
  405. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_app_request_form_input_fields.json +22 -0
  406. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_buildings.json +34 -0
  407. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_byo_profiles.json +46 -0
  408. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_categories.json +19 -0
  409. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_classes.json +217 -0
  410. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_cloud_idps.json +19 -0
  411. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_group_members.json +16 -0
  412. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_groups.json +38 -0
  413. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_invitations.json +82 -0
  414. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_prestages.json +274 -0
  415. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computers.json +1537 -0
  416. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_configuration_profiles.json +649 -0
  417. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_departments.json +16 -0
  418. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_device_enrollment_devices.json +70 -0
  419. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_device_enrollments.json +46 -0
  420. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_directory_bindings.json +34 -0
  421. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_disk_encryption_configurations.json +22 -0
  422. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_distribution_points.json +91 -0
  423. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_dock_items.json +25 -0
  424. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ebooks.json +43 -0
  425. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_enrollment_customizations.json +43 -0
  426. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_extension_attributes.json +52 -0
  427. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ibeacons.json +25 -0
  428. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_inventory_preload_records.json +100 -0
  429. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ios_branding_configurations.json +31 -0
  430. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ldap_servers.json +16 -0
  431. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_licensed_software_records.json +244 -0
  432. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mac_applications.json +610 -0
  433. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_macos_branding_configurations.json +34 -0
  434. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_managed_software_update_plans.json +67 -0
  435. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mdm_commands.json +58 -0
  436. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_applications.json +700 -0
  437. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_configuration_profiles.json +652 -0
  438. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_enrollment_profiles.json +160 -0
  439. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_extension_attributes.json +43 -0
  440. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_group_members.json +16 -0
  441. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_groups.json +38 -0
  442. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_prestages.json +280 -0
  443. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_provisioning_profiles.json +31 -0
  444. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_devices.json +1558 -0
  445. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_network_segments.json +46 -0
  446. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_packages.json +118 -0
  447. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_patch_software_title_configurations.json +88 -0
  448. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_policies.json +1054 -0
  449. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_printers.json +52 -0
  450. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_removable_mac_addresses.json +16 -0
  451. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_restricted_software_titles.json +289 -0
  452. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_return_to_service_configurations.json +19 -0
  453. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_scripts.json +61 -0
  454. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_sites.json +19 -0
  455. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_software_update_servers.json +25 -0
  456. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_supervision_identities.json +22 -0
  457. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_user_extension_attributes.json +31 -0
  458. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_user_groups.json +112 -0
  459. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_users.json +37 -0
  460. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_volume_purchasing_locations.json +106 -0
  461. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_volume_purchasing_subscriptions.json +76 -0
  462. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_webhooks.json +70 -0
  463. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scope.toml +839 -67
  464. package/runtime/gatewaysdk/environment/schema/connectors/jamf/tests/tools.json +95 -0
  465. package/runtime/gatewaysdk/environment/schema/connectors/jamf/vendor-openapi.json +1 -0
  466. package/runtime/gatewaysdk/environment/schema/connectors/jamf/world.json +10835 -1494
  467. package/runtime/gatewaysdk/environment/schema/connectors/jira/api/handlers.py +1056 -0
  468. package/runtime/gatewaysdk/environment/schema/connectors/jira/connector.toml +955 -0
  469. package/runtime/gatewaysdk/environment/schema/connectors/jira/handlers.py +73 -14
  470. package/runtime/gatewaysdk/environment/schema/connectors/jira/parity.json +27 -0
  471. package/runtime/gatewaysdk/environment/schema/connectors/jira/provenance.json +166 -0
  472. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/instruction.md +22 -0
  473. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/scenario.toml +3 -0
  474. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_boards.json +61 -0
  475. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_changelogs.json +136 -0
  476. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_comments.json +205 -0
  477. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_components.json +78 -0
  478. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_fields.json +498 -0
  479. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_link_types.json +25 -0
  480. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_links.json +190 -0
  481. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_types.json +44 -0
  482. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issues.json +1448 -0
  483. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_priorities.json +40 -0
  484. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_project_categories.json +16 -0
  485. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_projects.json +111 -0
  486. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_resolutions.json +22 -0
  487. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_sprint_issues.json +20 -0
  488. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_sprints.json +39 -0
  489. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_status_categories.json +25 -0
  490. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_statuses.json +60 -0
  491. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_transitions.json +179 -0
  492. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_users.json +83 -0
  493. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_versions.json +30 -0
  494. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_worklogs.json +96 -0
  495. package/runtime/gatewaysdk/environment/schema/connectors/jira/scope.toml +255 -0
  496. package/runtime/gatewaysdk/environment/schema/connectors/jira/tests/tools.json +151 -0
  497. package/runtime/gatewaysdk/environment/schema/connectors/jira/vendor-openapi.json +13562 -0
  498. package/runtime/gatewaysdk/environment/schema/connectors/jira/world.json +3381 -183
  499. package/runtime/gatewaysdk/environment/schema/connectors/kandji/api/handlers.py +406 -0
  500. package/runtime/gatewaysdk/environment/schema/connectors/kandji/connector.toml +531 -0
  501. package/runtime/gatewaysdk/environment/schema/connectors/kandji/provenance.json +229 -46
  502. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/scenario.toml +2 -0
  503. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_items.json +22 -0
  504. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_template_categories.json +14 -0
  505. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_templates.json +38 -0
  506. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprints.json +52 -0
  507. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_apps.json +45 -0
  508. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_profiles.json +32 -0
  509. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_scripts.json +27 -0
  510. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_activities.json +43 -0
  511. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_apps.json +52 -0
  512. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_commands.json +41 -0
  513. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_notes.json +20 -0
  514. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_parameters.json +28 -0
  515. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_tags.json +16 -0
  516. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_devices.json +122 -0
  517. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_in_house_apps.json +33 -0
  518. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_item_activities.json +33 -0
  519. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_item_statuses.json +98 -0
  520. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_items.json +24 -0
  521. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_self_service_categories.json +12 -0
  522. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_tags.json +16 -0
  523. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_users.json +61 -0
  524. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scope.toml +118 -39
  525. package/runtime/gatewaysdk/environment/schema/connectors/kandji/tests/tools.json +64 -0
  526. package/runtime/gatewaysdk/environment/schema/connectors/kandji/vendor-openapi.json +5463 -0
  527. package/runtime/gatewaysdk/environment/schema/connectors/kandji/world.json +1257 -205
  528. package/runtime/gatewaysdk/environment/schema/connectors/linear/api/handlers.py +139 -0
  529. package/runtime/gatewaysdk/environment/schema/connectors/linear/connector.toml +1574 -0
  530. package/runtime/gatewaysdk/environment/schema/connectors/linear/handlers.py +8 -5
  531. package/runtime/gatewaysdk/environment/schema/connectors/linear/provenance.json +142 -0
  532. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/scenario.toml +2 -0
  533. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/attachments.json +21 -0
  534. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/comments.json +79 -0
  535. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_needs.json +21 -0
  536. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_statuses.json +26 -0
  537. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_tiers.json +26 -0
  538. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customers.json +48 -0
  539. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/cycles.json +86 -0
  540. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/documents.json +27 -0
  541. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiative_projects.json +13 -0
  542. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiative_updates.json +23 -0
  543. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiatives.json +41 -0
  544. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issue_labels.json +16 -0
  545. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issue_relations.json +13 -0
  546. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issues.json +264 -0
  547. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/labels.json +52 -0
  548. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/organizations.json +53 -0
  549. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_labels.json +34 -0
  550. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_members.json +16 -0
  551. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_milestones.json +30 -0
  552. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_relations.json +18 -0
  553. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_statuses.json +76 -0
  554. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_updates.json +42 -0
  555. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/projects.json +110 -0
  556. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/reactions.json +28 -0
  557. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/roadmap_projects.json +13 -0
  558. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/roadmaps.json +19 -0
  559. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/team_memberships.json +34 -0
  560. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/teams.json +114 -0
  561. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/templates.json +27 -0
  562. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/users.json +106 -0
  563. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/webhooks.json +21 -0
  564. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/workflow_states.json +108 -0
  565. package/runtime/gatewaysdk/environment/schema/connectors/linear/scope.toml +87 -0
  566. package/runtime/gatewaysdk/environment/schema/connectors/linear/tests/tools.json +52 -0
  567. package/runtime/gatewaysdk/environment/schema/connectors/linear/world.json +5957 -172
  568. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/api/handlers.py +1218 -0
  569. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/connector.toml +1246 -0
  570. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/fidelity.json +49 -19
  571. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/provenance.json +785 -4
  572. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/instruction.md +12 -0
  573. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/scenario.toml +2 -0
  574. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_async_operations.json +47 -0
  575. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_hosted_contents.json +12 -0
  576. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_members.json +88 -0
  577. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_messages.json +313 -0
  578. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_replies.json +128 -0
  579. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channels.json +319 -0
  580. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_hosted_contents.json +18 -0
  581. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_members.json +155 -0
  582. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_messages.json +265 -0
  583. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_views.json +37 -0
  584. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chats.json +167 -0
  585. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_incoming_channels.json +25 -0
  586. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_pinned_messages.json +9 -0
  587. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_reply_hosted_contents.json +13 -0
  588. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_shared_channel_teams.json +32 -0
  589. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_tag_members.json +31 -0
  590. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_tags.json +32 -0
  591. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_team_members.json +117 -0
  592. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_teams.json +193 -0
  593. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scope.md +76 -4
  594. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/teams-types.json +29 -0
  595. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/tests/routes.json +101 -0
  596. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/vendor-openapi.json +11280 -0
  597. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/world.json +74 -6
  598. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/api/handlers.py +571 -0
  599. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/connector.toml +1484 -0
  600. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/parity.json +28 -1
  601. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/provenance.json +215 -49
  602. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/instruction.md +11 -0
  603. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/scenario.toml +2 -0
  604. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_accounting_periods.json +107 -0
  605. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_accounts.json +514 -0
  606. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_classifications.json +64 -0
  607. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_contacts.json +90 -0
  608. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_credit_memos.json +112 -0
  609. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_currencies.json +37 -0
  610. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_customer_payments.json +108 -0
  611. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_customers.json +232 -0
  612. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_departments.json +80 -0
  613. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_employees.json +124 -0
  614. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_invoices.json +229 -0
  615. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_item_fulfillments.json +85 -0
  616. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_items.json +237 -0
  617. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_journal_entries.json +217 -0
  618. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_locations.json +62 -0
  619. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_price_levels.json +28 -0
  620. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_purchase_orders.json +152 -0
  621. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_sales_order_lines.json +235 -0
  622. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_sales_orders.json +219 -0
  623. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_subsidiaries.json +85 -0
  624. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_terms.json +48 -0
  625. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_vendor_bills.json +170 -0
  626. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_vendors.json +140 -0
  627. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scope.toml +251 -33
  628. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/tests/tools.json +82 -0
  629. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/world.json +31065 -8232
  630. package/runtime/gatewaysdk/environment/schema/connectors/notion/api/handlers.py +1330 -0
  631. package/runtime/gatewaysdk/environment/schema/connectors/notion/connector.toml +386 -0
  632. package/runtime/gatewaysdk/environment/schema/connectors/notion/handlers.py +54 -0
  633. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/scenario.toml +2 -0
  634. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/blocks.json +4197 -0
  635. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/calendar_events.json +18 -0
  636. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/collection_views.json +175 -0
  637. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/comments.json +109 -0
  638. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/databases.json +417 -0
  639. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/favorites.json +3 -0
  640. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/notifications.json +49 -0
  641. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/pages.json +3758 -0
  642. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/spaces.json +28 -0
  643. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/teamspaces.json +3 -0
  644. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/users.json +92 -0
  645. package/runtime/gatewaysdk/environment/schema/connectors/notion/tests/01-reads.json +165 -0
  646. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/assets/index-DQ36W7RG.css +1 -0
  647. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/assets/index-DythuuUy.js +67 -0
  648. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000002.svg +1 -0
  649. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000003.svg +1 -0
  650. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000004.svg +1 -0
  651. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000005.svg +1 -0
  652. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000006.svg +1 -0
  653. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000007.svg +1 -0
  654. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000008.svg +1 -0
  655. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/dusk-harbor.png +0 -0
  656. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/ember-coast.png +0 -0
  657. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/green-ridge.png +0 -0
  658. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f30a.svg +1 -0
  659. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f331.svg +1 -0
  660. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f373.svg +1 -0
  661. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3a7.svg +1 -0
  662. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3a8.svg +1 -0
  663. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3ac.svg +1 -0
  664. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3af.svg +1 -0
  665. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3c4.svg +1 -0
  666. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3d6.svg +1 -0
  667. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3e0.svg +1 -0
  668. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f44b.svg +1 -0
  669. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4a1.svg +1 -0
  670. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4b0.svg +1 -0
  671. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4bc.svg +1 -0
  672. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4c5.svg +1 -0
  673. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4c8.svg +1 -0
  674. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4cb.svg +1 -0
  675. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4ce.svg +1 -0
  676. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d1.svg +1 -0
  677. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d3.svg +1 -0
  678. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d6.svg +1 -0
  679. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4da.svg +1 -0
  680. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4dd.svg +1 -0
  681. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4ec.svg +1 -0
  682. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4f7.svg +1 -0
  683. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f527.svg +1 -0
  684. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f55b.svg +1 -0
  685. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f5c2.svg +1 -0
  686. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f5d3.svg +1 -0
  687. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f680.svg +1 -0
  688. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f6a2.svg +1 -0
  689. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ca.svg +1 -0
  690. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9e0.svg +1 -0
  691. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ea.svg +1 -0
  692. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ed.svg +1 -0
  693. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9f0.svg +1 -0
  694. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1fab6.svg +1 -0
  695. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2600.svg +1 -0
  696. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2693.svg +1 -0
  697. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2705.svg +1 -0
  698. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2708.svg +1 -0
  699. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/270f.svg +1 -0
  700. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2b50.svg +1 -0
  701. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/favicon.svg +1 -0
  702. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/fonts/SourceSerif4-latin.woff2 +0 -0
  703. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/index.html +31 -0
  704. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/content-blocks.png +0 -0
  705. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/databases.png +0 -0
  706. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/sharing.png +0 -0
  707. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/style-content.png +0 -0
  708. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/home-icon.png +0 -0
  709. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/viewer.png +0 -0
  710. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/workspace.png +0 -0
  711. package/runtime/gatewaysdk/environment/schema/connectors/notion/world.json +2796 -0
  712. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_admin_role_assignments.json +44 -0
  713. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_app_assignments.json +40 -0
  714. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_app_group_assignments.json +59 -0
  715. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_applications.json +265 -0
  716. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_console_dashboards.json +91 -0
  717. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_device_users.json +32 -0
  718. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_devices.json +89 -0
  719. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_group_memberships.json +156 -0
  720. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_groups.json +100 -0
  721. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_orgs.json +20 -0
  722. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_policies.json +84 -0
  723. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_system_log_events.json +9656 -0
  724. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_users.json +744 -0
  725. package/runtime/gatewaysdk/environment/schema/connectors/outlook/api/handlers.py +624 -0
  726. package/runtime/gatewaysdk/environment/schema/connectors/outlook/connector.toml +381 -0
  727. package/runtime/gatewaysdk/environment/schema/connectors/outlook/handlers.py +54 -0
  728. package/runtime/gatewaysdk/environment/schema/connectors/outlook/provenance.json +408 -0
  729. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/instruction.md +22 -0
  730. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/scenario.toml +2 -0
  731. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_attachments.json +44 -0
  732. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_calendars.json +52 -0
  733. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_contacts.json +326 -0
  734. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_events.json +3050 -0
  735. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mail_folders.json +84 -0
  736. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mailbox_settings.json +35 -0
  737. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mailboxes.json +14 -0
  738. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_messages.json +1400 -0
  739. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_system_senders.json +44 -0
  740. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_users.json +256 -0
  741. package/runtime/gatewaysdk/environment/schema/connectors/outlook/tests/routes.json +333 -0
  742. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/assets/index-DRVA5ahH.js +67 -0
  743. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/assets/index-kOnvVBhA.css +1 -0
  744. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Filled.woff2 +0 -0
  745. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Regular.woff2 +0 -0
  746. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Resizable.woff2 +0 -0
  747. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/controlIcons.woff +0 -0
  748. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-bold.woff2 +0 -0
  749. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-light.woff2 +0 -0
  750. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-regular.woff2 +0 -0
  751. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-semibold.woff2 +0 -0
  752. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-semilight.woff2 +0 -0
  753. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/bookings.svg +1 -0
  754. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/calendar.svg +35 -0
  755. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/copilot.png +0 -0
  756. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/excel.svg +1 -0
  757. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/mail.svg +32 -0
  758. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/my-day.svg +1 -0
  759. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/newsletters.svg +37 -0
  760. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/no-mail-selected-dark.svg +1 -0
  761. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/no-mail-selected.svg +1 -0
  762. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/onedrive.svg +1 -0
  763. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/onenote.svg +1 -0
  764. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/org-explorer.png +0 -0
  765. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/outlook.svg +1 -0
  766. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/people.svg +34 -0
  767. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/powerpoint.svg +1 -0
  768. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/ribbon-layout.svg +1 -0
  769. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/sharepoint.svg +1 -0
  770. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/teams-chat.svg +1 -0
  771. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/teams.svg +1 -0
  772. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/to-do.png +0 -0
  773. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/viva.svg +1 -0
  774. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/word.svg +1 -0
  775. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/index.html +34 -0
  776. package/runtime/gatewaysdk/environment/schema/connectors/outlook/world.json +686 -0
  777. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/api/handlers.py +447 -0
  778. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/connector.toml +3478 -0
  779. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/handlers.py +695 -616
  780. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/provenance.json +4254 -111
  781. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/instruction.md +8 -0
  782. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/scenario.toml +2 -0
  783. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_contact_relations.json +20 -0
  784. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_contact_roles.json +16 -0
  785. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_partners.json +18 -0
  786. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_team_members.json +16 -0
  787. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_accounts.json +38 -0
  788. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_assets.json +35 -0
  789. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_attachments.json +16 -0
  790. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_business_hours.json +16 -0
  791. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaign_member_statuses.json +16 -0
  792. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaign_members.json +38 -0
  793. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaigns.json +35 -0
  794. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_comments.json +14 -0
  795. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_histories.json +18 -0
  796. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_milestones.json +18 -0
  797. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_statuses.json +16 -0
  798. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_team_members.json +14 -0
  799. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_team_roles.json +12 -0
  800. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_cases.json +42 -0
  801. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_collaboration_group_members.json +16 -0
  802. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_collaboration_groups.json +16 -0
  803. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_addresses.json +14 -0
  804. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_emails.json +14 -0
  805. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_phones.json +14 -0
  806. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contacts.json +34 -0
  807. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_document_links.json +14 -0
  808. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_documents.json +18 -0
  809. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_folders.json +13 -0
  810. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_notes.json +12 -0
  811. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_versions.json +24 -0
  812. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_workspaces.json +16 -0
  813. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contract_contact_roles.json +16 -0
  814. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contract_line_items.json +32 -0
  815. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contracts.json +40 -0
  816. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_dashboards.json +20 -0
  817. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_documents.json +22 -0
  818. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_message_relations.json +14 -0
  819. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_messages.json +21 -0
  820. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_templates.json +24 -0
  821. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_entitlements.json +32 -0
  822. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_events.json +26 -0
  823. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_feed_comments.json +19 -0
  824. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_feed_items.json +24 -0
  825. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_fiscal_year_settings.json +20 -0
  826. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_folders.json +18 -0
  827. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_group_members.json +12 -0
  828. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_groups.json +20 -0
  829. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_holidays.json +16 -0
  830. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_individuals.json +21 -0
  831. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_lead_statuses.json +14 -0
  832. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_leads.json +45 -0
  833. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_list_views.json +16 -0
  834. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_login_histories.json +18 -0
  835. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_milestone_types.json +14 -0
  836. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_notes.json +16 -0
  837. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_object_territory_associations.json +14 -0
  838. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunities.json +48 -0
  839. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_competitors.json +12 -0
  840. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_contact_roles.json +16 -0
  841. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_field_histories.json +18 -0
  842. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_histories.json +20 -0
  843. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_line_items.json +32 -0
  844. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_partners.json +16 -0
  845. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_stages.json +22 -0
  846. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_team_members.json +18 -0
  847. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_order_items.json +33 -0
  848. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_orders.json +44 -0
  849. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_organizations.json +18 -0
  850. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_partners.json +18 -0
  851. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_periods.json +18 -0
  852. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_permission_set_assignments.json +16 -0
  853. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_permission_sets.json +18 -0
  854. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_pricebook_entries.json +22 -0
  855. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_pricebooks.json +16 -0
  856. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_products.json +20 -0
  857. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_profiles.json +14 -0
  858. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_queue_sobjects.json +12 -0
  859. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_quote_line_items.json +43 -0
  860. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_quotes.json +40 -0
  861. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_record_actions.json +16 -0
  862. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_record_types.json +18 -0
  863. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_reports.json +18 -0
  864. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_service_contracts.json +32 -0
  865. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_sla_processes.json +18 -0
  866. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_solutions.json +18 -0
  867. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_priorities.json +14 -0
  868. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_relations.json +14 -0
  869. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_statuses.json +16 -0
  870. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_tasks.json +26 -0
  871. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territories.json +20 -0
  872. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territory_models.json +16 -0
  873. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territory_types.json +18 -0
  874. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_topic_assignments.json +12 -0
  875. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_topics.json +14 -0
  876. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_user_roles.json +16 -0
  877. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_user_territory_associations.json +16 -0
  878. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_users.json +57 -0
  879. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_web_links.json +26 -0
  880. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_work_order_line_items.json +42 -0
  881. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_work_orders.json +46 -0
  882. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scope.toml +624 -104
  883. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/tests/tools.json +69 -0
  884. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/world.json +19222 -2654
  885. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/api/handlers.py +630 -0
  886. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/connector.toml +266 -0
  887. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/handlers.py +3 -0
  888. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/provenance.json +245 -0
  889. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/instruction.md +15 -0
  890. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/scenario.toml +1 -0
  891. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/10-snow_users.json +268 -0
  892. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/11-snow_user_groups.json +40 -0
  893. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/20-snow_configuration_items.json +684 -0
  894. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/30-snow_catalog_categories.json +52 -0
  895. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/31-snow_catalog_items.json +334 -0
  896. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/40-snow_incidents.json +3086 -0
  897. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/41-snow_incident_tasks.json +54 -0
  898. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/42-snow_task_slas.json +64 -0
  899. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/43-snow_problems.json +148 -0
  900. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/44-snow_change_requests.json +364 -0
  901. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/45-snow_knowledge_articles.json +214 -0
  902. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/46-snow_journal_entries.json +1612 -0
  903. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/60-snow_ui_current_users.json +19 -0
  904. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/61-snow_ui_navigation_applications.json +187 -0
  905. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/62-snow_ui_home_widgets.json +91 -0
  906. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/63-snow_ui_notifications.json +3 -0
  907. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/64-snow_ui_employee_center_pages.json +74 -0
  908. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/65-snow_ui_list_layouts.json +54 -0
  909. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/66-snow_ui_search_facets.json +29 -0
  910. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/67-snow_ui_activity_entries.json +1076 -0
  911. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/68-snow_ui_instances.json +9 -0
  912. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scope.toml +166 -0
  913. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/tests/routes.json +272 -0
  914. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/assets/index-5QHcQLCI.css +1 -0
  915. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/assets/index-BzeVnzFt.js +67 -0
  916. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/cabin-400-700-italic.woff2 +0 -0
  917. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/cabin-400-700.woff2 +0 -0
  918. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-0-lato-v17-latin-ext_latin-100.woff2 +0 -0
  919. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-1-lato-v17-latin-ext_latin-100.woff +0 -0
  920. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-10-lato-v17-latin-ext_latin-italic.woff2 +0 -0
  921. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-11-lato-v17-latin-ext_latin-italic.woff +0 -0
  922. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-12-lato-v17-latin-ext_latin-700.woff2 +0 -0
  923. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-13-lato-v17-latin-ext_latin-700.woff +0 -0
  924. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-14-lato-v17-latin-ext_latin-700italic.woff2 +0 -0
  925. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-15-lato-v17-latin-ext_latin-700italic.woff +0 -0
  926. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-16-source-sans-pro-v11-latin-300.woff2 +0 -0
  927. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-17-source-sans-pro-v11-latin-300.woff +0 -0
  928. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-18-source-sans-pro-v11-latin-regular.woff2 +0 -0
  929. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-19-source-sans-pro-v11-latin-regular.woff +0 -0
  930. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-2-lato-v17-latin-ext_latin-100italic.woff2 +0 -0
  931. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-20-source-sans-pro-v11-latin-600.woff2 +0 -0
  932. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-21-source-sans-pro-v11-latin-600.woff +0 -0
  933. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-22-source-sans-pro-v11-latin-700.woff2 +0 -0
  934. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-23-source-sans-pro-v11-latin-700.woff +0 -0
  935. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-3-lato-v17-latin-ext_latin-100italic.woff +0 -0
  936. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-4-lato-v17-latin-ext_latin-300.woff2 +0 -0
  937. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-5-lato-v17-latin-ext_latin-300.woff +0 -0
  938. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-6-lato-v17-latin-ext_latin-300italic.woff2 +0 -0
  939. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-7-lato-v17-latin-ext_latin-300italic.woff +0 -0
  940. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-8-lato-v17-latin-ext_latin-regular.woff2 +0 -0
  941. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-9-lato-v17-latin-ext_latin-regular.woff +0 -0
  942. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/index.json +122 -0
  943. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-300.woff2 +0 -0
  944. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-600-italic.woff2 +0 -0
  945. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-600.woff2 +0 -0
  946. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-bold-italic.woff2 +0 -0
  947. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-bold.woff2 +0 -0
  948. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-normal-italic.woff2 +0 -0
  949. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-normal.woff2 +0 -0
  950. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/appsee-outline.svg +1 -0
  951. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/arrow-up-outline.svg +1 -0
  952. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/available.svg +1 -0
  953. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/bell-outline.svg +1 -0
  954. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/caret-down-fill.svg +1 -0
  955. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/check-fill.svg +1 -0
  956. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/chevron-right-outline.svg +1 -0
  957. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-close-outline.svg +1 -0
  958. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-info-outline.svg +1 -0
  959. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-question-outline.svg +1 -0
  960. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circleinfooutline.svg +1 -0
  961. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/ellipsis-v-outline.svg +1 -0
  962. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/eye-outline.svg +1 -0
  963. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-bell-fill.svg +1 -0
  964. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-caret-down-fill.svg +1 -0
  965. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-check-square.svg +1 -0
  966. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-chevron-right.svg +1 -0
  967. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-clock-outline.svg +1 -0
  968. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-comment-chat.svg +1 -0
  969. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-external-link.svg +1 -0
  970. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-facebook.svg +1 -0
  971. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-heart-fill.svg +1 -0
  972. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-heart-outline.svg +1 -0
  973. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-home-fill-teal.svg +1 -0
  974. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-home-fill.svg +1 -0
  975. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-linkedin.svg +1 -0
  976. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-list-alt-fill.svg +1 -0
  977. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-pencil-square.svg +1 -0
  978. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-question-circle-fill.svg +1 -0
  979. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-times.svg +1 -0
  980. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-twitter.svg +1 -0
  981. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/filter-outline.svg +1 -0
  982. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/gear-outline.svg +1 -0
  983. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/globe-outline.svg +1 -0
  984. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/home-outline.svg +1 -0
  985. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-2.svg +17 -0
  986. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-3.svg +1 -0
  987. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-4.svg +1 -0
  988. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon.svg +45 -0
  989. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/keyboard-outline.svg +1 -0
  990. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/link-icon-associated-to-view-all-adoption-blueprints.svg +1 -0
  991. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/link-icon-associated-to-view-all-applications.svg +1 -0
  992. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/list-fill.svg +1 -0
  993. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/loading-2.svg +1 -0
  994. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/loading.svg +1 -0
  995. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/magnifying-glass-outline.svg +1 -0
  996. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/ongoing-outline.svg +1 -0
  997. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/open-link-right-fill.svg +1 -0
  998. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/open-link-right-outline.svg +1 -0
  999. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/pencil-page-outline.svg +1 -0
  1000. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/plus-fill.svg +1 -0
  1001. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/serverbox-outline.svg +1 -0
  1002. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/servicenow-wordmark.svg +20 -0
  1003. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/signal-live-outline.svg +1 -0
  1004. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/square-arrow-left-outline.svg +1 -0
  1005. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/star-outline.svg +1 -0
  1006. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/sync-outline.svg +1 -0
  1007. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/task-slas-related-list.svg +24 -0
  1008. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/thumbtack-outline.svg +1 -0
  1009. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/trending-downward.svg +1 -0
  1010. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/trending-neutral.svg +1 -0
  1011. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-all-menu.svg +1 -0
  1012. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-favorites-menu.svg +1 -0
  1013. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-history-menu.svg +1 -0
  1014. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/user-outline.svg +1 -0
  1015. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/adoption-blueprints.svg +40 -0
  1016. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/avatar-admin.jpg +0 -0
  1017. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/now-assist-admin.svg +17 -0
  1018. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-desk.jpg +0 -0
  1019. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-password.jpg +0 -0
  1020. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-status.jpg +0 -0
  1021. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-accessories.svg +1 -0
  1022. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-computers.svg +1 -0
  1023. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-developer.svg +1 -0
  1024. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-email.svg +1 -0
  1025. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-phone.svg +1 -0
  1026. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-software-catalog.svg +1 -0
  1027. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-software.svg +1 -0
  1028. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-technology.svg +1 -0
  1029. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/index.html +36 -0
  1030. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/world.json +2004 -0
  1031. package/runtime/gatewaysdk/environment/schema/connectors/slack/MODEL.md +28 -0
  1032. package/runtime/gatewaysdk/environment/schema/connectors/slack/api/handlers.py +1880 -0
  1033. package/runtime/gatewaysdk/environment/schema/connectors/slack/capabilities.json +19 -2
  1034. package/runtime/gatewaysdk/environment/schema/connectors/slack/connector.toml +892 -0
  1035. package/runtime/gatewaysdk/environment/schema/connectors/slack/provenance.json +65 -10
  1036. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/scenario.toml +1 -0
  1037. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_apps.json +22 -0
  1038. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_bookmarks.json +22 -0
  1039. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_bots.json +19 -0
  1040. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_channels.json +206 -0
  1041. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_conversation_states.json +50 -0
  1042. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_emojis.json +19 -0
  1043. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_message_files.json +12 -0
  1044. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_message_threads.json +11 -0
  1045. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_messages.json +16 -0
  1046. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_channel_observations.json +16 -0
  1047. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_reaction_summaries.json +10 -0
  1048. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_reaction_users.json +10 -0
  1049. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_shares.json +29 -0
  1050. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_user_states.json +10 -0
  1051. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_files.json +64 -0
  1052. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_memberships.json +79 -0
  1053. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_files.json +18 -0
  1054. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_threads.json +10 -0
  1055. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_user_states.json +14 -0
  1056. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_messages.json +127 -0
  1057. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_pins.json +11 -0
  1058. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_presence.json +35 -0
  1059. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_reaction_summaries.json +25 -0
  1060. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_reaction_users.json +32 -0
  1061. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_scheduled_message_threads.json +10 -0
  1062. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_scheduled_messages.json +15 -0
  1063. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_unavailable_message_files.json +14 -0
  1064. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_user_profile_fields.json +28 -0
  1065. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroup_channels.json +10 -0
  1066. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroup_memberships.json +14 -0
  1067. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroups.json +33 -0
  1068. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_users.json +228 -0
  1069. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_view_state_entries.json +22 -0
  1070. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_views.json +53 -0
  1071. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_workspaces.json +37 -0
  1072. package/runtime/gatewaysdk/environment/schema/connectors/slack/scope.toml +6 -2
  1073. package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/api.json +177 -0
  1074. package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/test_threads.py +49 -0
  1075. package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/tools.json +92 -0
  1076. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/assets/index-BSqGskph.css +1 -0
  1077. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/assets/index-CKQh1igo.js +81 -0
  1078. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/README.md +15 -0
  1079. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-black.woff2 +0 -0
  1080. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-bold.woff2 +0 -0
  1081. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-black.woff2 +0 -0
  1082. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-bold.woff2 +0 -0
  1083. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-light.woff2 +0 -0
  1084. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic.woff2 +0 -0
  1085. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-light.woff2 +0 -0
  1086. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-regular.woff2 +0 -0
  1087. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/slack-icons-v2.woff2 +0 -0
  1088. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/index.html +35 -0
  1089. package/runtime/gatewaysdk/environment/schema/connectors/slack/vendor-openapi.json +12515 -0
  1090. package/runtime/gatewaysdk/environment/schema/connectors/slack/world.json +396 -8
  1091. package/runtime/gatewaysdk/environment/schema/connectors/workday/api/handlers.py +175 -0
  1092. package/runtime/gatewaysdk/environment/schema/connectors/workday/connector.toml +610 -0
  1093. package/runtime/gatewaysdk/environment/schema/connectors/workday/parity.json +39 -6
  1094. package/runtime/gatewaysdk/environment/schema/connectors/workday/provenance.json +253 -25
  1095. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/instruction.md +10 -0
  1096. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/scenario.toml +2 -0
  1097. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_compensations.json +219 -0
  1098. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_job_profiles.json +76 -0
  1099. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_locations.json +142 -0
  1100. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_organizations.json +124 -0
  1101. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_positions.json +280 -0
  1102. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_absence_leaves.json +66 -0
  1103. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_business_title_changes.json +44 -0
  1104. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_check_in_topics.json +48 -0
  1105. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_check_ins.json +46 -0
  1106. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_countries.json +28 -0
  1107. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_currencies.json +25 -0
  1108. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_change_reasons.json +28 -0
  1109. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_families.json +40 -0
  1110. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_profiles.json +202 -0
  1111. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_jobs.json +120 -0
  1112. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_organization_types.json +19 -0
  1113. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_organizations.json +24 -0
  1114. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_persons.json +100 -0
  1115. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_scorecard_results.json +57 -0
  1116. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_scorecards.json +68 -0
  1117. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_supervisory_organizations.json +64 -0
  1118. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_time_off_details.json +112 -0
  1119. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_time_off_entries.json +91 -0
  1120. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_worker_history_events.json +58 -0
  1121. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_workers.json +90 -0
  1122. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_time_off_requests.json +181 -0
  1123. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_workers.json +492 -0
  1124. package/runtime/gatewaysdk/environment/schema/connectors/workday/scope.toml +178 -14
  1125. package/runtime/gatewaysdk/environment/schema/connectors/workday/tests/tools.json +81 -0
  1126. package/runtime/gatewaysdk/environment/schema/connectors/workday/vendor-openapi.json +10646 -0
  1127. package/runtime/gatewaysdk/environment/schema/connectors/workday/world.json +3787 -407
  1128. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/api/handlers.py +1183 -0
  1129. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/connector.toml +645 -0
  1130. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/handlers.py +377 -0
  1131. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/instruction.md +22 -0
  1132. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/scenario.toml +3 -0
  1133. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_brands.json +25 -0
  1134. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_group_memberships.json +49 -0
  1135. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_groups.json +37 -0
  1136. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_macros.json +154 -0
  1137. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_organizations.json +65 -0
  1138. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_ticket_audits.json +3328 -0
  1139. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_ticket_comments.json +2642 -0
  1140. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_tickets.json +1439 -0
  1141. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_users.json +624 -0
  1142. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_views.json +510 -0
  1143. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_workspace_tabs.json +10 -0
  1144. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/assets/index-JWq7XNO5.css +1 -0
  1145. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/assets/index-bn8ezNTi.js +67 -0
  1146. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/index.html +22 -0
  1147. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/world.json +1707 -0
  1148. package/runtime/gatewaysdk/environment/schema/data.py +424 -36
  1149. package/runtime/gatewaysdk/environment/schema/dependencies.py +245 -0
  1150. package/runtime/gatewaysdk/environment/schema/extract.py +6 -6
  1151. package/runtime/gatewaysdk/environment/schema/host.py +234 -79
  1152. package/runtime/gatewaysdk/environment/schema/host_surfaces.py +62 -17
  1153. package/runtime/gatewaysdk/environment/schema/ingest.py +528 -0
  1154. package/runtime/gatewaysdk/environment/schema/local.py +622 -0
  1155. package/runtime/gatewaysdk/environment/schema/mapping.py +956 -0
  1156. package/runtime/gatewaysdk/environment/schema/platform.py +708 -205
  1157. package/runtime/gatewaysdk/environment/schema/reconcile.py +202 -0
  1158. package/runtime/gatewaysdk/environment/schema/redaction.py +378 -0
  1159. package/runtime/gatewaysdk/environment/schema/scaffold.py +68 -7
  1160. package/runtime/gatewaysdk/environment/schema/skill.py +1 -0
  1161. package/runtime/gatewaysdk/environment/schema/skills/benchmarks-getting-started/SKILL.md +394 -0
  1162. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/CONNECTORS.md +64 -31
  1163. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/SKILL.md +86 -36
  1164. package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/ROWS.md +20 -0
  1165. package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/SKILL.md +178 -11
  1166. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/SKILL.md +184 -74
  1167. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/cli-mcp-map.md +49 -0
  1168. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/ui-map.md +18 -0
  1169. package/runtime/gatewaysdk/environment/schema/store.py +103 -3
  1170. package/runtime/gatewaysdk/environment/schema/tasks.py +8 -3
  1171. package/runtime/gatewaysdk/environment/schema/tools_world.py +429 -58
  1172. package/runtime/gatewaysdk/environment/schema/transform.py +200 -0
  1173. package/runtime/gatewaysdk/environment/schema/transforms.py +103 -0
  1174. package/runtime/gatewaysdk/environment/schema/ui.py +455 -0
  1175. package/runtime/gatewaysdk/environment/schema/ui_static/app.js +581 -0
  1176. package/runtime/gatewaysdk/environment/schema/ui_static/index.html +72 -0
  1177. package/runtime/gatewaysdk/environment/schema/validation.py +63 -15
  1178. package/runtime/gatewaysdk/environment/schema/world_tests.py +245 -51
  1179. package/skills/benchmarks-getting-started/SKILL.md +394 -0
  1180. package/skills/connector-schema-authoring/CONNECTORS.md +64 -31
  1181. package/skills/connector-schema-authoring/SKILL.md +86 -36
  1182. package/skills/connector-schema-authoring/connector-worlds.md +355 -0
  1183. package/skills/connector-schema-authoring/world-schema.md +620 -0
  1184. package/skills/world-data-ingestion/ROWS.md +20 -0
  1185. package/skills/world-data-ingestion/SKILL.md +178 -11
  1186. package/skills/worlds-getting-started/SKILL.md +184 -74
  1187. package/skills/worlds-getting-started/references/cli-mcp-map.md +49 -0
  1188. 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