@steamsets/client-ts 0.15.4 → 0.16.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 +0 -42
- package/docs/sdks/settings/README.md +1 -1
- package/funcs/settingsSubscribeEmail.js +2 -2
- package/funcs/settingsSubscribeEmail.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/connection.d.ts +3 -3
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/components/v1admingetaccountresponsebody.d.ts +13 -7
- package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -1
- package/models/components/v1admingetaccountresponsebody.js +3 -0
- package/models/components/v1admingetaccountresponsebody.js.map +1 -1
- package/models/components/v1emailsubscriptionrequestbody.d.ts +3 -3
- package/models/components/v1emailsubscriptionrequestbody.d.ts.map +1 -1
- package/models/components/v1emailsubscriptionrequestbody.js +2 -2
- package/models/components/v1emailsubscriptionrequestbody.js.map +1 -1
- package/models/components/v1getsessionbody.d.ts +2 -2
- package/models/components/v1loginresponsebody.d.ts +2 -2
- package/models/components/v1updatesettingsrequestbody.d.ts +2 -2
- package/models/components/v1updatesettingsrequestbody.d.ts.map +1 -1
- package/models/components/v1updatesettingsrequestbody.js +2 -2
- package/models/components/v1updatesettingsrequestbody.js.map +1 -1
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- 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 -4
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/settingsSubscribeEmail.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/connection.ts +3 -3
- package/src/models/components/index.ts +0 -1
- package/src/models/components/v1admingetaccountresponsebody.ts +20 -7
- package/src/models/components/v1emailsubscriptionrequestbody.ts +5 -5
- package/src/models/components/v1getsessionbody.ts +2 -2
- package/src/models/components/v1loginresponsebody.ts +2 -2
- package/src/models/components/v1updatesettingsrequestbody.ts +4 -4
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/webhooks/README.md +0 -84
- package/funcs/webhooksResend.d.ts +0 -9
- package/funcs/webhooksResend.d.ts.map +0 -1
- package/funcs/webhooksResend.js +0 -114
- package/funcs/webhooksResend.js.map +0 -1
- package/models/components/errormodel.d.ts +0 -63
- package/models/components/errormodel.d.ts.map +0 -1
- package/models/components/errormodel.js +0 -81
- package/models/components/errormodel.js.map +0 -1
- package/models/operations/resendwebhook.d.ts +0 -66
- package/models/operations/resendwebhook.d.ts.map +0 -1
- package/models/operations/resendwebhook.js +0 -130
- package/models/operations/resendwebhook.js.map +0 -1
- package/sdk/webhooks.d.ts +0 -6
- package/sdk/webhooks.d.ts.map +0 -1
- package/sdk/webhooks.js +0 -16
- package/sdk/webhooks.js.map +0 -1
- package/src/funcs/webhooksResend.ts +0 -153
- package/src/models/components/errormodel.ts +0 -122
- package/src/models/operations/resendwebhook.ts +0 -179
- package/src/sdk/webhooks.ts +0 -21
|
@@ -1,81 +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.ErrorModel$ = exports.ErrorModel$outboundSchema = exports.ErrorModel$inboundSchema = void 0;
|
|
30
|
-
exports.errorModelToJSON = errorModelToJSON;
|
|
31
|
-
exports.errorModelFromJSON = errorModelFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
-
const errordetail_js_1 = require("./errordetail.js");
|
|
36
|
-
/** @internal */
|
|
37
|
-
exports.ErrorModel$inboundSchema = z.object({
|
|
38
|
-
$schema: z.string().optional(),
|
|
39
|
-
detail: z.string().optional(),
|
|
40
|
-
errors: z.nullable(z.array(errordetail_js_1.ErrorDetail$inboundSchema)).optional(),
|
|
41
|
-
instance: z.string().optional(),
|
|
42
|
-
status: z.number().int().optional(),
|
|
43
|
-
title: z.string().optional(),
|
|
44
|
-
type: z.string().default("about:blank"),
|
|
45
|
-
}).transform((v) => {
|
|
46
|
-
return (0, primitives_js_1.remap)(v, {
|
|
47
|
-
"$schema": "dollarSchema",
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
/** @internal */
|
|
51
|
-
exports.ErrorModel$outboundSchema = z.object({
|
|
52
|
-
dollarSchema: z.string().optional(),
|
|
53
|
-
detail: z.string().optional(),
|
|
54
|
-
errors: z.nullable(z.array(errordetail_js_1.ErrorDetail$outboundSchema)).optional(),
|
|
55
|
-
instance: z.string().optional(),
|
|
56
|
-
status: z.number().int().optional(),
|
|
57
|
-
title: z.string().optional(),
|
|
58
|
-
type: z.string().default("about:blank"),
|
|
59
|
-
}).transform((v) => {
|
|
60
|
-
return (0, primitives_js_1.remap)(v, {
|
|
61
|
-
dollarSchema: "$schema",
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
-
*/
|
|
68
|
-
var ErrorModel$;
|
|
69
|
-
(function (ErrorModel$) {
|
|
70
|
-
/** @deprecated use `ErrorModel$inboundSchema` instead. */
|
|
71
|
-
ErrorModel$.inboundSchema = exports.ErrorModel$inboundSchema;
|
|
72
|
-
/** @deprecated use `ErrorModel$outboundSchema` instead. */
|
|
73
|
-
ErrorModel$.outboundSchema = exports.ErrorModel$outboundSchema;
|
|
74
|
-
})(ErrorModel$ || (exports.ErrorModel$ = ErrorModel$ = {}));
|
|
75
|
-
function errorModelToJSON(errorModel) {
|
|
76
|
-
return JSON.stringify(exports.ErrorModel$outboundSchema.parse(errorModel));
|
|
77
|
-
}
|
|
78
|
-
function errorModelFromJSON(jsonString) {
|
|
79
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ErrorModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ErrorModel' from JSON`);
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=errormodel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errormodel.js","sourceRoot":"","sources":["../../src/models/components/errormodel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;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C,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACnC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CACxC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,SAAS;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,WAAW,CAO3B;AAPD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAG1D,CAAC,EAPgB,WAAW,2BAAX,WAAW,QAO3B;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,IAAI,CAAC,SAAS,CAAC,iCAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type ResendWebhookRequest = {
|
|
6
|
-
webhookId?: string | undefined;
|
|
7
|
-
webhookTimestamp?: string | undefined;
|
|
8
|
-
webhookSignature?: string | undefined;
|
|
9
|
-
requestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
10
|
-
};
|
|
11
|
-
export type ResendWebhookResponse = {
|
|
12
|
-
httpMeta: components.HTTPMetadata;
|
|
13
|
-
/**
|
|
14
|
-
* Error
|
|
15
|
-
*/
|
|
16
|
-
errorModel?: components.ErrorModel | undefined;
|
|
17
|
-
};
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare const ResendWebhookRequest$inboundSchema: z.ZodType<ResendWebhookRequest, z.ZodTypeDef, unknown>;
|
|
20
|
-
/** @internal */
|
|
21
|
-
export type ResendWebhookRequest$Outbound = {
|
|
22
|
-
"webhook-id"?: string | undefined;
|
|
23
|
-
"webhook-timestamp"?: string | undefined;
|
|
24
|
-
"webhook-signature"?: string | undefined;
|
|
25
|
-
RequestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
26
|
-
};
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare const ResendWebhookRequest$outboundSchema: z.ZodType<ResendWebhookRequest$Outbound, z.ZodTypeDef, ResendWebhookRequest>;
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
-
*/
|
|
33
|
-
export declare namespace ResendWebhookRequest$ {
|
|
34
|
-
/** @deprecated use `ResendWebhookRequest$inboundSchema` instead. */
|
|
35
|
-
const inboundSchema: z.ZodType<ResendWebhookRequest, z.ZodTypeDef, unknown>;
|
|
36
|
-
/** @deprecated use `ResendWebhookRequest$outboundSchema` instead. */
|
|
37
|
-
const outboundSchema: z.ZodType<ResendWebhookRequest$Outbound, z.ZodTypeDef, ResendWebhookRequest>;
|
|
38
|
-
/** @deprecated use `ResendWebhookRequest$Outbound` instead. */
|
|
39
|
-
type Outbound = ResendWebhookRequest$Outbound;
|
|
40
|
-
}
|
|
41
|
-
export declare function resendWebhookRequestToJSON(resendWebhookRequest: ResendWebhookRequest): string;
|
|
42
|
-
export declare function resendWebhookRequestFromJSON(jsonString: string): SafeParseResult<ResendWebhookRequest, SDKValidationError>;
|
|
43
|
-
/** @internal */
|
|
44
|
-
export declare const ResendWebhookResponse$inboundSchema: z.ZodType<ResendWebhookResponse, z.ZodTypeDef, unknown>;
|
|
45
|
-
/** @internal */
|
|
46
|
-
export type ResendWebhookResponse$Outbound = {
|
|
47
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
48
|
-
ErrorModel?: components.ErrorModel$Outbound | undefined;
|
|
49
|
-
};
|
|
50
|
-
/** @internal */
|
|
51
|
-
export declare const ResendWebhookResponse$outboundSchema: z.ZodType<ResendWebhookResponse$Outbound, z.ZodTypeDef, ResendWebhookResponse>;
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
-
*/
|
|
56
|
-
export declare namespace ResendWebhookResponse$ {
|
|
57
|
-
/** @deprecated use `ResendWebhookResponse$inboundSchema` instead. */
|
|
58
|
-
const inboundSchema: z.ZodType<ResendWebhookResponse, z.ZodTypeDef, unknown>;
|
|
59
|
-
/** @deprecated use `ResendWebhookResponse$outboundSchema` instead. */
|
|
60
|
-
const outboundSchema: z.ZodType<ResendWebhookResponse$Outbound, z.ZodTypeDef, ResendWebhookResponse>;
|
|
61
|
-
/** @deprecated use `ResendWebhookResponse$Outbound` instead. */
|
|
62
|
-
type Outbound = ResendWebhookResponse$Outbound;
|
|
63
|
-
}
|
|
64
|
-
export declare function resendWebhookResponseToJSON(resendWebhookResponse: ResendWebhookResponse): string;
|
|
65
|
-
export declare function resendWebhookResponseFromJSON(jsonString: string): SafeParseResult<ResendWebhookResponse, SDKValidationError>;
|
|
66
|
-
//# sourceMappingURL=resendwebhook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resendwebhook.d.ts","sourceRoot":"","sources":["../../src/models/operations/resendwebhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAA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|
-
*/
|
|
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.ResendWebhookResponse$ = exports.ResendWebhookResponse$outboundSchema = exports.ResendWebhookResponse$inboundSchema = exports.ResendWebhookRequest$ = exports.ResendWebhookRequest$outboundSchema = exports.ResendWebhookRequest$inboundSchema = void 0;
|
|
30
|
-
exports.resendWebhookRequestToJSON = resendWebhookRequestToJSON;
|
|
31
|
-
exports.resendWebhookRequestFromJSON = resendWebhookRequestFromJSON;
|
|
32
|
-
exports.resendWebhookResponseToJSON = resendWebhookResponseToJSON;
|
|
33
|
-
exports.resendWebhookResponseFromJSON = resendWebhookResponseFromJSON;
|
|
34
|
-
const z = __importStar(require("zod"));
|
|
35
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
36
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
37
|
-
const components = __importStar(require("../components/index.js"));
|
|
38
|
-
/** @internal */
|
|
39
|
-
exports.ResendWebhookRequest$inboundSchema = z.object({
|
|
40
|
-
"webhook-id": z.string().optional(),
|
|
41
|
-
"webhook-timestamp": z.string().optional(),
|
|
42
|
-
"webhook-signature": z.string().optional(),
|
|
43
|
-
RequestBody: z.union([
|
|
44
|
-
z.instanceof((ReadableStream)),
|
|
45
|
-
z.instanceof(Blob),
|
|
46
|
-
z.instanceof(ArrayBuffer),
|
|
47
|
-
z.instanceof(Uint8Array),
|
|
48
|
-
]),
|
|
49
|
-
}).transform((v) => {
|
|
50
|
-
return (0, primitives_js_1.remap)(v, {
|
|
51
|
-
"webhook-id": "webhookId",
|
|
52
|
-
"webhook-timestamp": "webhookTimestamp",
|
|
53
|
-
"webhook-signature": "webhookSignature",
|
|
54
|
-
"RequestBody": "requestBody",
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
/** @internal */
|
|
58
|
-
exports.ResendWebhookRequest$outboundSchema = z.object({
|
|
59
|
-
webhookId: z.string().optional(),
|
|
60
|
-
webhookTimestamp: z.string().optional(),
|
|
61
|
-
webhookSignature: z.string().optional(),
|
|
62
|
-
requestBody: z.union([
|
|
63
|
-
z.instanceof((ReadableStream)),
|
|
64
|
-
z.instanceof(Blob),
|
|
65
|
-
z.instanceof(ArrayBuffer),
|
|
66
|
-
z.instanceof(Uint8Array),
|
|
67
|
-
]),
|
|
68
|
-
}).transform((v) => {
|
|
69
|
-
return (0, primitives_js_1.remap)(v, {
|
|
70
|
-
webhookId: "webhook-id",
|
|
71
|
-
webhookTimestamp: "webhook-timestamp",
|
|
72
|
-
webhookSignature: "webhook-signature",
|
|
73
|
-
requestBody: "RequestBody",
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
-
*/
|
|
80
|
-
var ResendWebhookRequest$;
|
|
81
|
-
(function (ResendWebhookRequest$) {
|
|
82
|
-
/** @deprecated use `ResendWebhookRequest$inboundSchema` instead. */
|
|
83
|
-
ResendWebhookRequest$.inboundSchema = exports.ResendWebhookRequest$inboundSchema;
|
|
84
|
-
/** @deprecated use `ResendWebhookRequest$outboundSchema` instead. */
|
|
85
|
-
ResendWebhookRequest$.outboundSchema = exports.ResendWebhookRequest$outboundSchema;
|
|
86
|
-
})(ResendWebhookRequest$ || (exports.ResendWebhookRequest$ = ResendWebhookRequest$ = {}));
|
|
87
|
-
function resendWebhookRequestToJSON(resendWebhookRequest) {
|
|
88
|
-
return JSON.stringify(exports.ResendWebhookRequest$outboundSchema.parse(resendWebhookRequest));
|
|
89
|
-
}
|
|
90
|
-
function resendWebhookRequestFromJSON(jsonString) {
|
|
91
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResendWebhookRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResendWebhookRequest' from JSON`);
|
|
92
|
-
}
|
|
93
|
-
/** @internal */
|
|
94
|
-
exports.ResendWebhookResponse$inboundSchema = z.object({
|
|
95
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
96
|
-
ErrorModel: components.ErrorModel$inboundSchema.optional(),
|
|
97
|
-
}).transform((v) => {
|
|
98
|
-
return (0, primitives_js_1.remap)(v, {
|
|
99
|
-
"HttpMeta": "httpMeta",
|
|
100
|
-
"ErrorModel": "errorModel",
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
/** @internal */
|
|
104
|
-
exports.ResendWebhookResponse$outboundSchema = z.object({
|
|
105
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
106
|
-
errorModel: components.ErrorModel$outboundSchema.optional(),
|
|
107
|
-
}).transform((v) => {
|
|
108
|
-
return (0, primitives_js_1.remap)(v, {
|
|
109
|
-
httpMeta: "HttpMeta",
|
|
110
|
-
errorModel: "ErrorModel",
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
/**
|
|
114
|
-
* @internal
|
|
115
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
116
|
-
*/
|
|
117
|
-
var ResendWebhookResponse$;
|
|
118
|
-
(function (ResendWebhookResponse$) {
|
|
119
|
-
/** @deprecated use `ResendWebhookResponse$inboundSchema` instead. */
|
|
120
|
-
ResendWebhookResponse$.inboundSchema = exports.ResendWebhookResponse$inboundSchema;
|
|
121
|
-
/** @deprecated use `ResendWebhookResponse$outboundSchema` instead. */
|
|
122
|
-
ResendWebhookResponse$.outboundSchema = exports.ResendWebhookResponse$outboundSchema;
|
|
123
|
-
})(ResendWebhookResponse$ || (exports.ResendWebhookResponse$ = ResendWebhookResponse$ = {}));
|
|
124
|
-
function resendWebhookResponseToJSON(resendWebhookResponse) {
|
|
125
|
-
return JSON.stringify(exports.ResendWebhookResponse$outboundSchema.parse(resendWebhookResponse));
|
|
126
|
-
}
|
|
127
|
-
function resendWebhookResponseFromJSON(jsonString) {
|
|
128
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResendWebhookResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResendWebhookResponse' from JSON`);
|
|
129
|
-
}
|
|
130
|
-
//# sourceMappingURL=resendwebhook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resendwebhook.js","sourceRoot":"","sources":["../../src/models/operations/resendwebhook.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA6FH,gEAMC;AAED,oEAQC;AAmDD,kEAMC;AAED,sEAQC;AA9KD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAkBrD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,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AAE;CAC5D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,UAAU,EAAE,YAAY;KACzB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
package/sdk/webhooks.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Webhooks extends ClientSDK {
|
|
4
|
-
resend(request: operations.ResendWebhookRequest, options?: RequestOptions): Promise<operations.ResendWebhookResponse>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=webhooks.d.ts.map
|
package/sdk/webhooks.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/sdk/webhooks.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IAC/B,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAO7C"}
|
package/sdk/webhooks.js
DELETED
|
@@ -1,16 +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.Webhooks = void 0;
|
|
7
|
-
const webhooksResend_js_1 = require("../funcs/webhooksResend.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class Webhooks extends sdks_js_1.ClientSDK {
|
|
11
|
-
async resend(request, options) {
|
|
12
|
-
return (0, fp_js_1.unwrapAsync)((0, webhooksResend_js_1.webhooksResend)(this, request, options));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Webhooks = Webhooks;
|
|
16
|
-
//# sourceMappingURL=webhooks.js.map
|
package/sdk/webhooks.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/sdk/webhooks.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kEAA4D;AAC5D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC,KAAK,CAAC,MAAM,CACV,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAXD,4BAWC"}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SteamSetsCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
-
import { pathToFunc } from "../lib/url.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 * as operations from "../models/operations/index.js";
|
|
23
|
-
import { Result } from "../types/fp.js";
|
|
24
|
-
|
|
25
|
-
export async function webhooksResend(
|
|
26
|
-
client: SteamSetsCore,
|
|
27
|
-
request: operations.ResendWebhookRequest,
|
|
28
|
-
options?: RequestOptions,
|
|
29
|
-
): Promise<
|
|
30
|
-
Result<
|
|
31
|
-
operations.ResendWebhookResponse,
|
|
32
|
-
| SDKError
|
|
33
|
-
| SDKValidationError
|
|
34
|
-
| UnexpectedClientError
|
|
35
|
-
| InvalidRequestError
|
|
36
|
-
| RequestAbortedError
|
|
37
|
-
| RequestTimeoutError
|
|
38
|
-
| ConnectionError
|
|
39
|
-
>
|
|
40
|
-
> {
|
|
41
|
-
const parsed = safeParse(
|
|
42
|
-
request,
|
|
43
|
-
(value) => operations.ResendWebhookRequest$outboundSchema.parse(value),
|
|
44
|
-
"Input validation failed",
|
|
45
|
-
);
|
|
46
|
-
if (!parsed.ok) {
|
|
47
|
-
return parsed;
|
|
48
|
-
}
|
|
49
|
-
const payload = parsed.value;
|
|
50
|
-
const body = payload.RequestBody;
|
|
51
|
-
|
|
52
|
-
const path = pathToFunc("/webhooks/resend")();
|
|
53
|
-
|
|
54
|
-
const headers = new Headers(compactMap({
|
|
55
|
-
"Content-Type": "application/octet-stream",
|
|
56
|
-
Accept: "application/problem+json",
|
|
57
|
-
"webhook-id": encodeSimple("webhook-id", payload["webhook-id"], {
|
|
58
|
-
explode: false,
|
|
59
|
-
charEncoding: "none",
|
|
60
|
-
}),
|
|
61
|
-
"webhook-signature": encodeSimple(
|
|
62
|
-
"webhook-signature",
|
|
63
|
-
payload["webhook-signature"],
|
|
64
|
-
{ explode: false, charEncoding: "none" },
|
|
65
|
-
),
|
|
66
|
-
"webhook-timestamp": encodeSimple(
|
|
67
|
-
"webhook-timestamp",
|
|
68
|
-
payload["webhook-timestamp"],
|
|
69
|
-
{ explode: false, charEncoding: "none" },
|
|
70
|
-
),
|
|
71
|
-
}));
|
|
72
|
-
|
|
73
|
-
const secConfig = await extractSecurity(client._options.token);
|
|
74
|
-
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
75
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
76
|
-
|
|
77
|
-
const context = {
|
|
78
|
-
operationID: "resend-webhook",
|
|
79
|
-
oAuth2Scopes: [],
|
|
80
|
-
|
|
81
|
-
resolvedSecurity: requestSecurity,
|
|
82
|
-
|
|
83
|
-
securitySource: client._options.token,
|
|
84
|
-
retryConfig: options?.retries
|
|
85
|
-
|| client._options.retryConfig
|
|
86
|
-
|| {
|
|
87
|
-
strategy: "backoff",
|
|
88
|
-
backoff: {
|
|
89
|
-
initialInterval: 500,
|
|
90
|
-
maxInterval: 5000,
|
|
91
|
-
exponent: 1.5,
|
|
92
|
-
maxElapsedTime: 60000,
|
|
93
|
-
},
|
|
94
|
-
retryConnectionErrors: true,
|
|
95
|
-
}
|
|
96
|
-
|| { strategy: "none" },
|
|
97
|
-
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const requestRes = client._createRequest(context, {
|
|
101
|
-
security: requestSecurity,
|
|
102
|
-
method: "POST",
|
|
103
|
-
baseURL: options?.serverURL,
|
|
104
|
-
path: path,
|
|
105
|
-
headers: headers,
|
|
106
|
-
body: body,
|
|
107
|
-
uaHeader: "x-speakeasy-user-agent",
|
|
108
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
109
|
-
}, options);
|
|
110
|
-
if (!requestRes.ok) {
|
|
111
|
-
return requestRes;
|
|
112
|
-
}
|
|
113
|
-
const req = requestRes.value;
|
|
114
|
-
|
|
115
|
-
const doResult = await client._do(req, {
|
|
116
|
-
context,
|
|
117
|
-
errorCodes: ["4XX", "5XX"],
|
|
118
|
-
retryConfig: context.retryConfig,
|
|
119
|
-
retryCodes: context.retryCodes,
|
|
120
|
-
});
|
|
121
|
-
if (!doResult.ok) {
|
|
122
|
-
return doResult;
|
|
123
|
-
}
|
|
124
|
-
const response = doResult.value;
|
|
125
|
-
|
|
126
|
-
const responseFields = {
|
|
127
|
-
HttpMeta: { Response: response, Request: req },
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
const [result] = await M.match<
|
|
131
|
-
operations.ResendWebhookResponse,
|
|
132
|
-
| SDKError
|
|
133
|
-
| SDKValidationError
|
|
134
|
-
| UnexpectedClientError
|
|
135
|
-
| InvalidRequestError
|
|
136
|
-
| RequestAbortedError
|
|
137
|
-
| RequestTimeoutError
|
|
138
|
-
| ConnectionError
|
|
139
|
-
>(
|
|
140
|
-
M.nil(204, operations.ResendWebhookResponse$inboundSchema),
|
|
141
|
-
M.fail("4XX"),
|
|
142
|
-
M.fail("5XX"),
|
|
143
|
-
M.json("default", operations.ResendWebhookResponse$inboundSchema, {
|
|
144
|
-
ctype: "application/problem+json",
|
|
145
|
-
key: "ErrorModel",
|
|
146
|
-
}),
|
|
147
|
-
)(response, req, { extraFields: responseFields });
|
|
148
|
-
if (!result.ok) {
|
|
149
|
-
return result;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
return result;
|
|
153
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
ErrorDetail,
|
|
12
|
-
ErrorDetail$inboundSchema,
|
|
13
|
-
ErrorDetail$Outbound,
|
|
14
|
-
ErrorDetail$outboundSchema,
|
|
15
|
-
} from "./errordetail.js";
|
|
16
|
-
|
|
17
|
-
export type ErrorModel = {
|
|
18
|
-
/**
|
|
19
|
-
* A URL to the JSON Schema for this object.
|
|
20
|
-
*/
|
|
21
|
-
dollarSchema?: string | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* A human-readable explanation specific to this occurrence of the problem.
|
|
24
|
-
*/
|
|
25
|
-
detail?: string | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Optional list of individual error details
|
|
28
|
-
*/
|
|
29
|
-
errors?: Array<ErrorDetail> | null | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* A URI reference that identifies the specific occurrence of the problem.
|
|
32
|
-
*/
|
|
33
|
-
instance?: string | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* HTTP status code
|
|
36
|
-
*/
|
|
37
|
-
status?: number | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
40
|
-
*/
|
|
41
|
-
title?: string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* A URI reference to human-readable documentation for the error.
|
|
44
|
-
*/
|
|
45
|
-
type?: string | undefined;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const ErrorModel$inboundSchema: z.ZodType<
|
|
50
|
-
ErrorModel,
|
|
51
|
-
z.ZodTypeDef,
|
|
52
|
-
unknown
|
|
53
|
-
> = z.object({
|
|
54
|
-
$schema: z.string().optional(),
|
|
55
|
-
detail: z.string().optional(),
|
|
56
|
-
errors: z.nullable(z.array(ErrorDetail$inboundSchema)).optional(),
|
|
57
|
-
instance: z.string().optional(),
|
|
58
|
-
status: z.number().int().optional(),
|
|
59
|
-
title: z.string().optional(),
|
|
60
|
-
type: z.string().default("about:blank"),
|
|
61
|
-
}).transform((v) => {
|
|
62
|
-
return remap$(v, {
|
|
63
|
-
"$schema": "dollarSchema",
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
/** @internal */
|
|
68
|
-
export type ErrorModel$Outbound = {
|
|
69
|
-
$schema?: string | undefined;
|
|
70
|
-
detail?: string | undefined;
|
|
71
|
-
errors?: Array<ErrorDetail$Outbound> | null | undefined;
|
|
72
|
-
instance?: string | undefined;
|
|
73
|
-
status?: number | undefined;
|
|
74
|
-
title?: string | undefined;
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/** @internal */
|
|
79
|
-
export const ErrorModel$outboundSchema: z.ZodType<
|
|
80
|
-
ErrorModel$Outbound,
|
|
81
|
-
z.ZodTypeDef,
|
|
82
|
-
ErrorModel
|
|
83
|
-
> = z.object({
|
|
84
|
-
dollarSchema: z.string().optional(),
|
|
85
|
-
detail: z.string().optional(),
|
|
86
|
-
errors: z.nullable(z.array(ErrorDetail$outboundSchema)).optional(),
|
|
87
|
-
instance: z.string().optional(),
|
|
88
|
-
status: z.number().int().optional(),
|
|
89
|
-
title: z.string().optional(),
|
|
90
|
-
type: z.string().default("about:blank"),
|
|
91
|
-
}).transform((v) => {
|
|
92
|
-
return remap$(v, {
|
|
93
|
-
dollarSchema: "$schema",
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @internal
|
|
99
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
100
|
-
*/
|
|
101
|
-
export namespace ErrorModel$ {
|
|
102
|
-
/** @deprecated use `ErrorModel$inboundSchema` instead. */
|
|
103
|
-
export const inboundSchema = ErrorModel$inboundSchema;
|
|
104
|
-
/** @deprecated use `ErrorModel$outboundSchema` instead. */
|
|
105
|
-
export const outboundSchema = ErrorModel$outboundSchema;
|
|
106
|
-
/** @deprecated use `ErrorModel$Outbound` instead. */
|
|
107
|
-
export type Outbound = ErrorModel$Outbound;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export function errorModelToJSON(errorModel: ErrorModel): string {
|
|
111
|
-
return JSON.stringify(ErrorModel$outboundSchema.parse(errorModel));
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export function errorModelFromJSON(
|
|
115
|
-
jsonString: string,
|
|
116
|
-
): SafeParseResult<ErrorModel, SDKValidationError> {
|
|
117
|
-
return safeParse(
|
|
118
|
-
jsonString,
|
|
119
|
-
(x) => ErrorModel$inboundSchema.parse(JSON.parse(x)),
|
|
120
|
-
`Failed to parse 'ErrorModel' from JSON`,
|
|
121
|
-
);
|
|
122
|
-
}
|