@hexclave/shared 1.0.12 → 1.0.14

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 (31) hide show
  1. package/dist/config/schema.d.ts +173 -173
  2. package/dist/esm/config/schema.d.ts +173 -173
  3. package/dist/esm/interface/admin-metrics.d.ts +8 -8
  4. package/dist/esm/interface/conversations.d.ts +31 -31
  5. package/dist/esm/interface/crud/current-user.d.ts +7 -7
  6. package/dist/esm/interface/crud/email-outbox.d.ts +212 -212
  7. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  8. package/dist/esm/interface/crud/products.d.ts +4 -4
  9. package/dist/esm/interface/crud/project-api-keys.d.ts +3 -3
  10. package/dist/esm/interface/crud/projects.d.ts +16 -16
  11. package/dist/esm/interface/crud/team-member-profiles.d.ts +18 -18
  12. package/dist/esm/interface/crud/transactions.d.ts +2 -2
  13. package/dist/esm/interface/crud/users.d.ts +10 -10
  14. package/dist/esm/interface/webhooks.d.ts +2 -2
  15. package/dist/esm/schema-fields.d.ts +3 -3
  16. package/dist/esm/sessions.d.ts +8 -8
  17. package/dist/interface/admin-metrics.d.ts +8 -8
  18. package/dist/interface/conversations.d.ts +31 -31
  19. package/dist/interface/crud/current-user.d.ts +7 -7
  20. package/dist/interface/crud/email-outbox.d.ts +212 -212
  21. package/dist/interface/crud/invoices.d.ts +2 -2
  22. package/dist/interface/crud/products.d.ts +4 -4
  23. package/dist/interface/crud/project-api-keys.d.ts +3 -3
  24. package/dist/interface/crud/projects.d.ts +16 -16
  25. package/dist/interface/crud/team-member-profiles.d.ts +18 -18
  26. package/dist/interface/crud/transactions.d.ts +2 -2
  27. package/dist/interface/crud/users.d.ts +10 -10
  28. package/dist/interface/webhooks.d.ts +2 -2
  29. package/dist/schema-fields.d.ts +3 -3
  30. package/dist/sessions.d.ts +8 -8
  31. package/package.json +1 -1
@@ -3,7 +3,7 @@ import * as yup$1 from "yup";
3
3
  //#region src/interface/crud/invoices.d.ts
4
4
  declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
5
5
  created_at_millis: number;
6
- status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
6
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
7
7
  amount_total: number;
8
8
  hosted_invoice_url: string | null;
9
9
  }, yup$1.AnyObject, {
@@ -15,7 +15,7 @@ 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
- status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
18
+ status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
19
19
  created_at_millis: number;
20
20
  amount_total: number;
21
21
  hosted_invoice_url: string | null;
@@ -26,8 +26,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
26
26
  }>;
27
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
  };
@@ -61,8 +61,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
61
61
  }>;
62
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
  };
@@ -124,8 +124,8 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
124
124
  }>;
125
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
  };
@@ -152,8 +152,8 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
152
152
  }>;
153
153
  display_name: string;
154
154
  included_items: Record<string, {
155
- quantity?: number | undefined;
156
155
  repeat?: "never" | DayInterval | undefined;
156
+ quantity?: number | undefined;
157
157
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
158
158
  }>;
159
159
  };
@@ -78,9 +78,9 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
78
78
  is_public: undefined;
79
79
  user_id: undefined;
80
80
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
81
- type: "user";
82
- user_id: string;
83
81
  description: string;
82
+ user_id: string;
83
+ type: "user";
84
84
  id: string;
85
85
  created_at_millis: number;
86
86
  expires_at_millis: number | undefined;
@@ -176,9 +176,9 @@ 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
- description: string;
182
182
  id: string;
183
183
  created_at_millis: number;
184
184
  expires_at_millis: number | undefined;
@@ -3,7 +3,7 @@ import * as yup$1 from "yup";
3
3
 
4
4
  //#region src/interface/crud/projects.d.ts
