@hexclave/shared 1.0.32 → 1.0.34

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 (42) hide show
  1. package/dist/config/schema.d.ts +106 -106
  2. package/dist/esm/config/schema.d.ts +106 -106
  3. package/dist/esm/helpers/init-prompt.js +1 -1
  4. package/dist/esm/helpers/init-prompt.js.map +1 -1
  5. package/dist/esm/interface/admin-metrics.d.ts +16 -16
  6. package/dist/esm/interface/conversations.d.ts +4 -4
  7. package/dist/esm/interface/crud/current-user.d.ts +14 -14
  8. package/dist/esm/interface/crud/email-outbox.d.ts +271 -271
  9. package/dist/esm/interface/crud/products.d.ts +23 -23
  10. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  11. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  12. package/dist/esm/interface/crud/projects.d.ts +7 -7
  13. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  14. package/dist/esm/interface/crud/transactions.d.ts +25 -25
  15. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  16. package/dist/esm/interface/crud/users.d.ts +16 -16
  17. package/dist/esm/interface/plan-usage.d.ts +1 -1
  18. package/dist/esm/interface/webhooks.d.ts +2 -2
  19. package/dist/esm/known-errors.d.ts +6 -6
  20. package/dist/esm/schema-fields.d.ts +17 -17
  21. package/dist/esm/sessions.d.ts +8 -8
  22. package/dist/helpers/init-prompt.js +1 -1
  23. package/dist/helpers/init-prompt.js.map +1 -1
  24. package/dist/interface/admin-metrics.d.ts +16 -16
  25. package/dist/interface/conversations.d.ts +4 -4
  26. package/dist/interface/crud/current-user.d.ts +14 -14
  27. package/dist/interface/crud/email-outbox.d.ts +271 -271
  28. package/dist/interface/crud/products.d.ts +23 -23
  29. package/dist/interface/crud/products.d.ts.map +1 -1
  30. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  31. package/dist/interface/crud/projects.d.ts +7 -7
  32. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  33. package/dist/interface/crud/transactions.d.ts +25 -25
  34. package/dist/interface/crud/transactions.d.ts.map +1 -1
  35. package/dist/interface/crud/users.d.ts +16 -16
  36. package/dist/interface/plan-usage.d.ts +1 -1
  37. package/dist/interface/webhooks.d.ts +2 -2
  38. package/dist/known-errors.d.ts +6 -6
  39. package/dist/schema-fields.d.ts +17 -17
  40. package/dist/sessions.d.ts +8 -8
  41. package/package.json +1 -1
  42. package/src/helpers/init-prompt.ts +1 -1
@@ -6,14 +6,13 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
6
6
  id: string | null;
7
7
  quantity: number;
8
8
  product: {
9
- free_trial?: ______utils_dates0.DayInterval | undefined;
10
9
  client_metadata?: {} | null | undefined;
11
10
  client_read_only_metadata?: {} | null | undefined;
12
11
  server_metadata?: {} | null | undefined;
13
- server_only: boolean;
14
- customer_type: "team" | "user" | "custom";
12
+ free_trial?: ______utils_dates0.DayInterval | undefined;
15
13
  stackable: boolean;
16
14
  prices: Record<string, {
15
+ interval?: ______utils_dates0.DayInterval | undefined;
17
16
  USD?: string | undefined;
18
17
  EUR?: string | undefined;
19
18
  GBP?: string | undefined;
@@ -21,13 +20,14 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
21
20
  INR?: string | undefined;
22
21
  AUD?: string | undefined;
23
22
  CAD?: string | undefined;
24
- interval?: ______utils_dates0.DayInterval | undefined;
25
23
  free_trial?: ______utils_dates0.DayInterval | undefined;
26
24
  }>;
27
25
  display_name: string;
26
+ server_only: boolean;
27
+ customer_type: "user" | "team" | "custom";
28
28
  included_items: Record<string, {
29
- quantity?: number | undefined;
30
29
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
30
+ quantity?: number | undefined;
31
31
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
32
32
  }>;
33
33
  };
@@ -39,16 +39,14 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
39
39
  is_cancelable: boolean;
40
40
  } | null | undefined;
