@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,208 @@
1
+ export type OperationEffect = "read" | "mutation" | "local" | "sdk-read" | "stream";
2
+ type Context = {
3
+ command: string;
4
+ effect: OperationEffect;
5
+ value: unknown;
6
+ appId?: string;
7
+ orgId?: string;
8
+ actorId?: string;
9
+ params?: Record<string, unknown>;
10
+ dryRun?: boolean;
11
+ };
12
+ /** The --json stdout schema wraps the command's underlying result schema. */
13
+ export declare function operationSchema(resultSchema: Record<string, unknown>, effect: OperationEffect): {
14
+ type: string;
15
+ required: string[];
16
+ properties: {
17
+ ok: {
18
+ const: boolean;
19
+ };
20
+ command: {
21
+ type: string;
22
+ };
23
+ effect: {
24
+ const: OperationEffect;
25
+ };
26
+ status: {
27
+ enum: string[];
28
+ };
29
+ target: {
30
+ type: string;
31
+ properties: {
32
+ app_id: {
33
+ type: string;
34
+ };
35
+ org_id: {
36
+ type: string;
37
+ };
38
+ channel_url: {
39
+ type: string;
40
+ };
41
+ channel_type: {
42
+ enum: string[];
43
+ };
44
+ user_id: {
45
+ type: string;
46
+ };
47
+ actor_user_id: {
48
+ type: string;
49
+ };
50
+ message_id: {
51
+ type: string;
52
+ };
53
+ };
54
+ additionalProperties: boolean;
55
+ };
56
+ result: {
57
+ anyOf: Record<string, unknown>[];
58
+ };
59
+ response: {
60
+ enum: string[];
61
+ };
62
+ };
63
+ additionalProperties: boolean;
64
+ };
65
+ /** Each watch stdout line is either an event or the terminal operation result. */
66
+ export declare function stdoutSchema(resultSchema: Record<string, unknown>, effect: OperationEffect): {
67
+ type: string;
68
+ required: string[];
69
+ properties: {
70
+ ok: {
71
+ const: boolean;
72
+ };
73
+ command: {
74
+ type: string;
75
+ };
76
+ effect: {
77
+ const: OperationEffect;
78
+ };
79
+ status: {
80
+ enum: string[];
81
+ };
82
+ target: {
83
+ type: string;
84
+ properties: {
85
+ app_id: {
86
+ type: string;
87
+ };
88
+ org_id: {
89
+ type: string;
90
+ };
91
+ channel_url: {
92
+ type: string;
93
+ };
94
+ channel_type: {
95
+ enum: string[];
96
+ };
97
+ user_id: {
98
+ type: string;
99
+ };
100
+ actor_user_id: {
101
+ type: string;
102
+ };
103
+ message_id: {
104
+ type: string;
105
+ };
106
+ };
107
+ additionalProperties: boolean;
108
+ };
109
+ result: {
110
+ anyOf: Record<string, unknown>[];
111
+ };
112
+ response: {
113
+ enum: string[];
114
+ };
115
+ };
116
+ additionalProperties: boolean;
117
+ } | {
118
+ anyOf: ({
119
+ type: string;
120
+ required: string[];
121
+ properties: {
122
+ ok: {
123
+ const: boolean;
124
+ };
125
+ command: {
126
+ type: string;
127
+ };
128
+ effect: {
129
+ const: OperationEffect;
130
+ };
131
+ status: {
132
+ enum: string[];
133
+ };
134
+ target: {
135
+ type: string;
136
+ properties: {
137
+ app_id: {
138
+ type: string;
139
+ };
140
+ org_id: {
141
+ type: string;
142
+ };
143
+ channel_url: {
144
+ type: string;
145
+ };
146
+ channel_type: {
147
+ enum: string[];
148
+ };
149
+ user_id: {
150
+ type: string;
151
+ };
152
+ actor_user_id: {
153
+ type: string;
154
+ };
155
+ message_id: {
156
+ type: string;
157
+ };
158
+ };
159
+ additionalProperties: boolean;
160
+ };
161
+ result: {
162
+ anyOf: Record<string, unknown>[];
163
+ };
164
+ response: {
165
+ enum: string[];
166
+ };
167
+ };
168
+ additionalProperties: boolean;
169
+ } | {
170
+ type: string;
171
+ required: string[];
172
+ properties: {
173
+ ok: {
174
+ const: boolean;
175
+ };
176
+ type: {
177
+ const: string;
178
+ };
179
+ command: {
180
+ type: string;
181
+ };
182
+ event: {
183
+ type: string;
184
+ additionalProperties: boolean;
185
+ };
186
+ };
187
+ additionalProperties: boolean;
188
+ })[];
189
+ };
190
+ export declare function operationResult(context: Context): {
191
+ ok: true;
192
+ command: string;
193
+ effect: OperationEffect;
194
+ status: string;
195
+ target: {
196
+ message_id?: number | undefined;
197
+ actor_user_id?: string | undefined;
198
+ user_id?: string | undefined;
199
+ channel_type?: unknown;
200
+ channel_url?: string | undefined;
201
+ org_id?: string | undefined;
202
+ app_id?: string | undefined;
203
+ };
204
+ result: {} | null;
205
+ response: string;
206
+ };
207
+ export type OperationResult = ReturnType<typeof operationResult>;
208
+ export { humanEvent, humanFailure, humanOperation, humanValue, } from "./human-output.js";
@@ -0,0 +1,156 @@
1
+ /** The --json stdout schema wraps the command's underlying result schema. */
2
+ export function operationSchema(resultSchema, effect) {
3
+ const normalStatus = effect === "mutation"
4
+ ? "accepted"
5
+ : effect === "stream"
6
+ ? "completed"
7
+ : effect === "local"
8
+ ? "succeeded"
9
+ : "verified";
10
+ return {
11
+ type: "object",
12
+ required: [
13
+ "ok",
14
+ "command",
15
+ "effect",
16
+ "status",
17
+ "target",
18
+ "result",
19
+ "response",
20
+ ],
21
+ properties: {
22
+ ok: { const: true },
23
+ command: { type: "string" },
24
+ effect: { const: effect },
25
+ status: { enum: [normalStatus, "preview"] },
26
+ target: {
27
+ type: "object",
28
+ properties: {
29
+ app_id: { type: "string" },
30
+ org_id: { type: "string" },
31
+ channel_url: { type: "string" },
32
+ channel_type: { enum: ["open", "group", "supergroup"] },
33
+ user_id: { type: "string" },
34
+ actor_user_id: { type: "string" },
35
+ message_id: { type: "number" },
36
+ },
37
+ additionalProperties: false,
38
+ },
39
+ result: {
40
+ anyOf: [
41
+ resultSchema,
42
+ {
43
+ type: "object",
44
+ required: ["dry_run"],
45
+ properties: { dry_run: { const: true } },
46
+ additionalProperties: true,
47
+ },
48
+ { type: "null" },
49
+ ],
50
+ },
51
+ response: { enum: ["data", "empty"] },
52
+ },
53
+ additionalProperties: false,
54
+ };
55
+ }
56
+ /** Each watch stdout line is either an event or the terminal operation result. */
57
+ export function stdoutSchema(resultSchema, effect) {
58
+ const terminal = operationSchema(resultSchema, effect);
59
+ if (effect !== "stream")
60
+ return terminal;
61
+ return {
62
+ anyOf: [
63
+ {
64
+ type: "object",
65
+ required: ["ok", "type", "command", "event"],
66
+ properties: {
67
+ ok: { const: true },
68
+ type: { const: "event" },
69
+ command: { type: "string" },
70
+ event: { type: "object", additionalProperties: true },
71
+ },
72
+ additionalProperties: false,
73
+ },
74
+ terminal,
75
+ ],
76
+ };
77
+ }
78
+ function target({ command, appId, orgId, actorId, params, value, dryRun, }) {
79
+ const result = value && typeof value === "object"
80
+ ? value
81
+ : {};
82
+ const channelScoped = /\b(channel|message|poll)\b/.test(command) ||
83
+ command.startsWith("chat sdk report ");
84
+ const userScoped = /\buser\b/.test(command);
85
+ const channelUrl = result.channel_url ?? (channelScoped ? params?.id : undefined);
86
+ const explicitUser = typeof params?.user_id === "string" ? params.user_id : undefined;
87
+ const moderationUser = command.startsWith("chat moderation channel ")
88
+ ? result.user && typeof result.user === "object"
89
+ ? result.user.user_id
90
+ : undefined
91
+ : undefined;
92
+ const userId = explicitUser ??
93
+ moderationUser ??
94
+ (dryRun && actorId ? undefined : result.user_id) ??
95
+ (userScoped ? params?.id : undefined) ??
96
+ (command.startsWith("chat sdk user ") ? actorId : undefined);
97
+ const application = result.application;
98
+ const createdOrg = Array.isArray(result.organizations)
99
+ ? result.organizations[0]
100
+ : undefined;
101
+ const resultAppId = result.app_id ?? application?.app_id;
102
+ const resultOrgId = result.org_id ?? result.organization_uid ?? result.uid ?? createdOrg?.uid;
103
+ const messageId = result.message_id ?? params?.message_id;
104
+ const targetAppId = command.startsWith("calls credits ")
105
+ ? undefined
106
+ : command === "app create"
107
+ ? (resultAppId ?? appId)
108
+ : (appId ?? resultAppId);
109
+ const targetOrgId = command === "org create" ? (resultOrgId ?? orgId) : (orgId ?? resultOrgId);
110
+ return {
111
+ ...(command.startsWith("org ") || command === "app list"
112
+ ? {}
113
+ : typeof targetAppId === "string"
114
+ ? { app_id: targetAppId }
115
+ : {}),
116
+ ...(command === "org list"
117
+ ? {}
118
+ : typeof targetOrgId === "string"
119
+ ? { org_id: targetOrgId }
120
+ : {}),
121
+ ...(typeof channelUrl === "string" ? { channel_url: channelUrl } : {}),
122
+ ...(channelScoped &&
123
+ ["open", "group", "supergroup"].includes(String(params?.type))
124
+ ? { channel_type: params?.type }
125
+ : {}),
126
+ ...(typeof userId === "string" ? { user_id: userId } : {}),
127
+ ...(typeof actorId === "string" ? { actor_user_id: actorId } : {}),
128
+ ...(typeof messageId === "number" ? { message_id: messageId } : {}),
129
+ };
130
+ }
131
+ export function operationResult(context) {
132
+ const empty = context.value === null ||
133
+ context.value === undefined ||
134
+ (typeof context.value === "object" &&
135
+ !Array.isArray(context.value) &&
136
+ Object.keys(context.value).length === 0);
137
+ return {
138
+ ok: true,
139
+ command: `sendbird ${context.command}`,
140
+ effect: context.effect,
141
+ status: context.dryRun
142
+ ? "preview"
143
+ : context.effect === "mutation"
144
+ ? "accepted"
145
+ : context.effect === "stream"
146
+ ? "completed"
147
+ : context.effect === "local"
148
+ ? "succeeded"
149
+ : "verified",
150
+ target: target(context),
151
+ result: context.value ?? null,
152
+ response: empty ? "empty" : "data",
153
+ };
154
+ }
155
+ export { humanEvent, humanFailure, humanOperation, humanValue, } from "./human-output.js";
156
+ //# sourceMappingURL=presentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation.js","sourceRoot":"","sources":["../src/presentation.ts"],"names":[],"mappings":"AAcA,6EAA6E;AAC7E,MAAM,UAAU,eAAe,CAC7B,YAAqC,EACrC,MAAuB;IAEvB,MAAM,YAAY,GAChB,MAAM,KAAK,UAAU;QACnB,CAAC,CAAC,UAAU;QACZ,CAAC,CAAC,MAAM,KAAK,QAAQ;YACnB,CAAC,CAAC,WAAW;YACb,CAAC,CAAC,MAAM,KAAK,OAAO;gBAClB,CAAC,CAAC,WAAW;gBACb,CAAC,CAAC,UAAU,CAAC;IACrB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR,IAAI;YACJ,SAAS;YACT,QAAQ;YACR,QAAQ;YACR,QAAQ;YACR,QAAQ;YACR,UAAU;SACX;QACD,UAAU,EAAE;YACV,EAAE,EAAE,EAAE,KA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CAAC,CAAC,EAAE,CAAC;KACpE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,OAAgB;IAC9C,MAAM,KAAK,GACT,OAAO,CAAC,KAAK,KAAK,IAAI;QACtB,OAAO,CAAC,KAAK,KAAK,SAAS;QAC3B,CAAC,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ;YAChC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAC7C,OAAO;QACL,EAAE,EAAE,IAAa;QACjB,OAAO,EAAE,YAAY,OAAO,CAAC,OAAO,EAAE;QACtC,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM,EAAE,OAAO,CAAC,MAAM;YACpB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,UAAU;gBAC7B,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,QAAQ;oBAC3B,CAAC,CAAC,WAAW;oBACb,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,OAAO;wBAC1B,CAAC,CAAC,WAAW;wBACb,CAAC,CAAC,UAAU;QACpB,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC;QACvB,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,IAAI;QAC7B,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;KACnC,CAAC;AACJ,CAAC;AAGD,OAAO,EACL,UAAU,EACV,YAAY,EACZ,cAAc,EACd,UAAU,GACX,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /** Dashboard-backed Pro operations. All traffic uses Gate OAuth and App-Id. */
2
+ import { z } from "zod";
3
+ export declare const proApiDefinitions: {
4
+ resultSchema?: z.ZodType;
5
+ response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
6
+ description: string;
7
+ name: string;
8
+ method: string;
9
+ path: string;
10
+ scope?: "app" | "org";
11
+ requiresOrg?: boolean;
12
+ params?: z.ZodObject;
13
+ query?: z.ZodObject;
14
+ body?: z.ZodObject;
15
+ multipart?: boolean;
16
+ danger?: boolean;
17
+ secret?: boolean;
18
+ privateFields?: string[];
19
+ source: [string, string];
20
+ example?: Record<string, unknown>;
21
+ exampleParams?: Record<string, unknown>;
22
+ exampleQuery?: Record<string, unknown>;
23
+ defaults?: Record<string, unknown>;
24
+ }[];