@apideck/unify 0.38.0 → 0.38.1

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 (98) hide show
  1. package/README.md +19 -3
  2. package/examples/package-lock.json +1 -1
  3. package/funcs/proxyDelete.d.ts +30 -0
  4. package/funcs/proxyDelete.d.ts.map +1 -0
  5. package/funcs/proxyDelete.js +175 -0
  6. package/funcs/proxyDelete.js.map +1 -0
  7. package/funcs/proxyGet.d.ts +30 -0
  8. package/funcs/proxyGet.d.ts.map +1 -0
  9. package/funcs/proxyGet.js +175 -0
  10. package/funcs/proxyGet.js.map +1 -0
  11. package/funcs/proxyOptions.d.ts +30 -0
  12. package/funcs/proxyOptions.d.ts.map +1 -0
  13. package/funcs/proxyOptions.js +175 -0
  14. package/funcs/proxyOptions.js.map +1 -0
  15. package/funcs/proxyPatch.d.ts +30 -0
  16. package/funcs/proxyPatch.d.ts.map +1 -0
  17. package/funcs/proxyPatch.js +176 -0
  18. package/funcs/proxyPatch.js.map +1 -0
  19. package/funcs/proxyPost.d.ts +30 -0
  20. package/funcs/proxyPost.d.ts.map +1 -0
  21. package/funcs/proxyPost.js +176 -0
  22. package/funcs/proxyPost.js.map +1 -0
  23. package/funcs/proxyPut.d.ts +30 -0
  24. package/funcs/proxyPut.d.ts.map +1 -0
  25. package/funcs/proxyPut.js +176 -0
  26. package/funcs/proxyPut.js.map +1 -0
  27. package/jsr.json +1 -1
  28. package/lib/config.d.ts +4 -4
  29. package/lib/config.js +4 -4
  30. package/models/components/ecommercecustomersfilter.d.ts +10 -0
  31. package/models/components/ecommercecustomersfilter.d.ts.map +1 -1
  32. package/models/components/ecommercecustomersfilter.js +4 -0
  33. package/models/components/ecommercecustomersfilter.js.map +1 -1
  34. package/models/errors/index.d.ts +1 -0
  35. package/models/errors/index.d.ts.map +1 -1
  36. package/models/errors/index.js +1 -0
  37. package/models/errors/index.js.map +1 -1
  38. package/models/errors/unauthorized.d.ts +142 -0
  39. package/models/errors/unauthorized.d.ts.map +1 -0
  40. package/models/errors/unauthorized.js +139 -0
  41. package/models/errors/unauthorized.js.map +1 -0
  42. package/models/operations/index.d.ts +6 -0
  43. package/models/operations/index.d.ts.map +1 -1
  44. package/models/operations/index.js +6 -0
  45. package/models/operations/index.js.map +1 -1
  46. package/models/operations/proxydeleteproxy.d.ts +103 -0
  47. package/models/operations/proxydeleteproxy.d.ts.map +1 -0
  48. package/models/operations/proxydeleteproxy.js +80 -0
  49. package/models/operations/proxydeleteproxy.js.map +1 -0
  50. package/models/operations/proxygetproxy.d.ts +103 -0
  51. package/models/operations/proxygetproxy.d.ts.map +1 -0
  52. package/models/operations/proxygetproxy.js +80 -0
  53. package/models/operations/proxygetproxy.js.map +1 -0
  54. package/models/operations/proxyoptionsproxy.d.ts +103 -0
  55. package/models/operations/proxyoptionsproxy.d.ts.map +1 -0
  56. package/models/operations/proxyoptionsproxy.js +80 -0
  57. package/models/operations/proxyoptionsproxy.js.map +1 -0
  58. package/models/operations/proxypatchproxy.d.ts +120 -0
  59. package/models/operations/proxypatchproxy.d.ts.map +1 -0
  60. package/models/operations/proxypatchproxy.js +102 -0
  61. package/models/operations/proxypatchproxy.js.map +1 -0
  62. package/models/operations/proxypostproxy.d.ts +120 -0
  63. package/models/operations/proxypostproxy.d.ts.map +1 -0
  64. package/models/operations/proxypostproxy.js +103 -0
  65. package/models/operations/proxypostproxy.js.map +1 -0
  66. package/models/operations/proxyputproxy.d.ts +120 -0
  67. package/models/operations/proxyputproxy.d.ts.map +1 -0
  68. package/models/operations/proxyputproxy.js +102 -0
  69. package/models/operations/proxyputproxy.js.map +1 -0
  70. package/package.json +1 -1
  71. package/sdk/proxy.d.ts +77 -0
  72. package/sdk/proxy.d.ts.map +1 -0
  73. package/sdk/proxy.js +90 -0
  74. package/sdk/proxy.js.map +1 -0
  75. package/sdk/sdk.d.ts +3 -0
  76. package/sdk/sdk.d.ts.map +1 -1
  77. package/sdk/sdk.js +4 -0
  78. package/sdk/sdk.js.map +1 -1
  79. package/src/__tests__/proxy.test.ts +41 -0
  80. package/src/funcs/proxyDelete.ts +258 -0
  81. package/src/funcs/proxyGet.ts +258 -0
  82. package/src/funcs/proxyOptions.ts +258 -0
  83. package/src/funcs/proxyPatch.ts +259 -0
  84. package/src/funcs/proxyPost.ts +259 -0
  85. package/src/funcs/proxyPut.ts +259 -0
  86. package/src/lib/config.ts +4 -4
  87. package/src/models/components/ecommercecustomersfilter.ts +14 -0
  88. package/src/models/errors/index.ts +1 -0
  89. package/src/models/errors/unauthorized.ts +282 -0
  90. package/src/models/operations/index.ts +6 -0
  91. package/src/models/operations/proxydeleteproxy.ts +158 -0
  92. package/src/models/operations/proxygetproxy.ts +158 -0
  93. package/src/models/operations/proxyoptionsproxy.ts +158 -0
  94. package/src/models/operations/proxypatchproxy.ts +227 -0
  95. package/src/models/operations/proxypostproxy.ts +212 -0
  96. package/src/models/operations/proxyputproxy.ts +215 -0
  97. package/src/sdk/proxy.ts +135 -0
  98. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,30 @@
