@mutagent/sdk 0.12.34 → 0.12.36

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 (86) hide show
  1. package/README.md +902 -884
  2. package/dist/commonjs/funcs/helix-cloud-end-helix-cloud-session.d.ts +23 -0
  3. package/dist/commonjs/funcs/helix-cloud-end-helix-cloud-session.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/helix-cloud-end-helix-cloud-session.js +129 -0
  5. package/dist/commonjs/funcs/helix-cloud-end-helix-cloud-session.js.map +1 -0
  6. package/dist/commonjs/funcs/sandbox-sessions-end-sandbox-web-session.d.ts +21 -0
  7. package/dist/commonjs/funcs/sandbox-sessions-end-sandbox-web-session.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/sandbox-sessions-end-sandbox-web-session.js +127 -0
  9. package/dist/commonjs/funcs/sandbox-sessions-end-sandbox-web-session.js.map +1 -0
  10. package/dist/commonjs/lib/config.d.ts +2 -2
  11. package/dist/commonjs/lib/config.js +2 -2
  12. package/dist/commonjs/models/errors/end-helix-cloud-session.d.ts +276 -0
  13. package/dist/commonjs/models/errors/end-helix-cloud-session.d.ts.map +1 -0
  14. package/dist/commonjs/models/errors/end-helix-cloud-session.js +253 -0
  15. package/dist/commonjs/models/errors/end-helix-cloud-session.js.map +1 -0
  16. package/dist/commonjs/models/errors/end-sandbox-web-session.d.ts +276 -0
  17. package/dist/commonjs/models/errors/end-sandbox-web-session.d.ts.map +1 -0
  18. package/dist/commonjs/models/errors/end-sandbox-web-session.js +253 -0
  19. package/dist/commonjs/models/errors/end-sandbox-web-session.js.map +1 -0
  20. package/dist/commonjs/models/errors/index.d.ts +2 -0
  21. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  22. package/dist/commonjs/models/errors/index.js +2 -0
  23. package/dist/commonjs/models/errors/index.js.map +1 -1
  24. package/dist/commonjs/models/operations/end-helix-cloud-session.d.ts +15 -0
  25. package/dist/commonjs/models/operations/end-helix-cloud-session.d.ts.map +1 -0
  26. package/dist/commonjs/models/operations/end-helix-cloud-session.js +49 -0
  27. package/dist/commonjs/models/operations/end-helix-cloud-session.js.map +1 -0
  28. package/dist/commonjs/models/operations/end-sandbox-web-session.d.ts +15 -0
  29. package/dist/commonjs/models/operations/end-sandbox-web-session.d.ts.map +1 -0
  30. package/dist/commonjs/models/operations/end-sandbox-web-session.js +49 -0
  31. package/dist/commonjs/models/operations/end-sandbox-web-session.js.map +1 -0
  32. package/dist/commonjs/models/operations/index.d.ts +2 -0
  33. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  34. package/dist/commonjs/models/operations/index.js +2 -0
  35. package/dist/commonjs/models/operations/index.js.map +1 -1
  36. package/dist/commonjs/sdk/helix-cloud.d.ts +9 -0
  37. package/dist/commonjs/sdk/helix-cloud.d.ts.map +1 -1
  38. package/dist/commonjs/sdk/helix-cloud.js +12 -0
  39. package/dist/commonjs/sdk/helix-cloud.js.map +1 -1
  40. package/dist/commonjs/sdk/sandbox-sessions.d.ts +7 -0
  41. package/dist/commonjs/sdk/sandbox-sessions.d.ts.map +1 -1
  42. package/dist/commonjs/sdk/sandbox-sessions.js +10 -0
  43. package/dist/commonjs/sdk/sandbox-sessions.js.map +1 -1
  44. package/dist/esm/funcs/helix-cloud-end-helix-cloud-session.d.ts +23 -0
  45. package/dist/esm/funcs/helix-cloud-end-helix-cloud-session.d.ts.map +1 -0
  46. package/dist/esm/funcs/helix-cloud-end-helix-cloud-session.js +93 -0
  47. package/dist/esm/funcs/helix-cloud-end-helix-cloud-session.js.map +1 -0
  48. package/dist/esm/funcs/sandbox-sessions-end-sandbox-web-session.d.ts +21 -0
  49. package/dist/esm/funcs/sandbox-sessions-end-sandbox-web-session.d.ts.map +1 -0
  50. package/dist/esm/funcs/sandbox-sessions-end-sandbox-web-session.js +91 -0
  51. package/dist/esm/funcs/sandbox-sessions-end-sandbox-web-session.js.map +1 -0
  52. package/dist/esm/lib/config.d.ts +2 -2
  53. package/dist/esm/lib/config.js +2 -2
  54. package/dist/esm/models/errors/end-helix-cloud-session.d.ts +276 -0
  55. package/dist/esm/models/errors/end-helix-cloud-session.d.ts.map +1 -0
  56. package/dist/esm/models/errors/end-helix-cloud-session.js +210 -0
  57. package/dist/esm/models/errors/end-helix-cloud-session.js.map +1 -0
  58. package/dist/esm/models/errors/end-sandbox-web-session.d.ts +276 -0
  59. package/dist/esm/models/errors/end-sandbox-web-session.d.ts.map +1 -0
  60. package/dist/esm/models/errors/end-sandbox-web-session.js +210 -0
  61. package/dist/esm/models/errors/end-sandbox-web-session.js.map +1 -0
  62. package/dist/esm/models/errors/index.d.ts +2 -0
  63. package/dist/esm/models/errors/index.d.ts.map +1 -1
  64. package/dist/esm/models/errors/index.js +2 -0
  65. package/dist/esm/models/errors/index.js.map +1 -1
  66. package/dist/esm/models/operations/end-helix-cloud-session.d.ts +15 -0
  67. package/dist/esm/models/operations/end-helix-cloud-session.d.ts.map +1 -0
  68. package/dist/esm/models/operations/end-helix-cloud-session.js +12 -0
  69. package/dist/esm/models/operations/end-helix-cloud-session.js.map +1 -0
  70. package/dist/esm/models/operations/end-sandbox-web-session.d.ts +15 -0
  71. package/dist/esm/models/operations/end-sandbox-web-session.d.ts.map +1 -0
  72. package/dist/esm/models/operations/end-sandbox-web-session.js +12 -0
  73. package/dist/esm/models/operations/end-sandbox-web-session.js.map +1 -0
  74. package/dist/esm/models/operations/index.d.ts +2 -0
  75. package/dist/esm/models/operations/index.d.ts.map +1 -1
  76. package/dist/esm/models/operations/index.js +2 -0
  77. package/dist/esm/models/operations/index.js.map +1 -1
  78. package/dist/esm/sdk/helix-cloud.d.ts +9 -0
  79. package/dist/esm/sdk/helix-cloud.d.ts.map +1 -1
  80. package/dist/esm/sdk/helix-cloud.js +12 -0
  81. package/dist/esm/sdk/helix-cloud.js.map +1 -1
  82. package/dist/esm/sdk/sandbox-sessions.d.ts +7 -0
  83. package/dist/esm/sdk/sandbox-sessions.d.ts.map +1 -1
  84. package/dist/esm/sdk/sandbox-sessions.js +10 -0
  85. package/dist/esm/sdk/sandbox-sessions.js.map +1 -1
  86. package/package.json +1 -1
