@hexclave/shared 1.0.29 → 1.0.30

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 (35) hide show
  1. package/dist/config/schema.d.ts +65 -65
  2. package/dist/esm/config/schema.d.ts +65 -65
  3. package/dist/esm/interface/admin-metrics.d.ts +8 -8
  4. package/dist/esm/interface/conversations.d.ts +27 -27
  5. package/dist/esm/interface/crud/current-user.d.ts +8 -8
  6. package/dist/esm/interface/crud/email-outbox.d.ts +196 -196
  7. package/dist/esm/interface/crud/products.d.ts +13 -13
  8. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  9. package/dist/esm/interface/crud/project-api-keys.d.ts +5 -5
  10. package/dist/esm/interface/crud/projects.d.ts +35 -35
  11. package/dist/esm/interface/crud/team-member-profiles.d.ts +12 -12
  12. package/dist/esm/interface/crud/transactions.d.ts +6 -6
  13. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  14. package/dist/esm/interface/crud/users.d.ts +10 -10
  15. package/dist/esm/interface/plan-usage.d.ts +2 -2
  16. package/dist/esm/interface/webhooks.d.ts +2 -2
  17. package/dist/esm/schema-fields.d.ts +1 -1
  18. package/dist/esm/sessions.d.ts +7 -7
  19. package/dist/interface/admin-metrics.d.ts +8 -8
  20. package/dist/interface/conversations.d.ts +27 -27
  21. package/dist/interface/crud/current-user.d.ts +8 -8
  22. package/dist/interface/crud/email-outbox.d.ts +196 -196
  23. package/dist/interface/crud/products.d.ts +13 -13
  24. package/dist/interface/crud/products.d.ts.map +1 -1
  25. package/dist/interface/crud/project-api-keys.d.ts +5 -5
  26. package/dist/interface/crud/projects.d.ts +35 -35
  27. package/dist/interface/crud/team-member-profiles.d.ts +12 -12
  28. package/dist/interface/crud/transactions.d.ts +6 -6
  29. package/dist/interface/crud/transactions.d.ts.map +1 -1
  30. package/dist/interface/crud/users.d.ts +10 -10
  31. package/dist/interface/plan-usage.d.ts +2 -2
  32. package/dist/interface/webhooks.d.ts +2 -2
  33. package/dist/schema-fields.d.ts +1 -1
  34. package/dist/sessions.d.ts +7 -7
  35. package/package.json +1 -1
@@ -6,11 +6,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
6
6
  id: string | null;
7
7
  quantity: number;
8
8
  product: {
9
+ free_trial?: DayInterval | undefined;
9
10
  client_metadata?: {} | null | undefined;
10
11
  client_read_only_metadata?: {} | null | undefined;
11
12
  server_metadata?: {} | null | undefined;
12
- free_trial?: DayInterval | undefined;
13
- display_name: string;
14
13
  server_only: boolean;
15
14
  customer_type: "team" | "user" | "custom";
16
15
  stackable: boolean;
@@ -25,9 +24,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
25
24
  interval?: DayInterval | undefined;
26
25
  free_trial?: DayInterval | undefined;
27
26
  }>;
27
+ display_name: string;
28
28
  included_items: Record<string, {
29
- quantity?: number | undefined;
30
29
  repeat?: "never" | DayInterval | undefined;
30
+ quantity?: number | undefined;
31
31
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
32
32
  }>;
33
33
  };
@@ -41,11 +41,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
41
41
  switch_options: {
42
42
  product_id: string;
43
43
  product: {
44
+ free_trial?: DayInterval | undefined;
44
45
  client_metadata?: {} | null | undefined;
45
46
  client_read_only_metadata?: {} | null | undefined;
46
47
  server_metadata?: {} | null | undefined;
47
- free_trial?: DayInterval | undefined;
48
- display_name: string;
49
48
  server_only: boolean;
50
49
  customer_type: "team" | "user" | "custom";
51
50
  stackable: boolean;
@@ -60,9 +59,10 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
60
59
  interval?: DayInterval | undefined;
61
60
  free_trial?: DayInterval | undefined;
62
61
  }>;
62
+ display_name: string;
63
63
  included_items: Record<string, {
64
- quantity?: number | undefined;
65
64
  repeat?: "never" | DayInterval | undefined;
65
+ quantity?: number | undefined;
66
66
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
67
67
  }>;
68
68
  };
