@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 +2 -2
- package/lib/config.js +2 -2
- package/models/errors/alreadycanceledsubscription.d.ts +10 -10
- package/models/errors/alreadycanceledsubscription.d.ts.map +1 -1
- package/models/errors/alreadycanceledsubscription.js +14 -14
- package/models/errors/alreadycanceledsubscription.js.map +1 -1
- package/models/errors/filenotfound.d.ts +10 -10
- package/models/errors/filenotfound.d.ts.map +1 -1
- package/models/errors/filenotfound.js +14 -14
- package/models/errors/filenotfound.js.map +1 -1
- package/models/errors/notpermitted.d.ts +10 -10
- package/models/errors/notpermitted.d.ts.map +1 -1
- package/models/errors/notpermitted.js +14 -14
- package/models/errors/notpermitted.js.map +1 -1
- package/models/errors/resourcenotfound.d.ts +10 -10
- package/models/errors/resourcenotfound.d.ts.map +1 -1
- package/models/errors/resourcenotfound.js +15 -14
- package/models/errors/resourcenotfound.js.map +1 -1
- package/models/errors/unauthorized.d.ts +10 -10
- package/models/errors/unauthorized.d.ts.map +1 -1
- package/models/errors/unauthorized.js +14 -14
- package/models/errors/unauthorized.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/errors/alreadycanceledsubscription.ts +20 -20
- package/src/models/errors/filenotfound.ts +19 -19
- package/src/models/errors/notpermitted.ts +19 -19
- package/src/models/errors/resourcenotfound.ts +17 -18
- package/src/models/errors/unauthorized.ts +19 -19
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.
|
|
41
|
+
readonly sdkVersion: "0.17.3";
|
|
42
42
|
readonly genVersion: "2.467.4";
|
|
43
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.17.
|
|
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.
|
|
38
|
+
sdkVersion: "0.17.3",
|
|
39
39
|
genVersion: "2.467.4",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.17.
|
|
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
|
|
3
|
+
export declare const AlreadyCanceledSubscriptionError: {
|
|
4
4
|
readonly AlreadyCanceledSubscription: "AlreadyCanceledSubscription";
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type AlreadyCanceledSubscriptionError = ClosedEnum<typeof AlreadyCanceledSubscriptionError>;
|
|
7
7
|
export type AlreadyCanceledSubscriptionData = {
|
|
8
|
-
|
|
8
|
+
error: "AlreadyCanceledSubscription";
|
|
9
9
|
detail: string;
|
|
10
10
|
};
|
|
11
11
|
export declare class AlreadyCanceledSubscription extends Error {
|
|
12
|
-
|
|
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
|
|
19
|
+
export declare const AlreadyCanceledSubscriptionError$inboundSchema: z.ZodNativeEnum<typeof AlreadyCanceledSubscriptionError>;
|
|
20
20
|
/** @internal */
|
|
21
|
-
export declare const
|
|
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
|
|
27
|
-
/** @deprecated use `
|
|
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 `
|
|
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
|
-
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
48
|
+
exports.AlreadyCanceledSubscriptionError$inboundSchema = z.nativeEnum(exports.AlreadyCanceledSubscriptionError);
|
|
49
49
|
/** @internal */
|
|
50
|
-
exports.
|
|
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
|
|
56
|
-
(function (
|
|
57
|
-
/** @deprecated use `
|
|
58
|
-
|
|
59
|
-
/** @deprecated use `
|
|
60
|
-
|
|
61
|
-
})(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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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export declare const
|
|
3
|
+
export declare const FileNotFoundError: {
|
|
4
4
|
readonly FileNotFound: "FileNotFound";
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type FileNotFoundError = ClosedEnum<typeof FileNotFoundError>;
|
|
7
7
|
export type FileNotFoundData = {
|
|
8
|
-
|
|
8
|
+
error: "FileNotFound";
|
|
9
9
|
detail: string;
|
|
10
10
|
};
|
|
11
11
|
export declare class FileNotFound extends Error {
|
|
12
|
-
|
|
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
|
|
19
|
+
export declare const FileNotFoundError$inboundSchema: z.ZodNativeEnum<typeof FileNotFoundError>;
|
|
20
20
|
/** @internal */
|
|
21
|
-
export declare const
|
|
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
|
|
27
|
-
/** @deprecated use `
|
|
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 `
|
|
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
|
-
|
|
40
|
+
error: "FileNotFound";
|
|
41
41
|
detail: string;
|
|
42
42
|
};
|
|
43
43
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
48
|
+
exports.FileNotFoundError$inboundSchema = z.nativeEnum(exports.FileNotFoundError);
|
|
49
49
|
/** @internal */
|
|
50
|
-
exports.
|
|
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
|
|
56
|
-
(function (
|
|
57
|
-
/** @deprecated use `
|
|
58
|
-
|
|
59
|
-
/** @deprecated use `
|
|
60
|
-
|
|
61
|
-
})(
|
|
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
|
-
|
|
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
|
-
|
|
74
|
+
error: z.literal("FileNotFound").default("FileNotFound"),
|
|
75
75
|
detail: z.string(),
|
|
76
76
|
}));
|
|
77
77
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filenotfound.js","sourceRoot":"","sources":["../../src/models/errors/filenotfound.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,
|
|
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,34 +1,34 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const NotPermittedError: {
|
|
4
4
|
readonly NotPermitted: "NotPermitted";
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type NotPermittedError = ClosedEnum<typeof NotPermittedError>;
|
|
7
7
|
export type NotPermittedData = {
|
|
8
|
-
|
|
8
|
+
error: "NotPermitted";
|
|
9
9
|
detail: string;
|
|
10
10
|
};
|
|
11
11
|
export declare class NotPermitted extends Error {
|
|
12
|
-
|
|
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
|
|
19
|
+
export declare const NotPermittedError$inboundSchema: z.ZodNativeEnum<typeof NotPermittedError>;
|
|
20
20
|
/** @internal */
|
|
21
|
-
export declare const
|
|
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
|
|
27
|
-
/** @deprecated use `
|
|
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 `
|
|
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
|
-
|
|
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,
|
|
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,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"}
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
48
|
+
exports.NotPermittedError$inboundSchema = z.nativeEnum(exports.NotPermittedError);
|
|
49
49
|
/** @internal */
|
|
50
|
-
exports.
|
|
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
|
|
56
|
-
(function (
|
|
57
|
-
/** @deprecated use `
|
|
58
|
-
|
|
59
|
-
/** @deprecated use `
|
|
60
|
-
|
|
61
|
-
})(
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"notpermitted.js","sourceRoot":"","sources":["../../src/models/errors/notpermitted.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,34 +1,34 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const ErrorT: {
|
|
4
4
|
readonly ResourceNotFound: "ResourceNotFound";
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type ErrorT = ClosedEnum<typeof ErrorT>;
|
|
7
7
|
export type ResourceNotFoundData = {
|
|
8
|
-
|
|
8
|
+
error: "ResourceNotFound";
|
|
9
9
|
detail: string;
|
|
10
10
|
};
|
|
11
11
|
export declare class ResourceNotFound extends Error {
|
|
12
|
-
|
|
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
|
|
19
|
+
export declare const ErrorT$inboundSchema: z.ZodNativeEnum<typeof ErrorT>;
|
|
20
20
|
/** @internal */
|
|
21
|
-
export declare const
|
|
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
|
|
27
|
-
/** @deprecated use `
|
|
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 `
|
|
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
|
-
|
|
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,C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AAC;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.
|
|
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.
|
|
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.
|
|
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.
|
|
48
|
+
exports.ErrorT$inboundSchema = z
|
|
49
|
+
.nativeEnum(exports.ErrorT);
|
|
49
50
|
/** @internal */
|
|
50
|
-
exports.
|
|
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
|
|
56
|
-
(function (
|
|
57
|
-
/** @deprecated use `
|
|
58
|
-
|
|
59
|
-
/** @deprecated use `
|
|
60
|
-
|
|
61
|
-
})(
|
|
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
|
-
|
|
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
|
-
|
|
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;A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AM,EAAE;CACnB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC;KAC/B,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;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
|
|
3
|
+
export declare const UnauthorizedError: {
|
|
4
4
|
readonly Unauthorized: "Unauthorized";
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type UnauthorizedError = ClosedEnum<typeof UnauthorizedError>;
|
|
7
7
|
export type UnauthorizedData = {
|
|
8
|
-
|
|
8
|
+
error: "Unauthorized";
|
|
9
9
|
detail: string;
|
|
10
10
|
};
|
|
11
11
|
export declare class Unauthorized extends Error {
|
|
12
|
-
|
|
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
|
|
19
|
+
export declare const UnauthorizedError$inboundSchema: z.ZodNativeEnum<typeof UnauthorizedError>;
|
|
20
20
|
/** @internal */
|
|
21
|
-
export declare const
|
|
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
|
|
27
|
-
/** @deprecated use `
|
|
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 `
|
|
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
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"unauthorized.d.ts","source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,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.
|
|
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.
|
|
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.
|
|
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.
|
|
48
|
+
exports.UnauthorizedError$inboundSchema = z.nativeEnum(exports.UnauthorizedError);
|
|
49
49
|
/** @internal */
|
|
50
|
-
exports.
|
|
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
|
|
56
|
-
(function (
|
|
57
|
-
/** @deprecated use `
|
|
58
|
-
|
|
59
|
-
/** @deprecated use `
|
|
60
|
-
|
|
61
|
-
})(
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"unauthorized.js","sourceRoot":"","sources":["../../src/models/errors/unauthorized.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;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,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
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.
|
|
63
|
+
sdkVersion: "0.17.3",
|
|
64
64
|
genVersion: "2.467.4",
|
|
65
|
-
userAgent: "speakeasy-sdk/typescript 0.17.
|
|
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
|
|
8
|
+
export const AlreadyCanceledSubscriptionError = {
|
|
9
9
|
AlreadyCanceledSubscription: "AlreadyCanceledSubscription",
|
|
10
10
|
} as const;
|
|
11
|
-
export type
|
|
12
|
-
typeof
|
|
11
|
+
export type AlreadyCanceledSubscriptionError = ClosedEnum<
|
|
12
|
+
typeof AlreadyCanceledSubscriptionError
|
|
13
13
|
>;
|
|
14
14
|
|
|
15
15
|
export type AlreadyCanceledSubscriptionData = {
|
|
16
|
-
|
|
16
|
+
error: "AlreadyCanceledSubscription";
|
|
17
17
|
detail: string;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export class AlreadyCanceledSubscription extends Error {
|
|
21
|
-
|
|
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.
|
|
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
|
|
43
|
-
typeof
|
|
44
|
-
> = z.nativeEnum(
|
|
42
|
+
export const AlreadyCanceledSubscriptionError$inboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof AlreadyCanceledSubscriptionError
|
|
44
|
+
> = z.nativeEnum(AlreadyCanceledSubscriptionError);
|
|
45
45
|
|
|
46
46
|
/** @internal */
|
|
47
|
-
export const
|
|
48
|
-
typeof
|
|
49
|
-
> =
|
|
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
|
|
56
|
-
/** @deprecated use `
|
|
57
|
-
export const inboundSchema =
|
|
58
|
-
/** @deprecated use `
|
|
59
|
-
export const 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
8
|
+
export const FileNotFoundError = {
|
|
9
9
|
FileNotFound: "FileNotFound",
|
|
10
10
|
} as const;
|
|
11
|
-
export type
|
|
11
|
+
export type FileNotFoundError = ClosedEnum<typeof FileNotFoundError>;
|
|
12
12
|
|
|
13
13
|
export type FileNotFoundData = {
|
|
14
|
-
|
|
14
|
+
error: "FileNotFound";
|
|
15
15
|
detail: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export class FileNotFound extends Error {
|
|
19
|
-
|
|
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.
|
|
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
|
|
41
|
-
typeof
|
|
42
|
-
> = z.nativeEnum(
|
|
40
|
+
export const FileNotFoundError$inboundSchema: z.ZodNativeEnum<
|
|
41
|
+
typeof FileNotFoundError
|
|
42
|
+
> = z.nativeEnum(FileNotFoundError);
|
|
43
43
|
|
|
44
44
|
/** @internal */
|
|
45
|
-
export const
|
|
46
|
-
typeof
|
|
47
|
-
> =
|
|
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
|
|
54
|
-
/** @deprecated use `
|
|
55
|
-
export const inboundSchema =
|
|
56
|
-
/** @deprecated use `
|
|
57
|
-
export const 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
8
|
+
export const NotPermittedError = {
|
|
9
9
|
NotPermitted: "NotPermitted",
|
|
10
10
|
} as const;
|
|
11
|
-
export type
|
|
11
|
+
export type NotPermittedError = ClosedEnum<typeof NotPermittedError>;
|
|
12
12
|
|
|
13
13
|
export type NotPermittedData = {
|
|
14
|
-
|
|
14
|
+
error: "NotPermitted";
|
|
15
15
|
detail: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export class NotPermitted extends Error {
|
|
19
|
-
|
|
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.
|
|
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
|
|
41
|
-
typeof
|
|
42
|
-
> = z.nativeEnum(
|
|
40
|
+
export const NotPermittedError$inboundSchema: z.ZodNativeEnum<
|
|
41
|
+
typeof NotPermittedError
|
|
42
|
+
> = z.nativeEnum(NotPermittedError);
|
|
43
43
|
|
|
44
44
|
/** @internal */
|
|
45
|
-
export const
|
|
46
|
-
typeof
|
|
47
|
-
> =
|
|
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
|
|
54
|
-
/** @deprecated use `
|
|
55
|
-
export const inboundSchema =
|
|
56
|
-
/** @deprecated use `
|
|
57
|
-
export const 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
8
|
+
export const ErrorT = {
|
|
9
9
|
ResourceNotFound: "ResourceNotFound",
|
|
10
10
|
} as const;
|
|
11
|
-
export type
|
|
11
|
+
export type ErrorT = ClosedEnum<typeof ErrorT>;
|
|
12
12
|
|
|
13
13
|
export type ResourceNotFoundData = {
|
|
14
|
-
|
|
14
|
+
error: "ResourceNotFound";
|
|
15
15
|
detail: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export class ResourceNotFound extends Error {
|
|
19
|
-
|
|
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.
|
|
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
|
|
41
|
-
|
|
42
|
-
);
|
|
40
|
+
export const ErrorT$inboundSchema: z.ZodNativeEnum<typeof ErrorT> = z
|
|
41
|
+
.nativeEnum(ErrorT);
|
|
43
42
|
|
|
44
43
|
/** @internal */
|
|
45
|
-
export const
|
|
46
|
-
|
|
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
|
|
53
|
-
/** @deprecated use `
|
|
54
|
-
export const inboundSchema =
|
|
55
|
-
/** @deprecated use `
|
|
56
|
-
export const 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
8
|
+
export const UnauthorizedError = {
|
|
9
9
|
Unauthorized: "Unauthorized",
|
|
10
10
|
} as const;
|
|
11
|
-
export type
|
|
11
|
+
export type UnauthorizedError = ClosedEnum<typeof UnauthorizedError>;
|
|
12
12
|
|
|
13
13
|
export type UnauthorizedData = {
|
|
14
|
-
|
|
14
|
+
error: "Unauthorized";
|
|
15
15
|
detail: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export class Unauthorized extends Error {
|
|
19
|
-
|
|
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.
|
|
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
|
|
41
|
-
typeof
|
|
42
|
-
> = z.nativeEnum(
|
|
40
|
+
export const UnauthorizedError$inboundSchema: z.ZodNativeEnum<
|
|
41
|
+
typeof UnauthorizedError
|
|
42
|
+
> = z.nativeEnum(UnauthorizedError);
|
|
43
43
|
|
|
44
44
|
/** @internal */
|
|
45
|
-
export const
|
|
46
|
-
typeof
|
|
47
|
-
> =
|
|
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
|
|
54
|
-
/** @deprecated use `
|
|
55
|
-
export const inboundSchema =
|
|
56
|
-
/** @deprecated use `
|
|
57
|
-
export const 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
87
|
+
error: z.literal("Unauthorized").default("Unauthorized"),
|
|
88
88
|
detail: z.string(),
|
|
89
89
|
}));
|
|
90
90
|
|