@polar-sh/sdk 0.17.3 → 0.17.4

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.
@@ -283,6 +283,8 @@ run();
283
283
 
284
284
  | Error Type | Status Code | Content Type |
285
285
  | -------------------------- | -------------------------- | -------------------------- |
286
+ | errors.NotPermitted | 403 | application/json |
287
+ | errors.ResourceNotFound | 404 | application/json |
286
288
  | errors.HTTPValidationError | 422 | application/json |
287
289
  | errors.SDKError | 4XX, 5XX | \*/\* |
288
290
 
@@ -362,6 +364,8 @@ run();
362
364
 
363
365
  | Error Type | Status Code | Content Type |
364
366
  | -------------------------- | -------------------------- | -------------------------- |
367
+ | errors.NotPermitted | 403 | application/json |
368
+ | errors.ResourceNotFound | 404 | application/json |
365
369
  | errors.HTTPValidationError | 422 | application/json |
366
370
  | errors.SDKError | 4XX, 5XX | \*/\* |
367
371
 
@@ -438,6 +442,6 @@ run();
438
442
  | Error Type | Status Code | Content Type |
439
443
  | -------------------------- | -------------------------- | -------------------------- |
440
444
  | errors.NotPermitted | 403 | application/json |
441
- | errors.FileNotFound | 404 | application/json |
445
+ | errors.ResourceNotFound | 404 | application/json |
442
446
  | errors.HTTPValidationError | 422 | application/json |
