@revealui/contracts 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/a2a/index.d.ts.map +1 -1
  2. package/dist/a2a/index.js.map +1 -1
  3. package/dist/actions/action-validator.d.ts.map +1 -1
  4. package/dist/actions/action-validator.js.map +1 -1
  5. package/dist/actions/index.d.ts.map +1 -1
  6. package/dist/actions/index.js.map +1 -1
  7. package/dist/agents/index.d.ts.map +1 -1
  8. package/dist/agents/index.js.map +1 -1
  9. package/dist/api/auth.d.ts +116 -0
  10. package/dist/api/auth.d.ts.map +1 -1
  11. package/dist/api/auth.js +127 -0
  12. package/dist/api/auth.js.map +1 -1
  13. package/dist/api/chat.d.ts +59 -4
  14. package/dist/api/chat.d.ts.map +1 -1
  15. package/dist/api/chat.js +42 -5
  16. package/dist/api/chat.js.map +1 -1
  17. package/dist/api/gdpr.d.ts.map +1 -1
  18. package/dist/api/gdpr.js.map +1 -1
  19. package/dist/cms/collection.d.ts.map +1 -1
  20. package/dist/cms/collection.js.map +1 -1
  21. package/dist/cms/compat.d.ts.map +1 -1
  22. package/dist/cms/compat.js.map +1 -1
  23. package/dist/cms/config-contract.d.ts.map +1 -1
  24. package/dist/cms/config-contract.js.map +1 -1
  25. package/dist/cms/config.d.ts +2 -0
  26. package/dist/cms/config.d.ts.map +1 -1
  27. package/dist/cms/config.js.map +1 -1
  28. package/dist/cms/errors.d.ts.map +1 -1
  29. package/dist/cms/errors.js.map +1 -1
  30. package/dist/cms/extensibility.d.ts.map +1 -1
  31. package/dist/cms/extensibility.js.map +1 -1
  32. package/dist/cms/field.d.ts.map +1 -1
  33. package/dist/cms/field.js.map +1 -1
  34. package/dist/cms/functions.d.ts +48 -2
  35. package/dist/cms/functions.d.ts.map +1 -1
  36. package/dist/cms/global.d.ts.map +1 -1
  37. package/dist/cms/global.js.map +1 -1
  38. package/dist/cms/index.d.ts +1 -1
  39. package/dist/cms/index.d.ts.map +1 -1
  40. package/dist/cms/index.js.map +1 -1
  41. package/dist/cms/structure.d.ts.map +1 -1
  42. package/dist/cms/structure.js.map +1 -1
  43. package/dist/content/index.d.ts.map +1 -1
  44. package/dist/content/index.js.map +1 -1
  45. package/dist/database/bridge.d.ts +0 -18
  46. package/dist/database/bridge.d.ts.map +1 -1
  47. package/dist/database/bridge.js +0 -22
  48. package/dist/database/bridge.js.map +1 -1
  49. package/dist/database/index.d.ts +2 -2
  50. package/dist/database/index.d.ts.map +1 -1
  51. package/dist/database/index.js +1 -2
  52. package/dist/database/index.js.map +1 -1
  53. package/dist/database/type-bridge.d.ts +0 -10
  54. package/dist/database/type-bridge.d.ts.map +1 -1
  55. package/dist/database/type-bridge.js.map +1 -1
  56. package/dist/entities/agent-context.d.ts.map +1 -1
  57. package/dist/entities/agent-context.js +2 -0
  58. package/dist/entities/agent-context.js.map +1 -1
  59. package/dist/entities/agent-memory.d.ts.map +1 -1
  60. package/dist/entities/agent-memory.js +2 -0
  61. package/dist/entities/agent-memory.js.map +1 -1
  62. package/dist/entities/board.d.ts.map +1 -1
  63. package/dist/entities/board.js.map +1 -1
  64. package/dist/entities/code-provenance.d.ts.map +1 -1
  65. package/dist/entities/code-provenance.js +1 -0
  66. package/dist/entities/code-provenance.js.map +1 -1
  67. package/dist/entities/index.d.ts +11 -4
  68. package/dist/entities/index.d.ts.map +1 -1
  69. package/dist/entities/index.js +11 -4
  70. package/dist/entities/index.js.map +1 -1
  71. package/dist/entities/media.d.ts.map +1 -1
  72. package/dist/entities/media.js +2 -0
  73. package/dist/entities/media.js.map +1 -1
  74. package/dist/entities/page-revision.d.ts.map +1 -1
  75. package/dist/entities/page-revision.js +2 -0
  76. package/dist/entities/page-revision.js.map +1 -1
  77. package/dist/entities/page.d.ts +2 -1
  78. package/dist/entities/page.d.ts.map +1 -1
  79. package/dist/entities/page.js +2 -6
  80. package/dist/entities/page.js.map +1 -1
  81. package/dist/entities/post.d.ts.map +1 -1
  82. package/dist/entities/post.js +2 -0
  83. package/dist/entities/post.js.map +1 -1
  84. package/dist/entities/price.d.ts +35 -15
  85. package/dist/entities/price.d.ts.map +1 -1
  86. package/dist/entities/price.js +7 -7
  87. package/dist/entities/price.js.map +1 -1
  88. package/dist/entities/product.d.ts +35 -15
  89. package/dist/entities/product.d.ts.map +1 -1
  90. package/dist/entities/product.js +7 -6
  91. package/dist/entities/product.js.map +1 -1
  92. package/dist/entities/session.d.ts.map +1 -1
  93. package/dist/entities/session.js +2 -0
  94. package/dist/entities/session.js.map +1 -1
  95. package/dist/entities/site.d.ts +2 -1
  96. package/dist/entities/site.d.ts.map +1 -1
  97. package/dist/entities/site.js +2 -6
  98. package/dist/entities/site.js.map +1 -1
  99. package/dist/entities/ticket-comment.d.ts +1 -1
  100. package/dist/entities/ticket-comment.d.ts.map +1 -1
  101. package/dist/entities/ticket-comment.js.map +1 -1
  102. package/dist/entities/ticket-label.d.ts.map +1 -1
  103. package/dist/entities/ticket-label.js.map +1 -1
  104. package/dist/entities/ticket.d.ts.map +1 -1
  105. package/dist/entities/ticket.js +3 -0
  106. package/dist/entities/ticket.js.map +1 -1
  107. package/dist/entities/user.d.ts +1 -0
  108. package/dist/entities/user.d.ts.map +1 -1
  109. package/dist/entities/user.js +3 -2
  110. package/dist/entities/user.js.map +1 -1
  111. package/dist/foundation/contract.d.ts.map +1 -1
  112. package/dist/foundation/contract.js.map +1 -1
  113. package/dist/foundation/index.d.ts.map +1 -1
  114. package/dist/foundation/index.js.map +1 -1
  115. package/dist/generated/contracts.d.ts +995 -5
  116. package/dist/generated/contracts.d.ts.map +1 -1
  117. package/dist/generated/contracts.js +668 -1
  118. package/dist/generated/contracts.js.map +1 -1
  119. package/dist/generated/zod-schemas.d.ts +14230 -4020
  120. package/dist/generated/zod-schemas.d.ts.map +1 -1
  121. package/dist/generated/zod-schemas.js +378 -1
  122. package/dist/generated/zod-schemas.js.map +1 -1
  123. package/dist/index.d.ts +4 -2
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/index.js +10 -2
  126. package/dist/index.js.map +1 -1
  127. package/dist/pricing.d.ts +63 -0
  128. package/dist/pricing.d.ts.map +1 -0
  129. package/dist/pricing.js +216 -0
  130. package/dist/pricing.js.map +1 -0
  131. package/dist/providers.d.ts +4 -0
  132. package/dist/providers.d.ts.map +1 -0
  133. package/dist/providers.js +10 -0
  134. package/dist/providers.js.map +1 -0
  135. package/dist/representation/index.d.ts.map +1 -1
  136. package/dist/representation/index.js.map +1 -1
  137. package/package.json +12 -7
