@steamsets/client-ts 0.15.4 → 0.17.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.
Files changed (81) hide show
  1. package/README.md +0 -42
  2. package/docs/sdks/settings/README.md +1 -1
  3. package/funcs/sessionCreate.d.ts.map +1 -1
  4. package/funcs/sessionCreate.js +1 -0
  5. package/funcs/sessionCreate.js.map +1 -1
  6. package/funcs/settingsSubscribeEmail.js +2 -2
  7. package/funcs/settingsSubscribeEmail.js.map +1 -1
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +3 -3
  10. package/lib/config.js +3 -3
  11. package/models/components/connection.d.ts +3 -3
  12. package/models/components/index.d.ts +0 -1
  13. package/models/components/index.d.ts.map +1 -1
  14. package/models/components/index.js +0 -1
  15. package/models/components/index.js.map +1 -1
  16. package/models/components/v1admingetaccountresponsebody.d.ts +13 -7
  17. package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -1
  18. package/models/components/v1admingetaccountresponsebody.js +3 -0
  19. package/models/components/v1admingetaccountresponsebody.js.map +1 -1
  20. package/models/components/v1createsessionbody.d.ts +0 -15
  21. package/models/components/v1createsessionbody.d.ts.map +1 -1
  22. package/models/components/v1createsessionbody.js +0 -6
  23. package/models/components/v1createsessionbody.js.map +1 -1
  24. package/models/components/v1emailsubscriptionrequestbody.d.ts +3 -3
  25. package/models/components/v1emailsubscriptionrequestbody.d.ts.map +1 -1
  26. package/models/components/v1emailsubscriptionrequestbody.js +2 -2
  27. package/models/components/v1emailsubscriptionrequestbody.js.map +1 -1
  28. package/models/components/v1getsessionbody.d.ts +2 -2
  29. package/models/components/v1loginresponsebody.d.ts +2 -2
  30. package/models/components/v1updatesettingsrequestbody.d.ts +2 -2
  31. package/models/components/v1updatesettingsrequestbody.d.ts.map +1 -1
  32. package/models/components/v1updatesettingsrequestbody.js +2 -2
  33. package/models/components/v1updatesettingsrequestbody.js.map +1 -1
  34. package/models/operations/accountv1sessioncreate.d.ts +6 -0
  35. package/models/operations/accountv1sessioncreate.d.ts.map +1 -1
  36. package/models/operations/accountv1sessioncreate.js +4 -0
  37. package/models/operations/accountv1sessioncreate.js.map +1 -1
  38. package/models/operations/index.d.ts +0 -1
  39. package/models/operations/index.d.ts.map +1 -1
  40. package/models/operations/index.js +0 -1
  41. package/models/operations/index.js.map +1 -1
  42. package/package.json +1 -1
  43. package/sdk/sdk.d.ts +0 -3
  44. package/sdk/sdk.d.ts.map +1 -1
  45. package/sdk/sdk.js +0 -4
  46. package/sdk/sdk.js.map +1 -1
  47. package/src/funcs/sessionCreate.ts +1 -0
  48. package/src/funcs/settingsSubscribeEmail.ts +2 -2
  49. package/src/lib/config.ts +3 -3
  50. package/src/models/components/connection.ts +3 -3
  51. package/src/models/components/index.ts +0 -1
  52. package/src/models/components/v1admingetaccountresponsebody.ts +20 -7
  53. package/src/models/components/v1createsessionbody.ts +0 -21
  54. package/src/models/components/v1emailsubscriptionrequestbody.ts +5 -5
  55. package/src/models/components/v1getsessionbody.ts +2 -2
  56. package/src/models/components/v1loginresponsebody.ts +2 -2
  57. package/src/models/components/v1updatesettingsrequestbody.ts +4 -4
  58. package/src/models/operations/accountv1sessioncreate.ts +6 -0
  59. package/src/models/operations/index.ts +0 -1
  60. package/src/sdk/sdk.ts +0 -6
  61. package/docs/sdks/webhooks/README.md +0 -84
  62. package/funcs/webhooksResend.d.ts +0 -9
  63. package/funcs/webhooksResend.d.ts.map +0 -1
  64. package/funcs/webhooksResend.js +0 -114
  65. package/funcs/webhooksResend.js.map +0 -1
  66. package/models/components/errormodel.d.ts +0 -63
  67. package/models/components/errormodel.d.ts.map +0 -1
  68. package/models/components/errormodel.js +0 -81
  69. package/models/components/errormodel.js.map +0 -1
  70. package/models/operations/resendwebhook.d.ts +0 -66
  71. package/models/operations/resendwebhook.d.ts.map +0 -1
  72. package/models/operations/resendwebhook.js +0 -130
  73. package/models/operations/resendwebhook.js.map +0 -1
  74. package/sdk/webhooks.d.ts +0 -6
  75. package/sdk/webhooks.d.ts.map +0 -1
  76. package/sdk/webhooks.js +0 -16
  77. package/sdk/webhooks.js.map +0 -1
  78. package/src/funcs/webhooksResend.ts +0 -153
  79. package/src/models/components/errormodel.ts +0 -122
  80. package/src/models/operations/resendwebhook.ts +0 -179
  81. package/src/sdk/webhooks.ts +0 -21
