@hexclave/shared 1.0.34 → 1.0.36

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 +1 -1
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/config/schema.d.ts +106 -106
  4. package/dist/esm/ai/unified-prompts/reminders.js +1 -1
  5. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  6. package/dist/esm/config/schema.d.ts +106 -106
  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 +7 -7
  10. package/dist/esm/interface/conversations.d.ts +3 -3
  11. package/dist/esm/interface/crud/current-user.d.ts +10 -10
  12. package/dist/esm/interface/crud/email-outbox.d.ts +64 -64
  13. package/dist/esm/interface/crud/products.d.ts +12 -12
  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 +20 -20
  18. package/dist/esm/interface/crud/transactions.d.ts +13 -13
  19. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  20. package/dist/esm/interface/crud/users.d.ts +14 -14
  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 +7 -7
  24. package/dist/esm/schema-fields.d.ts +16 -16
  25. package/dist/esm/sessions.d.ts +1 -1
  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 +7 -7
  29. package/dist/interface/conversations.d.ts +3 -3
  30. package/dist/interface/crud/current-user.d.ts +10 -10
  31. package/dist/interface/crud/email-outbox.d.ts +64 -64
  32. package/dist/interface/crud/products.d.ts +12 -12
  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 +20 -20
  37. package/dist/interface/crud/transactions.d.ts +13 -13
  38. package/dist/interface/crud/transactions.d.ts.map +1 -1
  39. package/dist/interface/crud/users.d.ts +14 -14
  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 +7 -7
  43. package/dist/schema-fields.d.ts +16 -16
  44. package/dist/sessions.d.ts +1 -1
  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,12 @@ 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;
9
10
  client_metadata?: {} | null | undefined;
10
11
  client_read_only_metadata?: {} | null | undefined;
11
12
  server_metadata?: {} | null | undefined;
12
- free_trial?: ______utils_dates0.DayInterval | undefined;
13
13
  stackable: boolean;
14
14
  prices: Record<string, {
15
- interval?: ______utils_dates0.DayInterval | undefined;
16
15
  USD?: string | undefined;
17
16
  EUR?: string | undefined;
18
17
  GBP?: string | undefined;
@@ -20,11 +19,12 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
20
19
  INR?: string | undefined;
21
20
  AUD?: string | undefined;
22
21
  CAD?: string | undefined;
22
+ interval?: ______utils_dates0.DayInterval | undefined;
23
23
  free_trial?: ______utils_dates0.DayInterval | undefined;
24
24
  }>;
25
25
  display_name: string;
26
+ customer_type: "team" | "user" | "custom";
26
27
  server_only: boolean;
27
- customer_type: "user" | "team" | "custom";
28
28
  included_items: Record<string, {
29
29
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
30
30
  quantity?: number | undefined;
@@ -40,13 +40,12 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
40
40
  } | null | undefined;