@@ -2,7 +2,7 @@
2
2
  * Auto-generated Contract wrappers
3
3
  *
4
4
  * DO NOT EDIT - Regenerate with: pnpm generate:all
5
- * Generated: 2026-03-03T19:09:53.254Z
5
+ * Generated: 2026-03-19T09:07:55.782Z
6
6
  *
7
7
  * This file provides Contract wrappers for all database tables.
8
8
  * Contracts combine TypeScript types, Zod schemas, and runtime validation
@@ -11,6 +11,128 @@
11
11
  * These base contracts can be extended in entity contracts to add
12
12
  * business logic, computed fields, and custom validation rules.
13
13
  */
14
+ /**
15
+ * Contract for accountEntitlements row (Select)
16
+ * Database table: account_entitlements
17
+ */
18
+ export declare const AccountEntitlementsRowContract: import("../index.js").Contract<{
19
+ accountId: string;
20
+ planId: string;
21
+ tier: string;
22
+ status: string;
23
+ features: Record<string, boolean>;
24
+ limits: {
25
+ maxSites?: number;
26
+ maxUsers?: number;
27
+ maxAgentTasks?: number;
28
+ };
29
+ meteringStatus: string;
30
+ graceUntil: Date | null;
31
+ updatedAt: Date;
32
+ }>;
33
+ /**
34
+ * Contract for accountEntitlements insert
35
+ * Database table: account_entitlements
36
+ */
37
+ export declare const AccountEntitlementsInsertContract: import("../index.js").Contract<{
38
+ accountId: string;
39
+ planId: string;
40
+ tier?: string | undefined;
41
+ status?: string | undefined;
42
+ features?: Record<string, boolean> | undefined;
43
+ limits?: {
44
+ maxSites?: number;
45
+ maxUsers?: number;
46
+ maxAgentTasks?: number;
47
+ } | undefined;
48
+ meteringStatus?: string | undefined;
49
+ graceUntil?: Date | null | undefined;
50
+ updatedAt?: Date | undefined;
51
+ }>;
52
+ /**
53
+ * Contract for accountMemberships row (Select)
54
+ * Database table: account_memberships
55
+ */
56
+ export declare const AccountMembershipsRowContract: import("../index.js").Contract<{
57
+ id: string;
58
+ accountId: string;
59
+ userId: string;
60
+ role: string;
61
+ status: string;
62
+ createdAt: Date;
63
+ updatedAt: Date;
64
+ }>;
65
+ /**
66
+ * Contract for accountMemberships insert
67
+ * Database table: account_memberships
68
+ */
69
+ export declare const AccountMembershipsInsertContract: import("../index.js").Contract<{
70
+ id: string;
71
+ accountId: string;
72
+ userId: string;
73
+ role?: string | undefined;
74
+ status?: string | undefined;
75
+ createdAt?: Date | undefined;
76
+ updatedAt?: Date | undefined;
77
+ }>;
78
+ /**
79
+ * Contract for accounts row (Select)
80
+ * Database table: accounts
81
+ */
82
+ export declare const AccountsRowContract: import("../index.js").Contract<{
83
+ id: string;
84
+ name: string;
85
+ slug: string;
86
+ status: string;
87
+ createdAt: Date;
88
+ updatedAt: Date;
89
+ }>;
90
+ /**
91
+ * Contract for accounts insert
92
+ * Database table: accounts
93
+ */
94
+ export declare const AccountsInsertContract: import("../index.js").Contract<{
95
+ id: string;
96
+ name: string;
97
+ slug: string;
98
+ status?: string | undefined;
99
+ createdAt?: Date | undefined;
100
+ updatedAt?: Date | undefined;
101
+ }>;
102
+ /**
103
+ * Contract for accountSubscriptions row (Select)
104
+ * Database table: account_subscriptions
105
+ */
106
+ export declare const AccountSubscriptionsRowContract: import("../index.js").Contract<{
107
+ id: string;
108
+ accountId: string;
109
+ stripeCustomerId: string;
110
+ stripeSubscriptionId: string | null;
111
+ planId: string;
112
+ status: string;
113
+ currentPeriodStart: Date | null;
114
+ currentPeriodEnd: Date | null;
115
+ cancelAtPeriodEnd: boolean;
116
+ createdAt: Date;
117
+ updatedAt: Date;
118
+ }>;
119
+ /**
120
+ * Contract for accountSubscriptions insert
121
+ * Database table: account_subscriptions
122
+ */
123
+ export declare const AccountSubscriptionsInsertContract: import("../index.js").Contract<{
124
+ id: string;
125
+ accountId: string;
126
+ stripeCustomerId: string;
127
+ planId: string;
128
+ stripeSubscriptionId?: string | null | undefined;
129
+ status?: string | undefined;
130
+ currentPeriodStart?: Date | null | undefined;
131
+ currentPeriodEnd?: Date | null | undefined;
132
+ cancelAtPeriodEnd?: boolean | undefined;
133
+ createdAt?: Date | undefined;
134
+ updatedAt?: Date | undefined;
135
+ }>;
14
136
  /**
15
137
  * Contract for agentActions row (Select)
16
138
  * Database table: agent_actions
@@ -210,7 +332,7 @@ export declare const AgentMemoriesRowContract: import("../index.js").Contract<{
210
332
  verified: boolean | null;
211
333
  verifiedBy: string | null;
212
334
  verifiedAt: Date | null;
213
- siteId: string | null;
335
+ siteId: string;
214
336
  agentId: string | null;
215
337
  createdAt: Date;
216
338
  expiresAt: Date | null;
@@ -224,6 +346,7 @@ export declare const AgentMemoriesInsertContract: import("../index.js").Contract
224
346
  content: string;
225
347
  type: string;
226
348
  source: import("drizzle-zod").Json;
349
+ siteId: string;
227
350
  version?: number | undefined;
228
351
  embedding?: {
229
352
  [x: number]: number;
@@ -270,11 +393,50 @@ export declare const AgentMemoriesInsertContract: import("../index.js").Contract
270
393
  verified?: boolean | null | undefined;
271
394
  verifiedBy?: string | null | undefined;
272
395
  verifiedAt?: Date | null | undefined;
273
- siteId?: string | null | undefined;
274
396
  agentId?: string | null | undefined;
275
397
  createdAt?: Date | undefined;
276
398
  expiresAt?: Date | null | undefined;
277
399
  }>;
400
+ /**
401
+ * Contract for agentTaskUsage row (Select)
402
+ * Database table: agent_task_usage
403
+ */
404
+ export declare const AgentTaskUsageRowContract: import("../index.js").Contract<{
405
+ userId: string;
406
+ cycleStart: Date;
407
+ count: number;
408
+ overage: number;
409
+ updatedAt: Date;
410
+ }>;
411
+ /**
412
+ * Contract for agentTaskUsage insert
413
+ * Database table: agent_task_usage
414
+ */
415
+ export declare const AgentTaskUsageInsertContract: import("../index.js").Contract<{
416
+ userId: string;
417
+ cycleStart: Date;
418
+ count?: number | undefined;
419
+ overage?: number | undefined;
420
+ updatedAt?: Date | undefined;
421
+ }>;
422
+ /**
423
+ * Contract for aiMemorySessions row (Select)
424
+ * Database table: ai_memory_sessions
425
+ */
426
+ export declare const AiMemorySessionsRowContract: import("../index.js").Contract<{
427
+ id: string;
428
+ userId: string;
429
+ createdAt: Date;
430
+ }>;
431
+ /**
432
+ * Contract for aiMemorySessions insert
433
+ * Database table: ai_memory_sessions
434
+ */
435
+ export declare const AiMemorySessionsInsertContract: import("../index.js").Contract<{
436
+ id: string;
437
+ userId: string;
438
+ createdAt?: Date | undefined;
439
+ }>;
278
440
  /**
279
441
  * Contract for appLogs row (Select)
280
442
  * Database table: app_logs
@@ -335,6 +497,38 @@ export declare const AuditLogInsertContract: import("../index.js").Contract<{
335
497
  payload?: import("drizzle-zod").Json | undefined;
336
498
  policyViolations?: string[] | undefined;
337
499
  }>;
500
+ /**
501
+ * Contract for billingCatalog row (Select)
502
+ * Database table: billing_catalog
503
+ */
504
+ export declare const BillingCatalogRowContract: import("../index.js").Contract<{
505
+ id: string;
506
+ planId: string;
507
+ tier: string;
508
+ billingModel: string;
509
+ stripeProductId: string | null;
510
+ stripePriceId: string | null;
511
+ active: boolean;
512
+ metadata: Record<string, unknown>;
513
+ createdAt: Date;
514
+ updatedAt: Date;
515
+ }>;
516
+ /**
517
+ * Contract for billingCatalog insert
518
+ * Database table: billing_catalog
519
+ */
520
+ export declare const BillingCatalogInsertContract: import("../index.js").Contract<{
521
+ id: string;
522
+ planId: string;
523
+ tier: string;
524
+ billingModel: string;
525
+ stripeProductId?: string | null | undefined;
526
+ stripePriceId?: string | null | undefined;
527
+ active?: boolean | undefined;
528
+ metadata?: Record<string, unknown> | undefined;
529
+ createdAt?: Date | undefined;
530
+ updatedAt?: Date | undefined;
531
+ }>;
338
532
  /**
339
533
  * Contract for boardColumns row (Select)
340
534
  * Database table: board_columns
@@ -541,6 +735,194 @@ export declare const ConversationsInsertContract: import("../index.js").Contract
541
735
  createdAt?: Date | undefined;
542
736
  updatedAt?: Date | undefined;
543
737
  }>;
738
+ /**
739
+ * Contract for coordinationAgents row (Select)
740
+ * Database table: coordination_agents
741
+ */
742
+ export declare const CoordinationAgentsRowContract: import("../index.js").Contract<{
743
+ id: string;
744
+ env: string;
745
+ firstSeen: Date;
746
+ lastSeen: Date;
747
+ totalSessions: number;
748
+ metadata: Record<string, unknown> | null;
749
+ }>;
750
+ /**
751
+ * Contract for coordinationAgents insert
752
+ * Database table: coordination_agents
753
+ */
754
+ export declare const CoordinationAgentsInsertContract: import("../index.js").Contract<{
755
+ id: string;
756
+ env: string;
757
+ firstSeen?: Date | undefined;
758
+ lastSeen?: Date | undefined;
759
+ totalSessions?: number | undefined;
760
+ metadata?: Record<string, unknown> | null | undefined;
761
+ }>;
762
+ /**
763
+ * Contract for coordinationEvents row (Select)
764
+ * Database table: coordination_events
765
+ */
766
+ export declare const CoordinationEventsRowContract: import("../index.js").Contract<{
767
+ id: number;
768
+ sessionId: string | null;
769
+ agentId: string;
770
+ type: string;
771
+ level: string;
772
+ payload: Record<string, unknown> | null;
773
+ createdAt: Date;
774
+ }>;
775
+ /**
776
+ * Contract for coordinationEvents insert
777
+ * Database table: coordination_events
778
+ */
779
+ export declare const CoordinationEventsInsertContract: import("../index.js").Contract<{
780
+ agentId: string;
781
+ type: string;
782
+ id?: number | undefined;
783
+ sessionId?: string | null | undefined;
784
+ level?: string | undefined;
785
+ payload?: Record<string, unknown> | null | undefined;
786
+ createdAt?: Date | undefined;
787
+ }>;
788
+ /**
789
+ * Contract for coordinationFileClaims row (Select)
790
+ * Database table: coordination_file_claims
791
+ */
792
+ export declare const CoordinationFileClaimsRowContract: import("../index.js").Contract<{
793
+ filePath: string;
794
+ sessionId: string;
795
+ claimedAt: Date;
796
+ }>;
797
+ /**
798
+ * Contract for coordinationFileClaims insert
799
+ * Database table: coordination_file_claims
800
+ */
801
+ export declare const CoordinationFileClaimsInsertContract: import("../index.js").Contract<{
802
+ filePath: string;
803
+ sessionId: string;
804
+ claimedAt?: Date | undefined;
805
+ }>;
806
+ /**
807
+ * Contract for coordinationMail row (Select)
808
+ * Database table: coordination_mail
809
+ */
810
+ export declare const CoordinationMailRowContract: import("../index.js").Contract<{
811
+ id: number;
812
+ fromAgent: string;
813
+ toAgent: string;
814
+ subject: string;
815
+ body: string | null;
816
+ read: boolean;
817
+ createdAt: Date;
818
+ }>;
819
+ /**
820
+ * Contract for coordinationMail insert
821
+ * Database table: coordination_mail
822
+ */
823
+ export declare const CoordinationMailInsertContract: import("../index.js").Contract<{
824
+ fromAgent: string;
825
+ toAgent: string;
826
+ subject: string;
827
+ id?: number | undefined;
828
+ body?: string | null | undefined;
829
+ read?: boolean | undefined;
830
+ createdAt?: Date | undefined;
831
+ }>;
832
+ /**
833
+ * Contract for coordinationQueueItems row (Select)
834
+ * Database table: coordination_queue_items
835
+ */
836
+ export declare const CoordinationQueueItemsRowContract: import("../index.js").Contract<{
837
+ id: number;
838
+ targetAgent: string;
839
+ priority: string;
840
+ fromAgent: string;
841
+ message: string;
842
+ consumed: boolean;
843
+ createdAt: Date;
844
+ consumedAt: Date | null;
845
+ }>;
846
+ /**
847
+ * Contract for coordinationQueueItems insert
848
+ * Database table: coordination_queue_items
849
+ */
850
+ export declare const CoordinationQueueItemsInsertContract: import("../index.js").Contract<{
851
+ targetAgent: string;
852
+ fromAgent: string;
853
+ message: string;
854
+ id?: number | undefined;
855
+ priority?: string | undefined;
856
+ consumed?: boolean | undefined;
857
+ createdAt?: Date | undefined;
858
+ consumedAt?: Date | null | undefined;
859
+ }>;
860
+ /**
861
+ * Contract for coordinationSessions row (Select)
862
+ * Database table: coordination_sessions
863
+ */
864
+ export declare const CoordinationSessionsRowContract: import("../index.js").Contract<{
865
+ id: string;
866
+ agentId: string;
867
+ startedAt: Date;
868
+ endedAt: Date | null;
869
+ task: string;
870
+ status: string;
871
+ pid: number | null;
872
+ tools: Record<string, number> | null;
873
+ metadata: Record<string, unknown> | null;
874
+ }>;
875
+ /**
876
+ * Contract for coordinationSessions insert
877
+ * Database table: coordination_sessions
878
+ */
879
+ export declare const CoordinationSessionsInsertContract: import("../index.js").Contract<{
880
+ id: string;
881
+ agentId: string;
882
+ startedAt?: Date | undefined;
883
+ endedAt?: Date | null | undefined;
884
+ task?: string | undefined;
885
+ status?: string | undefined;
886
+ pid?: number | null | undefined;
887
+ tools?: Record<string, number> | null | undefined;
888
+ metadata?: Record<string, unknown> | null | undefined;
889
+ }>;
890
+ /**
891
+ * Contract for coordinationWorkItems row (Select)
892
+ * Database table: coordination_work_items
893
+ */
894
+ export declare const CoordinationWorkItemsRowContract: import("../index.js").Contract<{
895
+ id: string;
896
+ title: string;
897
+ description: string | null;
898
+ status: string;
899
+ priority: number;
900
+ ownerAgent: string | null;
901
+ ownerSession: string | null;
902
+ parentId: string | null;
903
+ metadata: Record<string, unknown> | null;
904
+ createdAt: Date;
905
+ updatedAt: Date;
906
+ completedAt: Date | null;
907
+ }>;
908
+ /**
909
+ * Contract for coordinationWorkItems insert
910
+ * Database table: coordination_work_items
911
+ */
912
+ export declare const CoordinationWorkItemsInsertContract: import("../index.js").Contract<{
913
+ id: string;
914
+ title: string;
915
+ description?: string | null | undefined;
916
+ status?: string | undefined;
917
+ priority?: number | undefined;
918
+ ownerAgent?: string | null | undefined;
919
+ ownerSession?: string | null | undefined;
920
+ parentId?: string | null | undefined;
921
+ metadata?: Record<string, unknown> | null | undefined;
922
+ createdAt?: Date | undefined;
923
+ updatedAt?: Date | undefined;
924
+ completedAt?: Date | null | undefined;
925
+ }>;
544
926
  /**
545
927
  * Contract for crdtOperations row (Select)
546
928
  * Database table: crdt_operations
@@ -629,6 +1011,98 @@ export declare const FailedAttemptsInsertContract: import("../index.js").Contrac
629
1011
  createdAt?: Date | undefined;
630
1012
  updatedAt?: Date | undefined;
631
1013
  }>;
1014
+ /**
1015
+ * Contract for gdprBreaches row (Select)
1016
+ * Database table: gdpr_breaches
1017
+ */
1018
+ export declare const GdprBreachesRowContract: import("../index.js").Contract<{
1019
+ id: string;
1020
+ detectedAt: Date;
1021
+ reportedAt: Date | null;
1022
+ type: string;
1023
+ severity: string;
1024
+ affectedUsers: string[];
1025
+ dataCategories: string[];
1026
+ description: string;
1027
+ mitigation: string | null;
1028
+ status: string;
1029
+ }>;
1030
+ /**
1031
+ * Contract for gdprBreaches insert
1032
+ * Database table: gdpr_breaches
1033
+ */
1034
+ export declare const GdprBreachesInsertContract: import("../index.js").Contract<{
1035
+ id: string;
1036
+ type: string;
1037
+ severity: string;
1038
+ description: string;
1039
+ detectedAt?: Date | undefined;
1040
+ reportedAt?: Date | null | undefined;
1041
+ affectedUsers?: string[] | undefined;
1042
+ dataCategories?: string[] | undefined;
1043
+ mitigation?: string | null | undefined;
1044
+ status?: string | undefined;
1045
+ }>;
1046
+ /**
1047
+ * Contract for gdprConsents row (Select)
1048
+ * Database table: gdpr_consents
1049
+ */
1050
+ export declare const GdprConsentsRowContract: import("../index.js").Contract<{
1051
+ id: string;
1052
+ userId: string;
1053
+ type: string;
1054
+ granted: boolean;
1055
+ timestamp: Date;
1056
+ expiresAt: Date | null;
1057
+ source: string;
1058
+ version: string;
1059
+ metadata: Record<string, unknown> | null;
1060
+ }>;
1061
+ /**
1062
+ * Contract for gdprConsents insert
1063
+ * Database table: gdpr_consents
1064
+ */
1065
+ export declare const GdprConsentsInsertContract: import("../index.js").Contract<{
1066
+ id: string;
1067
+ userId: string;
1068
+ type: string;
1069
+ granted?: boolean | undefined;
1070
+ timestamp?: Date | undefined;
1071
+ expiresAt?: Date | null | undefined;
1072
+ source?: string | undefined;
1073
+ version?: string | undefined;
1074
+ metadata?: Record<string, unknown> | null | undefined;
1075
+ }>;
1076
+ /**
1077
+ * Contract for gdprDeletionRequests row (Select)
1078
+ * Database table: gdpr_deletion_requests
1079
+ */
1080
+ export declare const GdprDeletionRequestsRowContract: import("../index.js").Contract<{
1081
+ id: string;
1082
+ userId: string;
1083
+ requestedAt: Date;
1084
+ processedAt: Date | null;
1085
+ status: string;
1086
+ dataCategories: string[];
1087
+ reason: string | null;
1088
+ retainedData: string[] | null;
1089
+ deletedData: string[] | null;
1090
+ }>;
1091
+ /**
1092
+ * Contract for gdprDeletionRequests insert
1093
+ * Database table: gdpr_deletion_requests
1094
+ */
1095
+ export declare const GdprDeletionRequestsInsertContract: import("../index.js").Contract<{
1096
+ id: string;
1097
+ userId: string;
1098
+ requestedAt?: Date | undefined;
1099
+ processedAt?: Date | null | undefined;
1100
+ status?: string | undefined;
1101
+ dataCategories?: string[] | undefined;
1102
+ reason?: string | null | undefined;
1103
+ retainedData?: string[] | null | undefined;
1104
+ deletedData?: string[] | null | undefined;
1105
+ }>;
632
1106
  /**
633
1107
  * Contract for globalFooter row (Select)
634
1108
  * Database table: global_footer
@@ -753,6 +1227,44 @@ export declare const GlobalSettingsInsertContract: import("../index.js").Contrac
753
1227
  createdAt?: Date | undefined;
754
1228
  updatedAt?: Date | undefined;
755
1229
  }>;
1230
+ /**
1231
+ * Contract for jobs row (Select)
1232
+ * Database table: jobs
1233
+ */
1234
+ export declare const JobsRowContract: import("../index.js").Contract<{
1235
+ id: string;
1236
+ name: string;
1237
+ data: Record<string, unknown>;
1238
+ state: string;
1239
+ priority: number;
1240
+ retryCount: number;
1241
+ retryLimit: number;
1242
+ startAfter: Date;
1243
+ expireAt: Date | null;
1244
+ output: Record<string, unknown> | null;
1245
+ createdAt: Date;
1246
+ startedAt: Date | null;
1247
+ completedAt: Date | null;
1248
+ }>;
1249
+ /**
1250
+ * Contract for jobs insert
1251
+ * Database table: jobs
1252
+ */
1253
+ export declare const JobsInsertContract: import("../index.js").Contract<{
1254
+ id: string;
1255
+ name: string;
1256
+ data: Record<string, unknown>;
1257
+ state?: string | undefined;
1258
+ priority?: number | undefined;
1259
+ retryCount?: number | undefined;
1260
+ retryLimit?: number | undefined;
1261
+ startAfter?: Date | undefined;
1262
+ expireAt?: Date | null | undefined;
1263
+ output?: Record<string, unknown> | null | undefined;
1264
+ createdAt?: Date | undefined;
1265
+ startedAt?: Date | null | undefined;
1266
+ completedAt?: Date | null | undefined;
1267
+ }>;
756
1268
  /**
757
1269
  * Contract for licenses row (Select)
758
1270
  * Database table: licenses
@@ -768,6 +1280,9 @@ export declare const LicensesRowContract: import("../index.js").Contract<{
768
1280
  createdAt: Date;
769
1281
  updatedAt: Date;
770
1282
  expiresAt: Date | null;
1283
+ perpetual: boolean;
1284
+ supportExpiresAt: Date | null;
1285
+ githubUsername: string | null;
771
1286
  }>;
772
1287
  /**
773
1288
  * Contract for licenses insert
@@ -784,6 +1299,109 @@ export declare const LicensesInsertContract: import("../index.js").Contract<{
784
1299
  createdAt?: Date | undefined;
785
1300
  updatedAt?: Date | undefined;
786
1301
  expiresAt?: Date | null | undefined;
1302
+ perpetual?: boolean | undefined;
1303
+ supportExpiresAt?: Date | null | undefined;
1304
+ githubUsername?: string | null | undefined;
1305
+ }>;
1306
+ /**
1307
+ * Contract for magicLinks row (Select)
1308
+ * Database table: magic_links
1309
+ */
1310
+ export declare const MagicLinksRowContract: import("../index.js").Contract<{
1311
+ id: string;
1312
+ userId: string;
1313
+ tokenHash: string;
1314
+ tokenSalt: string;
1315
+ expiresAt: Date;
1316
+ usedAt: Date | null;
1317
+ createdAt: Date;
1318
+ }>;
1319
+ /**
1320
+ * Contract for magicLinks insert
1321
+ * Database table: magic_links
1322
+ */
1323
+ export declare const MagicLinksInsertContract: import("../index.js").Contract<{
1324
+ id: string;
1325
+ userId: string;
1326
+ tokenHash: string;
1327
+ tokenSalt: string;
1328
+ expiresAt: Date;
1329
+ usedAt?: Date | null | undefined;
1330
+ createdAt?: Date | undefined;
1331
+ }>;
1332
+ /**
1333
+ * Contract for marketplaceServers row (Select)
1334
+ * Database table: marketplace_servers
1335
+ */
1336
+ export declare const MarketplaceServersRowContract: import("../index.js").Contract<{
1337
+ id: string;
1338
+ name: string;
1339
+ description: string;
1340
+ url: string;
1341
+ category: string;
1342
+ tags: string[];
1343
+ pricePerCallUsdc: string;
1344
+ developerId: string;
1345
+ stripeAccountId: string | null;
1346
+ status: string;
1347
+ callCount: number;
1348
+ metadata: Record<string, unknown> | null;
1349
+ createdAt: Date;
1350
+ updatedAt: Date;
1351
+ }>;
1352
+ /**
1353
+ * Contract for marketplaceServers insert
1354
+ * Database table: marketplace_servers
1355
+ */
1356
+ export declare const MarketplaceServersInsertContract: import("../index.js").Contract<{
1357
+ id: string;
1358
+ name: string;
1359
+ description: string;
1360
+ url: string;
1361
+ developerId: string;
1362
+ category?: string | undefined;
1363
+ tags?: string[] | undefined;
1364
+ pricePerCallUsdc?: string | undefined;
1365
+ stripeAccountId?: string | null | undefined;
1366
+ status?: string | undefined;
1367
+ callCount?: number | undefined;
1368
+ metadata?: Record<string, unknown> | null | undefined;
1369
+ createdAt?: Date | undefined;
1370
+ updatedAt?: Date | undefined;
1371
+ }>;
1372
+ /**
1373
+ * Contract for marketplaceTransactions row (Select)
1374
+ * Database table: marketplace_transactions
1375
+ */
1376
+ export declare const MarketplaceTransactionsRowContract: import("../index.js").Contract<{
1377
+ id: string;
1378
+ serverId: string;
1379
+ callerId: string | null;
1380
+ amountUsdc: string;
1381
+ platformFeeUsdc: string;
1382
+ developerAmountUsdc: string;
1383
+ stripeTransferId: string | null;
1384
+ paymentMethod: string;
1385
+ status: string;
1386
+ metadata: Record<string, unknown> | null;
1387
+ createdAt: Date;
1388
+ }>;
1389
+ /**
1390
+ * Contract for marketplaceTransactions insert
1391
+ * Database table: marketplace_transactions
1392
+ */
1393
+ export declare const MarketplaceTransactionsInsertContract: import("../index.js").Contract<{
1394
+ id: string;
1395
+ serverId: string;
1396
+ amountUsdc: string;
1397
+ platformFeeUsdc: string;
1398
+ developerAmountUsdc: string;
1399
+ callerId?: string | null | undefined;
1400
+ stripeTransferId?: string | null | undefined;
1401
+ paymentMethod?: string | undefined;
1402
+ status?: string | undefined;
1403
+ metadata?: Record<string, unknown> | null | undefined;
1404
+ createdAt?: Date | undefined;
787
1405
  }>;