@@ -104,11 +104,10 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
104
104
  switch_options?: {
105
105
  product_id: string;
106
106
  product: {
107
+ free_trial?: DayInterval | undefined;
107
108
  client_metadata?: {} | null | undefined;
108
109
  client_read_only_metadata?: {} | null | undefined;
109
110
  server_metadata?: {} | null | undefined;
110
- free_trial?: DayInterval | undefined;
111
- display_name: string;
112
111
  server_only: boolean;
113
112
  customer_type: "team" | "user" | "custom";
114
113
  stackable: boolean;
@@ -123,21 +122,20 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
123
122
  interval?: DayInterval | undefined;
124
123
  free_trial?: DayInterval | undefined;
125
124
  }>;
125
+ display_name: string;
126
126
  included_items: Record<string, {
127
- quantity?: number | undefined;
128
127
  repeat?: "never" | DayInterval | undefined;
128
+ quantity?: number | undefined;
129
129
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
130
130
  }>;
131
131
  };
132
132
  }[] | undefined;
133
133
  quantity: number;
134
- id: string | null;
135
134
  product: {
135
+ free_trial?: DayInterval | undefined;
136
136
  client_metadata?: {} | null | undefined;
137
137
  client_read_only_metadata?: {} | null | undefined;
138
138
  server_metadata?: {} | null | undefined;
139
- free_trial?: DayInterval | undefined;
140
- display_name: string;
141
139
  server_only: boolean;
142
140
  customer_type: "team" | "user" | "custom";
143
141
  stackable: boolean;
@@ -152,12 +150,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
152
150
  interval?: DayInterval | undefined;
153
151
  free_trial?: DayInterval | undefined;
154
152
  }>;
153
+ display_name: string;
155
154
  included_items: Record<string, {
156
- quantity?: number | undefined;
157
155
  repeat?: "never" | DayInterval | undefined;
156
+ quantity?: number | undefined;
158
157
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
159
158
  }>;
160
159
  };
160
+ id: string | null;
161
161
  }[];
162
162
  is_paginated: boolean;
163
163
  pagination: {
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","names":[],"sources":["../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;;;iBAc1B,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;qBAMnC,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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -78,13 +78,13 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
78
78
  is_public: undefined;
79
79
  user_id: undefined;
80
80
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
81
- type: "user";
81
+ description: string;
82
82
  user_id: string;
83
+ type: "user";
83
84
  id: string;
84
- description: string;
85
- created_at_millis: number;
86
85
  expires_at_millis: number | undefined;
87
86
  manually_revoked_at_millis: number | undefined;
87
+ created_at_millis: number;
88
88
  is_public: boolean;
89
89
  } & {
90
90
  value: string;
@@ -176,13 +176,13 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
176
176
  is_public: undefined;
177
177
  team_id: undefined;
178
178
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
179
+ description: string;
179
180
  type: "team";
180
181
  team_id: string;
181
182
  id: string;
182
- description: string;
183
- created_at_millis: number;
184
183
  expires_at_millis: number | undefined;
185
184
  manually_revoked_at_millis: number | undefined;
185
+ created_at_millis: number;
186
186
  is_public: boolean;
187
187
  } & {
188
188
  value: string;
@@ -51,7 +51,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
51
51
  onboarding_state: {
52
52
  selected_config_choice: "create-new" | "link-existing";
53
53
  selected_apps: string[];
54
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
54
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
55
55
  selected_email_theme_id: string | null;
56
56
  selected_payments_country: "US" | "OTHER";
57
57
  } | null | undefined;
@@ -62,6 +62,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
62
62
  message: string;
63
63
  }[];
