@hexclave/shared 1.0.45 → 1.0.47

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 (125) hide show
  1. package/dist/{admin-interface-B-UjGQ0i.d.ts → admin-interface-DH4uLcZ3.d.ts} +11 -11
  2. package/dist/{admin-interface-B-UjGQ0i.d.ts.map → admin-interface-DH4uLcZ3.d.ts.map} +1 -1
  3. package/dist/{admin-metrics-1yiWGq9z.d.ts → admin-metrics-pphx-0AE.d.ts} +11 -11
  4. package/dist/{admin-metrics-1yiWGq9z.d.ts.map → admin-metrics-pphx-0AE.d.ts.map} +1 -1
  5. package/dist/ai/unified-prompts/reminders.js +2 -1
  6. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  7. package/dist/{client-interface-DjVtlQix.d.ts → client-interface-BmHWUJhv.d.ts} +10 -10
  8. package/dist/{client-interface-DjVtlQix.d.ts.map → client-interface-BmHWUJhv.d.ts.map} +1 -1
  9. package/dist/config/schema.d.ts +1 -1
  10. package/dist/config-authoring.d.ts +1 -1
  11. package/dist/{current-user-BCkMYzHx.d.ts → current-user-Dvf8Ttjo.d.ts} +15 -15
  12. package/dist/{current-user-BCkMYzHx.d.ts.map → current-user-Dvf8Ttjo.d.ts.map} +1 -1
  13. package/dist/dates-BRAvSk6L.d.ts +40 -0
  14. package/dist/{dates-B6ne9iOR.d.ts.map → dates-BRAvSk6L.d.ts.map} +1 -1
  15. package/dist/{email-outbox-BRZiK0ZG.d.ts → email-outbox-DoxRUJop.d.ts} +179 -179
  16. package/dist/{email-outbox-BRZiK0ZG.d.ts.map → email-outbox-DoxRUJop.d.ts.map} +1 -1
  17. package/dist/esm/ai/unified-prompts/reminders.js +1 -1
  18. package/dist/esm/config/schema.d.ts +92 -92
  19. package/dist/esm/interface/admin-interface.js +1 -1
  20. package/dist/esm/interface/admin-metrics.d.ts +10 -10
  21. package/dist/esm/interface/client-interface.js +1 -1
  22. package/dist/esm/interface/conversations.d.ts +7 -7
  23. package/dist/esm/interface/crud/current-user.d.ts +14 -14
  24. package/dist/esm/interface/crud/email-outbox.d.ts +178 -178
  25. package/dist/esm/interface/crud/invoices.d.ts +1 -1
  26. package/dist/esm/interface/crud/products.d.ts +21 -21
  27. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  28. package/dist/esm/interface/crud/projects.d.ts +16 -16
  29. package/dist/esm/interface/crud/team-member-profiles.d.ts +22 -22
  30. package/dist/esm/interface/crud/transactions.d.ts +17 -17
  31. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  32. package/dist/esm/interface/crud/users.d.ts +12 -12
  33. package/dist/esm/interface/plan-usage.d.ts +3 -1
  34. package/dist/esm/interface/plan-usage.d.ts.map +1 -1
  35. package/dist/esm/interface/plan-usage.js +1 -0
  36. package/dist/esm/interface/plan-usage.js.map +1 -1
  37. package/dist/esm/interface/server-interface.js +1 -1
  38. package/dist/esm/interface/webhooks.d.ts +2 -2
  39. package/dist/esm/known-errors.d.ts +3 -3
  40. package/dist/esm/schema-fields.d.ts +12 -12
  41. package/dist/esm/schema-fields.d.ts.map +1 -1
  42. package/dist/esm/schema-fields.js +2 -2
  43. package/dist/esm/schema-fields.js.map +1 -1
  44. package/dist/esm/sessions.d.ts +9 -9
  45. package/dist/esm/utils/currencies.d.ts +16 -1
  46. package/dist/esm/utils/currencies.d.ts.map +1 -1
  47. package/dist/esm/utils/currencies.js +24 -1
  48. package/dist/esm/utils/currencies.js.map +1 -1
  49. package/dist/esm/utils/dates.d.ts +18 -1
  50. package/dist/esm/utils/dates.d.ts.map +1 -1
  51. package/dist/esm/utils/dates.js +36 -15
  52. package/dist/esm/utils/dates.js.map +1 -1
  53. package/dist/helpers/password.d.ts +1 -1
  54. package/dist/helpers/production-mode.d.ts +1 -1
  55. package/dist/index.d.ts +4 -4
  56. package/dist/interface/admin-interface.d.ts +2 -2
  57. package/dist/interface/admin-interface.js +1 -1
  58. package/dist/interface/admin-metrics.d.ts +1 -1
  59. package/dist/interface/client-interface.d.ts +1 -1
  60. package/dist/interface/client-interface.js +1 -1
  61. package/dist/interface/conversations.d.ts +7 -7
  62. package/dist/interface/crud/current-user.d.ts +1 -1
  63. package/dist/interface/crud/email-outbox.d.ts +1 -1
  64. package/dist/interface/crud/invoices.d.ts +1 -1
  65. package/dist/interface/crud/products.d.ts +1 -1
  66. package/dist/interface/crud/project-api-keys.d.ts +1 -1
  67. package/dist/interface/crud/projects.d.ts +1 -1
  68. package/dist/interface/crud/team-member-profiles.d.ts +1 -1
  69. package/dist/interface/crud/transactions.d.ts +1 -1
  70. package/dist/interface/crud/users.d.ts +1 -1
  71. package/dist/interface/plan-usage.d.ts +1 -1
  72. package/dist/interface/plan-usage.js +1 -0
  73. package/dist/interface/plan-usage.js.map +1 -1
  74. package/dist/interface/server-interface.d.ts +1 -1
  75. package/dist/interface/server-interface.js +1 -1
  76. package/dist/interface/webhooks.d.ts +1 -1
  77. package/dist/{invoices-BGLLnTlR.d.ts → invoices-U65KzAZX.d.ts} +2 -2
  78. package/dist/{invoices-BGLLnTlR.d.ts.map → invoices-U65KzAZX.d.ts.map} +1 -1
  79. package/dist/{known-errors-g7JC8z58.d.ts → known-errors-Bm4a61wL.d.ts} +4 -4
  80. package/dist/{known-errors-g7JC8z58.d.ts.map → known-errors-Bm4a61wL.d.ts.map} +1 -1
  81. package/dist/known-errors.d.ts +1 -1
  82. package/dist/{plan-usage-BigvGIcT.d.ts → plan-usage-BaDxcLZ1.d.ts} +4 -2
  83. package/dist/plan-usage-BaDxcLZ1.d.ts.map +1 -0
  84. package/dist/{products-D_fcxfR0.d.ts → products-D4o8A2W0.d.ts} +23 -23
  85. package/dist/{products-D_fcxfR0.d.ts.map → products-D4o8A2W0.d.ts.map} +1 -1
  86. package/dist/{project-api-keys-OQqmKtMS.d.ts → project-api-keys--7V5X_UW.d.ts} +5 -5
  87. package/dist/{project-api-keys-OQqmKtMS.d.ts.map → project-api-keys--7V5X_UW.d.ts.map} +1 -1
  88. package/dist/{projects-C42SVFvm.d.ts → projects-dH9I0bcX.d.ts} +17 -17
  89. package/dist/{projects-C42SVFvm.d.ts.map → projects-dH9I0bcX.d.ts.map} +1 -1
  90. package/dist/{schema-Bgy-GC70.d.ts → schema-BSb4tzx3.d.ts} +94 -94
  91. package/dist/{schema-Bgy-GC70.d.ts.map → schema-BSb4tzx3.d.ts.map} +1 -1
  92. package/dist/{schema-fields-BljhsWsa.d.ts → schema-fields-DZtDQEEO.d.ts} +14 -14
  93. package/dist/schema-fields-DZtDQEEO.d.ts.map +1 -0
  94. package/dist/schema-fields.d.ts +1 -1
  95. package/dist/schema-fields.js +2 -2
  96. package/dist/schema-fields.js.map +1 -1
  97. package/dist/{server-interface-C1W1tZ_y.d.ts → server-interface-CxorzgTW.d.ts} +8 -8
  98. package/dist/{server-interface-C1W1tZ_y.d.ts.map → server-interface-CxorzgTW.d.ts.map} +1 -1
  99. package/dist/{sessions-C0nM8bE_.d.ts → sessions-CI-0TBQb.d.ts} +11 -11
  100. package/dist/{sessions-C0nM8bE_.d.ts.map → sessions-CI-0TBQb.d.ts.map} +1 -1
  101. package/dist/sessions.d.ts +1 -1
  102. package/dist/{team-member-profiles-CgYXR-Rx.d.ts → team-member-profiles-uTluO8XI.d.ts} +23 -23
  103. package/dist/{team-member-profiles-CgYXR-Rx.d.ts.map → team-member-profiles-uTluO8XI.d.ts.map} +1 -1
  104. package/dist/{transactions-BomBBiph.d.ts → transactions-CHNUJ42J.d.ts} +19 -19
  105. package/dist/transactions-CHNUJ42J.d.ts.map +1 -0
  106. package/dist/{users-7MKfEyyq.d.ts → users-CmBBuF00.d.ts} +14 -14
  107. package/dist/{users-7MKfEyyq.d.ts.map → users-CmBBuF00.d.ts.map} +1 -1
  108. package/dist/utils/currencies.d.ts +16 -1
  109. package/dist/utils/currencies.d.ts.map +1 -1
  110. package/dist/utils/currencies.js +24 -0
  111. package/dist/utils/currencies.js.map +1 -1
  112. package/dist/utils/dates.d.ts +2 -2
  113. package/dist/utils/dates.js +36 -14
  114. package/dist/utils/dates.js.map +1 -1
  115. package/dist/{webhooks-C5gG85Ce.d.ts → webhooks-ByXrdSOx.d.ts} +3 -3
  116. package/dist/{webhooks-C5gG85Ce.d.ts.map → webhooks-ByXrdSOx.d.ts.map} +1 -1
  117. package/package.json +1 -1
  118. package/src/interface/plan-usage.ts +1 -0
  119. package/src/schema-fields.ts +13 -2
  120. package/src/utils/currencies.tsx +69 -0
  121. package/src/utils/dates.tsx +104 -15
  122. package/dist/dates-B6ne9iOR.d.ts +0 -23
  123. package/dist/plan-usage-BigvGIcT.d.ts.map +0 -1
  124. package/dist/schema-fields-BljhsWsa.d.ts.map +0 -1
  125. package/dist/transactions-BomBBiph.d.ts.map +0 -1
