@hexclave/shared 1.0.16 → 1.0.18

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 +84 -84
  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 +84 -84
  7. package/dist/esm/interface/admin-metrics.d.ts +18 -18
  8. package/dist/esm/interface/conversations.d.ts +14 -14
  9. package/dist/esm/interface/crud/current-user.d.ts +12 -12
  10. package/dist/esm/interface/crud/email-outbox.d.ts +280 -280
  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 +6 -6
  14. package/dist/esm/interface/crud/projects.d.ts +36 -36
  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 +18 -18
  24. package/dist/interface/conversations.d.ts +14 -14
  25. package/dist/interface/crud/current-user.d.ts +12 -12
  26. package/dist/interface/crud/email-outbox.d.ts +280 -280
  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 +6 -6
  30. package/dist/interface/crud/projects.d.ts +36 -36
  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,15 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
130
130
  }>;
131
131
  };
132
132
  }[] | undefined;
133
- id: string | null;
134
133
  quantity: number;
134
+ id: string | null;
135
135
  product: {
136
+ free_trial?: DayInterval | undefined;
136
137
  client_metadata?: {} | null | undefined;
137
138
  client_read_only_metadata?: {} | null | undefined;
138
139
  server_metadata?: {} | null | undefined;
139
- free_trial?: DayInterval | undefined;
140
- display_name: string;
141
140
  server_only: boolean;
142
- customer_type: "user" | "team" | "custom";
141
+ customer_type: "team" | "user" | "custom";
143
142
  stackable: boolean;
144
143
  prices: Record<string, {
145
144
  USD?: string | undefined;
@@ -152,6 +151,7 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
152
151
  interval?: DayInterval | undefined;
153
152
  free_trial?: DayInterval | undefined;
154
153
  }>;
154
+ display_name: string;
155
155
  included_items: Record<string, {
156
156
  quantity?: number | undefined;
157
157
  repeat?: "never" | DayInterval | undefined;
@@ -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";
82
83
  id: string;
83
- created_at_millis: number;
84
- expires_at_millis: number | undefined;
85
- user_id: string;
86
84
  description: string;
85
+ expires_at_millis: number | undefined;
86
+ created_at_millis: number;
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
- id: string;
181
- created_at_millis: number;
182
- expires_at_millis: number | undefined;
183
180
  team_id: string;
181
+ id: string;
184
182
  description: string;
183
+ expires_at_millis: number | undefined;
184
+ created_at_millis: number;
185
185
  manually_revoked_at_millis: number | undefined;
186
186
  is_public: boolean;
187
187
  } & {
@@ -66,6 +66,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
66
66
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
67
67
  provider_config_id: string;
68
68
  }[];
69
+ domains: {
70
+ domain: string;
71
+ handler_path: string;
72
+ }[];
69
73
  allow_localhost: boolean;
70
74
  sign_up_enabled: boolean;
71
75
  credential_enabled: boolean;
@@ -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;
@@ -218,6 +218,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
218
218
  type: "shared" | "standard";
219
219
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
220
220
  }[] | undefined;
221
+ domains?: {
222
+ domain: string;
223
+ handler_path: string;
224
+ }[] | undefined;
221
225
  allow_localhost?: boolean | undefined;
222
226
  sign_up_enabled?: boolean | undefined;
223
227
  credential_enabled?: boolean | 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;
@@ -298,6 +298,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
298
298
  type: "shared" | "standard";
299
299
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
300
300
  }[] | undefined;
301
+ domains?: {
302
+ domain: string;
303
+ handler_path: string;
304
+ }[] | undefined;
301
305
  allow_localhost?: boolean | undefined;
302
306
  sign_up_enabled?: boolean | undefined;
303
307
  credential_enabled?: boolean | 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;
@@ -439,6 +439,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
439
439
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
440
440
  provider_config_id: string;
441
441
  }[];
442
+ domains: {
443
+ domain: string;
444
+ handler_path: string;
445
+ }[];
442
446
  allow_localhost: boolean;
443
447
  sign_up_enabled: boolean;
444
448
  credential_enabled: boolean;
@@ -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;
@@ -553,6 +553,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
553
553
  type: "shared" | "standard";
554
554
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
555
555
  }[] | undefined;
556
+ domains?: {
557
+ domain: string;
558
+ handler_path: string;
559
+ }[] | undefined;
556
560
  allow_localhost?: boolean | undefined;
557
561
  sign_up_enabled?: boolean | undefined;
558
562
  credential_enabled?: boolean | 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;
@@ -662,6 +662,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
662
662
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
663
663
  provider_config_id: string;
664
664
  }[];
665
+ domains: {
666
+ domain: string;
667
+ handler_path: string;
668
+ }[];
665
669
  allow_localhost: boolean;
666
670
  sign_up_enabled: boolean;
667
671
  credential_enabled: boolean;
@@ -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;
@@ -776,6 +776,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
776
776
  type: "shared" | "standard";
777
777
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
778
778
  }[] | undefined;
779
+ domains?: {
780
+ domain: string;
781
+ handler_path: string;
782
+ }[] | undefined;
779
783
  allow_localhost?: boolean | undefined;
780
784
  sign_up_enabled?: boolean | undefined;
