@hexclave/shared 1.0.25 → 1.0.26

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 (64) hide show
  1. package/dist/config/schema.d.ts +140 -140
  2. package/dist/config-authoring.d.ts +3 -0
  3. package/dist/config-authoring.d.ts.map +1 -1
  4. package/dist/config-authoring.js +3 -0
  5. package/dist/config-authoring.js.map +1 -1
  6. package/dist/esm/config/schema.d.ts +140 -140
  7. package/dist/esm/config-authoring.d.ts +3 -0
  8. package/dist/esm/config-authoring.d.ts.map +1 -1
  9. package/dist/esm/config-authoring.js +3 -0
  10. package/dist/esm/config-authoring.js.map +1 -1
  11. package/dist/esm/interface/admin-interface.d.ts +3 -1
  12. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  13. package/dist/esm/interface/admin-interface.js +3 -0
  14. package/dist/esm/interface/admin-interface.js.map +1 -1
  15. package/dist/esm/interface/admin-metrics.d.ts +10 -10
  16. package/dist/esm/interface/conversations.d.ts +6 -6
  17. package/dist/esm/interface/crud/current-user.d.ts +5 -5
  18. package/dist/esm/interface/crud/email-outbox.d.ts +206 -206
  19. package/dist/esm/interface/crud/products.d.ts +15 -15
  20. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  21. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  22. package/dist/esm/interface/crud/projects.d.ts +43 -43
  23. package/dist/esm/interface/crud/team-member-profiles.d.ts +8 -8
  24. package/dist/esm/interface/crud/transactions.d.ts +20 -20
  25. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  26. package/dist/esm/interface/crud/users.d.ts +4 -4
  27. package/dist/esm/interface/plan-usage.d.ts +57 -0
  28. package/dist/esm/interface/plan-usage.d.ts.map +1 -0
  29. package/dist/esm/interface/plan-usage.js +35 -0
  30. package/dist/esm/interface/plan-usage.js.map +1 -0
  31. package/dist/esm/known-errors.d.ts +1 -1
  32. package/dist/esm/schema-fields.d.ts +1 -1
  33. package/dist/esm/sessions.d.ts +7 -7
  34. package/dist/{index-fQbeILq7.d.ts → index-nCRuFJTF.d.ts} +1 -1
  35. package/dist/{index-fQbeILq7.d.ts.map → index-nCRuFJTF.d.ts.map} +1 -1
  36. package/dist/interface/admin-interface.d.ts +3 -1
  37. package/dist/interface/admin-interface.d.ts.map +1 -1
  38. package/dist/interface/admin-interface.js +3 -0
  39. package/dist/interface/admin-interface.js.map +1 -1
  40. package/dist/interface/admin-metrics.d.ts +10 -10
  41. package/dist/interface/client-interface.d.ts +1 -1
  42. package/dist/interface/conversations.d.ts +6 -6
  43. package/dist/interface/crud/current-user.d.ts +5 -5
  44. package/dist/interface/crud/email-outbox.d.ts +206 -206
  45. package/dist/interface/crud/products.d.ts +15 -15
  46. package/dist/interface/crud/products.d.ts.map +1 -1
  47. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  48. package/dist/interface/crud/projects.d.ts +43 -43
  49. package/dist/interface/crud/team-member-profiles.d.ts +8 -8
  50. package/dist/interface/crud/transactions.d.ts +20 -20
  51. package/dist/interface/crud/transactions.d.ts.map +1 -1
  52. package/dist/interface/crud/users.d.ts +4 -4
  53. package/dist/interface/plan-usage.d.ts +57 -0
  54. package/dist/interface/plan-usage.d.ts.map +1 -0
  55. package/dist/interface/plan-usage.js +39 -0
  56. package/dist/interface/plan-usage.js.map +1 -0
  57. package/dist/known-errors.d.ts +1 -1
  58. package/dist/schema-fields.d.ts +1 -1
  59. package/dist/sessions.d.ts +7 -7
  60. package/dist/utils/passkey.d.ts +1 -1
  61. package/package.json +1 -1
  62. package/src/config-authoring.ts +3 -1
  63. package/src/interface/admin-interface.ts +14 -0
  64. package/src/interface/plan-usage.ts +34 -0