788
1406
  /**
789
1407
  * Contract for media row (Select)
@@ -792,6 +1410,7 @@ export declare const LicensesInsertContract: import("../index.js").Contract<{
792
1410
  export declare const MediaRowContract: import("../index.js").Contract<{
793
1411
  id: string;
794
1412
  schemaVersion: string;
1413
+ version: number;
795
1414
  filename: string;
796
1415
  mimeType: string;
797
1416
  filesize: number | null;
@@ -804,6 +1423,7 @@ export declare const MediaRowContract: import("../index.js").Contract<{
804
1423
  uploadedBy: string | null;
805
1424
  createdAt: Date;
806
1425
  updatedAt: Date;
1426
+ deletedAt: Date | null;
807
1427
  }>;
808
1428
  /**
809
1429
  * Contract for media insert
@@ -815,6 +1435,7 @@ export declare const MediaInsertContract: import("../index.js").Contract<{
815
1435
  mimeType: string;
816
1436
  url: string;
817
1437
  schemaVersion?: string | undefined;
1438
+ version?: number | undefined;
818
1439
  filesize?: number | null | undefined;
819
1440
  alt?: string | null | undefined;
820
1441
  width?: number | null | undefined;
@@ -824,6 +1445,7 @@ export declare const MediaInsertContract: import("../index.js").Contract<{
824
1445
  uploadedBy?: string | null | undefined;
825
1446
  createdAt?: Date | undefined;
826
1447
  updatedAt?: Date | undefined;
1448
+ deletedAt?: Date | null | undefined;
827
1449
  }>;
828
1450
  /**
829
1451
  * Contract for messages row (Select)
@@ -871,6 +1493,40 @@ export declare const NodeIdMappingsInsertContract: import("../index.js").Contrac
871
1493
  createdAt?: Date | undefined;
872
1494
  updatedAt?: Date | undefined;
873
1495
  }>;
1496
+ /**
1497
+ * Contract for oauthAccounts row (Select)
1498
+ * Database table: oauth_accounts
1499
+ */
1500
+ export declare const OauthAccountsRowContract: import("../index.js").Contract<{
1501
+ id: string;
1502
+ userId: string;
1503
+ provider: string;
1504
+ providerUserId: string;
1505
+ providerEmail: string | null;
1506
+ providerName: string | null;
1507
+ providerAvatarUrl: string | null;
1508
+ createdAt: Date;
1509
+ updatedAt: Date;
1510
+ deletedAt: Date | null;
1511
+ anonymizedAt: Date | null;
1512
+ }>;
1513
+ /**
1514
+ * Contract for oauthAccounts insert
1515
+ * Database table: oauth_accounts
1516
+ */
1517
+ export declare const OauthAccountsInsertContract: import("../index.js").Contract<{
1518
+ id: string;
1519
+ userId: string;
1520
+ provider: string;
1521
+ providerUserId: string;
1522
+ providerEmail?: string | null | undefined;
1523
+ providerName?: string | null | undefined;
1524
+ providerAvatarUrl?: string | null | undefined;
1525
+ createdAt?: Date | undefined;
1526
+ updatedAt?: Date | undefined;
1527
+ deletedAt?: Date | null | undefined;
1528
+ anonymizedAt?: Date | null | undefined;
1529
+ }>;
874
1530
  /**
875
1531
  * Contract for pageRevisions row (Select)
876
1532
  * Database table: page_revisions
@@ -908,6 +1564,7 @@ export declare const PageRevisionsInsertContract: import("../index.js").Contract
908
1564
  export declare const PagesRowContract: import("../index.js").Contract<{
909
1565
  id: string;
910
1566
  schemaVersion: string;
1567
+ version: number;
911
1568
  siteId: string;
912
1569
  parentId: string | null;
913
1570
  templateId: string | null;
@@ -924,6 +1581,7 @@ export declare const PagesRowContract: import("../index.js").Contract<{
924
1581
  createdAt: Date;
925
1582
  updatedAt: Date;
926
1583
  publishedAt: Date | null;
1584
+ deletedAt: Date | null;
927
1585
  }>;
928
1586
  /**
929
1587
  * Contract for pages insert
@@ -936,6 +1594,7 @@ export declare const PagesInsertContract: import("../index.js").Contract<{
936
1594
  slug: string;
937
1595
  path: string;
938
1596
  schemaVersion?: string | undefined;
1597
+ version?: number | undefined;
939
1598
  parentId?: string | null | undefined;
940
1599
  templateId?: string | null | undefined;
941
1600
  status?: string | undefined;
@@ -948,6 +1607,41 @@ export declare const PagesInsertContract: import("../index.js").Contract<{
948
1607
  createdAt?: Date | undefined;
949
1608
  updatedAt?: Date | undefined;
950
1609
  publishedAt?: Date | null | undefined;
1610
+ deletedAt?: Date | null | undefined;
1611
+ }>;
1612
+ /**
1613
+ * Contract for passkeys row (Select)
1614
+ * Database table: passkeys
1615
+ */
1616
+ export declare const PasskeysRowContract: import("../index.js").Contract<{
1617
+ id: string;
1618
+ userId: string;
1619
+ credentialId: string;
1620
+ publicKey: Buffer<ArrayBufferLike>;
1621
+ counter: number;
1622
+ transports: string[] | null;
1623
+ aaguid: string | null;
1624
+ deviceName: string | null;
1625
+ backedUp: boolean;
1626
+ createdAt: Date;
1627
+ lastUsedAt: Date | null;
1628
+ }>;
1629
+ /**
1630
+ * Contract for passkeys insert
1631
+ * Database table: passkeys
1632
+ */
1633
+ export declare const PasskeysInsertContract: import("../index.js").Contract<{
1634
+ id: string;
1635
+ userId: string;
1636
+ credentialId: string;
1637
+ publicKey: Buffer<ArrayBufferLike>;
1638
+ counter?: number | undefined;
1639
+ transports?: string[] | null | undefined;
1640
+ aaguid?: string | null | undefined;
1641
+ deviceName?: string | null | undefined;
1642
+ backedUp?: boolean | undefined;
1643
+ createdAt?: Date | undefined;
1644
+ lastUsedAt?: Date | null | undefined;
951
1645
  }>;
