@hexclave/shared 1.0.35 → 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 (35) hide show
  1. package/dist/ai/unified-prompts/reminders.js +1 -1
  2. package/dist/config/schema.d.ts +8 -8
  3. package/dist/esm/ai/unified-prompts/reminders.js +1 -1
  4. package/dist/esm/config/schema.d.ts +8 -8
  5. package/dist/esm/interface/admin-metrics.d.ts +11 -11
  6. package/dist/esm/interface/conversations.d.ts +31 -31
  7. package/dist/esm/interface/crud/current-user.d.ts +5 -5
  8. package/dist/esm/interface/crud/email-outbox.d.ts +202 -202
  9. package/dist/esm/interface/crud/products.d.ts +15 -15
  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/team-member-profiles.d.ts +8 -8
  13. package/dist/esm/interface/crud/transactions.d.ts +20 -20
  14. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  15. package/dist/esm/interface/crud/users.d.ts +6 -6
  16. package/dist/esm/interface/plan-usage.d.ts +1 -1
  17. package/dist/esm/known-errors.d.ts +1 -1
  18. package/dist/esm/schema-fields.d.ts +1 -1
  19. package/dist/esm/sessions.d.ts +7 -7
  20. package/dist/interface/admin-metrics.d.ts +11 -11
  21. package/dist/interface/conversations.d.ts +31 -31
  22. package/dist/interface/crud/current-user.d.ts +5 -5
  23. package/dist/interface/crud/email-outbox.d.ts +202 -202
  24. package/dist/interface/crud/products.d.ts +15 -15
  25. package/dist/interface/crud/products.d.ts.map +1 -1
  26. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  27. package/dist/interface/crud/team-member-profiles.d.ts +8 -8
  28. package/dist/interface/crud/transactions.d.ts +20 -20
  29. package/dist/interface/crud/transactions.d.ts.map +1 -1
  30. package/dist/interface/crud/users.d.ts +6 -6
  31. package/dist/interface/plan-usage.d.ts +1 -1
  32. package/dist/known-errors.d.ts +1 -1
  33. package/dist/schema-fields.d.ts +1 -1
  34. package/dist/sessions.d.ts +7 -7
  35. package/package.json +1 -1
@@ -10,8 +10,6 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
10
10
  client_metadata?: {} | null | undefined;
11
11
  client_read_only_metadata?: {} | null | undefined;
12
12
  server_metadata?: {} | null | undefined;
13
- server_only: boolean;
14
- customer_type: "team" | "user" | "custom";
15
13
  stackable: boolean;
16
14
  prices: Record<string, {
17
15
  USD?: string | undefined;
@@ -25,9 +23,11 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
25
23
  free_trial?: ______utils_dates0.DayInterval | undefined;
26
24
  }>;
27
25
  display_name: string;
26
+ customer_type: "team" | "user" | "custom";
27
+ server_only: boolean;
28
28
  included_items: Record<string, {
29
- quantity?: number | undefined;
30
29
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
30
+ quantity?: number | undefined;
31
31
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
32
32
  }>;
33
33
  };
@@ -39,14 +39,11 @@ 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
43
  free_trial?: ______utils_dates0.DayInterval | undefined;
45
44
  client_metadata?: {} | null | undefined;
46
45
  client_read_only_metadata?: {} | null | undefined;
47
46
  server_metadata?: {} | null | undefined;
48
- server_only: boolean;
49
- customer_type: "team" | "user" | "custom";
50
47
  stackable: boolean;
51
48
  prices: Record<string, {
52
49
  USD?: string | undefined;
@@ -60,12 +57,15 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
60
57
  free_trial?: ______utils_dates0.DayInterval | undefined;
61
58
  }>;
62
59
  display_name: string;
60
+ customer_type: "team" | "user" | "custom";
61
+ server_only: boolean;
63
62
  included_items: Record<string, {
64
- quantity?: number | undefined;
65
63
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
64
+ quantity?: number | undefined;
66
65
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
67
66
  }>;
68
67
  };
68
+ product_id: string;
69
69
  }[] | undefined;
