@great-detail/support-sdk 0.3.4 → 0.4.1
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/chunk-2WFTGNNI.js +1 -0
- package/dist/chunk-ILW336CI.js +1 -0
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.d.cts +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/{index-D1aGs0vV.d.cts → index-DCOax1hX.d.cts} +267 -825
- package/dist/{index-D1aGs0vV.d.ts → index-DCOax1hX.d.ts} +267 -825
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +15 -12
- package/dist/index.d.ts +15 -12
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/Action/ListActions.ts +8 -18
- package/src/Action/index.ts +1 -1
- package/src/Boilerplate/CreateBoilerplateCategoryBoilerplate.ts +24 -37
- package/src/Boilerplate/GetBoilerplate.ts +11 -18
- package/src/Boilerplate/ListBoilerplateCategoryBoilerplates.ts +8 -20
- package/src/Boilerplate/ListBoilerplates.ts +8 -18
- package/src/Boilerplate/UpdateBoilerplate.ts +17 -24
- package/src/Boilerplate/index.ts +5 -5
- package/src/BoilerplateCategory/CreateBoilerplateCategory.ts +16 -23
- package/src/BoilerplateCategory/GetBoilerplateCategory.ts +11 -18
- package/src/BoilerplateCategory/ListBoilerplateCategories.ts +11 -18
- package/src/BoilerplateCategory/UpdateBoilerplateCategory.ts +16 -23
- package/src/BoilerplateCategory/index.ts +4 -4
- package/src/Channel/ListChannels.ts +8 -18
- package/src/Channel/index.ts +1 -1
- package/src/Client/index.ts +1 -0
- package/src/Contact/CreateContact.ts +20 -30
- package/src/Contact/GetContact.ts +11 -18
- package/src/Contact/ListContacts.ts +8 -18
- package/src/Contact/ListLabelContacts.ts +11 -18
- package/src/Contact/UpdateContact.ts +17 -24
- package/src/Contact/index.ts +5 -5
- package/src/Conversation/CreateConversation.ts +58 -0
- package/src/Conversation/GetConversation.ts +11 -18
- package/src/Conversation/ListContactConversations.ts +11 -18
- package/src/Conversation/ListConversations.ts +8 -18
- package/src/Conversation/ListLabelConversations.ts +11 -18
- package/src/Conversation/UpdateConversation.ts +21 -28
- package/src/Conversation/index.ts +6 -5
- package/src/Label/CreateLabel.ts +19 -29
- package/src/Label/DeleteLabel.ts +7 -14
- package/src/Label/GetLabel.ts +11 -18
- package/src/Label/ListLabels.ts +8 -18
- package/src/Label/UpdateLabel.ts +16 -23
- package/src/Label/index.ts +5 -5
- package/src/Message/ListConversationMessages.ts +11 -18
- package/src/Message/ListMessages.ts +8 -18
- package/src/Message/index.ts +2 -2
- package/src/Model/Correction/CreateCorrectionModel.ts +7 -14
- package/src/Model/GetModel.ts +11 -18
- package/src/Model/ListModels.ts +8 -18
- package/src/Model/Response/CreateResponseModel.ts +13 -20
- package/src/Model/index.ts +4 -4
- package/src/Note/CreateContactNote.ts +14 -21
- package/src/Note/CreateConversationNote.ts +14 -21
- package/src/Note/GetNote.ts +11 -18
- package/src/Note/ListContactNotes.ts +11 -18
- package/src/Note/ListConversationNotes.ts +11 -18
- package/src/Note/UpdateNote.ts +14 -21
- package/src/Note/index.ts +6 -6
- package/src/Source/GetSource.ts +11 -18
- package/src/Source/ListSources.ts +8 -18
- package/src/Source/index.ts +2 -2
- package/src/Subscription/CreateContactSubscription.ts +13 -20
- package/src/Subscription/index.ts +1 -1
- package/src/Transport/FetchTransport.ts +25 -17
- package/src/cli/actions.ts +1 -1
- package/src/cli/channels.ts +1 -1
- package/src/cli/contacts.ts +2 -2
- package/src/cli/conversations.ts +2 -2
- package/src/cli/labels.ts +3 -3
- package/src/cli/messages.ts +1 -1
- package/src/cli/models.ts +2 -2
- package/src/cli/sources.ts +2 -2
- package/dist/chunk-JOZI4K7D.js +0 -1
- package/dist/chunk-KH5SOWM5.js +0 -1
|
@@ -16,6 +16,15 @@ export interface Options {
|
|
|
16
16
|
request?: RequestInit;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export type CreateConversationNoteResponse = {
|
|
20
|
+
note: {
|
|
21
|
+
id: string;
|
|
22
|
+
content: string;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
|
|
19
28
|
export default class CreateConversationNote {
|
|
20
29
|
public static SCHEMA = z.object({
|
|
21
30
|
content: z.string(),
|
|
@@ -24,8 +33,9 @@ export default class CreateConversationNote {
|
|
|
24
33
|
constructor(protected _transport: FetchTransport) {}
|
|
25
34
|
|
|
26
35
|
public async send({ id, body, request = {} }: Options) {
|
|
27
|
-
return this._transport
|
|
28
|
-
|
|
36
|
+
return this._transport.send<CreateConversationNoteResponse>(
|
|
37
|
+
"v1/conversations/" + encodeURIComponent(id) + "/notes",
|
|
38
|
+
{
|
|
29
39
|
...request,
|
|
30
40
|
method: "POST",
|
|
31
41
|
headers: {
|
|
@@ -33,24 +43,7 @@ export default class CreateConversationNote {
|
|
|
33
43
|
"Content-Type": "application/json",
|
|
34
44
|
},
|
|
35
45
|
body: JSON.stringify(CreateConversationNote.SCHEMA.parse(body)),
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export type CreateConversationNoteResponsePayload = {
|
|
42
|
-
note: {
|
|
43
|
-
id: string;
|
|
44
|
-
content: string;
|
|
45
|
-
createdAt: string;
|
|
46
|
-
updatedAt: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export class CreateConversationNoteResponse {
|
|
51
|
-
constructor(public response: Response) {}
|
|
52
|
-
|
|
53
|
-
public async result(): Promise<CreateConversationNoteResponsePayload> {
|
|
54
|
-
return this.response.json();
|
|
46
|
+
},
|
|
47
|
+
);
|
|
55
48
|
}
|
|
56
49
|
}
|
package/src/Note/GetNote.ts
CHANGED
|
@@ -14,20 +14,7 @@ export interface Options {
|
|
|
14
14
|
request?: RequestInit;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export
|
|
18
|
-
constructor(protected _transport: FetchTransport) {}
|
|
19
|
-
|
|
20
|
-
public async send({ id, request = {} }: Options) {
|
|
21
|
-
return this._transport
|
|
22
|
-
.send("v1/notes/" + encodeURIComponent(id), {
|
|
23
|
-
...request,
|
|
24
|
-
method: "GET",
|
|
25
|
-
})
|
|
26
|
-
.then((response) => new GetNoteResponse(response));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type GetNoteResponsePayload = {
|
|
17
|
+
export type GetNoteResponse = {
|
|
31
18
|
note: {
|
|
32
19
|
id: string;
|
|
33
20
|
content: string;
|
|
@@ -36,10 +23,16 @@ export type GetNoteResponsePayload = {
|
|
|
36
23
|
};
|
|
37
24
|
};
|
|
38
25
|
|
|
39
|
-
export class
|
|
40
|
-
constructor(
|
|
26
|
+
export default class GetNote {
|
|
27
|
+
constructor(protected _transport: FetchTransport) {}
|
|
41
28
|
|
|
42
|
-
public async
|
|
43
|
-
return this.
|
|
29
|
+
public async send({ id, request = {} }: Options) {
|
|
30
|
+
return this._transport.send<GetNoteResponse>(
|
|
31
|
+
"v1/notes/" + encodeURIComponent(id),
|
|
32
|
+
{
|
|
33
|
+
...request,
|
|
34
|
+
method: "GET",
|
|
35
|
+
},
|
|
36
|
+
);
|
|
44
37
|
}
|
|
45
38
|
}
|
|
@@ -14,20 +14,7 @@ export interface Options {
|
|
|
14
14
|
request?: RequestInit;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export
|
|
18
|
-
constructor(protected _transport: FetchTransport) {}
|
|
19
|
-
|
|
20
|
-
public async send({ id, request = {} }: Options) {
|
|
21
|
-
return this._transport
|
|
22
|
-
.send("v1/contacts/" + encodeURIComponent(id) + "/notes", {
|
|
23
|
-
...request,
|
|
24
|
-
method: "GET",
|
|
25
|
-
})
|
|
26
|
-
.then((response) => new ListContactNotesResponse(response));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type ListContactNotesResponsePayload = {
|
|
17
|
+
export type ListContactNotesResponse = {
|
|
31
18
|
notes: {
|
|
32
19
|
id: string;
|
|
33
20
|
content: string;
|
|
@@ -36,10 +23,16 @@ export type ListContactNotesResponsePayload = {
|
|
|
36
23
|
}[];
|
|
37
24
|
};
|
|
38
25
|
|
|
39
|
-
export class
|
|
40
|
-
constructor(
|
|
26
|
+
export default class ListContactNotes {
|
|
27
|
+
constructor(protected _transport: FetchTransport) {}
|
|
41
28
|
|
|
42
|
-
public async
|
|
43
|
-
return this.
|
|
29
|
+
public async send({ id, request = {} }: Options) {
|
|
30
|
+
return this._transport.send<ListContactNotesResponse>(
|
|
31
|
+
"v1/contacts/" + encodeURIComponent(id) + "/notes",
|
|
32
|
+
{
|
|
33
|
+
...request,
|
|
34
|
+
method: "GET",
|
|
35
|
+
},
|
|
36
|
+
);
|
|
44
37
|
}
|
|
45
38
|
}
|
|
@@ -14,20 +14,7 @@ export interface Options {
|
|
|
14
14
|
request?: RequestInit;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export
|
|
18
|
-
constructor(protected _transport: FetchTransport) {}
|
|
19
|
-
|
|
20
|
-
public async send({ id, request = {} }: Options) {
|
|
21
|
-
return this._transport
|
|
22
|
-
.send("v1/conversations/" + encodeURIComponent(id) + "/notes", {
|
|
23
|
-
...request,
|
|
24
|
-
method: "GET",
|
|
25
|
-
})
|
|
26
|
-
.then((response) => new ListConversationNotesResponse(response));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type ListConversationNotesResponsePayload = {
|
|
17
|
+
export type ListConversationNotesResponse = {
|
|
31
18
|
notes: {
|
|
32
19
|
id: string;
|
|
33
20
|
content: string;
|
|
@@ -36,10 +23,16 @@ export type ListConversationNotesResponsePayload = {
|
|
|
36
23
|
}[];
|
|
37
24
|
};
|
|
38
25
|
|
|
39
|
-
export class
|
|
40
|
-
constructor(
|
|
26
|
+
export default class ListConversationNotes {
|
|
27
|
+
constructor(protected _transport: FetchTransport) {}
|
|
41
28
|
|
|
42
|
-
public async
|
|
43
|
-
return this.
|
|
29
|
+
public async send({ id, request = {} }: Options) {
|
|
30
|
+
return this._transport.send<ListConversationNotesResponse>(
|
|
31
|
+
"v1/conversations/" + encodeURIComponent(id) + "/notes",
|
|
32
|
+
{
|
|
33
|
+
...request,
|
|
34
|
+
method: "GET",
|
|
35
|
+
},
|
|
36
|
+
);
|
|
44
37
|
}
|
|
45
38
|
}
|
package/src/Note/UpdateNote.ts
CHANGED
|
@@ -16,6 +16,15 @@ export interface Options {
|
|
|
16
16
|
request?: RequestInit;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export type UpdateNoteResponse = {
|
|
20
|
+
note: {
|
|
21
|
+
id: string;
|
|
22
|
+
content: string;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
|
|
19
28
|
export default class UpdateNote {
|
|
20
29
|
public static SCHEMA = z.object({
|
|
21
30
|
content: z.string().optional(),
|
|
@@ -24,8 +33,9 @@ export default class UpdateNote {
|
|
|
24
33
|
constructor(protected _transport: FetchTransport) {}
|
|
25
34
|
|
|
26
35
|
public async send({ id, body, request = {} }: Options) {
|
|
27
|
-
return this._transport
|
|
28
|
-
|
|
36
|
+
return this._transport.send<UpdateNoteResponse>(
|
|
37
|
+
"v1/notes/" + encodeURIComponent(id),
|
|
38
|
+
{
|
|
29
39
|
...request,
|
|
30
40
|
method: "PATCH",
|
|
31
41
|
headers: {
|
|
@@ -33,24 +43,7 @@ export default class UpdateNote {
|
|
|
33
43
|
"Content-Type": "application/json",
|
|
34
44
|
},
|
|
35
45
|
body: JSON.stringify(UpdateNote.SCHEMA.parse(body)),
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export type UpdateNoteResponsePayload = {
|
|
42
|
-
note: {
|
|
43
|
-
id: string;
|
|
44
|
-
content: string;
|
|
45
|
-
createdAt: string;
|
|
46
|
-
updatedAt: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export class UpdateNoteResponse {
|
|
51
|
-
constructor(public response: Response) {}
|
|
52
|
-
|
|
53
|
-
public async result(): Promise<UpdateNoteResponsePayload> {
|
|
54
|
-
return this.response.json();
|
|
46
|
+
},
|
|
47
|
+
);
|
|
55
48
|
}
|
|
56
49
|
}
|
package/src/Note/index.ts
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* @see https://greatdetail.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
export { type
|
|
11
|
-
export { type
|
|
12
|
-
export { type
|
|
13
|
-
export { type
|
|
14
|
-
export { type
|
|
15
|
-
export { type
|
|
10
|
+
export { type CreateContactNoteResponse } from "./CreateContactNote.js";
|
|
11
|
+
export { type CreateConversationNoteResponse } from "./CreateConversationNote.js";
|
|
12
|
+
export { type GetNoteResponse } from "./GetNote.js";
|
|
13
|
+
export { type ListContactNotesResponse } from "./ListContactNotes.js";
|
|
14
|
+
export { type ListConversationNotesResponse } from "./ListConversationNotes.js";
|
|
15
|
+
export { type UpdateNoteResponse } from "./UpdateNote.js";
|
package/src/Source/GetSource.ts
CHANGED
|
@@ -14,20 +14,7 @@ export interface Options {
|
|
|
14
14
|
request?: RequestInit;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export
|
|
18
|
-
constructor(protected _transport: FetchTransport) {}
|
|
19
|
-
|
|
20
|
-
public async send({ id, request = {} }: Options) {
|
|
21
|
-
return this._transport
|
|
22
|
-
.send("v1/sources/" + encodeURIComponent(id), {
|
|
23
|
-
...request,
|
|
24
|
-
method: "GET",
|
|
25
|
-
})
|
|
26
|
-
.then((response) => new GetSourceResponse(response));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type GetSourceResponsePayload = {
|
|
17
|
+
export type GetSourceResponse = {
|
|
31
18
|
source: {
|
|
32
19
|
id: string;
|
|
33
20
|
name: string;
|
|
@@ -38,10 +25,16 @@ export type GetSourceResponsePayload = {
|
|
|
38
25
|
};
|
|
39
26
|
};
|
|
40
27
|
|
|
41
|
-
export class
|
|
42
|
-
constructor(
|
|
28
|
+
export default class GetSource {
|
|
29
|
+
constructor(protected _transport: FetchTransport) {}
|
|
43
30
|
|
|
44
|
-
public async
|
|
45
|
-
return this.
|
|
31
|
+
public async send({ id, request = {} }: Options) {
|
|
32
|
+
return this._transport.send<GetSourceResponse>(
|
|
33
|
+
"v1/sources/" + encodeURIComponent(id),
|
|
34
|
+
{
|
|
35
|
+
...request,
|
|
36
|
+
method: "GET",
|
|
37
|
+
},
|
|
38
|
+
);
|
|
46
39
|
}
|
|
47
40
|
}
|
|
@@ -13,20 +13,7 @@ export interface Options {
|
|
|
13
13
|
request?: RequestInit;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export
|
|
17
|
-
constructor(protected _transport: FetchTransport) {}
|
|
18
|
-
|
|
19
|
-
public async send({ request = {} }: Options = {}) {
|
|
20
|
-
return this._transport
|
|
21
|
-
.send("v1/sources", {
|
|
22
|
-
...request,
|
|
23
|
-
method: "GET",
|
|
24
|
-
})
|
|
25
|
-
.then((response) => new ListSourcesResponse(response));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type ListSourcesResponsePayload = {
|
|
16
|
+
export type ListSourcesResponse = {
|
|
30
17
|
sources: {
|
|
31
18
|
id: string;
|
|
32
19
|
name: string;
|
|
@@ -37,10 +24,13 @@ export type ListSourcesResponsePayload = {
|
|
|
37
24
|
}[];
|
|
38
25
|
};
|
|
39
26
|
|
|
40
|
-
export class
|
|
41
|
-
constructor(
|
|
27
|
+
export default class ListSources {
|
|
28
|
+
constructor(protected _transport: FetchTransport) {}
|
|
42
29
|
|
|
43
|
-
public async
|
|
44
|
-
return this.
|
|
30
|
+
public async send({ request = {} }: Options = {}) {
|
|
31
|
+
return this._transport.send<ListSourcesResponse>("v1/sources", {
|
|
32
|
+
...request,
|
|
33
|
+
method: "GET",
|
|
34
|
+
});
|
|
45
35
|
}
|
|
46
36
|
}
|
package/src/Source/index.ts
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* @see https://greatdetail.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
export { type
|
|
11
|
-
export { type
|
|
10
|
+
export { type GetSourceResponse } from "./GetSource.js";
|
|
11
|
+
export { type ListSourcesResponse } from "./ListSources.js";
|
|
@@ -16,6 +16,14 @@ export interface Options {
|
|
|
16
16
|
request?: RequestInit;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export type CreateContactSubscriptionResponse = {
|
|
20
|
+
subscription: {
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
19
27
|
export default class CreateContactSubscription {
|
|
20
28
|
public static SCHEMA = z.discriminatedUnion("type", [
|
|
21
29
|
z.object({
|
|
@@ -31,8 +39,9 @@ export default class CreateContactSubscription {
|
|
|
31
39
|
constructor(protected _transport: FetchTransport) {}
|
|
32
40
|
|
|
33
41
|
public async send({ id, body, request = {} }: Options) {
|
|
34
|
-
return this._transport
|
|
35
|
-
|
|
42
|
+
return this._transport.send<CreateContactSubscriptionResponse>(
|
|
43
|
+
"v1/contacts/" + encodeURIComponent(id) + "/subscriptions",
|
|
44
|
+
{
|
|
36
45
|
...request,
|
|
37
46
|
method: "POST",
|
|
38
47
|
headers: {
|
|
@@ -40,23 +49,7 @@ export default class CreateContactSubscription {
|
|
|
40
49
|
"Content-Type": "application/json",
|
|
41
50
|
},
|
|
42
51
|
body: JSON.stringify(CreateContactSubscription.SCHEMA.parse(body)),
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type CreateContactSubscriptionResponsePayload = {
|
|
49
|
-
subscription: {
|
|
50
|
-
id: string;
|
|
51
|
-
createdAt: string;
|
|
52
|
-
updatedAt: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export class CreateContactSubscriptionResponse {
|
|
57
|
-
constructor(public response: Response) {}
|
|
58
|
-
|
|
59
|
-
public async result(): Promise<CreateContactSubscriptionResponsePayload> {
|
|
60
|
-
return this.response.json();
|
|
52
|
+
},
|
|
53
|
+
);
|
|
61
54
|
}
|
|
62
55
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import isNetworkError from "is-network-error";
|
|
11
|
-
import ky, { HTTPError } from "ky";
|
|
11
|
+
import ky, { HTTPError, KyInstance } from "ky";
|
|
12
12
|
import AuthenticationError from "../Error/AuthenticationError.js";
|
|
13
13
|
import AuthorizationError from "../Error/AuthorizationError.js";
|
|
14
14
|
import LogicError from "../Error/LogicError.js";
|
|
@@ -25,6 +25,7 @@ export interface Options extends TransportOptions {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export default class FetchTransport implements Transport {
|
|
28
|
+
public client: KyInstance;
|
|
28
29
|
public options: Options;
|
|
29
30
|
|
|
30
31
|
constructor({ baseURL, ...options }: InputOptions) {
|
|
@@ -32,30 +33,37 @@ export default class FetchTransport implements Transport {
|
|
|
32
33
|
...options,
|
|
33
34
|
baseURL,
|
|
34
35
|
};
|
|
36
|
+
this.client = ky.create({
|
|
37
|
+
prefixUrl: this.options.baseURL,
|
|
38
|
+
hooks: {
|
|
39
|
+
beforeRequest: [
|
|
40
|
+
(request) => {
|
|
41
|
+
for (const filterable of this.options.requestFilterables) {
|
|
42
|
+
const filterableHeaders = filterable.getHeaders();
|
|
43
|
+
for (const [headerName, headerValue] of Object.entries(
|
|
44
|
+
filterableHeaders,
|
|
45
|
+
)) {
|
|
46
|
+
// Skip explicitly-overwritten headers
|
|
47
|
+
if (request.headers.has(headerName)) {
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
request.headers.set(headerName, headerValue);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
});
|
|
35
58
|
}
|
|
36
59
|
|
|
37
60
|
public getURL(url: string): string {
|
|
38
61
|
return new URL(url, this.options.baseURL).toString();
|
|
39
62
|
}
|
|
40
63
|
|
|
41
|
-
public getRequest(url: string, request: RequestInit): Request {
|
|
42
|
-
// Merge headers
|
|
43
|
-
request.headers = new Headers(request.headers);
|
|
44
|
-
for (const filterable of this.options.requestFilterables) {
|
|
45
|
-
const filterableHeaders = filterable.getHeaders();
|
|
46
|
-
for (const [headerName, headerValue] of Object.entries(
|
|
47
|
-
filterableHeaders,
|
|
48
|
-
)) {
|
|
49
|
-
request.headers.set(headerName, headerValue);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return new Request(this.getURL(url), request);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
64
|
public async send<T = unknown>(url: string, request: RequestInit) {
|
|
57
65
|
// See: https://github.com/node-fetch/node-fetch/issues/481#issuecomment-592491825
|
|
58
|
-
return await
|
|
66
|
+
return await this.client<T>(url, request).catch((error) => {
|
|
59
67
|
if (isNetworkError(error)) {
|
|
60
68
|
throw new NetworkError("A network error occurred", { cause: error });
|
|
61
69
|
}
|
package/src/cli/actions.ts
CHANGED
package/src/cli/channels.ts
CHANGED
package/src/cli/contacts.ts
CHANGED
|
@@ -26,7 +26,7 @@ export default function contacts({ client, ora }: Options) {
|
|
|
26
26
|
text: "Finding contact",
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
console.log(await result.
|
|
29
|
+
console.log(await result.json());
|
|
30
30
|
}),
|
|
31
31
|
);
|
|
32
32
|
|
|
@@ -37,7 +37,7 @@ export default function contacts({ client, ora }: Options) {
|
|
|
37
37
|
text: "Finding contacts",
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
console.log(await result.
|
|
40
|
+
console.log(await result.json());
|
|
41
41
|
}),
|
|
42
42
|
);
|
|
43
43
|
|
package/src/cli/conversations.ts
CHANGED
|
@@ -29,7 +29,7 @@ export default function conversations({ client, ora }: Options) {
|
|
|
29
29
|
},
|
|
30
30
|
);
|
|
31
31
|
|
|
32
|
-
console.log(await result.
|
|
32
|
+
console.log(await result.json());
|
|
33
33
|
}),
|
|
34
34
|
);
|
|
35
35
|
|
|
@@ -40,7 +40,7 @@ export default function conversations({ client, ora }: Options) {
|
|
|
40
40
|
text: "Finding conversations",
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
console.log(await result.
|
|
43
|
+
console.log(await result.json());
|
|
44
44
|
}),
|
|
45
45
|
);
|
|
46
46
|
|
package/src/cli/labels.ts
CHANGED
|
@@ -26,7 +26,7 @@ export default function labels({ client, ora }: Options) {
|
|
|
26
26
|
text: "Finding label",
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
console.log(await result.
|
|
29
|
+
console.log(await result.json());
|
|
30
30
|
}),
|
|
31
31
|
);
|
|
32
32
|
|
|
@@ -37,7 +37,7 @@ export default function labels({ client, ora }: Options) {
|
|
|
37
37
|
text: "Finding labels",
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
console.log(await result.
|
|
40
|
+
console.log(await result.json());
|
|
41
41
|
}),
|
|
42
42
|
);
|
|
43
43
|
|
|
@@ -54,7 +54,7 @@ export default function labels({ client, ora }: Options) {
|
|
|
54
54
|
},
|
|
55
55
|
);
|
|
56
56
|
|
|
57
|
-
console.log(await result.
|
|
57
|
+
console.log(await result.json());
|
|
58
58
|
}),
|
|
59
59
|
);
|
|
60
60
|
|
package/src/cli/messages.ts
CHANGED
package/src/cli/models.ts
CHANGED
|
@@ -26,7 +26,7 @@ export default function models({ client, ora }: Options) {
|
|
|
26
26
|
text: "Finding model",
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
console.log(await result.
|
|
29
|
+
console.log(await result.json());
|
|
30
30
|
}),
|
|
31
31
|
);
|
|
32
32
|
|
|
@@ -37,7 +37,7 @@ export default function models({ client, ora }: Options) {
|
|
|
37
37
|
text: "Finding models",
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
console.log(await result.
|
|
40
|
+
console.log(await result.json());
|
|
41
41
|
}),
|
|
42
42
|
);
|
|
43
43
|
|
package/src/cli/sources.ts
CHANGED
|
@@ -26,7 +26,7 @@ export default function sources({ client, ora }: Options) {
|
|
|
26
26
|
text: "Finding source",
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
console.log(await result.
|
|
29
|
+
console.log(await result.json());
|
|
30
30
|
}),
|
|
31
31
|
);
|
|
32
32
|
|
|
@@ -37,7 +37,7 @@ export default function sources({ client, ora }: Options) {
|
|
|
37
37
|
text: "Finding sources",
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
console.log(await result.
|
|
40
|
+
console.log(await result.json());
|
|
41
41
|
}),
|
|
42
42
|
);
|
|
43
43
|
|
package/dist/chunk-JOZI4K7D.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var pe=Object.defineProperty;var ue=(e,t)=>{for(var r in t)pe(e,r,{get:t[r],enumerable:!0})};var te="https://api.support.greatdetail.com",ee={"X-Powered-By":"GDSupport/JavaScript"},me="api-key";var p=class{constructor(t){this._transport=t}async send({request:t={}}={}){return this._transport.send("v1/actions",{...t,method:"GET"}).then(r=>new pt(r))}},pt=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as rt}from"zod";var c=class e{constructor(t){this._transport=t}static SCHEMA=rt.object({title:rt.string(),content:rt.string(),account:rt.string()});async send({id:t,body:r,request:s={}}){return this._transport.send("v1/boilerplate-categories/"+encodeURIComponent(t)+"/boilerplates",{...s,method:"POST",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new ct(n))}},ct=class{constructor(t){this.response=t}async result(){return this.response.json()}};var d=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/boilerplates/"+encodeURIComponent(t),{...r,method:"GET"}).then(s=>new dt(s))}},dt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var l=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/boilerplate-categories/"+encodeURIComponent(t)+"/boilerplates",{...r,method:"GET"}).then(s=>new lt(s))}},lt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var u=class{constructor(t){this._transport=t}async send({request:t={}}={}){return this._transport.send("v1/boilerplates",{...t,method:"GET"}).then(r=>new ut(r))}},ut=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as gt}from"zod";var g=class e{constructor(t){this._transport=t}static SCHEMA=gt.object({title:gt.string().optional(),content:gt.string().optional()});async send({id:t,body:r,request:s={}}){return this._transport.send("v1/boilerplates/"+encodeURIComponent(t),{...s,method:"PATCH",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new mt(n))}},mt=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as st}from"zod";var m=class e{constructor(t){this._transport=t}static SCHEMA=st.object({title:st.string(),description:st.string().optional(),account:st.string()});async send({body:t,request:r={}}){return this._transport.send("v1/boilerplate-categories",{...r,method:"POST",headers:{...r.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(t))}).then(s=>new ht(s))}},ht=class{constructor(t){this.response=t}async result(){return this.response.json()}};var h=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/boilerplate-categories/"+encodeURIComponent(t),{...r,method:"GET"}).then(s=>new yt(s))}},yt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var y=class{constructor(t){this._transport=t}async send({request:t={}}={}){return this._transport.send("v1/boilerplate-categories",{...t,method:"GET"}).then(r=>new bt(r))}},bt=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as ft}from"zod";var b=class e{constructor(t){this._transport=t}static SCHEMA=ft.object({title:ft.string().optional(),description:ft.string().optional()});async send({id:t,body:r,request:s={}}){return this._transport.send("v1/boilerplate-categories/"+encodeURIComponent(t),{...s,method:"PATCH",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new Rt(n))}},Rt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var f=class{constructor(t){this._transport=t}async send({request:t={}}={}){return this._transport.send("v1/channels",{...t,method:"GET"}).then(r=>new xt(r))}},xt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var Fe="SUPPORT_ACCESS_TOKEN",Ie="SUPPORT_API_KEY",qe="SUPPORT_KEY_NAME",re="SUPPORT_BASE_URL";var R=class{constructor(t){this._transport=t}getRelativeURL({id:t,vcf:r={}}){let s=r.variant??"vcard",n=r.format??(r.variant==="vcard"?"vcf":"json");return"v1/contacts/"+encodeURIComponent(t)+"/vcf?variant="+encodeURIComponent(s)+"&format="+encodeURIComponent(n)}getURL(t){return this._transport.getURL(this.getRelativeURL(t))}};import{z as x}from"zod";var C=class e{constructor(t){this._transport=t}static SCHEMA=x.object({name:x.string(),account:x.string(),emailAddress:x.string().email().optional(),telephoneNumber:x.string().optional()});async send({body:t,request:r={}}){return this._transport.send("v1/contacts",{...r,method:"POST",headers:{...r.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(t))}).then(s=>new Ct(s))}},Ct=class{constructor(t){this.response=t}async result(){return this.response.json()}};var A=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/contacts/"+encodeURIComponent(t),{...r,method:"GET"}).then(s=>new At(s))}},At=class{constructor(t){this.response=t}async result(){return this.response.json()}};var T=class{constructor(t){this._transport=t}async send({request:t={}}={}){return this._transport.send("v1/contacts",{...t,method:"GET"}).then(r=>new Tt(r))}},Tt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var _=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/labels/"+encodeURIComponent(t)+"/contacts",{...r,method:"GET"}).then(s=>new _t(s))}},_t=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as nt}from"zod";var P=class e{constructor(t){this._transport=t}static SCHEMA=nt.object({name:nt.string().optional(),emailAddress:nt.string().email().optional(),telephoneNumber:nt.string().optional()});async send({id:t,body:r,request:s={}}){return this._transport.send("v1/contacts/"+encodeURIComponent(t),{...s,method:"PATCH",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new Pt(n))}},Pt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var S=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/conversations/"+encodeURIComponent(t),{...r,method:"GET"}).then(s=>new St(s))}},St=class{constructor(t){this.response=t}async result(){return this.response.json()}};var v=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/contacts/"+encodeURIComponent(t)+"/conversations",{...r,method:"GET"}).then(s=>new vt(s))}},vt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var O=class{constructor(t){this._transport=t}async send({request:t={}}={}){return this._transport.send("v1/conversations",{...t,method:"GET"}).then(r=>new Ot(r))}},Ot=class{constructor(t){this.response=t}async result(){return this.response.json()}};var E=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/labels/"+encodeURIComponent(t)+"/conversations",{...r,method:"GET"}).then(s=>new Et(s))}},Et=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as wt}from"zod";var w=class e{constructor(t){this._transport=t}static SCHEMA=wt.object({conversationStatus:wt.enum(["AwaitingContactConversationStatus","AwaitingAgentConversationStatus","ResolvedConversationStatus","ClosedConversationStatus"]).optional(),hasEnded:wt.boolean().optional()});async send({id:t,body:r,request:s={}}){return this._transport.send("v1/conversations/"+encodeURIComponent(t),{...s,method:"PATCH",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new Ft(n))}},Ft=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as ot}from"zod";var F=class e{constructor(t){this._transport=t}static SCHEMA=ot.object({title:ot.string(),description:ot.string().optional(),account:ot.string()});async send({body:t,request:r={}}){return this._transport.send("v1/labels",{...r,method:"POST",headers:{...r.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(t))}).then(s=>new It(s))}},It=class{constructor(t){this.response=t}async result(){return this.response.json()}};var I=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/labels/"+encodeURIComponent(t),{...r,method:"DELETE"}).then(s=>new qt(s))}},qt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var q=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/labels/"+encodeURIComponent(t),{...r,method:"GET"}).then(s=>new Ut(s))}},Ut=class{constructor(t){this.response=t}async result(){return this.response.json()}};var U=class{constructor(t){this._transport=t}async send({request:t={}}={}){return this._transport.send("v1/labels",{...t,method:"GET"}).then(r=>new jt(r))}},jt=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as Ht}from"zod";var j=class e{constructor(t){this._transport=t}static SCHEMA=Ht.object({title:Ht.string().optional(),description:Ht.string().optional()});async send({id:t,body:r,request:s={}}){return this._transport.send("v1/labels/"+encodeURIComponent(t),{...s,method:"PATCH",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new Lt(n))}},Lt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var H=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/conversations/"+encodeURIComponent(t)+"/messages",{...r,method:"GET"}).then(s=>new Mt(s))}},Mt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var L=class{constructor(t){this._transport=t}async send({request:t={}}={}){return this._transport.send("v1/messages",{...t,method:"GET"}).then(r=>new Nt(r))}},Nt=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as it}from"zod";var M=class e{constructor(t){this._transport=t}static SCHEMA=it.object({input:it.string().max(65536),original:it.string().max(65536),correction:it.string().max(65536)});async send({id:t,body:r,request:s={}}){return this._transport.send("v1/models/"+encodeURIComponent(t)+"/correction",{...s,method:"POST",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new Gt(n))}},Gt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var N=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/models/"+encodeURIComponent(t),{...r,method:"GET"}).then(s=>new zt(s))}},zt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var G=class{constructor(t){this._transport=t}async send({request:t={}}={}){return this._transport.send("v1/models",{...t,method:"GET"}).then(r=>new Bt(r))}},Bt=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as at}from"zod";var z=class e{constructor(t){this._transport=t}static SCHEMA=at.array(at.object({role:at.enum(["user","assistant"]),content:at.string().max(65536).nullable()})).min(1);async send({id:t,body:r,request:s={}}){return this._transport.send("v1/models/"+encodeURIComponent(t)+"/response",{...s,method:"POST",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new Dt(n))}},Dt=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as se}from"zod";var B=class e{constructor(t){this._transport=t}static SCHEMA=se.object({content:se.string()});async send({id:t,body:r,request:s={}}){return this._transport.send("v1/contacts/"+encodeURIComponent(t)+"/notes",{...s,method:"POST",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new Jt(n))}},Jt=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as ne}from"zod";var D=class e{constructor(t){this._transport=t}static SCHEMA=ne.object({content:ne.string()});async send({id:t,body:r,request:s={}}){return this._transport.send("v1/conversations/"+encodeURIComponent(t)+"/notes",{...s,method:"POST",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new Vt(n))}},Vt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var J=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/notes/"+encodeURIComponent(t),{...r,method:"GET"}).then(s=>new kt(s))}},kt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var V=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/contacts/"+encodeURIComponent(t)+"/notes",{...r,method:"GET"}).then(s=>new Kt(s))}},Kt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var k=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/conversations/"+encodeURIComponent(t)+"/notes",{...r,method:"GET"}).then(s=>new Yt(s))}},Yt=class{constructor(t){this.response=t}async result(){return this.response.json()}};import{z as oe}from"zod";var K=class e{constructor(t){this._transport=t}static SCHEMA=oe.object({content:oe.string().optional()});async send({id:t,body:r,request:s={}}){return this._transport.send("v1/notes/"+encodeURIComponent(t),{...s,method:"PATCH",headers:{...s.headers,"Content-Type":"application/json"},body:JSON.stringify(e.SCHEMA.parse(r))}).then(n=>new $t(n))}},$t=class{constructor(t){this.response=t}async result(){return this.response.json()}};var Y=class e{constructor(t=e.STANDARD_HEADERS){this._standardHeaders=t}static STANDARD_HEADERS=ee;async filter(){return{headers:this.getHeaders()}}getHeaders(){return this._standardHeaders}};var $=class{constructor(t){this._transport=t}async send({id:t,request:r={}}){return this._transport.send("v1/sources/"+encodeURIComponent(t),{...r,method:"GET"}).then(s=>new Wt(s))}},Wt=class{constructor(t){this.response=t}async result(){return this.response.json()}};var W=class{constructor(t){this._transport=t}async send({request:t={}}={}){return this._transport.send("v1/sources",{...t,method:"GET"}).then(r=>new Xt(r))}},Xt=class{constructor(t){this.response=t}async result(){return this.response.json()}};import ce from"is-network-error";import de,{HTTPError as le}from"ky";var o=class extends Error{};var i=class extends o{};var X=class extends i{static unauthenticated(){return new this("An unauthenticated request occurred")}};var Q=class extends i{static forbidden(){return new this("A forbidden request occurred")}};var a=class extends o{static notFound(t){return new this(`Record not found for request: ${t}`)}static forbiddenMethod(t,r){return new this(`Forbidden method for request: ${t} ${r}`)}};var Z=class extends o{};var tt=class extends o{static badRequest(){return new this("Bad request")}};var et=class{options;constructor({baseURL:t,...r}){this.options={...r,baseURL:t}}getURL(t){return new URL(t,this.options.baseURL).toString()}getRequest(t,r){r.headers=new Headers(r.headers);for(let s of this.options.requestFilterables){let n=s.getHeaders();for(let[ie,ae]of Object.entries(n))r.headers.set(ie,ae)}return new Request(this.getURL(t),r)}async send(t,r){return await de(this.getRequest(t,r)).catch(s=>{if(ce(s))throw new Z("A network error occurred",{cause:s});if(s instanceof le){let n=s.response.status;switch(console.error(JSON.stringify(s.response)),n){case 400:throw tt.badRequest();case 401:throw X.unauthenticated();case 403:throw Q.forbidden();case 404:throw a.notFound(t);case 405:throw a.forbiddenMethod(t,r.method??"GET")}}throw s})}};var Qt=class e{static DEFAULT_BASE_URL=te;_transport;constructor(t,{baseURL:r,...s}={}){this._transport=new et({requestFilterables:[new Y,t],...s,baseURL:r?.toString()??e.getBaseURL()})}static getBaseURL(){return process.env[re]??this.DEFAULT_BASE_URL}get action(){return{list:new p(this._transport)}}get boilerplate(){return{get:new d(this._transport),list:new u(this._transport),update:new g(this._transport)}}get boilerplateCategory(){return{get:new h(this._transport),list:new y(this._transport),create:new m(this._transport),update:new b(this._transport),boilerplate:{list:new l(this._transport),create:new c(this._transport)}}}get channel(){return{list:new f(this._transport)}}get contact(){return{get:new A(this._transport),list:new T(this._transport),update:new P(this._transport),create:new C(this._transport),conversation:{list:new v(this._transport)},note:{list:new V(this._transport),create:new B(this._transport)},vcf:{get:new R(this._transport)}}}get conversation(){return{get:new S(this._transport),list:new O(this._transport),update:new w(this._transport),message:{list:new H(this._transport)},note:{list:new k(this._transport),create:new D(this._transport)}}}get label(){return{create:new F(this._transport),get:new q(this._transport),list:new U(this._transport),update:new j(this._transport),delete:new I(this._transport),contact:{list:new _(this._transport)},conversation:{list:new E(this._transport)}}}get message(){return{list:new L(this._transport)}}get model(){return{get:new N(this._transport),list:new G(this._transport),response:{create:new z(this._transport)},correction:{create:new M(this._transport)}}}get note(){return{get:new J(this._transport),update:new K(this._transport)}}get source(){return{get:new $(this._transport),list:new W(this._transport)}}};var Zt=class{async filter(){return{headers:this.getHeaders()}}getHeaders(){return{}}};export{ue as a,te as b,me as c,Fe as d,Ie as e,qe as f,o as g,i as h,X as i,Q as j,a as k,Z as l,tt as m,Qt as n,Zt as o};
|