@@ -1,84 +0,0 @@
1
- # Webhooks
2
- (*webhooks*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [resend](#resend)
9
-
10
- ## resend
11
-
12
- ### Example Usage
13
-
14
- ```typescript
15
- import { SteamSets } from "@steamsets/client-ts";
16
- import { openAsBlob } from "node:fs";
17
-
18
- const steamSets = new SteamSets({
19
- token: "<YOUR_BEARER_TOKEN_HERE>",
20
- });
21
-
22
- async function run() {
23
- const result = await steamSets.webhooks.resend({
24
- requestBody: await openAsBlob("example.file"),
25
- });
26
-
27
- // Handle the result
28
- console.log(result);
29
- }
30
-
31
- run();
32
- ```
33
-
34
- ### Standalone function
35
-
36
- The standalone function version of this method:
37
-
38
- ```typescript
39
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
40
- import { webhooksResend } from "@steamsets/client-ts/funcs/webhooksResend.js";
41
- import { openAsBlob } from "node:fs";
42
-
43
- // Use `SteamSetsCore` for best tree-shaking performance.
44
- // You can create one instance of it to use across an application.
45
- const steamSets = new SteamSetsCore({
46
- token: "<YOUR_BEARER_TOKEN_HERE>",
47
- });
48
-
49
- async function run() {
50
- const res = await webhooksResend(steamSets, {
51
- requestBody: await openAsBlob("example.file"),
52
- });
53
-
54
- if (!res.ok) {
55
- throw res.error;
56
- }
57
-
58
- const { value: result } = res;
59
-
60
- // Handle the result
61
- console.log(result);
62
- }
63
-
64
- run();
65
- ```
66
-
67
- ### Parameters
68
-
69
- | Parameter | Type | Required | Description |
70
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
71
- | `request` | [operations.ResendWebhookRequest](../../models/operations/resendwebhookrequest.md) | :heavy_check_mark: | The request object to use for the request. |
72
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
73
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
74
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
75
-
76
- ### Response
77
-
78
- **Promise\<[operations.ResendWebhookResponse](../../models/operations/resendwebhookresponse.md)\>**
79
-
80
- ### Errors
81
-
82
- | Error Type | Status Code | Content Type |
83
- | --------------- | --------------- | --------------- |
84
- | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -1,9 +0,0 @@
1
- import { SteamSetsCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
- import { SDKError } from "../models/errors/sdkerror.js";
5
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
6
- import * as operations from "../models/operations/index.js";
7
- import { Result } from "../types/fp.js";
8
- export declare function webhooksResend(client: SteamSetsCore, request: operations.ResendWebhookRequest, options?: RequestOptions): Promise<Result<operations.ResendWebhookResponse, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
9
- //# sourceMappingURL=webhooksResend.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooksResend.d.ts","sourceRoot":"","sources":["../src/funcs/webhooksResend.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,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,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,cAAc,CAClC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,qBAAqB,EAC9B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAiHA"}
@@ -1,114 +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.webhooksResend = webhooksResend;
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 operations = __importStar(require("../models/operations/index.js"));
37
- async function webhooksResend(client, request, options) {
38
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ResendWebhookRequest$outboundSchema.parse(value), "Input validation failed");
39
- if (!parsed.ok) {
40
- return parsed;
41
- }
42
- const payload = parsed.value;
43
- const body = payload.RequestBody;
44
- const path = (0, url_js_1.pathToFunc)("/webhooks/resend")();
45
- const headers = new Headers((0, primitives_js_1.compactMap)({
46
- "Content-Type": "application/octet-stream",
47
- Accept: "application/problem+json",
48
- "webhook-id": (0, encodings_js_1.encodeSimple)("webhook-id", payload["webhook-id"], {
49
- explode: false,
50
- charEncoding: "none",
51
- }),
52
- "webhook-signature": (0, encodings_js_1.encodeSimple)("webhook-signature", payload["webhook-signature"], { explode: false, charEncoding: "none" }),
53
- "webhook-timestamp": (0, encodings_js_1.encodeSimple)("webhook-timestamp", payload["webhook-timestamp"], { explode: false, charEncoding: "none" }),
54
- }));
55
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
56
- const securityInput = secConfig == null ? {} : { token: secConfig };
57
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
58
- const context = {
59
- operationID: "resend-webhook",
60
- oAuth2Scopes: [],
61
- resolvedSecurity: requestSecurity,
62
- securitySource: client._options.token,
63
- retryConfig: options?.retries
64
- || client._options.retryConfig
65
- || {
66
- strategy: "backoff",
67
- backoff: {
68
- initialInterval: 500,
69
- maxInterval: 5000,
70
- exponent: 1.5,
71
- maxElapsedTime: 60000,
72
- },
73
- retryConnectionErrors: true,
74
- }
75
- || { strategy: "none" },
76
- retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
77
- };
78
- const requestRes = client._createRequest(context, {
79
- security: requestSecurity,
80
- method: "POST",
81
- baseURL: options?.serverURL,
82
- path: path,
83
- headers: headers,
84
- body: body,
85
- uaHeader: "x-speakeasy-user-agent",
86
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
87
- }, options);
88
- if (!requestRes.ok) {
89
- return requestRes;
90
- }
91
- const req = requestRes.value;
92
- const doResult = await client._do(req, {
93
- context,
94
- errorCodes: ["4XX", "5XX"],
95
- retryConfig: context.retryConfig,
96
- retryCodes: context.retryCodes,
97
- });
98
- if (!doResult.ok) {
99
- return doResult;
100
- }
101
- const response = doResult.value;
102
- const responseFields = {
103
- HttpMeta: { Response: response, Request: req },
104
- };
105
- const [result] = await M.match(M.nil(204, operations.ResendWebhookResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"), M.json("default", operations.ResendWebhookResponse$inboundSchema, {
106
- ctype: "application/problem+json",
107
- key: "ErrorModel",
108
- }))(response, req, { extraFields: responseFields });
109
- if (!result.ok) {
110
- return result;
111
- }
112
- return result;
113
- }
114
- //# sourceMappingURL=webhooksResend.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooksResend.js","sourceRoot":"","sources":["../src/funcs/webhooksResend.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAsBH,wCAgIC;AAnJD,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAU3C,0EAA4D;AAGrD,KAAK,UAAU,cAAc,CAClC,MAAqB,EACrB,OAAwC,EACxC,OAAwB;IAaxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,mCAAmC,C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AAC,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,CAU5B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,mCAAmC,CAAC,EAC1D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,mCAAmC,EAAE;QAChE,KAAK,EAAE,0BAA0B;QACjC,GAAG,EAAE,YAAY;KAClB,CAAC,CACH,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,63 +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
- import { ErrorDetail, ErrorDetail$Outbound } from "./errordetail.js";
5
- export type ErrorModel = {
6
- /**
7
- * A URL to the JSON Schema for this object.
8
- */
9
- dollarSchema?: string | undefined;
10
- /**
11
- * A human-readable explanation specific to this occurrence of the problem.
12
- */
13
- detail?: string | undefined;
14
- /**
15
- * Optional list of individual error details
16
- */
17
- errors?: Array<ErrorDetail> | null | undefined;
18
- /**
19
- * A URI reference that identifies the specific occurrence of the problem.
20
- */
21
- instance?: string | undefined;
22
- /**
23
- * HTTP status code
24
- */
25
- status?: number | undefined;
26
- /**
27
- * A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
28
- */
29
- title?: string | undefined;
30
- /**
31
- * A URI reference to human-readable documentation for the error.
32
- */
33
- type?: string | undefined;
34
- };
35
- /** @internal */
36
- export declare const ErrorModel$inboundSchema: z.ZodType<ErrorModel, z.ZodTypeDef, unknown>;
37
- /** @internal */
38
- export type ErrorModel$Outbound = {
39
- $schema?: string | undefined;
40
- detail?: string | undefined;
41
- errors?: Array<ErrorDetail$Outbound> | null | undefined;
42
- instance?: string | undefined;
43
- status?: number | undefined;
44
- title?: string | undefined;
45
- type: string;
46
- };
47
- /** @internal */
48
- export declare const ErrorModel$outboundSchema: z.ZodType<ErrorModel$Outbound, z.ZodTypeDef, ErrorModel>;
49
- /**
50
- * @internal
51
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
- */
53
- export declare namespace ErrorModel$ {
54
- /** @deprecated use `ErrorModel$inboundSchema` instead. */
55
- const inboundSchema: z.ZodType<ErrorModel, z.ZodTypeDef, unknown>;
56
- /** @deprecated use `ErrorModel$outboundSchema` instead. */
57
- const outboundSchema: z.ZodType<ErrorModel$Outbound, z.ZodTypeDef, ErrorModel>;
58
- /** @deprecated use `ErrorModel$Outbound` instead. */
59
- type Outbound = ErrorModel$Outbound;
60
- }
61
- export declare function errorModelToJSON(errorModel: ErrorModel): string;
62
- export declare function errorModelFromJSON(jsonString: string): SafeParseResult<ErrorModel, SDKValidationError>;
63
- //# sourceMappingURL=errormodel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errormodel.d.ts","sourceRoot":"","sources":["../../src/models/components/errormodel.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAk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A0D;IACnD,MAAM,aAAa,8CAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc,0DAA4B,CAAC;IACxD,qDAAqD;IACrD,KAAY,QAAQ,GAAG,mBAAmB,CAAC;CAC5C;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
@@ -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":["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M,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,CAAC,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,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC;CAC3E,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC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AC3C,UAAU,CAAC,EAAE,UAAU,CAAC,mBAAmB,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CASrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -1,130 +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.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,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;QACnB,CAAC,CAAC,UAAU,CAAC,CAAA,cAA0B,CAAA,CAAC;QACxC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC;QAClB,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC;QACzB,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;KACzB,CAA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BAA2B,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
@@ -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
@@ -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"}