syllable-sdk 0.1.0-alpha.146 → 0.1.0-alpha.149
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/README.md +8 -0
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/campaigns/README.md +78 -0
- package/docs/sdks/folders/README.md +168 -0
- package/docs/sdks/numbers/README.md +1 -1
- package/docs/sdks/syllablesdktools/README.md +78 -0
- package/docs/sdks/workflows/README.md +9 -9
- package/funcs/insightsFoldersDelete.d.ts +13 -0
- package/funcs/insightsFoldersDelete.d.ts.map +1 -0
- package/funcs/insightsFoldersDelete.js +105 -0
- package/funcs/insightsFoldersDelete.js.map +1 -0
- package/funcs/insightsFoldersMoveFiles.d.ts +14 -0
- package/funcs/insightsFoldersMoveFiles.d.ts.map +1 -0
- package/funcs/insightsFoldersMoveFiles.js +109 -0
- package/funcs/insightsFoldersMoveFiles.js.map +1 -0
- package/funcs/insightsToolsDelete.d.ts +16 -0
- package/funcs/insightsToolsDelete.d.ts.map +1 -0
- package/funcs/insightsToolsDelete.js +108 -0
- package/funcs/insightsToolsDelete.js.map +1 -0
- package/funcs/outboundCampaignsDelete.d.ts +13 -0
- package/funcs/outboundCampaignsDelete.d.ts.map +1 -0
- package/funcs/outboundCampaignsDelete.js +105 -0
- package/funcs/outboundCampaignsDelete.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/insightsfolderfilemove.d.ts +40 -0
- package/models/components/insightsfolderfilemove.d.ts.map +1 -0
- package/models/components/insightsfolderfilemove.js +72 -0
- package/models/components/insightsfolderfilemove.js.map +1 -0
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/insightsfolderdelete.d.ts +29 -0
- package/models/operations/insightsfolderdelete.d.ts.map +1 -0
- package/models/operations/insightsfolderdelete.js +68 -0
- package/models/operations/insightsfolderdelete.js.map +1 -0
- package/models/operations/insightstooldelete.d.ts +29 -0
- package/models/operations/insightstooldelete.d.ts.map +1 -0
- package/models/operations/insightstooldelete.js +68 -0
- package/models/operations/insightstooldelete.js.map +1 -0
- package/models/operations/insightsuploadmovefiles.d.ts +32 -0
- package/models/operations/insightsuploadmovefiles.d.ts.map +1 -0
- package/models/operations/insightsuploadmovefiles.js +73 -0
- package/models/operations/insightsuploadmovefiles.js.map +1 -0
- package/models/operations/outboundcampaigndelete.d.ts +29 -0
- package/models/operations/outboundcampaigndelete.d.ts.map +1 -0
- package/models/operations/outboundcampaigndelete.js +68 -0
- package/models/operations/outboundcampaigndelete.js.map +1 -0
- package/openapi.json +275 -35
- package/package.json +1 -1
- package/sdk/campaigns.d.ts +4 -0
- package/sdk/campaigns.d.ts.map +1 -1
- package/sdk/campaigns.js +7 -0
- package/sdk/campaigns.js.map +1 -1
- package/sdk/folders.d.ts +8 -0
- package/sdk/folders.d.ts.map +1 -1
- package/sdk/folders.js +14 -0
- package/sdk/folders.js.map +1 -1
- package/sdk/syllablesdktools.d.ts +7 -0
- package/sdk/syllablesdktools.d.ts.map +1 -1
- package/sdk/syllablesdktools.js +10 -0
- package/sdk/syllablesdktools.js.map +1 -1
- package/src/funcs/insightsFoldersDelete.ts +140 -0
- package/src/funcs/insightsFoldersMoveFiles.ts +146 -0
- package/src/funcs/insightsToolsDelete.ts +144 -0
- package/src/funcs/outboundCampaignsDelete.ts +142 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +1 -0
- package/src/models/components/insightsfolderfilemove.ts +90 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/insightsfolderdelete.ts +77 -0
- package/src/models/operations/insightstooldelete.ts +75 -0
- package/src/models/operations/insightsuploadmovefiles.ts +84 -0
- package/src/models/operations/outboundcampaigndelete.ts +77 -0
- package/src/sdk/campaigns.ts +15 -0
- package/src/sdk/folders.ts +30 -0
- package/src/sdk/syllablesdktools.ts +18 -0
|
@@ -68,6 +68,7 @@ export * from "./incidentproperties.js";
|
|
|
68
68
|
export * from "./incidentresponse.js";
|
|
69
69
|
export * from "./incidentupdaterequest.js";
|
|
70
70
|
export * from "./insightsfolder.js";
|
|
71
|
+
export * from "./insightsfolderfilemove.js";
|
|
71
72
|
export * from "./insightsfolderinput.js";
|
|
72
73
|
export * from "./insightsfolderproperties.js";
|
|
73
74
|
export * from "./insightsoutput.js";
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Request model to move files between insight upload folders.
|
|
13
|
+
*/
|
|
14
|
+
export type InsightsFolderFileMove = {
|
|
15
|
+
/**
|
|
16
|
+
* System-assign folder ID
|
|
17
|
+
*/
|
|
18
|
+
destinationFolderId: number;
|
|
19
|
+
/**
|
|
20
|
+
* List of system-assigned IDs for the files to be moved
|
|
21
|
+
*/
|
|
22
|
+
fileIdList: Array<number>;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const InsightsFolderFileMove$inboundSchema: z.ZodType<
|
|
27
|
+
InsightsFolderFileMove,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
destination_folder_id: z.number().int(),
|
|
32
|
+
file_id_list: z.array(z.number().int()),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"destination_folder_id": "destinationFolderId",
|
|
36
|
+
"file_id_list": "fileIdList",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type InsightsFolderFileMove$Outbound = {
|
|
42
|
+
destination_folder_id: number;
|
|
43
|
+
file_id_list: Array<number>;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const InsightsFolderFileMove$outboundSchema: z.ZodType<
|
|
48
|
+
InsightsFolderFileMove$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
InsightsFolderFileMove
|
|
51
|
+
> = z.object({
|
|
52
|
+
destinationFolderId: z.number().int(),
|
|
53
|
+
fileIdList: z.array(z.number().int()),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
destinationFolderId: "destination_folder_id",
|
|
57
|
+
fileIdList: "file_id_list",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace InsightsFolderFileMove$ {
|
|
66
|
+
/** @deprecated use `InsightsFolderFileMove$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema = InsightsFolderFileMove$inboundSchema;
|
|
68
|
+
/** @deprecated use `InsightsFolderFileMove$outboundSchema` instead. */
|
|
69
|
+
export const outboundSchema = InsightsFolderFileMove$outboundSchema;
|
|
70
|
+
/** @deprecated use `InsightsFolderFileMove$Outbound` instead. */
|
|
71
|
+
export type Outbound = InsightsFolderFileMove$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function insightsFolderFileMoveToJSON(
|
|
75
|
+
insightsFolderFileMove: InsightsFolderFileMove,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
InsightsFolderFileMove$outboundSchema.parse(insightsFolderFileMove),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function insightsFolderFileMoveFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<InsightsFolderFileMove, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => InsightsFolderFileMove$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'InsightsFolderFileMove' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -29,13 +29,16 @@ export * from "./getsessiontoolcallresultbyid.js";
|
|
|
29
29
|
export * from "./incidentdelete.js";
|
|
30
30
|
export * from "./incidentgetbyid.js";
|
|
31
31
|
export * from "./incidentlist.js";
|
|
32
|
+
export * from "./insightsfolderdelete.js";
|
|
32
33
|
export * from "./insightsfoldergetbyid.js";
|
|
33
34
|
export * from "./insightsfolderlist.js";
|
|
34
35
|
export * from "./insightsfolderupdate.js";
|
|
35
36
|
export * from "./insightsfolderuploadfile.js";
|
|
36
37
|
export * from "./insightslist.js";
|
|
38
|
+
export * from "./insightstooldelete.js";
|
|
37
39
|
export * from "./insightstoolupdate.js";
|
|
38
40
|
export * from "./insightsuploadlistfiles.js";
|
|
41
|
+
export * from "./insightsuploadmovefiles.js";
|
|
39
42
|
export * from "./insightsworkflowactivate.js";
|
|
40
43
|
export * from "./insightsworkflowdelete.js";
|
|
41
44
|
export * from "./insightsworkflowgetbyid.js";
|
|
@@ -55,6 +58,7 @@ export * from "./outboundbatchremove.js";
|
|
|
55
58
|
export * from "./outboundbatchresults.js";
|
|
56
59
|
export * from "./outboundbatchupdate.js";
|
|
57
60
|
export * from "./outboundbatchupload.js";
|
|
61
|
+
export * from "./outboundcampaigndelete.js";
|
|
58
62
|
export * from "./outboundcampaigngetbyid.js";
|
|
59
63
|
export * from "./outboundcampaignlist.js";
|
|
60
64
|
export * from "./outboundcampaignupdate.js";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type InsightsFolderDeleteRequest = {
|
|
12
|
+
folderId: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const InsightsFolderDeleteRequest$inboundSchema: z.ZodType<
|
|
17
|
+
InsightsFolderDeleteRequest,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
folder_id: z.number().int(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"folder_id": "folderId",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type InsightsFolderDeleteRequest$Outbound = {
|
|
30
|
+
folder_id: number;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const InsightsFolderDeleteRequest$outboundSchema: z.ZodType<
|
|
35
|
+
InsightsFolderDeleteRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
InsightsFolderDeleteRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
folderId: z.number().int(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
folderId: "folder_id",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace InsightsFolderDeleteRequest$ {
|
|
51
|
+
/** @deprecated use `InsightsFolderDeleteRequest$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = InsightsFolderDeleteRequest$inboundSchema;
|
|
53
|
+
/** @deprecated use `InsightsFolderDeleteRequest$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = InsightsFolderDeleteRequest$outboundSchema;
|
|
55
|
+
/** @deprecated use `InsightsFolderDeleteRequest$Outbound` instead. */
|
|
56
|
+
export type Outbound = InsightsFolderDeleteRequest$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function insightsFolderDeleteRequestToJSON(
|
|
60
|
+
insightsFolderDeleteRequest: InsightsFolderDeleteRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
InsightsFolderDeleteRequest$outboundSchema.parse(
|
|
64
|
+
insightsFolderDeleteRequest,
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function insightsFolderDeleteRequestFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<InsightsFolderDeleteRequest, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => InsightsFolderDeleteRequest$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'InsightsFolderDeleteRequest' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type InsightsToolDeleteRequest = {
|
|
12
|
+
toolId: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const InsightsToolDeleteRequest$inboundSchema: z.ZodType<
|
|
17
|
+
InsightsToolDeleteRequest,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
tool_id: z.number().int(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"tool_id": "toolId",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type InsightsToolDeleteRequest$Outbound = {
|
|
30
|
+
tool_id: number;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const InsightsToolDeleteRequest$outboundSchema: z.ZodType<
|
|
35
|
+
InsightsToolDeleteRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
InsightsToolDeleteRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
toolId: z.number().int(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
toolId: "tool_id",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace InsightsToolDeleteRequest$ {
|
|
51
|
+
/** @deprecated use `InsightsToolDeleteRequest$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = InsightsToolDeleteRequest$inboundSchema;
|
|
53
|
+
/** @deprecated use `InsightsToolDeleteRequest$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = InsightsToolDeleteRequest$outboundSchema;
|
|
55
|
+
/** @deprecated use `InsightsToolDeleteRequest$Outbound` instead. */
|
|
56
|
+
export type Outbound = InsightsToolDeleteRequest$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function insightsToolDeleteRequestToJSON(
|
|
60
|
+
insightsToolDeleteRequest: InsightsToolDeleteRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
InsightsToolDeleteRequest$outboundSchema.parse(insightsToolDeleteRequest),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function insightsToolDeleteRequestFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<InsightsToolDeleteRequest, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => InsightsToolDeleteRequest$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'InsightsToolDeleteRequest' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type InsightsUploadMoveFilesRequest = {
|
|
13
|
+
folderId: number;
|
|
14
|
+
insightsFolderFileMove: components.InsightsFolderFileMove;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const InsightsUploadMoveFilesRequest$inboundSchema: z.ZodType<
|
|
19
|
+
InsightsUploadMoveFilesRequest,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
folder_id: z.number().int(),
|
|
24
|
+
InsightsFolderFileMove: components.InsightsFolderFileMove$inboundSchema,
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"folder_id": "folderId",
|
|
28
|
+
"InsightsFolderFileMove": "insightsFolderFileMove",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type InsightsUploadMoveFilesRequest$Outbound = {
|
|
34
|
+
folder_id: number;
|
|
35
|
+
InsightsFolderFileMove: components.InsightsFolderFileMove$Outbound;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const InsightsUploadMoveFilesRequest$outboundSchema: z.ZodType<
|
|
40
|
+
InsightsUploadMoveFilesRequest$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
InsightsUploadMoveFilesRequest
|
|
43
|
+
> = z.object({
|
|
44
|
+
folderId: z.number().int(),
|
|
45
|
+
insightsFolderFileMove: components.InsightsFolderFileMove$outboundSchema,
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
folderId: "folder_id",
|
|
49
|
+
insightsFolderFileMove: "InsightsFolderFileMove",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace InsightsUploadMoveFilesRequest$ {
|
|
58
|
+
/** @deprecated use `InsightsUploadMoveFilesRequest$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = InsightsUploadMoveFilesRequest$inboundSchema;
|
|
60
|
+
/** @deprecated use `InsightsUploadMoveFilesRequest$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = InsightsUploadMoveFilesRequest$outboundSchema;
|
|
62
|
+
/** @deprecated use `InsightsUploadMoveFilesRequest$Outbound` instead. */
|
|
63
|
+
export type Outbound = InsightsUploadMoveFilesRequest$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function insightsUploadMoveFilesRequestToJSON(
|
|
67
|
+
insightsUploadMoveFilesRequest: InsightsUploadMoveFilesRequest,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
InsightsUploadMoveFilesRequest$outboundSchema.parse(
|
|
71
|
+
insightsUploadMoveFilesRequest,
|
|
72
|
+
),
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function insightsUploadMoveFilesRequestFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<InsightsUploadMoveFilesRequest, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => InsightsUploadMoveFilesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'InsightsUploadMoveFilesRequest' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type OutboundCampaignDeleteRequest = {
|
|
12
|
+
campaignId: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const OutboundCampaignDeleteRequest$inboundSchema: z.ZodType<
|
|
17
|
+
OutboundCampaignDeleteRequest,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
campaign_id: z.number().int(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"campaign_id": "campaignId",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type OutboundCampaignDeleteRequest$Outbound = {
|
|
30
|
+
campaign_id: number;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const OutboundCampaignDeleteRequest$outboundSchema: z.ZodType<
|
|
35
|
+
OutboundCampaignDeleteRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
OutboundCampaignDeleteRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
campaignId: z.number().int(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
campaignId: "campaign_id",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace OutboundCampaignDeleteRequest$ {
|
|
51
|
+
/** @deprecated use `OutboundCampaignDeleteRequest$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = OutboundCampaignDeleteRequest$inboundSchema;
|
|
53
|
+
/** @deprecated use `OutboundCampaignDeleteRequest$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = OutboundCampaignDeleteRequest$outboundSchema;
|
|
55
|
+
/** @deprecated use `OutboundCampaignDeleteRequest$Outbound` instead. */
|
|
56
|
+
export type Outbound = OutboundCampaignDeleteRequest$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function outboundCampaignDeleteRequestToJSON(
|
|
60
|
+
outboundCampaignDeleteRequest: OutboundCampaignDeleteRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
OutboundCampaignDeleteRequest$outboundSchema.parse(
|
|
64
|
+
outboundCampaignDeleteRequest,
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function outboundCampaignDeleteRequestFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<OutboundCampaignDeleteRequest, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => OutboundCampaignDeleteRequest$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'OutboundCampaignDeleteRequest' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
package/src/sdk/campaigns.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { outboundCampaignsCreate } from "../funcs/outboundCampaignsCreate.js";
|
|
6
|
+
import { outboundCampaignsDelete } from "../funcs/outboundCampaignsDelete.js";
|
|
6
7
|
import { outboundCampaignsGetById } from "../funcs/outboundCampaignsGetById.js";
|
|
7
8
|
import { outboundCampaignsList } from "../funcs/outboundCampaignsList.js";
|
|
8
9
|
import { outboundCampaignsUpdate } from "../funcs/outboundCampaignsUpdate.js";
|
|
@@ -67,4 +68,18 @@ export class Campaigns extends ClientSDK {
|
|
|
67
68
|
options,
|
|
68
69
|
));
|
|
69
70
|
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Delete Outbound Communication Campaign
|
|
74
|
+
*/
|
|
75
|
+
async delete(
|
|
76
|
+
request: operations.OutboundCampaignDeleteRequest,
|
|
77
|
+
options?: RequestOptions,
|
|
78
|
+
): Promise<any> {
|
|
79
|
+
return unwrapAsync(outboundCampaignsDelete(
|
|
80
|
+
this,
|
|
81
|
+
request,
|
|
82
|
+
options,
|
|
83
|
+
));
|
|
84
|
+
}
|
|
70
85
|
}
|
package/src/sdk/folders.ts
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { insightsFoldersCreate } from "../funcs/insightsFoldersCreate.js";
|
|
6
|
+
import { insightsFoldersDelete } from "../funcs/insightsFoldersDelete.js";
|
|
6
7
|
import { insightsFoldersGetById } from "../funcs/insightsFoldersGetById.js";
|
|
7
8
|
import { insightsFoldersList } from "../funcs/insightsFoldersList.js";
|
|
8
9
|
import { insightsFoldersListFiles } from "../funcs/insightsFoldersListFiles.js";
|
|
10
|
+
import { insightsFoldersMoveFiles } from "../funcs/insightsFoldersMoveFiles.js";
|
|
9
11
|
import { insightsFoldersUpdate } from "../funcs/insightsFoldersUpdate.js";
|
|
10
12
|
import { insightsFoldersUploadFile } from "../funcs/insightsFoldersUploadFile.js";
|
|
11
13
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -56,6 +58,20 @@ export class Folders extends ClientSDK {
|
|
|
56
58
|
));
|
|
57
59
|
}
|
|
58
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Delete Insights Folder
|
|
63
|
+
*/
|
|
64
|
+
async delete(
|
|
65
|
+
request: operations.InsightsFolderDeleteRequest,
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): Promise<boolean> {
|
|
68
|
+
return unwrapAsync(insightsFoldersDelete(
|
|
69
|
+
this,
|
|
70
|
+
request,
|
|
71
|
+
options,
|
|
72
|
+
));
|
|
73
|
+
}
|
|
74
|
+
|
|
59
75
|
/**
|
|
60
76
|
* Update Insights Folder
|
|
61
77
|
*/
|
|
@@ -97,4 +113,18 @@ export class Folders extends ClientSDK {
|
|
|
97
113
|
options,
|
|
98
114
|
));
|
|
99
115
|
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Move Insights Upload Files
|
|
119
|
+
*/
|
|
120
|
+
async moveFiles(
|
|
121
|
+
request: operations.InsightsUploadMoveFilesRequest,
|
|
122
|
+
options?: RequestOptions,
|
|
123
|
+
): Promise<Array<components.InsightsUploadFile>> {
|
|
124
|
+
return unwrapAsync(insightsFoldersMoveFiles(
|
|
125
|
+
this,
|
|
126
|
+
request,
|
|
127
|
+
options,
|
|
128
|
+
));
|
|
129
|
+
}
|
|
100
130
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { insightsToolsCreate } from "../funcs/insightsToolsCreate.js";
|
|
6
|
+
import { insightsToolsDelete } from "../funcs/insightsToolsDelete.js";
|
|
6
7
|
import { insightsToolsGetById } from "../funcs/insightsToolsGetById.js";
|
|
7
8
|
import { insightsToolsInsightsToolTest } from "../funcs/insightsToolsInsightsToolTest.js";
|
|
8
9
|
import { insightsToolsInsightToolGetDefinitions } from "../funcs/insightsToolsInsightToolGetDefinitions.js";
|
|
@@ -65,6 +66,23 @@ export class SyllableSDKTools extends ClientSDK {
|
|
|
65
66
|
));
|
|
66
67
|
}
|
|
67
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Delete Insight Tool Configuration
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* Delete an Insights tool configuration.
|
|
74
|
+
*/
|
|
75
|
+
async delete(
|
|
76
|
+
request: operations.InsightsToolDeleteRequest,
|
|
77
|
+
options?: RequestOptions,
|
|
78
|
+
): Promise<any> {
|
|
79
|
+
return unwrapAsync(insightsToolsDelete(
|
|
80
|
+
this,
|
|
81
|
+
request,
|
|
82
|
+
options,
|
|
83
|
+
));
|
|
84
|
+
}
|
|
85
|
+
|
|
68
86
|
/**
|
|
69
87
|
* Update Insights Tool Configuration
|
|
70
88
|
*
|