@withgateway/sdk 0.6.0 → 0.9.3

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 (150) hide show
  1. package/dist/agents/index.d.mts +581 -0
  2. package/dist/agents/index.d.ts +581 -0
  3. package/dist/agents/index.js +1473 -0
  4. package/dist/agents/index.js.map +1 -0
  5. package/dist/agents/index.mjs +1424 -0
  6. package/dist/agents/index.mjs.map +1 -0
  7. package/dist/apiError-DHpfbmdx.d.mts +17 -0
  8. package/dist/apiError-DHpfbmdx.d.ts +17 -0
  9. package/dist/cli.js +11611 -6845
  10. package/dist/cli.js.map +1 -1
  11. package/dist/cli.mjs +10090 -5325
  12. package/dist/cli.mjs.map +1 -1
  13. package/dist/files/index.d.mts +3 -1
  14. package/dist/files/index.d.ts +3 -1
  15. package/dist/files/index.js +371 -102
  16. package/dist/files/index.js.map +1 -1
  17. package/dist/files/index.mjs +371 -102
  18. package/dist/files/index.mjs.map +1 -1
  19. package/dist/hooks/index.js +346 -136
  20. package/dist/hooks/index.js.map +1 -1
  21. package/dist/hooks/index.mjs +346 -136
  22. package/dist/hooks/index.mjs.map +1 -1
  23. package/dist/{index-LA-PMRJT.d.ts → index-DIN14Lhg.d.ts} +1 -1
  24. package/dist/{index-Di9nNqOY.d.mts → index-DuB-eQ0Z.d.mts} +1 -1
  25. package/dist/index.d.mts +7 -4
  26. package/dist/index.d.ts +7 -4
  27. package/dist/index.js +3177 -748
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +2987 -590
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/media-CQUC7TkS.d.mts +39 -0
  32. package/dist/media-DQnBloaX.d.ts +39 -0
  33. package/dist/traces/index.d.mts +3 -1
  34. package/dist/traces/index.d.ts +3 -1
  35. package/dist/traces/index.js +371 -102
  36. package/dist/traces/index.js.map +1 -1
  37. package/dist/traces/index.mjs +371 -102
  38. package/dist/traces/index.mjs.map +1 -1
  39. package/dist/tracing/index.d.mts +3 -2
  40. package/dist/tracing/index.d.ts +3 -2
  41. package/dist/tracing/index.js +257 -16
  42. package/dist/tracing/index.js.map +1 -1
  43. package/dist/tracing/index.mjs +257 -16
  44. package/dist/tracing/index.mjs.map +1 -1
  45. package/dist/transport-CpRe7zgd.d.mts +123 -0
  46. package/dist/transport-CpRe7zgd.d.ts +123 -0
  47. package/dist/worlds/index.d.mts +1986 -1746
  48. package/dist/worlds/index.d.ts +1986 -1746
  49. package/dist/worlds/index.js +1470 -290
  50. package/dist/worlds/index.js.map +1 -1
  51. package/dist/worlds/index.mjs +1465 -286
  52. package/dist/worlds/index.mjs.map +1 -1
  53. package/package.json +6 -1
  54. package/runtime/gatewaysdk/environment/bundle_manifest.py +531 -0
  55. package/runtime/gatewaysdk/environment/factory_documents.py +670 -0
  56. package/runtime/gatewaysdk/environment/factory_rules.py +973 -0
  57. package/runtime/gatewaysdk/environment/factory_shapes.py +253 -0
  58. package/runtime/gatewaysdk/environment/factory_spine.py +1155 -0
  59. package/runtime/gatewaysdk/environment/factory_spine_shapes.py +480 -0
  60. package/runtime/gatewaysdk/environment/schema/__main__.py +2 -2
  61. package/runtime/gatewaysdk/environment/schema/_slack_fidelity.py +8 -23
  62. package/runtime/gatewaysdk/environment/schema/admission.py +61 -59
  63. package/runtime/gatewaysdk/environment/schema/api.py +3 -4
  64. package/runtime/gatewaysdk/environment/schema/assertions.py +7 -1
  65. package/runtime/gatewaysdk/environment/schema/bundle_runtime.py +1 -0
  66. package/runtime/gatewaysdk/environment/schema/call_log.py +20 -0
  67. package/runtime/gatewaysdk/environment/schema/cast.py +133 -67
  68. package/runtime/gatewaysdk/environment/schema/compiler.py +16 -17
  69. package/runtime/gatewaysdk/environment/schema/database/base.py +2 -2
  70. package/runtime/gatewaysdk/environment/schema/handler_errors.py +58 -4
  71. package/runtime/gatewaysdk/environment/schema/host.py +94 -12
  72. package/runtime/gatewaysdk/environment/schema/host_browser.py +48 -0
  73. package/runtime/gatewaysdk/environment/schema/host_control.py +35 -2
  74. package/runtime/gatewaysdk/environment/schema/host_handoff.py +4 -1
  75. package/runtime/gatewaysdk/environment/schema/host_loops.py +27 -4
  76. package/runtime/gatewaysdk/environment/schema/host_metrics.py +69 -0
  77. package/runtime/gatewaysdk/environment/schema/host_requests.py +35 -0
  78. package/runtime/gatewaysdk/environment/schema/host_session.py +20 -2
  79. package/runtime/gatewaysdk/environment/schema/host_surfaces.py +6 -0
  80. package/runtime/gatewaysdk/environment/schema/host_versions.py +100 -19
  81. package/runtime/gatewaysdk/environment/schema/host_workers.py +172 -50
  82. package/runtime/gatewaysdk/environment/schema/ingest.py +12 -3
  83. package/runtime/gatewaysdk/environment/schema/journal.py +7 -2
  84. package/runtime/gatewaysdk/environment/schema/local.py +32 -7
  85. package/runtime/gatewaysdk/environment/schema/mapping.py +1 -1
  86. package/runtime/gatewaysdk/environment/schema/measured_tests.py +187 -0
  87. package/runtime/gatewaysdk/environment/schema/page_checks.py +123 -0
  88. package/runtime/gatewaysdk/environment/schema/platform.py +80 -270
  89. package/runtime/gatewaysdk/environment/schema/platform_query.py +4 -3
  90. package/runtime/gatewaysdk/environment/schema/platform_templates.py +420 -0
  91. package/runtime/gatewaysdk/environment/schema/process_memory.py +76 -0
  92. package/runtime/gatewaysdk/environment/schema/redaction.py +13 -0
  93. package/runtime/gatewaysdk/environment/schema/request_ledger.py +4 -1
  94. package/runtime/gatewaysdk/environment/schema/run_parameters.py +25 -0
  95. package/runtime/gatewaysdk/environment/schema/runtime.py +57 -5
  96. package/runtime/gatewaysdk/environment/schema/scaffold.py +386 -219
  97. package/runtime/gatewaysdk/environment/schema/session_files.py +13 -2
  98. package/runtime/gatewaysdk/environment/schema/shape_catalog.py +493 -0
  99. package/runtime/gatewaysdk/environment/schema/shape_declarations.py +219 -0
  100. package/runtime/gatewaysdk/environment/schema/skill.py +1 -0
  101. package/runtime/gatewaysdk/environment/schema/skills/benchmarks-getting-started/SKILL.md +1 -1
  102. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/SKILL.md +2 -2
  103. package/runtime/gatewaysdk/environment/schema/skills/factory-orchestrator/SKILL.md +147 -0
  104. package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/ROWS.md +5 -1
  105. package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/SKILL.md +8 -6
  106. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/SKILL.md +9 -9
  107. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/cli-mcp-map.md +33 -2
  108. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/gotchas.md +6 -6
  109. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/journal-checks.md +17 -2
  110. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/new-world-sandbox.md +1 -1
  111. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/shape-catalog.md +59 -0
  112. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/ui-map.md +3 -2
  113. package/runtime/gatewaysdk/environment/schema/slack.py +55 -10
  114. package/runtime/gatewaysdk/environment/schema/snapshot.py +28 -2
  115. package/runtime/gatewaysdk/environment/schema/tasks.py +25 -2
  116. package/runtime/gatewaysdk/environment/schema/template_record.py +131 -0
  117. package/runtime/gatewaysdk/environment/schema/tools_world.py +7 -5
  118. package/runtime/gatewaysdk/environment/schema/ui.py +54 -33
  119. package/runtime/gatewaysdk/environment/schema/ui_interactions.py +419 -0
  120. package/runtime/gatewaysdk/environment/schema/ui_recorder.js +895 -0
  121. package/runtime/gatewaysdk/environment/schema/ui_replay.py +366 -0
  122. package/runtime/gatewaysdk/environment/schema/ui_replay_record.LICENSE +25 -0
  123. package/runtime/gatewaysdk/environment/schema/ui_replay_record.js +109 -0
  124. package/runtime/gatewaysdk/environment/schema/validation.py +24 -1
  125. package/runtime/gatewaysdk/environment/schema/worker.py +12 -5
  126. package/runtime/gatewaysdk/environment/schema/worker_key.py +38 -0
  127. package/runtime/gatewaysdk/environment/schema/worker_peaks.py +38 -0
  128. package/runtime/gatewaysdk/environment/schema/worker_watch.py +50 -0
  129. package/runtime/gatewaysdk/environment/schema/workers.py +245 -69
  130. package/runtime/gatewaysdk/environment/schema/world_host.py +96 -73
  131. package/runtime/gatewaysdk/environment/schema/world_tests.py +3 -1
  132. package/runtime/gatewaysdk/environment/secret_values.py +1 -1
  133. package/runtime/gatewaysdk/environment/world.py +34 -43
  134. package/runtime/gatewaysdk/environment/world_session_contract.py +7 -34
  135. package/skills/benchmarks-getting-started/SKILL.md +1 -1
  136. package/skills/connector-schema-authoring/SKILL.md +2 -2
  137. package/skills/connector-schema-authoring/connector-worlds.md +3 -2
  138. package/skills/connector-schema-authoring/world-schema.md +36 -23
  139. package/skills/factory-orchestrator/SKILL.md +147 -0
  140. package/skills/world-data-ingestion/ROWS.md +5 -1
  141. package/skills/world-data-ingestion/SKILL.md +8 -6
  142. package/skills/worlds-getting-started/SKILL.md +9 -9
  143. package/skills/worlds-getting-started/references/cli-mcp-map.md +33 -2
  144. package/skills/worlds-getting-started/references/gotchas.md +6 -6
  145. package/skills/worlds-getting-started/references/journal-checks.md +17 -2
  146. package/skills/worlds-getting-started/references/new-world-sandbox.md +1 -1
  147. package/skills/worlds-getting-started/references/shape-catalog.md +59 -0
  148. package/skills/worlds-getting-started/references/ui-map.md +3 -2
  149. package/dist/media-BIApiPzS.d.mts +0 -102
  150. package/dist/media-BIApiPzS.d.ts +0 -102
