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