@tangle-network/sandbox 0.2.1 → 0.3.0

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.
@@ -1,262 +1 @@
1
- //#region src/errors.ts
2
- /**
3
- * Sandbox SDK Errors
4
- *
5
- * Error classes for the Sandbox client SDK.
6
- */
7
- /**
8
- * Base error class for all Sandbox SDK errors.
9
- */
10
- var SandboxError = class extends Error {
11
- /** HTTP status code if applicable */
12
- status;
13
- /** Error code for programmatic handling */
14
- code;
15
- /** Best-effort origin of the failing request */
16
- origin;
17
- /** Request path or endpoint when known */
18
- endpoint;
19
- /** Retry-after duration in ms when surfaced by the upstream */
20
- retryAfterMs;
21
- /** Sidecar version when the runtime emitted it */
22
- sidecarVersion;
23
- /** Sidecar image/tag/sha when the runtime emitted it */
24
- containerImage;
25
- constructor(message, code, status, metadata) {
26
- super(message);
27
- this.name = "SandboxError";
28
- this.code = code;
29
- this.status = status;
30
- this.origin = metadata?.origin;
31
- this.endpoint = metadata?.endpoint;
32
- this.retryAfterMs = metadata?.retryAfterMs;
33
- this.sidecarVersion = metadata?.sidecarVersion;
34
- this.containerImage = metadata?.containerImage;
35
- }
36
- };
37
- /**
38
- * Authentication failed or API key is invalid.
39
- */
40
- var AuthError = class extends SandboxError {
41
- constructor(message = "Authentication failed", metadata) {
42
- super(message, "AUTH_ERROR", 401, metadata);
43
- this.name = "AuthError";
44
- }
45
- };
46
- /**
47
- * The requested resource was not found.
48
- */
49
- var NotFoundError = class extends SandboxError {
50
- /** The resource type that was not found */
51
- resourceType;
52
- /** The resource ID that was not found */
53
- resourceId;
54
- constructor(resourceType, resourceId, metadata) {
55
- super(`${resourceType} not found: ${resourceId}`, "NOT_FOUND", 404, metadata);
56
- this.name = "NotFoundError";
57
- this.resourceType = resourceType;
58
- this.resourceId = resourceId;
59
- }
60
- };
61
- /**
62
- * Account quota or rate limit exceeded.
63
- */
64
- var QuotaError = class extends SandboxError {
65
- /** The type of quota that was exceeded */
66
- quotaType;
67
- /** Current usage */
68
- current;
69
- /** Maximum allowed */
70
- limit;
71
- /** Suggested retry-after duration in ms */
72
- retryAfterMs;
73
- constructor(quotaType, message, current, limit, metadata, status = 429) {
74
- super(message ?? `Quota exceeded: ${quotaType}`, "QUOTA_EXCEEDED", status, metadata);
75
- this.name = "QuotaError";
76
- this.quotaType = quotaType;
77
- this.current = current;
78
- this.limit = limit;
79
- this.retryAfterMs = metadata?.retryAfterMs;
80
- }
81
- };
82
- /**
83
- * The requested capability is unavailable for the account, driver, or sandbox.
84
- */
85
- var CapabilityError = class extends SandboxError {
86
- /** Capability or feature that was rejected when known */
87
- capability;
88
- constructor(message, code = "CAPABILITY_UNSUPPORTED", status = 400, metadata, capability) {
89
- super(message, code, status, metadata);
90
- this.name = "CapabilityError";
91
- this.capability = capability;
92
- }
93
- };
94
- /**
95
- * A multi-resource operation failed for one or more branches.
96
- */
97
- var PartialFailureError = class extends SandboxError {
98
- /** Per-resource failures returned by the API when available */
99
- failures;
100
- constructor(message, code = "PARTIAL_FAILURE", status = 502, metadata, failures) {
101
- super(message, code, status, metadata);
102
- this.name = "PartialFailureError";
103
- this.failures = failures;
104
- }
105
- };
106
- /**
107
- * The request was invalid or malformed.
108
- */
109
- var ValidationError = class extends SandboxError {
110
- /** Field-level validation errors */
111
- fields;
112
- constructor(message, fields, metadata) {
113
- super(message, "VALIDATION_ERROR", 400, metadata);
114
- this.name = "ValidationError";
115
- this.fields = fields;
116
- }
117
- };
118
- /**
119
- * The sandbox is not in a valid state for the requested operation.
120
- */
121
- var StateError = class extends SandboxError {
122
- /** Current state of the sandbox */
123
- currentState;
124
- /** Required state for the operation */
125
- requiredState;
126
- constructor(message, currentState, requiredState, metadata) {
127
- super(message, "INVALID_STATE", 409, metadata);
128
- this.name = "StateError";
129
- this.currentState = currentState;
130
- this.requiredState = requiredState;
131
- }
132
- };
133
- /**
134
- * The request timed out.
135
- */
136
- var TimeoutError = class extends SandboxError {
137
- /** Timeout duration in milliseconds */
138
- timeoutMs;
139
- constructor(timeoutMs, message, metadata) {
140
- super(message ?? `Request timed out after ${timeoutMs}ms`, "TIMEOUT", 408, metadata);
141
- this.name = "TimeoutError";
142
- this.timeoutMs = timeoutMs;
143
- }
144
- };
145
- /**
146
- * A network or connection error occurred.
147
- */
148
- var NetworkError = class extends SandboxError {
149
- /** The underlying error */
150
- cause;
151
- constructor(message, causeOrMetadata, metadata) {
152
- const cause = causeOrMetadata instanceof Error ? causeOrMetadata : void 0;
153
- const resolvedMetadata = causeOrMetadata instanceof Error ? metadata : causeOrMetadata ?? metadata;
154
- super(message, "NETWORK_ERROR", void 0, resolvedMetadata);
155
- this.name = "NetworkError";
156
- this.cause = cause;
157
- }
158
- };
159
- /**
160
- * The server returned an unexpected error.
161
- */
162
- var ServerError = class extends SandboxError {
163
- constructor(message, status = 500, metadata) {
164
- super(message, "SERVER_ERROR", status, metadata);
165
- this.name = "ServerError";
166
- }
167
- };
168
- function parseRetryAfterMs(rawValue, data) {
169
- if (typeof data.retryAfterMs === "number" && Number.isFinite(data.retryAfterMs)) return Math.max(0, data.retryAfterMs);
170
- if (!rawValue) return void 0;
171
- const trimmed = rawValue.trim();
172
- if (!trimmed) return void 0;
173
- const seconds = Number(trimmed);
174
- if (Number.isFinite(seconds)) return Math.max(0, seconds) * 1e3;
175
- const targetTs = Date.parse(trimmed);
176
- if (!Number.isNaN(targetTs)) return Math.max(0, targetTs - Date.now());
177
- }
178
- function inferOrigin(headers, context) {
179
- const derivedPath = context?.path ?? headers?.get("x-tangle-request-path") ?? void 0;
180
- if (!headers) return context?.path ? "sandbox-api" : void 0;
181
- if (headers.has("x-sidecar-version") || headers.has("x-sidecar-image") || headers.has("x-sidecar-image-tag")) return "sidecar";
182
- if (headers.has("x-orchestrator-version")) return "control-plane";
183
- if (derivedPath?.startsWith("/v1/")) return "sandbox-api";
184
- if (derivedPath) {
185
- if (derivedPath.startsWith("/projects") || derivedPath.startsWith("/sidecars") || derivedPath.startsWith("/instances")) return "control-plane";
186
- return "runtime";
187
- }
188
- return "unknown";
189
- }
190
- function isQuotaCode(code) {
191
- return code === "QUOTA_EXCEEDED" || code?.endsWith("_QUOTA_EXCEEDED") === true;
192
- }
193
- function isCapabilityCode(code) {
194
- return code === "CAPABILITY_NOT_ENABLED" || code === "CAPABILITY_UNSUPPORTED" || code === "UNSUPPORTED_CAPABILITY" || code === "FLEET_SHARED_WORKSPACE_UNSUPPORTED" || code === "SHARED_WORKSPACE_UNSUPPORTED";
195
- }
196
- function isPartialFailureCode(code) {
197
- return code === "PARTIAL_FAILURE" || code === "FLEET_PARTIAL_FAILURE" || code === "FLEET_DISPATCH_PARTIAL_FAILURE" || code === "FLEET_DEPROVISION_FAILED";
198
- }
199
- function asString(value) {
200
- return typeof value === "string" && value.trim().length > 0 ? value : void 0;
201
- }
202
- function isFailureDetail(value) {
203
- return typeof value === "object" && value !== null && !Array.isArray(value);
204
- }
205
- function readCapability(data, errorObj) {
206
- const nested = typeof errorObj === "object" && errorObj !== null ? asString(errorObj.capability) : void 0;
207
- return asString(data.capability) ?? nested;
208
- }
209
- function readFailures(data, errorObj) {
210
- if (Array.isArray(data.failures)) return data.failures.filter(isFailureDetail);
211
- if (Array.isArray(data.results)) {
212
- const failures = data.results.filter((result) => typeof result === "object" && result !== null && result.ok === false);
213
- if (failures.length > 0) return failures.filter(isFailureDetail);
214
- }
215
- if (typeof errorObj === "object" && errorObj !== null && Array.isArray(errorObj.failures)) return errorObj.failures.filter(isFailureDetail);
216
- }
217
- /**
218
- * Parse an error response from the API.
219
- * @param status - HTTP status code
220
- * @param body - Response body text
221
- * @param context - Optional request context for better error messages
222
- */
223
- function parseErrorResponse(status, body, context, headers) {
224
- let data;
225
- try {
226
- data = JSON.parse(body);
227
- } catch {
228
- data = { message: body };
229
- }
230
- const errorObj = data.error;
231
- const nestedMessage = typeof errorObj === "object" && errorObj !== null ? errorObj.message : void 0;
232
- const nestedCode = typeof errorObj === "object" && errorObj !== null ? errorObj.code : void 0;
233
- const baseMessage = data.message || nestedMessage || (typeof errorObj === "string" ? errorObj : void 0) || body || "Unknown error";
234
- const details = typeof data.details === "string" && data.details.trim().length > 0 ? data.details.trim() : void 0;
235
- const shouldAppendDetails = !!details && details !== baseMessage && (baseMessage === "Unknown error" || /^failed\b/i.test(baseMessage) || /^provision failed\b/i.test(baseMessage) || /^deprovision failed\b/i.test(baseMessage));
236
- const code = data.code || nestedCode;
237
- const message = `${context ? `${context.method ?? "REQUEST"} ${context.path ?? ""}: ` : ""}${shouldAppendDetails ? `${baseMessage}: ${details}` : baseMessage}`;
238
- const metadata = {
239
- origin: inferOrigin(headers, context),
240
- endpoint: context?.path ?? headers?.get("x-tangle-request-path") ?? void 0,
241
- retryAfterMs: parseRetryAfterMs(headers?.get("retry-after") ?? void 0, data),
242
- sidecarVersion: headers?.get("x-sidecar-version") ?? void 0,
243
- containerImage: headers?.get("x-sidecar-image") ?? headers?.get("x-sidecar-image-tag") ?? void 0
244
- };
245
- if (isQuotaCode(code)) return new QuotaError(data.quotaType || "rate_limit", message, data.current, data.limit, metadata, status);
246
- if (isCapabilityCode(code)) return new CapabilityError(message, code, status, metadata, readCapability(data, errorObj));
247
- if (isPartialFailureCode(code)) return new PartialFailureError(message, code, status, metadata, readFailures(data, errorObj));
248
- switch (status) {
249
- case 400: return new ValidationError(message, data.fields, metadata);
250
- case 401: return new AuthError(message, metadata);
251
- case 404: return new NotFoundError(data.resourceType || "Resource", data.resourceId || "unknown", metadata);
252
- case 408: return new TimeoutError(data.timeoutMs || 3e4, message, metadata);
253
- case 409: return new StateError(message, data.currentState || "unknown", data.requiredState, metadata);
254
- case 429: return new QuotaError(data.quotaType || "rate_limit", message, data.current, data.limit, metadata);
255
- case 501: return new SandboxError(message, code || "NOT_IMPLEMENTED", status, metadata);
256
- default:
257
- if (status >= 500) return new ServerError(message, status, metadata);
258
- return new SandboxError(message, code || "UNKNOWN_ERROR", status, metadata);
259
- }
260
- }
261
- //#endregion
262
- export { PartialFailureError as a, ServerError as c, ValidationError as d, parseErrorResponse as f, NotFoundError as i, StateError as l, CapabilityError as n, QuotaError as o, NetworkError as r, SandboxError as s, AuthError as t, TimeoutError as u };
1
+ const a0_0x3cbc8a=a0_0x34d5;(function(_0x45fd2c,_0x297ffd){const _0x5988ca=a0_0x34d5,_0x2f1b37=_0x45fd2c();while(!![]){try{const _0x4ca754=parseInt(_0x5988ca(0x106))/0x1+-parseInt(_0x5988ca(0x10a))/0x2+parseInt(_0x5988ca(0xc7))/0x3+-parseInt(_0x5988ca(0x125))/0x4*(parseInt(_0x5988ca(0xf1))/0x5)+parseInt(_0x5988ca(0x10b))/0x6+parseInt(_0x5988ca(0xee))/0x7*(-parseInt(_0x5988ca(0xd2))/0x8)+parseInt(_0x5988ca(0x130))/0x9;if(_0x4ca754===_0x297ffd)break;else _0x2f1b37['push'](_0x2f1b37['shift']());}catch(_0x117974){_0x2f1b37['push'](_0x2f1b37['shift']());}}}(a0_0x4b01,0x7ad3c));var SandboxError=class extends Error{[a0_0x3cbc8a(0x104)];[a0_0x3cbc8a(0xd4)];[a0_0x3cbc8a(0x12b)];[a0_0x3cbc8a(0xf2)];[a0_0x3cbc8a(0xe7)];[a0_0x3cbc8a(0xca)];['\x63\x6f\x6e\x74\x61\x69\x6e\x65\x72\x49\x6d\x61\x67\x65'];constructor(_0x412463,_0x342559,_0x1077cb,_0x348afa){const _0x5e2f59=a0_0x3cbc8a,_0x1aab71=_0x5e2f59(0xe2)[_0x5e2f59(0xfa)]('\x7c');let _0xaa6400=0x0;while(!![]){switch(_0x1aab71[_0xaa6400++]){case'\x30':super(_0x412463);continue;case'\x31':this[_0x5e2f59(0xd6)]=_0x5e2f59(0x137);continue;case'\x32':this['\x63\x6f\x6e\x74\x61\x69\x6e\x65\x72\x49\x6d\x61\x67\x65']=_0x348afa?.[_0x5e2f59(0xf8)];continue;case'\x33':this['\x6f\x72\x69\x67\x69\x6e']=_0x348afa?.[_0x5e2f59(0x12b)];continue;case'\x34':this[_0x5e2f59(0xd4)]=_0x342559;continue;case'\x35':this[_0x5e2f59(0xe7)]=_0x348afa?.['\x72\x65\x74\x72\x79\x41\x66\x74\x65\x72\x4d\x73'];continue;case'\x36':this[_0x5e2f59(0xca)]=_0x348afa?.[_0x5e2f59(0xca)];continue;case'\x37':this[_0x5e2f59(0x104)]=_0x1077cb;continue;case'\x38':this[_0x5e2f59(0xf2)]=_0x348afa?.['\x65\x6e\x64\x70\x6f\x69\x6e\x74'];continue;}break;}}},AuthError=class extends SandboxError{constructor(_0x4d9c75=a0_0x3cbc8a(0xc4),_0x2b24ce){const _0x58367b=a0_0x3cbc8a;super(_0x4d9c75,_0x58367b(0xe8),0x191,_0x2b24ce),this[_0x58367b(0xd6)]='\x41\x75\x74\x68\x45\x72\x72\x6f\x72';}},NotFoundError=class extends SandboxError{[a0_0x3cbc8a(0xcd)];[a0_0x3cbc8a(0x101)];constructor(_0x177513,_0x4f6636,_0x23af43){const _0x2d276f=a0_0x3cbc8a;super(_0x177513+_0x2d276f(0xcf)+_0x4f6636,_0x2d276f(0x102),0x194,_0x23af43),this[_0x2d276f(0xd6)]=_0x2d276f(0x12a),this[_0x2d276f(0xcd)]=_0x177513,this['\x72\x65\x73\x6f\x75\x72\x63\x65\x49\x64']=_0x4f6636;}},QuotaError=class extends SandboxError{[a0_0x3cbc8a(0x118)];[a0_0x3cbc8a(0x133)];['\x6c\x69\x6d\x69\x74'];['\x72\x65\x74\x72\x79\x41\x66\x74\x65\x72\x4d\x73'];constructor(_0x3d883a,_0x59d70b,_0x1e5679,_0x17ac4f,_0x4cde1e,_0x3bed2d=0x1ad){const _0x5dc951=a0_0x3cbc8a;super(_0x59d70b??_0x5dc951(0x121)+_0x3d883a,_0x5dc951(0x12c),_0x3bed2d,_0x4cde1e),this[_0x5dc951(0xd6)]=_0x5dc951(0xf5),this[_0x5dc951(0x118)]=_0x3d883a,this[_0x5dc951(0x133)]=_0x1e5679,this[_0x5dc951(0xd5)]=_0x17ac4f,this['\x72\x65\x74\x72\x79\x41\x66\x74\x65\x72\x4d\x73']=_0x4cde1e?.[_0x5dc951(0xe7)];}},CapabilityError=class extends SandboxError{[a0_0x3cbc8a(0xc6)];constructor(_0x205db7,_0x43a7ef=a0_0x3cbc8a(0x119),_0x417532=0x190,_0x2c0d1b,_0x334b5d){const _0x43b6b2=a0_0x3cbc8a;super(_0x205db7,_0x43a7ef,_0x417532,_0x2c0d1b),this[_0x43b6b2(0xd6)]=_0x43b6b2(0xf6),this[_0x43b6b2(0xc6)]=_0x334b5d;}},PartialFailureError=class extends SandboxError{[a0_0x3cbc8a(0x107)];constructor(_0x41ad27,_0x4c5863=a0_0x3cbc8a(0xd3),_0x128d68=0x1f6,_0x94aafe,_0x2f4c39){const _0xb7702e=a0_0x3cbc8a;super(_0x41ad27,_0x4c5863,_0x128d68,_0x94aafe),this['\x6e\x61\x6d\x65']='\x50\x61\x72\x74\x69\x61\x6c\x46\x61\x69\x6c\x75\x72\x65\x45\x72\x72\x6f\x72',this[_0xb7702e(0x107)]=_0x2f4c39;}},ValidationError=class extends SandboxError{[a0_0x3cbc8a(0x113)];constructor(_0x363e8d,_0x4d5e9c,_0x5bbe54){const _0x35c738=a0_0x3cbc8a;super(_0x363e8d,'\x56\x41\x4c\x49\x44\x41\x54\x49\x4f\x4e\x5f\x45\x52\x52\x4f\x52',0x190,_0x5bbe54),this['\x6e\x61\x6d\x65']=_0x35c738(0xda),this['\x66\x69\x65\x6c\x64\x73']=_0x4d5e9c;}},StateError=class extends SandboxError{[a0_0x3cbc8a(0x10d)];['\x72\x65\x71\x75\x69\x72\x65\x64\x53\x74\x61\x74\x65'];constructor(_0x596a00,_0x3bfd9d,_0x24a4f4,_0x1dbf74){const _0x16d654=a0_0x3cbc8a,_0x5fa55d={'\x48\x64\x74\x71\x6c':_0x16d654(0xe4)};super(_0x596a00,_0x5fa55d[_0x16d654(0x12f)],0x199,_0x1dbf74),this[_0x16d654(0xd6)]=_0x16d654(0xed),this[_0x16d654(0x10d)]=_0x3bfd9d,this[_0x16d654(0x103)]=_0x24a4f4;}},TimeoutError=class extends SandboxError{[a0_0x3cbc8a(0xdb)];constructor(_0xdca979,_0x47bd43,_0x1c6e6d){const _0x340138=a0_0x3cbc8a,_0x638b={'\x72\x50\x73\x59\x48':_0x340138(0x123)};super(_0x47bd43??_0x340138(0xd0)+_0xdca979+'\x6d\x73',_0x638b[_0x340138(0xdd)],0x198,_0x1c6e6d),this[_0x340138(0xd6)]='\x54\x69\x6d\x65\x6f\x75\x74\x45\x72\x72\x6f\x72',this[_0x340138(0xdb)]=_0xdca979;}},NetworkError=class extends SandboxError{[a0_0x3cbc8a(0x11c)];constructor(_0x319538,_0x39cb3c,_0xb5291e){const _0x2cd140=a0_0x3cbc8a,_0x1cc06a={'\x66\x65\x68\x4a\x54':function(_0x77ff38,_0x25055c){return _0x77ff38 instanceof _0x25055c;}},_0x3eedcb=_0x39cb3c instanceof Error?_0x39cb3c:void 0x0,_0x5b5ae3=_0x1cc06a[_0x2cd140(0xd8)](_0x39cb3c,Error)?_0xb5291e:_0x39cb3c??_0xb5291e;super(_0x319538,_0x2cd140(0xec),void 0x0,_0x5b5ae3),this[_0x2cd140(0xd6)]=_0x2cd140(0x116),this[_0x2cd140(0x11c)]=_0x3eedcb;}},ServerError=class extends SandboxError{constructor(_0x65f69d,_0x4ee2a6=0x1f4,_0x5ee41a){const _0x120a1d=a0_0x3cbc8a,_0x472041={'\x7a\x48\x5a\x4a\x6d':_0x120a1d(0x136)};super(_0x65f69d,'\x53\x45\x52\x56\x45\x52\x5f\x45\x52\x52\x4f\x52',_0x4ee2a6,_0x5ee41a),this['\x6e\x61\x6d\x65']=_0x472041['\x7a\x48\x5a\x4a\x6d'];}};function parseRetryAfterMs(_0x5d3351,_0x3e1809){const _0x4ba775=a0_0x3cbc8a,_0x2d7af3={'\x6c\x43\x4e\x6a\x6d':_0x4ba775(0x114),'\x68\x55\x63\x51\x72':function(_0x49b153,_0x53d7db){return _0x49b153*_0x53d7db;}};if(typeof _0x3e1809[_0x4ba775(0xe7)]===_0x2d7af3[_0x4ba775(0x13b)]&&Number[_0x4ba775(0xcc)](_0x3e1809[_0x4ba775(0xe7)]))return Math[_0x4ba775(0xfb)](0x0,_0x3e1809[_0x4ba775(0xe7)]);if(!_0x5d3351)return void 0x0;const _0x5ac187=_0x5d3351['\x74\x72\x69\x6d']();if(!_0x5ac187)return void 0x0;const _0x5b4cf8=Number(_0x5ac187);if(Number[_0x4ba775(0xcc)](_0x5b4cf8))return _0x2d7af3['\x68\x55\x63\x51\x72'](Math[_0x4ba775(0xfb)](0x0,_0x5b4cf8),0x3e8);const _0x5c78d=Date['\x70\x61\x72\x73\x65'](_0x5ac187);if(!Number[_0x4ba775(0xf4)](_0x5c78d))return Math['\x6d\x61\x78'](0x0,_0x5c78d-Date['\x6e\x6f\x77']());}function inferOrigin(_0x421d6f,_0x4456ef){const _0x3c1d3c=a0_0x3cbc8a,_0x21f18b={'\x75\x44\x48\x61\x71':_0x3c1d3c(0x115),'\x4a\x4b\x76\x42\x6f':'\x78\x2d\x73\x69\x64\x65\x63\x61\x72\x2d\x69\x6d\x61\x67\x65','\x79\x67\x44\x79\x68':_0x3c1d3c(0x11d),'\x53\x6f\x74\x62\x70':_0x3c1d3c(0xdc),'\x49\x72\x67\x76\x4c':_0x3c1d3c(0x10c),'\x68\x72\x47\x42\x52':_0x3c1d3c(0xe6),'\x77\x75\x62\x4f\x52':_0x3c1d3c(0x126)},_0x25ceb7=_0x4456ef?.[_0x3c1d3c(0x131)]??_0x421d6f?.[_0x3c1d3c(0xc1)](_0x21f18b[_0x3c1d3c(0x139)])??void 0x0;if(!_0x421d6f)return _0x4456ef?.[_0x3c1d3c(0x131)]?_0x3c1d3c(0x10c):void 0x0;if(_0x421d6f[_0x3c1d3c(0x129)](_0x3c1d3c(0xd9))||_0x421d6f[_0x3c1d3c(0x129)](_0x21f18b['\x4a\x4b\x76\x42\x6f'])||_0x421d6f['\x68\x61\x73']('\x78\x2d\x73\x69\x64\x65\x63\x61\x72\x2d\x69\x6d\x61\x67\x65\x2d\x74\x61\x67'))return _0x3c1d3c(0xf7);if(_0x421d6f[_0x3c1d3c(0x129)](_0x3c1d3c(0xfc)))return _0x21f18b[_0x3c1d3c(0x110)];if(_0x25ceb7?.['\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68'](_0x21f18b['\x53\x6f\x74\x62\x70']))return _0x21f18b['\x49\x72\x67\x76\x4c'];if(_0x25ceb7){if(_0x25ceb7[_0x3c1d3c(0xf9)](_0x3c1d3c(0xea))||_0x25ceb7[_0x3c1d3c(0xf9)](_0x21f18b[_0x3c1d3c(0x128)])||_0x25ceb7['\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68'](_0x21f18b['\x77\x75\x62\x4f\x52']))return _0x21f18b[_0x3c1d3c(0x110)];return'\x72\x75\x6e\x74\x69\x6d\x65';}return'\x75\x6e\x6b\x6e\x6f\x77\x6e';}function a0_0x34d5(_0x1fd4eb,_0xc6a7e8){_0x1fd4eb=_0x1fd4eb-0xc0;const _0x4b017d=a0_0x4b01();let _0x34d56d=_0x4b017d[_0x1fd4eb];if(a0_0x34d5['\x5a\x63\x6e\x55\x49\x42']===undefined){var _0x12cb94=function(_0x1e7096){const _0x190044='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x212593='',_0x356275='';for(let _0x2764b8=0x0,_0x311ae9,_0x3a26fe,_0x29d323=0x0;_0x3a26fe=_0x1e7096['\x63\x68\x61\x72\x41\x74'](_0x29d323++);~_0x3a26fe&&(_0x311ae9=_0x2764b8%0x4?_0x311ae9*0x40+_0x3a26fe:_0x3a26fe,_0x2764b8++%0x4)?_0x212593+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x311ae9>>(-0x2*_0x2764b8&0x6)):0x0){_0x3a26fe=_0x190044['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3a26fe);}for(let _0x449c91=0x0,_0x5de00e=_0x212593['\x6c\x65\x6e\x67\x74\x68'];_0x449c91<_0x5de00e;_0x449c91++){_0x356275+='\x25'+('\x30\x30'+_0x212593['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x449c91)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x356275);};a0_0x34d5['\x4c\x77\x50\x50\x58\x53']=_0x12cb94,a0_0x34d5['\x65\x79\x4e\x65\x75\x4b']={},a0_0x34d5['\x5a\x63\x6e\x55\x49\x42']=!![];}const _0x37d516=_0x4b017d[0x0],_0x1bb9c8=_0x1fd4eb+_0x37d516,_0x26c6ff=a0_0x34d5['\x65\x79\x4e\x65\x75\x4b'][_0x1bb9c8];return!_0x26c6ff?(_0x34d56d=a0_0x34d5['\x4c\x77\x50\x50\x58\x53'](_0x34d56d),a0_0x34d5['\x65\x79\x4e\x65\x75\x4b'][_0x1bb9c8]=_0x34d56d):_0x34d56d=_0x26c6ff,_0x34d56d;}function isQuotaCode(_0x56cfff){const _0x40e5be=a0_0x3cbc8a,_0x336493={'\x78\x54\x72\x4a\x52':function(_0x2115e0,_0xd3e01a){return _0x2115e0===_0xd3e01a;},'\x61\x77\x69\x4f\x73':_0x40e5be(0x12c),'\x69\x77\x56\x42\x73':_0x40e5be(0xdf)};return _0x336493[_0x40e5be(0xc8)](_0x56cfff,_0x336493[_0x40e5be(0xc3)])||_0x336493[_0x40e5be(0xc8)](_0x56cfff?.[_0x40e5be(0x10e)](_0x336493[_0x40e5be(0x120)]),!![]);}function a0_0x4b01(){const _0x5eea27=['\x42\x33\x6a\x50\x7a\x32\x4c\x55','\x75\x76\x76\x70\x76\x65\x66\x46\x72\x76\x48\x64\x72\x75\x76\x65\x72\x75\x71','\x43\x4d\x76\x30\x43\x4e\x4b\x54\x79\x77\x7a\x30\x7a\x78\x69','\x41\x66\x6a\x6f\x42\x30\x69','\x73\x67\x72\x30\x43\x77\x57','\x6d\x74\x6d\x33\x6e\x4a\x79\x30\x6f\x74\x62\x4a\x72\x4d\x44\x74\x73\x30\x65','\x43\x67\x66\x30\x41\x61','\x43\x4d\x76\x5a\x44\x77\x58\x30\x43\x57','\x79\x33\x76\x59\x43\x4d\x76\x55\x44\x61','\x76\x75\x35\x74\x76\x76\x62\x71\x74\x31\x6a\x75\x72\x75\x72\x46\x71\x30\x66\x71\x71\x75\x6a\x6a\x74\x65\x4c\x75\x77\x71','\x45\x63\x31\x5a\x41\x77\x72\x4c\x79\x32\x66\x59\x6c\x77\x4c\x54\x79\x77\x44\x4c\x6c\x78\x72\x48\x7a\x57','\x75\x32\x76\x59\x44\x4d\x76\x59\x72\x78\x6a\x59\x42\x33\x69','\x75\x32\x66\x55\x7a\x67\x6a\x56\x45\x65\x76\x59\x43\x4d\x39\x59','\x41\x67\x76\x4e\x71\x4c\x61','\x44\x75\x72\x69\x79\x78\x65','\x76\x77\x35\x52\x42\x4d\x39\x33\x42\x49\x62\x4c\x43\x4e\x6a\x56\x43\x47','\x42\x65\x6e\x6f\x41\x4d\x30','\x74\x32\x76\x64\x72\x4d\x43','\x43\x67\x66\x59\x43\x32\x75','\x7a\x32\x76\x30','\x71\x30\x66\x71\x71\x75\x6a\x6a\x74\x65\x4c\x75\x77\x76\x39\x6f\x74\x31\x72\x46\x72\x75\x35\x62\x71\x4b\x58\x66\x72\x61','\x79\x78\x44\x50\x74\x33\x6d','\x71\x78\x76\x30\x41\x67\x76\x55\x44\x67\x4c\x4a\x79\x78\x72\x50\x42\x32\x34\x47\x7a\x4d\x66\x50\x42\x67\x76\x4b','\x76\x78\x7a\x31\x77\x77\x53','\x79\x32\x66\x57\x79\x77\x6a\x50\x42\x67\x4c\x30\x45\x71','\x6d\x4a\x6d\x31\x6e\x5a\x43\x34\x6d\x76\x7a\x56\x76\x77\x48\x63\x41\x61','\x45\x66\x72\x59\x73\x4c\x69','\x42\x30\x4c\x4a\x75\x67\x4b','\x43\x32\x4c\x4b\x7a\x77\x6e\x48\x43\x4c\x7a\x4c\x43\x4e\x6e\x50\x42\x32\x34','\x73\x33\x48\x71\x77\x78\x69','\x41\x78\x6e\x67\x41\x77\x35\x50\x44\x67\x75','\x43\x4d\x76\x5a\x42\x33\x76\x59\x79\x32\x76\x75\x45\x78\x62\x4c','\x73\x4b\x31\x74\x45\x65\x6d','\x69\x67\x35\x56\x44\x63\x62\x4d\x42\x33\x76\x55\x7a\x64\x4f\x47','\x75\x4d\x76\x58\x44\x77\x76\x5a\x44\x63\x62\x30\x41\x77\x31\x4c\x7a\x63\x62\x56\x44\x78\x71\x47\x79\x77\x7a\x30\x7a\x78\x69\x47','\x44\x67\x76\x5a\x44\x61','\x6e\x4a\x43\x33\x6e\x74\x47\x58\x6e\x4b\x66\x52\x75\x75\x44\x41\x76\x71','\x75\x65\x66\x73\x76\x65\x4c\x62\x74\x66\x39\x67\x71\x75\x4c\x6d\x76\x76\x6a\x66','\x79\x32\x39\x4b\x7a\x71','\x42\x67\x4c\x54\x41\x78\x71','\x42\x4d\x66\x54\x7a\x71','\x75\x30\x48\x62\x75\x4b\x76\x65\x78\x31\x44\x70\x75\x4b\x54\x74\x75\x65\x66\x64\x72\x76\x39\x76\x74\x4c\x6e\x76\x75\x66\x62\x70\x75\x4c\x72\x66\x72\x61','\x7a\x4d\x76\x4f\x73\x4c\x71','\x45\x63\x31\x5a\x41\x77\x72\x4c\x79\x32\x66\x59\x6c\x78\x7a\x4c\x43\x4e\x6e\x50\x42\x32\x34','\x76\x4d\x66\x53\x41\x77\x72\x48\x44\x67\x4c\x56\x42\x4b\x76\x59\x43\x4d\x39\x59','\x44\x67\x4c\x54\x7a\x77\x39\x31\x44\x65\x31\x5a','\x6c\x33\x79\x58\x6c\x57','\x43\x4c\x62\x5a\x77\x75\x47','\x72\x4b\x58\x66\x72\x76\x72\x46\x75\x30\x48\x62\x75\x4b\x76\x65\x78\x31\x44\x70\x75\x4b\x54\x74\x75\x65\x66\x64\x72\x76\x39\x76\x74\x4c\x6e\x76\x75\x66\x62\x70\x75\x4c\x72\x66\x72\x61','\x78\x31\x66\x76\x74\x31\x72\x62\x78\x30\x76\x79\x71\x30\x76\x66\x72\x65\x76\x65','\x74\x77\x39\x4d\x74\x4b\x34','\x42\x77\x76\x30\x41\x67\x39\x4b','\x6d\x68\x57\x58\x46\x64\x72\x38\x6e\x33\x57\x5a\x46\x64\x48\x38\x6e\x78\x57\x32\x46\x64\x69','\x75\x4b\x76\x72\x76\x75\x76\x74\x76\x61','\x73\x75\x35\x77\x71\x75\x58\x6a\x72\x66\x39\x74\x76\x65\x66\x75\x72\x71','\x73\x76\x44\x34\x44\x67\x4f','\x6c\x33\x6e\x50\x7a\x67\x76\x4a\x79\x78\x6a\x5a','\x43\x4d\x76\x30\x43\x4e\x4c\x62\x7a\x4e\x72\x4c\x43\x4b\x31\x5a','\x71\x76\x76\x75\x73\x66\x39\x66\x75\x4c\x6a\x70\x75\x47','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x6c\x33\x62\x59\x42\x32\x50\x4c\x79\x33\x72\x5a','\x43\x33\x72\x59\x41\x77\x35\x4e','\x74\x4b\x76\x75\x76\x30\x39\x73\x73\x31\x39\x66\x75\x4c\x6a\x70\x75\x47','\x75\x33\x72\x48\x44\x67\x76\x66\x43\x4e\x6a\x56\x43\x47','\x6e\x32\x6a\x32\x79\x78\x76\x48\x45\x47','\x74\x4b\x39\x75\x78\x30\x4c\x6e\x75\x65\x58\x66\x74\x75\x76\x6f\x76\x65\x76\x65','\x42\x32\x6a\x51\x7a\x77\x6e\x30','\x6d\x74\x62\x6c\x76\x67\x50\x35\x72\x33\x43','\x7a\x77\x35\x4b\x43\x67\x39\x50\x42\x4e\x71','\x79\x30\x4c\x34\x41\x76\x79','\x41\x78\x6e\x6f\x79\x75\x34','\x75\x78\x76\x56\x44\x67\x66\x66\x43\x4e\x6a\x56\x43\x47','\x71\x32\x66\x57\x79\x77\x6a\x50\x42\x67\x4c\x30\x45\x75\x76\x59\x43\x4d\x39\x59','\x43\x32\x4c\x4b\x7a\x77\x6e\x48\x43\x47','\x79\x32\x39\x55\x44\x67\x66\x50\x42\x4d\x76\x59\x73\x77\x31\x48\x7a\x32\x75','\x43\x33\x72\x48\x43\x4e\x72\x5a\x76\x32\x4c\x30\x41\x61','\x43\x33\x62\x53\x41\x78\x71','\x42\x77\x66\x34','\x45\x63\x31\x56\x43\x4d\x6e\x4f\x7a\x78\x6e\x30\x43\x4d\x66\x30\x42\x33\x69\x54\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47','\x41\x78\x6e\x62\x43\x4e\x6a\x48\x45\x71','\x72\x4b\x58\x66\x72\x76\x72\x46\x72\x65\x76\x71\x75\x4b\x39\x77\x73\x76\x6e\x6a\x74\x30\x35\x46\x72\x4b\x66\x6a\x74\x65\x76\x65','\x44\x77\x35\x52\x42\x4d\x39\x33\x42\x47','\x42\x77\x76\x5a\x43\x32\x66\x4e\x7a\x71','\x43\x4d\x76\x5a\x42\x33\x76\x59\x79\x32\x76\x6a\x7a\x61','\x74\x4b\x39\x75\x78\x30\x7a\x70\x76\x75\x35\x65','\x43\x4d\x76\x58\x44\x77\x4c\x59\x7a\x77\x72\x74\x44\x67\x66\x30\x7a\x71','\x43\x33\x72\x48\x44\x68\x76\x5a','\x44\x77\x44\x71\x72\x65\x34','\x6f\x64\x47\x34\x6d\x5a\x6a\x64\x45\x75\x44\x51\x76\x4b\x4b','\x7a\x4d\x66\x50\x42\x68\x76\x59\x7a\x78\x6d','\x42\x67\x6e\x4d\x7a\x76\x71','\x44\x68\x6a\x62\x74\x65\x79','\x6d\x74\x43\x58\x6e\x5a\x71\x30\x6d\x68\x48\x74\x73\x68\x62\x5a\x71\x57','\x6d\x5a\x61\x57\x6d\x74\x6d\x5a\x6d\x4e\x66\x78\x7a\x77\x72\x4c\x75\x57','\x43\x32\x66\x55\x7a\x67\x6a\x56\x45\x63\x31\x48\x43\x67\x4b','\x79\x33\x76\x59\x43\x4d\x76\x55\x44\x66\x6e\x30\x79\x78\x72\x4c','\x7a\x77\x35\x4b\x43\x31\x44\x50\x44\x67\x47','\x73\x4e\x6e\x48\x74\x4e\x71','\x45\x77\x44\x65\x45\x77\x47','\x44\x68\x6a\x50\x42\x71','\x76\x75\x35\x6c\x74\x4b\x39\x78\x74\x4c\x39\x66\x75\x4c\x6a\x70\x75\x47','\x7a\x4d\x4c\x4c\x42\x67\x72\x5a','\x42\x4e\x76\x54\x79\x4d\x76\x59','\x45\x63\x31\x30\x79\x77\x35\x4e\x42\x67\x75\x54\x43\x4d\x76\x58\x44\x77\x76\x5a\x44\x63\x31\x57\x79\x78\x72\x4f','\x74\x4d\x76\x30\x44\x32\x39\x59\x41\x30\x76\x59\x43\x4d\x39\x59','\x73\x33\x76\x57\x72\x4c\x71','\x43\x78\x76\x56\x44\x67\x66\x75\x45\x78\x62\x4c','\x71\x30\x66\x71\x71\x75\x6a\x6a\x74\x65\x4c\x75\x77\x76\x39\x76\x74\x4c\x6e\x76\x75\x66\x62\x70\x75\x4c\x72\x66\x72\x61','\x45\x63\x31\x5a\x41\x77\x72\x4c\x79\x32\x66\x59\x6c\x77\x4c\x54\x79\x77\x44\x4c','\x7a\x4d\x4c\x53\x44\x67\x76\x59','\x79\x32\x66\x31\x43\x32\x75','\x79\x32\x39\x55\x44\x68\x6a\x56\x42\x63\x31\x57\x42\x67\x66\x55\x7a\x71','\x72\x30\x50\x59\x76\x68\x6d','\x43\x4d\x66\x30\x7a\x76\x39\x53\x41\x77\x31\x50\x44\x61','\x41\x78\x44\x77\x71\x4e\x6d','\x75\x78\x76\x56\x44\x67\x65\x47\x7a\x78\x48\x4a\x7a\x77\x76\x4b\x7a\x77\x71\x36\x69\x61','\x72\x68\x4c\x6f\x75\x31\x65','\x76\x65\x4c\x6e\x72\x75\x39\x76\x76\x61','\x44\x30\x4c\x4e\x45\x4b\x30','\x6d\x74\x6d\x35\x6d\x74\x75\x34\x6f\x67\x50\x4d\x75\x4d\x76\x77\x44\x71','\x6c\x32\x4c\x55\x43\x33\x72\x48\x42\x4d\x6e\x4c\x43\x57','\x79\x78\x6e\x5a\x41\x66\x61','\x41\x68\x6a\x68\x71\x4c\x69','\x41\x67\x66\x5a','\x74\x4d\x39\x30\x72\x4d\x39\x31\x42\x4d\x72\x66\x43\x4e\x6a\x56\x43\x47'];a0_0x4b01=function(){return _0x5eea27;};return a0_0x4b01();}function isCapabilityCode(_0x46fe78){const _0x2dca0b=a0_0x3cbc8a,_0x457f17={'\x61\x73\x73\x68\x50':_0x2dca0b(0xc2),'\x66\x4e\x6d\x41\x6d':_0x2dca0b(0x119),'\x6c\x64\x6a\x45\x77':_0x2dca0b(0xd7)};return _0x46fe78===_0x457f17[_0x2dca0b(0x127)]||_0x46fe78===_0x457f17['\x66\x4e\x6d\x41\x6d']||_0x46fe78===_0x2dca0b(0x134)||_0x46fe78===_0x2dca0b(0xde)||_0x46fe78===_0x457f17['\x6c\x64\x6a\x45\x77'];}function isPartialFailureCode(_0x21576f){const _0x100a89=a0_0x3cbc8a,_0x2c562a={'\x4b\x78\x50\x59\x72':function(_0x475f3d,_0x258f13){return _0x475f3d===_0x258f13;},'\x55\x76\x75\x59\x6b':function(_0x262cf5,_0x4e5b4b){return _0x262cf5===_0x4e5b4b;}};return _0x2c562a[_0x100a89(0xcb)](_0x21576f,'\x50\x41\x52\x54\x49\x41\x4c\x5f\x46\x41\x49\x4c\x55\x52\x45')||_0x2c562a[_0x100a89(0xcb)](_0x21576f,'\x46\x4c\x45\x45\x54\x5f\x50\x41\x52\x54\x49\x41\x4c\x5f\x46\x41\x49\x4c\x55\x52\x45')||_0x2c562a[_0x100a89(0xc5)](_0x21576f,'\x46\x4c\x45\x45\x54\x5f\x44\x49\x53\x50\x41\x54\x43\x48\x5f\x50\x41\x52\x54\x49\x41\x4c\x5f\x46\x41\x49\x4c\x55\x52\x45')||_0x21576f===_0x100a89(0xfe);}function asString(_0x5ec2a7){const _0x40e9ac=a0_0x3cbc8a,_0x2b8234={'\x6f\x49\x63\x50\x69':function(_0x5dca68,_0x2f2960){return _0x5dca68===_0x2f2960;},'\x4b\x75\x70\x46\x54':function(_0x4efe4b,_0x157456){return _0x4efe4b>_0x157456;}};return _0x2b8234[_0x40e9ac(0xc9)](typeof _0x5ec2a7,_0x40e9ac(0xeb))&&_0x2b8234[_0x40e9ac(0x117)](_0x5ec2a7[_0x40e9ac(0x111)]()[_0x40e9ac(0xe9)],0x0)?_0x5ec2a7:void 0x0;}function isFailureDetail(_0x2c06d2){const _0x523614=a0_0x3cbc8a,_0x217a71={'\x4a\x4d\x53\x78\x43':function(_0x10ec32,_0x539ddf){return _0x10ec32!==_0x539ddf;}};return typeof _0x2c06d2===_0x523614(0xf0)&&_0x217a71[_0x523614(0xce)](_0x2c06d2,null)&&!Array[_0x523614(0xfd)](_0x2c06d2);}function readCapability(_0x5905f0,_0x4a220d){const _0x2e9143=a0_0x3cbc8a,_0x4aa719={'\x44\x76\x55\x64\x4c':function(_0x41c063,_0x2d29b7){return _0x41c063===_0x2d29b7;},'\x68\x52\x4e\x6f\x42':_0x2e9143(0xf0)},_0x407639=_0x4aa719['\x44\x76\x55\x64\x4c'](typeof _0x4a220d,_0x4aa719[_0x2e9143(0x12e)])&&_0x4a220d!==null?asString(_0x4a220d[_0x2e9143(0xc6)]):void 0x0;return asString(_0x5905f0[_0x2e9143(0xc6)])??_0x407639;}function readFailures(_0x4ac5ea,_0x33a377){const _0x499cd7=a0_0x3cbc8a,_0x80c5a3={'\x77\x49\x67\x7a\x4d':_0x499cd7(0xf0),'\x61\x7a\x52\x52\x4b':function(_0x3188e2,_0x28ef4b){return _0x3188e2!==_0x28ef4b;}};if(Array['\x69\x73\x41\x72\x72\x61\x79'](_0x4ac5ea[_0x499cd7(0x107)]))return _0x4ac5ea[_0x499cd7(0x107)]['\x66\x69\x6c\x74\x65\x72'](isFailureDetail);if(Array[_0x499cd7(0xfd)](_0x4ac5ea[_0x499cd7(0x132)])){const _0x3570d2=_0x4ac5ea[_0x499cd7(0x132)][_0x499cd7(0x11b)](_0x33497b=>typeof _0x33497b===_0x499cd7(0xf0)&&_0x33497b!==null&&_0x33497b['\x6f\x6b']===![]);if(_0x3570d2[_0x499cd7(0xe9)]>0x0)return _0x3570d2[_0x499cd7(0x11b)](isFailureDetail);}if(typeof _0x33a377===_0x80c5a3[_0x499cd7(0x124)]&&_0x80c5a3['\x61\x7a\x52\x52\x4b'](_0x33a377,null)&&Array[_0x499cd7(0xfd)](_0x33a377[_0x499cd7(0x107)]))return _0x33a377[_0x499cd7(0x107)][_0x499cd7(0x11b)](isFailureDetail);}function parseErrorResponse(_0x6eca02,_0xbdd709,_0x10ddef,_0x838dbd){const _0x1a2649=a0_0x3cbc8a,_0x4e18e6={'\x6c\x63\x66\x65\x54':function(_0x228b34,_0x4fd93c){return _0x228b34!==_0x4fd93c;},'\x47\x4a\x72\x54\x73':function(_0x28c67a,_0x220a19){return _0x28c67a===_0x220a19;},'\x4f\x65\x43\x46\x67':function(_0x13db63,_0x1204ef){return _0x13db63!==_0x1204ef;},'\x4a\x73\x61\x4e\x74':_0x1a2649(0xeb),'\x69\x42\x67\x51\x6d':_0x1a2649(0x13a),'\x49\x57\x78\x74\x6a':function(_0x3e6e72,_0x5146db){return _0x3e6e72>_0x5146db;},'\x75\x67\x50\x44\x4e':function(_0xeb862b,_0x3d48a7){return _0xeb862b!==_0x3d48a7;},'\x50\x7a\x67\x6b\x77':function(_0x12d3ac,_0x26f308){return _0x12d3ac===_0x26f308;},'\x63\x49\x78\x69\x56':_0x1a2649(0xe3),'\x68\x65\x67\x42\x50':function(_0x3e5fdb,_0x1d9ecd,_0x20e35f){return _0x3e5fdb(_0x1d9ecd,_0x20e35f);},'\x67\x49\x58\x65\x48':'\x78\x2d\x74\x61\x6e\x67\x6c\x65\x2d\x72\x65\x71\x75\x65\x73\x74\x2d\x70\x61\x74\x68','\x44\x79\x4e\x53\x51':_0x1a2649(0x11a),'\x71\x75\x51\x46\x53':_0x1a2649(0x135),'\x4d\x6f\x66\x4e\x4e':function(_0x47b7d0,_0x136542){return _0x47b7d0||_0x136542;},'\x74\x72\x41\x4c\x46':_0x1a2649(0x112)};let _0x2039ff;try{_0x2039ff=JSON[_0x1a2649(0xc0)](_0xbdd709);}catch{_0x2039ff={'\x6d\x65\x73\x73\x61\x67\x65':_0xbdd709};}const _0x47156c=_0x2039ff['\x65\x72\x72\x6f\x72'],_0x1d9e06=typeof _0x47156c===_0x1a2649(0xf0)&&_0x4e18e6[_0x1a2649(0x108)](_0x47156c,null)?_0x47156c[_0x1a2649(0x100)]:void 0x0,_0x40d7ed=_0x4e18e6[_0x1a2649(0x11e)](typeof _0x47156c,_0x1a2649(0xf0))&&_0x4e18e6[_0x1a2649(0x13c)](_0x47156c,null)?_0x47156c['\x63\x6f\x64\x65']:void 0x0,_0x4d5e01=_0x2039ff[_0x1a2649(0x100)]||_0x1d9e06||(_0x4e18e6[_0x1a2649(0x11e)](typeof _0x47156c,_0x4e18e6[_0x1a2649(0x10f)])?_0x47156c:void 0x0)||_0xbdd709||_0x4e18e6['\x69\x42\x67\x51\x6d'],_0x2ec6ec=_0x4e18e6[_0x1a2649(0x11e)](typeof _0x2039ff['\x64\x65\x74\x61\x69\x6c\x73'],_0x4e18e6[_0x1a2649(0x10f)])&&_0x4e18e6[_0x1a2649(0xe5)](_0x2039ff['\x64\x65\x74\x61\x69\x6c\x73'][_0x1a2649(0x111)]()[_0x1a2649(0xe9)],0x0)?_0x2039ff['\x64\x65\x74\x61\x69\x6c\x73']['\x74\x72\x69\x6d']():void 0x0,_0x206510=!!_0x2ec6ec&&_0x4e18e6[_0x1a2649(0x105)](_0x2ec6ec,_0x4d5e01)&&(_0x4e18e6['\x50\x7a\x67\x6b\x77'](_0x4d5e01,'\x55\x6e\x6b\x6e\x6f\x77\x6e\x20\x65\x72\x72\x6f\x72')||/^failed\b/i[_0x1a2649(0xd1)](_0x4d5e01)||/^provision failed\b/i[_0x1a2649(0xd1)](_0x4d5e01)||/^deprovision failed\b/i[_0x1a2649(0xd1)](_0x4d5e01)),_0x1abf5c=_0x2039ff[_0x1a2649(0xd4)]||_0x40d7ed,_0x1213fb=''+(_0x10ddef?(_0x10ddef[_0x1a2649(0xe1)]??_0x4e18e6[_0x1a2649(0xf3)])+'\x20'+(_0x10ddef[_0x1a2649(0x131)]??'')+'\x3a\x20':'')+(_0x206510?_0x4d5e01+'\x3a\x20'+_0x2ec6ec:_0x4d5e01),_0x1394e0={'\x6f\x72\x69\x67\x69\x6e':_0x4e18e6[_0x1a2649(0x138)](inferOrigin,_0x838dbd,_0x10ddef),'\x65\x6e\x64\x70\x6f\x69\x6e\x74':_0x10ddef?.[_0x1a2649(0x131)]??_0x838dbd?.[_0x1a2649(0xc1)](_0x4e18e6['\x67\x49\x58\x65\x48'])??void 0x0,'\x72\x65\x74\x72\x79\x41\x66\x74\x65\x72\x4d\x73':parseRetryAfterMs(_0x838dbd?.['\x67\x65\x74'](_0x1a2649(0x12d))??void 0x0,_0x2039ff),'\x73\x69\x64\x65\x63\x61\x72\x56\x65\x72\x73\x69\x6f\x6e':_0x838dbd?.[_0x1a2649(0xc1)]('\x78\x2d\x73\x69\x64\x65\x63\x61\x72\x2d\x76\x65\x72\x73\x69\x6f\x6e')??void 0x0,'\x63\x6f\x6e\x74\x61\x69\x6e\x65\x72\x49\x6d\x61\x67\x65':_0x838dbd?.['\x67\x65\x74'](_0x4e18e6[_0x1a2649(0x122)])??_0x838dbd?.[_0x1a2649(0xc1)](_0x4e18e6['\x71\x75\x51\x46\x53'])??void 0x0};if(isQuotaCode(_0x1abf5c))return new QuotaError(_0x2039ff['\x71\x75\x6f\x74\x61\x54\x79\x70\x65']||'\x72\x61\x74\x65\x5f\x6c\x69\x6d\x69\x74',_0x1213fb,_0x2039ff[_0x1a2649(0x133)],_0x2039ff[_0x1a2649(0xd5)],_0x1394e0,_0x6eca02);if(isCapabilityCode(_0x1abf5c))return new CapabilityError(_0x1213fb,_0x1abf5c,_0x6eca02,_0x1394e0,readCapability(_0x2039ff,_0x47156c));if(isPartialFailureCode(_0x1abf5c))return new PartialFailureError(_0x1213fb,_0x1abf5c,_0x6eca02,_0x1394e0,readFailures(_0x2039ff,_0x47156c));switch(_0x6eca02){case 0x190:return new ValidationError(_0x1213fb,_0x2039ff[_0x1a2649(0x113)],_0x1394e0);case 0x191:return new AuthError(_0x1213fb,_0x1394e0);case 0x194:return new NotFoundError(_0x2039ff['\x72\x65\x73\x6f\x75\x72\x63\x65\x54\x79\x70\x65']||'\x52\x65\x73\x6f\x75\x72\x63\x65',_0x2039ff[_0x1a2649(0x101)]||_0x1a2649(0xff),_0x1394e0);case 0x198:return new TimeoutError(_0x2039ff[_0x1a2649(0xdb)]||0x7530,_0x1213fb,_0x1394e0);case 0x199:return new StateError(_0x1213fb,_0x2039ff['\x63\x75\x72\x72\x65\x6e\x74\x53\x74\x61\x74\x65']||_0x1a2649(0xff),_0x2039ff[_0x1a2649(0x103)],_0x1394e0);case 0x1ad:return new QuotaError(_0x2039ff[_0x1a2649(0x118)]||_0x1a2649(0x11f),_0x1213fb,_0x2039ff[_0x1a2649(0x133)],_0x2039ff[_0x1a2649(0xd5)],_0x1394e0);case 0x1f5:return new SandboxError(_0x1213fb,_0x4e18e6[_0x1a2649(0xe0)](_0x1abf5c,_0x1a2649(0xef)),_0x6eca02,_0x1394e0);default:if(_0x6eca02>=0x1f4)return new ServerError(_0x1213fb,_0x6eca02,_0x1394e0);return new SandboxError(_0x1213fb,_0x4e18e6[_0x1a2649(0xe0)](_0x1abf5c,_0x4e18e6[_0x1a2649(0x109)]),_0x6eca02,_0x1394e0);}}export{PartialFailureError as a,ServerError as c,ValidationError as d,parseErrorResponse as f,NotFoundError as i,StateError as l,CapabilityError as n,QuotaError as o,NetworkError as r,SandboxError as s,AuthError as t,TimeoutError as u};
@@ -1,4 +1,4 @@
1
- import { P as CreateSandboxOptions, n as SandboxInstance, t as HttpClient } from "./sandbox-aBpWqler.js";
1
+ import { G as CreateSandboxOptions, n as SandboxInstance, t as HttpClient } from "./sandbox-CpK8etqP.js";
2
2
 
3
3
  //#region src/tangle/abi.d.ts
4
4
  /**
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-Dpj1oB5i.js";
2
- import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-CCsA3S0D.js";
3
- import { A as IntegrationAction, B as TriggerRun, C as CreateAutomationInput, D as EndpointInfo, E as DeliveryAttempt, F as IntegrationScope, G as ParsedSSEEvent, H as SandboxFleet, I as IntegrationVerificationKind, K as parseSSEStream, L as IntegrationsManager, M as IntegrationDeliveryStatus, N as IntegrationPrincipalType, O as EndpointWithSecret, P as IntegrationProvider, R as RecipeManifest, S as ConnectionInfo, T as CreateTriggerInput, U as SandboxFleetClient, V as TriggerWithSecret, W as ParseSSEStreamOptions, _ as SandboxClient, a as PartialFailureError, b as TeamMember, c as SandboxErrorJson, d as StateError, f as TimeoutError, g as InviteTeamMemberOptions, h as IntelligenceClient, i as NotFoundError, j as IntegrationActionKind, k as InstallRecipeInput, l as SandboxFailureDetail, m as CreateTeamOptions, n as CapabilityError, o as QuotaError, p as ValidationError, r as NetworkError, s as SandboxError, t as AuthError, u as ServerError, v as Team, w as CreateEndpointInput, x as AutomationInfo, y as TeamInvitation, z as TriggerInfo } from "./errors-BI75IXOM.js";
4
- import { $ as FleetExecDispatchOptions, $n as SnapshotInfo, $t as RunCodeOptions, A as CreateIntelligenceReportOptions, An as SandboxFleetWorkspaceReconcileResult, Ar as AgentProfileValidationResult, At as PreviewLinkManager, B as DownloadProgress, Bn as SandboxTraceExport, Br as SandboxMcpServerEntry, Bt as PromptResult, C as BatchResult, Cn as SandboxFleetToken, Cr as AgentProfileMcpServer, Ct as MintScopedTokenOptions, D as CheckpointOptions, Dn as SandboxFleetTraceOptions, Dr as AgentProfileResourceRef, Dt as PermissionLevel, E as CheckpointInfo, En as SandboxFleetTraceExport, Er as AgentProfilePrompt, Et as NetworkManager, F as DeleteOptions, Fn as SandboxPermissionsConfig, Fr as mergeAgentProfiles, Ft as ProcessSignal, G as ExecOptions, Gn as SearchMatch, Gt as PublicTemplateInfo, H as DriverInfo, Hn as SandboxUser, Ht as ProvisionResult, I as DirectoryPermission, In as SandboxResources, Ir as BuildSandboxMcpConfigOptions, It as ProcessSpawnOptions, J as FileSystem, Jn as SecretsManager, Jt as PublishPublicTemplateVersionOptions, K as ExecResult, Kn as SearchOptions, Kt as PublicTemplateVersionInfo, L as DispatchPromptOptions, Ln as SandboxStatus, Lr as SANDBOX_MCP_SERVER_NAME, Lt as ProcessStatus, Mn as SandboxFleetWorkspaceSnapshotResult, Mr as defineAgentProfile, Mt as ProcessInfo, N as CreateSandboxFleetWithCoordinatorOptions, Nn as SandboxInfo, Nr as defineGitHubResource, Nt as ProcessLogEntry, O as CheckpointResult, On as SandboxFleetUsage, Or as AgentProfileResources, Ot as PermissionsManager, P as CreateSandboxOptions, Pn as SandboxIntelligenceEnvelope, Pr as defineInlineResource, Pt as ProcessManager, Q as FleetDispatchStreamOptions, Qn as SessionStatus, Qt as ReconcileSandboxFleetsResult, R as DispatchedSession, Rn as SandboxTraceBundle, Rr as SandboxMcpConfig, S as BatchOptions, Sn as SandboxFleetPolicy, Sr as AgentProfileFileMount, St as McpServerConfig, T as BatchTaskResult, Tn as SandboxFleetTraceEvent, Tr as AgentProfilePermissionValue, Tt as NetworkConfig, U as DriverType, Un as ScopedToken, Ut as ProvisionStatus, V as DriverConfig, Vn as SandboxTraceOptions, Vr as buildSandboxMcpConfig, Vt as ProvisionEvent, W as EventStreamOptions, Wn as ScopedTokenScope, Wt as ProvisionStep, X as FleetDispatchResultBuffer, Xn as SessionInfo, Xt as ReapExpiredSandboxFleetsResult, Y as FleetDispatchCancelResult, Yn as SessionEventStreamOptions, Yt as ReapExpiredSandboxFleetsOptions, Z as FleetDispatchResultBufferOptions, Zn as SessionListOptions, Zt as ReconcileSandboxFleetsOptions, _ as BackendInfo, _n as SandboxFleetMachineRecord, _r as UsageInfo, _t as IntelligenceReportSubjectType, a as TraceExportSink, an as SandboxEvent, ar as TaskOptions, at as ForkResult, b as BackendType, bn as SandboxFleetManifestMachine, br as AgentProfileCapabilities, bt as ListSandboxFleetOptions, c as otelTraceIdForTangleTrace, cn as SandboxFleetCostEstimate, cr as TeeAttestationReport, ct as GitCommit, d as AcceleratorKind, dn as SandboxFleetDriverCapability, dr as TeePublicKeyResponse, dt as GitStatus, en as SSHCommandDescriptor, er as SnapshotOptions, f as AccessPolicyRule, fn as SandboxFleetDriverTimings, fr as TokenRefreshHandler, ft as GpuType, g as BackendConfig, gn as SandboxFleetMachineMeteredUsage, gr as UploadProgress, gt as IntelligenceReportCompareTo, h as BackendCapabilities, hn as SandboxFleetMachine, hr as UploadOptions, ht as IntelligenceReportBudget, i as TraceExportResult, in as SandboxEnvironment, ir as SubscriptionInfo, it as ForkOptions, j as CreateSandboxFleetOptions, jn as SandboxFleetWorkspaceRestoreResult, jr as AgentSubagentProfile, jt as Process, k as CodeResult, kn as SandboxFleetWorkspace, kr as AgentProfileValidationIssue, kt as PreviewLinkInfo, l as toOtelJson, ln as SandboxFleetDispatchFailureClass, lr as TeeAttestationResponse, lt as GitConfig, m as AttachSandboxFleetMachineOptions, mn as SandboxFleetIntelligenceEnvelope, mr as UpdateUserOptions, mt as IntelligenceReport, n as SandboxInstance, nn as SandboxClientConfig, nt as FleetPromptDispatchOptions, o as buildTraceExportPayload, on as SandboxFleetArtifact, or as TaskResult, ot as GitAuth, p as AddUserOptions, pn as SandboxFleetInfo, pr as ToolsConfig, pt as InstalledTool, q as FileInfo, qn as SecretInfo, qt as PublishPublicTemplateOptions, r as TraceExportFormat, rn as SandboxConnection, rr as StorageConfig, s as exportTraceBundle, sn as SandboxFleetArtifactSpec, sr as TeeAttestationOptions, st as GitBranch, tn as SSHCredentials, tr as SnapshotResult, tt as FleetMachineId, u as SandboxSession, un as SandboxFleetDispatchResponse, ur as TeePublicKey, ut as GitDiff, v as BackendManager, vn as SandboxFleetMachineSpec, vr as WaitForOptions, vt as IntelligenceReportWindow, w as BatchTask, wn as SandboxFleetTraceBundle, wr as AgentProfileModelHints, wt as MkdirOptions, x as BatchEvent, xn as SandboxFleetOperationsSummary, xr as AgentProfileConfidential, xt as ListSandboxOptions, y as BackendStatus, yn as SandboxFleetManifest, yr as AgentProfile, yt as ListOptions, z as DownloadOptions, zn as SandboxTraceEvent, zr as SandboxMcpEndpoint, zt as PromptOptions } from "./sandbox-aBpWqler.js";
1
+ import { $ as DriverInfo, $n as SandboxTraceOptions, $t as ProvisionEvent, A as BatchTask, An as SandboxFleetMachineSpec, Ar as UsageInfo, At as ListMessagesOptions, B as CompletedTurnResult, Bn as SandboxFleetUsage, Br as AgentProfileResourceRef, Bt as PermissionsManager, C as BackendInfo, Cn as SandboxFleetDriverCapability, Cr as TeePublicKey, Ct as GpuType, D as BatchEvent, Dn as SandboxFleetMachine, Dr as UpdateUserOptions, Dt as IntelligenceReportCompareTo, E as BackendType, En as SandboxFleetIntelligenceEnvelope, Er as ToolsConfig, Et as IntelligenceReportBudget, Fn as SandboxFleetToken, Fr as AgentProfileFileMount, Ft as MintScopedTokenOptions, G as CreateSandboxOptions, Gn as SandboxInfo, Gr as defineAgentProfile, Gt as ProcessLogEntry, H as CreateSandboxFleetOptions, Hn as SandboxFleetWorkspaceReconcileResult, Hr as AgentProfileValidationIssue, Ht as PreviewLinkManager, In as SandboxFleetTraceBundle, Ir as AgentProfileMcpServer, It as MkdirOptions, J as DispatchPromptOptions, Jn as SandboxResources, Jr as mergeAgentProfiles, Jt as ProcessSpawnOptions, K as DeleteOptions, Kn as SandboxIntelligenceEnvelope, Kr as defineGitHubResource, Kt as ProcessManager, Ln as SandboxFleetTraceEvent, Lr as AgentProfileModelHints, Lt as NetworkConfig, M as CheckpointInfo, Mn as SandboxFleetManifestMachine, Mr as AgentProfile, Mt as ListSandboxFleetOptions, N as CheckpointOptions, Nn as SandboxFleetOperationsSummary, Nr as AgentProfileCapabilities, Nt as ListSandboxOptions, O as BatchOptions, On as SandboxFleetMachineMeteredUsage, Or as UploadOptions, Ot as IntelligenceReportSubjectType, P as CheckpointResult, Pn as SandboxFleetPolicy, Pr as AgentProfileConfidential, Pt as McpServerConfig, Q as DriverConfig, Qn as SandboxTraceExport, Qt as PromptResult, R as CodeResult, Rn as SandboxFleetTraceExport, Rr as AgentProfilePermissionValue, Rt as NetworkManager, S as BackendConfig, Sn as SandboxFleetDispatchResponse, Sr as TeeAttestationResponse, St as GitStatus, T as BackendStatus, Tn as SandboxFleetInfo, Tr as TokenRefreshHandler, Tt as IntelligenceReport, Un as SandboxFleetWorkspaceRestoreResult, Ur as AgentProfileValidationResult, Ut as Process, V as CreateIntelligenceReportOptions, Vn as SandboxFleetWorkspace, Vr as AgentProfileResources, Vt as PreviewLinkInfo, W as CreateSandboxFleetWithCoordinatorOptions, Wn as SandboxFleetWorkspaceSnapshotResult, Wr as AgentSubagentProfile, Wt as ProcessInfo, X as DownloadOptions, Xn as SandboxTraceBundle, Y as DispatchedSession, Yn as SandboxStatus, Yt as ProcessStatus, Z as DownloadProgress, Zn as SandboxTraceEvent, Zt as PromptOptions, _ as AcceleratorKind, _n as SandboxEvent, _r as SubscriptionInfo, _t as GitAuth, a as TraceExportSink, an as PublishPublicTemplateOptions, ar as SecretInfo, at as FileSystem, b as AttachSandboxFleetMachineOptions, bn as SandboxFleetCostEstimate, br as TeeAttestationOptions, bt as GitConfig, c as otelTraceIdForTangleTrace, cn as ReapExpiredSandboxFleetsResult, cr as SessionInfo, ct as FleetDispatchResultBufferOptions, d as BuildSandboxMcpConfigOptions, dn as RunCodeOptions, dr as SessionStatus, en as ProvisionResult, er as SandboxUser, et as DriverType, f as SANDBOX_MCP_SERVER_NAME, fn as SSHCommandDescriptor, fr as SnapshotInfo, ft as FleetMachineId, g as buildSandboxMcpConfig, gn as SandboxEnvironment, gr as StorageConfig, gt as ForkResult, h as SandboxMcpServerEntry, hn as SandboxConnection, ht as ForkOptions, i as TraceExportResult, in as PublicTemplateVersionInfo, ir as SearchOptions, it as FileInfo, j as BatchTaskResult, jn as SandboxFleetManifest, jr as WaitForOptions, jt as ListOptions, k as BatchResult, kn as SandboxFleetMachineRecord, kr as UploadProgress, kt as IntelligenceReportWindow, l as toOtelJson, ln as ReconcileSandboxFleetsOptions, lr as SessionListOptions, lt as FleetDispatchStreamOptions, m as SandboxMcpEndpoint, mn as SandboxClientConfig, mr as SnapshotResult, n as SandboxInstance, nn as ProvisionStep, nr as ScopedTokenScope, nt as ExecOptions, o as buildTraceExportPayload, on as PublishPublicTemplateVersionOptions, or as SecretsManager, ot as FleetDispatchCancelResult, p as SandboxMcpConfig, pn as SSHCredentials, pr as SnapshotOptions, pt as FleetPromptDispatchOptions, q as DirectoryPermission, qn as SandboxPermissionsConfig, qr as defineInlineResource, qt as ProcessSignal, r as TraceExportFormat, rn as PublicTemplateInfo, rr as SearchMatch, rt as ExecResult, s as exportTraceBundle, sn as ReapExpiredSandboxFleetsOptions, sr as SessionEventStreamOptions, st as FleetDispatchResultBuffer, tn as ProvisionStatus, tr as ScopedToken, tt as EventStreamOptions, u as SandboxSession, un as ReconcileSandboxFleetsResult, ur as SessionMessage, ut as FleetExecDispatchOptions, v as AccessPolicyRule, vn as SandboxFleetArtifact, vr as TaskOptions, vt as GitBranch, w as BackendManager, wn as SandboxFleetDriverTimings, wr as TeePublicKeyResponse, wt as InstalledTool, x as BackendCapabilities, xn as SandboxFleetDispatchFailureClass, xr as TeeAttestationReport, xt as GitDiff, y as AddUserOptions, yn as SandboxFleetArtifactSpec, yr as TaskResult, yt as GitCommit, zn as SandboxFleetTraceOptions, zr as AgentProfilePrompt, zt as PermissionLevel } from "./sandbox-CpK8etqP.js";
2
+ import { A as SandboxFleetClient, C as IntegrationVerificationKind, D as TriggerRun, E as TriggerInfo, M as ParsedSSEEvent, N as parseSSEStream, O as TriggerWithSecret, S as IntegrationScope, T as RecipeManifest, _ as IntegrationAction, a as Team, b as IntegrationPrincipalType, c as AutomationInfo, d as CreateEndpointInput, f as CreateTriggerInput, g as InstallRecipeInput, h as EndpointWithSecret, i as SandboxClient, j as ParseSSEStreamOptions, k as SandboxFleet, l as ConnectionInfo, m as EndpointInfo, n as IntelligenceClient, o as TeamInvitation, p as DeliveryAttempt, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as CreateAutomationInput, v as IntegrationActionKind, w as IntegrationsManager, x as IntegrationProvider, y as IntegrationDeliveryStatus } from "./client-BuPZLOxS.js";
3
+ import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-D-2pH_70.js";
4
+ import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-D7bwmNs8.js";
5
+ import { a as PartialFailureError, c as SandboxErrorJson, d as StateError, f as TimeoutError, i as NotFoundError, l as SandboxFailureDetail, n as CapabilityError, o as QuotaError, p as ValidationError, r as NetworkError, s as SandboxError, t as AuthError, u as ServerError } from "./errors-1Se5ATyZ.js";
5
6
  import { IntegrationActor, IntegrationManifest, IntegrationRequirement } from "./platform-integrations.js";
6
- import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-DhNGZ0h4.js";
7
+ import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-2gFsmmQs.js";
7
8
 
8
9
  //#region src/attestation-heartbeat.d.ts
9
10
  interface TeeAttestationHeartbeatSample {
@@ -552,4 +553,4 @@ declare const MANAGE_SANDBOXES_PARAMETERS: {
552
553
  };
553
554
  };
554
555
  //#endregion
555
- export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentProfile, type AgentProfileCapabilities, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentSubagentProfile, type AnyTokenPayload, type AttachSandboxFleetMachineOptions, AuthError, type AutomationInfo, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchEvent, type BatchOptions, type BatchResult, type BatchTask, type BatchTaskResult, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CapabilityError, type CheckpointInfo, type CheckpointOptions, type CheckpointResult, type CodeResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type ConfidentialSandboxResult, type ConfidentialTeeType, type ConnectionInfo, type CreateAutomationInput, type CreateConfidentialSandboxOptions, type CreateEndpointInput, type CreateIntelligenceReportOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateTeamOptions, type CreateTriggerInput, type DeleteOptions, type DeliveryAttempt, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriverConfig, type DriverInfo, type DriverType, type EndpointInfo, type EndpointWithSecret, type EventStreamOptions, type ExecOptions, type ExecResult, type FileInfo, type FileSystem, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type ForkOptions, type ForkResult, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuType, Image, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstallRecipeInput, type InstalledTool, type IntegrationAction, type IntegrationActionKind, type IntegrationActor, type IntegrationDeliveryStatus, type IntegrationManifest, type IntegrationPrincipalType, type IntegrationProvider, type IntegrationRequirement, type IntegrationScope, type IntegrationVerificationKind, IntegrationsManager, type RecipeManifest as IntegrationsRecipeManifest, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type Process, type ProcessInfo, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RunCodeOptions, SANDBOX_MCP_SERVER_NAME, type SSHCommandDescriptor, type SSHCredentials, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPermissionsConfig, type SandboxResources, SandboxSession, type SandboxStatus, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, ServerError, type SessionEventStreamOptions, type SessionInfo, type SessionListOptions, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, StateError, type StorageConfig, type SubscriptionInfo, TangleSandboxClient, type TangleSandboxClientConfig, type TaskOptions, type TaskResult, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, TimeoutError, type TokenRefreshHandler, type ToolsConfig, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TriggerInfo, type TriggerRun, type TriggerWithSecret, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, buildCollaborationDocumentId, buildSandboxMcpConfig, buildTraceExportPayload, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, generateAttestationNonce, generateDockerfile, mergeAgentProfiles, normalizeCollaborationPath, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, startTeeAttestationHeartbeat, toOtelJson };
556
+ export { type AcceleratorKind, type AccessPolicyRule, type AddUserOptions, type AgentProfile, type AgentProfileCapabilities, type AgentProfileFileMount, type AgentProfileMcpServer, type AgentProfileModelHints, type AgentProfilePermissionValue, type AgentProfilePrompt, type AgentProfileResourceRef, type AgentProfileResources, type AgentProfileValidationIssue, type AgentProfileValidationResult, type AgentSubagentProfile, type AnyTokenPayload, type AttachSandboxFleetMachineOptions, AuthError, type AutomationInfo, type BackendCapabilities, type BackendConfig, type BackendInfo, type BackendManager, type BackendStatus, type BackendType, type BatchEvent, type BatchOptions, type BatchResult, type BatchTask, type BatchTaskResult, type BuildProgressEvent, type BuildSandboxMcpConfigOptions, CapabilityError, type CheckpointInfo, type CheckpointOptions, type CheckpointResult, type CodeResult, type CollaborationAccess, type CollaborationBootstrapRequest, type CollaborationBootstrapResponse, CollaborationClient, type CollaborationClientConfig, type CollaborationDocumentAdapter, type CollaborationDocumentChange, type CollaborationDocumentRef, CollaborationFileBridge, type CollaborationFileBridgeOptions, type CollaborationFileEvent, type CollaborationPermissions, type CollaborationTokenPayload, type CollaborationTokenRefreshRequest, type CollaborationTokenRefreshResponse, type CollaborationTransportConfig, type CompletedTurnResult, type ConfidentialSandboxResult, type ConfidentialTeeType, type ConnectionInfo, type CreateAutomationInput, type CreateConfidentialSandboxOptions, type CreateEndpointInput, type CreateIntelligenceReportOptions, type CreateSandboxFleetOptions, type CreateSandboxFleetWithCoordinatorOptions, type CreateSandboxOptions, type CreateTeamOptions, type CreateTriggerInput, type DeleteOptions, type DeliveryAttempt, type DirectoryPermission, type DispatchPromptOptions, type DispatchedSession, type DownloadOptions, type DownloadProgress, type DriverConfig, type DriverInfo, type DriverType, type EndpointInfo, type EndpointWithSecret, type EventStreamOptions, type ExecOptions, type ExecResult, type FileInfo, type FileSystem, type FleetDispatchCancelResult, type FleetDispatchResultBuffer, type FleetDispatchResultBufferOptions, type FleetDispatchStreamOptions, type FleetExecDispatchOptions, type FleetMachineId, type FleetPromptDispatchOptions, type ForkOptions, type ForkResult, type GitAuth, type GitBranch, type GitCommit, type GitConfig, type GitDiff, type GitStatus, type GpuType, Image, type ImageBuildOptions, type ImageBuildResult, ImageBuilder, type ImageSpec, type InstallRecipeInput, type InstalledTool, type IntegrationAction, type IntegrationActionKind, type IntegrationActor, type IntegrationDeliveryStatus, type IntegrationManifest, type IntegrationPrincipalType, type IntegrationProvider, type IntegrationRequirement, type IntegrationScope, type IntegrationVerificationKind, IntegrationsManager, type RecipeManifest as IntegrationsRecipeManifest, IntelligenceClient, type IntelligenceReport, type IntelligenceReportBudget, type IntelligenceReportCompareTo, type IntelligenceReportSubjectType, type IntelligenceReportWindow, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListMessagesOptions, type ListOptions, type ListSandboxFleetOptions, type ListSandboxOptions, MANAGE_SANDBOXES_PARAMETERS, MANAGE_SANDBOXES_TOOL_NAME, type ManageSandboxesInput, type ManageSandboxesTool, type ManageSandboxesToolOptions, type McpServerConfig, type MintScopedTokenOptions, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, PartialFailureError, type PermissionLevel, type PermissionsManager, type PreviewLinkInfo, type PreviewLinkManager, type Process, type ProcessInfo, type ProcessLogEntry, type ProcessManager, type ProcessSignal, type ProcessSpawnOptions, type ProcessStatus, type PromptOptions, type PromptResult, type ProvisionEvent, type ProvisionResult, type ProvisionStatus, type ProvisionStep, type PublicTemplateInfo, type PublicTemplateVersionInfo, type PublishPublicTemplateOptions, type PublishPublicTemplateVersionOptions, QuotaError, type ReapExpiredSandboxFleetsOptions, type ReapExpiredSandboxFleetsResult, type ReconcileSandboxFleetsOptions, type ReconcileSandboxFleetsResult, type RunCodeOptions, SANDBOX_MCP_SERVER_NAME, type SSHCommandDescriptor, type SSHCredentials, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxErrorJson, type SandboxEvent, type SandboxFailureDetail, SandboxFleet, type SandboxFleetArtifact, type SandboxFleetArtifactSpec, SandboxFleetClient, type SandboxFleetCostEstimate, type SandboxFleetDispatchFailureClass, type SandboxFleetDispatchResponse, type SandboxFleetDriverCapability, type SandboxFleetDriverTimings, type SandboxFleetInfo, type SandboxFleetIntelligenceEnvelope, type SandboxFleetMachine, type SandboxFleetMachineMeteredUsage, type SandboxFleetMachineRecord, type SandboxFleetMachineSpec, type SandboxFleetManifest, type SandboxFleetManifestMachine, type SandboxFleetOperationsSummary, type SandboxFleetPolicy, type SandboxFleetToken, type SandboxFleetTraceBundle, type SandboxFleetTraceEvent, type SandboxFleetTraceExport, type SandboxFleetTraceOptions, type SandboxFleetUsage, type SandboxFleetWorkspace, type SandboxFleetWorkspaceReconcileResult, type SandboxFleetWorkspaceRestoreResult, type SandboxFleetWorkspaceSnapshotResult, type SandboxInfo, SandboxInstance, type SandboxIntelligenceEnvelope, type SandboxMcpConfig, type SandboxMcpEndpoint, type SandboxMcpServerEntry, type SandboxPermissionsConfig, type SandboxResources, SandboxSession, type SandboxStatus, type SandboxTraceBundle, type SandboxTraceEvent, type SandboxTraceExport, type SandboxTraceOptions, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type ScopedToken, type ScopedTokenScope, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, ServerError, type SessionEventStreamOptions, type SessionInfo, type SessionListOptions, type SessionMessage, type SessionStatus, type SnapshotInfo, type SnapshotOptions, type SnapshotResult, StateError, type StorageConfig, type SubscriptionInfo, TangleSandboxClient, type TangleSandboxClientConfig, type TaskOptions, type TaskResult, type Team, type TeamInvitation, type TeamMember, type TeeAttestationHeartbeat, type TeeAttestationHeartbeatOptions, type TeeAttestationHeartbeatSample, type TeeAttestationOptions, type TeeAttestationReport, type TeeAttestationResponse, type TeePublicKey, type TeePublicKeyResponse, TimeoutError, type TokenRefreshHandler, type ToolsConfig, type TraceExportFormat, type TraceExportResult, type TraceExportSink, type TriggerInfo, type TriggerRun, type TriggerWithSecret, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, buildCollaborationDocumentId, buildSandboxMcpConfig, buildTraceExportPayload, createConfidentialSandbox, createManageSandboxesTool, defineAgentProfile, defineGitHubResource, defineInlineResource, exportTraceBundle, generateAttestationNonce, generateDockerfile, mergeAgentProfiles, normalizeCollaborationPath, otelTraceIdForTangleTrace, parseCollaborationDocumentId, parseSSEStream, startTeeAttestationHeartbeat, toOtelJson };