@@ -10,6 +10,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
10
10
  client_metadata?: {} | null | undefined;
11
11
  client_read_only_metadata?: {} | null | undefined;
12
12
  server_metadata?: {} | null | undefined;
13
+ server_only: boolean;
14
+ customer_type: "team" | "user" | "custom";
13
15
  stackable: boolean;
14
16
  prices: Record<string, {
15
17
  USD?: string | undefined;
@@ -23,11 +25,9 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
23
25
  free_trial?: ______utils_dates0.DayInterval | undefined;
24
26
  }>;
25
27
  display_name: string;
26
- customer_type: "team" | "user" | "custom";
27
- server_only: boolean;
28
28
  included_items: Record<string, {
29
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
30
29
  quantity?: number | undefined;
30
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
31
31
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
32
32
  }>;
33
33
  };
@@ -39,11 +39,14 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
39
39
  is_cancelable: boolean;
40
40
  } | null | undefined;
41
41
  switch_options: {
42
+ product_id: string;
42
43
  product: {
43
44
  free_trial?: ______utils_dates0.DayInterval | undefined;
44
45
  client_metadata?: {} | null | undefined;
45
46
  client_read_only_metadata?: {} | null | undefined;
46
47
  server_metadata?: {} | null | undefined;
48
+ server_only: boolean;
49
+ customer_type: "team" | "user" | "custom";
47
50
  stackable: boolean;
48
51
  prices: Record<string, {
49
52
  USD?: string | undefined;
@@ -57,15 +60,12 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
57
60
  free_trial?: ______utils_dates0.DayInterval | undefined;
58
61
  }>;
59
62
  display_name: string;
60
- customer_type: "team" | "user" | "custom";
61
- server_only: boolean;
62
63
  included_items: Record<string, {
63
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
64
64
  quantity?: number | undefined;
65
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
65
66
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
66
67
  }>;
67
68
  };
68
- product_id: string;
69
69
  }[] | undefined;
70
70
  }, yup$1.AnyObject, {
71
71
  id: undefined;
@@ -102,11 +102,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
102
102
  is_cancelable: boolean;
103
103
  } | null | undefined;
104
104
  switch_options?: {
105
+ product_id: string;
105
106
  product: {
106
107
  free_trial?: ______utils_dates0.DayInterval | undefined;
107
108
  client_metadata?: {} | null | undefined;
108
109
  client_read_only_metadata?: {} | null | undefined;
109
110
  server_metadata?: {} | null | undefined;
111
+ server_only: boolean;
112
+ customer_type: "team" | "user" | "custom";
110
113
  stackable: boolean;
111
114
  prices: Record<string, {
112
115
  USD?: string | undefined;
@@ -120,21 +123,21 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
120
123
  free_trial?: ______utils_dates0.DayInterval | undefined;
121
124
  }>;
122
125
  display_name: string;
123
- customer_type: "team" | "user" | "custom";
124
- server_only: boolean;
125
126
  included_items: Record<string, {
126
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
127
127
  quantity?: number | undefined;
128
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
128
129
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
129
130
  }>;
130
131
  };
131
- product_id: string;
132
132
  }[] | undefined;
133
+ quantity: number;
133
134
  product: {
134
135
  free_trial?: ______utils_dates0.DayInterval | undefined;
135
136
  client_metadata?: {} | null | undefined;
136
137
  client_read_only_metadata?: {} | null | undefined;
137
138
  server_metadata?: {} | null | undefined;
139
+ server_only: boolean;
140
+ customer_type: "team" | "user" | "custom";
138
141
  stackable: boolean;
139
142
  prices: Record<string, {
140
143
  USD?: string | undefined;
@@ -148,15 +151,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
148
151
  free_trial?: ______utils_dates0.DayInterval | undefined;
149
152
  }>;
150
153
  display_name: string;
151
- customer_type: "team" | "user" | "custom";
152
- server_only: boolean;
153
154
  included_items: Record<string, {
154
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
155
155
  quantity?: number | undefined;
156
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
156
157
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
157
158
  }>;
158
159
  };
159
- quantity: number;
160
160
  id: string | null;
161
161
  }[];
162
162
  is_paginated: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
