retell-sdk 5.62.0 → 5.64.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 (103) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +15 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +15 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent.d.mts +64 -4
  12. package/resources/agent.d.mts.map +1 -1
  13. package/resources/agent.d.ts +64 -4
  14. package/resources/agent.d.ts.map +1 -1
  15. package/resources/agent.js +13 -4
  16. package/resources/agent.js.map +1 -1
  17. package/resources/agent.mjs +13 -4
  18. package/resources/agent.mjs.map +1 -1
  19. package/resources/app.d.mts +457 -0
  20. package/resources/app.d.mts.map +1 -0
  21. package/resources/app.d.ts +457 -0
  22. package/resources/app.d.ts.map +1 -0
  23. package/resources/app.js +67 -0
  24. package/resources/app.js.map +1 -0
  25. package/resources/app.mjs +63 -0
  26. package/resources/app.mjs.map +1 -0
  27. package/resources/call.d.mts +66 -6
  28. package/resources/call.d.mts.map +1 -1
  29. package/resources/call.d.ts +66 -6
  30. package/resources/call.d.ts.map +1 -1
  31. package/resources/chat-agent.d.mts +2 -8
  32. package/resources/chat-agent.d.mts.map +1 -1
  33. package/resources/chat-agent.d.ts +2 -8
  34. package/resources/chat-agent.d.ts.map +1 -1
  35. package/resources/chat-agent.js +2 -8
  36. package/resources/chat-agent.js.map +1 -1
  37. package/resources/chat-agent.mjs +2 -8
  38. package/resources/chat-agent.mjs.map +1 -1
  39. package/resources/contact.d.mts +541 -0
  40. package/resources/contact.d.mts.map +1 -0
  41. package/resources/contact.d.ts +541 -0
  42. package/resources/contact.d.ts.map +1 -0
  43. package/resources/contact.js +77 -0
  44. package/resources/contact.js.map +1 -0
  45. package/resources/contact.mjs +73 -0
  46. package/resources/contact.mjs.map +1 -0
  47. package/resources/conversation-flow-component.d.mts +18 -6
  48. package/resources/conversation-flow-component.d.mts.map +1 -1
  49. package/resources/conversation-flow-component.d.ts +18 -6
  50. package/resources/conversation-flow-component.d.ts.map +1 -1
  51. package/resources/conversation-flow.d.mts +46 -14
  52. package/resources/conversation-flow.d.mts.map +1 -1
  53. package/resources/conversation-flow.d.ts +46 -14
  54. package/resources/conversation-flow.d.ts.map +1 -1
  55. package/resources/conversation-flow.js +3 -1
  56. package/resources/conversation-flow.js.map +1 -1
  57. package/resources/conversation-flow.mjs +3 -1
  58. package/resources/conversation-flow.mjs.map +1 -1
  59. package/resources/crm.d.mts +222 -0
  60. package/resources/crm.d.mts.map +1 -0
  61. package/resources/crm.d.ts +222 -0
  62. package/resources/crm.d.ts.map +1 -0
  63. package/resources/crm.js +46 -0
  64. package/resources/crm.js.map +1 -0
  65. package/resources/crm.mjs +42 -0
  66. package/resources/crm.mjs.map +1 -0
  67. package/resources/index.d.mts +6 -3
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +6 -3
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js +7 -1
  72. package/resources/index.js.map +1 -1
  73. package/resources/index.mjs +3 -0
  74. package/resources/index.mjs.map +1 -1
  75. package/resources/knowledge-base.d.mts +12 -4
  76. package/resources/knowledge-base.d.mts.map +1 -1
  77. package/resources/knowledge-base.d.ts +12 -4
  78. package/resources/knowledge-base.d.ts.map +1 -1
  79. package/resources/llm.d.mts +28 -8
  80. package/resources/llm.d.mts.map +1 -1
  81. package/resources/llm.d.ts +28 -8
  82. package/resources/llm.d.ts.map +1 -1
  83. package/resources/llm.js +3 -1
  84. package/resources/llm.js.map +1 -1
  85. package/resources/llm.mjs +3 -1
  86. package/resources/llm.mjs.map +1 -1
  87. package/src/client.ts +85 -0
  88. package/src/resources/agent.ts +85 -4
  89. package/src/resources/app.ts +622 -0
  90. package/src/resources/call.ts +93 -7
  91. package/src/resources/chat-agent.ts +2 -8
  92. package/src/resources/contact.ts +732 -0
  93. package/src/resources/conversation-flow-component.ts +18 -6
  94. package/src/resources/conversation-flow.ts +53 -13
  95. package/src/resources/crm.ts +293 -0
  96. package/src/resources/index.ts +38 -0
  97. package/src/resources/knowledge-base.ts +12 -4
  98. package/src/resources/llm.ts +35 -7
  99. package/src/version.ts +1 -1
  100. package/version.d.mts +1 -1
  101. package/version.d.ts +1 -1
  102. package/version.js +1 -1
  103. package/version.mjs +1 -1
