@hexclave/shared 1.0.34 → 1.0.35

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 (47) hide show
  1. package/dist/ai/unified-prompts/reminders.js +2 -2
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/config/schema.d.ts +112 -112
  4. package/dist/esm/ai/unified-prompts/reminders.js +2 -2
  5. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  6. package/dist/esm/config/schema.d.ts +112 -112
  7. package/dist/esm/helpers/init-prompt.js +1 -1
  8. package/dist/esm/helpers/init-prompt.js.map +1 -1
  9. package/dist/esm/interface/admin-metrics.d.ts +17 -17
  10. package/dist/esm/interface/conversations.d.ts +31 -31
  11. package/dist/esm/interface/crud/current-user.d.ts +14 -14
  12. package/dist/esm/interface/crud/email-outbox.d.ts +138 -138
  13. package/dist/esm/interface/crud/products.d.ts +23 -23
  14. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  15. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  16. package/dist/esm/interface/crud/projects.d.ts +7 -7
  17. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  18. package/dist/esm/interface/crud/transactions.d.ts +25 -25
  19. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  20. package/dist/esm/interface/crud/users.d.ts +16 -16
  21. package/dist/esm/interface/plan-usage.d.ts +2 -2
  22. package/dist/esm/interface/webhooks.d.ts +2 -2
  23. package/dist/esm/known-errors.d.ts +6 -6
  24. package/dist/esm/schema-fields.d.ts +17 -17
  25. package/dist/esm/sessions.d.ts +8 -8
  26. package/dist/helpers/init-prompt.js +1 -1
  27. package/dist/helpers/init-prompt.js.map +1 -1
  28. package/dist/interface/admin-metrics.d.ts +17 -17
  29. package/dist/interface/conversations.d.ts +31 -31
  30. package/dist/interface/crud/current-user.d.ts +14 -14
  31. package/dist/interface/crud/email-outbox.d.ts +138 -138
  32. package/dist/interface/crud/products.d.ts +23 -23
  33. package/dist/interface/crud/products.d.ts.map +1 -1
  34. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  35. package/dist/interface/crud/projects.d.ts +7 -7
  36. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  37. package/dist/interface/crud/transactions.d.ts +25 -25
  38. package/dist/interface/crud/transactions.d.ts.map +1 -1
  39. package/dist/interface/crud/users.d.ts +16 -16
  40. package/dist/interface/plan-usage.d.ts +2 -2
  41. package/dist/interface/webhooks.d.ts +2 -2
  42. package/dist/known-errors.d.ts +6 -6
  43. package/dist/schema-fields.d.ts +17 -17
  44. package/dist/sessions.d.ts +8 -8
  45. package/package.json +1 -1
  46. package/src/ai/unified-prompts/reminders.ts +1 -1
  47. package/src/helpers/init-prompt.ts +1 -1
@@ -6,13 +6,14 @@ 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
+ server_only: boolean;
14
+ customer_type: "team" | "user" | "custom";
13
15
  stackable: boolean;
14
16
  prices: Record<string, {
15
- interval?: DayInterval | undefined;
16
17
  USD?: string | undefined;
17
18
  EUR?: string | undefined;
18
19
  GBP?: string | undefined;
@@ -20,14 +21,13 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
20
21
  INR?: string | undefined;
21
22
  AUD?: string | undefined;
22
23
  CAD?: string | undefined;
24
+ interval?: DayInterval | undefined;
23
25
  free_trial?: DayInterval | undefined;
24
26
  }>;
25
27
  display_name: string;
26
- server_only: boolean;
27
- customer_type: "user" | "team" | "custom";
28
28
  included_items: Record<string, {
29
- repeat?: "never" | DayInterval | undefined;
30
29
  quantity?: number | undefined;
30
+ repeat?: "never" | DayInterval | undefined;
31
31
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
32
32
  }>;
33
33
  };