5
5
  declare const emailConfigSchema: yup$1.ObjectSchema<{
6
- type: "shared" | "standard";
6
+ type: "standard" | "shared";
7
7
  host: string | undefined;
8
8
  port: number | undefined;
9
9
  username: string | undefined;
@@ -20,7 +20,7 @@ declare const emailConfigSchema: yup$1.ObjectSchema<{
20
20
  sender_email: undefined;
21
21
  }, "">;
22
22
  declare const emailConfigWithoutPasswordSchema: yup$1.ObjectSchema<{
23
- type: "shared" | "standard";
23
+ type: "standard" | "shared";
24
24
  host: string | undefined;
25
25
  port: number | undefined;
26
26
  username: string | undefined;
@@ -66,7 +66,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
66
66
  facebook_config_id?: string | undefined;
67
67
  microsoft_tenant_id?: string | undefined;
68
68
  apple_bundle_ids?: string[] | undefined;
69
- type: "shared" | "standard";
69
+ type: "standard" | "shared";
70
70
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
71
71
  provider_config_id: string;
72
72
  }[];
@@ -89,7 +89,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
89
89
  username?: string | undefined;
90
90
  sender_name?: string | undefined;
91
91
  sender_email?: string | undefined;
92
- type: "shared" | "standard";
92
+ type: "standard" | "shared";
93
93
  };
94
94
  email_theme: string;
95
95
  create_team_on_sign_up: boolean;
@@ -219,7 +219,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
219
219
  facebook_config_id?: string | undefined;
220
220
  microsoft_tenant_id?: string | undefined;
221
221
  apple_bundle_ids?: string[] | undefined;
222
- type: "shared" | "standard";
222
+ type: "standard" | "shared";
223
223
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
224
224
  }[] | undefined;
225
225
  allow_localhost?: boolean | undefined;
@@ -238,7 +238,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
238
238
  username?: string | undefined;
239
239
  sender_name?: string | undefined;
240
240
  sender_email?: string | undefined;
241
- type: "shared" | "standard";
241
+ type: "standard" | "shared";
242
242
  } | undefined;
243
243
  email_theme?: string | undefined;
244
244
  create_team_on_sign_up?: boolean | undefined;
@@ -299,7 +299,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
299
299
  facebook_config_id?: string | undefined;
300
300
  microsoft_tenant_id?: string | undefined;
301
301
  apple_bundle_ids?: string[] | undefined;
302
- type: "shared" | "standard";
302
+ type: "standard" | "shared";
303
303
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
304
304
  }[] | undefined;
305
305
  allow_localhost?: boolean | undefined;
@@ -318,7 +318,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
318
318
  username?: string | undefined;
319
319
  sender_name?: string | undefined;
320
320
  sender_email?: string | undefined;
321
- type: "shared" | "standard";
321
+ type: "standard" | "shared";
322
322
  } | undefined;
323
323
  email_theme?: string | undefined;
324
324
  create_team_on_sign_up?: boolean | undefined;
@@ -439,7 +439,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
439
439
  facebook_config_id?: string | undefined;
440
440
  microsoft_tenant_id?: string | undefined;
441
441
  apple_bundle_ids?: string[] | undefined;
442
- type: "shared" | "standard";
442
+ type: "standard" | "shared";
443
443
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
444
444
  provider_config_id: string;
445
445
  }[];
@@ -462,7 +462,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
462
462
  username?: string | undefined;
463
463
  sender_name?: string | undefined;
464
464
  sender_email?: string | undefined;
465
- type: "shared" | "standard";
465
+ type: "standard" | "shared";
466
466
  };
467
467
  email_theme: string;
468
468
  create_team_on_sign_up: boolean;
@@ -554,7 +554,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
554
554
  facebook_config_id?: string | undefined;
555
555
  microsoft_tenant_id?: string | undefined;
556
556
  apple_bundle_ids?: string[] | undefined;
557
- type: "shared" | "standard";
557
+ type: "standard" | "shared";
558
558
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
559
559
  }[] | undefined;
560
560
  allow_localhost?: boolean | undefined;
@@ -573,7 +573,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
573
573
  username?: string | undefined;
574
574
  sender_name?: string | undefined;
575
575
  sender_email?: string | undefined;
576
- type: "shared" | "standard";
576
+ type: "standard" | "shared";
577
577
  } | undefined;
578
578
  email_theme?: string | undefined;
579
579
  create_team_on_sign_up?: boolean | undefined;
@@ -662,7 +662,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
662
662
  facebook_config_id?: string | undefined;
663
663
  microsoft_tenant_id?: string | undefined;
