@revealui/contracts 1.1.0 → 1.3.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 (147) 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 +112 -0
  10. package/dist/api/auth.d.ts.map +1 -1
  11. package/dist/api/auth.js +123 -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 +11 -1
  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/content-validation.d.ts +53 -0
  46. package/dist/content-validation.d.ts.map +1 -0
  47. package/dist/content-validation.js +149 -0
  48. package/dist/content-validation.js.map +1 -0
  49. package/dist/database/bridge.d.ts +0 -18
  50. package/dist/database/bridge.d.ts.map +1 -1
  51. package/dist/database/bridge.js +0 -22
  52. package/dist/database/bridge.js.map +1 -1
  53. package/dist/database/index.d.ts +2 -2
  54. package/dist/database/index.d.ts.map +1 -1
  55. package/dist/database/index.js +1 -2
  56. package/dist/database/index.js.map +1 -1
  57. package/dist/database/type-bridge.d.ts +0 -10
  58. package/dist/database/type-bridge.d.ts.map +1 -1
  59. package/dist/database/type-bridge.js.map +1 -1
  60. package/dist/entities/agent-context.d.ts.map +1 -1
  61. package/dist/entities/agent-context.js.map +1 -1
  62. package/dist/entities/agent-memory.d.ts.map +1 -1
  63. package/dist/entities/agent-memory.js.map +1 -1
  64. package/dist/entities/board.d.ts.map +1 -1
  65. package/dist/entities/board.js.map +1 -1
  66. package/dist/entities/code-provenance.d.ts.map +1 -1
  67. package/dist/entities/code-provenance.js.map +1 -1
  68. package/dist/entities/index.d.ts +11 -4
  69. package/dist/entities/index.d.ts.map +1 -1
  70. package/dist/entities/index.js +11 -4
  71. package/dist/entities/index.js.map +1 -1
  72. package/dist/entities/media.d.ts +1 -1
  73. package/dist/entities/media.d.ts.map +1 -1
  74. package/dist/entities/media.js.map +1 -1
  75. package/dist/entities/page-revision.d.ts.map +1 -1
  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.map +1 -1
  83. package/dist/entities/price.d.ts +35 -15
  84. package/dist/entities/price.d.ts.map +1 -1
  85. package/dist/entities/price.js +5 -7
  86. package/dist/entities/price.js.map +1 -1
  87. package/dist/entities/product.d.ts +35 -15
  88. package/dist/entities/product.d.ts.map +1 -1
  89. package/dist/entities/product.js +5 -6
  90. package/dist/entities/product.js.map +1 -1
  91. package/dist/entities/session.d.ts.map +1 -1
  92. package/dist/entities/session.js.map +1 -1
  93. package/dist/entities/site.d.ts +2 -1
  94. package/dist/entities/site.d.ts.map +1 -1
  95. package/dist/entities/site.js +2 -6
  96. package/dist/entities/site.js.map +1 -1
  97. package/dist/entities/ticket-comment.d.ts +1 -1
  98. package/dist/entities/ticket-comment.d.ts.map +1 -1
  99. package/dist/entities/ticket-comment.js.map +1 -1
  100. package/dist/entities/ticket-label.d.ts.map +1 -1
  101. package/dist/entities/ticket-label.js.map +1 -1
  102. package/dist/entities/ticket.d.ts.map +1 -1
  103. package/dist/entities/ticket.js +2 -0
  104. package/dist/entities/ticket.js.map +1 -1
  105. package/dist/entities/user.d.ts +1 -0
  106. package/dist/entities/user.d.ts.map +1 -1
  107. package/dist/entities/user.js +3 -2
  108. package/dist/entities/user.js.map +1 -1
  109. package/dist/foundation/contract.d.ts.map +1 -1
  110. package/dist/foundation/contract.js.map +1 -1
  111. package/dist/foundation/index.d.ts.map +1 -1
  112. package/dist/foundation/index.js.map +1 -1
  113. package/dist/generated/contracts.d.ts +897 -3
  114. package/dist/generated/contracts.d.ts.map +1 -1
  115. package/dist/generated/contracts.js +623 -2
  116. package/dist/generated/contracts.js.map +1 -1
  117. package/dist/generated/database.d.ts +27 -27
  118. package/dist/generated/database.d.ts.map +1 -1
  119. package/dist/generated/database.js +1 -1
  120. package/dist/generated/database.js.map +1 -1
  121. package/dist/generated/zod-schemas.d.ts +15671 -5613
  122. package/dist/generated/zod-schemas.d.ts.map +1 -1
  123. package/dist/generated/zod-schemas.js +352 -1
  124. package/dist/generated/zod-schemas.js.map +1 -1
  125. package/dist/index.d.ts +6 -2
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +18 -2
  128. package/dist/index.js.map +1 -1
  129. package/dist/pricing.d.ts +65 -0
  130. package/dist/pricing.d.ts.map +1 -0
  131. package/dist/pricing.js +219 -0
  132. package/dist/pricing.js.map +1 -0
  133. package/dist/providers.d.ts +4 -0
  134. package/dist/providers.d.ts.map +1 -0
  135. package/dist/providers.js +12 -0
  136. package/dist/providers.js.map +1 -0
  137. package/dist/representation/index.d.ts.map +1 -1
  138. package/dist/representation/index.js.map +1 -1
  139. package/dist/revealcoin.d.ts +64 -0
  140. package/dist/revealcoin.d.ts.map +1 -0
  141. package/dist/revealcoin.js +142 -0
  142. package/dist/revealcoin.js.map +1 -0
  143. package/package.json +28 -9
  144. package/dist/agents/types.d.ts +0 -22
  145. package/dist/agents/types.d.ts.map +0 -1
  146. package/dist/agents/types.js +0 -2
  147. package/dist/agents/types.js.map +0 -1
