@tier0/sdk-v2 0.8.0 → 0.9.1

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 (106) hide show
  1. package/NOTICE.md +3 -1
  2. package/README.md +45 -11
  3. package/dist/cjs/capabilities.d.ts +8 -17
  4. package/dist/cjs/capabilities.js +17 -28
  5. package/dist/cjs/capabilities.js.map +1 -1
  6. package/dist/cjs/client.d.ts +524 -3
  7. package/dist/cjs/client.js +29 -6
  8. package/dist/cjs/client.js.map +1 -1
  9. package/dist/cjs/cloud-transport.d.ts +4 -2
  10. package/dist/cjs/cloud-transport.js +27 -18
  11. package/dist/cjs/cloud-transport.js.map +1 -1
  12. package/dist/cjs/files.d.ts +26 -6
  13. package/dist/cjs/files.js +151 -28
  14. package/dist/cjs/files.js.map +1 -1
  15. package/dist/cjs/index.d.ts +2 -1
  16. package/dist/cjs/index.js +3 -1
  17. package/dist/cjs/index.js.map +1 -1
  18. package/dist/cjs/openapi/api.generated.d.ts +1 -1
  19. package/dist/cjs/openapi/codecs.generated.d.ts +30 -161
  20. package/dist/cjs/openapi/codecs.generated.js +1 -1
  21. package/dist/cjs/openapi/codecs.generated.js.map +1 -1
  22. package/dist/cjs/openapi/types.generated.d.ts +33 -85
  23. package/dist/cjs/openapi/types.generated.js.map +1 -1
  24. package/dist/cjs/runtime.d.ts +13 -0
  25. package/dist/cjs/runtime.js +51 -0
  26. package/dist/cjs/runtime.js.map +1 -0
  27. package/dist/cjs/streams/capabilities.d.ts +8 -0
  28. package/dist/cjs/streams/capabilities.js +19 -0
  29. package/dist/cjs/streams/capabilities.js.map +1 -0
  30. package/dist/cjs/streams/contract.generated.d.ts +802 -0
  31. package/dist/cjs/streams/contract.generated.js +7 -0
  32. package/dist/cjs/streams/contract.generated.js.map +1 -0
  33. package/dist/cjs/streams/index.d.ts +3 -0
  34. package/dist/cjs/streams/index.js +20 -0
  35. package/dist/cjs/streams/index.js.map +1 -0
  36. package/dist/cjs/streams/messages.d.ts +42 -0
  37. package/dist/cjs/streams/messages.js +514 -0
  38. package/dist/cjs/streams/messages.js.map +1 -0
  39. package/dist/cjs/streams/requests.d.ts +93 -0
  40. package/dist/cjs/streams/requests.js +167 -0
  41. package/dist/cjs/streams/requests.js.map +1 -0
  42. package/dist/cjs/streams/transport.d.ts +16 -0
  43. package/dist/cjs/streams/transport.js +24 -0
  44. package/dist/cjs/streams/transport.js.map +1 -0
  45. package/dist/cjs/uns-v2/generated.d.ts +87 -22
  46. package/dist/cjs/uns-v2/generated.js +43 -8
  47. package/dist/cjs/uns-v2/generated.js.map +1 -1
  48. package/dist/esm/capabilities.d.ts +8 -17
  49. package/dist/esm/capabilities.js +17 -28
  50. package/dist/esm/capabilities.js.map +1 -1
  51. package/dist/esm/client.d.ts +524 -3
  52. package/dist/esm/client.js +27 -5
  53. package/dist/esm/client.js.map +1 -1
  54. package/dist/esm/cloud-transport.d.ts +4 -2
  55. package/dist/esm/cloud-transport.js +27 -18
  56. package/dist/esm/cloud-transport.js.map +1 -1
  57. package/dist/esm/files.d.ts +26 -6
  58. package/dist/esm/files.js +151 -28
  59. package/dist/esm/files.js.map +1 -1
  60. package/dist/esm/index.d.ts +2 -1
  61. package/dist/esm/index.js +2 -1
  62. package/dist/esm/index.js.map +1 -1
  63. package/dist/esm/openapi/api.generated.d.ts +1 -1
  64. package/dist/esm/openapi/codecs.generated.d.ts +30 -161
  65. package/dist/esm/openapi/codecs.generated.js +1 -1
  66. package/dist/esm/openapi/codecs.generated.js.map +1 -1
  67. package/dist/esm/openapi/types.generated.d.ts +33 -85
  68. package/dist/esm/openapi/types.generated.js.map +1 -1
  69. package/dist/esm/runtime.d.ts +13 -0
  70. package/dist/esm/runtime.js +46 -0
  71. package/dist/esm/runtime.js.map +1 -0
  72. package/dist/esm/streams/capabilities.d.ts +8 -0
  73. package/dist/esm/streams/capabilities.js +15 -0
  74. package/dist/esm/streams/capabilities.js.map +1 -0
  75. package/dist/esm/streams/contract.generated.d.ts +802 -0
  76. package/dist/esm/streams/contract.generated.js +6 -0
  77. package/dist/esm/streams/contract.generated.js.map +1 -0
  78. package/dist/esm/streams/index.d.ts +3 -0
  79. package/dist/esm/streams/index.js +4 -0
  80. package/dist/esm/streams/index.js.map +1 -0
  81. package/dist/esm/streams/messages.d.ts +42 -0
  82. package/dist/esm/streams/messages.js +475 -0
  83. package/dist/esm/streams/messages.js.map +1 -0
  84. package/dist/esm/streams/requests.d.ts +93 -0
  85. package/dist/esm/streams/requests.js +161 -0
  86. package/dist/esm/streams/requests.js.map +1 -0
  87. package/dist/esm/streams/transport.d.ts +16 -0
  88. package/dist/esm/streams/transport.js +20 -0
  89. package/dist/esm/streams/transport.js.map +1 -0
  90. package/dist/esm/uns-v2/generated.d.ts +87 -22
  91. package/dist/esm/uns-v2/generated.js +43 -8
  92. package/dist/esm/uns-v2/generated.js.map +1 -1
  93. package/package.json +46 -12
  94. package/skills/tier0-sdk-v2/SKILL.md +3 -2
  95. package/skills/tier0-sdk-v2/tier0-sdk-v2-files/references/multipart.md +23 -8
  96. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/SKILL.md +3 -3
  97. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/create.md +9 -3
  98. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/state.md +1 -1
  99. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/update.md +1 -1
  100. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/SKILL.md +2 -1
  101. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/create.md +13 -4
  102. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/deploy.md +1 -1
  103. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/update.md +1 -1
  104. package/skills/tier0-sdk-v2/tier0-sdk-v2-streams/SKILL.md +67 -0
  105. package/skills/tier0-sdk-v2/tier0-sdk-v2-system/SKILL.md +5 -9
  106. package/skills/tier0-sdk-v2/tier0-sdk-v2-system/references/info.md +1 -1