@@ -39,14 +39,16 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
39
39
  is_cancelable: boolean;
40
40
  } | null | undefined;
41
41
  switch_options: {
42
+ product_id: string;
42
43
  product: {
44
+ free_trial?: DayInterval | undefined;
43
45
  client_metadata?: {} | null | undefined;
44
46
  client_read_only_metadata?: {} | null | undefined;
45
47
  server_metadata?: {} | null | undefined;
46
- free_trial?: DayInterval | undefined;
48
+ server_only: boolean;
49
+ customer_type: "team" | "user" | "custom";
47
50
  stackable: boolean;
48
51
  prices: Record<string, {
49
- interval?: DayInterval | undefined;
50
52
  USD?: string | undefined;
51
53
  EUR?: string | undefined;
52
54
  GBP?: string | undefined;
@@ -54,18 +56,16 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
54
56
  INR?: string | undefined;
55
57
  AUD?: string | undefined;
56
58
  CAD?: string | undefined;
59
+ interval?: DayInterval | undefined;
57
60
  free_trial?: DayInterval | undefined;
58
61
  }>;
59
62
  display_name: string;
60
- server_only: boolean;
61
- customer_type: "user" | "team" | "custom";
62
63
  included_items: Record<string, {
63
- repeat?: "never" | DayInterval | undefined;
64
64
  quantity?: number | undefined;
65
+ repeat?: "never" | DayInterval | undefined;
65
66
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
66
67
  }>;
67
68
  };
68
- product_id: string;
69
69
  }[] | undefined;
70
70
  }, yup$1.AnyObject, {
71
71
  id: undefined;
@@ -102,14 +102,16 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
102
102
  is_cancelable: boolean;
103
103
  } | null | undefined;
104
104
  switch_options?: {
105
+ product_id: string;
105
106
  product: {
107
+ free_trial?: DayInterval | undefined;
106
108
  client_metadata?: {} | null | undefined;
107
109
  client_read_only_metadata?: {} | null | undefined;
108
110
  server_metadata?: {} | null | undefined;
109
- free_trial?: DayInterval | undefined;
111
+ server_only: boolean;
112
+ customer_type: "team" | "user" | "custom";
110
113
  stackable: boolean;
111
114
  prices: Record<string, {
112
- interval?: DayInterval | undefined;
113
115
  USD?: string | undefined;
114
116
  EUR?: string | undefined;
115
117
  GBP?: string | undefined;
@@ -117,27 +119,27 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
117
119
  INR?: string | undefined;
118
120
  AUD?: string | undefined;
119
121
  CAD?: string | undefined;
122
+ interval?: DayInterval | undefined;
120
123
  free_trial?: DayInterval | undefined;
121
124
  }>;
122
125
  display_name: string;
123
- server_only: boolean;
124
- customer_type: "user" | "team" | "custom";
125
126
  included_items: Record<string, {
126
- repeat?: "never" | DayInterval | undefined;
127
127
  quantity?: number | undefined;
128
+ repeat?: "never" | DayInterval | undefined;
128
129
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
129
130
  }>;
130
131
  };
131
- product_id: string;
132
132
  }[] | undefined;
133
+ quantity: number;
133
134
  product: {
135
+ free_trial?: DayInterval | undefined;
134
136
  client_metadata?: {} | null | undefined;
135
137
  client_read_only_metadata?: {} | null | undefined;
136
138
  server_metadata?: {} | null | undefined;
137
- free_trial?: DayInterval | undefined;
139
+ server_only: boolean;
140
+ customer_type: "team" | "user" | "custom";
138
141
  stackable: boolean;
139
142
  prices: Record<string, {
140
- interval?: DayInterval | undefined;
141
143
  USD?: string | undefined;
142
144
  EUR?: string | undefined;
143
145
  GBP?: string | undefined;
@@ -145,18 +147,16 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
145
147
  INR?: string | undefined;
146
148
  AUD?: string | undefined;
147
149
  CAD?: string | undefined;
150
+ interval?: DayInterval | undefined;
148
151
  free_trial?: DayInterval | undefined;
149
152
  }>;
150
153
  display_name: string;
151
- server_only: boolean;
152
- customer_type: "user" | "team" | "custom";
153
154
  included_items: Record<string, {
154
- repeat?: "never" | DayInterval | undefined;
155
155
  quantity?: number | undefined;
156
+ repeat?: "never" | DayInterval | undefined;
156
157
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
157
158
  }>;
158
159
  };
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;
81
82
  type: "user";
