@ganju/utils 0.0.14 → 0.0.16

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 (111) hide show
  1. package/dist/channelCustomer.d.ts +99 -0
  2. package/dist/channelCustomer.d.ts.map +1 -0
  3. package/dist/channelCustomer.js +533 -0
  4. package/dist/channelDebounce.d.ts +7 -0
  5. package/dist/channelDebounce.d.ts.map +1 -1
  6. package/dist/chunkOverlap.d.ts +2 -0
  7. package/dist/chunkOverlap.d.ts.map +1 -0
  8. package/dist/chunkOverlap.js +9 -0
  9. package/dist/chunking.d.ts.map +1 -1
  10. package/dist/chunking.js +24 -4
  11. package/dist/citations.d.ts +28 -0
  12. package/dist/citations.d.ts.map +1 -0
  13. package/dist/citations.js +111 -0
  14. package/dist/constants.d.ts +49 -0
  15. package/dist/constants.d.ts.map +1 -1
  16. package/dist/constants.js +202 -17
  17. package/dist/data.d.ts +9 -0
  18. package/dist/data.d.ts.map +1 -0
  19. package/dist/data.js +78 -0
  20. package/dist/dataApi.d.ts +511 -0
  21. package/dist/dataApi.d.ts.map +1 -0
  22. package/dist/dataApi.js +355 -0
  23. package/dist/dataCompiler.d.ts +68 -0
  24. package/dist/dataCompiler.d.ts.map +1 -0
  25. package/dist/dataCompiler.js +726 -0
  26. package/dist/dataDdl.d.ts +29 -0
  27. package/dist/dataDdl.d.ts.map +1 -0
  28. package/dist/dataDdl.js +354 -0
  29. package/dist/dataEngine.d.ts +143 -0
  30. package/dist/dataEngine.d.ts.map +1 -0
  31. package/dist/dataEngine.js +2022 -0
  32. package/dist/dataIdentifiers.d.ts +8 -0
  33. package/dist/dataIdentifiers.d.ts.map +1 -0
  34. package/dist/dataIdentifiers.js +55 -0
  35. package/dist/dataImport.d.ts +77 -0
  36. package/dist/dataImport.d.ts.map +1 -0
  37. package/dist/dataImport.js +450 -0
  38. package/dist/dataRpc.d.ts +131 -0
  39. package/dist/dataRpc.d.ts.map +1 -0
  40. package/dist/dataRpc.js +2 -0
  41. package/dist/dataTypes.d.ts +157 -0
  42. package/dist/dataTypes.d.ts.map +1 -0
  43. package/dist/dataTypes.js +160 -0
  44. package/dist/index.d.ts +570 -36
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +72 -0
  47. package/dist/jsonSchemaToZodShape.d.ts +5 -1
  48. package/dist/jsonSchemaToZodShape.d.ts.map +1 -1
  49. package/dist/jsonSchemaToZodShape.js +21 -9
  50. package/dist/oauth.d.ts +14 -0
  51. package/dist/oauth.d.ts.map +1 -1
  52. package/dist/oauth.js +42 -2
  53. package/dist/pagination.d.ts +47 -0
  54. package/dist/pagination.d.ts.map +1 -0
  55. package/dist/pagination.js +160 -0
  56. package/dist/processQueueBatch.d.ts +6 -1
  57. package/dist/processQueueBatch.d.ts.map +1 -1
  58. package/dist/processQueueBatch.js +23 -10
  59. package/dist/queueFailure.d.ts +14 -0
  60. package/dist/queueFailure.d.ts.map +1 -0
  61. package/dist/queueFailure.js +43 -0
  62. package/dist/resourceRerank.d.ts +3 -2
  63. package/dist/resourceRerank.d.ts.map +1 -1
  64. package/dist/resourceRerank.js +8 -3
  65. package/dist/schema.d.ts +374 -29
  66. package/dist/schema.d.ts.map +1 -1
  67. package/dist/schema.js +290 -6
  68. package/dist/ssrf.d.ts +1 -0
  69. package/dist/ssrf.d.ts.map +1 -1
  70. package/dist/ssrf.js +48 -12
  71. package/dist/toolConfirmation.d.ts +48 -0
  72. package/dist/toolConfirmation.d.ts.map +1 -1
  73. package/dist/toolConfirmation.js +75 -1
  74. package/dist/toolCount.d.ts +13 -0
  75. package/dist/toolCount.d.ts.map +1 -0
  76. package/dist/toolCount.js +45 -0
  77. package/dist/toolLint.d.ts +1 -1
  78. package/dist/toolLint.d.ts.map +1 -1
  79. package/dist/toolLint.js +20 -0
  80. package/dist/untrustedContent.d.ts +135 -0
  81. package/dist/untrustedContent.d.ts.map +1 -0
  82. package/dist/untrustedContent.js +402 -0
  83. package/package.json +17 -1
  84. package/src/channelCustomer.ts +604 -0
  85. package/src/channelDebounce.ts +17 -0
  86. package/src/chunkOverlap.ts +6 -0
  87. package/src/chunking.ts +25 -4
  88. package/src/citations.ts +127 -0
  89. package/src/constants.ts +219 -17
  90. package/src/data.ts +74 -0
  91. package/src/dataApi.ts +428 -0
  92. package/src/dataCompiler.ts +948 -0
  93. package/src/dataDdl.ts +419 -0
  94. package/src/dataEngine.ts +2753 -0
  95. package/src/dataIdentifiers.ts +63 -0
  96. package/src/dataImport.ts +554 -0
  97. package/src/dataRpc.ts +121 -0
  98. package/src/dataTypes.ts +312 -0
  99. package/src/index.ts +156 -2
  100. package/src/jsonSchemaToZodShape.ts +31 -13
  101. package/src/oauth.ts +42 -1
  102. package/src/pagination.ts +193 -0
  103. package/src/processQueueBatch.ts +42 -12
  104. package/src/queueFailure.ts +63 -0
  105. package/src/resourceRerank.ts +10 -3
  106. package/src/schema.ts +346 -4
  107. package/src/ssrf.ts +40 -11
  108. package/src/toolConfirmation.ts +123 -0
  109. package/src/toolCount.ts +53 -0
  110. package/src/toolLint.ts +27 -0
  111. package/src/untrustedContent.ts +476 -0
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import type { DiscordSendRequest, DiscordSendResponse, DiscordSendRemoteResource
10
10
  import type { WhatsappSendRequest, WhatsappSendResponse, WhatsappSendRemoteResourceRequest } from './whatsappSend';
11
11
  import { JsonSchema } from './jsonSchemaToZodShape';
12
12
  import type { SchemaViolation } from './jsonSchemaToZodShape';
13
+ import { InvalidCursorError } from './pagination';
13
14
  import type { CustomCodeTokenPayload } from './customCodeToken';
14
15
  import type { ContainmentTokenPayload } from './containmentToken';
15
16
  import type { OAuthProviderConfig } from './oauthProviders';
@@ -22,14 +23,17 @@ import type { CatalogGroup, CatalogTool, CatalogToolDescriptor, ToolAnnotations,
22
23
  import type { Separator, ChunkMetadata, PreparedChunk } from './chunking';
23
24
  import type { RerankAiBinding } from './resourceRerank';
24
25
  import type { RateLimitRetryOptions } from './retry';
25
- import type { QueueBatchLike, QueueMessageLike, ProcessQueueBatchHandlers } from './processQueueBatch';
26
+ import { PermanentJobError } from './queueFailure';
27
+ import type { QueueBatchLike, QueueFailureContext, QueueMessageLike, ProcessQueueBatchHandlers } from './processQueueBatch';
26
28
  import type { ExtractedDocument, ExtractedDocumentMetadata, ExtractedDocumentSource } from './extractedDocument';
27
29
  import type { ChannelNotifier, ToolStatusEvent } from './channelNotifier';
28
- import type { BufferedChannelMessage, BufferedChannelCommand, ChannelBufferEnvelope, ChannelBufferFlush } from './channelDebounce';
29
- import type { PendingToolConfirmation, PendingToolConfirmations, ToolEffect } from './toolConfirmation';
30
+ import type { BufferedChannelMessage, BufferedChannelCommand, BufferedVoiceNote, ChannelBufferEnvelope, ChannelBufferFlush } from './channelDebounce';
31
+ import type { PendingToolConfirmation, PendingToolConfirmations, ToolEffect, ToolApprovalStatus, ProxiedToolTrust } from './toolConfirmation';
32
+ import type { InstructionWarning, LabelledToolResult } from './untrustedContent';
33
+ import type { ParticipantMemory, ParticipantMemoryUpdate } from './channelCustomer';
30
34
  import type { LintableTool, ToolLintFinding, ToolLintOptions, ToolLintRule } from './toolLint';
31
35
  import type { Source, ResourceUrlContext, SourceButton } from './sources';
32
- import { OAuthReauthRequiredError } from './oauth';
36
+ import { OAuthReauthRequiredError, OAuthRefreshError } from './oauth';
33
37
  import type { RefreshOAuthTokenInput, RefreshedOAuthToken } from './oauth';
34
38
  import { PlanLimitError } from './planLimitError';
35
39
  import type { PlanLimitDetails } from './planLimitError';
@@ -136,6 +140,16 @@ export declare const utils: {
136
140
  INVITATION_GET_BY_TOKEN: import("zod").ZodObject<{
137
141
  token: import("zod").ZodString;
138
142
  }, import("zod/v4/core").$strip>;
143
+ TOOL_APPROVAL_GET: import("zod").ZodObject<{
144
+ approvalId: import("zod").ZodUUID;
145
+ }, import("zod/v4/core").$strip>;
146
+ TOOL_APPROVAL_DECIDE: import("zod").ZodObject<{
147
+ approvalId: import("zod").ZodUUID;
148
+ decision: import("zod").ZodEnum<{
149
+ approve: "approve";
150
+ deny: "deny";
151
+ }>;
152
+ }, import("zod/v4/core").$strip>;
139
153
  ORGANIZATION_MEMBER_LIST: import("zod").ZodObject<{
140
154
  userId: import("zod").ZodUUID;
141
155
  organizationId: import("zod").ZodUUID;
@@ -186,7 +200,6 @@ export declare const utils: {
186
200
  }, import("zod/v4/core").$strip>;
187
201
  ARTIFACT_CREATE_PROMPT_VIEW: import("zod").ZodObject<{
188
202
  description: import("zod").ZodOptional<import("zod").ZodString>;
189
- title: import("zod").ZodString;
190
203
  schema: import("zod").ZodObject<{
191
204
  type: import("zod").ZodEnum<{
192
205
  [x: string]: string;
@@ -201,6 +214,7 @@ export declare const utils: {
201
214
  pattern: import("zod").ZodOptional<import("zod").ZodString>;
202
215
  enum: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny>>;
203
216
  }, import("zod/v4/core").$strip>;
217
+ title: import("zod").ZodString;
204
218
  messages: import("zod").ZodArray<import("zod").ZodObject<{
205
219
  role: import("zod").ZodEnum<{
206
220
  user: "user";
@@ -240,7 +254,6 @@ export declare const utils: {
240
254
  }, import("zod/v4/core").$strip>;
241
255
  ARTIFACT_UPDATE_PROMPT_VIEW: import("zod").ZodObject<{
242
256
  description: import("zod").ZodOptional<import("zod").ZodString>;
243
- title: import("zod").ZodString;
244
257
  schema: import("zod").ZodObject<{
245
258
  type: import("zod").ZodEnum<{
246
259
  [x: string]: string;
@@ -255,6 +268,7 @@ export declare const utils: {
255
268
  pattern: import("zod").ZodOptional<import("zod").ZodString>;
256
269
  enum: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny>>;
257
270
  }, import("zod/v4/core").$strip>;
271
+ title: import("zod").ZodString;
258
272
  messages: import("zod").ZodArray<import("zod").ZodObject<{
259
273
  role: import("zod").ZodEnum<{
260
274
  user: "user";
@@ -360,6 +374,11 @@ export declare const utils: {
360
374
  organizationId: import("zod").ZodUUID;
361
375
  }, import("zod/v4/core").$strip>;
362
376
  ARTIFACT_CREATE_RESOURCE_VIEW: import("zod").ZodObject<{
377
+ type: import("zod").ZodDefault<import("zod").ZodEnum<{
378
+ static: "static";
379
+ template: "template";
380
+ }>>;
381
+ uri: import("zod").ZodString;
363
382
  mimeType: import("zod").ZodEnum<{
364
383
  "text/plain": "text/plain";
365
384
  "text/csv": "text/csv";
@@ -401,19 +420,6 @@ export declare const utils: {
401
420
  "application/octet-stream": "application/octet-stream";
402
421
  }>;
403
422
  fileName: import("zod").ZodOptional<import("zod").ZodString>;
404
- content: import("zod").ZodOptional<import("zod").ZodString>;
405
- type: import("zod").ZodDefault<import("zod").ZodEnum<{
406
- static: "static";
407
- template: "template";
408
- }>>;
409
- description: import("zod").ZodOptional<import("zod").ZodString>;
410
- title: import("zod").ZodString;
411
- uri: import("zod").ZodString;
412
- crawlConfig: import("zod").ZodOptional<import("zod").ZodObject<{
413
- maxPages: import("zod").ZodDefault<import("zod").ZodNumber>;
414
- maxDepth: import("zod").ZodDefault<import("zod").ZodNumber>;
415
- }, import("zod/v4/core").$strip>>;
416
- size: import("zod").ZodOptional<import("zod").ZodNumber>;
417
423
  sourceType: import("zod").ZodDefault<import("zod").ZodEnum<{
418
424
  FILE: "FILE";
419
425
  WEBSITE: "WEBSITE";
@@ -421,6 +427,14 @@ export declare const utils: {
421
427
  ONE_DRIVE_FOLDER: "ONE_DRIVE_FOLDER";
422
428
  CUSTOM_CODE: "CUSTOM_CODE";
423
429
  }>>;
430
+ content: import("zod").ZodOptional<import("zod").ZodString>;
431
+ description: import("zod").ZodOptional<import("zod").ZodString>;
432
+ size: import("zod").ZodOptional<import("zod").ZodNumber>;
433
+ title: import("zod").ZodString;
434
+ crawlConfig: import("zod").ZodOptional<import("zod").ZodObject<{
435
+ maxPages: import("zod").ZodDefault<import("zod").ZodNumber>;
436
+ maxDepth: import("zod").ZodDefault<import("zod").ZodNumber>;
437
+ }, import("zod/v4/core").$strip>>;
424
438
  encoding: import("zod").ZodOptional<import("zod").ZodString>;
425
439
  fileKey: import("zod").ZodOptional<import("zod").ZodString>;
426
440
  annotations: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -621,6 +635,11 @@ export declare const utils: {
621
635
  organizationId: import("zod").ZodUUID;
622
636
  }, import("zod/v4/core").$strip>;
623
637
  ARTIFACT_UPDATE_RESOURCE_VIEW: import("zod").ZodObject<{
638
+ type: import("zod").ZodDefault<import("zod").ZodEnum<{
639
+ static: "static";
640
+ template: "template";
641
+ }>>;
642
+ uri: import("zod").ZodString;
624
643
  mimeType: import("zod").ZodEnum<{
625
644
  "text/plain": "text/plain";
626
645
  "text/csv": "text/csv";
@@ -662,15 +681,6 @@ export declare const utils: {
662
681
  "application/octet-stream": "application/octet-stream";
663
682
  }>;
664
683
  fileName: import("zod").ZodOptional<import("zod").ZodString>;
665
- content: import("zod").ZodOptional<import("zod").ZodString>;
666
- type: import("zod").ZodDefault<import("zod").ZodEnum<{
667
- static: "static";
668
- template: "template";
669
- }>>;
670
- description: import("zod").ZodOptional<import("zod").ZodString>;
671
- title: import("zod").ZodString;
672
- uri: import("zod").ZodString;
673
- size: import("zod").ZodOptional<import("zod").ZodNumber>;
674
684
  sourceType: import("zod").ZodDefault<import("zod").ZodEnum<{
675
685
  FILE: "FILE";
676
686
  WEBSITE: "WEBSITE";
@@ -678,6 +688,10 @@ export declare const utils: {
678
688
  ONE_DRIVE_FOLDER: "ONE_DRIVE_FOLDER";
679
689
  CUSTOM_CODE: "CUSTOM_CODE";
680
690
  }>>;
691
+ content: import("zod").ZodOptional<import("zod").ZodString>;
692
+ description: import("zod").ZodOptional<import("zod").ZodString>;
693
+ size: import("zod").ZodOptional<import("zod").ZodNumber>;
694
+ title: import("zod").ZodString;
681
695
  encoding: import("zod").ZodOptional<import("zod").ZodString>;
682
696
  fileKey: import("zod").ZodOptional<import("zod").ZodString>;
683
697
  annotations: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -709,6 +723,287 @@ export declare const utils: {
709
723
  userId: import("zod").ZodUUID;
710
724
  organizationId: import("zod").ZodUUID;
711
725
  }, import("zod/v4/core").$strip>;
726
+ DATA_DATABASE_GET: import("zod").ZodObject<{
727
+ projectId: import("zod").ZodUUID;
728
+ userId: import("zod").ZodUUID;
729
+ organizationId: import("zod").ZodUUID;
730
+ }, import("zod/v4/core").$strip>;
731
+ DATA_DATABASE_CREATE: import("zod").ZodObject<{
732
+ projectId: import("zod").ZodUUID;
733
+ userId: import("zod").ZodUUID;
734
+ organizationId: import("zod").ZodUUID;
735
+ name: import("zod").ZodOptional<import("zod").ZodString>;
736
+ replaceDeleted: import("zod").ZodOptional<import("zod").ZodBoolean>;
737
+ }, import("zod/v4/core").$strip>;
738
+ DATA_DATABASE_DELETE: import("zod").ZodObject<{
739
+ projectId: import("zod").ZodUUID;
740
+ userId: import("zod").ZodUUID;
741
+ organizationId: import("zod").ZodUUID;
742
+ confirmName: import("zod").ZodString;
743
+ }, import("zod/v4/core").$strip>;
744
+ DATA_COLUMN_INPUT: import("zod").ZodObject<{
745
+ name: import("zod").ZodString;
746
+ type: import("zod").ZodEnum<{
747
+ boolean: "boolean";
748
+ email: "email";
749
+ json: "json";
750
+ text: "text";
751
+ long_text: "long_text";
752
+ integer: "integer";
753
+ decimal: "decimal";
754
+ date: "date";
755
+ datetime: "datetime";
756
+ enum: "enum";
757
+ url: "url";
758
+ phone: "phone";
759
+ relation: "relation";
760
+ file: "file";
761
+ }>;
762
+ label: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
763
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
764
+ required: import("zod").ZodOptional<import("zod").ZodBoolean>;
765
+ unique: import("zod").ZodOptional<import("zod").ZodBoolean>;
766
+ filterable: import("zod").ZodOptional<import("zod").ZodBoolean>;
767
+ searchable: import("zod").ZodOptional<import("zod").ZodBoolean>;
768
+ personal: import("zod").ZodOptional<import("zod").ZodBoolean>;
769
+ values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
770
+ table: import("zod").ZodOptional<import("zod").ZodString>;
771
+ onDelete: import("zod").ZodOptional<import("zod").ZodEnum<{
772
+ restrict: "restrict";
773
+ cascade: "cascade";
774
+ set_null: "set_null";
775
+ }>>;
776
+ min: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
777
+ default: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull]>>;
778
+ }, import("zod/v4/core").$strict>;
779
+ DATA_TABLE_INPUT: import("zod").ZodObject<{
780
+ name: import("zod").ZodString;
781
+ label: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
782
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
783
+ displayColumn: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
784
+ access: import("zod").ZodOptional<import("zod").ZodEnum<{
785
+ none: "none";
786
+ read: "read";
787
+ add: "add";
788
+ full: "full";
789
+ }>>;
790
+ customerScoped: import("zod").ZodOptional<import("zod").ZodBoolean>;
791
+ history: import("zod").ZodOptional<import("zod").ZodBoolean>;
792
+ columns: import("zod").ZodArray<import("zod").ZodObject<{
793
+ name: import("zod").ZodString;
794
+ type: import("zod").ZodEnum<{
795
+ boolean: "boolean";
796
+ email: "email";
797
+ json: "json";
798
+ text: "text";
799
+ long_text: "long_text";
800
+ integer: "integer";
801
+ decimal: "decimal";
802
+ date: "date";
803
+ datetime: "datetime";
804
+ enum: "enum";
805
+ url: "url";
806
+ phone: "phone";
807
+ relation: "relation";
808
+ file: "file";
809
+ }>;
810
+ label: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
811
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
812
+ required: import("zod").ZodOptional<import("zod").ZodBoolean>;
813
+ unique: import("zod").ZodOptional<import("zod").ZodBoolean>;
814
+ filterable: import("zod").ZodOptional<import("zod").ZodBoolean>;
815
+ searchable: import("zod").ZodOptional<import("zod").ZodBoolean>;
816
+ personal: import("zod").ZodOptional<import("zod").ZodBoolean>;
817
+ values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
818
+ table: import("zod").ZodOptional<import("zod").ZodString>;
819
+ onDelete: import("zod").ZodOptional<import("zod").ZodEnum<{
820
+ restrict: "restrict";
821
+ cascade: "cascade";
822
+ set_null: "set_null";
823
+ }>>;
824
+ min: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
825
+ default: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull]>>;
826
+ }, import("zod/v4/core").$strict>>;
827
+ }, import("zod/v4/core").$strict>;
828
+ DATA_TABLE_PATCH: import("zod").ZodObject<{
829
+ name: import("zod").ZodOptional<import("zod").ZodString>;
830
+ label: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
831
+ description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
832
+ displayColumn: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
833
+ access: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodEnum<{
834
+ none: "none";
835
+ read: "read";
836
+ add: "add";
837
+ full: "full";
838
+ }>>>;
839
+ customerScoped: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
840
+ history: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
841
+ }, import("zod/v4/core").$strict>;
842
+ DATA_COLUMN_PATCH: import("zod").ZodObject<{
843
+ name: import("zod").ZodOptional<import("zod").ZodString>;
844
+ type: import("zod").ZodOptional<import("zod").ZodEnum<{
845
+ boolean: "boolean";
846
+ email: "email";
847
+ json: "json";
848
+ text: "text";
849
+ long_text: "long_text";
850
+ integer: "integer";
851
+ decimal: "decimal";
852
+ date: "date";
853
+ datetime: "datetime";
854
+ enum: "enum";
855
+ url: "url";
856
+ phone: "phone";
857
+ relation: "relation";
858
+ file: "file";
859
+ }>>;
860
+ label: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
861
+ description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
862
+ required: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
863
+ unique: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
864
+ filterable: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
865
+ searchable: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
866
+ personal: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
867
+ values: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>>;
868
+ table: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
869
+ onDelete: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodEnum<{
870
+ restrict: "restrict";
871
+ cascade: "cascade";
872
+ set_null: "set_null";
873
+ }>>>;
874
+ min: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>>;
875
+ default: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull]>>>;
876
+ }, import("zod/v4/core").$strict>;
877
+ DATA_TABLE_DROP_BODY: import("zod").ZodObject<{
878
+ confirmName: import("zod").ZodString;
879
+ }, import("zod/v4/core").$strict>;
880
+ DATA_ROW_LIST_QUERY: import("zod").ZodObject<{
881
+ where: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<unknown, string>>>;
882
+ sort: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string[], string>>>;
883
+ include: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string[], string>>>;
884
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
885
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
886
+ q: import("zod").ZodOptional<import("zod").ZodString>;
887
+ timeZone: import("zod").ZodOptional<import("zod").ZodString>;
888
+ }, import("zod/v4/core").$strict>;
889
+ DATA_ROW_GET_QUERY: import("zod").ZodObject<{
890
+ timeZone: import("zod").ZodOptional<import("zod").ZodString>;
891
+ include: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string[], string>>>;
892
+ }, import("zod/v4/core").$strict>;
893
+ DATA_ROW_CREATE_BODY: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
894
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
895
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
896
+ rows: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
897
+ }, import("zod/v4/core").$strict>]>;
898
+ DATA_ROW_UPDATE_BODY: import("zod").ZodObject<{
899
+ set: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
900
+ version: import("zod").ZodOptional<import("zod").ZodNumber>;
901
+ }, import("zod/v4/core").$strict>;
902
+ DATA_ROW_DELETE_BODY: import("zod").ZodObject<{
903
+ version: import("zod").ZodOptional<import("zod").ZodNumber>;
904
+ }, import("zod/v4/core").$strict>;
905
+ DATA_DELETE_PREVIEW_BODY: import("zod").ZodObject<{
906
+ ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
907
+ }, import("zod/v4/core").$strict>;
908
+ DATA_WRITE_OPERATION: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
909
+ op: import("zod").ZodLiteral<"insert">;
910
+ table: import("zod").ZodString;
911
+ values: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
912
+ rows: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
913
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
914
+ set: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
915
+ table: import("zod").ZodString;
916
+ id: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodObject<{
917
+ $ref: import("zod").ZodNumber;
918
+ }, import("zod/v4/core").$strict>]>>;
919
+ where: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
920
+ expect: import("zod").ZodOptional<import("zod").ZodNumber>;
921
+ version: import("zod").ZodOptional<import("zod").ZodNumber>;
922
+ op: import("zod").ZodLiteral<"update">;
923
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
924
+ table: import("zod").ZodString;
925
+ id: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodObject<{
926
+ $ref: import("zod").ZodNumber;
927
+ }, import("zod/v4/core").$strict>]>>;
928
+ where: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
929
+ expect: import("zod").ZodOptional<import("zod").ZodNumber>;
930
+ version: import("zod").ZodOptional<import("zod").ZodNumber>;
931
+ op: import("zod").ZodLiteral<"delete">;
932
+ }, import("zod/v4/core").$strict>], "op">;
933
+ DATA_WRITE_BODY: import("zod").ZodObject<{
934
+ operations: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
935
+ op: import("zod").ZodLiteral<"insert">;
936
+ table: import("zod").ZodString;
937
+ values: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
938
+ rows: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
939
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
940
+ set: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
941
+ table: import("zod").ZodString;
942
+ id: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodObject<{
943
+ $ref: import("zod").ZodNumber;
944
+ }, import("zod/v4/core").$strict>]>>;
945
+ where: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
946
+ expect: import("zod").ZodOptional<import("zod").ZodNumber>;
947
+ version: import("zod").ZodOptional<import("zod").ZodNumber>;
948
+ op: import("zod").ZodLiteral<"update">;
949
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
950
+ table: import("zod").ZodString;
951
+ id: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodObject<{
952
+ $ref: import("zod").ZodNumber;
953
+ }, import("zod/v4/core").$strict>]>>;
954
+ where: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
955
+ expect: import("zod").ZodOptional<import("zod").ZodNumber>;
956
+ version: import("zod").ZodOptional<import("zod").ZodNumber>;
957
+ op: import("zod").ZodLiteral<"delete">;
958
+ }, import("zod/v4/core").$strict>], "op">>;
959
+ }, import("zod/v4/core").$strict>;
960
+ DATA_ROW_HISTORY_QUERY: import("zod").ZodObject<{
961
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
962
+ cursor: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
963
+ timeZone: import("zod").ZodOptional<import("zod").ZodString>;
964
+ }, import("zod/v4/core").$strict>;
965
+ DATA_RESTORE_POINT_BODY: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
966
+ timestamp: import("zod").ZodUnion<readonly [import("zod").ZodISODateTime, import("zod").ZodNumber]>;
967
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
968
+ bookmark: import("zod").ZodString;
969
+ }, import("zod/v4/core").$strict>]>;
970
+ DATA_EXPORT_BODY: import("zod").ZodObject<{
971
+ format: import("zod").ZodOptional<import("zod").ZodEnum<{
972
+ csv: "csv";
973
+ jsonl: "jsonl";
974
+ }>>;
975
+ }, import("zod/v4/core").$strict>;
976
+ DATA_EXPORT_QUERY: import("zod").ZodObject<{
977
+ exportId: import("zod").ZodOptional<import("zod").ZodUUID>;
978
+ }, import("zod/v4/core").$strict>;
979
+ DATA_EXPORT_FILE_QUERY: import("zod").ZodObject<{
980
+ exportId: import("zod").ZodUUID;
981
+ table: import("zod").ZodOptional<import("zod").ZodString>;
982
+ }, import("zod/v4/core").$strict>;
983
+ DATA_CHANGE_LIST_QUERY: import("zod").ZodObject<{
984
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
985
+ cursor: import("zod").ZodOptional<import("zod").ZodUUID>;
986
+ }, import("zod/v4/core").$strict>;
987
+ DATA_TABLE_PARAMS: import("zod").ZodObject<{
988
+ projectId: import("zod").ZodUUID;
989
+ userId: import("zod").ZodUUID;
990
+ organizationId: import("zod").ZodUUID;
991
+ table: import("zod").ZodString;
992
+ }, import("zod/v4/core").$strip>;
993
+ DATA_COLUMN_PARAMS: import("zod").ZodObject<{
994
+ projectId: import("zod").ZodUUID;
995
+ userId: import("zod").ZodUUID;
996
+ organizationId: import("zod").ZodUUID;
997
+ table: import("zod").ZodString;
998
+ column: import("zod").ZodString;
999
+ }, import("zod/v4/core").$strip>;
1000
+ DATA_ROW_PARAMS: import("zod").ZodObject<{
1001
+ projectId: import("zod").ZodUUID;
1002
+ userId: import("zod").ZodUUID;
1003
+ organizationId: import("zod").ZodUUID;
1004
+ table: import("zod").ZodString;
1005
+ id: import("zod").ZodCoercedNumber<unknown>;
1006
+ }, import("zod/v4/core").$strip>;
712
1007
  ARTIFACT_REMOVE_RESOURCE: import("zod").ZodObject<{
713
1008
  resourceId: import("zod").ZodUUID;
714
1009
  projectId: import("zod").ZodUUID;
@@ -899,7 +1194,9 @@ export declare const utils: {
899
1194
  }, import("zod/v4/core").$strip>;
900
1195
  CHANNEL_CONFIG: import("zod").ZodObject<{
901
1196
  debounceMs: import("zod").ZodOptional<import("zod").ZodNumber>;
902
- }, import("zod/v4/core").$loose>;
1197
+ participantDailyLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
1198
+ participantMemory: import("zod").ZodOptional<import("zod").ZodBoolean>;
1199
+ }, import("zod/v4/core").$strict>;
903
1200
  CHANNEL_CREATE: import("zod").ZodObject<{
904
1201
  platform: import("zod").ZodEnum<{
905
1202
  slack: "slack";
@@ -909,7 +1206,9 @@ export declare const utils: {
909
1206
  }>;
910
1207
  config: import("zod").ZodOptional<import("zod").ZodObject<{
911
1208
  debounceMs: import("zod").ZodOptional<import("zod").ZodNumber>;
912
- }, import("zod/v4/core").$loose>>;
1209
+ participantDailyLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
1210
+ participantMemory: import("zod").ZodOptional<import("zod").ZodBoolean>;
1211
+ }, import("zod/v4/core").$strict>>;
913
1212
  credentials: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
914
1213
  llmId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
915
1214
  projectId: import("zod").ZodUUID;
@@ -919,7 +1218,9 @@ export declare const utils: {
919
1218
  CHANNEL_CREATE_VIEW: import("zod").ZodObject<{
920
1219
  config: import("zod").ZodOptional<import("zod").ZodObject<{
921
1220
  debounceMs: import("zod").ZodOptional<import("zod").ZodNumber>;
922
- }, import("zod/v4/core").$loose>>;
1221
+ participantDailyLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
1222
+ participantMemory: import("zod").ZodOptional<import("zod").ZodBoolean>;
1223
+ }, import("zod/v4/core").$strict>>;
923
1224
  llmId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
924
1225
  platform: import("zod").ZodEnum<{
925
1226
  slack: "slack";
@@ -936,7 +1237,14 @@ export declare const utils: {
936
1237
  }>>;
937
1238
  config: import("zod").ZodOptional<import("zod").ZodObject<{
938
1239
  debounceMs: import("zod").ZodOptional<import("zod").ZodNumber>;
939
- }, import("zod/v4/core").$loose>>;
1240
+ participantDailyLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
1241
+ participantMemory: import("zod").ZodOptional<import("zod").ZodBoolean>;
1242
+ }, import("zod/v4/core").$strict>>;
1243
+ configPatch: import("zod").ZodOptional<import("zod").ZodObject<{
1244
+ debounceMs: import("zod").ZodOptional<import("zod").ZodNumber>;
1245
+ participantDailyLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
1246
+ participantMemory: import("zod").ZodOptional<import("zod").ZodBoolean>;
1247
+ }, import("zod/v4/core").$strict>>;
940
1248
  credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
941
1249
  llmId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
942
1250
  projectId: import("zod").ZodUUID;
@@ -949,9 +1257,16 @@ export declare const utils: {
949
1257
  }>>;
950
1258
  config: import("zod").ZodOptional<import("zod").ZodObject<{
951
1259
  debounceMs: import("zod").ZodOptional<import("zod").ZodNumber>;
952
- }, import("zod/v4/core").$loose>>;
1260
+ participantDailyLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
1261
+ participantMemory: import("zod").ZodOptional<import("zod").ZodBoolean>;
1262
+ }, import("zod/v4/core").$strict>>;
953
1263
  llmId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
954
1264
  credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1265
+ configPatch: import("zod").ZodOptional<import("zod").ZodObject<{
1266
+ debounceMs: import("zod").ZodOptional<import("zod").ZodNumber>;
1267
+ participantDailyLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
1268
+ participantMemory: import("zod").ZodOptional<import("zod").ZodBoolean>;
1269
+ }, import("zod/v4/core").$strict>>;
955
1270
  }, import("zod/v4/core").$strip>;
956
1271
  CHANNEL_GET: import("zod").ZodObject<{
957
1272
  projectId: import("zod").ZodUUID;
@@ -1489,6 +1804,8 @@ export declare const utils: {
1489
1804
  kind: import("zod").ZodLiteral<"oauth">;
1490
1805
  credentialId: import("zod").ZodUUID;
1491
1806
  }, import("zod/v4/core").$strip>], "kind">>;
1807
+ trustAnnotations: import("zod").ZodOptional<import("zod").ZodBoolean>;
1808
+ readOnlyTools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1492
1809
  timeoutMs: import("zod").ZodPipe<import("zod").ZodDefault<import("zod").ZodNumber>, import("zod").ZodTransform<number, number>>;
1493
1810
  }, import("zod/v4/core").$strip>;
1494
1811
  CUSTOM_CODE_CONFIG: import("zod").ZodObject<{
@@ -1705,6 +2022,36 @@ export declare const utils: {
1705
2022
  userId: import("zod").ZodUUID;
1706
2023
  organizationId: import("zod").ZodUUID;
1707
2024
  }, import("zod/v4/core").$strip>;
2025
+ PROJECT_TOOL_HEALTH: import("zod").ZodObject<{
2026
+ days: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
2027
+ projectId: import("zod").ZodUUID;
2028
+ userId: import("zod").ZodUUID;
2029
+ organizationId: import("zod").ZodUUID;
2030
+ }, import("zod/v4/core").$strip>;
2031
+ PROJECT_TOOL_CALLS: import("zod").ZodObject<{
2032
+ tool: import("zod").ZodOptional<import("zod").ZodString>;
2033
+ status: import("zod").ZodDefault<import("zod").ZodEnum<{
2034
+ all: "all";
2035
+ error: "error";
2036
+ }>>;
2037
+ limit: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
2038
+ after: import("zod").ZodOptional<import("zod").ZodUUID>;
2039
+ projectId: import("zod").ZodUUID;
2040
+ userId: import("zod").ZodUUID;
2041
+ organizationId: import("zod").ZodUUID;
2042
+ }, import("zod/v4/core").$strip>;
2043
+ PROJECT_TOOL_CALL: import("zod").ZodObject<{
2044
+ requestId: import("zod").ZodUUID;
2045
+ projectId: import("zod").ZodUUID;
2046
+ userId: import("zod").ZodUUID;
2047
+ organizationId: import("zod").ZodUUID;
2048
+ }, import("zod/v4/core").$strip>;
2049
+ PROJECT_MCP_SESSION: import("zod").ZodObject<{
2050
+ sessionId: import("zod").ZodUUID;
2051
+ projectId: import("zod").ZodUUID;
2052
+ userId: import("zod").ZodUUID;
2053
+ organizationId: import("zod").ZodUUID;
2054
+ }, import("zod/v4/core").$strip>;
1708
2055
  CUSTOM_CODE_INVOKE_REQUEST: import("zod").ZodObject<{
1709
2056
  tool: import("zod").ZodString;
1710
2057
  input: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
@@ -1860,6 +2207,20 @@ export declare const utils: {
1860
2207
  PRICING_TOOL_CALL_PER_M_USD: number;
1861
2208
  PRICING_TOOL_CALL_HARD_CAP: number;
1862
2209
  PRICING_CUSTOM_DOMAIN_USD: number;
2210
+ DATA_MAX_DATABASE_BYTES: number;
2211
+ DATA_MAX_TABLES_PER_DATABASE: number;
2212
+ DATA_TRIGGER_RUN_HARD_CAP: number;
2213
+ DATA_DELETE_GRACE_DAYS: number;
2214
+ DATA_PURGE_BATCH: number;
2215
+ DATA_ACTIVITY_THROTTLE_MS: number;
2216
+ ARTIFACT_DATABASE_STATUS_CREATING: "CREATING";
2217
+ ARTIFACT_DATABASE_STATUS_READY: "READY";
2218
+ ARTIFACT_DATABASE_STATUS_FAILED: "FAILED";
2219
+ ARTIFACT_DATABASE_STATUS_DELETING: "DELETING";
2220
+ ARTIFACT_DATABASE_STATUS_PURGING: "PURGING";
2221
+ ARTIFACT_DATABASE_STATUS_DELETED: "DELETED";
2222
+ DATA_PURGE_STALE_MS: number;
2223
+ ARTIFACT_DATABASE_STATUSES: ("FAILED" | "CREATING" | "READY" | "DELETING" | "PURGING" | "DELETED")[];
1863
2224
  PLAN_FEATURE_ORGANIZATION: "organization";
1864
2225
  PLAN_FEATURE_PROJECT: "project";
1865
2226
  PLAN_FEATURE_TOOL: "tool";
@@ -1874,6 +2235,7 @@ export declare const utils: {
1874
2235
  PLAN_FEATURE_MESSAGE: "message";
1875
2236
  PLAN_FEATURE_TOOL_CALL: "toolCall";
1876
2237
  PLAN_FEATURE_RESOURCE_SYNC: "resourceSync";
2238
+ PLAN_FEATURE_DATA: "data";
1877
2239
  PLAN_LIMIT_ERROR_CODE: string;
1878
2240
  BILLING_METER_MESSAGES: string;
1879
2241
  BILLING_METER_SHARED_MESSAGES: string;
@@ -1967,6 +2329,7 @@ export declare const utils: {
1967
2329
  SLACK_OAUTH_TOKEN_URL: string;
1968
2330
  OAUTH_TOKEN_URLS: Record<string, string>;
1969
2331
  CREDENTIAL_REFRESH_BUFFER_MS: number;
2332
+ CREDENTIAL_REFRESH_GIVE_UP_MS: number;
1970
2333
  GOOGLE_CALENDAR_API_BASE: string;
1971
2334
  GOOGLE_DRIVE_API_BASE: string;
1972
2335
  GOOGLE_DRIVE_DEFAULT_PAGE_SIZE: number;
@@ -2008,6 +2371,7 @@ export declare const utils: {
2008
2371
  label: string;
2009
2372
  }[];
2010
2373
  REAUTH_ERROR_CODES: string[];
2374
+ OAUTH_CLIENT_ERROR_CODES: string[];
2011
2375
  RESOURCE_TYPE_TOOLTIP_MIN_WIDTH: number;
2012
2376
  SEARCH_DEBOUNCE_MS: number;
2013
2377
  GOOGLE_DRIVE_EXPORT_MIME_TYPES: Record<string, string>;
@@ -2099,6 +2463,7 @@ export declare const utils: {
2099
2463
  CRAWL_DEFAULT_MAX_DEPTH: number;
2100
2464
  CRAWL_MAX_DEPTH_LIMIT: number;
2101
2465
  CRAWL_PAGE_FETCH_TIMEOUT_MS: number;
2466
+ CRAWL_MAX_REDIRECTS: number;
2102
2467
  CRAWL_PAGE_QUEUE_BATCH_SIZE: number;
2103
2468
  CRAWL_USER_AGENT: string;
2104
2469
  RESOURCE_ICON_THEME_DARK: string;
@@ -2116,6 +2481,7 @@ export declare const utils: {
2116
2481
  TELEGRAM_MAX_FILE_BYTES: number;
2117
2482
  RATE_LIMIT_BACKOFF_SECONDS: number;
2118
2483
  TRANSIENT_BACKOFF_SECONDS: number;
2484
+ QUEUE_MAX_RETRIES: number;
2119
2485
  ENCODINGS: string[];
2120
2486
  ENCODING_UTF8: "utf-8";
2121
2487
  CHANNEL_PLATFORM_TELEGRAM: "telegram";
@@ -2161,6 +2527,16 @@ export declare const utils: {
2161
2527
  MCP_TOOL_CONFIRMATION_TTL_MS: number;
2162
2528
  MCP_TOOL_CONFIRMATION_ARG: string;
2163
2529
  MCP_TOOL_CONFIRMATION_ARG_DESCRIPTION: string;
2530
+ MCP_TOOL_CONFIRMATION_ARG_DESCRIPTION_CONDITIONAL: string;
2531
+ TOOL_APPROVAL_PATH: string;
2532
+ TOOL_APPROVAL_DECISION_APPROVE: string;
2533
+ TOOL_APPROVAL_DECISION_DENY: string;
2534
+ TOOL_APPROVAL_DECISIONS: readonly ["approve", "deny"];
2535
+ TOOL_APPROVAL_STATUS_PENDING: string;
2536
+ TOOL_APPROVAL_STATUS_APPROVED: string;
2537
+ TOOL_APPROVAL_STATUS_DENIED: string;
2538
+ TOOL_APPROVAL_STATUS_USED: string;
2539
+ TOOL_APPROVAL_STATUS_EXPIRED: string;
2164
2540
  CHANNEL_DEBOUNCE_DEFAULT_MS: number;
2165
2541
  CHANNEL_DEBOUNCE_MIN_MS: number;
2166
2542
  CHANNEL_DEBOUNCE_MAX_MS: number;
@@ -2231,8 +2607,12 @@ export declare const utils: {
2231
2607
  RESOURCE_SEARCH_RRF_K: number;
2232
2608
  RESOURCE_SEARCH_COMMON_TERM_DIVISOR: number;
2233
2609
  RESOURCE_SEARCH_COMMON_TERM_MIN: number;
2610
+ RESOURCE_SEARCH_RERANK_ENABLED: boolean;
2234
2611
  RESOURCE_SEARCH_RERANK_CANDIDATES: number;
2235
2612
  RESOURCE_SEARCH_RERANK_MODEL: string;
2613
+ RESOURCE_SEARCH_EXACT_MAX_RESOURCES: number;
2614
+ RESOURCE_SEARCH_EXACT_MAX_CHUNKS: number;
2615
+ RESOURCE_SEARCH_SUBSTRING_MAX_CHUNKS: number;
2236
2616
  RESOURCE_HANDLER_SLEEP_AFTER: string;
2237
2617
  DOCS_URL: string;
2238
2618
  BASE64_DATA_URI_RE: RegExp;
@@ -2243,6 +2623,8 @@ export declare const utils: {
2243
2623
  }[];
2244
2624
  DEFAULT_MAX_TOKENS: number;
2245
2625
  RESOURCE_TOOL_KEY_LIST_RESOURCES: string;
2626
+ LIST_RESOURCES_DEFAULT_LIMIT: number;
2627
+ LIST_RESOURCES_MAX_LIMIT: number;
2246
2628
  RESOURCE_TOOL_KEY_SEARCH_RESOURCES: string;
2247
2629
  RESOURCE_TOOL_KEY_READ_RESOURCE: string;
2248
2630
  RESOURCE_TOOL_KEY_SEND_RESOURCE: string;
@@ -2414,8 +2796,10 @@ export declare const utils: {
2414
2796
  CUSTOM_CODE_RESOURCE_FILE_TOO_LARGE_MESSAGE: string;
2415
2797
  RESERVED_SLUGS: string[];
2416
2798
  MCP_INTERNAL_HEADER: string;
2799
+ MCP_EVAL_RERANK_HEADER: string;
2417
2800
  MCP_CHANNEL_ID_HEADER: string;
2418
2801
  MCP_CHANNEL_PLATFORM_HEADER: string;
2802
+ MCP_CHANNEL_CONVERSATION_HEADER: string;
2419
2803
  MCP_CHANNEL_CLIENT_USER_AGENT: string;
2420
2804
  MCP_SESSION_HEADER: string;
2421
2805
  MCP_REQUEST_METHOD_INITIALIZE: "initialize";
@@ -2453,6 +2837,14 @@ export declare const utils: {
2453
2837
  ACCESS_TOKEN_SCOPE_MESSAGE: string;
2454
2838
  CUSTOM_CODE_LOGS_DEFAULT_LIMIT: number;
2455
2839
  CUSTOM_CODE_LOGS_MAX_LIMIT: number;
2840
+ OBSERVABILITY_RANGE_DAYS: number[];
2841
+ OBSERVABILITY_UNUSED_DAYS: number;
2842
+ OBSERVABILITY_FOLLOW_UP_SECONDS: number;
2843
+ OBSERVABILITY_SCHEMA_REJECTION_PREFIX: string;
2844
+ OBSERVABILITY_TOP_ERRORS: number;
2845
+ OBSERVABILITY_CALLS_DEFAULT_LIMIT: number;
2846
+ OBSERVABILITY_CALLS_MAX_LIMIT: number;
2847
+ OBSERVABILITY_SESSION_MAX_CALLS: number;
2456
2848
  BOT_GRANT_TYPE: string;
2457
2849
  EXTERNAL_LINK_VERIFICATION_PREFIX: string;
2458
2850
  EXTERNAL_LINK_TTL_SECONDS: number;
@@ -2497,6 +2889,36 @@ export declare const utils: {
2497
2889
  jsonSchemaToZodShape: (schema: JsonSchema) => Record<string, import("zod").ZodType>;
2498
2890
  validateAgainstJsonSchema: (schema: JsonSchema, value: unknown) => SchemaViolation[];
2499
2891
  buildProxyToolName: (prefix: string, remoteName: string) => string | null;
2892
+ countInstallTools: (install: {
2893
+ toolKey: string;
2894
+ config: unknown;
2895
+ metadata: unknown;
2896
+ }, customCodeFunctions?: string[]) => number;
2897
+ capText: (text: string, maxBytes: number, next?: string) => string;
2898
+ findNextCursor: (value: unknown) => string | undefined;
2899
+ paginate: <T>(items: T[], keyOf: (item: T) => string, options: {
2900
+ cursor?: string;
2901
+ limit?: number;
2902
+ defaultLimit: number;
2903
+ maxLimit: number;
2904
+ }) => {
2905
+ page: T[];
2906
+ nextCursor?: string;
2907
+ total: number;
2908
+ };
2909
+ InvalidCursorError: typeof InvalidCursorError;
2910
+ listResourcesPage: (resources: Array<{
2911
+ uri: string;
2912
+ title?: string | null;
2913
+ description?: string | null;
2914
+ mimeType?: string | null;
2915
+ }>, args: {
2916
+ cursor?: unknown;
2917
+ limit?: unknown;
2918
+ }, limits: {
2919
+ defaultLimit: number;
2920
+ maxLimit: number;
2921
+ }) => string;
2500
2922
  mintCustomCodeToken: (payload: Omit<CustomCodeTokenPayload, "v" | "iat" | "exp"> & {
2501
2923
  ttlMs?: number;
2502
2924
  }, secret: string, issuedAt?: number) => Promise<string>;
@@ -2527,6 +2949,7 @@ export declare const utils: {
2527
2949
  validateProjectPath: (path: string, taken?: Iterable<string>) => string | null;
2528
2950
  projectPathIssue: (path: string, taken?: Iterable<string>) => ProjectPathIssue | null;
2529
2951
  ipv4InPrivateRange: (host: string) => boolean;
2952
+ isBlockedUrl: (url: string) => boolean;
2530
2953
  isBlockedHost: (hostname: string) => boolean;
2531
2954
  requiresLlmBaseUrl: (provider?: string | null) => boolean;
2532
2955
  isAllowedLlmBaseUrl: (value: string) => boolean;
@@ -3043,11 +3466,13 @@ export declare const utils: {
3043
3466
  }) => PreparedChunk[];
3044
3467
  isEmbeddableMimeType: (mimeType: string) => boolean;
3045
3468
  l2Normalize: (values: number[]) => number[];
3046
- createResourceReranker: (source: EnvSource) => ((query: string, documents: string[]) => Promise<number[] | null>) | undefined;
3469
+ createResourceReranker: (source: EnvSource, enabled?: boolean) => ((query: string, documents: string[]) => Promise<number[] | null>) | undefined;
3047
3470
  sleep: (ms: number) => Promise<void>;
3048
3471
  isRateLimitError: (err: unknown) => boolean;
3049
3472
  withRateLimitRetry: <T>(fn: () => Promise<T>, options?: RateLimitRetryOptions) => Promise<T>;
3050
3473
  processQueueBatch: <T>(batch: QueueBatchLike<T>, handlers: ProcessQueueBatchHandlers<T>) => Promise<void>;
3474
+ PermanentJobError: typeof PermanentJobError;
3475
+ isPermanentJobError: (error: unknown) => boolean;
3051
3476
  getToolStatusMessage: (toolName: string) => string | null;
3052
3477
  resolveDebounceMs: (config: unknown) => number;
3053
3478
  channelBufferKey: (channelId: string, externalConversationId: string, externalParticipantId: string) => string;
@@ -3079,9 +3504,113 @@ export declare const utils: {
3079
3504
  readOnlyHint?: boolean;
3080
3505
  destructiveHint?: boolean;
3081
3506
  } | null | undefined) => boolean;
3507
+ proxiedToolAnnotations: <T extends {
3508
+ readOnlyHint?: boolean;
3509
+ destructiveHint?: boolean;
3510
+ }>(annotations: T | null | undefined, trust: ProxiedToolTrust) => Partial<T> | undefined;
3511
+ proxiedToolTrust: (config: {
3512
+ trustAnnotations?: unknown;
3513
+ readOnlyTools?: unknown;
3514
+ } | null | undefined, remoteToolName: string) => ProxiedToolTrust;
3515
+ isSensitiveProxiedTool: (annotations: {
3516
+ readOnlyHint?: boolean;
3517
+ destructiveHint?: boolean;
3518
+ } | null | undefined, trust: ProxiedToolTrust) => boolean;
3519
+ keepProxiedToolMarks: (stored: unknown, incoming: unknown) => unknown;
3520
+ toolApprovalStatus: (approval: {
3521
+ expiresAt: Date;
3522
+ approvedAt: Date | null;
3523
+ deniedAt: Date | null;
3524
+ usedAt: Date | null;
3525
+ }, now?: number) => ToolApprovalStatus;
3526
+ toolApprovalUrl: (webUrl: string, path: string, approvalId: string) => string;
3082
3527
  stableJson: (value: unknown) => string;
3528
+ wrapUntrustedContent: (source: string, text: string) => string;
3529
+ unwrapUntrustedContent: (text: string) => string;
3530
+ isUntrustedToolResult: (result: unknown) => boolean;
3531
+ findInstructionLikeText: (text: string) => string[];
3532
+ UNTRUSTED_CONTENT_TAG: string;
3533
+ UNTRUSTED_CONTENT_META_KEY: string;
3534
+ UNTRUSTED_CONTENT_NOTE: string;
3535
+ INSTRUCTION_WARNING_METADATA_KEY: string;
3536
+ untrustedToolResult: (source: string, text: string, options?: {
3537
+ flag?: boolean;
3538
+ }) => {
3539
+ content: Array<{
3540
+ type: "text";
3541
+ text: string;
3542
+ }>;
3543
+ _meta?: Record<string, unknown>;
3544
+ };
3545
+ ownWritingToolResult: (source: string, text: string) => {
3546
+ content: Array<{
3547
+ type: "text";
3548
+ text: string;
3549
+ }>;
3550
+ _meta?: Record<string, unknown>;
3551
+ };
3552
+ labelOwnToolResult: <T extends LabelledToolResult>(result: T, source: string) => T;
3553
+ labelProxiedToolResult: (raw: {
3554
+ content?: unknown;
3555
+ structuredContent?: unknown;
3556
+ isError?: boolean;
3557
+ }, source: string, maxBytes: number) => LabelledToolResult;
3558
+ untrustedErrorResult: (message: string, source: string, detail: string, options?: {
3559
+ flag?: boolean;
3560
+ }) => {
3561
+ content: Array<{
3562
+ type: "text";
3563
+ text: string;
3564
+ }>;
3565
+ isError: true;
3566
+ _meta?: Record<string, unknown>;
3567
+ };
3568
+ readsLikeInstructions: (text: string) => boolean;
3569
+ labelResourceContents: <T extends {
3570
+ [key: string]: unknown;
3571
+ uri: string;
3572
+ text?: string;
3573
+ }>(contents: T[]) => {
3574
+ contents: T[];
3575
+ instructionLike: boolean;
3576
+ };
3577
+ PARTICIPANT_DAILY_LIMIT_DEFAULT: number;
3578
+ PARTICIPANT_DAILY_LIMIT_MAX: number;
3579
+ PARTICIPANT_DAILY_LIMIT_OFF: number;
3580
+ PARTICIPANT_DAILY_LIMIT_WINDOW_MS: number;
3581
+ PARTICIPANT_LIMIT_METADATA_KEY: string;
3582
+ resolveParticipantDailyLimit: (config: unknown) => number | null;
3583
+ resolveParticipantMemoryEnabled: (config: unknown) => boolean;
3584
+ VOICE_NOTE_MAX_BYTES: number;
3585
+ VOICE_NOTE_MAX_SECONDS: number;
3586
+ audioDurationSeconds: (bytes: Uint8Array) => number | null;
3587
+ oggDurationSeconds: (bytes: Uint8Array) => number | null;
3588
+ VOICE_NOTE_TRANSCRIPTION_PROMPT: string;
3589
+ VOICE_NOTE_METADATA_KEY: string;
3590
+ VOICE_NOTE_UNREADABLE_METADATA_KEY: string;
3591
+ PARTICIPANT_MEMORY_TOOL_NAME: string;
3592
+ PARTICIPANT_MEMORY_MAX_FACTS: number;
3593
+ PARTICIPANT_MEMORY_TOOL_DESCRIPTION: string;
3594
+ PARTICIPANT_MEMORY_TOOL_SCHEMA: Record<string, unknown>;
3595
+ PARTICIPANT_MEMORY_GROUP_NOTE: string;
3596
+ readParticipantMemory: (value: unknown) => ParticipantMemory;
3597
+ applyParticipantMemoryUpdate: (current: ParticipantMemory, args: unknown, now?: Date) => {
3598
+ memory: ParticipantMemory;
3599
+ changed: boolean;
3600
+ result: string;
3601
+ };
3602
+ redactParticipantMemoryArgs: (args: unknown) => Record<string, unknown>;
3603
+ redactParticipantMemoryConfirmation: (record: unknown) => Record<string, unknown> | null;
3604
+ participantMemoryUpdateReadsLikeInstructions: (args: unknown) => boolean;
3605
+ CONVERSATION_UNTRUSTED_WINDOW_MS: number;
3606
+ CONVERSATION_UNTRUSTED_READ_AT_KEY: string;
3607
+ conversationReadUntrustedRecently: (metadata: unknown, now?: Date) => boolean;
3608
+ formatParticipantMemoryPrompt: (memory: ParticipantMemory) => string;
3609
+ participantLimitNotice: (locale?: string | null) => string;
3610
+ voiceNoteUnreadableNotice: (locale?: string | null) => string;
3611
+ voiceNoteTooLongNotice: (locale?: string | null) => string;
3083
3612
  lintTools: (tools: LintableTool[], options?: ToolLintOptions) => ToolLintFinding[];
3084
- TOOL_LINT_RULES: readonly ["missing-description", "short-description", "no-usage-guidance", "missing-annotations", "undescribed-input", "overlapping-tools", "too-many-tools"];
3613
+ TOOL_LINT_RULES: readonly ["missing-description", "short-description", "no-usage-guidance", "missing-annotations", "undescribed-input", "reserved-input", "overlapping-tools", "too-many-tools"];
3085
3614
  TOOL_LINT_MAX_TOOLS: number;
3086
3615
  TOOL_LINT_MIN_DESCRIPTION_LENGTH: number;
3087
3616
  isResourceSourceEnabled: (resource: {
@@ -3094,8 +3623,13 @@ export declare const utils: {
3094
3623
  formatSourcesAsButtons: (sources: Source[], ctx: ResourceUrlContext, options?: {
3095
3624
  maxLabelLength?: number;
3096
3625
  }) => SourceButton[];
3626
+ citesUrl: (answer: string, url: string) => boolean;
3627
+ citedPages: (answer: string) => Set<number>;
3628
+ selectCitedSources: (sources: Source[], answerText: string) => Source[];
3097
3629
  refreshOAuthToken: (input: RefreshOAuthTokenInput) => Promise<RefreshedOAuthToken>;
3098
3630
  OAuthReauthRequiredError: typeof OAuthReauthRequiredError;
3631
+ OAuthRefreshError: typeof OAuthRefreshError;
3632
+ refreshFailureReauthReason: (err: unknown, expiresAt: Date | null, now?: number) => string | null;
3099
3633
  buildReauthMetadata: (previous: Record<string, unknown> | null, reason: string) => Record<string, unknown>;
3100
3634
  clearReauthMetadata: (previous: Record<string, unknown> | null) => Record<string, unknown> | null;
3101
3635
  isCredentialNeedingReauth: (metadata: unknown) => boolean;
@@ -3108,5 +3642,5 @@ export declare const utils: {
3108
3642
  PlanLimitError: typeof PlanLimitError;
3109
3643
  isPlanLimitError: (error: unknown) => error is PlanLimitError;
3110
3644
  };
3111
- export type { MintedAccessToken, CustomCodeProject, ProjectPathIssue, CatalogGroup, CatalogTool, CatalogToolDescriptor, ToolAnnotations, PendingToolConfirmation, PendingToolConfirmations, ToolEffect, LintableTool, ToolLintFinding, ToolLintOptions, ToolLintRule, ToolGroupKey, ToolKey, CalendarConfigField, JsonSchema, SchemaViolation, MimeAttachment, MimeMessageInput, GmailOperation, GmailSendRequest, GmailSendResponse, OutlookOperation, OutlookSendRequest, OutlookSendResponse, SlackOperation, SlackSendRequest, SlackSendResponse, SlackSendRemoteResourceRequest, TelegramSendRequest, TelegramSendResponse, TelegramSendRemoteResourceRequest, DiscordSendRequest, DiscordSendResponse, DiscordSendRemoteResourceRequest, WhatsappSendRequest, WhatsappSendResponse, WhatsappSendRemoteResourceRequest, EnvSource, Separator, ChunkMetadata, PreparedChunk, ExtractedDocument, ExtractedDocumentMetadata, ExtractedDocumentSource, RateLimitRetryOptions, RerankAiBinding, QueueBatchLike, QueueMessageLike, ProcessQueueBatchHandlers, ChannelNotifier, ToolStatusEvent, BufferedChannelMessage, BufferedChannelCommand, ChannelBufferEnvelope, ChannelBufferFlush, Source, ResourceUrlContext, SourceButton, RefreshOAuthTokenInput, RefreshedOAuthToken, HttpEndpointToolConfig, McpProxyToolConfig, McpProxyDiscoveredTool, McpProxyDiscoveredResource, McpProxyDiscoveredPrompt, McpProxyDiscovery, CustomCodeToolConfig, CustomCodeToolManifest, CustomCodeManifest, CustomCodeSendFile, CustomCodeCreateResource, CustomCodeTokenPayload, ContainmentTokenPayload, OAuthProviderConfig, AttachmentResource, ResolvedAttachment, ResolveAttachmentResult, ExposableResource, SyncableResource, ResourceSyncProvider, PlanLimitDetails, PlanLimits };
3645
+ export type { ParticipantMemory, ParticipantMemoryUpdate, InstructionWarning, LabelledToolResult, MintedAccessToken, CustomCodeProject, ProjectPathIssue, CatalogGroup, CatalogTool, CatalogToolDescriptor, ToolAnnotations, PendingToolConfirmation, PendingToolConfirmations, ToolEffect, ToolApprovalStatus, ProxiedToolTrust, LintableTool, ToolLintFinding, ToolLintOptions, ToolLintRule, ToolGroupKey, ToolKey, CalendarConfigField, JsonSchema, SchemaViolation, MimeAttachment, MimeMessageInput, GmailOperation, GmailSendRequest, GmailSendResponse, OutlookOperation, OutlookSendRequest, OutlookSendResponse, SlackOperation, SlackSendRequest, SlackSendResponse, SlackSendRemoteResourceRequest, TelegramSendRequest, TelegramSendResponse, TelegramSendRemoteResourceRequest, DiscordSendRequest, DiscordSendResponse, DiscordSendRemoteResourceRequest, WhatsappSendRequest, WhatsappSendResponse, WhatsappSendRemoteResourceRequest, EnvSource, Separator, ChunkMetadata, PreparedChunk, ExtractedDocument, ExtractedDocumentMetadata, ExtractedDocumentSource, RateLimitRetryOptions, RerankAiBinding, QueueBatchLike, QueueFailureContext, QueueMessageLike, ProcessQueueBatchHandlers, ChannelNotifier, ToolStatusEvent, BufferedChannelMessage, BufferedChannelCommand, BufferedVoiceNote, ChannelBufferEnvelope, ChannelBufferFlush, Source, ResourceUrlContext, SourceButton, RefreshOAuthTokenInput, RefreshedOAuthToken, HttpEndpointToolConfig, McpProxyToolConfig, McpProxyDiscoveredTool, McpProxyDiscoveredResource, McpProxyDiscoveredPrompt, McpProxyDiscovery, CustomCodeToolConfig, CustomCodeToolManifest, CustomCodeManifest, CustomCodeSendFile, CustomCodeCreateResource, CustomCodeTokenPayload, ContainmentTokenPayload, OAuthProviderConfig, AttachmentResource, ResolvedAttachment, ResolveAttachmentResult, ExposableResource, SyncableResource, ResourceSyncProvider, PlanLimitDetails, PlanLimits };
3112
3646
  //# sourceMappingURL=index.d.ts.map