@novu/api 0.0.5 → 0.1.0
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 +105 -20
- package/docs/sdks/novu/README.md +0 -227
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +0 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -3
- package/models/components/index.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/index.d.ts +0 -3
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -3
- package/models/operations/index.js.map +1 -1
- 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 -12
- package/sdk/sdk.js.map +1 -1
- package/sources/json-development.json +0 -1161
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -3
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/index.ts +0 -3
- package/src/sdk/sdk.ts +0 -38
- package/funcs/generateRandomNumber.d.ts +0 -10
- package/funcs/generateRandomNumber.d.ts.map +0 -1
- package/funcs/generateRandomNumber.js +0 -126
- package/funcs/generateRandomNumber.js.map +0 -1
- package/funcs/healthControllerHealthCheck.d.ts +0 -10
- package/funcs/healthControllerHealthCheck.d.ts.map +0 -1
- package/funcs/healthControllerHealthCheck.js +0 -109
- package/funcs/healthControllerHealthCheck.js.map +0 -1
- package/funcs/testIdempotency.d.ts +0 -11
- package/funcs/testIdempotency.d.ts.map +0 -1
- package/funcs/testIdempotency.js +0 -129
- package/funcs/testIdempotency.js.map +0 -1
- package/models/components/idempotencetestingresponse.d.ts +0 -32
- package/models/components/idempotencetestingresponse.d.ts.map +0 -1
- package/models/components/idempotencetestingresponse.js +0 -59
- package/models/components/idempotencetestingresponse.js.map +0 -1
- package/models/components/idempotencybehaviorenum.d.ts +0 -37
- package/models/components/idempotencybehaviorenum.d.ts.map +0 -1
- package/models/components/idempotencybehaviorenum.js +0 -54
- package/models/components/idempotencybehaviorenum.js.map +0 -1
- package/models/components/idempotencytestingdto.d.ts +0 -33
- package/models/components/idempotencytestingdto.d.ts.map +0 -1
- package/models/components/idempotencytestingdto.js +0 -60
- package/models/components/idempotencytestingdto.js.map +0 -1
- package/models/errors/healthcontrollerhealthcheck.d.ts +0 -153
- package/models/errors/healthcontrollerhealthcheck.d.ts.map +0 -1
- package/models/errors/healthcontrollerhealthcheck.js +0 -190
- package/models/errors/healthcontrollerhealthcheck.js.map +0 -1
- package/models/operations/healthcontrollergeneraterandomnumber.d.ts +0 -64
- package/models/operations/healthcontrollergeneraterandomnumber.d.ts.map +0 -1
- package/models/operations/healthcontrollergeneraterandomnumber.js +0 -108
- package/models/operations/healthcontrollergeneraterandomnumber.js.map +0 -1
- package/models/operations/healthcontrollerhealthcheck.d.ts +0 -165
- package/models/operations/healthcontrollerhealthcheck.d.ts.map +0 -1
- package/models/operations/healthcontrollerhealthcheck.js +0 -206
- package/models/operations/healthcontrollerhealthcheck.js.map +0 -1
- package/models/operations/healthcontrollertestidempotency.d.ts +0 -66
- package/models/operations/healthcontrollertestidempotency.d.ts.map +0 -1
- package/models/operations/healthcontrollertestidempotency.js +0 -112
- package/models/operations/healthcontrollertestidempotency.js.map +0 -1
- package/src/funcs/generateRandomNumber.ts +0 -183
- package/src/funcs/healthControllerHealthCheck.ts +0 -153
- package/src/funcs/testIdempotency.ts +0 -190
- package/src/models/components/idempotencetestingresponse.ts +0 -69
- package/src/models/components/idempotencybehaviorenum.ts +0 -42
- package/src/models/components/idempotencytestingdto.ts +0 -74
- package/src/models/errors/healthcontrollerhealthcheck.ts +0 -291
- package/src/models/operations/healthcontrollergeneraterandomnumber.ts +0 -177
- package/src/models/operations/healthcontrollerhealthcheck.ts +0 -358
- package/src/models/operations/healthcontrollertestidempotency.ts +0 -174
package/src/lib/config.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0",
|
|
58
|
-
sdkVersion: "0.0
|
|
58
|
+
sdkVersion: "0.1.0",
|
|
59
59
|
genVersion: "2.493.21",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0 2.493.21 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -55,9 +55,6 @@ export * from "./fieldfilterpartdto.js";
|
|
|
55
55
|
export * from "./filtertopicsresponsedto.js";
|
|
56
56
|
export * from "./getsubscriberpreferencesresponsedto.js";
|
|
57
57
|
export * from "./gettopicresponsedto.js";
|
|
58
|
-
export * from "./idempotencetestingresponse.js";
|
|
59
|
-
export * from "./idempotencybehaviorenum.js";
|
|
60
|
-
export * from "./idempotencytestingdto.js";
|
|
61
58
|
export * from "./integrationresponsedto.js";
|
|
62
59
|
export * from "./markallmessageasrequestdto.js";
|
|
63
60
|
export * from "./markmessageactionasseendto.js";
|
|
@@ -6,9 +6,6 @@ export * from "./eventscontrollerbroadcasteventtoall.js";
|
|
|
6
6
|
export * from "./eventscontrollercancel.js";
|
|
7
7
|
export * from "./eventscontrollertrigger.js";
|
|
8
8
|
export * from "./eventscontrollertriggerbulk.js";
|
|
9
|
-
export * from "./healthcontrollergeneraterandomnumber.js";
|
|
10
|
-
export * from "./healthcontrollerhealthcheck.js";
|
|
11
|
-
export * from "./healthcontrollertestidempotency.js";
|
|
12
9
|
export * from "./integrationscontrollercreateintegration.js";
|
|
13
10
|
export * from "./integrationscontrollergetactiveintegrations.js";
|
|
14
11
|
export * from "./integrationscontrollergetwebhooksupportstatus.js";
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { cancel } from "../funcs/cancel.js";
|
|
6
|
-
import { generateRandomNumber } from "../funcs/generateRandomNumber.js";
|
|
7
|
-
import { healthControllerHealthCheck } from "../funcs/healthControllerHealthCheck.js";
|
|
8
|
-
import { testIdempotency } from "../funcs/testIdempotency.js";
|
|
9
6
|
import { trigger } from "../funcs/trigger.js";
|
|
10
7
|
import { triggerBroadcast } from "../funcs/triggerBroadcast.js";
|
|
11
8
|
import { triggerBulk } from "../funcs/triggerBulk.js";
|
|
@@ -45,41 +42,6 @@ export class Novu extends ClientSDK {
|
|
|
45
42
|
return (this._topics ??= new Topics(this._options));
|
|
46
43
|
}
|
|
47
44
|
|
|
48
|
-
async healthControllerHealthCheck(
|
|
49
|
-
idempotencyKey?: string | undefined,
|
|
50
|
-
options?: RequestOptions,
|
|
51
|
-
): Promise<operations.HealthControllerHealthCheckResponseBody> {
|
|
52
|
-
return unwrapAsync(healthControllerHealthCheck(
|
|
53
|
-
this,
|
|
54
|
-
idempotencyKey,
|
|
55
|
-
options,
|
|
56
|
-
));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async testIdempotency(
|
|
60
|
-
idempotencyTestingDto: components.IdempotencyTestingDto,
|
|
61
|
-
idempotencyKey?: string | undefined,
|
|
62
|
-
options?: RequestOptions,
|
|
63
|
-
): Promise<operations.HealthControllerTestIdempotencyResponse> {
|
|
64
|
-
return unwrapAsync(testIdempotency(
|
|
65
|
-
this,
|
|
66
|
-
idempotencyTestingDto,
|
|
67
|
-
idempotencyKey,
|
|
68
|
-
options,
|
|
69
|
-
));
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
async generateRandomNumber(
|
|
73
|
-
idempotencyKey?: string | undefined,
|
|
74
|
-
options?: RequestOptions,
|
|
75
|
-
): Promise<operations.HealthControllerGenerateRandomNumberResponse> {
|
|
76
|
-
return unwrapAsync(generateRandomNumber(
|
|
77
|
-
this,
|
|
78
|
-
idempotencyKey,
|
|
79
|
-
options,
|
|
80
|
-
));
|
|
81
|
-
}
|
|
82
|
-
|
|
83
45
|
/**
|
|
84
46
|
* Trigger event
|
|
85
47
|
*
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NovuCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
export declare function generateRandomNumber(client: NovuCore, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<Result<operations.HealthControllerGenerateRandomNumberResponse, errors.ErrorDto | errors.ErrorDto | errors.ValidationErrorDto | errors.ErrorDto | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
10
|
-
//# sourceMappingURL=generateRandomNumber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generateRandomNumber.d.ts","sourceRoot":"","sources":["../src/funcs/generateRandomNumber.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,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,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,QAAQ,EAChB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,4CAA4C,EACrD,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,QAAQ,GACf,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA0IA"}
|
|
@@ -1,126 +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.generateRandomNumber = void 0;
|
|
30
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
-
const security_js_1 = require("../lib/security.js");
|
|
35
|
-
const url_js_1 = require("../lib/url.js");
|
|
36
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
-
async function generateRandomNumber(client, idempotencyKey, options) {
|
|
39
|
-
const input = {
|
|
40
|
-
idempotencyKey: idempotencyKey,
|
|
41
|
-
};
|
|
42
|
-
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.HealthControllerGenerateRandomNumberRequest$outboundSchema
|
|
43
|
-
.parse(value), "Input validation failed");
|
|
44
|
-
if (!parsed.ok) {
|
|
45
|
-
return parsed;
|
|
46
|
-
}
|
|
47
|
-
const payload = parsed.value;
|
|
48
|
-
const body = null;
|
|
49
|
-
const path = (0, url_js_1.pathToFunc)("/v1/health-check/test-idempotency")();
|
|
50
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
51
|
-
Accept: "application/json",
|
|
52
|
-
"idempotency-key": (0, encodings_js_1.encodeSimple)("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" }),
|
|
53
|
-
}));
|
|
54
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
55
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
56
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
57
|
-
const context = {
|
|
58
|
-
operationID: "HealthController_generateRandomNumber",
|
|
59
|
-
oAuth2Scopes: [],
|
|
60
|
-
resolvedSecurity: requestSecurity,
|
|
61
|
-
securitySource: client._options.apiKey,
|
|
62
|
-
retryConfig: options?.retries
|
|
63
|
-
|| client._options.retryConfig
|
|
64
|
-
|| {
|
|
65
|
-
strategy: "backoff",
|
|
66
|
-
backoff: {
|
|
67
|
-
initialInterval: 1000,
|
|
68
|
-
maxInterval: 30000,
|
|
69
|
-
exponent: 1.5,
|
|
70
|
-
maxElapsedTime: 3600000,
|
|
71
|
-
},
|
|
72
|
-
retryConnectionErrors: true,
|
|
73
|
-
}
|
|
74
|
-
|| { strategy: "none" },
|
|
75
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
76
|
-
};
|
|
77
|
-
const requestRes = client._createRequest(context, {
|
|
78
|
-
security: requestSecurity,
|
|
79
|
-
method: "GET",
|
|
80
|
-
baseURL: options?.serverURL,
|
|
81
|
-
path: path,
|
|
82
|
-
headers: headers,
|
|
83
|
-
body: body,
|
|
84
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
85
|
-
}, options);
|
|
86
|
-
if (!requestRes.ok) {
|
|
87
|
-
return requestRes;
|
|
88
|
-
}
|
|
89
|
-
const req = requestRes.value;
|
|
90
|
-
const doResult = await client._do(req, {
|
|
91
|
-
context,
|
|
92
|
-
errorCodes: [
|
|
93
|
-
"400",
|
|
94
|
-
"401",
|
|
95
|
-
"403",
|
|
96
|
-
"404",
|
|
97
|
-
"405",
|
|
98
|
-
"409",
|
|
99
|
-
"413",
|
|
100
|
-
"414",
|
|
101
|
-
"415",
|
|
102
|
-
"422",
|
|
103
|
-
"429",
|
|
104
|
-
"4XX",
|
|
105
|
-
"500",
|
|
106
|
-
"503",
|
|
107
|
-
"5XX",
|
|
108
|
-
],
|
|
109
|
-
retryConfig: context.retryConfig,
|
|
110
|
-
retryCodes: context.retryCodes,
|
|
111
|
-
});
|
|
112
|
-
if (!doResult.ok) {
|
|
113
|
-
return doResult;
|
|
114
|
-
}
|
|
115
|
-
const response = doResult.value;
|
|
116
|
-
const responseFields = {
|
|
117
|
-
HttpMeta: { Response: response, Request: req },
|
|
118
|
-
};
|
|
119
|
-
const [result] = await M.match(M.json(201, operations.HealthControllerGenerateRandomNumberResponse$inboundSchema, { hdrs: true, key: "Result" }), M.jsonErr([400, 401, 403, 404, 405, 409, 413, 415], errors.ErrorDto$inboundSchema, { hdrs: true }), M.jsonErr(414, errors.ErrorDto$inboundSchema), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), M.fail(429), M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }), M.fail(503), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
|
|
120
|
-
if (!result.ok) {
|
|
121
|
-
return result;
|
|
122
|
-
}
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
125
|
-
exports.generateRandomNumber = generateRandomNumber;
|
|
126
|
-
//# sourceMappingURL=generateRandomNumber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generateRandomNumber.js","sourceRoot":"","sources":["../src/funcs/generateRandomNumber.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAGpD,0EAA4D;AAGrD,KAAK,UAAU,oBAAoB,CACxC,MAAgB,EAChB,cAAmC,EACnC,OAAwB;IAiBxB,MAAM,KAAK,GAA2D;QACpE,cAAc,EAAE,cAAc;KAC/B,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,0DAA0D;SAClE,KAAK,CAAC,KAAK,CAAC,EACjB,yB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,MAAM,CAAC,CAAC,KAAK,CAc5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,0DAA0D,EACrE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAC9B,EACD,CAAC,CAAC,OAAO,CACP,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACxC,MAAM,CAAC,sBAAsB,EAC7B,EAAE,IAAI,EAAE,IAAI,EAAE,CACf,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,sBAAsB,CAAC,EAC7C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EACvE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAC7D,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,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;AA7JD,oDA6JC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NovuCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
export declare function healthControllerHealthCheck(client: NovuCore, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<Result<operations.HealthControllerHealthCheckResponseBody, errors.HealthControllerHealthCheckResponseBody | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
10
|
-
//# sourceMappingURL=healthControllerHealthCheck.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"healthControllerHealthCheck.d.ts","sourceRoot":"","sources":["../src/funcs/healthControllerHealthCheck.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,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,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,QAAQ,EAChB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,uCAAuC,EAChD,MAAM,CAAC,uCAAuC,GAC9C,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA+GA"}
|
|
@@ -1,109 +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.healthControllerHealthCheck = void 0;
|
|
30
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
-
const security_js_1 = require("../lib/security.js");
|
|
35
|
-
const url_js_1 = require("../lib/url.js");
|
|
36
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
-
async function healthControllerHealthCheck(client, idempotencyKey, options) {
|
|
39
|
-
const input = {
|
|
40
|
-
idempotencyKey: idempotencyKey,
|
|
41
|
-
};
|
|
42
|
-
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.HealthControllerHealthCheckRequest$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)("/v1/health-check")();
|
|
49
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
50
|
-
Accept: "application/json",
|
|
51
|
-
"idempotency-key": (0, encodings_js_1.encodeSimple)("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" }),
|
|
52
|
-
}));
|
|
53
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
54
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
55
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
56
|
-
const context = {
|
|
57
|
-
operationID: "HealthController_healthCheck",
|
|
58
|
-
oAuth2Scopes: [],
|
|
59
|
-
resolvedSecurity: requestSecurity,
|
|
60
|
-
securitySource: client._options.apiKey,
|
|
61
|
-
retryConfig: options?.retries
|
|
62
|
-
|| client._options.retryConfig
|
|
63
|
-
|| {
|
|
64
|
-
strategy: "backoff",
|
|
65
|
-
backoff: {
|
|
66
|
-
initialInterval: 1000,
|
|
67
|
-
maxInterval: 30000,
|
|
68
|
-
exponent: 1.5,
|
|
69
|
-
maxElapsedTime: 3600000,
|
|
70
|
-
},
|
|
71
|
-
retryConnectionErrors: true,
|
|
72
|
-
}
|
|
73
|
-
|| { strategy: "none" },
|
|
74
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
75
|
-
};
|
|
76
|
-
const requestRes = client._createRequest(context, {
|
|
77
|
-
security: requestSecurity,
|
|
78
|
-
method: "GET",
|
|
79
|
-
baseURL: options?.serverURL,
|
|
80
|
-
path: path,
|
|
81
|
-
headers: headers,
|
|
82
|
-
body: body,
|
|
83
|
-
timeoutMs: 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: ["4XX", "503", "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, operations.HealthControllerHealthCheckResponseBody$inboundSchema), M.jsonErr(503, errors.HealthControllerHealthCheckResponseBody$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
|
|
103
|
-
if (!result.ok) {
|
|
104
|
-
return result;
|
|
105
|
-
}
|
|
106
|
-
return result;
|
|
107
|
-
}
|
|
108
|
-
exports.healthControllerHealthCheck = healthControllerHealthCheck;
|
|
109
|
-
//# sourceMappingURL=healthControllerHealthCheck.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"healthControllerHealthCheck.js","sourceRoot":"","sources":["../src/funcs/healthControllerHealthCheck.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA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CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,qDAAqD,CACjE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,qDAAqD,CAC7D,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,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;AA/HD,kEA+HC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NovuCore } 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
|
-
export declare function testIdempotency(client: NovuCore, idempotencyTestingDto: components.IdempotencyTestingDto, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<Result<operations.HealthControllerTestIdempotencyResponse, errors.ErrorDto | errors.ErrorDto | errors.ValidationErrorDto | errors.ErrorDto | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
11
|
-
//# sourceMappingURL=testIdempotency.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testIdempotency.d.ts","sourceRoot":"","sources":["../src/funcs/testIdempotency.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,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,wBAAsB,eAAe,CACnC,MAAM,EAAE,QAAQ,EAChB,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,EACvD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,uCAAuC,EAChD,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,QAAQ,GACf,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA+IA"}
|
package/funcs/testIdempotency.js
DELETED
|
@@ -1,129 +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.testIdempotency = void 0;
|
|
30
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
-
const security_js_1 = require("../lib/security.js");
|
|
35
|
-
const url_js_1 = require("../lib/url.js");
|
|
36
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
-
async function testIdempotency(client, idempotencyTestingDto, idempotencyKey, options) {
|
|
39
|
-
const input = {
|
|
40
|
-
idempotencyTestingDto: idempotencyTestingDto,
|
|
41
|
-
idempotencyKey: idempotencyKey,
|
|
42
|
-
};
|
|
43
|
-
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.HealthControllerTestIdempotencyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44
|
-
if (!parsed.ok) {
|
|
45
|
-
return parsed;
|
|
46
|
-
}
|
|
47
|
-
const payload = parsed.value;
|
|
48
|
-
const body = (0, encodings_js_1.encodeJSON)("body", payload.IdempotencyTestingDto, {
|
|
49
|
-
explode: true,
|
|
50
|
-
});
|
|
51
|
-
const path = (0, url_js_1.pathToFunc)("/v1/health-check/test-idempotency")();
|
|
52
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
53
|
-
"Content-Type": "application/json",
|
|
54
|
-
Accept: "application/json",
|
|
55
|
-
"idempotency-key": (0, encodings_js_1.encodeSimple)("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" }),
|
|
56
|
-
}));
|
|
57
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
58
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
59
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
60
|
-
const context = {
|
|
61
|
-
operationID: "HealthController_testIdempotency",
|
|
62
|
-
oAuth2Scopes: [],
|
|
63
|
-
resolvedSecurity: requestSecurity,
|
|
64
|
-
securitySource: client._options.apiKey,
|
|
65
|
-
retryConfig: options?.retries
|
|
66
|
-
|| client._options.retryConfig
|
|
67
|
-
|| {
|
|
68
|
-
strategy: "backoff",
|
|
69
|
-
backoff: {
|
|
70
|
-
initialInterval: 1000,
|
|
71
|
-
maxInterval: 30000,
|
|
72
|
-
exponent: 1.5,
|
|
73
|
-
maxElapsedTime: 3600000,
|
|
74
|
-
},
|
|
75
|
-
retryConnectionErrors: true,
|
|
76
|
-
}
|
|
77
|
-
|| { strategy: "none" },
|
|
78
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
79
|
-
};
|
|
80
|
-
const requestRes = client._createRequest(context, {
|
|
81
|
-
security: requestSecurity,
|
|
82
|
-
method: "POST",
|
|
83
|
-
baseURL: options?.serverURL,
|
|
84
|
-
path: path,
|
|
85
|
-
headers: headers,
|
|
86
|
-
body: body,
|
|
87
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
88
|
-
}, options);
|
|
89
|
-
if (!requestRes.ok) {
|
|
90
|
-
return requestRes;
|
|
91
|
-
}
|
|
92
|
-
const req = requestRes.value;
|
|
93
|
-
const doResult = await client._do(req, {
|
|
94
|
-
context,
|
|
95
|
-
errorCodes: [
|
|
96
|
-
"400",
|
|
97
|
-
"401",
|
|
98
|
-
"403",
|
|
99
|
-
"404",
|
|
100
|
-
"405",
|
|
101
|
-
"409",
|
|
102
|
-
"413",
|
|
103
|
-
"414",
|
|
104
|
-
"415",
|
|
105
|
-
"422",
|
|
106
|
-
"429",
|
|
107
|
-
"4XX",
|
|
108
|
-
"500",
|
|
109
|
-
"503",
|
|
110
|
-
"5XX",
|
|
111
|
-
],
|
|
112
|
-
retryConfig: context.retryConfig,
|
|
113
|
-
retryCodes: context.retryCodes,
|
|
114
|
-
});
|
|
115
|
-
if (!doResult.ok) {
|
|
116
|
-
return doResult;
|
|
117
|
-
}
|
|
118
|
-
const response = doResult.value;
|
|
119
|
-
const responseFields = {
|
|
120
|
-
HttpMeta: { Response: response, Request: req },
|
|
121
|
-
};
|
|
122
|
-
const [result] = await M.match(M.json(201, operations.HealthControllerTestIdempotencyResponse$inboundSchema, { hdrs: true, key: "Result" }), M.jsonErr([400, 401, 403, 404, 405, 409, 413, 415], errors.ErrorDto$inboundSchema, { hdrs: true }), M.jsonErr(414, errors.ErrorDto$inboundSchema), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), M.fail(429), M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }), M.fail(503), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
|
|
123
|
-
if (!result.ok) {
|
|
124
|
-
return result;
|
|
125
|
-
}
|
|
126
|
-
return result;
|
|
127
|
-
}
|
|
128
|
-
exports.testIdempotency = testIdempotency;
|
|
129
|
-
//# sourceMappingURL=testIdempotency.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testIdempotency.js","sourceRoot":"","sources":["../src/funcs/testIdempotency.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAA+D;AAC/D,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,0EAA4D;AAGrD,KAAK,UAAU,eAAe,CACnC,MAAgB,EAChB,qBAAuD,EACvD,cAAmC,EACnC,OAAwB;IAiBxB,MAAM,KAAK,GAAsD;QAC/D,qBAAqB,EAAE,qBAAqB;QAC5C,cAAc,EAAE,cAAc;KAC/B,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,qDAAqD,CAAC,KAAK,CACpE,KAAK,CACN,EACH,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,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,CAAC,qBAAqB,EAAE;QAC7D,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;IAE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CAAC,CAAC,OAAO,CACP,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACxC,MAAM,CAAC,sBAAsB,EAC7B,EAAE,IAAI,EAAE,IAAI,EAAE,CACf,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,sBAAsB,CAAC,EAC7C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EACvE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAC7D,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,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;AAnKD,0CAmKC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type IdempotenceTestingResponse = {
|
|
5
|
-
/**
|
|
6
|
-
* A unique number representing the idempotency response
|
|
7
|
-
*/
|
|
8
|
-
number: number;
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const IdempotenceTestingResponse$inboundSchema: z.ZodType<IdempotenceTestingResponse, z.ZodTypeDef, unknown>;
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type IdempotenceTestingResponse$Outbound = {
|
|
14
|
-
number: number;
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const IdempotenceTestingResponse$outboundSchema: z.ZodType<IdempotenceTestingResponse$Outbound, z.ZodTypeDef, IdempotenceTestingResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
-
*/
|
|
22
|
-
export declare namespace IdempotenceTestingResponse$ {
|
|
23
|
-
/** @deprecated use `IdempotenceTestingResponse$inboundSchema` instead. */
|
|
24
|
-
const inboundSchema: z.ZodType<IdempotenceTestingResponse, z.ZodTypeDef, unknown>;
|
|
25
|
-
/** @deprecated use `IdempotenceTestingResponse$outboundSchema` instead. */
|
|
26
|
-
const outboundSchema: z.ZodType<IdempotenceTestingResponse$Outbound, z.ZodTypeDef, IdempotenceTestingResponse>;
|
|
27
|
-
/** @deprecated use `IdempotenceTestingResponse$Outbound` instead. */
|
|
28
|
-
type Outbound = IdempotenceTestingResponse$Outbound;
|
|
29
|
-
}
|
|
30
|
-
export declare function idempotenceTestingResponseToJSON(idempotenceTestingResponse: IdempotenceTestingResponse): string;
|
|
31
|
-
export declare function idempotenceTestingResponseFromJSON(jsonString: string): SafeParseResult<IdempotenceTestingResponse, SDKValidationError>;
|
|
32
|
-
//# sourceMappingURL=idempotencetestingresponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"idempotencetestingresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/idempotencetestingresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAG1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -1,59 +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.idempotenceTestingResponseFromJSON = exports.idempotenceTestingResponseToJSON = exports.IdempotenceTestingResponse$ = exports.IdempotenceTestingResponse$outboundSchema = exports.IdempotenceTestingResponse$inboundSchema = void 0;
|
|
30
|
-
const z = __importStar(require("zod"));
|
|
31
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
-
/** @internal */
|
|
33
|
-
exports.IdempotenceTestingResponse$inboundSchema = z.object({
|
|
34
|
-
number: z.number(),
|
|
35
|
-
});
|
|
36
|
-
/** @internal */
|
|
37
|
-
exports.IdempotenceTestingResponse$outboundSchema = z.object({
|
|
38
|
-
number: z.number(),
|
|
39
|
-
});
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
var IdempotenceTestingResponse$;
|
|
45
|
-
(function (IdempotenceTestingResponse$) {
|
|
46
|
-
/** @deprecated use `IdempotenceTestingResponse$inboundSchema` instead. */
|
|
47
|
-
IdempotenceTestingResponse$.inboundSchema = exports.IdempotenceTestingResponse$inboundSchema;
|
|
48
|
-
/** @deprecated use `IdempotenceTestingResponse$outboundSchema` instead. */
|
|
49
|
-
IdempotenceTestingResponse$.outboundSchema = exports.IdempotenceTestingResponse$outboundSchema;
|
|
50
|
-
})(IdempotenceTestingResponse$ || (exports.IdempotenceTestingResponse$ = IdempotenceTestingResponse$ = {}));
|
|
51
|
-
function idempotenceTestingResponseToJSON(idempotenceTestingResponse) {
|
|
52
|
-
return JSON.stringify(exports.IdempotenceTestingResponse$outboundSchema.parse(idempotenceTestingResponse));
|
|
53
|
-
}
|
|
54
|
-
exports.idempotenceTestingResponseToJSON = idempotenceTestingResponseToJSON;
|
|
55
|
-
function idempotenceTestingResponseFromJSON(jsonString) {
|
|
56
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.IdempotenceTestingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'IdempotenceTestingResponse' from JSON`);
|
|
57
|
-
}
|
|
58
|
-
exports.idempotenceTestingResponseFromJSON = idempotenceTestingResponseFromJSON;
|
|
59
|
-
//# sourceMappingURL=idempotencetestingresponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"idempotencetestingresponse.js","sourceRoot":"","sources":["../../src/models/components/idempotencetestingresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAND,4EAMC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC;AARD,gFAQC"}
|