@@ -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-06T12:54:44.947Z
5
+ * Generated: 2026-03-27T02:04:08.475Z
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,7 +393,6 @@ 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;
@@ -375,6 +497,38 @@ export declare const AuditLogInsertContract: import("../index.js").Contract<{
375
497
  payload?: import("drizzle-zod").Json | undefined;
376
498
  policyViolations?: string[] | undefined;
377
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
+ }>;
378
532
  /**
379
533
  * Contract for boardColumns row (Select)
380
534
  * Database table: board_columns
@@ -441,6 +595,32 @@ export declare const BoardsInsertContract: import("../index.js").Contract<{
441
595
  createdAt?: Date | undefined;
442
596
  updatedAt?: Date | undefined;
443
597
  }>;
598
+ /**
599
+ * Contract for circuitBreakerState row (Select)
600
+ * Database table: circuit_breaker_state
601
+ */
602
+ export declare const CircuitBreakerStateRowContract: import("../index.js").Contract<{
603
+ serviceName: string;
604
+ state: string;
605
+ failureCount: number;
606
+ successCount: number;
607
+ lastFailureAt: Date | null;
608
+ stateChangedAt: Date;
609
+ updatedAt: Date;
610
+ }>;
611
+ /**
612
+ * Contract for circuitBreakerState insert
613
+ * Database table: circuit_breaker_state
614
+ */
615
+ export declare const CircuitBreakerStateInsertContract: import("../index.js").Contract<{
616
+ serviceName: string;
617
+ state?: string | undefined;
618
+ failureCount?: number | undefined;
619
+ successCount?: number | undefined;
620
+ lastFailureAt?: Date | null | undefined;
621
+ stateChangedAt?: Date | undefined;
622
+ updatedAt?: Date | undefined;
623
+ }>;
444
624
  /**
445
625
  * Contract for codeProvenance row (Select)
446
626
  * Database table: code_provenance
@@ -581,6 +761,194 @@ export declare const ConversationsInsertContract: import("../index.js").Contract
581
761
  createdAt?: Date | undefined;
582
762
  updatedAt?: Date | undefined;
583
763
  }>;
764
+ /**
765
+ * Contract for coordinationAgents row (Select)
766
+ * Database table: coordination_agents
767
+ */
768
+ export declare const CoordinationAgentsRowContract: import("../index.js").Contract<{
769
+ id: string;
770
+ env: string;
771
+ firstSeen: Date;
772
+ lastSeen: Date;
773
+ totalSessions: number;
774
+ metadata: Record<string, unknown> | null;
775
+ }>;
776
+ /**
777
+ * Contract for coordinationAgents insert
778
+ * Database table: coordination_agents
779
+ */
780
+ export declare const CoordinationAgentsInsertContract: import("../index.js").Contract<{
781
+ id: string;
782
+ env: string;
783
+ firstSeen?: Date | undefined;
784
+ lastSeen?: Date | undefined;
785
+ totalSessions?: number | undefined;
786
+ metadata?: Record<string, unknown> | null | undefined;
787
+ }>;
788
+ /**
789
+ * Contract for coordinationEvents row (Select)
790
+ * Database table: coordination_events
791
+ */
792
+ export declare const CoordinationEventsRowContract: import("../index.js").Contract<{
793
+ id: number;
794
+ sessionId: string | null;
795
+ agentId: string;
796
+ type: string;
797
+ level: string;
798
+ payload: Record<string, unknown> | null;
799
+ createdAt: Date;
800
+ }>;
801
+ /**
802
+ * Contract for coordinationEvents insert
803
+ * Database table: coordination_events
804
+ */
805
+ export declare const CoordinationEventsInsertContract: import("../index.js").Contract<{
806
+ agentId: string;
807
+ type: string;
808
+ id?: number | undefined;
809
+ sessionId?: string | null | undefined;
810
+ level?: string | undefined;
811
+ payload?: Record<string, unknown> | null | undefined;
812
+ createdAt?: Date | undefined;
813
+ }>;
814
+ /**
815
+ * Contract for coordinationFileClaims row (Select)
816
+ * Database table: coordination_file_claims
817
+ */
818
+ export declare const CoordinationFileClaimsRowContract: import("../index.js").Contract<{
819
+ filePath: string;
820
+ sessionId: string;
821
+ claimedAt: Date;
822
+ }>;
823
+ /**
824
+ * Contract for coordinationFileClaims insert
825
+ * Database table: coordination_file_claims
826
+ */
827
+ export declare const CoordinationFileClaimsInsertContract: import("../index.js").Contract<{
828
+ filePath: string;
829
+ sessionId: string;
830
+ claimedAt?: Date | undefined;
831
+ }>;
832
+ /**
833
+ * Contract for coordinationMail row (Select)
834
+ * Database table: coordination_mail
835
+ */
836
+ export declare const CoordinationMailRowContract: import("../index.js").Contract<{
837
+ id: number;
838
+ fromAgent: string;
839
+ toAgent: string;
840
+ subject: string;
841
+ body: string | null;
842
+ read: boolean;
843
+ createdAt: Date;
844
+ }>;
845
+ /**
846
+ * Contract for coordinationMail insert
847
+ * Database table: coordination_mail
848
+ */
849
+ export declare const CoordinationMailInsertContract: import("../index.js").Contract<{
850
+ fromAgent: string;
851
+ toAgent: string;
852
+ subject: string;
853
+ id?: number | undefined;
854
+ body?: string | null | undefined;
855
+ read?: boolean | undefined;
856
+ createdAt?: Date | undefined;
857
+ }>;
858
+ /**
859
+ * Contract for coordinationQueueItems row (Select)
860
+ * Database table: coordination_queue_items
861
+ */
862
+ export declare const CoordinationQueueItemsRowContract: import("../index.js").Contract<{
863
+ id: number;
864
+ targetAgent: string;
865
+ priority: string;
866
+ fromAgent: string;
867
+ message: string;
868
+ consumed: boolean;
869
+ createdAt: Date;
870
+ consumedAt: Date | null;
871
+ }>;
872
+ /**
873
+ * Contract for coordinationQueueItems insert
874
+ * Database table: coordination_queue_items
875
+ */
876
+ export declare const CoordinationQueueItemsInsertContract: import("../index.js").Contract<{
877
+ targetAgent: string;
878
+ fromAgent: string;
879
+ message: string;
880
+ id?: number | undefined;
881
+ priority?: string | undefined;
882
+ consumed?: boolean | undefined;
883
+ createdAt?: Date | undefined;
884
+ consumedAt?: Date | null | undefined;
885
+ }>;
886
+ /**
887
+ * Contract for coordinationSessions row (Select)
888
+ * Database table: coordination_sessions
889
+ */
890
+ export declare const CoordinationSessionsRowContract: import("../index.js").Contract<{
891
+ id: string;
892
+ agentId: string;
893
+ startedAt: Date;
894
+ endedAt: Date | null;
895
+ task: string;
896
+ status: string;
897
+ pid: number | null;
898
+ tools: Record<string, number> | null;
899
+ metadata: Record<string, unknown> | null;
900
+ }>;
901
+ /**
902
+ * Contract for coordinationSessions insert
903
+ * Database table: coordination_sessions
904
+ */
905
+ export declare const CoordinationSessionsInsertContract: import("../index.js").Contract<{
906
+ id: string;
907
+ agentId: string;
908
+ startedAt?: Date | undefined;
909
+ endedAt?: Date | null | undefined;
910
+ task?: string | undefined;
911
+ status?: string | undefined;
912
+ pid?: number | null | undefined;
913
+ tools?: Record<string, number> | null | undefined;
914
+ metadata?: Record<string, unknown> | null | undefined;
915
+ }>;
916
+ /**
917
+ * Contract for coordinationWorkItems row (Select)
918
+ * Database table: coordination_work_items
919
+ */
920
+ export declare const CoordinationWorkItemsRowContract: import("../index.js").Contract<{
921
+ id: string;
922
+ title: string;
923
+ description: string | null;
924
+ status: string;
925
+ priority: number;
926
+ ownerAgent: string | null;
927
+ ownerSession: string | null;
928
+ parentId: string | null;
929
+ metadata: Record<string, unknown> | null;
930
+ createdAt: Date;
931
+ updatedAt: Date;
932
+ completedAt: Date | null;
933
+ }>;
934
+ /**
935
+ * Contract for coordinationWorkItems insert
936
+ * Database table: coordination_work_items
937
+ */
938
+ export declare const CoordinationWorkItemsInsertContract: import("../index.js").Contract<{
939
+ id: string;
940
+ title: string;
941
+ description?: string | null | undefined;
942
+ status?: string | undefined;
943
+ priority?: number | undefined;
944
+ ownerAgent?: string | null | undefined;
945
+ ownerSession?: string | null | undefined;
946
+ parentId?: string | null | undefined;
947
+ metadata?: Record<string, unknown> | null | undefined;
948
+ createdAt?: Date | undefined;
949
+ updatedAt?: Date | undefined;
950
+ completedAt?: Date | null | undefined;
951
+ }>;
584
952
  /**
585
953
  * Contract for crdtOperations row (Select)
586
954
  * Database table: crdt_operations
@@ -669,6 +1037,98 @@ export declare const FailedAttemptsInsertContract: import("../index.js").Contrac
669
1037
  createdAt?: Date | undefined;
670
1038
  updatedAt?: Date | undefined;
671
1039
  }>;
1040
+ /**
1041
+ * Contract for gdprBreaches row (Select)
1042
+ * Database table: gdpr_breaches
1043
+ */
1044
+ export declare const GdprBreachesRowContract: import("../index.js").Contract<{
1045
+ id: string;
1046
+ detectedAt: Date;
1047
+ reportedAt: Date | null;
1048
+ type: string;
1049
+ severity: string;
1050
+ affectedUsers: string[];
1051
+ dataCategories: string[];
1052
+ description: string;
1053
+ mitigation: string | null;
1054
+ status: string;
1055
+ }>;
1056
+ /**
1057
+ * Contract for gdprBreaches insert
1058
+ * Database table: gdpr_breaches
1059
+ */
1060
+ export declare const GdprBreachesInsertContract: import("../index.js").Contract<{
1061
+ id: string;
1062
+ type: string;
1063
+ severity: string;
1064
+ description: string;
1065
+ detectedAt?: Date | undefined;
1066
+ reportedAt?: Date | null | undefined;
1067
+ affectedUsers?: string[] | undefined;
1068
+ dataCategories?: string[] | undefined;
1069
+ mitigation?: string | null | undefined;
1070
+ status?: string | undefined;
1071
+ }>;
1072
+ /**
1073
+ * Contract for gdprConsents row (Select)
1074
+ * Database table: gdpr_consents
1075
+ */
1076
+ export declare const GdprConsentsRowContract: import("../index.js").Contract<{
1077
+ id: string;
1078
+ userId: string;
1079
+ type: string;
1080
+ granted: boolean;
1081
+ timestamp: Date;
1082
+ expiresAt: Date | null;
1083
+ source: string;
1084
+ version: string;
1085
+ metadata: Record<string, unknown> | null;
1086
+ }>;
1087
+ /**
1088
+ * Contract for gdprConsents insert
1089
+ * Database table: gdpr_consents
1090
+ */
1091
+ export declare const GdprConsentsInsertContract: import("../index.js").Contract<{
1092
+ id: string;
1093
+ userId: string;
1094
+ type: string;
1095
+ granted?: boolean | undefined;
1096
+ timestamp?: Date | undefined;
1097
+ expiresAt?: Date | null | undefined;
1098
+ source?: string | undefined;
1099
+ version?: string | undefined;
1100
+ metadata?: Record<string, unknown> | null | undefined;
1101
+ }>;
1102
+ /**
1103
+ * Contract for gdprDeletionRequests row (Select)
1104
+ * Database table: gdpr_deletion_requests
1105
+ */
1106
+ export declare const GdprDeletionRequestsRowContract: import("../index.js").Contract<{
1107
+ id: string;
1108
+ userId: string;
1109
+ requestedAt: Date;
1110
+ processedAt: Date | null;
1111
+ status: string;
1112
+ dataCategories: string[];
1113
+ reason: string | null;
1114
+ retainedData: string[] | null;
1115
+ deletedData: string[] | null;
1116
+ }>;
1117
+ /**
1118
+ * Contract for gdprDeletionRequests insert
1119
+ * Database table: gdpr_deletion_requests
1120
+ */
1121
+ export declare const GdprDeletionRequestsInsertContract: import("../index.js").Contract<{
1122
+ id: string;
1123
+ userId: string;
1124
+ requestedAt?: Date | undefined;
1125
+ processedAt?: Date | null | undefined;
1126
+ status?: string | undefined;
1127
+ dataCategories?: string[] | undefined;
1128
+ reason?: string | null | undefined;
1129
+ retainedData?: string[] | null | undefined;
1130
+ deletedData?: string[] | null | undefined;
1131
+ }>;
672
1132
  /**
673
1133
  * Contract for globalFooter row (Select)
674
1134
  * Database table: global_footer
@@ -793,6 +1253,44 @@ export declare const GlobalSettingsInsertContract: import("../index.js").Contrac
793
1253
  createdAt?: Date | undefined;
794
1254
  updatedAt?: Date | undefined;
795
1255
  }>;
1256
+ /**
1257
+ * Contract for jobs row (Select)
1258
+ * Database table: jobs
1259
+ */
1260
+ export declare const JobsRowContract: import("../index.js").Contract<{
1261
+ id: string;
1262
+ name: string;
1263
+ data: Record<string, unknown>;
1264
+ state: string;
1265
+ priority: number;
1266
+ retryCount: number;
1267
+ retryLimit: number;
1268
+ startAfter: Date;
1269
+ expireAt: Date | null;
1270
+ output: Record<string, unknown> | null;
1271
+ createdAt: Date;
1272
+ startedAt: Date | null;
1273
+ completedAt: Date | null;
1274
+ }>;
1275
+ /**
1276
+ * Contract for jobs insert
1277
+ * Database table: jobs
1278
+ */
1279
+ export declare const JobsInsertContract: import("../index.js").Contract<{
1280
+ id: string;
1281
+ name: string;
1282
+ data: Record<string, unknown>;
1283
+ state?: string | undefined;
1284
+ priority?: number | undefined;
1285
+ retryCount?: number | undefined;
1286
+ retryLimit?: number | undefined;
1287
+ startAfter?: Date | undefined;
1288
+ expireAt?: Date | null | undefined;
1289
+ output?: Record<string, unknown> | null | undefined;
1290
+ createdAt?: Date | undefined;
1291
+ startedAt?: Date | null | undefined;
1292
+ completedAt?: Date | null | undefined;
1293
+ }>;
796
1294
  /**
797
1295
  * Contract for licenses row (Select)
798
1296
  * Database table: licenses
@@ -808,6 +1306,10 @@ export declare const LicensesRowContract: import("../index.js").Contract<{
808
1306
  createdAt: Date;
809
1307
  updatedAt: Date;
810
1308
  expiresAt: Date | null;
1309
+ perpetual: boolean;
1310
+ supportExpiresAt: Date | null;
1311
+ githubUsername: string | null;
1312
+ npmUsername: string | null;
811
1313
  }>;
812
1314
  /**
813
1315
  * Contract for licenses insert
@@ -824,6 +1326,110 @@ export declare const LicensesInsertContract: import("../index.js").Contract<{
824
1326
  createdAt?: Date | undefined;
825
1327
  updatedAt?: Date | undefined;
826
1328
  expiresAt?: Date | null | undefined;
1329
+ perpetual?: boolean | undefined;
1330
+ supportExpiresAt?: Date | null | undefined;
1331
+ githubUsername?: string | null | undefined;
1332
+ npmUsername?: string | null | undefined;
1333
+ }>;
1334
+ /**
1335
+ * Contract for magicLinks row (Select)
1336
+ * Database table: magic_links
1337
+ */
1338
+ export declare const MagicLinksRowContract: import("../index.js").Contract<{
1339
+ id: string;
1340
+ userId: string;
1341
+ tokenHash: string;
1342
+ tokenSalt: string;
1343
+ expiresAt: Date;
1344
+ usedAt: Date | null;
1345
+ createdAt: Date;
1346
+ }>;
1347
+ /**
1348
+ * Contract for magicLinks insert
1349
+ * Database table: magic_links
1350
+ */
1351
+ export declare const MagicLinksInsertContract: import("../index.js").Contract<{
1352
+ id: string;
1353
+ userId: string;
1354
+ tokenHash: string;
1355
+ tokenSalt: string;
1356
+ expiresAt: Date;
1357
+ usedAt?: Date | null | undefined;
1358
+ createdAt?: Date | undefined;
1359
+ }>;
1360
+ /**
1361
+ * Contract for marketplaceServers row (Select)
1362
+ * Database table: marketplace_servers
1363
+ */
1364
+ export declare const MarketplaceServersRowContract: import("../index.js").Contract<{
1365
+ id: string;
1366
+ name: string;
1367
+ description: string;
1368
+ url: string;
1369
+ category: string;
1370
+ tags: string[];
1371
+ pricePerCallUsdc: string;
1372
+ developerId: string;
1373
+ stripeAccountId: string | null;
1374
+ status: string;
1375
+ callCount: number;
1376
+ metadata: Record<string, unknown> | null;
1377
+ createdAt: Date;
1378
+ updatedAt: Date;
1379
+ }>;
1380
+ /**
1381
+ * Contract for marketplaceServers insert
1382
+ * Database table: marketplace_servers
1383
+ */
1384
+ export declare const MarketplaceServersInsertContract: import("../index.js").Contract<{
1385
+ id: string;
1386
+ name: string;
1387
+ description: string;
1388
+ url: string;
1389
+ developerId: string;
1390
+ category?: string | undefined;
1391
+ tags?: string[] | undefined;
1392
+ pricePerCallUsdc?: string | undefined;
1393
+ stripeAccountId?: string | null | undefined;
1394
+ status?: string | undefined;
1395
+ callCount?: number | undefined;
1396
+ metadata?: Record<string, unknown> | null | undefined;
1397
+ createdAt?: Date | undefined;
1398
+ updatedAt?: Date | undefined;
1399
+ }>;
1400
+ /**
1401
+ * Contract for marketplaceTransactions row (Select)
1402
+ * Database table: marketplace_transactions
1403
+ */
1404
+ export declare const MarketplaceTransactionsRowContract: import("../index.js").Contract<{
1405
+ id: string;
1406
+ serverId: string;
1407
+ callerId: string | null;
1408
+ amountUsdc: string;
1409
+ platformFeeUsdc: string;
1410
+ developerAmountUsdc: string;
1411
+ stripeTransferId: string | null;
1412
+ paymentMethod: string;
1413
+ status: string;
1414
+ metadata: Record<string, unknown> | null;
1415
+ createdAt: Date;
1416
+ }>;
1417
+ /**
1418
+ * Contract for marketplaceTransactions insert
1419
+ * Database table: marketplace_transactions
1420
+ */
1421
+ export declare const MarketplaceTransactionsInsertContract: import("../index.js").Contract<{
1422
+ id: string;
1423
+ serverId: string;
1424
+ amountUsdc: string;
1425
+ platformFeeUsdc: string;
1426
+ developerAmountUsdc: string;
1427
+ callerId?: string | null | undefined;
1428
+ stripeTransferId?: string | null | undefined;
1429
+ paymentMethod?: string | undefined;
1430
+ status?: string | undefined;
1431
+ metadata?: Record<string, unknown> | null | undefined;
1432
+ createdAt?: Date | undefined;
827
1433
  }>;