82
83
  description: string;
83
84
  id: string;
84
85
  created_at_millis: number;
85
86
  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;
180
181
  description: string;
181
182
  id: string;
182
183
  created_at_millis: number;
183
184
  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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
54
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
55
55
  selected_email_theme_id: string | null;
56
56
  selected_payments_country: "US" | "OTHER";
57
57
  } | null | undefined;
@@ -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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
227
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
307
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
457
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
582
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
690
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
815
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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;
33
23
  restricted_reason: {
34
24
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
35
25
  } | null;
36
- requires_totp_mfa: boolean;
26
+ primary_email: string | null;
27
+ display_name: string | null;
37
28
  client_metadata: {} | null;
38
29
  client_read_only_metadata: {} | null;
39
30
  server_metadata: {} | null;
31
+ id: string;
32
+ selected_team_id: string | null;
33
+ is_anonymous: boolean;
34
+ is_restricted: boolean;
35
+ requires_totp_mfa: boolean;
36
+ country_code: string | null;
37
+ profile_image_url: string | null;
38
+ signed_up_at_millis: number;
39
+ last_active_at_millis: number;
40
40
  primary_email_verified: boolean;
41
41
  primary_email_auth_enabled: boolean;
42
42
  selected_team: {
43
43
  client_metadata?: {} | null | undefined;
44
44
  client_read_only_metadata?: {} | null | undefined;
45
45
  server_metadata?: {} | null | undefined;
46
+ display_name: string;
46
47
  id: string;
47
48
  created_at_millis: number;
48
- display_name: string;
49
49
  profile_image_url: string | null;
50
50
  } | null;
51
51
  has_password: boolean;
@@ -143,32 +143,32 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
143
143
  profile_image_url: string | null;