443
447
  | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -90,7 +90,7 @@ async function filesCreate(client, request, options) {
90
90
  const responseFields = {
91
91
  HttpMeta: { Response: response, Request: req },
92
92
  };
93
- const [result] = await M.match(M.json(200, components.FileUpload$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
93
+ const [result] = await M.match(M.json(201, components.FileUpload$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
94
94
  if (!result.ok) {
95
95
  return result;
96
96
  }
@@ -12,5 +12,5 @@ import { Result } from "../types/fp.js";
12
12
  * @remarks
13
13
  * Delete a file.
14
14
  */
15
- export declare function filesDelete(client: PolarCore, request: operations.FilesDeleteRequest, options?: RequestOptions): Promise<Result<void, errors.NotPermitted | errors.FileNotFound | errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
15
+ export declare function filesDelete(client: PolarCore, request: operations.FilesDeleteRequest, options?: RequestOptions): Promise<Result<void, errors.NotPermitted | errors.ResourceNotFound | errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
16
  //# sourceMappingURL=filesDelete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filesDelete.d.ts","sourceRoot":"","sources":["../src/funcs/filesDelete.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,IAAI,EACF,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA8FA"}
1
+ {"version":3,"file":"filesDelete.d.ts","sourceRoot":"","sources":["../src/funcs/filesDelete.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,IAAI,EACF,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,gBAAgB,GACvB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA8FA"}
@@ -96,7 +96,7 @@ async function filesDelete(client, request, options) {
96
96
  const responseFields = {
97
97
  HttpMeta: { Response: response, Request: req },
98
98
  };
99
- const [result] = await M.match(M.nil(204, z.void()), M.jsonErr(403, errors.NotPermitted$inboundSchema), M.jsonErr(404, errors.FileNotFound$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
99
+ const [result] = await M.match(M.nil(204, z.void()), M.jsonErr(403, errors.NotPermitted$inboundSchema), M.jsonErr(404, errors.ResourceNotFound$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
100
100
  if (!result.ok) {
101
101
  return result;
102
102
  }
@@ -1 +1 @@
1
- {"version":3,"file":"filesDelete.js","sourceRoot":"","sources":["../src/funcs/filesDelete.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,kCAgHC;AA3ID,uCAAyB;AAEzB,sDAAmD;AACnD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAGpD,0EAA4D;AAG5D;;;;;GAKG;AACI,KAAK,UAAU,WAAW,CAC/B,MAAiB,EACjB,OAAsC,EACtC,OAAwB;IAgBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,iCAAiC,CAAC,KAAK,CAAC,KAAK,CAAC,EACpE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,EAAE,EAAE,IAAA,2BAAY,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE;YACjC,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;KACH,CAAC;IAEF,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,gBAAgB,CAAC,CAAC,UAAU,CAAC,CAAC;IAEtD,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC;QAC1B,MAAM,EAAE,kBAAkB;KAC3B,CAAC,CAAC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,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAa5B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,EACpB,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,0BAA0B,CAAC,EACjD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,8BAA8B,CAAC,EACrD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -12,5 +12,5 @@ import { Result } from "../types/fp.js";
12
12
  * @remarks
13
13
  * Update a file.
14
14
  */
15
- export declare function filesUpdate(client: PolarCore, request: operations.FilesUpdateRequest, options?: RequestOptions): Promise<Result<operations.FilesUpdateResponseFilesUpdate, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
15
+ export declare function filesUpdate(client: PolarCore, request: operations.FilesUpdateRequest, options?: RequestOptions): Promise<Result<operations.FilesUpdateResponseFilesUpdate, errors.NotPermitted | errors.ResourceNotFound | errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
16
  //# sourceMappingURL=filesUpdate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filesUpdate.d.ts","sourceRoot":"","sources":["../src/funcs/filesUpdate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AAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,8BAA8B,EACvC,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,gBAAgB,GACvB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA+FA"}
@@ -85,7 +85,7 @@ async function filesUpdate(client, request, options) {
85
85
  const req = requestRes.value;
86
86
  const doResult = await client._do(req, {
87
87
  context,
88
- errorCodes: ["422", "4XX", "5XX"],
88
+ errorCodes: ["403", "404", "422", "4XX", "5XX"],
89
89
  retryConfig: context.retryConfig,
90
90
  retryCodes: context.retryCodes,
91
91
  });
@@ -96,7 +96,7 @@ async function filesUpdate(client, request, options) {
96
96
  const responseFields = {
97
97
  HttpMeta: { Response: response, Request: req },
98
98
  };
99
- const [result] = await M.match(M.json(200, operations.FilesUpdateResponseFilesUpdate$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
99
+ const [result] = await M.match(M.json(200, operations.FilesUpdateResponseFilesUpdate$inboundSchema), M.jsonErr(403, errors.NotPermitted$inboundSchema), M.jsonErr(404, errors.ResourceNotFound$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
100
100
  if (!result.ok) {
101
101
  return result;
102
102
  }
@@ -1 +1 @@
1
- {"version":3,"file":"filesUpdate.js","sourceRoot":"","sources":["../src/funcs/filesUpdate.ts"],"names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EACjD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,8BAA8B,CAAC,EACrD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -12,5 +12,5 @@ import { Result } from "../types/fp.js";
12
12
  * @remarks
13
13
  * Complete a file upload.
14
14
  */
15
- export declare function filesUploaded(client: PolarCore, request: operations.FilesUploadedRequest, options?: RequestOptions): Promise<Result<operations.FilesUploadedResponseFilesUploaded, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
15
+ export declare function filesUploaded(client: PolarCore, request: operations.FilesUploadedRequest, options?: RequestOptions): Promise<Result<operations.FilesUploadedResponseFilesUploaded, errors.NotPermitted | errors.ResourceNotFound | errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
16
  //# sourceMappingURL=filesUploaded.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filesUploaded.d.ts","sourceRoot":"","sources":["../src/funcs/filesUploaded.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2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U,CAAC,kCAAkC,EAC3C,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,gBAAgB,GACvB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAiGA"}
@@ -87,7 +87,7 @@ async function filesUploaded(client, request, options) {
87
87
  const req = requestRes.value;
88
88
  const doResult = await client._do(req, {
89
89
  context,
90
- errorCodes: ["422", "4XX", "5XX"],
90
+ errorCodes: ["403", "404", "422", "4XX", "5XX"],
91
91
  retryConfig: context.retryConfig,
92
92
  retryCodes: context.retryCodes,
93
93
  });
@@ -98,7 +98,7 @@ async function filesUploaded(client, request, options) {
98
98
  const responseFields = {
99
99
  HttpMeta: { Response: response, Request: req },
100
100
  };
101
- const [result] = await M.match(M.json(200, operations.FilesUploadedResponseFilesUploaded$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
101
+ const [result] = await M.match(M.json(200, operations.FilesUploadedResponseFilesUploaded$inboundSchema), M.jsonErr(403, errors.NotPermitted$inboundSchema), M.jsonErr(404, errors.ResourceNotFound$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
102
102
  if (!result.ok) {
103
103
  return result;
104
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"filesUploaded.js","sourceRoot":"","sources":["../src/funcs/filesUploaded.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,sCA6GC;AAtID,sDAA+D;AAC/D,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAGpD,0EAA4D;AAG5D;;;;;GAKG;AACI,KAAK,UAAU,aAAa,CACjC,MAAiB,EACjB,OAAwC,EACxC,OAAwB;IAcxB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,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/lib/config.d.ts CHANGED
@@ -38,8 +38,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
38
38
  export declare const SDK_METADATA: {
39
39
  readonly language: "typescript";
40
40
  readonly openapiDocVersion: "0.1.0";
41
- readonly sdkVersion: "0.17.3";
41
+ readonly sdkVersion: "0.17.4";
42
42
  readonly genVersion: "2.467.4";
43
- readonly userAgent: "speakeasy-sdk/typescript 0.17.3 2.467.4 0.1.0 @polar-sh/sdk";
43
+ readonly userAgent: "speakeasy-sdk/typescript 0.17.4 2.467.4 0.1.0 @polar-sh/sdk";
44
44
  };
45
45
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
35
35
  exports.SDK_METADATA = {
36
36
  language: "typescript",
37
37
  openapiDocVersion: "0.1.0",
38
- sdkVersion: "0.17.3",
38
+ sdkVersion: "0.17.4",
39
39
  genVersion: "2.467.4",
40
- userAgent: "speakeasy-sdk/typescript 0.17.3 2.467.4 0.1.0 @polar-sh/sdk",
40
+ userAgent: "speakeasy-sdk/typescript 0.17.4 2.467.4 0.1.0 @polar-sh/sdk",
41
41
  };
42
42
  //# sourceMappingURL=config.js.map
@@ -1,5 +1,4 @@
1
1
  export * from "./alreadycanceledsubscription.js";
2
- export * from "./filenotfound.js";
3
2
  export * from "./httpclienterrors.js";
4
3
  export * from "./httpvalidationerror.js";
5
4
  export * from "./notpermitted.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
@@ -18,7 +18,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
20
  __exportStar(require("./alreadycanceledsubscription.js"), exports);
21
- __exportStar(require("./filenotfound.js"), exports);
22
21
  __exportStar(require("./httpclienterrors.js"), exports);
23
22
  __exportStar(require("./httpvalidationerror.js"), exports);
24
23
  __exportStar(require("./notpermitted.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,mEAAiD;AACjD,oDAAkC;AAClC,wDAAsC;AACtC,2DAAyC;AACzC,oDAAkC;AAClC,wDAAsC;AACtC,gDAA8B;AAC9B,0DAAwC;AACxC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,mEAAiD;AACjD,wDAAsC;AACtC,2DAAyC;AACzC,oDAAkC;AAClC,wDAAsC;AACtC,gDAA8B;AAC9B,0DAAwC;AACxC,oDAAkC"}
@@ -10,7 +10,7 @@ export type FilesUpdateRequest = {
10
10
  filePatch: components.FilePatch;
11
11
  };
12
12
  /**
13
- * Successful Response
13
+ * File updated.
14
14
  */
15
15
  export type FilesUpdateResponseFilesUpdate = (components.DownloadableFileRead & {
16
16
  service: "downloadable";
@@ -10,7 +10,7 @@ export type FilesUploadedRequest = {
10
10
  fileUploadCompleted: components.FileUploadCompleted;
11
11
  };
12
12
  /**
13
- * Successful Response
13
+ * File upload completed.
14
14
  */
15
15
  export type FilesUploadedResponseFilesUploaded = (components.DownloadableFileRead & {
16
16
  service: "downloadable";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polar-sh/sdk",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -119,7 +119,7 @@ export async function filesCreate(
119
119
  | RequestTimeoutError
120
120
  | ConnectionError
121
121
  >(
122
- M.json(200, components.FileUpload$inboundSchema),
122
+ M.json(201, components.FileUpload$inboundSchema),
123
123
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
124
124
  M.fail(["4XX", "5XX"]),
125
125
  )(response, { extraFields: responseFields });
@@ -37,7 +37,7 @@ export async function filesDelete(
37
37
  Result<
38
38
  void,
39
39
  | errors.NotPermitted
40
- | errors.FileNotFound
40
+ | errors.ResourceNotFound
41
41
  | errors.HTTPValidationError
42
42
  | SDKError
43
43
  | SDKValidationError
@@ -120,7 +120,7 @@ export async function filesDelete(
120
120
  const [result] = await M.match<
121
121
  void,
122
122
  | errors.NotPermitted
123
- | errors.FileNotFound
123
+ | errors.ResourceNotFound
124
124
  | errors.HTTPValidationError
125
125
  | SDKError
126
126
  | SDKValidationError
@@ -132,7 +132,7 @@ export async function filesDelete(
132
132
  >(
133
133
  M.nil(204, z.void()),
134
134
  M.jsonErr(403, errors.NotPermitted$inboundSchema),
135
- M.jsonErr(404, errors.FileNotFound$inboundSchema),
135
+ M.jsonErr(404, errors.ResourceNotFound$inboundSchema),
136
136
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
137
137
  M.fail(["4XX", "5XX"]),
138
138
  )(response, { extraFields: responseFields });
@@ -35,6 +35,8 @@ export async function filesUpdate(
35
35
  ): Promise<
36
36
  Result<
37
37
  operations.FilesUpdateResponseFilesUpdate,
38
+ | errors.NotPermitted
39
+ | errors.ResourceNotFound
38
40
  | errors.HTTPValidationError
39
41
  | SDKError
40
42
  | SDKValidationError
@@ -102,7 +104,7 @@ export async function filesUpdate(
102
104
 
103
105
  const doResult = await client._do(req, {
104
106
  context,
105
- errorCodes: ["422", "4XX", "5XX"],
107
+ errorCodes: ["403", "404", "422", "4XX", "5XX"],
106
108
  retryConfig: context.retryConfig,
107
109
  retryCodes: context.retryCodes,
108
110
  });
@@ -117,6 +119,8 @@ export async function filesUpdate(
117
119
 
118
120
  const [result] = await M.match<
119
121
  operations.FilesUpdateResponseFilesUpdate,
122
+ | errors.NotPermitted
123
+ | errors.ResourceNotFound
120
124
  | errors.HTTPValidationError
121
125
  | SDKError
122
126
  | SDKValidationError
@@ -127,6 +131,8 @@ export async function filesUpdate(
127
131
  | ConnectionError
128
132
  >(
129
133
  M.json(200, operations.FilesUpdateResponseFilesUpdate$inboundSchema),
134
+ M.jsonErr(403, errors.NotPermitted$inboundSchema),
135
+ M.jsonErr(404, errors.ResourceNotFound$inboundSchema),
130
136
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
131
137
  M.fail(["4XX", "5XX"]),
132
138
  )(response, { extraFields: responseFields });
@@ -35,6 +35,8 @@ export async function filesUploaded(
35
35
  ): Promise<
36
36
  Result<
37
37
  operations.FilesUploadedResponseFilesUploaded,
38
+ | errors.NotPermitted
39
+ | errors.ResourceNotFound
38
40
  | errors.HTTPValidationError
39
41
  | SDKError
40
42
  | SDKValidationError
@@ -104,7 +106,7 @@ export async function filesUploaded(
104
106
 
105
107
  const doResult = await client._do(req, {
106
108
  context,
107
- errorCodes: ["422", "4XX", "5XX"],
109
+ errorCodes: ["403", "404", "422", "4XX", "5XX"],
108
110
  retryConfig: context.retryConfig,
109
111
  retryCodes: context.retryCodes,
110
112
  });
@@ -119,6 +121,8 @@ export async function filesUploaded(
119
121
 
120
122
  const [result] = await M.match<
121
123
  operations.FilesUploadedResponseFilesUploaded,
124
+ | errors.NotPermitted
125
+ | errors.ResourceNotFound
122
126
  | errors.HTTPValidationError
123
127
  | SDKError
124
128
  | SDKValidationError
@@ -129,6 +133,8 @@ export async function filesUploaded(
129
133
  | ConnectionError
130
134
  >(
131
135
  M.json(200, operations.FilesUploadedResponseFilesUploaded$inboundSchema),
136
+ M.jsonErr(403, errors.NotPermitted$inboundSchema),
137
+ M.jsonErr(404, errors.ResourceNotFound$inboundSchema),
132
138
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
133
139
  M.fail(["4XX", "5XX"]),
134
140
  )(response, { extraFields: responseFields });
package/src/lib/config.ts CHANGED
@@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
60
60
  export const SDK_METADATA = {
61
61
  language: "typescript",
62
62
  openapiDocVersion: "0.1.0",
63
- sdkVersion: "0.17.3",
63
+ sdkVersion: "0.17.4",
64
64
  genVersion: "2.467.4",
65
- userAgent: "speakeasy-sdk/typescript 0.17.3 2.467.4 0.1.0 @polar-sh/sdk",
65
+ userAgent: "speakeasy-sdk/typescript 0.17.4 2.467.4 0.1.0 @polar-sh/sdk",
66
66
  } as const;
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  export * from "./alreadycanceledsubscription.js";
6
- export * from "./filenotfound.js";
7
6
  export * from "./httpclienterrors.js";
8
7
  export * from "./httpvalidationerror.js";
9
8
  export * from "./notpermitted.js";
@@ -18,7 +18,7 @@ export type FilesUpdateRequest = {
18
18
  };
19
19
 
20
20
  /**
21
- * Successful Response
21
+ * File updated.
22
22
  */
23
23
  export type FilesUpdateResponseFilesUpdate =
24
24
  | (components.DownloadableFileRead & { service: "downloadable" })
@@ -18,7 +18,7 @@ export type FilesUploadedRequest = {
18
18
  };
19
19
 
20
20
  /**
21
- * Successful Response
21
+ * File upload completed.
22
22
  */
23
23
  export type FilesUploadedResponseFilesUploaded =
24
24
  | (components.DownloadableFileRead & { service: "downloadable" })
@@ -1,57 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- export declare const FileNotFoundError: {
4
- readonly FileNotFound: "FileNotFound";
5
- };
6
- export type FileNotFoundError = ClosedEnum<typeof FileNotFoundError>;
7
- export type FileNotFoundData = {
8
- error: "FileNotFound";
9
- detail: string;
10
- };
11
- export declare class FileNotFound extends Error {
12
- error: "FileNotFound";
13
- detail: string;
14
- /** The original data that was passed to this error instance. */
15
- data$: FileNotFoundData;
16
- constructor(err: FileNotFoundData);
17
- }
18
- /** @internal */
19
- export declare const FileNotFoundError$inboundSchema: z.ZodNativeEnum<typeof FileNotFoundError>;
20
- /** @internal */
21
- export declare const FileNotFoundError$outboundSchema: z.ZodNativeEnum<typeof FileNotFoundError>;
22
- /**
23
- * @internal
24
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
- */
26
- export declare namespace FileNotFoundError$ {
27
- /** @deprecated use `FileNotFoundError$inboundSchema` instead. */
28
- const inboundSchema: z.ZodNativeEnum<{
29
- readonly FileNotFound: "FileNotFound";
30
- }>;
31
- /** @deprecated use `FileNotFoundError$outboundSchema` instead. */
32
- const outboundSchema: z.ZodNativeEnum<{
33
- readonly FileNotFound: "FileNotFound";
34
- }>;
35
- }
36
- /** @internal */
37
- export declare const FileNotFound$inboundSchema: z.ZodType<FileNotFound, z.ZodTypeDef, unknown>;
38
- /** @internal */
39
- export type FileNotFound$Outbound = {
40
- error: "FileNotFound";
41
- detail: string;
42
- };
43
- /** @internal */
44
- export declare const FileNotFound$outboundSchema: z.ZodType<FileNotFound$Outbound, z.ZodTypeDef, FileNotFound>;
45
- /**
46
- * @internal
47
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
- */
49
- export declare namespace FileNotFound$ {
50
- /** @deprecated use `FileNotFound$inboundSchema` instead. */
51
- const inboundSchema: z.ZodType<FileNotFound, z.ZodTypeDef, unknown>;
52
- /** @deprecated use `FileNotFound$outboundSchema` instead. */
53
- const outboundSchema: z.ZodType<FileNotFound$Outbound, z.ZodTypeDef, FileNotFound>;
54
- /** @deprecated use `FileNotFound$Outbound` instead. */
55
- type Outbound = FileNotFound$Outbound;
56
- }
57
- //# sourceMappingURL=filenotfound.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filenotfound.d.ts","sourceRoot":"","sources":["../../src/models/errors/filenotfound.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,iBAAiB;;CAEpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,YAAa,SAAQ,KAAK;IACrC,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IAEf,gEAAgE;IAChE,KAAK,EAAE,gBAAgB,CAAC;gBAEZ,GAAG,EAAE,gBAAgB;CAYlC;AAED,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,iBAAiB,CACS,CAAC;AAEpC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,iBAAiB,CACS,CAAC;AAEpC;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa;;MAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc;;MAAmC,CAAC;CAChE;AAED,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAOL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CAMT,CAAC;AAEN;;;GAGG;AACH,yBAAiB,aAAa,CAAC;IAC7B,4DAA4D;IACrD,MAAM,aAAa,gDAA6B,CAAC;IACxD,6DAA6D;IACtD,MAAM,cAAc,8DAA8B,CAAC;IAC1D,uDAAuD;IACvD,KAAY,QAAQ,GAAG,qBAAqB,CAAC;CAC9C"}
@@ -1,88 +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.FileNotFound$ = exports.FileNotFound$outboundSchema = exports.FileNotFound$inboundSchema = exports.FileNotFoundError$ = exports.FileNotFoundError$outboundSchema = exports.FileNotFoundError$inboundSchema = exports.FileNotFound = exports.FileNotFoundError = void 0;
30
- const z = __importStar(require("zod"));
31
- exports.FileNotFoundError = {
32
- FileNotFound: "FileNotFound",
33
- };
34
- class FileNotFound extends Error {
35
- constructor(err) {
36
- const message = "message" in err && typeof err.message === "string"
37
- ? err.message
38
- : `API error occurred: ${JSON.stringify(err)}`;
39
- super(message);
40
- this.data$ = err;
41
- this.error = err.error;
42
- this.detail = err.detail;
43
- this.name = "FileNotFound";
44
- }
45
- }
46
- exports.FileNotFound = FileNotFound;
47
- /** @internal */
48
- exports.FileNotFoundError$inboundSchema = z.nativeEnum(exports.FileNotFoundError);
49
- /** @internal */
50
- exports.FileNotFoundError$outboundSchema = exports.FileNotFoundError$inboundSchema;
51
- /**
52
- * @internal
53
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
- */
55
- var FileNotFoundError$;
56
- (function (FileNotFoundError$) {
57
- /** @deprecated use `FileNotFoundError$inboundSchema` instead. */
58
- FileNotFoundError$.inboundSchema = exports.FileNotFoundError$inboundSchema;
59
- /** @deprecated use `FileNotFoundError$outboundSchema` instead. */
60
- FileNotFoundError$.outboundSchema = exports.FileNotFoundError$outboundSchema;
61
- })(FileNotFoundError$ || (exports.FileNotFoundError$ = FileNotFoundError$ = {}));
62
- /** @internal */
63
- exports.FileNotFound$inboundSchema = z.object({
64
- error: z.literal("FileNotFound"),
65
- detail: z.string(),
66
- })
67
- .transform((v) => {
68
- return new FileNotFound(v);
69
- });
70
- /** @internal */
71
- exports.FileNotFound$outboundSchema = z.instanceof(FileNotFound)
72
- .transform(v => v.data$)
73
- .pipe(z.object({
74
- error: z.literal("FileNotFound").default("FileNotFound"),
75
- detail: z.string(),
76
- }));
77
- /**
78
- * @internal
79
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
- */
81
- var FileNotFound$;
82
- (function (FileNotFound$) {
83
- /** @deprecated use `FileNotFound$inboundSchema` instead. */
84
- FileNotFound$.inboundSchema = exports.FileNotFound$inboundSchema;
85
- /** @deprecated use `FileNotFound$outboundSchema` instead. */
86
- FileNotFound$.outboundSchema = exports.FileNotFound$outboundSchema;
87
- })(FileNotFound$ || (exports.FileNotFound$ = FileNotFound$ = {}));
88
- //# sourceMappingURL=filenotfound.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filenotfound.js","sourceRoot":"","sources":["../../src/models/errors/filenotfound.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,iBAAiB,GAAG;IAC/B,YAAY,EAAE,cAAc;CACpB,CAAC;AAQX,MAAa,YAAa,SAAQ,KAAK;IAOrC,YAAY,GAAqB;QAC/B,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAEzB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF;AAnBD,oCAmBC;AAED,gBAAgB;AACH,QAAA,+BAA+B,GAExC,CAAC,CAAC,UAAU,CAAC,yBAAiB,CAAC,CAAC;AAEpC,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,uCAA+B,CAAC;AAEpC;;;GAGG;AACH,IAAiB,kBAAkB,CAKlC;AALD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AACjE,CAAC,EALgB,kBAAkB,kCAAlB,kBAAkB,QAKlC;AAED,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC;KAC3B,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;KACvB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,aAAa,CAO7B;AAPD,WAAiB,aAAa;IAC5B,4DAA4D;IAC/C,2BAAa,GAAG,kCAA0B,CAAC;IACxD,6DAA6D;IAChD,4BAAc,GAAG,mCAA2B,CAAC;AAG5D,CAAC,EAPgB,aAAa,6BAAb,aAAa,QAO7B"}
@@ -1,102 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- export const FileNotFoundError = {
9
- FileNotFound: "FileNotFound",
10
- } as const;
11
- export type FileNotFoundError = ClosedEnum<typeof FileNotFoundError>;
12
-
13
- export type FileNotFoundData = {
14
- error: "FileNotFound";
15
- detail: string;
16
- };
17
-
18
- export class FileNotFound extends Error {
19
- error: "FileNotFound";
20
- detail: string;
21
-
22
- /** The original data that was passed to this error instance. */
23
- data$: FileNotFoundData;
24
-
25
- constructor(err: FileNotFoundData) {
26
- const message = "message" in err && typeof err.message === "string"
27
- ? err.message
28
- : `API error occurred: ${JSON.stringify(err)}`;
29
- super(message);
30
- this.data$ = err;
31
-
32
- this.error = err.error;
33
- this.detail = err.detail;
34
-
35
- this.name = "FileNotFound";
36
- }
37
- }
38
-
39
- /** @internal */
40
- export const FileNotFoundError$inboundSchema: z.ZodNativeEnum<
41
- typeof FileNotFoundError
42
- > = z.nativeEnum(FileNotFoundError);
43
-
44
- /** @internal */
45
- export const FileNotFoundError$outboundSchema: z.ZodNativeEnum<
46
- typeof FileNotFoundError
47
- > = FileNotFoundError$inboundSchema;
48
-
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 namespace FileNotFoundError$ {
54
- /** @deprecated use `FileNotFoundError$inboundSchema` instead. */
55
- export const inboundSchema = FileNotFoundError$inboundSchema;
56
- /** @deprecated use `FileNotFoundError$outboundSchema` instead. */
57
- export const outboundSchema = FileNotFoundError$outboundSchema;
58
- }
59
-
60
- /** @internal */
61
- export const FileNotFound$inboundSchema: z.ZodType<
62
- FileNotFound,
63
- z.ZodTypeDef,
64
- unknown
65
- > = z.object({
66
- error: z.literal("FileNotFound"),
67
- detail: z.string(),
68
- })
69
- .transform((v) => {
70
- return new FileNotFound(v);
71
- });
72
-
73
- /** @internal */
74
- export type FileNotFound$Outbound = {
75
- error: "FileNotFound";
76
- detail: string;
77
- };
78
-
79
- /** @internal */
80
- export const FileNotFound$outboundSchema: z.ZodType<
81
- FileNotFound$Outbound,
82
- z.ZodTypeDef,
83
- FileNotFound
84
- > = z.instanceof(FileNotFound)
85
- .transform(v => v.data$)
86
- .pipe(z.object({
87
- error: z.literal("FileNotFound").default("FileNotFound"),
88
- detail: z.string(),
89
- }));
90
-
91
- /**
92
- * @internal
93
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
94
- */
95
- export namespace FileNotFound$ {
96
- /** @deprecated use `FileNotFound$inboundSchema` instead. */
97
- export const inboundSchema = FileNotFound$inboundSchema;
98
- /** @deprecated use `FileNotFound$outboundSchema` instead. */
99
- export const outboundSchema = FileNotFound$outboundSchema;
100
- /** @deprecated use `FileNotFound$Outbound` instead. */
101
- export type Outbound = FileNotFound$Outbound;
102
- }