@@ -0,0 +1,622 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { buildHeaders } from '../internal/headers';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ export class App extends APIResource {
10
+ /**
11
+ * Create an App: the connection to one external system (a CRM, calendar, support
12
+ * desk, and so on), holding its credentials and settings. Providers that
13
+ * authenticate with a key, token, or refresh token can be connected in this one
14
+ * call by passing auth_config; the credential is stored encrypted and never
15
+ * returned. Up to 20 apps per provider.
16
+ */
17
+ create(body: AppCreateParams, options?: RequestOptions): APIPromise<AppResponse> {
18
+ return this._client.post('/create-app', { body, ...options });
19
+ }
20
+
21
+ /**
22
+ * Partially update an App. Omitted fields remain unchanged. Updating auth_config
23
+ * invalidates the cached provider token immediately.
24
+ */
25
+ update(appID: string, body: AppUpdateParams, options?: RequestOptions): APIPromise<AppResponse> {
26
+ return this._client.patch(path`/update-app/${appID}`, { body, ...options });
27
+ }
28
+
29
+ /**
30
+ * List Apps in the organization (paginated).
31
+ */
32
+ list(query: AppListParams | null | undefined = {}, options?: RequestOptions): APIPromise<AppListResponse> {
33
+ return this._client.get('/list-apps', { query, ...options });
34
+ }
35
+
36
+ /**
37
+ * Delete an App. Fails when agents or knowledge bases still reference it, unless
38
+ * force_delete is set. If a CRM config is linked to this App, the link is cleared.
39
+ */
40
+ delete(
41
+ appID: string,
42
+ params: AppDeleteParams | null | undefined = {},
43
+ options?: RequestOptions,
44
+ ): APIPromise<void> {
45
+ const { force_delete } = params ?? {};
46
+ return this._client.delete(path`/delete-app/${appID}`, {
47
+ query: { force_delete },
48
+ ...options,
49
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
50
+ });
51
+ }
52
+
53
+ /**
54
+ * Get an App by id.
55
+ */
56
+ get(appID: string, options?: RequestOptions): APIPromise<AppResponse> {
57
+ return this._client.get(path`/get-app/${appID}`, options);
58
+ }
59
+
60
+ /**
61
+ * List the agents and knowledge bases referencing an App, most recently configured
62
+ * first by default.
63
+ */
64
+ listUsages(
65
+ appID: string,
66
+ query: AppListUsagesParams | null | undefined = {},
67
+ options?: RequestOptions,
68
+ ): APIPromise<AppListUsagesResponse> {
69
+ return this._client.get(path`/list-app-usages/${appID}`, { query, ...options });
70
+ }
71
+
72
+ /**
73
+ * Probe the App's stored credentials by making a minimal authenticated call to the
74
+ * provider. Returns success=true on a successful round-trip, and records the
75
+ * outcome on the App's connection_status either way.
76
+ */
77
+ testAuth(appID: string, options?: RequestOptions): APIPromise<AppTestAuthResponse> {
78
+ return this._client.post(path`/test-app-auth/${appID}`, options);
79
+ }
80
+ }
81
+
82
+ export interface AppResponse {
83
+ app_id: string;
84
+
85
+ created_timestamp: number;
86
+
87
+ org_id: string;
88
+
89
+ /**
90
+ * Provider name. Must be valid for the App's type; the supported providers per
91
+ * type are listed by list-app-templates.
92
+ */
93
+ provider: string;
94
+
95
+ /**
96
+ * App integration category.
97
+ */
98
+ type: 'crm' | 'calendar' | 'knowledge_base' | 'support' | 'communication';
99
+
100
+ user_modified_timestamp: number;
101
+
102
+ /**
103
+ * Non-secret auth metadata. Encrypted secret fields are never returned by the API.
104
+ */
105
+ auth_config?:
106
+ | AppResponse.OAuthConfigResponse
107
+ | AppResponse.APIKeyAuthConfigResponse
108
+ | AppResponse.AccessTokenAuthConfigResponse
109
+ | AppResponse.BasicAuthConfigResponse
110
+ | AppResponse.RefreshTokenAuthConfigResponse;
111
+
112
+ /**
113
+ * Connection health of the App, server-managed. `not_connected` after create or a
114
+ * credential / tenant URL change; `connected` once verified via OAuth connect, an
115
+ * auth test, or a successful live tool call; `error` when the provider rejects the
116
+ * credentials (on connect, an auth test, or a live tool call).
117
+ */
118
+ connection_status?: 'not_connected' | 'connected' | 'error';
119
+
120
+ crm_config?: AppResponse.CRMConfig;
121
+
122
+ name?: string;
123
+
124
+ /**
125
+ * Sub-account id, for providers that scope requests by a sub-account id on a
126
+ * shared host. Omitted by every other provider.
127
+ */
128
+ tenant_id?: string;
129
+
130
+ /**
131
+ * Per-tenant API base URL. Set by providers with per-org hosts; omitted by
132
+ * providers on a single global host.
133
+ */
134
+ tenant_url?: string;
135
+ }
136
+
137
+ export namespace AppResponse {
138
+ export interface OAuthConfigResponse {
139
+ client_id: string;
140
+
141
+ type: 'oauth2';
142
+ }
143
+
144
+ export interface APIKeyAuthConfigResponse {
145
+ type: 'api_key';
146
+ }
147
+
148
+ export interface AccessTokenAuthConfigResponse {
149
+ type: 'access_token';
150
+ }
151
+
152
+ export interface BasicAuthConfigResponse {
153
+ type: 'basic';
154
+
155
+ username: string;
156
+ }
157
+
158
+ export interface RefreshTokenAuthConfigResponse {
159
+ type: 'refresh_token';
160
+ }
161
+
162
+ export interface CRMConfig {
163
+ /**
164
+ * Field mappings applied when syncing CRM records into Retell contacts. Must
165
+ * include phone_number, which is the field the two systems are matched on.
166
+ */
167
+ inbound_sync_mappings?: Array<CRMConfig.InboundSyncMapping>;
168
+
169
+ /**
170
+ * Field mappings applied when writing Retell contact changes back to the CRM.
171
+ */
172
+ outbound_sync_mappings?: Array<CRMConfig.OutboundSyncMapping>;
173
+
174
+ /**
175
+ * Whether to push call/chat activity to the external CRM. Opt-in — defaults to
176
+ * false when unset.
177
+ */
178
+ sync_conversation_activity?: boolean;
179
+
180
+ /**
181
+ * Whether to create a CRM record after a conversation when the contact is not yet
182
+ * linked to one.
183
+ */
184
+ sync_new_contacts?: boolean;
185
+ }
186
+
187
+ export namespace CRMConfig {
188
+ export interface InboundSyncMapping {
189
+ /**
190
+ * Field on the CRM's contact object to map to. A name that does not exist there
191
+ * surfaces as an error on the sync job rather than at configuration time.
192
+ */
193
+ external_field_name: string;
194
+
195
+ /**
196
+ * Retell contact field, built-in or custom, to map. Types must be compatible with
197
+ * the CRM field on both sides of the sync.
198
+ */
199
+ field_name: string;
200
+ }
201
+
202
+ export interface OutboundSyncMapping {
203
+ /**
204
+ * Field on the CRM's contact object to map to. A name that does not exist there
205
+ * surfaces as an error on the sync job rather than at configuration time.
206
+ */
207
+ external_field_name: string;
208
+
209
+ /**
210
+ * Retell contact field, built-in or custom, to map. Types must be compatible with
211
+ * the CRM field on both sides of the sync.
212
+ */
213
+ field_name: string;
214
+ }
215
+ }
216
+ }
217
+
218
+ export interface AppListResponse {
219
+ /**
220
+ * Whether more results are available.
221
+ */
222
+ has_more?: boolean;
223
+
224
+ items?: Array<AppResponse>;
225
+
226
+ /**
227
+ * Pagination key for the next page.
228
+ */
229
+ pagination_key?: string;
230
+ }
231
+
232
+ export interface AppListUsagesResponse {
233
+ /**
234
+ * Whether more results are available.
235
+ */
236
+ has_more?: boolean;
237
+
238
+ items?: Array<AppListUsagesResponse.AgentAppUsage | AppListUsagesResponse.KnowledgeBaseAppUsage>;
239
+
240
+ /**
241
+ * Pagination key for the next page.
242
+ */
243
+ pagination_key?: string;
244
+ }
245
+
246
+ export namespace AppListUsagesResponse {
247
+ export interface AgentAppUsage {
248
+ agent_id: string;
249
+
250
+ /**
251
+ * Agent versions referencing this app, largest first.
252
+ */
253
+ agent_versions: Array<number>;
254
+
255
+ /**
256
+ * When this reference was last recorded, in milliseconds.
257
+ */
258
+ configured_timestamp: number;
259
+
260
+ type: 'agent';
261
+
262
+ /**
263
+ * Current agent name; omitted if the agent was deleted.
264
+ */
265
+ agent_name?: string;
266
+ }
267
+
268
+ export interface KnowledgeBaseAppUsage {
269
+ /**
270
+ * When this reference was last recorded, in milliseconds.
271
+ */
272
+ configured_timestamp: number;
273
+
274
+ knowledge_base_id: string;
275
+
276
+ type: 'knowledge_base';
277
+
278
+ /**
279
+ * Current knowledge base name; omitted if it was deleted.
280
+ */
281
+ knowledge_base_name?: string;
282
+ }
283
+ }
284
+
285
+ export interface AppTestAuthResponse {
286
+ success: boolean;
287
+ }
288
+
289
+ export interface AppCreateParams {
290
+ /**
291
+ * Provider name. Must be valid for the App's type; the supported providers per
292
+ * type are listed by list-app-templates.
293
+ */
294
+ provider: string;
295
+
296
+ /**
297
+ * App integration category.
298
+ */
299
+ type: 'crm' | 'calendar' | 'knowledge_base' | 'support' | 'communication';
300
+
301
+ auth_config?:
302
+ | AppCreateParams.OAuthConfigRequest
303
+ | AppCreateParams.APIKeyAuthConfigRequest
304
+ | AppCreateParams.AccessTokenAuthConfigRequest
305
+ | AppCreateParams.BasicAuthConfigRequest
306
+ | AppCreateParams.RefreshTokenAuthConfigRequest;
307
+
308
+ crm_config?: AppCreateParams.CRMConfig;
309
+
310
+ /**
311
+ * Display name.
312
+ */
313
+ name?: string;
314
+
315
+ /**
316
+ * Sub-account id, for providers that scope requests by a sub-account id on a
317
+ * shared host.
318
+ */
319
+ tenant_id?: string;
320
+
321
+ /**
322
+ * Per-tenant API base URL.
323
+ */
324
+ tenant_url?: string;
325
+ }
326
+
327
+ export namespace AppCreateParams {
328
+ export interface OAuthConfigRequest {
329
+ client_id: string;
330
+
331
+ /**
332
+ * Secret credential; stored encrypted at rest.
333
+ */
334
+ client_secret: string;
335
+
336
+ type: 'oauth2';
337
+ }
338
+
339
+ export interface APIKeyAuthConfigRequest {
340
+ /**
341
+ * API key credential; stored encrypted at rest.
342
+ */
343
+ api_key: string;
344
+
345
+ type: 'api_key';
346
+ }
347
+
348
+ export interface AccessTokenAuthConfigRequest {
349
+ /**
350
+ * OAuth-obtained access token used directly as a static bearer secret; stored
351
+ * encrypted at rest. An alternative to the OAuth connect flow, which persists the
352
+ * same config.
353
+ */
354
+ access_token: string;
355
+
356
+ type: 'access_token';
357
+ }
358
+
359
+ export interface BasicAuthConfigRequest {
360
+ /**
361
+ * Password credential; stored encrypted at rest.
362
+ */
363
+ password: string;
364
+
365
+ type: 'basic';
366
+
367
+ username: string;
368
+ }
369
+
370
+ export interface RefreshTokenAuthConfigRequest {
371
+ /**
372
+ * OAuth refresh token; stored encrypted at rest. An alternative to the OAuth
373
+ * connect flow, which persists the same config.
374
+ */
375
+ refresh_token: string;
376
+
377
+ type: 'refresh_token';
378
+ }
379
+
380
+ export interface CRMConfig {
381
+ /**
382
+ * Field mappings applied when syncing CRM records into Retell contacts. Must
383
+ * include phone_number, which is the field the two systems are matched on.
384
+ */
385
+ inbound_sync_mappings?: Array<CRMConfig.InboundSyncMapping>;
386
+
387
+ /**
388
+ * Field mappings applied when writing Retell contact changes back to the CRM.
389
+ */
390
+ outbound_sync_mappings?: Array<CRMConfig.OutboundSyncMapping>;
391
+
392
+ /**
393
+ * Whether to push call/chat activity to the external CRM. Opt-in — defaults to
394
+ * false when unset.
395
+ */
396
+ sync_conversation_activity?: boolean;
397
+
398
+ /**
399
+ * Whether to create a CRM record after a conversation when the contact is not yet
400
+ * linked to one.
401
+ */
402
+ sync_new_contacts?: boolean;
403
+ }
404
+
405
+ export namespace CRMConfig {
406
+ export interface InboundSyncMapping {
407
+ /**
408
+ * Field on the CRM's contact object to map to. A name that does not exist there
409
+ * surfaces as an error on the sync job rather than at configuration time.
410
+ */
411
+ external_field_name: string;
412
+
413
+ /**
414
+ * Retell contact field, built-in or custom, to map. Types must be compatible with
415
+ * the CRM field on both sides of the sync.
416
+ */
417
+ field_name: string;
418
+ }
419
+
420
+ export interface OutboundSyncMapping {
421
+ /**
422
+ * Field on the CRM's contact object to map to. A name that does not exist there
423
+ * surfaces as an error on the sync job rather than at configuration time.
424
+ */
425
+ external_field_name: string;
426
+
427
+ /**
428
+ * Retell contact field, built-in or custom, to map. Types must be compatible with
429
+ * the CRM field on both sides of the sync.
430
+ */
431
+ field_name: string;
432
+ }
433
+ }
434
+ }
435
+
436
+ export interface AppUpdateParams {
437
+ auth_config?:
438
+ | AppUpdateParams.OAuthConfigRequest
439
+ | AppUpdateParams.APIKeyAuthConfigRequest
440
+ | AppUpdateParams.AccessTokenAuthConfigRequest
441
+ | AppUpdateParams.BasicAuthConfigRequest
442
+ | AppUpdateParams.RefreshTokenAuthConfigRequest;
443
+
444
+ crm_config?: AppUpdateParams.CRMConfig;
445
+
446
+ name?: string;
447
+
448
+ /**
449
+ * Sub-account id, for providers that scope requests by a sub-account id on a
450
+ * shared host.
451
+ */
452
+ tenant_id?: string;
453
+
454
+ /**
455
+ * Per-tenant API base URL.
456
+ */
457
+ tenant_url?: string;
458
+ }
459
+
460
+ export namespace AppUpdateParams {
461
+ export interface OAuthConfigRequest {
462
+ client_id: string;
463
+
464
+ /**
465
+ * Secret credential; stored encrypted at rest.
466
+ */
467
+ client_secret: string;
468
+
469
+ type: 'oauth2';
470
+ }
471
+
472
+ export interface APIKeyAuthConfigRequest {
473
+ /**
474
+ * API key credential; stored encrypted at rest.
475
+ */
476
+ api_key: string;
477
+
478
+ type: 'api_key';
479
+ }
480
+
481
+ export interface AccessTokenAuthConfigRequest {
482
+ /**
483
+ * OAuth-obtained access token used directly as a static bearer secret; stored
484
+ * encrypted at rest. An alternative to the OAuth connect flow, which persists the
485
+ * same config.
486
+ */
487
+ access_token: string;
488
+
489
+ type: 'access_token';
490
+ }
491
+
492
+ export interface BasicAuthConfigRequest {
493
+ /**
494
+ * Password credential; stored encrypted at rest.
495
+ */
496
+ password: string;
497
+
498
+ type: 'basic';
499
+
500
+ username: string;
501
+ }
502
+
503
+ export interface RefreshTokenAuthConfigRequest {
504
+ /**
505
+ * OAuth refresh token; stored encrypted at rest. An alternative to the OAuth
506
+ * connect flow, which persists the same config.
507
+ */
508
+ refresh_token: string;
509
+
510
+ type: 'refresh_token';
511
+ }
512
+
513
+ export interface CRMConfig {
514
+ /**
515
+ * Field mappings applied when syncing CRM records into Retell contacts. Must
516
+ * include phone_number, which is the field the two systems are matched on.
517
+ */
518
+ inbound_sync_mappings?: Array<CRMConfig.InboundSyncMapping>;
519
+
520
+ /**
521
+ * Field mappings applied when writing Retell contact changes back to the CRM.
522
+ */
523
+ outbound_sync_mappings?: Array<CRMConfig.OutboundSyncMapping>;
524
+
525
+ /**
526
+ * Whether to push call/chat activity to the external CRM. Opt-in — defaults to
527
+ * false when unset.
528
+ */
529
+ sync_conversation_activity?: boolean;
530
+
531
+ /**
532
+ * Whether to create a CRM record after a conversation when the contact is not yet
533
+ * linked to one.
534
+ */
535
+ sync_new_contacts?: boolean;
536
+ }
537
+
538
+ export namespace CRMConfig {
539
+ export interface InboundSyncMapping {
540
+ /**
541
+ * Field on the CRM's contact object to map to. A name that does not exist there
542
+ * surfaces as an error on the sync job rather than at configuration time.
543
+ */
544
+ external_field_name: string;
545
+
546
+ /**
547
+ * Retell contact field, built-in or custom, to map. Types must be compatible with
548
+ * the CRM field on both sides of the sync.
549
+ */
550
+ field_name: string;
551
+ }
552
+
553
+ export interface OutboundSyncMapping {
554
+ /**
555
+ * Field on the CRM's contact object to map to. A name that does not exist there
556
+ * surfaces as an error on the sync job rather than at configuration time.
557
+ */
558
+ external_field_name: string;
559
+
560
+ /**
561
+ * Retell contact field, built-in or custom, to map. Types must be compatible with
562
+ * the CRM field on both sides of the sync.
563
+ */
564
+ field_name: string;
565
+ }
566
+ }
567
+ }
568
+
569
+ export interface AppListParams {
570
+ /**
571
+ * Maximum number of items to return.
572
+ */
573
+ limit?: number;
574
+
575
+ /**
576
+ * Pagination key for fetching the next page.
577
+ */
578
+ pagination_key?: string;
579
+
580
+ /**
581
+ * Sort order for results.
582
+ */
583
+ sort_order?: 'ascending' | 'descending';
584
+ }
585
+
586
+ export interface AppDeleteParams {
587
+ /**
588
+ * Delete even when the App is still referenced.
589
+ */
590
+ force_delete?: boolean;
591
+ }
592
+
593
+ export interface AppListUsagesParams {
594
+ /**
595
+ * Maximum number of items to return.
596
+ */
597
+ limit?: number;
598
+
599
+ /**
600
+ * Pagination key for fetching the next page.
601
+ */
602
+ pagination_key?: string;
603
+
604
+ /**
605
+ * Sort order for results.
606
+ */
607
+ sort_order?: 'ascending' | 'descending';
608
+ }
609
+
610
+ export declare namespace App {
611
+ export {
612
+ type AppResponse as AppResponse,
613
+ type AppListResponse as AppListResponse,
614
+ type AppListUsagesResponse as AppListUsagesResponse,
615
+ type AppTestAuthResponse as AppTestAuthResponse,
616
+ type AppCreateParams as AppCreateParams,
617
+ type AppUpdateParams as AppUpdateParams,
618
+ type AppListParams as AppListParams,
619
+ type AppDeleteParams as AppDeleteParams,
620
+ type AppListUsagesParams as AppListUsagesParams,
621
+ };
622
+ }