952
1646
  /**
953
1647
  * Contract for passwordResetTokens row (Select)
@@ -982,6 +1676,7 @@ export declare const PasswordResetTokensInsertContract: import("../index.js").Co
982
1676
  export declare const PostsRowContract: import("../index.js").Contract<{
983
1677
  id: string;
984
1678
  schemaVersion: string;
1679
+ version: number;
985
1680
  title: string;
986
1681
  slug: string;
987
1682
  excerpt: string | null;
@@ -995,6 +1690,7 @@ export declare const PostsRowContract: import("../index.js").Contract<{
995
1690
  createdAt: Date;
996
1691
  updatedAt: Date;
997
1692
  publishedAt: Date | null;
1693
+ deletedAt: Date | null;
998
1694
  }>;
999
1695
  /**
1000
1696
  * Contract for posts insert
@@ -1005,6 +1701,7 @@ export declare const PostsInsertContract: import("../index.js").Contract<{
1005
1701
  title: string;
1006
1702
  slug: string;
1007
1703
  schemaVersion?: string | undefined;
1704
+ version?: number | undefined;
1008
1705
  excerpt?: string | null | undefined;
1009
1706
  content?: import("drizzle-zod").Json | undefined;
1010
1707
  featuredImageId?: string | null | undefined;
@@ -1016,6 +1713,197 @@ export declare const PostsInsertContract: import("../index.js").Contract<{
1016
1713
  createdAt?: Date | undefined;
1017
1714
  updatedAt?: Date | undefined;
1018
1715
  publishedAt?: Date | null | undefined;
1716
+ deletedAt?: Date | null | undefined;
1717
+ }>;
1718
+ /**
1719
+ * Contract for processedWebhookEvents row (Select)
1720
+ * Database table: processed_webhook_events
1721
+ */
1722
+ export declare const ProcessedWebhookEventsRowContract: import("../index.js").Contract<{
1723
+ id: string;
1724
+ eventType: string;
1725
+ processedAt: Date;
1726
+ }>;
1727
+ /**
1728
+ * Contract for processedWebhookEvents insert
1729
+ * Database table: processed_webhook_events
1730
+ */
1731
+ export declare const ProcessedWebhookEventsInsertContract: import("../index.js").Contract<{
1732
+ id: string;
1733
+ eventType: string;
1734
+ processedAt?: Date | undefined;
1735
+ }>;
1736
+ /**
1737
+ * Contract for ragChunks row (Select)
1738
+ * Database table: rag_chunks
1739
+ */
1740
+ export declare const RagChunksRowContract: import("../index.js").Contract<{
1741
+ id: string;
1742
+ documentId: string;
1743
+ workspaceId: string | null;
1744
+ content: string;
1745
+ tokenCount: number | null;
1746
+ chunkIndex: number;
1747
+ embedding: {
1748
+ [x: number]: number;
1749
+ length: number;
1750
+ toString: unknown;
1751
+ toLocaleString: unknown;
1752
+ pop: unknown;
1753
+ push: unknown;
1754
+ concat: unknown;
1755
+ join: unknown;
1756
+ reverse: unknown;
1757
+ shift: unknown;
1758
+ slice: unknown;
1759
+ sort: unknown;
1760
+ splice: unknown;
1761
+ unshift: unknown;
1762
+ indexOf: unknown;
1763
+ lastIndexOf: unknown;
1764
+ every: unknown;
1765
+ some: unknown;
1766
+ forEach: unknown;
1767
+ map: unknown;
1768
+ filter: unknown;
1769
+ reduce: unknown;
1770
+ reduceRight: unknown;
1771
+ find: unknown;
1772
+ findIndex: unknown;
1773
+ fill: unknown;
1774
+ copyWithin: unknown;
1775
+ entries: unknown;
1776
+ keys: unknown;
1777
+ values: unknown;
1778
+ includes: unknown;
1779
+ flatMap: unknown;
1780
+ flat: unknown;
1781
+ at: unknown;
1782
+ [Symbol.iterator]: unknown;
1783
+ [Symbol.unscopables]: unknown;
1784
+ } | null;
1785
+ embeddingModel: string | null;
1786
+ metadata: import("drizzle-zod").Json;
1787
+ createdAt: Date;
1788
+ }>;
1789
+ /**
1790
+ * Contract for ragChunks insert
1791
+ * Database table: rag_chunks
1792
+ */
1793
+ export declare const RagChunksInsertContract: import("../index.js").Contract<{
1794
+ id: string;
1795
+ documentId: string;
1796
+ content: string;
1797
+ workspaceId?: string | null | undefined;
1798
+ tokenCount?: number | null | undefined;
1799
+ chunkIndex?: number | undefined;
1800
+ embedding?: {
1801
+ [x: number]: number;
1802
+ length: number;
1803
+ toString: unknown;
1804
+ toLocaleString: unknown;
1805
+ pop: unknown;
1806
+ push: unknown;
1807
+ concat: unknown;
1808
+ join: unknown;
1809
+ reverse: unknown;
1810
+ shift: unknown;
1811
+ slice: unknown;
1812
+ sort: unknown;
1813
+ splice: unknown;
1814
+ unshift: unknown;
1815
+ indexOf: unknown;
1816
+ lastIndexOf: unknown;
1817
+ every: unknown;
1818
+ some: unknown;
1819
+ forEach: unknown;
1820
+ map: unknown;
1821
+ filter: unknown;
1822
+ reduce: unknown;
1823
+ reduceRight: unknown;
1824
+ find: unknown;
1825
+ findIndex: unknown;
1826
+ fill: unknown;
1827
+ copyWithin: unknown;
1828
+ entries: unknown;
1829
+ keys: unknown;
1830
+ values: unknown;
1831
+ includes: unknown;
1832
+ flatMap: unknown;
1833
+ flat: unknown;
1834
+ at: unknown;
1835
+ [Symbol.iterator]: unknown;
1836
+ [Symbol.unscopables]: unknown;
1837
+ } | null | undefined;
1838
+ embeddingModel?: string | null | undefined;
1839
+ metadata?: import("drizzle-zod").Json | undefined;
1840
+ createdAt?: Date | undefined;
1841
+ }>;
1842
+ /**
1843
+ * Contract for ragDocuments row (Select)
1844
+ * Database table: rag_documents
1845
+ */
1846
+ export declare const RagDocumentsRowContract: import("../index.js").Contract<{
1847
+ id: string;
1848
+ workspaceId: string | null;
1849
+ sourceType: string;
1850
+ sourceId: string | null;
1851
+ sourceCollection: string | null;
1852
+ title: string | null;
1853
+ mimeType: string | null;
1854
+ rawContent: string | null;
1855
+ wordCount: number | null;
1856
+ tokenEstimate: number | null;
1857
+ status: string;
1858
+ errorMessage: string | null;
1859
+ indexedAt: Date | null;
1860
+ createdAt: Date;
1861
+ updatedAt: Date;
1862
+ }>;
1863
+ /**
1864
+ * Contract for ragDocuments insert
1865
+ * Database table: rag_documents
1866
+ */
1867
+ export declare const RagDocumentsInsertContract: import("../index.js").Contract<{
1868
+ id: string;
1869
+ sourceType: string;
1870
+ workspaceId?: string | null | undefined;
1871
+ sourceId?: string | null | undefined;
1872
+ sourceCollection?: string | null | undefined;
1873
+ title?: string | null | undefined;
1874
+ mimeType?: string | null | undefined;
1875
+ rawContent?: string | null | undefined;
1876
+ wordCount?: number | null | undefined;
1877
+ tokenEstimate?: number | null | undefined;
1878
+ status?: string | undefined;
1879
+ errorMessage?: string | null | undefined;
1880
+ indexedAt?: Date | null | undefined;
1881
+ createdAt?: Date | undefined;
1882
+ updatedAt?: Date | undefined;
1883
+ }>;
1884
+ /**
1885
+ * Contract for ragWorkspaces row (Select)
1886
+ * Database table: rag_workspaces
1887
+ */
1888
+ export declare const RagWorkspacesRowContract: import("../index.js").Contract<{
1889
+ id: string;
1890
+ name: string;
1891
+ embeddingModel: string;
1892
+ chunkSize: number;
1893
+ chunkOverlap: number;
1894
+ createdAt: Date;
1895
+ }>;
1896
+ /**
1897
+ * Contract for ragWorkspaces insert
1898
+ * Database table: rag_workspaces
1899
+ */
1900
+ export declare const RagWorkspacesInsertContract: import("../index.js").Contract<{
1901
+ id: string;
1902
+ name: string;
1903
+ embeddingModel?: string | undefined;
1904
+ chunkSize?: number | undefined;
1905
+ chunkOverlap?: number | undefined;
1906
+ createdAt?: Date | undefined;
1019
1907
  }>;