@@ -15,8 +15,8 @@ declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
15
15
  type CustomerInvoiceRead = yup$1.InferType<typeof customerInvoiceReadSchema>;
16
16
  declare const customerInvoicesListResponseSchema: yup$1.ObjectSchema<{
17
17
  items: {
18
- created_at_millis: number;
19
18
  status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
19
+ created_at_millis: number;
20
20
  amount_total: number;
21
21
  hosted_invoice_url: string | null;
22
22
  }[];
@@ -5,16 +5,14 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
5
5
  id: string | null;
6
6
  quantity: number;
7
7
  product: {
8
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
8
9
  client_metadata?: {} | null | undefined;
9
10
  client_read_only_metadata?: {} | null | undefined;
10
11
  server_metadata?: {} | null | undefined;
11
- free_trial?: import("../../utils/dates").DayInterval | undefined;
12
- display_name: string;
13
12
  server_only: boolean;
14
- customer_type: "user" | "team" | "custom";
13
+ customer_type: "team" | "user" | "custom";
15
14
  stackable: boolean;
16
15
  prices: Record<string, {
17
- free_trial?: import("../../utils/dates").DayInterval | undefined;
18
16
  USD?: string | undefined;
19
17
  EUR?: string | undefined;
20
18
  GBP?: string | undefined;
@@ -23,10 +21,12 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
23
21
  AUD?: string | undefined;
24
22
  CAD?: string | undefined;
25
23
  interval?: import("../../utils/dates").DayInterval | undefined;
24
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
26
25
  }>;
26
+ display_name: string;
27
27
  included_items: Record<string, {
28
- repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
29
28
  quantity?: number | undefined;
29
+ repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
30
30
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
31
31
  }>;
32
32
  };
@@ -40,16 +40,14 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
40
40
  switch_options: {
41
41
  product_id: string;
42
42
  product: {
43
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
43
44
  client_metadata?: {} | null | undefined;
44
45
  client_read_only_metadata?: {} | null | undefined;
45
46
  server_metadata?: {} | null | undefined;
46
- free_trial?: import("../../utils/dates").DayInterval | undefined;
47
- display_name: string;
48
47
  server_only: boolean;
49
- customer_type: "user" | "team" | "custom";
48
+ customer_type: "team" | "user" | "custom";
50
49
  stackable: boolean;
51
50
  prices: Record<string, {
52
- free_trial?: import("../../utils/dates").DayInterval | undefined;
53
51
  USD?: string | undefined;
54
52
  EUR?: string | undefined;
55
53
  GBP?: string | undefined;
@@ -58,10 +56,12 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
58
56
  AUD?: string | undefined;
59
57
  CAD?: string | undefined;
60
58
  interval?: import("../../utils/dates").DayInterval | undefined;
59
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
61
60
  }>;
61
+ display_name: string;
62
62
  included_items: Record<string, {
63
- repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
64
63
  quantity?: number | undefined;
64
+ repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
65
65
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
66
66
  }>;
67
67
  };
@@ -103,16 +103,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
103
103
  switch_options?: {
104
104
  product_id: string;
105
105
  product: {
106
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
106
107
  client_metadata?: {} | null | undefined;
107
108
  client_read_only_metadata?: {} | null | undefined;
108
109
  server_metadata?: {} | null | undefined;
109
- free_trial?: import("../../utils/dates").DayInterval | undefined;
110
- display_name: string;
111
110
  server_only: boolean;
112
- customer_type: "user" | "team" | "custom";
111
+ customer_type: "team" | "user" | "custom";
113
112
  stackable: boolean;
114
113
  prices: Record<string, {
115
- free_trial?: import("../../utils/dates").DayInterval | undefined;
116
114
  USD?: string | undefined;
117
115
  EUR?: string | undefined;
118
116
  GBP?: string | undefined;
@@ -121,27 +119,26 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
121
119
  AUD?: string | undefined;
122
120
  CAD?: string | undefined;
123
121
  interval?: import("../../utils/dates").DayInterval | undefined;
122
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
124
123
  }>;
124
+ display_name: string;
125
125
  included_items: Record<string, {
126
- repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
127
126
  quantity?: number | undefined;
127
+ repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
128
128
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
129
129
  }>;
130
130
  };
131
131
  }[] | undefined;
132
- id: string | null;
133
132
  quantity: number;
134
133
  product: {
134
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
135
135
  client_metadata?: {} | null | undefined;
136
136
  client_read_only_metadata?: {} | null | undefined;
137
137
  server_metadata?: {} | null | undefined;
138
- free_trial?: import("../../utils/dates").DayInterval | undefined;
139
- display_name: string;
140
138
  server_only: boolean;
141
- customer_type: "user" | "team" | "custom";
139
+ customer_type: "team" | "user" | "custom";
142
140
  stackable: boolean;
143
141
  prices: Record<string, {
144
- free_trial?: import("../../utils/dates").DayInterval | undefined;
145
142
  USD?: string | undefined;
146
143
  EUR?: string | undefined;
147
144
  GBP?: string | undefined;
@@ -150,13 +147,16 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
150
147
  AUD?: string | undefined;
151
148
  CAD?: string | undefined;
152
149
  interval?: import("../../utils/dates").DayInterval | undefined;
150
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
153
151
  }>;
152
+ display_name: string;
154
153
  included_items: Record<string, {
155
- repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
156
154
  quantity?: number | undefined;
155
+ repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
157
156
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
158
157
  }>;
159
158
  };
159
+ id: string | null;
160
160
  }[];
161
161
  is_paginated: boolean;
162
162
  pagination: {
@@ -78,9 +78,9 @@ declare const userApiKeysCrud: import("../../crud").CrudSchemaFromOptions<{
78
78
  is_public: undefined;
79
79
  user_id: undefined;
80
80
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
81
- description: string;
82
- type: "user";
83
81
  user_id: string;
82
+ type: "user";
83
+ description: string;
84
84
  id: string;
85
85
  created_at_millis: number;
86
86
  expires_at_millis: number | undefined;
@@ -176,11 +176,11 @@ declare const teamApiKeysCrud: import("../../crud").CrudSchemaFromOptions<{
176
176
  is_public: undefined;
177
177
  team_id: undefined;
178
178
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
179
- description: string;
180
179
  type: "team";
180
+ team_id: string;
181
+ description: string;
181
182
  id: string;
182
183
  created_at_millis: number;
183
- team_id: string;
184
184
  expires_at_millis: number | undefined;
185
185
  manually_revoked_at_millis: number | undefined;
186
186
  is_public: boolean;
@@ -2,7 +2,7 @@ import { CrudTypeOf } from "../../crud.js";
2
2
 
3
3
  //#region src/interface/crud/projects.d.ts
4
4
  declare const emailConfigSchema: import("yup").ObjectSchema<{
5
- type: "standard" | "shared";
5
+ type: "shared" | "standard";
6
6
  host: string | undefined;
7
7
  port: number | undefined;
8
8
  username: string | undefined;
@@ -19,7 +19,7 @@ declare const emailConfigSchema: import("yup").ObjectSchema<{
19
19
  sender_email: undefined;
20
20
  }, "">;
21
21
  declare const emailConfigWithoutPasswordSchema: import("yup").ObjectSchema<{
22
- type: "standard" | "shared";
22
+ type: "shared" | "standard";
23
23
  host: string | undefined;
24
24
  port: number | undefined;
25
25
  username: string | undefined;
@@ -67,7 +67,7 @@ declare const projectsCrudAdminReadSchema: import("yup").ObjectSchema<{
67
67
  facebook_config_id?: string | undefined;
68
68
  microsoft_tenant_id?: string | undefined;
69
69
  apple_bundle_ids?: string[] | undefined;
70
- type: "standard" | "shared";
70
+ type: "shared" | "standard";
71
71
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
72
72
  provider_config_id: string;
73
73
  }[];
@@ -94,7 +94,7 @@ declare const projectsCrudAdminReadSchema: import("yup").ObjectSchema<{
94
94
  username?: string | undefined;
95
95
  sender_name?: string | undefined;
96
96
  sender_email?: string | undefined;
97
- type: "standard" | "shared";
97
+ type: "shared" | "standard";
98
98
  };
99
99
  email_theme: string;
100
100
  create_team_on_sign_up: boolean;
@@ -234,7 +234,7 @@ declare const projectsCrudAdminUpdateSchema: import("yup").ObjectSchema<{
234
234
  facebook_config_id?: string | undefined;
235
235
  microsoft_tenant_id?: string | undefined;
236
236
  apple_bundle_ids?: string[] | undefined;
237
- type: "standard" | "shared";
237
+ type: "shared" | "standard";
238
238
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
239
239
  }[] | undefined;
240
240
  allow_localhost?: boolean | undefined;
@@ -257,7 +257,7 @@ declare const projectsCrudAdminUpdateSchema: import("yup").ObjectSchema<{
257
257
  username?: string | undefined;
258
258
  sender_name?: string | undefined;
259
259
  sender_email?: string | undefined;
260
- type: "standard" | "shared";
260
+ type: "shared" | "standard";
261
261
  } | undefined;
262
262
  email_theme?: string | undefined;
263
263
  create_team_on_sign_up?: boolean | undefined;
@@ -314,7 +314,7 @@ declare const projectsCrudAdminCreateSchema: import("yup").ObjectSchema<{
314
314
  facebook_config_id?: string | undefined;
315
315
  microsoft_tenant_id?: string | undefined;
316
316
  apple_bundle_ids?: string[] | undefined;
317
- type: "standard" | "shared";
317
+ type: "shared" | "standard";
318
318
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
319
319
  }[] | undefined;
320
320
  allow_localhost?: boolean | undefined;
@@ -337,7 +337,7 @@ declare const projectsCrudAdminCreateSchema: import("yup").ObjectSchema<{
337
337
  username?: string | undefined;
338
338
  sender_name?: string | undefined;
339
339
  sender_email?: string | undefined;
340
- type: "standard" | "shared";
340
+ type: "shared" | "standard";
341
341
  } | undefined;
342
342
  email_theme?: string | undefined;
343
343
  create_team_on_sign_up?: boolean | undefined;
@@ -470,7 +470,7 @@ declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
470
470
  facebook_config_id?: string | undefined;
471
471
  microsoft_tenant_id?: string | undefined;
472
472
  apple_bundle_ids?: string[] | undefined;
473
- type: "standard" | "shared";
473
+ type: "shared" | "standard";
474
474
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
475
475
  provider_config_id: string;
476
476
  }[];
@@ -497,7 +497,7 @@ declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
497
497
  username?: string | undefined;
498
498
  sender_name?: string | undefined;
499
499
  sender_email?: string | undefined;
500
- type: "standard" | "shared";
500
+ type: "shared" | "standard";
501
501
  };
502
502
  email_theme: string;
503
503
  create_team_on_sign_up: boolean;
@@ -589,7 +589,7 @@ declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
589
589
  facebook_config_id?: string | undefined;
590
590
  microsoft_tenant_id?: string | undefined;
591
591
  apple_bundle_ids?: string[] | undefined;
592
- type: "standard" | "shared";
592
+ type: "shared" | "standard";
593
593
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
594
594
  }[] | undefined;
595
595
  allow_localhost?: boolean | undefined;
@@ -612,7 +612,7 @@ declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
612
612
  username?: string | undefined;
613
613
  sender_name?: string | undefined;
614
614
  sender_email?: string | undefined;
615
- type: "standard" | "shared";
615
+ type: "shared" | "standard";
616
616
  } | undefined;
617
617
  email_theme?: string | undefined;
618
618
  create_team_on_sign_up?: boolean | undefined;
@@ -703,7 +703,7 @@ declare const adminUserProjectsCrud: import("../../crud").CrudSchemaFromOptions<
703
703
  facebook_config_id?: string | undefined;
704
704
  microsoft_tenant_id?: string | undefined;
705
705
  apple_bundle_ids?: string[] | undefined;
706
- type: "standard" | "shared";
706
+ type: "shared" | "standard";
707
707
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
708
708
  provider_config_id: string;
709
709
  }[];
@@ -730,7 +730,7 @@ declare const adminUserProjectsCrud: import("../../crud").CrudSchemaFromOptions<
730
730
  username?: string | undefined;
731
731
  sender_name?: string | undefined;
732
732
  sender_email?: string | undefined;
733
- type: "standard" | "shared";
733
+ type: "shared" | "standard";
734
734
  };