41
41
  switch_options: {
42
- product_id: string;
43
42
  product: {
44
- free_trial?: ______utils_dates0.DayInterval | undefined;
45
43
  client_metadata?: {} | null | undefined;
46
44
  client_read_only_metadata?: {} | null | undefined;
47
45
  server_metadata?: {} | null | undefined;
48
- server_only: boolean;
49
- customer_type: "team" | "user" | "custom";
46
+ free_trial?: ______utils_dates0.DayInterval | undefined;
50
47
  stackable: boolean;
51
48
  prices: Record<string, {
49
+ interval?: ______utils_dates0.DayInterval | undefined;
52
50
  USD?: string | undefined;
53
51
  EUR?: string | undefined;
54
52
  GBP?: string | undefined;
@@ -56,16 +54,18 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
56
54
  INR?: string | undefined;
57
55
  AUD?: string | undefined;
58
56
  CAD?: string | undefined;
59
- interval?: ______utils_dates0.DayInterval | undefined;
60
57
  free_trial?: ______utils_dates0.DayInterval | undefined;
61
58
  }>;
62
59
  display_name: string;
60
+ server_only: boolean;
61
+ customer_type: "user" | "team" | "custom";
63
62
  included_items: Record<string, {
64
- quantity?: number | undefined;
65
63
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
64
+ quantity?: number | undefined;
66
65
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
67
66
  }>;
68
67
  };
68
+ product_id: string;
69
69
  }[] | undefined;
70
70
  }, yup$1.AnyObject, {
71
71
  id: undefined;
@@ -102,16 +102,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
102
102
  is_cancelable: boolean;
103
103
  } | null | undefined;
104
104
  switch_options?: {
105
- product_id: string;
106
105
  product: {
107
- free_trial?: ______utils_dates0.DayInterval | undefined;
108
106
  client_metadata?: {} | null | undefined;
109
107
  client_read_only_metadata?: {} | null | undefined;
110
108
  server_metadata?: {} | null | undefined;
111
- server_only: boolean;
112
- customer_type: "team" | "user" | "custom";
109
+ free_trial?: ______utils_dates0.DayInterval | undefined;
113
110
  stackable: boolean;
114
111
  prices: Record<string, {
112
+ interval?: ______utils_dates0.DayInterval | undefined;
115
113
  USD?: string | undefined;
116
114
  EUR?: string | undefined;
117
115
  GBP?: string | undefined;
@@ -119,27 +117,27 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
119
117
  INR?: string | undefined;
120
118
  AUD?: string | undefined;
121
119
  CAD?: string | undefined;
122
- interval?: ______utils_dates0.DayInterval | undefined;
123
120
  free_trial?: ______utils_dates0.DayInterval | undefined;
124
121
  }>;
125
122
  display_name: string;
123
+ server_only: boolean;
124
+ customer_type: "user" | "team" | "custom";
126
125
  included_items: Record<string, {
127
- quantity?: number | undefined;
128
126
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
127
+ quantity?: number | undefined;
129
128
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
130
129
  }>;
131
130
  };
131
+ product_id: string;
132
132
  }[] | undefined;
133
- quantity: number;
134
133
  product: {
135
- free_trial?: ______utils_dates0.DayInterval | undefined;
136
134
  client_metadata?: {} | null | undefined;
137
135
  client_read_only_metadata?: {} | null | undefined;
138
136
  server_metadata?: {} | null | undefined;
139
- server_only: boolean;
140
- customer_type: "team" | "user" | "custom";
137
+ free_trial?: ______utils_dates0.DayInterval | undefined;
141
138
  stackable: boolean;
142
139
  prices: Record<string, {
140
+ interval?: ______utils_dates0.DayInterval | undefined;
143
141
  USD?: string | undefined;
144
142
  EUR?: string | undefined;
145
143
  GBP?: string | undefined;
@@ -147,16 +145,18 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
147
145
  INR?: string | undefined;
148
146
  AUD?: string | undefined;
149
147
  CAD?: string | undefined;
150
- interval?: ______utils_dates0.DayInterval | undefined;
151
148
  free_trial?: ______utils_dates0.DayInterval | undefined;
152
149
  }>;
153
150
  display_name: string;
151
+ server_only: boolean;
152
+ customer_type: "user" | "team" | "custom";
154
153
  included_items: Record<string, {
155
- quantity?: number | undefined;
156
154
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
155
+ quantity?: number | undefined;
157
156
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
158
157
  }>;
159
158
  };
159
+ quantity: number;
160
160
  id: string | null;
161
161
  }[];
