@hexclave/shared 1.0.16 → 1.0.17

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 (40) hide show
  1. package/dist/ai/unified-prompts/reminders.js +1 -1
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/config/schema.d.ts +105 -105
  4. package/dist/esm/ai/unified-prompts/reminders.js +1 -1
  5. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  6. package/dist/esm/config/schema.d.ts +105 -105
  7. package/dist/esm/interface/admin-metrics.d.ts +23 -23
  8. package/dist/esm/interface/conversations.d.ts +19 -19
  9. package/dist/esm/interface/crud/current-user.d.ts +14 -14
  10. package/dist/esm/interface/crud/email-outbox.d.ts +184 -184
  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 +43 -43
  15. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  16. package/dist/esm/interface/crud/transactions.d.ts +13 -13
  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 +5 -5
  21. package/dist/esm/schema-fields.d.ts +5 -5
  22. package/dist/esm/sessions.d.ts +7 -7
  23. package/dist/interface/admin-metrics.d.ts +23 -23
  24. package/dist/interface/conversations.d.ts +19 -19
  25. package/dist/interface/crud/current-user.d.ts +14 -14
  26. package/dist/interface/crud/email-outbox.d.ts +184 -184
  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 +43 -43
  31. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  32. package/dist/interface/crud/transactions.d.ts +13 -13
  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 +5 -5
  37. package/dist/schema-fields.d.ts +5 -5
  38. package/dist/sessions.d.ts +7 -7
  39. package/package.json +1 -1
  40. package/src/ai/unified-prompts/reminders.ts +1 -1
@@ -6,13 +6,12 @@ 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
- customer_type: "user" | "team" | "custom";
14
+ customer_type: "team" | "user" | "custom";
16
15
  stackable: boolean;