64
64
  config: {
65
+ domains: {
66
+ domain: string;
67
+ handler_path: string;
68
+ }[];
65
69
  oauth_providers: {
66
70
  client_id?: string | undefined;
67
71
  client_secret?: string | undefined;
@@ -72,10 +76,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
72
76
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
73
77
  provider_config_id: string;
74
78
  }[];
75
- domains: {
76
- domain: string;
77
- handler_path: string;
78
- }[];
79
79
  allow_localhost: boolean;
80
80
  sign_up_enabled: boolean;
81
81
  credential_enabled: boolean;
@@ -224,11 +224,15 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
224
224
  onboarding_state: {
225
225
  selected_config_choice: "create-new" | "link-existing";
226
226
  selected_apps: string[];
227
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
227
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
228
228
  selected_email_theme_id: string | null;
229
229
  selected_payments_country: "US" | "OTHER";
230
230
  } | null | undefined;
231
231
  config: {
232
+ domains?: {
233
+ domain: string;
234
+ handler_path: string;
235
+ }[] | undefined;
232
236
  oauth_providers?: {
233
237
  client_id?: string | undefined;
234
238
  client_secret?: string | undefined;
@@ -238,10 +242,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
238
242
  type: "shared" | "standard";
239
243
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
240
244
  }[] | undefined;
241
- domains?: {
242
- domain: string;
243
- handler_path: string;
244
- }[] | undefined;
245
245
  allow_localhost?: boolean | undefined;
246
246
  sign_up_enabled?: boolean | undefined;
247
247
  credential_enabled?: boolean | undefined;
@@ -304,11 +304,15 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
304
304
  onboarding_state: {
305
305
  selected_config_choice: "create-new" | "link-existing";
306
306
  selected_apps: string[];
307
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
307
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
308
308
  selected_email_theme_id: string | null;
309
309
  selected_payments_country: "US" | "OTHER";
310
310
  } | null | undefined;
311
311
  config: {
312
+ domains?: {
313
+ domain: string;
314
+ handler_path: string;
315
+ }[] | undefined;
312
316
  oauth_providers?: {
313
317
  client_id?: string | undefined;
314
318
  client_secret?: string | undefined;
@@ -318,10 +322,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
318
322
  type: "shared" | "standard";
319
323
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
320
324
  }[] | undefined;
321
- domains?: {
322
- domain: string;
323
- handler_path: string;
324
- }[] | undefined;
325
325
  allow_localhost?: boolean | undefined;
326
326
  sign_up_enabled?: boolean | undefined;
327
327
  credential_enabled?: boolean | undefined;
@@ -454,7 +454,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
454
454
  onboarding_state: {
455
455
  selected_config_choice: "create-new" | "link-existing";
456
456
  selected_apps: string[];
457
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
457
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
458
458
  selected_email_theme_id: string | null;
459
459
  selected_payments_country: "US" | "OTHER";
460
460
  } | null | undefined;
@@ -465,6 +465,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
465
465
  message: string;
466
466
  }[];
467
467
  config: {
468
+ domains: {
469
+ domain: string;
470
+ handler_path: string;
471
+ }[];
468
472
  oauth_providers: {
469
473
  client_id?: string | undefined;
470
474
  client_secret?: string | undefined;
@@ -475,10 +479,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
475
479
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
476
480
  provider_config_id: string;
477
481
  }[];
478
- domains: {
479
- domain: string;
480
- handler_path: string;
481
- }[];
482
482
  allow_localhost: boolean;
483
483
  sign_up_enabled: boolean;
484
484
  credential_enabled: boolean;
@@ -579,11 +579,15 @@ declare const projectsCrud: CrudSchemaFromOptions<{
579
579
  onboarding_state: {
580
580
  selected_config_choice: "create-new" | "link-existing";
581
581
  selected_apps: string[];
582
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
582
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
583
583
  selected_email_theme_id: string | null;
584
584
  selected_payments_country: "US" | "OTHER";
585
585
  } | null | undefined;
586
586
  config: {
587
+ domains?: {
588
+ domain: string;
589
+ handler_path: string;
590
+ }[] | undefined;
587
591
  oauth_providers?: {
588
592
  client_id?: string | undefined;
589
593
  client_secret?: string | undefined;
@@ -593,10 +597,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
593
597
  type: "shared" | "standard";
594
598
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
595
599
  }[] | undefined;
596
- domains?: {
597
- domain: string;
598
- handler_path: string;
599
- }[] | undefined;
600
600
  allow_localhost?: boolean | undefined;
601
601
  sign_up_enabled?: boolean | undefined;
602
602
  credential_enabled?: boolean | undefined;
@@ -687,7 +687,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
687
687
  onboarding_state: {
688
688
  selected_config_choice: "create-new" | "link-existing";
689
689
  selected_apps: string[];
690
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
690
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
691
691
  selected_email_theme_id: string | null;
692
692
  selected_payments_country: "US" | "OTHER";
693
693
  } | null | undefined;
@@ -698,6 +698,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
698
698
  message: string;
699
699
  }[];
700
700
  config: {
701
+ domains: {
702
+ domain: string;
703
+ handler_path: string;
704
+ }[];
701
705
  oauth_providers: {
702
706
  client_id?: string | undefined;
703
707
  client_secret?: string | undefined;
@@ -708,10 +712,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
708
712
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
709
713
  provider_config_id: string;
710
714
  }[];
711
- domains: {
712
- domain: string;
713
- handler_path: string;
714
- }[];
715
715
  allow_localhost: boolean;
716
716
  sign_up_enabled: boolean;
717
717
  credential_enabled: boolean;
@@ -812,11 +812,15 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
812
812
  onboarding_state: {
813
813
  selected_config_choice: "create-new" | "link-existing";
814
814
  selected_apps: string[];
815
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
815
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
816
816
  selected_email_theme_id: string | null;
817
817
  selected_payments_country: "US" | "OTHER";
818
818
  } | null | undefined;
819
819
  config: {
820
+ domains?: {
821
+ domain: string;
822
+ handler_path: string;
823
+ }[] | undefined;
820
824
  oauth_providers?: {
821
825
  client_id?: string | undefined;
822
826
  client_secret?: string | undefined;
@@ -826,10 +830,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
826
830
  type: "shared" | "standard";
827
831
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
828
832
  }[] | undefined;
829
- domains?: {
830
- domain: string;
831
- handler_path: string;
832
- }[] | undefined;
833
833
  allow_localhost?: boolean | undefined;
834
834
  sign_up_enabled?: boolean | undefined;
835
835
  credential_enabled?: boolean | undefined;
@@ -20,11 +20,15 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
20
20
  profile_image_url: string | null;
21
21
  } & {
22
22
  user: {
23
- display_name: string | null;
24
23
  restricted_reason: {
25
24
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
26
25
  } | null;
27
26
  primary_email: string | null;
27
+ selected_team_id: string | null;
28
+ is_anonymous: boolean;
29
+ is_restricted: boolean;
30
+ requires_totp_mfa: boolean;
31
+ display_name: string | null;
28
32
  client_metadata: {} | null;
29
33
  client_read_only_metadata: {} | null;
30
34
  server_metadata: {} | null;
@@ -38,17 +42,14 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
38
42
  server_metadata?: {} | null | undefined;
39
43
  display_name: string;
40
44
  id: string;
41
- profile_image_url: string | null;
42
45
  created_at_millis: number;
46
+ profile_image_url: string | null;
43
47
  } | null;
44
- selected_team_id: string | null;
45
48
  signed_up_at_millis: number;
46
49
  has_password: boolean;
47
50
  otp_auth_enabled: boolean;
48
51
  passkey_auth_enabled: boolean;
49
52
  last_active_at_millis: number;
50
- is_anonymous: boolean;
51
- is_restricted: boolean;
52
53
  restricted_by_admin: boolean;
53
54
  restricted_by_admin_reason: string | null;
54
55
  restricted_by_admin_private_details: string | null;
@@ -65,7 +66,6 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
65
66
  account_id: string;
66
67
  }[];
67
68
  auth_with_email: boolean;
68
- requires_totp_mfa: boolean;
69
69
  };
70
70
  }, yup$1.AnyObject, {
71
71
  team_id: undefined;
@@ -143,11 +143,15 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
143
143
  profile_image_url: string | null;
144
144
  } & {
145
145
  user: {
146
- display_name: string | null;
147
146
  restricted_reason: {
148
147
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
149
148
  } | null;
150
149
  primary_email: string | null;
150
+ selected_team_id: string | null;
151
+ is_anonymous: boolean;
152
+ is_restricted: boolean;
153
+ requires_totp_mfa: boolean;
154
+ display_name: string | null;
151
155
  client_metadata: {} | null;
152
156
  client_read_only_metadata: {} | null;
153
157
  server_metadata: {} | null;
@@ -161,17 +165,14 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
161
165
  server_metadata?: {} | null | undefined;
162
166
  display_name: string;
163
167
  id: string;
164
- profile_image_url: string | null;
165
168
  created_at_millis: number;
169
+ profile_image_url: string | null;
166
170
  } | null;
167
- selected_team_id: string | null;
168
171
  signed_up_at_millis: number;
169
172
  has_password: boolean;
170
173
  otp_auth_enabled: boolean;
171
174
  passkey_auth_enabled: boolean;
172
175
  last_active_at_millis: number;
173
- is_anonymous: boolean;
174
- is_restricted: boolean;
175
176
  restricted_by_admin: boolean;
176
177
  restricted_by_admin_reason: string | null;
177
178
  restricted_by_admin_private_details: string | null;
@@ -188,7 +189,6 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
188
189
  account_id: string;
189
190
  }[];
190
191
  auth_with_email: boolean;
191
- requires_totp_mfa: boolean;
192
192
  };
193
193
  }, yup$1.AnyObject, {
194
194
  team_id: undefined;
@@ -38,11 +38,10 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
38
38
  quantity: number;
39
39
  customer_type: "team" | "user" | "custom";
40
40
  product: {
41
+ free_trial?: DayInterval | undefined;
41
42
  client_metadata?: {} | null | undefined;
42
43
  client_read_only_metadata?: {} | null | undefined;
43
44
  server_metadata?: {} | null | undefined;
44
- free_trial?: DayInterval | undefined;
45
- display_name: string;
46
45
  server_only: boolean;
47
46
  customer_type: "team" | "user" | "custom";
48
47
  stackable: boolean;
@@ -57,9 +56,10 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
57
56
  interval?: DayInterval | undefined;
58
57
  free_trial?: DayInterval | undefined;
59
58
  }>;
59
+ display_name: string;
60
60
  included_items: Record<string, {
61
- quantity?: number | undefined;
62
61
  repeat?: "never" | DayInterval | undefined;
62
+ quantity?: number | undefined;
63
63
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
64
64
  }>;
65
65
  };
@@ -122,11 +122,10 @@ declare const transactionSchema: yup$1.ObjectSchema<{
122
122
  quantity: number;
123
123
  customer_type: "team" | "user" | "custom";
124
124
  product: {
125
+ free_trial?: DayInterval | undefined;
125
126
  client_metadata?: {} | null | undefined;
126
127
  client_read_only_metadata?: {} | null | undefined;
127
128
  server_metadata?: {} | null | undefined;
128
- free_trial?: DayInterval | undefined;
129
- display_name: string;
130
129
  server_only: boolean;
131
130
  customer_type: "team" | "user" | "custom";
132
131
  stackable: boolean;
@@ -141,9 +140,10 @@ declare const transactionSchema: yup$1.ObjectSchema<{
141
140
  interval?: DayInterval | undefined;
142
141
  free_trial?: DayInterval | undefined;
143
142
  }>;
143
+ display_name: string;
144
144
  included_items: Record<string, {
145
- quantity?: number | undefined;
146
145
  repeat?: "never" | DayInterval | undefined;
146
+ quantity?: number | undefined;
147
147
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
148
148
  }>;
149
149
  };
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,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,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
@@ -82,8 +82,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
82
82
  server_metadata?: {} | null | undefined;
83
83
  display_name: string;
84
84
  id: string;
85
- profile_image_url: string | null;
86
85
  created_at_millis: number;
86
+ profile_image_url: string | null;
87
87
  } | null;
88
88
  selected_team_id: string | null;
89
89
  profile_image_url: string | null;
@@ -162,17 +162,18 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
162
162
  requires_totp_mfa: undefined;
163
163
  }, "">;
