agentbase-web-sdk 2.6.0-fix1

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 (89) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +41 -0
  3. package/dist/cjs/sdk.js +13833 -0
  4. package/dist/cjs/sdk.js.map +1 -0
  5. package/dist/esm/sdk.js +13805 -0
  6. package/dist/esm/sdk.js.map +1 -0
  7. package/dist/iife/sdk.js +17632 -0
  8. package/package.json +50 -0
  9. package/types/channel.d.ts +79 -0
  10. package/types/client.d.ts +289 -0
  11. package/types/enums/authentication-factor.d.ts +6 -0
  12. package/types/enums/authenticator-type.d.ts +3 -0
  13. package/types/enums/browser-permission.d.ts +22 -0
  14. package/types/enums/browser.d.ts +16 -0
  15. package/types/enums/credit-card.d.ts +19 -0
  16. package/types/enums/distillation-message-role.d.ts +6 -0
  17. package/types/enums/distillation-mode.d.ts +4 -0
  18. package/types/enums/distillation-tool-status.d.ts +4 -0
  19. package/types/enums/execution-method.d.ts +9 -0
  20. package/types/enums/execution-status.d.ts +7 -0
  21. package/types/enums/execution-trigger.d.ts +5 -0
  22. package/types/enums/export-job-mode.d.ts +4 -0
  23. package/types/enums/export-mode.d.ts +3 -0
  24. package/types/enums/feedback-type.d.ts +5 -0
  25. package/types/enums/flag.d.ts +197 -0
  26. package/types/enums/format.d.ts +4 -0
  27. package/types/enums/image-format.d.ts +9 -0
  28. package/types/enums/image-gravity.d.ts +11 -0
  29. package/types/enums/kind.d.ts +6 -0
  30. package/types/enums/kinds.d.ts +6 -0
  31. package/types/enums/knowledge-base-data-source-document-import-result-status.d.ts +5 -0
  32. package/types/enums/memory-access-mode.d.ts +4 -0
  33. package/types/enums/memory-batch-operation.d.ts +5 -0
  34. package/types/enums/memory-bulk-delete-item-status.d.ts +4 -0
  35. package/types/enums/memory-bulk-delete-response-status.d.ts +4 -0
  36. package/types/enums/memory-handling-policy.d.ts +5 -0
  37. package/types/enums/memory-message-role.d.ts +5 -0
  38. package/types/enums/memory-record-kind.d.ts +5 -0
  39. package/types/enums/memory-record-sensitivity.d.ts +5 -0
  40. package/types/enums/memory-scope.d.ts +7 -0
  41. package/types/enums/memory-sensitivity.d.ts +6 -0
  42. package/types/enums/memory-share-subject-type.d.ts +4 -0
  43. package/types/enums/o-auth-provider.d.ts +45 -0
  44. package/types/enums/organization-project-deletion-deletion-status.d.ts +5 -0
  45. package/types/enums/organization-role.d.ts +8 -0
  46. package/types/enums/organization-usage-range.d.ts +5 -0
  47. package/types/enums/outcome.d.ts +6 -0
  48. package/types/enums/profile-extraction-mode.d.ts +4 -0
  49. package/types/enums/profile-type.d.ts +4 -0
  50. package/types/enums/project-deletion-restore-status.d.ts +3 -0
  51. package/types/enums/project-deletion-result-deletion-status.d.ts +5 -0
  52. package/types/enums/project-deletion-result-status.d.ts +5 -0
  53. package/types/enums/record-kind.d.ts +5 -0
  54. package/types/enums/retention-policy.d.ts +3 -0
  55. package/types/enums/scope.d.ts +5 -0
  56. package/types/enums/source-type.d.ts +6 -0
  57. package/types/enums/status.d.ts +17 -0
  58. package/types/enums/theme.d.ts +4 -0
  59. package/types/enums/timezone.d.ts +422 -0
  60. package/types/enums/transaction-action.d.ts +12 -0
  61. package/types/enums/validation-status.d.ts +6 -0
  62. package/types/enums/verification-source.d.ts +5 -0
  63. package/types/id.d.ts +20 -0
  64. package/types/index.d.ts +87 -0
  65. package/types/models.d.ts +2537 -0
  66. package/types/operator.d.ts +180 -0
  67. package/types/permission.d.ts +43 -0
  68. package/types/query.d.ts +442 -0
  69. package/types/role.d.ts +70 -0
  70. package/types/service.d.ts +11 -0
  71. package/types/services/account.d.ts +1267 -0
  72. package/types/services/ai-gateway.d.ts +738 -0
  73. package/types/services/avatars.d.ts +320 -0
  74. package/types/services/databases.d.ts +437 -0
  75. package/types/services/documents-db.d.ts +405 -0
  76. package/types/services/functions.d.ts +91 -0
  77. package/types/services/graphql.d.ts +43 -0
  78. package/types/services/knowledge-bases.d.ts +117 -0
  79. package/types/services/llm-gateway.d.ts +282 -0
  80. package/types/services/locale.d.ts +64 -0
  81. package/types/services/memory.d.ts +1765 -0
  82. package/types/services/messaging.d.ts +53 -0
  83. package/types/services/projects.d.ts +129 -0
  84. package/types/services/realtime.d.ts +197 -0
  85. package/types/services/self-hosted-organizations.d.ts +495 -0
  86. package/types/services/storage.d.ts +259 -0
  87. package/types/services/tables-db.d.ts +434 -0
  88. package/types/services/teams.d.ts +341 -0
  89. package/types/services/vectors-db.d.ts +297 -0