664
664
  apple_bundle_ids?: string[] | undefined;
665
- type: "shared" | "standard";
665
+ type: "standard" | "shared";
666
666
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
667
667
  provider_config_id: string;
668
668
  }[];
@@ -685,7 +685,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
685
685
  username?: string | undefined;
686
686
  sender_name?: string | undefined;
687
687
  sender_email?: string | undefined;
688
- type: "shared" | "standard";
688
+ type: "standard" | "shared";
689
689
  };
690
690
  email_theme: string;
691
691
  create_team_on_sign_up: boolean;
@@ -777,7 +777,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
777
777
  facebook_config_id?: string | undefined;
778
778
  microsoft_tenant_id?: string | undefined;
779
779
  apple_bundle_ids?: string[] | undefined;
780
- type: "shared" | "standard";
780
+ type: "standard" | "shared";
781
781
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
782
782
  }[] | undefined;
783
783
  allow_localhost?: boolean | undefined;
@@ -796,7 +796,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
796
796
  username?: string | undefined;
797
797
  sender_name?: string | undefined;
798
798
  sender_email?: string | undefined;
799
- type: "shared" | "standard";
799
+ type: "standard" | "shared";
800
800
  } | undefined;
801
801
  email_theme?: string | undefined;
802
802
  create_team_on_sign_up?: boolean | undefined;
@@ -20,40 +20,40 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
20
20
  profile_image_url: string | null;