828
1434
  /**
829
1435
  * Contract for media row (Select)
@@ -832,6 +1438,7 @@ export declare const LicensesInsertContract: import("../index.js").Contract<{
832
1438
  export declare const MediaRowContract: import("../index.js").Contract<{
833
1439
  id: string;
834
1440
  schemaVersion: string;
1441
+ version: number;
835
1442
  filename: string;
836
1443
  mimeType: string;
837
1444
  filesize: number | null;
@@ -844,6 +1451,7 @@ export declare const MediaRowContract: import("../index.js").Contract<{
844
1451
  uploadedBy: string | null;
845
1452
  createdAt: Date;
846
1453
  updatedAt: Date;
1454
+ deletedAt: Date | null;
847
1455
  }>;
848
1456
  /**
849
1457
  * Contract for media insert
@@ -855,6 +1463,7 @@ export declare const MediaInsertContract: import("../index.js").Contract<{
855
1463
  mimeType: string;
856
1464
  url: string;
857
1465
  schemaVersion?: string | undefined;
1466
+ version?: number | undefined;
858
1467
  filesize?: number | null | undefined;
859
1468
  alt?: string | null | undefined;
860
1469
  width?: number | null | undefined;
@@ -864,6 +1473,7 @@ export declare const MediaInsertContract: import("../index.js").Contract<{
864
1473
  uploadedBy?: string | null | undefined;
865
1474
  createdAt?: Date | undefined;
866
1475
  updatedAt?: Date | undefined;
1476
+ deletedAt?: Date | null | undefined;
867
1477
  }>;
868
1478
  /**
869
1479
  * Contract for messages row (Select)
@@ -925,6 +1535,8 @@ export declare const OauthAccountsRowContract: import("../index.js").Contract<{
925
1535
  providerAvatarUrl: string | null;
926
1536
  createdAt: Date;
927
1537
  updatedAt: Date;
1538
+ deletedAt: Date | null;
1539
+ anonymizedAt: Date | null;
928
1540
  }>;
929
1541
  /**
930
1542
  * Contract for oauthAccounts insert
@@ -940,6 +1552,54 @@ export declare const OauthAccountsInsertContract: import("../index.js").Contract
940
1552
  providerAvatarUrl?: string | null | undefined;
941
1553
  createdAt?: Date | undefined;
942
1554
  updatedAt?: Date | undefined;
1555
+ deletedAt?: Date | null | undefined;
1556
+ anonymizedAt?: Date | null | undefined;
1557
+ }>;
1558
+ /**
1559
+ * Contract for orders row (Select)
1560
+ * Database table: orders
1561
+ */
1562
+ export declare const OrdersRowContract: import("../index.js").Contract<{
1563
+ id: string;
1564
+ customerId: string;
1565
+ status: string;
1566
+ totalInCents: number;
1567
+ currency: string;
1568
+ stripePaymentIntentId: string | null;
1569
+ stripeCheckoutSessionId: string | null;
1570
+ items: {
1571
+ productId: string;
1572
+ title: string;
1573
+ quantity: number;
1574
+ priceInCents: number;
1575
+ }[];
1576
+ shippingAddress: import("drizzle-zod").Json;
1577
+ metadata: import("drizzle-zod").Json;
1578
+ createdAt: Date;
1579
+ updatedAt: Date;
1580
+ }>;
1581
+ /**
1582
+ * Contract for orders insert
1583
+ * Database table: orders
1584
+ */
1585
+ export declare const OrdersInsertContract: import("../index.js").Contract<{
1586
+ id: string;
1587
+ customerId: string;
1588
+ status?: string | undefined;
1589
+ totalInCents?: number | undefined;
1590
+ currency?: string | undefined;
1591
+ stripePaymentIntentId?: string | null | undefined;
1592
+ stripeCheckoutSessionId?: string | null | undefined;
1593
+ items?: {
1594
+ productId: string;
1595
+ title: string;
1596
+ quantity: number;
1597
+ priceInCents: number;
1598
+ }[] | undefined;
1599
+ shippingAddress?: import("drizzle-zod").Json | undefined;
1600
+ metadata?: import("drizzle-zod").Json | undefined;
1601
+ createdAt?: Date | undefined;
1602
+ updatedAt?: Date | undefined;
943
1603
  }>;