@@ -0,0 +1,2537 @@
1
+ import { DistillationMessageRole } from './enums/distillation-message-role';
2
+ import { DistillationToolStatus } from './enums/distillation-tool-status';
3
+ import { MemoryBatchOperation } from './enums/memory-batch-operation';
4
+ import { MemoryHandlingPolicy } from './enums/memory-handling-policy';
5
+ import { MemoryMessageRole } from './enums/memory-message-role';
6
+ import { MemoryRecordKind } from './enums/memory-record-kind';
7
+ import { MemoryRecordSensitivity } from './enums/memory-record-sensitivity';
8
+ import { MemoryScope } from './enums/memory-scope';
9
+ import { TransactionAction } from './enums/transaction-action';
10
+ import { ExecutionTrigger } from "./enums/execution-trigger";
11
+ import { ExecutionStatus } from "./enums/execution-status";
12
+ import { OrganizationProjectDeletionDeletionStatus } from "./enums/organization-project-deletion-deletion-status";
13
+ import { ProjectDeletionResultStatus } from "./enums/project-deletion-result-status";
14
+ import { ProjectDeletionResultDeletionStatus } from "./enums/project-deletion-result-deletion-status";
15
+ import { ProjectDeletionRestoreStatus } from "./enums/project-deletion-restore-status";
16
+ import { MemoryBulkDeleteItemStatus } from "./enums/memory-bulk-delete-item-status";
17
+ import { MemoryBulkDeleteResponseStatus } from "./enums/memory-bulk-delete-response-status";
18
+ import { KnowledgeBaseDataSourceDocumentImportResultStatus } from "./enums/knowledge-base-data-source-document-import-result-status";
19
+ /**
20
+ * AppBase Models
21
+ */
22
+ export declare namespace Models {
23
+ const __default: unique symbol;
24
+ /**
25
+ * Aggregated Row
26
+ */
27
+ export type RowAggregationRow = {
28
+ /**
29
+ * Selected grouped column values keyed by their aliases.
30
+ */
31
+ group: object;
32
+ /**
33
+ * Aggregate values keyed by their aliases.
34
+ */
35
+ values: object;
36
+ };
37
+ /**
38
+ * Rows Aggregation
39
+ */
40
+ export type RowAggregation = {
41
+ /**
42
+ * Total number of groups returned by the aggregation.
43
+ */
44
+ total: number;
45
+ /**
46
+ * Aggregated rows split into grouped columns and aggregate values.
47
+ */
48
+ rows: RowAggregationRow[];
49
+ };
50
+ /**
51
+ * Rows List
52
+ */
53
+ export type RowList<Row extends Models.Row = Models.DefaultRow> = {
54
+ /**
55
+ * Total number of rows that matched your query.
56
+ */
57
+ total: number;
58
+ /**
59
+ * List of rows.
60
+ */
61
+ rows: Row[];
62
+ };
63
+ /**
64
+ * Documents List
65
+ */
66
+ export type DocumentList<Document extends Models.Document = Models.DefaultDocument> = {
67
+ /**
68
+ * Total number of documents that matched your query.
69
+ */
70
+ total: number;
71
+ /**
72
+ * List of documents.
73
+ */
74
+ documents: Document[];
75
+ };
76
+ /**
77
+ * Sessions List
78
+ */
79
+ export type SessionList = {
80
+ /**
81
+ * Total number of sessions that matched your query.
82
+ */
83
+ total: number;
84
+ /**
85
+ * List of sessions.
86
+ */
87
+ sessions: Session[];
88
+ };
89
+ /**
90
+ * Identities List
91
+ */
92
+ export type IdentityList = {
93
+ /**
94
+ * Total number of identities that matched your query.
95
+ */
96
+ total: number;
97
+ /**
98
+ * List of identities.
99
+ */
100
+ identities: Identity[];
101
+ };
102
+ /**
103
+ * Logs List
104
+ */
105
+ export type LogList = {
106
+ /**
107
+ * Total number of logs that matched your query.
108
+ */
109
+ total: number;
110
+ /**
111
+ * List of logs.
112
+ */
113
+ logs: Log[];
114
+ };
115
+ /**
116
+ * Files List
117
+ */
118
+ export type FileList = {
119
+ /**
120
+ * Total number of files that matched your query.
121
+ */
122
+ total: number;
123
+ /**
124
+ * List of files.
125
+ */
126
+ files: File[];
127
+ };
128
+ /**
129
+ * Teams List
130
+ */
131
+ export type TeamList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
132
+ /**
133
+ * Total number of teams that matched your query.
134
+ */
135
+ total: number;
136
+ /**
137
+ * List of teams.
138
+ */
139
+ teams: Team<Preferences>[];
140
+ };
141
+ /**
142
+ * Memberships List
143
+ */
144
+ export type MembershipList = {
145
+ /**
146
+ * Total number of memberships that matched your query.
147
+ */
148
+ total: number;
149
+ /**
150
+ * List of memberships.
151
+ */
152
+ memberships: Membership[];
153
+ };
154
+ /**
155
+ * Self-hosted Organizations List
156
+ */
157
+ export type SelfHostedOrganizationList = {
158
+ /**
159
+ * Total number of organizations that matched your query.
160
+ */
161
+ total: number;
162
+ /**
163
+ * List of organizations.
164
+ */
165
+ organizations: SelfHostedOrganization[];
166
+ };
167
+ /**
168
+ * Self-hosted Organization Memberships List
169
+ */
170
+ export type SelfHostedOrgMembershipList = {
171
+ /**
172
+ * Total number of memberships that matched your query.
173
+ */
174
+ total: number;
175
+ /**
176
+ * List of memberships.
177
+ */
178
+ memberships: SelfHostedOrgMembership[];
179
+ };
180
+ /**
181
+ * Executions List
182
+ */
183
+ export type ExecutionList = {
184
+ /**
185
+ * Total number of executions that matched your query.
186
+ */
187
+ total: number;
188
+ /**
189
+ * List of executions.
190
+ */
191
+ executions: Execution[];
192
+ };
193
+ /**
194
+ * Countries List
195
+ */
196
+ export type CountryList = {
197
+ /**
198
+ * Total number of countries that matched your query.
199
+ */
200
+ total: number;
201
+ /**
202
+ * List of countries.
203
+ */
204
+ countries: Country[];
205
+ };
206
+ /**
207
+ * Continents List
208
+ */
209
+ export type ContinentList = {
210
+ /**
211
+ * Total number of continents that matched your query.
212
+ */
213
+ total: number;
214
+ /**
215
+ * List of continents.
216
+ */
217
+ continents: Continent[];
218
+ };
219
+ /**
220
+ * Languages List
221
+ */
222
+ export type LanguageList = {
223
+ /**
224
+ * Total number of languages that matched your query.
225
+ */
226
+ total: number;
227
+ /**
228
+ * List of languages.
229
+ */
230
+ languages: Language[];
231
+ };
232
+ /**
233
+ * Currencies List
234
+ */
235
+ export type CurrencyList = {
236
+ /**
237
+ * Total number of currencies that matched your query.
238
+ */
239
+ total: number;
240
+ /**
241
+ * List of currencies.
242
+ */
243
+ currencies: Currency[];
244
+ };
245
+ /**
246
+ * Phones List
247
+ */
248
+ export type PhoneList = {
249
+ /**
250
+ * Total number of phones that matched your query.
251
+ */
252
+ total: number;
253
+ /**
254
+ * List of phones.
255
+ */
256
+ phones: Phone[];
257
+ };
258
+ /**
259
+ * Locale codes list
260
+ */
261
+ export type LocaleCodeList = {
262
+ /**
263
+ * Total number of localeCodes that matched your query.
264
+ */
265
+ total: number;
266
+ /**
267
+ * List of localeCodes.
268
+ */
269
+ localeCodes: LocaleCode[];
270
+ };
271
+ /**
272
+ * Transaction List
273
+ */
274
+ export type TransactionList = {
275
+ /**
276
+ * Total number of transactions that matched your query.
277
+ */
278
+ total: number;
279
+ /**
280
+ * List of transactions.
281
+ */
282
+ transactions: Transaction[];
283
+ };
284
+ /**
285
+ * Project Table Mode Conversions List
286
+ */
287
+ export type ProjectTableModeConversionList = {
288
+ /**
289
+ * Total number of conversions that matched your query.
290
+ */
291
+ total: number;
292
+ /**
293
+ * List of conversions.
294
+ */
295
+ conversions: ProjectTableModeConversion[];
296
+ };
297
+ /**
298
+ * Row
299
+ */
300
+ export type Row = {
301
+ /**
302
+ * Row ID.
303
+ */
304
+ $id: string;
305
+ /**
306
+ * Row sequence ID.
307
+ */
308
+ $sequence: string;
309
+ /**
310
+ * Table ID.
311
+ */
312
+ $tableId: string;
313
+ /**
314
+ * Database ID.
315
+ */
316
+ $databaseId: string;
317
+ /**
318
+ * Row creation date in ISO 8601 format.
319
+ */
320
+ $createdAt: string;
321
+ /**
322
+ * Row update date in ISO 8601 format.
323
+ */
324
+ $updatedAt: string;
325
+ /**
326
+ * Row permissions. [Learn more about permissions]([HOSTNAME]/docs/permissions).
327
+ */
328
+ $permissions: string[];
329
+ };
330
+ export type DefaultRow = Row & {
331
+ [key: string]: any;
332
+ [__default]: true;
333
+ };
334
+ /**
335
+ * Document
336
+ */
337
+ export type Document = {
338
+ /**
339
+ * Document ID.
340
+ */
341
+ $id: string;
342
+ /**
343
+ * Document sequence ID.
344
+ */
345
+ $sequence: string;
346
+ /**
347
+ * Collection ID.
348
+ */
349
+ $collectionId: string;
350
+ /**
351
+ * Database ID.
352
+ */
353
+ $databaseId: string;
354
+ /**
355
+ * Document creation date in ISO 8601 format.
356
+ */
357
+ $createdAt: string;
358
+ /**
359
+ * Document update date in ISO 8601 format.
360
+ */
361
+ $updatedAt: string;
362
+ /**
363
+ * Document permissions. [Learn more about permissions]([HOSTNAME]/docs/permissions).
364
+ */
365
+ $permissions: string[];
366
+ };
367
+ export type DefaultDocument = Document & {
368
+ [key: string]: any;
369
+ [__default]: true;
370
+ };
371
+ /**
372
+ * Log
373
+ */
374
+ export type Log = {
375
+ /**
376
+ * Event name.
377
+ */
378
+ event: string;
379
+ /**
380
+ * User ID of the actor recorded for this log. During impersonation, this is the original impersonator, not the impersonated target user.
381
+ */
382
+ userId: string;
383
+ /**
384
+ * User email of the actor recorded for this log. During impersonation, this is the original impersonator.
385
+ */
386
+ userEmail: string;
387
+ /**
388
+ * User name of the actor recorded for this log. During impersonation, this is the original impersonator.
389
+ */
390
+ userName: string;
391
+ /**
392
+ * API mode when event triggered.
393
+ */
394
+ mode: string;
395
+ /**
396
+ * IP session in use when the session was created.
397
+ */
398
+ ip: string;
399
+ /**
400
+ * Log creation date in ISO 8601 format.
401
+ */
402
+ time: string;
403
+ /**
404
+ * Operating system code name. View list of [available options]([HOSTNAME]/docs/lists/os.json).
405
+ */
406
+ osCode: string;
407
+ /**
408
+ * Operating system name.
409
+ */
410
+ osName: string;
411
+ /**
412
+ * Operating system version.
413
+ */
414
+ osVersion: string;
415
+ /**
416
+ * Client type.
417
+ */
418
+ clientType: string;
419
+ /**
420
+ * Client code name. View list of [available options]([HOSTNAME]/docs/lists/clients.json).
421
+ */
422
+ clientCode: string;
423
+ /**
424
+ * Client name.
425
+ */
426
+ clientName: string;
427
+ /**
428
+ * Client version.
429
+ */
430
+ clientVersion: string;
431
+ /**
432
+ * Client engine name.
433
+ */
434
+ clientEngine: string;
435
+ /**
436
+ * Client engine name.
437
+ */
438
+ clientEngineVersion: string;
439
+ /**
440
+ * Device name.
441
+ */
442
+ deviceName: string;
443
+ /**
444
+ * Device brand name.
445
+ */
446
+ deviceBrand: string;
447
+ /**
448
+ * Device model name.
449
+ */
450
+ deviceModel: string;
451
+ /**
452
+ * Country two-character ISO 3166-1 alpha code.
453
+ */
454
+ countryCode: string;
455
+ /**
456
+ * Country name.
457
+ */
458
+ countryName: string;
459
+ };
460
+ /**
461
+ * User
462
+ */
463
+ export type User<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
464
+ /**
465
+ * User ID.
466
+ */
467
+ $id: string;
468
+ /**
469
+ * User creation date in ISO 8601 format.
470
+ */
471
+ $createdAt: string;
472
+ /**
473
+ * User update date in ISO 8601 format.
474
+ */
475
+ $updatedAt: string;
476
+ /**
477
+ * User name.
478
+ */
479
+ name: string;
480
+ /**
481
+ * Hashed user password.
482
+ */
483
+ password?: string;
484
+ /**
485
+ * Password hashing algorithm.
486
+ */
487
+ hash?: string;
488
+ /**
489
+ * Password hashing algorithm configuration.
490
+ */
491
+ hashOptions?: object;
492
+ /**
493
+ * User registration date in ISO 8601 format.
494
+ */
495
+ registration: string;
496
+ /**
497
+ * User status. Pass `true` for enabled and `false` for disabled.
498
+ */
499
+ status: boolean;
500
+ /**
501
+ * Labels for the user.
502
+ */
503
+ labels: string[];
504
+ /**
505
+ * Password update time in ISO 8601 format.
506
+ */
507
+ passwordUpdate: string;
508
+ /**
509
+ * User email address.
510
+ */
511
+ email: string;
512
+ /**
513
+ * User phone number in E.164 format.
514
+ */
515
+ phone: string;
516
+ /**
517
+ * Email verification status.
518
+ */
519
+ emailVerification: boolean;
520
+ /**
521
+ * Phone verification status.
522
+ */
523
+ phoneVerification: boolean;
524
+ /**
525
+ * Multi factor authentication status.
526
+ */
527
+ mfa: boolean;
528
+ /**
529
+ * User preferences as a key-value object
530
+ */
531
+ prefs: Preferences;
532
+ /**
533
+ * A user-owned message receiver. A single user may have multiple e.g. emails, phones, and a browser. Each target is registered with a single provider.
534
+ */
535
+ targets: Target[];
536
+ /**
537
+ * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
538
+ */
539
+ accessedAt: string;
540
+ /**
541
+ * Whether the user can impersonate other users.
542
+ */
543
+ impersonator?: boolean;
544
+ /**
545
+ * ID of the original actor performing the impersonation. Present only when the current request is impersonating another user. Internal audit logs attribute the action to this user, while the impersonated target is recorded only in internal audit payload data.
546
+ */
547
+ impersonatorUserId?: string;
548
+ };
549
+ /**
550
+ * AlgoMD5
551
+ */
552
+ export type AlgoMd5 = {
553
+ /**
554
+ * Algo type.
555
+ */
556
+ type: string;
557
+ };
558
+ /**
559
+ * AlgoSHA
560
+ */
561
+ export type AlgoSha = {
562
+ /**
563
+ * Algo type.
564
+ */
565
+ type: string;
566
+ };
567
+ /**
568
+ * AlgoPHPass
569
+ */
570
+ export type AlgoPhpass = {
571
+ /**
572
+ * Algo type.
573
+ */
574
+ type: string;
575
+ };
576
+ /**
577
+ * AlgoBcrypt
578
+ */
579
+ export type AlgoBcrypt = {
580
+ /**
581
+ * Algo type.
582
+ */
583
+ type: string;
584
+ };
585
+ /**
586
+ * AlgoScrypt
587
+ */
588
+ export type AlgoScrypt = {
589
+ /**
590
+ * Algo type.
591
+ */
592
+ type: string;
593
+ /**
594
+ * CPU complexity of computed hash.
595
+ */
596
+ costCpu: number;
597
+ /**
598
+ * Memory complexity of computed hash.
599
+ */
600
+ costMemory: number;
601
+ /**
602
+ * Parallelization of computed hash.
603
+ */
604
+ costParallel: number;
605
+ /**
606
+ * Length used to compute hash.
607
+ */
608
+ length: number;
609
+ };
610
+ /**
611
+ * AlgoScryptModified
612
+ */
613
+ export type AlgoScryptModified = {
614
+ /**
615
+ * Algo type.
616
+ */
617
+ type: string;
618
+ /**
619
+ * Salt used to compute hash.
620
+ */
621
+ salt: string;
622
+ /**
623
+ * Separator used to compute hash.
624
+ */
625
+ saltSeparator: string;
626
+ /**
627
+ * Key used to compute hash.
628
+ */
629
+ signerKey: string;
630
+ };
631
+ /**
632
+ * AlgoArgon2
633
+ */
634
+ export type AlgoArgon2 = {
635
+ /**
636
+ * Algo type.
637
+ */
638
+ type: string;
639
+ /**
640
+ * Memory used to compute hash.
641
+ */
642
+ memoryCost: number;
643
+ /**
644
+ * Amount of time consumed to compute hash
645
+ */
646
+ timeCost: number;
647
+ /**
648
+ * Number of threads used to compute hash.
649
+ */
650
+ threads: number;
651
+ };
652
+ /**
653
+ * Preferences
654
+ */
655
+ export type Preferences = {};
656
+ export type DefaultPreferences = Preferences & {
657
+ [key: string]: any;
658
+ [__default]: true;
659
+ };
660
+ /**
661
+ * Session
662
+ */
663
+ export type Session = {
664
+ /**
665
+ * Session ID.
666
+ */
667
+ $id: string;
668
+ /**
669
+ * Session creation date in ISO 8601 format.
670
+ */
671
+ $createdAt: string;
672
+ /**
673
+ * Session update date in ISO 8601 format.
674
+ */
675
+ $updatedAt: string;
676
+ /**
677
+ * User ID.
678
+ */
679
+ userId: string;
680
+ /**
681
+ * Session expiration date in ISO 8601 format.
682
+ */
683
+ expire: string;
684
+ /**
685
+ * Session Provider.
686
+ */
687
+ provider: string;
688
+ /**
689
+ * Session Provider User ID.
690
+ */
691
+ providerUid: string;
692
+ /**
693
+ * Session Provider Access Token.
694
+ */
695
+ providerAccessToken: string;
696
+ /**
697
+ * The date of when the access token expires in ISO 8601 format.
698
+ */
699
+ providerAccessTokenExpiry: string;
700
+ /**
701
+ * Session Provider Refresh Token.
702
+ */
703
+ providerRefreshToken: string;
704
+ /**
705
+ * IP in use when the session was created.
706
+ */
707
+ ip: string;
708
+ /**
709
+ * Operating system code name. View list of [available options]([HOSTNAME]/docs/lists/os.json).
710
+ */
711
+ osCode: string;
712
+ /**
713
+ * Operating system name.
714
+ */
715
+ osName: string;
716
+ /**
717
+ * Operating system version.
718
+ */
719
+ osVersion: string;
720
+ /**
721
+ * Client type.
722
+ */
723
+ clientType: string;
724
+ /**
725
+ * Client code name. View list of [available options]([HOSTNAME]/docs/lists/clients.json).
726
+ */
727
+ clientCode: string;
728
+ /**
729
+ * Client name.
730
+ */
731
+ clientName: string;
732
+ /**
733
+ * Client version.
734
+ */
735
+ clientVersion: string;
736
+ /**
737
+ * Client engine name.
738
+ */
739
+ clientEngine: string;
740
+ /**
741
+ * Client engine name.
742
+ */
743
+ clientEngineVersion: string;
744
+ /**
745
+ * Device name.
746
+ */
747
+ deviceName: string;
748
+ /**
749
+ * Device brand name.
750
+ */
751
+ deviceBrand: string;
752
+ /**
753
+ * Device model name.
754
+ */
755
+ deviceModel: string;
756
+ /**
757
+ * Country two-character ISO 3166-1 alpha code.
758
+ */
759
+ countryCode: string;
760
+ /**
761
+ * Country name.
762
+ */
763
+ countryName: string;
764
+ /**
765
+ * Returns true if this the current user session.
766
+ */
767
+ current: boolean;
768
+ /**
769
+ * Returns a list of active session factors.
770
+ */
771
+ factors: string[];
772
+ /**
773
+ * Secret used to authenticate the user. Only included if the request was made with an API key
774
+ */
775
+ secret: string;
776
+ /**
777
+ * Most recent date in ISO 8601 format when the session successfully passed MFA challenge.
778
+ */
779
+ mfaUpdatedAt: string;
780
+ };
781
+ /**
782
+ * Identity
783
+ */
784
+ export type Identity = {
785
+ /**
786
+ * Identity ID.
787
+ */
788
+ $id: string;
789
+ /**
790
+ * Identity creation date in ISO 8601 format.
791
+ */
792
+ $createdAt: string;
793
+ /**
794
+ * Identity update date in ISO 8601 format.
795
+ */
796
+ $updatedAt: string;
797
+ /**
798
+ * User ID.
799
+ */
800
+ userId: string;
801
+ /**
802
+ * Identity Provider.
803
+ */
804
+ provider: string;
805
+ /**
806
+ * ID of the User in the Identity Provider.
807
+ */
808
+ providerUid: string;
809
+ /**
810
+ * Email of the User in the Identity Provider.
811
+ */
812
+ providerEmail: string;
813
+ /**
814
+ * Identity Provider Access Token.
815
+ */
816
+ providerAccessToken: string;
817
+ /**
818
+ * The date of when the access token expires in ISO 8601 format.
819
+ */
820
+ providerAccessTokenExpiry: string;
821
+ /**
822
+ * Identity Provider Refresh Token.
823
+ */
824
+ providerRefreshToken: string;
825
+ };
826
+ /**
827
+ * Token
828
+ */
829
+ export type Token = {
830
+ /**
831
+ * Token ID.
832
+ */
833
+ $id: string;
834
+ /**
835
+ * Token creation date in ISO 8601 format.
836
+ */
837
+ $createdAt: string;
838
+ /**
839
+ * User ID.
840
+ */
841
+ userId: string;
842
+ /**
843
+ * Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
844
+ */
845
+ secret: string;
846
+ /**
847
+ * Token expiration date in ISO 8601 format.
848
+ */
849
+ expire: string;
850
+ /**
851
+ * Security phrase of a token. Empty if security phrase was not requested when creating a token. It includes randomly generated phrase which is also sent in the external resource such as email.
852
+ */
853
+ phrase: string;
854
+ };
855
+ /**
856
+ * JWT
857
+ */
858
+ export type Jwt = {
859
+ /**
860
+ * JWT encoded string.
861
+ */
862
+ jwt: string;
863
+ };
864
+ /**
865
+ * Locale
866
+ */
867
+ export type Locale = {
868
+ /**
869
+ * User IP address.
870
+ */
871
+ ip: string;
872
+ /**
873
+ * Country code in [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) two-character format
874
+ */
875
+ countryCode: string;
876
+ /**
877
+ * Country name. This field support localization.
878
+ */
879
+ country: string;
880
+ /**
881
+ * Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America.
882
+ */
883
+ continentCode: string;
884
+ /**
885
+ * Continent name. This field support localization.
886
+ */
887
+ continent: string;
888
+ /**
889
+ * True if country is part of the European Union.
890
+ */
891
+ eu: boolean;
892
+ /**
893
+ * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format
894
+ */
895
+ currency: string;
896
+ };
897
+ /**
898
+ * LocaleCode
899
+ */
900
+ export type LocaleCode = {
901
+ /**
902
+ * Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
903
+ */
904
+ code: string;
905
+ /**
906
+ * Locale name
907
+ */
908
+ name: string;
909
+ };
910
+ /**
911
+ * File
912
+ */
913
+ export type File = {
914
+ /**
915
+ * File ID.
916
+ */
917
+ $id: string;
918
+ /**
919
+ * Bucket ID.
920
+ */
921
+ bucketId: string;
922
+ /**
923
+ * File creation date in ISO 8601 format.
924
+ */
925
+ $createdAt: string;
926
+ /**
927
+ * File update date in ISO 8601 format.
928
+ */
929
+ $updatedAt: string;
930
+ /**
931
+ * File permissions. [Learn more about permissions]([HOSTNAME]/docs/permissions).
932
+ */
933
+ $permissions: string[];
934
+ /**
935
+ * File name.
936
+ */
937
+ name: string;
938
+ /**
939
+ * File MD5 signature.
940
+ */
941
+ signature: string;
942
+ /**
943
+ * File mime type.
944
+ */
945
+ mimeType: string;
946
+ /**
947
+ * File original size in bytes.
948
+ */
949
+ sizeOriginal: number;
950
+ /**
951
+ * Total number of chunks available
952
+ */
953
+ chunksTotal: number;
954
+ /**
955
+ * Total number of chunks uploaded
956
+ */
957
+ chunksUploaded: number;
958
+ /**
959
+ * Whether file contents are encrypted at rest.
960
+ */
961
+ encryption: boolean;
962
+ /**
963
+ * Compression algorithm used for the file. Will be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd).
964
+ */
965
+ compression: string;
966
+ };
967
+ /**
968
+ * Team
969
+ */
970
+ export type Team<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
971
+ /**
972
+ * Team ID.
973
+ */
974
+ $id: string;
975
+ /**
976
+ * Team creation date in ISO 8601 format.
977
+ */
978
+ $createdAt: string;
979
+ /**
980
+ * Team update date in ISO 8601 format.
981
+ */
982
+ $updatedAt: string;
983
+ /**
984
+ * Team name.
985
+ */
986
+ name: string;
987
+ /**
988
+ * Total number of team members.
989
+ */
990
+ total: number;
991
+ /**
992
+ * Team preferences as a key-value object
993
+ */
994
+ prefs: Preferences;
995
+ };
996
+ /**
997
+ * Membership
998
+ */
999
+ export type Membership = {
1000
+ /**
1001
+ * Membership ID.
1002
+ */
1003
+ $id: string;
1004
+ /**
1005
+ * Membership creation date in ISO 8601 format.
1006
+ */
1007
+ $createdAt: string;
1008
+ /**
1009
+ * Membership update date in ISO 8601 format.
1010
+ */
1011
+ $updatedAt: string;
1012
+ /**
1013
+ * User ID.
1014
+ */
1015
+ userId: string;
1016
+ /**
1017
+ * User name. Hide this attribute by toggling membership privacy in the Console.
1018
+ */
1019
+ userName: string;
1020
+ /**
1021
+ * User email address. Hide this attribute by toggling membership privacy in the Console.
1022
+ */
1023
+ userEmail: string;
1024
+ /**
1025
+ * Team ID.
1026
+ */
1027
+ teamId: string;
1028
+ /**
1029
+ * Team name.
1030
+ */
1031
+ teamName: string;
1032
+ /**
1033
+ * Date, the user has been invited to join the team in ISO 8601 format.
1034
+ */
1035
+ invited: string;
1036
+ /**
1037
+ * Date, the user has accepted the invitation to join the team in ISO 8601 format.
1038
+ */
1039
+ joined: string;
1040
+ /**
1041
+ * User confirmation status, true if the user has joined the team or false otherwise.
1042
+ */
1043
+ confirm: boolean;
1044
+ /**
1045
+ * Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.
1046
+ */
1047
+ mfa: boolean;
1048
+ /**
1049
+ * User list of roles
1050
+ */
1051
+ roles: string[];
1052
+ };
1053
+ /**
1054
+ * SelfHostedOrganization
1055
+ */
1056
+ export type SelfHostedOrganization = {
1057
+ /**
1058
+ * Organization ID.
1059
+ */
1060
+ $id: string;
1061
+ /**
1062
+ * Organization creation date in ISO 8601 format.
1063
+ */
1064
+ $createdAt: string;
1065
+ /**
1066
+ * Organization update date in ISO 8601 format.
1067
+ */
1068
+ $updatedAt: string;
1069
+ /**
1070
+ * Organization name.
1071
+ */
1072
+ name: string;
1073
+ /**
1074
+ * Organization description.
1075
+ */
1076
+ description: string;
1077
+ /**
1078
+ * Default team ID for this organization.
1079
+ */
1080
+ defaultTeamId: string;
1081
+ /**
1082
+ * Maximum number of members. Null means unlimited.
1083
+ */
1084
+ maxMembers?: number;
1085
+ /**
1086
+ * Current number of active organization members.
1087
+ */
1088
+ memberTotal?: number;
1089
+ /**
1090
+ * Current account role in the organization.
1091
+ */
1092
+ currentRole?: string;
1093
+ /**
1094
+ * Whether the current account is authorized as a platform administrator.
1095
+ */
1096
+ platformAdmin: boolean;
1097
+ /**
1098
+ * Whether the organization has associated projects. Null when this value is not evaluated for the current account.
1099
+ */
1100
+ hasProjects?: boolean;
1101
+ };
1102
+ /**
1103
+ * SelfHostedOrganizationUsage
1104
+ */
1105
+ export type SelfHostedOrganizationUsage = {
1106
+ /**
1107
+ * Time range of the usage statistics.
1108
+ */
1109
+ range: string;
1110
+ /**
1111
+ * Total storage usage across organization projects with available database pools in bytes.
1112
+ */
1113
+ storageTotal: number;
1114
+ /**
1115
+ * Total users across organization projects with available database pools.
1116
+ */
1117
+ usersTotal: number;
1118
+ /**
1119
+ * Total function executions across organization projects with available database pools.
1120
+ */
1121
+ executionsTotal: number;
1122
+ /**
1123
+ * Total inbound and outbound bandwidth across organization projects with available database pools in bytes.
1124
+ */
1125
+ bandwidthTotal: number;
1126
+ /**
1127
+ * Total platform-managed moderation invocations across organization projects with available database pools.
1128
+ */
1129
+ moderationPlatformTotal: number;
1130
+ /**
1131
+ * Aggregated inbound and outbound bandwidth time series.
1132
+ */
1133
+ bandwidth: Metric[];
1134
+ /**
1135
+ * Aggregated user count time series.
1136
+ */
1137
+ users: Metric[];
1138
+ /**
1139
+ * Aggregated function execution time series.
1140
+ */
1141
+ executions: Metric[];
1142
+ /**
1143
+ * Aggregated platform-managed moderation invocation time series.
1144
+ */
1145
+ moderationPlatform: Metric[];
1146
+ /**
1147
+ * Per-project usage breakdown with projectId, storage, bandwidth, users, and executions.
1148
+ */
1149
+ projects: SelfHostedOrganizationUsageProject[];
1150
+ /**
1151
+ * Most recent stats update included in the response. Null when no project stats exist.
1152
+ */
1153
+ freshnessAt?: string;
1154
+ };
1155
+ /**
1156
+ * SelfHostedOrganizationUsageProject
1157
+ */
1158
+ export type SelfHostedOrganizationUsageProject = {
1159
+ /**
1160
+ * Project ID.
1161
+ */
1162
+ projectId: string;
1163
+ /**
1164
+ * Project storage usage in bytes.
1165
+ */
1166
+ storage: number;
1167
+ /**
1168
+ * Project inbound and outbound bandwidth in bytes.
1169
+ */
1170
+ bandwidth: number;
1171
+ /**
1172
+ * Project user count.
1173
+ */
1174
+ users: number;
1175
+ /**
1176
+ * Project function execution count.
1177
+ */
1178
+ executions: number;
1179
+ /**
1180
+ * Project platform-managed moderation invocation count.
1181
+ */
1182
+ moderationPlatform: number;
1183
+ };
1184
+ /**
1185
+ * MeterUsage
1186
+ */
1187
+ export type MeterUsage = {
1188
+ /**
1189
+ * Usage subject type.
1190
+ */
1191
+ subjectType: string;
1192
+ /**
1193
+ * Public usage subject ID.
1194
+ */
1195
+ subjectId: string;
1196
+ /**
1197
+ * Stable meter name.
1198
+ */
1199
+ meter: string;
1200
+ /**
1201
+ * Meter definition version.
1202
+ */
1203
+ meterVersion: number;
1204
+ /**
1205
+ * Measured quantity. Null means the coverage is not trustworthy.
1206
+ */
1207
+ quantity?: number;
1208
+ /**
1209
+ * Meter unit.
1210
+ */
1211
+ unit: string;
1212
+ /**
1213
+ * Daily aggregation rule.
1214
+ */
1215
+ aggregation: string;
1216
+ /**
1217
+ * Inclusive UTC day start.
1218
+ */
1219
+ periodStart: string;
1220
+ /**
1221
+ * Exclusive UTC day end.
1222
+ */
1223
+ periodEnd: string;
1224
+ /**
1225
+ * Whether the full interval is trustworthy.
1226
+ */
1227
+ complete: boolean;
1228
+ /**
1229
+ * Minimum trusted closed watermark.
1230
+ */
1231
+ freshnessAt?: string;
1232
+ /**
1233
+ * Stable reason for incomplete or missing data.
1234
+ */
1235
+ reason?: string;
1236
+ };
1237
+ /**
1238
+ * MeterUsageList
1239
+ */
1240
+ export type MeterUsageList = {
1241
+ /**
1242
+ * Fixed usage range.
1243
+ */
1244
+ range: string;
1245
+ /**
1246
+ * Inclusive UTC range start.
1247
+ */
1248
+ periodStart: string;
1249
+ /**
1250
+ * Exclusive UTC range end.
1251
+ */
1252
+ periodEnd: string;
1253
+ /**
1254
+ * Whether all returned meter-days are trustworthy.
1255
+ */
1256
+ complete: boolean;
1257
+ /**
1258
+ * Minimum trusted watermark across the range.
1259
+ */
1260
+ freshnessAt?: string;
1261
+ /**
1262
+ * UTC daily meter aggregates.
1263
+ */
1264
+ aggregates: MeterUsage[];
1265
+ };
1266
+ /**
1267
+ * SelfHostedOrgMembership
1268
+ */
1269
+ export type SelfHostedOrgMembership = {
1270
+ /**
1271
+ * Organization membership ID.
1272
+ */
1273
+ $id: string;
1274
+ /**
1275
+ * Membership creation date in ISO 8601 format.
1276
+ */
1277
+ $createdAt: string;
1278
+ /**
1279
+ * Membership update date in ISO 8601 format.
1280
+ */
1281
+ $updatedAt: string;
1282
+ /**
1283
+ * Organization ID.
1284
+ */
1285
+ organizationId: string;
1286
+ /**
1287
+ * Organization name.
1288
+ */
1289
+ organizationName: string;
1290
+ /**
1291
+ * User ID.
1292
+ */
1293
+ userId: string;
1294
+ /**
1295
+ * User name.
1296
+ */
1297
+ userName: string;
1298
+ /**
1299
+ * User email address.
1300
+ */
1301
+ userEmail: string;
1302
+ /**
1303
+ * Organization role. One of: owner, admin, developer, editor, analyst, billing.
1304
+ */
1305
+ role: string;
1306
+ /**
1307
+ * Membership status. One of: pending, active.
1308
+ */
1309
+ status: string;
1310
+ /**
1311
+ * Date the user was invited to join the organization in ISO 8601 format.
1312
+ */
1313
+ invited: string;
1314
+ /**
1315
+ * Date the user accepted the invitation in ISO 8601 format.
1316
+ */
1317
+ joined: string;
1318
+ /**
1319
+ * Invitation expiry date in ISO 8601 format.
1320
+ */
1321
+ expiresAt: string;
1322
+ /**
1323
+ * Whether the member has multi-factor authentication enabled with at least one verified factor.
1324
+ */
1325
+ mfa?: boolean;
1326
+ };
1327
+ /**
1328
+ * Execution
1329
+ */
1330
+ export type Execution = {
1331
+ /**
1332
+ * Execution ID.
1333
+ */
1334
+ $id: string;
1335
+ /**
1336
+ * Execution creation date in ISO 8601 format.
1337
+ */
1338
+ $createdAt: string;
1339
+ /**
1340
+ * Execution update date in ISO 8601 format.
1341
+ */
1342
+ $updatedAt: string;
1343
+ /**
1344
+ * Execution roles.
1345
+ */
1346
+ $permissions: string[];
1347
+ /**
1348
+ * Function ID.
1349
+ */
1350
+ functionId: string;
1351
+ /**
1352
+ * Function's deployment ID used to create the execution.
1353
+ */
1354
+ deploymentId: string;
1355
+ /**
1356
+ * The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
1357
+ */
1358
+ trigger: ExecutionTrigger;
1359
+ /**
1360
+ * The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, `failed`, or `scheduled`.
1361
+ */
1362
+ status: ExecutionStatus;
1363
+ /**
1364
+ * HTTP request method type.
1365
+ */
1366
+ requestMethod: string;
1367
+ /**
1368
+ * HTTP request path and query.
1369
+ */
1370
+ requestPath: string;
1371
+ /**
1372
+ * HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
1373
+ */
1374
+ requestHeaders: Headers[];
1375
+ /**
1376
+ * HTTP response status code.
1377
+ */
1378
+ responseStatusCode: number;
1379
+ /**
1380
+ * HTTP response body returned by the function.
1381
+ */
1382
+ responseBody: string;
1383
+ /**
1384
+ * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
1385
+ */
1386
+ responseHeaders: Headers[];
1387
+ /**
1388
+ * Function logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
1389
+ */
1390
+ logs: string;
1391
+ /**
1392
+ * Function errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
1393
+ */
1394
+ errors: string;
1395
+ /**
1396
+ * Resource(function/site) execution duration in seconds.
1397
+ */
1398
+ duration: number;
1399
+ /**
1400
+ * The scheduled time for execution. If left empty, execution will be queued immediately.
1401
+ */
1402
+ scheduledAt?: string;
1403
+ };
1404
+ /**
1405
+ * Organization Inactive Project
1406
+ */
1407
+ export type OrganizationInactiveProject = {
1408
+ /**
1409
+ * Project ID.
1410
+ */
1411
+ projectId: string;
1412
+ /**
1413
+ * Project name.
1414
+ */
1415
+ name: string;
1416
+ /**
1417
+ * Organization ID.
1418
+ */
1419
+ teamId: string;
1420
+ /**
1421
+ * Project creation time.
1422
+ */
1423
+ createdAt: string;
1424
+ /**
1425
+ * Most recent project access time, when available.
1426
+ */
1427
+ lastResourceActivityAt?: string;
1428
+ /**
1429
+ * Time from which the project is considered inactive.
1430
+ */
1431
+ inactiveSince: string;
1432
+ /**
1433
+ * Current table mode conversion status.
1434
+ */
1435
+ tableModeConversionStatus: string;
1436
+ };
1437
+ /**
1438
+ * Organization Inactive Project List
1439
+ */
1440
+ export type OrganizationInactiveProjectList = {
1441
+ /**
1442
+ * Organization ID.
1443
+ */
1444
+ teamId: string;
1445
+ /**
1446
+ * Inactivity threshold in days.
1447
+ */
1448
+ inactiveDays: number;
1449
+ /**
1450
+ * Inactive projects in this page.
1451
+ */
1452
+ projects: OrganizationInactiveProject[];
1453
+ /**
1454
+ * Matching inactive projects found in this bounded scan.
1455
+ */
1456
+ total: number;
1457
+ /**
1458
+ * Number of organization projects inspected in this bounded scan.
1459
+ */
1460
+ scanned: number;
1461
+ /**
1462
+ * Last inspected project ID for continuing the bounded scan.
1463
+ */
1464
+ nextCursor?: string;
1465
+ };
1466
+ /**
1467
+ * Organization Project Deletion
1468
+ */
1469
+ export type OrganizationProjectDeletion = {
1470
+ /**
1471
+ * Project ID.
1472
+ */
1473
+ projectId: string;
1474
+ /**
1475
+ * Project name.
1476
+ */
1477
+ name: string;
1478
+ /**
1479
+ * Organization team ID.
1480
+ */
1481
+ teamId: string;
1482
+ /**
1483
+ * Deletion lifecycle status.
1484
+ */
1485
+ deletionStatus: OrganizationProjectDeletionDeletionStatus;
1486
+ /**
1487
+ * Logical deletion time.
1488
+ */
1489
+ deletedAt: string;
1490
+ /**
1491
+ * Scheduled physical deletion time.
1492
+ */
1493
+ purgeAt: string;
1494
+ /**
1495
+ * User or organization key identity that requested deletion.
1496
+ */
1497
+ deletedBy?: string;
1498
+ /**
1499
+ * Deletion reason.
1500
+ */
1501
+ reason?: string;
1502
+ /**
1503
+ * Deletion request ID.
1504
+ */
1505
+ requestId: string;
1506
+ /**
1507
+ * Latest purge error.
1508
+ */
1509
+ error?: string;
1510
+ };
1511
+ /**
1512
+ * Organization Project Deletion List
1513
+ */
1514
+ export type OrganizationProjectDeletionList = {
1515
+ /**
1516
+ * Organization team ID.
1517
+ */
1518
+ teamId: string;
1519
+ /**
1520
+ * Projects in a deletion lifecycle state.
1521
+ */
1522
+ projects: OrganizationProjectDeletion[];
1523
+ /**
1524
+ * Total matching projects.
1525
+ */
1526
+ total: number;
1527
+ };
1528
+ /**
1529
+ * Project Deletion Result
1530
+ */
1531
+ export type ProjectDeletionResult = {
1532
+ /**
1533
+ * Requested project ID.
1534
+ */
1535
+ projectId: string;
1536
+ /**
1537
+ * Per-project deletion result.
1538
+ */
1539
+ status: ProjectDeletionResultStatus;
1540
+ /**
1541
+ * Deletion request ID when accepted.
1542
+ */
1543
+ requestId?: string;
1544
+ /**
1545
+ * Deletion lifecycle status when accepted.
1546
+ */
1547
+ deletionStatus?: ProjectDeletionResultDeletionStatus;
1548
+ /**
1549
+ * Logical deletion time.
1550
+ */
1551
+ deletedAt?: string;
1552
+ /**
1553
+ * Scheduled physical deletion time.
1554
+ */
1555
+ purgeAt?: string;
1556
+ /**
1557
+ * Whether an existing deletion request was reused.
1558
+ */
1559
+ idempotent?: boolean;
1560
+ /**
1561
+ * Machine-readable result code.
1562
+ */
1563
+ code?: string;
1564
+ /**
1565
+ * Human-readable result detail.
1566
+ */
1567
+ message?: string;
1568
+ };
1569
+ /**
1570
+ * Project Deletion Restore
1571
+ */
1572
+ export type ProjectDeletionRestore = {
1573
+ /**
1574
+ * Restoration result.
1575
+ */
1576
+ status: ProjectDeletionRestoreStatus;
1577
+ /**
1578
+ * Restored project ID.
1579
+ */
1580
+ projectId: string;
1581
+ /**
1582
+ * Original deletion request ID.
1583
+ */
1584
+ requestId: string;
1585
+ };
1586
+ /**
1587
+ * Project Deletion Summary
1588
+ */
1589
+ export type ProjectDeletionSummary = {
1590
+ /**
1591
+ * Number of accepted deletions.
1592
+ */
1593
+ accepted: number;
1594
+ /**
1595
+ * Number of rejected deletions.
1596
+ */
1597
+ rejected: number;
1598
+ /**
1599
+ * Number of skipped deletions.
1600
+ */
1601
+ skipped: number;
1602
+ };
1603
+ /**
1604
+ * Project Batch Deletion
1605
+ */
1606
+ export type ProjectBatchDeletion = {
1607
+ /**
1608
+ * Batch request ID.
1609
+ */
1610
+ requestId: string;
1611
+ /**
1612
+ * Organization ID.
1613
+ */
1614
+ teamId: string;
1615
+ /**
1616
+ * Unique requested project IDs.
1617
+ */
1618
+ projectIds: string[];
1619
+ /**
1620
+ * Deletion reason.
1621
+ */
1622
+ reason?: string;
1623
+ /**
1624
+ * Whether this request only validated deletion eligibility.
1625
+ */
1626
+ dryRun: boolean;
1627
+ /**
1628
+ * Per-project deletion results.
1629
+ */
1630
+ results: ProjectDeletionResult[];
1631
+ /**
1632
+ * Counts keyed by accepted, rejected, and skipped.
1633
+ */
1634
+ summary: ProjectDeletionSummary;
1635
+ };
1636
+ /**
1637
+ * Project Table Mode Conversion
1638
+ */
1639
+ export type ProjectTableModeConversion = {
1640
+ /**
1641
+ * Conversion ID.
1642
+ */
1643
+ $id: string;
1644
+ /**
1645
+ * Conversion creation date in ISO 8601 format.
1646
+ */
1647
+ $createdAt: string;
1648
+ /**
1649
+ * Conversion update date in ISO 8601 format.
1650
+ */
1651
+ $updatedAt: string;
1652
+ /**
1653
+ * Project ID.
1654
+ */
1655
+ projectId: string;
1656
+ /**
1657
+ * Source pool alias.
1658
+ */
1659
+ sourcePool: string;
1660
+ /**
1661
+ * Source table mode.
1662
+ */
1663
+ sourceTableMode: string;
1664
+ /**
1665
+ * Target pool alias.
1666
+ */
1667
+ targetPool: string;
1668
+ /**
1669
+ * Target table mode.
1670
+ */
1671
+ targetTableMode: string;
1672
+ /**
1673
+ * Target pool tag.
1674
+ */
1675
+ targetTag: string;
1676
+ /**
1677
+ * Conversion status.
1678
+ */
1679
+ status: string;
1680
+ /**
1681
+ * Total number of records to migrate.
1682
+ */
1683
+ progressTotal: number;
1684
+ /**
1685
+ * Number of migrated records.
1686
+ */
1687
+ progressDone: number;
1688
+ /**
1689
+ * Backfill batch size.
1690
+ */
1691
+ batchSize: number;
1692
+ /**
1693
+ * Maximum freeze-writes window in seconds.
1694
+ */
1695
+ freezeWindowMaxSecs: number;
1696
+ /**
1697
+ * Source data retention period in seconds after cutover.
1698
+ */
1699
+ retentionSeconds: number;
1700
+ /**
1701
+ * Time when source data is scheduled for deletion.
1702
+ */
1703
+ sourceDataDeleteAt: string;
1704
+ /**
1705
+ * Time when source data was deleted.
1706
+ */
1707
+ sourceDataDeletedAt: string;
1708
+ /**
1709
+ * Source data deletion status.
1710
+ */
1711
+ sourceDataDeleteStatus: string;
1712
+ /**
1713
+ * Source data deletion error, when cleanup fails.
1714
+ */
1715
+ sourceDataDeleteError: string;
1716
+ /**
1717
+ * Verification report, when available.
1718
+ */
1719
+ verificationReport: object;
1720
+ /**
1721
+ * Error message, when the conversion fails.
1722
+ */
1723
+ errorMessage: string;
1724
+ /**
1725
+ * Time when project writes were frozen.
1726
+ */
1727
+ frozenAt: string;
1728
+ /**
1729
+ * Time when traffic was cut over.
1730
+ */
1731
+ cutoverAt: string;
1732
+ /**
1733
+ * Deadline for rollback after cutover.
1734
+ */
1735
+ rollbackDeadline: string;
1736
+ };
1737
+ /**
1738
+ * Country
1739
+ */
1740
+ export type Country = {
1741
+ /**
1742
+ * Country name.
1743
+ */
1744
+ name: string;
1745
+ /**
1746
+ * Country two-character ISO 3166-1 alpha code.
1747
+ */
1748
+ code: string;
1749
+ };
1750
+ /**
1751
+ * Continent
1752
+ */
1753
+ export type Continent = {
1754
+ /**
1755
+ * Continent name.
1756
+ */
1757
+ name: string;
1758
+ /**
1759
+ * Continent two letter code.
1760
+ */
1761
+ code: string;
1762
+ };
1763
+ /**
1764
+ * Language
1765
+ */
1766
+ export type Language = {
1767
+ /**
1768
+ * Language name.
1769
+ */
1770
+ name: string;
1771
+ /**
1772
+ * Language two-character ISO 639-1 codes.
1773
+ */
1774
+ code: string;
1775
+ /**
1776
+ * Language native name.
1777
+ */
1778
+ nativeName: string;
1779
+ };
1780
+ /**
1781
+ * Currency
1782
+ */
1783
+ export type Currency = {
1784
+ /**
1785
+ * Currency symbol.
1786
+ */
1787
+ symbol: string;
1788
+ /**
1789
+ * Currency name.
1790
+ */
1791
+ name: string;
1792
+ /**
1793
+ * Currency native symbol.
1794
+ */
1795
+ symbolNative: string;
1796
+ /**
1797
+ * Number of decimal digits.
1798
+ */
1799
+ decimalDigits: number;
1800
+ /**
1801
+ * Currency digit rounding.
1802
+ */
1803
+ rounding: number;
1804
+ /**
1805
+ * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format.
1806
+ */
1807
+ code: string;
1808
+ /**
1809
+ * Currency plural name
1810
+ */
1811
+ namePlural: string;
1812
+ };
1813
+ /**
1814
+ * Phone
1815
+ */
1816
+ export type Phone = {
1817
+ /**
1818
+ * Phone code.
1819
+ */
1820
+ code: string;
1821
+ /**
1822
+ * Country two-character ISO 3166-1 alpha code.
1823
+ */
1824
+ countryCode: string;
1825
+ /**
1826
+ * Country name.
1827
+ */
1828
+ countryName: string;
1829
+ };
1830
+ /**
1831
+ * Metric
1832
+ */
1833
+ export type Metric = {
1834
+ /**
1835
+ * The value of this metric at the timestamp.
1836
+ */
1837
+ value: number;
1838
+ /**
1839
+ * The date at which this metric was aggregated in ISO 8601 format.
1840
+ */
1841
+ date: string;
1842
+ };
1843
+ /**
1844
+ * Headers
1845
+ */
1846
+ export type Headers = {
1847
+ /**
1848
+ * Header name.
1849
+ */
1850
+ name: string;
1851
+ /**
1852
+ * Header value.
1853
+ */
1854
+ value: string;
1855
+ };
1856
+ /**
1857
+ * MFA Challenge
1858
+ */
1859
+ export type MfaChallenge = {
1860
+ /**
1861
+ * Token ID.
1862
+ */
1863
+ $id: string;
1864
+ /**
1865
+ * Token creation date in ISO 8601 format.
1866
+ */
1867
+ $createdAt: string;
1868
+ /**
1869
+ * User ID.
1870
+ */
1871
+ userId: string;
1872
+ /**
1873
+ * Token expiration date in ISO 8601 format.
1874
+ */
1875
+ expire: string;
1876
+ };
1877
+ /**
1878
+ * MFA Recovery Codes
1879
+ */
1880
+ export type MfaRecoveryCodes = {
1881
+ /**
1882
+ * Recovery codes.
1883
+ */
1884
+ recoveryCodes: string[];
1885
+ };
1886
+ /**
1887
+ * MFAType
1888
+ */
1889
+ export type MfaType = {
1890
+ /**
1891
+ * Secret token used for TOTP factor.
1892
+ */
1893
+ secret: string;
1894
+ /**
1895
+ * URI for authenticator apps.
1896
+ */
1897
+ uri: string;
1898
+ };
1899
+ /**
1900
+ * MFAFactors
1901
+ */
1902
+ export type MfaFactors = {
1903
+ /**
1904
+ * Can TOTP be used for MFA challenge for this account.
1905
+ */
1906
+ totp: boolean;
1907
+ /**
1908
+ * Can phone (SMS) be used for MFA challenge for this account.
1909
+ */
1910
+ phone: boolean;
1911
+ /**
1912
+ * Can email be used for MFA challenge for this account.
1913
+ */
1914
+ email: boolean;
1915
+ /**
1916
+ * Can recovery code be used for MFA challenge for this account.
1917
+ */
1918
+ recoveryCode: boolean;
1919
+ };
1920
+ /**
1921
+ * Transaction
1922
+ */
1923
+ export type Transaction = {
1924
+ /**
1925
+ * Transaction ID.
1926
+ */
1927
+ $id: string;
1928
+ /**
1929
+ * Transaction creation time in ISO 8601 format.
1930
+ */
1931
+ $createdAt: string;
1932
+ /**
1933
+ * Transaction update date in ISO 8601 format.
1934
+ */
1935
+ $updatedAt: string;
1936
+ /**
1937
+ * Current status of the transaction. One of: pending, committing, committed, rolled_back, failed.
1938
+ */
1939
+ status: string;
1940
+ /**
1941
+ * Number of operations in the transaction.
1942
+ */
1943
+ operations: number;
1944
+ /**
1945
+ * Expiration time in ISO 8601 format.
1946
+ */
1947
+ expiresAt: string;
1948
+ };
1949
+ /**
1950
+ * Subscriber
1951
+ */
1952
+ export type Subscriber = {
1953
+ /**
1954
+ * Subscriber ID.
1955
+ */
1956
+ $id: string;
1957
+ /**
1958
+ * Subscriber creation time in ISO 8601 format.
1959
+ */
1960
+ $createdAt: string;
1961
+ /**
1962
+ * Subscriber update date in ISO 8601 format.
1963
+ */
1964
+ $updatedAt: string;
1965
+ /**
1966
+ * Target ID.
1967
+ */
1968
+ targetId: string;
1969
+ /**
1970
+ * Target.
1971
+ */
1972
+ target: Target;
1973
+ /**
1974
+ * Topic ID.
1975
+ */
1976
+ userId: string;
1977
+ /**
1978
+ * User Name.
1979
+ */
1980
+ userName: string;
1981
+ /**
1982
+ * Topic ID.
1983
+ */
1984
+ topicId: string;
1985
+ /**
1986
+ * The target provider type. Can be one of the following: `email`, `sms` or `push`.
1987
+ */
1988
+ providerType: string;
1989
+ };
1990
+ /**
1991
+ * Target
1992
+ */
1993
+ export type Target = {
1994
+ /**
1995
+ * Target ID.
1996
+ */
1997
+ $id: string;
1998
+ /**
1999
+ * Target creation time in ISO 8601 format.
2000
+ */
2001
+ $createdAt: string;
2002
+ /**
2003
+ * Target update date in ISO 8601 format.
2004
+ */
2005
+ $updatedAt: string;
2006
+ /**
2007
+ * Target Name.
2008
+ */
2009
+ name: string;
2010
+ /**
2011
+ * User ID.
2012
+ */
2013
+ userId: string;
2014
+ /**
2015
+ * Provider ID.
2016
+ */
2017
+ providerId?: string;
2018
+ /**
2019
+ * The target provider type. Can be one of the following: `email`, `sms` or `push`.
2020
+ */
2021
+ providerType: string;
2022
+ /**
2023
+ * The target identifier.
2024
+ */
2025
+ identifier: string;
2026
+ /**
2027
+ * Is the target expired.
2028
+ */
2029
+ expired: boolean;
2030
+ };
2031
+ /**
2032
+ * Memory Bulk Delete Item
2033
+ */
2034
+ export type MemoryBulkDeleteItem = {
2035
+ /**
2036
+ * Memory record ID processed in this pass.
2037
+ */
2038
+ memoryId: string;
2039
+ /**
2040
+ * Per-record deletion outcome.
2041
+ */
2042
+ status: MemoryBulkDeleteItemStatus;
2043
+ /**
2044
+ * Machine-readable error code when deletion failed.
2045
+ */
2046
+ errorCode?: string;
2047
+ /**
2048
+ * Whether the failed record can be retried.
2049
+ */
2050
+ retryable?: boolean;
2051
+ /**
2052
+ * Human-readable failure detail.
2053
+ */
2054
+ error?: string;
2055
+ };
2056
+ /**
2057
+ * Memory Bulk Delete Response
2058
+ */
2059
+ export type MemoryBulkDeleteResponse = {
2060
+ /**
2061
+ * Aggregate deletion outcome for this pass.
2062
+ */
2063
+ status: MemoryBulkDeleteResponseStatus;
2064
+ /**
2065
+ * Number of memory records processed in this pass.
2066
+ */
2067
+ processed: number;
2068
+ /**
2069
+ * Number of memory records successfully forgotten in this pass.
2070
+ */
2071
+ forgotten: number;
2072
+ /**
2073
+ * Number of memory records that failed deletion in this pass.
2074
+ */
2075
+ failed: number;
2076
+ /**
2077
+ * Whether another deleteMany request is required to finish deleting the selected scope.
2078
+ */
2079
+ hasMore: boolean;
2080
+ /**
2081
+ * Per-record results for this pass.
2082
+ */
2083
+ items: MemoryBulkDeleteItem[];
2084
+ };
2085
+ /**
2086
+ * LLMGatewayModel
2087
+ */
2088
+ export type LlmGatewayModel = {
2089
+ /**
2090
+ * Model ID.
2091
+ */
2092
+ $id: string;
2093
+ /**
2094
+ * Object type (always "model").
2095
+ */
2096
+ object: string;
2097
+ /**
2098
+ * Unix timestamp of when the upstream was created.
2099
+ */
2100
+ created: number;
2101
+ /**
2102
+ * Provider that owns this model.
2103
+ */
2104
+ ownedBy: string;
2105
+ /**
2106
+ * Supported capabilities: chat, embedding, rerank, vlm.
2107
+ */
2108
+ capabilities: string[];
2109
+ /**
2110
+ * Whether this model is currently active.
2111
+ */
2112
+ active: boolean;
2113
+ /**
2114
+ * Model source: project, platformTrial, or mixed.
2115
+ */
2116
+ source?: string;
2117
+ /**
2118
+ * Safe projections of the available model sources.
2119
+ */
2120
+ sources?: object;
2121
+ /**
2122
+ * Current account-model trial quota when a platform trial source is available.
2123
+ */
2124
+ trialQuota?: object;
2125
+ };
2126
+ /**
2127
+ * LLM Gateway Model list
2128
+ */
2129
+ export type LlmGatewayModelList = {
2130
+ /**
2131
+ * Total number of models that matched your query.
2132
+ */
2133
+ total: number;
2134
+ /**
2135
+ * List of models.
2136
+ */
2137
+ models: LlmGatewayModel[];
2138
+ };
2139
+ /**
2140
+ * LLMGatewayEmbeddingResponse
2141
+ */
2142
+ export type LlmGatewayEmbeddingResponse = {
2143
+ /**
2144
+ * Object type (always "list").
2145
+ */
2146
+ object: string;
2147
+ /**
2148
+ * Model used to generate embeddings.
2149
+ */
2150
+ model: string;
2151
+ /**
2152
+ * List of embedding objects.
2153
+ */
2154
+ data: object;
2155
+ /**
2156
+ * Token usage information.
2157
+ */
2158
+ usage: object;
2159
+ };
2160
+ /**
2161
+ * LLMGatewayRerankResponse
2162
+ */
2163
+ export type LlmGatewayRerankResponse = {
2164
+ /**
2165
+ * Model used for reranking.
2166
+ */
2167
+ model: string;
2168
+ /**
2169
+ * Reranked results with relevance scores.
2170
+ */
2171
+ results: object;
2172
+ /**
2173
+ * Token usage information.
2174
+ */
2175
+ usage: object;
2176
+ };
2177
+ /**
2178
+ * KnowledgeBaseDocument
2179
+ */
2180
+ export type KnowledgeBaseDocument = {
2181
+ /**
2182
+ * Document ID.
2183
+ */
2184
+ $id: string;
2185
+ /**
2186
+ * Document creation date (ISO 8601).
2187
+ */
2188
+ $createdAt: string;
2189
+ /**
2190
+ * Document update date (ISO 8601).
2191
+ */
2192
+ $updatedAt: string;
2193
+ /**
2194
+ * Knowledge base ID this document belongs to.
2195
+ */
2196
+ kbId: string;
2197
+ /**
2198
+ * Document name.
2199
+ */
2200
+ name: string;
2201
+ /**
2202
+ * Storage bucket ID holding the uploaded file.
2203
+ */
2204
+ bucketId: string;
2205
+ /**
2206
+ * Storage file ID of the uploaded file.
2207
+ */
2208
+ fileId: string;
2209
+ /**
2210
+ * MIME type of the uploaded file.
2211
+ */
2212
+ mimeType: string;
2213
+ /**
2214
+ * Document source. `manual` for direct upload, or `datasource:{id}` for synced items.
2215
+ */
2216
+ source: string;
2217
+ /**
2218
+ * External system item ID for datasource sync deduplication.
2219
+ */
2220
+ externalItemId: string;
2221
+ /**
2222
+ * Optional document-level chunking strategy override.
2223
+ */
2224
+ parserId: string;
2225
+ /**
2226
+ * Optional document-level parser/chunker configuration override.
2227
+ */
2228
+ parserConfig: object;
2229
+ /**
2230
+ * Optional business metadata.
2231
+ */
2232
+ metadata: object;
2233
+ /**
2234
+ * Document processing status: `uploaded`, `processing`, `ready`, or `failed`.
2235
+ */
2236
+ status: string;
2237
+ /**
2238
+ * Whether the document is enabled and eligible for search retrieval. Disabled documents are excluded from knowledge base search results.
2239
+ */
2240
+ enabled: boolean;
2241
+ /**
2242
+ * Mirrored stage from the active ingestion task.
2243
+ */
2244
+ stage: string;
2245
+ /**
2246
+ * Current or most recent ingestion ID.
2247
+ */
2248
+ activeIngestionId: string;
2249
+ /**
2250
+ * Search-visible generation. Only valid when status is ready.
2251
+ */
2252
+ activeGeneration: string;
2253
+ /**
2254
+ * Timestamp when processing was last triggered.
2255
+ */
2256
+ processingStartedAt: string;
2257
+ /**
2258
+ * Total number of chunks expected, once known.
2259
+ */
2260
+ chunksTotal: number;
2261
+ /**
2262
+ * Number of chunks in the active generation.
2263
+ */
2264
+ chunkCount: number;
2265
+ /**
2266
+ * Last processing error message, if any.
2267
+ */
2268
+ error: string;
2269
+ /**
2270
+ * Deprecated. Legacy Function execution ID.
2271
+ */
2272
+ lastExecutionId: string;
2273
+ };
2274
+ /**
2275
+ * KnowledgeBaseDataSourceDocumentImportResult
2276
+ */
2277
+ export type KnowledgeBaseDataSourceDocumentImportResult = {
2278
+ /**
2279
+ * Requested Yuque document URL.
2280
+ */
2281
+ url: string;
2282
+ /**
2283
+ * Per-URL import outcome: accepted, unchanged, or failed.
2284
+ */
2285
+ status: KnowledgeBaseDataSourceDocumentImportResultStatus;
2286
+ /**
2287
+ * Imported knowledge base document when status is accepted or unchanged.
2288
+ */
2289
+ document?: KnowledgeBaseDocument;
2290
+ /**
2291
+ * Human-readable failure detail when status is failed.
2292
+ */
2293
+ error?: string;
2294
+ /**
2295
+ * Machine-readable AppBase exception type when status is failed.
2296
+ */
2297
+ errorType?: string;
2298
+ };
2299
+ /**
2300
+ * KnowledgeBaseDataSourceDocumentImportBatch
2301
+ */
2302
+ export type KnowledgeBaseDataSourceDocumentImportBatch = {
2303
+ /**
2304
+ * Number of URLs processed.
2305
+ */
2306
+ total: number;
2307
+ /**
2308
+ * URLs that created or updated a document and queued ingestion.
2309
+ */
2310
+ accepted: number;
2311
+ /**
2312
+ * URLs whose remote content was already processing or ready.
2313
+ */
2314
+ unchanged: number;
2315
+ /**
2316
+ * URLs that failed validation or import.
2317
+ */
2318
+ failed: number;
2319
+ /**
2320
+ * Per-URL import results in request order.
2321
+ */
2322
+ results: KnowledgeBaseDataSourceDocumentImportResult[];
2323
+ };
2324
+ /**
2325
+ * A staged database transaction operation.
2326
+ */
2327
+ export type DatabaseTransactionOperation = {
2328
+ /**
2329
+ * Database ID.
2330
+ */
2331
+ databaseId: string;
2332
+ /**
2333
+ * Collection ID.
2334
+ */
2335
+ collectionId: string;
2336
+ /**
2337
+ * Operation action.
2338
+ */
2339
+ action: TransactionAction;
2340
+ /**
2341
+ * Document ID.
2342
+ */
2343
+ documentId?: string;
2344
+ /**
2345
+ * Operation-specific JSON object or array.
2346
+ */
2347
+ data?: object;
2348
+ };
2349
+ /**
2350
+ * A staged database transaction operation.
2351
+ */
2352
+ export type TablesDBTransactionOperation = {
2353
+ /**
2354
+ * Database ID.
2355
+ */
2356
+ databaseId: string;
2357
+ /**
2358
+ * Table ID.
2359
+ */
2360
+ tableId: string;
2361
+ /**
2362
+ * Operation action.
2363
+ */
2364
+ action: TransactionAction;
2365
+ /**
2366
+ * Row ID.
2367
+ */
2368
+ rowId?: string;
2369
+ /**
2370
+ * Operation-specific JSON object or array.
2371
+ */
2372
+ data?: object;
2373
+ };
2374
+ /**
2375
+ * A staged database transaction operation.
2376
+ */
2377
+ export type DocumentsDBTransactionOperation = {
2378
+ /**
2379
+ * Database ID.
2380
+ */
2381
+ databaseId: string;
2382
+ /**
2383
+ * Collection ID.
2384
+ */
2385
+ collectionId: string;
2386
+ /**
2387
+ * Operation action.
2388
+ */
2389
+ action: TransactionAction;
2390
+ /**
2391
+ * Document ID.
2392
+ */
2393
+ documentId?: string;
2394
+ /**
2395
+ * Operation-specific JSON object or array.
2396
+ */
2397
+ data?: object;
2398
+ };
2399
+ /**
2400
+ * A role and text content pair used as memory source evidence.
2401
+ */
2402
+ export type MemoryMessage = {
2403
+ /**
2404
+ * Message author role.
2405
+ */
2406
+ role: MemoryMessageRole;
2407
+ /**
2408
+ * Message text content.
2409
+ */
2410
+ content: string;
2411
+ };
2412
+ /**
2413
+ * A bounded memory batch operation.
2414
+ */
2415
+ export type MemoryBatchItem = {
2416
+ /**
2417
+ * Batch operation type.
2418
+ */
2419
+ operation: MemoryBatchOperation;
2420
+ /**
2421
+ * Create-memory request.
2422
+ */
2423
+ create?: object;
2424
+ /**
2425
+ * Delete-memory request.
2426
+ */
2427
+ delete?: object;
2428
+ /**
2429
+ * Search-memory request.
2430
+ */
2431
+ search?: object;
2432
+ };
2433
+ /**
2434
+ * A structured memory record to import.
2435
+ */
2436
+ export type MemoryRecordInput = {
2437
+ /**
2438
+ * Target user ID.
2439
+ */
2440
+ userId: string;
2441
+ /**
2442
+ * Memory visibility scope.
2443
+ */
2444
+ scope: MemoryScope;
2445
+ /**
2446
+ * Memory type.
2447
+ */
2448
+ memoryType: string;
2449
+ /**
2450
+ * Memory record kind.
2451
+ */
2452
+ recordKind: MemoryRecordKind;
2453
+ /**
2454
+ * Memory content.
2455
+ */
2456
+ content?: string;
2457
+ /**
2458
+ * Optional role and content messages.
2459
+ */
2460
+ messages?: object[];
2461
+ /**
2462
+ * Optional agent ID.
2463
+ */
2464
+ agentId?: string;
2465
+ /**
2466
+ * Optional run ID.
2467
+ */
2468
+ runId?: string;
2469
+ /**
2470
+ * Content classification.
2471
+ */
2472
+ sensitivity?: MemoryRecordSensitivity;
2473
+ /**
2474
+ * Processing restriction.
2475
+ */
2476
+ handlingPolicy?: MemoryHandlingPolicy;
2477
+ /**
2478
+ * Arbitrary memory metadata.
2479
+ */
2480
+ metadata?: object;
2481
+ /**
2482
+ * Whether to infer derived memories.
2483
+ */
2484
+ infer?: boolean;
2485
+ /**
2486
+ * Whether to create new evidence for forgotten content.
2487
+ */
2488
+ reRemember?: boolean;
2489
+ };
2490
+ /**
2491
+ * A bounded text message used as distillation evidence.
2492
+ */
2493
+ export type DistillationMessage = {
2494
+ /**
2495
+ * Message author role.
2496
+ */
2497
+ role: DistillationMessageRole;
2498
+ /**
2499
+ * Message text content.
2500
+ */
2501
+ content: string;
2502
+ /**
2503
+ * Optional participant name.
2504
+ */
2505
+ name?: string;
2506
+ };
2507
+ /**
2508
+ * A redacted tool invocation used as distillation evidence.
2509
+ */
2510
+ export type DistillationToolEvent = {
2511
+ /**
2512
+ * Unique event ID.
2513
+ */
2514
+ eventId: string;
2515
+ /**
2516
+ * Tool name.
2517
+ */
2518
+ name: string;
2519
+ /**
2520
+ * Tool execution status.
2521
+ */
2522
+ status: DistillationToolStatus;
2523
+ /**
2524
+ * JSON-compatible tool arguments.
2525
+ */
2526
+ arguments?: object;
2527
+ /**
2528
+ * JSON-compatible tool result.
2529
+ */
2530
+ result?: object;
2531
+ /**
2532
+ * Failure message.
2533
+ */
2534
+ error?: string;
2535
+ };
2536
+ export {};
2537
+ }