21
21
  } & {
22
22
  user: {
23
- selected_team_id: string | null;
24
- is_anonymous: boolean;
25
- is_restricted: boolean;
26
23
  restricted_reason: {
27
24
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
28
25
  } | null;
29
- requires_totp_mfa: boolean;
30
26
  primary_email: string | null;
31
27
  display_name: string | null;
32
28
  client_metadata: {} | null;
33
29
  client_read_only_metadata: {} | null;
34
30
  server_metadata: {} | null;
35
31
  id: string;
36
- country_code: string | null;
37
- profile_image_url: string | null;
38
- signed_up_at_millis: number;
39
- last_active_at_millis: number;
32
+ selected_team_id: string | null;
33
+ is_anonymous: boolean;
34
+ is_restricted: boolean;
35
+ requires_totp_mfa: boolean;
40
36
  primary_email_verified: boolean;
41
37
  primary_email_auth_enabled: boolean;
38
+ profile_image_url: string | null;
42
39
  selected_team: {
43
40
  client_metadata?: {} | null | undefined;
44
41
  client_read_only_metadata?: {} | null | undefined;
45
42
  server_metadata?: {} | null | undefined;
46
43
  display_name: string;
47
44
  id: string;
48
- created_at_millis: number;
49
45
  profile_image_url: string | null;
46
+ created_at_millis: number;
50
47
  } | null;
48
+ signed_up_at_millis: number;
51
49
  has_password: boolean;
52
50
  otp_auth_enabled: boolean;
53
51
  passkey_auth_enabled: boolean;
52
+ last_active_at_millis: number;
54
53
  restricted_by_admin: boolean;
55
54
  restricted_by_admin_reason: string | null;
56
55
  restricted_by_admin_private_details: string | null;
56
+ country_code: string | null;
57
57
  risk_scores: {
58
58
  sign_up: {
59
59
  bot: number;
@@ -143,40 +143,40 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
143
143
  profile_image_url: string | null;
144
144
  } & {
145
145
  user: {
146
- selected_team_id: string | null;
147
- is_anonymous: boolean;
148
- is_restricted: boolean;
149
146
  restricted_reason: {
150
147
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
151
148
  } | null;
152
- requires_totp_mfa: boolean;
153
149
  primary_email: string | null;
154
150
  display_name: string | null;
155
151
  client_metadata: {} | null;
156
152
  client_read_only_metadata: {} | null;
157
153
  server_metadata: {} | null;
158
154
  id: string;
159
- country_code: string | null;
160
- profile_image_url: string | null;
161
- signed_up_at_millis: number;
162
- last_active_at_millis: number;
155
+ selected_team_id: string | null;
156
+ is_anonymous: boolean;
157
+ is_restricted: boolean;
158
+ requires_totp_mfa: boolean;
163
159
  primary_email_verified: boolean;
164
160
  primary_email_auth_enabled: boolean;
161
+ profile_image_url: string | null;
165
162
  selected_team: {
166
163
  client_metadata?: {} | null | undefined;
167
164
  client_read_only_metadata?: {} | null | undefined;
168
165
  server_metadata?: {} | null | undefined;
169
166
  display_name: string;
170
167
  id: string;
171
- created_at_millis: number;
172
168
  profile_image_url: string | null;
169
+ created_at_millis: number;
173
170
  } | null;
171
+ signed_up_at_millis: number;
174
172
  has_password: boolean;
175
173
  otp_auth_enabled: boolean;
176
174
  passkey_auth_enabled: boolean;
175
+ last_active_at_millis: number;
177
176
  restricted_by_admin: boolean;
178
177
  restricted_by_admin_reason: string | null;
179
178
  restricted_by_admin_private_details: string | null;
179
+ country_code: string | null;
180
180
  risk_scores: {
181
181
  sign_up: {
182
182
  bot: number;
@@ -58,8 +58,8 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
58
58
  }>;
59
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
  };
@@ -142,8 +142,8 @@ declare const transactionSchema: yup$1.ObjectSchema<{
142
142
  }>;
143
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
  };
@@ -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
- created_at_millis: number;
86
85
  profile_image_url: string | null;
86
+ created_at_millis: number;
87
87
  } | null;
88
88
  selected_team_id: string | null;
89
89
  profile_image_url: string | null;
@@ -162,22 +162,22 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
162
162
  requires_totp_mfa: undefined;
163
163
  }, "">;
164
164
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
165
- is_anonymous: boolean | undefined;
166
165
  primary_email: string | null | undefined;
167
166
  display_name: string | null | undefined;
168
167
  client_metadata: {} | null | undefined;
169
168
  client_read_only_metadata: {} | null | undefined;
170
169
  server_metadata: {} | null | undefined;
170
+ is_anonymous: boolean | undefined;
171
171
  password: string | null | undefined;
172
- country_code: string | null | undefined;
173
- profile_image_url: string | null | undefined;
174
172
  primary_email_verified: boolean | undefined;
175
173
  primary_email_auth_enabled: boolean | undefined;
174
+ profile_image_url: string | null | undefined;
176
175
  otp_auth_enabled: boolean | undefined;
177
176
  passkey_auth_enabled: boolean | undefined;
178
177
  restricted_by_admin: boolean | undefined;
179
178
  restricted_by_admin_reason: string | null | undefined;
180
179
  restricted_by_admin_private_details: string | null | undefined;
180
+ country_code: string | null | undefined;
181
181
  risk_scores: {
182
182
  sign_up: {
183
183
  bot: number;
@@ -235,8 +235,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
235
235
  server_metadata?: {} | null | undefined;
236
236
  display_name: string;
237
237
  id: string;
238
- created_at_millis: number;
239
238
  profile_image_url: string | null;
239
+ created_at_millis: number;
240
240
  } | null;
241
241
  selected_team_id: string | null;
242
242
  profile_image_url: string | null;
@@ -368,22 +368,22 @@ declare const usersCrud: CrudSchemaFromOptions<{
368
368
  };
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
- is_anonymous: boolean | undefined;
372
371
  primary_email: string | null | undefined;
373
372
  display_name: string | null | undefined;
374
373
  client_metadata: {} | null | undefined;
375
374
  client_read_only_metadata: {} | null | undefined;
376
375
  server_metadata: {} | null | undefined;
376
+ is_anonymous: boolean | undefined;
377
377
  password: string | null | undefined;
378
- country_code: string | null | undefined;
379
- profile_image_url: string | null | undefined;
380
378
  primary_email_verified: boolean | undefined;
381
379
  primary_email_auth_enabled: boolean | undefined;
380
+ profile_image_url: string | null | undefined;
382
381
  otp_auth_enabled: boolean | undefined;
383
382
  passkey_auth_enabled: boolean | undefined;
384
383
  restricted_by_admin: boolean | undefined;
385
384
  restricted_by_admin_reason: string | null | undefined;
386
385
  restricted_by_admin_private_details: string | null | undefined;
386
+ country_code: string | null | undefined;
387
387
  risk_scores: {
388
388
  sign_up: {
389
389
  bot: number;
@@ -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
- created_at_millis: number;
473
472
  profile_image_url: string | null;
473
+ created_at_millis: number;
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
- created_at_millis: number;
564
563
  profile_image_url: string | null;
564
+ created_at_millis: number;
565
565
  } | null;
566
566
  selected_team_id: string | null;
567
567
  profile_image_url: string | 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
- created_at_millis: number;
26
25
  profile_image_url: string | null;
26
+ created_at_millis: number;
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
- created_at_millis: number;
116
115
  profile_image_url: string | null;
116
+ created_at_millis: number;
117
117
  } | null;
118
118
  selected_team_id: string | null;
119
119
  profile_image_url: string | null;
@@ -140,7 +140,7 @@ declare const projectSignUpEnabledSchema: yup$1.BooleanSchema<boolean | undefine
140
140
  declare const projectCredentialEnabledSchema: yup$1.BooleanSchema<boolean | undefined, yup$1.AnyObject, undefined, "">;
141
141
  declare const oauthIdSchema: yup$1.StringSchema<"google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined, yup$1.AnyObject, undefined, "">;
142
142
  declare const oauthEnabledSchema: yup$1.BooleanSchema<boolean | undefined, yup$1.AnyObject, undefined, "">;
143
- declare const oauthTypeSchema: yup$1.StringSchema<"shared" | "standard" | undefined, yup$1.AnyObject, undefined, "">;
143
+ declare const oauthTypeSchema: yup$1.StringSchema<"standard" | "shared" | undefined, yup$1.AnyObject, undefined, "">;
144
144
  declare const oauthClientIdSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
145
145
  declare const oauthClientSecretSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
146
146
  declare const oauthCustomCallbackUrlSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
@@ -149,7 +149,7 @@ declare const oauthMicrosoftTenantIdSchema: yup$1.StringSchema<string | undefine
149
149
  declare const oauthAppleBundleIdsSchema: yup$1.ArraySchema<string[] | undefined, yup$1.AnyObject, undefined, "">;
150
150
  declare const oauthAppleBundleIdSchema: yup$1.StringSchema<string, yup$1.AnyObject, undefined, "">;
151
151
  declare const oauthAccountMergeStrategySchema: yup$1.StringSchema<"link_method" | "raise_error" | "allow_duplicates" | undefined, yup$1.AnyObject, undefined, "">;
152
- declare const emailTypeSchema: yup$1.StringSchema<"shared" | "standard" | undefined, yup$1.AnyObject, undefined, "">;
152
+ declare const emailTypeSchema: yup$1.StringSchema<"standard" | "shared" | undefined, yup$1.AnyObject, undefined, "">;
153
153
  declare const emailSenderNameSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
154
154
  declare const emailHostSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
155
155
  declare const emailPortSchema: yup$1.NumberSchema<number | undefined, yup$1.AnyObject, undefined, "">;
@@ -312,8 +312,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
312
312
  free_trial?: DayInterval | undefined;
313
313
  }>;
314
314
  included_items: Record<string, {
315
- quantity?: number | undefined;
316
315
  repeat?: "never" | DayInterval | undefined;
316
+ quantity?: number | undefined;
317
317
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
318
318
  }>;
319
319
  client_metadata: {} | null | undefined;
@@ -9,24 +9,24 @@ declare class AccessToken {
9
9
  private constructor();
10
10
  get payload(): {
11
11
  exp?: number | undefined;
12
+ name: string | null;
12
13
  sub: string;
14
+ project_id: string;
15
+ refresh_token_id: string;
16
+ email: string | null;
17
+ restricted_reason: {
18
+ type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
19
+ } | null;
20
+ branch_id: string;
13
21
  iat: number;
14
22
  iss: string;
15
23
  aud: string;
16
- project_id: string;
17
- branch_id: string;
18
- refresh_token_id: string;
19
24
  role: "authenticated";
20
- name: string | null;
21
- email: string | null;
22
25
  email_verified: boolean;
23
26
  selected_team_id: string | null;
24
27
  signed_up_at: number;
25
28
  is_anonymous: boolean;
26
29
  is_restricted: boolean;
27
- restricted_reason: {
28
- type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
29
- } | null;
30
30
  requires_totp_mfa: boolean;
31
31
  };
32
32
  get expiresAt(): Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexclave/shared",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "repository": "https://github.com/hexclave/hexclave",
5
5
  "files": [
6
6
  "README.md",