@hexclave/shared 1.0.11 → 1.0.12

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 (30) hide show
  1. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  2. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -2
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  4. package/dist/config/schema.d.ts +160 -160
  5. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  6. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -2
  7. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  8. package/dist/esm/config/schema.d.ts +160 -160
  9. package/dist/esm/interface/admin-metrics.d.ts +4 -4
  10. package/dist/esm/interface/conversations.d.ts +24 -24
  11. package/dist/esm/interface/crud/current-user.d.ts +11 -11
  12. package/dist/esm/interface/crud/email-outbox.d.ts +288 -288
  13. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  14. package/dist/esm/interface/crud/project-api-keys.d.ts +3 -3
  15. package/dist/esm/interface/crud/projects.d.ts +99 -99
  16. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  17. package/dist/esm/interface/crud/users.d.ts +4 -4
  18. package/dist/esm/sessions.d.ts +7 -7
  19. package/dist/interface/admin-metrics.d.ts +4 -4
  20. package/dist/interface/conversations.d.ts +24 -24
  21. package/dist/interface/crud/current-user.d.ts +11 -11
  22. package/dist/interface/crud/email-outbox.d.ts +288 -288
  23. package/dist/interface/crud/invoices.d.ts +2 -2
  24. package/dist/interface/crud/project-api-keys.d.ts +3 -3
  25. package/dist/interface/crud/projects.d.ts +99 -99
  26. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  27. package/dist/interface/crud/users.d.ts +4 -4
  28. package/dist/sessions.d.ts +7 -7
  29. package/package.json +1 -1
  30. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +1 -2
@@ -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: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
6
+ status: "open" | "draft" | "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: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
18
+ status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
19
19
  created_at_millis: number;
20
20
  amount_total: number;
21
21
  hosted_invoice_url: string | null;
@@ -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
- user_id: string;
82
81
  type: "user";
82
+ user_id: string;
83
83
  description: string;
84
84
  id: string;
85
+ created_at_millis: number;
85
86
  expires_at_millis: number | undefined;
86
87
  manually_revoked_at_millis: number | undefined;
87
- created_at_millis: number;
88
88
  is_public: boolean;
89
89
  } & {
90
90
  value: string;
@@ -180,9 +180,9 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
180
180
  team_id: string;
181
181
  description: string;
182
182
  id: string;
183
+ created_at_millis: number;
183
184
  expires_at_millis: number | undefined;
184
185
  manually_revoked_at_millis: number | undefined;
185
- created_at_millis: number;
186
186
  is_public: boolean;
187
187
  } & {
188
188
  value: string;
@@ -56,15 +56,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
56
56
  selected_payments_country: "US" | "OTHER";
57
57
  } | null | undefined;