781
785
  credential_enabled?: boolean | 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,23 +20,20 @@ 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
+ id: string;
28
+ display_name: string | null;
37
29
  client_metadata: {} | null;
38
30
  client_read_only_metadata: {} | null;
39
31
  server_metadata: {} | null;
32
+ selected_team_id: string | null;
33
+ is_anonymous: boolean;
34
+ is_restricted: boolean;
35
+ requires_totp_mfa: boolean;
36
+ profile_image_url: string | null;
40
37
  primary_email_verified: boolean;
41
38
  primary_email_auth_enabled: boolean;
42
39
  selected_team: {
@@ -44,16 +41,19 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
44
41
  client_read_only_metadata?: {} | null | undefined;
45
42
  server_metadata?: {} | null | undefined;
46
43
  id: string;
47
- created_at_millis: number;
48
44
  display_name: string;
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,23 +143,20 @@ 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
+ id: string;
151
+ display_name: string | null;
160
152
  client_metadata: {} | null;
161
153
  client_read_only_metadata: {} | null;
162
154
  server_metadata: {} | null;
155
+ selected_team_id: string | null;
156
+ is_anonymous: boolean;
157
+ is_restricted: boolean;
158
+ requires_totp_mfa: boolean;
159
+ profile_image_url: string | null;
163
160
  primary_email_verified: boolean;
164
161
  primary_email_auth_enabled: boolean;
165
162
  selected_team: {
@@ -167,16 +164,19 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
167
164
  client_read_only_metadata?: {} | null | undefined;
168
165
  server_metadata?: {} | null | undefined;
169
166
  id: string;
170
- created_at_millis: number;
171
167
  display_name: string;
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;
@@ -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"}
@@ -81,9 +81,9 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
81
81
  client_read_only_metadata?: {} | null | undefined;
82
82
  server_metadata?: {} | null | undefined;
83
83
  id: string;
84
- created_at_millis: number;
85
84
  display_name: string;
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,14 +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
- 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
+ password: string | null | undefined;
167
+ display_name: string | null | undefined;
170
168
  client_metadata: {} | null | undefined;
171
169
  client_read_only_metadata: {} | null | undefined;
172
170
  server_metadata: {} | null | undefined;
171
+ is_anonymous: boolean | undefined;
172
+ profile_image_url: string | null | undefined;
173
173
  primary_email_verified: boolean | undefined;
174
174
  primary_email_auth_enabled: boolean | undefined;
175
175
  otp_auth_enabled: boolean | undefined;
@@ -177,13 +177,13 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
177
177
  restricted_by_admin: boolean | undefined;
178
178
  restricted_by_admin_reason: string | null | undefined;
179
179
  restricted_by_admin_private_details: string | null | undefined;
180
+ country_code: string | null | undefined;
180
181
  risk_scores: {
181
182
  sign_up: {
182
183
  bot: number;
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
  } & {
@@ -234,9 +234,9 @@ declare const usersCrud: CrudSchemaFromOptions<{
234
234
  client_read_only_metadata?: {} | null | undefined;
235
235
  server_metadata?: {} | null | undefined;
236
236
  id: string;
237
- created_at_millis: number;
238
237
  display_name: string;
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,14 +368,14 @@ 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
+ password: string | null | undefined;
373
+ display_name: string | null | undefined;
376
374
  client_metadata: {} | null | undefined;
377
375
  client_read_only_metadata: {} | null | undefined;
378
376
  server_metadata: {} | null | undefined;
377
+ is_anonymous: boolean | undefined;
378
+ profile_image_url: string | null | undefined;
379
379
  primary_email_verified: boolean | undefined;
380
380
  primary_email_auth_enabled: boolean | undefined;
381
381
  otp_auth_enabled: boolean | undefined;
@@ -383,13 +383,13 @@ declare const usersCrud: CrudSchemaFromOptions<{
383
383
  restricted_by_admin: boolean | undefined;
384
384
  restricted_by_admin_reason: string | null | undefined;
385
385
  restricted_by_admin_private_details: string | null | undefined;
386
+ country_code: string | null | undefined;
386
387
  risk_scores: {
387
388
  sign_up: {
388
389
  bot: number;
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
  } & {
@@ -468,9 +468,9 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
468
468
  client_read_only_metadata?: {} | null | undefined;
469
469
  server_metadata?: {} | null | undefined;
470
470
  id: string;
471
- created_at_millis: number;
472
471
  display_name: string;
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;
@@ -559,9 +559,9 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
559
559
  client_read_only_metadata?: {} | null | undefined;
560
560
  server_metadata?: {} | null | undefined;
561
561
  id: string;
562
- created_at_millis: number;
563
562
  display_name: string;
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;
@@ -21,9 +21,9 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
21
21
  client_read_only_metadata?: {} | null | undefined;
22
22
  server_metadata?: {} | null | undefined;
23
23
  id: string;
24
- created_at_millis: number;
25
24
  display_name: string;
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;
@@ -111,9 +111,9 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
111
111
  client_read_only_metadata?: {} | null | undefined;
112
112
  server_metadata?: {} | null | undefined;
113
113
  id: string;
114
- created_at_millis: number;
115
114
  display_name: string;
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;