v0-api 0.3.1 → 1.0.17

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 (43) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +13 -3
  3. package/dist/{components-eb0j7zgr.d.ts → components-lojiycjm.d.ts} +165 -284
  4. package/dist/components-lojiycjm.d.ts.map +1 -0
  5. package/dist/components-mcjsnuad.d.ts +894 -0
  6. package/dist/components-mcjsnuad.d.ts.map +1 -0
  7. package/dist/components.cjs +1567 -63
  8. package/dist/components.d.cts +1 -1
  9. package/dist/components.d.mts +1 -1
  10. package/dist/components.mjs +1509 -1
  11. package/dist/effect.cjs +131 -24
  12. package/dist/effect.d.cts +75 -5
  13. package/dist/effect.d.cts.map +1 -1
  14. package/dist/effect.d.mts +75 -5
  15. package/dist/effect.d.mts.map +1 -1
  16. package/dist/effect.mjs +125 -4
  17. package/dist/index.cjs +139 -23
  18. package/dist/index.d.cts +13 -8
  19. package/dist/index.d.cts.map +1 -1
  20. package/dist/index.d.mts +13 -8
  21. package/dist/index.d.mts.map +1 -1
  22. package/dist/index.d.ts +21676 -7155
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.mjs +30 -25
  25. package/dist/{schemas-mph32a3e.cjs → schemas-eef01xgn.cjs} +2004 -590
  26. package/dist/schemas-kunw251r.js +3825 -0
  27. package/dist/schemas.cjs +78 -1
  28. package/dist/schemas.d.cts +13169 -788
  29. package/dist/schemas.d.cts.map +1 -1
  30. package/dist/schemas.d.mts +13169 -788
  31. package/dist/schemas.d.mts.map +1 -1
  32. package/dist/schemas.mjs +1 -1
  33. package/dist/types.cjs +249 -10
  34. package/dist/types.d.cts +2943 -686
  35. package/dist/types.d.cts.map +1 -1
  36. package/dist/types.d.mts +2943 -686
  37. package/dist/types.d.mts.map +1 -1
  38. package/dist/types.mjs +215 -10
  39. package/package.json +34 -15
  40. package/dist/components-da0zh5te.cjs +0 -1497
  41. package/dist/components-eb0j7zgr.d.ts.map +0 -1
  42. package/dist/components-ja14lgg1.js +0 -1435
  43. package/dist/schemas-mkhkzrad.js +0 -2488
@@ -1,68 +1,1572 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- var components = require('./components-da0zh5te.cjs');
3
+ function notEmpty(value) {
4
+ return value !== null && value !== undefined;
5
+ }
6
+ function compactObject(obj) {
7
+ return Object.fromEntries(Object.entries(obj).filter(([, value])=>notEmpty(value)));
8
+ }
4
9
 
10
+ // The spec's server; the generated operations carry only the path.
11
+ const defaultBaseUrl = "https://api.v0.dev/v1";
12
+ const maxErrorBodyLength = 1000;
13
+ const binaryMediaTypes = new Set([
14
+ "application/gzip",
15
+ "application/octet-stream",
16
+ "application/pdf",
17
+ "application/vnd.tcpdump.pcap",
18
+ "application/wasm",
19
+ "application/x-gzip",
20
+ "application/x-tar",
21
+ "application/zip"
22
+ ]);
23
+ const isBinary = (contentType)=>{
24
+ const mediaType = contentType.split(";")[0]?.trim().toLowerCase() ?? "";
25
+ return binaryMediaTypes.has(mediaType) || /^(image|audio|video|font)\//.test(mediaType);
26
+ };
27
+ class ResponseError {
28
+ constructor(error){
29
+ this.error = error;
30
+ }
31
+ }
32
+ async function client({ url, method, body, headers, queryParams, signal, token = null, baseUrl = defaultBaseUrl, fetchImpl = fetch }) {
33
+ try {
34
+ const mergedHeaders = {
35
+ "Content-Type": "application/json",
36
+ Authorization: token ? `Bearer ${token}` : undefined
37
+ };
38
+ // Header names are case-insensitive: a caller's `authorization` replaces the default rather than joining it.
39
+ for (const [name, value] of Object.entries(headers ?? {})){
40
+ const known = Object.keys(mergedHeaders).find((key)=>key.toLowerCase() === name.toLowerCase());
41
+ mergedHeaders[known ?? name] = value;
42
+ }
43
+ const requestHeaders = compactObject(mergedHeaders);
44
+ /**
45
+ * As the fetch API is being used, when multipart/form-data is specified
46
+ * the Content-Type header must be deleted so that the browser can set
47
+ * the correct boundary.
48
+ * https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects#sending_files_using_a_formdata_object
49
+ */ if (requestHeaders["Content-Type"]?.toLowerCase().includes("multipart/form-data")) {
50
+ delete requestHeaders["Content-Type"];
51
+ }
52
+ const payload = body instanceof FormData ? body : requestHeaders["Content-Type"] === "application/json" ? JSON.stringify(body) : body;
53
+ // Every operation path starts with a slash, so one ending the base URL would send `//path`.
54
+ const fullUrl = `${baseUrl.replace(/\/+$/, "")}${resolveUrl(url, queryParams)}`;
55
+ const response = await fetchImpl(fullUrl, {
56
+ signal,
57
+ method: method.toUpperCase(),
58
+ body: payload,
59
+ headers: requestHeaders
60
+ });
61
+ if (!response.ok) {
62
+ const text = await response.text();
63
+ let payload;
64
+ try {
65
+ payload = JSON.parse(text);
66
+ } catch {
67
+ payload = text.slice(0, maxErrorBodyLength);
68
+ }
69
+ throw new ResponseError({
70
+ status: response.status,
71
+ payload
72
+ });
73
+ }
74
+ const contentType = response.headers?.get("content-type") ?? "";
75
+ // Decoding a zip, an image or other bytes as UTF-8 text would corrupt them.
76
+ if (response.blob && isBinary(contentType)) {
77
+ const blob = await response.blob();
78
+ if (!blob.size) return undefined;
79
+ return blob;
80
+ }
81
+ // A 204 or an empty body (common on DELETE) has nothing to parse.
82
+ const text = await response.text();
83
+ if (!text) return undefined;
84
+ if (contentType.includes("json")) return JSON.parse(text);
85
+ return text;
86
+ } catch (e) {
87
+ // Rethrown as is so the HTTP status survives; the Effect bindings map it to ApiError.
88
+ if (e instanceof ResponseError) throw e.error;
89
+ // A cancelled call rejects with the signal's reason as is, such as the TimeoutError of AbortSignal.timeout().
90
+ if (signal?.aborted || e instanceof Error && e.name === "AbortError") throw e;
91
+ const reason = e instanceof Error ? e.message : String(e);
92
+ // Only the path: query values can carry secrets.
93
+ throw new Error(`${method.toUpperCase()} ${url.split("?")[0]} failed: ${reason}`, {
94
+ cause: e
95
+ });
96
+ }
97
+ }
98
+ const resolveUrl = (url, queryParams = {})=>{
99
+ const search = new URLSearchParams();
100
+ for (const [key, value] of Object.entries(queryParams ?? {})){
101
+ if (value === undefined || value === null) continue;
102
+ if (Array.isArray(value)) {
103
+ for (const item of value)search.append(key, String(item));
104
+ } else if (typeof value === "object") {
105
+ // The spec's only object parameter, `metadata` on `GET /chats`, is `style: deepObject`.
106
+ for (const [name, item] of Object.entries(value)){
107
+ if (item !== undefined && item !== null) search.append(`${key}[${name}]`, String(item));
108
+ }
109
+ } else {
110
+ search.append(key, String(value));
111
+ }
112
+ }
113
+ const query = search.toString() ? `?${search.toString()}` : "";
114
+ return url + query;
115
+ };
5
116
 
