syllable-sdk 0.1.0-alpha.73 → 0.1.0-alpha.74
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 +17 -13
- package/docs/sdks/batches/README.md +30 -32
- package/docs/sdks/campaigns/README.md +11 -3
- package/docs/sdks/incidents/README.md +178 -84
- package/docs/sdks/insights/README.md +1 -1
- package/docs/sdks/syllablesdktools/README.md +82 -2
- package/docs/sdks/takeouts/README.md +11 -11
- package/docs/sdks/workflows/README.md +1 -1
- package/funcs/incidentsCreate.d.ts +1 -1
- package/funcs/incidentsCreate.d.ts.map +1 -1
- package/funcs/incidentsCreate.js +2 -2
- package/funcs/incidentsCreate.js.map +1 -1
- package/funcs/incidentsDelete.d.ts.map +1 -1
- package/funcs/incidentsDelete.js +4 -0
- package/funcs/incidentsDelete.js.map +1 -1
- package/funcs/incidentsGetById.d.ts +1 -1
- package/funcs/incidentsGetById.d.ts.map +1 -1
- package/funcs/incidentsGetById.js +1 -1
- package/funcs/incidentsGetById.js.map +1 -1
- package/funcs/incidentsIncidentGetOrganizations.d.ts +15 -0
- package/funcs/incidentsIncidentGetOrganizations.d.ts.map +1 -0
- package/funcs/incidentsIncidentGetOrganizations.js +89 -0
- package/funcs/incidentsIncidentGetOrganizations.js.map +1 -0
- package/funcs/incidentsList.d.ts +2 -2
- package/funcs/incidentsList.d.ts.map +1 -1
- package/funcs/incidentsList.js +10 -4
- package/funcs/incidentsList.js.map +1 -1
- package/funcs/incidentsUpdate.d.ts +1 -2
- package/funcs/incidentsUpdate.d.ts.map +1 -1
- package/funcs/incidentsUpdate.js +4 -13
- package/funcs/incidentsUpdate.js.map +1 -1
- package/funcs/insightsList.d.ts +1 -1
- package/funcs/insightsList.js +1 -1
- package/funcs/insightsToolsCreate.d.ts +1 -1
- package/funcs/insightsToolsCreate.js +3 -3
- package/funcs/insightsToolsCreate.js.map +1 -1
- package/funcs/insightsToolsInsightsToolTest.d.ts +16 -0
- package/funcs/insightsToolsInsightsToolTest.d.ts.map +1 -0
- package/funcs/insightsToolsInsightsToolTest.js +103 -0
- package/funcs/insightsToolsInsightsToolTest.js.map +1 -0
- package/funcs/insightsToolsUpdate.d.ts +1 -1
- package/funcs/insightsToolsUpdate.js +1 -1
- package/funcs/insightsWorkflowsQueueSessionsWorkflow.d.ts +1 -1
- package/funcs/insightsWorkflowsQueueSessionsWorkflow.js +1 -1
- package/funcs/{outboundBatchesOutboundBatchAdd.d.ts → outboundBatchesAdd.d.ts} +2 -2
- package/funcs/outboundBatchesAdd.d.ts.map +1 -0
- package/funcs/{outboundBatchesOutboundBatchAdd.js → outboundBatchesAdd.js} +3 -3
- package/funcs/outboundBatchesAdd.js.map +1 -0
- package/funcs/outboundBatchesList.d.ts +1 -1
- package/funcs/outboundBatchesList.d.ts.map +1 -1
- package/funcs/outboundBatchesList.js +1 -2
- package/funcs/outboundBatchesList.js.map +1 -1
- package/funcs/{outboundBatchesOutboundBatchRemove.d.ts → outboundBatchesRemove.d.ts} +2 -2
- package/funcs/outboundBatchesRemove.d.ts.map +1 -0
- package/funcs/{outboundBatchesOutboundBatchRemove.js → outboundBatchesRemove.js} +3 -3
- package/funcs/outboundBatchesRemove.js.map +1 -0
- package/funcs/{outboundBatchesOutboundBatchResults.d.ts → outboundBatchesResults.d.ts} +2 -2
- package/funcs/outboundBatchesResults.d.ts.map +1 -0
- package/funcs/{outboundBatchesOutboundBatchResults.js → outboundBatchesResults.js} +8 -3
- package/funcs/outboundBatchesResults.js.map +1 -0
- package/funcs/outboundBatchesUpload.d.ts.map +1 -1
- package/funcs/outboundBatchesUpload.js +16 -12
- package/funcs/outboundBatchesUpload.js.map +1 -1
- package/funcs/outboundCampaignsList.d.ts +1 -1
- package/funcs/outboundCampaignsList.d.ts.map +1 -1
- package/funcs/outboundCampaignsList.js +1 -2
- package/funcs/outboundCampaignsList.js.map +1 -1
- package/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts → takeoutsCreate.d.ts} +2 -2
- package/funcs/takeoutsCreate.d.ts.map +1 -0
- package/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js → takeoutsCreate.js} +4 -4
- package/funcs/takeoutsCreate.js.map +1 -0
- package/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts → takeoutsTakeoutsGetByJobId.d.ts} +2 -2
- package/funcs/takeoutsTakeoutsGetByJobId.d.ts.map +1 -0
- package/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js → takeoutsTakeoutsGetByJobId.js} +5 -5
- package/funcs/takeoutsTakeoutsGetByJobId.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/bodyoutboundbatchdelete.d.ts +1 -1
- package/models/components/bodyoutboundbatchdelete.d.ts.map +1 -1
- package/models/components/bodyoutboundbatchdelete.js +10 -1
- package/models/components/bodyoutboundbatchdelete.js.map +1 -1
- package/models/components/bodyoutboundbatchupload.d.ts +2 -2
- package/models/components/bodyoutboundbatchupload.d.ts.map +1 -1
- package/models/components/bodyoutboundbatchupload.js +2 -2
- package/models/components/bodyoutboundbatchupload.js.map +1 -1
- package/models/components/communicationrequest.d.ts +0 -11
- package/models/components/communicationrequest.d.ts.map +1 -1
- package/models/components/communicationrequest.js +0 -9
- package/models/components/communicationrequest.js.map +1 -1
- package/models/components/communicationrequestresult.d.ts +39 -14
- package/models/components/communicationrequestresult.d.ts.map +1 -1
- package/models/components/communicationrequestresult.js +38 -14
- package/models/components/communicationrequestresult.js.map +1 -1
- package/models/components/conversation.d.ts +10 -0
- package/models/components/conversation.d.ts.map +1 -1
- package/models/components/conversation.js +8 -0
- package/models/components/conversation.js.map +1 -1
- package/models/components/incidentcreaterequest.d.ts +75 -0
- package/models/components/incidentcreaterequest.d.ts.map +1 -0
- package/models/components/{serviceincidentrequest.js → incidentcreaterequest.js} +29 -29
- package/models/components/incidentcreaterequest.js.map +1 -0
- package/models/components/incidentorganizationresponse.d.ts +33 -0
- package/models/components/incidentorganizationresponse.d.ts.map +1 -0
- package/models/components/incidentorganizationresponse.js +72 -0
- package/models/components/incidentorganizationresponse.js.map +1 -0
- package/models/components/incidentproperties.d.ts +64 -0
- package/models/components/incidentproperties.d.ts.map +1 -0
- package/models/components/{requeststatus.js → incidentproperties.js} +25 -19
- package/models/components/incidentproperties.js.map +1 -0
- package/models/components/incidentresponse.d.ts +90 -0
- package/models/components/incidentresponse.d.ts.map +1 -0
- package/models/components/{serviceincidentresponse.js → incidentresponse.js} +33 -33
- package/models/components/incidentresponse.js.map +1 -0
- package/models/components/incidentupdaterequest.d.ts +90 -0
- package/models/components/incidentupdaterequest.d.ts.map +1 -0
- package/models/{operations/incidentupdate.js → components/incidentupdaterequest.js} +43 -10
- package/models/components/incidentupdaterequest.js.map +1 -0
- package/models/components/index.d.ts +9 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +9 -3
- package/models/components/index.js.map +1 -1
- package/models/components/insighttooltestinput.d.ts +40 -0
- package/models/components/insighttooltestinput.d.ts.map +1 -0
- package/models/components/insighttooltestinput.js +72 -0
- package/models/components/insighttooltestinput.js.map +1 -0
- package/models/components/listresponsecommunicationbatch.d.ts +53 -0
- package/models/components/listresponsecommunicationbatch.d.ts.map +1 -0
- package/models/components/listresponsecommunicationbatch.js +81 -0
- package/models/components/listresponsecommunicationbatch.js.map +1 -0
- package/models/components/listresponseincidentresponse.d.ts +53 -0
- package/models/components/listresponseincidentresponse.d.ts.map +1 -0
- package/models/components/listresponseincidentresponse.js +81 -0
- package/models/components/listresponseincidentresponse.js.map +1 -0
- package/models/components/listresponseoutboundcampaign.d.ts +53 -0
- package/models/components/listresponseoutboundcampaign.d.ts.map +1 -0
- package/models/components/listresponseoutboundcampaign.js +81 -0
- package/models/components/listresponseoutboundcampaign.js.map +1 -0
- package/models/components/outboundcampaign.d.ts +10 -0
- package/models/components/outboundcampaign.d.ts.map +1 -1
- package/models/components/outboundcampaign.js +4 -0
- package/models/components/outboundcampaign.js.map +1 -1
- package/models/components/outboundcampaigninput.d.ts +10 -0
- package/models/components/outboundcampaigninput.d.ts.map +1 -1
- package/models/components/outboundcampaigninput.js +4 -0
- package/models/components/outboundcampaigninput.js.map +1 -1
- package/models/components/promptcreaterequest.d.ts +1 -1
- package/models/components/promptupdaterequest.d.ts +1 -1
- package/models/operations/incidentdelete.d.ts +2 -0
- package/models/operations/incidentdelete.d.ts.map +1 -1
- package/models/operations/incidentdelete.js +2 -0
- package/models/operations/incidentdelete.js.map +1 -1
- package/models/operations/incidentlist.d.ts +44 -2
- package/models/operations/incidentlist.d.ts.map +1 -1
- package/models/operations/incidentlist.js +44 -4
- package/models/operations/incidentlist.js.map +1 -1
- package/models/operations/index.d.ts +1 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/outboundbatchresults.d.ts +4 -0
- package/models/operations/outboundbatchresults.d.ts.map +1 -1
- package/models/operations/outboundbatchresults.js +6 -0
- package/models/operations/outboundbatchresults.js.map +1 -1
- package/models/operations/outboundbatchupload.d.ts +2 -2
- package/models/operations/outboundbatchupload.d.ts.map +1 -1
- package/models/operations/outboundbatchupload.js +4 -2
- package/models/operations/outboundbatchupload.js.map +1 -1
- package/models/operations/takeoutsgetbyjobid.d.ts +29 -0
- package/models/operations/takeoutsgetbyjobid.d.ts.map +1 -0
- package/models/operations/{gettakeoutapiv1takeoutsgetjobidget.js → takeoutsgetbyjobid.js} +17 -17
- package/models/operations/takeoutsgetbyjobid.js.map +1 -0
- package/openapi.json +1206 -423
- package/package.json +1 -1
- package/sdk/batches.d.ts +4 -4
- package/sdk/batches.d.ts.map +1 -1
- package/sdk/batches.js +9 -9
- package/sdk/batches.js.map +1 -1
- package/sdk/campaigns.d.ts +1 -1
- package/sdk/campaigns.d.ts.map +1 -1
- package/sdk/incidents.d.ts +20 -13
- package/sdk/incidents.d.ts.map +1 -1
- package/sdk/incidents.js +26 -16
- package/sdk/incidents.js.map +1 -1
- package/sdk/insights.d.ts +1 -1
- package/sdk/insights.js +1 -1
- package/sdk/syllablesdktools.d.ts +9 -2
- package/sdk/syllablesdktools.d.ts.map +1 -1
- package/sdk/syllablesdktools.js +12 -2
- package/sdk/syllablesdktools.js.map +1 -1
- package/sdk/takeouts.d.ts +2 -2
- package/sdk/takeouts.d.ts.map +1 -1
- package/sdk/takeouts.js +6 -6
- package/sdk/takeouts.js.map +1 -1
- package/sdk/workflows.d.ts +1 -1
- package/sdk/workflows.js +1 -1
- package/src/funcs/incidentsCreate.ts +5 -5
- package/src/funcs/incidentsDelete.ts +6 -1
- package/src/funcs/incidentsGetById.ts +3 -3
- package/src/funcs/incidentsIncidentGetOrganizations.ts +112 -0
- package/src/funcs/incidentsList.ts +12 -6
- package/src/funcs/incidentsUpdate.ts +8 -18
- package/src/funcs/insightsList.ts +1 -1
- package/src/funcs/insightsToolsCreate.ts +4 -4
- package/src/funcs/insightsToolsInsightsToolTest.ts +136 -0
- package/src/funcs/insightsToolsUpdate.ts +1 -1
- package/src/funcs/insightsWorkflowsQueueSessionsWorkflow.ts +1 -1
- package/src/funcs/{outboundBatchesOutboundBatchAdd.ts → outboundBatchesAdd.ts} +1 -1
- package/src/funcs/outboundBatchesList.ts +3 -4
- package/src/funcs/{outboundBatchesOutboundBatchRemove.ts → outboundBatchesRemove.ts} +1 -1
- package/src/funcs/{outboundBatchesOutboundBatchResults.ts → outboundBatchesResults.ts} +8 -2
- package/src/funcs/outboundBatchesUpload.ts +23 -20
- package/src/funcs/outboundCampaignsList.ts +3 -4
- package/src/funcs/{takeoutsCreateTakeoutApiV1TakeoutsCreatePost.ts → takeoutsCreate.ts} +2 -2
- package/src/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.ts → takeoutsTakeoutsGetByJobId.ts} +4 -7
- package/src/lib/config.ts +2 -2
- package/src/models/components/bodyoutboundbatchdelete.ts +11 -2
- package/src/models/components/bodyoutboundbatchupload.ts +4 -4
- package/src/models/components/communicationrequest.ts +0 -23
- package/src/models/components/communicationrequestresult.ts +78 -30
- package/src/models/components/conversation.ts +18 -0
- package/src/models/components/{serviceincidentrequest.ts → incidentcreaterequest.ts} +69 -39
- package/src/models/components/incidentorganizationresponse.ts +85 -0
- package/src/models/components/incidentproperties.ts +49 -0
- package/src/models/components/incidentresponse.ts +182 -0
- package/src/models/components/incidentupdaterequest.ts +182 -0
- package/src/models/components/index.ts +9 -3
- package/src/models/components/insighttooltestinput.ts +90 -0
- package/src/models/components/listresponsecommunicationbatch.ts +118 -0
- package/src/models/components/listresponseincidentresponse.ts +118 -0
- package/src/models/components/listresponseoutboundcampaign.ts +118 -0
- package/src/models/components/outboundcampaign.ts +14 -0
- package/src/models/components/outboundcampaigninput.ts +14 -0
- package/src/models/components/promptcreaterequest.ts +1 -1
- package/src/models/components/promptupdaterequest.ts +1 -1
- package/src/models/operations/incidentdelete.ts +4 -0
- package/src/models/operations/incidentlist.ts +87 -6
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/outboundbatchresults.ts +10 -0
- package/src/models/operations/outboundbatchupload.ts +8 -4
- package/src/models/operations/takeoutsgetbyjobid.ts +75 -0
- package/src/sdk/batches.ts +10 -10
- package/src/sdk/campaigns.ts +1 -1
- package/src/sdk/incidents.ts +43 -27
- package/src/sdk/insights.ts +1 -1
- package/src/sdk/syllablesdktools.ts +20 -2
- package/src/sdk/takeouts.ts +7 -7
- package/src/sdk/workflows.ts +1 -1
- package/funcs/outboundBatchesOutboundBatchAdd.d.ts.map +0 -1
- package/funcs/outboundBatchesOutboundBatchAdd.js.map +0 -1
- package/funcs/outboundBatchesOutboundBatchRemove.d.ts.map +0 -1
- package/funcs/outboundBatchesOutboundBatchRemove.js.map +0 -1
- package/funcs/outboundBatchesOutboundBatchResults.d.ts.map +0 -1
- package/funcs/outboundBatchesOutboundBatchResults.js.map +0 -1
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts.map +0 -1
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js.map +0 -1
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts.map +0 -1
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js.map +0 -1
- package/models/components/requeststatus.d.ts +0 -46
- package/models/components/requeststatus.d.ts.map +0 -1
- package/models/components/requeststatus.js.map +0 -1
- package/models/components/serviceincidentrequest.d.ts +0 -45
- package/models/components/serviceincidentrequest.d.ts.map +0 -1
- package/models/components/serviceincidentrequest.js.map +0 -1
- package/models/components/serviceincidentresponse.d.ts +0 -51
- package/models/components/serviceincidentresponse.d.ts.map +0 -1
- package/models/components/serviceincidentresponse.js.map +0 -1
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts +0 -29
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts.map +0 -1
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.js.map +0 -1
- package/models/operations/incidentupdate.d.ts +0 -32
- package/models/operations/incidentupdate.d.ts.map +0 -1
- package/models/operations/incidentupdate.js.map +0 -1
- package/src/models/components/requeststatus.ts +0 -43
- package/src/models/components/serviceincidentresponse.ts +0 -139
- package/src/models/operations/gettakeoutapiv1takeoutsgetjobidget.ts +0 -87
- package/src/models/operations/incidentupdate.ts +0 -82
|
@@ -0,0 +1,112 @@
|
|
|
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 * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import * as components from "../models/components/index.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import { Result } from "../types/fp.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Get Organizations
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* Get all organizations
|
|
29
|
+
*/
|
|
30
|
+
export async function incidentsIncidentGetOrganizations(
|
|
31
|
+
client: SyllableSDKCore,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<
|
|
34
|
+
Result<
|
|
35
|
+
Array<components.IncidentOrganizationResponse>,
|
|
36
|
+
| SDKError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
const path = pathToFunc("/api/v1/incidents/organizations")();
|
|
46
|
+
|
|
47
|
+
const headers = new Headers(compactMap({
|
|
48
|
+
Accept: "application/json",
|
|
49
|
+
}));
|
|
50
|
+
|
|
51
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
52
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
53
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54
|
+
|
|
55
|
+
const context = {
|
|
56
|
+
baseURL: options?.serverURL ?? "",
|
|
57
|
+
operationID: "incident_get_organizations",
|
|
58
|
+
oAuth2Scopes: [],
|
|
59
|
+
|
|
60
|
+
resolvedSecurity: requestSecurity,
|
|
61
|
+
|
|
62
|
+
securitySource: client._options.apiKeyHeader,
|
|
63
|
+
retryConfig: options?.retries
|
|
64
|
+
|| client._options.retryConfig
|
|
65
|
+
|| { strategy: "none" },
|
|
66
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const requestRes = client._createRequest(context, {
|
|
70
|
+
security: requestSecurity,
|
|
71
|
+
method: "GET",
|
|
72
|
+
baseURL: options?.serverURL,
|
|
73
|
+
path: path,
|
|
74
|
+
headers: headers,
|
|
75
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
76
|
+
}, options);
|
|
77
|
+
if (!requestRes.ok) {
|
|
78
|
+
return requestRes;
|
|
79
|
+
}
|
|
80
|
+
const req = requestRes.value;
|
|
81
|
+
|
|
82
|
+
const doResult = await client._do(req, {
|
|
83
|
+
context,
|
|
84
|
+
errorCodes: ["4XX", "5XX"],
|
|
85
|
+
retryConfig: context.retryConfig,
|
|
86
|
+
retryCodes: context.retryCodes,
|
|
87
|
+
});
|
|
88
|
+
if (!doResult.ok) {
|
|
89
|
+
return doResult;
|
|
90
|
+
}
|
|
91
|
+
const response = doResult.value;
|
|
92
|
+
|
|
93
|
+
const [result] = await M.match<
|
|
94
|
+
Array<components.IncidentOrganizationResponse>,
|
|
95
|
+
| SDKError
|
|
96
|
+
| SDKValidationError
|
|
97
|
+
| UnexpectedClientError
|
|
98
|
+
| InvalidRequestError
|
|
99
|
+
| RequestAbortedError
|
|
100
|
+
| RequestTimeoutError
|
|
101
|
+
| ConnectionError
|
|
102
|
+
>(
|
|
103
|
+
M.json(200, z.array(components.IncidentOrganizationResponse$inboundSchema)),
|
|
104
|
+
M.fail("4XX"),
|
|
105
|
+
M.fail("5XX"),
|
|
106
|
+
)(response);
|
|
107
|
+
if (!result.ok) {
|
|
108
|
+
return result;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return result;
|
|
112
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { SyllableSDKCore } from "../core.js";
|
|
7
6
|
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -29,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
28
|
* List Incidents
|
|
30
29
|
*
|
|
31
30
|
* @remarks
|
|
32
|
-
* List service incidents with pagination
|
|
31
|
+
* List service incidents with pagination and filtering
|
|
33
32
|
*/
|
|
34
33
|
export async function incidentsList(
|
|
35
34
|
client: SyllableSDKCore,
|
|
@@ -37,7 +36,7 @@ export async function incidentsList(
|
|
|
37
36
|
options?: RequestOptions,
|
|
38
37
|
): Promise<
|
|
39
38
|
Result<
|
|
40
|
-
|
|
39
|
+
components.ListResponseIncidentResponse,
|
|
41
40
|
| errors.HTTPValidationError
|
|
42
41
|
| SDKError
|
|
43
42
|
| SDKValidationError
|
|
@@ -62,8 +61,15 @@ export async function incidentsList(
|
|
|
62
61
|
const path = pathToFunc("/api/v1/incidents/")();
|
|
63
62
|
|
|
64
63
|
const query = encodeFormQuery({
|
|
64
|
+
"end_datetime": payload.end_datetime,
|
|
65
|
+
"fields": payload.fields,
|
|
65
66
|
"limit": payload.limit,
|
|
66
|
-
"
|
|
67
|
+
"order_by": payload.order_by,
|
|
68
|
+
"order_by_direction": payload.order_by_direction,
|
|
69
|
+
"page": payload.page,
|
|
70
|
+
"search_field_values": payload.search_field_values,
|
|
71
|
+
"search_fields": payload.search_fields,
|
|
72
|
+
"start_datetime": payload.start_datetime,
|
|
67
73
|
});
|
|
68
74
|
|
|
69
75
|
const headers = new Headers(compactMap({
|
|
@@ -119,7 +125,7 @@ export async function incidentsList(
|
|
|
119
125
|
};
|
|
120
126
|
|
|
121
127
|
const [result] = await M.match<
|
|
122
|
-
|
|
128
|
+
components.ListResponseIncidentResponse,
|
|
123
129
|
| errors.HTTPValidationError
|
|
124
130
|
| SDKError
|
|
125
131
|
| SDKValidationError
|
|
@@ -129,7 +135,7 @@ export async function incidentsList(
|
|
|
129
135
|
| RequestTimeoutError
|
|
130
136
|
| ConnectionError
|
|
131
137
|
>(
|
|
132
|
-
M.json(200,
|
|
138
|
+
M.json(200, components.ListResponseIncidentResponse$inboundSchema),
|
|
133
139
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
134
140
|
M.fail("4XX"),
|
|
135
141
|
M.fail("5XX"),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { SyllableSDKCore } from "../core.js";
|
|
6
|
-
import { encodeJSON
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
23
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
-
import * as operations from "../models/operations/index.js";
|
|
25
24
|
import { Result } from "../types/fp.js";
|
|
26
25
|
|
|
27
26
|
/**
|
|
@@ -32,11 +31,11 @@ import { Result } from "../types/fp.js";
|
|
|
32
31
|
*/
|
|
33
32
|
export async function incidentsUpdate(
|
|
34
33
|
client: SyllableSDKCore,
|
|
35
|
-
request:
|
|
34
|
+
request: components.IncidentUpdateRequest,
|
|
36
35
|
options?: RequestOptions,
|
|
37
36
|
): Promise<
|
|
38
37
|
Result<
|
|
39
|
-
components.
|
|
38
|
+
components.IncidentResponse,
|
|
40
39
|
| errors.HTTPValidationError
|
|
41
40
|
| SDKError
|
|
42
41
|
| SDKValidationError
|
|
@@ -49,25 +48,16 @@ export async function incidentsUpdate(
|
|
|
49
48
|
> {
|
|
50
49
|
const parsed = safeParse(
|
|
51
50
|
request,
|
|
52
|
-
(value) =>
|
|
51
|
+
(value) => components.IncidentUpdateRequest$outboundSchema.parse(value),
|
|
53
52
|
"Input validation failed",
|
|
54
53
|
);
|
|
55
54
|
if (!parsed.ok) {
|
|
56
55
|
return parsed;
|
|
57
56
|
}
|
|
58
57
|
const payload = parsed.value;
|
|
59
|
-
const body = encodeJSON("body", payload
|
|
60
|
-
explode: true,
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
const pathParams = {
|
|
64
|
-
incident_id: encodeSimple("incident_id", payload.incident_id, {
|
|
65
|
-
explode: false,
|
|
66
|
-
charEncoding: "percent",
|
|
67
|
-
}),
|
|
68
|
-
};
|
|
58
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
69
59
|
|
|
70
|
-
const path = pathToFunc("/api/v1/incidents/
|
|
60
|
+
const path = pathToFunc("/api/v1/incidents/")();
|
|
71
61
|
|
|
72
62
|
const headers = new Headers(compactMap({
|
|
73
63
|
"Content-Type": "application/json",
|
|
@@ -122,7 +112,7 @@ export async function incidentsUpdate(
|
|
|
122
112
|
};
|
|
123
113
|
|
|
124
114
|
const [result] = await M.match<
|
|
125
|
-
components.
|
|
115
|
+
components.IncidentResponse,
|
|
126
116
|
| errors.HTTPValidationError
|
|
127
117
|
| SDKError
|
|
128
118
|
| SDKValidationError
|
|
@@ -132,7 +122,7 @@ export async function incidentsUpdate(
|
|
|
132
122
|
| RequestTimeoutError
|
|
133
123
|
| ConnectionError
|
|
134
124
|
>(
|
|
135
|
-
M.json(200, components.
|
|
125
|
+
M.json(200, components.IncidentResponse$inboundSchema),
|
|
136
126
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
137
127
|
M.fail("4XX"),
|
|
138
128
|
M.fail("5XX"),
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* Create Insight Tool
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Create a new tool
|
|
30
|
+
* Create a new insight tool.
|
|
31
31
|
*/
|
|
32
32
|
export async function insightsToolsCreate(
|
|
33
33
|
client: SyllableSDKCore,
|
|
@@ -98,7 +98,7 @@ export async function insightsToolsCreate(
|
|
|
98
98
|
|
|
99
99
|
const doResult = await client._do(req, {
|
|
100
100
|
context,
|
|
101
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
101
|
+
errorCodes: ["400", "422", "4XX", "500", "5XX"],
|
|
102
102
|
retryConfig: context.retryConfig,
|
|
103
103
|
retryCodes: context.retryCodes,
|
|
104
104
|
});
|
|
@@ -124,8 +124,8 @@ export async function insightsToolsCreate(
|
|
|
124
124
|
>(
|
|
125
125
|
M.json(200, components.InsightToolOutput$inboundSchema),
|
|
126
126
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
127
|
-
M.fail("4XX"),
|
|
128
|
-
M.fail("5XX"),
|
|
127
|
+
M.fail([400, "4XX"]),
|
|
128
|
+
M.fail([500, "5XX"]),
|
|
129
129
|
)(response, { extraFields: responseFields });
|
|
130
130
|
if (!result.ok) {
|
|
131
131
|
return result;
|
|
@@ -0,0 +1,136 @@
|
|
|
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 { encodeJSON } 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 * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Test Insights Tool
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Manually run the given insight tool against a session and return the response.
|
|
32
|
+
*/
|
|
33
|
+
export async function insightsToolsInsightsToolTest(
|
|
34
|
+
client: SyllableSDKCore,
|
|
35
|
+
request: components.InsightToolTestInput,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): Promise<
|
|
38
|
+
Result<
|
|
39
|
+
any,
|
|
40
|
+
| errors.HTTPValidationError
|
|
41
|
+
| SDKError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
const parsed = safeParse(
|
|
51
|
+
request,
|
|
52
|
+
(value) => components.InsightToolTestInput$outboundSchema.parse(value),
|
|
53
|
+
"Input validation failed",
|
|
54
|
+
);
|
|
55
|
+
if (!parsed.ok) {
|
|
56
|
+
return parsed;
|
|
57
|
+
}
|
|
58
|
+
const payload = parsed.value;
|
|
59
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
60
|
+
|
|
61
|
+
const path = pathToFunc("/api/v1/insights/tools-test")();
|
|
62
|
+
|
|
63
|
+
const headers = new Headers(compactMap({
|
|
64
|
+
"Content-Type": "application/json",
|
|
65
|
+
Accept: "application/json",
|
|
66
|
+
}));
|
|
67
|
+
|
|
68
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
69
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
70
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
71
|
+
|
|
72
|
+
const context = {
|
|
73
|
+
baseURL: options?.serverURL ?? "",
|
|
74
|
+
operationID: "insights_tool_test",
|
|
75
|
+
oAuth2Scopes: [],
|
|
76
|
+
|
|
77
|
+
resolvedSecurity: requestSecurity,
|
|
78
|
+
|
|
79
|
+
securitySource: client._options.apiKeyHeader,
|
|
80
|
+
retryConfig: options?.retries
|
|
81
|
+
|| client._options.retryConfig
|
|
82
|
+
|| { strategy: "none" },
|
|
83
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const requestRes = client._createRequest(context, {
|
|
87
|
+
security: requestSecurity,
|
|
88
|
+
method: "POST",
|
|
89
|
+
baseURL: options?.serverURL,
|
|
90
|
+
path: path,
|
|
91
|
+
headers: headers,
|
|
92
|
+
body: body,
|
|
93
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
94
|
+
}, options);
|
|
95
|
+
if (!requestRes.ok) {
|
|
96
|
+
return requestRes;
|
|
97
|
+
}
|
|
98
|
+
const req = requestRes.value;
|
|
99
|
+
|
|
100
|
+
const doResult = await client._do(req, {
|
|
101
|
+
context,
|
|
102
|
+
errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
|
|
103
|
+
retryConfig: context.retryConfig,
|
|
104
|
+
retryCodes: context.retryCodes,
|
|
105
|
+
});
|
|
106
|
+
if (!doResult.ok) {
|
|
107
|
+
return doResult;
|
|
108
|
+
}
|
|
109
|
+
const response = doResult.value;
|
|
110
|
+
|
|
111
|
+
const responseFields = {
|
|
112
|
+
HttpMeta: { Response: response, Request: req },
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const [result] = await M.match<
|
|
116
|
+
any,
|
|
117
|
+
| errors.HTTPValidationError
|
|
118
|
+
| SDKError
|
|
119
|
+
| SDKValidationError
|
|
120
|
+
| UnexpectedClientError
|
|
121
|
+
| InvalidRequestError
|
|
122
|
+
| RequestAbortedError
|
|
123
|
+
| RequestTimeoutError
|
|
124
|
+
| ConnectionError
|
|
125
|
+
>(
|
|
126
|
+
M.json(200, z.any()),
|
|
127
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
128
|
+
M.fail([400, 404, "4XX"]),
|
|
129
|
+
M.fail([500, "5XX"]),
|
|
130
|
+
)(response, { extraFields: responseFields });
|
|
131
|
+
if (!result.ok) {
|
|
132
|
+
return result;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return result;
|
|
136
|
+
}
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* Queue Insights Workflow For Sessions
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
|
-
*
|
|
31
|
+
* Manually queue sessions for insights workflow evaluation.
|
|
32
32
|
*/
|
|
33
33
|
export async function insightsWorkflowsQueueSessionsWorkflow(
|
|
34
34
|
client: SyllableSDKCore,
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
/**
|
|
28
28
|
* Create Outbound Communication Request
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function outboundBatchesAdd(
|
|
31
31
|
client: SyllableSDKCore,
|
|
32
32
|
request: operations.OutboundBatchAddRequest,
|
|
33
33
|
options?: RequestOptions,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { SyllableSDKCore } from "../core.js";
|
|
7
6
|
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -34,7 +33,7 @@ export async function outboundBatchesList(
|
|
|
34
33
|
options?: RequestOptions,
|
|
35
34
|
): Promise<
|
|
36
35
|
Result<
|
|
37
|
-
|
|
36
|
+
components.ListResponseCommunicationBatch,
|
|
38
37
|
| errors.HTTPValidationError
|
|
39
38
|
| SDKError
|
|
40
39
|
| SDKValidationError
|
|
@@ -123,7 +122,7 @@ export async function outboundBatchesList(
|
|
|
123
122
|
};
|
|
124
123
|
|
|
125
124
|
const [result] = await M.match<
|
|
126
|
-
|
|
125
|
+
components.ListResponseCommunicationBatch,
|
|
127
126
|
| errors.HTTPValidationError
|
|
128
127
|
| SDKError
|
|
129
128
|
| SDKValidationError
|
|
@@ -133,7 +132,7 @@ export async function outboundBatchesList(
|
|
|
133
132
|
| RequestTimeoutError
|
|
134
133
|
| ConnectionError
|
|
135
134
|
>(
|
|
136
|
-
M.json(200,
|
|
135
|
+
M.json(200, components.ListResponseCommunicationBatch$inboundSchema),
|
|
137
136
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
138
137
|
M.fail("4XX"),
|
|
139
138
|
M.fail("5XX"),
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
/**
|
|
28
28
|
* Delete Requests By List Of Reference Ids
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function outboundBatchesRemove(
|
|
31
31
|
client: SyllableSDKCore,
|
|
32
32
|
request: operations.OutboundBatchRemoveRequest,
|
|
33
33
|
options?: RequestOptions,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { SyllableSDKCore } from "../core.js";
|
|
7
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
10
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
/**
|
|
29
29
|
* Fetch Outbound Communication Batch Results
|
|
30
30
|
*/
|
|
31
|
-
export async function
|
|
31
|
+
export async function outboundBatchesResults(
|
|
32
32
|
client: SyllableSDKCore,
|
|
33
33
|
request: operations.OutboundBatchResultsRequest,
|
|
34
34
|
options?: RequestOptions,
|
|
@@ -68,6 +68,11 @@ export async function outboundBatchesOutboundBatchResults(
|
|
|
68
68
|
pathParams,
|
|
69
69
|
);
|
|
70
70
|
|
|
71
|
+
const query = encodeFormQuery({
|
|
72
|
+
"reference_id": payload.reference_id,
|
|
73
|
+
"status": payload.status,
|
|
74
|
+
});
|
|
75
|
+
|
|
71
76
|
const headers = new Headers(compactMap({
|
|
72
77
|
Accept: "application/json",
|
|
73
78
|
}));
|
|
@@ -96,6 +101,7 @@ export async function outboundBatchesOutboundBatchResults(
|
|
|
96
101
|
baseURL: options?.serverURL,
|
|
97
102
|
path: path,
|
|
98
103
|
headers: headers,
|
|
104
|
+
query: query,
|
|
99
105
|
body: body,
|
|
100
106
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
101
107
|
}, options);
|
|
@@ -58,26 +58,29 @@ export async function outboundBatchesUpload(
|
|
|
58
58
|
}
|
|
59
59
|
const payload = parsed.value;
|
|
60
60
|
const body = new FormData();
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
61
|
+
if (payload.Body_outbound_batch_upload != null) {
|
|
62
|
+
if (payload.Body_outbound_batch_upload.file !== undefined) {
|
|
63
|
+
if (isBlobLike(payload.Body_outbound_batch_upload.file)) {
|
|
64
|
+
appendForm(body, "file", payload.Body_outbound_batch_upload.file);
|
|
65
|
+
} else if (
|
|
66
|
+
isReadableStream(payload.Body_outbound_batch_upload.file.content)
|
|
67
|
+
) {
|
|
68
|
+
const buffer = await readableStreamToArrayBuffer(
|
|
69
|
+
payload.Body_outbound_batch_upload.file.content,
|
|
70
|
+
);
|
|
71
|
+
const blob = new Blob([buffer], { type: "application/octet-stream" });
|
|
72
|
+
appendForm(body, "file", blob);
|
|
73
|
+
} else {
|
|
74
|
+
appendForm(
|
|
75
|
+
body,
|
|
76
|
+
"file",
|
|
77
|
+
new Blob([payload.Body_outbound_batch_upload.file.content], {
|
|
78
|
+
type: "application/octet-stream",
|
|
79
|
+
}),
|
|
80
|
+
payload.Body_outbound_batch_upload.file.fileName,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
const pathParams = {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { SyllableSDKCore } from "../core.js";
|
|
7
6
|
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -34,7 +33,7 @@ export async function outboundCampaignsList(
|
|
|
34
33
|
options?: RequestOptions,
|
|
35
34
|
): Promise<
|
|
36
35
|
Result<
|
|
37
|
-
|
|
36
|
+
components.ListResponseOutboundCampaign,
|
|
38
37
|
| errors.HTTPValidationError
|
|
39
38
|
| SDKError
|
|
40
39
|
| SDKValidationError
|
|
@@ -124,7 +123,7 @@ export async function outboundCampaignsList(
|
|
|
124
123
|
};
|
|
125
124
|
|
|
126
125
|
const [result] = await M.match<
|
|
127
|
-
|
|
126
|
+
components.ListResponseOutboundCampaign,
|
|
128
127
|
| errors.HTTPValidationError
|
|
129
128
|
| SDKError
|
|
130
129
|
| SDKValidationError
|
|
@@ -134,7 +133,7 @@ export async function outboundCampaignsList(
|
|
|
134
133
|
| RequestTimeoutError
|
|
135
134
|
| ConnectionError
|
|
136
135
|
>(
|
|
137
|
-
M.json(200,
|
|
136
|
+
M.json(200, components.ListResponseOutboundCampaign$inboundSchema),
|
|
138
137
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
139
138
|
M.fail("4XX"),
|
|
140
139
|
M.fail("5XX"),
|
|
@@ -23,7 +23,7 @@ import { Result } from "../types/fp.js";
|
|
|
23
23
|
/**
|
|
24
24
|
* Create Takeout
|
|
25
25
|
*/
|
|
26
|
-
export async function
|
|
26
|
+
export async function takeoutsCreate(
|
|
27
27
|
client: SyllableSDKCore,
|
|
28
28
|
options?: RequestOptions,
|
|
29
29
|
): Promise<
|
|
@@ -50,7 +50,7 @@ export async function takeoutsCreateTakeoutApiV1TakeoutsCreatePost(
|
|
|
50
50
|
|
|
51
51
|
const context = {
|
|
52
52
|
baseURL: options?.serverURL ?? "",
|
|
53
|
-
operationID: "
|
|
53
|
+
operationID: "takeouts_create",
|
|
54
54
|
oAuth2Scopes: [],
|
|
55
55
|
|
|
56
56
|
resolvedSecurity: requestSecurity,
|
package/src/funcs/{takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.ts → takeoutsTakeoutsGetByJobId.ts}
RENAMED
|
@@ -27,9 +27,9 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
/**
|
|
28
28
|
* Get Takeout
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function takeoutsTakeoutsGetByJobId(
|
|
31
31
|
client: SyllableSDKCore,
|
|
32
|
-
request: operations.
|
|
32
|
+
request: operations.TakeoutsGetByJobIdRequest,
|
|
33
33
|
options?: RequestOptions,
|
|
34
34
|
): Promise<
|
|
35
35
|
Result<
|
|
@@ -46,10 +46,7 @@ export async function takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet(
|
|
|
46
46
|
> {
|
|
47
47
|
const parsed = safeParse(
|
|
48
48
|
request,
|
|
49
|
-
(value) =>
|
|
50
|
-
operations.GetTakeoutApiV1TakeoutsGetJobIdGetRequest$outboundSchema.parse(
|
|
51
|
-
value,
|
|
52
|
-
),
|
|
49
|
+
(value) => operations.TakeoutsGetByJobIdRequest$outboundSchema.parse(value),
|
|
53
50
|
"Input validation failed",
|
|
54
51
|
);
|
|
55
52
|
if (!parsed.ok) {
|
|
@@ -77,7 +74,7 @@ export async function takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet(
|
|
|
77
74
|
|
|
78
75
|
const context = {
|
|
79
76
|
baseURL: options?.serverURL ?? "",
|
|
80
|
-
operationID: "
|
|
77
|
+
operationID: "takeouts_get_by_job_id",
|
|
81
78
|
oAuth2Scopes: [],
|
|
82
79
|
|
|
83
80
|
resolvedSecurity: requestSecurity,
|