1020
1908
  /**
1021
1909
  * Contract for rateLimits row (Select)
@@ -1045,7 +1933,7 @@ export declare const RateLimitsInsertContract: import("../index.js").Contract<{
1045
1933
  */
1046
1934
  export declare const RegisteredAgentsRowContract: import("../index.js").Contract<{
1047
1935
  id: string;
1048
- definition: Record<string, unknown>;
1936
+ definition: import("drizzle-zod").Json;
1049
1937
  createdAt: Date;
1050
1938
  updatedAt: Date;
1051
1939
  }>;
@@ -1055,7 +1943,7 @@ export declare const RegisteredAgentsRowContract: import("../index.js").Contract
1055
1943
  */
1056
1944
  export declare const RegisteredAgentsInsertContract: import("../index.js").Contract<{
1057
1945
  id: string;
1058
- definition: Record<string, unknown>;
1946
+ definition: import("drizzle-zod").Json;
1059
1947
  createdAt?: Date | undefined;
1060
1948
  updatedAt?: Date | undefined;
1061
1949
  }>;
@@ -1071,9 +1959,11 @@ export declare const SessionsRowContract: import("../index.js").Contract<{
1071
1959
  userAgent: string | null;
1072
1960
  ipAddress: string | null;
1073
1961
  persistent: boolean | null;
1962
+ metadata: Record<string, unknown> | null;
1074
1963
  lastActivityAt: Date;
1075
1964
  createdAt: Date;
1076
1965
  expiresAt: Date;
1966
+ deletedAt: Date | null;
1077
1967
  }>;
