syllable-sdk 0.1.0-alpha.2 → 0.1.0-alpha.3
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 +0 -9
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -5
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/v1/README.md +0 -243
- package/funcs/v1Create.d.ts +0 -16
- package/funcs/v1Create.d.ts.map +0 -1
- package/funcs/v1Create.js +0 -99
- package/funcs/v1Create.js.map +0 -1
- package/funcs/v1GetById.d.ts +0 -14
- package/funcs/v1GetById.d.ts.map +0 -1
- package/funcs/v1GetById.js +0 -99
- package/funcs/v1GetById.js.map +0 -1
- package/funcs/v1List.d.ts +0 -14
- package/funcs/v1List.d.ts.map +0 -1
- package/funcs/v1List.js +0 -108
- package/funcs/v1List.js.map +0 -1
- package/sdk/v1.d.ts +0 -21
- package/sdk/v1.d.ts.map +0 -1
- package/sdk/v1.js +0 -36
- package/sdk/v1.js.map +0 -1
- package/src/funcs/v1Create.ts +0 -131
- package/src/funcs/v1GetById.ts +0 -139
- package/src/funcs/v1List.ts +0 -141
- package/src/sdk/v1.ts +0 -58
package/funcs/v1GetById.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1GetById.js","sourceRoot":"","sources":["../src/funcs/v1GetById.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,8BA8GC;AArID,sDAAmD;AACnD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAG5D;;GAEG;AACI,KAAK,UAAU,SAAS,CAC7B,MAAuB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GAAG,EAAE,UAAU,CAAC,0BAA0B,CAAC,EAClD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/funcs/v1List.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SyllableSDKCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import * as components from "../models/components/index.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
-
import * as errors from "../models/errors/index.js";
|
|
6
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { Result } from "../types/fp.js";
|
|
10
|
-
/**
|
|
11
|
-
* Session Labels List
|
|
12
|
-
*/
|
|
13
|
-
export declare function v1List(client: SyllableSDKCore, request: operations.SessionLabelsListRequest, options?: RequestOptions): Promise<Result<components.ListResponseSessionLabel, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
-
//# sourceMappingURL=v1List.d.ts.map
|
package/funcs/v1List.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1List.d.ts","sourceRoot":"","sources":["../src/funcs/v1List.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAI7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,MAAM,CAC1B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,wBAAwB,EACjC,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAgGA"}
|
package/funcs/v1List.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.v1List = v1List;
|
|
30
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
33
|
-
const security_js_1 = require("../lib/security.js");
|
|
34
|
-
const url_js_1 = require("../lib/url.js");
|
|
35
|
-
const components = __importStar(require("../models/components/index.js"));
|
|
36
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
-
/**
|
|
39
|
-
* Session Labels List
|
|
40
|
-
*/
|
|
41
|
-
async function v1List(client, request, options) {
|
|
42
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.SessionLabelsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43
|
-
if (!parsed.ok) {
|
|
44
|
-
return parsed;
|
|
45
|
-
}
|
|
46
|
-
const payload = parsed.value;
|
|
47
|
-
const body = null;
|
|
48
|
-
const path = (0, url_js_1.pathToFunc)("/api/v1/session_labels/")();
|
|
49
|
-
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
50
|
-
"end_datetime": payload.end_datetime,
|
|
51
|
-
"fields": payload.fields,
|
|
52
|
-
"limit": payload.limit,
|
|
53
|
-
"order_by": payload.order_by,
|
|
54
|
-
"order_by_direction": payload.order_by_direction,
|
|
55
|
-
"page": payload.page,
|
|
56
|
-
"search_field_values": payload.search_field_values,
|
|
57
|
-
"search_fields": payload.search_fields,
|
|
58
|
-
"start_datetime": payload.start_datetime,
|
|
59
|
-
});
|
|
60
|
-
const headers = new Headers({
|
|
61
|
-
Accept: "application/json",
|
|
62
|
-
});
|
|
63
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyHeader);
|
|
64
|
-
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
65
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
66
|
-
const context = {
|
|
67
|
-
operationID: "session_labels_list",
|
|
68
|
-
oAuth2Scopes: [],
|
|
69
|
-
resolvedSecurity: requestSecurity,
|
|
70
|
-
securitySource: client._options.apiKeyHeader,
|
|
71
|
-
retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
|
|
72
|
-
|| client._options.retryConfig
|
|
73
|
-
|| { strategy: "none" },
|
|
74
|
-
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
75
|
-
};
|
|
76
|
-
const requestRes = client._createRequest(context, {
|
|
77
|
-
security: requestSecurity,
|
|
78
|
-
method: "GET",
|
|
79
|
-
path: path,
|
|
80
|
-
headers: headers,
|
|
81
|
-
query: query,
|
|
82
|
-
body: body,
|
|
83
|
-
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
|
|
84
|
-
}, options);
|
|
85
|
-
if (!requestRes.ok) {
|
|
86
|
-
return requestRes;
|
|
87
|
-
}
|
|
88
|
-
const req = requestRes.value;
|
|
89
|
-
const doResult = await client._do(req, {
|
|
90
|
-
context,
|
|
91
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
92
|
-
retryConfig: context.retryConfig,
|
|
93
|
-
retryCodes: context.retryCodes,
|
|
94
|
-
});
|
|
95
|
-
if (!doResult.ok) {
|
|
96
|
-
return doResult;
|
|
97
|
-
}
|
|
98
|
-
const response = doResult.value;
|
|
99
|
-
const responseFields = {
|
|
100
|
-
HttpMeta: { Response: response, Request: req },
|
|
101
|
-
};
|
|
102
|
-
const [result] = await M.match(M.json(200, components.ListResponseSessionLabel$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
|
|
103
|
-
if (!result.ok) {
|
|
104
|
-
return result;
|
|
105
|
-
}
|
|
106
|
-
return result;
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=v1List.js.map
|
package/funcs/v1List.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1List.js","sourceRoot":"","sources":["../src/funcs/v1List.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,wBAgHC;AAvID,sDAAsD;AACtD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAG5D;;GAEG;AACI,KAAK,UAAU,MAAM,CAC1B,MAAuB,EACvB,OAA4C,EAC5C,OAAwB;IAcxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,uCAAuC,CAAC,KAAK,CAAC,KAAK,CAAC,EAC1E,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,C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CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/sdk/v1.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as components from "../models/components/index.js";
|
|
3
|
-
import * as operations from "../models/operations/index.js";
|
|
4
|
-
export declare class V1 extends ClientSDK {
|
|
5
|
-
/**
|
|
6
|
-
* Get Label By Id
|
|
7
|
-
*/
|
|
8
|
-
getById(request: operations.SessionLabelGetByIdRequest, options?: RequestOptions): Promise<components.SessionLabel>;
|
|
9
|
-
/**
|
|
10
|
-
* Create Label
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Create a new label
|
|
14
|
-
*/
|
|
15
|
-
create(request: components.SessionLabelCreate, options?: RequestOptions): Promise<components.SessionLabel>;
|
|
16
|
-
/**
|
|
17
|
-
* Session Labels List
|
|
18
|
-
*/
|
|
19
|
-
list(request: operations.SessionLabelsListRequest, options?: RequestOptions): Promise<components.ListResponseSessionLabel>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=v1.d.ts.map
|
package/sdk/v1.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../src/sdk/v1.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,EAAG,SAAQ,SAAS;IAC/B;;OAEG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC;IAQnC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC;IAQnC;;OAEG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAOhD"}
|
package/sdk/v1.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.V1 = void 0;
|
|
7
|
-
const v1Create_js_1 = require("../funcs/v1Create.js");
|
|
8
|
-
const v1GetById_js_1 = require("../funcs/v1GetById.js");
|
|
9
|
-
const v1List_js_1 = require("../funcs/v1List.js");
|
|
10
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
11
|
-
const fp_js_1 = require("../types/fp.js");
|
|
12
|
-
class V1 extends sdks_js_1.ClientSDK {
|
|
13
|
-
/**
|
|
14
|
-
* Get Label By Id
|
|
15
|
-
*/
|
|
16
|
-
async getById(request, options) {
|
|
17
|
-
return (0, fp_js_1.unwrapAsync)((0, v1GetById_js_1.v1GetById)(this, request, options));
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Create Label
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* Create a new label
|
|
24
|
-
*/
|
|
25
|
-
async create(request, options) {
|
|
26
|
-
return (0, fp_js_1.unwrapAsync)((0, v1Create_js_1.v1Create)(this, request, options));
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Session Labels List
|
|
30
|
-
*/
|
|
31
|
-
async list(request, options) {
|
|
32
|
-
return (0, fp_js_1.unwrapAsync)((0, v1List_js_1.v1List)(this, request, options));
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.V1 = V1;
|
|
36
|
-
//# sourceMappingURL=v1.js.map
|
package/sdk/v1.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../src/sdk/v1.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,sDAAgD;AAChD,wDAAkD;AAClD,kDAA4C;AAC5C,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,EAAG,SAAQ,mBAAS;IAC/B;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,OAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wBAAS,EAC1B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sBAAQ,EACzB,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kBAAM,EACvB,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA7CD,gBA6CC"}
|
package/src/funcs/v1Create.ts
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SyllableSDKCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { safeParse } from "../lib/schemas.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 * as errors from "../models/errors/index.js";
|
|
21
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import { Result } from "../types/fp.js";
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Create Label
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* Create a new label
|
|
30
|
-
*/
|
|
31
|
-
export async function v1Create(
|
|
32
|
-
client: SyllableSDKCore,
|
|
33
|
-
request: components.SessionLabelCreate,
|
|
34
|
-
options?: RequestOptions,
|
|
35
|
-
): Promise<
|
|
36
|
-
Result<
|
|
37
|
-
components.SessionLabel,
|
|
38
|
-
| errors.HTTPValidationError
|
|
39
|
-
| SDKError
|
|
40
|
-
| SDKValidationError
|
|
41
|
-
| UnexpectedClientError
|
|
42
|
-
| InvalidRequestError
|
|
43
|
-
| RequestAbortedError
|
|
44
|
-
| RequestTimeoutError
|
|
45
|
-
| ConnectionError
|
|
46
|
-
>
|
|
47
|
-
> {
|
|
48
|
-
const parsed = safeParse(
|
|
49
|
-
request,
|
|
50
|
-
(value) => components.SessionLabelCreate$outboundSchema.parse(value),
|
|
51
|
-
"Input validation failed",
|
|
52
|
-
);
|
|
53
|
-
if (!parsed.ok) {
|
|
54
|
-
return parsed;
|
|
55
|
-
}
|
|
56
|
-
const payload = parsed.value;
|
|
57
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
58
|
-
|
|
59
|
-
const path = pathToFunc("/api/v1/session_labels/")();
|
|
60
|
-
|
|
61
|
-
const headers = new Headers({
|
|
62
|
-
"Content-Type": "application/json",
|
|
63
|
-
Accept: "application/json",
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
67
|
-
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
|
-
|
|
70
|
-
const context = {
|
|
71
|
-
operationID: "session_label_create",
|
|
72
|
-
oAuth2Scopes: [],
|
|
73
|
-
|
|
74
|
-
resolvedSecurity: requestSecurity,
|
|
75
|
-
|
|
76
|
-
securitySource: client._options.apiKeyHeader,
|
|
77
|
-
retryConfig: options?.retries
|
|
78
|
-
|| client._options.retryConfig
|
|
79
|
-
|| { strategy: "none" },
|
|
80
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
const requestRes = client._createRequest(context, {
|
|
84
|
-
security: requestSecurity,
|
|
85
|
-
method: "POST",
|
|
86
|
-
path: path,
|
|
87
|
-
headers: headers,
|
|
88
|
-
body: body,
|
|
89
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
90
|
-
}, options);
|
|
91
|
-
if (!requestRes.ok) {
|
|
92
|
-
return requestRes;
|
|
93
|
-
}
|
|
94
|
-
const req = requestRes.value;
|
|
95
|
-
|
|
96
|
-
const doResult = await client._do(req, {
|
|
97
|
-
context,
|
|
98
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
99
|
-
retryConfig: context.retryConfig,
|
|
100
|
-
retryCodes: context.retryCodes,
|
|
101
|
-
});
|
|
102
|
-
if (!doResult.ok) {
|
|
103
|
-
return doResult;
|
|
104
|
-
}
|
|
105
|
-
const response = doResult.value;
|
|
106
|
-
|
|
107
|
-
const responseFields = {
|
|
108
|
-
HttpMeta: { Response: response, Request: req },
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
const [result] = await M.match<
|
|
112
|
-
components.SessionLabel,
|
|
113
|
-
| errors.HTTPValidationError
|
|
114
|
-
| SDKError
|
|
115
|
-
| SDKValidationError
|
|
116
|
-
| UnexpectedClientError
|
|
117
|
-
| InvalidRequestError
|
|
118
|
-
| RequestAbortedError
|
|
119
|
-
| RequestTimeoutError
|
|
120
|
-
| ConnectionError
|
|
121
|
-
>(
|
|
122
|
-
M.json(200, components.SessionLabel$inboundSchema),
|
|
123
|
-
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
124
|
-
M.fail(["4XX", "5XX"]),
|
|
125
|
-
)(response, { extraFields: responseFields });
|
|
126
|
-
if (!result.ok) {
|
|
127
|
-
return result;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
return result;
|
|
131
|
-
}
|
package/src/funcs/v1GetById.ts
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SyllableSDKCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { safeParse } from "../lib/schemas.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 * as errors from "../models/errors/index.js";
|
|
21
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import * as operations from "../models/operations/index.js";
|
|
24
|
-
import { Result } from "../types/fp.js";
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Get Label By Id
|
|
28
|
-
*/
|
|
29
|
-
export async function v1GetById(
|
|
30
|
-
client: SyllableSDKCore,
|
|
31
|
-
request: operations.SessionLabelGetByIdRequest,
|
|
32
|
-
options?: RequestOptions,
|
|
33
|
-
): Promise<
|
|
34
|
-
Result<
|
|
35
|
-
components.SessionLabel,
|
|
36
|
-
| errors.HTTPValidationError
|
|
37
|
-
| SDKError
|
|
38
|
-
| SDKValidationError
|
|
39
|
-
| UnexpectedClientError
|
|
40
|
-
| InvalidRequestError
|
|
41
|
-
| RequestAbortedError
|
|
42
|
-
| RequestTimeoutError
|
|
43
|
-
| ConnectionError
|
|
44
|
-
>
|
|
45
|
-
> {
|
|
46
|
-
const parsed = safeParse(
|
|
47
|
-
request,
|
|
48
|
-
(value) =>
|
|
49
|
-
operations.SessionLabelGetByIdRequest$outboundSchema.parse(value),
|
|
50
|
-
"Input validation failed",
|
|
51
|
-
);
|
|
52
|
-
if (!parsed.ok) {
|
|
53
|
-
return parsed;
|
|
54
|
-
}
|
|
55
|
-
const payload = parsed.value;
|
|
56
|
-
const body = null;
|
|
57
|
-
|
|
58
|
-
const pathParams = {
|
|
59
|
-
session_label_id: encodeSimple(
|
|
60
|
-
"session_label_id",
|
|
61
|
-
payload.session_label_id,
|
|
62
|
-
{ explode: false, charEncoding: "percent" },
|
|
63
|
-
),
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const path = pathToFunc("/api/v1/session_labels/{session_label_id}")(
|
|
67
|
-
pathParams,
|
|
68
|
-
);
|
|
69
|
-
|
|
70
|
-
const headers = new Headers({
|
|
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
|
-
operationID: "session_label_get_by_id",
|
|
80
|
-
oAuth2Scopes: [],
|
|
81
|
-
|
|
82
|
-
resolvedSecurity: requestSecurity,
|
|
83
|
-
|
|
84
|
-
securitySource: client._options.apiKeyHeader,
|
|
85
|
-
retryConfig: options?.retries
|
|
86
|
-
|| client._options.retryConfig
|
|
87
|
-
|| { strategy: "none" },
|
|
88
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
const requestRes = client._createRequest(context, {
|
|
92
|
-
security: requestSecurity,
|
|
93
|
-
method: "GET",
|
|
94
|
-
path: path,
|
|
95
|
-
headers: headers,
|
|
96
|
-
body: body,
|
|
97
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
98
|
-
}, options);
|
|
99
|
-
if (!requestRes.ok) {
|
|
100
|
-
return requestRes;
|
|
101
|
-
}
|
|
102
|
-
const req = requestRes.value;
|
|
103
|
-
|
|
104
|
-
const doResult = await client._do(req, {
|
|
105
|
-
context,
|
|
106
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
107
|
-
retryConfig: context.retryConfig,
|
|
108
|
-
retryCodes: context.retryCodes,
|
|
109
|
-
});
|
|
110
|
-
if (!doResult.ok) {
|
|
111
|
-
return doResult;
|
|
112
|
-
}
|
|
113
|
-
const response = doResult.value;
|
|
114
|
-
|
|
115
|
-
const responseFields = {
|
|
116
|
-
HttpMeta: { Response: response, Request: req },
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
const [result] = await M.match<
|
|
120
|
-
components.SessionLabel,
|
|
121
|
-
| errors.HTTPValidationError
|
|
122
|
-
| SDKError
|
|
123
|
-
| SDKValidationError
|
|
124
|
-
| UnexpectedClientError
|
|
125
|
-
| InvalidRequestError
|
|
126
|
-
| RequestAbortedError
|
|
127
|
-
| RequestTimeoutError
|
|
128
|
-
| ConnectionError
|
|
129
|
-
>(
|
|
130
|
-
M.json(200, components.SessionLabel$inboundSchema),
|
|
131
|
-
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
132
|
-
M.fail(["4XX", "5XX"]),
|
|
133
|
-
)(response, { extraFields: responseFields });
|
|
134
|
-
if (!result.ok) {
|
|
135
|
-
return result;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return result;
|
|
139
|
-
}
|
package/src/funcs/v1List.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SyllableSDKCore } from "../core.js";
|
|
6
|
-
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { safeParse } from "../lib/schemas.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 * as errors from "../models/errors/index.js";
|
|
21
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import * as operations from "../models/operations/index.js";
|
|
24
|
-
import { Result } from "../types/fp.js";
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Session Labels List
|
|
28
|
-
*/
|
|
29
|
-
export async function v1List(
|
|
30
|
-
client: SyllableSDKCore,
|
|
31
|
-
request: operations.SessionLabelsListRequest,
|
|
32
|
-
options?: RequestOptions,
|
|
33
|
-
): Promise<
|
|
34
|
-
Result<
|
|
35
|
-
components.ListResponseSessionLabel,
|
|
36
|
-
| errors.HTTPValidationError
|
|
37
|
-
| SDKError
|
|
38
|
-
| SDKValidationError
|
|
39
|
-
| UnexpectedClientError
|
|
40
|
-
| InvalidRequestError
|
|
41
|
-
| RequestAbortedError
|
|
42
|
-
| RequestTimeoutError
|
|
43
|
-
| ConnectionError
|
|
44
|
-
>
|
|
45
|
-
> {
|
|
46
|
-
const parsed = safeParse(
|
|
47
|
-
request,
|
|
48
|
-
(value) => operations.SessionLabelsListRequest$outboundSchema.parse(value),
|
|
49
|
-
"Input validation failed",
|
|
50
|
-
);
|
|
51
|
-
if (!parsed.ok) {
|
|
52
|
-
return parsed;
|
|
53
|
-
}
|
|
54
|
-
const payload = parsed.value;
|
|
55
|
-
const body = null;
|
|
56
|
-
|
|
57
|
-
const path = pathToFunc("/api/v1/session_labels/")();
|
|
58
|
-
|
|
59
|
-
const query = encodeFormQuery({
|
|
60
|
-
"end_datetime": payload.end_datetime,
|
|
61
|
-
"fields": payload.fields,
|
|
62
|
-
"limit": payload.limit,
|
|
63
|
-
"order_by": payload.order_by,
|
|
64
|
-
"order_by_direction": payload.order_by_direction,
|
|
65
|
-
"page": payload.page,
|
|
66
|
-
"search_field_values": payload.search_field_values,
|
|
67
|
-
"search_fields": payload.search_fields,
|
|
68
|
-
"start_datetime": payload.start_datetime,
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
const headers = new Headers({
|
|
72
|
-
Accept: "application/json",
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
76
|
-
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
77
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78
|
-
|
|
79
|
-
const context = {
|
|
80
|
-
operationID: "session_labels_list",
|
|
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: "GET",
|
|
95
|
-
path: path,
|
|
96
|
-
headers: headers,
|
|
97
|
-
query: query,
|
|
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
|
-
components.ListResponseSessionLabel,
|
|
123
|
-
| errors.HTTPValidationError
|
|
124
|
-
| SDKError
|
|
125
|
-
| SDKValidationError
|
|
126
|
-
| UnexpectedClientError
|
|
127
|
-
| InvalidRequestError
|
|
128
|
-
| RequestAbortedError
|
|
129
|
-
| RequestTimeoutError
|
|
130
|
-
| ConnectionError
|
|
131
|
-
>(
|
|
132
|
-
M.json(200, components.ListResponseSessionLabel$inboundSchema),
|
|
133
|
-
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
134
|
-
M.fail(["4XX", "5XX"]),
|
|
135
|
-
)(response, { extraFields: responseFields });
|
|
136
|
-
if (!result.ok) {
|
|
137
|
-
return result;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
return result;
|
|
141
|
-
}
|
package/src/sdk/v1.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { v1Create } from "../funcs/v1Create.js";
|
|
6
|
-
import { v1GetById } from "../funcs/v1GetById.js";
|
|
7
|
-
import { v1List } from "../funcs/v1List.js";
|
|
8
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
|
-
import * as components from "../models/components/index.js";
|
|
10
|
-
import * as operations from "../models/operations/index.js";
|
|
11
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
-
|
|
13
|
-
export class V1 extends ClientSDK {
|
|
14
|
-
/**
|
|
15
|
-
* Get Label By Id
|
|
16
|
-
*/
|
|
17
|
-
async getById(
|
|
18
|
-
request: operations.SessionLabelGetByIdRequest,
|
|
19
|
-
options?: RequestOptions,
|
|
20
|
-
): Promise<components.SessionLabel> {
|
|
21
|
-
return unwrapAsync(v1GetById(
|
|
22
|
-
this,
|
|
23
|
-
request,
|
|
24
|
-
options,
|
|
25
|
-
));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Create Label
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* Create a new label
|
|
33
|
-
*/
|
|
34
|
-
async create(
|
|
35
|
-
request: components.SessionLabelCreate,
|
|
36
|
-
options?: RequestOptions,
|
|
37
|
-
): Promise<components.SessionLabel> {
|
|
38
|
-
return unwrapAsync(v1Create(
|
|
39
|
-
this,
|
|
40
|
-
request,
|
|
41
|
-
options,
|
|
42
|
-
));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Session Labels List
|
|
47
|
-
*/
|
|
48
|
-
async list(
|
|
49
|
-
request: operations.SessionLabelsListRequest,
|
|
50
|
-
options?: RequestOptions,
|
|
51
|
-
): Promise<components.ListResponseSessionLabel> {
|
|
52
|
-
return unwrapAsync(v1List(
|
|
53
|
-
this,
|
|
54
|
-
request,
|
|
55
|
-
options,
|
|
56
|
-
));
|
|
57
|
-
}
|
|
58
|
-
}
|