@sendbird/cli 0.0.0-stage → 0.3.0-alpha.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 (182) hide show
  1. package/.claude-plugin/plugin.json +11 -0
  2. package/.codex-plugin/plugin.json +33 -0
  3. package/LICENSE +13 -0
  4. package/NOTICE.md +1105 -0
  5. package/PROVENANCE.md +15 -0
  6. package/README.md +457 -2
  7. package/dist/acl.d.ts +2 -0
  8. package/dist/acl.js +12 -0
  9. package/dist/acl.js.map +1 -0
  10. package/dist/billing-plan.d.ts +68 -0
  11. package/dist/billing-plan.js +235 -0
  12. package/dist/billing-plan.js.map +1 -0
  13. package/dist/browser.d.ts +1 -0
  14. package/dist/browser.js +20 -0
  15. package/dist/browser.js.map +1 -0
  16. package/dist/calls-catalog.d.ts +79 -0
  17. package/dist/calls-catalog.js +322 -0
  18. package/dist/calls-catalog.js.map +1 -0
  19. package/dist/calls-credits.d.ts +31 -0
  20. package/dist/calls-credits.js +224 -0
  21. package/dist/calls-credits.js.map +1 -0
  22. package/dist/calls-trial.d.ts +45 -0
  23. package/dist/calls-trial.js +77 -0
  24. package/dist/calls-trial.js.map +1 -0
  25. package/dist/calls.d.ts +10 -0
  26. package/dist/calls.js +470 -0
  27. package/dist/calls.js.map +1 -0
  28. package/dist/catalog.d.ts +67 -0
  29. package/dist/catalog.js +784 -0
  30. package/dist/catalog.js.map +1 -0
  31. package/dist/cli.d.ts +6 -0
  32. package/dist/cli.js +502 -0
  33. package/dist/cli.js.map +1 -0
  34. package/dist/core.d.ts +86 -0
  35. package/dist/core.js +531 -0
  36. package/dist/core.js.map +1 -0
  37. package/dist/diagnostics.d.ts +206 -0
  38. package/dist/diagnostics.js +664 -0
  39. package/dist/diagnostics.js.map +1 -0
  40. package/dist/discovery.d.ts +700 -0
  41. package/dist/discovery.js +838 -0
  42. package/dist/discovery.js.map +1 -0
  43. package/dist/docs.d.ts +31 -0
  44. package/dist/docs.js +137 -0
  45. package/dist/docs.js.map +1 -0
  46. package/dist/features.d.ts +131 -0
  47. package/dist/features.js +227 -0
  48. package/dist/features.js.map +1 -0
  49. package/dist/generated-api.d.ts +116 -0
  50. package/dist/generated-api.js +118 -0
  51. package/dist/generated-api.js.map +1 -0
  52. package/dist/human-format.d.ts +40 -0
  53. package/dist/human-format.js +205 -0
  54. package/dist/human-format.js.map +1 -0
  55. package/dist/human-list.d.ts +2 -0
  56. package/dist/human-list.js +368 -0
  57. package/dist/human-list.js.map +1 -0
  58. package/dist/human-output.d.ts +10 -0
  59. package/dist/human-output.js +1351 -0
  60. package/dist/human-output.js.map +1 -0
  61. package/dist/human-pro.d.ts +3 -0
  62. package/dist/human-pro.js +201 -0
  63. package/dist/human-pro.js.map +1 -0
  64. package/dist/human-progress.d.ts +5 -0
  65. package/dist/human-progress.js +49 -0
  66. package/dist/human-progress.js.map +1 -0
  67. package/dist/local.d.ts +42 -0
  68. package/dist/local.js +707 -0
  69. package/dist/local.js.map +1 -0
  70. package/dist/oauth-callback.d.ts +3 -0
  71. package/dist/oauth-callback.js +66 -0
  72. package/dist/oauth-callback.js.map +1 -0
  73. package/dist/oauth-lock.d.ts +6 -0
  74. package/dist/oauth-lock.js +212 -0
  75. package/dist/oauth-lock.js.map +1 -0
  76. package/dist/oauth.d.ts +32 -0
  77. package/dist/oauth.js +493 -0
  78. package/dist/oauth.js.map +1 -0
  79. package/dist/presentation.d.ts +208 -0
  80. package/dist/presentation.js +156 -0
  81. package/dist/presentation.js.map +1 -0
  82. package/dist/pro-api-catalog.d.ts +24 -0
  83. package/dist/pro-api-catalog.js +619 -0
  84. package/dist/pro-api-catalog.js.map +1 -0
  85. package/dist/pro-api.d.ts +10 -0
  86. package/dist/pro-api.js +338 -0
  87. package/dist/pro-api.js.map +1 -0
  88. package/dist/project.d.ts +34 -0
  89. package/dist/project.js +62 -0
  90. package/dist/project.js.map +1 -0
  91. package/dist/recovery.d.ts +41 -0
  92. package/dist/recovery.js +417 -0
  93. package/dist/recovery.js.map +1 -0
  94. package/dist/runner.d.ts +47 -0
  95. package/dist/runner.js +603 -0
  96. package/dist/runner.js.map +1 -0
  97. package/dist/sdk-catalog.d.ts +69 -0
  98. package/dist/sdk-catalog.js +527 -0
  99. package/dist/sdk-catalog.js.map +1 -0
  100. package/dist/sdk-config.d.ts +19 -0
  101. package/dist/sdk-config.js +85 -0
  102. package/dist/sdk-config.js.map +1 -0
  103. package/dist/sdk-dto.d.ts +244 -0
  104. package/dist/sdk-dto.js +98 -0
  105. package/dist/sdk-dto.js.map +1 -0
  106. package/dist/sdk-limits.d.ts +2 -0
  107. package/dist/sdk-limits.js +3 -0
  108. package/dist/sdk-limits.js.map +1 -0
  109. package/dist/sdk-node-file-reader.d.ts +6 -0
  110. package/dist/sdk-node-file-reader.js +38 -0
  111. package/dist/sdk-node-file-reader.js.map +1 -0
  112. package/dist/sdk-pro-catalog.d.ts +22 -0
  113. package/dist/sdk-pro-catalog.js +234 -0
  114. package/dist/sdk-pro-catalog.js.map +1 -0
  115. package/dist/sdk-pro-runtime.d.ts +31 -0
  116. package/dist/sdk-pro-runtime.js +293 -0
  117. package/dist/sdk-pro-runtime.js.map +1 -0
  118. package/dist/sdk-query.d.ts +10 -0
  119. package/dist/sdk-query.js +29 -0
  120. package/dist/sdk-query.js.map +1 -0
  121. package/dist/sdk-runtime.d.ts +15 -0
  122. package/dist/sdk-runtime.js +685 -0
  123. package/dist/sdk-runtime.js.map +1 -0
  124. package/dist/sdk-worker.d.ts +1 -0
  125. package/dist/sdk-worker.js +26 -0
  126. package/dist/sdk-worker.js.map +1 -0
  127. package/dist/sdk.d.ts +29 -0
  128. package/dist/sdk.js +346 -0
  129. package/dist/sdk.js.map +1 -0
  130. package/dist/search-engine.d.ts +17 -0
  131. package/dist/search-engine.js +54 -0
  132. package/dist/search-engine.js.map +1 -0
  133. package/dist/search-intents.d.ts +2 -0
  134. package/dist/search-intents.js +98 -0
  135. package/dist/search-intents.js.map +1 -0
  136. package/dist/search.d.ts +7 -0
  137. package/dist/search.js +58 -0
  138. package/dist/search.js.map +1 -0
  139. package/dist/secret-output.d.ts +2 -0
  140. package/dist/secret-output.js +108 -0
  141. package/dist/secret-output.js.map +1 -0
  142. package/dist/shell.d.ts +3 -0
  143. package/dist/shell.js +14 -0
  144. package/dist/shell.js.map +1 -0
  145. package/dist/skills.d.ts +210 -0
  146. package/dist/skills.js +374 -0
  147. package/dist/skills.js.map +1 -0
  148. package/dist/value-semantics.d.ts +70 -0
  149. package/dist/value-semantics.js +173 -0
  150. package/dist/value-semantics.js.map +1 -0
  151. package/dist/version.d.ts +1 -0
  152. package/dist/version.js +3 -0
  153. package/dist/version.js.map +1 -0
  154. package/dist/windows.d.ts +4 -0
  155. package/dist/windows.js +136 -0
  156. package/dist/windows.js.map +1 -0
  157. package/dist/workflows.d.ts +228 -0
  158. package/dist/workflows.js +1207 -0
  159. package/dist/workflows.js.map +1 -0
  160. package/package.json +86 -4
  161. package/plugin.json +22 -0
  162. package/references/agent-guide.json +196 -0
  163. package/references/commands.md +247 -0
  164. package/references/dashboard-inventory.json +14796 -0
  165. package/references/docs-index.json +2709 -0
  166. package/references/sdk-commands.json +15065 -0
  167. package/references/workflows.json +1246 -0
  168. package/skills/sendbird/SKILL.md +96 -0
  169. package/skills/sendbird/agents/openai.yaml +4 -0
  170. package/skills/sendbird/references/build-chat-app.md +49 -0
  171. package/skills/sendbird/references/client-guide.md +34 -0
  172. package/skills/sendbird/references/client-plugin-bridge.md +77 -0
  173. package/skills/sendbird/references/client-plugin-install.md +39 -0
  174. package/skills/sendbird/references/operational-checks.md +35 -0
  175. package/skills/sendbird/references/pro-capabilities.md +52 -0
  176. package/skills/sendbird/scripts/client-guide.mjs +283 -0
  177. package/skills/sendbird/scripts/client-plugin-bridge.mjs +703 -0
  178. package/skills/sendbird-setup/SKILL.md +18 -0
  179. package/skills/sendbird-setup/agents/openai.yaml +4 -0
  180. package/skills/sendbird-setup/references/onboarding.md +73 -0
  181. package/skills/sendbird-setup/scripts/install-cli.mjs +447 -0
  182. package/skills/sendbird-setup/scripts/npm-run.mjs +34 -0