58
58
  config: {
59
- allow_localhost: boolean;
60
- sign_up_enabled: boolean;
61
- credential_enabled: boolean;
62
- magic_link_enabled: boolean;
63
- passkey_enabled: boolean;
64
- client_team_creation_enabled: boolean;
65
- client_user_deletion_enabled: boolean;
66
- allow_user_api_keys: boolean;
67
- allow_team_api_keys: boolean;
59
+ domains: {
60
+ domain: string;
61
+ handler_path: string;
62
+ }[];
68
63
  oauth_providers: {
69
64
  client_id?: string | undefined;
70
65
  client_secret?: string | undefined;
@@ -75,13 +70,18 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
75
70
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
76
71
  provider_config_id: string;
77
72
  }[];
73
+ allow_localhost: boolean;
74
+ sign_up_enabled: boolean;
75
+ credential_enabled: boolean;
76
+ magic_link_enabled: boolean;
77
+ passkey_enabled: boolean;
78
+ client_team_creation_enabled: boolean;
79
+ client_user_deletion_enabled: boolean;
80
+ allow_user_api_keys: boolean;
81
+ allow_team_api_keys: boolean;
78
82
  enabled_oauth_providers: {
79
83
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
80
84
  }[];
81
- domains: {
82
- domain: string;
83
- handler_path: string;
84
- }[];
85
85
  email_config: {
86
86
  password?: string | undefined;
87
87
  host?: string | undefined;
@@ -158,6 +158,10 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
158
158
  id: string;
159
159
  display_name: string;
160
160
  config: {
161
+ domains: {
162
+ domain: string;
163
+ handler_path: string;
164
+ }[];
161
165
  allow_localhost: boolean;
162
166
  sign_up_enabled: boolean;
163
167
  credential_enabled: boolean;
@@ -170,10 +174,6 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
170
174
  enabled_oauth_providers: {
171
175
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
172
176
  }[];
173
- domains: {
174
- domain: string;
175
- handler_path: string;
176
- }[];
177
177
  };
178
178
  }, yup$1.AnyObject, {
179
179
  id: undefined;
@@ -209,15 +209,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
209
209
  selected_payments_country: "US" | "OTHER";
210
210
  } | null | undefined;
211
211
  config: {
212
- allow_localhost?: boolean | undefined;
213
- sign_up_enabled?: boolean | undefined;
214
- credential_enabled?: boolean | undefined;
215
- magic_link_enabled?: boolean | undefined;
216
- passkey_enabled?: boolean | undefined;
217
- client_team_creation_enabled?: boolean | undefined;
218
- client_user_deletion_enabled?: boolean | undefined;
219
- allow_user_api_keys?: boolean | undefined;
220
- allow_team_api_keys?: boolean | undefined;
212
+ domains?: {
213
+ domain: string;
214
+ handler_path: string;
215
+ }[] | undefined;
221
216
  oauth_providers?: {
222
217
  client_id?: string | undefined;
223
218
  client_secret?: string | undefined;
@@ -227,10 +222,15 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
227
222
  type: "shared" | "standard";
228
223
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
229
224
  }[] | undefined;
230
- domains?: {
231
- domain: string;
232
- handler_path: string;
233
- }[] | undefined;
225
+ allow_localhost?: boolean | undefined;
226
+ sign_up_enabled?: boolean | undefined;
227
+ credential_enabled?: boolean | undefined;
228
+ magic_link_enabled?: boolean | undefined;
229
+ passkey_enabled?: boolean | undefined;
230
+ client_team_creation_enabled?: boolean | undefined;
231
+ client_user_deletion_enabled?: boolean | undefined;
232
+ allow_user_api_keys?: boolean | undefined;
233
+ allow_team_api_keys?: boolean | undefined;
234
234
  email_config?: {
235
235
  password?: string | undefined;
236
236
  host?: string | undefined;
@@ -289,15 +289,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
289
289
  selected_payments_country: "US" | "OTHER";
290
290
  } | null | undefined;
291
291
  config: {
292
- allow_localhost?: boolean | undefined;
293
- sign_up_enabled?: boolean | undefined;
294
- credential_enabled?: boolean | undefined;
295
- magic_link_enabled?: boolean | undefined;
296
- passkey_enabled?: boolean | undefined;
297
- client_team_creation_enabled?: boolean | undefined;
298
- client_user_deletion_enabled?: boolean | undefined;
299
- allow_user_api_keys?: boolean | undefined;
300
- allow_team_api_keys?: boolean | undefined;
292
+ domains?: {
293
+ domain: string;
294
+ handler_path: string;
295
+ }[] | undefined;
301
296
  oauth_providers?: {
302
297
  client_id?: string | undefined;
303
298
  client_secret?: string | undefined;
@@ -307,10 +302,15 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
307
302
  type: "shared" | "standard";
308
303
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
309
304
  }[] | undefined;
310
- domains?: {
311
- domain: string;
312
- handler_path: string;
313
- }[] | undefined;
305
+ allow_localhost?: boolean | undefined;
306
+ sign_up_enabled?: boolean | undefined;
307
+ credential_enabled?: boolean | undefined;
308
+ magic_link_enabled?: boolean | undefined;
309
+ passkey_enabled?: boolean | undefined;
310
+ client_team_creation_enabled?: boolean | undefined;
311
+ client_user_deletion_enabled?: boolean | undefined;
312
+ allow_user_api_keys?: boolean | undefined;
313
+ allow_team_api_keys?: boolean | undefined;
314
314
  email_config?: {
315
315
  password?: string | undefined;
316
316
  host?: string | undefined;
@@ -364,6 +364,10 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
364
364
  id: string;
365
365
  display_name: string;
366
366
  config: {
367
+ domains: {
368
+ domain: string;
369
+ handler_path: string;
370
+ }[];
367
371
  allow_localhost: boolean;
368
372
  sign_up_enabled: boolean;
369
373
  credential_enabled: boolean;
@@ -376,10 +380,6 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
376
380
  enabled_oauth_providers: {
377
381
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
378
382
  }[];
379
- domains: {
380
- domain: string;
381
- handler_path: string;
382
- }[];
383
383
  };
384
384
  }, yup$1.AnyObject, {
385
385
  id: undefined;
@@ -429,15 +429,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
429
429
  selected_payments_country: "US" | "OTHER";
430
430
  } | null | undefined;
431
431
  config: {
432
- allow_localhost: boolean;
433
- sign_up_enabled: boolean;
434
- credential_enabled: boolean;
435
- magic_link_enabled: boolean;
436
- passkey_enabled: boolean;
437
- client_team_creation_enabled: boolean;
438
- client_user_deletion_enabled: boolean;
439
- allow_user_api_keys: boolean;
440
- allow_team_api_keys: boolean;
432
+ domains: {
433
+ domain: string;
434
+ handler_path: string;
435
+ }[];
441
436
  oauth_providers: {
442
437
  client_id?: string | undefined;
443
438
  client_secret?: string | undefined;
@@ -448,13 +443,18 @@ declare const projectsCrud: CrudSchemaFromOptions<{
448
443
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
449
444
  provider_config_id: string;
450
445
  }[];
446
+ allow_localhost: boolean;
447
+ sign_up_enabled: boolean;
448
+ credential_enabled: boolean;
449
+ magic_link_enabled: boolean;
450
+ passkey_enabled: boolean;
451
+ client_team_creation_enabled: boolean;
452
+ client_user_deletion_enabled: boolean;
453
+ allow_user_api_keys: boolean;
454
+ allow_team_api_keys: boolean;
451
455
  enabled_oauth_providers: {
452
456
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
453
457
  }[];
454
- domains: {
455
- domain: string;
456
- handler_path: string;
457
- }[];
458
458
  email_config: {
459
459
  password?: string | undefined;
460
460
  host?: string | undefined;
@@ -544,15 +544,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
544
544
  selected_payments_country: "US" | "OTHER";
545
545
  } | null | undefined;
546
546
  config: {
547
- allow_localhost?: boolean | undefined;
548
- sign_up_enabled?: boolean | undefined;
549
- credential_enabled?: boolean | undefined;
550
- magic_link_enabled?: boolean | undefined;
551
- passkey_enabled?: boolean | undefined;
552
- client_team_creation_enabled?: boolean | undefined;
553
- client_user_deletion_enabled?: boolean | undefined;
554
- allow_user_api_keys?: boolean | undefined;
555
- allow_team_api_keys?: boolean | undefined;
547
+ domains?: {
548
+ domain: string;
549
+ handler_path: string;
550
+ }[] | undefined;
556
551
  oauth_providers?: {
557
552
  client_id?: string | undefined;
558
553
  client_secret?: string | undefined;
@@ -562,10 +557,15 @@ declare const projectsCrud: CrudSchemaFromOptions<{
562
557
  type: "shared" | "standard";
563
558
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
564
559
  }[] | undefined;
565
- domains?: {
566
- domain: string;
567
- handler_path: string;
568
- }[] | undefined;
560
+ allow_localhost?: boolean | undefined;
561
+ sign_up_enabled?: boolean | undefined;
562
+ credential_enabled?: boolean | undefined;
563
+ magic_link_enabled?: boolean | undefined;
564
+ passkey_enabled?: boolean | undefined;
565
+ client_team_creation_enabled?: boolean | undefined;
566
+ client_user_deletion_enabled?: boolean | undefined;
567
+ allow_user_api_keys?: boolean | undefined;
568
+ allow_team_api_keys?: boolean | undefined;
569
569
  email_config?: {
570
570
  password?: string | undefined;
571
571
  host?: string | undefined;
@@ -652,15 +652,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
652
652
  selected_payments_country: "US" | "OTHER";
653
653
  } | null | undefined;
654
654
  config: {
655
- allow_localhost: boolean;
656
- sign_up_enabled: boolean;
657
- credential_enabled: boolean;
658
- magic_link_enabled: boolean;
659
- passkey_enabled: boolean;
660
- client_team_creation_enabled: boolean;
661
- client_user_deletion_enabled: boolean;
662
- allow_user_api_keys: boolean;
663
- allow_team_api_keys: boolean;
655
+ domains: {
656
+ domain: string;
657
+ handler_path: string;
658
+ }[];
664
659
  oauth_providers: {
665
660
  client_id?: string | undefined;
666
661
  client_secret?: string | undefined;
@@ -671,13 +666,18 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
671
666
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
672
667
  provider_config_id: string;
673
668
  }[];
669
+ allow_localhost: boolean;
670
+ sign_up_enabled: boolean;
671
+ credential_enabled: boolean;
672
+ magic_link_enabled: boolean;
673
+ passkey_enabled: boolean;
674
+ client_team_creation_enabled: boolean;
675
+ client_user_deletion_enabled: boolean;
676
+ allow_user_api_keys: boolean;
677
+ allow_team_api_keys: boolean;
674
678
  enabled_oauth_providers: {
675
679
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
676
680
  }[];
677
- domains: {
678
- domain: string;
679
- handler_path: string;
680
- }[];
681
681
  email_config: {
682
682
  password?: string | undefined;
683
683
  host?: string | undefined;
@@ -767,15 +767,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
767
767
  selected_payments_country: "US" | "OTHER";
768
768
  } | null | undefined;
769
769
  config: {
770
- allow_localhost?: boolean | undefined;
771
- sign_up_enabled?: boolean | undefined;
772
- credential_enabled?: boolean | undefined;
773
- magic_link_enabled?: boolean | undefined;
774
- passkey_enabled?: boolean | undefined;
775
- client_team_creation_enabled?: boolean | undefined;
776
- client_user_deletion_enabled?: boolean | undefined;
777
- allow_user_api_keys?: boolean | undefined;
778
- allow_team_api_keys?: boolean | undefined;
770
+ domains?: {
771
+ domain: string;
772
+ handler_path: string;
773
+ }[] | undefined;
779
774
  oauth_providers?: {
780
775
  client_id?: string | undefined;
781
776
  client_secret?: string | undefined;
@@ -785,10 +780,15 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
785
780
  type: "shared" | "standard";
786
781
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
787
782
  }[] | undefined;
788
- domains?: {
789
- domain: string;
790
- handler_path: string;
791
- }[] | undefined;
783
+ allow_localhost?: boolean | undefined;
784
+ sign_up_enabled?: boolean | undefined;
785
+ credential_enabled?: boolean | undefined;
786
+ magic_link_enabled?: boolean | undefined;
787
+ passkey_enabled?: boolean | undefined;
788
+ client_team_creation_enabled?: boolean | undefined;
789
+ client_user_deletion_enabled?: boolean | undefined;
790
+ allow_user_api_keys?: boolean | undefined;
791
+ allow_team_api_keys?: boolean | undefined;
792
792
  email_config?: {
793
793
  password?: string | undefined;
794
794
  host?: string | undefined;
@@ -20,25 +20,23 @@ 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;
23
26
  restricted_reason: {
24
27
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
25
28
  } | null;
29
+ requires_totp_mfa: boolean;
26
30
  primary_email: string | null;
27
31
  display_name: string | null;
28
32
  client_metadata: {} | null;
29
33
  client_read_only_metadata: {} | null;
30
34
  server_metadata: {} | null;
31
35
  id: string;
32
- selected_team_id: string | null;
33
- is_anonymous: boolean;
34
- is_restricted: boolean;
35
- requires_totp_mfa: boolean;
36
+ country_code: string | null;
36
37
  profile_image_url: string | null;
37
- oauth_providers: {
38
- email?: string | null | undefined;
39
- id: string;
40
- account_id: string;
41
- }[];
38
+ signed_up_at_millis: number;
39
+ last_active_at_millis: number;
42
40
  primary_email_verified: boolean;
43
41
  primary_email_auth_enabled: boolean;
44
42
  selected_team: {
@@ -50,21 +48,23 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
50
48
  created_at_millis: number;
51
49
  profile_image_url: string | null;
52
50
  } | null;
53
- signed_up_at_millis: number;
54
51
  has_password: boolean;
55
52
  otp_auth_enabled: boolean;
56
53
  passkey_auth_enabled: boolean;
57
- last_active_at_millis: number;
58
54
  restricted_by_admin: boolean;
59
55
  restricted_by_admin_reason: string | null;
60
56
  restricted_by_admin_private_details: string | null;
61
- country_code: string | null;
62
57
  risk_scores: {
63
58
  sign_up: {
64
59
  bot: number;
65
60
  free_trial_abuse: number;
66
61
  };
67
62
  };
63
+ oauth_providers: {
64
+ email?: string | null | undefined;
65
+ id: string;
66
+ account_id: string;
67
+ }[];
68
68
  auth_with_email: boolean;
69
69
  };
70
70
  }, yup$1.AnyObject, {
@@ -143,25 +143,23 @@ 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;
146
149
  restricted_reason: {
147
150
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
148
151
  } | null;
152
+ requires_totp_mfa: boolean;
149
153
  primary_email: string | null;
150
154
  display_name: string | null;
151
155
  client_metadata: {} | null;
152
156
  client_read_only_metadata: {} | null;
153
157
  server_metadata: {} | null;
154
158
  id: string;
155
- selected_team_id: string | null;
156
- is_anonymous: boolean;
157
- is_restricted: boolean;
158
- requires_totp_mfa: boolean;
159
+ country_code: string | null;
159
160
  profile_image_url: string | null;
160
- oauth_providers: {
161
- email?: string | null | undefined;
162
- id: string;
163
- account_id: string;
164
- }[];
161
+ signed_up_at_millis: number;
162
+ last_active_at_millis: number;
165
163
  primary_email_verified: boolean;
166
164
  primary_email_auth_enabled: boolean;
167
165
  selected_team: {
@@ -173,21 +171,23 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
173
171
  created_at_millis: number;
174
172
  profile_image_url: string | null;
175
173
  } | null;
176
- signed_up_at_millis: number;
177
174
  has_password: boolean;
178
175
  otp_auth_enabled: boolean;
179
176
  passkey_auth_enabled: boolean;
180
- last_active_at_millis: number;
181
177
  restricted_by_admin: boolean;
182
178
  restricted_by_admin_reason: string | null;
183
179
  restricted_by_admin_private_details: string | null;
184
- country_code: string | null;
185
180
  risk_scores: {
186
181
  sign_up: {
187
182
  bot: number;
188
183
  free_trial_abuse: number;
189
184
  };
190
185
  };
186
+ oauth_providers: {
187
+ email?: string | null | undefined;
188
+ id: string;
189
+ account_id: string;
190
+ }[];
191
191
  auth_with_email: boolean;
192
192
  };
193
193
  }, yup$1.AnyObject, {
@@ -162,13 +162,14 @@ 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;
165
166
  primary_email: string | null | undefined;
166
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;
170
- is_anonymous: boolean | undefined;
171
171
  password: string | null | undefined;
172
+ country_code: string | null | undefined;
172
173
  profile_image_url: string | null | undefined;
173
174
  primary_email_verified: boolean | undefined;
174
175
  primary_email_auth_enabled: boolean | undefined;
@@ -177,7 +178,6 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
177
178
  restricted_by_admin: boolean | undefined;
178
179
  restricted_by_admin_reason: string | null | undefined;
179
180
  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;
@@ -368,13 +368,14 @@ declare const usersCrud: CrudSchemaFromOptions<{
368
368
  };
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
+ is_anonymous: boolean | undefined;
371
372
  primary_email: string | null | undefined;
372
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;
376
- is_anonymous: boolean | undefined;
377
377
  password: string | null | undefined;
378
+ country_code: string | null | undefined;
378
379
  profile_image_url: string | null | undefined;
379
380
  primary_email_verified: boolean | undefined;
380
381
  primary_email_auth_enabled: boolean | undefined;
@@ -383,7 +384,6 @@ declare const usersCrud: CrudSchemaFromOptions<{
383
384
  restricted_by_admin: boolean | undefined;
384
385
  restricted_by_admin_reason: string | null | undefined;
385
386
  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;
@@ -9,24 +9,24 @@ declare class AccessToken {
9
9
  private constructor();
10
10
  get payload(): {
11
11
  exp?: number | undefined;
12
- project_id: string;
13
- refresh_token_id: string;
14
- email: string | null;
15
- restricted_reason: {
16
- type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
17
- } | null;
18
- branch_id: string;
19
12
  sub: string;
20
13
  iat: number;
21
14
  iss: string;
22
15
  aud: string;
16
+ project_id: string;
17
+ branch_id: string;
18
+ refresh_token_id: string;
23
19
  role: "authenticated";
24
20
  name: string | null;
21
+ email: string | null;
25
22
  email_verified: boolean;
26
23
  selected_team_id: string | null;
27
24
  signed_up_at: number;
28
25
  is_anonymous: boolean;
29
26
  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.11",
3
+ "version": "1.0.12",
4
4
  "repository": "https://github.com/hexclave/hexclave",
5
5
  "files": [
6
6
  "README.md",
@@ -275,7 +275,7 @@ export const cliSetupPrompt = deindent`
275
275
  </Step>
276
276
 
277
277
  <Step title="Prompt the user to log in">
278
- Import and call \`prompt_cli_login\`. It opens the browser, lets the user authenticate, and returns a refresh token.
278
+ Import and call \`prompt_cli_login\`. It opens the browser, lets the user authenticate, and returns a refresh token. The project ID is enough for most projects; only pass \`publishable_client_key\` if the project has \`requirePublishableClientKey\` enabled.
279
279
 
280
280
  \`\`\`py main.py
281
281
  from hexclave_cli_template import prompt_cli_login
@@ -283,7 +283,6 @@ export const cliSetupPrompt = deindent`
283
283
  refresh_token = prompt_cli_login(
284
284
  app_url="https://your-app-url.example.com",
285
285
  project_id="your-project-id-here",
286
- publishable_client_key="your-publishable-client-key-here",
287
286
  )
288
287
 
289
288
  if refresh_token is None: