@tangle-network/sandbox 0.1.2 → 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.
Files changed (37) hide show
  1. package/README.md +561 -2
  2. package/dist/agent/index.d.ts +435 -0
  3. package/dist/agent/index.js +1 -0
  4. package/dist/auth/index.d.ts +2 -2
  5. package/dist/auth/index.js +1 -1
  6. package/dist/client-BuPZLOxS.d.ts +1050 -0
  7. package/dist/client-BwRV2Zun.js +1 -0
  8. package/dist/collaboration/index.d.ts +1 -1
  9. package/dist/collaboration/index.js +1 -1
  10. package/dist/collaboration-CRyb5e8F.js +1 -0
  11. package/dist/core.d.ts +4 -3
  12. package/dist/core.js +1 -1
  13. package/dist/errors-1Se5ATyZ.d.ts +128 -0
  14. package/dist/errors-CljiGR__.js +1 -0
  15. package/dist/{index-t7xkzv0U.d.ts → index-2gFsmmQs.d.ts} +3 -3
  16. package/dist/{index-gA-oRjOi.d.ts → index-D-2pH_70.d.ts} +35 -4
  17. package/dist/{index-BuS8nl3b.d.ts → index-D7bwmNs8.d.ts} +6 -1
  18. package/dist/index.d.ts +110 -62
  19. package/dist/index.js +1 -1
  20. package/dist/openai/index.d.ts +641 -0
  21. package/dist/openai/index.js +1 -0
  22. package/dist/platform-integrations.d.ts +2 -0
  23. package/dist/platform-integrations.js +1 -0
  24. package/dist/{sandbox-BvZ0-Iv7.d.ts → sandbox-CpK8etqP.d.ts} +1735 -41
  25. package/dist/sandbox-DTup2jzz.js +1 -0
  26. package/dist/session-gateway/index.js +1 -1
  27. package/dist/tangle/index.d.ts +1 -1
  28. package/dist/tangle/index.js +1 -1
  29. package/dist/tangle-CnYnTRi6.js +1 -0
  30. package/package.json +114 -34
  31. package/LICENSE +0 -11
  32. package/dist/client-CcRvqt85.js +0 -1
  33. package/dist/collaboration-CVvhPU8M.js +0 -1
  34. package/dist/errors-AIT8qikt.d.ts +0 -491
  35. package/dist/errors-CdMTv7uG.js +0 -1
  36. package/dist/sandbox-D1JnQIJx.js +0 -1
  37. package/dist/tangle-CSb9rjAh.js +0 -1
