@polar-sh/sdk 0.17.2 → 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.
Files changed (56) hide show
  1. package/docs/sdks/files/README.md +5 -1
  2. package/funcs/filesCreate.js +1 -1
  3. package/funcs/filesDelete.d.ts +1 -1
  4. package/funcs/filesDelete.d.ts.map +1 -1
  5. package/funcs/filesDelete.js +1 -1
  6. package/funcs/filesDelete.js.map +1 -1
  7. package/funcs/filesUpdate.d.ts +1 -1
  8. package/funcs/filesUpdate.d.ts.map +1 -1
  9. package/funcs/filesUpdate.js +2 -2
  10. package/funcs/filesUpdate.js.map +1 -1
  11. package/funcs/filesUploaded.d.ts +1 -1
  12. package/funcs/filesUploaded.d.ts.map +1 -1
  13. package/funcs/filesUploaded.js +2 -2
  14. package/funcs/filesUploaded.js.map +1 -1
  15. package/lib/config.d.ts +2 -2
  16. package/lib/config.js +2 -2
  17. package/models/errors/alreadycanceledsubscription.d.ts +10 -10
  18. package/models/errors/alreadycanceledsubscription.d.ts.map +1 -1
  19. package/models/errors/alreadycanceledsubscription.js +14 -14
  20. package/models/errors/alreadycanceledsubscription.js.map +1 -1
  21. package/models/errors/index.d.ts +0 -1
  22. package/models/errors/index.d.ts.map +1 -1
  23. package/models/errors/index.js +0 -1
  24. package/models/errors/index.js.map +1 -1
  25. package/models/errors/notpermitted.d.ts +10 -10
  26. package/models/errors/notpermitted.d.ts.map +1 -1
  27. package/models/errors/notpermitted.js +14 -14
  28. package/models/errors/notpermitted.js.map +1 -1
  29. package/models/errors/resourcenotfound.d.ts +10 -10
  30. package/models/errors/resourcenotfound.d.ts.map +1 -1
  31. package/models/errors/resourcenotfound.js +15 -14
  32. package/models/errors/resourcenotfound.js.map +1 -1
  33. package/models/errors/unauthorized.d.ts +10 -10
  34. package/models/errors/unauthorized.d.ts.map +1 -1
  35. package/models/errors/unauthorized.js +14 -14
  36. package/models/errors/unauthorized.js.map +1 -1
  37. package/models/operations/filesupdate.d.ts +1 -1
  38. package/models/operations/filesuploaded.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/src/funcs/filesCreate.ts +1 -1
  41. package/src/funcs/filesDelete.ts +3 -3
  42. package/src/funcs/filesUpdate.ts +7 -1
  43. package/src/funcs/filesUploaded.ts +7 -1
  44. package/src/lib/config.ts +2 -2
  45. package/src/models/errors/alreadycanceledsubscription.ts +20 -20
  46. package/src/models/errors/index.ts +0 -1
  47. package/src/models/errors/notpermitted.ts +19 -19
  48. package/src/models/errors/resourcenotfound.ts +17 -18
  49. package/src/models/errors/unauthorized.ts +19 -19
  50. package/src/models/operations/filesupdate.ts +1 -1
  51. package/src/models/operations/filesuploaded.ts +1 -1
  52. package/models/errors/filenotfound.d.ts +0 -57
  53. package/models/errors/filenotfound.d.ts.map +0 -1
  54. package/models/errors/filenotfound.js +0 -88
  55. package/models/errors/filenotfound.js.map +0 -1
  56. package/src/models/errors/filenotfound.ts +0 -102
@@ -5,18 +5,18 @@
5
5
  import * as z from "zod";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
