@mutagent/sdk 0.13.44 → 0.13.46

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 (234) hide show
  1. package/README.md +1087 -1067
  2. package/dist/commonjs/funcs/artifacts-get-artifact-version-file.d.ts +20 -0
  3. package/dist/commonjs/funcs/artifacts-get-artifact-version-file.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/artifacts-get-artifact-version-file.js +134 -0
  5. package/dist/commonjs/funcs/artifacts-get-artifact-version-file.js.map +1 -0
  6. package/dist/commonjs/funcs/artifacts-get-artifact.d.ts +2 -2
  7. package/dist/commonjs/funcs/artifacts-get-artifact.d.ts.map +1 -1
  8. package/dist/commonjs/funcs/artifacts-get-artifact.js +2 -2
  9. package/dist/commonjs/funcs/artifacts-get-artifact.js.map +1 -1
  10. package/dist/commonjs/funcs/artifacts-list-artifact-versions.d.ts +2 -2
  11. package/dist/commonjs/funcs/artifacts-list-artifact-versions.d.ts.map +1 -1
  12. package/dist/commonjs/funcs/artifacts-list-artifact-versions.js +2 -2
  13. package/dist/commonjs/funcs/artifacts-list-artifact-versions.js.map +1 -1
  14. package/dist/commonjs/funcs/artifacts-list-artifacts.d.ts +2 -2
  15. package/dist/commonjs/funcs/artifacts-list-artifacts.d.ts.map +1 -1
  16. package/dist/commonjs/funcs/artifacts-list-artifacts.js +2 -2
  17. package/dist/commonjs/funcs/artifacts-list-artifacts.js.map +1 -1
  18. package/dist/commonjs/funcs/gateway-claim-gateway-git-hub-installation.d.ts +1 -1
  19. package/dist/commonjs/funcs/gateway-claim-gateway-git-hub-installation.js +1 -1
  20. package/dist/commonjs/funcs/gateway-list-gateway-git-hub-installation-grants.d.ts +20 -0
  21. package/dist/commonjs/funcs/gateway-list-gateway-git-hub-installation-grants.d.ts.map +1 -0
  22. package/dist/commonjs/funcs/gateway-list-gateway-git-hub-installation-grants.js +127 -0
  23. package/dist/commonjs/funcs/gateway-list-gateway-git-hub-installation-grants.js.map +1 -0
  24. package/dist/commonjs/funcs/gateway-restore-gateway-git-hub-installation-grant.d.ts +20 -0
  25. package/dist/commonjs/funcs/gateway-restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
  26. package/dist/commonjs/funcs/gateway-restore-gateway-git-hub-installation-grant.js +131 -0
  27. package/dist/commonjs/funcs/gateway-restore-gateway-git-hub-installation-grant.js.map +1 -0
  28. package/dist/commonjs/funcs/gateway-revoke-gateway-git-hub-installation-grant.d.ts +20 -0
  29. package/dist/commonjs/funcs/gateway-revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
  30. package/dist/commonjs/funcs/gateway-revoke-gateway-git-hub-installation-grant.js +131 -0
  31. package/dist/commonjs/funcs/gateway-revoke-gateway-git-hub-installation-grant.js.map +1 -0
  32. package/dist/commonjs/lib/config.d.ts +2 -2
  33. package/dist/commonjs/lib/config.js +2 -2
  34. package/dist/commonjs/models/errors/get-artifact.d.ts +20 -0
  35. package/dist/commonjs/models/errors/get-artifact.d.ts.map +1 -0
  36. package/dist/commonjs/models/errors/get-artifact.js +23 -0
  37. package/dist/commonjs/models/errors/get-artifact.js.map +1 -0
  38. package/dist/commonjs/models/errors/index.d.ts +6 -0
  39. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  40. package/dist/commonjs/models/errors/index.js +6 -0
  41. package/dist/commonjs/models/errors/index.js.map +1 -1
  42. package/dist/commonjs/models/errors/list-artifact-versions.d.ts +20 -0
  43. package/dist/commonjs/models/errors/list-artifact-versions.d.ts.map +1 -0
  44. package/dist/commonjs/models/errors/list-artifact-versions.js +23 -0
  45. package/dist/commonjs/models/errors/list-artifact-versions.js.map +1 -0
  46. package/dist/commonjs/models/errors/list-artifacts.d.ts +20 -0
  47. package/dist/commonjs/models/errors/list-artifacts.d.ts.map +1 -0
  48. package/dist/commonjs/models/errors/list-artifacts.js +23 -0
  49. package/dist/commonjs/models/errors/list-artifacts.js.map +1 -0
  50. package/dist/commonjs/models/errors/list-gateway-git-hub-installation-grants.d.ts +135 -0
  51. package/dist/commonjs/models/errors/list-gateway-git-hub-installation-grants.d.ts.map +1 -0
  52. package/dist/commonjs/models/errors/list-gateway-git-hub-installation-grants.js +171 -0
  53. package/dist/commonjs/models/errors/list-gateway-git-hub-installation-grants.js.map +1 -0
  54. package/dist/commonjs/models/errors/restore-gateway-git-hub-installation-grant.d.ts +135 -0
  55. package/dist/commonjs/models/errors/restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
  56. package/dist/commonjs/models/errors/restore-gateway-git-hub-installation-grant.js +167 -0
  57. package/dist/commonjs/models/errors/restore-gateway-git-hub-installation-grant.js.map +1 -0
  58. package/dist/commonjs/models/errors/revoke-gateway-git-hub-installation-grant.d.ts +135 -0
  59. package/dist/commonjs/models/errors/revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
  60. package/dist/commonjs/models/errors/revoke-gateway-git-hub-installation-grant.js +167 -0
  61. package/dist/commonjs/models/errors/revoke-gateway-git-hub-installation-grant.js.map +1 -0
  62. package/dist/commonjs/models/operations/ask-software-factory-session.d.ts +15 -0
  63. package/dist/commonjs/models/operations/ask-software-factory-session.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/ask-software-factory-session.js +13 -1
  65. package/dist/commonjs/models/operations/ask-software-factory-session.js.map +1 -1
  66. package/dist/commonjs/models/operations/claim-gateway-git-hub-installation.d.ts +32 -0
  67. package/dist/commonjs/models/operations/claim-gateway-git-hub-installation.d.ts.map +1 -1
  68. package/dist/commonjs/models/operations/claim-gateway-git-hub-installation.js +29 -1
  69. package/dist/commonjs/models/operations/claim-gateway-git-hub-installation.js.map +1 -1
  70. package/dist/commonjs/models/operations/disconnect-gateway-integration.d.ts +18 -0
  71. package/dist/commonjs/models/operations/disconnect-gateway-integration.d.ts.map +1 -1
  72. package/dist/commonjs/models/operations/disconnect-gateway-integration.js +18 -1
  73. package/dist/commonjs/models/operations/disconnect-gateway-integration.js.map +1 -1
  74. package/dist/commonjs/models/operations/get-artifact-version-file.d.ts +25 -0
  75. package/dist/commonjs/models/operations/get-artifact-version-file.d.ts.map +1 -0
  76. package/dist/commonjs/models/operations/get-artifact-version-file.js +51 -0
  77. package/dist/commonjs/models/operations/get-artifact-version-file.js.map +1 -0
  78. package/dist/commonjs/models/operations/get-gateway-git-hub-claim.d.ts +5 -4
  79. package/dist/commonjs/models/operations/get-gateway-git-hub-claim.d.ts.map +1 -1
  80. package/dist/commonjs/models/operations/get-gateway-git-hub-claim.js +2 -1
  81. package/dist/commonjs/models/operations/get-gateway-git-hub-claim.js.map +1 -1
  82. package/dist/commonjs/models/operations/get-gateway-integration-attempt.d.ts +18 -0
  83. package/dist/commonjs/models/operations/get-gateway-integration-attempt.d.ts.map +1 -1
  84. package/dist/commonjs/models/operations/get-gateway-integration-attempt.js +18 -1
  85. package/dist/commonjs/models/operations/get-gateway-integration-attempt.js.map +1 -1
  86. package/dist/commonjs/models/operations/index.d.ts +4 -0
  87. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  88. package/dist/commonjs/models/operations/index.js +4 -0
  89. package/dist/commonjs/models/operations/index.js.map +1 -1
  90. package/dist/commonjs/models/operations/list-gateway-git-hub-installation-grants.d.ts +57 -0
  91. package/dist/commonjs/models/operations/list-gateway-git-hub-installation-grants.d.ts.map +1 -0
  92. package/dist/commonjs/models/operations/list-gateway-git-hub-installation-grants.js +81 -0
  93. package/dist/commonjs/models/operations/list-gateway-git-hub-installation-grants.js.map +1 -0
  94. package/dist/commonjs/models/operations/list-gateway-integrations.d.ts +18 -0
  95. package/dist/commonjs/models/operations/list-gateway-integrations.d.ts.map +1 -1
  96. package/dist/commonjs/models/operations/list-gateway-integrations.js +18 -1
  97. package/dist/commonjs/models/operations/list-gateway-integrations.js.map +1 -1
  98. package/dist/commonjs/models/operations/restore-gateway-git-hub-installation-grant.d.ts +31 -0
  99. package/dist/commonjs/models/operations/restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
  100. package/dist/commonjs/models/operations/restore-gateway-git-hub-installation-grant.js +68 -0
  101. package/dist/commonjs/models/operations/restore-gateway-git-hub-installation-grant.js.map +1 -0
  102. package/dist/commonjs/models/operations/revoke-gateway-git-hub-installation-grant.d.ts +31 -0
  103. package/dist/commonjs/models/operations/revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
  104. package/dist/commonjs/models/operations/revoke-gateway-git-hub-installation-grant.js +68 -0
  105. package/dist/commonjs/models/operations/revoke-gateway-git-hub-installation-grant.js.map +1 -0
  106. package/dist/commonjs/models/operations/use-gateway-git-hub-org-installation.d.ts +18 -0
  107. package/dist/commonjs/models/operations/use-gateway-git-hub-org-installation.d.ts.map +1 -1
  108. package/dist/commonjs/models/operations/use-gateway-git-hub-org-installation.js +18 -1
  109. package/dist/commonjs/models/operations/use-gateway-git-hub-org-installation.js.map +1 -1
  110. package/dist/commonjs/sdk/artifacts.d.ts +10 -3
  111. package/dist/commonjs/sdk/artifacts.d.ts.map +1 -1
  112. package/dist/commonjs/sdk/artifacts.js +13 -3
  113. package/dist/commonjs/sdk/artifacts.js.map +1 -1
  114. package/dist/commonjs/sdk/gateway.d.ts +22 -1
  115. package/dist/commonjs/sdk/gateway.d.ts.map +1 -1
  116. package/dist/commonjs/sdk/gateway.js +31 -1
  117. package/dist/commonjs/sdk/gateway.js.map +1 -1
  118. package/dist/esm/funcs/artifacts-get-artifact-version-file.d.ts +20 -0
  119. package/dist/esm/funcs/artifacts-get-artifact-version-file.d.ts.map +1 -0
  120. package/dist/esm/funcs/artifacts-get-artifact-version-file.js +98 -0
  121. package/dist/esm/funcs/artifacts-get-artifact-version-file.js.map +1 -0
  122. package/dist/esm/funcs/artifacts-get-artifact.d.ts +2 -2
  123. package/dist/esm/funcs/artifacts-get-artifact.d.ts.map +1 -1
  124. package/dist/esm/funcs/artifacts-get-artifact.js +2 -2
  125. package/dist/esm/funcs/artifacts-get-artifact.js.map +1 -1
  126. package/dist/esm/funcs/artifacts-list-artifact-versions.d.ts +2 -2
  127. package/dist/esm/funcs/artifacts-list-artifact-versions.d.ts.map +1 -1
  128. package/dist/esm/funcs/artifacts-list-artifact-versions.js +2 -2
  129. package/dist/esm/funcs/artifacts-list-artifact-versions.js.map +1 -1
  130. package/dist/esm/funcs/artifacts-list-artifacts.d.ts +2 -2
  131. package/dist/esm/funcs/artifacts-list-artifacts.d.ts.map +1 -1
  132. package/dist/esm/funcs/artifacts-list-artifacts.js +2 -2
  133. package/dist/esm/funcs/artifacts-list-artifacts.js.map +1 -1
  134. package/dist/esm/funcs/gateway-claim-gateway-git-hub-installation.d.ts +1 -1
  135. package/dist/esm/funcs/gateway-claim-gateway-git-hub-installation.js +1 -1
  136. package/dist/esm/funcs/gateway-list-gateway-git-hub-installation-grants.d.ts +20 -0
  137. package/dist/esm/funcs/gateway-list-gateway-git-hub-installation-grants.d.ts.map +1 -0
  138. package/dist/esm/funcs/gateway-list-gateway-git-hub-installation-grants.js +91 -0
  139. package/dist/esm/funcs/gateway-list-gateway-git-hub-installation-grants.js.map +1 -0
  140. package/dist/esm/funcs/gateway-restore-gateway-git-hub-installation-grant.d.ts +20 -0
  141. package/dist/esm/funcs/gateway-restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
  142. package/dist/esm/funcs/gateway-restore-gateway-git-hub-installation-grant.js +95 -0
  143. package/dist/esm/funcs/gateway-restore-gateway-git-hub-installation-grant.js.map +1 -0
  144. package/dist/esm/funcs/gateway-revoke-gateway-git-hub-installation-grant.d.ts +20 -0
  145. package/dist/esm/funcs/gateway-revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
  146. package/dist/esm/funcs/gateway-revoke-gateway-git-hub-installation-grant.js +95 -0
  147. package/dist/esm/funcs/gateway-revoke-gateway-git-hub-installation-grant.js.map +1 -0
  148. package/dist/esm/lib/config.d.ts +2 -2
  149. package/dist/esm/lib/config.js +2 -2
  150. package/dist/esm/models/errors/get-artifact.d.ts +20 -0
  151. package/dist/esm/models/errors/get-artifact.d.ts.map +1 -0
  152. package/dist/esm/models/errors/get-artifact.js +18 -0
  153. package/dist/esm/models/errors/get-artifact.js.map +1 -0
  154. package/dist/esm/models/errors/index.d.ts +6 -0
  155. package/dist/esm/models/errors/index.d.ts.map +1 -1
  156. package/dist/esm/models/errors/index.js +6 -0
  157. package/dist/esm/models/errors/index.js.map +1 -1
  158. package/dist/esm/models/errors/list-artifact-versions.d.ts +20 -0
  159. package/dist/esm/models/errors/list-artifact-versions.d.ts.map +1 -0
  160. package/dist/esm/models/errors/list-artifact-versions.js +18 -0
  161. package/dist/esm/models/errors/list-artifact-versions.js.map +1 -0
  162. package/dist/esm/models/errors/list-artifacts.d.ts +20 -0
  163. package/dist/esm/models/errors/list-artifacts.d.ts.map +1 -0
  164. package/dist/esm/models/errors/list-artifacts.js +18 -0
  165. package/dist/esm/models/errors/list-artifacts.js.map +1 -0
  166. package/dist/esm/models/errors/list-gateway-git-hub-installation-grants.d.ts +135 -0
  167. package/dist/esm/models/errors/list-gateway-git-hub-installation-grants.d.ts.map +1 -0
  168. package/dist/esm/models/errors/list-gateway-git-hub-installation-grants.js +130 -0
  169. package/dist/esm/models/errors/list-gateway-git-hub-installation-grants.js.map +1 -0
  170. package/dist/esm/models/errors/restore-gateway-git-hub-installation-grant.d.ts +135 -0
  171. package/dist/esm/models/errors/restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
  172. package/dist/esm/models/errors/restore-gateway-git-hub-installation-grant.js +126 -0
  173. package/dist/esm/models/errors/restore-gateway-git-hub-installation-grant.js.map +1 -0
  174. package/dist/esm/models/errors/revoke-gateway-git-hub-installation-grant.d.ts +135 -0
  175. package/dist/esm/models/errors/revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
  176. package/dist/esm/models/errors/revoke-gateway-git-hub-installation-grant.js +126 -0
  177. package/dist/esm/models/errors/revoke-gateway-git-hub-installation-grant.js.map +1 -0
  178. package/dist/esm/models/operations/ask-software-factory-session.d.ts +15 -0
  179. package/dist/esm/models/operations/ask-software-factory-session.d.ts.map +1 -1
  180. package/dist/esm/models/operations/ask-software-factory-session.js +12 -0
  181. package/dist/esm/models/operations/ask-software-factory-session.js.map +1 -1
  182. package/dist/esm/models/operations/claim-gateway-git-hub-installation.d.ts +32 -0
  183. package/dist/esm/models/operations/claim-gateway-git-hub-installation.d.ts.map +1 -1
  184. package/dist/esm/models/operations/claim-gateway-git-hub-installation.js +27 -0
  185. package/dist/esm/models/operations/claim-gateway-git-hub-installation.js.map +1 -1
  186. package/dist/esm/models/operations/disconnect-gateway-integration.d.ts +18 -0
  187. package/dist/esm/models/operations/disconnect-gateway-integration.d.ts.map +1 -1
  188. package/dist/esm/models/operations/disconnect-gateway-integration.js +16 -0
  189. package/dist/esm/models/operations/disconnect-gateway-integration.js.map +1 -1
  190. package/dist/esm/models/operations/get-artifact-version-file.d.ts +25 -0
  191. package/dist/esm/models/operations/get-artifact-version-file.d.ts.map +1 -0
  192. package/dist/esm/models/operations/get-artifact-version-file.js +14 -0
  193. package/dist/esm/models/operations/get-artifact-version-file.js.map +1 -0
  194. package/dist/esm/models/operations/get-gateway-git-hub-claim.d.ts +5 -4
  195. package/dist/esm/models/operations/get-gateway-git-hub-claim.d.ts.map +1 -1
  196. package/dist/esm/models/operations/get-gateway-git-hub-claim.js +2 -1
  197. package/dist/esm/models/operations/get-gateway-git-hub-claim.js.map +1 -1
  198. package/dist/esm/models/operations/get-gateway-integration-attempt.d.ts +18 -0
  199. package/dist/esm/models/operations/get-gateway-integration-attempt.d.ts.map +1 -1
  200. package/dist/esm/models/operations/get-gateway-integration-attempt.js +16 -0
  201. package/dist/esm/models/operations/get-gateway-integration-attempt.js.map +1 -1
  202. package/dist/esm/models/operations/index.d.ts +4 -0
  203. package/dist/esm/models/operations/index.d.ts.map +1 -1
  204. package/dist/esm/models/operations/index.js +4 -0
  205. package/dist/esm/models/operations/index.js.map +1 -1
  206. package/dist/esm/models/operations/list-gateway-git-hub-installation-grants.d.ts +57 -0
  207. package/dist/esm/models/operations/list-gateway-git-hub-installation-grants.d.ts.map +1 -0
  208. package/dist/esm/models/operations/list-gateway-git-hub-installation-grants.js +42 -0
  209. package/dist/esm/models/operations/list-gateway-git-hub-installation-grants.js.map +1 -0
  210. package/dist/esm/models/operations/list-gateway-integrations.d.ts +18 -0
  211. package/dist/esm/models/operations/list-gateway-integrations.d.ts.map +1 -1
  212. package/dist/esm/models/operations/list-gateway-integrations.js +16 -0
  213. package/dist/esm/models/operations/list-gateway-integrations.js.map +1 -1
  214. package/dist/esm/models/operations/restore-gateway-git-hub-installation-grant.d.ts +31 -0
  215. package/dist/esm/models/operations/restore-gateway-git-hub-installation-grant.d.ts.map +1 -0
  216. package/dist/esm/models/operations/restore-gateway-git-hub-installation-grant.js +30 -0
  217. package/dist/esm/models/operations/restore-gateway-git-hub-installation-grant.js.map +1 -0
  218. package/dist/esm/models/operations/revoke-gateway-git-hub-installation-grant.d.ts +31 -0
  219. package/dist/esm/models/operations/revoke-gateway-git-hub-installation-grant.d.ts.map +1 -0
  220. package/dist/esm/models/operations/revoke-gateway-git-hub-installation-grant.js +30 -0
  221. package/dist/esm/models/operations/revoke-gateway-git-hub-installation-grant.js.map +1 -0
  222. package/dist/esm/models/operations/use-gateway-git-hub-org-installation.d.ts +18 -0
  223. package/dist/esm/models/operations/use-gateway-git-hub-org-installation.d.ts.map +1 -1
  224. package/dist/esm/models/operations/use-gateway-git-hub-org-installation.js +16 -0
  225. package/dist/esm/models/operations/use-gateway-git-hub-org-installation.js.map +1 -1
  226. package/dist/esm/sdk/artifacts.d.ts +10 -3
  227. package/dist/esm/sdk/artifacts.d.ts.map +1 -1
  228. package/dist/esm/sdk/artifacts.js +13 -3
  229. package/dist/esm/sdk/artifacts.js.map +1 -1
  230. package/dist/esm/sdk/gateway.d.ts +22 -1
  231. package/dist/esm/sdk/gateway.d.ts.map +1 -1
  232. package/dist/esm/sdk/gateway.js +31 -1
  233. package/dist/esm/sdk/gateway.js.map +1 -1
  234. package/package.json +1 -1
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
17
17
  * List an artifact's versions