@@ -0,0 +1,23 @@
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 models from "../models/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { APIPromise } from "../types/async.js";
11
+ import { Result } from "../types/fp.js";
12
+ /**
13
+ * End a session and remove its sandbox
14
+ *
15
+ * @remarks
16
+ * Stops the session and removes its sandbox with every session on it. The saved conversation stays readable. 404 when no live session exists. Sessions owned by a managed run may refuse an operator end.
17
+ *
18
+ * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
19
+ *
20
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
21
+ */
22
+ export declare function helixCloudEndHelixCloudSession(client: MutagentCore, request: operations.EndHelixCloudSessionRequest, options?: RequestOptions): APIPromise<Result<models.HelixSessionEndResponse, errors.EndHelixCloudSessionBadRequestError | errors.EndHelixCloudSessionUnauthorizedError | errors.EndHelixCloudSessionForbiddenError | errors.EndHelixCloudSessionNotFoundError | errors.EndHelixCloudSessionConflictError | errors.EndHelixCloudSessionUnprocessableEntityError | errors.EndHelixCloudSessionServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
23
+ //# sourceMappingURL=helix-cloud-end-helix-cloud-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helix-cloud-end-helix-cloud-session.d.ts","sourceRoot":"","sources":["../../../src/funcs/helix-cloud-end-helix-cloud-session.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;;;;;;;;;GASG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,uBAAuB,EAC5B,MAAM,CAAC,mCAAmC,GAC1C,MAAM,CAAC,qCAAqC,GAC5C,MAAM,CAAC,kCAAkC,GACzC,MAAM,CAAC,iCAAiC,GACxC,MAAM,CAAC,iCAAiC,GACxC,MAAM,CAAC,4CAA4C,GACnD,MAAM,CAAC,2CAA2C,GAClD,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.helixCloudEndHelixCloudSession = helixCloudEndHelixCloudSession;
40
+ const z = __importStar(require("zod/v4-mini"));
41
+ const encodings_js_1 = require("../lib/encodings.js");
42
+ const http_js_1 = require("../lib/http.js");
43
+ const M = __importStar(require("../lib/matchers.js"));
44
+ const primitives_js_1 = require("../lib/primitives.js");
45
+ const schemas_js_1 = require("../lib/schemas.js");
46
+ const security_js_1 = require("../lib/security.js");
47
+ const url_js_1 = require("../lib/url.js");
48
+ const errors = __importStar(require("../models/errors/index.js"));
49
+ const models = __importStar(require("../models/index.js"));
50
+ const operations = __importStar(require("../models/operations/index.js"));
51
+ const async_js_1 = require("../types/async.js");
52
+ /**
53
+ * End a session and remove its sandbox
54
+ *
55
+ * @remarks
56
+ * Stops the session and removes its sandbox with every session on it. The saved conversation stays readable. 404 when no live session exists. Sessions owned by a managed run may refuse an operator end.
57
+ *
58
+ * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
59
+ *
60
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
61
+ */
62
+ function helixCloudEndHelixCloudSession(client, request, options) {
63
+ return new async_js_1.APIPromise($do(client, request, options));
64
+ }
65
+ async function $do(client, request, options) {
66
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(operations.EndHelixCloudSessionRequest$outboundSchema, value), "Input validation failed");
67
+ if (!parsed.ok) {
68
+ return [parsed, { status: "invalid" }];
69
+ }
70
+ const payload = parsed.value;
71
+ const body = null;
72
+ const pathParams = {
73
+ reference: (0, encodings_js_1.encodeSimple)("reference", payload.reference, {
74
+ explode: false,
75
+ charEncoding: "percent",
76
+ }),
77
+ };
78
+ const path = (0, url_js_1.pathToFunc)("/api/helix-cloud/sessions/{reference}/end")(pathParams);
79
+ const headers = new Headers((0, primitives_js_1.compactMap)({
80
+ Accept: "application/json",
81
+ }));
82
+ const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
83
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
84
+ const context = {
85
+ options: client._options,
86
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
87
+ operationID: "endHelixCloudSession",
88
+ oAuth2Scopes: null,
89
+ resolvedSecurity: requestSecurity,
90
+ securitySource: client._options.security,
91
+ retryConfig: options?.retries
92
+ || client._options.retryConfig
93
+ || { strategy: "none" },
94
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
95
+ };
96
+ const requestRes = client._createRequest(context, {
97
+ security: requestSecurity,
98
+ method: "POST",
99
+ baseURL: options?.serverURL,
100
+ path: path,
101
+ headers: headers,
102
+ body: body,
103
+ userAgent: client._options.userAgent,
104
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
105
+ }, options);
106
+ if (!requestRes.ok) {
107
+ return [requestRes, { status: "invalid" }];
108
+ }
109
+ const req = requestRes.value;
110
+ const doResult = await client._do(req, {
111
+ context,
112
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
113
+ retryConfig: context.retryConfig,
114
+ retryCodes: context.retryCodes,
115
+ });
116
+ if (!doResult.ok) {
117
+ return [doResult, { status: "request-error", request: req }];
118
+ }
119
+ const response = doResult.value;
120
+ const responseFields = {
121
+ HttpMeta: { Response: response, Request: req },
122
+ };
123
+ const [result] = await M.match(M.json(200, models.HelixSessionEndResponse$inboundSchema), M.jsonErr(400, errors.EndHelixCloudSessionBadRequestError$inboundSchema), M.jsonErr(401, errors.EndHelixCloudSessionUnauthorizedError$inboundSchema), M.jsonErr(403, errors.EndHelixCloudSessionForbiddenError$inboundSchema), M.jsonErr(404, errors.EndHelixCloudSessionNotFoundError$inboundSchema), M.jsonErr(409, errors.EndHelixCloudSessionConflictError$inboundSchema), M.jsonErr(422, errors.EndHelixCloudSessionUnprocessableEntityError$inboundSchema), M.jsonErr(503, errors.EndHelixCloudSessionServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
124
+ if (!result.ok) {
125
+ return [result, { status: "complete", request: req, response }];
126
+ }
127
+ return [result, { status: "complete", request: req, response }];
128
+ }
129
+ //# sourceMappingURL=helix-cloud-end-helix-cloud-session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helix-cloud-end-helix-cloud-session.js","sourceRoot":"","sources":["../../../src/funcs/helix-cloud-end-helix-cloud-session.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCH,wEA6BC;AAjED,+CAAiC;AAEjC,sDAAmD;A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AC,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,21 @@
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 models from "../models/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { APIPromise } from "../types/async.js";
11
+ import { Result } from "../types/fp.js";
12
+ /**
13
+ * End a session and remove its sandbox
14
+ *
15
+ * @remarks
16
+ * Stops the session and removes its sandbox with every session on it. The saved conversation stays readable. 404 when no live session exists. Sessions owned by a managed run may refuse an operator end.
17
+ *
18
+ * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
19
+ */
20
+ export declare function sandboxSessionsEndSandboxWebSession(client: MutagentCore, request: operations.EndSandboxWebSessionRequest, options?: RequestOptions): APIPromise<Result<models.HelixSessionEndResponse, errors.EndSandboxWebSessionBadRequestError | errors.EndSandboxWebSessionUnauthorizedError | errors.EndSandboxWebSessionForbiddenError | errors.EndSandboxWebSessionNotFoundError | errors.EndSandboxWebSessionConflictError | errors.EndSandboxWebSessionUnprocessableEntityError | errors.EndSandboxWebSessionServiceUnavailableError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
21
+ //# sourceMappingURL=sandbox-sessions-end-sandbox-web-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox-sessions-end-sandbox-web-session.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-sessions-end-sandbox-web-session.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,mCAAmC,CACjD,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,uBAAuB,EAC5B,MAAM,CAAC,mCAAmC,GAC1C,MAAM,CAAC,qCAAqC,GAC5C,MAAM,CAAC,kCAAkC,GACzC,MAAM,CAAC,iCAAiC,GACxC,MAAM,CAAC,iCAAiC,GACxC,MAAM,CAAC,4CAA4C,GACnD,MAAM,CAAC,2CAA2C,GAClD,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.sandboxSessionsEndSandboxWebSession = sandboxSessionsEndSandboxWebSession;
40
+ const z = __importStar(require("zod/v4-mini"));
41
+ const encodings_js_1 = require("../lib/encodings.js");
42
+ const http_js_1 = require("../lib/http.js");
43
+ const M = __importStar(require("../lib/matchers.js"));
44
+ const primitives_js_1 = require("../lib/primitives.js");
45
+ const schemas_js_1 = require("../lib/schemas.js");
46
+ const security_js_1 = require("../lib/security.js");
47
+ const url_js_1 = require("../lib/url.js");
48
+ const errors = __importStar(require("../models/errors/index.js"));
49
+ const models = __importStar(require("../models/index.js"));
50
+ const operations = __importStar(require("../models/operations/index.js"));
51
+ const async_js_1 = require("../types/async.js");
52
+ /**
53
+ * End a session and remove its sandbox
54
+ *
55
+ * @remarks
56
+ * Stops the session and removes its sandbox with every session on it. The saved conversation stays readable. 404 when no live session exists. Sessions owned by a managed run may refuse an operator end.
57
+ *
58
+ * If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
59
+ */
60
+ function sandboxSessionsEndSandboxWebSession(client, request, options) {
61
+ return new async_js_1.APIPromise($do(client, request, options));
62
+ }
63
+ async function $do(client, request, options) {
64
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(operations.EndSandboxWebSessionRequest$outboundSchema, value), "Input validation failed");
65
+ if (!parsed.ok) {
66
+ return [parsed, { status: "invalid" }];
67
+ }
68
+ const payload = parsed.value;
69
+ const body = null;
70
+ const pathParams = {
71
+ reference: (0, encodings_js_1.encodeSimple)("reference", payload.reference, {
72
+ explode: false,
73
+ charEncoding: "percent",
74
+ }),
75
+ };
76
+ const path = (0, url_js_1.pathToFunc)("/api/sandbox-sessions/sessions/{reference}/end")(pathParams);
77
+ const headers = new Headers((0, primitives_js_1.compactMap)({
78
+ Accept: "application/json",
79
+ }));
80
+ const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
81
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
82
+ const context = {
83
+ options: client._options,
84
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
85
+ operationID: "endSandboxWebSession",
86
+ oAuth2Scopes: null,
87
+ resolvedSecurity: requestSecurity,
88
+ securitySource: client._options.security,
89
+ retryConfig: options?.retries
90
+ || client._options.retryConfig
91
+ || { strategy: "none" },
92
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
93
+ };
94
+ const requestRes = client._createRequest(context, {
95
+ security: requestSecurity,
96
+ method: "POST",
97
+ baseURL: options?.serverURL,
98
+ path: path,
99
+ headers: headers,
100
+ body: body,
101
+ userAgent: client._options.userAgent,
102
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
103
+ }, options);
104
+ if (!requestRes.ok) {
105
+ return [requestRes, { status: "invalid" }];
106
+ }
107
+ const req = requestRes.value;
108
+ const doResult = await client._do(req, {
109
+ context,
110
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
111
+ retryConfig: context.retryConfig,
112
+ retryCodes: context.retryCodes,
113
+ });
114
+ if (!doResult.ok) {
115
+ return [doResult, { status: "request-error", request: req }];
116
+ }
117
+ const response = doResult.value;
118
+ const responseFields = {
119
+ HttpMeta: { Response: response, Request: req },
120
+ };
121
+ const [result] = await M.match(M.json(200, models.HelixSessionEndResponse$inboundSchema), M.jsonErr(400, errors.EndSandboxWebSessionBadRequestError$inboundSchema), M.jsonErr(401, errors.EndSandboxWebSessionUnauthorizedError$inboundSchema), M.jsonErr(403, errors.EndSandboxWebSessionForbiddenError$inboundSchema), M.jsonErr(404, errors.EndSandboxWebSessionNotFoundError$inboundSchema), M.jsonErr(409, errors.EndSandboxWebSessionConflictError$inboundSchema), M.jsonErr(422, errors.EndSandboxWebSessionUnprocessableEntityError$inboundSchema), M.jsonErr(503, errors.EndSandboxWebSessionServiceUnavailableError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
122
+ if (!result.ok) {
123
+ return [result, { status: "complete", request: req, response }];
124
+ }
125
+ return [result, { status: "complete", request: req, response }];
126
+ }
127
+ //# sourceMappingURL=sandbox-sessions-end-sandbox-web-session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox-sessions-end-sandbox-web-session.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-sessions-end-sandbox-web-session.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,kFA6BC;AA/DD,+CAAiC;AAEjC,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,2DAA6C;AAC7C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,mCAAmC,CACjD,MAAoB,EACpB,OAA+C,EAC/C,OAAwB;IAqBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAA+C,EAC/C,OAAwB;IAwBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,0CAA0C,EAAE,KAAK,CAAC,EACvE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,SAAS,EAAE,IAAA,2BAAY,EAAC,WAAW,EAAE,OAAO,CAAC,SAAS,EAAE;YACtD,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;KACH,CAAC;IACF,MAAM,IAAI,GAAG,IAA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EACtE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,+CAA+C,CAAC,EACtE,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,0DAA0D,CAClE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,yDAAyD,CACjE,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.12.34";
38
+ readonly sdkVersion: "0.12.36";
39
39
  readonly genVersion: "2.938.0";
40
- readonly userAgent: "speakeasy-sdk/typescript 0.12.34 2.938.0 2.0.0 @mutagent/sdk";
40
+ readonly userAgent: "speakeasy-sdk/typescript 0.12.36 2.938.0 2.0.0 @mutagent/sdk";
41
41
  };
42
42
  //# sourceMappingURL=config.d.ts.map
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
35
35
  exports.SDK_METADATA = {
36
36
  language: "typescript",
37
37
  openapiDocVersion: "2.0.0",
38
- sdkVersion: "0.12.34",
38
+ sdkVersion: "0.12.36",
39
39
  genVersion: "2.938.0",
40
- userAgent: "speakeasy-sdk/typescript 0.12.34 2.938.0 2.0.0 @mutagent/sdk",
40
+ userAgent: "speakeasy-sdk/typescript 0.12.36 2.938.0 2.0.0 @mutagent/sdk",
41
41
  };
42
42
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,276 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { MutagentError } from "./mutagent-error.js";
3
+ /**
4
+ * A refused helix-cloud web request
5
+ */
6
+ export type EndHelixCloudSessionServiceUnavailableErrorData = {
7
+ /**
8
+ * Short error category
9
+ */
10
+ error: string;
11
+ /**
12
+ * Human-readable reason
13
+ */
14
+ message: string;
15
+ /**
16
+ * Stable machine-readable code, when one applies
17
+ */
18
+ code?: string | undefined;
19
+ };
20
+ /**
21
+ * A refused helix-cloud web request
22
+ */
23
+ export declare class EndHelixCloudSessionServiceUnavailableError extends MutagentError {
24
+ /**
25
+ * Short error category
26
+ */
27
+ error: string;
28
+ /**
29
+ * Stable machine-readable code, when one applies
30
+ */
31
+ code?: string | undefined;
32
+ /** The original data that was passed to this error instance. */
33
+ data$: EndHelixCloudSessionServiceUnavailableErrorData;
34
+ constructor(err: EndHelixCloudSessionServiceUnavailableErrorData, httpMeta: {
35
+ response: Response;
36
+ request: Request;
37
+ body: string;
38
+ });
39
+ }
40
+ /**
41
+ * A refused helix-cloud web request
42
+ */
43
+ export type EndHelixCloudSessionUnprocessableEntityErrorData = {
44
+ /**
45
+ * Short error category
46
+ */
47
+ error: string;
48
+ /**
49
+ * Human-readable reason
50
+ */
51
+ message: string;
52
+ /**
53
+ * Stable machine-readable code, when one applies
54
+ */
55
+ code?: string | undefined;
56
+ };
57
+ /**
58
+ * A refused helix-cloud web request
59
+ */
60
+ export declare class EndHelixCloudSessionUnprocessableEntityError extends MutagentError {
61
+ /**
62
+ * Short error category
63
+ */
64
+ error: string;
65
+ /**
66
+ * Stable machine-readable code, when one applies
67
+ */
68
+ code?: string | undefined;
69
+ /** The original data that was passed to this error instance. */
70
+ data$: EndHelixCloudSessionUnprocessableEntityErrorData;
71
+ constructor(err: EndHelixCloudSessionUnprocessableEntityErrorData, httpMeta: {
72
+ response: Response;
73
+ request: Request;
74
+ body: string;
75
+ });
76
+ }
77
+ /**
78
+ * A refused helix-cloud web request
79
+ */
80
+ export type EndHelixCloudSessionConflictErrorData = {
81
+ /**
82
+ * Short error category
83
+ */
84
+ error: string;
85
+ /**
86
+ * Human-readable reason
87
+ */
88
+ message: string;
89
+ /**
90
+ * Stable machine-readable code, when one applies
91
+ */
92
+ code?: string | undefined;
93
+ };
94
+ /**
95
+ * A refused helix-cloud web request
96
+ */
97
+ export declare class EndHelixCloudSessionConflictError extends MutagentError {
98
+ /**
99
+ * Short error category
100
+ */
101
+ error: string;
102
+ /**
103
+ * Stable machine-readable code, when one applies
104
+ */
105
+ code?: string | undefined;
106
+ /** The original data that was passed to this error instance. */
107
+ data$: EndHelixCloudSessionConflictErrorData;
108
+ constructor(err: EndHelixCloudSessionConflictErrorData, httpMeta: {
109
+ response: Response;
110
+ request: Request;
111
+ body: string;
112
+ });
113
+ }
114
+ /**
115
+ * A refused helix-cloud web request
116
+ */
117
+ export type EndHelixCloudSessionNotFoundErrorData = {
118
+ /**
119
+ * Short error category
120
+ */
121
+ error: string;
122
+ /**
123
+ * Human-readable reason
124
+ */
125
+ message: string;
126
+ /**
127
+ * Stable machine-readable code, when one applies
128
+ */
129
+ code?: string | undefined;
130
+ };
131
+ /**
132
+ * A refused helix-cloud web request
133
+ */
134
+ export declare class EndHelixCloudSessionNotFoundError extends MutagentError {
135
+ /**
136
+ * Short error category
137
+ */
138
+ error: string;
139
+ /**
140
+ * Stable machine-readable code, when one applies
141
+ */
142
+ code?: string | undefined;
143
+ /** The original data that was passed to this error instance. */
144
+ data$: EndHelixCloudSessionNotFoundErrorData;
145
+ constructor(err: EndHelixCloudSessionNotFoundErrorData, httpMeta: {
146
+ response: Response;
147
+ request: Request;
148
+ body: string;
149
+ });
150
+ }
151
+ /**
152
+ * A refused helix-cloud web request
153
+ */
154
+ export type EndHelixCloudSessionForbiddenErrorData = {
155
+ /**
156
+ * Short error category
157
+ */
158
+ error: string;
159
+ /**
160
+ * Human-readable reason
161
+ */
162
+ message: string;
163
+ /**
164
+ * Stable machine-readable code, when one applies
165
+ */
166
+ code?: string | undefined;
167
+ };
168
+ /**
169
+ * A refused helix-cloud web request
170
+ */
171
+ export declare class EndHelixCloudSessionForbiddenError extends MutagentError {
172
+ /**
173
+ * Short error category
174
+ */
175
+ error: string;
176
+ /**
177
+ * Stable machine-readable code, when one applies
178
+ */
179
+ code?: string | undefined;
180
+ /** The original data that was passed to this error instance. */
181
+ data$: EndHelixCloudSessionForbiddenErrorData;
182
+ constructor(err: EndHelixCloudSessionForbiddenErrorData, httpMeta: {
183
+ response: Response;
184
+ request: Request;
185
+ body: string;
186
+ });
187
+ }
188
+ /**
189
+ * A refused helix-cloud web request
190
+ */
191
+ export type EndHelixCloudSessionUnauthorizedErrorData = {
192
+ /**
193
+ * Short error category
194
+ */
195
+ error: string;
196
+ /**
197
+ * Human-readable reason
198
+ */
199
+ message: string;
200
+ /**
201
+ * Stable machine-readable code, when one applies
202
+ */
203
+ code?: string | undefined;
204
+ };
205
+ /**
206
+ * A refused helix-cloud web request
207
+ */
208
+ export declare class EndHelixCloudSessionUnauthorizedError extends MutagentError {
209
+ /**
210
+ * Short error category
211
+ */
212
+ error: string;
213
+ /**
214
+ * Stable machine-readable code, when one applies
215
+ */
216
+ code?: string | undefined;
217
+ /** The original data that was passed to this error instance. */
218
+ data$: EndHelixCloudSessionUnauthorizedErrorData;
219
+ constructor(err: EndHelixCloudSessionUnauthorizedErrorData, httpMeta: {
220
+ response: Response;
221
+ request: Request;
222
+ body: string;
223
+ });
224
+ }
225
+ /**
226
+ * A refused helix-cloud web request
227
+ */
228
+ export type EndHelixCloudSessionBadRequestErrorData = {
229
+ /**
230
+ * Short error category
231
+ */
232
+ error: string;
233
+ /**
234
+ * Human-readable reason
235
+ */
236
+ message: string;
237
+ /**
238
+ * Stable machine-readable code, when one applies
239
+ */
240
+ code?: string | undefined;
241
+ };
242
+ /**
243
+ * A refused helix-cloud web request
244
+ */
245
+ export declare class EndHelixCloudSessionBadRequestError extends MutagentError {
246
+ /**
247
+ * Short error category
248
+ */
249
+ error: string;
250
+ /**
251
+ * Stable machine-readable code, when one applies
252
+ */
253
+ code?: string | undefined;
254
+ /** The original data that was passed to this error instance. */
255
+ data$: EndHelixCloudSessionBadRequestErrorData;
256
+ constructor(err: EndHelixCloudSessionBadRequestErrorData, httpMeta: {
257
+ response: Response;
258
+ request: Request;
259
+ body: string;
260
+ });
261
+ }
262
+ /** @internal */
263
+ export declare const EndHelixCloudSessionServiceUnavailableError$inboundSchema: z.ZodMiniType<EndHelixCloudSessionServiceUnavailableError, unknown>;
264
+ /** @internal */
265
+ export declare const EndHelixCloudSessionUnprocessableEntityError$inboundSchema: z.ZodMiniType<EndHelixCloudSessionUnprocessableEntityError, unknown>;
266
+ /** @internal */
267
+ export declare const EndHelixCloudSessionConflictError$inboundSchema: z.ZodMiniType<EndHelixCloudSessionConflictError, unknown>;
268
+ /** @internal */
269
+ export declare const EndHelixCloudSessionNotFoundError$inboundSchema: z.ZodMiniType<EndHelixCloudSessionNotFoundError, unknown>;
270
+ /** @internal */
271
+ export declare const EndHelixCloudSessionForbiddenError$inboundSchema: z.ZodMiniType<EndHelixCloudSessionForbiddenError, unknown>;
272
+ /** @internal */
273
+ export declare const EndHelixCloudSessionUnauthorizedError$inboundSchema: z.ZodMiniType<EndHelixCloudSessionUnauthorizedError, unknown>;
274
+ /** @internal */
275
+ export declare const EndHelixCloudSessionBadRequestError$inboundSchema: z.ZodMiniType<EndHelixCloudSessionBadRequestError, unknown>;
276
+ //# sourceMappingURL=end-helix-cloud-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"end-helix-cloud-session.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/end-helix-cloud-session.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,a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