@hexclave/shared 1.0.15 → 1.0.16
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.
- package/dist/config/schema.d.ts +55 -55
- package/dist/esm/config/schema.d.ts +55 -55
- package/dist/esm/interface/admin-metrics.d.ts +22 -22
- package/dist/esm/interface/conversations.d.ts +10 -10
- package/dist/esm/interface/crud/current-user.d.ts +14 -14
- package/dist/esm/interface/crud/email-outbox.d.ts +160 -160
- package/dist/esm/interface/crud/products.d.ts +13 -13
- package/dist/esm/interface/crud/products.d.ts.map +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/esm/interface/crud/projects.d.ts +36 -36
- package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/esm/interface/crud/transactions.d.ts +13 -13
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +14 -14
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +5 -5
- package/dist/esm/schema-fields.d.ts +5 -5
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/interface/admin-metrics.d.ts +22 -22
- package/dist/interface/conversations.d.ts +10 -10
- package/dist/interface/crud/current-user.d.ts +14 -14
- package/dist/interface/crud/email-outbox.d.ts +160 -160
- package/dist/interface/crud/products.d.ts +13 -13
- package/dist/interface/crud/products.d.ts.map +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/interface/crud/projects.d.ts +36 -36
- package/dist/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/interface/crud/transactions.d.ts +13 -13
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +14 -14
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/known-errors.d.ts +5 -5
- package/dist/schema-fields.d.ts +5 -5
- package/dist/sessions.d.ts +7 -7
- package/package.json +1 -1
|
@@ -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: "
|
|
101
|
+
} & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"ACCESS_TYPE_WITHOUT_PROJECT_ID">, [accessType: "server" | "admin" | "client"]> & {
|
|
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: "
|
|
114
|
+
} & KnownErrorBrand<"INVALID_PROJECT_AUTHENTICATION"> & KnownErrorBrand<"INSUFFICIENT_ACCESS_TYPE">, [actualAccessType: "server" | "admin" | "client", allowedAccessTypes: ("server" | "admin" | "client")[]]> & {
|
|
115
115
|
errorCode: "INSUFFICIENT_ACCESS_TYPE";
|
|
116
116
|
};
|
|
117
117
|
InvalidPublishableClientKey: KnownErrorConstructor<KnownError & KnownErrorBrand<"PROJECT_AUTHENTICATION_ERROR"> & {
|
|
@@ -512,7 +512,7 @@ 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: "
|
|
515
|
+
ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
|
|
516
516
|
errorCode: "ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH";
|
|
517
517
|
};
|
|
518
518
|
CustomerDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"CUSTOMER_DOES_NOT_EXIST">, [customerId: string]> & {
|
|
@@ -521,7 +521,7 @@ declare const KnownErrors: {
|
|
|
521
521
|
ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "item_exists" | "server_only" | 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: "
|
|
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"]> & {
|
|
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: "
|
|
551
|
+
DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "user" | "team", customerId: string]> & {
|
|
552
552
|
errorCode: "DEFAULT_PAYMENT_METHOD_REQUIRED";
|
|
553
553
|
};
|
|
554
554
|
NewPurchasesBlocked: KnownErrorConstructor<KnownError & KnownErrorBrand<"NEW_PURCHASES_BLOCKED">, []> & {
|
|
@@ -113,7 +113,7 @@ declare const moneyAmountSchema: (currency: Currency) => yup$1.StringSchema<stri
|
|
|
113
113
|
*/
|
|
114
114
|
declare const strictEmailSchema: (message: string | undefined) => yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
115
115
|
declare const emailSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
116
|
-
declare const clientOrHigherAuthTypeSchema: yup$1.StringSchema<"
|
|
116
|
+
declare const clientOrHigherAuthTypeSchema: yup$1.StringSchema<"server" | "admin" | "client", yup$1.AnyObject, undefined, "">;
|
|
117
117
|
declare const serverOrHigherAuthTypeSchema: yup$1.StringSchema<"server" | "admin", yup$1.AnyObject, undefined, "">;
|
|
118
118
|
declare const adminAuthTypeSchema: yup$1.StringSchema<"admin", yup$1.AnyObject, undefined, "">;
|
|
119
119
|
declare const projectIdSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
@@ -172,7 +172,7 @@ declare const customDashboardsSchema: yup$1.MixedSchema<Record<string, {
|
|
|
172
172
|
displayName: string;
|
|
173
173
|
tsxSource: string;
|
|
174
174
|
}>, yup$1.AnyObject, undefined, "">;
|
|
175
|
-
declare const customerTypeSchema: yup$1.StringSchema<"
|
|
175
|
+
declare const customerTypeSchema: yup$1.StringSchema<"user" | "team" | "custom" | undefined, yup$1.AnyObject, undefined, "">;
|
|
176
176
|
/**
|
|
177
177
|
* Schema for a single product price. Each currency field (USD, EUR, etc.) is a decimal string
|
|
178
178
|
* like `"9.99"` or `"1000"` — never cent integers. See `MoneyAmount` for the exact format.
|
|
@@ -216,7 +216,7 @@ declare const productSchema: yup$1.ObjectSchema<{
|
|
|
216
216
|
displayName: string | undefined;
|
|
217
217
|
productLineId: string | undefined;
|
|
218
218
|
isAddOnTo: false | Record<string, true> | undefined;
|
|
219
|
-
customerType: "
|
|
219
|
+
customerType: "user" | "team" | "custom";
|
|
220
220
|
freeTrial: DayInterval | undefined;
|
|
221
221
|
serverOnly: boolean | undefined;
|
|
222
222
|
stackable: boolean | undefined;
|
|
@@ -255,7 +255,7 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
|
|
|
255
255
|
displayName: string | undefined;
|
|
256
256
|
productLineId: string | undefined;
|
|
257
257
|
isAddOnTo: false | Record<string, true> | undefined;
|
|
258
|
-
customerType: "
|
|
258
|
+
customerType: "user" | "team" | "custom";
|
|
259
259
|
freeTrial: DayInterval | undefined;
|
|
260
260
|
serverOnly: boolean | undefined;
|
|
261
261
|
stackable: boolean | undefined;
|
|
@@ -296,7 +296,7 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
|
|
|
296
296
|
}, "">;
|
|
297
297
|
declare const inlineProductSchema: yup$1.ObjectSchema<{
|
|
298
298
|
display_name: string;
|
|
299
|
-
customer_type: "
|
|
299
|
+
customer_type: "user" | "team" | "custom";
|
|
300
300
|
free_trial: DayInterval | undefined;
|
|
301
301
|
server_only: boolean;
|
|
302
302
|
stackable: boolean;
|
package/dist/esm/sessions.d.ts
CHANGED
|
@@ -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
12
|
email: string | null;
|
|
15
|
-
|
|
16
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
17
|
-
} | null;
|
|
18
|
-
branch_id: string;
|
|
13
|
+
name: string | null;
|
|
19
14
|
sub: string;
|
|
20
15
|
iat: number;
|
|
21
16
|
iss: string;
|
|
22
17
|
aud: string;
|
|
18
|
+
project_id: string;
|
|
19
|
+
branch_id: string;
|
|
20
|
+
refresh_token_id: string;
|
|
23
21
|
role: "authenticated";
|
|
24
|
-
name: 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,16 +150,16 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
|
|
|
150
150
|
activity: number;
|
|
151
151
|
}[];
|
|
152
152
|
daily_emails_by_status: {
|
|
153
|
+
ok: number;
|
|
153
154
|
error: number;
|
|
154
155
|
date: string;
|
|
155
|
-
ok: number;
|
|
156
156
|
in_progress: number;
|
|
157
157
|
}[];
|
|
158
158
|
emails_sent: number;
|
|
159
159
|
recent_emails: {
|
|
160
|
-
status: string;
|
|
161
160
|
id: string;
|
|
162
161
|
subject: string;
|
|
162
|
+
status: string;
|
|
163
163
|
created_at_millis: number;
|
|
164
164
|
}[];
|
|
165
165
|
deliverability_status: {
|
|
@@ -292,16 +292,16 @@ declare const MetricsAnalyticsOverviewSchema: yup.ObjectSchema<{
|
|
|
292
292
|
activity: number;
|
|
293
293
|
}[];
|
|
294
294
|
top_browsers: {
|
|
295
|
-
name: string;
|
|
296
295
|
visitors: number;
|
|
296
|
+
name: string;
|
|
297
297
|
}[];
|
|
298
298
|
top_operating_systems: {
|
|
299
|
-
name: string;
|
|
300
299
|
visitors: number;
|
|
300
|
+
name: string;
|
|
301
301
|
}[];
|
|
302
302
|
top_devices: {
|
|
303
|
-
name: string;
|
|
304
303
|
visitors: number;
|
|
304
|
+
name: string;
|
|
305
305
|
}[];
|
|
306
306
|
conversion_rate: number | undefined;
|
|
307
307
|
deltas: {} | undefined;
|
|
@@ -392,8 +392,8 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
|
|
|
392
392
|
kind: "team_user_hour_of_week" | "session_replay_clicks";
|
|
393
393
|
cells: {
|
|
394
394
|
value: number;
|
|
395
|
-
hour: number;
|
|
396
395
|
weekday: number;
|
|
396
|
+
hour: number;
|
|
397
397
|
}[];
|
|
398
398
|
sampling: number;
|
|
399
399
|
routes: {
|
|
@@ -403,19 +403,19 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
|
|
|
403
403
|
replays: number;
|
|
404
404
|
}[];
|
|
405
405
|
users: {
|
|
406
|
-
primary_email: string | null;
|
|
407
|
-
display_name: string | null;
|
|
408
406
|
id: string;
|
|
407
|
+
display_name: string | null;
|
|
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;
|
|
417
416
|
clicks: number;
|
|
418
417
|
last_event_at_millis: number;
|
|
418
|
+
user_id: string | null;
|
|
419
419
|
route_path: string | null;
|
|
420
420
|
viewport_width: number | null;
|
|
421
421
|
viewport_height: number | 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
|
-
display_name: string | null;
|
|
448
446
|
id: string;
|
|
447
|
+
display_name: string | null;
|
|
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
|
-
display_name: string | null;
|
|
476
474
|
id: string;
|
|
475
|
+
display_name: string | null;
|
|
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
|
-
display_name: string | null;
|
|
484
482
|
id: string;
|
|
483
|
+
display_name: string | null;
|
|
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
|
-
display_name: string | null;
|
|
492
490
|
id: string;
|
|
491
|
+
display_name: string | null;
|
|
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,16 +563,16 @@ 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
|
+
ok: number;
|
|
566
567
|
error: number;
|
|
567
568
|
date: string;
|
|
568
|
-
ok: number;
|
|
569
569
|
in_progress: number;
|
|
570
570
|
}[];
|
|
571
571
|
emails_sent: number;
|
|
572
572
|
recent_emails: {
|
|
573
|
-
status: string;
|
|
574
573
|
id: string;
|
|
575
574
|
subject: string;
|
|
575
|
+
status: string;
|
|
576
576
|
created_at_millis: number;
|
|
577
577
|
}[];
|
|
578
578
|
deliverability_status: {
|
|
@@ -652,16 +652,16 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
652
652
|
activity: number;
|
|
653
653
|
}[];
|
|
654
654
|
top_browsers: {
|
|
655
|
-
name: string;
|
|
656
655
|
visitors: number;
|
|
656
|
+
name: string;
|
|
657
657
|
}[];
|
|
658
658
|
top_operating_systems: {
|
|
659
|
-
name: string;
|
|
660
659
|
visitors: number;
|
|
660
|
+
name: string;
|
|
661
661
|
}[];
|
|
662
662
|
top_devices: {
|
|
663
|
-
name: string;
|
|
664
663
|
visitors: number;
|
|
664
|
+
name: string;
|
|
665
665
|
}[];
|
|
666
666
|
};
|
|
667
667
|
}, yup.AnyObject, {
|
|
@@ -51,7 +51,7 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
|
|
|
51
51
|
subject: string;
|
|
52
52
|
status: "open" | "pending" | "closed";
|
|
53
53
|
priority: "low" | "normal" | "high" | "urgent";
|
|
54
|
-
source: "
|
|
54
|
+
source: "manual" | "chat" | "email" | "api";
|
|
55
55
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
56
56
|
preview: string | null;
|
|
57
57
|
lastActivityAt: string;
|
|
@@ -131,7 +131,7 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
|
|
|
131
131
|
subject: string;
|
|
132
132
|
status: "open" | "pending" | "closed";
|
|
133
133
|
priority: "low" | "normal" | "high" | "urgent";
|
|
134
|
-
source: "
|
|
134
|
+
source: "manual" | "chat" | "email" | "api";
|
|
135
135
|
messageType: "message" | "internal-note" | "status-change";
|
|
136
136
|
body: string | null;
|
|
137
137
|
attachments: {}[];
|
|
@@ -139,8 +139,8 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
|
|
|
139
139
|
createdAt: string;
|
|
140
140
|
sender: {
|
|
141
141
|
type: "user" | "agent" | "system";
|
|
142
|
-
displayName: string | null;
|
|
143
142
|
id: string | null;
|
|
143
|
+
displayName: string | null;
|
|
144
144
|
primaryEmail: string | null;
|
|
145
145
|
};
|
|
146
146
|
}, yup$1.AnyObject, {
|
|
@@ -173,7 +173,6 @@ 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: "open" | "pending" | "closed";
|
|
177
176
|
conversationId: string;
|
|
178
177
|
userId: string | null;
|
|
179
178
|
teamId: string | null;
|
|
@@ -181,8 +180,9 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
181
180
|
userPrimaryEmail: string | null;
|
|
182
181
|
userProfileImageUrl: string | null;
|
|
183
182
|
subject: string;
|
|
183
|
+
status: "open" | "pending" | "closed";
|
|
184
184
|
priority: "low" | "normal" | "high" | "urgent";
|
|
185
|
-
source: "
|
|
185
|
+
source: "manual" | "chat" | "email" | "api";
|
|
186
186
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
187
187
|
preview: string | null;
|
|
188
188
|
lastActivityAt: string;
|
|
@@ -211,7 +211,6 @@ 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: "open" | "pending" | "closed";
|
|
215
214
|
conversationId: string;
|
|
216
215
|
userId: string | null;
|
|
217
216
|
teamId: string | null;
|
|
@@ -219,8 +218,9 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
219
218
|
userPrimaryEmail: string | null;
|
|
220
219
|
userProfileImageUrl: string | null;
|
|
221
220
|
subject: string;
|
|
221
|
+
status: "open" | "pending" | "closed";
|
|
222
222
|
priority: "low" | "normal" | "high" | "urgent";
|
|
223
|
-
source: "
|
|
223
|
+
source: "manual" | "chat" | "email" | "api";
|
|
224
224
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
225
225
|
preview: string | null;
|
|
226
226
|
lastActivityAt: string;
|
|
@@ -236,14 +236,14 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
238
|
messages: {
|
|
239
|
-
status: "open" | "pending" | "closed";
|
|
240
239
|
id: string;
|
|
241
240
|
conversationId: string;
|
|
242
241
|
userId: string | null;
|
|
243
242
|
teamId: string | null;
|
|
244
243
|
subject: string;
|
|
244
|
+
status: "open" | "pending" | "closed";
|
|
245
245
|
priority: "low" | "normal" | "high" | "urgent";
|
|
246
|
-
source: "
|
|
246
|
+
source: "manual" | "chat" | "email" | "api";
|
|
247
247
|
metadata: {} | null;
|
|
248
248
|
createdAt: string;
|
|
249
249
|
messageType: "message" | "internal-note" | "status-change";
|
|
@@ -251,8 +251,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
251
251
|
attachments: {}[];
|
|
252
252
|
sender: {
|
|
253
253
|
type: "user" | "agent" | "system";
|
|
254
|
-
displayName: string | null;
|
|
255
254
|
id: string | null;
|
|
255
|
+
displayName: string | null;
|
|
256
256
|
primaryEmail: string | null;
|
|
257
257
|
};
|
|
258
258
|
}[];
|
|
@@ -4,20 +4,20 @@ import * as yup$1 from "yup";
|
|
|
4
4
|
//#region src/interface/crud/current-user.d.ts
|
|
5
5
|
declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
6
6
|
clientReadSchema: yup$1.ObjectSchema<{
|
|
7
|
-
restricted_reason: {
|
|
8
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
9
|
-
} | null;
|
|
10
|
-
primary_email: string | null;
|
|
11
|
-
display_name: string | null;
|
|
12
|
-
client_metadata: {} | null;
|
|
13
|
-
client_read_only_metadata: {} | null;
|
|
14
7
|
id: string;
|
|
8
|
+
display_name: string | null;
|
|
9
|
+
primary_email: string | null;
|
|
10
|
+
profile_image_url: string | null;
|
|
11
|
+
signed_up_at_millis: number;
|
|
15
12
|
selected_team_id: string | null;
|
|
16
13
|
is_anonymous: boolean;
|
|
17
14
|
is_restricted: boolean;
|
|
15
|
+
restricted_reason: {
|
|
16
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
17
|
+
} | null;
|
|
18
18
|
requires_totp_mfa: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
client_metadata: {} | null;
|
|
20
|
+
client_read_only_metadata: {} | null;
|
|
21
21
|
primary_email_verified: boolean;
|
|
22
22
|
has_password: boolean;
|
|
23
23
|
otp_auth_enabled: boolean;
|
|
@@ -34,8 +34,8 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
34
34
|
selected_team: {
|
|
35
35
|
client_metadata?: {} | null | undefined;
|
|
36
36
|
client_read_only_metadata?: {} | null | undefined;
|
|
37
|
-
display_name: string;
|
|
38
37
|
id: string;
|
|
38
|
+
display_name: string;
|
|
39
39
|
profile_image_url: string | null;
|
|
40
40
|
} | null;
|
|
41
41
|
}, yup$1.AnyObject, {
|
|
@@ -90,9 +90,9 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
90
90
|
client_metadata?: {} | null | undefined;
|
|
91
91
|
client_read_only_metadata?: {} | null | undefined;
|
|
92
92
|
server_metadata?: {} | null | undefined;
|
|
93
|
-
display_name: string;
|
|
94
93
|
id: string;
|
|
95
94
|
created_at_millis: number;
|
|
95
|
+
display_name: string;
|
|
96
96
|
profile_image_url: string | null;
|
|
97
97
|
} | null;
|
|
98
98
|
selected_team_id: string | null;
|
|
@@ -172,11 +172,11 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
172
172
|
requires_totp_mfa: undefined;
|
|
173
173
|
}, "">;
|
|
174
174
|
clientUpdateSchema: yup$1.ObjectSchema<{
|
|
175
|
-
primary_email: string | null | undefined;
|
|
176
175
|
display_name: string | null | undefined;
|
|
177
|
-
|
|
178
|
-
selected_team_id: string | null | undefined;
|
|
176
|
+
primary_email: string | null | undefined;
|
|
179
177
|
profile_image_url: string | null | undefined;
|
|
178
|
+
selected_team_id: string | null | undefined;
|
|
179
|
+
client_metadata: {} | null | undefined;
|
|
180
180
|
otp_auth_enabled: boolean | undefined;
|
|
181
181
|
passkey_auth_enabled: boolean | undefined;
|
|
182
182
|
totp_secret_base64: string | null | undefined;
|