@hexclave/shared 1.0.2 → 1.0.3

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 (39) hide show
  1. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
  2. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  3. package/dist/config/schema.d.ts +55 -55
  4. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
  5. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  6. package/dist/esm/config/schema.d.ts +55 -55
  7. package/dist/esm/interface/admin-metrics.d.ts +12 -12
  8. package/dist/esm/interface/conversations.d.ts +32 -32
  9. package/dist/esm/interface/crud/current-user.d.ts +13 -13
  10. package/dist/esm/interface/crud/email-outbox.d.ts +313 -313
  11. package/dist/esm/interface/crud/products.d.ts +13 -13
  12. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  13. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  14. package/dist/esm/interface/crud/projects.d.ts +36 -36
  15. package/dist/esm/interface/crud/team-member-profiles.d.ts +20 -20
  16. package/dist/esm/interface/crud/transactions.d.ts +6 -6
  17. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  18. package/dist/esm/interface/crud/users.d.ts +14 -14
  19. package/dist/esm/interface/webhooks.d.ts +2 -2
  20. package/dist/esm/known-errors.d.ts +2 -2
  21. package/dist/esm/schema-fields.d.ts +2 -2
  22. package/dist/esm/sessions.d.ts +7 -7
  23. package/dist/interface/admin-metrics.d.ts +12 -12
  24. package/dist/interface/conversations.d.ts +32 -32
  25. package/dist/interface/crud/current-user.d.ts +13 -13
  26. package/dist/interface/crud/email-outbox.d.ts +313 -313
  27. package/dist/interface/crud/products.d.ts +13 -13
  28. package/dist/interface/crud/products.d.ts.map +1 -1
  29. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  30. package/dist/interface/crud/projects.d.ts +36 -36
  31. package/dist/interface/crud/team-member-profiles.d.ts +20 -20
  32. package/dist/interface/crud/transactions.d.ts +6 -6
  33. package/dist/interface/crud/transactions.d.ts.map +1 -1
  34. package/dist/interface/crud/users.d.ts +14 -14
  35. package/dist/interface/webhooks.d.ts +2 -2
  36. package/dist/known-errors.d.ts +2 -2
  37. package/dist/schema-fields.d.ts +2 -2
  38. package/dist/sessions.d.ts +7 -7
  39. 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
- repeat?: "never" | DayInterval | undefined;
30
29
  quantity?: number | undefined;
30
+ repeat?: "never" | DayInterval | 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
- repeat?: "never" | DayInterval | undefined;
65
64
  quantity?: number | undefined;
65
+ repeat?: "never" | DayInterval | 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
- repeat?: "never" | DayInterval | undefined;
128
127
  quantity?: number | undefined;
128
+ repeat?: "never" | DayInterval | undefined;
129
129
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
130
130
  }>;
131
131
  };
132
132
  }[] | undefined;
133
- id: string | null;
134
133
  quantity: number;
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
- repeat?: "never" | DayInterval | undefined;
157
155
  quantity?: number | undefined;
156
+ repeat?: "never" | DayInterval | 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,11 +78,11 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
78
78
  is_public: undefined;
79
79
  user_id: undefined;
80
80
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
81
- description: string;
81
+ user_id: string;
82
82
  type: "user";
83
+ description: string;
83
84
  id: string;
84
85
  created_at_millis: number;
85
- user_id: string;
86
86
  expires_at_millis: number | undefined;
87
87
  manually_revoked_at_millis: number | undefined;
88
88
  is_public: boolean;
@@ -176,11 +176,11 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
176
176
  is_public: undefined;
177
177
  team_id: undefined;
178
178
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
179
- description: string;
180
179
  type: "team";
180
+ team_id: string;
181
+ description: string;
181
182
  id: string;
182
183
  created_at_millis: number;
183
- team_id: string;
184
184
  expires_at_millis: number | undefined;
185
185
  manually_revoked_at_millis: number | undefined;
186
186
  is_public: boolean;
@@ -56,6 +56,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
56
56
  selected_payments_country: "US" | "OTHER";
57
57
  } | null | undefined;
