@hexclave/shared 1.0.37 → 1.0.38
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/ai/unified-prompts/reminders.js +2 -1
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/config/schema.d.ts +150 -150
- package/dist/esm/ai/unified-prompts/reminders.js +2 -1
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/config/schema.d.ts +150 -150
- package/dist/esm/hooks/use-async-callback.js +1 -1
- package/dist/esm/hooks/use-async-external-store.js +1 -1
- package/dist/esm/hooks/use-strict-memo.js +1 -1
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +28 -28
- package/dist/esm/interface/crud/current-user.d.ts +5 -5
- package/dist/esm/interface/crud/email-outbox.d.ts +64 -64
- package/dist/esm/interface/crud/invoices.d.ts +2 -2
- package/dist/esm/interface/crud/projects.d.ts +28 -28
- package/dist/esm/interface/crud/team-member-profiles.d.ts +8 -8
- package/dist/esm/interface/crud/users.d.ts +4 -4
- package/dist/esm/interface/server-interface.js +1 -1
- package/dist/esm/utils/promises.js +1 -1
- package/dist/hooks/use-async-callback.js +1 -1
- package/dist/hooks/use-async-external-store.js +1 -1
- package/dist/hooks/use-strict-memo.js +1 -1
- package/dist/interface/admin-interface.js +1 -1
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +28 -28
- package/dist/interface/crud/current-user.d.ts +5 -5
- package/dist/interface/crud/email-outbox.d.ts +64 -64
- package/dist/interface/crud/invoices.d.ts +2 -2
- package/dist/interface/crud/projects.d.ts +28 -28
- package/dist/interface/crud/team-member-profiles.d.ts +8 -8
- package/dist/interface/crud/users.d.ts +4 -4
- package/dist/interface/server-interface.js +1 -1
- package/dist/utils/promises.js +1 -1
- package/package.json +1 -1
- package/src/ai/unified-prompts/reminders.ts +2 -1
|
@@ -63,6 +63,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
63
63
|
message: string;
|
|
64
64
|
}[];
|
|
65
65
|
config: {
|
|
66
|
+
domains: {
|
|
67
|
+
domain: string;
|
|
68
|
+
handler_path: string;
|
|
69
|
+
}[];
|
|
66
70
|
oauth_providers: {
|
|
67
71
|
client_id?: string | undefined;
|
|
68
72
|
client_secret?: string | undefined;
|
|
@@ -73,10 +77,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
73
77
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
74
78
|
provider_config_id: string;
|
|
75
79
|
}[];
|
|
76
|
-
domains: {
|
|
77
|
-
domain: string;
|
|
78
|
-
handler_path: string;
|
|
79
|
-
}[];
|
|
80
80
|
allow_localhost: boolean;
|
|
81
81
|
sign_up_enabled: boolean;
|
|
82
82
|
credential_enabled: boolean;
|
|
@@ -230,6 +230,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
230
230
|
selected_payments_country: "US" | "OTHER";
|
|
231
231
|
} | null | undefined;
|
|
232
232
|
config: {
|
|
233
|
+
domains?: {
|
|
234
|
+
domain: string;
|
|
235
|
+
handler_path: string;
|
|
236
|
+
}[] | undefined;
|
|
233
237
|
oauth_providers?: {
|
|
234
238
|
client_id?: string | undefined;
|
|
235
239
|
client_secret?: string | undefined;
|
|
@@ -239,10 +243,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
239
243
|
type: "shared" | "standard";
|
|
240
244
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
241
245
|
}[] | undefined;
|
|
242
|
-
domains?: {
|
|
243
|
-
domain: string;
|
|
244
|
-
handler_path: string;
|
|
245
|
-
}[] | undefined;
|
|
246
246
|
allow_localhost?: boolean | undefined;
|
|
247
247
|
sign_up_enabled?: boolean | undefined;
|
|
248
248
|
credential_enabled?: boolean | undefined;
|
|
@@ -310,6 +310,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
310
310
|
selected_payments_country: "US" | "OTHER";
|
|
311
311
|
} | null | undefined;
|
|
312
312
|
config: {
|
|
313
|
+
domains?: {
|
|
314
|
+
domain: string;
|
|
315
|
+
handler_path: string;
|
|
316
|
+
}[] | undefined;
|
|
313
317
|
oauth_providers?: {
|
|
314
318
|
client_id?: string | undefined;
|
|
315
319
|
client_secret?: string | undefined;
|
|
@@ -319,10 +323,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
319
323
|
type: "shared" | "standard";
|
|
320
324
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
321
325
|
}[] | undefined;
|
|
322
|
-
domains?: {
|
|
323
|
-
domain: string;
|
|
324
|
-
handler_path: string;
|
|
325
|
-
}[] | undefined;
|
|
326
326
|
allow_localhost?: boolean | undefined;
|
|
327
327
|
sign_up_enabled?: boolean | undefined;
|
|
328
328
|
credential_enabled?: boolean | undefined;
|
|
@@ -466,6 +466,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
466
466
|
message: string;
|
|
467
467
|
}[];
|
|
468
468
|
config: {
|
|
469
|
+
domains: {
|
|
470
|
+
domain: string;
|
|
471
|
+
handler_path: string;
|
|
472
|
+
}[];
|
|
469
473
|
oauth_providers: {
|
|
470
474
|
client_id?: string | undefined;
|
|
471
475
|
client_secret?: string | undefined;
|
|
@@ -476,10 +480,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
476
480
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
477
481
|
provider_config_id: string;
|
|
478
482
|
}[];
|
|
479
|
-
domains: {
|
|
480
|
-
domain: string;
|
|
481
|
-
handler_path: string;
|
|
482
|
-
}[];
|
|
483
483
|
allow_localhost: boolean;
|
|
484
484
|
sign_up_enabled: boolean;
|
|
485
485
|
credential_enabled: boolean;
|
|
@@ -585,6 +585,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
585
585
|
selected_payments_country: "US" | "OTHER";
|
|
586
586
|
} | null | undefined;
|
|
587
587
|
config: {
|
|
588
|
+
domains?: {
|
|
589
|
+
domain: string;
|
|
590
|
+
handler_path: string;
|
|
591
|
+
}[] | undefined;
|
|
588
592
|
oauth_providers?: {
|
|
589
593
|
client_id?: string | undefined;
|
|
590
594
|
client_secret?: string | undefined;
|
|
@@ -594,10 +598,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
594
598
|
type: "shared" | "standard";
|
|
595
599
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
596
600
|
}[] | undefined;
|
|
597
|
-
domains?: {
|
|
598
|
-
domain: string;
|
|
599
|
-
handler_path: string;
|
|
600
|
-
}[] | undefined;
|
|
601
601
|
allow_localhost?: boolean | undefined;
|
|
602
602
|
sign_up_enabled?: boolean | undefined;
|
|
603
603
|
credential_enabled?: boolean | undefined;
|
|
@@ -699,6 +699,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
699
699
|
message: string;
|
|
700
700
|
}[];
|
|
701
701
|
config: {
|
|
702
|
+
domains: {
|
|
703
|
+
domain: string;
|
|
704
|
+
handler_path: string;
|
|
705
|
+
}[];
|
|
702
706
|
oauth_providers: {
|
|
703
707
|
client_id?: string | undefined;
|
|
704
708
|
client_secret?: string | undefined;
|
|
@@ -709,10 +713,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
709
713
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
710
714
|
provider_config_id: string;
|
|
711
715
|
}[];
|
|
712
|
-
domains: {
|
|
713
|
-
domain: string;
|
|
714
|
-
handler_path: string;
|
|
715
|
-
}[];
|
|
716
716
|
allow_localhost: boolean;
|
|
717
717
|
sign_up_enabled: boolean;
|
|
718
718
|
credential_enabled: boolean;
|
|
@@ -818,6 +818,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
818
818
|
selected_payments_country: "US" | "OTHER";
|
|
819
819
|
} | null | undefined;
|
|
820
820
|
config: {
|
|
821
|
+
domains?: {
|
|
822
|
+
domain: string;
|
|
823
|
+
handler_path: string;
|
|
824
|
+
}[] | undefined;
|
|
821
825
|
oauth_providers?: {
|
|
822
826
|
client_id?: string | undefined;
|
|
823
827
|
client_secret?: string | undefined;
|
|
@@ -827,10 +831,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
827
831
|
type: "shared" | "standard";
|
|
828
832
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
829
833
|
}[] | undefined;
|
|
830
|
-
domains?: {
|
|
831
|
-
domain: string;
|
|
832
|
-
handler_path: string;
|
|
833
|
-
}[] | undefined;
|
|
834
834
|
allow_localhost?: boolean | undefined;
|
|
835
835
|
sign_up_enabled?: boolean | undefined;
|
|
836
836
|
credential_enabled?: boolean | undefined;
|
|
@@ -25,15 +25,15 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
25
25
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
26
26
|
} | null;
|
|
27
27
|
primary_email: string | null;
|
|
28
|
-
selected_team_id: string | null;
|
|
29
|
-
is_anonymous: boolean;
|
|
30
|
-
is_restricted: boolean;
|
|
31
|
-
requires_totp_mfa: boolean;
|
|
32
28
|
display_name: string | null;
|
|
33
29
|
client_metadata: {} | null;
|
|
34
30
|
client_read_only_metadata: {} | null;
|
|
35
31
|
server_metadata: {} | null;
|
|
36
32
|
id: string;
|
|
33
|
+
selected_team_id: string | null;
|
|
34
|
+
is_anonymous: boolean;
|
|
35
|
+
is_restricted: boolean;
|
|
36
|
+
requires_totp_mfa: boolean;
|
|
37
37
|
primary_email_verified: boolean;
|
|
38
38
|
primary_email_auth_enabled: boolean;
|
|
39
39
|
profile_image_url: string | null;
|
|
@@ -148,15 +148,15 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
148
148
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
149
149
|
} | null;
|
|
150
150
|
primary_email: string | null;
|
|
151
|
-
selected_team_id: string | null;
|
|
152
|
-
is_anonymous: boolean;
|
|
153
|
-
is_restricted: boolean;
|
|
154
|
-
requires_totp_mfa: boolean;
|
|
155
151
|
display_name: string | null;
|
|
156
152
|
client_metadata: {} | null;
|
|
157
153
|
client_read_only_metadata: {} | null;
|
|
158
154
|
server_metadata: {} | null;
|
|
159
155
|
id: string;
|
|
156
|
+
selected_team_id: string | null;
|
|
157
|
+
is_anonymous: boolean;
|
|
158
|
+
is_restricted: boolean;
|
|
159
|
+
requires_totp_mfa: boolean;
|
|
160
160
|
primary_email_verified: boolean;
|
|
161
161
|
primary_email_auth_enabled: boolean;
|
|
162
162
|
profile_image_url: string | null;
|
|
@@ -164,11 +164,12 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
164
164
|
}, "">;
|
|
165
165
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
166
166
|
primary_email: string | null | undefined;
|
|
167
|
-
is_anonymous: boolean | undefined;
|
|
168
167
|
display_name: string | null | undefined;
|
|
169
168
|
client_metadata: {} | null | undefined;
|
|
170
169
|
client_read_only_metadata: {} | null | undefined;
|
|
171
170
|
server_metadata: {} | null | undefined;
|
|
171
|
+
is_anonymous: boolean | undefined;
|
|
172
|
+
password: string | null | undefined;
|
|
172
173
|
primary_email_verified: boolean | undefined;
|
|
173
174
|
primary_email_auth_enabled: boolean | undefined;
|
|
174
175
|
profile_image_url: string | null | undefined;
|
|
@@ -184,7 +185,6 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
184
185
|
free_trial_abuse: number;
|
|
185
186
|
};
|
|
186
187
|
} | undefined;
|
|
187
|
-
password: string | null | undefined;
|
|
188
188
|
password_hash: string | undefined;
|
|
189
189
|
totp_secret_base64: string | null | undefined;
|
|
190
190
|
} & {
|
|
@@ -370,11 +370,12 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
370
370
|
}, "">;
|
|
371
371
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
372
372
|
primary_email: string | null | undefined;
|
|
373
|
-
is_anonymous: boolean | undefined;
|
|
374
373
|
display_name: string | null | undefined;
|
|
375
374
|
client_metadata: {} | null | undefined;
|
|
376
375
|
client_read_only_metadata: {} | null | undefined;
|
|
377
376
|
server_metadata: {} | null | undefined;
|
|
377
|
+
is_anonymous: boolean | undefined;
|
|
378
|
+
password: string | null | undefined;
|
|
378
379
|
primary_email_verified: boolean | undefined;
|
|
379
380
|
primary_email_auth_enabled: boolean | undefined;
|
|
380
381
|
profile_image_url: string | null | undefined;
|
|
@@ -390,7 +391,6 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
390
391
|
free_trial_abuse: number;
|
|
391
392
|
};
|
|
392
393
|
} | undefined;
|
|
393
|
-
password: string | null | undefined;
|
|
394
394
|
password_hash: string | undefined;
|
|
395
395
|
totp_secret_base64: string | null | undefined;
|
|
396
396
|
} & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HexclaveAssertionError } from "../utils/errors.js";
|
|
2
2
|
import { filterUndefined } from "../utils/objects.js";
|
|
3
3
|
import { Result } from "../utils/results.js";
|
|
4
|
-
import { KnownErrors } from "../known-errors.js";
|
|
5
4
|
import { urlString } from "../utils/urls.js";
|
|
5
|
+
import { KnownErrors } from "../known-errors.js";
|
|
6
6
|
import { InternalSession } from "../sessions.js";
|
|
7
7
|
import { HexclaveClientInterface } from "./client-interface.js";
|
|
8
8
|
import { decryptValue, encryptValue, hashKey } from "../helpers/vault/client-side.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { KnownError } from "../index.js";
|
|
1
2
|
import { HexclaveAssertionError, captureError, concatStacktraces, errorToNiceString } from "./errors.js";
|
|
2
3
|
import { getProcessEnv } from "./env.js";
|
|
3
4
|
import { DependenciesMap } from "./maps.js";
|
|
4
5
|
import { Result } from "./results.js";
|
|
5
6
|
import { traceSpan } from "./telemetry.js";
|
|
6
|
-
import { KnownError } from "../index.js";
|
|
7
7
|
import { generateUuid } from "./uuids.js";
|
|
8
8
|
|
|
9
9
|
//#region src/utils/promises.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
|
+
let ___utils_errors_js = require("../utils/errors.js");
|
|
3
4
|
let react = require("react");
|
|
4
5
|
react = require_chunk.__toESM(react);
|
|
5
|
-
let ___utils_errors_js = require("../utils/errors.js");
|
|
6
6
|
|
|
7
7
|
//#region src/hooks/use-async-callback.tsx
|
|
8
8
|
function useAsyncCallback(callback, deps) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
|
-
let react = require("react");
|
|
4
3
|
let ___utils_results_js = require("../utils/results.js");
|
|
4
|
+
let react = require("react");
|
|
5
5
|
|
|
6
6
|
//#region src/hooks/use-async-external-store.tsx
|
|
7
7
|
function useAsyncExternalStore(subscribe) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
|
-
let react = require("react");
|
|
4
3
|
let ___utils_results_js = require("../utils/results.js");
|
|
4
|
+
let react = require("react");
|
|
5
5
|
|
|
6
6
|
//#region src/hooks/use-strict-memo.tsx
|
|
7
7
|
const cached = /* @__PURE__ */ new Map();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
3
|
let ___utils_results_js = require("../utils/results.js");
|
|
4
|
-
let ___known_errors_js = require("../known-errors.js");
|
|
5
4
|
let ___utils_urls_js = require("../utils/urls.js");
|
|
5
|
+
let ___known_errors_js = require("../known-errors.js");
|
|
6
6
|
let __server_interface_js = require("./server-interface.js");
|
|
7
7
|
|
|
8
8
|
//#region src/interface/admin-interface.ts
|
|
@@ -5,8 +5,8 @@ let ___utils_objects_js = require("../utils/objects.js");
|
|
|
5
5
|
let ___utils_strings_js = require("../utils/strings.js");
|
|
6
6
|
let ___utils_oauth_js = require("../utils/oauth.js");
|
|
7
7
|
let ___utils_results_js = require("../utils/results.js");
|
|
8
|
-
let ___known_errors_js = require("../known-errors.js");
|
|
9
8
|
let ___utils_urls_js = require("../utils/urls.js");
|
|
9
|
+
let ___known_errors_js = require("../known-errors.js");
|
|
10
10
|
let ___sessions_js = require("../sessions.js");
|
|
11
11
|
let ___utils_crypto_js = require("../utils/crypto.js");
|
|
12
12
|
let ___utils_globals_js = require("../utils/globals.js");
|
|
@@ -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: "
|
|
52
|
+
status: "pending" | "open" | "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: "
|
|
132
|
+
status: "pending" | "open" | "closed";
|
|
133
133
|
priority: "low" | "normal" | "high" | "urgent";
|
|
134
134
|
source: "email" | "manual" | "chat" | "api";
|
|
135
135
|
messageType: "message" | "internal-note" | "status-change";
|
|
@@ -173,19 +173,9 @@ 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: "
|
|
176
|
+
status: "pending" | "open" | "closed";
|
|
177
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;
|
|
185
178
|
source: "email" | "manual" | "chat" | "api";
|
|
186
|
-
lastMessageType: "message" | "internal-note" | "status-change";
|
|
187
|
-
preview: string | null;
|
|
188
|
-
lastActivityAt: string;
|
|
189
179
|
metadata: {
|
|
190
180
|
tags: string[];
|
|
191
181
|
assignedToUserId: string | null;
|
|
@@ -196,6 +186,16 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
196
186
|
lastCustomerReplyAt: string | null;
|
|
197
187
|
lastAgentReplyAt: string | null;
|
|
198
188
|
};
|
|
189
|
+
subject: string;
|
|
190
|
+
conversationId: string;
|
|
191
|
+
userId: string | null;
|
|
192
|
+
teamId: string | null;
|
|
193
|
+
userDisplayName: string | null;
|
|
194
|
+
userPrimaryEmail: string | null;
|
|
195
|
+
userProfileImageUrl: string | null;
|
|
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,19 +211,9 @@ 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: "
|
|
214
|
+
status: "pending" | "open" | "closed";
|
|
215
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;
|
|
223
216
|
source: "email" | "manual" | "chat" | "api";
|
|
224
|
-
lastMessageType: "message" | "internal-note" | "status-change";
|
|
225
|
-
preview: string | null;
|
|
226
|
-
lastActivityAt: string;
|
|
227
217
|
metadata: {
|
|
228
218
|
tags: string[];
|
|
229
219
|
assignedToUserId: string | null;
|
|
@@ -234,20 +224,30 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
234
224
|
lastCustomerReplyAt: string | null;
|
|
235
225
|
lastAgentReplyAt: string | null;
|
|
236
226
|
};
|
|
227
|
+
subject: string;
|
|
228
|
+
conversationId: string;
|
|
229
|
+
userId: string | null;
|
|
230
|
+
teamId: string | null;
|
|
231
|
+
userDisplayName: string | null;
|
|
232
|
+
userPrimaryEmail: string | null;
|
|
233
|
+
userProfileImageUrl: string | null;
|
|
234
|
+
lastMessageType: "message" | "internal-note" | "status-change";
|
|
235
|
+
preview: string | null;
|
|
236
|
+
lastActivityAt: string;
|
|
237
237
|
};
|
|
238
238
|
messages: {
|
|
239
|
-
status: "
|
|
239
|
+
status: "pending" | "open" | "closed";
|
|
240
240
|
id: string;
|
|
241
241
|
priority: "low" | "normal" | "high" | "urgent";
|
|
242
|
+
body: string | null;
|
|
243
|
+
source: "email" | "manual" | "chat" | "api";
|
|
244
|
+
metadata: {} | null;
|
|
242
245
|
subject: string;
|
|
243
246
|
conversationId: string;
|
|
244
247
|
userId: string | null;
|
|
245
248
|
teamId: string | null;
|
|
246
|
-
source: "email" | "manual" | "chat" | "api";
|
|
247
|
-
metadata: {} | null;
|
|
248
249
|
createdAt: string;
|
|
249
250
|
messageType: "message" | "internal-note" | "status-change";
|
|
250
|
-
body: string | null;
|
|
251
251
|
attachments: {}[];
|
|
252
252
|
sender: {
|
|
253
253
|
type: "user" | "agent" | "system";
|
|
@@ -8,14 +8,14 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
8
8
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
9
9
|
} | null;
|
|
10
10
|
primary_email: string | null;
|
|
11
|
-
selected_team_id: string | null;
|
|
12
|
-
is_anonymous: boolean;
|
|
13
|
-
is_restricted: boolean;
|
|
14
|
-
requires_totp_mfa: boolean;
|
|
15
11
|
display_name: string | null;
|
|
16
12
|
client_metadata: {} | null;
|
|
17
13
|
client_read_only_metadata: {} | null;
|
|
18
14
|
id: string;
|
|
15
|
+
selected_team_id: string | null;
|
|
16
|
+
is_anonymous: boolean;
|
|
17
|
+
is_restricted: boolean;
|
|
18
|
+
requires_totp_mfa: boolean;
|
|
19
19
|
primary_email_verified: boolean;
|
|
20
20
|
profile_image_url: string | null;
|
|
21
21
|
signed_up_at_millis: number;
|
|
@@ -173,9 +173,9 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
|
|
|
173
173
|
}, "">;
|
|
174
174
|
clientUpdateSchema: yup$1.ObjectSchema<{
|
|
175
175
|
primary_email: string | null | undefined;
|
|
176
|
-
selected_team_id: string | null | undefined;
|
|
177
176
|
display_name: string | null | undefined;
|
|
178
177
|
client_metadata: {} | null | undefined;
|
|
178
|
+
selected_team_id: string | null | undefined;
|
|
179
179
|
profile_image_url: string | null | undefined;
|
|
180
180
|
otp_auth_enabled: boolean | undefined;
|
|
181
181
|
passkey_auth_enabled: boolean | undefined;
|