117
+ /**
118
+ * @summary Create Chat
119
+ * @description Creates a new chat using a user message, optional system context, and model configuration. Useful for prompting the model within the scope of a specific project.
120
+ * @link /chats
121
+ */ async function chatsCreate({ body, config } = {}) {
122
+ const { client: request = client, ...requestConfig } = config ?? {};
123
+ const data = await request({
124
+ method: "POST",
125
+ url: `/chats`,
126
+ body: body,
127
+ ...requestConfig,
128
+ headers: {
129
+ ...requestConfig.headers
130
+ }
131
+ });
132
+ return data;
133
+ }
134
+ /**
135
+ * @summary Find Chats
136
+ * @description Retrieves a list of existing chats, with support for pagination and filtering by favorite status, Vercel project, or Git branch. Helps manage and navigate chat history.
137
+ * @link /chats
138
+ */ async function chatsFind({ queryParams, config } = {}) {
139
+ const { client: request = client, ...requestConfig } = config ?? {};
140
+ const data = await request({
141
+ method: "GET",
142
+ url: `/chats`,
143
+ queryParams,
144
+ ...requestConfig,
145
+ headers: {
146
+ ...requestConfig.headers
147
+ }
148
+ });
149
+ return data;
150
+ }
151
+ /**
152
+ * @summary Initialize Chat
153
+ * @description Initializes a new chat from source content such as files, repositories, registries, or zip archives. Enables context-rich conversations based on code or assets.
154
+ * @link /chats/init
155
+ */ async function chatsInit({ body, config } = {}) {
156
+ const { client: request = client, ...requestConfig } = config ?? {};
157
+ const data = await request({
158
+ method: "POST",
159
+ url: `/chats/init`,
160
+ body: body,
161
+ ...requestConfig,
162
+ headers: {
163
+ ...requestConfig.headers
164
+ }
165
+ });
166
+ return data;
167
+ }
168
+ /**
169
+ * @summary Delete Chat
170
+ * @description Deletes a specific chat based on the provided chatId. The chat and its contents are moved to trash and stop being retrievable immediately, then retained for 30 days before being permanently removed.
171
+ * @link /chats/{chatId}
172
+ */ async function chatsDelete({ pathParams, config } = {}) {
173
+ const { client: request = client, ...requestConfig } = config ?? {};
174
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
175
+ throw new Error(`Missing required path parameter: chatId`);
176
+ }
177
+ const data = await request({
178
+ method: "DELETE",
179
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}`,
180
+ ...requestConfig,
181
+ headers: {
182
+ ...requestConfig.headers
183
+ }
184
+ });
185
+ return data;
186
+ }
187
+ /**
188
+ * @summary Get Chat
189
+ * @description Retrieves the full details of a specific chat using its `chatId`. Includes messages, metadata, and associated configuration.
190
+ * @link /chats/{chatId}
191
+ */ async function chatsGetById({ pathParams, config } = {}) {
192
+ const { client: request = client, ...requestConfig } = config ?? {};
193
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
194
+ throw new Error(`Missing required path parameter: chatId`);
195
+ }
196
+ const data = await request({
197
+ method: "GET",
198
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}`,
199
+ ...requestConfig,
200
+ headers: {
201
+ ...requestConfig.headers
202
+ }
203
+ });
204
+ return data;
205
+ }
206
+ /**
207
+ * @summary Update Chat
208
+ * @description Updates the metadata of an existing chat using its `chatId`. Supports changes to the chat name and privacy setting.
209
+ * @link /chats/{chatId}
210
+ */ async function chatsUpdate({ pathParams, body, config } = {}) {
211
+ const { client: request = client, ...requestConfig } = config ?? {};
212
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
213
+ throw new Error(`Missing required path parameter: chatId`);
214
+ }
215
+ const data = await request({
216
+ method: "PATCH",
217
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}`,
218
+ body: body,
219
+ ...requestConfig,
220
+ headers: {
221
+ ...requestConfig.headers
222
+ }
223
+ });
224
+ return data;
225
+ }
226
+ /**
227
+ * @summary Favorite Chat
228
+ * @description Marks or unmarks a chat as a favorite using its `chatId`. This helps with organizing and quickly accessing important chats.
229
+ * @link /chats/{chatId}/favorite
230
+ */ async function chatsFavorite({ pathParams, body, config } = {}) {
231
+ const { client: request = client, ...requestConfig } = config ?? {};
232
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
233
+ throw new Error(`Missing required path parameter: chatId`);
234
+ }
235
+ const data = await request({
236
+ method: "PUT",
237
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/favorite`,
238
+ body: body,
239
+ ...requestConfig,
240
+ headers: {
241
+ ...requestConfig.headers
242
+ }
243
+ });
244
+ return data;
245
+ }
246
+ /**
247
+ * @summary Fork Chat
248
+ * @description Creates a new chat fork (duplicate) from a specific version within a chat created through Platform API v1. To duplicate chats created in v0 web or Platform API v2, use POST /v2/chats/{chatId}/duplicate.
249
+ * @link /chats/{chatId}/fork
250
+ */ async function chatsFork({ pathParams, body, config } = {}) {
251
+ const { client: request = client, ...requestConfig } = config ?? {};
252
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
253
+ throw new Error(`Missing required path parameter: chatId`);
254
+ }
255
+ const data = await request({
256
+ method: "POST",
257
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/fork`,
258
+ body: body,
259
+ ...requestConfig,
260
+ headers: {
261
+ ...requestConfig.headers
262
+ }
263
+ });
264
+ return data;
265
+ }
266
+ /**
267
+ * @summary Get Project by Chat ID
268
+ * @description Retrieves the v0 project associated with a given chat. Useful for determining the context or scope of a chat session.
269
+ * @link /chats/{chatId}/project
270
+ */ async function projectsGetByChatId({ pathParams, config } = {}) {
271
+ const { client: request = client, ...requestConfig } = config ?? {};
272
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
273
+ throw new Error(`Missing required path parameter: chatId`);
274
+ }
275
+ const data = await request({
276
+ method: "GET",
277
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/project`,
278
+ ...requestConfig,
279
+ headers: {
280
+ ...requestConfig.headers
281
+ }
282
+ });
283
+ return data;
284
+ }
285
+ /**
286
+ * @summary Find Chat Messages
287
+ * @description Retrieves a list of all messages for a specific chat, ordered by creation date (newest first). Supports cursor-based pagination and includes message content, role, and type information.
288
+ * @link /chats/{chatId}/messages
289
+ */ async function chatsFindMessages({ pathParams, queryParams, config } = {}) {
290
+ const { client: request = client, ...requestConfig } = config ?? {};
291
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
292
+ throw new Error(`Missing required path parameter: chatId`);
293
+ }
294
+ const data = await request({
295
+ method: "GET",
296
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/messages`,
297
+ queryParams,
298
+ ...requestConfig,
299
+ headers: {
300
+ ...requestConfig.headers
301
+ }
302
+ });
303
+ return data;
304
+ }
305
+ /**
306
+ * @summary Send Message
307
+ * @description Creates a new message in an existing chat. Triggers a model response using the provided prompt, with optional attachments and configuration settings.
308
+ * @link /chats/{chatId}/messages
309
+ */ async function chatsSendMessage({ pathParams, body, config } = {}) {
310
+ const { client: request = client, ...requestConfig } = config ?? {};
311
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
312
+ throw new Error(`Missing required path parameter: chatId`);
313
+ }
314
+ const data = await request({
315
+ method: "POST",
316
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/messages`,
317
+ body: body,
318
+ ...requestConfig,
319
+ headers: {
320
+ ...requestConfig.headers
321
+ }
322
+ });
323
+ return data;
324
+ }
325
+ /**
326
+ * @summary Get Chat Message
327
+ * @description Retrieves detailed information about a specific message within a chat, including content, files, model configuration, and demo URLs.
328
+ * @link /chats/{chatId}/messages/{messageId}
329
+ */ async function chatsGetMessage({ pathParams, config } = {}) {
330
+ const { client: request = client, ...requestConfig } = config ?? {};
331
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
332
+ throw new Error(`Missing required path parameter: chatId`);
333
+ }
334
+ if (pathParams?.messageId == null || String(pathParams.messageId) === "") {
335
+ throw new Error(`Missing required path parameter: messageId`);
336
+ }
337
+ const data = await request({
338
+ method: "GET",
339
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/messages/${encodeURIComponent(String(pathParams.messageId))}`,
340
+ ...requestConfig,
341
+ headers: {
342
+ ...requestConfig.headers
343
+ }
344
+ });
345
+ return data;
346
+ }
347
+ /**
348
+ * @summary Find Chat Versions
349
+ * @description Retrieves a list of all versions (iterations) for a specific chat, ordered by creation date (newest first). Supports cursor-based pagination and includes version status and demo URLs.
350
+ * @link /chats/{chatId}/versions
351
+ */ async function chatsFindVersions({ pathParams, queryParams, config } = {}) {
352
+ const { client: request = client, ...requestConfig } = config ?? {};
353
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
354
+ throw new Error(`Missing required path parameter: chatId`);
355
+ }
356
+ const data = await request({
357
+ method: "GET",
358
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/versions`,
359
+ queryParams,
360
+ ...requestConfig,
361
+ headers: {
362
+ ...requestConfig.headers
363
+ }
364
+ });
365
+ return data;
366
+ }
367
+ /**
368
+ * @summary Get Chat Version
369
+ * @description Retrieves detailed information about a specific version of a chat, including all files with their content and lock status.
370
+ * @link /chats/{chatId}/versions/{versionId}
371
+ */ async function chatsGetVersion({ pathParams, queryParams, config } = {}) {
372
+ const { client: request = client, ...requestConfig } = config ?? {};
373
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
374
+ throw new Error(`Missing required path parameter: chatId`);
375
+ }
376
+ if (pathParams?.versionId == null || String(pathParams.versionId) === "") {
377
+ throw new Error(`Missing required path parameter: versionId`);
378
+ }
379
+ const data = await request({
380
+ method: "GET",
381
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/versions/${encodeURIComponent(String(pathParams.versionId))}`,
382
+ queryParams,
383
+ ...requestConfig,
384
+ headers: {
385
+ ...requestConfig.headers
386
+ }
387
+ });
388
+ return data;
389
+ }
390
+ /**
391
+ * @summary Update Chat Version Files
392
+ * @description Updates the source files of a specific chat version (block) manually. This allows editing generated files directly through the API.
393
+ * @link /chats/{chatId}/versions/{versionId}
394
+ */ async function chatsUpdateVersion({ pathParams, body, config } = {}) {
395
+ const { client: request = client, ...requestConfig } = config ?? {};
396
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
397
+ throw new Error(`Missing required path parameter: chatId`);
398
+ }
399
+ if (pathParams?.versionId == null || String(pathParams.versionId) === "") {
400
+ throw new Error(`Missing required path parameter: versionId`);
401
+ }
402
+ const data = await request({
403
+ method: "PATCH",
404
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/versions/${encodeURIComponent(String(pathParams.versionId))}`,
405
+ body: body,
406
+ ...requestConfig,
407
+ headers: {
408
+ ...requestConfig.headers
409
+ }
410
+ });
411
+ return data;
412
+ }
413
+ /**
414
+ * @summary Download version files
415
+ * @description Download all files for a specific chat version as a zip or tarball archive. Use includeDefaultFiles=true to include all deployment files (package.json, configuration files, etc.) or false/omitted to return only the generated source files.
416
+ * @link /chats/{chatId}/versions/{versionId}/download
417
+ */ async function chatsDownloadVersion({ pathParams, queryParams, config } = {}) {
418
+ const { client: request = client, ...requestConfig } = config ?? {};
419
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
420
+ throw new Error(`Missing required path parameter: chatId`);
421
+ }
422
+ if (pathParams?.versionId == null || String(pathParams.versionId) === "") {
423
+ throw new Error(`Missing required path parameter: versionId`);
424
+ }
425
+ const data = await request({
426
+ method: "GET",
427
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/versions/${encodeURIComponent(String(pathParams.versionId))}/download`,
428
+ queryParams,
429
+ ...requestConfig,
430
+ headers: {
431
+ ...requestConfig.headers
432
+ }
433
+ });
434
+ return data;
435
+ }
436
+ /**
437
+ * @summary Delete Chat Version Files
438
+ * @description Deletes source files from a specific chat version (block). Files are removed from the version and a new source version is created.
439
+ * @link /chats/{chatId}/versions/{versionId}/files/delete
440
+ */ async function chatsDeleteVersionFiles({ pathParams, body, config } = {}) {
441
+ const { client: request = client, ...requestConfig } = config ?? {};
442
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
443
+ throw new Error(`Missing required path parameter: chatId`);
444
+ }
445
+ if (pathParams?.versionId == null || String(pathParams.versionId) === "") {
446
+ throw new Error(`Missing required path parameter: versionId`);
447
+ }
448
+ const data = await request({
449
+ method: "POST",
450
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/versions/${encodeURIComponent(String(pathParams.versionId))}/files/delete`,
451
+ body: body,
452
+ ...requestConfig,
453
+ headers: {
454
+ ...requestConfig.headers
455
+ }
456
+ });
457
+ return data;
458
+ }
459
+ /**
460
+ * @summary Resume Message
461
+ * @description Reconnects to an active assistant message stream and returns it as Server-Sent Events. This does not restart or continue a stopped generation.
462
+ * @link /chats/{chatId}/messages/{messageId}/resume
463
+ */ async function chatsResume({ pathParams, config } = {}) {
464
+ const { client: request = client, ...requestConfig } = config ?? {};
465
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
466
+ throw new Error(`Missing required path parameter: chatId`);
467
+ }
468
+ if (pathParams?.messageId == null || String(pathParams.messageId) === "") {
469
+ throw new Error(`Missing required path parameter: messageId`);
470
+ }
471
+ const data = await request({
472
+ method: "POST",
473
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/messages/${encodeURIComponent(String(pathParams.messageId))}/resume`,
474
+ ...requestConfig,
475
+ headers: {
476
+ ...requestConfig.headers
477
+ }
478
+ });
479
+ return data;
480
+ }
481
+ /**
482
+ * @summary Stop Message
483
+ * @description Stops an in-flight message generation in a chat. Useful for cancelling a streaming response that is still being generated.
484
+ * @link /chats/{chatId}/messages/{messageId}/stop
485
+ */ async function chatsStop({ pathParams, config } = {}) {
486
+ const { client: request = client, ...requestConfig } = config ?? {};
487
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
488
+ throw new Error(`Missing required path parameter: chatId`);
489
+ }
490
+ if (pathParams?.messageId == null || String(pathParams.messageId) === "") {
491
+ throw new Error(`Missing required path parameter: messageId`);
492
+ }
493
+ const data = await request({
494
+ method: "POST",
495
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/messages/${encodeURIComponent(String(pathParams.messageId))}/stop`,
496
+ ...requestConfig,
497
+ headers: {
498
+ ...requestConfig.headers
499
+ }
500
+ });
501
+ return data;
502
+ }
503
+ /**
504
+ * @summary Resolve Task
505
+ * @description Resolves a pending task in a chat, continuing the conversation. The latest message in the active chat fork must be an assistant message currently blocked on a matching task (integration setup, plan approval, question answers, or permission grants).
506
+ * @link /chats/{chatId}/tasks/resolve
507
+ */ async function chatsResolveTask({ pathParams, body, config } = {}) {
508
+ const { client: request = client, ...requestConfig } = config ?? {};
509
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
510
+ throw new Error(`Missing required path parameter: chatId`);
511
+ }
512
+ const data = await request({
513
+ method: "POST",
514
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/tasks/resolve`,
515
+ body: body,
516
+ ...requestConfig,
517
+ headers: {
518
+ ...requestConfig.headers
519
+ }
520
+ });
521
+ return data;
522
+ }
523
+ /**
524
+ * @summary Find Deployments
525
+ * @description Find deployments by project and chat IDs. This will return a list of deployments for the given project and chat IDs.
526
+ * @link /deployments
527
+ */ async function deploymentsFind({ queryParams, config } = {}) {
528
+ const { client: request = client, ...requestConfig } = config ?? {};
529
+ const data = await request({
530
+ method: "GET",
531
+ url: `/deployments`,
532
+ queryParams,
533
+ ...requestConfig,
534
+ headers: {
535
+ ...requestConfig.headers
536
+ }
537
+ });
538
+ return data;
539
+ }
540
+ /**
541
+ * @summary Create Deployment
542
+ * @description Create a new deployment for a specific chat and version. This will trigger a deployment to Vercel.
543
+ * @link /deployments
544
+ */ async function deploymentsCreate({ body, config } = {}) {
545
+ const { client: request = client, ...requestConfig } = config ?? {};
546
+ const data = await request({
547
+ method: "POST",
548
+ url: `/deployments`,
549
+ body: body,
550
+ ...requestConfig,
551
+ headers: {
552
+ ...requestConfig.headers
553
+ }
554
+ });
555
+ return data;
556
+ }
557
+ /**
558
+ * @summary Get Deployment
559
+ * @description Get a deployment by ID. This will return the details of the deployment, including the inspector URL, chat ID, project ID, version ID, API URL, and web URL.
560
+ * @link /deployments/{deploymentId}
561
+ */ async function deploymentsGetById({ pathParams, config } = {}) {
562
+ const { client: request = client, ...requestConfig } = config ?? {};
563
+ if (pathParams?.deploymentId == null || String(pathParams.deploymentId) === "") {
564
+ throw new Error(`Missing required path parameter: deploymentId`);
565
+ }
566
+ const data = await request({
567
+ method: "GET",
568
+ url: `/deployments/${encodeURIComponent(String(pathParams.deploymentId))}`,
569
+ ...requestConfig,
570
+ headers: {
571
+ ...requestConfig.headers
572
+ }
573
+ });
574
+ return data;
575
+ }
576
+ /**
577
+ * @summary Delete Deployment
578
+ * @description Delete a deployment by ID. This will delete the deployment from Vercel.
579
+ * @link /deployments/{deploymentId}
580
+ */ async function deploymentsDelete({ pathParams, config } = {}) {
581
+ const { client: request = client, ...requestConfig } = config ?? {};
582
+ if (pathParams?.deploymentId == null || String(pathParams.deploymentId) === "") {
583
+ throw new Error(`Missing required path parameter: deploymentId`);
584
+ }
585
+ const data = await request({
586
+ method: "DELETE",
587
+ url: `/deployments/${encodeURIComponent(String(pathParams.deploymentId))}`,
588
+ ...requestConfig,
589
+ headers: {
590
+ ...requestConfig.headers
591
+ }
592
+ });
593
+ return data;
594
+ }
595
+ /**
596
+ * @summary Find Deployment Logs
597
+ * @description Retrieves logs for a specific deployment. Supports filtering by timestamp to fetch only recent logs.
598
+ * @link /deployments/{deploymentId}/logs
599
+ */ async function deploymentsFindLogs({ pathParams, queryParams, config } = {}) {
600
+ const { client: request = client, ...requestConfig } = config ?? {};
601
+ if (pathParams?.deploymentId == null || String(pathParams.deploymentId) === "") {
602
+ throw new Error(`Missing required path parameter: deploymentId`);
603
+ }
604
+ const data = await request({
605
+ method: "GET",
606
+ url: `/deployments/${encodeURIComponent(String(pathParams.deploymentId))}/logs`,
607
+ queryParams,
608
+ ...requestConfig,
609
+ headers: {
610
+ ...requestConfig.headers
611
+ }
612
+ });
613
+ return data;
614
+ }
615
+ /**
616
+ * @summary Find Deployment Errors
617
+ * @description Retrieves a list of errors that occurred during a specific deployment. Useful for diagnosing and debugging deployment issues.
618
+ * @link /deployments/{deploymentId}/errors
619
+ */ async function deploymentsFindErrors({ pathParams, config } = {}) {
620
+ const { client: request = client, ...requestConfig } = config ?? {};
621
+ if (pathParams?.deploymentId == null || String(pathParams.deploymentId) === "") {
622
+ throw new Error(`Missing required path parameter: deploymentId`);
623
+ }
624
+ const data = await request({
625
+ method: "GET",
626
+ url: `/deployments/${encodeURIComponent(String(pathParams.deploymentId))}/errors`,
627
+ ...requestConfig,
628
+ headers: {
629
+ ...requestConfig.headers
630
+ }
631
+ });
632
+ return data;
633
+ }
634
+ /**
635
+ * @summary Find Hooks
636
+ * @description Retrieves a list of existing hooks in your workspace. Useful for managing active webhooks tied to chat events or deployments.
637
+ * @link /hooks
638
+ */ async function hooksFind({ config } = {}) {
639
+ const { client: request = client, ...requestConfig } = config ?? {};
640
+ const data = await request({
641
+ method: "GET",
642
+ url: `/hooks`,
643
+ ...requestConfig,
644
+ headers: {
645
+ ...requestConfig.headers
646
+ }
647
+ });
648
+ return data;
649
+ }
650
+ /**
651
+ * @summary Create Hook
652
+ * @description Creates a new webhook that listens for specific events. Supports optional association with a chat.
653
+ * @link /hooks
654
+ */ async function hooksCreate({ body, config } = {}) {
655
+ const { client: request = client, ...requestConfig } = config ?? {};
656
+ const data = await request({
657
+ method: "POST",
658
+ url: `/hooks`,
659
+ body: body,
660
+ ...requestConfig,
661
+ headers: {
662
+ ...requestConfig.headers
663
+ }
664
+ });
665
+ return data;
666
+ }
667
+ /**
668
+ * @summary Get Hook
669
+ * @description Retrieves the details of a specific webhook using its ID.
670
+ * @link /hooks/{hookId}
671
+ */ async function hooksGetById({ pathParams, config } = {}) {
672
+ const { client: request = client, ...requestConfig } = config ?? {};
673
+ if (pathParams?.hookId == null || String(pathParams.hookId) === "") {
674
+ throw new Error(`Missing required path parameter: hookId`);
675
+ }
676
+ const data = await request({
677
+ method: "GET",
678
+ url: `/hooks/${encodeURIComponent(String(pathParams.hookId))}`,
679
+ ...requestConfig,
680
+ headers: {
681
+ ...requestConfig.headers
682
+ }
683
+ });
684
+ return data;
685
+ }
686
+ /**
687
+ * @summary Update Hook
688
+ * @description Updates the configuration of an existing webhook, including its name, event subscriptions, or target URL.
689
+ * @link /hooks/{hookId}
690
+ */ async function hooksUpdate({ pathParams, body, config } = {}) {
691
+ const { client: request = client, ...requestConfig } = config ?? {};
692
+ if (pathParams?.hookId == null || String(pathParams.hookId) === "") {
693
+ throw new Error(`Missing required path parameter: hookId`);
694
+ }
695
+ const data = await request({
696
+ method: "PATCH",
697
+ url: `/hooks/${encodeURIComponent(String(pathParams.hookId))}`,
698
+ body: body,
699
+ ...requestConfig,
700
+ headers: {
701
+ ...requestConfig.headers
702
+ }
703
+ });
704
+ return data;
705
+ }
706
+ /**
707
+ * @summary Delete Hook
708
+ * @description Deletes a webhook based on its ID. This action is irreversible.
709
+ * @link /hooks/{hookId}
710
+ */ async function hooksDelete({ pathParams, config } = {}) {
711
+ const { client: request = client, ...requestConfig } = config ?? {};
712
+ if (pathParams?.hookId == null || String(pathParams.hookId) === "") {
713
+ throw new Error(`Missing required path parameter: hookId`);
714
+ }
715
+ const data = await request({
716
+ method: "DELETE",
717
+ url: `/hooks/${encodeURIComponent(String(pathParams.hookId))}`,
718
+ ...requestConfig,
719
+ headers: {
720
+ ...requestConfig.headers
721
+ }
722
+ });
723
+ return data;
724
+ }
725
+ /**
726
+ * @summary Find Vercel Projects
727
+ * @description Retrieves a list of Vercel projects linked to your integration. Useful for associating chats, deployments, or hooks with specific Vercel projects.
728
+ * @link /integrations/vercel/projects
729
+ */ async function integrationsVercelProjectsFind({ config } = {}) {
730
+ const { client: request = client, ...requestConfig } = config ?? {};
731
+ const data = await request({
732
+ method: "GET",
733
+ url: `/integrations/vercel/projects`,
734
+ ...requestConfig,
735
+ headers: {
736
+ ...requestConfig.headers
737
+ }
738
+ });
739
+ return data;
740
+ }
741
+ /**
742
+ * @summary Create Vercel Project
743
+ * @description Links a Vercel project to an existing v0 project. Enables Vercel-related features and deployment integration within the v0 workspace.
744
+ * @link /integrations/vercel/projects
745
+ */ async function integrationsVercelProjectsCreate({ body, config } = {}) {
746
+ const { client: request = client, ...requestConfig } = config ?? {};
747
+ const data = await request({
748
+ method: "POST",
749
+ url: `/integrations/vercel/projects`,
750
+ body: body,
751
+ ...requestConfig,
752
+ headers: {
753
+ ...requestConfig.headers
754
+ }
755
+ });
756
+ return data;
757
+ }
758
+ /**
759
+ * @summary Find Projects
760
+ * @description Returns a list of all v0 projects in your workspace. Useful for browsing or managing projects across different chats or use cases.
761
+ * @link /projects
762
+ */ async function projectsFind({ config } = {}) {
763
+ const { client: request = client, ...requestConfig } = config ?? {};
764
+ const data = await request({
765
+ method: "GET",
766
+ url: `/projects`,
767
+ ...requestConfig,
768
+ headers: {
769
+ ...requestConfig.headers
770
+ }
771
+ });
772
+ return data;
773
+ }
774
+ /**
775
+ * @summary Create Project
776
+ * @description Creates a new v0 project with an optional description, icon, environment variables, and instructions. Projects help organize chats and manage context.
777
+ * @link /projects
778
+ */ async function projectsCreate({ body, config } = {}) {
779
+ const { client: request = client, ...requestConfig } = config ?? {};
780
+ const data = await request({
781
+ method: "POST",
782
+ url: `/projects`,
783
+ body: body,
784
+ ...requestConfig,
785
+ headers: {
786
+ ...requestConfig.headers
787
+ }
788
+ });
789
+ return data;
790
+ }
791
+ /**
792
+ * @summary Get Project by ID
793
+ * @description Retrieves the details of a specific v0 project by its ID.
794
+ * @link /projects/{projectId}
795
+ */ async function projectsGetById({ pathParams, config } = {}) {
796
+ const { client: request = client, ...requestConfig } = config ?? {};
797
+ if (pathParams?.projectId == null || String(pathParams.projectId) === "") {
798
+ throw new Error(`Missing required path parameter: projectId`);
799
+ }
800
+ const data = await request({
801
+ method: "GET",
802
+ url: `/projects/${encodeURIComponent(String(pathParams.projectId))}`,
803
+ ...requestConfig,
804
+ headers: {
805
+ ...requestConfig.headers
806
+ }
807
+ });
808
+ return data;
809
+ }
810
+ /**
811
+ * @summary Update Project
812
+ * @description Updates the metadata of an existing project using its `projectId`. Supports changes to the project name and privacy setting.
813
+ * @link /projects/{projectId}
814
+ */ async function projectsUpdate({ pathParams, body, config } = {}) {
815
+ const { client: request = client, ...requestConfig } = config ?? {};
816
+ if (pathParams?.projectId == null || String(pathParams.projectId) === "") {
817
+ throw new Error(`Missing required path parameter: projectId`);
818
+ }
819
+ const data = await request({
820
+ method: "PATCH",
821
+ url: `/projects/${encodeURIComponent(String(pathParams.projectId))}`,
822
+ body: body,
823
+ ...requestConfig,
824
+ headers: {
825
+ ...requestConfig.headers
826
+ }
827
+ });
828
+ return data;
829
+ }
830
+ /**
831
+ * @summary Delete Project
832
+ * @description Deletes a specific project based on the provided projectId. This operation marks the project as deleted and is irreversible.
833
+ * @link /projects/{projectId}
834
+ */ async function projectsDelete({ pathParams, queryParams, config } = {}) {
835
+ const { client: request = client, ...requestConfig } = config ?? {};
836
+ if (pathParams?.projectId == null || String(pathParams.projectId) === "") {
837
+ throw new Error(`Missing required path parameter: projectId`);
838
+ }
839
+ const data = await request({
840
+ method: "DELETE",
841
+ url: `/projects/${encodeURIComponent(String(pathParams.projectId))}`,
842
+ queryParams,
843
+ ...requestConfig,
844
+ headers: {
845
+ ...requestConfig.headers
846
+ }
847
+ });
848
+ return data;
849
+ }
850
+ /**
851
+ * @summary Assign Project to Chat
852
+ * @description Links an existing v0 project to a specific chat. Helps group conversations under a shared project context.
853
+ * @link /projects/{projectId}/assign
854
+ */ async function projectsAssign({ pathParams, body, config } = {}) {
855
+ const { client: request = client, ...requestConfig } = config ?? {};
856
+ if (pathParams?.projectId == null || String(pathParams.projectId) === "") {
857
+ throw new Error(`Missing required path parameter: projectId`);
858
+ }
859
+ const data = await request({
860
+ method: "POST",
861
+ url: `/projects/${encodeURIComponent(String(pathParams.projectId))}/assign`,
862
+ body: body,
863
+ ...requestConfig,
864
+ headers: {
865
+ ...requestConfig.headers
866
+ }
867
+ });
868
+ return data;
869
+ }
870
+ /**
871
+ * @summary Find Environment Variables
872
+ * @description Retrieves all environment variables for a given project.
873
+ * @link /projects/{projectId}/env-vars
874
+ */ async function projectsFindEnvVars({ pathParams, queryParams, config } = {}) {
875
+ const { client: request = client, ...requestConfig } = config ?? {};
876
+ if (pathParams?.projectId == null || String(pathParams.projectId) === "") {
877
+ throw new Error(`Missing required path parameter: projectId`);
878
+ }
879
+ const data = await request({
880
+ method: "GET",
881
+ url: `/projects/${encodeURIComponent(String(pathParams.projectId))}/env-vars`,
882
+ queryParams,
883
+ ...requestConfig,
884
+ headers: {
885
+ ...requestConfig.headers
886
+ }
887
+ });
888
+ return data;
889
+ }
890
+ /**
891
+ * @summary Create Environment Variables
892
+ * @description Creates new environment variables for a given project. This endpoint will fail if any of the specified environment variable keys already exist, unless upsert is set to true.
893
+ * @link /projects/{projectId}/env-vars
894
+ */ async function projectsCreateEnvVars({ pathParams, body, queryParams, config } = {}) {
895
+ const { client: request = client, ...requestConfig } = config ?? {};
896
+ if (pathParams?.projectId == null || String(pathParams.projectId) === "") {
897
+ throw new Error(`Missing required path parameter: projectId`);
898
+ }
899
+ const data = await request({
900
+ method: "POST",
901
+ url: `/projects/${encodeURIComponent(String(pathParams.projectId))}/env-vars`,
902
+ queryParams,
903
+ body: body,
904
+ ...requestConfig,
905
+ headers: {
906
+ ...requestConfig.headers
907
+ }
908
+ });
909
+ return data;
910
+ }
911
+ /**
912
+ * @summary Update Environment Variables
913
+ * @description Updates multiple environment variables for a given project. Only the value of each environment variable can be updated.
914
+ * @link /projects/{projectId}/env-vars
915
+ */ async function projectsUpdateEnvVars({ pathParams, body, queryParams, config } = {}) {
916
+ const { client: request = client, ...requestConfig } = config ?? {};
917
+ if (pathParams?.projectId == null || String(pathParams.projectId) === "") {
918
+ throw new Error(`Missing required path parameter: projectId`);
919
+ }
920
+ const data = await request({
921
+ method: "PATCH",
922
+ url: `/projects/${encodeURIComponent(String(pathParams.projectId))}/env-vars`,
923
+ queryParams,
924
+ body: body,
925
+ ...requestConfig,
926
+ headers: {
927
+ ...requestConfig.headers
928
+ }
929
+ });
930
+ return data;
931
+ }
932
+ /**
933
+ * @summary Delete Environment Variables
934
+ * @description Deletes multiple environment variables for a given project by their IDs.
935
+ * @link /projects/{projectId}/env-vars/delete
936
+ */ async function projectsDeleteEnvVars({ pathParams, body, config } = {}) {
937
+ const { client: request = client, ...requestConfig } = config ?? {};
938
+ if (pathParams?.projectId == null || String(pathParams.projectId) === "") {
939
+ throw new Error(`Missing required path parameter: projectId`);
940
+ }
941
+ const data = await request({
942
+ method: "POST",
943
+ url: `/projects/${encodeURIComponent(String(pathParams.projectId))}/env-vars/delete`,
944
+ body: body,
945
+ ...requestConfig,
946
+ headers: {
947
+ ...requestConfig.headers
948
+ }
949
+ });
950
+ return data;
951
+ }
952
+ /**
953
+ * @summary Get Environment Variable
954
+ * @description Retrieves a specific environment variable for a given project by its ID, including its value.
955
+ * @link /projects/{projectId}/env-vars/{environmentVariableId}
956
+ */ async function projectsGetEnvVar({ pathParams, queryParams, config } = {}) {
957
+ const { client: request = client, ...requestConfig } = config ?? {};
958
+ if (pathParams?.projectId == null || String(pathParams.projectId) === "") {
959
+ throw new Error(`Missing required path parameter: projectId`);
960
+ }
961
+ if (pathParams?.environmentVariableId == null || String(pathParams.environmentVariableId) === "") {
962
+ throw new Error(`Missing required path parameter: environmentVariableId`);
963
+ }
964
+ const data = await request({
965
+ method: "GET",
966
+ url: `/projects/${encodeURIComponent(String(pathParams.projectId))}/env-vars/${encodeURIComponent(String(pathParams.environmentVariableId))}`,
967
+ queryParams,
968
+ ...requestConfig,
969
+ headers: {
970
+ ...requestConfig.headers
971
+ }
972
+ });
973
+ return data;
974
+ }
975
+ /**
976
+ * @summary Find Rate Limit
977
+ * @description Retrieves rate limit information for a given scope. Useful for monitoring usage limits and avoiding throttling.
978
+ * @link /rate-limits
979
+ */ async function rateLimitsFind({ queryParams, config } = {}) {
980
+ const { client: request = client, ...requestConfig } = config ?? {};
981
+ const data = await request({
982
+ method: "GET",
983
+ url: `/rate-limits`,
984
+ queryParams,
985
+ ...requestConfig,
986
+ headers: {
987
+ ...requestConfig.headers
988
+ }
989
+ });
990
+ return data;
991
+ }
992
+ /**
993
+ * @summary Get User
994
+ * @description Retrieves information about the authenticated user, including their ID, name, email, and account metadata.
995
+ * @link /user
996
+ */ async function userGet({ config } = {}) {
997
+ const { client: request = client, ...requestConfig } = config ?? {};
998
+ const data = await request({
999
+ method: "GET",
1000
+ url: `/user`,
1001
+ ...requestConfig,
1002
+ headers: {
1003
+ ...requestConfig.headers
1004
+ }
1005
+ });
1006
+ return data;
1007
+ }
1008
+ /**
1009
+ * @summary Get Billing
1010
+ * @description Fetches billing usage and quota information for the authenticated user. Can be scoped to a specific context (e.g. project or namespace).
1011
+ * @link /user/billing
1012
+ */ async function userGetBilling({ queryParams, config } = {}) {
1013
+ const { client: request = client, ...requestConfig } = config ?? {};
1014
+ const data = await request({
1015
+ method: "GET",
1016
+ url: `/user/billing`,
1017
+ queryParams,
1018
+ ...requestConfig,
1019
+ headers: {
1020
+ ...requestConfig.headers
1021
+ }
1022
+ });
1023
+ return data;
1024
+ }
1025
+ /**
1026
+ * @summary Get Plan
1027
+ * @description Returns the current subscription plan for the authenticated user, including tier details and feature limits.
1028
+ * @link /user/plan
1029
+ */ async function userGetPlan({ config } = {}) {
1030
+ const { client: request = client, ...requestConfig } = config ?? {};
1031
+ const data = await request({
1032
+ method: "GET",
1033
+ url: `/user/plan`,
1034
+ ...requestConfig,
1035
+ headers: {
1036
+ ...requestConfig.headers
1037
+ }
1038
+ });
1039
+ return data;
1040
+ }
1041
+ /**
1042
+ * @summary Get User Scopes
1043
+ * @description Retrieves all accessible scopes for the authenticated user, such as personal workspaces or shared teams.
1044
+ * @link /user/scopes
1045
+ */ async function userGetScopes({ config } = {}) {
1046
+ const { client: request = client, ...requestConfig } = config ?? {};
1047
+ const data = await request({
1048
+ method: "GET",
1049
+ url: `/user/scopes`,
1050
+ ...requestConfig,
1051
+ headers: {
1052
+ ...requestConfig.headers
1053
+ }
1054
+ });
1055
+ return data;
1056
+ }
1057
+ /**
1058
+ * @summary Restore Block
1059
+ * @description Restores a block to a specific version.
1060
+ * @link /chats/{chatId}/versions/{versionId}/restore
1061
+ */ async function chatsRestore({ pathParams, config } = {}) {
1062
+ const { client: request = client, ...requestConfig } = config ?? {};
1063
+ if (pathParams?.chatId == null || String(pathParams.chatId) === "") {
1064
+ throw new Error(`Missing required path parameter: chatId`);
1065
+ }
1066
+ if (pathParams?.versionId == null || String(pathParams.versionId) === "") {
1067
+ throw new Error(`Missing required path parameter: versionId`);
1068
+ }
1069
+ const data = await request({
1070
+ method: "POST",
1071
+ url: `/chats/${encodeURIComponent(String(pathParams.chatId))}/versions/${encodeURIComponent(String(pathParams.versionId))}/restore`,
1072
+ ...requestConfig,
1073
+ headers: {
1074
+ ...requestConfig.headers
1075
+ }
1076
+ });
1077
+ return data;
1078
+ }
1079
+ /**
1080
+ * @summary Get Usage Report
1081
+ * @description Retrieves detailed usage events for the authenticated user or team, including costs, event types, models used, and metadata. Shows the same data as displayed in the usage dashboard. Can be filtered by chatId to show usage for a specific chat, or by userId to show usage for a specific user.
1082
+ * @link /reports/usage
1083
+ */ async function reportsGetUsage({ queryParams, config } = {}) {
1084
+ const { client: request = client, ...requestConfig } = config ?? {};
1085
+ const data = await request({
1086
+ method: "GET",
1087
+ url: `/reports/usage`,
1088
+ queryParams,
1089
+ ...requestConfig,
1090
+ headers: {
1091
+ ...requestConfig.headers
1092
+ }
1093
+ });
1094
+ return data;
1095
+ }
1096
+ /**
1097
+ * @summary Get AI Usage Report
1098
+ * @description Retrieves v0 AI usage events for the authenticated user or active team scope.
1099
+ * @link /reports/usage/ai
1100
+ */ async function reportsGetAIUsage({ queryParams, config } = {}) {
1101
+ const { client: request = client, ...requestConfig } = config ?? {};
1102
+ const data = await request({
1103
+ method: "GET",
1104
+ url: `/reports/usage/ai`,
1105
+ queryParams,
1106
+ ...requestConfig,
1107
+ headers: {
1108
+ ...requestConfig.headers
1109
+ }
1110
+ });
1111
+ return data;
1112
+ }
1113
+ /**
1114
+ * @summary Get User Activity Report
1115
+ * @description Retrieves aggregated user activity data for team members, including chat counts, message counts, and activity timestamps. Only available for Enterprise teams with OWNER or BILLING role. Shows the same data as displayed in the Usage settings for Enterprise teams.
1116
+ * @link /reports/user-activity
1117
+ */ async function reportsGetUserActivity({ queryParams, config } = {}) {
1118
+ const { client: request = client, ...requestConfig } = config ?? {};
1119
+ const data = await request({
1120
+ method: "GET",
1121
+ url: `/reports/user-activity`,
1122
+ queryParams,
1123
+ ...requestConfig,
1124
+ headers: {
1125
+ ...requestConfig.headers
1126
+ }
1127
+ });
1128
+ return data;
1129
+ }
1130
+ /**
1131
+ * @summary List MCP Servers
1132
+ * @description Retrieves all MCP servers configured for the authenticated user.
1133
+ * @link /mcp-servers
1134
+ */ async function mcpServersFind({ config } = {}) {
1135
+ const { client: request = client, ...requestConfig } = config ?? {};
1136
+ const data = await request({
1137
+ method: "GET",
1138
+ url: `/mcp-servers`,
1139
+ ...requestConfig,
1140
+ headers: {
1141
+ ...requestConfig.headers
1142
+ }
1143
+ });
1144
+ return data;
1145
+ }
1146
+ /**
1147
+ * @summary Create MCP Server
1148
+ * @description Creates a new MCP server configuration for the authenticated user. Supports OAuth, bearer token, custom headers, and unauthenticated servers.
1149
+ * @link /mcp-servers
1150
+ */ async function mcpServersCreate({ body, config } = {}) {
1151
+ const { client: request = client, ...requestConfig } = config ?? {};
1152
+ const data = await request({
1153
+ method: "POST",
1154
+ url: `/mcp-servers`,
1155
+ body: body,
1156
+ ...requestConfig,
1157
+ headers: {
1158
+ ...requestConfig.headers
1159
+ }
1160
+ });
1161
+ return data;
1162
+ }
1163
+ /**
1164
+ * @summary Get MCP Server
1165
+ * @description Retrieves the details of a specific MCP server by its ID.
1166
+ * @link /mcp-servers/{mcpServerId}
1167
+ */ async function mcpServersGetById({ pathParams, config } = {}) {
1168
+ const { client: request = client, ...requestConfig } = config ?? {};
1169
+ if (pathParams?.mcpServerId == null || String(pathParams.mcpServerId) === "") {
1170
+ throw new Error(`Missing required path parameter: mcpServerId`);
1171
+ }
1172
+ const data = await request({
1173
+ method: "GET",
1174
+ url: `/mcp-servers/${encodeURIComponent(String(pathParams.mcpServerId))}`,
1175
+ ...requestConfig,
1176
+ headers: {
1177
+ ...requestConfig.headers
1178
+ }
1179
+ });
1180
+ return data;
1181
+ }
1182
+ /**
1183
+ * @summary Update MCP Server
1184
+ * @description Updates the configuration of an existing MCP server, including its name, URL, description, enabled status, and authentication settings.
1185
+ * @link /mcp-servers/{mcpServerId}
1186
+ */ async function mcpServersUpdate({ pathParams, body, config } = {}) {
1187
+ const { client: request = client, ...requestConfig } = config ?? {};
1188
+ if (pathParams?.mcpServerId == null || String(pathParams.mcpServerId) === "") {
1189
+ throw new Error(`Missing required path parameter: mcpServerId`);
1190
+ }
1191
+ const data = await request({
1192
+ method: "PATCH",
1193
+ url: `/mcp-servers/${encodeURIComponent(String(pathParams.mcpServerId))}`,
1194
+ body: body,
1195
+ ...requestConfig,
1196
+ headers: {
1197
+ ...requestConfig.headers
1198
+ }
1199
+ });
1200
+ return data;
1201
+ }
1202
+ /**
1203
+ * @summary Delete MCP Server
1204
+ * @description Deletes an MCP server based on its ID. This action is irreversible and will also remove any associated OAuth tokens.
1205
+ * @link /mcp-servers/{mcpServerId}
1206
+ */ async function mcpServersDelete({ pathParams, config } = {}) {
1207
+ const { client: request = client, ...requestConfig } = config ?? {};
1208
+ if (pathParams?.mcpServerId == null || String(pathParams.mcpServerId) === "") {
1209
+ throw new Error(`Missing required path parameter: mcpServerId`);
1210
+ }
1211
+ const data = await request({
1212
+ method: "DELETE",
1213
+ url: `/mcp-servers/${encodeURIComponent(String(pathParams.mcpServerId))}`,
1214
+ ...requestConfig,
1215
+ headers: {
1216
+ ...requestConfig.headers
1217
+ }
1218
+ });
1219
+ return data;
1220
+ }
1221
+ /**
1222
+ * @summary Create MCP Server OAuth Authorization URL
1223
+ * @description Creates an OAuth authorization URL for an OAuth MCP server. Redirect the user to the returned URL, and the Platform API OAuth callback will store the resulting tokens before redirecting to your returnUrl.
1224
+ * @link /mcp-servers/{mcpServerId}/oauth/authorize
1225
+ */ async function mcpServersCreateOAuthAuthorizationUrl({ pathParams, body, config } = {}) {
1226
+ const { client: request = client, ...requestConfig } = config ?? {};
1227
+ if (pathParams?.mcpServerId == null || String(pathParams.mcpServerId) === "") {
1228
+ throw new Error(`Missing required path parameter: mcpServerId`);
1229
+ }
1230
+ const data = await request({
1231
+ method: "POST",
1232
+ url: `/mcp-servers/${encodeURIComponent(String(pathParams.mcpServerId))}/oauth/authorize`,
1233
+ body: body,
1234
+ ...requestConfig,
1235
+ headers: {
1236
+ ...requestConfig.headers
1237
+ }
1238
+ });
1239
+ return data;
1240
+ }
1241
+ const operationsByPath = {
1242
+ "POST /chats": chatsCreate,
1243
+ "GET /chats": chatsFind,
1244
+ "POST /chats/init": chatsInit,
1245
+ "DELETE /chats/{chatId}": chatsDelete,
1246
+ "GET /chats/{chatId}": chatsGetById,
1247
+ "PATCH /chats/{chatId}": chatsUpdate,
1248
+ "PUT /chats/{chatId}/favorite": chatsFavorite,
1249
+ "POST /chats/{chatId}/fork": chatsFork,
1250
+ "GET /chats/{chatId}/project": projectsGetByChatId,
1251
+ "GET /chats/{chatId}/messages": chatsFindMessages,
1252
+ "POST /chats/{chatId}/messages": chatsSendMessage,
1253
+ "GET /chats/{chatId}/messages/{messageId}": chatsGetMessage,
1254
+ "GET /chats/{chatId}/versions": chatsFindVersions,
1255
+ "GET /chats/{chatId}/versions/{versionId}": chatsGetVersion,
1256
+ "PATCH /chats/{chatId}/versions/{versionId}": chatsUpdateVersion,
1257
+ "GET /chats/{chatId}/versions/{versionId}/download": chatsDownloadVersion,
1258
+ "POST /chats/{chatId}/versions/{versionId}/files/delete": chatsDeleteVersionFiles,
1259
+ "POST /chats/{chatId}/messages/{messageId}/resume": chatsResume,
1260
+ "POST /chats/{chatId}/messages/{messageId}/stop": chatsStop,
1261
+ "POST /chats/{chatId}/tasks/resolve": chatsResolveTask,
1262
+ "GET /deployments": deploymentsFind,
1263
+ "POST /deployments": deploymentsCreate,
1264
+ "GET /deployments/{deploymentId}": deploymentsGetById,
1265
+ "DELETE /deployments/{deploymentId}": deploymentsDelete,
1266
+ "GET /deployments/{deploymentId}/logs": deploymentsFindLogs,
1267
+ "GET /deployments/{deploymentId}/errors": deploymentsFindErrors,
1268
+ "GET /hooks": hooksFind,
1269
+ "POST /hooks": hooksCreate,
1270
+ "GET /hooks/{hookId}": hooksGetById,
1271
+ "PATCH /hooks/{hookId}": hooksUpdate,
1272
+ "DELETE /hooks/{hookId}": hooksDelete,
1273
+ "GET /integrations/vercel/projects": integrationsVercelProjectsFind,
1274
+ "POST /integrations/vercel/projects": integrationsVercelProjectsCreate,
1275
+ "GET /projects": projectsFind,
1276
+ "POST /projects": projectsCreate,
1277
+ "GET /projects/{projectId}": projectsGetById,
1278
+ "PATCH /projects/{projectId}": projectsUpdate,
1279
+ "DELETE /projects/{projectId}": projectsDelete,
1280
+ "POST /projects/{projectId}/assign": projectsAssign,
1281
+ "GET /projects/{projectId}/env-vars": projectsFindEnvVars,
1282
+ "POST /projects/{projectId}/env-vars": projectsCreateEnvVars,
1283
+ "PATCH /projects/{projectId}/env-vars": projectsUpdateEnvVars,
1284
+ "POST /projects/{projectId}/env-vars/delete": projectsDeleteEnvVars,
1285
+ "GET /projects/{projectId}/env-vars/{environmentVariableId}": projectsGetEnvVar,
1286
+ "GET /rate-limits": rateLimitsFind,
1287
+ "GET /user": userGet,
1288
+ "GET /user/billing": userGetBilling,
1289
+ "GET /user/plan": userGetPlan,
1290
+ "GET /user/scopes": userGetScopes,
1291
+ "POST /chats/{chatId}/versions/{versionId}/restore": chatsRestore,
1292
+ "GET /reports/usage": reportsGetUsage,
1293
+ "GET /reports/usage/ai": reportsGetAIUsage,
1294
+ "GET /reports/user-activity": reportsGetUserActivity,
1295
+ "GET /mcp-servers": mcpServersFind,
1296
+ "POST /mcp-servers": mcpServersCreate,
1297
+ "GET /mcp-servers/{mcpServerId}": mcpServersGetById,
1298
+ "PATCH /mcp-servers/{mcpServerId}": mcpServersUpdate,
1299
+ "DELETE /mcp-servers/{mcpServerId}": mcpServersDelete,
1300
+ "POST /mcp-servers/{mcpServerId}/oauth/authorize": mcpServersCreateOAuthAuthorizationUrl
1301
+ };
1302
+ const operationsByTag = {
1303
+ chats: {
1304
+ chatsCreate,
1305
+ chatsFind,
1306
+ chatsInit,
1307
+ chatsDelete,
1308
+ chatsGetById,
1309
+ chatsUpdate,
1310
+ chatsFavorite,
1311
+ chatsFork,
1312
+ chatsFindMessages,
1313
+ chatsSendMessage,
1314
+ chatsGetMessage,
1315
+ chatsFindVersions,
1316
+ chatsGetVersion,
1317
+ chatsUpdateVersion,
1318
+ chatsDownloadVersion,
1319
+ chatsDeleteVersionFiles,
1320
+ chatsResume,
1321
+ chatsStop,
1322
+ chatsResolveTask,
1323
+ chatsRestore
1324
+ },
1325
+ projects: {
1326
+ projectsGetByChatId,
1327
+ projectsFind,
1328
+ projectsCreate,
1329
+ projectsGetById,
1330
+ projectsUpdate,
1331
+ projectsDelete,
1332
+ projectsAssign,
1333
+ projectsFindEnvVars,
1334
+ projectsCreateEnvVars,
1335
+ projectsUpdateEnvVars,
1336
+ projectsDeleteEnvVars,
1337
+ projectsGetEnvVar
1338
+ },
1339
+ deployments: {
1340
+ deploymentsFind,
1341
+ deploymentsCreate,
1342
+ deploymentsGetById,
1343
+ deploymentsDelete,
1344
+ deploymentsFindLogs,
1345
+ deploymentsFindErrors
1346
+ },
1347
+ hooks: {
1348
+ hooksFind,
1349
+ hooksCreate,
1350
+ hooksGetById,
1351
+ hooksUpdate,
1352
+ hooksDelete
1353
+ },
1354
+ integrations: {
1355
+ integrationsVercelProjectsFind,
1356
+ integrationsVercelProjectsCreate
1357
+ },
1358
+ ratelimits: {
1359
+ rateLimitsFind
1360
+ },
1361
+ user: {
1362
+ userGet,
1363
+ userGetBilling,
1364
+ userGetPlan,
1365
+ userGetScopes
1366
+ },
1367
+ reports: {
1368
+ reportsGetUsage,
1369
+ reportsGetAIUsage,
1370
+ reportsGetUserActivity
1371
+ },
1372
+ mcpservers: {
1373
+ mcpServersFind,
1374
+ mcpServersCreate,
1375
+ mcpServersGetById,
1376
+ mcpServersUpdate,
1377
+ mcpServersDelete,
1378
+ mcpServersCreateOAuthAuthorizationUrl
1379
+ }
1380
+ };
1381
+ const tagDictionary = {
1382
+ chats: {
1383
+ POST: [
1384
+ "chatsCreate",
1385
+ "chatsInit",
1386
+ "chatsFork",
1387
+ "chatsSendMessage",
1388
+ "chatsDeleteVersionFiles",
1389
+ "chatsResume",
1390
+ "chatsStop",
1391
+ "chatsResolveTask",
1392
+ "chatsRestore"
1393
+ ],
1394
+ GET: [
1395
+ "chatsFind",
1396
+ "chatsGetById",
1397
+ "chatsFindMessages",
1398
+ "chatsGetMessage",
1399
+ "chatsFindVersions",
1400
+ "chatsGetVersion",
1401
+ "chatsDownloadVersion"
1402
+ ],
1403
+ DELETE: [
1404
+ "chatsDelete"
1405
+ ],
1406
+ PATCH: [
1407
+ "chatsUpdate",
1408
+ "chatsUpdateVersion"
1409
+ ],
1410
+ PUT: [
1411
+ "chatsFavorite"
1412
+ ]
1413
+ },
1414
+ projects: {
1415
+ GET: [
1416
+ "projectsGetByChatId",
1417
+ "projectsFind",
1418
+ "projectsGetById",
1419
+ "projectsFindEnvVars",
1420
+ "projectsGetEnvVar"
1421
+ ],
1422
+ POST: [
1423
+ "projectsCreate",
1424
+ "projectsAssign",
1425
+ "projectsCreateEnvVars",
1426
+ "projectsDeleteEnvVars"
1427
+ ],
1428
+ PATCH: [
1429
+ "projectsUpdate",
1430
+ "projectsUpdateEnvVars"
1431
+ ],
1432
+ DELETE: [
1433
+ "projectsDelete"
1434
+ ]
1435
+ },
1436
+ deployments: {
1437
+ GET: [
1438
+ "deploymentsFind",
1439
+ "deploymentsGetById",
1440
+ "deploymentsFindLogs",
1441
+ "deploymentsFindErrors"
1442
+ ],
1443
+ POST: [
1444
+ "deploymentsCreate"
1445
+ ],
1446
+ DELETE: [
1447
+ "deploymentsDelete"
1448
+ ]
1449
+ },
1450
+ hooks: {
1451
+ GET: [
1452
+ "hooksFind",
1453
+ "hooksGetById"
1454
+ ],
1455
+ POST: [
1456
+ "hooksCreate"
1457
+ ],
1458
+ PATCH: [
1459
+ "hooksUpdate"
1460
+ ],
1461
+ DELETE: [
1462
+ "hooksDelete"
1463
+ ]
1464
+ },
1465
+ integrations: {
1466
+ GET: [
1467
+ "integrationsVercelProjectsFind"
1468
+ ],
1469
+ POST: [
1470
+ "integrationsVercelProjectsCreate"
1471
+ ]
1472
+ },
1473
+ ratelimits: {
1474
+ GET: [
1475
+ "rateLimitsFind"
1476
+ ]
1477
+ },
1478
+ user: {
1479
+ GET: [
1480
+ "userGet",
1481
+ "userGetBilling",
1482
+ "userGetPlan",
1483
+ "userGetScopes"
1484
+ ]
1485
+ },
1486
+ reports: {
1487
+ GET: [
1488
+ "reportsGetUsage",
1489
+ "reportsGetAIUsage",
1490
+ "reportsGetUserActivity"
1491
+ ]
1492
+ },
1493
+ mcpservers: {
1494
+ GET: [
1495
+ "mcpServersFind",
1496
+ "mcpServersGetById"
1497
+ ],
1498
+ POST: [
1499
+ "mcpServersCreate",
1500
+ "mcpServersCreateOAuthAuthorizationUrl"
1501
+ ],
1502
+ PATCH: [
1503
+ "mcpServersUpdate"
1504
+ ],
1505
+ DELETE: [
1506
+ "mcpServersDelete"
1507
+ ]
1508
+ }
1509
+ };
6
1510
 
7
- exports.chatsCreate = components.chatsCreate;
8
- exports.chatsDelete = components.chatsDelete;
9
- exports.chatsDeleteVersionFiles = components.chatsDeleteVersionFiles;
10
- exports.chatsDownloadVersion = components.chatsDownloadVersion;
11
- exports.chatsFavorite = components.chatsFavorite;
12
- exports.chatsFind = components.chatsFind;
13
- exports.chatsFindMessages = components.chatsFindMessages;
14
- exports.chatsFindVersions = components.chatsFindVersions;
15
- exports.chatsFork = components.chatsFork;
16
- exports.chatsGetById = components.chatsGetById;
17
- exports.chatsGetMessage = components.chatsGetMessage;
18
- exports.chatsGetVersion = components.chatsGetVersion;
19
- exports.chatsInit = components.chatsInit;
20
- exports.chatsResolveTask = components.chatsResolveTask;
21
- exports.chatsRestore = components.chatsRestore;
22
- exports.chatsResume = components.chatsResume;
23
- exports.chatsSendMessage = components.chatsSendMessage;
24
- exports.chatsStop = components.chatsStop;
25
- exports.chatsUpdate = components.chatsUpdate;
26
- exports.chatsUpdateVersion = components.chatsUpdateVersion;
27
- exports.deploymentsCreate = components.deploymentsCreate;
28
- exports.deploymentsDelete = components.deploymentsDelete;
29
- exports.deploymentsFind = components.deploymentsFind;
30
- exports.deploymentsFindErrors = components.deploymentsFindErrors;
31
- exports.deploymentsFindLogs = components.deploymentsFindLogs;
32
- exports.deploymentsGetById = components.deploymentsGetById;
33
- exports.hooksCreate = components.hooksCreate;
34
- exports.hooksDelete = components.hooksDelete;
35
- exports.hooksFind = components.hooksFind;
36
- exports.hooksGetById = components.hooksGetById;
37
- exports.hooksUpdate = components.hooksUpdate;
38
- exports.integrationsVercelProjectsCreate = components.integrationsVercelProjectsCreate;
39
- exports.integrationsVercelProjectsFind = components.integrationsVercelProjectsFind;
40
- exports.mcpServersCreate = components.mcpServersCreate;
41
- exports.mcpServersCreateOAuthAuthorizationUrl = components.mcpServersCreateOAuthAuthorizationUrl;
42
- exports.mcpServersDelete = components.mcpServersDelete;
43
- exports.mcpServersFind = components.mcpServersFind;
44
- exports.mcpServersGetById = components.mcpServersGetById;
45
- exports.mcpServersUpdate = components.mcpServersUpdate;
46
- exports.operationsByPath = components.operationsByPath;
47
- exports.operationsByTag = components.operationsByTag;
48
- exports.projectsAssign = components.projectsAssign;
49
- exports.projectsCreate = components.projectsCreate;
50
- exports.projectsCreateEnvVars = components.projectsCreateEnvVars;
51
- exports.projectsDelete = components.projectsDelete;
52
- exports.projectsDeleteEnvVars = components.projectsDeleteEnvVars;
53
- exports.projectsFind = components.projectsFind;
54
- exports.projectsFindEnvVars = components.projectsFindEnvVars;
55
- exports.projectsGetByChatId = components.projectsGetByChatId;
56
- exports.projectsGetById = components.projectsGetById;
57
- exports.projectsGetEnvVar = components.projectsGetEnvVar;
58
- exports.projectsUpdate = components.projectsUpdate;
59
- exports.projectsUpdateEnvVars = components.projectsUpdateEnvVars;
60
- exports.rateLimitsFind = components.rateLimitsFind;
61
- exports.reportsGetAIUsage = components.reportsGetAIUsage;
62
- exports.reportsGetUsage = components.reportsGetUsage;
63
- exports.reportsGetUserActivity = components.reportsGetUserActivity;
64
- exports.tagDictionary = components.tagDictionary;
65
- exports.userGet = components.userGet;
66
- exports.userGetBilling = components.userGetBilling;
67
- exports.userGetPlan = components.userGetPlan;
68
- exports.userGetScopes = components.userGetScopes;
1511
+ exports.chatsCreate = chatsCreate;
1512
+ exports.chatsDelete = chatsDelete;
1513
+ exports.chatsDeleteVersionFiles = chatsDeleteVersionFiles;
1514
+ exports.chatsDownloadVersion = chatsDownloadVersion;
1515
+ exports.chatsFavorite = chatsFavorite;
1516
+ exports.chatsFind = chatsFind;
1517
+ exports.chatsFindMessages = chatsFindMessages;
1518
+ exports.chatsFindVersions = chatsFindVersions;
1519
+ exports.chatsFork = chatsFork;
1520
+ exports.chatsGetById = chatsGetById;
1521
+ exports.chatsGetMessage = chatsGetMessage;
1522
+ exports.chatsGetVersion = chatsGetVersion;
1523
+ exports.chatsInit = chatsInit;
1524
+ exports.chatsResolveTask = chatsResolveTask;
1525
+ exports.chatsRestore = chatsRestore;
1526
+ exports.chatsResume = chatsResume;
1527
+ exports.chatsSendMessage = chatsSendMessage;
1528
+ exports.chatsStop = chatsStop;
1529
+ exports.chatsUpdate = chatsUpdate;
1530
+ exports.chatsUpdateVersion = chatsUpdateVersion;
1531
+ exports.deploymentsCreate = deploymentsCreate;
1532
+ exports.deploymentsDelete = deploymentsDelete;
1533
+ exports.deploymentsFind = deploymentsFind;
1534
+ exports.deploymentsFindErrors = deploymentsFindErrors;
1535
+ exports.deploymentsFindLogs = deploymentsFindLogs;
1536
+ exports.deploymentsGetById = deploymentsGetById;
1537
+ exports.hooksCreate = hooksCreate;
1538
+ exports.hooksDelete = hooksDelete;
1539
+ exports.hooksFind = hooksFind;
1540
+ exports.hooksGetById = hooksGetById;
1541
+ exports.hooksUpdate = hooksUpdate;
1542
+ exports.integrationsVercelProjectsCreate = integrationsVercelProjectsCreate;
1543
+ exports.integrationsVercelProjectsFind = integrationsVercelProjectsFind;
1544
+ exports.mcpServersCreate = mcpServersCreate;
1545
+ exports.mcpServersCreateOAuthAuthorizationUrl = mcpServersCreateOAuthAuthorizationUrl;
1546
+ exports.mcpServersDelete = mcpServersDelete;
1547
+ exports.mcpServersFind = mcpServersFind;
1548
+ exports.mcpServersGetById = mcpServersGetById;
1549
+ exports.mcpServersUpdate = mcpServersUpdate;
1550
+ exports.operationsByPath = operationsByPath;
1551
+ exports.operationsByTag = operationsByTag;
1552
+ exports.projectsAssign = projectsAssign;
1553
+ exports.projectsCreate = projectsCreate;
1554
+ exports.projectsCreateEnvVars = projectsCreateEnvVars;
1555
+ exports.projectsDelete = projectsDelete;
1556
+ exports.projectsDeleteEnvVars = projectsDeleteEnvVars;
1557
+ exports.projectsFind = projectsFind;
1558
+ exports.projectsFindEnvVars = projectsFindEnvVars;
1559
+ exports.projectsGetByChatId = projectsGetByChatId;
1560
+ exports.projectsGetById = projectsGetById;
1561
+ exports.projectsGetEnvVar = projectsGetEnvVar;
1562
+ exports.projectsUpdate = projectsUpdate;
1563
+ exports.projectsUpdateEnvVars = projectsUpdateEnvVars;
1564
+ exports.rateLimitsFind = rateLimitsFind;
1565
+ exports.reportsGetAIUsage = reportsGetAIUsage;
1566
+ exports.reportsGetUsage = reportsGetUsage;
1567
+ exports.reportsGetUserActivity = reportsGetUserActivity;
1568
+ exports.tagDictionary = tagDictionary;
1569
+ exports.userGet = userGet;
1570
+ exports.userGetBilling = userGetBilling;
1571
+ exports.userGetPlan = userGetPlan;
1572
+ exports.userGetScopes = userGetScopes;