164
164
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
165
- display_name: string | null | undefined;
166
165
  primary_email: string | null | undefined;
166
+ is_anonymous: boolean | undefined;
167
+ display_name: string | null | undefined;
167
168
  client_metadata: {} | null | undefined;
168
169
  client_read_only_metadata: {} | null | undefined;
169
170
  server_metadata: {} | null | undefined;
171
+ password: string | null | undefined;
170
172
  primary_email_verified: boolean | undefined;
171
173
  primary_email_auth_enabled: boolean | undefined;
172
174
  profile_image_url: string | null | undefined;
173
175
  otp_auth_enabled: boolean | undefined;
174
176
  passkey_auth_enabled: boolean | undefined;
175
- is_anonymous: boolean | undefined;
176
177
  restricted_by_admin: boolean | undefined;
177
178
  restricted_by_admin_reason: string | null | undefined;
178
179
  restricted_by_admin_private_details: string | null | undefined;
@@ -183,7 +184,6 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
183
184
  free_trial_abuse: number;
184
185
  };
185
186
  } | undefined;
186
- password: string | null | undefined;
187
187
  password_hash: string | undefined;
188
188
  totp_secret_base64: string | null | undefined;
189
189
  } & {
@@ -235,8 +235,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
235
235
  server_metadata?: {} | null | undefined;
236
236
  display_name: string;
237
237
  id: string;
238
- profile_image_url: string | null;
239
238
  created_at_millis: number;
239
+ profile_image_url: string | null;
240
240
  } | null;