@@ -0,0 +1,802 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/openapi/v2/stream-requests/discover": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ get?: never;
14
+ put?: never;
15
+ /**
16
+ * Discover Stream requests
17
+ * @description 发现可见Stream 请求合同,只公开Stream 请求合同,不返回内部运行绑定
18
+ */
19
+ post: operations["PlatformV2StreamRequestDiscover"];
20
+ delete?: never;
21
+ options?: never;
22
+ head?: never;
23
+ patch?: never;
24
+ trace?: never;
25
+ };
26
+ "/openapi/v2/stream-requests/{requestCode}/describe": {
27
+ parameters: {
28
+ query?: never;
29
+ header?: never;
30
+ path?: never;
31
+ cookie?: never;
32
+ };
33
+ get?: never;
34
+ put?: never;
35
+ /**
36
+ * Describe Stream request
37
+ * @description 读取公开Stream 请求合同,只公开Stream 请求合同,不返回内部运行绑定
38
+ */
39
+ post: operations["PlatformV2StreamRequestDescribe"];
40
+ delete?: never;
41
+ options?: never;
42
+ head?: never;
43
+ patch?: never;
44
+ trace?: never;
45
+ };
46
+ "/openapi/v2/stream-requests/{requestCode}/invoke": {
47
+ parameters: {
48
+ query?: never;
49
+ header?: never;
50
+ path?: never;
51
+ cookie?: never;
52
+ };
53
+ get?: never;
54
+ put?: never;
55
+ /**
56
+ * Invoke Stream request
57
+ * @description 按公开合同调用Stream 请求;原始 body 为有效 UTF-8,最多 1MiB 字节;可选 idempotencyKey 解码后最多 128 UTF-8 字节,是否必填由冻结合同决定。返回 code、contractVersion、result、runID、status、replayed(boolean),不返回内部运行绑定。结果未知返回 HTTP 504,errorCode=STREAM_REQUEST_RESULT_UNKNOWN;未知内部错误返回 HTTP 500,errorCode=STREAM_REQUEST_INTERNAL_ERROR,message 不泄漏内部异常
58
+ */
59
+ post: operations["PlatformV2StreamRequestInvoke"];
60
+ delete?: never;
61
+ options?: never;
62
+ head?: never;
63
+ patch?: never;
64
+ trace?: never;
65
+ };
66
+ "/openapi/v2/stream-messages/connect": {
67
+ parameters: {
68
+ query?: never;
69
+ header?: never;
70
+ path?: never;
71
+ cookie?: never;
72
+ };
73
+ get?: never;
74
+ put?: never;
75
+ /** Connect Stream messages */
76
+ post: operations["PlatformV2StreamMessagesConnect"];
77
+ delete?: never;
78
+ options?: never;
79
+ head?: never;
80
+ patch?: never;
81
+ trace?: never;
82
+ };
83
+ "/openapi/v2/capabilities/discover": {
84
+ parameters: {
85
+ query?: never;
86
+ header?: never;
87
+ path?: never;
88
+ cookie?: never;
89
+ };
90
+ get?: never;
91
+ put?: never;
92
+ /**
93
+ * 发现当前 Workspace 的公开能力与版本合同
94
+ * @description 需要有效 Workspace API Key,Body 仅接受空 JSON 对象,最大 4KiB UTF-8 字节,不接受查询参数或 Workspace 覆盖。成功响应直接为 CapabilityDiscoverV2Resp,不包裹 code/msg/data。能力由默认关闭的公开发布开关、Workspace FeatureGate、Key 显式授权共同裁决;Namespace 与 Stream request 能力仅报告当前发布与授权,运行可用性保持 readiness_unknown,不触发运行时探针。Source/Stream 保留独立操作前提的证据。state=ready 不替代具体资源授权或实际运行回执。合同版本 2.0 使用 state、reasonCode、operations,不再返回重复布尔状态。实际操作由后端执行安全检查,失败返回真实错误。响应允许客户端忽略未知扩展字段;版本标签不表示设备 ACK 或 npm 包版本。错误直接返回 CapabilityErrorResp 和真实 HTTP 状态,不泄漏内部异常。
95
+ */
96
+ post: operations["PlatformV2CapabilityDiscoverV2"];
97
+ delete?: never;
98
+ options?: never;
99
+ head?: never;
100
+ patch?: never;
101
+ trace?: never;
102
+ };
103
+ }
104
+ export type webhooks = Record<string, never>;
105
+ export interface components {
106
+ schemas: {
107
+ StreamRequestDiscoverReq: {
108
+ /** @description 缺省为 1 */
109
+ page?: number;
110
+ search?: string;
111
+ /** @description 缺省为 20 */
112
+ size?: number;
113
+ };
114
+ StreamRequestDiscoverResp: {
115
+ list: components["schemas"]["PublicStreamRequest"][];
116
+ total: number;
117
+ };
118
+ PublicStreamRequest: {
119
+ code: string;
120
+ contractVersion: string;
121
+ description: string;
122
+ idempotency: string;
123
+ inputSchema: {
124
+ [key: string]: unknown;
125
+ };
126
+ name: string;
127
+ outputSchema: {
128
+ [key: string]: unknown;
129
+ };
130
+ sideEffect: string;
131
+ status: string;
132
+ timeoutMs: number;
133
+ };
134
+ NotificationError: {
135
+ errorCode: string;
136
+ message: string;
137
+ };
138
+ StreamRequestInvokeReq: {
139
+ /** @description 解码后的 UTF-8 字节数最多 128;是否必填由冻结合同决定 */
140
+ idempotencyKey?: string;
141
+ input: unknown;
142
+ };
143
+ StreamRequestInvokeResp: {
144
+ code: string;
145
+ /** @description 实际执行使用的冻结合同版本 */
146
+ contractVersion: string;
147
+ /** @description true=幂等重放,false=首次执行 */
148
+ replayed: boolean;
149
+ /** @description 合同定义的 JSON 结果,允许 null */
150
+ result: unknown;
151
+ /** @description 服务端返回的执行标识,不透明字符串 */
152
+ runID: string;
153
+ /** @description 服务端返回的终态,非 accepted/queued/pending/running */
154
+ status: string;
155
+ };
156
+ StreamMessagesConnectReq: {
157
+ appId: string;
158
+ clientPublicKey: string;
159
+ topics: components["schemas"]["StreamMessageTopicPermission"][];
160
+ };
161
+ StreamMessageTopicPermission: {
162
+ publish: boolean;
163
+ subscribe: boolean;
164
+ topic: string;
165
+ };
166
+ StreamMessagesConnectResp: {
167
+ contractVersion: string;
168
+ expiresAt: string;
169
+ maxPayloadBytes: number;
170
+ permissions: components["schemas"]["StreamMessageGrantedTopic"][];
171
+ url: string;
172
+ userJwt: string;
173
+ };
174
+ StreamMessageGrantedTopic: {
175
+ publishSubject: string;
176
+ subscribeSubject: string;
177
+ topic: string;
178
+ };
179
+ /**
180
+ * Tier0 capability discovery 2.0
181
+ * @description OpenAPI 3.0 wire schema. Array contains/cardinality annotations and cross-field proof ordering require the shared JSON Schema plus SDK semantic checks; this projection alone is not full contract acceptance.
182
+ */
183
+ CapabilityDiscoverV2Resp: {
184
+ /** @enum {unknown} */
185
+ product: "cloud" | "enterprise";
186
+ productVersion?: string;
187
+ /** @enum {unknown} */
188
+ contractVersion: "2.0";
189
+ apiContractVersions: string[];
190
+ sdkContractVersions: string[];
191
+ capabilities: components["schemas"]["CapabilityDiscoverycapability"][] & (unknown & unknown & unknown & unknown & unknown);
192
+ deprecations: {
193
+ contract: string;
194
+ replacement?: string;
195
+ sunsetAt?: string;
196
+ }[];
197
+ };
198
+ /** @description Unknown capability codes are ignored; only recognized codes use the frozen assessment contract. */
199
+ CapabilityDiscoverycapability: {
200
+ code: string;
201
+ } & (unknown | components["schemas"]["CapabilityDiscoveryknownCapability"]);
202
+ /** @description State reports publication and assessed prerequisites only; ready never grants resource access or confirms an actual execution. */
203
+ CapabilityDiscoveryknownCapability: {
204
+ /** @enum {unknown} */
205
+ state: "disabled" | "not_supported" | "unavailable" | "readiness_unknown" | "ready";
206
+ reasonCode: string;
207
+ /** Format: date-time */
208
+ checkedAt?: string;
209
+ /**
210
+ * Format: date-time
211
+ * @description Proof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema.
212
+ */
213
+ validUntil?: string;
214
+ retryAfterMs?: number;
215
+ code: string;
216
+ contractVersions: string[];
217
+ operations?: components["schemas"]["CapabilityDiscoveryoperation"][];
218
+ } & ((unknown | {
219
+ /** @enum {unknown} */
220
+ state?: "ready";
221
+ checkedAt: unknown;
222
+ }) & (unknown | ({
223
+ operations?: ((unknown | components["schemas"]["CapabilityDiscoveryknownOperation"]) & (unknown | {
224
+ /** @enum {unknown} */
225
+ requiresResourceCheck?: true;
226
+ }))[] & (unknown & unknown & unknown & unknown & unknown & unknown);
227
+ } & (unknown | {
228
+ operations?: (unknown | {
229
+ /** @enum {unknown} */
230
+ state?: "disabled";
231
+ })[];
232
+ }))) & (unknown | ({
233
+ operations?: ((unknown | components["schemas"]["CapabilityDiscoveryknownOperation"]) & (unknown | {
234
+ /** @enum {unknown} */
235
+ requiresResourceCheck?: true;
236
+ }))[] & (unknown & unknown & unknown & unknown & unknown & unknown);
237
+ } & (unknown | {
238
+ operations?: (unknown | {
239
+ /** @enum {unknown} */
240
+ state?: "disabled";
241
+ })[];
242
+ }))) & (unknown | {
243
+ contractVersions?: unknown[];
244
+ }) & (unknown | {
245
+ contractVersions?: unknown[] & (unknown & unknown);
246
+ }));
247
+ /** @description Unknown operation names are ignored within their parent capability; known names are validated by that capability. */
248
+ CapabilityDiscoveryoperation: {
249
+ operation: string;
250
+ };
251
+ /** @description State reports publication and assessed prerequisites only; ready never grants resource access or confirms an actual execution. */
252
+ CapabilityDiscoveryknownOperation: {
253
+ /** @enum {unknown} */
254
+ state: "disabled" | "not_supported" | "unavailable" | "readiness_unknown" | "ready";
255
+ reasonCode: string;
256
+ /** Format: date-time */
257
+ checkedAt?: string;
258
+ /**
259
+ * Format: date-time
260
+ * @description Proof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema.
261
+ */
262
+ validUntil?: string;
263
+ retryAfterMs?: number;
264
+ operation: string;
265
+ requiresResourceCheck: boolean;
266
+ } & (unknown | {
267
+ /** @enum {unknown} */
268
+ state?: "ready";
269
+ checkedAt: unknown;
270
+ });
271
+ CapabilityErrorResp: {
272
+ /** @description INVALID_CREDENTIAL / CAPABILITY_INVALID_REQUEST / CAPABILITY_FORBIDDEN / CAPABILITY_UNAVAILABLE / CAPABILITY_INTERNAL_ERROR */
273
+ errorCode: string;
274
+ /** @description 固定公开消息,不透传内部异常 */
275
+ message: string;
276
+ };
277
+ };
278
+ responses: never;
279
+ parameters: never;
280
+ requestBodies: never;
281
+ headers: never;
282
+ pathItems: never;
283
+ }
284
+ export type $defs = Record<string, never>;
285
+ export interface operations {
286
+ PlatformV2StreamRequestDiscover: {
287
+ parameters: {
288
+ query?: never;
289
+ header?: never;
290
+ path?: never;
291
+ cookie?: never;
292
+ };
293
+ requestBody: {
294
+ content: {
295
+ "application/json": components["schemas"]["StreamRequestDiscoverReq"];
296
+ };
297
+ };
298
+ responses: {
299
+ 200: {
300
+ headers: {
301
+ [name: string]: unknown;
302
+ };
303
+ content: {
304
+ "application/json": components["schemas"]["StreamRequestDiscoverResp"];
305
+ };
306
+ };
307
+ /** @description Platform operation failed. */
308
+ 400: {
309
+ headers: {
310
+ [name: string]: unknown;
311
+ };
312
+ content: {
313
+ "application/json": components["schemas"]["NotificationError"];
314
+ };
315
+ };
316
+ /** @description Platform operation failed. */
317
+ 401: {
318
+ headers: {
319
+ [name: string]: unknown;
320
+ };
321
+ content: {
322
+ "application/json": components["schemas"]["NotificationError"];
323
+ };
324
+ };
325
+ /** @description Platform operation failed. */
326
+ 403: {
327
+ headers: {
328
+ [name: string]: unknown;
329
+ };
330
+ content: {
331
+ "application/json": components["schemas"]["NotificationError"];
332
+ };
333
+ };
334
+ /** @description Platform operation failed. */
335
+ 404: {
336
+ headers: {
337
+ [name: string]: unknown;
338
+ };
339
+ content: {
340
+ "application/json": components["schemas"]["NotificationError"];
341
+ };
342
+ };
343
+ /** @description Platform operation failed. */
344
+ 409: {
345
+ headers: {
346
+ [name: string]: unknown;
347
+ };
348
+ content: {
349
+ "application/json": components["schemas"]["NotificationError"];
350
+ };
351
+ };
352
+ /** @description Platform operation failed. */
353
+ 422: {
354
+ headers: {
355
+ [name: string]: unknown;
356
+ };
357
+ content: {
358
+ "application/json": components["schemas"]["NotificationError"];
359
+ };
360
+ };
361
+ /** @description Platform operation failed. */
362
+ 429: {
363
+ headers: {
364
+ [name: string]: unknown;
365
+ };
366
+ content: {
367
+ "application/json": components["schemas"]["NotificationError"];
368
+ };
369
+ };
370
+ /** @description Platform operation failed. */
371
+ 500: {
372
+ headers: {
373
+ [name: string]: unknown;
374
+ };
375
+ content: {
376
+ "application/json": components["schemas"]["NotificationError"];
377
+ };
378
+ };
379
+ /** @description Platform operation failed. */
380
+ 503: {
381
+ headers: {
382
+ [name: string]: unknown;
383
+ };
384
+ content: {
385
+ "application/json": components["schemas"]["NotificationError"];
386
+ };
387
+ };
388
+ /** @description Platform operation failed. */
389
+ 504: {
390
+ headers: {
391
+ [name: string]: unknown;
392
+ };
393
+ content: {
394
+ "application/json": components["schemas"]["NotificationError"];
395
+ };
396
+ };
397
+ };
398
+ };
399
+ PlatformV2StreamRequestDescribe: {
400
+ parameters: {
401
+ query?: never;
402
+ header?: never;
403
+ path: {
404
+ requestCode: string;
405
+ };
406
+ cookie?: never;
407
+ };
408
+ requestBody?: never;
409
+ responses: {
410
+ 200: {
411
+ headers: {
412
+ [name: string]: unknown;
413
+ };
414
+ content: {
415
+ "application/json": components["schemas"]["PublicStreamRequest"];
416
+ };
417
+ };
418
+ /** @description Platform operation failed. */
419
+ 400: {
420
+ headers: {
421
+ [name: string]: unknown;
422
+ };
423
+ content: {
424
+ "application/json": components["schemas"]["NotificationError"];
425
+ };
426
+ };
427
+ /** @description Platform operation failed. */
428
+ 401: {
429
+ headers: {
430
+ [name: string]: unknown;
431
+ };
432
+ content: {
433
+ "application/json": components["schemas"]["NotificationError"];
434
+ };
435
+ };
436
+ /** @description Platform operation failed. */
437
+ 403: {
438
+ headers: {
439
+ [name: string]: unknown;
440
+ };
441
+ content: {
442
+ "application/json": components["schemas"]["NotificationError"];
443
+ };
444
+ };
445
+ /** @description Platform operation failed. */
446
+ 404: {
447
+ headers: {
448
+ [name: string]: unknown;
449
+ };
450
+ content: {
451
+ "application/json": components["schemas"]["NotificationError"];
452
+ };
453
+ };
454
+ /** @description Platform operation failed. */
455
+ 409: {
456
+ headers: {
457
+ [name: string]: unknown;
458
+ };
459
+ content: {
460
+ "application/json": components["schemas"]["NotificationError"];
461
+ };
462
+ };
463
+ /** @description Platform operation failed. */
464
+ 422: {
465
+ headers: {
466
+ [name: string]: unknown;
467
+ };
468
+ content: {
469
+ "application/json": components["schemas"]["NotificationError"];
470
+ };
471
+ };
472
+ /** @description Platform operation failed. */
473
+ 429: {
474
+ headers: {
475
+ [name: string]: unknown;
476
+ };
477
+ content: {
478
+ "application/json": components["schemas"]["NotificationError"];
479
+ };
480
+ };
481
+ /** @description Platform operation failed. */
482
+ 500: {
483
+ headers: {
484
+ [name: string]: unknown;
485
+ };
486
+ content: {
487
+ "application/json": components["schemas"]["NotificationError"];
488
+ };
489
+ };
490
+ /** @description Platform operation failed. */
491
+ 503: {
492
+ headers: {
493
+ [name: string]: unknown;
494
+ };
495
+ content: {
496
+ "application/json": components["schemas"]["NotificationError"];
497
+ };
498
+ };
499
+ /** @description Platform operation failed. */
500
+ 504: {
501
+ headers: {
502
+ [name: string]: unknown;
503
+ };
504
+ content: {
505
+ "application/json": components["schemas"]["NotificationError"];
506
+ };
507
+ };
508
+ };
509
+ };
510
+ PlatformV2StreamRequestInvoke: {
511
+ parameters: {
512
+ query?: never;
513
+ header?: never;
514
+ path: {
515
+ requestCode: string;
516
+ };
517
+ cookie?: never;
518
+ };
519
+ requestBody: {
520
+ content: {
521
+ "application/json": components["schemas"]["StreamRequestInvokeReq"];
522
+ };
523
+ };
524
+ responses: {
525
+ 200: {
526
+ headers: {
527
+ [name: string]: unknown;
528
+ };
529
+ content: {
530
+ "application/json": components["schemas"]["StreamRequestInvokeResp"];
531
+ };
532
+ };
533
+ /** @description Platform operation failed. */
534
+ 400: {
535
+ headers: {
536
+ [name: string]: unknown;
537
+ };
538
+ content: {
539
+ "application/json": components["schemas"]["NotificationError"];
540
+ };
541
+ };
542
+ /** @description Platform operation failed. */
543
+ 401: {
544
+ headers: {
545
+ [name: string]: unknown;
546
+ };
547
+ content: {
548
+ "application/json": components["schemas"]["NotificationError"];
549
+ };
550
+ };
551
+ /** @description Platform operation failed. */
552
+ 403: {
553
+ headers: {
554
+ [name: string]: unknown;
555
+ };
556
+ content: {
557
+ "application/json": components["schemas"]["NotificationError"];
558
+ };
559
+ };
560
+ /** @description Platform operation failed. */
561
+ 404: {
562
+ headers: {
563
+ [name: string]: unknown;
564
+ };
565
+ content: {
566
+ "application/json": components["schemas"]["NotificationError"];
567
+ };
568
+ };
569
+ /** @description Platform operation failed. */
570
+ 409: {
571
+ headers: {
572
+ [name: string]: unknown;
573
+ };
574
+ content: {
575
+ "application/json": components["schemas"]["NotificationError"];
576
+ };
577
+ };
578
+ /** @description Platform operation failed. */
579
+ 422: {
580
+ headers: {
581
+ [name: string]: unknown;
582
+ };
583
+ content: {
584
+ "application/json": components["schemas"]["NotificationError"];
585
+ };
586
+ };
587
+ /** @description Platform operation failed. */
588
+ 429: {
589
+ headers: {
590
+ [name: string]: unknown;
591
+ };
592
+ content: {
593
+ "application/json": components["schemas"]["NotificationError"];
594
+ };
595
+ };
596
+ /** @description Platform operation failed. */
597
+ 500: {
598
+ headers: {
599
+ [name: string]: unknown;
600
+ };
601
+ content: {
602
+ "application/json": components["schemas"]["NotificationError"];
603
+ };
604
+ };
605
+ /** @description Platform operation failed. */
606
+ 503: {
607
+ headers: {
608
+ [name: string]: unknown;
609
+ };
610
+ content: {
611
+ "application/json": components["schemas"]["NotificationError"];
612
+ };
613
+ };
614
+ /** @description Platform operation failed. */
615
+ 504: {
616
+ headers: {
617
+ [name: string]: unknown;
618
+ };
619
+ content: {
620
+ "application/json": components["schemas"]["NotificationError"];
621
+ };
622
+ };
623
+ };
624
+ };
625
+ PlatformV2StreamMessagesConnect: {
626
+ parameters: {
627
+ query?: never;
628
+ header?: never;
629
+ path?: never;
630
+ cookie?: never;
631
+ };
632
+ requestBody: {
633
+ content: {
634
+ "application/json": components["schemas"]["StreamMessagesConnectReq"];
635
+ };
636
+ };
637
+ responses: {
638
+ 200: {
639
+ headers: {
640
+ [name: string]: unknown;
641
+ };
642
+ content: {
643
+ "application/json": components["schemas"]["StreamMessagesConnectResp"];
644
+ };
645
+ };
646
+ /** @description Platform operation failed. */
647
+ 400: {
648
+ headers: {
649
+ [name: string]: unknown;
650
+ };
651
+ content: {
652
+ "application/json": components["schemas"]["NotificationError"];
653
+ };
654
+ };
655
+ /** @description Platform operation failed. */
656
+ 401: {
657
+ headers: {
658
+ [name: string]: unknown;
659
+ };
660
+ content: {
661
+ "application/json": components["schemas"]["NotificationError"];
662
+ };
663
+ };
664
+ /** @description Platform operation failed. */
665
+ 403: {
666
+ headers: {
667
+ [name: string]: unknown;
668
+ };
669
+ content: {
670
+ "application/json": components["schemas"]["NotificationError"];
671
+ };
672
+ };
673
+ /** @description Platform operation failed. */
674
+ 404: {
675
+ headers: {
676
+ [name: string]: unknown;
677
+ };
678
+ content: {
679
+ "application/json": components["schemas"]["NotificationError"];
680
+ };
681
+ };
682
+ /** @description Platform operation failed. */
683
+ 409: {
684
+ headers: {
685
+ [name: string]: unknown;
686
+ };
687
+ content: {
688
+ "application/json": components["schemas"]["NotificationError"];
689
+ };
690
+ };
691
+ /** @description Platform operation failed. */
692
+ 422: {
693
+ headers: {
694
+ [name: string]: unknown;
695
+ };
696
+ content: {
697
+ "application/json": components["schemas"]["NotificationError"];
698
+ };
699
+ };
700
+ /** @description Platform operation failed. */
701
+ 429: {
702
+ headers: {
703
+ [name: string]: unknown;
704
+ };
705
+ content: {
706
+ "application/json": components["schemas"]["NotificationError"];
707
+ };
708
+ };
709
+ /** @description Platform operation failed. */
710
+ 500: {
711
+ headers: {
712
+ [name: string]: unknown;
713
+ };
714
+ content: {
715
+ "application/json": components["schemas"]["NotificationError"];
716
+ };
717
+ };
718
+ /** @description Platform operation failed. */
719
+ 503: {
720
+ headers: {
721
+ [name: string]: unknown;
722
+ };
723
+ content: {
724
+ "application/json": components["schemas"]["NotificationError"];
725
+ };
726
+ };
727
+ /** @description Platform operation failed. */
728
+ 504: {
729
+ headers: {
730
+ [name: string]: unknown;
731
+ };
732
+ content: {
733
+ "application/json": components["schemas"]["NotificationError"];
734
+ };
735
+ };
736
+ };
737
+ };
738
+ PlatformV2CapabilityDiscoverV2: {
739
+ parameters: {
740
+ query?: never;
741
+ header?: never;
742
+ path?: never;
743
+ cookie?: never;
744
+ };
745
+ requestBody?: never;
746
+ responses: {
747
+ 200: {
748
+ headers: {
749
+ [name: string]: unknown;
750
+ };
751
+ content: {
752
+ "application/json": components["schemas"]["CapabilityDiscoverV2Resp"];
753
+ };
754
+ };
755
+ /** @description Platform operation failed. */
756
+ 400: {
757
+ headers: {
758
+ [name: string]: unknown;
759
+ };
760
+ content: {
761
+ "application/json": components["schemas"]["CapabilityErrorResp"];
762
+ };
763
+ };
764
+ /** @description Platform operation failed. */
765
+ 401: {
766
+ headers: {
767
+ [name: string]: unknown;
768
+ };
769
+ content: {
770
+ "application/json": components["schemas"]["CapabilityErrorResp"];
771
+ };
772
+ };
773
+ /** @description Platform operation failed. */
774
+ 403: {
775
+ headers: {
776
+ [name: string]: unknown;
777
+ };
778
+ content: {
779
+ "application/json": components["schemas"]["CapabilityErrorResp"];
780
+ };
781
+ };
782
+ /** @description Platform operation failed. */
783
+ 500: {
784
+ headers: {
785
+ [name: string]: unknown;
786
+ };
787
+ content: {
788
+ "application/json": components["schemas"]["CapabilityErrorResp"];
789
+ };
790
+ };
791
+ /** @description Platform operation failed. */
792
+ 503: {
793
+ headers: {
794
+ [name: string]: unknown;
795
+ };
796
+ content: {
797
+ "application/json": components["schemas"]["CapabilityErrorResp"];
798
+ };
799
+ };
800
+ };
801
+ };
802
+ }