944
1604
  /**
945
1605
  * Contract for pageRevisions row (Select)
@@ -978,6 +1638,7 @@ export declare const PageRevisionsInsertContract: import("../index.js").Contract
978
1638
  export declare const PagesRowContract: import("../index.js").Contract<{
979
1639
  id: string;
980
1640
  schemaVersion: string;
1641
+ version: number;
981
1642
  siteId: string;
982
1643
  parentId: string | null;
983
1644
  templateId: string | null;
@@ -994,6 +1655,7 @@ export declare const PagesRowContract: import("../index.js").Contract<{
994
1655
  createdAt: Date;
995
1656
  updatedAt: Date;
996
1657
  publishedAt: Date | null;
1658
+ deletedAt: Date | null;
997
1659
  }>;
998
1660
  /**
999
1661
  * Contract for pages insert
@@ -1006,6 +1668,7 @@ export declare const PagesInsertContract: import("../index.js").Contract<{
1006
1668
  slug: string;
1007
1669
  path: string;
1008
1670
  schemaVersion?: string | undefined;
1671
+ version?: number | undefined;
1009
1672
  parentId?: string | null | undefined;
1010
1673
  templateId?: string | null | undefined;
1011
1674
  status?: string | undefined;
@@ -1018,6 +1681,41 @@ export declare const PagesInsertContract: import("../index.js").Contract<{
1018
1681
  createdAt?: Date | undefined;
1019
1682
  updatedAt?: Date | undefined;
1020
1683
  publishedAt?: Date | null | undefined;
1684
+ deletedAt?: Date | null | undefined;
1685
+ }>;
1686
+ /**
1687
+ * Contract for passkeys row (Select)
1688
+ * Database table: passkeys
1689
+ */
1690
+ export declare const PasskeysRowContract: import("../index.js").Contract<{
1691
+ id: string;
1692
+ userId: string;
1693
+ credentialId: string;
1694
+ publicKey: Buffer<ArrayBufferLike>;
1695
+ counter: number;
1696
+ transports: string[] | null;
1697
+ aaguid: string | null;
1698
+ deviceName: string | null;
1699
+ backedUp: boolean;
1700
+ createdAt: Date;
1701
+ lastUsedAt: Date | null;
1702
+ }>;
1703
+ /**
1704
+ * Contract for passkeys insert
1705
+ * Database table: passkeys
1706
+ */
1707
+ export declare const PasskeysInsertContract: import("../index.js").Contract<{
1708
+ id: string;
1709
+ userId: string;
1710
+ credentialId: string;
1711
+ publicKey: Buffer<ArrayBufferLike>;
1712
+ counter?: number | undefined;
1713
+ transports?: string[] | null | undefined;
1714
+ aaguid?: string | null | undefined;
1715
+ deviceName?: string | null | undefined;
1716
+ backedUp?: boolean | undefined;
1717
+ createdAt?: Date | undefined;
1718
+ lastUsedAt?: Date | null | undefined;
1021
1719
  }>;