@@ -0,0 +1,700 @@
1
+ import type { Command } from "commander";
2
+ import { type Definition } from "./catalog.js";
3
+ import { CliError } from "./core.js";
4
+ import { type OperationEffect } from "./presentation.js";
5
+ export declare const introspectionNames: string[];
6
+ export declare function commandNodes(root: Command): {
7
+ path: string;
8
+ command: Command;
9
+ }[];
10
+ export declare function definitionFor(path: string): Definition | undefined;
11
+ export declare function transportFor(path: string): "local" | "sdk" | "dashboard";
12
+ export declare function effectFor(path: string): "offline" | "read" | "mutation" | "sdk-read" | "stream" | "local/auth mutation";
13
+ export declare function agentGuide(): {
14
+ protocol_version: number;
15
+ version: string;
16
+ entrypoint: string;
17
+ purpose: string;
18
+ first_rules: string[];
19
+ onboarding: {
20
+ skill: string;
21
+ guide: string;
22
+ purpose: string;
23
+ hosts: string[];
24
+ };
25
+ skill_registration: {
26
+ inspect: string[];
27
+ read_now: string[];
28
+ install: {
29
+ claude: string[];
30
+ codex: string[];
31
+ };
32
+ note: string;
33
+ };
34
+ value_meanings: string;
35
+ offline_discovery: string;
36
+ project_marker: {
37
+ file: string;
38
+ purpose: string;
39
+ inspect: string[];
40
+ create: string[];
41
+ first_step: string[];
42
+ precedence: string;
43
+ };
44
+ discovery: {
45
+ argv: string[];
46
+ purpose: string;
47
+ }[];
48
+ authentication: {
49
+ dashboard: {
50
+ credential: string;
51
+ check: string[];
52
+ login: string[];
53
+ note: string;
54
+ };
55
+ sdk: {
56
+ credential: string;
57
+ required: string[];
58
+ token_file: string[];
59
+ staging: string[];
60
+ note: string;
61
+ };
62
+ };
63
+ contract: {
64
+ stdout: string;
65
+ stderr: string;
66
+ input: string;
67
+ mutations: string;
68
+ retry: string;
69
+ context: string;
70
+ placeholders: string;
71
+ };
72
+ known_limits: string[];
73
+ };
74
+ export declare function compactCommands(root: Command, opts: {
75
+ search?: string;
76
+ transport?: string;
77
+ limit?: string;
78
+ offset?: string;
79
+ }): Promise<{
80
+ next?: string[][] | undefined;
81
+ version: string;
82
+ total: number;
83
+ offset: number;
84
+ limit: number;
85
+ next_offset: number | null;
86
+ commands: {
87
+ match?: {
88
+ match_type: string;
89
+ matched_terms: string[];
90
+ } | undefined;
91
+ command: string;
92
+ description: string;
93
+ transport: string;
94
+ effect: string;
95
+ inspect: string[];
96
+ }[];
97
+ }>;
98
+ export declare function exampleArgv(d: Definition): {
99
+ note: string;
100
+ private_body_file?: Record<string, unknown> | undefined;
101
+ argv: string[];
102
+ shell: string;
103
+ input: {
104
+ command: string;
105
+ params: {
106
+ [x: string]: unknown;
107
+ };
108
+ query: {
109
+ [x: string]: unknown;
110
+ };
111
+ body: Record<string, unknown>;
112
+ context: {
113
+ "org-id"?: string | undefined;
114
+ "app-id": string;
115
+ } | {
116
+ "org-id": string;
117
+ } | {
118
+ "org-id"?: undefined;
119
+ };
120
+ };
121
+ };
122
+ export declare function describeCommand(root: Command, path: string): {
123
+ protocol_version: number;
124
+ version: string;
125
+ command: string;
126
+ description: string;
127
+ transport: string;
128
+ effect: string;
129
+ authentication: string;
130
+ required: string[];
131
+ flags: {
132
+ flag: string | undefined;
133
+ syntax: string;
134
+ description: string;
135
+ takes_value: boolean;
136
+ }[];
137
+ arguments: {
138
+ name: string;
139
+ required: boolean;
140
+ variadic: boolean;
141
+ description: string;
142
+ }[];
143
+ constraints: string[];
144
+ input: {
145
+ params: {
146
+ required: string[];
147
+ };
148
+ query: {
149
+ required: string[];
150
+ };
151
+ body: {
152
+ required: string[];
153
+ };
154
+ };
155
+ output: {
156
+ type: string;
157
+ required: string[];
158
+ properties: {
159
+ ok: {
160
+ const: boolean;
161
+ };
162
+ command: {
163
+ type: string;
164
+ };
165
+ effect: {
166
+ const: OperationEffect;
167
+ };
168
+ status: {
169
+ enum: string[];
170
+ };
171
+ target: {
172
+ type: string;
173
+ properties: {
174
+ app_id: {
175
+ type: string;
176
+ };
177
+ org_id: {
178
+ type: string;
179
+ };
180
+ channel_url: {
181
+ type: string;
182
+ };
183
+ channel_type: {
184
+ enum: string[];
185
+ };
186
+ user_id: {
187
+ type: string;
188
+ };
189
+ actor_user_id: {
190
+ type: string;
191
+ };
192
+ message_id: {
193
+ type: string;
194
+ };
195
+ };
196
+ additionalProperties: boolean;
197
+ };
198
+ result: {
199
+ anyOf: Record<string, unknown>[];
200
+ };
201
+ response: {
202
+ enum: string[];
203
+ };
204
+ };
205
+ additionalProperties: boolean;
206
+ } | {
207
+ anyOf: ({
208
+ type: string;
209
+ required: string[];
210
+ properties: {
211
+ ok: {
212
+ const: boolean;
213
+ };
214
+ command: {
215
+ type: string;
216
+ };
217
+ effect: {
218
+ const: OperationEffect;
219
+ };
220
+ status: {
221
+ enum: string[];
222
+ };
223
+ target: {
224
+ type: string;
225
+ properties: {
226
+ app_id: {
227
+ type: string;
228
+ };
229
+ org_id: {
230
+ type: string;
231
+ };
232
+ channel_url: {
233
+ type: string;
234
+ };
235
+ channel_type: {
236
+ enum: string[];
237
+ };
238
+ user_id: {
239
+ type: string;
240
+ };
241
+ actor_user_id: {
242
+ type: string;
243
+ };
244
+ message_id: {
245
+ type: string;
246
+ };
247
+ };
248
+ additionalProperties: boolean;
249
+ };
250
+ result: {
251
+ anyOf: Record<string, unknown>[];
252
+ };
253
+ response: {
254
+ enum: string[];
255
+ };
256
+ };
257
+ additionalProperties: boolean;
258
+ } | {
259
+ type: string;
260
+ required: string[];
261
+ properties: {
262
+ ok: {
263
+ const: boolean;
264
+ };
265
+ type: {
266
+ const: string;
267
+ };
268
+ command: {
269
+ type: string;
270
+ };
271
+ event: {
272
+ type: string;
273
+ additionalProperties: boolean;
274
+ };
275
+ };
276
+ additionalProperties: boolean;
277
+ })[];
278
+ } | {
279
+ type: string;
280
+ required: string[];
281
+ properties: {
282
+ version: {
283
+ type: string;
284
+ };
285
+ query: {
286
+ type: string;
287
+ };
288
+ total: {
289
+ type: string;
290
+ };
291
+ offset: {
292
+ type: string;
293
+ };
294
+ limit: {
295
+ type: string;
296
+ };
297
+ next_offset: {
298
+ type: string[];
299
+ };
300
+ results: {
301
+ type: string;
302
+ items: {
303
+ type: string;
304
+ };
305
+ };
306
+ id?: undefined;
307
+ title?: undefined;
308
+ source?: undefined;
309
+ source_url?: undefined;
310
+ sha256?: undefined;
311
+ content?: undefined;
312
+ };
313
+ } | {
314
+ type: string;
315
+ required: string[];
316
+ properties: {
317
+ version: {
318
+ type: string;
319
+ };
320
+ id: {
321
+ type: string;
322
+ };
323
+ title: {
324
+ type: string;
325
+ };
326
+ source: {
327
+ type: string;
328
+ };
329
+ source_url: {
330
+ type: string;
331
+ };
332
+ sha256: {
333
+ type: string;
334
+ };
335
+ content: {
336
+ type: string;
337
+ description: string;
338
+ };
339
+ query?: undefined;
340
+ total?: undefined;
341
+ offset?: undefined;
342
+ limit?: undefined;
343
+ next_offset?: undefined;
344
+ results?: undefined;
345
+ };
346
+ };
347
+ value_semantics: {
348
+ version: number;
349
+ path_root: string;
350
+ wildcard: string;
351
+ unknown_values: string;
352
+ input: string;
353
+ fields: ({
354
+ kind: "enum";
355
+ values: {
356
+ value: number;
357
+ name: string;
358
+ label: string;
359
+ description: string;
360
+ }[];
361
+ path: string;
362
+ vocabulary: "guest_user_policy" | "unread_badge" | "profanity_mode" | "domain_mode" | "image_mode" | "image_likelihood" | "profanity_action" | "character_cap" | "message_rate";
363
+ } | {
364
+ kind: "enum";
365
+ values: {
366
+ value: number;
367
+ name: string;
368
+ label: string;
369
+ description: string;
370
+ }[];
371
+ path: string;
372
+ vocabulary: "guest_user_policy" | "unread_badge" | "profanity_mode" | "domain_mode" | "image_mode" | "image_likelihood" | "profanity_action" | "character_cap" | "message_rate";
373
+ } | {
374
+ kind: "enum";
375
+ values: {
376
+ value: number;
377
+ name: string;
378
+ label: string;
379
+ description: string;
380
+ }[];
381
+ path: string;
382
+ vocabulary: "guest_user_policy" | "unread_badge" | "profanity_mode" | "domain_mode" | "image_mode" | "image_likelihood" | "profanity_action" | "character_cap" | "message_rate";
383
+ } | {
384
+ kind: "enum";
385
+ values: {
386
+ value: number;
387
+ name: string;
388
+ label: string;
389
+ description: string;
390
+ }[];
391
+ path: string;
392
+ vocabulary: "guest_user_policy" | "unread_badge" | "profanity_mode" | "domain_mode" | "image_mode" | "image_likelihood" | "profanity_action" | "character_cap" | "message_rate";
393
+ } | {
394
+ kind: "enum";
395
+ values: {
396
+ value: number;
397
+ name: string;
398
+ label: string;
399
+ description: string;
400
+ }[];
401
+ path: string;
402
+ vocabulary: "guest_user_policy" | "unread_badge" | "profanity_mode" | "domain_mode" | "image_mode" | "image_likelihood" | "profanity_action" | "character_cap" | "message_rate";
403
+ } | {
404
+ kind: "enum";
405
+ values: {
406
+ value: number;
407
+ name: string;
408
+ label: string;
409
+ description: string;
410
+ }[];
411
+ path: string;
412
+ vocabulary: "guest_user_policy" | "unread_badge" | "profanity_mode" | "domain_mode" | "image_mode" | "image_likelihood" | "profanity_action" | "character_cap" | "message_rate";
413
+ } | {
414
+ kind: "enum";
415
+ values: {
416
+ value: number;
417
+ name: string;
418
+ label: string;
419
+ description: string;
420
+ }[];
421
+ path: string;
422
+ vocabulary: "guest_user_policy" | "unread_badge" | "profanity_mode" | "domain_mode" | "image_mode" | "image_likelihood" | "profanity_action" | "character_cap" | "message_rate";
423
+ } | {
424
+ kind: "sentinel";
425
+ values: {
426
+ value: number;
427
+ name: string;
428
+ label: string;
429
+ description: string;
430
+ }[];
431
+ path: string;
432
+ vocabulary: "guest_user_policy" | "unread_badge" | "profanity_mode" | "domain_mode" | "image_mode" | "image_likelihood" | "profanity_action" | "character_cap" | "message_rate";
433
+ } | {
434
+ kind: "sentinel";
435
+ values: {
436
+ value: number;
437
+ name: string;
438
+ label: string;
439
+ description: string;
440
+ }[];
441
+ path: string;
442
+ vocabulary: "guest_user_policy" | "unread_badge" | "profanity_mode" | "domain_mode" | "image_mode" | "image_likelihood" | "profanity_action" | "character_cap" | "message_rate";
443
+ })[];
444
+ } | undefined;
445
+ result_schema: Record<string, unknown> | {
446
+ type: string;
447
+ required: string[];
448
+ properties: {
449
+ ok: {
450
+ const: boolean;
451
+ };
452
+ command: {
453
+ type: string;
454
+ };
455
+ effect: {
456
+ const: OperationEffect;
457
+ };
458
+ status: {
459
+ enum: string[];
460
+ };
461
+ target: {
462
+ type: string;
463
+ properties: {
464
+ app_id: {
465
+ type: string;
466
+ };
467
+ org_id: {
468
+ type: string;
469
+ };
470
+ channel_url: {
471
+ type: string;
472
+ };
473
+ channel_type: {
474
+ enum: string[];
475
+ };
476
+ user_id: {
477
+ type: string;
478
+ };
479
+ actor_user_id: {
480
+ type: string;
481
+ };
482
+ message_id: {
483
+ type: string;
484
+ };
485
+ };
486
+ additionalProperties: boolean;
487
+ };
488
+ result: {
489
+ anyOf: Record<string, unknown>[];
490
+ };
491
+ response: {
492
+ enum: string[];
493
+ };
494
+ };
495
+ additionalProperties: boolean;
496
+ } | {
497
+ anyOf: ({
498
+ type: string;
499
+ required: string[];
500
+ properties: {
501
+ ok: {
502
+ const: boolean;
503
+ };
504
+ command: {
505
+ type: string;
506
+ };
507
+ effect: {
508
+ const: OperationEffect;
509
+ };
510
+ status: {
511
+ enum: string[];
512
+ };
513
+ target: {
514
+ type: string;
515
+ properties: {
516
+ app_id: {
517
+ type: string;
518
+ };
519
+ org_id: {
520
+ type: string;
521
+ };
522
+ channel_url: {
523
+ type: string;
524
+ };
525
+ channel_type: {
526
+ enum: string[];
527
+ };
528
+ user_id: {
529
+ type: string;
530
+ };
531
+ actor_user_id: {
532
+ type: string;
533
+ };
534
+ message_id: {
535
+ type: string;
536
+ };
537
+ };
538
+ additionalProperties: boolean;
539
+ };
540
+ result: {
541
+ anyOf: Record<string, unknown>[];
542
+ };
543
+ response: {
544
+ enum: string[];
545
+ };
546
+ };
547
+ additionalProperties: boolean;
548
+ } | {
549
+ type: string;
550
+ required: string[];
551
+ properties: {
552
+ ok: {
553
+ const: boolean;
554
+ };
555
+ type: {
556
+ const: string;
557
+ };
558
+ command: {
559
+ type: string;
560
+ };
561
+ event: {
562
+ type: string;
563
+ additionalProperties: boolean;
564
+ };
565
+ };
566
+ additionalProperties: boolean;
567
+ })[];
568
+ } | {
569
+ type: string;
570
+ required: string[];
571
+ properties: {
572
+ version: {
573
+ type: string;
574
+ };
575
+ query: {
576
+ type: string;
577
+ };
578
+ total: {
579
+ type: string;
580
+ };
581
+ offset: {
582
+ type: string;
583
+ };
584
+ limit: {
585
+ type: string;
586
+ };
587
+ next_offset: {
588
+ type: string[];
589
+ };
590
+ results: {
591
+ type: string;
592
+ items: {
593
+ type: string;
594
+ };
595
+ };
596
+ id?: undefined;
597
+ title?: undefined;
598
+ source?: undefined;
599
+ source_url?: undefined;
600
+ sha256?: undefined;
601
+ content?: undefined;
602
+ };
603
+ } | {
604
+ type: string;
605
+ required: string[];
606
+ properties: {
607
+ version: {
608
+ type: string;
609
+ };
610
+ id: {
611
+ type: string;
612
+ };
613
+ title: {
614
+ type: string;
615
+ };
616
+ source: {
617
+ type: string;
618
+ };
619
+ source_url: {
620
+ type: string;
621
+ };
622
+ sha256: {
623
+ type: string;
624
+ };
625
+ content: {
626
+ type: string;
627
+ description: string;
628
+ };
629
+ query?: undefined;
630
+ total?: undefined;
631
+ offset?: undefined;
632
+ limit?: undefined;
633
+ next_offset?: undefined;
634
+ results?: undefined;
635
+ };
636
+ };
637
+ example: {
638
+ note: string;
639
+ private_body_file?: Record<string, unknown> | undefined;
640
+ argv: string[];
641
+ shell: string;
642
+ input: {
643
+ command: string;
644
+ params: {
645
+ [x: string]: unknown;
646
+ };
647
+ query: {
648
+ [x: string]: unknown;
649
+ };
650
+ body: Record<string, unknown>;
651
+ context: {
652
+ "org-id"?: string | undefined;
653
+ "app-id": string;
654
+ } | {
655
+ "org-id": string;
656
+ } | {
657
+ "org-id"?: undefined;
658
+ };
659
+ };
660
+ } | {
661
+ argv: string[];
662
+ shell: string;
663
+ } | {
664
+ shell: string;
665
+ argv?: undefined;
666
+ };
667
+ recovery: string[];
668
+ };
669
+ export declare function invocationCommand(root: Command, args: string[]): Command;
670
+ export declare function commandPath(command: Command): string;
671
+ export declare function recovery(error: CliError, command: Command, root: Command): {
672
+ next: {
673
+ argv: string[];
674
+ reason: string;
675
+ }[];
676
+ recovery?: {
677
+ rule: string;
678
+ strategy: "manual";
679
+ target: import("./recovery.js").RecoverySnapshot;
680
+ verification: "not_checked";
681
+ automatic_retry: false;
682
+ safe_to_retry: false;
683
+ reads: {
684
+ argv: string[];
685
+ reason: string;
686
+ }[];
687
+ compare_fields: string[];
688
+ note: string;
689
+ decisions: {
690
+ matching: string;
691
+ missing: string;
692
+ different: string;
693
+ unreadable: string;
694
+ };
695
+ } | undefined;
696
+ mutation_state?: import("./recovery.js").MutationState | undefined;
697
+ command: string | undefined;
698
+ automatic_retry: boolean;
699
+ outcome_unknown: boolean;
700
+ };