@kl1/contracts 1.0.29 → 1.0.30
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/index.js +60 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -43
- package/dist/index.mjs.map +1 -1
- package/dist/src/channel/index.d.ts +20 -26
- package/dist/src/channel/index.d.ts.map +1 -1
- package/dist/src/channel/validation.d.ts +6 -12
- package/dist/src/channel/validation.d.ts.map +1 -1
- package/dist/src/chat/index.d.ts +32 -32
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +4 -4
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +168 -57
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contact/index.d.ts +1191 -1191
- package/dist/src/contract.d.ts +1338 -992
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/messenger/index.d.ts +412 -60
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/ticket/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/src/app/index.d.ts +0 -17
- package/dist/src/app/index.d.ts.map +0 -1
- package/dist/src/mail/mail-server.d.ts +0 -216
- package/dist/src/mail/mail-server.d.ts.map +0 -1
- package/dist/src/platform-contact/schema.d.ts +0 -30
- package/dist/src/platform-contact/schema.d.ts.map +0 -1
package/dist/src/contract.d.ts
CHANGED
@@ -27615,10 +27615,8 @@ export declare const apiContract: {
|
|
27615
27615
|
additionalCredentials?: any;
|
27616
27616
|
}>;
|
27617
27617
|
platformId: import("zod").ZodString;
|
27618
|
-
brandName: import("zod").ZodString;
|
27619
|
-
connectedUserName: import("zod").ZodString;
|
27620
27618
|
connectedUserId: import("zod").ZodString;
|
27621
|
-
actor: import("zod").ZodObject<{
|
27619
|
+
actor: import("zod").ZodOptional<import("zod").ZodObject<{
|
27622
27620
|
id: import("zod").ZodString;
|
27623
27621
|
createdAt: import("zod").ZodDate;
|
27624
27622
|
updatedAt: import("zod").ZodDate;
|
@@ -27816,7 +27814,7 @@ export declare const apiContract: {
|
|
27816
27814
|
extensionName: string;
|
27817
27815
|
telephonySignature: string | null;
|
27818
27816
|
} | undefined;
|
27819
|
-
}
|
27817
|
+
}>>;
|
27820
27818
|
}, "strip", import("zod").ZodTypeAny, {
|
27821
27819
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
27822
27820
|
name: string;
|
@@ -27826,11 +27824,9 @@ export declare const apiContract: {
|
|
27826
27824
|
accessToken: string;
|
27827
27825
|
additionalCredentials?: any;
|
27828
27826
|
};
|
27829
|
-
brandName: string;
|
27830
27827
|
platformId: string;
|
27831
|
-
connectedUserName: string;
|
27832
27828
|
connectedUserId: string;
|
27833
|
-
actor
|
27829
|
+
actor?: {
|
27834
27830
|
id: string;
|
27835
27831
|
address: string | null;
|
27836
27832
|
name: string;
|
@@ -27872,7 +27868,7 @@ export declare const apiContract: {
|
|
27872
27868
|
extensionName: string;
|
27873
27869
|
telephonySignature: string | null;
|
27874
27870
|
} | undefined;
|
27875
|
-
};
|
27871
|
+
} | undefined;
|
27876
27872
|
}, {
|
27877
27873
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
27878
27874
|
name: string;
|
@@ -27882,11 +27878,9 @@ export declare const apiContract: {
|
|
27882
27878
|
accessToken: string;
|
27883
27879
|
additionalCredentials?: any;
|
27884
27880
|
};
|
27885
|
-
brandName: string;
|
27886
27881
|
platformId: string;
|
27887
|
-
connectedUserName: string;
|
27888
27882
|
connectedUserId: string;
|
27889
|
-
actor
|
27883
|
+
actor?: {
|
27890
27884
|
id: string;
|
27891
27885
|
address: string | null;
|
27892
27886
|
name: string;
|
@@ -27928,14 +27922,14 @@ export declare const apiContract: {
|
|
27928
27922
|
extensionName: string;
|
27929
27923
|
telephonySignature: string | null;
|
27930
27924
|
} | undefined;
|
27931
|
-
};
|
27925
|
+
} | undefined;
|
27932
27926
|
}>;
|
27933
27927
|
summary: "Connect message channel";
|
27934
27928
|
method: "POST";
|
27935
27929
|
responses: {
|
27936
27930
|
200: import("zod").ZodObject<{
|
27937
27931
|
requestId: import("zod").ZodString;
|
27938
|
-
channel: import("zod").
|
27932
|
+
channel: import("zod").ZodOptional<import("zod").ZodObject<{
|
27939
27933
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
27940
27934
|
createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
27941
27935
|
updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
@@ -28287,9 +28281,10 @@ export declare const apiContract: {
|
|
28287
28281
|
telephonySignature: string | null;
|
28288
28282
|
} | undefined;
|
28289
28283
|
} | undefined;
|
28290
|
-
}
|
28284
|
+
}>>;
|
28291
28285
|
}, "strip", import("zod").ZodTypeAny, {
|
28292
|
-
|
28286
|
+
requestId: string;
|
28287
|
+
channel?: {
|
28293
28288
|
id?: string | undefined;
|
28294
28289
|
createdAt?: Date | undefined;
|
28295
28290
|
updatedAt?: Date | undefined;
|
@@ -28351,10 +28346,10 @@ export declare const apiContract: {
|
|
28351
28346
|
telephonySignature: string | null;
|
28352
28347
|
} | undefined;
|
28353
28348
|
} | undefined;
|
28354
|
-
} | undefined
|
28355
|
-
requestId: string;
|
28349
|
+
} | undefined;
|
28356
28350
|
}, {
|
28357
|
-
|
28351
|
+
requestId: string;
|
28352
|
+
channel?: {
|
28358
28353
|
id?: string | undefined;
|
28359
28354
|
createdAt?: Date | undefined;
|
28360
28355
|
updatedAt?: Date | undefined;
|
@@ -28416,8 +28411,7 @@ export declare const apiContract: {
|
|
28416
28411
|
telephonySignature: string | null;
|
28417
28412
|
} | undefined;
|
28418
28413
|
} | undefined;
|
28419
|
-
} | undefined
|
28420
|
-
requestId: string;
|
28414
|
+
} | undefined;
|
28421
28415
|
}>;
|
28422
28416
|
408: import("zod").ZodObject<{
|
28423
28417
|
message: import("zod").ZodString;
|
@@ -28454,7 +28448,7 @@ export declare const apiContract: {
|
|
28454
28448
|
responses: {
|
28455
28449
|
200: import("zod").ZodObject<{
|
28456
28450
|
requestId: import("zod").ZodString;
|
28457
|
-
channels: import("zod").ZodOptional<import("zod").ZodObject<{
|
28451
|
+
channels: import("zod").ZodArray<import("zod").ZodOptional<import("zod").ZodObject<{
|
28458
28452
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
28459
28453
|
createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
28460
28454
|
updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
@@ -28806,10 +28800,10 @@ export declare const apiContract: {
|
|
28806
28800
|
telephonySignature: string | null;
|
28807
28801
|
} | undefined;
|
28808
28802
|
} | undefined;
|
28809
|
-
}
|
28803
|
+
}>>, "many">;
|
28810
28804
|
}, "strip", import("zod").ZodTypeAny, {
|
28811
28805
|
requestId: string;
|
28812
|
-
channels
|
28806
|
+
channels: ({
|
28813
28807
|
id?: string | undefined;
|
28814
28808
|
createdAt?: Date | undefined;
|
28815
28809
|
updatedAt?: Date | undefined;
|
@@ -28871,10 +28865,10 @@ export declare const apiContract: {
|
|
28871
28865
|
telephonySignature: string | null;
|
28872
28866
|
} | undefined;
|
28873
28867
|
} | undefined;
|
28874
|
-
} | undefined;
|
28868
|
+
} | undefined)[];
|
28875
28869
|
}, {
|
28876
28870
|
requestId: string;
|
28877
|
-
channels
|
28871
|
+
channels: ({
|
28878
28872
|
id?: string | undefined;
|
28879
28873
|
createdAt?: Date | undefined;
|
28880
28874
|
updatedAt?: Date | undefined;
|
@@ -28936,7 +28930,7 @@ export declare const apiContract: {
|
|
28936
28930
|
telephonySignature: string | null;
|
28937
28931
|
} | undefined;
|
28938
28932
|
} | undefined;
|
28939
|
-
} | undefined;
|
28933
|
+
} | undefined)[];
|
28940
28934
|
}>;
|
28941
28935
|
};
|
28942
28936
|
path: "channel/";
|
@@ -31408,20 +31402,80 @@ export declare const apiContract: {
|
|
31408
31402
|
'x-client-timezone'?: string | undefined;
|
31409
31403
|
}>>>;
|
31410
31404
|
};
|
31411
|
-
|
31412
|
-
summary: "Get
|
31405
|
+
getAll: {
|
31406
|
+
summary: "Get all contacts";
|
31413
31407
|
method: "GET";
|
31414
|
-
|
31415
|
-
|
31408
|
+
query: import("zod").ZodObject<{
|
31409
|
+
page: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
|
31410
|
+
pageSize: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
|
31411
|
+
keyword: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
31412
|
+
company: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
31413
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
31414
|
+
address: import("zod").ZodOptional<import("zod").ZodString>;
|
31415
|
+
channel: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
31416
|
+
selectedDate: import("zod").ZodOptional<import("zod").ZodString>;
|
31417
|
+
customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
31418
|
+
attributeId: import("zod").ZodString;
|
31419
|
+
type: import("zod").ZodString;
|
31420
|
+
value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
31421
|
+
}, "strip", import("zod").ZodTypeAny, {
|
31422
|
+
type: string;
|
31423
|
+
value: (string | string[]) & (string | string[] | undefined);
|
31424
|
+
attributeId: string;
|
31425
|
+
}, {
|
31426
|
+
type: string;
|
31427
|
+
value: (string | string[]) & (string | string[] | undefined);
|
31428
|
+
attributeId: string;
|
31429
|
+
}>, "many">>;
|
31430
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
31431
|
+
phone: import("zod").ZodOptional<import("zod").ZodString>;
|
31432
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
31433
|
+
notes: import("zod").ZodOptional<import("zod").ZodString>;
|
31416
31434
|
}, "strip", import("zod").ZodTypeAny, {
|
31417
|
-
|
31435
|
+
page?: number | undefined;
|
31436
|
+
pageSize?: number | undefined;
|
31437
|
+
keyword?: string | undefined;
|
31438
|
+
company?: string[] | undefined;
|
31439
|
+
name?: string | undefined;
|
31440
|
+
address?: string | undefined;
|
31441
|
+
channel?: string[] | undefined;
|
31442
|
+
selectedDate?: string | undefined;
|
31443
|
+
customFields?: {
|
31444
|
+
type: string;
|
31445
|
+
value: (string | string[]) & (string | string[] | undefined);
|
31446
|
+
attributeId: string;
|
31447
|
+
}[] | undefined;
|
31448
|
+
tags?: string[] | undefined;
|
31449
|
+
phone?: string | undefined;
|
31450
|
+
email?: string | undefined;
|
31451
|
+
notes?: string | undefined;
|
31418
31452
|
}, {
|
31419
|
-
|
31453
|
+
page?: number | undefined;
|
31454
|
+
pageSize?: number | undefined;
|
31455
|
+
keyword?: string | undefined;
|
31456
|
+
company?: string[] | undefined;
|
31457
|
+
name?: string | undefined;
|
31458
|
+
address?: string | undefined;
|
31459
|
+
channel?: string[] | undefined;
|
31460
|
+
selectedDate?: string | undefined;
|
31461
|
+
customFields?: {
|
31462
|
+
type: string;
|
31463
|
+
value: (string | string[]) & (string | string[] | undefined);
|
31464
|
+
attributeId: string;
|
31465
|
+
}[] | undefined;
|
31466
|
+
tags?: string[] | undefined;
|
31467
|
+
phone?: string | undefined;
|
31468
|
+
email?: string | undefined;
|
31469
|
+
notes?: string | undefined;
|
31420
31470
|
}>;
|
31421
31471
|
responses: {
|
31422
31472
|
200: import("zod").ZodObject<{
|
31423
31473
|
requestId: import("zod").ZodString;
|
31424
|
-
|
31474
|
+
page: import("zod").ZodNumber;
|
31475
|
+
pageSize: import("zod").ZodNumber;
|
31476
|
+
total: import("zod").ZodNumber;
|
31477
|
+
lastPage: import("zod").ZodNumber;
|
31478
|
+
data: import("zod").ZodArray<import("zod").ZodObject<{
|
31425
31479
|
id: import("zod").ZodString;
|
31426
31480
|
createdAt: import("zod").ZodDate;
|
31427
31481
|
updatedAt: import("zod").ZodDate;
|
@@ -32160,7 +32214,7 @@ export declare const apiContract: {
|
|
32160
32214
|
entity: string;
|
32161
32215
|
};
|
32162
32216
|
}[] | undefined;
|
32163
|
-
}>;
|
32217
|
+
}>, "many">;
|
32164
32218
|
}, "strip", import("zod").ZodTypeAny, {
|
32165
32219
|
data: {
|
32166
32220
|
id: string;
|
@@ -32263,7 +32317,11 @@ export declare const apiContract: {
|
|
32263
32317
|
entity: string;
|
32264
32318
|
};
|
32265
32319
|
}[] | undefined;
|
32266
|
-
};
|
32320
|
+
}[];
|
32321
|
+
total: number;
|
32322
|
+
page: number;
|
32323
|
+
pageSize: number;
|
32324
|
+
lastPage: number;
|
32267
32325
|
requestId: string;
|
32268
32326
|
}, {
|
32269
32327
|
data: {
|
@@ -32367,7 +32425,11 @@ export declare const apiContract: {
|
|
32367
32425
|
entity: string;
|
32368
32426
|
};
|
32369
32427
|
}[] | undefined;
|
32370
|
-
};
|
32428
|
+
}[];
|
32429
|
+
total: number;
|
32430
|
+
page: number;
|
32431
|
+
pageSize: number;
|
32432
|
+
lastPage: number;
|
32371
32433
|
requestId: string;
|
32372
32434
|
}>;
|
32373
32435
|
400: import("zod").ZodObject<{
|
@@ -32422,7 +32484,7 @@ export declare const apiContract: {
|
|
32422
32484
|
error?: any;
|
32423
32485
|
}>;
|
32424
32486
|
};
|
32425
|
-
path: "contact
|
32487
|
+
path: "contact";
|
32426
32488
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
32427
32489
|
'x-tenant': import("zod").ZodString;
|
32428
32490
|
authorization: import("zod").ZodString;
|
@@ -32440,71 +32502,21 @@ export declare const apiContract: {
|
|
32440
32502
|
'x-client-timezone'?: string | undefined;
|
32441
32503
|
}>>>;
|
32442
32504
|
};
|
32443
|
-
|
32444
|
-
summary: "Get all contacts";
|
32505
|
+
filterContacts: {
|
32506
|
+
summary: "Get all contacts by filtering with only keyword";
|
32445
32507
|
method: "GET";
|
32446
32508
|
query: import("zod").ZodObject<{
|
32447
32509
|
page: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
|
32448
32510
|
pageSize: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
|
32449
|
-
keyword: import("zod").ZodOptional<import("zod").
|
32450
|
-
company: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
32451
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
32452
|
-
address: import("zod").ZodOptional<import("zod").ZodString>;
|
32453
|
-
channel: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
32454
|
-
selectedDate: import("zod").ZodOptional<import("zod").ZodString>;
|
32455
|
-
customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
32456
|
-
attributeId: import("zod").ZodString;
|
32457
|
-
type: import("zod").ZodString;
|
32458
|
-
value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
32459
|
-
}, "strip", import("zod").ZodTypeAny, {
|
32460
|
-
type: string;
|
32461
|
-
value: (string | string[]) & (string | string[] | undefined);
|
32462
|
-
attributeId: string;
|
32463
|
-
}, {
|
32464
|
-
type: string;
|
32465
|
-
value: (string | string[]) & (string | string[] | undefined);
|
32466
|
-
attributeId: string;
|
32467
|
-
}>, "many">>;
|
32468
|
-
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
32469
|
-
phone: import("zod").ZodOptional<import("zod").ZodString>;
|
32470
|
-
email: import("zod").ZodOptional<import("zod").ZodString>;
|
32471
|
-
notes: import("zod").ZodOptional<import("zod").ZodString>;
|
32511
|
+
keyword: import("zod").ZodOptional<import("zod").ZodString>;
|
32472
32512
|
}, "strip", import("zod").ZodTypeAny, {
|
32473
32513
|
page?: number | undefined;
|
32474
32514
|
pageSize?: number | undefined;
|
32475
32515
|
keyword?: string | undefined;
|
32476
|
-
company?: string[] | undefined;
|
32477
|
-
name?: string | undefined;
|
32478
|
-
address?: string | undefined;
|
32479
|
-
channel?: string[] | undefined;
|
32480
|
-
selectedDate?: string | undefined;
|
32481
|
-
customFields?: {
|
32482
|
-
type: string;
|
32483
|
-
value: (string | string[]) & (string | string[] | undefined);
|
32484
|
-
attributeId: string;
|
32485
|
-
}[] | undefined;
|
32486
|
-
tags?: string[] | undefined;
|
32487
|
-
phone?: string | undefined;
|
32488
|
-
email?: string | undefined;
|
32489
|
-
notes?: string | undefined;
|
32490
32516
|
}, {
|
32491
32517
|
page?: number | undefined;
|
32492
32518
|
pageSize?: number | undefined;
|
32493
32519
|
keyword?: string | undefined;
|
32494
|
-
company?: string[] | undefined;
|
32495
|
-
name?: string | undefined;
|
32496
|
-
address?: string | undefined;
|
32497
|
-
channel?: string[] | undefined;
|
32498
|
-
selectedDate?: string | undefined;
|
32499
|
-
customFields?: {
|
32500
|
-
type: string;
|
32501
|
-
value: (string | string[]) & (string | string[] | undefined);
|
32502
|
-
attributeId: string;
|
32503
|
-
}[] | undefined;
|
32504
|
-
tags?: string[] | undefined;
|
32505
|
-
phone?: string | undefined;
|
32506
|
-
email?: string | undefined;
|
32507
|
-
notes?: string | undefined;
|
32508
32520
|
}>;
|
32509
32521
|
responses: {
|
32510
32522
|
200: import("zod").ZodObject<{
|
@@ -33522,7 +33534,7 @@ export declare const apiContract: {
|
|
33522
33534
|
error?: any;
|
33523
33535
|
}>;
|
33524
33536
|
};
|
33525
|
-
path: "contact";
|
33537
|
+
path: "contact/filter/list";
|
33526
33538
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
33527
33539
|
'x-tenant': import("zod").ZodString;
|
33528
33540
|
authorization: import("zod").ZodString;
|
@@ -33540,30 +33552,283 @@ export declare const apiContract: {
|
|
33540
33552
|
'x-client-timezone'?: string | undefined;
|
33541
33553
|
}>>>;
|
33542
33554
|
};
|
33543
|
-
|
33544
|
-
|
33545
|
-
|
33546
|
-
|
33547
|
-
|
33548
|
-
|
33549
|
-
|
33555
|
+
update: {
|
33556
|
+
body: import("zod").ZodObject<{
|
33557
|
+
name: import("zod").ZodOptional<import("zod").ZodObject<{
|
33558
|
+
isRequired: import("zod").ZodBoolean;
|
33559
|
+
attributeId: import("zod").ZodString;
|
33560
|
+
value: import("zod").ZodString;
|
33561
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33562
|
+
value: string;
|
33563
|
+
isRequired: boolean;
|
33564
|
+
attributeId: string;
|
33565
|
+
}, {
|
33566
|
+
value: string;
|
33567
|
+
isRequired: boolean;
|
33568
|
+
attributeId: string;
|
33569
|
+
}>>;
|
33570
|
+
email: import("zod").ZodOptional<import("zod").ZodObject<{
|
33571
|
+
isRequired: import("zod").ZodBoolean;
|
33572
|
+
attributeId: import("zod").ZodString;
|
33573
|
+
value: import("zod").ZodArray<import("zod").ZodObject<{
|
33574
|
+
email: import("zod").ZodString;
|
33575
|
+
isPrimary: import("zod").ZodBoolean;
|
33576
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33577
|
+
isPrimary: boolean;
|
33578
|
+
email: string;
|
33579
|
+
}, {
|
33580
|
+
isPrimary: boolean;
|
33581
|
+
email: string;
|
33582
|
+
}>, "many">;
|
33583
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33584
|
+
value: {
|
33585
|
+
isPrimary: boolean;
|
33586
|
+
email: string;
|
33587
|
+
}[];
|
33588
|
+
isRequired: boolean;
|
33589
|
+
attributeId: string;
|
33590
|
+
}, {
|
33591
|
+
value: {
|
33592
|
+
isPrimary: boolean;
|
33593
|
+
email: string;
|
33594
|
+
}[];
|
33595
|
+
isRequired: boolean;
|
33596
|
+
attributeId: string;
|
33597
|
+
}>>;
|
33598
|
+
channel: import("zod").ZodOptional<import("zod").ZodObject<{
|
33599
|
+
isRequired: import("zod").ZodBoolean;
|
33600
|
+
attributeId: import("zod").ZodString;
|
33601
|
+
value: import("zod").ZodString;
|
33602
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33603
|
+
value: string;
|
33604
|
+
isRequired: boolean;
|
33605
|
+
attributeId: string;
|
33606
|
+
}, {
|
33607
|
+
value: string;
|
33608
|
+
isRequired: boolean;
|
33609
|
+
attributeId: string;
|
33610
|
+
}>>;
|
33611
|
+
address: import("zod").ZodOptional<import("zod").ZodObject<{
|
33612
|
+
isRequired: import("zod").ZodBoolean;
|
33613
|
+
attributeId: import("zod").ZodString;
|
33614
|
+
value: import("zod").ZodString;
|
33615
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33616
|
+
value: string;
|
33617
|
+
isRequired: boolean;
|
33618
|
+
attributeId: string;
|
33619
|
+
}, {
|
33620
|
+
value: string;
|
33621
|
+
isRequired: boolean;
|
33622
|
+
attributeId: string;
|
33623
|
+
}>>;
|
33624
|
+
phone: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodObject<{
|
33625
|
+
isRequired: import("zod").ZodBoolean;
|
33626
|
+
attributeId: import("zod").ZodString;
|
33627
|
+
value: import("zod").ZodArray<import("zod").ZodObject<{
|
33628
|
+
phone: import("zod").ZodString;
|
33629
|
+
isPrimary: import("zod").ZodBoolean;
|
33630
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33631
|
+
isPrimary: boolean;
|
33632
|
+
phone: string;
|
33633
|
+
}, {
|
33634
|
+
isPrimary: boolean;
|
33635
|
+
phone: string;
|
33636
|
+
}>, "many">;
|
33637
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33638
|
+
value: {
|
33639
|
+
isPrimary: boolean;
|
33640
|
+
phone: string;
|
33641
|
+
}[];
|
33642
|
+
isRequired: boolean;
|
33643
|
+
attributeId: string;
|
33644
|
+
}, {
|
33645
|
+
value: {
|
33646
|
+
isPrimary: boolean;
|
33647
|
+
phone: string;
|
33648
|
+
}[];
|
33649
|
+
isRequired: boolean;
|
33650
|
+
attributeId: string;
|
33651
|
+
}>>>;
|
33652
|
+
notes: import("zod").ZodOptional<import("zod").ZodObject<{
|
33653
|
+
isRequired: import("zod").ZodBoolean;
|
33654
|
+
attributeId: import("zod").ZodString;
|
33655
|
+
value: import("zod").ZodString;
|
33656
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33657
|
+
value: string;
|
33658
|
+
isRequired: boolean;
|
33659
|
+
attributeId: string;
|
33660
|
+
}, {
|
33661
|
+
value: string;
|
33662
|
+
isRequired: boolean;
|
33663
|
+
attributeId: string;
|
33664
|
+
}>>;
|
33665
|
+
tags: import("zod").ZodOptional<import("zod").ZodObject<{
|
33666
|
+
isRequired: import("zod").ZodBoolean;
|
33667
|
+
attributeId: import("zod").ZodString;
|
33668
|
+
value: import("zod").ZodArray<import("zod").ZodString, "many">;
|
33669
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33670
|
+
value: string[];
|
33671
|
+
isRequired: boolean;
|
33672
|
+
attributeId: string;
|
33673
|
+
}, {
|
33674
|
+
value: string[];
|
33675
|
+
isRequired: boolean;
|
33676
|
+
attributeId: string;
|
33677
|
+
}>>;
|
33678
|
+
company: import("zod").ZodOptional<import("zod").ZodObject<{
|
33679
|
+
isRequired: import("zod").ZodBoolean;
|
33680
|
+
attributeId: import("zod").ZodString;
|
33681
|
+
value: import("zod").ZodString;
|
33682
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33683
|
+
value: string;
|
33684
|
+
isRequired: boolean;
|
33685
|
+
attributeId: string;
|
33686
|
+
}, {
|
33687
|
+
value: string;
|
33688
|
+
isRequired: boolean;
|
33689
|
+
attributeId: string;
|
33690
|
+
}>>;
|
33691
|
+
customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
33692
|
+
isRequired: import("zod").ZodBoolean;
|
33693
|
+
attributeId: import("zod").ZodString;
|
33694
|
+
value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
33695
|
+
type: import("zod").ZodString;
|
33696
|
+
isDefaultAttribute: import("zod").ZodBoolean;
|
33697
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33698
|
+
type: string;
|
33699
|
+
value: (string | string[]) & (string | string[] | undefined);
|
33700
|
+
isRequired: boolean;
|
33701
|
+
attributeId: string;
|
33702
|
+
isDefaultAttribute: boolean;
|
33703
|
+
}, {
|
33704
|
+
type: string;
|
33705
|
+
value: (string | string[]) & (string | string[] | undefined);
|
33706
|
+
isRequired: boolean;
|
33707
|
+
attributeId: string;
|
33708
|
+
isDefaultAttribute: boolean;
|
33709
|
+
}>, "many">>;
|
33550
33710
|
}, "strip", import("zod").ZodTypeAny, {
|
33551
|
-
|
33552
|
-
|
33553
|
-
|
33711
|
+
name?: {
|
33712
|
+
value: string;
|
33713
|
+
isRequired: boolean;
|
33714
|
+
attributeId: string;
|
33715
|
+
} | undefined;
|
33716
|
+
email?: {
|
33717
|
+
value: {
|
33718
|
+
isPrimary: boolean;
|
33719
|
+
email: string;
|
33720
|
+
}[];
|
33721
|
+
isRequired: boolean;
|
33722
|
+
attributeId: string;
|
33723
|
+
} | undefined;
|
33724
|
+
channel?: {
|
33725
|
+
value: string;
|
33726
|
+
isRequired: boolean;
|
33727
|
+
attributeId: string;
|
33728
|
+
} | undefined;
|
33729
|
+
address?: {
|
33730
|
+
value: string;
|
33731
|
+
isRequired: boolean;
|
33732
|
+
attributeId: string;
|
33733
|
+
} | undefined;
|
33734
|
+
phone?: {
|
33735
|
+
value: {
|
33736
|
+
isPrimary: boolean;
|
33737
|
+
phone: string;
|
33738
|
+
}[];
|
33739
|
+
isRequired: boolean;
|
33740
|
+
attributeId: string;
|
33741
|
+
} | undefined;
|
33742
|
+
notes?: {
|
33743
|
+
value: string;
|
33744
|
+
isRequired: boolean;
|
33745
|
+
attributeId: string;
|
33746
|
+
} | undefined;
|
33747
|
+
tags?: {
|
33748
|
+
value: string[];
|
33749
|
+
isRequired: boolean;
|
33750
|
+
attributeId: string;
|
33751
|
+
} | undefined;
|
33752
|
+
company?: {
|
33753
|
+
value: string;
|
33754
|
+
isRequired: boolean;
|
33755
|
+
attributeId: string;
|
33756
|
+
} | undefined;
|
33757
|
+
customFields?: {
|
33758
|
+
type: string;
|
33759
|
+
value: (string | string[]) & (string | string[] | undefined);
|
33760
|
+
isRequired: boolean;
|
33761
|
+
attributeId: string;
|
33762
|
+
isDefaultAttribute: boolean;
|
33763
|
+
}[] | undefined;
|
33554
33764
|
}, {
|
33555
|
-
|
33556
|
-
|
33557
|
-
|
33765
|
+
name?: {
|
33766
|
+
value: string;
|
33767
|
+
isRequired: boolean;
|
33768
|
+
attributeId: string;
|
33769
|
+
} | undefined;
|
33770
|
+
email?: {
|
33771
|
+
value: {
|
33772
|
+
isPrimary: boolean;
|
33773
|
+
email: string;
|
33774
|
+
}[];
|
33775
|
+
isRequired: boolean;
|
33776
|
+
attributeId: string;
|
33777
|
+
} | undefined;
|
33778
|
+
channel?: {
|
33779
|
+
value: string;
|
33780
|
+
isRequired: boolean;
|
33781
|
+
attributeId: string;
|
33782
|
+
} | undefined;
|
33783
|
+
address?: {
|
33784
|
+
value: string;
|
33785
|
+
isRequired: boolean;
|
33786
|
+
attributeId: string;
|
33787
|
+
} | undefined;
|
33788
|
+
phone?: {
|
33789
|
+
value: {
|
33790
|
+
isPrimary: boolean;
|
33791
|
+
phone: string;
|
33792
|
+
}[];
|
33793
|
+
isRequired: boolean;
|
33794
|
+
attributeId: string;
|
33795
|
+
} | undefined;
|
33796
|
+
notes?: {
|
33797
|
+
value: string;
|
33798
|
+
isRequired: boolean;
|
33799
|
+
attributeId: string;
|
33800
|
+
} | undefined;
|
33801
|
+
tags?: {
|
33802
|
+
value: string[];
|
33803
|
+
isRequired: boolean;
|
33804
|
+
attributeId: string;
|
33805
|
+
} | undefined;
|
33806
|
+
company?: {
|
33807
|
+
value: string;
|
33808
|
+
isRequired: boolean;
|
33809
|
+
attributeId: string;
|
33810
|
+
} | undefined;
|
33811
|
+
customFields?: {
|
33812
|
+
type: string;
|
33813
|
+
value: (string | string[]) & (string | string[] | undefined);
|
33814
|
+
isRequired: boolean;
|
33815
|
+
attributeId: string;
|
33816
|
+
isDefaultAttribute: boolean;
|
33817
|
+
}[] | undefined;
|
33818
|
+
}>;
|
33819
|
+
summary: "Update a contact";
|
33820
|
+
method: "PATCH";
|
33821
|
+
pathParams: import("zod").ZodObject<{
|
33822
|
+
id: import("zod").ZodString;
|
33823
|
+
}, "strip", import("zod").ZodTypeAny, {
|
33824
|
+
id: string;
|
33825
|
+
}, {
|
33826
|
+
id: string;
|
33558
33827
|
}>;
|
33559
33828
|
responses: {
|
33560
33829
|
200: import("zod").ZodObject<{
|
33561
33830
|
requestId: import("zod").ZodString;
|
33562
|
-
|
33563
|
-
pageSize: import("zod").ZodNumber;
|
33564
|
-
total: import("zod").ZodNumber;
|
33565
|
-
lastPage: import("zod").ZodNumber;
|
33566
|
-
data: import("zod").ZodArray<import("zod").ZodObject<{
|
33831
|
+
data: import("zod").ZodObject<{
|
33567
33832
|
id: import("zod").ZodString;
|
33568
33833
|
createdAt: import("zod").ZodDate;
|
33569
33834
|
updatedAt: import("zod").ZodDate;
|
@@ -34302,7 +34567,7 @@ export declare const apiContract: {
|
|
34302
34567
|
entity: string;
|
34303
34568
|
};
|
34304
34569
|
}[] | undefined;
|
34305
|
-
}
|
34570
|
+
}>;
|
34306
34571
|
}, "strip", import("zod").ZodTypeAny, {
|
34307
34572
|
data: {
|
34308
34573
|
id: string;
|
@@ -34405,11 +34670,7 @@ export declare const apiContract: {
|
|
34405
34670
|
entity: string;
|
34406
34671
|
};
|
34407
34672
|
}[] | undefined;
|
34408
|
-
}
|
34409
|
-
total: number;
|
34410
|
-
page: number;
|
34411
|
-
pageSize: number;
|
34412
|
-
lastPage: number;
|
34673
|
+
};
|
34413
34674
|
requestId: string;
|
34414
34675
|
}, {
|
34415
34676
|
data: {
|
@@ -34513,11 +34774,7 @@ export declare const apiContract: {
|
|
34513
34774
|
entity: string;
|
34514
34775
|
};
|
34515
34776
|
}[] | undefined;
|
34516
|
-
}
|
34517
|
-
total: number;
|
34518
|
-
page: number;
|
34519
|
-
pageSize: number;
|
34520
|
-
lastPage: number;
|
34777
|
+
};
|
34521
34778
|
requestId: string;
|
34522
34779
|
}>;
|
34523
34780
|
400: import("zod").ZodObject<{
|
@@ -34572,7 +34829,7 @@ export declare const apiContract: {
|
|
34572
34829
|
error?: any;
|
34573
34830
|
}>;
|
34574
34831
|
};
|
34575
|
-
path: "contact
|
34832
|
+
path: "contact/:id";
|
34576
34833
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
34577
34834
|
'x-tenant': import("zod").ZodString;
|
34578
34835
|
authorization: import("zod").ZodString;
|
@@ -34590,281 +34847,110 @@ export declare const apiContract: {
|
|
34590
34847
|
'x-client-timezone'?: string | undefined;
|
34591
34848
|
}>>>;
|
34592
34849
|
};
|
34593
|
-
|
34594
|
-
body:
|
34595
|
-
|
34596
|
-
|
34597
|
-
|
34598
|
-
|
34599
|
-
|
34600
|
-
|
34601
|
-
|
34602
|
-
|
34603
|
-
|
34604
|
-
|
34605
|
-
|
34606
|
-
|
34607
|
-
|
34608
|
-
email: import("zod").ZodOptional<import("zod").ZodObject<{
|
34609
|
-
isRequired: import("zod").ZodBoolean;
|
34610
|
-
attributeId: import("zod").ZodString;
|
34611
|
-
value: import("zod").ZodArray<import("zod").ZodObject<{
|
34612
|
-
email: import("zod").ZodString;
|
34613
|
-
isPrimary: import("zod").ZodBoolean;
|
34614
|
-
}, "strip", import("zod").ZodTypeAny, {
|
34615
|
-
isPrimary: boolean;
|
34616
|
-
email: string;
|
34617
|
-
}, {
|
34618
|
-
isPrimary: boolean;
|
34619
|
-
email: string;
|
34620
|
-
}>, "many">;
|
34621
|
-
}, "strip", import("zod").ZodTypeAny, {
|
34622
|
-
value: {
|
34623
|
-
isPrimary: boolean;
|
34624
|
-
email: string;
|
34625
|
-
}[];
|
34626
|
-
isRequired: boolean;
|
34627
|
-
attributeId: string;
|
34628
|
-
}, {
|
34629
|
-
value: {
|
34630
|
-
isPrimary: boolean;
|
34631
|
-
email: string;
|
34632
|
-
}[];
|
34633
|
-
isRequired: boolean;
|
34634
|
-
attributeId: string;
|
34635
|
-
}>>;
|
34636
|
-
channel: import("zod").ZodOptional<import("zod").ZodObject<{
|
34637
|
-
isRequired: import("zod").ZodBoolean;
|
34638
|
-
attributeId: import("zod").ZodString;
|
34639
|
-
value: import("zod").ZodString;
|
34850
|
+
delete: {
|
34851
|
+
body: null;
|
34852
|
+
summary: "Delete a contact";
|
34853
|
+
method: "DELETE";
|
34854
|
+
pathParams: import("zod").ZodObject<{
|
34855
|
+
id: import("zod").ZodString;
|
34856
|
+
}, "strip", import("zod").ZodTypeAny, {
|
34857
|
+
id: string;
|
34858
|
+
}, {
|
34859
|
+
id: string;
|
34860
|
+
}>;
|
34861
|
+
responses: {
|
34862
|
+
200: import("zod").ZodObject<{
|
34863
|
+
requestId: import("zod").ZodString;
|
34864
|
+
message: import("zod").ZodString;
|
34640
34865
|
}, "strip", import("zod").ZodTypeAny, {
|
34641
|
-
|
34642
|
-
|
34643
|
-
attributeId: string;
|
34866
|
+
message: string;
|
34867
|
+
requestId: string;
|
34644
34868
|
}, {
|
34645
|
-
|
34646
|
-
|
34647
|
-
|
34648
|
-
|
34649
|
-
|
34650
|
-
isRequired: import("zod").ZodBoolean;
|
34651
|
-
attributeId: import("zod").ZodString;
|
34652
|
-
value: import("zod").ZodString;
|
34869
|
+
message: string;
|
34870
|
+
requestId: string;
|
34871
|
+
}>;
|
34872
|
+
400: import("zod").ZodObject<{
|
34873
|
+
message: import("zod").ZodString;
|
34653
34874
|
}, "strip", import("zod").ZodTypeAny, {
|
34654
|
-
|
34655
|
-
isRequired: boolean;
|
34656
|
-
attributeId: string;
|
34875
|
+
message: string;
|
34657
34876
|
}, {
|
34658
|
-
|
34659
|
-
|
34660
|
-
|
34661
|
-
|
34662
|
-
phone: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodObject<{
|
34663
|
-
isRequired: import("zod").ZodBoolean;
|
34664
|
-
attributeId: import("zod").ZodString;
|
34665
|
-
value: import("zod").ZodArray<import("zod").ZodObject<{
|
34666
|
-
phone: import("zod").ZodString;
|
34667
|
-
isPrimary: import("zod").ZodBoolean;
|
34668
|
-
}, "strip", import("zod").ZodTypeAny, {
|
34669
|
-
isPrimary: boolean;
|
34670
|
-
phone: string;
|
34671
|
-
}, {
|
34672
|
-
isPrimary: boolean;
|
34673
|
-
phone: string;
|
34674
|
-
}>, "many">;
|
34877
|
+
message: string;
|
34878
|
+
}>;
|
34879
|
+
409: import("zod").ZodObject<{
|
34880
|
+
message: import("zod").ZodString;
|
34675
34881
|
}, "strip", import("zod").ZodTypeAny, {
|
34676
|
-
|
34677
|
-
isPrimary: boolean;
|
34678
|
-
phone: string;
|
34679
|
-
}[];
|
34680
|
-
isRequired: boolean;
|
34681
|
-
attributeId: string;
|
34882
|
+
message: string;
|
34682
34883
|
}, {
|
34683
|
-
|
34684
|
-
|
34685
|
-
|
34686
|
-
|
34687
|
-
isRequired: boolean;
|
34688
|
-
attributeId: string;
|
34689
|
-
}>>>;
|
34690
|
-
notes: import("zod").ZodOptional<import("zod").ZodObject<{
|
34691
|
-
isRequired: import("zod").ZodBoolean;
|
34692
|
-
attributeId: import("zod").ZodString;
|
34693
|
-
value: import("zod").ZodString;
|
34884
|
+
message: string;
|
34885
|
+
}>;
|
34886
|
+
500: import("zod").ZodObject<{
|
34887
|
+
message: import("zod").ZodString;
|
34694
34888
|
}, "strip", import("zod").ZodTypeAny, {
|
34695
|
-
|
34696
|
-
isRequired: boolean;
|
34697
|
-
attributeId: string;
|
34889
|
+
message: string;
|
34698
34890
|
}, {
|
34699
|
-
|
34700
|
-
|
34701
|
-
|
34702
|
-
|
34703
|
-
|
34704
|
-
isRequired: import("zod").ZodBoolean;
|
34705
|
-
attributeId: import("zod").ZodString;
|
34706
|
-
value: import("zod").ZodArray<import("zod").ZodString, "many">;
|
34891
|
+
message: string;
|
34892
|
+
}>;
|
34893
|
+
401: import("zod").ZodObject<{
|
34894
|
+
message: import("zod").ZodString;
|
34895
|
+
error: import("zod").ZodAny;
|
34707
34896
|
}, "strip", import("zod").ZodTypeAny, {
|
34708
|
-
|
34709
|
-
|
34710
|
-
attributeId: string;
|
34897
|
+
message: string;
|
34898
|
+
error?: any;
|
34711
34899
|
}, {
|
34712
|
-
|
34713
|
-
|
34714
|
-
|
34715
|
-
|
34716
|
-
|
34717
|
-
|
34718
|
-
attributeId: import("zod").ZodString;
|
34719
|
-
value: import("zod").ZodString;
|
34900
|
+
message: string;
|
34901
|
+
error?: any;
|
34902
|
+
}>;
|
34903
|
+
404: import("zod").ZodObject<{
|
34904
|
+
message: import("zod").ZodString;
|
34905
|
+
error: import("zod").ZodAny;
|
34720
34906
|
}, "strip", import("zod").ZodTypeAny, {
|
34721
|
-
|
34722
|
-
|
34723
|
-
attributeId: string;
|
34907
|
+
message: string;
|
34908
|
+
error?: any;
|
34724
34909
|
}, {
|
34725
|
-
|
34726
|
-
|
34727
|
-
|
34728
|
-
|
34729
|
-
|
34730
|
-
|
34731
|
-
attributeId: import("zod").ZodString;
|
34732
|
-
value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
34733
|
-
type: import("zod").ZodString;
|
34734
|
-
isDefaultAttribute: import("zod").ZodBoolean;
|
34910
|
+
message: string;
|
34911
|
+
error?: any;
|
34912
|
+
}>;
|
34913
|
+
422: import("zod").ZodObject<{
|
34914
|
+
message: import("zod").ZodString;
|
34915
|
+
error: import("zod").ZodAny;
|
34735
34916
|
}, "strip", import("zod").ZodTypeAny, {
|
34736
|
-
|
34737
|
-
|
34738
|
-
isRequired: boolean;
|
34739
|
-
attributeId: string;
|
34740
|
-
isDefaultAttribute: boolean;
|
34917
|
+
message: string;
|
34918
|
+
error?: any;
|
34741
34919
|
}, {
|
34742
|
-
|
34743
|
-
|
34744
|
-
|
34745
|
-
|
34746
|
-
|
34747
|
-
|
34920
|
+
message: string;
|
34921
|
+
error?: any;
|
34922
|
+
}>;
|
34923
|
+
};
|
34924
|
+
path: "contact/:id";
|
34925
|
+
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
34926
|
+
'x-tenant': import("zod").ZodString;
|
34927
|
+
authorization: import("zod").ZodString;
|
34928
|
+
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
34929
|
+
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
34748
34930
|
}, "strip", import("zod").ZodTypeAny, {
|
34749
|
-
|
34750
|
-
|
34751
|
-
|
34752
|
-
|
34753
|
-
} | undefined;
|
34754
|
-
email?: {
|
34755
|
-
value: {
|
34756
|
-
isPrimary: boolean;
|
34757
|
-
email: string;
|
34758
|
-
}[];
|
34759
|
-
isRequired: boolean;
|
34760
|
-
attributeId: string;
|
34761
|
-
} | undefined;
|
34762
|
-
channel?: {
|
34763
|
-
value: string;
|
34764
|
-
isRequired: boolean;
|
34765
|
-
attributeId: string;
|
34766
|
-
} | undefined;
|
34767
|
-
address?: {
|
34768
|
-
value: string;
|
34769
|
-
isRequired: boolean;
|
34770
|
-
attributeId: string;
|
34771
|
-
} | undefined;
|
34772
|
-
phone?: {
|
34773
|
-
value: {
|
34774
|
-
isPrimary: boolean;
|
34775
|
-
phone: string;
|
34776
|
-
}[];
|
34777
|
-
isRequired: boolean;
|
34778
|
-
attributeId: string;
|
34779
|
-
} | undefined;
|
34780
|
-
notes?: {
|
34781
|
-
value: string;
|
34782
|
-
isRequired: boolean;
|
34783
|
-
attributeId: string;
|
34784
|
-
} | undefined;
|
34785
|
-
tags?: {
|
34786
|
-
value: string[];
|
34787
|
-
isRequired: boolean;
|
34788
|
-
attributeId: string;
|
34789
|
-
} | undefined;
|
34790
|
-
company?: {
|
34791
|
-
value: string;
|
34792
|
-
isRequired: boolean;
|
34793
|
-
attributeId: string;
|
34794
|
-
} | undefined;
|
34795
|
-
customFields?: {
|
34796
|
-
type: string;
|
34797
|
-
value: (string | string[]) & (string | string[] | undefined);
|
34798
|
-
isRequired: boolean;
|
34799
|
-
attributeId: string;
|
34800
|
-
isDefaultAttribute: boolean;
|
34801
|
-
}[] | undefined;
|
34931
|
+
'x-tenant': string;
|
34932
|
+
authorization: string;
|
34933
|
+
'x-client-timezone': string;
|
34934
|
+
'x-code'?: string | undefined;
|
34802
34935
|
}, {
|
34803
|
-
|
34804
|
-
|
34805
|
-
|
34806
|
-
|
34807
|
-
|
34808
|
-
|
34809
|
-
|
34810
|
-
|
34811
|
-
|
34812
|
-
}[];
|
34813
|
-
isRequired: boolean;
|
34814
|
-
attributeId: string;
|
34815
|
-
} | undefined;
|
34816
|
-
channel?: {
|
34817
|
-
value: string;
|
34818
|
-
isRequired: boolean;
|
34819
|
-
attributeId: string;
|
34820
|
-
} | undefined;
|
34821
|
-
address?: {
|
34822
|
-
value: string;
|
34823
|
-
isRequired: boolean;
|
34824
|
-
attributeId: string;
|
34825
|
-
} | undefined;
|
34826
|
-
phone?: {
|
34827
|
-
value: {
|
34828
|
-
isPrimary: boolean;
|
34829
|
-
phone: string;
|
34830
|
-
}[];
|
34831
|
-
isRequired: boolean;
|
34832
|
-
attributeId: string;
|
34833
|
-
} | undefined;
|
34834
|
-
notes?: {
|
34835
|
-
value: string;
|
34836
|
-
isRequired: boolean;
|
34837
|
-
attributeId: string;
|
34838
|
-
} | undefined;
|
34839
|
-
tags?: {
|
34840
|
-
value: string[];
|
34841
|
-
isRequired: boolean;
|
34842
|
-
attributeId: string;
|
34843
|
-
} | undefined;
|
34844
|
-
company?: {
|
34845
|
-
value: string;
|
34846
|
-
isRequired: boolean;
|
34847
|
-
attributeId: string;
|
34848
|
-
} | undefined;
|
34849
|
-
customFields?: {
|
34850
|
-
type: string;
|
34851
|
-
value: (string | string[]) & (string | string[] | undefined);
|
34852
|
-
isRequired: boolean;
|
34853
|
-
attributeId: string;
|
34854
|
-
isDefaultAttribute: boolean;
|
34855
|
-
}[] | undefined;
|
34856
|
-
}>;
|
34857
|
-
summary: "Update a contact";
|
34858
|
-
method: "PATCH";
|
34859
|
-
pathParams: import("zod").ZodObject<{
|
34860
|
-
id: import("zod").ZodString;
|
34936
|
+
'x-tenant': string;
|
34937
|
+
authorization: string;
|
34938
|
+
'x-code'?: string | undefined;
|
34939
|
+
'x-client-timezone'?: string | undefined;
|
34940
|
+
}>>>;
|
34941
|
+
};
|
34942
|
+
createContactByPhone: {
|
34943
|
+
body: import("zod").ZodObject<{
|
34944
|
+
phoneNumber: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
34861
34945
|
}, "strip", import("zod").ZodTypeAny, {
|
34862
|
-
|
34946
|
+
phoneNumber: string;
|
34863
34947
|
}, {
|
34864
|
-
|
34948
|
+
phoneNumber: string;
|
34865
34949
|
}>;
|
34950
|
+
summary: "Create a new contact using phone number";
|
34951
|
+
method: "POST";
|
34866
34952
|
responses: {
|
34867
|
-
|
34953
|
+
201: import("zod").ZodObject<{
|
34868
34954
|
requestId: import("zod").ZodString;
|
34869
34955
|
data: import("zod").ZodObject<{
|
34870
34956
|
id: import("zod").ZodString;
|
@@ -35867,99 +35953,7 @@ export declare const apiContract: {
|
|
35867
35953
|
error?: any;
|
35868
35954
|
}>;
|
35869
35955
|
};
|
35870
|
-
path: "contact
|
35871
|
-
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
35872
|
-
'x-tenant': import("zod").ZodString;
|
35873
|
-
authorization: import("zod").ZodString;
|
35874
|
-
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
35875
|
-
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
35876
|
-
}, "strip", import("zod").ZodTypeAny, {
|
35877
|
-
'x-tenant': string;
|
35878
|
-
authorization: string;
|
35879
|
-
'x-client-timezone': string;
|
35880
|
-
'x-code'?: string | undefined;
|
35881
|
-
}, {
|
35882
|
-
'x-tenant': string;
|
35883
|
-
authorization: string;
|
35884
|
-
'x-code'?: string | undefined;
|
35885
|
-
'x-client-timezone'?: string | undefined;
|
35886
|
-
}>>>;
|
35887
|
-
};
|
35888
|
-
delete: {
|
35889
|
-
body: null;
|
35890
|
-
summary: "Delete a contact";
|
35891
|
-
method: "DELETE";
|
35892
|
-
pathParams: import("zod").ZodObject<{
|
35893
|
-
id: import("zod").ZodString;
|
35894
|
-
}, "strip", import("zod").ZodTypeAny, {
|
35895
|
-
id: string;
|
35896
|
-
}, {
|
35897
|
-
id: string;
|
35898
|
-
}>;
|
35899
|
-
responses: {
|
35900
|
-
200: import("zod").ZodObject<{
|
35901
|
-
requestId: import("zod").ZodString;
|
35902
|
-
message: import("zod").ZodString;
|
35903
|
-
}, "strip", import("zod").ZodTypeAny, {
|
35904
|
-
message: string;
|
35905
|
-
requestId: string;
|
35906
|
-
}, {
|
35907
|
-
message: string;
|
35908
|
-
requestId: string;
|
35909
|
-
}>;
|
35910
|
-
400: import("zod").ZodObject<{
|
35911
|
-
message: import("zod").ZodString;
|
35912
|
-
}, "strip", import("zod").ZodTypeAny, {
|
35913
|
-
message: string;
|
35914
|
-
}, {
|
35915
|
-
message: string;
|
35916
|
-
}>;
|
35917
|
-
409: import("zod").ZodObject<{
|
35918
|
-
message: import("zod").ZodString;
|
35919
|
-
}, "strip", import("zod").ZodTypeAny, {
|
35920
|
-
message: string;
|
35921
|
-
}, {
|
35922
|
-
message: string;
|
35923
|
-
}>;
|
35924
|
-
500: import("zod").ZodObject<{
|
35925
|
-
message: import("zod").ZodString;
|
35926
|
-
}, "strip", import("zod").ZodTypeAny, {
|
35927
|
-
message: string;
|
35928
|
-
}, {
|
35929
|
-
message: string;
|
35930
|
-
}>;
|
35931
|
-
401: import("zod").ZodObject<{
|
35932
|
-
message: import("zod").ZodString;
|
35933
|
-
error: import("zod").ZodAny;
|
35934
|
-
}, "strip", import("zod").ZodTypeAny, {
|
35935
|
-
message: string;
|
35936
|
-
error?: any;
|
35937
|
-
}, {
|
35938
|
-
message: string;
|
35939
|
-
error?: any;
|
35940
|
-
}>;
|
35941
|
-
404: import("zod").ZodObject<{
|
35942
|
-
message: import("zod").ZodString;
|
35943
|
-
error: import("zod").ZodAny;
|
35944
|
-
}, "strip", import("zod").ZodTypeAny, {
|
35945
|
-
message: string;
|
35946
|
-
error?: any;
|
35947
|
-
}, {
|
35948
|
-
message: string;
|
35949
|
-
error?: any;
|
35950
|
-
}>;
|
35951
|
-
422: import("zod").ZodObject<{
|
35952
|
-
message: import("zod").ZodString;
|
35953
|
-
error: import("zod").ZodAny;
|
35954
|
-
}, "strip", import("zod").ZodTypeAny, {
|
35955
|
-
message: string;
|
35956
|
-
error?: any;
|
35957
|
-
}, {
|
35958
|
-
message: string;
|
35959
|
-
error?: any;
|
35960
|
-
}>;
|
35961
|
-
};
|
35962
|
-
path: "contact/:id";
|
35956
|
+
path: "contact/phone";
|
35963
35957
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
35964
35958
|
'x-tenant': import("zod").ZodString;
|
35965
35959
|
authorization: import("zod").ZodString;
|
@@ -35977,16 +35971,19 @@ export declare const apiContract: {
|
|
35977
35971
|
'x-client-timezone'?: string | undefined;
|
35978
35972
|
}>>>;
|
35979
35973
|
};
|
35980
|
-
|
35974
|
+
updateFromOngoingCall: {
|
35981
35975
|
body: import("zod").ZodObject<{
|
35982
|
-
|
35976
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
35977
|
+
companyId: import("zod").ZodOptional<import("zod").ZodString>;
|
35983
35978
|
}, "strip", import("zod").ZodTypeAny, {
|
35984
|
-
|
35979
|
+
name?: string | undefined;
|
35980
|
+
companyId?: string | undefined;
|
35985
35981
|
}, {
|
35986
|
-
|
35982
|
+
name?: string | undefined;
|
35983
|
+
companyId?: string | undefined;
|
35987
35984
|
}>;
|
35988
|
-
summary: "
|
35989
|
-
method: "
|
35985
|
+
summary: "Update a contact with name and company while making ongoing call";
|
35986
|
+
method: "PATCH";
|
35990
35987
|
responses: {
|
35991
35988
|
201: import("zod").ZodObject<{
|
35992
35989
|
requestId: import("zod").ZodString;
|
@@ -36991,7 +36988,7 @@ export declare const apiContract: {
|
|
36991
36988
|
error?: any;
|
36992
36989
|
}>;
|
36993
36990
|
};
|
36994
|
-
path: "contact/
|
36991
|
+
path: "contact/:id/ongoing";
|
36995
36992
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
36996
36993
|
'x-tenant': import("zod").ZodString;
|
36997
36994
|
authorization: import("zod").ZodString;
|
@@ -37009,21 +37006,57 @@ export declare const apiContract: {
|
|
37009
37006
|
'x-client-timezone'?: string | undefined;
|
37010
37007
|
}>>>;
|
37011
37008
|
};
|
37012
|
-
|
37009
|
+
merge: {
|
37013
37010
|
body: import("zod").ZodObject<{
|
37014
|
-
|
37015
|
-
|
37011
|
+
primaryContactId: import("zod").ZodString;
|
37012
|
+
emails: import("zod").ZodArray<import("zod").ZodObject<{
|
37013
|
+
email: import("zod").ZodString;
|
37014
|
+
isPrimary: import("zod").ZodBoolean;
|
37015
|
+
}, "strip", import("zod").ZodTypeAny, {
|
37016
|
+
isPrimary: boolean;
|
37017
|
+
email: string;
|
37018
|
+
}, {
|
37019
|
+
isPrimary: boolean;
|
37020
|
+
email: string;
|
37021
|
+
}>, "many">;
|
37022
|
+
phones: import("zod").ZodArray<import("zod").ZodObject<{
|
37023
|
+
phone: import("zod").ZodString;
|
37024
|
+
isPrimary: import("zod").ZodBoolean;
|
37025
|
+
}, "strip", import("zod").ZodTypeAny, {
|
37026
|
+
isPrimary: boolean;
|
37027
|
+
phone: string;
|
37028
|
+
}, {
|
37029
|
+
isPrimary: boolean;
|
37030
|
+
phone: string;
|
37031
|
+
}>, "many">;
|
37032
|
+
otherContacts: import("zod").ZodArray<import("zod").ZodString, "many">;
|
37016
37033
|
}, "strip", import("zod").ZodTypeAny, {
|
37017
|
-
|
37018
|
-
|
37034
|
+
primaryContactId: string;
|
37035
|
+
emails: {
|
37036
|
+
isPrimary: boolean;
|
37037
|
+
email: string;
|
37038
|
+
}[];
|
37039
|
+
phones: {
|
37040
|
+
isPrimary: boolean;
|
37041
|
+
phone: string;
|
37042
|
+
}[];
|
37043
|
+
otherContacts: string[];
|
37019
37044
|
}, {
|
37020
|
-
|
37021
|
-
|
37045
|
+
primaryContactId: string;
|
37046
|
+
emails: {
|
37047
|
+
isPrimary: boolean;
|
37048
|
+
email: string;
|
37049
|
+
}[];
|
37050
|
+
phones: {
|
37051
|
+
isPrimary: boolean;
|
37052
|
+
phone: string;
|
37053
|
+
}[];
|
37054
|
+
otherContacts: string[];
|
37022
37055
|
}>;
|
37023
|
-
summary: "
|
37024
|
-
method: "
|
37056
|
+
summary: "Merge contacts into a single contact.";
|
37057
|
+
method: "POST";
|
37025
37058
|
responses: {
|
37026
|
-
|
37059
|
+
200: import("zod").ZodObject<{
|
37027
37060
|
requestId: import("zod").ZodString;
|
37028
37061
|
data: import("zod").ZodObject<{
|
37029
37062
|
id: import("zod").ZodString;
|
@@ -38026,7 +38059,7 @@ export declare const apiContract: {
|
|
38026
38059
|
error?: any;
|
38027
38060
|
}>;
|
38028
38061
|
};
|
38029
|
-
path: "contact
|
38062
|
+
path: "contact/merge";
|
38030
38063
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
38031
38064
|
'x-tenant': import("zod").ZodString;
|
38032
38065
|
authorization: import("zod").ZodString;
|
@@ -38044,55 +38077,385 @@ export declare const apiContract: {
|
|
38044
38077
|
'x-client-timezone'?: string | undefined;
|
38045
38078
|
}>>>;
|
38046
38079
|
};
|
38047
|
-
|
38080
|
+
checkContactPhone: {
|
38048
38081
|
body: import("zod").ZodObject<{
|
38049
|
-
|
38050
|
-
|
38051
|
-
|
38052
|
-
|
38082
|
+
contactId: import("zod").ZodOptional<import("zod").ZodString>;
|
38083
|
+
phoneNumber: import("zod").ZodString;
|
38084
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38085
|
+
phoneNumber: string;
|
38086
|
+
contactId?: string | undefined;
|
38087
|
+
}, {
|
38088
|
+
phoneNumber: string;
|
38089
|
+
contactId?: string | undefined;
|
38090
|
+
}>;
|
38091
|
+
summary: "Check whether a contact owns a phone number";
|
38092
|
+
method: "POST";
|
38093
|
+
responses: {
|
38094
|
+
200: import("zod").ZodObject<{
|
38095
|
+
requestId: import("zod").ZodString;
|
38096
|
+
existed: import("zod").ZodBoolean;
|
38053
38097
|
}, "strip", import("zod").ZodTypeAny, {
|
38054
|
-
|
38055
|
-
|
38098
|
+
requestId: string;
|
38099
|
+
existed: boolean;
|
38056
38100
|
}, {
|
38057
|
-
|
38058
|
-
|
38059
|
-
}
|
38060
|
-
|
38061
|
-
|
38062
|
-
isPrimary: import("zod").ZodBoolean;
|
38101
|
+
requestId: string;
|
38102
|
+
existed: boolean;
|
38103
|
+
}>;
|
38104
|
+
400: import("zod").ZodObject<{
|
38105
|
+
message: import("zod").ZodString;
|
38063
38106
|
}, "strip", import("zod").ZodTypeAny, {
|
38064
|
-
|
38065
|
-
phone: string;
|
38107
|
+
message: string;
|
38066
38108
|
}, {
|
38067
|
-
|
38068
|
-
|
38069
|
-
|
38070
|
-
|
38109
|
+
message: string;
|
38110
|
+
}>;
|
38111
|
+
409: import("zod").ZodObject<{
|
38112
|
+
message: import("zod").ZodString;
|
38113
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38114
|
+
message: string;
|
38115
|
+
}, {
|
38116
|
+
message: string;
|
38117
|
+
}>;
|
38118
|
+
500: import("zod").ZodObject<{
|
38119
|
+
message: import("zod").ZodString;
|
38120
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38121
|
+
message: string;
|
38122
|
+
}, {
|
38123
|
+
message: string;
|
38124
|
+
}>;
|
38125
|
+
401: import("zod").ZodObject<{
|
38126
|
+
message: import("zod").ZodString;
|
38127
|
+
error: import("zod").ZodAny;
|
38128
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38129
|
+
message: string;
|
38130
|
+
error?: any;
|
38131
|
+
}, {
|
38132
|
+
message: string;
|
38133
|
+
error?: any;
|
38134
|
+
}>;
|
38135
|
+
404: import("zod").ZodObject<{
|
38136
|
+
message: import("zod").ZodString;
|
38137
|
+
error: import("zod").ZodAny;
|
38138
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38139
|
+
message: string;
|
38140
|
+
error?: any;
|
38141
|
+
}, {
|
38142
|
+
message: string;
|
38143
|
+
error?: any;
|
38144
|
+
}>;
|
38145
|
+
422: import("zod").ZodObject<{
|
38146
|
+
message: import("zod").ZodString;
|
38147
|
+
error: import("zod").ZodAny;
|
38148
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38149
|
+
message: string;
|
38150
|
+
error?: any;
|
38151
|
+
}, {
|
38152
|
+
message: string;
|
38153
|
+
error?: any;
|
38154
|
+
}>;
|
38155
|
+
};
|
38156
|
+
path: "contact/check/phone";
|
38157
|
+
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
38158
|
+
'x-tenant': import("zod").ZodString;
|
38159
|
+
authorization: import("zod").ZodString;
|
38160
|
+
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
38161
|
+
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
38071
38162
|
}, "strip", import("zod").ZodTypeAny, {
|
38072
|
-
|
38073
|
-
|
38074
|
-
|
38075
|
-
|
38076
|
-
}[];
|
38077
|
-
phones: {
|
38078
|
-
isPrimary: boolean;
|
38079
|
-
phone: string;
|
38080
|
-
}[];
|
38081
|
-
otherContacts: string[];
|
38163
|
+
'x-tenant': string;
|
38164
|
+
authorization: string;
|
38165
|
+
'x-client-timezone': string;
|
38166
|
+
'x-code'?: string | undefined;
|
38082
38167
|
}, {
|
38083
|
-
|
38084
|
-
|
38085
|
-
|
38086
|
-
|
38087
|
-
|
38088
|
-
|
38089
|
-
|
38090
|
-
|
38091
|
-
|
38092
|
-
|
38168
|
+
'x-tenant': string;
|
38169
|
+
authorization: string;
|
38170
|
+
'x-code'?: string | undefined;
|
38171
|
+
'x-client-timezone'?: string | undefined;
|
38172
|
+
}>>>;
|
38173
|
+
};
|
38174
|
+
checkContactEmail: {
|
38175
|
+
body: import("zod").ZodObject<{
|
38176
|
+
contactId: import("zod").ZodOptional<import("zod").ZodString>;
|
38177
|
+
email: import("zod").ZodString;
|
38178
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38179
|
+
email: string;
|
38180
|
+
contactId?: string | undefined;
|
38181
|
+
}, {
|
38182
|
+
email: string;
|
38183
|
+
contactId?: string | undefined;
|
38093
38184
|
}>;
|
38094
|
-
summary: "
|
38185
|
+
summary: "Check whether a contact owns a email";
|
38095
38186
|
method: "POST";
|
38187
|
+
responses: {
|
38188
|
+
200: import("zod").ZodObject<{
|
38189
|
+
requestId: import("zod").ZodString;
|
38190
|
+
existed: import("zod").ZodBoolean;
|
38191
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38192
|
+
requestId: string;
|
38193
|
+
existed: boolean;
|
38194
|
+
}, {
|
38195
|
+
requestId: string;
|
38196
|
+
existed: boolean;
|
38197
|
+
}>;
|
38198
|
+
400: import("zod").ZodObject<{
|
38199
|
+
message: import("zod").ZodString;
|
38200
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38201
|
+
message: string;
|
38202
|
+
}, {
|
38203
|
+
message: string;
|
38204
|
+
}>;
|
38205
|
+
409: import("zod").ZodObject<{
|
38206
|
+
message: import("zod").ZodString;
|
38207
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38208
|
+
message: string;
|
38209
|
+
}, {
|
38210
|
+
message: string;
|
38211
|
+
}>;
|
38212
|
+
500: import("zod").ZodObject<{
|
38213
|
+
message: import("zod").ZodString;
|
38214
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38215
|
+
message: string;
|
38216
|
+
}, {
|
38217
|
+
message: string;
|
38218
|
+
}>;
|
38219
|
+
401: import("zod").ZodObject<{
|
38220
|
+
message: import("zod").ZodString;
|
38221
|
+
error: import("zod").ZodAny;
|
38222
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38223
|
+
message: string;
|
38224
|
+
error?: any;
|
38225
|
+
}, {
|
38226
|
+
message: string;
|
38227
|
+
error?: any;
|
38228
|
+
}>;
|
38229
|
+
404: import("zod").ZodObject<{
|
38230
|
+
message: import("zod").ZodString;
|
38231
|
+
error: import("zod").ZodAny;
|
38232
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38233
|
+
message: string;
|
38234
|
+
error?: any;
|
38235
|
+
}, {
|
38236
|
+
message: string;
|
38237
|
+
error?: any;
|
38238
|
+
}>;
|
38239
|
+
422: import("zod").ZodObject<{
|
38240
|
+
message: import("zod").ZodString;
|
38241
|
+
error: import("zod").ZodAny;
|
38242
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38243
|
+
message: string;
|
38244
|
+
error?: any;
|
38245
|
+
}, {
|
38246
|
+
message: string;
|
38247
|
+
error?: any;
|
38248
|
+
}>;
|
38249
|
+
};
|
38250
|
+
path: "contact/check/email";
|
38251
|
+
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
38252
|
+
'x-tenant': import("zod").ZodString;
|
38253
|
+
authorization: import("zod").ZodString;
|
38254
|
+
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
38255
|
+
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
38256
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38257
|
+
'x-tenant': string;
|
38258
|
+
authorization: string;
|
38259
|
+
'x-client-timezone': string;
|
38260
|
+
'x-code'?: string | undefined;
|
38261
|
+
}, {
|
38262
|
+
'x-tenant': string;
|
38263
|
+
authorization: string;
|
38264
|
+
'x-code'?: string | undefined;
|
38265
|
+
'x-client-timezone'?: string | undefined;
|
38266
|
+
}>>>;
|
38267
|
+
};
|
38268
|
+
addAttachments: {
|
38269
|
+
body: import("zod").ZodObject<{
|
38270
|
+
attributeId: import("zod").ZodString;
|
38271
|
+
attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
38272
|
+
bucketName: import("zod").ZodString;
|
38273
|
+
fileKey: import("zod").ZodString;
|
38274
|
+
fileName: import("zod").ZodString;
|
38275
|
+
fileSize: import("zod").ZodNumber;
|
38276
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38277
|
+
fileName: string;
|
38278
|
+
fileKey: string;
|
38279
|
+
bucketName: string;
|
38280
|
+
fileSize: number;
|
38281
|
+
}, {
|
38282
|
+
fileName: string;
|
38283
|
+
fileKey: string;
|
38284
|
+
bucketName: string;
|
38285
|
+
fileSize: number;
|
38286
|
+
}>, "many">>;
|
38287
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38288
|
+
attributeId: string;
|
38289
|
+
attachments?: {
|
38290
|
+
fileName: string;
|
38291
|
+
fileKey: string;
|
38292
|
+
bucketName: string;
|
38293
|
+
fileSize: number;
|
38294
|
+
}[] | undefined;
|
38295
|
+
}, {
|
38296
|
+
attributeId: string;
|
38297
|
+
attachments?: {
|
38298
|
+
fileName: string;
|
38299
|
+
fileKey: string;
|
38300
|
+
bucketName: string;
|
38301
|
+
fileSize: number;
|
38302
|
+
}[] | undefined;
|
38303
|
+
}>;
|
38304
|
+
summary: " attachment information from pre-uploaded files in AWS S3 to contacts.";
|
38305
|
+
method: "POST";
|
38306
|
+
pathParams: import("zod").ZodObject<{
|
38307
|
+
id: import("zod").ZodString;
|
38308
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38309
|
+
id: string;
|
38310
|
+
}, {
|
38311
|
+
id: string;
|
38312
|
+
}>;
|
38313
|
+
responses: {
|
38314
|
+
201: import("zod").ZodObject<{
|
38315
|
+
requestId: import("zod").ZodString;
|
38316
|
+
message: import("zod").ZodObject<{
|
38317
|
+
id: import("zod").ZodString;
|
38318
|
+
createdAt: import("zod").ZodDate;
|
38319
|
+
updatedAt: import("zod").ZodDate;
|
38320
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
38321
|
+
textValue: import("zod").ZodNullable<import("zod").ZodString>;
|
38322
|
+
booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
38323
|
+
numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
|
38324
|
+
dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
|
38325
|
+
entityId: import("zod").ZodString;
|
38326
|
+
attributeId: import("zod").ZodString;
|
38327
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38328
|
+
id: string;
|
38329
|
+
createdAt: Date;
|
38330
|
+
updatedAt: Date;
|
38331
|
+
deletedAt: Date | null;
|
38332
|
+
attributeId: string;
|
38333
|
+
textValue: string | null;
|
38334
|
+
booleanValue: boolean | null;
|
38335
|
+
numberValue: number | null;
|
38336
|
+
dateValue: Date | null;
|
38337
|
+
entityId: string;
|
38338
|
+
}, {
|
38339
|
+
id: string;
|
38340
|
+
createdAt: Date;
|
38341
|
+
updatedAt: Date;
|
38342
|
+
deletedAt: Date | null;
|
38343
|
+
attributeId: string;
|
38344
|
+
textValue: string | null;
|
38345
|
+
booleanValue: boolean | null;
|
38346
|
+
numberValue: number | null;
|
38347
|
+
dateValue: Date | null;
|
38348
|
+
entityId: string;
|
38349
|
+
}>;
|
38350
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38351
|
+
message: {
|
38352
|
+
id: string;
|
38353
|
+
createdAt: Date;
|
38354
|
+
updatedAt: Date;
|
38355
|
+
deletedAt: Date | null;
|
38356
|
+
attributeId: string;
|
38357
|
+
textValue: string | null;
|
38358
|
+
booleanValue: boolean | null;
|
38359
|
+
numberValue: number | null;
|
38360
|
+
dateValue: Date | null;
|
38361
|
+
entityId: string;
|
38362
|
+
};
|
38363
|
+
requestId: string;
|
38364
|
+
}, {
|
38365
|
+
message: {
|
38366
|
+
id: string;
|
38367
|
+
createdAt: Date;
|
38368
|
+
updatedAt: Date;
|
38369
|
+
deletedAt: Date | null;
|
38370
|
+
attributeId: string;
|
38371
|
+
textValue: string | null;
|
38372
|
+
booleanValue: boolean | null;
|
38373
|
+
numberValue: number | null;
|
38374
|
+
dateValue: Date | null;
|
38375
|
+
entityId: string;
|
38376
|
+
};
|
38377
|
+
requestId: string;
|
38378
|
+
}>;
|
38379
|
+
400: import("zod").ZodObject<{
|
38380
|
+
message: import("zod").ZodString;
|
38381
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38382
|
+
message: string;
|
38383
|
+
}, {
|
38384
|
+
message: string;
|
38385
|
+
}>;
|
38386
|
+
409: import("zod").ZodObject<{
|
38387
|
+
message: import("zod").ZodString;
|
38388
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38389
|
+
message: string;
|
38390
|
+
}, {
|
38391
|
+
message: string;
|
38392
|
+
}>;
|
38393
|
+
500: import("zod").ZodObject<{
|
38394
|
+
message: import("zod").ZodString;
|
38395
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38396
|
+
message: string;
|
38397
|
+
}, {
|
38398
|
+
message: string;
|
38399
|
+
}>;
|
38400
|
+
401: import("zod").ZodObject<{
|
38401
|
+
message: import("zod").ZodString;
|
38402
|
+
error: import("zod").ZodAny;
|
38403
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38404
|
+
message: string;
|
38405
|
+
error?: any;
|
38406
|
+
}, {
|
38407
|
+
message: string;
|
38408
|
+
error?: any;
|
38409
|
+
}>;
|
38410
|
+
404: import("zod").ZodObject<{
|
38411
|
+
message: import("zod").ZodString;
|
38412
|
+
error: import("zod").ZodAny;
|
38413
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38414
|
+
message: string;
|
38415
|
+
error?: any;
|
38416
|
+
}, {
|
38417
|
+
message: string;
|
38418
|
+
error?: any;
|
38419
|
+
}>;
|
38420
|
+
422: import("zod").ZodObject<{
|
38421
|
+
message: import("zod").ZodString;
|
38422
|
+
error: import("zod").ZodAny;
|
38423
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38424
|
+
message: string;
|
38425
|
+
error?: any;
|
38426
|
+
}, {
|
38427
|
+
message: string;
|
38428
|
+
error?: any;
|
38429
|
+
}>;
|
38430
|
+
};
|
38431
|
+
path: "contact/:id/attachments";
|
38432
|
+
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
38433
|
+
'x-tenant': import("zod").ZodString;
|
38434
|
+
authorization: import("zod").ZodString;
|
38435
|
+
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
38436
|
+
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
38437
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38438
|
+
'x-tenant': string;
|
38439
|
+
authorization: string;
|
38440
|
+
'x-client-timezone': string;
|
38441
|
+
'x-code'?: string | undefined;
|
38442
|
+
}, {
|
38443
|
+
'x-tenant': string;
|
38444
|
+
authorization: string;
|
38445
|
+
'x-code'?: string | undefined;
|
38446
|
+
'x-client-timezone'?: string | undefined;
|
38447
|
+
}>>>;
|
38448
|
+
};
|
38449
|
+
getById: {
|
38450
|
+
summary: "Get a contact by id";
|
38451
|
+
method: "GET";
|
38452
|
+
pathParams: import("zod").ZodObject<{
|
38453
|
+
id: import("zod").ZodString;
|
38454
|
+
}, "strip", import("zod").ZodTypeAny, {
|
38455
|
+
id: string;
|
38456
|
+
}, {
|
38457
|
+
id: string;
|
38458
|
+
}>;
|
38096
38459
|
responses: {
|
38097
38460
|
200: import("zod").ZodObject<{
|
38098
38461
|
requestId: import("zod").ZodString;
|
@@ -39097,376 +39460,7 @@ export declare const apiContract: {
|
|
39097
39460
|
error?: any;
|
39098
39461
|
}>;
|
39099
39462
|
};
|
39100
|
-
path: "contact
|
39101
|
-
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
39102
|
-
'x-tenant': import("zod").ZodString;
|
39103
|
-
authorization: import("zod").ZodString;
|
39104
|
-
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
39105
|
-
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
39106
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39107
|
-
'x-tenant': string;
|
39108
|
-
authorization: string;
|
39109
|
-
'x-client-timezone': string;
|
39110
|
-
'x-code'?: string | undefined;
|
39111
|
-
}, {
|
39112
|
-
'x-tenant': string;
|
39113
|
-
authorization: string;
|
39114
|
-
'x-code'?: string | undefined;
|
39115
|
-
'x-client-timezone'?: string | undefined;
|
39116
|
-
}>>>;
|
39117
|
-
};
|
39118
|
-
checkContactPhone: {
|
39119
|
-
body: import("zod").ZodObject<{
|
39120
|
-
contactId: import("zod").ZodOptional<import("zod").ZodString>;
|
39121
|
-
phoneNumber: import("zod").ZodString;
|
39122
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39123
|
-
phoneNumber: string;
|
39124
|
-
contactId?: string | undefined;
|
39125
|
-
}, {
|
39126
|
-
phoneNumber: string;
|
39127
|
-
contactId?: string | undefined;
|
39128
|
-
}>;
|
39129
|
-
summary: "Check whether a contact owns a phone number";
|
39130
|
-
method: "POST";
|
39131
|
-
responses: {
|
39132
|
-
200: import("zod").ZodObject<{
|
39133
|
-
requestId: import("zod").ZodString;
|
39134
|
-
existed: import("zod").ZodBoolean;
|
39135
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39136
|
-
requestId: string;
|
39137
|
-
existed: boolean;
|
39138
|
-
}, {
|
39139
|
-
requestId: string;
|
39140
|
-
existed: boolean;
|
39141
|
-
}>;
|
39142
|
-
400: import("zod").ZodObject<{
|
39143
|
-
message: import("zod").ZodString;
|
39144
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39145
|
-
message: string;
|
39146
|
-
}, {
|
39147
|
-
message: string;
|
39148
|
-
}>;
|
39149
|
-
409: import("zod").ZodObject<{
|
39150
|
-
message: import("zod").ZodString;
|
39151
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39152
|
-
message: string;
|
39153
|
-
}, {
|
39154
|
-
message: string;
|
39155
|
-
}>;
|
39156
|
-
500: import("zod").ZodObject<{
|
39157
|
-
message: import("zod").ZodString;
|
39158
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39159
|
-
message: string;
|
39160
|
-
}, {
|
39161
|
-
message: string;
|
39162
|
-
}>;
|
39163
|
-
401: import("zod").ZodObject<{
|
39164
|
-
message: import("zod").ZodString;
|
39165
|
-
error: import("zod").ZodAny;
|
39166
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39167
|
-
message: string;
|
39168
|
-
error?: any;
|
39169
|
-
}, {
|
39170
|
-
message: string;
|
39171
|
-
error?: any;
|
39172
|
-
}>;
|
39173
|
-
404: import("zod").ZodObject<{
|
39174
|
-
message: import("zod").ZodString;
|
39175
|
-
error: import("zod").ZodAny;
|
39176
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39177
|
-
message: string;
|
39178
|
-
error?: any;
|
39179
|
-
}, {
|
39180
|
-
message: string;
|
39181
|
-
error?: any;
|
39182
|
-
}>;
|
39183
|
-
422: import("zod").ZodObject<{
|
39184
|
-
message: import("zod").ZodString;
|
39185
|
-
error: import("zod").ZodAny;
|
39186
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39187
|
-
message: string;
|
39188
|
-
error?: any;
|
39189
|
-
}, {
|
39190
|
-
message: string;
|
39191
|
-
error?: any;
|
39192
|
-
}>;
|
39193
|
-
};
|
39194
|
-
path: "contact/check/phone";
|
39195
|
-
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
39196
|
-
'x-tenant': import("zod").ZodString;
|
39197
|
-
authorization: import("zod").ZodString;
|
39198
|
-
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
39199
|
-
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
39200
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39201
|
-
'x-tenant': string;
|
39202
|
-
authorization: string;
|
39203
|
-
'x-client-timezone': string;
|
39204
|
-
'x-code'?: string | undefined;
|
39205
|
-
}, {
|
39206
|
-
'x-tenant': string;
|
39207
|
-
authorization: string;
|
39208
|
-
'x-code'?: string | undefined;
|
39209
|
-
'x-client-timezone'?: string | undefined;
|
39210
|
-
}>>>;
|
39211
|
-
};
|
39212
|
-
checkContactEmail: {
|
39213
|
-
body: import("zod").ZodObject<{
|
39214
|
-
contactId: import("zod").ZodOptional<import("zod").ZodString>;
|
39215
|
-
email: import("zod").ZodString;
|
39216
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39217
|
-
email: string;
|
39218
|
-
contactId?: string | undefined;
|
39219
|
-
}, {
|
39220
|
-
email: string;
|
39221
|
-
contactId?: string | undefined;
|
39222
|
-
}>;
|
39223
|
-
summary: "Check whether a contact owns a email";
|
39224
|
-
method: "POST";
|
39225
|
-
responses: {
|
39226
|
-
200: import("zod").ZodObject<{
|
39227
|
-
requestId: import("zod").ZodString;
|
39228
|
-
existed: import("zod").ZodBoolean;
|
39229
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39230
|
-
requestId: string;
|
39231
|
-
existed: boolean;
|
39232
|
-
}, {
|
39233
|
-
requestId: string;
|
39234
|
-
existed: boolean;
|
39235
|
-
}>;
|
39236
|
-
400: import("zod").ZodObject<{
|
39237
|
-
message: import("zod").ZodString;
|
39238
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39239
|
-
message: string;
|
39240
|
-
}, {
|
39241
|
-
message: string;
|
39242
|
-
}>;
|
39243
|
-
409: import("zod").ZodObject<{
|
39244
|
-
message: import("zod").ZodString;
|
39245
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39246
|
-
message: string;
|
39247
|
-
}, {
|
39248
|
-
message: string;
|
39249
|
-
}>;
|
39250
|
-
500: import("zod").ZodObject<{
|
39251
|
-
message: import("zod").ZodString;
|
39252
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39253
|
-
message: string;
|
39254
|
-
}, {
|
39255
|
-
message: string;
|
39256
|
-
}>;
|
39257
|
-
401: import("zod").ZodObject<{
|
39258
|
-
message: import("zod").ZodString;
|
39259
|
-
error: import("zod").ZodAny;
|
39260
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39261
|
-
message: string;
|
39262
|
-
error?: any;
|
39263
|
-
}, {
|
39264
|
-
message: string;
|
39265
|
-
error?: any;
|
39266
|
-
}>;
|
39267
|
-
404: import("zod").ZodObject<{
|
39268
|
-
message: import("zod").ZodString;
|
39269
|
-
error: import("zod").ZodAny;
|
39270
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39271
|
-
message: string;
|
39272
|
-
error?: any;
|
39273
|
-
}, {
|
39274
|
-
message: string;
|
39275
|
-
error?: any;
|
39276
|
-
}>;
|
39277
|
-
422: import("zod").ZodObject<{
|
39278
|
-
message: import("zod").ZodString;
|
39279
|
-
error: import("zod").ZodAny;
|
39280
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39281
|
-
message: string;
|
39282
|
-
error?: any;
|
39283
|
-
}, {
|
39284
|
-
message: string;
|
39285
|
-
error?: any;
|
39286
|
-
}>;
|
39287
|
-
};
|
39288
|
-
path: "contact/check/email";
|
39289
|
-
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
39290
|
-
'x-tenant': import("zod").ZodString;
|
39291
|
-
authorization: import("zod").ZodString;
|
39292
|
-
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
39293
|
-
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
39294
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39295
|
-
'x-tenant': string;
|
39296
|
-
authorization: string;
|
39297
|
-
'x-client-timezone': string;
|
39298
|
-
'x-code'?: string | undefined;
|
39299
|
-
}, {
|
39300
|
-
'x-tenant': string;
|
39301
|
-
authorization: string;
|
39302
|
-
'x-code'?: string | undefined;
|
39303
|
-
'x-client-timezone'?: string | undefined;
|
39304
|
-
}>>>;
|
39305
|
-
};
|
39306
|
-
addAttachments: {
|
39307
|
-
body: import("zod").ZodObject<{
|
39308
|
-
attributeId: import("zod").ZodString;
|
39309
|
-
attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
39310
|
-
bucketName: import("zod").ZodString;
|
39311
|
-
fileKey: import("zod").ZodString;
|
39312
|
-
fileName: import("zod").ZodString;
|
39313
|
-
fileSize: import("zod").ZodNumber;
|
39314
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39315
|
-
fileName: string;
|
39316
|
-
fileKey: string;
|
39317
|
-
bucketName: string;
|
39318
|
-
fileSize: number;
|
39319
|
-
}, {
|
39320
|
-
fileName: string;
|
39321
|
-
fileKey: string;
|
39322
|
-
bucketName: string;
|
39323
|
-
fileSize: number;
|
39324
|
-
}>, "many">>;
|
39325
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39326
|
-
attributeId: string;
|
39327
|
-
attachments?: {
|
39328
|
-
fileName: string;
|
39329
|
-
fileKey: string;
|
39330
|
-
bucketName: string;
|
39331
|
-
fileSize: number;
|
39332
|
-
}[] | undefined;
|
39333
|
-
}, {
|
39334
|
-
attributeId: string;
|
39335
|
-
attachments?: {
|
39336
|
-
fileName: string;
|
39337
|
-
fileKey: string;
|
39338
|
-
bucketName: string;
|
39339
|
-
fileSize: number;
|
39340
|
-
}[] | undefined;
|
39341
|
-
}>;
|
39342
|
-
summary: " attachment information from pre-uploaded files in AWS S3 to contacts.";
|
39343
|
-
method: "POST";
|
39344
|
-
pathParams: import("zod").ZodObject<{
|
39345
|
-
id: import("zod").ZodString;
|
39346
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39347
|
-
id: string;
|
39348
|
-
}, {
|
39349
|
-
id: string;
|
39350
|
-
}>;
|
39351
|
-
responses: {
|
39352
|
-
201: import("zod").ZodObject<{
|
39353
|
-
requestId: import("zod").ZodString;
|
39354
|
-
message: import("zod").ZodObject<{
|
39355
|
-
id: import("zod").ZodString;
|
39356
|
-
createdAt: import("zod").ZodDate;
|
39357
|
-
updatedAt: import("zod").ZodDate;
|
39358
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
39359
|
-
textValue: import("zod").ZodNullable<import("zod").ZodString>;
|
39360
|
-
booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
39361
|
-
numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
|
39362
|
-
dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
|
39363
|
-
entityId: import("zod").ZodString;
|
39364
|
-
attributeId: import("zod").ZodString;
|
39365
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39366
|
-
id: string;
|
39367
|
-
createdAt: Date;
|
39368
|
-
updatedAt: Date;
|
39369
|
-
deletedAt: Date | null;
|
39370
|
-
attributeId: string;
|
39371
|
-
textValue: string | null;
|
39372
|
-
booleanValue: boolean | null;
|
39373
|
-
numberValue: number | null;
|
39374
|
-
dateValue: Date | null;
|
39375
|
-
entityId: string;
|
39376
|
-
}, {
|
39377
|
-
id: string;
|
39378
|
-
createdAt: Date;
|
39379
|
-
updatedAt: Date;
|
39380
|
-
deletedAt: Date | null;
|
39381
|
-
attributeId: string;
|
39382
|
-
textValue: string | null;
|
39383
|
-
booleanValue: boolean | null;
|
39384
|
-
numberValue: number | null;
|
39385
|
-
dateValue: Date | null;
|
39386
|
-
entityId: string;
|
39387
|
-
}>;
|
39388
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39389
|
-
message: {
|
39390
|
-
id: string;
|
39391
|
-
createdAt: Date;
|
39392
|
-
updatedAt: Date;
|
39393
|
-
deletedAt: Date | null;
|
39394
|
-
attributeId: string;
|
39395
|
-
textValue: string | null;
|
39396
|
-
booleanValue: boolean | null;
|
39397
|
-
numberValue: number | null;
|
39398
|
-
dateValue: Date | null;
|
39399
|
-
entityId: string;
|
39400
|
-
};
|
39401
|
-
requestId: string;
|
39402
|
-
}, {
|
39403
|
-
message: {
|
39404
|
-
id: string;
|
39405
|
-
createdAt: Date;
|
39406
|
-
updatedAt: Date;
|
39407
|
-
deletedAt: Date | null;
|
39408
|
-
attributeId: string;
|
39409
|
-
textValue: string | null;
|
39410
|
-
booleanValue: boolean | null;
|
39411
|
-
numberValue: number | null;
|
39412
|
-
dateValue: Date | null;
|
39413
|
-
entityId: string;
|
39414
|
-
};
|
39415
|
-
requestId: string;
|
39416
|
-
}>;
|
39417
|
-
400: import("zod").ZodObject<{
|
39418
|
-
message: import("zod").ZodString;
|
39419
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39420
|
-
message: string;
|
39421
|
-
}, {
|
39422
|
-
message: string;
|
39423
|
-
}>;
|
39424
|
-
409: import("zod").ZodObject<{
|
39425
|
-
message: import("zod").ZodString;
|
39426
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39427
|
-
message: string;
|
39428
|
-
}, {
|
39429
|
-
message: string;
|
39430
|
-
}>;
|
39431
|
-
500: import("zod").ZodObject<{
|
39432
|
-
message: import("zod").ZodString;
|
39433
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39434
|
-
message: string;
|
39435
|
-
}, {
|
39436
|
-
message: string;
|
39437
|
-
}>;
|
39438
|
-
401: import("zod").ZodObject<{
|
39439
|
-
message: import("zod").ZodString;
|
39440
|
-
error: import("zod").ZodAny;
|
39441
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39442
|
-
message: string;
|
39443
|
-
error?: any;
|
39444
|
-
}, {
|
39445
|
-
message: string;
|
39446
|
-
error?: any;
|
39447
|
-
}>;
|
39448
|
-
404: import("zod").ZodObject<{
|
39449
|
-
message: import("zod").ZodString;
|
39450
|
-
error: import("zod").ZodAny;
|
39451
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39452
|
-
message: string;
|
39453
|
-
error?: any;
|
39454
|
-
}, {
|
39455
|
-
message: string;
|
39456
|
-
error?: any;
|
39457
|
-
}>;
|
39458
|
-
422: import("zod").ZodObject<{
|
39459
|
-
message: import("zod").ZodString;
|
39460
|
-
error: import("zod").ZodAny;
|
39461
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39462
|
-
message: string;
|
39463
|
-
error?: any;
|
39464
|
-
}, {
|
39465
|
-
message: string;
|
39466
|
-
error?: any;
|
39467
|
-
}>;
|
39468
|
-
};
|
39469
|
-
path: "contact/:id/attachments";
|
39463
|
+
path: "contact/:id";
|
39470
39464
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
39471
39465
|
'x-tenant': import("zod").ZodString;
|
39472
39466
|
authorization: import("zod").ZodString;
|
@@ -39654,7 +39648,7 @@ export declare const apiContract: {
|
|
39654
39648
|
responses: {
|
39655
39649
|
201: import("zod").ZodObject<{
|
39656
39650
|
requestId: import("zod").ZodString;
|
39657
|
-
|
39651
|
+
data: import("zod").ZodObject<{
|
39658
39652
|
id: import("zod").ZodString;
|
39659
39653
|
createdAt: import("zod").ZodDate;
|
39660
39654
|
updatedAt: import("zod").ZodDate;
|
@@ -40024,7 +40018,7 @@ export declare const apiContract: {
|
|
40024
40018
|
ticketNumber?: number | undefined;
|
40025
40019
|
}>;
|
40026
40020
|
}, "strip", import("zod").ZodTypeAny, {
|
40027
|
-
|
40021
|
+
data: {
|
40028
40022
|
type: string;
|
40029
40023
|
id: string;
|
40030
40024
|
channel: string;
|
@@ -40084,7 +40078,7 @@ export declare const apiContract: {
|
|
40084
40078
|
};
|
40085
40079
|
requestId: string;
|
40086
40080
|
}, {
|
40087
|
-
|
40081
|
+
data: {
|
40088
40082
|
type: string;
|
40089
40083
|
id: string;
|
40090
40084
|
channel: string;
|
@@ -51226,12 +51220,29 @@ export declare const platformContract: {
|
|
51226
51220
|
accessToken: string;
|
51227
51221
|
additionalCredentials?: any;
|
51228
51222
|
}>;
|
51229
|
-
brandName: import("zod").ZodString;
|
51230
51223
|
platformId: import("zod").ZodString;
|
51231
51224
|
status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
|
51232
|
-
isReloginRequired: import("zod").ZodBoolean;
|
51233
51225
|
connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
51234
51226
|
connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
51227
|
+
actor: import("zod").ZodObject<{
|
51228
|
+
id: import("zod").ZodString;
|
51229
|
+
name: import("zod").ZodString;
|
51230
|
+
email: import("zod").ZodString;
|
51231
|
+
address: import("zod").ZodNullable<import("zod").ZodString>;
|
51232
|
+
phone: import("zod").ZodNullable<import("zod").ZodString>;
|
51233
|
+
}, "strip", import("zod").ZodTypeAny, {
|
51234
|
+
id: string;
|
51235
|
+
address: string | null;
|
51236
|
+
name: string;
|
51237
|
+
email: string;
|
51238
|
+
phone: string | null;
|
51239
|
+
}, {
|
51240
|
+
id: string;
|
51241
|
+
address: string | null;
|
51242
|
+
name: string;
|
51243
|
+
email: string;
|
51244
|
+
phone: string | null;
|
51245
|
+
}>;
|
51235
51246
|
}, "strip", import("zod").ZodTypeAny, {
|
51236
51247
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
51237
51248
|
name: string;
|
@@ -51242,9 +51253,14 @@ export declare const platformContract: {
|
|
51242
51253
|
additionalCredentials?: any;
|
51243
51254
|
};
|
51244
51255
|
status: boolean;
|
51245
|
-
brandName: string;
|
51246
51256
|
platformId: string;
|
51247
|
-
|
51257
|
+
actor: {
|
51258
|
+
id: string;
|
51259
|
+
address: string | null;
|
51260
|
+
name: string;
|
51261
|
+
email: string;
|
51262
|
+
phone: string | null;
|
51263
|
+
};
|
51248
51264
|
connectedUserName?: string | null | undefined;
|
51249
51265
|
connectedUserId?: string | null | undefined;
|
51250
51266
|
}, {
|
@@ -51257,9 +51273,14 @@ export declare const platformContract: {
|
|
51257
51273
|
additionalCredentials?: any;
|
51258
51274
|
};
|
51259
51275
|
status: boolean;
|
51260
|
-
brandName: string;
|
51261
51276
|
platformId: string;
|
51262
|
-
|
51277
|
+
actor: {
|
51278
|
+
id: string;
|
51279
|
+
address: string | null;
|
51280
|
+
name: string;
|
51281
|
+
email: string;
|
51282
|
+
phone: string | null;
|
51283
|
+
};
|
51263
51284
|
connectedUserName?: string | null | undefined;
|
51264
51285
|
connectedUserId?: string | null | undefined;
|
51265
51286
|
}>;
|
@@ -51275,9 +51296,14 @@ export declare const platformContract: {
|
|
51275
51296
|
additionalCredentials?: any;
|
51276
51297
|
};
|
51277
51298
|
status: boolean;
|
51278
|
-
brandName: string;
|
51279
51299
|
platformId: string;
|
51280
|
-
|
51300
|
+
actor: {
|
51301
|
+
id: string;
|
51302
|
+
address: string | null;
|
51303
|
+
name: string;
|
51304
|
+
email: string;
|
51305
|
+
phone: string | null;
|
51306
|
+
};
|
51281
51307
|
connectedUserName?: string | null | undefined;
|
51282
51308
|
connectedUserId?: string | null | undefined;
|
51283
51309
|
};
|
@@ -51322,9 +51348,14 @@ export declare const platformContract: {
|
|
51322
51348
|
additionalCredentials?: any;
|
51323
51349
|
};
|
51324
51350
|
status: boolean;
|
51325
|
-
brandName: string;
|
51326
51351
|
platformId: string;
|
51327
|
-
|
51352
|
+
actor: {
|
51353
|
+
id: string;
|
51354
|
+
address: string | null;
|
51355
|
+
name: string;
|
51356
|
+
email: string;
|
51357
|
+
phone: string | null;
|
51358
|
+
};
|
51328
51359
|
connectedUserName?: string | null | undefined;
|
51329
51360
|
connectedUserId?: string | null | undefined;
|
51330
51361
|
};
|
@@ -51361,7 +51392,7 @@ export declare const platformContract: {
|
|
51361
51392
|
message: import("zod").ZodObject<{
|
51362
51393
|
message: import("zod").ZodOptional<import("zod").ZodString>;
|
51363
51394
|
direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
|
51364
|
-
type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "
|
51395
|
+
type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
51365
51396
|
readAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
51366
51397
|
metadata: import("zod").ZodOptional<import("zod").ZodAny>;
|
51367
51398
|
platformId: import("zod").ZodOptional<import("zod").ZodString>;
|
@@ -51417,7 +51448,7 @@ export declare const platformContract: {
|
|
51417
51448
|
phone: string | null;
|
51418
51449
|
}>;
|
51419
51450
|
}, "strip", import("zod").ZodTypeAny, {
|
51420
|
-
type: "
|
51451
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
51421
51452
|
direction: "incoming" | "outgoing" | "system";
|
51422
51453
|
sender: {
|
51423
51454
|
address: string | null;
|
@@ -51447,7 +51478,7 @@ export declare const platformContract: {
|
|
51447
51478
|
fileSize: number;
|
51448
51479
|
} | undefined;
|
51449
51480
|
}, {
|
51450
|
-
type: "
|
51481
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
51451
51482
|
direction: "incoming" | "outgoing" | "system";
|
51452
51483
|
sender: {
|
51453
51484
|
address: string | null;
|
@@ -51479,7 +51510,7 @@ export declare const platformContract: {
|
|
51479
51510
|
}>;
|
51480
51511
|
}, "strip", import("zod").ZodTypeAny, {
|
51481
51512
|
message: {
|
51482
|
-
type: "
|
51513
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
51483
51514
|
direction: "incoming" | "outgoing" | "system";
|
51484
51515
|
sender: {
|
51485
51516
|
address: string | null;
|
@@ -51521,9 +51552,14 @@ export declare const platformContract: {
|
|
51521
51552
|
additionalCredentials?: any;
|
51522
51553
|
};
|
51523
51554
|
status: boolean;
|
51524
|
-
brandName: string;
|
51525
51555
|
platformId: string;
|
51526
|
-
|
51556
|
+
actor: {
|
51557
|
+
id: string;
|
51558
|
+
address: string | null;
|
51559
|
+
name: string;
|
51560
|
+
email: string;
|
51561
|
+
phone: string | null;
|
51562
|
+
};
|
51527
51563
|
connectedUserName?: string | null | undefined;
|
51528
51564
|
connectedUserId?: string | null | undefined;
|
51529
51565
|
};
|
@@ -51559,7 +51595,7 @@ export declare const platformContract: {
|
|
51559
51595
|
};
|
51560
51596
|
}, {
|
51561
51597
|
message: {
|
51562
|
-
type: "
|
51598
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
51563
51599
|
direction: "incoming" | "outgoing" | "system";
|
51564
51600
|
sender: {
|
51565
51601
|
address: string | null;
|
@@ -51601,9 +51637,14 @@ export declare const platformContract: {
|
|
51601
51637
|
additionalCredentials?: any;
|
51602
51638
|
};
|
51603
51639
|
status: boolean;
|
51604
|
-
brandName: string;
|
51605
51640
|
platformId: string;
|
51606
|
-
|
51641
|
+
actor: {
|
51642
|
+
id: string;
|
51643
|
+
address: string | null;
|
51644
|
+
name: string;
|
51645
|
+
email: string;
|
51646
|
+
phone: string | null;
|
51647
|
+
};
|
51607
51648
|
connectedUserName?: string | null | undefined;
|
51608
51649
|
connectedUserId?: string | null | undefined;
|
51609
51650
|
};
|
@@ -51649,7 +51690,7 @@ export declare const platformContract: {
|
|
51649
51690
|
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
51650
51691
|
message: import("zod").ZodString;
|
51651
51692
|
direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
|
51652
|
-
type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "
|
51693
|
+
type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
51653
51694
|
readAt: import("zod").ZodDate;
|
51654
51695
|
metadata: import("zod").ZodAny;
|
51655
51696
|
platformId: import("zod").ZodString;
|
@@ -54823,7 +54864,7 @@ export declare const platformContract: {
|
|
54823
54864
|
} | undefined;
|
54824
54865
|
}>;
|
54825
54866
|
}, "strip", import("zod").ZodTypeAny, {
|
54826
|
-
type: "
|
54867
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
54827
54868
|
message: string;
|
54828
54869
|
id: string;
|
54829
54870
|
url: string;
|
@@ -55295,7 +55336,7 @@ export declare const platformContract: {
|
|
55295
55336
|
metadata?: any;
|
55296
55337
|
template?: any;
|
55297
55338
|
}, {
|
55298
|
-
type: "
|
55339
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
55299
55340
|
message: string;
|
55300
55341
|
id: string;
|
55301
55342
|
url: string;
|
@@ -55769,7 +55810,7 @@ export declare const platformContract: {
|
|
55769
55810
|
}>;
|
55770
55811
|
}, "strip", import("zod").ZodTypeAny, {
|
55771
55812
|
data: {
|
55772
|
-
type: "
|
55813
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
55773
55814
|
message: string;
|
55774
55815
|
id: string;
|
55775
55816
|
url: string;
|
@@ -56244,7 +56285,7 @@ export declare const platformContract: {
|
|
56244
56285
|
requestId: string;
|
56245
56286
|
}, {
|
56246
56287
|
data: {
|
56247
|
-
type: "
|
56288
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
56248
56289
|
message: string;
|
56249
56290
|
id: string;
|
56250
56291
|
url: string;
|
@@ -56733,9 +56774,9 @@ export declare const platformContract: {
|
|
56733
56774
|
};
|
56734
56775
|
connectToService: {
|
56735
56776
|
body: import("zod").ZodObject<{
|
56736
|
-
name: import("zod").ZodString
|
56737
|
-
type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]
|
56738
|
-
metadata: import("zod").ZodObject<{
|
56777
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
56778
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
|
56779
|
+
metadata: import("zod").ZodOptional<import("zod").ZodObject<{
|
56739
56780
|
id: import("zod").ZodString;
|
56740
56781
|
name: import("zod").ZodString;
|
56741
56782
|
accessToken: import("zod").ZodString;
|
@@ -56750,43 +56791,70 @@ export declare const platformContract: {
|
|
56750
56791
|
name: string;
|
56751
56792
|
accessToken: string;
|
56752
56793
|
additionalCredentials?: any;
|
56753
|
-
}
|
56754
|
-
|
56755
|
-
|
56756
|
-
|
56757
|
-
|
56758
|
-
|
56759
|
-
|
56794
|
+
}>>;
|
56795
|
+
platformId: import("zod").ZodOptional<import("zod").ZodString>;
|
56796
|
+
status: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>>;
|
56797
|
+
connectedUserName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
56798
|
+
connectedUserId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
56799
|
+
actor: import("zod").ZodOptional<import("zod").ZodObject<{
|
56800
|
+
id: import("zod").ZodString;
|
56801
|
+
name: import("zod").ZodString;
|
56802
|
+
email: import("zod").ZodString;
|
56803
|
+
address: import("zod").ZodNullable<import("zod").ZodString>;
|
56804
|
+
phone: import("zod").ZodNullable<import("zod").ZodString>;
|
56805
|
+
}, "strip", import("zod").ZodTypeAny, {
|
56806
|
+
id: string;
|
56807
|
+
address: string | null;
|
56808
|
+
name: string;
|
56809
|
+
email: string;
|
56810
|
+
phone: string | null;
|
56811
|
+
}, {
|
56812
|
+
id: string;
|
56813
|
+
address: string | null;
|
56814
|
+
name: string;
|
56815
|
+
email: string;
|
56816
|
+
phone: string | null;
|
56817
|
+
}>>;
|
56760
56818
|
}, "strip", import("zod").ZodTypeAny, {
|
56761
|
-
|
56762
|
-
|
56763
|
-
metadata
|
56819
|
+
name?: string | undefined;
|
56820
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
56821
|
+
metadata?: {
|
56764
56822
|
id: string;
|
56765
56823
|
name: string;
|
56766
56824
|
accessToken: string;
|
56767
56825
|
additionalCredentials?: any;
|
56768
|
-
};
|
56769
|
-
|
56770
|
-
|
56771
|
-
platformId: string;
|
56772
|
-
isReloginRequired: boolean;
|
56826
|
+
} | undefined;
|
56827
|
+
platformId?: string | undefined;
|
56828
|
+
status?: boolean | undefined;
|
56773
56829
|
connectedUserName?: string | null | undefined;
|
56774
56830
|
connectedUserId?: string | null | undefined;
|
56831
|
+
actor?: {
|
56832
|
+
id: string;
|
56833
|
+
address: string | null;
|
56834
|
+
name: string;
|
56835
|
+
email: string;
|
56836
|
+
phone: string | null;
|
56837
|
+
} | undefined;
|
56775
56838
|
}, {
|
56776
|
-
|
56777
|
-
|
56778
|
-
metadata
|
56839
|
+
name?: string | undefined;
|
56840
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
56841
|
+
metadata?: {
|
56779
56842
|
id: string;
|
56780
56843
|
name: string;
|
56781
56844
|
accessToken: string;
|
56782
56845
|
additionalCredentials?: any;
|
56783
|
-
};
|
56784
|
-
|
56785
|
-
|
56786
|
-
platformId: string;
|
56787
|
-
isReloginRequired: boolean;
|
56846
|
+
} | undefined;
|
56847
|
+
platformId?: string | undefined;
|
56848
|
+
status?: boolean | undefined;
|
56788
56849
|
connectedUserName?: string | null | undefined;
|
56789
56850
|
connectedUserId?: string | null | undefined;
|
56851
|
+
actor?: {
|
56852
|
+
id: string;
|
56853
|
+
address: string | null;
|
56854
|
+
name: string;
|
56855
|
+
email: string;
|
56856
|
+
phone: string | null;
|
56857
|
+
} | undefined;
|
56790
56858
|
}>;
|
56791
56859
|
method: "POST";
|
56792
56860
|
responses: {
|
@@ -56811,12 +56879,29 @@ export declare const platformContract: {
|
|
56811
56879
|
accessToken: string;
|
56812
56880
|
additionalCredentials?: any;
|
56813
56881
|
}>;
|
56814
|
-
brandName: import("zod").ZodString;
|
56815
56882
|
platformId: import("zod").ZodString;
|
56816
56883
|
status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
|
56817
|
-
isReloginRequired: import("zod").ZodBoolean;
|
56818
56884
|
connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
56819
56885
|
connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
56886
|
+
actor: import("zod").ZodObject<{
|
56887
|
+
id: import("zod").ZodString;
|
56888
|
+
name: import("zod").ZodString;
|
56889
|
+
email: import("zod").ZodString;
|
56890
|
+
address: import("zod").ZodNullable<import("zod").ZodString>;
|
56891
|
+
phone: import("zod").ZodNullable<import("zod").ZodString>;
|
56892
|
+
}, "strip", import("zod").ZodTypeAny, {
|
56893
|
+
id: string;
|
56894
|
+
address: string | null;
|
56895
|
+
name: string;
|
56896
|
+
email: string;
|
56897
|
+
phone: string | null;
|
56898
|
+
}, {
|
56899
|
+
id: string;
|
56900
|
+
address: string | null;
|
56901
|
+
name: string;
|
56902
|
+
email: string;
|
56903
|
+
phone: string | null;
|
56904
|
+
}>;
|
56820
56905
|
}, "strip", import("zod").ZodTypeAny, {
|
56821
56906
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
56822
56907
|
name: string;
|
@@ -56827,9 +56912,14 @@ export declare const platformContract: {
|
|
56827
56912
|
additionalCredentials?: any;
|
56828
56913
|
};
|
56829
56914
|
status: boolean;
|
56830
|
-
brandName: string;
|
56831
56915
|
platformId: string;
|
56832
|
-
|
56916
|
+
actor: {
|
56917
|
+
id: string;
|
56918
|
+
address: string | null;
|
56919
|
+
name: string;
|
56920
|
+
email: string;
|
56921
|
+
phone: string | null;
|
56922
|
+
};
|
56833
56923
|
connectedUserName?: string | null | undefined;
|
56834
56924
|
connectedUserId?: string | null | undefined;
|
56835
56925
|
}, {
|
@@ -56842,9 +56932,14 @@ export declare const platformContract: {
|
|
56842
56932
|
additionalCredentials?: any;
|
56843
56933
|
};
|
56844
56934
|
status: boolean;
|
56845
|
-
brandName: string;
|
56846
56935
|
platformId: string;
|
56847
|
-
|
56936
|
+
actor: {
|
56937
|
+
id: string;
|
56938
|
+
address: string | null;
|
56939
|
+
name: string;
|
56940
|
+
email: string;
|
56941
|
+
phone: string | null;
|
56942
|
+
};
|
56848
56943
|
connectedUserName?: string | null | undefined;
|
56849
56944
|
connectedUserId?: string | null | undefined;
|
56850
56945
|
}>;
|
@@ -56859,9 +56954,14 @@ export declare const platformContract: {
|
|
56859
56954
|
additionalCredentials?: any;
|
56860
56955
|
};
|
56861
56956
|
status: boolean;
|
56862
|
-
brandName: string;
|
56863
56957
|
platformId: string;
|
56864
|
-
|
56958
|
+
actor: {
|
56959
|
+
id: string;
|
56960
|
+
address: string | null;
|
56961
|
+
name: string;
|
56962
|
+
email: string;
|
56963
|
+
phone: string | null;
|
56964
|
+
};
|
56865
56965
|
connectedUserName?: string | null | undefined;
|
56866
56966
|
connectedUserId?: string | null | undefined;
|
56867
56967
|
};
|
@@ -56877,9 +56977,14 @@ export declare const platformContract: {
|
|
56877
56977
|
additionalCredentials?: any;
|
56878
56978
|
};
|
56879
56979
|
status: boolean;
|
56880
|
-
brandName: string;
|
56881
56980
|
platformId: string;
|
56882
|
-
|
56981
|
+
actor: {
|
56982
|
+
id: string;
|
56983
|
+
address: string | null;
|
56984
|
+
name: string;
|
56985
|
+
email: string;
|
56986
|
+
phone: string | null;
|
56987
|
+
};
|
56883
56988
|
connectedUserName?: string | null | undefined;
|
56884
56989
|
connectedUserId?: string | null | undefined;
|
56885
56990
|
};
|
@@ -56908,6 +57013,247 @@ export declare const platformContract: {
|
|
56908
57013
|
};
|
56909
57014
|
path: "/connect";
|
56910
57015
|
};
|
57016
|
+
disconnectToService: {
|
57017
|
+
body: import("zod").ZodObject<{
|
57018
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
57019
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
|
57020
|
+
metadata: import("zod").ZodOptional<import("zod").ZodObject<{
|
57021
|
+
id: import("zod").ZodString;
|
57022
|
+
name: import("zod").ZodString;
|
57023
|
+
accessToken: import("zod").ZodString;
|
57024
|
+
additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
|
57025
|
+
}, "strip", import("zod").ZodTypeAny, {
|
57026
|
+
id: string;
|
57027
|
+
name: string;
|
57028
|
+
accessToken: string;
|
57029
|
+
additionalCredentials?: any;
|
57030
|
+
}, {
|
57031
|
+
id: string;
|
57032
|
+
name: string;
|
57033
|
+
accessToken: string;
|
57034
|
+
additionalCredentials?: any;
|
57035
|
+
}>>;
|
57036
|
+
platformId: import("zod").ZodOptional<import("zod").ZodString>;
|
57037
|
+
status: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>>;
|
57038
|
+
connectedUserName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
57039
|
+
connectedUserId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
57040
|
+
actor: import("zod").ZodOptional<import("zod").ZodObject<{
|
57041
|
+
id: import("zod").ZodString;
|
57042
|
+
name: import("zod").ZodString;
|
57043
|
+
email: import("zod").ZodString;
|
57044
|
+
address: import("zod").ZodNullable<import("zod").ZodString>;
|
57045
|
+
phone: import("zod").ZodNullable<import("zod").ZodString>;
|
57046
|
+
}, "strip", import("zod").ZodTypeAny, {
|
57047
|
+
id: string;
|
57048
|
+
address: string | null;
|
57049
|
+
name: string;
|
57050
|
+
email: string;
|
57051
|
+
phone: string | null;
|
57052
|
+
}, {
|
57053
|
+
id: string;
|
57054
|
+
address: string | null;
|
57055
|
+
name: string;
|
57056
|
+
email: string;
|
57057
|
+
phone: string | null;
|
57058
|
+
}>>;
|
57059
|
+
}, "strip", import("zod").ZodTypeAny, {
|
57060
|
+
name?: string | undefined;
|
57061
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
57062
|
+
metadata?: {
|
57063
|
+
id: string;
|
57064
|
+
name: string;
|
57065
|
+
accessToken: string;
|
57066
|
+
additionalCredentials?: any;
|
57067
|
+
} | undefined;
|
57068
|
+
platformId?: string | undefined;
|
57069
|
+
status?: boolean | undefined;
|
57070
|
+
connectedUserName?: string | null | undefined;
|
57071
|
+
connectedUserId?: string | null | undefined;
|
57072
|
+
actor?: {
|
57073
|
+
id: string;
|
57074
|
+
address: string | null;
|
57075
|
+
name: string;
|
57076
|
+
email: string;
|
57077
|
+
phone: string | null;
|
57078
|
+
} | undefined;
|
57079
|
+
}, {
|
57080
|
+
name?: string | undefined;
|
57081
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
57082
|
+
metadata?: {
|
57083
|
+
id: string;
|
57084
|
+
name: string;
|
57085
|
+
accessToken: string;
|
57086
|
+
additionalCredentials?: any;
|
57087
|
+
} | undefined;
|
57088
|
+
platformId?: string | undefined;
|
57089
|
+
status?: boolean | undefined;
|
57090
|
+
connectedUserName?: string | null | undefined;
|
57091
|
+
connectedUserId?: string | null | undefined;
|
57092
|
+
actor?: {
|
57093
|
+
id: string;
|
57094
|
+
address: string | null;
|
57095
|
+
name: string;
|
57096
|
+
email: string;
|
57097
|
+
phone: string | null;
|
57098
|
+
} | undefined;
|
57099
|
+
}>;
|
57100
|
+
method: "POST";
|
57101
|
+
responses: {
|
57102
|
+
200: import("zod").ZodObject<{
|
57103
|
+
requestId: import("zod").ZodString;
|
57104
|
+
data: import("zod").ZodObject<{
|
57105
|
+
name: import("zod").ZodString;
|
57106
|
+
type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
57107
|
+
metadata: import("zod").ZodObject<{
|
57108
|
+
id: import("zod").ZodString;
|
57109
|
+
name: import("zod").ZodString;
|
57110
|
+
accessToken: import("zod").ZodString;
|
57111
|
+
additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
|
57112
|
+
}, "strip", import("zod").ZodTypeAny, {
|
57113
|
+
id: string;
|
57114
|
+
name: string;
|
57115
|
+
accessToken: string;
|
57116
|
+
additionalCredentials?: any;
|
57117
|
+
}, {
|
57118
|
+
id: string;
|
57119
|
+
name: string;
|
57120
|
+
accessToken: string;
|
57121
|
+
additionalCredentials?: any;
|
57122
|
+
}>;
|
57123
|
+
platformId: import("zod").ZodString;
|
57124
|
+
status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
|
57125
|
+
connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
57126
|
+
connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
57127
|
+
actor: import("zod").ZodObject<{
|
57128
|
+
id: import("zod").ZodString;
|
57129
|
+
name: import("zod").ZodString;
|
57130
|
+
email: import("zod").ZodString;
|
57131
|
+
address: import("zod").ZodNullable<import("zod").ZodString>;
|
57132
|
+
phone: import("zod").ZodNullable<import("zod").ZodString>;
|
57133
|
+
}, "strip", import("zod").ZodTypeAny, {
|
57134
|
+
id: string;
|
57135
|
+
address: string | null;
|
57136
|
+
name: string;
|
57137
|
+
email: string;
|
57138
|
+
phone: string | null;
|
57139
|
+
}, {
|
57140
|
+
id: string;
|
57141
|
+
address: string | null;
|
57142
|
+
name: string;
|
57143
|
+
email: string;
|
57144
|
+
phone: string | null;
|
57145
|
+
}>;
|
57146
|
+
}, "strip", import("zod").ZodTypeAny, {
|
57147
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
57148
|
+
name: string;
|
57149
|
+
metadata: {
|
57150
|
+
id: string;
|
57151
|
+
name: string;
|
57152
|
+
accessToken: string;
|
57153
|
+
additionalCredentials?: any;
|
57154
|
+
};
|
57155
|
+
status: boolean;
|
57156
|
+
platformId: string;
|
57157
|
+
actor: {
|
57158
|
+
id: string;
|
57159
|
+
address: string | null;
|
57160
|
+
name: string;
|
57161
|
+
email: string;
|
57162
|
+
phone: string | null;
|
57163
|
+
};
|
57164
|
+
connectedUserName?: string | null | undefined;
|
57165
|
+
connectedUserId?: string | null | undefined;
|
57166
|
+
}, {
|
57167
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
57168
|
+
name: string;
|
57169
|
+
metadata: {
|
57170
|
+
id: string;
|
57171
|
+
name: string;
|
57172
|
+
accessToken: string;
|
57173
|
+
additionalCredentials?: any;
|
57174
|
+
};
|
57175
|
+
status: boolean;
|
57176
|
+
platformId: string;
|
57177
|
+
actor: {
|
57178
|
+
id: string;
|
57179
|
+
address: string | null;
|
57180
|
+
name: string;
|
57181
|
+
email: string;
|
57182
|
+
phone: string | null;
|
57183
|
+
};
|
57184
|
+
connectedUserName?: string | null | undefined;
|
57185
|
+
connectedUserId?: string | null | undefined;
|
57186
|
+
}>;
|
57187
|
+
}, "strip", import("zod").ZodTypeAny, {
|
57188
|
+
data: {
|
57189
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
57190
|
+
name: string;
|
57191
|
+
metadata: {
|
57192
|
+
id: string;
|
57193
|
+
name: string;
|
57194
|
+
accessToken: string;
|
57195
|
+
additionalCredentials?: any;
|
57196
|
+
};
|
57197
|
+
status: boolean;
|
57198
|
+
platformId: string;
|
57199
|
+
actor: {
|
57200
|
+
id: string;
|
57201
|
+
address: string | null;
|
57202
|
+
name: string;
|
57203
|
+
email: string;
|
57204
|
+
phone: string | null;
|
57205
|
+
};
|
57206
|
+
connectedUserName?: string | null | undefined;
|
57207
|
+
connectedUserId?: string | null | undefined;
|
57208
|
+
};
|
57209
|
+
requestId: string;
|
57210
|
+
}, {
|
57211
|
+
data: {
|
57212
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
57213
|
+
name: string;
|
57214
|
+
metadata: {
|
57215
|
+
id: string;
|
57216
|
+
name: string;
|
57217
|
+
accessToken: string;
|
57218
|
+
additionalCredentials?: any;
|
57219
|
+
};
|
57220
|
+
status: boolean;
|
57221
|
+
platformId: string;
|
57222
|
+
actor: {
|
57223
|
+
id: string;
|
57224
|
+
address: string | null;
|
57225
|
+
name: string;
|
57226
|
+
email: string;
|
57227
|
+
phone: string | null;
|
57228
|
+
};
|
57229
|
+
connectedUserName?: string | null | undefined;
|
57230
|
+
connectedUserId?: string | null | undefined;
|
57231
|
+
};
|
57232
|
+
requestId: string;
|
57233
|
+
}>;
|
57234
|
+
500: import("zod").ZodObject<{
|
57235
|
+
message: import("zod").ZodString;
|
57236
|
+
error: import("zod").ZodAny;
|
57237
|
+
}, "strip", import("zod").ZodTypeAny, {
|
57238
|
+
message: string;
|
57239
|
+
error?: any;
|
57240
|
+
}, {
|
57241
|
+
message: string;
|
57242
|
+
error?: any;
|
57243
|
+
}>;
|
57244
|
+
400: import("zod").ZodObject<{
|
57245
|
+
message: import("zod").ZodString;
|
57246
|
+
error: import("zod").ZodAny;
|
57247
|
+
}, "strip", import("zod").ZodTypeAny, {
|
57248
|
+
message: string;
|
57249
|
+
error?: any;
|
57250
|
+
}, {
|
57251
|
+
message: string;
|
57252
|
+
error?: any;
|
57253
|
+
}>;
|
57254
|
+
};
|
57255
|
+
path: "/disconnect";
|
57256
|
+
};
|
56911
57257
|
getFacebookPages: {
|
56912
57258
|
method: "GET";
|
56913
57259
|
query: import("zod").ZodObject<{
|
@@ -64612,7 +64958,7 @@ export declare const chatContract: {
|
|
64612
64958
|
sendMessage: {
|
64613
64959
|
body: import("zod").ZodObject<{
|
64614
64960
|
roomId: import("zod").ZodString;
|
64615
|
-
messageType: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "
|
64961
|
+
messageType: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
64616
64962
|
message: import("zod").ZodOptional<import("zod").ZodString>;
|
64617
64963
|
messageAttachments: import("zod").ZodOptional<import("zod").ZodObject<{
|
64618
64964
|
bucketName: import("zod").ZodString;
|
@@ -64620,12 +64966,12 @@ export declare const chatContract: {
|
|
64620
64966
|
fileName: import("zod").ZodString;
|
64621
64967
|
fileSize: import("zod").ZodNumber;
|
64622
64968
|
url: import("zod").ZodString;
|
64623
|
-
fileType: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "
|
64969
|
+
fileType: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
64624
64970
|
thumbnailUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
64625
64971
|
}, "strip", import("zod").ZodTypeAny, {
|
64626
64972
|
url: string;
|
64627
64973
|
fileName: string;
|
64628
|
-
fileType: "
|
64974
|
+
fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
64629
64975
|
fileKey: string;
|
64630
64976
|
bucketName: string;
|
64631
64977
|
fileSize: number;
|
@@ -64633,7 +64979,7 @@ export declare const chatContract: {
|
|
64633
64979
|
}, {
|
64634
64980
|
url: string;
|
64635
64981
|
fileName: string;
|
64636
|
-
fileType: "
|
64982
|
+
fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
64637
64983
|
fileKey: string;
|
64638
64984
|
bucketName: string;
|
64639
64985
|
fileSize: number;
|
@@ -64841,13 +65187,13 @@ export declare const chatContract: {
|
|
64841
65187
|
packageId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
64842
65188
|
stickerId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
64843
65189
|
}, "strip", import("zod").ZodTypeAny, {
|
64844
|
-
messageType: "
|
65190
|
+
messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
64845
65191
|
roomId: string;
|
64846
65192
|
message?: string | undefined;
|
64847
65193
|
messageAttachments?: {
|
64848
65194
|
url: string;
|
64849
65195
|
fileName: string;
|
64850
|
-
fileType: "
|
65196
|
+
fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
64851
65197
|
fileKey: string;
|
64852
65198
|
bucketName: string;
|
64853
65199
|
fileSize: number;
|
@@ -64899,13 +65245,13 @@ export declare const chatContract: {
|
|
64899
65245
|
packageId?: number | undefined;
|
64900
65246
|
stickerId?: number | undefined;
|
64901
65247
|
}, {
|
64902
|
-
messageType: "
|
65248
|
+
messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
64903
65249
|
roomId: string;
|
64904
65250
|
message?: string | undefined;
|
64905
65251
|
messageAttachments?: {
|
64906
65252
|
url: string;
|
64907
65253
|
fileName: string;
|
64908
|
-
fileType: "
|
65254
|
+
fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
64909
65255
|
fileKey: string;
|
64910
65256
|
bucketName: string;
|
64911
65257
|
fileSize: number;
|
@@ -64969,7 +65315,7 @@ export declare const chatContract: {
|
|
64969
65315
|
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
64970
65316
|
message: import("zod").ZodString;
|
64971
65317
|
direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
|
64972
|
-
type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "
|
65318
|
+
type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
64973
65319
|
readAt: import("zod").ZodDate;
|
64974
65320
|
metadata: import("zod").ZodAny;
|
64975
65321
|
platformId: import("zod").ZodString;
|
@@ -68143,7 +68489,7 @@ export declare const chatContract: {
|
|
68143
68489
|
} | undefined;
|
68144
68490
|
}>;
|
68145
68491
|
}, "strip", import("zod").ZodTypeAny, {
|
68146
|
-
type: "
|
68492
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
68147
68493
|
message: string;
|
68148
68494
|
id: string;
|
68149
68495
|
url: string;
|
@@ -68615,7 +68961,7 @@ export declare const chatContract: {
|
|
68615
68961
|
metadata?: any;
|
68616
68962
|
template?: any;
|
68617
68963
|
}, {
|
68618
|
-
type: "
|
68964
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
68619
68965
|
message: string;
|
68620
68966
|
id: string;
|
68621
68967
|
url: string;
|
@@ -69089,7 +69435,7 @@ export declare const chatContract: {
|
|
69089
69435
|
}>;
|
69090
69436
|
}, "strip", import("zod").ZodTypeAny, {
|
69091
69437
|
data: {
|
69092
|
-
type: "
|
69438
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
69093
69439
|
message: string;
|
69094
69440
|
id: string;
|
69095
69441
|
url: string;
|
@@ -69564,7 +69910,7 @@ export declare const chatContract: {
|
|
69564
69910
|
requestId: string;
|
69565
69911
|
}, {
|
69566
69912
|
data: {
|
69567
|
-
type: "
|
69913
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
69568
69914
|
message: string;
|
69569
69915
|
id: string;
|
69570
69916
|
url: string;
|
@@ -70076,7 +70422,7 @@ export declare const chatContract: {
|
|
70076
70422
|
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
70077
70423
|
message: import("zod").ZodString;
|
70078
70424
|
direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
|
70079
|
-
type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "
|
70425
|
+
type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
70080
70426
|
readAt: import("zod").ZodDate;
|
70081
70427
|
metadata: import("zod").ZodAny;
|
70082
70428
|
platformId: import("zod").ZodString;
|
@@ -73250,7 +73596,7 @@ export declare const chatContract: {
|
|
73250
73596
|
} | undefined;
|
73251
73597
|
}>;
|
73252
73598
|
}, "strip", import("zod").ZodTypeAny, {
|
73253
|
-
type: "
|
73599
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
73254
73600
|
message: string;
|
73255
73601
|
id: string;
|
73256
73602
|
url: string;
|
@@ -73722,7 +74068,7 @@ export declare const chatContract: {
|
|
73722
74068
|
metadata?: any;
|
73723
74069
|
template?: any;
|
73724
74070
|
}, {
|
73725
|
-
type: "
|
74071
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
73726
74072
|
message: string;
|
73727
74073
|
id: string;
|
73728
74074
|
url: string;
|
@@ -74196,7 +74542,7 @@ export declare const chatContract: {
|
|
74196
74542
|
}>;
|
74197
74543
|
}, "strip", import("zod").ZodTypeAny, {
|
74198
74544
|
message: {
|
74199
|
-
type: "
|
74545
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
74200
74546
|
message: string;
|
74201
74547
|
id: string;
|
74202
74548
|
url: string;
|
@@ -74670,7 +75016,7 @@ export declare const chatContract: {
|
|
74670
75016
|
};
|
74671
75017
|
}, {
|
74672
75018
|
message: {
|
74673
|
-
type: "
|
75019
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
74674
75020
|
message: string;
|
74675
75021
|
id: string;
|
74676
75022
|
url: string;
|
@@ -75178,24 +75524,24 @@ export declare const chatContract: {
|
|
75178
75524
|
responses: {
|
75179
75525
|
200: import("zod").ZodObject<{
|
75180
75526
|
requestId: import("zod").ZodString;
|
75181
|
-
data: import("zod").ZodObject<{
|
75182
|
-
id: import("zod").
|
75527
|
+
data: import("zod").ZodArray<import("zod").ZodObject<{
|
75528
|
+
id: import("zod").ZodString;
|
75183
75529
|
}, "strip", import("zod").ZodTypeAny, {
|
75184
|
-
id: string
|
75530
|
+
id: string;
|
75185
75531
|
}, {
|
75186
|
-
id: string
|
75187
|
-
}>;
|
75532
|
+
id: string;
|
75533
|
+
}>, "many">;
|
75188
75534
|
total: import("zod").ZodNumber;
|
75189
75535
|
}, "strip", import("zod").ZodTypeAny, {
|
75190
75536
|
data: {
|
75191
|
-
id: string
|
75192
|
-
};
|
75537
|
+
id: string;
|
75538
|
+
}[];
|
75193
75539
|
total: number;
|
75194
75540
|
requestId: string;
|
75195
75541
|
}, {
|
75196
75542
|
data: {
|
75197
|
-
id: string
|
75198
|
-
};
|
75543
|
+
id: string;
|
75544
|
+
}[];
|
75199
75545
|
total: number;
|
75200
75546
|
requestId: string;
|
75201
75547
|
}>;
|
@@ -75251,7 +75597,7 @@ export declare const chatContract: {
|
|
75251
75597
|
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
75252
75598
|
message: import("zod").ZodString;
|
75253
75599
|
direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
|
75254
|
-
type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "
|
75600
|
+
type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
75255
75601
|
readAt: import("zod").ZodDate;
|
75256
75602
|
metadata: import("zod").ZodAny;
|
75257
75603
|
platformId: import("zod").ZodString;
|
@@ -78425,7 +78771,7 @@ export declare const chatContract: {
|
|
78425
78771
|
} | undefined;
|
78426
78772
|
}>;
|
78427
78773
|
}, "strip", import("zod").ZodTypeAny, {
|
78428
|
-
type: "
|
78774
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
78429
78775
|
message: string;
|
78430
78776
|
id: string;
|
78431
78777
|
url: string;
|
@@ -78897,7 +79243,7 @@ export declare const chatContract: {
|
|
78897
79243
|
metadata?: any;
|
78898
79244
|
template?: any;
|
78899
79245
|
}, {
|
78900
|
-
type: "
|
79246
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
78901
79247
|
message: string;
|
78902
79248
|
id: string;
|
78903
79249
|
url: string;
|
@@ -79371,7 +79717,7 @@ export declare const chatContract: {
|
|
79371
79717
|
}>, "many">;
|
79372
79718
|
}, "strip", import("zod").ZodTypeAny, {
|
79373
79719
|
data: {
|
79374
|
-
type: "
|
79720
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
79375
79721
|
message: string;
|
79376
79722
|
id: string;
|
79377
79723
|
url: string;
|
@@ -79849,7 +80195,7 @@ export declare const chatContract: {
|
|
79849
80195
|
requestId: string;
|
79850
80196
|
}, {
|
79851
80197
|
data: {
|
79852
|
-
type: "
|
80198
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
79853
80199
|
message: string;
|
79854
80200
|
id: string;
|
79855
80201
|
url: string;
|