1
+ {"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -79,10 +79,10 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
79
79
  is_public: undefined;
80
80
  user_id: undefined;
81
81
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
82
+ user_id: string;
82
83
  type: "user";
83
84
  description: string;
84
85
  id: string;
85
- user_id: string;
86
86
  created_at_millis: number;
87
87
  expires_at_millis: number | undefined;
88
88
  manually_revoked_at_millis: number | undefined;
@@ -178,9 +178,9 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
178
178
  team_id: undefined;
179
179
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
180
180
  type: "team";
181
+ team_id: string;
181
182
  description: string;
182
183
  id: string;
183
- team_id: string;
184
184
  created_at_millis: number;
185
185
  expires_at_millis: number | undefined;
186
186
  manually_revoked_at_millis: number | undefined;
@@ -52,7 +52,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
52
52
  onboarding_state: {
53
53
  selected_config_choice: "create-new" | "link-existing";
54
54
  selected_apps: string[];
55
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
55
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
56
56
  selected_email_theme_id: string | null;
57
57
  selected_payments_country: "US" | "OTHER";
58
58
  } | null | undefined;
@@ -63,10 +63,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
63
63
  message: string;
64
64
  }[];
65
65
  config: {
66
- domains: {
67
- domain: string;
68
- handler_path: string;
69
- }[];
70
66
  oauth_providers: {
71
67
  client_id?: string | undefined;
72
68
  client_secret?: string | undefined;
@@ -89,6 +85,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
89
85
  enabled_oauth_providers: {
90
86
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
91
87
  }[];
88
+ domains: {
89
+ domain: string;
90
+ handler_path: string;
91
+ }[];
92
92
  email_config: {
93
93
  password?: string | undefined;
94
94
  host?: string | undefined;
@@ -175,10 +175,6 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
175
175
  message: string;
176
176
  }[];
177
177
  config: {
178
- domains: {
179
- domain: string;
180
- handler_path: string;
181
- }[];
182
178
  allow_localhost: boolean;
183
179
  sign_up_enabled: boolean;
184
180
  credential_enabled: boolean;
@@ -191,6 +187,10 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
191
187
  enabled_oauth_providers: {
192
188
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
193
189
  }[];
190
+ domains: {
191
+ domain: string;
192
+ handler_path: string;
193
+ }[];
194
194
  };
195
195
  }, yup$1.AnyObject, {
196
196
  id: undefined;
@@ -225,15 +225,11 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
225
225
  onboarding_state: {
226
226
  selected_config_choice: "create-new" | "link-existing";
227
227
  selected_apps: string[];
228
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
228
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
229
229
  selected_email_theme_id: string | null;
230
230
  selected_payments_country: "US" | "OTHER";
231
231
  } | null | undefined;
232
232
  config: {
233
- domains?: {
234
- domain: string;
235
- handler_path: string;
236
- }[] | undefined;
237
233
  oauth_providers?: {
238
234
  client_id?: string | undefined;
239
235
  client_secret?: string | undefined;
@@ -252,6 +248,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
252
248
  client_user_deletion_enabled?: boolean | undefined;
253
249
  allow_user_api_keys?: boolean | undefined;
254
250
  allow_team_api_keys?: boolean | undefined;
251
+ domains?: {
252
+ domain: string;
253
+ handler_path: string;
254
+ }[] | undefined;
255
255
  email_config?: {
256
256
  password?: string | undefined;
257
257
  host?: string | undefined;
@@ -305,15 +305,11 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
305
305
  onboarding_state: {
306
306
  selected_config_choice: "create-new" | "link-existing";
307
307
  selected_apps: string[];
308
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
308
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
309
309
  selected_email_theme_id: string | null;
310
310
  selected_payments_country: "US" | "OTHER";
311
311
  } | null | undefined;
312
312
  config: {
313
- domains?: {
314
- domain: string;
315
- handler_path: string;
316
- }[] | undefined;
317
313
  oauth_providers?: {
318
314
  client_id?: string | undefined;
319
315
  client_secret?: string | undefined;
@@ -332,6 +328,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
332
328
  client_user_deletion_enabled?: boolean | undefined;
333
329
  allow_user_api_keys?: boolean | undefined;
334
330
  allow_team_api_keys?: boolean | undefined;
331
+ domains?: {
332
+ domain: string;
333
+ handler_path: string;
334
+ }[] | undefined;
335
335
  email_config?: {
336
336
  password?: string | undefined;
337
337
  host?: string | undefined;
@@ -391,10 +391,6 @@ declare const clientProjectsCrud: ______crud0.CrudSchemaFromOptions<{
391
391
  message: string;
392
392
  }[];
393
393
  config: {
394
- domains: {
395
- domain: string;
396
- handler_path: string;
397
- }[];
398
394
  allow_localhost: boolean;
399
395
  sign_up_enabled: boolean;
400
396
  credential_enabled: boolean;
@@ -407,6 +403,10 @@ declare const clientProjectsCrud: ______crud0.CrudSchemaFromOptions<{
407
403
  enabled_oauth_providers: {
408
404
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
409
405
  }[];
406
+ domains: {
407
+ domain: string;
408
+ handler_path: string;
409
+ }[];
410
410
  };
411
411
  }, yup$1.AnyObject, {
412
412
  id: undefined;
@@ -455,7 +455,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
455
455
  onboarding_state: {
456
456
  selected_config_choice: "create-new" | "link-existing";
457
457
  selected_apps: string[];
458
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
458
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
459
459
  selected_email_theme_id: string | null;
460
460
  selected_payments_country: "US" | "OTHER";
461
461
  } | null | undefined;
@@ -466,10 +466,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
466
466
  message: string;
467
467
  }[];
468
468
  config: {
469
- domains: {
470
- domain: string;
471
- handler_path: string;
472
- }[];
473
469
  oauth_providers: {
474
470
  client_id?: string | undefined;
475
471
  client_secret?: string | undefined;
@@ -492,6 +488,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
492
488
  enabled_oauth_providers: {
493
489
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
494
490
  }[];
491
+ domains: {
492
+ domain: string;
493
+ handler_path: string;
494
+ }[];
495
495
  email_config: {
496
496
  password?: string | undefined;
497
497
  host?: string | undefined;
@@ -580,15 +580,11 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
580
580
  onboarding_state: {
581
581
  selected_config_choice: "create-new" | "link-existing";
582
582
  selected_apps: string[];
583
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
583
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
584
584
  selected_email_theme_id: string | null;
585
585
  selected_payments_country: "US" | "OTHER";
586
586
  } | null | undefined;
587
587
  config: {
588
- domains?: {
589
- domain: string;
590
- handler_path: string;
591
- }[] | undefined;
592
588
  oauth_providers?: {
593
589
  client_id?: string | undefined;
594
590
  client_secret?: string | undefined;
@@ -607,6 +603,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
607
603
  client_user_deletion_enabled?: boolean | undefined;
608
604
  allow_user_api_keys?: boolean | undefined;
609
605
  allow_team_api_keys?: boolean | undefined;
606
+ domains?: {
607
+ domain: string;
608
+ handler_path: string;
609
+ }[] | undefined;
610
610
  email_config?: {
611
611
  password?: string | undefined;
612
612
  host?: string | undefined;
@@ -688,7 +688,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
688
688
  onboarding_state: {
689
689
  selected_config_choice: "create-new" | "link-existing";
690
690
  selected_apps: string[];
691
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
691
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
692
692
  selected_email_theme_id: string | null;
693
693
  selected_payments_country: "US" | "OTHER";
694
694
  } | null | undefined;
@@ -699,10 +699,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
699
699
  message: string;
700
700
  }[];
701
701
  config: {
702
- domains: {
703
- domain: string;
704
- handler_path: string;
705
- }[];
706
702
  oauth_providers: {
707
703
  client_id?: string | undefined;
708
704
  client_secret?: string | undefined;
@@ -725,6 +721,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
725
721
  enabled_oauth_providers: {
726
722
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
727
723
  }[];
724
+ domains: {
725
+ domain: string;
726
+ handler_path: string;
727
+ }[];
728
728
  email_config: {
729
729
  password?: string | undefined;
730
730
  host?: string | undefined;
@@ -813,15 +813,11 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
813
813
  onboarding_state: {
814
814
  selected_config_choice: "create-new" | "link-existing";
815
815
  selected_apps: string[];
816
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
816
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
817
817
  selected_email_theme_id: string | null;
818
818
  selected_payments_country: "US" | "OTHER";
819
819
  } | null | undefined;
820
820
  config: {
821
- domains?: {
822
- domain: string;
823
- handler_path: string;
824
- }[] | undefined;
825
821
  oauth_providers?: {
826
822
  client_id?: string | undefined;
827
823
  client_secret?: string | undefined;
@@ -840,6 +836,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
840
836
  client_user_deletion_enabled?: boolean | undefined;
841
837
  allow_user_api_keys?: boolean | undefined;
842
838
  allow_team_api_keys?: boolean | undefined;
839
+ domains?: {
840
+ domain: string;
841
+ handler_path: string;
842
+ }[] | undefined;
843
843
  email_config?: {
844
844
  password?: string | undefined;
845
845
  host?: string | undefined;
@@ -21,19 +21,19 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
21
21
  profile_image_url: string | null;
22
22
  } & {
23
23
  user: {
24
- selected_team_id: string | null;
25
- is_anonymous: boolean;
26
- is_restricted: boolean;
27
24
  restricted_reason: {
28
25
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
29
26
  } | null;
27
+ primary_email: string | null;
28
+ selected_team_id: string | null;
29
+ is_anonymous: boolean;
30
+ is_restricted: boolean;
30
31
  requires_totp_mfa: boolean;
31
32
  display_name: string | null;
32
33
  client_metadata: {} | null;
33
34
  client_read_only_metadata: {} | null;
34
35
  server_metadata: {} | null;
35
36
  id: string;
36
- primary_email: string | null;
37
37
  primary_email_verified: boolean;
38
38
  primary_email_auth_enabled: boolean;
39
39
  profile_image_url: string | null;
@@ -144,19 +144,19 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
144
144
  profile_image_url: string | null;
145
145
  } & {
146
146
  user: {
147
- selected_team_id: string | null;
148
- is_anonymous: boolean;
149
- is_restricted: boolean;
150
147
  restricted_reason: {
151
148
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
152
149
  } | null;
150
+ primary_email: string | null;
151
+ selected_team_id: string | null;
152
+ is_anonymous: boolean;
153
+ is_restricted: boolean;
153
154
  requires_totp_mfa: boolean;
154
155
  display_name: string | null;
155
156
  client_metadata: {} | null;
156
157
  client_read_only_metadata: {} | null;
157
158
  server_metadata: {} | null;
158
159
  id: string;
159
- primary_email: string | null;
160
160
  primary_email_verified: boolean;
161
161
  primary_email_auth_enabled: boolean;
162
162
  profile_image_url: string | null;
@@ -5,8 +5,8 @@ import * as ______utils_dates0 from "../../utils/dates";
5
5
  //#region src/interface/crud/transactions.d.ts
6
6
  declare const transactionEntrySchema: yup$1.MixedSchema<{
7
7
  type: "money_transfer";
8
- customer_type: "team" | "user" | "custom";
9
8
  customer_id: string;
9
+ customer_type: "team" | "user" | "custom";
10
10
  charged_amount: {
11
11
  USD?: string | undefined;
12
12
  EUR?: string | undefined;
@@ -23,21 +23,27 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
23
23
  adjusted_entry_index: number | null;
24
24
  } | {
25
25
  type: "item_quantity_change";
26
- quantity: number;
27
- customer_type: "team" | "user" | "custom";
28
26
  item_id: string;
29
27
  customer_id: string;
28
+ quantity: number;
29
+ customer_type: "team" | "user" | "custom";
30
30
  adjusted_transaction_id: string | null;
31
31
  adjusted_entry_index: number | null;
32
32
  } | {
33
33
  one_time_purchase_id?: string | undefined;
34
34
  subscription_id?: string | undefined;
35
35
  type: "product_grant";
36
+ customer_id: string;
37
+ product_id: string | null;
38
+ quantity: number;
39
+ customer_type: "team" | "user" | "custom";
36
40
  product: {
37
41
  free_trial?: ______utils_dates0.DayInterval | undefined;
38
42
  client_metadata?: {} | null | undefined;
39
43
  client_read_only_metadata?: {} | null | undefined;
40
44
  server_metadata?: {} | null | undefined;
45
+ server_only: boolean;
46
+ customer_type: "team" | "user" | "custom";
41
47
  stackable: boolean;
42
48
  prices: Record<string, {
43
49
  USD?: string | undefined;
@@ -51,18 +57,12 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
51
57
  free_trial?: ______utils_dates0.DayInterval | undefined;
52
58
  }>;
53
59
  display_name: string;
54
- customer_type: "team" | "user" | "custom";
55
- server_only: boolean;
56
60
  included_items: Record<string, {
57
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
58
61
  quantity?: number | undefined;
62
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
59
63
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
60
64
  }>;
61
65
  };
62
- quantity: number;
63
- customer_type: "team" | "user" | "custom";
64
- customer_id: string;
65
- product_id: string | null;
66
66
  adjusted_transaction_id: string | null;
67
67
  adjusted_entry_index: number | null;
68
68
  price_id: string | null;
@@ -89,8 +89,8 @@ declare const transactionSchema: yup$1.ObjectSchema<{
89
89
  customer_id: string;
90
90
  entries: ({
91
91
  type: "money_transfer";
92
- customer_type: "team" | "user" | "custom";
93
92
  customer_id: string;
93
+ customer_type: "team" | "user" | "custom";
94
94
  charged_amount: {
95
95
  USD?: string | undefined;
96
96
  EUR?: string | undefined;
@@ -107,21 +107,27 @@ declare const transactionSchema: yup$1.ObjectSchema<{
107
107
  adjusted_entry_index: number | null;
108
108
  } | {
109
109
  type: "item_quantity_change";
110
- quantity: number;
111
- customer_type: "team" | "user" | "custom";
112
110
  item_id: string;
113
111
  customer_id: string;
112
+ quantity: number;
113
+ customer_type: "team" | "user" | "custom";
114
114
  adjusted_transaction_id: string | null;
115
115
  adjusted_entry_index: number | null;
116
116
  } | {
117
117
  one_time_purchase_id?: string | undefined;
118
118
  subscription_id?: string | undefined;
119
119
  type: "product_grant";
120
+ customer_id: string;
121
+ product_id: string | null;
122
+ quantity: number;
123
+ customer_type: "team" | "user" | "custom";
120
124
  product: {
121
125
  free_trial?: ______utils_dates0.DayInterval | undefined;
122
126
  client_metadata?: {} | null | undefined;
123
127
  client_read_only_metadata?: {} | null | undefined;
124
128
  server_metadata?: {} | null | undefined;
129
+ server_only: boolean;
130
+ customer_type: "team" | "user" | "custom";
125
131
  stackable: boolean;
126
132
  prices: Record<string, {
127
133
  USD?: string | undefined;
@@ -135,18 +141,12 @@ declare const transactionSchema: yup$1.ObjectSchema<{
135
141
  free_trial?: ______utils_dates0.DayInterval | undefined;
136
142
  }>;
137
143
  display_name: string;
138
- customer_type: "team" | "user" | "custom";
139
- server_only: boolean;
140
144
  included_items: Record<string, {
141
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
142
145
  quantity?: number | undefined;
146
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
143
147
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
144
148
  }>;
145
149
  };
146
- quantity: number;
147
- customer_type: "team" | "user" | "custom";
148
- customer_id: string;
149
- product_id: string | null;
150
150
  adjusted_transaction_id: string | null;
151
151
  adjusted_entry_index: number | null;
152
152
  price_id: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
1
+ {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
@@ -163,13 +163,12 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
163
163
  requires_totp_mfa: undefined;
164
164
  }, "">;
165
165
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
166
+ primary_email: string | null | undefined;
166
167
  is_anonymous: boolean | undefined;
167
168
  display_name: string | null | undefined;
168
169
  client_metadata: {} | null | undefined;
169
170
  client_read_only_metadata: {} | null | undefined;
170
171
  server_metadata: {} | null | undefined;
171
- primary_email: string | null | undefined;
172
- password: string | null | undefined;
173
172
  primary_email_verified: boolean | undefined;
174
173
  primary_email_auth_enabled: boolean | undefined;
175
174
  profile_image_url: string | null | undefined;
@@ -185,6 +184,7 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
185
184
  free_trial_abuse: number;
186
185
  };
187
186
  } | undefined;
187
+ password: string | null | undefined;
188
188
  password_hash: string | undefined;
189
189
  totp_secret_base64: string | null | undefined;
190
190
  } & {
@@ -369,13 +369,12 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
369
369
  };
370
370
  }, "">;
371
371
  serverCreateSchema: yup$1.ObjectSchema<{
372
+ primary_email: string | null | undefined;
372
373
  is_anonymous: boolean | undefined;
373
374
  display_name: string | null | undefined;
374
375
  client_metadata: {} | null | undefined;
375
376
  client_read_only_metadata: {} | null | undefined;
376
377
  server_metadata: {} | null | undefined;
377
- primary_email: string | null | undefined;
378
- password: string | null | undefined;
379
378
  primary_email_verified: boolean | undefined;
380
379
  primary_email_auth_enabled: boolean | undefined;
381
380
  profile_image_url: string | null | undefined;
@@ -391,6 +390,7 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
391
390
  free_trial_abuse: number;
392
391
  };
393
392
  } | undefined;
393
+ password: string | null | undefined;
394
394
  password_hash: string | undefined;
395
395
  totp_secret_base64: string | null | undefined;
396
396
  } & {
@@ -0,0 +1,57 @@
1
+ import * as yup$1 from "yup";
2
+
3
+ //#region src/interface/plan-usage.d.ts
4
+ declare const planUsageKindSchema: yup$1.StringSchema<"current" | "metered" | "capability", yup$1.AnyObject, undefined, "">;
5
+ declare const planUsageRowSchema: yup$1.ObjectSchema<{
6
+ item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
7
+ display_name: string;
8
+ kind: "current" | "metered" | "capability";
9
+ used: number | null;
10
+ limit: number | null;
11
+ remaining: number | null;
12
+ overage: number | null;
13
+ is_unlimited: boolean;
14
+ }, yup$1.AnyObject, {
15
+ item_id: undefined;
16
+ display_name: undefined;
17
+ kind: undefined;
18
+ used: undefined;
19
+ limit: undefined;
20
+ remaining: undefined;
21
+ overage: undefined;
22
+ is_unlimited: undefined;
23
+ }, "">;
24
+ declare const planUsageResponseSchema: yup$1.ObjectSchema<{
25
+ owner_team_id: string;
26
+ owner_team_display_name: string;
27
+ plan_id: "team" | "free" | "growth";
28
+ plan_display_name: string;
29
+ period_start_millis: number;
30
+ period_end_millis: number;
31
+ next_plan_id: "team" | "growth" | null;
32
+ rows: {
33
+ item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
34
+ display_name: string;
35
+ kind: "current" | "metered" | "capability";
36
+ used: number | null;
37
+ limit: number | null;
38
+ remaining: number | null;
39
+ overage: number | null;
40
+ is_unlimited: boolean;
41
+ }[];
42
+ }, yup$1.AnyObject, {
43
+ owner_team_id: undefined;
44
+ owner_team_display_name: undefined;
45
+ plan_id: undefined;
46
+ plan_display_name: undefined;
47
+ period_start_millis: undefined;
48
+ period_end_millis: undefined;
49
+ next_plan_id: undefined;
50
+ rows: undefined;
51
+ }, "">;
52
+ type PlanUsageKind = yup$1.InferType<typeof planUsageKindSchema>;
53
+ type PlanUsageRow = yup$1.InferType<typeof planUsageRowSchema>;
54
+ type PlanUsageResponse = yup$1.InferType<typeof planUsageResponseSchema>;
55
+ //#endregion
56
+ export { PlanUsageKind, PlanUsageResponse, PlanUsageRow, planUsageKindSchema, planUsageResponseSchema, planUsageRowSchema };
57
+ //# sourceMappingURL=plan-usage.d.ts.map
@@ -0,0 +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,SAAA,QAAiB,mBAAA;AAAA,KACrC,YAAA,GAAe,KAAA,CAAI,SAAA,QAAiB,kBAAA;AAAA,KACpC,iBAAA,GAAoB,KAAA,CAAI,SAAA,QAAiB,uBAAA"}