241
241
  selected_team_id: string | null;
242
242
  profile_image_url: string | null;
@@ -368,17 +368,18 @@ declare const usersCrud: CrudSchemaFromOptions<{
368
368
  };
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
- display_name: string | null | undefined;
372
371
  primary_email: string | null | undefined;
372
+ is_anonymous: boolean | undefined;
373
+ display_name: string | null | undefined;
373
374
  client_metadata: {} | null | undefined;
374
375
  client_read_only_metadata: {} | null | undefined;
375
376
  server_metadata: {} | null | undefined;
377
+ password: string | null | undefined;
376
378
  primary_email_verified: boolean | undefined;
377
379
  primary_email_auth_enabled: boolean | undefined;
378
380
  profile_image_url: string | null | undefined;
379
381
  otp_auth_enabled: boolean | undefined;
380
382
  passkey_auth_enabled: boolean | undefined;
381
- is_anonymous: boolean | undefined;
382
383
  restricted_by_admin: boolean | undefined;
383
384
  restricted_by_admin_reason: string | null | undefined;
384
385
  restricted_by_admin_private_details: string | null | undefined;
@@ -389,7 +390,6 @@ declare const usersCrud: CrudSchemaFromOptions<{
389
390
  free_trial_abuse: number;
390
391
  };