@@ -0,0 +1,123 @@
1
+ type TokenRequest = {
2
+ host?: string;
3
+ keys?: boolean;
4
+ };
5
+ declare class PersonalToken {
6
+ readonly value: string;
7
+ readonly project: string;
8
+ readonly host: string;
9
+ private constructor();
10
+ static fromEnv(env: NodeJS.ProcessEnv, request?: TokenRequest): PersonalToken | null;
11
+ toJSON(): {
12
+ project: string;
13
+ host: string;
14
+ };
15
+ static scrubbed(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
16
+ }
17
+
18
+ declare const PLATFORM_TIMEOUT_ENV = "GATEWAY_TIMEOUT_MS";
19
+ declare const PLATFORM_TIMEOUT_DEFAULT_MS = 120000;
20
+ type PlatformEndpoint = {
21
+ host: string;
22
+ publicKey: string;
23
+ secretKey: string;
24
+ token?: PersonalToken;
25
+ };
26
+ type PlatformMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
27
+ type PlatformReply = {
28
+ status: number;
29
+ ok: boolean;
30
+ text: string;
31
+ };
32
+ type PlatformSendOptions = {
33
+ timeoutMs?: number;
34
+ retry?: RetryPolicy;
35
+ signal?: AbortSignal;
36
+ };
37
+ /** The request budget in force: `GATEWAY_TIMEOUT_MS` when set, else the default. */
38
+ declare function platformTimeoutMs(env?: NodeJS.ProcessEnv): number;
39
+ /** Why a request got no answer, from the socket-level error undici hides under `fetch failed`. */
40
+ declare class TransportCause {
41
+ readonly reason: string;
42
+ readonly detail: string | null;
43
+ readonly next: string;
44
+ private constructor();
45
+ static timeout(timeoutMs: number): TransportCause;
46
+ static idle(idleMs: number): TransportCause;
47
+ static of(error: unknown): TransportCause;
48
+ describe(): string;
49
+ }
50
+ declare class UnreachableError extends Error {
51
+ readonly host: string;
52
+ readonly method: string;
53
+ readonly route: string;
54
+ readonly failure: TransportCause;
55
+ constructor(host: string, method: string, route: string, failure: TransportCause);
56
+ }
57
+ /**
58
+ * Another attempt after a gateway 5xx (502, 503, 504) or no answer at all, for a request whose repeat is harmless: a
59
+ * keyed filing step, which the platform answers with the first filing. Every other request gets one attempt (`NONE`).
60
+ */
61
+ declare class RetryPolicy {
62
+ readonly delaysMs: readonly number[];
63
+ private readonly wait;
64
+ readonly budgetMs: number;
65
+ private readonly now;
66
+ static readonly NONE: RetryPolicy;
67
+ /** A platform restart or a short edge outage: no wait starts that would end past five minutes, so a step ends
68
+ * within the budget plus one request timeout. */
69
+ static readonly FILING: RetryPolicy;
70
+ static readonly TRANSIENT_STATUSES: ReadonlySet<number>;
71
+ constructor(delaysMs: readonly number[], wait?: (ms: number) => Promise<void>, budgetMs?: number, now?: () => number);
72
+ run(attempt: () => Promise<PlatformReply>): Promise<PlatformReply>;
73
+ }
74
+ /** How long an open event stream may stay silent (no event and no keepalive) before it counts as dropped. */
75
+ declare const PLATFORM_STREAM_IDLE_MS = 60000;
76
+ type PlatformStreamOptions = {
77
+ after?: string | null;
78
+ signal?: AbortSignal;
79
+ idleMs?: number;
80
+ };
81
+ declare function platformAuthorization(endpoint: PlatformEndpoint, url: string): Record<string, string>;
82
+ /** The one door every CLI and SDK request to the platform goes through: Basic auth with the project key, a per-request timeout, and a transport failure turned into an `UnreachableError`. */
83
+ declare class PlatformTransport {
84
+ #private;
85
+ constructor(endpoint: PlatformEndpoint, timeoutMs?: number);
86
+ /** A request that legitimately takes longer (a sandbox exec, a world create) waits its own budget; every other one waits the default. */
87
+ budget(ownMs?: number): number;
88
+ /** One request; the caller's `signal` aborts it in flight and throws the signal's reason, never an `UnreachableError`. */
89
+ send(method: PlatformMethod, route: string, body?: unknown, opts?: PlatformSendOptions): Promise<PlatformReply>;
90
+ /** `send`, then the 2xx body as JSON; any other answer throws `ApiError` with its status and stable `code`. */
91
+ json<T>(method: PlatformMethod, route: string, body?: unknown, opts?: PlatformSendOptions): Promise<T>;
92
+ /** The streaming twin of `send` for a `GET` event stream: nothing is buffered, `after` travels as `Last-Event-ID`, and each wait for the platform (the headers, every chunk) may last `idleMs` (default 60 s) instead of the request budget. */
93
+ stream(route: string, opts?: PlatformStreamOptions): Promise<PlatformStream>;
94
+ private url;
95
+ private headers;
96
+ private once;
97
+ }
98
+ declare class StreamWatch {
99
+ #private;
100
+ readonly idleMs: number;
101
+ private readonly host;
102
+ private readonly route;
103
+ constructor(caller: AbortSignal | undefined, idleMs: number, host: string, route: string);
104
+ get signal(): AbortSignal;
105
+ within<T>(wait: () => Promise<T>): Promise<T>;
106
+ close(): void;
107
+ private idle;
108
+ private failure;
109
+ }
110
+ /** An open event stream: its status, then its body as it arrives. A silence past the idle budget or a dropped connection throws `UnreachableError`; the caller's abort throws its reason. */
111
+ declare class PlatformStream {
112
+ #private;
113
+ constructor(response: Response, watch: StreamWatch);
114
+ get status(): number;
115
+ get ok(): boolean;
116
+ /** The body as text, for a refusal: at most the first 64 KiB of characters; closes the stream. */
117
+ text(): Promise<string>;
118
+ /** The body's bytes as they arrive; the idle budget runs only while waiting for the platform, never while the caller holds a chunk. */
119
+ chunks(): AsyncGenerator<Uint8Array, void, undefined>;
120
+ close(): void;
121
+ }
122
+
123
+ export { PlatformTransport as P, RetryPolicy as R, TransportCause as T, UnreachableError as U, PLATFORM_STREAM_IDLE_MS as a, PLATFORM_TIMEOUT_DEFAULT_MS as b, PLATFORM_TIMEOUT_ENV as c, type PlatformEndpoint as d, type PlatformMethod as e, type PlatformReply as f, type PlatformSendOptions as g, PlatformStream as h, type PlatformStreamOptions as i, platformTimeoutMs as j, PersonalToken as k, platformAuthorization as p };
@@ -0,0 +1,123 @@
1
+ type TokenRequest = {
2
+ host?: string;
3
+ keys?: boolean;
4
+ };
5
+ declare class PersonalToken {
6
+ readonly value: string;
7
+ readonly project: string;
8
+ readonly host: string;
9
+ private constructor();
10
+ static fromEnv(env: NodeJS.ProcessEnv, request?: TokenRequest): PersonalToken | null;
11
+ toJSON(): {
12
+ project: string;
13
+ host: string;
14
+ };
15
+ static scrubbed(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
16
+ }
17
+
18
+ declare const PLATFORM_TIMEOUT_ENV = "GATEWAY_TIMEOUT_MS";
19
+ declare const PLATFORM_TIMEOUT_DEFAULT_MS = 120000;
20
+ type PlatformEndpoint = {
21
+ host: string;
22
+ publicKey: string;
23
+ secretKey: string;
24
+ token?: PersonalToken;
25
+ };
26
+ type PlatformMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
27
+ type PlatformReply = {
28
+ status: number;
29
+ ok: boolean;
30
+ text: string;
31
+ };
32
+ type PlatformSendOptions = {
33
+ timeoutMs?: number;
34
+ retry?: RetryPolicy;
35
+ signal?: AbortSignal;
36
+ };
37
+ /** The request budget in force: `GATEWAY_TIMEOUT_MS` when set, else the default. */
38
+ declare function platformTimeoutMs(env?: NodeJS.ProcessEnv): number;
39
+ /** Why a request got no answer, from the socket-level error undici hides under `fetch failed`. */
40
+ declare class TransportCause {
41
+ readonly reason: string;
42
+ readonly detail: string | null;
43
+ readonly next: string;
44
+ private constructor();
45
+ static timeout(timeoutMs: number): TransportCause;
46
+ static idle(idleMs: number): TransportCause;
47
+ static of(error: unknown): TransportCause;
48
+ describe(): string;
49
+ }
50
+ declare class UnreachableError extends Error {
51
+ readonly host: string;
52
+ readonly method: string;
53
+ readonly route: string;
54
+ readonly failure: TransportCause;
55
+ constructor(host: string, method: string, route: string, failure: TransportCause);
56
+ }
57
+ /**
58
+ * Another attempt after a gateway 5xx (502, 503, 504) or no answer at all, for a request whose repeat is harmless: a
59
+ * keyed filing step, which the platform answers with the first filing. Every other request gets one attempt (`NONE`).
60
+ */
61
+ declare class RetryPolicy {
62
+ readonly delaysMs: readonly number[];
63
+ private readonly wait;
64
+ readonly budgetMs: number;
65
+ private readonly now;
66
+ static readonly NONE: RetryPolicy;
67
+ /** A platform restart or a short edge outage: no wait starts that would end past five minutes, so a step ends
68
+ * within the budget plus one request timeout. */
69
+ static readonly FILING: RetryPolicy;
70
+ static readonly TRANSIENT_STATUSES: ReadonlySet<number>;
71
+ constructor(delaysMs: readonly number[], wait?: (ms: number) => Promise<void>, budgetMs?: number, now?: () => number);
72
+ run(attempt: () => Promise<PlatformReply>): Promise<PlatformReply>;
73
+ }
74
+ /** How long an open event stream may stay silent (no event and no keepalive) before it counts as dropped. */
75
+ declare const PLATFORM_STREAM_IDLE_MS = 60000;
76
+ type PlatformStreamOptions = {
77
+ after?: string | null;
78
+ signal?: AbortSignal;
79
+ idleMs?: number;
80
+ };
81
+ declare function platformAuthorization(endpoint: PlatformEndpoint, url: string): Record<string, string>;
82
+ /** The one door every CLI and SDK request to the platform goes through: Basic auth with the project key, a per-request timeout, and a transport failure turned into an `UnreachableError`. */
83
+ declare class PlatformTransport {
84
+ #private;
85
+ constructor(endpoint: PlatformEndpoint, timeoutMs?: number);
86
+ /** A request that legitimately takes longer (a sandbox exec, a world create) waits its own budget; every other one waits the default. */
87
+ budget(ownMs?: number): number;
88
+ /** One request; the caller's `signal` aborts it in flight and throws the signal's reason, never an `UnreachableError`. */
89
+ send(method: PlatformMethod, route: string, body?: unknown, opts?: PlatformSendOptions): Promise<PlatformReply>;
90
+ /** `send`, then the 2xx body as JSON; any other answer throws `ApiError` with its status and stable `code`. */
91
+ json<T>(method: PlatformMethod, route: string, body?: unknown, opts?: PlatformSendOptions): Promise<T>;
92
+ /** The streaming twin of `send` for a `GET` event stream: nothing is buffered, `after` travels as `Last-Event-ID`, and each wait for the platform (the headers, every chunk) may last `idleMs` (default 60 s) instead of the request budget. */
93
+ stream(route: string, opts?: PlatformStreamOptions): Promise<PlatformStream>;
94
+ private url;
95
+ private headers;
96
+ private once;
97
+ }
98
+ declare class StreamWatch {
99
+ #private;
100
+ readonly idleMs: number;
101
+ private readonly host;
102
+ private readonly route;
103
+ constructor(caller: AbortSignal | undefined, idleMs: number, host: string, route: string);
104
+ get signal(): AbortSignal;
105
+ within<T>(wait: () => Promise<T>): Promise<T>;
106
+ close(): void;
107
+ private idle;
108
+ private failure;
109
+ }
110
+ /** An open event stream: its status, then its body as it arrives. A silence past the idle budget or a dropped connection throws `UnreachableError`; the caller's abort throws its reason. */
111
+ declare class PlatformStream {
112
+ #private;
113
+ constructor(response: Response, watch: StreamWatch);
114
+ get status(): number;
115
+ get ok(): boolean;
116
+ /** The body as text, for a refusal: at most the first 64 KiB of characters; closes the stream. */
117
+ text(): Promise<string>;
118
+ /** The body's bytes as they arrive; the idle budget runs only while waiting for the platform, never while the caller holds a chunk. */
119
+ chunks(): AsyncGenerator<Uint8Array, void, undefined>;
120
+ close(): void;
121
+ }
122
+
123
+ export { PlatformTransport as P, RetryPolicy as R, TransportCause as T, UnreachableError as U, PLATFORM_STREAM_IDLE_MS as a, PLATFORM_TIMEOUT_DEFAULT_MS as b, PLATFORM_TIMEOUT_ENV as c, type PlatformEndpoint as d, type PlatformMethod as e, type PlatformReply as f, type PlatformSendOptions as g, PlatformStream as h, type PlatformStreamOptions as i, platformTimeoutMs as j, PersonalToken as k, platformAuthorization as p };