70
70
  }, yup$1.AnyObject, {
71
71
  id: undefined;
@@ -102,14 +102,11 @@ 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
106
  free_trial?: ______utils_dates0.DayInterval | undefined;
108
107
  client_metadata?: {} | null | undefined;
109
108
  client_read_only_metadata?: {} | null | undefined;
110
109
  server_metadata?: {} | null | undefined;
111
- server_only: boolean;
112
- customer_type: "team" | "user" | "custom";
113
110
  stackable: boolean;
114
111
  prices: Record<string, {
115
112
  USD?: string | undefined;
@@ -123,21 +120,21 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
123
120
  free_trial?: ______utils_dates0.DayInterval | undefined;
124
121
  }>;
125
122
  display_name: string;
123
+ customer_type: "team" | "user" | "custom";
124
+ server_only: boolean;
126
125
  included_items: Record<string, {
127
- quantity?: number | undefined;
128
126
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
127
+ quantity?: number | undefined;
129
128
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
130
129
  }>;
131
130
  };
131
+ product_id: string;
132
132
  }[] | undefined;
133
- quantity: number;
134
133
  product: {
135
134
  free_trial?: ______utils_dates0.DayInterval | undefined;
136
135
  client_metadata?: {} | null | undefined;
137
136
  client_read_only_metadata?: {} | null | undefined;
138
137
  server_metadata?: {} | null | undefined;
139
- server_only: boolean;
140
- customer_type: "team" | "user" | "custom";
141
138
  stackable: boolean;
142
139
  prices: Record<string, {
143
140
  USD?: string | undefined;
@@ -151,12 +148,15 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
151
148
  free_trial?: ______utils_dates0.DayInterval | undefined;
152
149
  }>;
153
150
  display_name: string;
151
+ customer_type: "team" | "user" | "custom";
152
+ server_only: boolean;
154
153
  included_items: Record<string, {
155
- quantity?: number | undefined;
156
154
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
155
+ quantity?: number | undefined;
157
156
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
158
157
  }>;
159
158
  };
159
+ quantity: number;
160
160
  id: string | null;
161
161
  }[];
162
162
  is_paginated: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