391
392
  } | undefined;
392
- password: string | null | undefined;
393
393
  password_hash: string | undefined;
394
394
  totp_secret_base64: string | null | undefined;
395
395
  } & {
@@ -469,8 +469,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
469
469
  server_metadata?: {} | null | undefined;
470
470
  display_name: string;
471
471
  id: string;
472
- profile_image_url: string | null;
473
472
  created_at_millis: number;
473
+ profile_image_url: string | null;
474
474
  } | null;
475
475
  selected_team_id: string | null;
476
476
  profile_image_url: string | null;
@@ -560,8 +560,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
560
560
  server_metadata?: {} | null | undefined;
561
561
  display_name: string;
562
562
  id: string;
563
- profile_image_url: string | null;
564
563
  created_at_millis: number;
564
+ profile_image_url: string | null;
565
565
  } | null;
566
566
  selected_team_id: string | null;
567
567
  profile_image_url: string | null;
@@ -24,15 +24,15 @@ declare const planUsageRowSchema: yup$1.ObjectSchema<{
24
24
  declare const planUsageResponseSchema: yup$1.ObjectSchema<{
25
25
  owner_team_id: string;
26
26
  owner_team_display_name: string;
27
- plan_id: "free" | "team" | "growth";
27
+ plan_id: "team" | "free" | "growth";
28
28
  plan_display_name: string;
29
29
  period_start_millis: number;
30
30
  period_end_millis: number;
31
31
  next_plan_id: "team" | "growth" | null;
32
32
  rows: {
33
- kind: "current" | "metered" | "capability";
34
33
  item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
35
34
  display_name: string;
35
+ kind: "current" | "metered" | "capability";
36
36
  used: number | null;
37
37
  limit: number | null;
38
38
  remaining: number | null;
@@ -22,8 +22,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
22
22
  server_metadata?: {} | null | undefined;
23
23
  display_name: string;
24
24
  id: string;
25
- profile_image_url: string | null;
26
25
  created_at_millis: number;
26
+ profile_image_url: string | null;
27
27
  } | null;
28
28
  selected_team_id: string | null;
29
29
  profile_image_url: string | null;
@@ -112,8 +112,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
112
112
  server_metadata?: {} | null | undefined;
113
113
  display_name: string;
114
114
  id: string;
115
- profile_image_url: string | null;
116
115
  created_at_millis: number;
116
+ profile_image_url: string | null;
117
117
  } | null;
118
118
  selected_team_id: string | null;
119
119
  profile_image_url: string | null;
@@ -314,8 +314,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
314
314
  free_trial?: DayInterval | undefined;
315
315
  }>;