1078
1968
  /**
1079
1969
  * Contract for sessions insert
@@ -1088,8 +1978,10 @@ export declare const SessionsInsertContract: import("../index.js").Contract<{
1088
1978
  userAgent?: string | null | undefined;
1089
1979
  ipAddress?: string | null | undefined;
1090
1980
  persistent?: boolean | null | undefined;
1981
+ metadata?: Record<string, unknown> | null | undefined;
1091
1982
  lastActivityAt?: Date | undefined;
1092
1983
  createdAt?: Date | undefined;
1984
+ deletedAt?: Date | null | undefined;
1093
1985
  }>;
1094
1986
  /**
1095
1987
  * Contract for siteCollaborators row (Select)
@@ -1122,6 +2014,7 @@ export declare const SiteCollaboratorsInsertContract: import("../index.js").Cont
1122
2014
  export declare const SitesRowContract: import("../index.js").Contract<{
1123
2015
  id: string;
1124
2016
  schemaVersion: string;
2017
+ version: number;
1125
2018
  ownerId: string;
1126
2019
  name: string;
1127
2020
  slug: string;
@@ -1134,6 +2027,7 @@ export declare const SitesRowContract: import("../index.js").Contract<{
1134
2027
  createdAt: Date;
1135
2028
  updatedAt: Date;
1136
2029
  publishedAt: Date | null;
2030
+ deletedAt: Date | null;
1137
2031
  }>;
1138
2032
  /**
1139
2033
  * Contract for sites insert
@@ -1145,6 +2039,7 @@ export declare const SitesInsertContract: import("../index.js").Contract<{
1145
2039
  name: string;
1146
2040
  slug: string;
1147
2041
  schemaVersion?: string | undefined;
2042
+ version?: number | undefined;
1148
2043
  description?: string | null | undefined;
1149
2044
  status?: string | undefined;
1150
2045
  theme?: import("drizzle-zod").Json | undefined;
@@ -1154,6 +2049,7 @@ export declare const SitesInsertContract: import("../index.js").Contract<{
1154
2049
  createdAt?: Date | undefined;
1155
2050
  updatedAt?: Date | undefined;
1156
2051
  publishedAt?: Date | null | undefined;
2052
+ deletedAt?: Date | null | undefined;
1157
2053
  }>;
1158
2054
  /**
1159
2055
  * Contract for syncMetadata row (Select)
@@ -1211,6 +2107,42 @@ export declare const TenantProviderConfigsInsertContract: import("../index.js").
1211
2107
  createdAt?: Date | undefined;
1212
2108
  updatedAt?: Date | undefined;
1213
2109
  }>;
2110
+ /**
2111
+ * Contract for tenants row (Select)
2112
+ * Database table: tenants
2113
+ */
2114
+ export declare const TenantsRowContract: import("../index.js").Contract<{
2115
+ id: string;
2116
+ schemaVersion: string;
2117
+ name: string;
2118
+ email: string;
2119
+ password: string | null;
2120
+ roles: string[];
2121
+ domains: {
2122
+ domain: string;
2123
+ }[];
2124
+ _json: import("drizzle-zod").Json;
2125
+ createdAt: Date;
2126
+ updatedAt: Date;
2127
+ }>;
2128
+ /**
2129
+ * Contract for tenants insert
2130
+ * Database table: tenants
2131
+ */
2132
+ export declare const TenantsInsertContract: import("../index.js").Contract<{
2133
+ id: string;
2134
+ name: string;
2135
+ email: string;
2136
+ schemaVersion?: string | undefined;
2137
+ password?: string | null | undefined;
2138
+ roles?: string[] | undefined;
2139
+ domains?: {
2140
+ domain: string;
2141
+ }[] | undefined;
2142
+ _json?: import("drizzle-zod").Json | undefined;
2143
+ createdAt?: Date | undefined;
2144
+ updatedAt?: Date | undefined;
2145
+ }>;
1214
2146
  /**
1215
2147
  * Contract for ticketComments row (Select)
1216
2148
  * Database table: ticket_comments
@@ -1349,6 +2281,36 @@ export declare const TicketsInsertContract: import("../index.js").Contract<{
1349
2281
  createdAt?: Date | undefined;
1350
2282
  updatedAt?: Date | undefined;
1351
2283
  }>;
2284
+ /**
2285
+ * Contract for usageMeters row (Select)
2286
+ * Database table: usage_meters
2287
+ */
2288
+ export declare const UsageMetersRowContract: import("../index.js").Contract<{
2289
+ id: string;
2290
+ accountId: string;
2291
+ meterName: string;
2292
+ quantity: number;
2293
+ periodStart: Date;
2294
+ periodEnd: Date | null;
2295
+ source: string;
2296
+ idempotencyKey: string;
2297
+ createdAt: Date;
2298
+ }>;
2299
+ /**
2300
+ * Contract for usageMeters insert
2301
+ * Database table: usage_meters
2302
+ */
2303
+ export declare const UsageMetersInsertContract: import("../index.js").Contract<{
2304
+ id: string;
2305
+ accountId: string;
2306
+ meterName: string;
2307
+ periodStart: Date;
2308
+ idempotencyKey: string;
2309
+ quantity?: number | undefined;
2310
+ periodEnd?: Date | null | undefined;
2311
+ source?: string | undefined;
2312
+ createdAt?: Date | undefined;
2313
+ }>;
1352
2314
  /**
1353
2315
  * Contract for userApiKeys row (Select)
1354
2316
  * Database table: user_api_keys
@@ -1363,6 +2325,7 @@ export declare const UserApiKeysRowContract: import("../index.js").Contract<{
1363
2325
  createdAt: Date;
1364
2326
  updatedAt: Date;
1365
2327
  lastUsedAt: Date | null;
2328
+ deletedAt: Date | null;
1366
2329
  }>;
1367
2330
  /**
1368
2331
  * Contract for userApiKeys insert
@@ -1378,6 +2341,7 @@ export declare const UserApiKeysInsertContract: import("../index.js").Contract<{
1378
2341
  createdAt?: Date | undefined;
1379
2342
  updatedAt?: Date | undefined;
1380
2343
  lastUsedAt?: Date | null | undefined;
2344
+ deletedAt?: Date | null | undefined;
1381
2345
  }>;
1382
2346
  /**
1383
2347
  * Contract for userDevices row (Select)
@@ -1428,11 +2392,24 @@ export declare const UsersRowContract: import("../index.js").Contract<{
1428
2392
  agentModel: string | null;
1429
2393
  agentCapabilities: string[] | null;
1430
2394
  agentConfig: import("drizzle-zod").Json;
2395
+ emailVerified: boolean;
2396
+ emailVerificationToken: string | null;
2397
+ emailVerificationTokenExpiresAt: Date | null;
2398
+ emailVerifiedAt: Date | null;
2399
+ tosAcceptedAt: Date | null;
2400
+ tosVersion: string | null;
1431
2401
  stripeCustomerId: string | null;
2402
+ mfaEnabled: boolean;
2403
+ mfaSecret: string | null;
2404
+ mfaBackupCodes: string[] | null;
2405
+ mfaVerifiedAt: Date | null;
2406
+ sshKeyFingerprint: string | null;
1432
2407
  preferences: import("drizzle-zod").Json;
1433
2408
  createdAt: Date;
1434
2409
  updatedAt: Date;
1435
2410
  lastActiveAt: Date | null;
2411
+ deletedAt: Date | null;
2412
+ anonymizedAt: Date | null;
1436
2413
  _json: import("drizzle-zod").Json;
1437
2414
  }>;
1438
2415
  /**
@@ -1452,11 +2429,24 @@ export declare const UsersInsertContract: import("../index.js").Contract<{
1452
2429
  agentModel?: string | null | undefined;
1453
2430
  agentCapabilities?: string[] | null | undefined;
1454
2431
  agentConfig?: import("drizzle-zod").Json | undefined;
2432
+ emailVerified?: boolean | undefined;
2433
+ emailVerificationToken?: string | null | undefined;
2434
+ emailVerificationTokenExpiresAt?: Date | null | undefined;
2435
+ emailVerifiedAt?: Date | null | undefined;
2436
+ tosAcceptedAt?: Date | null | undefined;
2437
+ tosVersion?: string | null | undefined;
1455
2438
  stripeCustomerId?: string | null | undefined;
2439
+ mfaEnabled?: boolean | undefined;
2440
+ mfaSecret?: string | null | undefined;
2441
+ mfaBackupCodes?: string[] | null | undefined;
2442
+ mfaVerifiedAt?: Date | null | undefined;
2443
+ sshKeyFingerprint?: string | null | undefined;
1456
2444
  preferences?: import("drizzle-zod").Json | undefined;
1457
2445
  createdAt?: Date | undefined;
1458
2446
  updatedAt?: Date | undefined;
1459
2447
  lastActiveAt?: Date | null | undefined;
2448
+ deletedAt?: Date | null | undefined;
2449
+ anonymizedAt?: Date | null | undefined;
1460
2450
  _json?: import("drizzle-zod").Json | undefined;
1461
2451
  }>;
1462
2452
  /**