58
58
  config: {
59
+ domains: {
60
+ domain: string;
61
+ handler_path: string;
62
+ }[];
59
63
  oauth_providers: {
60
64
  client_id?: string | undefined;
61
65
  client_secret?: string | undefined;
@@ -78,10 +82,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
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,6 +209,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
209
209
  selected_payments_country: "US" | "OTHER";
210
210
  } | null | undefined;
211
211
  config: {
212
+ domains?: {
213
+ domain: string;
214
+ handler_path: string;
215
+ }[] | undefined;
212
216
  oauth_providers?: {
213
217
  client_id?: string | undefined;
214
218
  client_secret?: string | undefined;
@@ -227,10 +231,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
227
231
  client_user_deletion_enabled?: boolean | undefined;
228
232
  allow_user_api_keys?: boolean | undefined;
229
233
  allow_team_api_keys?: boolean | undefined;
230
- domains?: {
231
- domain: string;
232
- handler_path: string;
233
- }[] | undefined;
234
234
  email_config?: {
235
235
  password?: string | undefined;
236
236
  host?: string | undefined;
@@ -289,6 +289,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
289
289
  selected_payments_country: "US" | "OTHER";
290
290
  } | null | undefined;
291
291
  config: {
292
+ domains?: {
293
+ domain: string;
294
+ handler_path: string;
295
+ }[] | undefined;
292
296
  oauth_providers?: {
293
297
  client_id?: string | undefined;
294
298
  client_secret?: string | undefined;
@@ -307,10 +311,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
307
311
  client_user_deletion_enabled?: boolean | undefined;
308
312
  allow_user_api_keys?: boolean | undefined;
309
313
  allow_team_api_keys?: boolean | undefined;
310
- domains?: {
311
- domain: string;
312
- handler_path: string;
313
- }[] | 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,6 +429,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
429
429
  selected_payments_country: "US" | "OTHER";
430
430
  } | null | undefined;
431
431
  config: {
432
+ domains: {
433
+ domain: string;
434
+ handler_path: string;
435
+ }[];
432
436
  oauth_providers: {
433
437
  client_id?: string | undefined;
434
438
  client_secret?: string | undefined;
@@ -451,10 +455,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
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,6 +544,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
544
544
  selected_payments_country: "US" | "OTHER";
545
545
  } | null | undefined;
546
546
  config: {
547
+ domains?: {
548
+ domain: string;
549
+ handler_path: string;
550
+ }[] | undefined;
547
551
  oauth_providers?: {
548
552
  client_id?: string | undefined;
549
553
  client_secret?: string | undefined;
@@ -562,10 +566,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
562
566
  client_user_deletion_enabled?: boolean | undefined;
563
567
  allow_user_api_keys?: boolean | undefined;
564
568
  allow_team_api_keys?: boolean | undefined;
565
- domains?: {
566
- domain: string;
567
- handler_path: string;
568
- }[] | undefined;
569
569
  email_config?: {
570
570
  password?: string | undefined;
571
571
  host?: string | undefined;
@@ -652,6 +652,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
652
652
  selected_payments_country: "US" | "OTHER";
653
653
  } | null | undefined;
654
654
  config: {
655
+ domains: {
656
+ domain: string;
657
+ handler_path: string;
658
+ }[];
655
659
  oauth_providers: {
656
660
  client_id?: string | undefined;
657
661
  client_secret?: string | undefined;
@@ -674,10 +678,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
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,6 +767,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
767
767
  selected_payments_country: "US" | "OTHER";
768
768
  } | null | undefined;
769
769
  config: {
770
+ domains?: {
771
+ domain: string;
772
+ handler_path: string;
773
+ }[] | undefined;
770
774
  oauth_providers?: {
771
775
  client_id?: string | undefined;
772
776
  client_secret?: string | undefined;
@@ -785,10 +789,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
785
789
  client_user_deletion_enabled?: boolean | undefined;
786
790
  allow_user_api_keys?: boolean | undefined;
787
791
  allow_team_api_keys?: boolean | undefined;
788
- domains?: {
789
- domain: string;
790
- handler_path: string;
791
- }[] | undefined;
792
792
  email_config?: {
793
793
  password?: string | undefined;
794
794
  host?: string | undefined;
@@ -20,32 +20,32 @@ 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;
26
+ primary_email: string | null;
27
+ display_name: string | null;
28
+ client_metadata: {} | null;
29
+ client_read_only_metadata: {} | null;
30
+ server_metadata: {} | null;
30
31
  id: string;
32
+ selected_team_id: string | null;
33
+ is_anonymous: boolean;
34
+ is_restricted: boolean;
35
+ requires_totp_mfa: boolean;
31
36
  country_code: string | null;
32
- display_name: string | null;
33
- primary_email: string | null;
34
37
  profile_image_url: string | null;
35
38
  signed_up_at_millis: number;
36
39
  last_active_at_millis: number;
37
- client_metadata: {} | null;
38
- client_read_only_metadata: {} | null;
39
- server_metadata: {} | null;
40
40
  primary_email_verified: boolean;
41
41
  primary_email_auth_enabled: boolean;
42
42
  selected_team: {
43
43
  client_metadata?: {} | null | undefined;
44
44
  client_read_only_metadata?: {} | null | undefined;
45
45
  server_metadata?: {} | null | undefined;
46
+ display_name: string;
46
47
  id: string;
47
48
  created_at_millis: number;
48
- display_name: string;
49
49
  profile_image_url: string | null;
50
50
  } | null;
51
51
  has_password: boolean;
@@ -143,32 +143,32 @@ 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;
149
+ primary_email: string | null;
150
+ display_name: string | null;
151
+ client_metadata: {} | null;
152
+ client_read_only_metadata: {} | null;
153
+ server_metadata: {} | null;
153
154
  id: string;
155
+ selected_team_id: string | null;
156
+ is_anonymous: boolean;
157
+ is_restricted: boolean;
158
+ requires_totp_mfa: boolean;
154
159
  country_code: string | null;
155
- display_name: string | null;
156
- primary_email: string | null;
157
160
  profile_image_url: string | null;
158
161
  signed_up_at_millis: number;
159
162
  last_active_at_millis: number;
160
- client_metadata: {} | null;
161
- client_read_only_metadata: {} | null;
162
- server_metadata: {} | null;
163
163
  primary_email_verified: boolean;
164
164
  primary_email_auth_enabled: boolean;
165
165
  selected_team: {
166
166
  client_metadata?: {} | null | undefined;
167
167
  client_read_only_metadata?: {} | null | undefined;
168
168
  server_metadata?: {} | null | undefined;
169
+ display_name: string;
169
170
  id: string;
170
171
  created_at_millis: number;
171
- display_name: string;
172
172
  profile_image_url: string | null;
173
173
  } | null;
174
174
  has_password: boolean;
@@ -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
- repeat?: "never" | DayInterval | undefined;
62
61
  quantity?: number | undefined;
62
+ repeat?: "never" | DayInterval | 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
- repeat?: "never" | DayInterval | undefined;
146
145
  quantity?: number | undefined;
146
+ repeat?: "never" | DayInterval | 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"}
@@ -80,9 +80,9 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
80
80
  client_metadata?: {} | null | undefined;
81
81
  client_read_only_metadata?: {} | null | undefined;
82
82
  server_metadata?: {} | null | undefined;
83
+ display_name: string;
83
84
  id: string;
84
85
  created_at_millis: number;
85
- display_name: string;
86
86
  profile_image_url: string | null;
87
87
  } | null;
88
88
  selected_team_id: string | null;
@@ -162,14 +162,15 @@ 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
- country_code: string | null | undefined;
167
- display_name: string | null | undefined;
168
165
  primary_email: string | null | undefined;
169
- profile_image_url: string | null | undefined;
166
+ display_name: string | null | undefined;
170
167
  client_metadata: {} | null | undefined;
171
168
  client_read_only_metadata: {} | null | undefined;
172
169
  server_metadata: {} | null | undefined;
170
+ is_anonymous: boolean | undefined;
171
+ password: string | null | undefined;
172
+ country_code: string | null | undefined;
173
+ profile_image_url: string | null | undefined;
173
174
  primary_email_verified: boolean | undefined;
174
175
  primary_email_auth_enabled: boolean | undefined;
175
176
  otp_auth_enabled: boolean | 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
  } & {
@@ -233,9 +233,9 @@ declare const usersCrud: CrudSchemaFromOptions<{
233
233
  client_metadata?: {} | null | undefined;
234
234
  client_read_only_metadata?: {} | null | undefined;
235
235
  server_metadata?: {} | null | undefined;
236
+ display_name: string;
236
237
  id: string;
237
238
  created_at_millis: number;
238
- display_name: string;
239
239
  profile_image_url: string | null;
240
240
  } | null;
241
241
  selected_team_id: string | null;
@@ -368,14 +368,15 @@ declare const usersCrud: CrudSchemaFromOptions<{
368
368
  };
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
- is_anonymous: boolean | undefined;
372
- country_code: string | null | undefined;
373
- display_name: string | null | undefined;
374
371
  primary_email: string | null | undefined;
375
- profile_image_url: string | null | undefined;
372
+ display_name: string | null | undefined;
376
373
  client_metadata: {} | null | undefined;
377
374
  client_read_only_metadata: {} | null | undefined;
378
375
  server_metadata: {} | null | undefined;
376
+ is_anonymous: boolean | undefined;
377
+ password: string | null | undefined;
378
+ country_code: string | null | undefined;
379
+ profile_image_url: string | null | undefined;
379
380
  primary_email_verified: boolean | undefined;
380
381
  primary_email_auth_enabled: boolean | undefined;
381
382
  otp_auth_enabled: boolean | 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
  } & {
@@ -467,9 +467,9 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
467
467
  client_metadata?: {} | null | undefined;
468
468
  client_read_only_metadata?: {} | null | undefined;
469
469
  server_metadata?: {} | null | undefined;
470
+ display_name: string;
470
471
  id: string;
471
472
  created_at_millis: number;
472
- display_name: string;
473
473
  profile_image_url: string | null;
474
474
  } | null;
475
475
  selected_team_id: string | null;
@@ -558,9 +558,9 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
558
558
  client_metadata?: {} | null | undefined;
559
559
  client_read_only_metadata?: {} | null | undefined;
560
560
  server_metadata?: {} | null | undefined;
561
+ display_name: string;
561
562
  id: string;
562
563
  created_at_millis: number;
563
- display_name: string;
564
564
  profile_image_url: string | null;
565
565
  } | null;
566
566
  selected_team_id: string | null;
@@ -20,9 +20,9 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
20
20
  client_metadata?: {} | null | undefined;
21
21
  client_read_only_metadata?: {} | null | undefined;
22
22
  server_metadata?: {} | null | undefined;
23
+ display_name: string;
23
24
  id: string;
24
25
  created_at_millis: number;
25
- display_name: string;
26
26
  profile_image_url: string | null;
27
27
  } | null;
28
28
  selected_team_id: string | null;
@@ -110,9 +110,9 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
110
110
  client_metadata?: {} | null | undefined;
111
111
  client_read_only_metadata?: {} | null | undefined;
112
112
  server_metadata?: {} | null | undefined;
113
+ display_name: string;
113
114
  id: string;
114
115
  created_at_millis: number;
115
- display_name: string;
116
116
  profile_image_url: string | null;
117
117
  } | null;
118
118
  selected_team_id: string | null;
@@ -98,7 +98,7 @@ declare const KnownErrors: {
98
98
  };
99
99
  AccessTypeWithoutProjectId: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
100
100
  constructorArgs: [statusCode: number, humanReadableMessage: string, details?: Json | undefined];
101
- } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"ACCESS_TYPE_WITHOUT_PROJECT_ID">, [accessType: "server" | "admin" | "client"]> & {
101
+ } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"ACCESS_TYPE_WITHOUT_PROJECT_ID">, [accessType: "client" | "server" | "admin"]> & {
102
102
  errorCode: "ACCESS_TYPE_WITHOUT_PROJECT_ID";
103
103
  };
104
104
  AccessTypeRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
@@ -111,7 +111,7 @@ declare const KnownErrors: {
111
111
  };
112
112
  InsufficientAccessType: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
113
113
  constructorArgs: [statusCode: number, humanReadableMessage: string, details?: Json | undefined];
114
- } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"INSUFFICIENT_ACCESS_TYPE">, [actualAccessType: "server" | "admin" | "client", allowedAccessTypes: ("server" | "admin" | "client")[]]> & {
114
+ } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"INSUFFICIENT_ACCESS_TYPE">, [actualAccessType: "client" | "server" | "admin", allowedAccessTypes: ("client" | "server" | "admin")[]]> & {
115
115
  errorCode: "INSUFFICIENT_ACCESS_TYPE";
116
116
  };
117
117
  InvalidPublishableClientKey: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
@@ -107,7 +107,7 @@ declare const moneyAmountSchema: (currency: Currency) => yup$1.StringSchema<stri
107
107
  */
108
108
  declare const strictEmailSchema: (message: string | undefined) => yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
109
109
  declare const emailSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
110
- declare const clientOrHigherAuthTypeSchema: yup$1.StringSchema<"server" | "admin" | "client", yup$1.AnyObject, undefined, "">;
110
+ declare const clientOrHigherAuthTypeSchema: yup$1.StringSchema<"client" | "server" | "admin", yup$1.AnyObject, undefined, "">;
111
111
  declare const serverOrHigherAuthTypeSchema: yup$1.StringSchema<"server" | "admin", yup$1.AnyObject, undefined, "">;
112
112
  declare const adminAuthTypeSchema: yup$1.StringSchema<"admin", yup$1.AnyObject, undefined, "">;
113
113
  declare const projectIdSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
@@ -302,8 +302,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
302
302
  free_trial?: DayInterval | undefined;
303
303
  }>;
304
304
  included_items: Record<string, {
305
- repeat?: "never" | DayInterval | undefined;
306
305
  quantity?: number | undefined;
306
+ repeat?: "never" | DayInterval | undefined;
307
307
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
308
308
  }>;
309
309
  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
+ 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;
12
19
  sub: string;
13
20
  iat: number;
14
21
  iss: string;
15
22
  aud: string;
16
- project_id: string;
17
- branch_id: string;
18
- refresh_token_id: string;
19
23
  role: "authenticated";
20
24
  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.2",
3
+ "version": "1.0.3",
4
4
  "repository": "https://github.com/hexclave/hexclave",
5
5
  "files": [
6
6
  "README.md",