@polar-sh/sdk 0.17.2 → 0.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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.2";
41
+ readonly sdkVersion: "0.17.3";
42
42
  readonly genVersion: "2.467.4";
43
- readonly userAgent: "speakeasy-sdk/typescript 0.17.2 2.467.4 0.1.0 @polar-sh/sdk";
43
+ readonly userAgent: "speakeasy-sdk/typescript 0.17.3 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.2",
38
+ sdkVersion: "0.17.3",
39
39
  genVersion: "2.467.4",
40
- userAgent: "speakeasy-sdk/typescript 0.17.2 2.467.4 0.1.0 @polar-sh/sdk",
40
+ userAgent: "speakeasy-sdk/typescript 0.17.3 2.467.4 0.1.0 @polar-sh/sdk",
41
41
  };
42
42
  //# sourceMappingURL=config.js.map
@@ -1,34 +1,34 @@
1
1
  import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
- export declare const AlreadyCanceledSubscriptionType: {
3
+ export declare const AlreadyCanceledSubscriptionError: {
4
4
  readonly AlreadyCanceledSubscription: "AlreadyCanceledSubscription";
5
5
  };
6
- export type AlreadyCanceledSubscriptionType = ClosedEnum<typeof AlreadyCanceledSubscriptionType>;
6
+ export type AlreadyCanceledSubscriptionError = ClosedEnum<typeof AlreadyCanceledSubscriptionError>;
7
7
  export type AlreadyCanceledSubscriptionData = {
8
- type: "AlreadyCanceledSubscription";
8
+ error: "AlreadyCanceledSubscription";
9
9
  detail: string;
10
10
  };
11
11
  export declare class AlreadyCanceledSubscription extends Error {
12
- type: "AlreadyCanceledSubscription";
12
+ error: "AlreadyCanceledSubscription";
13
13
  detail: string;
14
14
  /** The original data that was passed to this error instance. */
15
15
  data$: AlreadyCanceledSubscriptionData;
16
16
  constructor(err: AlreadyCanceledSubscriptionData);
17
17
  }
18
18
  /** @internal */
19
- export declare const AlreadyCanceledSubscriptionType$inboundSchema: z.ZodNativeEnum<typeof AlreadyCanceledSubscriptionType>;
19
+ export declare const AlreadyCanceledSubscriptionError$inboundSchema: z.ZodNativeEnum<typeof AlreadyCanceledSubscriptionError>;
20
20
  /** @internal */
21
- export declare const AlreadyCanceledSubscriptionType$outboundSchema: z.ZodNativeEnum<typeof AlreadyCanceledSubscriptionType>;
21
+ export declare const AlreadyCanceledSubscriptionError$outboundSchema: z.ZodNativeEnum<typeof AlreadyCanceledSubscriptionError>;
22
22
  /**
23
23
  * @internal
24
24
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
25
  */
26
- export declare namespace AlreadyCanceledSubscriptionType$ {
27
- /** @deprecated use `AlreadyCanceledSubscriptionType$inboundSchema` instead. */
26
+ export declare namespace AlreadyCanceledSubscriptionError$ {
27
+ /** @deprecated use `AlreadyCanceledSubscriptionError$inboundSchema` instead. */
28
28
  const inboundSchema: z.ZodNativeEnum<{
29
29
  readonly AlreadyCanceledSubscription: "AlreadyCanceledSubscription";
30
30
  }>;
31
- /** @deprecated use `AlreadyCanceledSubscriptionType$outboundSchema` instead. */
31
+ /** @deprecated use `AlreadyCanceledSubscriptionError$outboundSchema` instead. */
32
32
  const outboundSchema: z.ZodNativeEnum<{
33
33
  readonly AlreadyCanceledSubscription: "AlreadyCanceledSubscription";
34
34
  }>;
@@ -37,7 +37,7 @@ export declare namespace AlreadyCanceledSubscriptionType$ {
37
37
  export declare const AlreadyCanceledSubscription$inboundSchema: z.ZodType<AlreadyCanceledSubscription, z.ZodTypeDef, unknown>;
38
38
  /** @internal */
39
39
  export type AlreadyCanceledSubscription$Outbound = {
40
- type: "AlreadyCanceledSubscription";
40
+ error: "AlreadyCanceledSubscription";
41
41
  detail: string;
42
42
  };
43
43
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"alreadycanceledsubscription.d.ts","sourceRoot":"","sources":["../../src/models/errors/alreadycanceledsubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,+BAA+B;;CAElC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,+BAA+B,CACvC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,6BAA6B,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,2BAA4B,SAAQ,KAAK;IACpD,IAAI,EAAE,6BAA6B,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IAEf,gEAAgE;IAChE,KAAK,EAAE,+BAA+B,CAAC;gBAE3B,GAAG,EAAE,+BAA+B;CAYjD;AAED,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,aAAa,CACzE,OAAO,+BAA+B,CACS,CAAC;AAElD,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,aAAa,CAC1E,OAAO,+BAA+B,CACS,CAAC;AAElD;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa;;MAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc;;MAAiD,CAAC;CAC9E;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,6BAA6B,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAQxB,CAAC;AAEN;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
1
+ {"version":3,"file":"alreadycanceledsubscription.d.ts","sourceRoot":"","sources":["../../src/models/errors/alreadycanceledsubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,gCAAgC;;CAEnC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,gCAAgC,CACxC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,KAAK,EAAE,6BAA6B,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,2BAA4B,SAAQ,KAAK;IACpD,KAAK,EAAE,6BAA6B,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;IAEf,gEAAgE;IAChE,KAAK,EAAE,+BAA+B,CAAC;gBAE3B,GAAG,EAAE,+BAA+B;CAYjD;AAED,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,aAAa,CAC1E,OAAO,gCAAgC,CACS,CAAC;AAEnD,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,aAAa,CAC3E,OAAO,gCAAgC,CACS,CAAC;AAEnD;;;GAGG;AACH,yBAAiB,iCAAiC,CAAC;IACjD,gFAAgF;IACzE,MAAM,aAAa;;MAAiD,CAAC;IAC5E,iFAAiF;IAC1E,MAAM,cAAc;;MAAkD,CAAC;CAC/E;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,KAAK,EAAE,6BAA6B,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAQxB,CAAC;AAEN;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.AlreadyCanceledSubscription$ = exports.AlreadyCanceledSubscription$outboundSchema = exports.AlreadyCanceledSubscription$inboundSchema = exports.AlreadyCanceledSubscriptionType$ = exports.AlreadyCanceledSubscriptionType$outboundSchema = exports.AlreadyCanceledSubscriptionType$inboundSchema = exports.AlreadyCanceledSubscription = exports.AlreadyCanceledSubscriptionType = void 0;
29
+ exports.AlreadyCanceledSubscription$ = exports.AlreadyCanceledSubscription$outboundSchema = exports.AlreadyCanceledSubscription$inboundSchema = exports.AlreadyCanceledSubscriptionError$ = exports.AlreadyCanceledSubscriptionError$outboundSchema = exports.AlreadyCanceledSubscriptionError$inboundSchema = exports.AlreadyCanceledSubscription = exports.AlreadyCanceledSubscriptionError = void 0;
30
30
  const z = __importStar(require("zod"));
31
- exports.AlreadyCanceledSubscriptionType = {
31
+ exports.AlreadyCanceledSubscriptionError = {
32
32
  AlreadyCanceledSubscription: "AlreadyCanceledSubscription",
33
33
  };
34
34
  class AlreadyCanceledSubscription extends Error {
@@ -38,30 +38,30 @@ class AlreadyCanceledSubscription extends Error {
38
38
  : `API error occurred: ${JSON.stringify(err)}`;
39
39
  super(message);
40
40
  this.data$ = err;
41
- this.type = err.type;
41
+ this.error = err.error;
42
42
  this.detail = err.detail;
43
43
  this.name = "AlreadyCanceledSubscription";
44
44
  }
45
45
  }
46
46
  exports.AlreadyCanceledSubscription = AlreadyCanceledSubscription;
47
47
  /** @internal */
48
- exports.AlreadyCanceledSubscriptionType$inboundSchema = z.nativeEnum(exports.AlreadyCanceledSubscriptionType);
48
+ exports.AlreadyCanceledSubscriptionError$inboundSchema = z.nativeEnum(exports.AlreadyCanceledSubscriptionError);
49
49
  /** @internal */
50
- exports.AlreadyCanceledSubscriptionType$outboundSchema = exports.AlreadyCanceledSubscriptionType$inboundSchema;
50
+ exports.AlreadyCanceledSubscriptionError$outboundSchema = exports.AlreadyCanceledSubscriptionError$inboundSchema;
51
51
  /**
52
52
  * @internal
53
53
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
54
  */
55
- var AlreadyCanceledSubscriptionType$;
56
- (function (AlreadyCanceledSubscriptionType$) {
57
- /** @deprecated use `AlreadyCanceledSubscriptionType$inboundSchema` instead. */
58
- AlreadyCanceledSubscriptionType$.inboundSchema = exports.AlreadyCanceledSubscriptionType$inboundSchema;
59
- /** @deprecated use `AlreadyCanceledSubscriptionType$outboundSchema` instead. */
60
- AlreadyCanceledSubscriptionType$.outboundSchema = exports.AlreadyCanceledSubscriptionType$outboundSchema;
61
- })(AlreadyCanceledSubscriptionType$ || (exports.AlreadyCanceledSubscriptionType$ = AlreadyCanceledSubscriptionType$ = {}));
55
+ var AlreadyCanceledSubscriptionError$;
56
+ (function (AlreadyCanceledSubscriptionError$) {
57
+ /** @deprecated use `AlreadyCanceledSubscriptionError$inboundSchema` instead. */
58
+ AlreadyCanceledSubscriptionError$.inboundSchema = exports.AlreadyCanceledSubscriptionError$inboundSchema;
59
+ /** @deprecated use `AlreadyCanceledSubscriptionError$outboundSchema` instead. */
60
+ AlreadyCanceledSubscriptionError$.outboundSchema = exports.AlreadyCanceledSubscriptionError$outboundSchema;
61
+ })(AlreadyCanceledSubscriptionError$ || (exports.AlreadyCanceledSubscriptionError$ = AlreadyCanceledSubscriptionError$ = {}));
62
62
  /** @internal */
63
63
  exports.AlreadyCanceledSubscription$inboundSchema = z.object({
64
- type: z.literal("AlreadyCanceledSubscription"),
64
+ error: z.literal("AlreadyCanceledSubscription"),
65
65
  detail: z.string(),
66
66
  })
67
67
  .transform((v) => {
@@ -71,7 +71,7 @@ exports.AlreadyCanceledSubscription$inboundSchema = z.object({
71
71
  exports.AlreadyCanceledSubscription$outboundSchema = z.instanceof(AlreadyCanceledSubscription)
72
72
  .transform(v => v.data$)
73
73
  .pipe(z.object({
74
- type: z.literal("AlreadyCanceledSubscription").default("AlreadyCanceledSubscription"),
74
+ error: z.literal("AlreadyCanceledSubscription").default("AlreadyCanceledSubscription"),
75
75
  detail: z.string(),
76
76
  }));
77
77
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"alreadycanceledsubscription.js","sourceRoot":"","sources":["../../src/models/errors/alreadycanceledsubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,+BAA+B,GAAG;IAC7C,2BAA2B,EAAE,6BAA6B;CAClD,CAAC;AAUX,MAAa,2BAA4B,SAAQ,KAAK;IAOpD,YAAY,GAAoC;QAC9C,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAA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BAA6B,CAAC,CAAC,OAAO,CACpD,6BAA6B,CAC9B;IACD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
1
+ {"version":3,"file":"alreadycanceledsubscription.js","sourceRoot":"","sources":["../../src/models/errors/alreadycanceledsubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,gCAAgC,GAAG;IAC9C,2BAA2B,EAAE,6BAA6B;CAClD,CAAC;AAUX,MAAa,2BAA4B,SAAQ,KAAK;IAOpD,YAAY,GAAoC;QAC9C,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,6BAA6B,CAAC;IAC5C,CAAC;CACF;AAnBD,kEAmBC;AAED,gBAAgB;AACH,QAAA,8CAA8C,GAEvD,CAAC,CAAC,UAAU,CAAC,wCAAgC,CAAC,CAAC;AAEnD,gBAAgB;AACH,QAAA,+CAA+C,GAExD,sDAA8C,CAAC;AAEnD;;;GAGG;AACH,IAAiB,iCAAiC,CAKjD;AALD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,sDAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,uDAA+C,CAAC;AAChF,CAAC,EALgB,iCAAiC,iDAAjC,iCAAiC,QAKjD;AAED,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,2BAA2B,CAAC,CAAC,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,UAAU,CAAC,2BAA2B,CAAC;KAC1C,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;KACvB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC,OAAO,CACrD,6BAA6B,CAC9B;IACD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
@@ -1,34 +1,34 @@
1
1
  import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
- export declare const FileNotFoundType: {
3
+ export declare const FileNotFoundError: {
4
4
  readonly FileNotFound: "FileNotFound";
5
5
  };
6
- export type FileNotFoundType = ClosedEnum<typeof FileNotFoundType>;
6
+ export type FileNotFoundError = ClosedEnum<typeof FileNotFoundError>;
7
7
  export type FileNotFoundData = {
8
- type: "FileNotFound";
8
+ error: "FileNotFound";
9
9
  detail: string;
10
10
  };
11
11
  export declare class FileNotFound extends Error {
12
- type: "FileNotFound";
12
+ error: "FileNotFound";
13
13
  detail: string;
14
14
  /** The original data that was passed to this error instance. */
15
15
  data$: FileNotFoundData;
16
16
  constructor(err: FileNotFoundData);
17
17
  }
18
18
  /** @internal */
19
- export declare const FileNotFoundType$inboundSchema: z.ZodNativeEnum<typeof FileNotFoundType>;
19
+ export declare const FileNotFoundError$inboundSchema: z.ZodNativeEnum<typeof FileNotFoundError>;
20
20
  /** @internal */
21
- export declare const FileNotFoundType$outboundSchema: z.ZodNativeEnum<typeof FileNotFoundType>;
21
+ export declare const FileNotFoundError$outboundSchema: z.ZodNativeEnum<typeof FileNotFoundError>;
22
22
  /**
23
23
  * @internal
24
24
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
25
  */
26
- export declare namespace FileNotFoundType$ {
27
- /** @deprecated use `FileNotFoundType$inboundSchema` instead. */
26
+ export declare namespace FileNotFoundError$ {
27
+ /** @deprecated use `FileNotFoundError$inboundSchema` instead. */
28
28
  const inboundSchema: z.ZodNativeEnum<{
29
29
  readonly FileNotFound: "FileNotFound";
30
30
  }>;
31
- /** @deprecated use `FileNotFoundType$outboundSchema` instead. */
31
+ /** @deprecated use `FileNotFoundError$outboundSchema` instead. */
32
32
  const outboundSchema: z.ZodNativeEnum<{
33
33
  readonly FileNotFound: "FileNotFound";
34
34
  }>;
@@ -37,7 +37,7 @@ export declare namespace FileNotFoundType$ {
37
37
  export declare const FileNotFound$inboundSchema: z.ZodType<FileNotFound, z.ZodTypeDef, unknown>;
38
38
  /** @internal */
39
39
  export type FileNotFound$Outbound = {
40
- type: "FileNotFound";
40
+ error: "FileNotFound";
41
41
  detail: string;
42
42
  };
43
43
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"filen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AAU,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"}
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
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;
29
+ exports.FileNotFound$ = exports.FileNotFound$outboundSchema = exports.FileNotFound$inboundSchema = exports.FileNotFoundError$ = exports.FileNotFoundError$outboundSchema = exports.FileNotFoundError$inboundSchema = exports.FileNotFound = exports.FileNotFoundError = void 0;
30
30
  const z = __importStar(require("zod"));
31
- exports.FileNotFoundType = {
31
+ exports.FileNotFoundError = {
32
32
  FileNotFound: "FileNotFound",
33
33
  };
34
34
  class FileNotFound extends Error {
@@ -38,30 +38,30 @@ class FileNotFound extends Error {
38
38
  : `API error occurred: ${JSON.stringify(err)}`;
39
39
  super(message);
40
40
  this.data$ = err;
41
- this.type = err.type;
41
+ this.error = err.error;
42
42
  this.detail = err.detail;
43
43
  this.name = "FileNotFound";
44
44
  }
45
45
  }
46
46
  exports.FileNotFound = FileNotFound;
47
47
  /** @internal */
48
- exports.FileNotFoundType$inboundSchema = z.nativeEnum(exports.FileNotFoundType);
48
+ exports.FileNotFoundError$inboundSchema = z.nativeEnum(exports.FileNotFoundError);
49
49
  /** @internal */
50
- exports.FileNotFoundType$outboundSchema = exports.FileNotFoundType$inboundSchema;
50
+ exports.FileNotFoundError$outboundSchema = exports.FileNotFoundError$inboundSchema;
51
51
  /**
52
52
  * @internal
53
53
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
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$ = {}));
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
62
  /** @internal */
63
63
  exports.FileNotFound$inboundSchema = z.object({
64
- type: z.literal("FileNotFound"),
64
+ error: z.literal("FileNotFound"),
65
65
  detail: z.string(),
66
66
  })
67
67
  .transform((v) => {
@@ -71,7 +71,7 @@ exports.FileNotFound$inboundSchema = z.object({
71
71
  exports.FileNotFound$outboundSchema = z.instanceof(FileNotFound)
72
72
  .transform(v => v.data$)
73
73
  .pipe(z.object({
74
- type: z.literal("FileNotFound").default("FileNotFound"),
74
+ error: z.literal("FileNotFound").default("FileNotFound"),
75
75
  detail: z.string(),
76
76
  }));
77
77
  /**
@@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,6DAA6D;IAChD,4BAAc,GAAG,mCAA2B,CAAC;AAG5D,CAAC,EAPgB,aAAa,6BAAb,aAAa,QAO7B"}
@@ -1,34 +1,34 @@
1
1
  import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
- export declare const NotPermittedType: {
3
+ export declare const NotPermittedError: {
4
4
  readonly NotPermitted: "NotPermitted";
5
5
  };
6
- export type NotPermittedType = ClosedEnum<typeof NotPermittedType>;
6
+ export type NotPermittedError = ClosedEnum<typeof NotPermittedError>;
7
7
  export type NotPermittedData = {
8
- type: "NotPermitted";
8
+ error: "NotPermitted";
9
9
  detail: string;
10
10
  };
11
11
  export declare class NotPermitted extends Error {
12
- type: "NotPermitted";
12
+ error: "NotPermitted";
13
13
  detail: string;
14
14
  /** The original data that was passed to this error instance. */
15
15
  data$: NotPermittedData;
16
16
  constructor(err: NotPermittedData);
17
17
  }
18
18
  /** @internal */
19
- export declare const NotPermittedType$inboundSchema: z.ZodNativeEnum<typeof NotPermittedType>;
19
+ export declare const NotPermittedError$inboundSchema: z.ZodNativeEnum<typeof NotPermittedError>;
20
20
  /** @internal */
21
- export declare const NotPermittedType$outboundSchema: z.ZodNativeEnum<typeof NotPermittedType>;
21
+ export declare const NotPermittedError$outboundSchema: z.ZodNativeEnum<typeof NotPermittedError>;
22
22
  /**
23
23
  * @internal
24
24
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
25
  */
26
- export declare namespace NotPermittedType$ {
27
- /** @deprecated use `NotPermittedType$inboundSchema` instead. */
26
+ export declare namespace NotPermittedError$ {
27
+ /** @deprecated use `NotPermittedError$inboundSchema` instead. */
28
28
  const inboundSchema: z.ZodNativeEnum<{
29
29
  readonly NotPermitted: "NotPermitted";
30
30
  }>;
31
- /** @deprecated use `NotPermittedType$outboundSchema` instead. */
31
+ /** @deprecated use `NotPermittedError$outboundSchema` instead. */
32
32
  const outboundSchema: z.ZodNativeEnum<{
33
33
  readonly NotPermitted: "NotPermitted";
34
34
  }>;
@@ -37,7 +37,7 @@ export declare namespace NotPermittedType$ {
37
37
  export declare const NotPermitted$inboundSchema: z.ZodType<NotPermitted, z.ZodTypeDef, unknown>;
38
38
  /** @internal */
39
39
  export type NotPermitted$Outbound = {
40
- type: "NotPermitted";
40
+ error: "NotPermitted";
41
41
  detail: string;
42
42
  };
43
43
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"notpermitted.d.ts","sourceRoot":"","sources":["../../src/models/errors/notpermitted.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,C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AAiB,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"}
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.NotPermitted$ = exports.NotPermitted$outboundSchema = exports.NotPermitted$inboundSchema = exports.NotPermittedType$ = exports.NotPermittedType$outboundSchema = exports.NotPermittedType$inboundSchema = exports.NotPermitted = exports.NotPermittedType = void 0;
29
+ exports.NotPermitted$ = exports.NotPermitted$outboundSchema = exports.NotPermitted$inboundSchema = exports.NotPermittedError$ = exports.NotPermittedError$outboundSchema = exports.NotPermittedError$inboundSchema = exports.NotPermitted = exports.NotPermittedError = void 0;
30
30
  const z = __importStar(require("zod"));
31
- exports.NotPermittedType = {
31
+ exports.NotPermittedError = {
32
32
  NotPermitted: "NotPermitted",
33
33
  };
34
34
  class NotPermitted extends Error {
@@ -38,30 +38,30 @@ class NotPermitted extends Error {
38
38
  : `API error occurred: ${JSON.stringify(err)}`;
39
39
  super(message);
40
40
  this.data$ = err;
41
- this.type = err.type;
41
+ this.error = err.error;
42
42
  this.detail = err.detail;
43
43
  this.name = "NotPermitted";
44
44
  }
45
45
  }
46
46
  exports.NotPermitted = NotPermitted;
47
47
  /** @internal */
48
- exports.NotPermittedType$inboundSchema = z.nativeEnum(exports.NotPermittedType);
48
+ exports.NotPermittedError$inboundSchema = z.nativeEnum(exports.NotPermittedError);
49
49
  /** @internal */
50
- exports.NotPermittedType$outboundSchema = exports.NotPermittedType$inboundSchema;
50
+ exports.NotPermittedError$outboundSchema = exports.NotPermittedError$inboundSchema;
51
51
  /**
52
52
  * @internal
53
53
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
54
  */
55
- var NotPermittedType$;
56
- (function (NotPermittedType$) {
57
- /** @deprecated use `NotPermittedType$inboundSchema` instead. */
58
- NotPermittedType$.inboundSchema = exports.NotPermittedType$inboundSchema;
59
- /** @deprecated use `NotPermittedType$outboundSchema` instead. */
60
- NotPermittedType$.outboundSchema = exports.NotPermittedType$outboundSchema;
61
- })(NotPermittedType$ || (exports.NotPermittedType$ = NotPermittedType$ = {}));
55
+ var NotPermittedError$;
56
+ (function (NotPermittedError$) {
57
+ /** @deprecated use `NotPermittedError$inboundSchema` instead. */
58
+ NotPermittedError$.inboundSchema = exports.NotPermittedError$inboundSchema;
59
+ /** @deprecated use `NotPermittedError$outboundSchema` instead. */
60
+ NotPermittedError$.outboundSchema = exports.NotPermittedError$outboundSchema;
61
+ })(NotPermittedError$ || (exports.NotPermittedError$ = NotPermittedError$ = {}));
62
62
  /** @internal */
63
63
  exports.NotPermitted$inboundSchema = z.object({
64
- type: z.literal("NotPermitted"),
64
+ error: z.literal("NotPermitted"),
65
65
  detail: z.string(),
66
66
  })
67
67
  .transform((v) => {
@@ -71,7 +71,7 @@ exports.NotPermitted$inboundSchema = z.object({
71
71
  exports.NotPermitted$outboundSchema = z.instanceof(NotPermitted)
72
72
  .transform(v => v.data$)
73
73
  .pipe(z.object({
74
- type: z.literal("NotPermitted").default("NotPermitted"),
74
+ error: z.literal("NotPermitted").default("NotPermitted"),
75
75
  detail: z.string(),
76
76
  }));
77
77
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"notpermitted.js","sourceRoot":"","sources":["../../src/models/errors/notpermitted.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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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,34 +1,34 @@
1
1
  import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
- export declare const Type: {
3
+ export declare const ErrorT: {
4
4
  readonly ResourceNotFound: "ResourceNotFound";
5
5
  };
6
- export type Type = ClosedEnum<typeof Type>;
6
+ export type ErrorT = ClosedEnum<typeof ErrorT>;
7
7
  export type ResourceNotFoundData = {
8
- type: "ResourceNotFound";
8
+ error: "ResourceNotFound";
9
9
  detail: string;
10
10
  };
11
11
  export declare class ResourceNotFound extends Error {
12
- type: "ResourceNotFound";
12
+ error: "ResourceNotFound";
13
13
  detail: string;
14
14
  /** The original data that was passed to this error instance. */
15
15
  data$: ResourceNotFoundData;
16
16
  constructor(err: ResourceNotFoundData);
17
17
  }
18
18
  /** @internal */
19
- export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
19
+ export declare const ErrorT$inboundSchema: z.ZodNativeEnum<typeof ErrorT>;
20
20
  /** @internal */
21
- export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
21
+ export declare const ErrorT$outboundSchema: z.ZodNativeEnum<typeof ErrorT>;
22
22
  /**
23
23
  * @internal
24
24
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
25
  */
26
- export declare namespace Type$ {
27
- /** @deprecated use `Type$inboundSchema` instead. */
26
+ export declare namespace ErrorT$ {
27
+ /** @deprecated use `ErrorT$inboundSchema` instead. */
28
28
  const inboundSchema: z.ZodNativeEnum<{
29
29
  readonly ResourceNotFound: "ResourceNotFound";
30
30
  }>;
31
- /** @deprecated use `Type$outboundSchema` instead. */
31
+ /** @deprecated use `ErrorT$outboundSchema` instead. */
32
32
  const outboundSchema: z.ZodNativeEnum<{
33
33
  readonly ResourceNotFound: "ResourceNotFound";
34
34
  }>;
@@ -37,7 +37,7 @@ export declare namespace Type$ {
37
37
  export declare const ResourceNotFound$inboundSchema: z.ZodType<ResourceNotFound, z.ZodTypeDef, unknown>;
38
38
  /** @internal */
39
39
  export type ResourceNotFound$Outbound = {
40
- type: "ResourceNotFound";
40
+ error: "ResourceNotFound";
41
41
  detail: string;
42
42
  };
43
43
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"resourcenotfound.d.ts","sourceRoot":"","sources":["../../src/models/errors/resourcenotfound.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,IAAI;;CAEP,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IAEf,gEAAgE;IAChE,KAAK,EAAE,oBAAoB,CAAC;gBAEhB,GAAG,EAAE,oBAAoB;CAYtC;AAED,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,IAAI,CAE3D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,IAAI,CACzC,CAAC;AAErB;;;GAGG;AACH,yBAAiB,KAAK,CAAC;IACrB,oDAAoD;IAC7C,M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AAED,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,MAAM,CAC3C,CAAC;AAEtB,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,MAAM,CAC3C,CAAC;AAEvB;;;GAGG;AACH,yBAAiB,OAAO,CAAC;IACvB,sDAAsD;IAC/C,MAAM,aAAa;;MAAuB,CAAC;IAClD,uDAAuD;IAChD,MAAM,cAAc;;MAAwB,CAAC;CACrD;AAED,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAMb,CAAC;AAEN;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD"}
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ResourceNotFound$ = exports.ResourceNotFound$outboundSchema = exports.ResourceNotFound$inboundSchema = exports.Type$ = exports.Type$outboundSchema = exports.Type$inboundSchema = exports.ResourceNotFound = exports.Type = void 0;
29
+ exports.ResourceNotFound$ = exports.ResourceNotFound$outboundSchema = exports.ResourceNotFound$inboundSchema = exports.ErrorT$ = exports.ErrorT$outboundSchema = exports.ErrorT$inboundSchema = exports.ResourceNotFound = exports.ErrorT = void 0;
30
30
  const z = __importStar(require("zod"));
31
- exports.Type = {
31
+ exports.ErrorT = {
32
32
  ResourceNotFound: "ResourceNotFound",
33
33
  };
34
34
  class ResourceNotFound extends Error {
@@ -38,30 +38,31 @@ class ResourceNotFound extends Error {
38
38
  : `API error occurred: ${JSON.stringify(err)}`;
39
39
  super(message);
40
40
  this.data$ = err;
41
- this.type = err.type;
41
+ this.error = err.error;
42
42
  this.detail = err.detail;
43
43
  this.name = "ResourceNotFound";
44
44
  }
45
45
  }
46
46
  exports.ResourceNotFound = ResourceNotFound;
47
47
  /** @internal */
48
- exports.Type$inboundSchema = z.nativeEnum(exports.Type);
48
+ exports.ErrorT$inboundSchema = z
49
+ .nativeEnum(exports.ErrorT);
49
50
  /** @internal */
50
- exports.Type$outboundSchema = exports.Type$inboundSchema;
51
+ exports.ErrorT$outboundSchema = exports.ErrorT$inboundSchema;
51
52
  /**
52
53
  * @internal
53
54
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
55
  */
55
- var Type$;
56
- (function (Type$) {
57
- /** @deprecated use `Type$inboundSchema` instead. */
58
- Type$.inboundSchema = exports.Type$inboundSchema;
59
- /** @deprecated use `Type$outboundSchema` instead. */
60
- Type$.outboundSchema = exports.Type$outboundSchema;
61
- })(Type$ || (exports.Type$ = Type$ = {}));
56
+ var ErrorT$;
57
+ (function (ErrorT$) {
58
+ /** @deprecated use `ErrorT$inboundSchema` instead. */
59
+ ErrorT$.inboundSchema = exports.ErrorT$inboundSchema;
60
+ /** @deprecated use `ErrorT$outboundSchema` instead. */
61
+ ErrorT$.outboundSchema = exports.ErrorT$outboundSchema;
62
+ })(ErrorT$ || (exports.ErrorT$ = ErrorT$ = {}));
62
63
  /** @internal */
63
64
  exports.ResourceNotFound$inboundSchema = z.object({
64
- type: z.literal("ResourceNotFound"),
65
+ error: z.literal("ResourceNotFound"),
65
66
  detail: z.string(),
66
67
  })
67
68
  .transform((v) => {
@@ -71,7 +72,7 @@ exports.ResourceNotFound$inboundSchema = z.object({
71
72
  exports.ResourceNotFound$outboundSchema = z.instanceof(ResourceNotFound)
72
73
  .transform(v => v.data$)
73
74
  .pipe(z.object({
74
- type: z.literal("ResourceNotFound").default("ResourceNotFound"),
75
+ error: z.literal("ResourceNotFound").default("ResourceNotFound"),
75
76
  detail: z.string(),
76
77
  }));
77
78
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"resourcenotfound.js","sourceRoot":"","sources":["../../src/models/errors/resourcenotfound.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,IAAI,GAAG;IAClB,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC;AAQX,MAAa,gBAAiB,SAAQ,KAAK;IAOzC,YAAY,GAAyB;QACnC,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,kBAAkB,CAAC;IACjC,CAAC;CACF;AAnBD,4CAmBC;AAED,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,CAAC,CAAC,UAAU,CAC1E,YAAI,CACL,CAAC;AAEF,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,0BAAkB,CAAC;AAErB;;;GAGG;AACH,IAAiB,KAAK,CAKrB;AALD,WAAiB,KAAK;IACpB,oDAAoD;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AAC;KACvB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAChE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,iCAAjB,iBAAiB,QAOjC"}
@@ -1,34 +1,34 @@
1
1
  import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
- export declare const UnauthorizedType: {
3
+ export declare const UnauthorizedError: {
4
4
  readonly Unauthorized: "Unauthorized";
5
5
  };
6
- export type UnauthorizedType = ClosedEnum<typeof UnauthorizedType>;
6
+ export type UnauthorizedError = ClosedEnum<typeof UnauthorizedError>;
7
7
  export type UnauthorizedData = {
8
- type: "Unauthorized";
8
+ error: "Unauthorized";
9
9
  detail: string;
10
10
  };
11
11
  export declare class Unauthorized extends Error {
12
- type: "Unauthorized";
12
+ error: "Unauthorized";
13
13
  detail: string;
14
14
  /** The original data that was passed to this error instance. */
15
15
  data$: UnauthorizedData;
16
16
  constructor(err: UnauthorizedData);
17
17
  }
18
18
  /** @internal */
19
- export declare const UnauthorizedType$inboundSchema: z.ZodNativeEnum<typeof UnauthorizedType>;
19
+ export declare const UnauthorizedError$inboundSchema: z.ZodNativeEnum<typeof UnauthorizedError>;
20
20
  /** @internal */
21
- export declare const UnauthorizedType$outboundSchema: z.ZodNativeEnum<typeof UnauthorizedType>;
21
+ export declare const UnauthorizedError$outboundSchema: z.ZodNativeEnum<typeof UnauthorizedError>;
22
22
  /**
23
23
  * @internal
24
24
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
25
  */
26
- export declare namespace UnauthorizedType$ {
27
- /** @deprecated use `UnauthorizedType$inboundSchema` instead. */
26
+ export declare namespace UnauthorizedError$ {
27
+ /** @deprecated use `UnauthorizedError$inboundSchema` instead. */
28
28
  const inboundSchema: z.ZodNativeEnum<{
29
29
  readonly Unauthorized: "Unauthorized";
30
30
  }>;
31
- /** @deprecated use `UnauthorizedType$outboundSchema` instead. */
31
+ /** @deprecated use `UnauthorizedError$outboundSchema` instead. */
32
32
  const outboundSchema: z.ZodNativeEnum<{
33
33
  readonly Unauthorized: "Unauthorized";
34
34
  }>;
@@ -37,7 +37,7 @@ export declare namespace UnauthorizedType$ {
37
37
  export declare const Unauthorized$inboundSchema: z.ZodType<Unauthorized, z.ZodTypeDef, unknown>;
38
38
  /** @internal */
39
39
  export type Unauthorized$Outbound = {
40
- type: "Unauthorized";
40
+ error: "Unauthorized";
41
41
  detail: string;
42
42
  };
43
43
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"unauthorized.d.ts","sourceRoot":"","sources":["../../src/models/errors/unauthorized.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,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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"}
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Unauthorized$ = exports.Unauthorized$outboundSchema = exports.Unauthorized$inboundSchema = exports.UnauthorizedType$ = exports.UnauthorizedType$outboundSchema = exports.UnauthorizedType$inboundSchema = exports.Unauthorized = exports.UnauthorizedType = void 0;
29
+ exports.Unauthorized$ = exports.Unauthorized$outboundSchema = exports.Unauthorized$inboundSchema = exports.UnauthorizedError$ = exports.UnauthorizedError$outboundSchema = exports.UnauthorizedError$inboundSchema = exports.Unauthorized = exports.UnauthorizedError = void 0;
30
30
  const z = __importStar(require("zod"));
31
- exports.UnauthorizedType = {
31
+ exports.UnauthorizedError = {
32
32
  Unauthorized: "Unauthorized",
33
33
  };
34
34
  class Unauthorized extends Error {
@@ -38,30 +38,30 @@ class Unauthorized extends Error {
38
38
  : `API error occurred: ${JSON.stringify(err)}`;
39
39
  super(message);
40
40
  this.data$ = err;
41
- this.type = err.type;
41
+ this.error = err.error;
42
42
  this.detail = err.detail;
43
43
  this.name = "Unauthorized";
44
44
  }
45
45
  }
46
46
  exports.Unauthorized = Unauthorized;
47
47
  /** @internal */
48
- exports.UnauthorizedType$inboundSchema = z.nativeEnum(exports.UnauthorizedType);
48
+ exports.UnauthorizedError$inboundSchema = z.nativeEnum(exports.UnauthorizedError);
49
49
  /** @internal */
50
- exports.UnauthorizedType$outboundSchema = exports.UnauthorizedType$inboundSchema;
50
+ exports.UnauthorizedError$outboundSchema = exports.UnauthorizedError$inboundSchema;
51
51
  /**
52
52
  * @internal
53
53
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
54
  */
55
- var UnauthorizedType$;
56
- (function (UnauthorizedType$) {
57
- /** @deprecated use `UnauthorizedType$inboundSchema` instead. */
58
- UnauthorizedType$.inboundSchema = exports.UnauthorizedType$inboundSchema;
59
- /** @deprecated use `UnauthorizedType$outboundSchema` instead. */
60
- UnauthorizedType$.outboundSchema = exports.UnauthorizedType$outboundSchema;
61
- })(UnauthorizedType$ || (exports.UnauthorizedType$ = UnauthorizedType$ = {}));
55
+ var UnauthorizedError$;
56
+ (function (UnauthorizedError$) {
57
+ /** @deprecated use `UnauthorizedError$inboundSchema` instead. */
58
+ UnauthorizedError$.inboundSchema = exports.UnauthorizedError$inboundSchema;
59
+ /** @deprecated use `UnauthorizedError$outboundSchema` instead. */
60
+ UnauthorizedError$.outboundSchema = exports.UnauthorizedError$outboundSchema;
61
+ })(UnauthorizedError$ || (exports.UnauthorizedError$ = UnauthorizedError$ = {}));
62
62
  /** @internal */
63
63
  exports.Unauthorized$inboundSchema = z.object({
64
- type: z.literal("Unauthorized"),
64
+ error: z.literal("Unauthorized"),
65
65
  detail: z.string(),
66
66
  })
67
67
  .transform((v) => {
@@ -71,7 +71,7 @@ exports.Unauthorized$inboundSchema = z.object({
71
71
  exports.Unauthorized$outboundSchema = z.instanceof(Unauthorized)
72
72
  .transform(v => v.data$)
73
73
  .pipe(z.object({
74
- type: z.literal("Unauthorized").default("Unauthorized"),
74
+ error: z.literal("Unauthorized").default("Unauthorized"),
75
75
  detail: z.string(),
76
76
  }));
77
77
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"unauthorized.js","sourceRoot":"","sources":["../../src/models/errors/unauthorized.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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,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polar-sh/sdk",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
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.2",
63
+ sdkVersion: "0.17.3",
64
64
  genVersion: "2.467.4",
65
- userAgent: "speakeasy-sdk/typescript 0.17.2 2.467.4 0.1.0 @polar-sh/sdk",
65
+ userAgent: "speakeasy-sdk/typescript 0.17.3 2.467.4 0.1.0 @polar-sh/sdk",
66
66
  } as const;
@@ -5,20 +5,20 @@
5
5
  import * as z from "zod";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
- export const AlreadyCanceledSubscriptionType = {
8
+ export const AlreadyCanceledSubscriptionError = {
9
9
  AlreadyCanceledSubscription: "AlreadyCanceledSubscription",
10
10
  } as const;
11
- export type AlreadyCanceledSubscriptionType = ClosedEnum<
12
- typeof AlreadyCanceledSubscriptionType
11
+ export type AlreadyCanceledSubscriptionError = ClosedEnum<
12
+ typeof AlreadyCanceledSubscriptionError
13
13
  >;
14
14
 
15
15
  export type AlreadyCanceledSubscriptionData = {
16
- type: "AlreadyCanceledSubscription";
16
+ error: "AlreadyCanceledSubscription";
17
17
  detail: string;
18
18
  };
19
19
 
20
20
  export class AlreadyCanceledSubscription extends Error {
21
- type: "AlreadyCanceledSubscription";
21
+ error: "AlreadyCanceledSubscription";
22
22
  detail: string;
23
23
 
24
24
  /** The original data that was passed to this error instance. */
@@ -31,7 +31,7 @@ export class AlreadyCanceledSubscription extends Error {
31
31
  super(message);
32
32
  this.data$ = err;
33
33
 
34
- this.type = err.type;
34
+ this.error = err.error;
35
35
  this.detail = err.detail;
36
36
 
37
37
  this.name = "AlreadyCanceledSubscription";
@@ -39,24 +39,24 @@ export class AlreadyCanceledSubscription extends Error {
39
39
  }
40
40
 
41
41
  /** @internal */
42
- export const AlreadyCanceledSubscriptionType$inboundSchema: z.ZodNativeEnum<
43
- typeof AlreadyCanceledSubscriptionType
44
- > = z.nativeEnum(AlreadyCanceledSubscriptionType);
42
+ export const AlreadyCanceledSubscriptionError$inboundSchema: z.ZodNativeEnum<
43
+ typeof AlreadyCanceledSubscriptionError
44
+ > = z.nativeEnum(AlreadyCanceledSubscriptionError);
45
45
 
46
46
  /** @internal */
47
- export const AlreadyCanceledSubscriptionType$outboundSchema: z.ZodNativeEnum<
48
- typeof AlreadyCanceledSubscriptionType
49
- > = AlreadyCanceledSubscriptionType$inboundSchema;
47
+ export const AlreadyCanceledSubscriptionError$outboundSchema: z.ZodNativeEnum<
48
+ typeof AlreadyCanceledSubscriptionError
49
+ > = AlreadyCanceledSubscriptionError$inboundSchema;
50
50
 
51
51
  /**
52
52
  * @internal
53
53
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
54
  */
55
- export namespace AlreadyCanceledSubscriptionType$ {
56
- /** @deprecated use `AlreadyCanceledSubscriptionType$inboundSchema` instead. */
57
- export const inboundSchema = AlreadyCanceledSubscriptionType$inboundSchema;
58
- /** @deprecated use `AlreadyCanceledSubscriptionType$outboundSchema` instead. */
59
- export const outboundSchema = AlreadyCanceledSubscriptionType$outboundSchema;
55
+ export namespace AlreadyCanceledSubscriptionError$ {
56
+ /** @deprecated use `AlreadyCanceledSubscriptionError$inboundSchema` instead. */
57
+ export const inboundSchema = AlreadyCanceledSubscriptionError$inboundSchema;
58
+ /** @deprecated use `AlreadyCanceledSubscriptionError$outboundSchema` instead. */
59
+ export const outboundSchema = AlreadyCanceledSubscriptionError$outboundSchema;
60
60
  }
61
61
 
62
62
  /** @internal */
@@ -65,7 +65,7 @@ export const AlreadyCanceledSubscription$inboundSchema: z.ZodType<
65
65
  z.ZodTypeDef,
66
66
  unknown
67
67
  > = z.object({
68
- type: z.literal("AlreadyCanceledSubscription"),
68
+ error: z.literal("AlreadyCanceledSubscription"),
69
69
  detail: z.string(),
70
70
  })
71
71
  .transform((v) => {
@@ -74,7 +74,7 @@ export const AlreadyCanceledSubscription$inboundSchema: z.ZodType<
74
74
 
75
75
  /** @internal */
76
76
  export type AlreadyCanceledSubscription$Outbound = {
77
- type: "AlreadyCanceledSubscription";
77
+ error: "AlreadyCanceledSubscription";
78
78
  detail: string;
79
79
  };
80
80
 
@@ -86,7 +86,7 @@ export const AlreadyCanceledSubscription$outboundSchema: z.ZodType<
86
86
  > = z.instanceof(AlreadyCanceledSubscription)
87
87
  .transform(v => v.data$)
88
88
  .pipe(z.object({
89
- type: z.literal("AlreadyCanceledSubscription").default(
89
+ error: z.literal("AlreadyCanceledSubscription").default(
90
90
  "AlreadyCanceledSubscription",
91
91
  ),
92
92
  detail: z.string(),
@@ -5,18 +5,18 @@
5
5
  import * as z from "zod";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
- export const FileNotFoundType = {
8
+ export const FileNotFoundError = {
9
9
  FileNotFound: "FileNotFound",
10
10
  } as const;
11
- export type FileNotFoundType = ClosedEnum<typeof FileNotFoundType>;
11
+ export type FileNotFoundError = ClosedEnum<typeof FileNotFoundError>;
12
12
 
13
13
  export type FileNotFoundData = {
14
- type: "FileNotFound";
14
+ error: "FileNotFound";
15
15
  detail: string;
16
16
  };
17
17
 
18
18
  export class FileNotFound extends Error {
19
- type: "FileNotFound";
19
+ error: "FileNotFound";
20
20
  detail: string;
21
21
 
22
22
  /** The original data that was passed to this error instance. */
@@ -29,7 +29,7 @@ export class FileNotFound 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 = "FileNotFound";
@@ -37,24 +37,24 @@ export class FileNotFound extends Error {
37
37
  }
38
38
 
39
39
  /** @internal */
40
- export const FileNotFoundType$inboundSchema: z.ZodNativeEnum<
41
- typeof FileNotFoundType
42
- > = z.nativeEnum(FileNotFoundType);
40
+ export const FileNotFoundError$inboundSchema: z.ZodNativeEnum<
41
+ typeof FileNotFoundError
42
+ > = z.nativeEnum(FileNotFoundError);
43
43
 
44
44
  /** @internal */
45
- export const FileNotFoundType$outboundSchema: z.ZodNativeEnum<
46
- typeof FileNotFoundType
47
- > = FileNotFoundType$inboundSchema;
45
+ export const FileNotFoundError$outboundSchema: z.ZodNativeEnum<
46
+ typeof FileNotFoundError
47
+ > = FileNotFoundError$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 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;
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
58
  }
59
59
 
60
60
  /** @internal */
@@ -63,7 +63,7 @@ export const FileNotFound$inboundSchema: z.ZodType<
63
63
  z.ZodTypeDef,
64
64
  unknown
65
65
  > = z.object({
66
- type: z.literal("FileNotFound"),
66
+ error: z.literal("FileNotFound"),
67
67
  detail: z.string(),
68
68
  })
69
69
  .transform((v) => {
@@ -72,7 +72,7 @@ export const FileNotFound$inboundSchema: z.ZodType<
72
72
 
73
73
  /** @internal */
74
74
  export type FileNotFound$Outbound = {
75
- type: "FileNotFound";
75
+ error: "FileNotFound";
76
76
  detail: string;
77
77
  };
78
78
 
@@ -84,7 +84,7 @@ export const FileNotFound$outboundSchema: z.ZodType<
84
84
  > = z.instanceof(FileNotFound)
85
85
  .transform(v => v.data$)
86
86
  .pipe(z.object({
87
- type: z.literal("FileNotFound").default("FileNotFound"),
87
+ error: z.literal("FileNotFound").default("FileNotFound"),
88
88
  detail: z.string(),
89
89
  }));
90
90
 
@@ -5,18 +5,18 @@
5
5
  import * as z from "zod";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
- export const NotPermittedType = {
8
+ export const NotPermittedError = {
9
9
  NotPermitted: "NotPermitted",
10
10
  } as const;
11
- export type NotPermittedType = ClosedEnum<typeof NotPermittedType>;
11
+ export type NotPermittedError = ClosedEnum<typeof NotPermittedError>;
12
12
 
13
13
  export type NotPermittedData = {
14
- type: "NotPermitted";
14
+ error: "NotPermitted";
15
15
  detail: string;
16
16
  };
17
17
 
18
18
  export class NotPermitted extends Error {
19
- type: "NotPermitted";
19
+ error: "NotPermitted";
20
20
  detail: string;
21
21
 
22
22
  /** The original data that was passed to this error instance. */
@@ -29,7 +29,7 @@ export class NotPermitted 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 = "NotPermitted";
@@ -37,24 +37,24 @@ export class NotPermitted extends Error {
37
37
  }
38
38
 
39
39
  /** @internal */
40
- export const NotPermittedType$inboundSchema: z.ZodNativeEnum<
41
- typeof NotPermittedType
42
- > = z.nativeEnum(NotPermittedType);
40
+ export const NotPermittedError$inboundSchema: z.ZodNativeEnum<
41
+ typeof NotPermittedError
42
+ > = z.nativeEnum(NotPermittedError);
43
43
 
44
44
  /** @internal */
45
- export const NotPermittedType$outboundSchema: z.ZodNativeEnum<
46
- typeof NotPermittedType
47
- > = NotPermittedType$inboundSchema;
45
+ export const NotPermittedError$outboundSchema: z.ZodNativeEnum<
46
+ typeof NotPermittedError
47
+ > = NotPermittedError$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 NotPermittedType$ {
54
- /** @deprecated use `NotPermittedType$inboundSchema` instead. */
55
- export const inboundSchema = NotPermittedType$inboundSchema;
56
- /** @deprecated use `NotPermittedType$outboundSchema` instead. */
57
- export const outboundSchema = NotPermittedType$outboundSchema;
53
+ export namespace NotPermittedError$ {
54
+ /** @deprecated use `NotPermittedError$inboundSchema` instead. */
55
+ export const inboundSchema = NotPermittedError$inboundSchema;
56
+ /** @deprecated use `NotPermittedError$outboundSchema` instead. */
57
+ export const outboundSchema = NotPermittedError$outboundSchema;
58
58
  }
59
59
 
60
60
  /** @internal */
@@ -63,7 +63,7 @@ export const NotPermitted$inboundSchema: z.ZodType<
63
63
  z.ZodTypeDef,
64
64
  unknown
65
65
  > = z.object({
66
- type: z.literal("NotPermitted"),
66
+ error: z.literal("NotPermitted"),
67
67
  detail: z.string(),
68
68
  })
69
69
  .transform((v) => {
@@ -72,7 +72,7 @@ export const NotPermitted$inboundSchema: z.ZodType<
72
72
 
73
73
  /** @internal */
74
74
  export type NotPermitted$Outbound = {
75
- type: "NotPermitted";
75
+ error: "NotPermitted";
76
76
  detail: string;
77
77
  };
78
78
 
@@ -84,7 +84,7 @@ export const NotPermitted$outboundSchema: z.ZodType<
84
84
  > = z.instanceof(NotPermitted)
85
85
  .transform(v => v.data$)
86
86
  .pipe(z.object({
87
- type: z.literal("NotPermitted").default("NotPermitted"),
87
+ error: z.literal("NotPermitted").default("NotPermitted"),
88
88
  detail: z.string(),
89
89
  }));
90
90
 
@@ -5,18 +5,18 @@
5
5
  import * as z from "zod";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
- export const Type = {
8
+ export const ErrorT = {
9
9
  ResourceNotFound: "ResourceNotFound",
10
10
  } as const;
11
- export type Type = ClosedEnum<typeof Type>;
11
+ export type ErrorT = ClosedEnum<typeof ErrorT>;
12
12
 
13
13
  export type ResourceNotFoundData = {
14
- type: "ResourceNotFound";
14
+ error: "ResourceNotFound";
15
15
  detail: string;
16
16
  };
17
17
 
18
18
  export class ResourceNotFound extends Error {
19
- type: "ResourceNotFound";
19
+ error: "ResourceNotFound";
20
20
  detail: string;
21
21
 
22
22
  /** The original data that was passed to this error instance. */
@@ -29,7 +29,7 @@ export class ResourceNotFound 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 = "ResourceNotFound";
@@ -37,23 +37,22 @@ export class ResourceNotFound extends Error {
37
37
  }
38
38
 
39
39
  /** @internal */
40
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
41
- Type,
42
- );
40
+ export const ErrorT$inboundSchema: z.ZodNativeEnum<typeof ErrorT> = z
41
+ .nativeEnum(ErrorT);
43
42
 
44
43
  /** @internal */
45
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
46
- Type$inboundSchema;
44
+ export const ErrorT$outboundSchema: z.ZodNativeEnum<typeof ErrorT> =
45
+ ErrorT$inboundSchema;
47
46
 
48
47
  /**
49
48
  * @internal
50
49
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
50
  */
52
- export namespace Type$ {
53
- /** @deprecated use `Type$inboundSchema` instead. */
54
- export const inboundSchema = Type$inboundSchema;
55
- /** @deprecated use `Type$outboundSchema` instead. */
56
- export const outboundSchema = Type$outboundSchema;
51
+ export namespace ErrorT$ {
52
+ /** @deprecated use `ErrorT$inboundSchema` instead. */
53
+ export const inboundSchema = ErrorT$inboundSchema;
54
+ /** @deprecated use `ErrorT$outboundSchema` instead. */
55
+ export const outboundSchema = ErrorT$outboundSchema;
57
56
  }
58
57
 
59
58
  /** @internal */
@@ -62,7 +61,7 @@ export const ResourceNotFound$inboundSchema: z.ZodType<
62
61
  z.ZodTypeDef,
63
62
  unknown
64
63
  > = z.object({
65
- type: z.literal("ResourceNotFound"),
64
+ error: z.literal("ResourceNotFound"),
66
65
  detail: z.string(),
67
66
  })
68
67
  .transform((v) => {
@@ -71,7 +70,7 @@ export const ResourceNotFound$inboundSchema: z.ZodType<
71
70
 
72
71
  /** @internal */
73
72
  export type ResourceNotFound$Outbound = {
74
- type: "ResourceNotFound";
73
+ error: "ResourceNotFound";
75
74
  detail: string;
76
75
  };
77
76
 
@@ -83,7 +82,7 @@ export const ResourceNotFound$outboundSchema: z.ZodType<
83
82
  > = z.instanceof(ResourceNotFound)
84
83
  .transform(v => v.data$)
85
84
  .pipe(z.object({
86
- type: z.literal("ResourceNotFound").default("ResourceNotFound"),
85
+ error: z.literal("ResourceNotFound").default("ResourceNotFound"),
87
86
  detail: z.string(),
88
87
  }));
89
88
 
@@ -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