1
+ import { ApideckCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ApideckError } from "../models/errors/apideckerror.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import * as errors from "../models/errors/index.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ export declare enum PutAcceptEnum {
12
+ applicationJson = "application/json",
13
+ textCsv = "text/csv",
14
+ textPlain = "text/plain",
15
+ applicationOctetStream = "application/octet-stream",
16
+ applicationPdf = "application/pdf",
17
+ applicationXml = "application/xml",
18
+ textHtml = "text/html"
19
+ }
20
+ /**
21
+ * PUT
22
+ *
23
+ * @remarks
24
+ * Proxies a downstream PUT request to a service and injects the necessary credentials into a request stored in Vault. This allows you to have an additional security layer and logging without needing to rely on Unify for normalization.
25
+ * **Note**: Vault will proxy all data to the downstream URL and method/verb in the headers.
26
+ */
27
+ export declare function proxyPut(client: ApideckCore, request: operations.ProxyPutProxyRequest, options?: RequestOptions & {
28
+ acceptHeaderOverride?: PutAcceptEnum;
29
+ }): APIPromise<Result<operations.ProxyPutProxyResponse, errors.Unauthorized | ApideckError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
30
+ //# sourceMappingURL=proxyPut.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxyPut.d.ts","sourceRoot":"","sources":["../src/funcs/proxyPut.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,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,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,oBAAY,aAAa;IACvB,eAAe,qBAAqB;IACpC,OAAO,aAAa;IACpB,SAAS,eAAe;IACxB,sBAAsB,6BAA6B;IACnD,cAAc,oBAAoB;IAClC,cAAc,oBAAoB;IAClC,QAAQ,cAAc;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GAAG;IAAE,oBAAoB,CAAC,EAAE,aAAa,CAAA;CAAE,GAClE,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,qBAAqB,EAC9B,MAAM,CAAC,YAAY,GACnB,YAAY,GACZ,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,176 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.PutAcceptEnum = void 0;
40
+ exports.proxyPut = proxyPut;
41
+ const encodings_js_1 = require("../lib/encodings.js");
42
+ const M = __importStar(require("../lib/matchers.js"));
43
+ const primitives_js_1 = require("../lib/primitives.js");
44
+ const schemas_js_1 = require("../lib/schemas.js");
45
+ const security_js_1 = require("../lib/security.js");
46
+ const url_js_1 = require("../lib/url.js");
47
+ const errors = __importStar(require("../models/errors/index.js"));
48
+ const operations = __importStar(require("../models/operations/index.js"));
49
+ const async_js_1 = require("../types/async.js");
50
+ var PutAcceptEnum;
51
+ (function (PutAcceptEnum) {
52
+ PutAcceptEnum["applicationJson"] = "application/json";
53
+ PutAcceptEnum["textCsv"] = "text/csv";
54
+ PutAcceptEnum["textPlain"] = "text/plain";
55
+ PutAcceptEnum["applicationOctetStream"] = "application/octet-stream";
56
+ PutAcceptEnum["applicationPdf"] = "application/pdf";
57
+ PutAcceptEnum["applicationXml"] = "application/xml";
58
+ PutAcceptEnum["textHtml"] = "text/html";
59
+ })(PutAcceptEnum || (exports.PutAcceptEnum = PutAcceptEnum = {}));
60
+ /**
61
+ * PUT
62
+ *
63
+ * @remarks
64
+ * Proxies a downstream PUT request to a service and injects the necessary credentials into a request stored in Vault. This allows you to have an additional security layer and logging without needing to rely on Unify for normalization.
65
+ * **Note**: Vault will proxy all data to the downstream URL and method/verb in the headers.
66
+ */
67
+ function proxyPut(client, request, options) {
68
+ return new async_js_1.APIPromise($do(client, request, options));
69
+ }
70
+ async function $do(client, request, options) {
71
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ProxyPutProxyRequest$outboundSchema.parse(value), "Input validation failed");
72
+ if (!parsed.ok) {
73
+ return [parsed, { status: "invalid" }];
74
+ }
75
+ const payload = parsed.value;
76
+ const body = payload.RequestBody;
77
+ const path = (0, url_js_1.pathToFunc)("/proxy")();
78
+ const headers = new Headers((0, primitives_js_1.compactMap)({
79
+ "Content-Type": body instanceof Blob && body.type ? body.type : undefined,
80
+ Accept: options?.acceptHeaderOverride
81
+ || "application/json;q=1, text/csv;q=0.9, text/plain;q=0.7, application/octet-stream;q=0.6, application/pdf;q=0.4, application/xml;q=0.3, text/html;q=0",
82
+ "x-apideck-app-id": (0, encodings_js_1.encodeSimple)("x-apideck-app-id", payload.appId ?? client._options.appId, { explode: false, charEncoding: "none" }),
83
+ "x-apideck-consumer-id": (0, encodings_js_1.encodeSimple)("x-apideck-consumer-id", payload.consumerId ?? client._options.consumerId, { explode: false, charEncoding: "none" }),
84
+ "x-apideck-downstream-authorization": (0, encodings_js_1.encodeSimple)("x-apideck-downstream-authorization", payload.downstreamAuthorization, { explode: false, charEncoding: "none" }),
85
+ "x-apideck-downstream-url": (0, encodings_js_1.encodeSimple)("x-apideck-downstream-url", payload.downstreamUrl, { explode: false, charEncoding: "none" }),
86
+ "x-apideck-service-id": (0, encodings_js_1.encodeSimple)("x-apideck-service-id", payload.serviceId, { explode: false, charEncoding: "none" }),
87
+ "x-apideck-unified-api": (0, encodings_js_1.encodeSimple)("x-apideck-unified-api", payload.unifiedApi, { explode: false, charEncoding: "none" }),
88
+ }));
89
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
90
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
91
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
92
+ const context = {
93
+ options: client._options,
94
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
95
+ operationID: "proxy.putProxy",
96
+ oAuth2Scopes: null,
97
+ resolvedSecurity: requestSecurity,
98
+ securitySource: client._options.apiKey,
99
+ retryConfig: options?.retries
100
+ || client._options.retryConfig
101
+ || {
102
+ strategy: "backoff",
103
+ backoff: {
104
+ initialInterval: 500,
105
+ maxInterval: 60000,
106
+ exponent: 1.5,
107
+ maxElapsedTime: 900000,
108
+ },
109
+ retryConnectionErrors: true,
110
+ }
111
+ || { strategy: "none" },
112
+ retryCodes: options?.retryCodes || ["408", "500", "502", "503", "504"],
113
+ };
114
+ const requestRes = client._createRequest(context, {
115
+ security: requestSecurity,
116
+ method: "PUT",
117
+ baseURL: options?.serverURL,
118
+ path: path,
119
+ headers: headers,
120
+ body: body,
121
+ userAgent: client._options.userAgent,
122
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
123
+ }, options);
124
+ if (!requestRes.ok) {
125
+ return [requestRes, { status: "invalid" }];
126
+ }
127
+ const req = requestRes.value;
128
+ const doResult = await client._do(req, {
129
+ context,
130
+ errorCodes: ["401", "4XX", "5XX"],
131
+ retryConfig: context.retryConfig,
132
+ retryCodes: context.retryCodes,
133
+ });
134
+ if (!doResult.ok) {
135
+ return [doResult, { status: "request-error", request: req }];
136
+ }
137
+ const response = doResult.value;
138
+ const responseFields = {
139
+ HttpMeta: { Response: response, Request: req },
140
+ };
141
+ const [result] = await M.match(M.json(200, operations.ProxyPutProxyResponse$inboundSchema, {
142
+ key: "responseJson",
143
+ }), M.stream(200, operations.ProxyPutProxyResponse$inboundSchema, {
144
+ key: "responseBinary",
145
+ }), M.stream(200, operations.ProxyPutProxyResponse$inboundSchema, {
146
+ ctype: "application/pdf",
147
+ key: "responsePdf",
148
+ }), M.text(200, operations.ProxyPutProxyResponse$inboundSchema, {
149
+ ctype: "application/xml",
150
+ key: "responseXml",
151
+ }), M.text(200, operations.ProxyPutProxyResponse$inboundSchema, {
152
+ ctype: "text/csv",
153
+ key: "responseCsv",
154
+ }), M.text(200, operations.ProxyPutProxyResponse$inboundSchema, {
155
+ key: "responseText",
156
+ }), M.jsonErr(401, errors.Unauthorized$inboundSchema), M.fail("4XX"), M.fail("5XX"), M.json("default", operations.ProxyPutProxyResponse$inboundSchema, {
157
+ hdrs: true,
158
+ key: "errorJson",
159
+ }), M.text("default", operations.ProxyPutProxyResponse$inboundSchema, {
160
+ ctype: "application/xml",
161
+ hdrs: true,
162
+ key: "errorXml",
163
+ }), M.text("default", operations.ProxyPutProxyResponse$inboundSchema, {
164
+ ctype: "text/html",
165
+ hdrs: true,
166
+ key: "errorHtml",
167
+ }), M.text("default", operations.ProxyPutProxyResponse$inboundSchema, {
168
+ hdrs: true,
169
+ key: "errorText",
170
+ }))(response, req, { extraFields: responseFields });
171
+ if (!result.ok) {
172
+ return [result, { status: "complete", request: req, response }];
173
+ }
174
+ return [result, { status: "complete", request: req, response }];
175
+ }
176
+ //# sourceMappingURL=proxyPut.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxyPut.js","sourceRoot":"","sources":["../src/funcs/proxyPut.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CH,4BAuBC;AA9DD,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAGxD,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,qDAAoC,CAAA;IACpC,qCAAoB,CAAA;IACpB,yCAAwB,CAAA;IACxB,oEAAmD,CAAA;IACnD,mDAAkC,CAAA;IAClC,mDAAkC,CAAA;IAClC,uCAAsB,CAAA;AACxB,CAAC,EARW,aAAa,6BAAb,aAAa,QAQxB;AAED;;;;;;GAMG;AACH,SAAgB,QAAQ,CACtB,MAAmB,EACnB,OAAwC,EACxC,OAAmE;IAenE,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAmB,EACnB,OAAwC,EACxC,OAAmE;IAkBnE,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,mCAAmC,CAAC,KAAK,CAAC,KAAK,CAAC,EACtE,yBAAyB,C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,CAAC,SAAS,EAAE,UAAU,CAAC,mCAAmC,EAAE;QAChE,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,WAAW;KACjB,CAAC,CACH,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@apideck/unify",
5
- "version": "0.38.0",
5
+ "version": "0.38.1",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/config.d.ts CHANGED
@@ -38,9 +38,9 @@ export type SDKOptions = {
38
38
  export declare function serverURLFromOptions(options: SDKOptions): URL | null;
39
39
  export declare const SDK_METADATA: {
40
40
  readonly language: "typescript";
41
- readonly openapiDocVersion: "10.23.13";
42
- readonly sdkVersion: "0.38.0";
43
- readonly genVersion: "2.808.1";
44
- readonly userAgent: "speakeasy-sdk/typescript 0.38.0 2.808.1 10.23.13 @apideck/unify";
41
+ readonly openapiDocVersion: "10.23.16";
42
+ readonly sdkVersion: "0.38.1";
43
+ readonly genVersion: "2.814.0";
44
+ readonly userAgent: "speakeasy-sdk/typescript 0.38.1 2.814.0 10.23.16 @apideck/unify";
45
45
  };
46
46
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -27,9 +27,9 @@ function serverURLFromOptions(options) {
27
27
  }
28
28
  exports.SDK_METADATA = {
29
29
  language: "typescript",
30
- openapiDocVersion: "10.23.13",
31
- sdkVersion: "0.38.0",
32
- genVersion: "2.808.1",
33
- userAgent: "speakeasy-sdk/typescript 0.38.0 2.808.1 10.23.13 @apideck/unify",
30
+ openapiDocVersion: "10.23.16",
31
+ sdkVersion: "0.38.1",
32
+ genVersion: "2.814.0",
33
+ userAgent: "speakeasy-sdk/typescript 0.38.1 2.814.0 10.23.16 @apideck/unify",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -12,12 +12,22 @@ export type EcommerceCustomersFilter = {
12
12
  * Filter by customer IDs. Specify multiple IDs as a comma-separated string.
13
13
  */
14
14
  customerIds?: string | undefined;
15
+ /**
16
+ * Minimum date the customer was last modified
17
+ */
18
+ updatedSince?: string | undefined;
19
+ /**
20
+ * Minimum date the customer was created
21
+ */
22
+ createdSince?: string | undefined;
15
23
  };
16
24
  /** @internal */
17
25
  export type EcommerceCustomersFilter$Outbound = {
18
26
  email?: string | undefined;
19
27
  phone_number?: string | undefined;
20
28
  customer_ids?: string | undefined;
29
+ updated_since?: string | undefined;
30
+ created_since?: string | undefined;
21
31
  };
22
32
  /** @internal */
23
33
  export declare const EcommerceCustomersFilter$outboundSchema: z.ZodType<EcommerceCustomersFilter$Outbound, z.ZodTypeDef, EcommerceCustomersFilter>;
@@ -1 +1 @@
1
- {"version":3,"file":"ecommercecustomersfilter.d.ts","sourceRoot":"","sources":["../../src/models/components/ecommercecustomersfilter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAUxB,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR"}
1
+ {"version":3,"file":"ecommercecustomersfilter.d.ts","sourceRoot":"","sources":["../../src/models/components/ecommercecustomersfilter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAcxB,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR"}
@@ -45,10 +45,14 @@ exports.EcommerceCustomersFilter$outboundSchema = z.object({
45
45
  email: z.string().optional(),
46
46
  phoneNumber: z.string().optional(),
47
47
  customerIds: z.string().optional(),
48
+ updatedSince: z.string().optional(),
49
+ createdSince: z.string().optional(),
48
50
  }).transform((v) => {
49
51
  return (0, primitives_js_1.remap)(v, {
50
52
  phoneNumber: "phone_number",
51
53
  customerIds: "customer_ids",
54
+ updatedSince: "updated_since",
55
+ createdSince: "created_since",
52
56
  });
53
57
  });
54
58
  function ecommerceCustomersFilterToJSON(ecommerceCustomersFilter) {
@@ -1 +1 @@
1
- {"version":3,"file":"ecommercecustomersfilter.js","sourceRoot":"","sources":["../../src/models/components/ecommercecustomersfilter.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CH,wEAMC;AA/CD,0CAA4B;AAC5B,2DAA0D;AAwB1D,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ecommercecustomersfilter.js","sourceRoot":"","sources":["../../src/models/components/ecommercecustomersfilter.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDH,wEAMC;AA7DD,0CAA4B;AAC5B,2DAA0D;AAkC1D,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,cAAc;QAC3B,YAAY,EAAE,eAAe;QAC7B,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC"}
@@ -6,6 +6,7 @@ export * from "./notfoundresponse.js";
6
6
  export * from "./paymentrequiredresponse.js";
7
7
  export * from "./responsevalidationerror.js";
8
8
  export * from "./sdkvalidationerror.js";
9
+ export * from "./unauthorized.js";
9
10
  export * from "./unauthorizedresponse.js";
10
11
  export * from "./unprocessableresponse.js";
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
@@ -25,6 +25,7 @@ __exportStar(require("./notfoundresponse.js"), exports);
25
25
  __exportStar(require("./paymentrequiredresponse.js"), exports);
26
26
  __exportStar(require("./responsevalidationerror.js"), exports);
27
27
  __exportStar(require("./sdkvalidationerror.js"), exports);
28
+ __exportStar(require("./unauthorized.js"), exports);
28
29
  __exportStar(require("./unauthorizedresponse.js"), exports);
29
30
  __exportStar(require("./unprocessableresponse.js"), exports);
30
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,oDAAkC;AAClC,gDAA8B;AAC9B,0DAAwC;AACxC,wDAAsC;AACtC,wDAAsC;AACtC,+DAA6C;AAC7C,+DAA6C;AAC7C,0DAAwC;AACxC,4DAA0C;AAC1C,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,oDAAkC;AAClC,gDAA8B;AAC9B,0DAAwC;AACxC,wDAAsC;AACtC,wDAAsC;AACtC,+DAA6C;AAC7C,+DAA6C;AAC7C,0DAAwC;AACxC,oDAAkC;AAClC,4DAA0C;AAC1C,6DAA2C"}
@@ -0,0 +1,142 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { ApideckError } from "./apideckerror.js";
4
+ import { SDKValidationError } from "./sdkvalidationerror.js";
5
+ /**
6
+ * HTTP request details
7
+ */
8
+ export type DetailRequest = {};
9
+ /**
10
+ * HTTP response details
11
+ */
12
+ export type DetailResponse = {};
13
+ /**
14
+ * Debug information including request/response details and OAuth timing metadata
15
+ */
16
+ export type DetailDebug = {
17
+ /**
18
+ * HTTP request details
19
+ */
20
+ request?: DetailRequest | undefined;
21
+ /**
22
+ * HTTP response details
23
+ */
24
+ response?: DetailResponse | undefined;
25
+ /**
26
+ * Error message from downstream provider or network layer
27
+ */
28
+ message?: string | undefined;
29
+ /**
30
+ * Error code (e.g., ETIMEDOUT, ECONNREFUSED)
31
+ */
32
+ code?: string | undefined;
33
+ /**
34
+ * Unix timestamp (milliseconds) when credentials will be deleted if not refreshed. Only present for non-recoverable errors (401, 400). Credentials are preserved indefinitely for recoverable/network errors.
35
+ */
36
+ credentialsExpireAtMs?: number | undefined;
37
+ /**
38
+ * Unix timestamp (milliseconds) when token refresh retry is allowed after cooldown period expires.
39
+ */
40
+ retryAfterMs?: number | undefined;
41
+ /**
42
+ * Milliseconds remaining in cooldown period before retry is allowed.
43
+ */
44
+ cooldownRemainingMs?: number | undefined;
45
+ };
46
+ export type Detail2 = {
47
+ /**
48
+ * Error type identifier
49
+ */
50
+ type?: string | undefined;
51
+ /**
52
+ * Detailed error message
53
+ */
54
+ message?: string | undefined;
55
+ /**
56
+ * Debug information including request/response details and OAuth timing metadata
57
+ */
58
+ debug?: DetailDebug | undefined;
59
+ };
60
+ /**
61
+ * Contains parameter or domain specific information related to the error and why it occurred.
62
+ */
63
+ export type UnauthorizedDetail = string | Detail2;
64
+ /**
65
+ * Unauthorized
66
+ */
67
+ export type UnauthorizedData = {
68
+ /**
69
+ * HTTP status code
70
+ */
71
+ statusCode?: number | undefined;
72
+ /**
73
+ * Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
74
+ */
75
+ error?: string | undefined;
76
+ /**
77
+ * The type of error returned
78
+ */
79
+ typeName?: string | undefined;
80
+ /**
81
+ * A human-readable message providing more details about the error.
82
+ */
83
+ message?: string | undefined;
84
+ /**
85
+ * Contains parameter or domain specific information related to the error and why it occurred.
86
+ */
87
+ detail?: string | Detail2 | undefined;
88
+ /**
89
+ * Link to documentation of error type
90
+ */
91
+ ref?: string | undefined;
92
+ };
93
+ /**
94
+ * Unauthorized
95
+ */
96
+ export declare class Unauthorized extends ApideckError {
97
+ /**
98
+ * HTTP status code
99
+ */
100
+ statusCode?: number | undefined;
101
+ /**
102
+ * Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
103
+ */
104
+ error?: string | undefined;
105
+ /**
106
+ * The type of error returned
107
+ */
108
+ typeName?: string | undefined;
109
+ /**
110
+ * Contains parameter or domain specific information related to the error and why it occurred.
111
+ */
112
+ detail?: string | Detail2 | undefined;
113
+ /**
114
+ * Link to documentation of error type
115
+ */
116
+ ref?: string | undefined;
117
+ /** The original data that was passed to this error instance. */
118
+ data$: UnauthorizedData;
119
+ constructor(err: UnauthorizedData, httpMeta: {
120
+ response: Response;
121
+ request: Request;
122
+ body: string;
123
+ });
124
+ }
125
+ /** @internal */
126
+ export declare const DetailRequest$inboundSchema: z.ZodType<DetailRequest, z.ZodTypeDef, unknown>;
127
+ export declare function detailRequestFromJSON(jsonString: string): SafeParseResult<DetailRequest, SDKValidationError>;
128
+ /** @internal */
129
+ export declare const DetailResponse$inboundSchema: z.ZodType<DetailResponse, z.ZodTypeDef, unknown>;
130
+ export declare function detailResponseFromJSON(jsonString: string): SafeParseResult<DetailResponse, SDKValidationError>;
131
+ /** @internal */
132
+ export declare const DetailDebug$inboundSchema: z.ZodType<DetailDebug, z.ZodTypeDef, unknown>;
133
+ export declare function detailDebugFromJSON(jsonString: string): SafeParseResult<DetailDebug, SDKValidationError>;
134
+ /** @internal */
135
+ export declare const Detail2$inboundSchema: z.ZodType<Detail2, z.ZodTypeDef, unknown>;
136
+ export declare function detail2FromJSON(jsonString: string): SafeParseResult<Detail2, SDKValidationError>;
137
+ /** @internal */
138
+ export declare const UnauthorizedDetail$inboundSchema: z.ZodType<UnauthorizedDetail, z.ZodTypeDef, unknown>;
139
+ export declare function unauthorizedDetailFromJSON(jsonString: string): SafeParseResult<UnauthorizedDetail, SDKValidationError>;
140
+ /** @internal */
141
+ export declare const Unauthorized$inboundSchema: z.ZodType<Unauthorized, z.ZodTypeDef, unknown>;
142
+ //# sourceMappingURL=unauthorized.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unauthorized.d.ts","sourceRoot":"","sources":["../../src/models/errors/unauthorized.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,EAAE,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,EAAE,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC;;O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AO,EAAE,kBAAkB,CAAC,CAM9C;AAED,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAC4D,CAAC;AAEtE,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD;AAED,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAyBL,CAAC"}
@@ -0,0 +1,139 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Unauthorized$inboundSchema = exports.UnauthorizedDetail$inboundSchema = exports.Detail2$inboundSchema = exports.DetailDebug$inboundSchema = exports.DetailResponse$inboundSchema = exports.DetailRequest$inboundSchema = exports.Unauthorized = void 0;
40
+ exports.detailRequestFromJSON = detailRequestFromJSON;
41
+ exports.detailResponseFromJSON = detailResponseFromJSON;
42
+ exports.detailDebugFromJSON = detailDebugFromJSON;
43
+ exports.detail2FromJSON = detail2FromJSON;
44
+ exports.unauthorizedDetailFromJSON = unauthorizedDetailFromJSON;
45
+ const z = __importStar(require("zod/v3"));
46
+ const primitives_js_1 = require("../../lib/primitives.js");
47
+ const schemas_js_1 = require("../../lib/schemas.js");
48
+ const types = __importStar(require("../../types/primitives.js"));
49
+ const smartUnion_js_1 = require("../../types/smartUnion.js");
50
+ const apideckerror_js_1 = require("./apideckerror.js");
51
+ /**
52
+ * Unauthorized
53
+ */
54
+ class Unauthorized extends apideckerror_js_1.ApideckError {
55
+ constructor(err, httpMeta) {
56
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
57
+ super(message, httpMeta);
58
+ this.data$ = err;
59
+ if (err.statusCode != null)
60
+ this.statusCode = err.statusCode;
61
+ if (err.error != null)
62
+ this.error = err.error;
63
+ if (err.typeName != null)
64
+ this.typeName = err.typeName;
65
+ if (err.detail != null)
66
+ this.detail = err.detail;
67
+ if (err.ref != null)
68
+ this.ref = err.ref;
69
+ this.name = "Unauthorized";
70
+ }
71
+ }
72
+ exports.Unauthorized = Unauthorized;
73
+ /** @internal */
74
+ exports.DetailRequest$inboundSchema = z.object({});
75
+ function detailRequestFromJSON(jsonString) {
76
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DetailRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DetailRequest' from JSON`);
77
+ }
78
+ /** @internal */
79
+ exports.DetailResponse$inboundSchema = z.object({});
80
+ function detailResponseFromJSON(jsonString) {
81
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DetailResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DetailResponse' from JSON`);
82
+ }
83
+ /** @internal */
84
+ exports.DetailDebug$inboundSchema = z.object({
85
+ request: types.optional(z.lazy(() => exports.DetailRequest$inboundSchema)),
86
+ response: types.optional(z.lazy(() => exports.DetailResponse$inboundSchema)),
87
+ message: types.optional(types.string()),
88
+ code: types.optional(types.string()),
89
+ credentials_expire_at_ms: types.optional(types.number()),
90
+ retry_after_ms: types.optional(types.number()),
91
+ cooldown_remaining_ms: types.optional(types.number()),
92
+ }).transform((v) => {
93
+ return (0, primitives_js_1.remap)(v, {
94
+ "credentials_expire_at_ms": "credentialsExpireAtMs",
95
+ "retry_after_ms": "retryAfterMs",
96
+ "cooldown_remaining_ms": "cooldownRemainingMs",
97
+ });
98
+ });
99
+ function detailDebugFromJSON(jsonString) {
100
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DetailDebug$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DetailDebug' from JSON`);
101
+ }
102
+ /** @internal */
103
+ exports.Detail2$inboundSchema = z.object({
104
+ type: types.optional(types.string()),
105
+ message: types.optional(types.string()),
106
+ debug: types.optional(z.lazy(() => exports.DetailDebug$inboundSchema)),
107
+ });
108
+ function detail2FromJSON(jsonString) {
109
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Detail2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Detail2' from JSON`);
110
+ }
111
+ /** @internal */
112
+ exports.UnauthorizedDetail$inboundSchema = (0, smartUnion_js_1.smartUnion)([types.string(), z.lazy(() => exports.Detail2$inboundSchema)]);
113
+ function unauthorizedDetailFromJSON(jsonString) {
114
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UnauthorizedDetail$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnauthorizedDetail' from JSON`);
115
+ }
116
+ /** @internal */
117
+ exports.Unauthorized$inboundSchema = z.object({
118
+ status_code: types.optional(types.number()),
119
+ error: types.optional(types.string()),
120
+ type_name: types.optional(types.string()),
121
+ message: types.optional(types.string()),
122
+ detail: types.optional((0, smartUnion_js_1.smartUnion)([types.string(), z.lazy(() => exports.Detail2$inboundSchema)])),
123
+ ref: types.optional(types.string()),
124
+ request$: z.instanceof(Request),
125
+ response$: z.instanceof(Response),
126
+ body$: z.string(),
127
+ })
128
+ .transform((v) => {
129
+ const remapped = (0, primitives_js_1.remap)(v, {
130
+ "status_code": "statusCode",
131
+ "type_name": "typeName",
132
+ });
133
+ return new Unauthorized(remapped, {
134
+ request: v.request$,
135
+ response: v.response$,
136
+ body: v.body$,
137
+ });
138
+ });
139
+ //# sourceMappingURL=unauthorized.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unauthorized.js","sourceRoot":"","sources":["../../src/models/errors/unauthorized.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6JH,sDAQC;AASD,wDAQC;AAuBD,kDAQC;AAUD,0CAQC;AASD,gEAQC;AAtPD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,iEAAmD;AACnD,6DAAuD;AACvD,uDAAiD;AAiGjD;;GAEG;AACH,MAAa,YAAa,SAAQ,8BAAY;IAyB5C,YACE,GAAqB,EACrB,QAAgE;QAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,GAAG,CAAC,UAAU,IAAI,IAAI;YAAE,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;QAC7D,IAAI,GAAG,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