1022
1720
  /**
1023
1721
  * Contract for passwordResetTokens row (Select)
@@ -1052,6 +1750,7 @@ export declare const PasswordResetTokensInsertContract: import("../index.js").Co
1052
1750
  export declare const PostsRowContract: import("../index.js").Contract<{
1053
1751
  id: string;
1054
1752
  schemaVersion: string;
1753
+ version: number;
1055
1754
  title: string;
1056
1755
  slug: string;
1057
1756
  excerpt: string | null;
@@ -1065,6 +1764,7 @@ export declare const PostsRowContract: import("../index.js").Contract<{
1065
1764
  createdAt: Date;
1066
1765
  updatedAt: Date;
1067
1766
  publishedAt: Date | null;
1767
+ deletedAt: Date | null;
1068
1768
  }>;
1069
1769
  /**
1070
1770
  * Contract for posts insert
@@ -1075,6 +1775,7 @@ export declare const PostsInsertContract: import("../index.js").Contract<{
1075
1775
  title: string;
1076
1776
  slug: string;
1077
1777
  schemaVersion?: string | undefined;
1778
+ version?: number | undefined;
1078
1779
  excerpt?: string | null | undefined;
1079
1780
  content?: import("drizzle-zod").Json | undefined;
1080
1781
  featuredImageId?: string | null | undefined;
@@ -1086,6 +1787,7 @@ export declare const PostsInsertContract: import("../index.js").Contract<{
1086
1787
  createdAt?: Date | undefined;
1087
1788
  updatedAt?: Date | undefined;
1088
1789
  publishedAt?: Date | null | undefined;
1790
+ deletedAt?: Date | null | undefined;
1089
1791
  }>;
1090
1792
  /**
1091
1793
  * Contract for processedWebhookEvents row (Select)
@@ -1105,6 +1807,50 @@ export declare const ProcessedWebhookEventsInsertContract: import("../index.js")
1105
1807
  eventType: string;
1106
1808
  processedAt?: Date | undefined;
1107
1809
  }>;
1810
+ /**
1811
+ * Contract for products row (Select)
1812
+ * Database table: products
1813
+ */
1814
+ export declare const ProductsRowContract: import("../index.js").Contract<{
1815
+ id: string;
1816
+ title: string;
1817
+ slug: string;
1818
+ description: string | null;
1819
+ priceInCents: number | null;
1820
+ currency: string;
1821
+ stripeProductId: string | null;
1822
+ stripePriceId: string | null;
1823
+ active: boolean;
1824
+ status: string;
1825
+ images: string[] | null;
1826
+ metadata: import("drizzle-zod").Json;
1827
+ ownerId: string | null;
1828
+ createdAt: Date;
1829
+ updatedAt: Date;
1830
+ deletedAt: Date | null;
1831
+ }>;
1832
+ /**
1833
+ * Contract for products insert
1834
+ * Database table: products
1835
+ */
1836
+ export declare const ProductsInsertContract: import("../index.js").Contract<{
1837
+ id: string;
1838
+ title: string;
1839
+ slug: string;
1840
+ description?: string | null | undefined;
1841
+ priceInCents?: number | null | undefined;
1842
+ currency?: string | undefined;
1843
+ stripeProductId?: string | null | undefined;
1844
+ stripePriceId?: string | null | undefined;
1845
+ active?: boolean | undefined;
1846
+ status?: string | undefined;
1847
+ images?: string[] | null | undefined;
1848
+ metadata?: import("drizzle-zod").Json | undefined;
1849
+ ownerId?: string | null | undefined;
1850
+ createdAt?: Date | undefined;
1851
+ updatedAt?: Date | undefined;
1852
+ deletedAt?: Date | null | undefined;
1853
+ }>;
1108
1854
  /**
1109
1855
  * Contract for ragChunks row (Select)
1110
1856
  * Database table: rag_chunks
@@ -1319,6 +2065,58 @@ export declare const RegisteredAgentsInsertContract: import("../index.js").Contr
1319
2065
  createdAt?: Date | undefined;
1320
2066
  updatedAt?: Date | undefined;
1321
2067
  }>;
2068
+ /**
2069
+ * Contract for revealcoinPayments row (Select)
2070
+ * Database table: revealcoin_payments
2071
+ */
2072
+ export declare const RevealcoinPaymentsRowContract: import("../index.js").Contract<{
2073
+ id: string;
2074
+ txSignature: string;
2075
+ walletAddress: string;
2076
+ userId: string;
2077
+ amountRvui: string;
2078
+ amountUsd: string;
2079
+ discountUsd: string;
2080
+ purpose: string;
2081
+ status: string;
2082
+ createdAt: Date;
2083
+ }>;
2084
+ /**
2085
+ * Contract for revealcoinPayments insert
2086
+ * Database table: revealcoin_payments
2087
+ */
2088
+ export declare const RevealcoinPaymentsInsertContract: import("../index.js").Contract<{
2089
+ id: string;
2090
+ txSignature: string;
2091
+ walletAddress: string;
2092
+ userId: string;
2093
+ amountRvui: string;
2094
+ amountUsd: string;
2095
+ purpose: string;
2096
+ discountUsd?: string | undefined;
2097
+ status?: string | undefined;
2098
+ createdAt?: Date | undefined;
2099
+ }>;
2100
+ /**
2101
+ * Contract for revealcoinPriceSnapshots row (Select)
2102
+ * Database table: revealcoin_price_snapshots
2103
+ */
2104
+ export declare const RevealcoinPriceSnapshotsRowContract: import("../index.js").Contract<{
2105
+ id: string;
2106
+ priceUsd: string;
2107
+ source: string;
2108
+ recordedAt: Date;
2109
+ }>;
2110
+ /**
2111
+ * Contract for revealcoinPriceSnapshots insert
2112
+ * Database table: revealcoin_price_snapshots
2113
+ */
2114
+ export declare const RevealcoinPriceSnapshotsInsertContract: import("../index.js").Contract<{
2115
+ id: string;
2116
+ priceUsd: string;
2117
+ source: string;
2118
+ recordedAt?: Date | undefined;
2119
+ }>;
1322
2120
  /**
1323
2121
  * Contract for sessions row (Select)
1324
2122
  * Database table: sessions
@@ -1331,9 +2129,11 @@ export declare const SessionsRowContract: import("../index.js").Contract<{
1331
2129
  userAgent: string | null;
1332
2130
  ipAddress: string | null;
1333
2131
  persistent: boolean | null;
2132
+ metadata: Record<string, unknown> | null;
1334
2133
  lastActivityAt: Date;
1335
2134
  createdAt: Date;
1336
2135
  expiresAt: Date;
2136
+ deletedAt: Date | null;
1337
2137
  }>;
1338
2138
  /**
1339
2139
  * Contract for sessions insert
@@ -1348,8 +2148,10 @@ export declare const SessionsInsertContract: import("../index.js").Contract<{
1348
2148
  userAgent?: string | null | undefined;
1349
2149
  ipAddress?: string | null | undefined;
1350
2150
  persistent?: boolean | null | undefined;
2151
+ metadata?: Record<string, unknown> | null | undefined;
1351
2152
  lastActivityAt?: Date | undefined;
1352
2153
  createdAt?: Date | undefined;
2154
+ deletedAt?: Date | null | undefined;
1353
2155
  }>;
1354
2156
  /**
1355
2157
  * Contract for siteCollaborators row (Select)
@@ -1382,6 +2184,7 @@ export declare const SiteCollaboratorsInsertContract: import("../index.js").Cont
1382
2184
  export declare const SitesRowContract: import("../index.js").Contract<{
1383
2185
  id: string;
1384
2186
  schemaVersion: string;
2187
+ version: number;
1385
2188
  ownerId: string;
1386
2189
  name: string;
1387
2190
  slug: string;
@@ -1394,6 +2197,7 @@ export declare const SitesRowContract: import("../index.js").Contract<{
1394
2197
  createdAt: Date;
1395
2198
  updatedAt: Date;
1396
2199
  publishedAt: Date | null;
2200
+ deletedAt: Date | null;
1397
2201
  }>;
1398
2202
  /**
1399
2203
  * Contract for sites insert
@@ -1405,6 +2209,7 @@ export declare const SitesInsertContract: import("../index.js").Contract<{
1405
2209
  name: string;
1406
2210
  slug: string;
1407
2211
  schemaVersion?: string | undefined;
2212
+ version?: number | undefined;
1408
2213
  description?: string | null | undefined;
1409
2214
  status?: string | undefined;
1410
2215
  theme?: import("drizzle-zod").Json | undefined;
@@ -1414,6 +2219,7 @@ export declare const SitesInsertContract: import("../index.js").Contract<{
1414
2219
  createdAt?: Date | undefined;
1415
2220
  updatedAt?: Date | undefined;
1416
2221
  publishedAt?: Date | null | undefined;
2222
+ deletedAt?: Date | null | undefined;
1417
2223
  }>;
1418
2224
  /**
1419
2225
  * Contract for syncMetadata row (Select)
@@ -1471,6 +2277,42 @@ export declare const TenantProviderConfigsInsertContract: import("../index.js").
1471
2277
  createdAt?: Date | undefined;
1472
2278
  updatedAt?: Date | undefined;
1473
2279
  }>;
2280
+ /**
2281
+ * Contract for tenants row (Select)
2282
+ * Database table: tenants
2283
+ */
2284
+ export declare const TenantsRowContract: import("../index.js").Contract<{
2285
+ id: string;
2286
+ schemaVersion: string;
2287
+ name: string;
2288
+ email: string;
2289
+ password: string | null;
2290
+ roles: string[];
2291
+ domains: {
2292
+ domain: string;
2293
+ }[];
2294
+ _json: import("drizzle-zod").Json;
2295
+ createdAt: Date;
2296
+ updatedAt: Date;
2297
+ }>;
2298
+ /**
2299
+ * Contract for tenants insert
2300
+ * Database table: tenants
2301
+ */
2302
+ export declare const TenantsInsertContract: import("../index.js").Contract<{
2303
+ id: string;
2304
+ name: string;
2305
+ email: string;
2306
+ schemaVersion?: string | undefined;
2307
+ password?: string | null | undefined;
2308
+ roles?: string[] | undefined;
2309
+ domains?: {
2310
+ domain: string;
2311
+ }[] | undefined;
2312
+ _json?: import("drizzle-zod").Json | undefined;
2313
+ createdAt?: Date | undefined;
2314
+ updatedAt?: Date | undefined;
2315
+ }>;
1474
2316
  /**
1475
2317
  * Contract for ticketComments row (Select)
1476
2318
  * Database table: ticket_comments
@@ -1609,6 +2451,36 @@ export declare const TicketsInsertContract: import("../index.js").Contract<{
1609
2451
  createdAt?: Date | undefined;
1610
2452
  updatedAt?: Date | undefined;
1611
2453
  }>;
2454
+ /**
2455
+ * Contract for usageMeters row (Select)
2456
+ * Database table: usage_meters
2457
+ */
2458
+ export declare const UsageMetersRowContract: import("../index.js").Contract<{
2459
+ id: string;
2460
+ accountId: string;
2461
+ meterName: string;
2462
+ quantity: number;
2463
+ periodStart: Date;
2464
+ periodEnd: Date | null;
2465
+ source: string;
2466
+ idempotencyKey: string;
2467
+ createdAt: Date;
2468
+ }>;
2469
+ /**
2470
+ * Contract for usageMeters insert
2471
+ * Database table: usage_meters
2472
+ */
2473
+ export declare const UsageMetersInsertContract: import("../index.js").Contract<{
2474
+ id: string;
2475
+ accountId: string;
2476
+ meterName: string;
2477
+ periodStart: Date;
2478
+ idempotencyKey: string;
2479
+ quantity?: number | undefined;
2480
+ periodEnd?: Date | null | undefined;
2481
+ source?: string | undefined;
2482
+ createdAt?: Date | undefined;
2483
+ }>;
1612
2484
  /**
1613
2485
  * Contract for userApiKeys row (Select)
1614
2486
  * Database table: user_api_keys
@@ -1623,6 +2495,7 @@ export declare const UserApiKeysRowContract: import("../index.js").Contract<{
1623
2495
  createdAt: Date;
1624
2496
  updatedAt: Date;
1625
2497
  lastUsedAt: Date | null;
2498
+ deletedAt: Date | null;
1626
2499
  }>;
1627
2500
  /**
1628
2501
  * Contract for userApiKeys insert
@@ -1638,6 +2511,7 @@ export declare const UserApiKeysInsertContract: import("../index.js").Contract<{
1638
2511
  createdAt?: Date | undefined;
1639
2512
  updatedAt?: Date | undefined;
1640
2513
  lastUsedAt?: Date | null | undefined;
2514
+ deletedAt?: Date | null | undefined;
1641
2515
  }>;
1642
2516
  /**
1643
2517
  * Contract for userDevices row (Select)
@@ -1650,6 +2524,9 @@ export declare const UserDevicesRowContract: import("../index.js").Contract<{
1650
2524
  deviceName: string | null;
1651
2525
  deviceType: string | null;
1652
2526
  userAgent: string | null;
2527
+ tokenHash: string | null;
2528
+ tokenExpiresAt: Date | null;
2529
+ tokenIssuedAt: Date | null;
1653
2530
  lastSeen: Date | null;
1654
2531
  isActive: boolean | null;
1655
2532
  createdAt: Date;
@@ -1666,6 +2543,9 @@ export declare const UserDevicesInsertContract: import("../index.js").Contract<{
1666
2543
  deviceName?: string | null | undefined;
1667
2544
  deviceType?: string | null | undefined;
1668
2545
  userAgent?: string | null | undefined;
2546
+ tokenHash?: string | null | undefined;
2547
+ tokenExpiresAt?: Date | null | undefined;
2548
+ tokenIssuedAt?: Date | null | undefined;
1669
2549
  lastSeen?: Date | null | undefined;
1670
2550
  isActive?: boolean | null | undefined;
1671
2551
  createdAt?: Date | undefined;
@@ -1695,10 +2575,17 @@ export declare const UsersRowContract: import("../index.js").Contract<{
1695
2575
  tosAcceptedAt: Date | null;
1696
2576
  tosVersion: string | null;
1697
2577
  stripeCustomerId: string | null;
2578
+ mfaEnabled: boolean;
2579
+ mfaSecret: string | null;
2580
+ mfaBackupCodes: string[] | null;
2581
+ mfaVerifiedAt: Date | null;
2582
+ sshKeyFingerprint: string | null;
1698
2583
  preferences: import("drizzle-zod").Json;
1699
2584
  createdAt: Date;
1700
2585
  updatedAt: Date;
1701
2586
  lastActiveAt: Date | null;
2587
+ deletedAt: Date | null;
2588
+ anonymizedAt: Date | null;
1702
2589
  _json: import("drizzle-zod").Json;
1703
2590
  }>;
1704
2591
  /**
@@ -1725,10 +2612,17 @@ export declare const UsersInsertContract: import("../index.js").Contract<{
1725
2612
  tosAcceptedAt?: Date | null | undefined;
1726
2613
  tosVersion?: string | null | undefined;
1727
2614
  stripeCustomerId?: string | null | undefined;
2615
+ mfaEnabled?: boolean | undefined;
2616
+ mfaSecret?: string | null | undefined;
2617
+ mfaBackupCodes?: string[] | null | undefined;
2618
+ mfaVerifiedAt?: Date | null | undefined;
2619
+ sshKeyFingerprint?: string | null | undefined;
1728
2620
  preferences?: import("drizzle-zod").Json | undefined;
1729
2621
  createdAt?: Date | undefined;
1730
2622
  updatedAt?: Date | undefined;
1731
2623
  lastActiveAt?: Date | null | undefined;
2624
+ deletedAt?: Date | null | undefined;
2625
+ anonymizedAt?: Date | null | undefined;
1732
2626
  _json?: import("drizzle-zod").Json | undefined;
1733
2627
  }>;
1734
2628
  /**