syllable-sdk 0.1.0-alpha.143 → 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 +80 -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/components/insightsfolderproperties.d.ts +3 -0
- package/models/components/insightsfolderproperties.d.ts.map +1 -1
- package/models/components/insightsfolderproperties.js +1 -0
- package/models/components/insightsfolderproperties.js.map +1 -1
- package/models/components/insighttoolproperties.d.ts +3 -0
- package/models/components/insighttoolproperties.d.ts.map +1 -1
- package/models/components/insighttoolproperties.js +1 -0
- package/models/components/insighttoolproperties.js.map +1 -1
- package/models/components/insighttooltestinput.d.ts +8 -3
- package/models/components/insighttooltestinput.d.ts.map +1 -1
- package/models/components/insighttooltestinput.js +6 -2
- package/models/components/insighttooltestinput.js.map +1 -1
- package/models/components/insightworkflowproperties.d.ts +3 -0
- package/models/components/insightworkflowproperties.d.ts.map +1 -1
- package/models/components/insightworkflowproperties.js +1 -0
- package/models/components/insightworkflowproperties.js.map +1 -1
- 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 +303 -39
- 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/components/insightsfolderproperties.ts +1 -0
- package/src/models/components/insighttoolproperties.ts +1 -0
- package/src/models/components/insighttooltestinput.ts +14 -5
- package/src/models/components/insightworkflowproperties.ts +1 -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
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { SyllableSDKCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Delete Outbound Communication Campaign
|
|
29
|
+
*/
|
|
30
|
+
export async function outboundCampaignsDelete(
|
|
31
|
+
client: SyllableSDKCore,
|
|
32
|
+
request: operations.OutboundCampaignDeleteRequest,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): Promise<
|
|
35
|
+
Result<
|
|
36
|
+
any,
|
|
37
|
+
| errors.HTTPValidationError
|
|
38
|
+
| SDKError
|
|
39
|
+
| SDKValidationError
|
|
40
|
+
| UnexpectedClientError
|
|
41
|
+
| InvalidRequestError
|
|
42
|
+
| RequestAbortedError
|
|
43
|
+
| RequestTimeoutError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
>
|
|
46
|
+
> {
|
|
47
|
+
const parsed = safeParse(
|
|
48
|
+
request,
|
|
49
|
+
(value) =>
|
|
50
|
+
operations.OutboundCampaignDeleteRequest$outboundSchema.parse(value),
|
|
51
|
+
"Input validation failed",
|
|
52
|
+
);
|
|
53
|
+
if (!parsed.ok) {
|
|
54
|
+
return parsed;
|
|
55
|
+
}
|
|
56
|
+
const payload = parsed.value;
|
|
57
|
+
const body = null;
|
|
58
|
+
|
|
59
|
+
const pathParams = {
|
|
60
|
+
campaign_id: encodeSimple("campaign_id", payload.campaign_id, {
|
|
61
|
+
explode: false,
|
|
62
|
+
charEncoding: "percent",
|
|
63
|
+
}),
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const path = pathToFunc("/api/v1/outbound/campaigns/{campaign_id}")(
|
|
67
|
+
pathParams,
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
const headers = new Headers(compactMap({
|
|
71
|
+
Accept: "application/json",
|
|
72
|
+
}));
|
|
73
|
+
|
|
74
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
75
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
76
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
77
|
+
|
|
78
|
+
const context = {
|
|
79
|
+
baseURL: options?.serverURL ?? "",
|
|
80
|
+
operationID: "outbound_campaign_delete",
|
|
81
|
+
oAuth2Scopes: [],
|
|
82
|
+
|
|
83
|
+
resolvedSecurity: requestSecurity,
|
|
84
|
+
|
|
85
|
+
securitySource: client._options.apiKeyHeader,
|
|
86
|
+
retryConfig: options?.retries
|
|
87
|
+
|| client._options.retryConfig
|
|
88
|
+
|| { strategy: "none" },
|
|
89
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const requestRes = client._createRequest(context, {
|
|
93
|
+
security: requestSecurity,
|
|
94
|
+
method: "DELETE",
|
|
95
|
+
baseURL: options?.serverURL,
|
|
96
|
+
path: path,
|
|
97
|
+
headers: headers,
|
|
98
|
+
body: body,
|
|
99
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
100
|
+
}, options);
|
|
101
|
+
if (!requestRes.ok) {
|
|
102
|
+
return requestRes;
|
|
103
|
+
}
|
|
104
|
+
const req = requestRes.value;
|
|
105
|
+
|
|
106
|
+
const doResult = await client._do(req, {
|
|
107
|
+
context,
|
|
108
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
109
|
+
retryConfig: context.retryConfig,
|
|
110
|
+
retryCodes: context.retryCodes,
|
|
111
|
+
});
|
|
112
|
+
if (!doResult.ok) {
|
|
113
|
+
return doResult;
|
|
114
|
+
}
|
|
115
|
+
const response = doResult.value;
|
|
116
|
+
|
|
117
|
+
const responseFields = {
|
|
118
|
+
HttpMeta: { Response: response, Request: req },
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const [result] = await M.match<
|
|
122
|
+
any,
|
|
123
|
+
| errors.HTTPValidationError
|
|
124
|
+
| SDKError
|
|
125
|
+
| SDKValidationError
|
|
126
|
+
| UnexpectedClientError
|
|
127
|
+
| InvalidRequestError
|
|
128
|
+
| RequestAbortedError
|
|
129
|
+
| RequestTimeoutError
|
|
130
|
+
| ConnectionError
|
|
131
|
+
>(
|
|
132
|
+
M.json(200, z.any()),
|
|
133
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
134
|
+
M.fail("4XX"),
|
|
135
|
+
M.fail("5XX"),
|
|
136
|
+
)(response, { extraFields: responseFields });
|
|
137
|
+
if (!result.ok) {
|
|
138
|
+
return result;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return result;
|
|
142
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.2",
|
|
60
|
-
sdkVersion: "0.1.0-alpha.
|
|
60
|
+
sdkVersion: "0.1.0-alpha.149",
|
|
61
61
|
genVersion: "2.512.4",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.1.0-alpha.
|
|
63
|
+
"speakeasy-sdk/typescript 0.1.0-alpha.149 2.512.4 0.0.2 syllable-sdk",
|
|
64
64
|
} as const;
|
|
@@ -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
|
+
}
|
|
@@ -8,6 +8,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
export const InsightToolProperties = {
|
|
9
9
|
Id: "id",
|
|
10
10
|
Name: "name",
|
|
11
|
+
NameExact: "name_exact",
|
|
11
12
|
Description: "description",
|
|
12
13
|
ToolArguments: "tool_arguments",
|
|
13
14
|
InsightToolDefinitionId: "insight_tool_definition_id",
|
|
@@ -17,9 +17,13 @@ export type InsightToolTestInput = {
|
|
|
17
17
|
*/
|
|
18
18
|
toolName: string;
|
|
19
19
|
/**
|
|
20
|
-
* The session ID of the session to run the tool
|
|
20
|
+
* The session ID of the session against which to run the tool
|
|
21
21
|
*/
|
|
22
|
-
sessionId
|
|
22
|
+
sessionId?: number | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The file ID of the uploaded file against which to run the tool
|
|
25
|
+
*/
|
|
26
|
+
uploadFileId?: number | null | undefined;
|
|
23
27
|
};
|
|
24
28
|
|
|
25
29
|
/** @internal */
|
|
@@ -29,18 +33,21 @@ export const InsightToolTestInput$inboundSchema: z.ZodType<
|
|
|
29
33
|
unknown
|
|
30
34
|
> = z.object({
|
|
31
35
|
tool_name: z.string(),
|
|
32
|
-
session_id: z.number().int(),
|
|
36
|
+
session_id: z.nullable(z.number().int()).optional(),
|
|
37
|
+
upload_file_id: z.nullable(z.number().int()).optional(),
|
|
33
38
|
}).transform((v) => {
|
|
34
39
|
return remap$(v, {
|
|
35
40
|
"tool_name": "toolName",
|
|
36
41
|
"session_id": "sessionId",
|
|
42
|
+
"upload_file_id": "uploadFileId",
|
|
37
43
|
});
|
|
38
44
|
});
|
|
39
45
|
|
|
40
46
|
/** @internal */
|
|
41
47
|
export type InsightToolTestInput$Outbound = {
|
|
42
48
|
tool_name: string;
|
|
43
|
-
session_id
|
|
49
|
+
session_id?: number | null | undefined;
|
|
50
|
+
upload_file_id?: number | null | undefined;
|
|
44
51
|
};
|
|
45
52
|
|
|
46
53
|
/** @internal */
|
|
@@ -50,11 +57,13 @@ export const InsightToolTestInput$outboundSchema: z.ZodType<
|
|
|
50
57
|
InsightToolTestInput
|
|
51
58
|
> = z.object({
|
|
52
59
|
toolName: z.string(),
|
|
53
|
-
sessionId: z.number().int(),
|
|
60
|
+
sessionId: z.nullable(z.number().int()).optional(),
|
|
61
|
+
uploadFileId: z.nullable(z.number().int()).optional(),
|
|
54
62
|
}).transform((v) => {
|
|
55
63
|
return remap$(v, {
|
|
56
64
|
toolName: "tool_name",
|
|
57
65
|
sessionId: "session_id",
|
|
66
|
+
uploadFileId: "upload_file_id",
|
|
58
67
|
});
|
|
59
68
|
});
|
|
60
69
|
|
|
@@ -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
|
+
}
|