735
735
  email_theme: string;
736
736
  create_team_on_sign_up: boolean;
@@ -822,7 +822,7 @@ declare const adminUserProjectsCrud: import("../../crud").CrudSchemaFromOptions<
822
822
  facebook_config_id?: string | undefined;
823
823
  microsoft_tenant_id?: string | undefined;
824
824
  apple_bundle_ids?: string[] | undefined;
825
- type: "standard" | "shared";
825
+ type: "shared" | "standard";
826
826
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
827
827
  }[] | undefined;
828
828
  allow_localhost?: boolean | undefined;
@@ -845,7 +845,7 @@ declare const adminUserProjectsCrud: import("../../crud").CrudSchemaFromOptions<
845
845
  username?: string | undefined;
846
846
  sender_name?: string | undefined;
847
847
  sender_email?: string | undefined;
848
- type: "standard" | "shared";
848
+ type: "shared" | "standard";
849
849
  } | undefined;
850
850
  email_theme?: string | undefined;
851
851
  create_team_on_sign_up?: boolean | undefined;
@@ -19,35 +19,36 @@ declare const teamMemberProfilesCrudServerReadSchema: import("yup").ObjectSchema
19
19
  profile_image_url: string | null;
20
20
  } & {
21
21
  user: {
22
- id: string;
22
+ restricted_reason: {
23
+ type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
24
+ } | null;
25
+ primary_email: string | null;
26
+ display_name: string | null;
23
27
  client_metadata: {} | null;
24
28
  client_read_only_metadata: {} | null;
25
29
  server_metadata: {} | null;
26
- primary_email: string | null;
30
+ id: string;
31
+ selected_team_id: string | null;
32
+ is_anonymous: boolean;
33
+ is_restricted: boolean;
34
+ requires_totp_mfa: boolean;
27
35
  primary_email_verified: boolean;
28
36
  primary_email_auth_enabled: boolean;
29
- display_name: string | null;
30
37
  profile_image_url: string | null;
31
38
  selected_team: {
32
39
  client_metadata?: {} | null | undefined;
33
40
  client_read_only_metadata?: {} | null | undefined;
34
41
  server_metadata?: {} | null | undefined;
35
- id: string;
36
42
  display_name: string;
43
+ id: string;
37
44
  profile_image_url: string | null;
38
45
  created_at_millis: number;
39
46
  } | null;
40
- selected_team_id: string | null;
41
47
  signed_up_at_millis: number;
42
48
  has_password: boolean;
43
49
  otp_auth_enabled: boolean;
44
50
  passkey_auth_enabled: boolean;
45
51
  last_active_at_millis: number;
46
- is_anonymous: boolean;
47
- is_restricted: boolean;
48
- restricted_reason: {
49
- type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
50
- } | null;
51
52
  restricted_by_admin: boolean;
52
53
  restricted_by_admin_reason: string | null;
53
54
  restricted_by_admin_private_details: string | null;
@@ -64,7 +65,6 @@ declare const teamMemberProfilesCrudServerReadSchema: import("yup").ObjectSchema
64
65
  account_id: string;
65
66
  }[];
66
67
  auth_with_email: boolean;
67
- requires_totp_mfa: boolean;
68
68
  };