package/dist/core.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2e4c30,_0x48ee37){var _0x4e5715=a0_0xea46,_0x285c6d=_0x2e4c30();while(!![]){try{var _0x6f7992=parseInt(_0x4e5715(0x1fe))/0x1*(parseInt(_0x4e5715(0x1fd))/0x2)+parseInt(_0x4e5715(0x1f2))/0x3*(-parseInt(_0x4e5715(0x1fa))/0x4)+-parseInt(_0x4e5715(0x1f7))/0x5+parseInt(_0x4e5715(0x1f5))/0x6*(-parseInt(_0x4e5715(0x1f9))/0x7)+parseInt(_0x4e5715(0x1f8))/0x8*(-parseInt(_0x4e5715(0x1f3))/0x9)+-parseInt(_0x4e5715(0x1f4))/0xa*(-parseInt(_0x4e5715(0x1fb))/0xb)+-parseInt(_0x4e5715(0x1fc))/0xc*(-parseInt(_0x4e5715(0x1f6))/0xd);if(_0x6f7992===_0x48ee37)break;else _0x285c6d['push'](_0x285c6d['shift']());}catch(_0x3d3e15){_0x285c6d['push'](_0x285c6d['shift']());}}}(a0_0x2aa2,0x3cbcb));import{a as a0_0x2331bf,c as a0_0x5296be,i as a0_0x2e2239,l as a0_0x3d5139,n as a0_0x38bd57,o as a0_0x4d90a0,r as a0_0x2cf5ac,s as a0_0x6f10c1,t as a0_0x1f299d}from'\x2e\x2f\x65\x72\x72\x6f\x72\x73\x2d\x43\x64\x4d\x54\x76\x37\x75\x47\x2e\x6a\x73';import{t as a0_0x1e8585}from'\x2e\x2f\x73\x61\x6e\x64\x62\x6f\x78\x2d\x44\x31\x4a\x6e\x51\x49\x4a\x78\x2e\x6a\x73';import{t as a0_0x1f07ae}from'\x2e\x2f\x63\x6c\x69\x65\x6e\x74\x2d\x43\x63\x52\x76\x71\x74\x38\x35\x2e\x6a\x73';function a0_0x2aa2(){var _0x526590=['\x6d\x74\x47\x35\x6e\x4b\x31\x6a\x76\x32\x48\x56\x73\x61','\x6f\x65\x76\x48\x45\x4d\x39\x6c\x73\x71','\x6d\x4a\x75\x31\x6e\x64\x62\x4a\x7a\x4e\x48\x72\x44\x32\x6d','\x6d\x74\x4b\x59\x6e\x64\x6a\x54\x72\x33\x66\x4d\x72\x66\x4f','\x6d\x4a\x47\x33\x6d\x64\x43\x32\x6e\x4d\x58\x6c\x43\x32\x72\x6b\x73\x57','\x6f\x74\x75\x30\x6d\x66\x7a\x4d\x77\x68\x6a\x57\x74\x61','\x6e\x64\x6a\x6f\x74\x32\x58\x67\x76\x4d\x75','\x6e\x5a\x65\x57\x6f\x64\x72\x4c\x7a\x77\x76\x64\x77\x4b\x65','\x6d\x74\x43\x30\x6d\x74\x61\x34\x6d\x65\x39\x6f\x41\x77\x39\x72\x43\x47','\x6f\x65\x66\x59\x71\x4c\x44\x71\x76\x71','\x6d\x5a\x69\x30\x6e\x74\x4c\x6a\x45\x68\x44\x34\x44\x32\x79','\x6d\x74\x61\x34\x71\x4b\x76\x70\x7a\x78\x48\x63','\x6d\x74\x43\x35\x6d\x30\x4c\x57\x73\x4d\x4c\x30\x43\x71'];a0_0x2aa2=function(){return _0x526590;};return a0_0x2aa2();}function a0_0xea46(_0x1c9b4c,_0x47130d){_0x1c9b4c=_0x1c9b4c-0x1f2;var _0x2aa227=a0_0x2aa2();var _0xea46b0=_0x2aa227[_0x1c9b4c];if(a0_0xea46['\x47\x53\x6d\x4d\x78\x68']===undefined){var _0x3a9951=function(_0x4b06e5){var _0x377251='\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';var _0x2331bf='',_0x5296be='';for(var _0x2e2239=0x0,_0x3d5139,_0x38bd57,_0x4d90a0=0x0;_0x38bd57=_0x4b06e5['\x63\x68\x61\x72\x41\x74'](_0x4d90a0++);~_0x38bd57&&(_0x3d5139=_0x2e2239%0x4?_0x3d5139*0x40+_0x38bd57:_0x38bd57,_0x2e2239++%0x4)?_0x2331bf+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x3d5139>>(-0x2*_0x2e2239&0x6)):0x0){_0x38bd57=_0x377251['\x69\x6e\x64\x65\x78\x4f\x66'](_0x38bd57);}for(var _0x2cf5ac=0x0,_0x6f10c1=_0x2331bf['\x6c\x65\x6e\x67\x74\x68'];_0x2cf5ac<_0x6f10c1;_0x2cf5ac++){_0x5296be+='\x25'+('\x30\x30'+_0x2331bf['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2cf5ac)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x5296be);};a0_0xea46['\x79\x6c\x67\x52\x47\x77']=_0x3a9951,a0_0xea46['\x4b\x4e\x71\x56\x53\x57']={},a0_0xea46['\x47\x53\x6d\x4d\x78\x68']=!![];}var _0x12a8ee=_0x2aa227[0x0],_0x5ab1f2=_0x1c9b4c+_0x12a8ee,_0x465a84=a0_0xea46['\x4b\x4e\x71\x56\x53\x57'][_0x5ab1f2];return!_0x465a84?(_0xea46b0=a0_0xea46['\x79\x6c\x67\x52\x47\x77'](_0xea46b0),a0_0xea46['\x4b\x4e\x71\x56\x53\x57'][_0x5ab1f2]=_0xea46b0):_0xea46b0=_0x465a84,_0xea46b0;}export{a0_0x1f299d as AuthError,a0_0x38bd57 as NetworkError,a0_0x2cf5ac as NotFoundError,a0_0x2e2239 as QuotaError,a0_0x1f07ae as Sandbox,a0_0x1f07ae as SandboxClient,a0_0x2331bf as SandboxError,a0_0x1e8585 as SandboxInstance,a0_0x4d90a0 as ServerError,a0_0x6f10c1 as StateError,a0_0x5296be as TimeoutError,a0_0x3d5139 as ValidationError};
1
+ (function(_0x2ece7b,_0x5602e2){var _0xdf376e=a0_0x4f4d,_0x1b12bc=_0x2ece7b();while(!![]){try{var _0x175d7f=parseInt(_0xdf376e(0xeb))/0x1+parseInt(_0xdf376e(0xe7))/0x2+-parseInt(_0xdf376e(0xea))/0x3+-parseInt(_0xdf376e(0xed))/0x4*(-parseInt(_0xdf376e(0xec))/0x5)+-parseInt(_0xdf376e(0xe6))/0x6+parseInt(_0xdf376e(0xe9))/0x7*(-parseInt(_0xdf376e(0xe8))/0x8)+-parseInt(_0xdf376e(0xe5))/0x9;if(_0x175d7f===_0x5602e2)break;else _0x1b12bc['push'](_0x1b12bc['shift']());}catch(_0x5daa33){_0x1b12bc['push'](_0x1b12bc['shift']());}}}(a0_0x55e7,0xc63ff));function a0_0x55e7(){var _0x41c9e0=['\x6d\x74\x47\x31\x6e\x74\x47\x34\x6e\x30\x48\x74\x73\x78\x7a\x77\x74\x47','\x6d\x74\x69\x33\x6d\x64\x79\x30\x6f\x78\x62\x72\x77\x76\x7a\x77\x43\x57','\x6d\x74\x47\x5a\x6e\x77\x7a\x6a\x76\x32\x6e\x79\x76\x61','\x6f\x74\x47\x34\x6e\x65\x50\x7a\x77\x78\x48\x50\x43\x57','\x6e\x74\x6d\x34\x6f\x74\x43\x58\x6d\x33\x48\x34\x41\x33\x50\x4b\x77\x61','\x6d\x4a\x4b\x59\x6d\x5a\x4b\x30\x6e\x65\x54\x6e\x72\x78\x62\x34\x42\x47','\x6d\x74\x6d\x33\x6e\x74\x4b\x59\x6d\x65\x58\x73\x76\x33\x44\x56\x74\x47','\x6d\x74\x65\x58\x6e\x74\x79\x57\x44\x4d\x58\x6b\x77\x75\x58\x62','\x6d\x74\x43\x31\x72\x30\x48\x73\x74\x4d\x6a\x74'];a0_0x55e7=function(){return _0x41c9e0;};return a0_0x55e7();}import{a as a0_0x5aa0b9,c as a0_0x293922,d as a0_0x19e977,i as a0_0x3f436a,l as a0_0x3754a3,n as a0_0x536e22,o as a0_0x355263,r as a0_0x4eec82,s as a0_0x5754ed,t as a0_0xe1c7fb,u as a0_0x4f34ae}from'\x2e\x2f\x65\x72\x72\x6f\x72\x73\x2d\x43\x6c\x6a\x69\x47\x52\x5f\x5f\x2e\x6a\x73';function a0_0x4f4d(_0x2a7aab,_0x31b43b){_0x2a7aab=_0x2a7aab-0xe5;var _0x55e705=a0_0x55e7();var _0x4f4d3e=_0x55e705[_0x2a7aab];if(a0_0x4f4d['\x4d\x79\x4e\x58\x54\x74']===undefined){var _0x409f5c=function(_0x2e8e39){var _0xa432b8='\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';var _0x5aa0b9='',_0x293922='';for(var _0x19e977=0x0,_0x3f436a,_0x3754a3,_0x536e22=0x0;_0x3754a3=_0x2e8e39['\x63\x68\x61\x72\x41\x74'](_0x536e22++);~_0x3754a3&&(_0x3f436a=_0x19e977%0x4?_0x3f436a*0x40+_0x3754a3:_0x3754a3,_0x19e977++%0x4)?_0x5aa0b9+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x3f436a>>(-0x2*_0x19e977&0x6)):0x0){_0x3754a3=_0xa432b8['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3754a3);}for(var _0x355263=0x0,_0x4eec82=_0x5aa0b9['\x6c\x65\x6e\x67\x74\x68'];_0x355263<_0x4eec82;_0x355263++){_0x293922+='\x25'+('\x30\x30'+_0x5aa0b9['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x355263)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x293922);};a0_0x4f4d['\x62\x4d\x5a\x64\x5a\x66']=_0x409f5c,a0_0x4f4d['\x79\x65\x46\x5a\x57\x67']={},a0_0x4f4d['\x4d\x79\x4e\x58\x54\x74']=!![];}var _0x35f018=_0x55e705[0x0],_0x37db9d=_0x2a7aab+_0x35f018,_0x257b6f=a0_0x4f4d['\x79\x65\x46\x5a\x57\x67'][_0x37db9d];return!_0x257b6f?(_0x4f4d3e=a0_0x4f4d['\x62\x4d\x5a\x64\x5a\x66'](_0x4f4d3e),a0_0x4f4d['\x79\x65\x46\x5a\x57\x67'][_0x37db9d]=_0x4f4d3e):_0x4f4d3e=_0x257b6f,_0x4f4d3e;}import{t as a0_0x46fa31}from'\x2e\x2f\x73\x61\x6e\x64\x62\x6f\x78\x2d\x44\x54\x75\x70\x32\x6a\x7a\x7a\x2e\x6a\x73';import{n as a0_0x3e5b40}from'\x2e\x2f\x63\x6c\x69\x65\x6e\x74\x2d\x42\x77\x52\x56\x32\x5a\x75\x6e\x2e\x6a\x73';export{a0_0xe1c7fb as AuthError,a0_0x536e22 as CapabilityError,a0_0x4eec82 as NetworkError,a0_0x3f436a as NotFoundError,a0_0x5aa0b9 as PartialFailureError,a0_0x355263 as QuotaError,a0_0x3e5b40 as Sandbox,a0_0x3e5b40 as SandboxClient,a0_0x5754ed as SandboxError,a0_0x46fa31 as SandboxInstance,a0_0x293922 as ServerError,a0_0x3754a3 as StateError,a0_0x4f34ae as TimeoutError,a0_0x19e977 as ValidationError};
@@ -0,0 +1,128 @@
1
+ //#region src/errors.d.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
+ declare class SandboxError extends Error {
11
+ /** HTTP status code if applicable */
12
+ readonly status?: number;
13
+ /** Error code for programmatic handling */
14
+ readonly code: string;
15
+ /** Best-effort origin of the failing request */
16
+ readonly origin?: SandboxErrorOrigin;
17
+ /** Request path or endpoint when known */
18
+ readonly endpoint?: string;
19
+ /** Retry-after duration in ms when surfaced by the upstream */
20
+ readonly retryAfterMs?: number;
21
+ /** Sidecar version when the runtime emitted it */
22
+ readonly sidecarVersion?: string;
23
+ /** Sidecar image/tag/sha when the runtime emitted it */
24
+ readonly containerImage?: string;
25
+ constructor(message: string, code: string, status?: number, metadata?: SandboxErrorMetadata);
26
+ }
27
+ type SandboxErrorOrigin = "sidecar" | "sandbox-api" | "control-plane" | "runtime" | "unknown";
28
+ interface SandboxErrorMetadata {
29
+ origin?: SandboxErrorOrigin;
30
+ endpoint?: string;
31
+ retryAfterMs?: number;
32
+ sidecarVersion?: string;
33
+ containerImage?: string;
34
+ }
35
+ type SandboxErrorJson = string | number | boolean | null | {
36
+ [key: string]: SandboxErrorJson;
37
+ } | SandboxErrorJson[];
38
+ type SandboxFailureDetail = {
39
+ [key: string]: SandboxErrorJson;
40
+ };
41
+ /**
42
+ * Authentication failed or API key is invalid.
43
+ */
44
+ declare class AuthError extends SandboxError {
45
+ constructor(message?: string, metadata?: SandboxErrorMetadata);
46
+ }
47
+ /**
48
+ * The requested resource was not found.
49
+ */
50
+ declare class NotFoundError extends SandboxError {
51
+ /** The resource type that was not found */
52
+ readonly resourceType: string;
53
+ /** The resource ID that was not found */
54
+ readonly resourceId: string;
55
+ constructor(resourceType: string, resourceId: string, metadata?: SandboxErrorMetadata);
56
+ }
57
+ /**
58
+ * Account quota or rate limit exceeded.
59
+ */
60
+ declare class QuotaError extends SandboxError {
61
+ /** The type of quota that was exceeded */
62
+ readonly quotaType: string;
63
+ /** Current usage */
64
+ readonly current?: number;
65
+ /** Maximum allowed */
66
+ readonly limit?: number;
67
+ /** Suggested retry-after duration in ms */
68
+ readonly retryAfterMs?: number;
69
+ constructor(quotaType: string, message?: string, current?: number, limit?: number, metadata?: SandboxErrorMetadata, status?: number);
70
+ }
71
+ /**
72
+ * The requested capability is unavailable for the account, driver, or sandbox.
73
+ */
74
+ declare class CapabilityError extends SandboxError {
75
+ /** Capability or feature that was rejected when known */
76
+ readonly capability?: string;
77
+ constructor(message: string, code?: string, status?: number, metadata?: SandboxErrorMetadata, capability?: string);
78
+ }
79
+ /**
80
+ * A multi-resource operation failed for one or more branches.
81
+ */
82
+ declare class PartialFailureError extends SandboxError {
83
+ /** Per-resource failures returned by the API when available */
84
+ readonly failures?: SandboxFailureDetail[];
85
+ constructor(message: string, code?: string, status?: number, metadata?: SandboxErrorMetadata, failures?: SandboxFailureDetail[]);
86
+ }
87
+ /**
88
+ * The request was invalid or malformed.
89
+ */
90
+ declare class ValidationError extends SandboxError {
91
+ /** Field-level validation errors */
92
+ readonly fields?: Record<string, string>;
93
+ constructor(message: string, fields?: Record<string, string>, metadata?: SandboxErrorMetadata);
94
+ }
95
+ /**
96
+ * The sandbox is not in a valid state for the requested operation.
97
+ */
98
+ declare class StateError extends SandboxError {
99
+ /** Current state of the sandbox */
100
+ readonly currentState: string;
101
+ /** Required state for the operation */
102
+ readonly requiredState?: string;
103
+ constructor(message: string, currentState: string, requiredState?: string, metadata?: SandboxErrorMetadata);
104
+ }
105
+ /**
106
+ * The request timed out.
107
+ */
108
+ declare class TimeoutError extends SandboxError {
109
+ /** Timeout duration in milliseconds */
110
+ readonly timeoutMs: number;
111
+ constructor(timeoutMs: number, message?: string, metadata?: SandboxErrorMetadata);
112
+ }
113
+ /**
114
+ * A network or connection error occurred.
115
+ */
116
+ declare class NetworkError extends SandboxError {
117
+ /** The underlying error */
118
+ readonly cause?: Error;
119
+ constructor(message: string, causeOrMetadata?: Error | SandboxErrorMetadata, metadata?: SandboxErrorMetadata);
120
+ }
121
+ /**
122
+ * The server returned an unexpected error.
123
+ */
124
+ declare class ServerError extends SandboxError {
125
+ constructor(message: string, status?: number, metadata?: SandboxErrorMetadata);
126
+ }
127
+ //#endregion
128
+ export { PartialFailureError as a, SandboxErrorJson as c, StateError as d, TimeoutError as f, NotFoundError as i, SandboxFailureDetail as l, CapabilityError as n, QuotaError as o, ValidationError as p, NetworkError as r, SandboxError as s, AuthError as t, ServerError as u };
@@ -0,0 +1 @@
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 { b as CreateSandboxOptions, n as SandboxInstance, t as HttpClient } from "./sandbox-BvZ0-Iv7.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
  /**
@@ -127,8 +127,8 @@ declare const SandboxCreateParamTypes: readonly [{
127
127
  readonly name: "ssh_enabled";
128
128
  readonly type: "bool";
129
129
  }, {
130
- readonly name: "ssh_public_key";
131
- readonly type: "string";
130
+ readonly name: "ssh_public_keys";
131
+ readonly type: "string[]";
132
132
  }, {
133
133
  readonly name: "web_terminal_enabled";
134
134
  readonly type: "bool";
@@ -120,10 +120,41 @@ declare function issueBatchScopedToken(signingSecret: string, payload: Omit<Read
120
120
  */
121
121
  declare function issueCollaborationToken(signingSecret: string, payload: IssueCollaborationTokenOptions, ttlMinutes: number): string;
122
122
  /**
123
- * Decode a JWT without verification (to extract claims for lookup).
124
- * Returns null if the token is malformed.
123
+ * Decode a JWT **without verifying its signature**.
124
+ *
125
+ * The deliberately scary name is the API contract: an HMAC-signed token
126
+ * whose signature has not been verified is a self-asserted blob of JSON,
127
+ * not an authenticated claim. Treating its fields as authoritative
128
+ * (e.g. `if (unsafeDecodeToken(t).sub === userId) grantAccess()`) is a
129
+ * straightforward authorization bypass — an attacker can mint any
130
+ * payload they like.
131
+ *
132
+ * Use this only when the signature has already been validated upstream
133
+ * (e.g. by an API gateway that strips the token after verification),
134
+ * for client-side `exp` peeking to decide whether to refresh, or for
135
+ * routing/logging keyed off non-security-sensitive claims.
136
+ *
137
+ * For any access-control decision, use {@link verifyToken} instead.
138
+ *
139
+ * Returns `null` if the token is malformed.
140
+ */
141
+ declare function unsafeDecodeToken(token: string): AnyTokenPayload | null;
142
+ /**
143
+ * Verify a JWT's HMAC-SHA256 signature against `signingSecret` and
144
+ * check that it has not expired. Returns the decoded payload on
145
+ * success, or `null` on any failure (malformed token, bad signature,
146
+ * expired, or unexpected algorithm).
147
+ *
148
+ * Signature comparison is constant-time. Callers must use this — not
149
+ * {@link unsafeDecodeToken} — for any authorization decision.
150
+ *
151
+ * @param token - The JWT to verify
152
+ * @param signingSecret - The same secret used to issue the token
153
+ * @param options.clockSkewSeconds - Tolerance for `exp` checks; default `0`
125
154
  */
126
- declare function decodeToken(token: string): AnyTokenPayload | null;
155
+ declare function verifyToken(token: string, signingSecret: string, options?: {
156
+ clockSkewSeconds?: number;
157
+ }): AnyTokenPayload | null;
127
158
  /**
128
159
  * Get time until token expires (in seconds).
129
160
  * Returns negative if expired.
@@ -186,4 +217,4 @@ declare class ProductTokenIssuer {
186
217
  getTtlMinutes(tier?: "free" | "pro" | "enterprise"): number;
187
218
  }
188
219
  //#endregion
189
- export { SessionScopedTokenPayload as _, issueBatchScopedToken as a, issueReadToken as c, BatchScopedTokenPayload as d, CollaborationAccess as f, ReadTokenPayload as g, ProjectScopedTokenPayload as h, isTokenExpiringSoon as i, issueSessionScopedToken as l, IssueCollaborationTokenOptions as m, decodeToken as n, issueCollaborationToken as o, CollaborationTokenPayload as p, getTokenTTL as r, issueProjectScopedToken as s, ProductTokenIssuer as t, AnyTokenPayload as u, TokenScope as v };
220
+ export { ReadTokenPayload as _, issueCollaborationToken as a, issueSessionScopedToken as c, AnyTokenPayload as d, BatchScopedTokenPayload as f, ProjectScopedTokenPayload as g, IssueCollaborationTokenOptions as h, issueBatchScopedToken as i, unsafeDecodeToken as l, CollaborationTokenPayload as m, getTokenTTL as n, issueProjectScopedToken as o, CollaborationAccess as p, isTokenExpiringSoon as r, issueReadToken as s, ProductTokenIssuer as t, verifyToken as u, SessionScopedTokenPayload as v, TokenScope as y };
@@ -4,6 +4,11 @@
4
4
  *
5
5
  * Shared type contracts for collaborative document identity and bootstrap.
6
6
  */
7
+ /**
8
+ * Headers shape accepted by `fetch` requests. Mirrors the standard
9
+ * `HeadersInit` (which is not consistently exported by `@types/node`).
10
+ */
11
+ type CollaborationRequestHeaders = Headers | Record<string, string> | Array<[string, string]>;
7
12
  interface CollaborationDocumentRef {
8
13
  workspaceId: string;
9
14
  relativePath: string;
@@ -80,7 +85,7 @@ interface CollaborationFileBridgeOptions {
80
85
  interface CollaborationClientConfig {
81
86
  baseUrl: string;
82
87
  timeoutMs?: number;
83
- headers?: HeadersInit | (() => HeadersInit | Promise<HeadersInit>);
88
+ headers?: CollaborationRequestHeaders | (() => CollaborationRequestHeaders | Promise<CollaborationRequestHeaders>);
84
89
  fetch?: typeof globalThis.fetch;
85
90
  }
86
91
  //#endregion
package/dist/index.d.ts CHANGED
@@ -1,8 +1,10 @@
1
- import { f as CollaborationAccess, m as IssueCollaborationTokenOptions, p as CollaborationTokenPayload, u as AnyTokenPayload } from "./index-gA-oRjOi.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-BuS8nl3b.js";
3
- import { $ as Process, $t as AgentProfileResourceRef, A as ExecResult, At as StorageConfig, B as GitStatus, Bt as UpdateUserOptions, C as DownloadOptions, Ct as SearchMatch, D as DriverType, Dt as SnapshotInfo, E as DriverInfo, Et as SecretsManager, F as GitAuth, Ft as TeeAttestationReport, G as McpServerConfig, Gt as AgentProfile, H as InstalledTool, Ht as UploadProgress, I as GitBranch, It as TeeAttestationResponse, J as NetworkManager, Jt as AgentProfileFileMount, K as MkdirOptions, Kt as AgentProfileCapabilities, L as GitCommit, Lt as TeePublicKey, M as FileSystem, Mt as TaskOptions, N as ForkOptions, Nt as TaskResult, O as EventStreamOptions, Ot as SnapshotOptions, P as ForkResult, Pt as TeeAttestationOptions, Q as PreviewLinkManager, Qt as AgentProfilePrompt, R as GitConfig, Rt as TeePublicKeyResponse, S as DirectoryPermission, St as SandboxUser, T as DriverConfig, Tt as SecretInfo, U as ListOptions, Ut as UsageInfo, V as GpuType, Vt as UploadOptions, W as ListSandboxOptions, Wt as WaitForOptions, X as PermissionsManager, Xt as AgentProfileModelHints, Y as PermissionLevel, Yt as AgentProfileMcpServer, Z as PreviewLinkInfo, Zt as AgentProfilePermissionValue, _ as CheckpointOptions, _t as SandboxEvent, a as BackendCapabilities, an as defineGitHubResource, at as ProcessStatus, b as CreateSandboxOptions, bt as SandboxResources, c as BackendManager, ct as ProvisionEvent, d as BatchEvent, dt as ProvisionStep, en as AgentProfileResources, et as ProcessInfo, f as BatchOptions, ft as RunCodeOptions, g as CheckpointInfo, gt as SandboxEnvironment, h as BatchTaskResult, ht as SandboxConnection, i as AddUserOptions, in as defineAgentProfile, it as ProcessSpawnOptions, j as FileInfo, jt as SubscriptionInfo, k as ExecOptions, kt as SnapshotResult, l as BackendStatus, lt as ProvisionResult, m as BatchTask, mt as SandboxClientConfig, n as SandboxInstance, nn as AgentProfileValidationResult, nt as ProcessManager, o as BackendConfig, on as defineInlineResource, ot as PromptOptions, p as BatchResult, pt as SSHCredentials, q as NetworkConfig, qt as AgentProfileConfidential, r as AccessPolicyRule, rn as AgentSubagentProfile, rt as ProcessSignal, s as BackendInfo, sn as mergeAgentProfiles, st as PromptResult, tn as AgentProfileValidationIssue, tt as ProcessLogEntry, u as BackendType, ut as ProvisionStatus, v as CheckpointResult, vt as SandboxInfo, w as DownloadProgress, wt as SearchOptions, x as DeleteOptions, xt as SandboxStatus, y as CodeResult, yt as SandboxPermissionsConfig, z as GitDiff, zt as ToolsConfig } from "./sandbox-BvZ0-Iv7.js";
4
- import { a as SandboxError, c as TimeoutError, d as InviteTeamMemberOptions, f as SandboxClient, h as TeamMember, i as QuotaError, l as ValidationError, m as TeamInvitation, n as NetworkError, o as ServerError, p as Team, r as NotFoundError, s as StateError, t as AuthError, u as CreateTeamOptions } from "./errors-AIT8qikt.js";
5
- import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-t7xkzv0U.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";
6
+ import { IntegrationActor, IntegrationManifest, IntegrationRequirement } from "./platform-integrations.js";
7
+ import { s as TangleSandboxClientConfig, t as TangleSandboxClient } from "./index-2gFsmmQs.js";
6
8
 
7
9
  //#region src/attestation-heartbeat.d.ts
8
10
  interface TeeAttestationHeartbeatSample {
@@ -444,65 +446,111 @@ declare class ImageBuilder {
444
446
  */
445
447
  declare function generateDockerfile(spec: ImageSpec): string;
446
448
  //#endregion
447
- //#region src/lib/sse-parser.d.ts
448
- /**
449
- * SSE Stream Parser
450
- *
451
- * EventSource stream parsing for SDK consumers. Implements the
452
- * subset of the SSE spec (§9.2.6) that the platform actually emits —
453
- * LF and CRLF terminators, `event:` / `data:` / `id:` fields, and
454
- * multi-line `data:` dispatch. Used by `SandboxClient.streamBatch`
455
- * and by the web dashboard's batch page; exported so downstream
456
- * surfaces don't maintain their own copies.
457
- *
458
- * Guarantees:
459
- * - Correctly buffers frames that straddle chunk boundaries.
460
- * - Accepts LF- and CRLF-terminated streams interchangeably.
461
- * - Joins multi-line `data:` per the spec (dispatch joins with
462
- * "\n" before JSON parse).
463
- * - Defaults event type to `"message"` when a frame carries
464
- * `data:` but no `event:` field (SSE spec §9.2.6 step 3).
465
- * - Surfaces optional `id:` so callers can implement reconnection.
466
- * - Flushes a dangling event when the stream closes without a
467
- * terminating blank line (well-behaved servers emit `\n\n`, but
468
- * some close early).
469
- * - Throws `AbortError` when the caller-supplied signal fires, so
470
- * consumers can distinguish "ran to completion" from "cancelled"
471
- * without peeking at signal state.
472
- * - Silently drops frames with malformed JSON — the stream remains
473
- * usable and only the individual frame is lost.
474
- *
475
- * What it does NOT do:
476
- * - CR-only (legacy Mac) line terminators. No known emitter uses
477
- * them; supporting them would risk splitting payloads that
478
- * legitimately contain CR.
479
- * - Retry/reconnect (caller's responsibility).
480
- * - Event-type filtering (caller's responsibility).
481
- */
482
- interface ParsedSSEEvent {
483
- /** Event type from the `event:` field, e.g. `task.completed`. */
484
- type: string;
485
- /** Parsed JSON payload from joined `data:` lines. */
486
- data: Record<string, unknown>;
487
- /** Optional `id:` field if the server emitted one. */
488
- id?: string;
449
+ //#region src/manage-sandboxes.d.ts
450
+ declare const MANAGE_SANDBOXES_TOOL_NAME = "manageSandboxes";
451
+ type ManageSandboxesInput = {
452
+ action: "capabilities";
453
+ } | {
454
+ action: "create";
455
+ options: CreateSandboxFleetOptions;
456
+ } | {
457
+ action: "createWithCoordinator";
458
+ options: CreateSandboxFleetWithCoordinatorOptions;
459
+ } | {
460
+ action: "list";
461
+ fleetId: string;
462
+ } | {
463
+ action: "delete";
464
+ fleetId: string;
465
+ } | {
466
+ action: "attachMachine";
467
+ fleetId: string;
468
+ machine: AttachSandboxFleetMachineOptions;
469
+ } | {
470
+ action: "detachMachine";
471
+ fleetId: string;
472
+ machineId: FleetMachineId;
473
+ } | {
474
+ action: "manifest";
475
+ fleetId: string;
476
+ } | {
477
+ action: "usage";
478
+ fleetId: string;
479
+ } | {
480
+ action: "trace";
481
+ fleetId: string;
482
+ } | {
483
+ action: "intelligence";
484
+ fleetId: string;
485
+ } | {
486
+ action: "cost";
487
+ fleetId: string;
488
+ } | {
489
+ action: "createWorkspaceSnapshot";
490
+ fleetId: string;
491
+ } | {
492
+ action: "restoreWorkspaceSnapshot";
493
+ fleetId: string;
494
+ snapshotId: string;
495
+ } | {
496
+ action: "reconcileWorkspace";
497
+ fleetId: string;
498
+ };
499
+ interface ManageSandboxesTool {
500
+ name: typeof MANAGE_SANDBOXES_TOOL_NAME;
501
+ description: string;
502
+ parameters: Record<string, unknown>;
503
+ execute(input: ManageSandboxesInput | Record<string, unknown>): Promise<unknown>;
489
504
  }
490
- interface ParseSSEStreamOptions {
505
+ interface ManageSandboxesToolOptions {
491
506
  /**
492
- * Signal to abort the stream. When aborted, the generator throws
493
- * `AbortError` this is a deliberate departure from silent-return
494
- * semantics so the consumer's for-await loop propagates the abort
495
- * to its own catch block instead of looking like a clean finish.
507
+ * Host-owned caps applied to every create action. The model must not be
508
+ * allowed to choose its own spend, driver, accelerator, or scale policy.
496
509
  */
497
- signal?: AbortSignal;
510
+ policy?: SandboxFleetPolicy;
498
511
  }
499
- /**
500
- * Parse a streaming SSE response body into an async iterable of
501
- * structured events.
502
- *
503
- * @throws `TypeError` when the response has no body.
504
- * @throws `DOMException` with `name === "AbortError"` on cancellation.
505
- */
506
- declare function parseSSEStream(body: ReadableStream<Uint8Array> | null | undefined, options?: ParseSSEStreamOptions): AsyncGenerator<ParsedSSEEvent>;
512
+ declare function createManageSandboxesTool(client: SandboxClient, options?: ManageSandboxesToolOptions): ManageSandboxesTool;
513
+ declare const MANAGE_SANDBOXES_PARAMETERS: {
514
+ readonly type: "object";
515
+ readonly additionalProperties: false;
516
+ readonly required: readonly ["action"];
517
+ readonly properties: {
518
+ readonly action: {
519
+ readonly type: "string";
520
+ readonly enum: readonly ["capabilities", "create", "createWithCoordinator", "list", "delete", "attachMachine", "detachMachine", "manifest", "usage", "trace", "intelligence", "cost", "createWorkspaceSnapshot", "restoreWorkspaceSnapshot", "reconcileWorkspace"];
521
+ };
522
+ readonly fleetId: {
523
+ type: string;
524
+ pattern: string;
525
+ };
526
+ readonly machineId: {
527
+ type: string;
528
+ pattern: string;
529
+ };
530
+ readonly snapshotId: {
531
+ readonly type: "string";
532
+ readonly minLength: 1;
533
+ };
534
+ readonly options: {
535
+ readonly type: "object";
536
+ };
537
+ readonly machine: {
538
+ readonly type: "object";
539
+ readonly required: readonly ["machineId", "sandboxId"];
540
+ readonly additionalProperties: true;
541
+ readonly properties: {
542
+ readonly machineId: {
543
+ type: string;
544
+ pattern: string;
545
+ };
546
+ readonly sandboxId: {
547
+ readonly type: "string";
548
+ readonly minLength: 1;
549
+ readonly maxLength: 128;
550
+ };
551
+ };
552
+ };
553
+ };
554
+ };
507
555
  //#endregion
508
- export { 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, AuthError, 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 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 CreateConfidentialSandboxOptions, type CreateSandboxOptions, type CreateTeamOptions, type DeleteOptions, type DirectoryPermission, type DownloadOptions, type DownloadProgress, type DriverConfig, type DriverInfo, type DriverType, type EventStreamOptions, type ExecOptions, type ExecResult, type FileInfo, type FileSystem, 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 InstalledTool, type InviteTeamMemberOptions, type IssueCollaborationTokenOptions, type ListOptions, type ListSandboxOptions, type McpServerConfig, type MkdirOptions, type NetworkConfig, NetworkError, type NetworkManager, NotFoundError, type ParseSSEStreamOptions, type ParsedSSEEvent, 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, QuotaError, type RunCodeOptions, type SSHCredentials, SandboxClient as Sandbox, SandboxClient, type SandboxClientConfig, type SandboxConnection, type SandboxEnvironment, SandboxError, type SandboxEvent, type SandboxInfo, SandboxInstance, type SandboxPermissionsConfig, type SandboxResources, type SandboxStatus, type SandboxUser, type SaveCollaborationSnapshotRequest, type SaveCollaborationSnapshotResponse, type SearchMatch, type SearchOptions, type SecretInfo, type SecretsManager, ServerError, 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 ToolsConfig, type UpdateUserOptions, type UploadOptions, type UploadProgress, type UsageInfo, ValidationError, type WaitForOptions, buildCollaborationDocumentId, createConfidentialSandbox, defineAgentProfile, defineGitHubResource, defineInlineResource, generateAttestationNonce, generateDockerfile, mergeAgentProfiles, normalizeCollaborationPath, parseCollaborationDocumentId, parseSSEStream, startTeeAttestationHeartbeat };
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 };