1
+ {"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -79,10 +79,10 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
79
79
  is_public: undefined;
80
80
  user_id: undefined;
81
81
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
82
- user_id: string;
83
82
  type: "user";
84
83
  description: string;
85
84
  id: string;
85
+ user_id: string;
86
86
  created_at_millis: number;
87
87
  expires_at_millis: number | undefined;
88
88
  manually_revoked_at_millis: number | undefined;
@@ -178,9 +178,9 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
178
178
  team_id: undefined;
179
179
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
180
180
  type: "team";
181
- team_id: string;
182
181
  description: string;
183
182
  id: string;
183
+ team_id: string;
184
184
  created_at_millis: number;
185
185
  expires_at_millis: number | undefined;
186
186
  manually_revoked_at_millis: number | undefined;
@@ -21,10 +21,6 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
21
21
  profile_image_url: string | null;
22
22
  } & {
23
23
  user: {
24
- restricted_reason: {
25
- type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
26
- } | null;
27
- primary_email: string | null;
28
24
  display_name: string | null;
29
25
  client_metadata: {} | null;
30
26
  client_read_only_metadata: {} | null;
@@ -33,7 +29,11 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
33
29
  selected_team_id: string | null;
34
30
  is_anonymous: boolean;
35
31
  is_restricted: boolean;
32
+ restricted_reason: {
33
+ type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
34
+ } | null;
36
35
  requires_totp_mfa: boolean;
36
+ primary_email: string | null;
37
37
  country_code: string | null;
38
38
  profile_image_url: string | null;
39
39
  signed_up_at_millis: number;
@@ -144,10 +144,6 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
144
144
  profile_image_url: string | null;
145
145
  } & {
146
146
  user: {
147
- restricted_reason: {
148
- type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
149
- } | null;
150
- primary_email: string | null;
151
147
  display_name: string | null;
152
148
  client_metadata: {} | null;
153
149
  client_read_only_metadata: {} | null;
@@ -156,7 +152,11 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
156
152
  selected_team_id: string | null;
157
153
  is_anonymous: boolean;
158
154
  is_restricted: boolean;
155
+ restricted_reason: {
156
+ type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
157
+ } | null;
159
158
  requires_totp_mfa: boolean;
159
+ primary_email: string | null;
160
160
  country_code: string | null;
161
161
  profile_image_url: string | null;
162
162
  signed_up_at_millis: number;
@@ -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_id: string;
9
8
  customer_type: "team" | "user" | "custom";
9
+ customer_id: string;
10
10
  charged_amount: {
11
11
  USD?: string | undefined;
12
12
  EUR?: string | undefined;
@@ -23,27 +23,21 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
23
23
  adjusted_entry_index: number | null;
24
24
  } | {
25
25
  type: "item_quantity_change";
26
- item_id: string;
27
- customer_id: string;
28
26
  quantity: number;
29
27
  customer_type: "team" | "user" | "custom";
28
+ item_id: string;
29
+ customer_id: string;
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
37
  free_trial?: ______utils_dates0.DayInterval | undefined;
42
38
  client_metadata?: {} | null | undefined;
43
39
  client_read_only_metadata?: {} | null | undefined;
44
40
  server_metadata?: {} | null | undefined;
45
- server_only: boolean;
46
- customer_type: "team" | "user" | "custom";
47
41
  stackable: boolean;
48
42
  prices: Record<string, {
49
43
  USD?: string | undefined;
@@ -57,12 +51,18 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
57
51
  free_trial?: ______utils_dates0.DayInterval | undefined;
58
52
  }>;
59
53
  display_name: string;
54
+ customer_type: "team" | "user" | "custom";
55
+ server_only: boolean;
60
56
  included_items: Record<string, {
61
- quantity?: number | undefined;
62
57
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
58
+ quantity?: number | undefined;
63
59
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
64
60
  }>;
65
61
  };
62
+ quantity: number;
63
+ customer_type: "team" | "user" | "custom";
64
+ customer_id: string;
65
+ product_id: string | null;
66
66
  adjusted_transaction_id: string | null;
67
67
  adjusted_entry_index: number | null;
68
68
  price_id: string | null;
@@ -89,8 +89,8 @@ declare const transactionSchema: yup$1.ObjectSchema<{
89
89
  customer_id: string;
90
90
  entries: ({
91
91
  type: "money_transfer";
92
- customer_id: string;
93
92
  customer_type: "team" | "user" | "custom";
93
+ customer_id: string;
94
94
  charged_amount: {
95
95
  USD?: string | undefined;
96
96
  EUR?: string | undefined;
@@ -107,27 +107,21 @@ declare const transactionSchema: yup$1.ObjectSchema<{
107
107
  adjusted_entry_index: number | null;
108
108
  } | {
109
109
  type: "item_quantity_change";
110
- item_id: string;
111
- customer_id: string;
112
110
  quantity: number;
113
111
  customer_type: "team" | "user" | "custom";
112
+ item_id: string;
113
+ customer_id: string;
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
121
  free_trial?: ______utils_dates0.DayInterval | undefined;
126
122
  client_metadata?: {} | null | undefined;
127
123
  client_read_only_metadata?: {} | null | undefined;
128
124
  server_metadata?: {} | null | undefined;
129
- server_only: boolean;
130
- customer_type: "team" | "user" | "custom";
131
125
  stackable: boolean;
132
126
  prices: Record<string, {
133
127
  USD?: string | undefined;
@@ -141,12 +135,18 @@ declare const transactionSchema: yup$1.ObjectSchema<{
141
135
  free_trial?: ______utils_dates0.DayInterval | undefined;
142
136
  }>;
143
137
  display_name: string;
138
+ customer_type: "team" | "user" | "custom";
139
+ server_only: boolean;
144
140
  included_items: Record<string, {
145
- quantity?: number | undefined;
146
141
  repeat?: "never" | ______utils_dates0.DayInterval | undefined;
142
+ quantity?: number | undefined;
147
143
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
148
144
  }>;
149
145
  };
146
+ quantity: number;
147
+ customer_type: "team" | "user" | "custom";
148
+ customer_id: string;
149
+ product_id: string | null;
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"}
@@ -163,15 +163,15 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
163
163
  requires_totp_mfa: undefined;
164
164
  }, "">;
165
165
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
166
- primary_email: string | null | undefined;
167
166
  display_name: string | null | undefined;
168
167
  client_metadata: {} | null | undefined;
169
168
  client_read_only_metadata: {} | null | undefined;
170
169
  server_metadata: {} | null | undefined;
171
170
  is_anonymous: boolean | undefined;
171
+ primary_email: string | null | undefined;
172
+ password: string | null | undefined;
172
173
  country_code: string | null | undefined;
173
174
  profile_image_url: string | null | undefined;
174
- password: string | null | undefined;
175
175
  primary_email_verified: boolean | undefined;
176
176
  primary_email_auth_enabled: boolean | undefined;
177
177
  otp_auth_enabled: boolean | undefined;
@@ -189,8 +189,8 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
189
189
  totp_secret_base64: string | null | undefined;
190
190
  } & {
191
191
  oauth_providers: {
192
- email: string | null;
193
192
  id: string;
193
+ email: string | null;
194
194
  account_id: string;
195
195
  }[] | undefined;
196
196
  is_anonymous: boolean | undefined;
@@ -369,15 +369,15 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
369
369
  };
370
370
  }, "">;
371
371
  serverCreateSchema: yup$1.ObjectSchema<{
372
- primary_email: string | null | undefined;
373
372
  display_name: string | null | undefined;
374
373
  client_metadata: {} | null | undefined;
375
374
  client_read_only_metadata: {} | null | undefined;
376
375
  server_metadata: {} | null | undefined;
377
376
  is_anonymous: boolean | undefined;
377
+ primary_email: string | null | undefined;
378
+ password: string | null | undefined;
378
379
  country_code: string | null | undefined;
379
380
  profile_image_url: string | null | undefined;
380
- password: string | null | undefined;
381
381
  primary_email_verified: boolean | undefined;
382
382
  primary_email_auth_enabled: boolean | undefined;
383
383
  otp_auth_enabled: boolean | undefined;
@@ -395,8 +395,8 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
395
395
  totp_secret_base64: string | null | undefined;
396
396
  } & {
397
397
  oauth_providers: {
398
- email: string | null;
399
398
  id: string;
399
+ email: string | null;
400
400
  account_id: string;
401
401
  }[] | undefined;
402
402
  is_anonymous: boolean | undefined;
@@ -30,8 +30,8 @@ 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;
34
+ item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
35
35
  kind: "current" | "metered" | "capability";
36
36
  used: number | null;
37
37
  limit: number | null;
@@ -518,7 +518,7 @@ declare const KnownErrors: {
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
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"]> & {
@@ -314,8 +314,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
314
314
  free_trial?: DayInterval | undefined;
315
315
  }>;
316
316
  included_items: Record<string, {
317
- quantity?: number | undefined;
318
317
  repeat?: "never" | DayInterval | undefined;
318
+ quantity?: number | undefined;
319
319
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
320
320
  }>;
321
321
  client_metadata: {} | null | undefined;
@@ -9,24 +9,24 @@ declare class AccessToken {
9
9
  private constructor();
10
10
  get payload(): {
11
11
  exp?: number | undefined;
12
- project_id: string;
13
- refresh_token_id: string;
14
- email: string | null;
15
- restricted_reason: {
16
- type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
17
- } | null;
18
- branch_id: string;
19
12
  sub: string;
20
13
  iat: number;
21
14
  iss: string;
22
15
  aud: string;
16
+ project_id: string;
17
+ branch_id: string;
18
+ refresh_token_id: string;
23
19
  role: "authenticated";
24
20
  name: string | null;
21
+ email: string | null;
25
22
  email_verified: boolean;
26
23
  selected_team_id: string | null;
27
24
  signed_up_at: number;
28
25
  is_anonymous: boolean;
29
26
  is_restricted: boolean;
27
+ restricted_reason: {
28
+ type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
29
+ } | null;
30
30
  requires_totp_mfa: boolean;
31
31
  };
32
32
  get expiresAt(): Date;
@@ -150,15 +150,15 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
150
150
  activity: number;
151
151
  }[];
152
152
  daily_emails_by_status: {
153
- error: number;
154
153
  date: string;
155
154
  ok: number;
155
+ error: number;
156
156
  in_progress: number;
157
157
  }[];
158
158
  emails_sent: number;
159
159
  recent_emails: {
160
- status: string;
161
160
  id: string;
161
+ status: string;
162
162
  subject: string;
163
163
  created_at_millis: number;
164
164
  }[];
@@ -398,22 +398,22 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
398
398
  sampling: number;
399
399
  routes: {
400
400
  path: string;
401
- clicks: number;
402
401
  users: number;
402
+ clicks: number;
403
403
  replays: number;
404
404
  }[];
405
405
  users: {
406
- primary_email: string | null;
407
406
  display_name: string | null;
408
407
  id: string;
408
+ primary_email: string | null;
409
409
  profile_image_url: string | null;
410
410
  clicks: number;
411
411
  replays: number;
412
412
  last_event_at_millis: number;
413
413
  }[];
414
414
  replays: {
415
- user_id: string | null;
416
415
  id: string;
416
+ user_id: string | null;
417
417
  clicks: number;
418
418
  last_event_at_millis: number;
419
419
  route_path: string | null;
@@ -443,9 +443,9 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
443
443
  elements: never[];
444
444
  }, "">;
445
445
  declare const MetricsActiveUsersByCountrySchema: yup.MixedSchema<Record<string, {
446
- primary_email: string | null;
447
446
  display_name: string | null;
448
447
  id: string;
448
+ primary_email: string | null;
449
449
  profile_image_url: string | null;
450
450
  signed_up_at_millis: number;
451
451
  last_active_at_millis: number | null;
@@ -471,25 +471,25 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
471
471
  }[];
472
472
  users_by_country: Record<string, number>;
473
473
  active_users_by_country: Record<string, {
474
- primary_email: string | null;
475
474
  display_name: string | null;
476
475
  id: string;
476
+ primary_email: string | null;
477
477
  profile_image_url: string | null;
478
478
  signed_up_at_millis: number;
479
479
  last_active_at_millis: number | null;
480
480
  }[]>;
481
481
  recently_registered: {
482
- primary_email: string | null;
483
482
  display_name: string | null;
484
483
  id: string;
484
+ primary_email: string | null;
485
485
  profile_image_url: string | null;
486
486
  signed_up_at_millis: number;
487
487
  last_active_at_millis: number | null;
488
488
  }[];
489
489
  recently_active: {
490
- primary_email: string | null;
491
490
  display_name: string | null;
492
491
  id: string;
492
+ primary_email: string | null;
493
493
  profile_image_url: string | null;
494
494
  signed_up_at_millis: number;
495
495
  last_active_at_millis: number | null;
@@ -563,15 +563,15 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
563
563
  emails_by_status: Record<string, number>;
564
564
  total_emails: number;
565
565
  daily_emails_by_status: {
566
- error: number;
567
566
  date: string;
568
567
  ok: number;
568
+ error: number;
569
569
  in_progress: number;
570
570
  }[];
571
571
  emails_sent: number;
572
572
  recent_emails: {
573
- status: string;
574
573
  id: string;
574
+ status: string;
575
575
  subject: string;
576
576
  created_at_millis: number;
577
577
  }[];
@@ -49,7 +49,7 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
49
49
  userPrimaryEmail: string | null;
50
50
  userProfileImageUrl: string | null;
51
51
  subject: string;
52
- status: "pending" | "open" | "closed";
52
+ status: "open" | "pending" | "closed";
53
53
  priority: "low" | "normal" | "high" | "urgent";
54
54
  source: "email" | "manual" | "chat" | "api";
55
55
  lastMessageType: "message" | "internal-note" | "status-change";
@@ -129,7 +129,7 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
129
129
  userId: string | null;
130
130
  teamId: string | null;
131
131
  subject: string;
132
- status: "pending" | "open" | "closed";
132
+ status: "open" | "pending" | "closed";
133
133
  priority: "low" | "normal" | "high" | "urgent";
134
134
  source: "email" | "manual" | "chat" | "api";
135
135
  messageType: "message" | "internal-note" | "status-change";
@@ -173,8 +173,19 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
173
173
  lastOutboundAt?: string | null | undefined;
174
174
  closedAt?: string | null | undefined;
175
175
  recordMetadata?: {} | null | undefined;
176
- status: "pending" | "open" | "closed";
176
+ status: "open" | "pending" | "closed";
177
+ priority: "low" | "normal" | "high" | "urgent";
178
+ subject: string;
179
+ conversationId: string;
180
+ userId: string | null;
181
+ teamId: string | null;
182
+ userDisplayName: string | null;
183
+ userPrimaryEmail: string | null;
184
+ userProfileImageUrl: string | null;
177
185
  source: "email" | "manual" | "chat" | "api";
186
+ lastMessageType: "message" | "internal-note" | "status-change";
187
+ preview: string | null;
188
+ lastActivityAt: string;
178
189
  metadata: {
179
190
  assignedToUserId: string | null;
180
191
  assignedToDisplayName: string | null;
@@ -185,17 +196,6 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
185
196
  lastCustomerReplyAt: string | null;
186
197
  lastAgentReplyAt: string | null;
187
198
  };
188
- subject: string;
189
- conversationId: string;
190
- userId: string | null;
191
- teamId: string | null;
192
- userDisplayName: string | null;
193
- userPrimaryEmail: string | null;
194
- userProfileImageUrl: string | null;
195
- priority: "low" | "normal" | "high" | "urgent";
196
- lastMessageType: "message" | "internal-note" | "status-change";
197
- preview: string | null;
198
- lastActivityAt: string;
199
199
  }[];
200
200
  hasMore: boolean;
201
201
  }, yup$1.AnyObject, {
@@ -211,8 +211,19 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
211
211
  lastOutboundAt?: string | null | undefined;
212
212
  closedAt?: string | null | undefined;
213
213
  recordMetadata?: {} | null | undefined;
214
- status: "pending" | "open" | "closed";
214
+ status: "open" | "pending" | "closed";
215
+ priority: "low" | "normal" | "high" | "urgent";
216
+ subject: string;
217
+ conversationId: string;
218
+ userId: string | null;
219
+ teamId: string | null;
220
+ userDisplayName: string | null;
221
+ userPrimaryEmail: string | null;
222
+ userProfileImageUrl: string | null;
215
223
  source: "email" | "manual" | "chat" | "api";
224
+ lastMessageType: "message" | "internal-note" | "status-change";
225
+ preview: string | null;
226
+ lastActivityAt: string;
216
227
  metadata: {
217
228
  assignedToUserId: string | null;
218
229
  assignedToDisplayName: string | null;
@@ -223,31 +234,20 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
223
234
  lastCustomerReplyAt: string | null;
224
235
  lastAgentReplyAt: string | null;
225
236
  };
226
- subject: string;
227
- conversationId: string;
228
- userId: string | null;
229
- teamId: string | null;
230
- userDisplayName: string | null;
231
- userPrimaryEmail: string | null;
232
- userProfileImageUrl: string | null;
233
- priority: "low" | "normal" | "high" | "urgent";
234
- lastMessageType: "message" | "internal-note" | "status-change";
235
- preview: string | null;
236
- lastActivityAt: string;
237
237
  };
238
238
  messages: {
239
- status: "pending" | "open" | "closed";
240
239
  id: string;
241
- body: string | null;
242
- source: "email" | "manual" | "chat" | "api";
243
- metadata: {} | null;
240
+ status: "open" | "pending" | "closed";
241
+ priority: "low" | "normal" | "high" | "urgent";
244
242
  subject: string;
245
243
  conversationId: string;
246
244
  userId: string | null;
247
245
  teamId: string | null;
248
- priority: "low" | "normal" | "high" | "urgent";
246
+ source: "email" | "manual" | "chat" | "api";
247
+ metadata: {} | null;
249
248
  createdAt: string;
250
249
  messageType: "message" | "internal-note" | "status-change";
250
+ body: string | null;
251
251
  attachments: {}[];
252
252
  sender: {
253
253
  type: "user" | "agent" | "system";