@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?: 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?: DayInterval | undefined;
15
13
  stackable: boolean;
16
14
  prices: Record<string, {
15
+ interval?: 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?: DayInterval | undefined;
25
23
  free_trial?: 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" | 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?: 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?: DayInterval | undefined;
50
47
  stackable: boolean;
51
48
  prices: Record<string, {
49
+ interval?: 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?: DayInterval | undefined;
60
57
  free_trial?: 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" | 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?: 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?: DayInterval | undefined;
113
110
  stackable: boolean;
114
111
  prices: Record<string, {
112
+ interval?: 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?: DayInterval | undefined;
123
120
  free_trial?: 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" | 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?: 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?: DayInterval | undefined;
141
138
  stackable: boolean;
142
139
  prices: Record<string, {
140
+ interval?: 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?: DayInterval | undefined;
151
148
  free_trial?: 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" | 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,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;
82
81
  type: "user";
83
82
  description: string;
84
83
  id: string;
85
84
  created_at_millis: number;
86
85
  expires_at_millis: number | undefined;
86
+ user_id: 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
180
  description: string;
182
181
  id: string;
183
182
  created_at_millis: number;
184
183
  expires_at_millis: number | undefined;
184
+ team_id: string;
185
185
  manually_revoked_at_millis: number | undefined;
186
186
  is_public: boolean;
187
187
  } & {
@@ -51,7 +51,7 @@ 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: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
54
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
55
55
  selected_email_theme_id: string | null;
56
56
  selected_payments_country: "US" | "OTHER";
57
57
  } | null | undefined;
@@ -224,7 +224,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
224
224
  onboarding_state: {
225
225
  selected_config_choice: "create-new" | "link-existing";
226
226
  selected_apps: string[];
227
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
227
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
228
228
  selected_email_theme_id: string | null;
229
229
  selected_payments_country: "US" | "OTHER";
230
230
  } | null | undefined;
@@ -304,7 +304,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
304
304
  onboarding_state: {
305
305
  selected_config_choice: "create-new" | "link-existing";
306
306
  selected_apps: string[];
307
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
307
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
308
308
  selected_email_theme_id: string | null;
309
309
  selected_payments_country: "US" | "OTHER";
310
310
  } | null | undefined;
@@ -454,7 +454,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
454
454
  onboarding_state: {
455
455
  selected_config_choice: "create-new" | "link-existing";
456
456
  selected_apps: string[];
457
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
457
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
458
458
  selected_email_theme_id: string | null;
459
459
  selected_payments_country: "US" | "OTHER";
460
460
  } | null | undefined;
@@ -579,7 +579,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
579
579
  onboarding_state: {
580
580
  selected_config_choice: "create-new" | "link-existing";
581
581
  selected_apps: string[];
582
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
582
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
583
583
  selected_email_theme_id: string | null;
584
584
  selected_payments_country: "US" | "OTHER";
585
585
  } | null | undefined;
@@ -687,7 +687,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
687
687
  onboarding_state: {
688
688
  selected_config_choice: "create-new" | "link-existing";
689
689
  selected_apps: string[];
690
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
690
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
691
691
  selected_email_theme_id: string | null;
692
692
  selected_payments_country: "US" | "OTHER";
693
693
  } | null | undefined;
@@ -812,7 +812,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
812
812
  onboarding_state: {
813
813
  selected_config_choice: "create-new" | "link-existing";
814
814
  selected_apps: string[];
815
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
815
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
816
816
  selected_email_theme_id: string | null;
817
817
  selected_payments_country: "US" | "OTHER";
818
818
  } | null | 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;
23
33
  restricted_reason: {
24
34
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
25
35
  } | null;
26
- primary_email: string | null;
27
- display_name: string | null;
36
+ requires_totp_mfa: boolean;
28
37
  client_metadata: {} | null;
29
38
  client_read_only_metadata: {} | null;
30
39
  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;
47
46
  id: string;
48
47
  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;
146
156
  restricted_reason: {
147
157
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
148
158
  } | null;
149
- primary_email: string | null;
150
- display_name: string | null;
159
+ requires_totp_mfa: boolean;
151
160
  client_metadata: {} | null;
152
161
  client_read_only_metadata: {} | null;
153
162
  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;
170
169
  id: string;
171
170
  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: "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?: 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?: DayInterval | undefined;
47
41
  stackable: boolean;
48
42
  prices: Record<string, {
43
+ interval?: 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?: DayInterval | undefined;
57
51
  free_trial?: 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" | 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?: 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?: DayInterval | undefined;
131
125
  stackable: boolean;
132
126
  prices: Record<string, {
127
+ interval?: 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?: DayInterval | undefined;
141
135
  free_trial?: 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" | 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,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;
84
83
  id: string;
85
84
  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,15 +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
- primary_email: string | null | undefined;
165
+ password: string | null | undefined;
166
+ country_code: string | null | undefined;
166
167
  display_name: string | null | undefined;
168
+ primary_email: string | null | undefined;
169
+ profile_image_url: string | null | undefined;
170
+ is_anonymous: boolean | undefined;
167
171
  client_metadata: {} | null | undefined;
168
172
  client_read_only_metadata: {} | null | undefined;
169
173
  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;
174
174
  primary_email_verified: boolean | undefined;
175
175
  primary_email_auth_enabled: boolean | undefined;
176
176
  otp_auth_enabled: boolean | undefined;
@@ -188,8 +188,8 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
188
188
  totp_secret_base64: string | null | undefined;
189
189
  } & {
190
190
  oauth_providers: {
191
- email: string | null;
192
191
  id: string;
192
+ email: string | null;
193
193
  account_id: string;
194
194
  }[] | undefined;
195
195
  is_anonymous: boolean | undefined;
@@ -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;
237
236
  id: string;
238
237
  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,15 +368,15 @@ declare const usersCrud: CrudSchemaFromOptions<{
368
368
  };
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
- primary_email: string | null | undefined;
371
+ password: string | null | undefined;
372
+ country_code: string | null | undefined;
372
373
  display_name: string | null | undefined;
374
+ primary_email: string | null | undefined;
375
+ profile_image_url: string | null | undefined;
376
+ is_anonymous: boolean | undefined;
373
377
  client_metadata: {} | null | undefined;
374
378
  client_read_only_metadata: {} | null | undefined;
375
379
  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;
380
380
  primary_email_verified: boolean | undefined;
381
381
  primary_email_auth_enabled: boolean | undefined;
382
382
  otp_auth_enabled: boolean | undefined;
@@ -394,8 +394,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
394
394
  totp_secret_base64: string | null | undefined;
395
395
  } & {
396
396
  oauth_providers: {
397
- email: string | null;
398
397
  id: string;
398
+ email: string | null;
399
399
  account_id: string;
400
400
  }[] | undefined;
401
401
  is_anonymous: boolean | undefined;
@@ -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;
471
470
  id: string;
472
471
  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;
562
561
  id: string;
563
562
  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;
@@ -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;