162
162
  is_paginated: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,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,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -79,12 +79,12 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
79
79
  is_public: undefined;
80
80
  user_id: undefined;
81
81
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
82
- user_id: string;
83
82
  type: "user";
84
83
  description: string;
85
84
  id: string;
86
85
  created_at_millis: number;
87
86
  expires_at_millis: number | undefined;
87
+ user_id: string;
88
88
  manually_revoked_at_millis: number | undefined;
89
89
  is_public: boolean;
90
90
  } & {
@@ -178,11 +178,11 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
178
178
  team_id: undefined;
179
179
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
180
180
  type: "team";
181
- team_id: string;
182
181
  description: string;
183
182
  id: string;
184
183
  created_at_millis: number;
185
184
  expires_at_millis: number | undefined;
185
+ team_id: string;
186
186
  manually_revoked_at_millis: number | undefined;
187
187
  is_public: boolean;
188
188
  } & {
@@ -52,7 +52,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
52
52
  onboarding_state: {
53
53
  selected_config_choice: "create-new" | "link-existing";
54
54
  selected_apps: string[];
55
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
55
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
56
56
  selected_email_theme_id: string | null;
57
57
  selected_payments_country: "US" | "OTHER";
58
58
  } | null | undefined;
@@ -225,7 +225,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
225
225
  onboarding_state: {
226
226
  selected_config_choice: "create-new" | "link-existing";
227
227
  selected_apps: string[];
228
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
228
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
229
229
  selected_email_theme_id: string | null;
230
230
  selected_payments_country: "US" | "OTHER";
231
231
  } | null | undefined;
@@ -305,7 +305,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
305
305
  onboarding_state: {
306
306
  selected_config_choice: "create-new" | "link-existing";
307
307
  selected_apps: string[];
308
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
308
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
309
309
  selected_email_theme_id: string | null;
310
310
  selected_payments_country: "US" | "OTHER";
311
311
  } | null | undefined;
@@ -455,7 +455,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
455
455
  onboarding_state: {
456
456
  selected_config_choice: "create-new" | "link-existing";
457
457
  selected_apps: string[];
458
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
458
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
459
459
  selected_email_theme_id: string | null;
460
460
  selected_payments_country: "US" | "OTHER";
461
461
  } | null | undefined;
@@ -580,7 +580,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
580
580
  onboarding_state: {
581
581
  selected_config_choice: "create-new" | "link-existing";
582
582
  selected_apps: string[];
583
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
583
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
584
584
  selected_email_theme_id: string | null;
585
585
  selected_payments_country: "US" | "OTHER";
586
586
  } | null | undefined;
@@ -688,7 +688,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
688
688
  onboarding_state: {
689
689
  selected_config_choice: "create-new" | "link-existing";
690
690
  selected_apps: string[];
691
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
691
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
692
692
  selected_email_theme_id: string | null;
693
693
  selected_payments_country: "US" | "OTHER";
694
694
  } | null | undefined;
@@ -813,7 +813,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
813
813
  onboarding_state: {
814
814
  selected_config_choice: "create-new" | "link-existing";
815
815
  selected_apps: string[];
816
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
816
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
817
817
  selected_email_theme_id: string | null;
818
818
  selected_payments_country: "US" | "OTHER";
819
819
  } | null | undefined;
@@ -21,32 +21,32 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
21
21
  profile_image_url: string | null;
22
22
  } & {
23
23
  user: {
24
+ id: string;
25
+ country_code: string | null;
26
+ display_name: string | null;
27
+ primary_email: string | null;
28
+ profile_image_url: string | null;
29
+ signed_up_at_millis: number;
30
+ last_active_at_millis: number;
31
+ selected_team_id: string | null;
32
+ is_anonymous: boolean;
33
+ is_restricted: boolean;
24
34
  restricted_reason: {
25
35
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
26
36
  } | null;
27
- primary_email: string | null;
28
- display_name: string | null;
37
+ requires_totp_mfa: boolean;
29
38
  client_metadata: {} | null;
30
39
  client_read_only_metadata: {} | null;
31
40
  server_metadata: {} | null;
32
- id: string;
33
- selected_team_id: string | null;
34
- is_anonymous: boolean;
35
- is_restricted: boolean;
36
- requires_totp_mfa: boolean;
37
- country_code: string | null;
38
- profile_image_url: string | null;
39
- signed_up_at_millis: number;
40
- last_active_at_millis: number;
41
41
  primary_email_verified: boolean;
42
42
  primary_email_auth_enabled: boolean;
43
43
  selected_team: {
44
44
  client_metadata?: {} | null | undefined;
45
45
  client_read_only_metadata?: {} | null | undefined;
46
46
  server_metadata?: {} | null | undefined;
47
- display_name: string;
48
47
  id: string;
49
48
  created_at_millis: number;
49
+ display_name: string;
50
50
  profile_image_url: string | null;
51
51
  } | null;
52
52
  has_password: boolean;
@@ -144,32 +144,32 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
144
144
  profile_image_url: string | null;
145
145
  } & {
146
146
  user: {
147
+ id: string;
148
+ country_code: string | null;
149
+ display_name: string | null;
150
+ primary_email: string | null;
151
+ profile_image_url: string | null;
152
+ signed_up_at_millis: number;
153
+ last_active_at_millis: number;
154
+ selected_team_id: string | null;
155
+ is_anonymous: boolean;
156
+ is_restricted: boolean;
147
157
  restricted_reason: {
148
158
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
149
159
  } | null;
150
- primary_email: string | null;
151
- display_name: string | null;
160
+ requires_totp_mfa: boolean;
152
161
  client_metadata: {} | null;
153
162
  client_read_only_metadata: {} | null;
154
163
  server_metadata: {} | null;
155
- id: string;
156
- selected_team_id: string | null;
157
- is_anonymous: boolean;
158
- is_restricted: boolean;
159
- requires_totp_mfa: boolean;
160
- country_code: string | null;
161
- profile_image_url: string | null;
162
- signed_up_at_millis: number;
163
- last_active_at_millis: number;
164
164
  primary_email_verified: boolean;
165
165
  primary_email_auth_enabled: boolean;
166
166
  selected_team: {
167
167
  client_metadata?: {} | null | undefined;
168
168
  client_read_only_metadata?: {} | null | undefined;
169
169
  server_metadata?: {} | null | undefined;
170
- display_name: string;
171
170
  id: string;
172
171
  created_at_millis: number;
172
+ display_name: string;
173
173
  profile_image_url: string | null;
174
174
  } | null;
175
175
  has_password: boolean;
@@ -6,7 +6,7 @@ import * as ______utils_dates0 from "../../utils/dates";
6
6
  declare const transactionEntrySchema: yup$1.MixedSchema<{
7
7
  type: "money_transfer";
8
8
  customer_id: string;
9
- customer_type: "team" | "user" | "custom";
9
+ customer_type: "user" | "team" | "custom";
10
10
  charged_amount: {
11
11
  USD?: string | undefined;
12
12
  EUR?: string | undefined;
@@ -23,29 +23,24 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
23
23
  adjusted_entry_index: number | null;
24
24
  } | {
25
25
  type: "item_quantity_change";
26
+ quantity: number;
26
27
  item_id: string;
27
28
  customer_id: string;
28
- quantity: number;
29
- customer_type: "team" | "user" | "custom";
29
+ customer_type: "user" | "team" | "custom";
30
30
  adjusted_transaction_id: string | null;
31
31
  adjusted_entry_index: number | null;
32
32
  } | {
33
33
  one_time_purchase_id?: string | undefined;
34
34
  subscription_id?: string | undefined;
35
35
  type: "product_grant";
36
- customer_id: string;
37
- product_id: string | null;
38
- quantity: number;
39
- customer_type: "team" | "user" | "custom";
40
36
  product: {
41
- free_trial?: ______utils_dates0.DayInterval | undefined;
42
37
  client_metadata?: {} | null | undefined;
43
38
  client_read_only_metadata?: {} | null | undefined;
44
39
  server_metadata?: {} | null | undefined;
45
- server_only: boolean;
46
- customer_type: "team" | "user" | "custom";
40
+ free_trial?: ______utils_dates0.DayInterval | undefined;
47
41
  stackable: boolean;
48
42
  prices: Record<string, {
43
+ interval?: ______utils_dates0.DayInterval | undefined;
49
44
  USD?: string | undefined;
50
45
  EUR?: string | undefined;
51
46
  GBP?: string | undefined;
@@ -53,16 +48,21 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
53
48
  INR?: string | undefined;
54
49
  AUD?: string | undefined;
55
50
  CAD?: string | undefined;
56
- interval?: ______utils_dates0.DayInterval | undefined;
57
51
  free_trial?: ______utils_dates0.DayInterval | undefined;
58
52
  }>;
59
53
  display_name: string;
54
+ server_only: boolean;
55
+ customer_type: "user" | "team" | "custom";
60
56
  included_items: Record<string, {
61
- quantity?: number | undefined;
62
57
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
58
+ quantity?: number | undefined;
63
59
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
64
60
  }>;
65
61
  };
62
+ quantity: number;
63
+ customer_id: string;
64
+ product_id: string | null;
65
+ customer_type: "user" | "team" | "custom";
66
66
  adjusted_transaction_id: string | null;
67
67
  adjusted_entry_index: number | null;
68
68
  price_id: string | null;
@@ -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: "team" | "user" | "custom";
88
+ customer_type: "user" | "team" | "custom";
89
89
  customer_id: string;
90
90
  entries: ({
91
91
  type: "money_transfer";
92
92
  customer_id: string;
93
- customer_type: "team" | "user" | "custom";
93
+ customer_type: "user" | "team" | "custom";
94
94
  charged_amount: {
95
95
  USD?: string | undefined;
96
96
  EUR?: string | undefined;
@@ -107,29 +107,24 @@ declare const transactionSchema: yup$1.ObjectSchema<{
107
107
  adjusted_entry_index: number | null;
108
108
  } | {
109
109
  type: "item_quantity_change";
110
+ quantity: number;
110
111
  item_id: string;
111
112
  customer_id: string;
112
- quantity: number;
113
- customer_type: "team" | "user" | "custom";
113
+ customer_type: "user" | "team" | "custom";
114
114
  adjusted_transaction_id: string | null;
115
115
  adjusted_entry_index: number | null;
116
116
  } | {
117
117
  one_time_purchase_id?: string | undefined;
118
118
  subscription_id?: string | undefined;
119
119
  type: "product_grant";
120
- customer_id: string;
121
- product_id: string | null;
122
- quantity: number;
123
- customer_type: "team" | "user" | "custom";
124
120
  product: {
125
- free_trial?: ______utils_dates0.DayInterval | undefined;
126
121
  client_metadata?: {} | null | undefined;
127
122
  client_read_only_metadata?: {} | null | undefined;
128
123
  server_metadata?: {} | null | undefined;
129
- server_only: boolean;
130
- customer_type: "team" | "user" | "custom";
124
+ free_trial?: ______utils_dates0.DayInterval | undefined;
131
125
  stackable: boolean;
132
126
  prices: Record<string, {
127
+ interval?: ______utils_dates0.DayInterval | undefined;
133
128
  USD?: string | undefined;
134
129
  EUR?: string | undefined;
135
130
  GBP?: string | undefined;
@@ -137,16 +132,21 @@ declare const transactionSchema: yup$1.ObjectSchema<{
137
132
  INR?: string | undefined;
138
133
  AUD?: string | undefined;
139
134
  CAD?: string | undefined;
140
- interval?: ______utils_dates0.DayInterval | undefined;
141
135
  free_trial?: ______utils_dates0.DayInterval | undefined;
142
136
  }>;
143
137
  display_name: string;
138
+ server_only: boolean;
139
+ customer_type: "user" | "team" | "custom";
144
140
  included_items: Record<string, {
145
- quantity?: number | undefined;
146
141
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
142
+ quantity?: number | undefined;
147
143
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
148
144
  }>;
149
145
  };
146
+ quantity: number;
147
+ customer_id: string;
148
+ product_id: string | null;
149
+ customer_type: "user" | "team" | "custom";
150
150
  adjusted_transaction_id: string | null;
151
151
  adjusted_entry_index: number | null;
152
152
  price_id: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,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,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
@@ -81,9 +81,9 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
81
81
  client_metadata?: {} | null | undefined;
82
82
  client_read_only_metadata?: {} | null | undefined;
83
83
  server_metadata?: {} | null | undefined;
84
- display_name: string;
85
84
  id: string;
86
85
  created_at_millis: number;
86
+ display_name: string;
87
87
  profile_image_url: string | null;
88
88
  } | null;
89
89
  selected_team_id: string | null;
@@ -163,15 +163,15 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
163
163
  requires_totp_mfa: undefined;
164
164
  }, "">;
165
165
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
166
- primary_email: string | null | undefined;
166
+ password: string | null | undefined;
167
+ country_code: string | null | undefined;
167
168
  display_name: string | null | undefined;
169
+ primary_email: string | null | undefined;
170
+ profile_image_url: string | null | undefined;
171
+ is_anonymous: boolean | undefined;
168
172
  client_metadata: {} | null | undefined;
169
173
  client_read_only_metadata: {} | null | undefined;
170
174
  server_metadata: {} | null | undefined;
171
- is_anonymous: boolean | undefined;
172
- password: string | null | undefined;
173
- country_code: string | null | undefined;
174
- profile_image_url: string | null | undefined;
175
175
  primary_email_verified: boolean | undefined;
176
176
  primary_email_auth_enabled: boolean | undefined;
177
177
  otp_auth_enabled: boolean | undefined;
@@ -189,8 +189,8 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
189
189
  totp_secret_base64: string | null | undefined;
190
190
  } & {
191
191
  oauth_providers: {
192
- email: string | null;
193
192
  id: string;
193
+ email: string | null;
194
194
  account_id: string;
195
195
  }[] | undefined;
196
196
  is_anonymous: boolean | undefined;
@@ -234,9 +234,9 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
234
234
  client_metadata?: {} | null | undefined;
235
235
  client_read_only_metadata?: {} | null | undefined;
236
236
  server_metadata?: {} | null | undefined;
237
- display_name: string;
238
237
  id: string;
239
238
  created_at_millis: number;
239
+ display_name: string;
240
240
  profile_image_url: string | null;
241
241
  } | null;
242
242
  selected_team_id: string | null;
@@ -369,15 +369,15 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
369
369
  };
370
370
  }, "">;
371
371
  serverCreateSchema: yup$1.ObjectSchema<{
372
- primary_email: string | null | undefined;
372
+ password: string | null | undefined;
373
+ country_code: string | null | undefined;
373
374
  display_name: string | null | undefined;
375
+ primary_email: string | null | undefined;
376
+ profile_image_url: string | null | undefined;
377
+ is_anonymous: boolean | undefined;
374
378
  client_metadata: {} | null | undefined;
375
379
  client_read_only_metadata: {} | null | undefined;
376
380
  server_metadata: {} | null | undefined;
377
- is_anonymous: boolean | undefined;
378
- password: string | null | undefined;
379
- country_code: string | null | undefined;
380
- profile_image_url: string | null | undefined;
381
381
  primary_email_verified: boolean | undefined;
382
382
  primary_email_auth_enabled: boolean | undefined;
383
383
  otp_auth_enabled: boolean | undefined;
@@ -395,8 +395,8 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
395
395
  totp_secret_base64: string | null | undefined;
396
396
  } & {
397
397
  oauth_providers: {
398
- email: string | null;
399
398
  id: string;
399
+ email: string | null;
400
400
  account_id: string;
401
401
  }[] | undefined;
402
402
  is_anonymous: boolean | undefined;
@@ -468,9 +468,9 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
468
468
  client_metadata?: {} | null | undefined;
469
469
  client_read_only_metadata?: {} | null | undefined;
470
470
  server_metadata?: {} | null | undefined;
471
- display_name: string;
472
471
  id: string;
473
472
  created_at_millis: number;
473
+ display_name: string;
474
474
  profile_image_url: string | null;
475
475
  } | null;
476
476
  selected_team_id: string | null;
@@ -559,9 +559,9 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
559
559
  client_metadata?: {} | null | undefined;
560
560
  client_read_only_metadata?: {} | null | undefined;
561
561
  server_metadata?: {} | null | undefined;
562
- display_name: string;
563
562
  id: string;
564
563
  created_at_millis: number;
564
+ display_name: string;
565
565
  profile_image_url: string | null;
566
566
  } | null;
567
567
  selected_team_id: string | null;
@@ -30,9 +30,9 @@ declare const planUsageResponseSchema: yup$1.ObjectSchema<{
30
30
  period_end_millis: number;
31
31
  next_plan_id: "team" | "growth" | null;
32
32
  rows: {
33
- item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
34
33
  display_name: string;
35
34
  kind: "current" | "metered" | "capability";
35
+ item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
36
36
  used: number | null;
37
37
  limit: number | null;
38
38
  remaining: number | 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;
24
23
  id: string;
25
24
  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;
114
113
  id: string;
115
114
  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;