144
144
  } & {
145
145
  user: {
146
- id: string;
147
- country_code: string | null;
148
- display_name: string | null;
149
- primary_email: string | null;
150
- profile_image_url: string | null;
151
- signed_up_at_millis: number;
152
- last_active_at_millis: number;
153
- selected_team_id: string | null;
154
- is_anonymous: boolean;
155
- is_restricted: boolean;
156
146
  restricted_reason: {
157
147
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
158
148
  } | null;
159
- requires_totp_mfa: boolean;
149
+ primary_email: string | null;
150
+ display_name: string | null;
160
151
  client_metadata: {} | null;
161
152
  client_read_only_metadata: {} | null;
162
153
  server_metadata: {} | null;
154
+ id: string;
155
+ selected_team_id: string | null;
156
+ is_anonymous: boolean;
157
+ is_restricted: boolean;
158
+ requires_totp_mfa: boolean;
159
+ country_code: string | null;
160
+ profile_image_url: string | null;
161
+ signed_up_at_millis: number;
162
+ last_active_at_millis: number;
163
163
  primary_email_verified: boolean;
164
164
  primary_email_auth_enabled: boolean;
165
165
  selected_team: {
166
166
  client_metadata?: {} | null | undefined;
167
167
  client_read_only_metadata?: {} | null | undefined;
168
168
  server_metadata?: {} | null | undefined;
169
+ display_name: string;
169
170
  id: string;
170
171
  created_at_millis: number;
171
- display_name: string;
172
172
  profile_image_url: string | null;
173
173
  } | null;
174
174
  has_password: boolean;
@@ -6,7 +6,7 @@ import { InferType } from "yup";
6
6
  declare const transactionEntrySchema: yup$1.MixedSchema<{
7
7
  type: "money_transfer";
8
8
  customer_id: string;
9
- customer_type: "user" | "team" | "custom";
9
+ customer_type: "team" | "user" | "custom";
10
10
  charged_amount: {
11
11
  USD?: string | undefined;
12
12
  EUR?: string | undefined;
@@ -23,24 +23,29 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
23
23
  adjusted_entry_index: number | null;
24
24
  } | {
25
25
  type: "item_quantity_change";
26
- quantity: number;
27
26
  item_id: string;
28
27
  customer_id: string;
29
- customer_type: "user" | "team" | "custom";
28
+ quantity: number;
29
+ customer_type: "team" | "user" | "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";
36
40
  product: {
41
+ free_trial?: DayInterval | undefined;
37
42
  client_metadata?: {} | null | undefined;
38
43
  client_read_only_metadata?: {} | null | undefined;
39
44
  server_metadata?: {} | null | undefined;
40
- free_trial?: DayInterval | undefined;
45
+ server_only: boolean;
46
+ customer_type: "team" | "user" | "custom";
41
47
  stackable: boolean;
42
48
  prices: Record<string, {
43
- interval?: DayInterval | undefined;
44
49
  USD?: string | undefined;
45
50
  EUR?: string | undefined;
46
51
  GBP?: string | undefined;
@@ -48,21 +53,16 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
48
53
  INR?: string | undefined;
49
54
  AUD?: string | undefined;
50
55
  CAD?: string | undefined;
56
+ interval?: DayInterval | undefined;
51
57
  free_trial?: DayInterval | undefined;
52
58
  }>;
53
59
  display_name: string;
54
- server_only: boolean;
55
- customer_type: "user" | "team" | "custom";
56
60
  included_items: Record<string, {
57
- repeat?: "never" | DayInterval | undefined;
58
61
  quantity?: number | undefined;
62
+ repeat?: "never" | DayInterval | undefined;
59
63
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
60
64
  }>;
61
65
  };
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: "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;
@@ -107,24 +107,29 @@ declare const transactionSchema: yup$1.ObjectSchema<{
107
107
  adjusted_entry_index: number | null;
108
108
  } | {
109
109
  type: "item_quantity_change";
110
- quantity: number;
111
110
  item_id: string;
112
111
  customer_id: string;
113
- customer_type: "user" | "team" | "custom";
112
+ quantity: number;
113
+ customer_type: "team" | "user" | "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";
120
124
  product: {
125
+ free_trial?: DayInterval | undefined;
121
126
  client_metadata?: {} | null | undefined;
122
127
  client_read_only_metadata?: {} | null | undefined;
123
128
  server_metadata?: {} | null | undefined;
124
- free_trial?: DayInterval | undefined;
129
+ server_only: boolean;
130
+ customer_type: "team" | "user" | "custom";
125
131
  stackable: boolean;
126
132
  prices: Record<string, {
127
- interval?: DayInterval | undefined;
128
133
  USD?: string | undefined;
129
134
  EUR?: string | undefined;
130
135
  GBP?: string | undefined;
@@ -132,21 +137,16 @@ declare const transactionSchema: yup$1.ObjectSchema<{
132
137
  INR?: string | undefined;
133
138
  AUD?: string | undefined;
134
139
  CAD?: string | undefined;
140
+ interval?: DayInterval | undefined;
135
141
  free_trial?: DayInterval | undefined;
136
142
  }>;
137
143
  display_name: string;
138
- server_only: boolean;
139
- customer_type: "user" | "team" | "custom";
140
144
  included_items: Record<string, {
141
- repeat?: "never" | DayInterval | undefined;
142
145
  quantity?: number | undefined;
146
+ repeat?: "never" | DayInterval | undefined;
143
147
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
144
148
  }>;
145
149
  };
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;
83
84
  id: string;
84
85
  created_at_millis: number;
85
- display_name: string;
86
86
  profile_image_url: string | null;
87
87
  } | null;
88
88
  selected_team_id: string | null;
@@ -162,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
- password: string | null | undefined;
166
- country_code: string | null | undefined;
167
- display_name: string | null | undefined;
168
165
  primary_email: string | null | undefined;
169
- profile_image_url: string | null | undefined;
170
- is_anonymous: boolean | undefined;
166
+ display_name: string | null | undefined;
171
167
  client_metadata: {} | null | undefined;
172
168
  client_read_only_metadata: {} | null | undefined;
173
169
  server_metadata: {} | null | undefined;
170
+ is_anonymous: boolean | undefined;
171
+ country_code: string | null | undefined;
172
+ profile_image_url: string | null | undefined;
173
+ password: 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
- id: string;
192
191
  email: string | null;
192
+ id: string;
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;
236
237
  id: string;
237
238
  created_at_millis: number;
238
- display_name: string;
239
239
  profile_image_url: string | null;
240
240
  } | null;
241
241
  selected_team_id: string | null;
@@ -368,15 +368,15 @@ declare const usersCrud: CrudSchemaFromOptions<{
368
368
  };
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
- password: string | null | undefined;
372
- country_code: string | null | undefined;
373
- display_name: string | null | undefined;
374
371
  primary_email: string | null | undefined;
375
- profile_image_url: string | null | undefined;
376
- is_anonymous: boolean | undefined;
372
+ display_name: string | null | undefined;
377
373
  client_metadata: {} | null | undefined;
378
374
  client_read_only_metadata: {} | null | undefined;
379
375
  server_metadata: {} | null | undefined;
376
+ is_anonymous: boolean | undefined;
377
+ country_code: string | null | undefined;
378
+ profile_image_url: string | null | undefined;
379
+ password: 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
- id: string;
398
397
  email: string | null;
398
+ id: string;
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;
470
471
  id: string;
471
472
  created_at_millis: number;
472
- display_name: string;
473
473
  profile_image_url: string | null;
474
474
  } | null;
475
475
  selected_team_id: string | null;
@@ -558,9 +558,9 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
558
558
  client_metadata?: {} | null | undefined;
559
559
  client_read_only_metadata?: {} | null | undefined;
560
560
  server_metadata?: {} | null | undefined;
561
+ display_name: string;
561
562
  id: string;
562
563
  created_at_millis: number;
563
- display_name: string;
564
564
  profile_image_url: string | null;
565
565
  } | null;
566
566
  selected_team_id: string | null;
@@ -24,15 +24,15 @@ declare const planUsageRowSchema: yup$1.ObjectSchema<{
24
24
  declare const planUsageResponseSchema: yup$1.ObjectSchema<{
25
25
  owner_team_id: string;
26
26
  owner_team_display_name: string;
27
- plan_id: "team" | "free" | "growth";
27
+ plan_id: "free" | "team" | "growth";
28
28
  plan_display_name: string;
29
29
  period_start_millis: number;
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";
33
34
  display_name: string;
34
35
  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;
23
24
  id: string;
24
25
  created_at_millis: number;
25
- display_name: string;
26
26
  profile_image_url: string | null;
27
27
  } | null;
28
28
  selected_team_id: string | null;
@@ -110,9 +110,9 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
110
110
  client_metadata?: {} | null | undefined;
111
111
  client_read_only_metadata?: {} | null | undefined;
112
112
  server_metadata?: {} | null | undefined;
113
+ display_name: string;
113
114
  id: string;
114
115
  created_at_millis: number;
115
- display_name: string;
116
116
  profile_image_url: string | null;
117
117
  } | null;
118
118
  selected_team_id: string | null;