41
41
  switch_options: {
42
42
  product: {
43
+ free_trial?: ______utils_dates0.DayInterval | undefined;
43
44
  client_metadata?: {} | null | undefined;
44
45
  client_read_only_metadata?: {} | null | undefined;
45
46
  server_metadata?: {} | null | undefined;
46
- free_trial?: ______utils_dates0.DayInterval | undefined;
47
47
  stackable: boolean;
48
48
  prices: Record<string, {
49
- interval?: ______utils_dates0.DayInterval | undefined;
50
49
  USD?: string | undefined;
51
50
  EUR?: string | undefined;
52
51
  GBP?: string | undefined;
@@ -54,11 +53,12 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
54
53
  INR?: string | undefined;
55
54
  AUD?: string | undefined;
56
55
  CAD?: string | undefined;
56
+ interval?: ______utils_dates0.DayInterval | undefined;
57
57
  free_trial?: ______utils_dates0.DayInterval | undefined;
58
58
  }>;
59
59
  display_name: string;
60
+ customer_type: "team" | "user" | "custom";
60
61
  server_only: boolean;
61
- customer_type: "user" | "team" | "custom";
62
62
  included_items: Record<string, {
63
63
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
64
64
  quantity?: number | undefined;
@@ -103,13 +103,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
103
103
  } | null | undefined;
104
104
  switch_options?: {
105
105
  product: {
106
+ free_trial?: ______utils_dates0.DayInterval | undefined;
106
107
  client_metadata?: {} | null | undefined;
107
108
  client_read_only_metadata?: {} | null | undefined;
108
109
  server_metadata?: {} | null | undefined;
109
- free_trial?: ______utils_dates0.DayInterval | undefined;
110
110
  stackable: boolean;
111
111
  prices: Record<string, {
112
- interval?: ______utils_dates0.DayInterval | undefined;
113
112
  USD?: string | undefined;
114
113
  EUR?: string | undefined;
115
114
  GBP?: string | undefined;
@@ -117,11 +116,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
117
116
  INR?: string | undefined;
118
117
  AUD?: string | undefined;
119
118
  CAD?: string | undefined;
119
+ interval?: ______utils_dates0.DayInterval | undefined;
120
120
  free_trial?: ______utils_dates0.DayInterval | undefined;
121
121
  }>;
122
122
  display_name: string;
123
+ customer_type: "team" | "user" | "custom";
123
124
  server_only: boolean;
124
- customer_type: "user" | "team" | "custom";
125
125
  included_items: Record<string, {
126
126
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
127
127
  quantity?: number | undefined;
@@ -131,13 +131,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
131
131
  product_id: string;
132
132
  }[] | undefined;
133
133
  product: {
134
+ free_trial?: ______utils_dates0.DayInterval | undefined;
134
135
  client_metadata?: {} | null | undefined;
135
136
  client_read_only_metadata?: {} | null | undefined;
136
137
  server_metadata?: {} | null | undefined;
137
- free_trial?: ______utils_dates0.DayInterval | undefined;
138
138
  stackable: boolean;
139
139
  prices: Record<string, {
140
- interval?: ______utils_dates0.DayInterval | undefined;
141
140
  USD?: string | undefined;
142
141
  EUR?: string | undefined;
143
142
  GBP?: string | undefined;
@@ -145,11 +144,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
145
144
  INR?: string | undefined;
146
145
  AUD?: string | undefined;
147
146
  CAD?: string | undefined;
147
+ interval?: ______utils_dates0.DayInterval | undefined;
148
148
  free_trial?: ______utils_dates0.DayInterval | undefined;
149
149
  }>;
150
150
  display_name: string;
151
+ customer_type: "team" | "user" | "custom";
151
152
  server_only: boolean;
152
- customer_type: "user" | "team" | "custom";
153
153
  included_items: Record<string, {
154
154
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
155
155
  quantity?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;;;iBAc1B,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"}
@@ -82,9 +82,9 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
82
82
  type: "user";
83
83
  description: string;
84
84
  id: string;
85
+ user_id: string;
85
86
  created_at_millis: number;
86
87
  expires_at_millis: number | undefined;
87
- user_id: string;
88
88
  manually_revoked_at_millis: number | undefined;
89
89
  is_public: boolean;
90
90
  } & {
@@ -180,9 +180,9 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
180
180
  type: "team";
181
181
  description: string;
182
182
  id: string;
183
+ team_id: string;
183
184
  created_at_millis: number;
184
185
  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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
55
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
228
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
308
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
458
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
583
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
691
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "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: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
816
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
817
817
  selected_email_theme_id: string | null;
818
818
  selected_payments_country: "US" | "OTHER";
819
819
  } | null | undefined;
@@ -21,13 +21,11 @@ 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
24
  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;
25
+ client_metadata: {} | null;
26
+ client_read_only_metadata: {} | null;
27
+ server_metadata: {} | null;
28
+ id: string;
31
29
  selected_team_id: string | null;
32
30
  is_anonymous: boolean;
33
31
  is_restricted: boolean;
@@ -35,18 +33,20 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
35
33
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
36
34
  } | null;
37
35
  requires_totp_mfa: boolean;
38
- client_metadata: {} | null;
39
- client_read_only_metadata: {} | null;
40
- server_metadata: {} | null;
36
+ primary_email: string | null;
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;
47
48
  id: string;
48
49
  created_at_millis: number;
49
- display_name: string;
50
50
  profile_image_url: string | null;
51
51
  } | null;
52
52
  has_password: boolean;
@@ -144,13 +144,11 @@ 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
147
  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;
148
+ client_metadata: {} | null;
149
+ client_read_only_metadata: {} | null;
150
+ server_metadata: {} | null;
151
+ id: string;
154
152
  selected_team_id: string | null;
155
153
  is_anonymous: boolean;
156
154
  is_restricted: boolean;
@@ -158,18 +156,20 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
158
156
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
159
157
  } | null;
160
158
  requires_totp_mfa: boolean;
161
- client_metadata: {} | null;
162
- client_read_only_metadata: {} | null;
163
- server_metadata: {} | null;
159
+ primary_email: string | null;
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;
170
171
  id: string;
171
172
  created_at_millis: number;
172
- display_name: string;
173
173
  profile_image_url: string | null;
174
174
  } | null;
175
175
  has_password: boolean;
@@ -5,8 +5,8 @@ import * as ______utils_dates0 from "../../utils/dates";
5
5
  //#region src/interface/crud/transactions.d.ts
6
6
  declare const transactionEntrySchema: yup$1.MixedSchema<{
7
7
  type: "money_transfer";
8
+ customer_type: "team" | "user" | "custom";
8
9
  customer_id: string;
9
- customer_type: "user" | "team" | "custom";
10
10
  charged_amount: {
11
11
  USD?: string | undefined;
12
12
  EUR?: string | undefined;
@@ -24,9 +24,9 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
24
24
  } | {
25
25
  type: "item_quantity_change";
26
26
  quantity: number;
27
+ customer_type: "team" | "user" | "custom";
27
28
  item_id: string;
28
29
  customer_id: string;
29
- customer_type: "user" | "team" | "custom";
30
30
  adjusted_transaction_id: string | null;
31
31
  adjusted_entry_index: number | null;
32
32
  } | {
@@ -34,13 +34,12 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
34
34
  subscription_id?: string | undefined;
35
35
  type: "product_grant";
36
36
  product: {
37
+ free_trial?: ______utils_dates0.DayInterval | undefined;
37
38
  client_metadata?: {} | null | undefined;
38
39
  client_read_only_metadata?: {} | null | undefined;
39
40
  server_metadata?: {} | null | undefined;
40
- free_trial?: ______utils_dates0.DayInterval | undefined;
41
41
  stackable: boolean;
42
42
  prices: Record<string, {
43
- interval?: ______utils_dates0.DayInterval | undefined;
44
43
  USD?: string | undefined;
45
44
  EUR?: string | undefined;
46
45
  GBP?: string | undefined;
@@ -48,11 +47,12 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
48
47
  INR?: string | undefined;
49
48
  AUD?: string | undefined;
50
49
  CAD?: string | undefined;
50
+ interval?: ______utils_dates0.DayInterval | undefined;
51
51
  free_trial?: ______utils_dates0.DayInterval | undefined;
52
52
  }>;
53
53
  display_name: string;
54
+ customer_type: "team" | "user" | "custom";
54
55
  server_only: boolean;
55
- customer_type: "user" | "team" | "custom";
56
56
  included_items: Record<string, {
57
57
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
58
58
  quantity?: number | undefined;
@@ -60,9 +60,9 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
60
60
  }>;
61
61
  };
62
62
  quantity: number;
63
+ customer_type: "team" | "user" | "custom";
63
64
  customer_id: string;
64
65
  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
+ customer_type: "team" | "user" | "custom";
92
93
  customer_id: string;
93
- customer_type: "user" | "team" | "custom";
94
94
  charged_amount: {
95
95
  USD?: string | undefined;
96
96
  EUR?: string | undefined;
@@ -108,9 +108,9 @@ declare const transactionSchema: yup$1.ObjectSchema<{
108
108
  } | {
109
109
  type: "item_quantity_change";
110
110
  quantity: number;
111
+ customer_type: "team" | "user" | "custom";
111
112
  item_id: string;
112
113
  customer_id: string;
113
- customer_type: "user" | "team" | "custom";
114
114
  adjusted_transaction_id: string | null;
115
115
  adjusted_entry_index: number | null;
116
116
  } | {
@@ -118,13 +118,12 @@ declare const transactionSchema: yup$1.ObjectSchema<{
118
118
  subscription_id?: string | undefined;
119
119
  type: "product_grant";
120
120
  product: {
121
+ free_trial?: ______utils_dates0.DayInterval | undefined;
121
122
  client_metadata?: {} | null | undefined;
122
123
  client_read_only_metadata?: {} | null | undefined;
123
124
  server_metadata?: {} | null | undefined;
124
- free_trial?: ______utils_dates0.DayInterval | undefined;
125
125
  stackable: boolean;
126
126
  prices: Record<string, {
127
- interval?: ______utils_dates0.DayInterval | undefined;
128
127
  USD?: string | undefined;
129
128
  EUR?: string | undefined;
130
129
  GBP?: string | undefined;
@@ -132,11 +131,12 @@ declare const transactionSchema: yup$1.ObjectSchema<{
132
131
  INR?: string | undefined;
133
132
  AUD?: string | undefined;
134
133
  CAD?: string | undefined;
134
+ interval?: ______utils_dates0.DayInterval | undefined;
135
135
  free_trial?: ______utils_dates0.DayInterval | undefined;
136
136
  }>;
137
137
  display_name: string;
138
+ customer_type: "team" | "user" | "custom";
138
139
  server_only: boolean;
139
- customer_type: "user" | "team" | "custom";
140
140
  included_items: Record<string, {
141
141
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
142
142
  quantity?: number | undefined;
@@ -144,9 +144,9 @@ declare const transactionSchema: yup$1.ObjectSchema<{
144
144
  }>;
145
145
  };
146
146
  quantity: number;
147
+ customer_type: "team" | "user" | "custom";
147
148
  customer_id: string;
148
149
  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;
84
85
  id: string;
85
86
  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
- password: string | null | undefined;
167
- country_code: string | null | undefined;
168
166
  display_name: string | null | undefined;
169
- primary_email: string | null | undefined;
170
- profile_image_url: string | null | undefined;
171
- is_anonymous: boolean | undefined;
172
167
  client_metadata: {} | null | undefined;
173
168
  client_read_only_metadata: {} | null | undefined;
174
169
  server_metadata: {} | null | undefined;
170
+ is_anonymous: boolean | undefined;
171
+ primary_email: string | null | 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;
@@ -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;
237
238
  id: string;
238
239
  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
- password: string | null | undefined;
373
- country_code: string | null | undefined;
374
372
  display_name: string | null | undefined;
375
- primary_email: string | null | undefined;
376
- profile_image_url: string | null | undefined;
377
- is_anonymous: boolean | undefined;
378
373
  client_metadata: {} | null | undefined;
379
374
  client_read_only_metadata: {} | null | undefined;
380
375
  server_metadata: {} | null | undefined;
376
+ is_anonymous: boolean | undefined;
377
+ primary_email: string | null | 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;
@@ -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;
471
472
  id: string;
472
473
  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;
562
563
  id: string;
563
564
  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;
@@ -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
33
  display_name: string;
34
- kind: "current" | "metered" | "capability";
35
34
  item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
35
+ kind: "current" | "metered" | "capability";
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;
@@ -98,7 +98,7 @@ declare const KnownErrors: {
98
98
  };
99
99
  AccessTypeWithoutProjectId: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
100
100
  constructorArgs: [statusCode: number, humanReadableMessage: string, details?: Json | undefined];
101
- } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"ACCESS_TYPE_WITHOUT_PROJECT_ID">, [accessType: "server" | "admin" | "client"]> & {
101
+ } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"ACCESS_TYPE_WITHOUT_PROJECT_ID">, [accessType: "client" | "server" | "admin"]> & {
102
102
  errorCode: "ACCESS_TYPE_WITHOUT_PROJECT_ID";
103
103
  };
104
104
  AccessTypeRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
@@ -111,7 +111,7 @@ declare const KnownErrors: {
111
111
  };
112
112
  InsufficientAccessType: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
113
113
  constructorArgs: [statusCode: number, humanReadableMessage: string, details?: Json | undefined];
114
- } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"INSUFFICIENT_ACCESS_TYPE">, [actualAccessType: "server" | "admin" | "client", allowedAccessTypes: ("server" | "admin" | "client")[]]> & {
114
+ } & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"INSUFFICIENT_ACCESS_TYPE">, [actualAccessType: "client" | "server" | "admin", allowedAccessTypes: ("client" | "server" | "admin")[]]> & {
115
115
  errorCode: "INSUFFICIENT_ACCESS_TYPE";
116
116
  };
117
117
  InvalidPublishableClientKey: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
@@ -369,7 +369,7 @@ declare const KnownErrors: {
369
369
  PermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"PERMISSION_NOT_FOUND">, [permissionId: string]> & {
370
370
  errorCode: "PERMISSION_NOT_FOUND";
371
371
  };
372
- PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "project" | "team", actualScope: "project" | "team" | null]> & {
372
+ PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "team" | "project", actualScope: "team" | "project" | null]> & {
373
373
  errorCode: "WRONG_PERMISSION_SCOPE";
374
374
  };
375
375
  ContainedPermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"CONTAINED_PERMISSION_NOT_FOUND">, [permissionId: string]> & {
@@ -512,16 +512,16 @@ declare const KnownErrors: {
512
512
  ItemNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_NOT_FOUND">, [itemId: string]> & {
513
513
  errorCode: "ITEM_NOT_FOUND";
514
514
  };
515
- ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
515
+ ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
516
516
  errorCode: "ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH";
517
517
  };
518
518
  CustomerDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"CUSTOMER_DOES_NOT_EXIST">, [customerId: string]> & {
519
519
  errorCode: "CUSTOMER_DOES_NOT_EXIST";
520
520
  };
521
- ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "item_exists" | "server_only" | null]> & {
521
+ ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "server_only" | "item_exists" | null]> & {
522
522
  errorCode: "PRODUCT_DOES_NOT_EXIST";
523
523
  };
524
- ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
524
+ ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
525
525
  errorCode: "PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH";
526
526
  };
527
527
  ProductAlreadyGranted: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_ALREADY_GRANTED">, [productId: string, customerId: string]> & {
@@ -548,7 +548,7 @@ declare const KnownErrors: {
548
548
  StripeAccountInfoNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"STRIPE_ACCOUNT_INFO_NOT_FOUND">, []> & {
549
549
  errorCode: "STRIPE_ACCOUNT_INFO_NOT_FOUND";
550
550
  };
551
- DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "user" | "team", customerId: string]> & {
551
+ DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "team" | "user", customerId: string]> & {
552
552
  errorCode: "DEFAULT_PAYMENT_METHOD_REQUIRED";
553
553
  };
554
554
  NewPurchasesBlocked: KnownErrorConstructor<KnownError & KnownErrorBrand<"NEW_PURCHASES_BLOCKED">, []> & {