17
16
  prices: Record<string, {
18
17
  USD?: string | undefined;
@@ -25,6 +24,7 @@ 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
29
  quantity?: number | undefined;
30
30
  repeat?: "never" | DayInterval | undefined;
@@ -41,13 +41,12 @@ 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
- customer_type: "user" | "team" | "custom";
49
+ customer_type: "team" | "user" | "custom";
51
50
  stackable: boolean;
52
51
  prices: Record<string, {
53
52
  USD?: string | undefined;
@@ -60,6 +59,7 @@ 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
64
  quantity?: number | undefined;
65
65
  repeat?: "never" | DayInterval | undefined;
@@ -104,13 +104,12 @@ 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
- customer_type: "user" | "team" | "custom";
112
+ customer_type: "team" | "user" | "custom";
114
113
  stackable: boolean;
115
114
  prices: Record<string, {
116
115
  USD?: string | undefined;
@@ -123,6 +122,7 @@ 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
127
  quantity?: number | undefined;
128
128
  repeat?: "never" | DayInterval | undefined;
@@ -130,16 +130,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
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
- customer_type: "user" | "team" | "custom";
140
+ customer_type: "team" | "user" | "custom";
143
141
  stackable: boolean;
144
142
  prices: Record<string, {
145
143
  USD?: string | undefined;
@@ -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
155
  quantity?: number | undefined;
157
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,12 +78,12 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
78
78
  is_public: undefined;
79
79
  user_id: undefined;
80
80
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
81
+ user_id: string;
81
82
  type: "user";
83
+ description: string;
82
84
  id: string;
83
85
  created_at_millis: number;
84
86
  expires_at_millis: number | undefined;
85
- user_id: string;
86
- description: string;
87
87
  manually_revoked_at_millis: number | undefined;
88
88
  is_public: boolean;
89
89
  } & {
@@ -177,11 +177,11 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
177
177
  team_id: undefined;
178
178
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
179
179
  type: "team";
180
+ team_id: string;
181
+ description: string;
180
182
  id: string;
181
183
  created_at_millis: number;
182
184
  expires_at_millis: number | undefined;
183
- team_id: string;
184
- description: string;
185
185
  manually_revoked_at_millis: number | undefined;
186
186
  is_public: boolean;
187
187
  } & {
@@ -51,11 +51,15 @@ 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;
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;
@@ -204,11 +204,15 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
204
204
  onboarding_state: {
205
205
  selected_config_choice: "create-new" | "link-existing";
206
206
  selected_apps: string[];
207
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
207
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
208
208
  selected_email_theme_id: string | null;
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;
@@ -284,11 +284,15 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
284
284
  onboarding_state: {
285
285
  selected_config_choice: "create-new" | "link-existing";
286
286
  selected_apps: string[];
287
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
287
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
288
288
  selected_email_theme_id: string | null;
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;
@@ -424,11 +424,15 @@ declare const projectsCrud: CrudSchemaFromOptions<{
424
424
  onboarding_state: {
425
425
  selected_config_choice: "create-new" | "link-existing";
426
426
  selected_apps: string[];
427
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
427
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
428
428
  selected_email_theme_id: string | null;
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;
@@ -539,11 +539,15 @@ declare const projectsCrud: CrudSchemaFromOptions<{
539
539
  onboarding_state: {
540
540
  selected_config_choice: "create-new" | "link-existing";
541
541
  selected_apps: string[];
542
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
542
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
543
543
  selected_email_theme_id: string | null;
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;
@@ -647,11 +647,15 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
647
647
  onboarding_state: {
648
648
  selected_config_choice: "create-new" | "link-existing";
649
649
  selected_apps: string[];
650
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
650
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
651
651
  selected_email_theme_id: string | null;
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;
@@ -762,11 +762,15 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
762
762
  onboarding_state: {
763
763
  selected_config_choice: "create-new" | "link-existing";
764
764
  selected_apps: string[];
765
- selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
765
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
766
766
  selected_email_theme_id: string | null;
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
- id: string;
24
- country_code: string | null;
25
- display_name: string | null;
26
- primary_email: string | null;
27
- profile_image_url: string | null;
28
- signed_up_at_millis: number;
29
- last_active_at_millis: number;
30
- selected_team_id: string | null;
31
- is_anonymous: boolean;
32
- is_restricted: boolean;
33
23
  restricted_reason: {
34
24
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
35
25
  } | null;
36
- requires_totp_mfa: boolean;
26
+ primary_email: string | null;
27
+ display_name: string | null;
37
28
  client_metadata: {} | null;
38
29
  client_read_only_metadata: {} | null;
39
30
  server_metadata: {} | null;
31
+ 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;
37
+ profile_image_url: string | null;
38
+ signed_up_at_millis: number;
39
+ last_active_at_millis: number;
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
- id: string;
147
- country_code: string | null;
148
- display_name: string | null;
149
- primary_email: string | null;
150
- profile_image_url: string | null;
151
- signed_up_at_millis: number;
152
- last_active_at_millis: number;
153
- selected_team_id: string | null;
154
- is_anonymous: boolean;
155
- is_restricted: boolean;
156
146
  restricted_reason: {
157
147
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
158
148
  } | null;
159
- requires_totp_mfa: boolean;
149
+ primary_email: string | null;
150
+ display_name: string | null;
160
151
  client_metadata: {} | null;
161
152
  client_read_only_metadata: {} | null;
162
153
  server_metadata: {} | null;
154
+ 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;
160
+ profile_image_url: string | null;
161
+ signed_up_at_millis: number;
162
+ last_active_at_millis: number;
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;
@@ -6,7 +6,7 @@ import { InferType } from "yup";
6
6
  declare const transactionEntrySchema: yup$1.MixedSchema<{
7
7
  type: "money_transfer";
8
8
  customer_id: string;
9
- customer_type: "user" | "team" | "custom";
9
+ customer_type: "team" | "user" | "custom";
10
10
  charged_amount: {
11
11
  USD?: string | undefined;
12
12
  EUR?: string | undefined;
@@ -26,7 +26,7 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
26
26
  item_id: string;
27
27
  customer_id: string;
28
28
  quantity: number;
29
- customer_type: "user" | "team" | "custom";
29
+ customer_type: "team" | "user" | "custom";
30
30
  adjusted_transaction_id: string | null;
31
31
  adjusted_entry_index: number | null;
32
32
  } | {
@@ -36,15 +36,14 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
36
36
  customer_id: string;
37
37
  product_id: string | null;
38
38
  quantity: number;
39
- customer_type: "user" | "team" | "custom";
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
- customer_type: "user" | "team" | "custom";
46
+ customer_type: "team" | "user" | "custom";
48
47
  stackable: boolean;
49
48
  prices: Record<string, {
50
49
  USD?: string | undefined;
@@ -57,6 +56,7 @@ 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
61
  quantity?: number | undefined;
62
62
  repeat?: "never" | DayInterval | undefined;
@@ -85,12 +85,12 @@ declare const transactionSchema: yup$1.ObjectSchema<{
85
85
  created_at_millis: number;
86
86
  effective_at_millis: number;
87
87
  type: "purchase" | "subscription-cancellation" | "subscription-renewal" | "manual-item-quantity-change" | "refund" | "chargeback" | "product-change" | null;
88
- customer_type: "user" | "team" | "custom";
88
+ customer_type: "team" | "user" | "custom";
89
89
  customer_id: string;
90
90
  entries: ({
91
91
  type: "money_transfer";
92
92
  customer_id: string;
93
- customer_type: "user" | "team" | "custom";
93
+ customer_type: "team" | "user" | "custom";
94
94
  charged_amount: {
95
95
  USD?: string | undefined;
96
96
  EUR?: string | undefined;
@@ -110,7 +110,7 @@ declare const transactionSchema: yup$1.ObjectSchema<{
110
110
  item_id: string;
111
111
  customer_id: string;
112
112
  quantity: number;
113
- customer_type: "user" | "team" | "custom";
113
+ customer_type: "team" | "user" | "custom";
114
114
  adjusted_transaction_id: string | null;
115
115
  adjusted_entry_index: number | null;
116
116
  } | {
@@ -120,15 +120,14 @@ declare const transactionSchema: yup$1.ObjectSchema<{
120
120
  customer_id: string;
121
121
  product_id: string | null;
122
122
  quantity: number;
123
- customer_type: "user" | "team" | "custom";
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
- customer_type: "user" | "team" | "custom";
130
+ customer_type: "team" | "user" | "custom";
132
131
  stackable: boolean;
133
132
  prices: Record<string, {
134
133
  USD?: string | undefined;
@@ -141,6 +140,7 @@ 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
145
  quantity?: number | undefined;
146
146
  repeat?: "never" | DayInterval | undefined;
@@ -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
- country_code: string | null | undefined;
166
- display_name: string | null | undefined;
167
165
  primary_email: string | null | undefined;
168
- profile_image_url: string | null | undefined;
169
- is_anonymous: boolean | 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
- country_code: string | null | undefined;
372
- display_name: string | null | undefined;
373
371
  primary_email: string | null | undefined;
374
- profile_image_url: string | null | undefined;
375
- is_anonymous: boolean | 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;