69
69
  }, import("yup").AnyObject, {
70
70
  team_id: undefined;
@@ -142,35 +142,36 @@ declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFromOptions
142
142
  profile_image_url: string | null;
143
143
  } & {
144
144
  user: {
145
- id: string;
145
+ restricted_reason: {
146
+ type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
147
+ } | null;
148
+ primary_email: string | null;
149
+ display_name: string | null;
146
150
  client_metadata: {} | null;
147
151
  client_read_only_metadata: {} | null;
148
152
  server_metadata: {} | null;
149
- primary_email: string | null;
153
+ id: string;
154
+ selected_team_id: string | null;
155
+ is_anonymous: boolean;
156
+ is_restricted: boolean;
157
+ requires_totp_mfa: boolean;
150
158
  primary_email_verified: boolean;
151
159
  primary_email_auth_enabled: boolean;
152
- display_name: string | null;
153
160
  profile_image_url: string | null;
154
161
  selected_team: {
155
162
  client_metadata?: {} | null | undefined;
156
163
  client_read_only_metadata?: {} | null | undefined;
157
164
  server_metadata?: {} | null | undefined;
158
- id: string;
159
165
  display_name: string;
166
+ id: string;
160
167
  profile_image_url: string | null;
161
168
  created_at_millis: number;
162
169
  } | null;
163
- selected_team_id: string | null;
164
170
  signed_up_at_millis: number;
165
171
  has_password: boolean;
166
172
  otp_auth_enabled: boolean;
167
173
  passkey_auth_enabled: boolean;
168
174
  last_active_at_millis: number;
169
- is_anonymous: boolean;
170
- is_restricted: boolean;
171
- restricted_reason: {
172
- type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
173
- } | null;
174
175
  restricted_by_admin: boolean;
175
176
  restricted_by_admin_reason: string | null;
176
177
  restricted_by_admin_private_details: string | null;
@@ -187,7 +188,6 @@ declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFromOptions
187
188
  account_id: string;
188
189
  }[];
189
190
  auth_with_email: boolean;
190
- requires_totp_mfa: boolean;
191
191
  };