- export const UnauthorizedType = {
8
+ export const UnauthorizedError = {
9
9
  Unauthorized: "Unauthorized",
10
10
  } as const;
11
- export type UnauthorizedType = ClosedEnum<typeof UnauthorizedType>;
11
+ export type UnauthorizedError = ClosedEnum<typeof UnauthorizedError>;
12
12
 
13
13
  export type UnauthorizedData = {
14
- type: "Unauthorized";
14
+ error: "Unauthorized";
15
15
  detail: string;
16
16
  };
17
17
 
18
18
  export class Unauthorized extends Error {
19
- type: "Unauthorized";
19
+ error: "Unauthorized";
20
20
  detail: string;
21
21
 
22
22
  /** The original data that was passed to this error instance. */
@@ -29,7 +29,7 @@ export class Unauthorized extends Error {
29
29
  super(message);
30
30
  this.data$ = err;
31
31
 
32
- this.type = err.type;
32
+ this.error = err.error;
33
33
  this.detail = err.detail;
34
34
 
35
35
  this.name = "Unauthorized";
@@ -37,24 +37,24 @@ export class Unauthorized extends Error {
37
37
  }
38
38
 
39
39
  /** @internal */
40
- export const UnauthorizedType$inboundSchema: z.ZodNativeEnum<
41
- typeof UnauthorizedType
42
- > = z.nativeEnum(UnauthorizedType);
40
+ export const UnauthorizedError$inboundSchema: z.ZodNativeEnum<
41
+ typeof UnauthorizedError
42
+ > = z.nativeEnum(UnauthorizedError);
43
43
 
44
44
  /** @internal */
45
- export const UnauthorizedType$outboundSchema: z.ZodNativeEnum<
46
- typeof UnauthorizedType
47
- > = UnauthorizedType$inboundSchema;
45
+ export const UnauthorizedError$outboundSchema: z.ZodNativeEnum<
46
+ typeof UnauthorizedError
47
+ > = UnauthorizedError$inboundSchema;
48
48
 
49
49
  /**
50
50
  * @internal
51
51
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
52
  */
53
- export namespace UnauthorizedType$ {
54
- /** @deprecated use `UnauthorizedType$inboundSchema` instead. */
55
- export const inboundSchema = UnauthorizedType$inboundSchema;
56
- /** @deprecated use `UnauthorizedType$outboundSchema` instead. */
57
- export const outboundSchema = UnauthorizedType$outboundSchema;
53
+ export namespace UnauthorizedError$ {
54
+ /** @deprecated use `UnauthorizedError$inboundSchema` instead. */
55
+ export const inboundSchema = UnauthorizedError$inboundSchema;
56
+ /** @deprecated use `UnauthorizedError$outboundSchema` instead. */
57
+ export const outboundSchema = UnauthorizedError$outboundSchema;
58
58
  }
59
59
 
60
60
  /** @internal */
@@ -63,7 +63,7 @@ export const Unauthorized$inboundSchema: z.ZodType<
63
63
  z.ZodTypeDef,
64
64
  unknown
65
65
  > = z.object({
66
- type: z.literal("Unauthorized"),
66
+ error: z.literal("Unauthorized"),
67
67
  detail: z.string(),
68
68
  })
69
69
  .transform((v) => {
@@ -72,7 +72,7 @@ export const Unauthorized$inboundSchema: z.ZodType<
72
72
 
73
73
  /** @internal */
74
74
  export type Unauthorized$Outbound = {
75
- type: "Unauthorized";
75
+ error: "Unauthorized";
76
76
  detail: string;
77
77
  };
78
78
 
@@ -84,7 +84,7 @@ export const Unauthorized$outboundSchema: z.ZodType<
84
84
  > = z.instanceof(Unauthorized)
85
85
  .transform(v => v.data$)
86
86
  .pipe(z.object({
87
- type: z.literal("Unauthorized").default("Unauthorized"),
87
+ error: z.literal("Unauthorized").default("Unauthorized"),
88
88
  detail: z.string(),
89
89
  }));
90
90
 
@@ -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 FileNotFoundType: {
4
- readonly FileNotFound: "FileNotFound";
5
- };
6
- export type FileNotFoundType = ClosedEnum<typeof FileNotFoundType>;
7
- export type FileNotFoundData = {
8
- type: "FileNotFound";
9
- detail: string;
10
- };
11
- export declare class FileNotFound extends Error {
12
- type: "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 FileNotFoundType$inboundSchema: z.ZodNativeEnum<typeof FileNotFoundType>;
20
- /** @internal */
21
- export declare const FileNotFoundType$outboundSchema: z.ZodNativeEnum<typeof FileNotFoundType>;
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 FileNotFoundType$ {
27
- /** @deprecated use `FileNotFoundType$inboundSchema` instead. */
28
- const inboundSchema: z.ZodNativeEnum<{
29
- readonly FileNotFound: "FileNotFound";
30
- }>;
31
- /** @deprecated use `FileNotFoundType$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
- type: "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,gBAAgB;;CAEnB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,YAAa,SAAQ,KAAK;IACrC,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IAEf,gEAAgE;IAChE,KAAK,EAAE,gBAAgB,CAAC;gBAEZ,GAAG,EAAE,gBAAgB;CAYlC;AAED,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC;AAEnC;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa;;MAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc;;MAAkC,CAAC;CAC/D;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,IAAI,EAAE,cAAc,CAAC;IACrB,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.FileNotFoundType$ = exports.FileNotFoundType$outboundSchema = exports.FileNotFoundType$inboundSchema = exports.FileNotFound = exports.FileNotFoundType = void 0;
30
- const z = __importStar(require("zod"));
31
- exports.FileNotFoundType = {
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.type = err.type;
42
- this.detail = err.detail;
43
- this.name = "FileNotFound";
44
- }
45
- }
46
- exports.FileNotFound = FileNotFound;
47
- /** @internal */
48
- exports.FileNotFoundType$inboundSchema = z.nativeEnum(exports.FileNotFoundType);
49
- /** @internal */
50
- exports.FileNotFoundType$outboundSchema = exports.FileNotFoundType$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 FileNotFoundType$;
56
- (function (FileNotFoundType$) {
57
- /** @deprecated use `FileNotFoundType$inboundSchema` instead. */
58
- FileNotFoundType$.inboundSchema = exports.FileNotFoundType$inboundSchema;
59
- /** @deprecated use `FileNotFoundType$outboundSchema` instead. */
60
- FileNotFoundType$.outboundSchema = exports.FileNotFoundType$outboundSchema;
61
- })(FileNotFoundType$ || (exports.FileNotFoundType$ = FileNotFoundType$ = {}));
62
- /** @internal */
63
- exports.FileNotFound$inboundSchema = z.object({
64
- type: 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
- type: 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,gBAAgB,GAAG;IAC9B,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,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAEzB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF;AAnBD,oCAmBC;AAED,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AAEnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC;AAEnC;;;GAGG;AACH,IAAiB,iBAAiB,CAKjC;AALD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAChE,CAAC,EALgB,iBAAiB,iCAAjB,iBAAiB,QAKjC;AAED,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IAC/B,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,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IACvD,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 FileNotFoundType = {
9
- FileNotFound: "FileNotFound",
10
- } as const;
11
- export type FileNotFoundType = ClosedEnum<typeof FileNotFoundType>;
12
-
13
- export type FileNotFoundData = {
14
- type: "FileNotFound";
15
- detail: string;
16
- };
17
-
18
- export class FileNotFound extends Error {
19
- type: "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.type = err.type;
33
- this.detail = err.detail;
34
-
35
- this.name = "FileNotFound";
36
- }
37
- }
38
-
39
- /** @internal */
40
- export const FileNotFoundType$inboundSchema: z.ZodNativeEnum<
41
- typeof FileNotFoundType
42
- > = z.nativeEnum(FileNotFoundType);
43
-
44
- /** @internal */
45
- export const FileNotFoundType$outboundSchema: z.ZodNativeEnum<
46
- typeof FileNotFoundType
47
- > = FileNotFoundType$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 FileNotFoundType$ {
54
- /** @deprecated use `FileNotFoundType$inboundSchema` instead. */
55
- export const inboundSchema = FileNotFoundType$inboundSchema;
56
- /** @deprecated use `FileNotFoundType$outboundSchema` instead. */
57
- export const outboundSchema = FileNotFoundType$outboundSchema;
58
- }
59
-
60
- /** @internal */
61
- export const FileNotFound$inboundSchema: z.ZodType<
62
- FileNotFound,
63
- z.ZodTypeDef,
64
- unknown
65
- > = z.object({
66
- type: 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
- type: "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
- type: 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
- }