18
18
  *
19
19
  * @remarks
20
- * Newest first, with who published each and whether it was a rollback.
20
+ * Newest first, with who published each and whether it was a rollback. Also takes a sandbox’s own task token (Bearer) with artifacts:read, as GET /artifacts/{id}.
21
21
  *
22
22
  * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
23
23
  */
@@ -82,7 +82,7 @@ async function $do(client, request, options) {
82
82
  const responseFields = {
83
83
  HttpMeta: { Response: response, Request: req },
84
84
  };
85
- const [result] = await M.match(M.json(200, models.ArtifactVersionList$inboundSchema), M.jsonErr(404, errors.ArtifactsError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
85
+ const [result] = await M.match(M.json(200, models.ArtifactVersionList$inboundSchema), M.jsonErr(401, errors.ListArtifactVersionsUnauthorized$inboundSchema), M.jsonErr(403, errors.ListArtifactVersionsForbidden$inboundSchema), M.jsonErr(404, errors.ArtifactsError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
86
86
  if (!result.ok) {
87
87
  return [result, { status: "complete", request: req, response }];
88
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts-list-artifact-versions.js","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifact-versions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,M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8CAA8C,CAAC,EACrE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2CAA2C,CAAC,EAClE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,4BAA4B,CAAC,EACnD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -13,9 +13,9 @@ import { Result } from "../types/fp.js";
13
13
  * List artifacts
14
14
  *
15
15
  * @remarks
16
- * Most recently updated first (order=asc: oldest first). scope=mine (yours in this workspace), workspace (the default: what you can open in this workspace), shared (artifacts you are named on, from any workspace). With groupBy=session each page answers `groups` by harness session instead of `items`. session=<id> keeps one session’s artifacts (the harness’s own id or the hs1_ reference), inside the chosen scope. search=<text> keeps artifacts whose title contains it (case-insensitive), owner=me|<user id> one owner’s; both narrow the scope, and paging walks the matches only. Pass nextCursor as ?cursor to continue, with the same filters and order. 400 INVALID_FILTER for an unknown scope, groupBy or order.
16
+ * Most recently updated first (order=asc: oldest first). scope=mine (yours in this workspace), workspace (the default: what you can open in this workspace), shared (artifacts you are named on, from any workspace). With groupBy=session each page answers `groups` by harness session instead of `items`. session=<id> keeps one session’s artifacts (the harness’s own id or the hs1_ reference), inside the chosen scope. search=<text> keeps artifacts whose title contains it (case-insensitive), owner=me|<user id> one owner’s; both narrow the scope, and paging walks the matches only. Pass nextCursor as ?cursor to continue, with the same filters and order. 400 INVALID_FILTER for an unknown scope, groupBy or order. Also takes a sandbox’s own task token (Bearer) with artifacts:read: the workspace is the token’s, and it lists what is open to that workspace plus what its own session published (scope=mine: only those; shared: none). An expired token is 401, one without the scope 403 SANDBOX_SCOPE.
17
17
  *
18
18
  * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
19
19
  */
20
- export declare function artifactsListArtifacts(client: MutagentCore, request?: operations.ListArtifactsRequest | undefined, options?: RequestOptions): APIPromise<Result<models.ArtifactList, errors.ArtifactsError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
20
+ export declare function artifactsListArtifacts(client: MutagentCore, request?: operations.ListArtifactsRequest | undefined, options?: RequestOptions): APIPromise<Result<models.ArtifactList, errors.ArtifactsError | errors.ListArtifactsUnauthorized | errors.ListArtifactsForbidden | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
21
21
  //# sourceMappingURL=artifacts-list-artifacts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts-list-artifacts.d.ts","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifacts.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,UAAU,CAAC,oBAAoB,GAAG,SAAS,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,YAAY,EACjB,MAAM,CAAC,cAAc,GACrB,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
1
+ {"version":3,"file":"artifacts-list-artifacts.d.ts","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifacts.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,UAAU,CAAC,oBAAoB,GAAG,SAAS,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,YAAY,EACjB,MAAM,CAAC,cAAc,GACrB,MAAM,CAAC,yBAAyB,GAChC,MAAM,CAAC,sBAAsB,GAC7B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
17
17
  * List artifacts
18
18
  *
19
19
  * @remarks
20
- * Most recently updated first (order=asc: oldest first). scope=mine (yours in this workspace), workspace (the default: what you can open in this workspace), shared (artifacts you are named on, from any workspace). With groupBy=session each page answers `groups` by harness session instead of `items`. session=<id> keeps one session’s artifacts (the harness’s own id or the hs1_ reference), inside the chosen scope. search=<text> keeps artifacts whose title contains it (case-insensitive), owner=me|<user id> one owner’s; both narrow the scope, and paging walks the matches only. Pass nextCursor as ?cursor to continue, with the same filters and order. 400 INVALID_FILTER for an unknown scope, groupBy or order.
20
+ * Most recently updated first (order=asc: oldest first). scope=mine (yours in this workspace), workspace (the default: what you can open in this workspace), shared (artifacts you are named on, from any workspace). With groupBy=session each page answers `groups` by harness session instead of `items`. session=<id> keeps one session’s artifacts (the harness’s own id or the hs1_ reference), inside the chosen scope. search=<text> keeps artifacts whose title contains it (case-insensitive), owner=me|<user id> one owner’s; both narrow the scope, and paging walks the matches only. Pass nextCursor as ?cursor to continue, with the same filters and order. 400 INVALID_FILTER for an unknown scope, groupBy or order. Also takes a sandbox’s own task token (Bearer) with artifacts:read: the workspace is the token’s, and it lists what is open to that workspace plus what its own session published (scope=mine: only those; shared: none). An expired token is 401, one without the scope 403 SANDBOX_SCOPE.
21
21
  *
22
22
  * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
23
23
  */
@@ -87,7 +87,7 @@ async function $do(client, request, options) {
87
87
  const responseFields = {
88
88
  HttpMeta: { Response: response, Request: req },
89
89
  };
90
- const [result] = await M.match(M.json(200, models.ArtifactList$inboundSchema), M.jsonErr(400, errors.ArtifactsError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
90
+ const [result] = await M.match(M.json(200, models.ArtifactList$inboundSchema), M.jsonErr(400, errors.ArtifactsError$inboundSchema), M.jsonErr(401, errors.ListArtifactsUnauthorized$inboundSchema), M.jsonErr(403, errors.ListArtifactsForbidden$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
91
91
  if (!result.ok) {
92
92
  return [result, { status: "complete", request: req, response }];
93
93
  }
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts-list-artifacts.js","sourceRoot":"","sources":["../../../src/funcs/artifacts-list-artifacts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB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C,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAc5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,0BAA0B,CAAC,EAC9C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,4BAA4B,CAAC,EACnD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,uCAAuC,CAAC,EAC9D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,oCAAoC,CAAC,EAC3D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Claim an existing GitHub installation for this organization and workspace
13
13
  *
14
14
  * @remarks
15
- * One of the claim’s candidates, by the user who authorized it, once. Needs resources:create (a viewer: 403). 403 installation_not_authorized (the authorizing GitHub user cannot access it) or installation_not_admin (they do not control the account: not its personal owner, not an active org admin, or the org has not approved the App's Members: read permission); 404 claim_not_found / installation_not_found; 409 claim_not_ready, installation_suspended, or installation_owned_elsewhere (connected to a different MutagenT organization, never named); 503 provider_unavailable or integration_unconfigured. Then link repositories with POST /api/gateway/repositories/link.
15
+ * One of the claim’s candidates, by the user who authorized it, once. Needs resources:create (a viewer: 403). 403 installation_not_authorized (the authorizing GitHub user cannot access it) or installation_not_admin (they do not control the account: not its personal owner, not an active org admin, or the org has not approved the App's Members: read permission); 404 claim_not_found / installation_not_found; 409 claim_not_ready, installation_suspended, or installation_owned_elsewhere (connected to a different MutagenT organization, never named; join it with mode 'join' when you are an active member of its GitHub organization: 403 installation_not_member otherwise, 403 installation_grant_revoked when that organization revoked yours: only it can restore it); 503 provider_unavailable or integration_unconfigured. Then link repositories with POST /api/gateway/repositories/link.
16
16
  *
17
17
  * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
18
18
  */
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Claim an existing GitHub installation for this organization and workspace
17
17
  *
18
18
  * @remarks
19
- * One of the claim’s candidates, by the user who authorized it, once. Needs resources:create (a viewer: 403). 403 installation_not_authorized (the authorizing GitHub user cannot access it) or installation_not_admin (they do not control the account: not its personal owner, not an active org admin, or the org has not approved the App's Members: read permission); 404 claim_not_found / installation_not_found; 409 claim_not_ready, installation_suspended, or installation_owned_elsewhere (connected to a different MutagenT organization, never named); 503 provider_unavailable or integration_unconfigured. Then link repositories with POST /api/gateway/repositories/link.
19
+ * One of the claim’s candidates, by the user who authorized it, once. Needs resources:create (a viewer: 403). 403 installation_not_authorized (the authorizing GitHub user cannot access it) or installation_not_admin (they do not control the account: not its personal owner, not an active org admin, or the org has not approved the App's Members: read permission); 404 claim_not_found / installation_not_found; 409 claim_not_ready, installation_suspended, or installation_owned_elsewhere (connected to a different MutagenT organization, never named; join it with mode 'join' when you are an active member of its GitHub organization: 403 installation_not_member otherwise, 403 installation_grant_revoked when that organization revoked yours: only it can restore it); 503 provider_unavailable or integration_unconfigured. Then link repositories with POST /api/gateway/repositories/link.
20
20
  *
21
21
  * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
22
22
  */
@@ -0,0 +1,20 @@
1
+ import { MutagentCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { MutagentError } from "../models/errors/mutagent-error.js";
6
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
7
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * List the organizations that joined this GitHub installation (owner view)
13
+ *
14
+ * @remarks
15
+ * For the organization that holds the installation (its admins and owners): each grant another MutagenT organization holds through a verified member of the GitHub organization: grantId, githubLogin, organizationName, joinedAt, status and membershipLapsedAt (a flag the daily re-check sets; never enforced). Nothing else of the joining organization. Another organization: 404; a member who is not an admin: 403.
16
+ *
17
+ * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
18
+ */
19
+ export declare function gatewayListGatewayGitHubInstallationGrants(client: MutagentCore, request: operations.ListGatewayGitHubInstallationGrantsRequest, options?: RequestOptions): APIPromise<Result<operations.ListGatewayGitHubInstallationGrantsResponse, errors.ListGatewayGitHubInstallationGrantsForbidden | errors.ListGatewayGitHubInstallationGrantsNotFoundError | errors.ListGatewayGitHubInstallationGrantsServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
20
+ //# sourceMappingURL=gateway-list-gateway-git-hub-installation-grants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway-list-gateway-git-hub-installation-grants.d.ts","sourceRoot":"","sources":["../../../src/funcs/gateway-list-gateway-git-hub-installation-grants.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,0CAA0C,CACxD,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,0CAA0C,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,2CAA2C,EACpD,MAAM,CAAC,4CAA4C,GACnD,MAAM,CAAC,gDAAgD,GACvD,MAAM,CAAC,0DAA0D,GACjE,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,91 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { encodeSimple } from "../lib/encodings.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as errors from "../models/errors/index.js";
13
+ import * as operations from "../models/operations/index.js";
14
+ import { APIPromise } from "../types/async.js";
15
+ /**
16
+ * List the organizations that joined this GitHub installation (owner view)
17
+ *
18
+ * @remarks
19
+ * For the organization that holds the installation (its admins and owners): each grant another MutagenT organization holds through a verified member of the GitHub organization: grantId, githubLogin, organizationName, joinedAt, status and membershipLapsedAt (a flag the daily re-check sets; never enforced). Nothing else of the joining organization. Another organization: 404; a member who is not an admin: 403.
20
+ *
21
+ * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
22
+ */
23
+ export function gatewayListGatewayGitHubInstallationGrants(client, request, options) {
24
+ return new APIPromise($do(client, request, options));
25
+ }
26
+ async function $do(client, request, options) {
27
+ const parsed = safeParse(request, (value) => z.parse(operations.ListGatewayGitHubInstallationGrantsRequest$outboundSchema, value), "Input validation failed");
28
+ if (!parsed.ok) {
29
+ return [parsed, { status: "invalid" }];
30
+ }
31
+ const payload = parsed.value;
32
+ const body = null;
33
+ const pathParams = {
34
+ installationId: encodeSimple("installationId", payload.installationId, {
35
+ explode: false,
36
+ charEncoding: "percent",
37
+ }),
38
+ };
39
+ const path = pathToFunc("/api/gateway/integrations/github/installations/{installationId}/grants")(pathParams);
40
+ const headers = new Headers(compactMap({
41
+ Accept: "application/json",
42
+ }));
43
+ const securityInput = await extractSecurity(client._options.security);
44
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0, 1]);
45
+ const context = {
46
+ options: client._options,
47
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
48
+ operationID: "listGatewayGitHubInstallationGrants",
49
+ oAuth2Scopes: null,
50
+ resolvedSecurity: requestSecurity,
51
+ securitySource: client._options.security,
52
+ retryConfig: options?.retries
53
+ || client._options.retryConfig
54
+ || { strategy: "none" },
55
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
56
+ };
57
+ const requestRes = client._createRequest(context, {
58
+ security: requestSecurity,
59
+ method: "GET",
60
+ baseURL: options?.serverURL,
61
+ path: path,
62
+ headers: headers,
63
+ body: body,
64
+ userAgent: client._options.userAgent,
65
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
66
+ }, options);
67
+ if (!requestRes.ok) {
68
+ return [requestRes, { status: "invalid" }];
69
+ }
70
+ const req = requestRes.value;
71
+ const doResult = await client._do(req, {
72
+ context,
73
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
74
+ retryConfig: context.retryConfig,
75
+ retryCodes: context.retryCodes,
76
+ });
77
+ if (!doResult.ok) {
78
+ return [doResult, { status: "request-error", request: req }];
79
+ }
80
+ const response = doResult.value;
81
+ const responseFields = {
82
+ HttpMeta: { Response: response, Request: req },
83
+ };
84
+ const [result] = await M.match(M.json(200, operations.ListGatewayGitHubInstallationGrantsResponse$inboundSchema), M.jsonErr(403, errors.ListGatewayGitHubInstallationGrantsForbidden$inboundSchema), M.jsonErr(404, errors.ListGatewayGitHubInstallationGrantsNotFoundError$inboundSchema), M.jsonErr(503, errors
85
+ .ListGatewayGitHubInstallationGrantsServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
86
+ if (!result.ok) {
87
+ return [result, { status: "complete", request: req, response }];
88
+ }
89
+ return [result, { status: "complete", request: req, response }];
90
+ }
91
+ //# sourceMappingURL=gateway-list-gateway-git-hub-installation-grants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway-list-gateway-git-hub-installation-grants.js","sourceRoot":"","sources":["../../../src/funcs/gateway-list-gateway-git-hub-installation-grants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAA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f,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { MutagentCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { MutagentError } from "../models/errors/mutagent-error.js";
6
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
7
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Restore another organization's revoked grant on this GitHub installation
13
+ *
14
+ * @remarks
15
+ * The custodian organization’s admins and owners lift a revoke: the grant is active again with its last verified member and repository cap, and the joining organization's links that the revoke ended connect again. A grant that is not revoked: 404 grant_not_found. Another organization: 404; a member who is not an admin: 403.
16
+ *
17
+ * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
18
+ */
19
+ export declare function gatewayRestoreGatewayGitHubInstallationGrant(client: MutagentCore, request: operations.RestoreGatewayGitHubInstallationGrantRequest, options?: RequestOptions): APIPromise<Result<operations.RestoreGatewayGitHubInstallationGrantResponse, errors.RestoreGatewayGitHubInstallationGrantForbidden | errors.RestoreGatewayGitHubInstallationGrantNotFoundError | errors.RestoreGatewayGitHubInstallationGrantServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
20
+ //# sourceMappingURL=gateway-restore-gateway-git-hub-installation-grant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway-restore-gateway-git-hub-installation-grant.d.ts","sourceRoot":"","sources":["../../../src/funcs/gateway-restore-gateway-git-hub-installation-grant.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,4CAA4C,CAC1D,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,4CAA4C,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,6CAA6C,EACtD,MAAM,CAAC,8CAA8C,GACrD,MAAM,CAAC,kDAAkD,GACzD,MAAM,CAAC,4DAA4D,GACnE,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,95 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { encodeSimple } from "../lib/encodings.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as errors from "../models/errors/index.js";
13
+ import * as operations from "../models/operations/index.js";
14
+ import { APIPromise } from "../types/async.js";
15
+ /**
16
+ * Restore another organization's revoked grant on this GitHub installation
17
+ *
18
+ * @remarks
19
+ * The custodian organization’s admins and owners lift a revoke: the grant is active again with its last verified member and repository cap, and the joining organization's links that the revoke ended connect again. A grant that is not revoked: 404 grant_not_found. Another organization: 404; a member who is not an admin: 403.
20
+ *
21
+ * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
22
+ */
23
+ export function gatewayRestoreGatewayGitHubInstallationGrant(client, request, options) {
24
+ return new APIPromise($do(client, request, options));
25
+ }
26
+ async function $do(client, request, options) {
27
+ const parsed = safeParse(request, (value) => z.parse(operations.RestoreGatewayGitHubInstallationGrantRequest$outboundSchema, value), "Input validation failed");
28
+ if (!parsed.ok) {
29
+ return [parsed, { status: "invalid" }];
30
+ }
31
+ const payload = parsed.value;
32
+ const body = null;
33
+ const pathParams = {
34
+ grantId: encodeSimple("grantId", payload.grantId, {
35
+ explode: false,
36
+ charEncoding: "percent",
37
+ }),
38
+ installationId: encodeSimple("installationId", payload.installationId, {
39
+ explode: false,
40
+ charEncoding: "percent",
41
+ }),
42
+ };
43
+ const path = pathToFunc("/api/gateway/integrations/github/installations/{installationId}/grants/{grantId}/restore")(pathParams);
44
+ const headers = new Headers(compactMap({
45
+ Accept: "application/json",
46
+ }));
47
+ const securityInput = await extractSecurity(client._options.security);
48
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0, 1]);
49
+ const context = {
50
+ options: client._options,
51
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
52
+ operationID: "restoreGatewayGitHubInstallationGrant",
53
+ oAuth2Scopes: null,
54
+ resolvedSecurity: requestSecurity,
55
+ securitySource: client._options.security,
56
+ retryConfig: options?.retries
57
+ || client._options.retryConfig
58
+ || { strategy: "none" },
59
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
60
+ };
61
+ const requestRes = client._createRequest(context, {
62
+ security: requestSecurity,
63
+ method: "POST",
64
+ baseURL: options?.serverURL,
65
+ path: path,
66
+ headers: headers,
67
+ body: body,
68
+ userAgent: client._options.userAgent,
69
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
70
+ }, options);
71
+ if (!requestRes.ok) {
72
+ return [requestRes, { status: "invalid" }];
73
+ }
74
+ const req = requestRes.value;
75
+ const doResult = await client._do(req, {
76
+ context,
77
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
78
+ retryConfig: context.retryConfig,
79
+ retryCodes: context.retryCodes,
80
+ });
81
+ if (!doResult.ok) {
82
+ return [doResult, { status: "request-error", request: req }];
83
+ }
84
+ const response = doResult.value;
85
+ const responseFields = {
86
+ HttpMeta: { Response: response, Request: req },
87
+ };
88
+ const [result] = await M.match(M.json(200, operations.RestoreGatewayGitHubInstallationGrantResponse$inboundSchema), M.jsonErr(403, errors.RestoreGatewayGitHubInstallationGrantForbidden$inboundSchema), M.jsonErr(404, errors.RestoreGatewayGitHubInstallationGrantNotFoundError$inboundSchema), M.jsonErr(503, errors
89
+ .RestoreGatewayGitHubInstallationGrantServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
90
+ if (!result.ok) {
91
+ return [result, { status: "complete", request: req, response }];
92
+ }
93
+ return [result, { status: "complete", request: req, response }];
94
+ }
95
+ //# sourceMappingURL=gateway-restore-gateway-git-hub-installation-grant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway-restore-gateway-git-hub-installation-grant.js","sourceRoot":"","sources":["../../../src/funcs/gateway-restore-gateway-git-hub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AAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,4DAA4D,CACpE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,gEAAgE,CACxE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM;SACH,0EAA0E,CAC9E,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { MutagentCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { MutagentError } from "../models/errors/mutagent-error.js";
6
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
7
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Revoke another organization's grant on this GitHub installation
13
+ *
14
+ * @remarks
15
+ * The custodian organization’s admins and owners: the grant goes revoked and the joining organization's workspaces read needs-reauth (installation_grant_ended). The revoke is sticky: that organization cannot join again until this organization restores it (POST …/restore). Another organization: 404; a member who is not an admin: 403.
16
+ *
17
+ * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
18
+ */
19
+ export declare function gatewayRevokeGatewayGitHubInstallationGrant(client: MutagentCore, request: operations.RevokeGatewayGitHubInstallationGrantRequest, options?: RequestOptions): APIPromise<Result<operations.RevokeGatewayGitHubInstallationGrantResponse, errors.RevokeGatewayGitHubInstallationGrantForbidden | errors.RevokeGatewayGitHubInstallationGrantNotFoundError | errors.RevokeGatewayGitHubInstallationGrantServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
20
+ //# sourceMappingURL=gateway-revoke-gateway-git-hub-installation-grant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway-revoke-gateway-git-hub-installation-grant.d.ts","sourceRoot":"","sources":["../../../src/funcs/gateway-revoke-gateway-git-hub-installation-grant.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,2CAA2C,CACzD,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,4CAA4C,EACrD,MAAM,CAAC,6CAA6C,GACpD,MAAM,CAAC,iDAAiD,GACxD,MAAM,CAAC,2DAA2D,GAClE,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,95 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { encodeSimple } from "../lib/encodings.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as errors from "../models/errors/index.js";
13
+ import * as operations from "../models/operations/index.js";
14
+ import { APIPromise } from "../types/async.js";
15
+ /**
16
+ * Revoke another organization's grant on this GitHub installation
17
+ *
18
+ * @remarks
19
+ * The custodian organization’s admins and owners: the grant goes revoked and the joining organization's workspaces read needs-reauth (installation_grant_ended). The revoke is sticky: that organization cannot join again until this organization restores it (POST …/restore). Another organization: 404; a member who is not an admin: 403.
20
+ *
21
+ * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
22
+ */
23
+ export function gatewayRevokeGatewayGitHubInstallationGrant(client, request, options) {
24
+ return new APIPromise($do(client, request, options));
25
+ }
26
+ async function $do(client, request, options) {
27
+ const parsed = safeParse(request, (value) => z.parse(operations.RevokeGatewayGitHubInstallationGrantRequest$outboundSchema, value), "Input validation failed");
28
+ if (!parsed.ok) {
29
+ return [parsed, { status: "invalid" }];
30
+ }
31
+ const payload = parsed.value;
32
+ const body = null;
33
+ const pathParams = {
34
+ grantId: encodeSimple("grantId", payload.grantId, {
35
+ explode: false,
36
+ charEncoding: "percent",
37
+ }),
38
+ installationId: encodeSimple("installationId", payload.installationId, {
39
+ explode: false,
40
+ charEncoding: "percent",
41
+ }),
42
+ };
43
+ const path = pathToFunc("/api/gateway/integrations/github/installations/{installationId}/grants/{grantId}")(pathParams);
44
+ const headers = new Headers(compactMap({
45
+ Accept: "application/json",
46
+ }));
47
+ const securityInput = await extractSecurity(client._options.security);
48
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0, 1]);
49
+ const context = {
50
+ options: client._options,
51
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
52
+ operationID: "revokeGatewayGitHubInstallationGrant",
53
+ oAuth2Scopes: null,
54
+ resolvedSecurity: requestSecurity,
55
+ securitySource: client._options.security,
56
+ retryConfig: options?.retries
57
+ || client._options.retryConfig
58
+ || { strategy: "none" },
59
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
60
+ };
61
+ const requestRes = client._createRequest(context, {
62
+ security: requestSecurity,
63
+ method: "DELETE",
64
+ baseURL: options?.serverURL,
65
+ path: path,
66
+ headers: headers,
67
+ body: body,
68
+ userAgent: client._options.userAgent,
69
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
70
+ }, options);
71
+ if (!requestRes.ok) {
72
+ return [requestRes, { status: "invalid" }];
73
+ }
74
+ const req = requestRes.value;
75
+ const doResult = await client._do(req, {
76
+ context,
77
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
78
+ retryConfig: context.retryConfig,
79
+ retryCodes: context.retryCodes,
80
+ });
81
+ if (!doResult.ok) {
82
+ return [doResult, { status: "request-error", request: req }];
83
+ }
84
+ const response = doResult.value;
85
+ const responseFields = {
86
+ HttpMeta: { Response: response, Request: req },
87
+ };
88
+ const [result] = await M.match(M.json(200, operations.RevokeGatewayGitHubInstallationGrantResponse$inboundSchema), M.jsonErr(403, errors.RevokeGatewayGitHubInstallationGrantForbidden$inboundSchema), M.jsonErr(404, errors.RevokeGatewayGitHubInstallationGrantNotFoundError$inboundSchema), M.jsonErr(503, errors
89
+ .RevokeGatewayGitHubInstallationGrantServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
90
+ if (!result.ok) {
91
+ return [result, { status: "complete", request: req, response }];
92
+ }
93
+ return [result, { status: "complete", request: req, response }];
94
+ }
95
+ //# sourceMappingURL=gateway-revoke-gateway-git-hub-installation-grant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway-revoke-gateway-git-hub-installation-grant.js","sourceRoot":"","sources":["../../../src/funcs/gateway-revoke-gateway-git-hub-installation-grant.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;GAOG;AACH,MAAM,UAAU,2CAA2C,CACzD,MAAoB,EACpB,OAA+D,EAC/D,OAAwB;IAiBxB,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAA+D,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OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAc5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,0DAA0D,CACtE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,2DAA2D,CACnE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,+DAA+D,CACvE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM;SACH,yEAAyE,CAC7E,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
35
35
  export declare const SDK_METADATA: {
36
36
  readonly language: "typescript";
37
37
  readonly openapiDocVersion: "2.0.0";
38
- readonly sdkVersion: "0.13.44";
38
+ readonly sdkVersion: "0.13.46";
39
39
  readonly genVersion: "2.938.0";
40
- readonly userAgent: "speakeasy-sdk/typescript 0.13.44 2.938.0 2.0.0 @mutagent/sdk";
40
+ readonly userAgent: "speakeasy-sdk/typescript 0.13.46 2.938.0 2.0.0 @mutagent/sdk";
41
41
  };
42
42
  //# sourceMappingURL=config.d.ts.map
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
31
31
  export const SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "2.0.0",
34
- sdkVersion: "0.13.44",
34
+ sdkVersion: "0.13.46",
35
35
  genVersion: "2.938.0",
36
- userAgent: "speakeasy-sdk/typescript 0.13.44 2.938.0 2.0.0 @mutagent/sdk",
36
+ userAgent: "speakeasy-sdk/typescript 0.13.46 2.938.0 2.0.0 @mutagent/sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,20 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { ArtifactsError } from "./artifacts-error.js";
4
+ import { ErrorResponse } from "./error-response.js";
5
+ import { SDKValidationError } from "./sdk-validation-error.js";
6
+ /**
7
+ * Response for status 403
8
+ */
9
+ export type GetArtifactForbidden = ArtifactsError | ErrorResponse;
10
+ /**
11
+ * Response for status 401
12
+ */
13
+ export type GetArtifactUnauthorized = ArtifactsError | ErrorResponse;
14
+ /** @internal */
15
+ export declare const GetArtifactForbidden$inboundSchema: z.ZodMiniType<GetArtifactForbidden, unknown>;
16
+ export declare function getArtifactForbiddenFromJSON(jsonString: string): SafeParseResult<GetArtifactForbidden, SDKValidationError>;
17
+ /** @internal */
18
+ export declare const GetArtifactUnauthorized$inboundSchema: z.ZodMiniType<GetArtifactUnauthorized, unknown>;
19
+ export declare function getArtifactUnauthorizedFromJSON(jsonString: string): SafeParseResult<GetArtifactUnauthorized, SDKValidationError>;
20
+ //# sourceMappingURL=get-artifact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-artifact.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/get-artifact.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EACL,cAAc,EAEf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,EAEd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG,aAAa,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,cAAc,GAAG,aAAa,CAAC;AAErE,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,WAAW,CAC5D,oBAAoB,EACpB,OAAO,CACkE,CAAC;AAE5E,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D;AAED,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CACkE,CAAC;AAE5E,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { safeParse } from "../../lib/schemas.js";
5
+ import { smartUnion } from "../../types/smart-union.js";
6
+ import { ArtifactsError$inboundSchema, } from "./artifacts-error.js";
7
+ import { ErrorResponse$inboundSchema, } from "./error-response.js";
8
+ /** @internal */
9
+ export const GetArtifactForbidden$inboundSchema = smartUnion([ArtifactsError$inboundSchema, ErrorResponse$inboundSchema]);
10
+ export function getArtifactForbiddenFromJSON(jsonString) {
11
+ return safeParse(jsonString, (x) => GetArtifactForbidden$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetArtifactForbidden' from JSON`);
12
+ }
13
+ /** @internal */
14
+ export const GetArtifactUnauthorized$inboundSchema = smartUnion([ArtifactsError$inboundSchema, ErrorResponse$inboundSchema]);
15
+ export function getArtifactUnauthorizedFromJSON(jsonString) {
16
+ return safeParse(jsonString, (x) => GetArtifactUnauthorized$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetArtifactUnauthorized' from JSON`);
17
+ }
18
+ //# sourceMappingURL=get-artifact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-artifact.js","sourceRoot":"","sources":["../../../../src/models/errors/get-artifact.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAa7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAG3C,UAAU,CAAC,CAAC,4BAA4B,EAAE,2BAA2B,CAAC,CAAC,CAAC;AAE5E,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,UAAU,CAAC,CAAC,4BAA4B,EAAE,2BAA2B,CAAC,CAAC,CAAC;AAE5E,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}