192
192
  }, import("yup").AnyObject, {
193
193
  team_id: undefined;
@@ -4,7 +4,7 @@ import { InferType } from "yup";
4
4
  declare const transactionEntrySchema: import("yup").MixedSchema<{
5
5
  type: "money_transfer";
6
6
  customer_id: string;
7
- customer_type: "user" | "team" | "custom";
7
+ customer_type: "team" | "user" | "custom";
8
8
  charged_amount: {
9
9
  USD?: string | undefined;
10
10
  EUR?: string | undefined;
@@ -24,7 +24,7 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
24
24
  item_id: string;
25
25
  customer_id: string;
26
26
  quantity: number;
27
- customer_type: "user" | "team" | "custom";
27
+ customer_type: "team" | "user" | "custom";
28
28
  adjusted_transaction_id: string | null;
29
29
  adjusted_entry_index: number | null;
30
30
  } | {
@@ -34,18 +34,16 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
34
34
  customer_id: string;
35
35
  product_id: string | null;
36
36
  quantity: number;
37
- customer_type: "user" | "team" | "custom";
37
+ customer_type: "team" | "user" | "custom";
38
38
  product: {
39
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
39
40
  client_metadata?: {} | null | undefined;
40
41
  client_read_only_metadata?: {} | null | undefined;
41
42
  server_metadata?: {} | null | undefined;
42
- free_trial?: import("../../utils/dates").DayInterval | undefined;
43
- display_name: string;
44
43
  server_only: boolean;
45
- customer_type: "user" | "team" | "custom";
44
+ customer_type: "team" | "user" | "custom";
46
45
  stackable: boolean;
47
46
  prices: Record<string, {
48
- free_trial?: import("../../utils/dates").DayInterval | undefined;
49
47
  USD?: string | undefined;
50
48
  EUR?: string | undefined;
51
49
  GBP?: string | undefined;
@@ -54,10 +52,12 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
54
52
  AUD?: string | undefined;
55
53
  CAD?: string | undefined;
56
54
  interval?: import("../../utils/dates").DayInterval | undefined;
55
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
57
56
  }>;
57
+ display_name: string;
58
58
  included_items: Record<string, {
59
- repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
60
59
  quantity?: number | undefined;
60
+ repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
61
61
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
62
62
  }>;
63
63
  };
@@ -83,12 +83,12 @@ declare const transactionSchema: import("yup").ObjectSchema<{
83
83
  created_at_millis: number;
84
84
  effective_at_millis: number;
85
85
  type: "purchase" | "subscription-cancellation" | "subscription-renewal" | "manual-item-quantity-change" | "refund" | "chargeback" | "product-change" | null;
86
- customer_type: "user" | "team" | "custom";
86
+ customer_type: "team" | "user" | "custom";
87
87
  customer_id: string;
88
88
  entries: ({
89
89
  type: "money_transfer";
90
90
  customer_id: string;
91
- customer_type: "user" | "team" | "custom";
91
+ customer_type: "team" | "user" | "custom";
92
92
  charged_amount: {
93
93
  USD?: string | undefined;
94
94
  EUR?: string | undefined;
@@ -108,7 +108,7 @@ declare const transactionSchema: import("yup").ObjectSchema<{
108
108
  item_id: string;
109
109
  customer_id: string;
110
110
  quantity: number;
111
- customer_type: "user" | "team" | "custom";
111
+ customer_type: "team" | "user" | "custom";
112
112
  adjusted_transaction_id: string | null;
113
113
  adjusted_entry_index: number | null;
114
114
  } | {
@@ -118,18 +118,16 @@ declare const transactionSchema: import("yup").ObjectSchema<{
118
118
  customer_id: string;
119
119
  product_id: string | null;
120
120
  quantity: number;
121
- customer_type: "user" | "team" | "custom";
121
+ customer_type: "team" | "user" | "custom";
122
122
  product: {
123
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
123
124
  client_metadata?: {} | null | undefined;
124
125
  client_read_only_metadata?: {} | null | undefined;
125
126
  server_metadata?: {} | null | undefined;
126
- free_trial?: import("../../utils/dates").DayInterval | undefined;
127
- display_name: string;
128
127
  server_only: boolean;
129
- customer_type: "user" | "team" | "custom";
128
+ customer_type: "team" | "user" | "custom";
130
129
  stackable: boolean;
131
130
  prices: Record<string, {
132
- free_trial?: import("../../utils/dates").DayInterval | undefined;
133
131
  USD?: string | undefined;
134
132
  EUR?: string | undefined;
135
133
  GBP?: string | undefined;
@@ -138,10 +136,12 @@ declare const transactionSchema: import("yup").ObjectSchema<{
138
136
  AUD?: string | undefined;
139
137
  CAD?: string | undefined;
140
138
  interval?: import("../../utils/dates").DayInterval | undefined;
139
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
141
140
  }>;
141
+ display_name: string;
142
142
  included_items: Record<string, {
143
- repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
144
143
  quantity?: number | undefined;
144
+ repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
145
145
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
146
146
  }>;
147
147
  };
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;cAwFa,sBAAA,gBAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAMxB,MAAA;;;;;;;;;;;oBAAA,MAAA;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAS,QAAQ,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAiB;AAAA,cAE1C,iBAAA,gBAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBlB,MAAA;;;;;;;;;;;sBAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAS,QAAQ,iBAAA"}
1
+ {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;cAwFa,sBAAA,gBAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAMxB,MAAA;;;;;;;;;;;;oBAAA,MAAA;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAS,QAAQ,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAiB;AAAA,cAE1C,iBAAA,gBAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBlB,MAAA;;;;;;;;;;;;sBAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAS,QAAQ,iBAAA"}
@@ -80,8 +80,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
80
80
  client_metadata?: {} | null | undefined;
81
81
  client_read_only_metadata?: {} | null | undefined;
82
82
  server_metadata?: {} | null | undefined;
83
- id: string;
84
83
  display_name: string;
84
+ id: string;
85
85
  profile_image_url: string | null;
86
86
  created_at_millis: number;
87
87
  } | null;
@@ -162,17 +162,17 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
162
162
  requires_totp_mfa: undefined;
163
163
  }, "">;
164
164
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
165
+ primary_email: string | null | undefined;
166
+ display_name: string | null | undefined;
165
167
  client_metadata: {} | null | undefined;
166
168
  client_read_only_metadata: {} | null | undefined;
167
169
  server_metadata: {} | null | undefined;
168
- primary_email: string | null | undefined;
170
+ is_anonymous: boolean | undefined;
169
171
  primary_email_verified: boolean | undefined;
170
172
  primary_email_auth_enabled: boolean | undefined;
171
- display_name: string | null | undefined;
172
173
  profile_image_url: string | null | undefined;
173
174
  otp_auth_enabled: boolean | undefined;
174
175
  passkey_auth_enabled: boolean | undefined;
175
- is_anonymous: boolean | undefined;
176
176
  restricted_by_admin: boolean | undefined;
177
177
  restricted_by_admin_reason: string | null | undefined;
178
178
  restricted_by_admin_private_details: string | null | undefined;
@@ -188,8 +188,8 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
188
188
  totp_secret_base64: string | null | undefined;
189
189
  } & {
190
190
  oauth_providers: {
191
- id: string;
192
191
  email: string | null;
192
+ id: string;
193
193
  account_id: string;
194
194
  }[] | undefined;
195
195
  is_anonymous: boolean | undefined;
@@ -233,8 +233,8 @@ declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
233
233
  client_metadata?: {} | null | undefined;
234
234
  client_read_only_metadata?: {} | null | undefined;
235
235
  server_metadata?: {} | null | undefined;
236
- id: string;
237
236
  display_name: string;
237
+ id: string;
238
238
  profile_image_url: string | null;
239
239
  created_at_millis: number;
240
240
  } | null;
@@ -368,17 +368,17 @@ declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
368
368
  };
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
+ primary_email: string | null | undefined;
372
+ display_name: string | null | undefined;
371
373
  client_metadata: {} | null | undefined;
372
374
  client_read_only_metadata: {} | null | undefined;
373
375
  server_metadata: {} | null | undefined;
374
- primary_email: string | null | undefined;
376
+ is_anonymous: boolean | undefined;
375
377
  primary_email_verified: boolean | undefined;
376
378
  primary_email_auth_enabled: boolean | undefined;
377
- display_name: string | null | undefined;
378
379
  profile_image_url: string | null | undefined;
379
380
  otp_auth_enabled: boolean | undefined;
380
381
  passkey_auth_enabled: boolean | undefined;
381
- is_anonymous: boolean | undefined;
382
382
  restricted_by_admin: boolean | undefined;
383
383
  restricted_by_admin_reason: string | null | undefined;
384
384
  restricted_by_admin_private_details: string | null | undefined;
@@ -394,8 +394,8 @@ declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
394
394
  totp_secret_base64: string | null | undefined;
395
395
  } & {
396
396
  oauth_providers: {
397
- id: string;
398
397
  email: string | null;
398
+ id: string;
399
399
  account_id: string;
400
400
  }[] | undefined;
401
401
  is_anonymous: boolean | undefined;
@@ -467,8 +467,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
467
467
  client_metadata?: {} | null | undefined;
468
468
  client_read_only_metadata?: {} | null | undefined;
469
469
  server_metadata?: {} | null | undefined;
470
- id: string;
471
470
  display_name: string;
471
+ id: string;
472
472
  profile_image_url: string | null;
473
473
  created_at_millis: number;
474
474
  } | null;
@@ -558,8 +558,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
558
558
  client_metadata?: {} | null | undefined;
559
559
  client_read_only_metadata?: {} | null | undefined;
560
560
  server_metadata?: {} | null | undefined;
561
- id: string;
562
561
  display_name: string;
562
+ id: string;
563
563
  profile_image_url: string | null;
564
564
  created_at_millis: number;
565
565
  } | null;
@@ -29,9 +29,10 @@ declare const planUsageResponseSchema: yup$1.ObjectSchema<{
29
29
  period_start_millis: number;
30
30
  period_end_millis: number;
31
31
  next_plan_id: "team" | "growth" | null;
32
+ are_plan_limits_enforced: boolean;
32
33
  rows: {
33
- display_name: string;
34
34
  item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
35
+ display_name: string;
35
36
  kind: "current" | "metered" | "capability";
36
37
  used: number | null;
37
38
  limit: number | null;
@@ -47,6 +48,7 @@ declare const planUsageResponseSchema: yup$1.ObjectSchema<{
47
48
  period_start_millis: undefined;
48
49
  period_end_millis: undefined;
49
50
  next_plan_id: undefined;
51
+ are_plan_limits_enforced: true;
50
52
  rows: undefined;
51
53
  }, "">;
52
54
  type PlanUsageKind = yup$1.InferType<typeof planUsageKindSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"plan-usage.d.ts","names":[],"sources":["../../../src/interface/plan-usage.ts"],"mappings":";;;cAOa,mBAAA,EAAmB,KAAA,CAAA,YAAA,uCAAA,KAAA,CAAA,SAAA;AAAA,cAEnB,kBAAA,EAAkB,KAAA,CAAA,YAAA;;;;;;;;;GASnB,KAAA,CAAA,SAAA;;;;;;;;;;cAEC,uBAAA,EAAuB,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;GASxB,KAAA,CAAA,SAAA;;;;;;;;;;KAEA,aAAA,GAAgB,KAAA,CAAI,SAAS,QAAQ,mBAAA;AAAA,KACrC,YAAA,GAAe,KAAA,CAAI,SAAS,QAAQ,kBAAA;AAAA,KACpC,iBAAA,GAAoB,KAAA,CAAI,SAAS,QAAQ,uBAAA"}
1
+ {"version":3,"file":"plan-usage.d.ts","names":[],"sources":["../../../src/interface/plan-usage.ts"],"mappings":";;;cAOa,mBAAA,EAAmB,KAAA,CAAA,YAAA,uCAAA,KAAA,CAAA,SAAA;AAAA,cAEnB,kBAAA,EAAkB,KAAA,CAAA,YAAA;;;;;;;;;GASnB,KAAA,CAAA,SAAA;;;;;;;;;;cAEC,uBAAA,EAAuB,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;GAUxB,KAAA,CAAA,SAAA;;;;;;;;;;;KAEA,aAAA,GAAgB,KAAA,CAAI,SAAS,QAAQ,mBAAA;AAAA,KACrC,YAAA,GAAe,KAAA,CAAI,SAAS,QAAQ,kBAAA;AAAA,KACpC,iBAAA,GAAoB,KAAA,CAAI,SAAS,QAAQ,uBAAA"}