316
316
  included_items: Record<string, {
317
- quantity?: number | undefined;
318
317
  repeat?: "never" | DayInterval | undefined;
318
+ quantity?: number | undefined;
319
319
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
320
320
  }>;
321
321
  client_metadata: {} | null | undefined;
@@ -9,6 +9,7 @@ declare class AccessToken {
9
9
  private constructor();
10
10
  get payload(): {
11
11
  exp?: number | undefined;
12
+ sub: string;
12
13
  project_id: string;
13
14
  refresh_token_id: string;
14
15
  email: string | null;
@@ -16,18 +17,17 @@ declare class AccessToken {
16
17
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
17
18
  } | null;
18
19
  branch_id: string;
19
- name: string | null;
20
- sub: string;
21
- selected_team_id: string | null;
22
- is_anonymous: boolean;
23
- is_restricted: boolean;
24
- requires_totp_mfa: boolean;
25
- role: "authenticated";
26
20
  iat: number;
27
21
  iss: string;
28
22
  aud: string;
23
+ role: "authenticated";
24
+ name: string | null;
29
25
  email_verified: boolean;
26
+ selected_team_id: string | null;
30
27
  signed_up_at: number;
28
+ is_anonymous: boolean;
29
+ is_restricted: boolean;
30
+ requires_totp_mfa: boolean;
31
31
  };
32
32
  get expiresAt(): Date;
33
33
  get issuedAt(): Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexclave/shared",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "repository": "https://github.com/hexclave/hexclave",
5
5
  "files": [
6
6
  "README.md",