@unkey/api 2.0.0-alpha.1 → 2.0.0-alpha.2
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/README.md +15 -34
- package/dist/commonjs/funcs/livenessCheck.d.ts +1 -1
- package/dist/commonjs/funcs/livenessCheck.d.ts.map +1 -1
- package/dist/commonjs/funcs/livenessCheck.js +5 -9
- package/dist/commonjs/funcs/livenessCheck.js.map +1 -1
- package/dist/commonjs/funcs/ratelimitDeleteOverride.d.ts +1 -1
- package/dist/commonjs/funcs/ratelimitDeleteOverride.d.ts.map +1 -1
- package/dist/commonjs/funcs/ratelimitDeleteOverride.js +5 -13
- package/dist/commonjs/funcs/ratelimitDeleteOverride.js.map +1 -1
- package/dist/commonjs/funcs/ratelimitGetOverride.d.ts +1 -1
- package/dist/commonjs/funcs/ratelimitGetOverride.d.ts.map +1 -1
- package/dist/commonjs/funcs/ratelimitGetOverride.js +5 -13
- package/dist/commonjs/funcs/ratelimitGetOverride.js.map +1 -1
- package/dist/commonjs/funcs/ratelimitLimit.d.ts +1 -1
- package/dist/commonjs/funcs/ratelimitLimit.d.ts.map +1 -1
- package/dist/commonjs/funcs/ratelimitLimit.js +5 -13
- package/dist/commonjs/funcs/ratelimitLimit.js.map +1 -1
- package/dist/commonjs/funcs/ratelimitSetOverride.d.ts +1 -1
- package/dist/commonjs/funcs/ratelimitSetOverride.d.ts.map +1 -1
- package/dist/commonjs/funcs/ratelimitSetOverride.js +5 -13
- package/dist/commonjs/funcs/ratelimitSetOverride.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/matchers.d.ts +1 -1
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +9 -6
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/models/components/httpmetadata.d.ts +37 -0
- package/dist/commonjs/models/components/httpmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/httpmetadata.js +86 -0
- package/dist/commonjs/models/components/httpmetadata.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/errors/apierror.d.ts +8 -5
- package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/apierror.js +3 -9
- package/dist/commonjs/models/errors/apierror.js.map +1 -1
- package/dist/{esm/models/errors/notfounderror.d.ts → commonjs/models/errors/baseerror.d.ts} +15 -15
- package/dist/commonjs/models/errors/baseerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/{notfounderror.js → baseerror.js} +15 -15
- package/dist/commonjs/models/errors/baseerror.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +1 -5
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -5
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/liveness.d.ts +2 -15
- package/dist/commonjs/models/operations/liveness.d.ts.map +1 -1
- package/dist/commonjs/models/operations/liveness.js +4 -14
- package/dist/commonjs/models/operations/liveness.js.map +1 -1
- package/dist/commonjs/models/operations/ratelimitdeleteoverride.d.ts +2 -15
- package/dist/commonjs/models/operations/ratelimitdeleteoverride.d.ts.map +1 -1
- package/dist/commonjs/models/operations/ratelimitdeleteoverride.js +4 -14
- package/dist/commonjs/models/operations/ratelimitdeleteoverride.js.map +1 -1
- package/dist/commonjs/models/operations/ratelimitgetoverride.d.ts +2 -15
- package/dist/commonjs/models/operations/ratelimitgetoverride.d.ts.map +1 -1
- package/dist/commonjs/models/operations/ratelimitgetoverride.js +4 -14
- package/dist/commonjs/models/operations/ratelimitgetoverride.js.map +1 -1
- package/dist/commonjs/models/operations/ratelimitsetoverride.d.ts +2 -15
- package/dist/commonjs/models/operations/ratelimitsetoverride.d.ts.map +1 -1
- package/dist/commonjs/models/operations/ratelimitsetoverride.js +4 -14
- package/dist/commonjs/models/operations/ratelimitsetoverride.js.map +1 -1
- package/dist/commonjs/models/operations/v1ratelimitlimit.d.ts +2 -15
- package/dist/commonjs/models/operations/v1ratelimitlimit.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1ratelimitlimit.js +4 -14
- package/dist/commonjs/models/operations/v1ratelimitlimit.js.map +1 -1
- package/dist/esm/funcs/livenessCheck.d.ts +1 -1
- package/dist/esm/funcs/livenessCheck.d.ts.map +1 -1
- package/dist/esm/funcs/livenessCheck.js +5 -9
- package/dist/esm/funcs/livenessCheck.js.map +1 -1
- package/dist/esm/funcs/ratelimitDeleteOverride.d.ts +1 -1
- package/dist/esm/funcs/ratelimitDeleteOverride.d.ts.map +1 -1
- package/dist/esm/funcs/ratelimitDeleteOverride.js +5 -13
- package/dist/esm/funcs/ratelimitDeleteOverride.js.map +1 -1
- package/dist/esm/funcs/ratelimitGetOverride.d.ts +1 -1
- package/dist/esm/funcs/ratelimitGetOverride.d.ts.map +1 -1
- package/dist/esm/funcs/ratelimitGetOverride.js +5 -13
- package/dist/esm/funcs/ratelimitGetOverride.js.map +1 -1
- package/dist/esm/funcs/ratelimitLimit.d.ts +1 -1
- package/dist/esm/funcs/ratelimitLimit.d.ts.map +1 -1
- package/dist/esm/funcs/ratelimitLimit.js +5 -13
- package/dist/esm/funcs/ratelimitLimit.js.map +1 -1
- package/dist/esm/funcs/ratelimitSetOverride.d.ts +1 -1
- package/dist/esm/funcs/ratelimitSetOverride.d.ts.map +1 -1
- package/dist/esm/funcs/ratelimitSetOverride.js +5 -13
- package/dist/esm/funcs/ratelimitSetOverride.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/matchers.d.ts +1 -1
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +9 -6
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/models/components/httpmetadata.d.ts +37 -0
- package/dist/esm/models/components/httpmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/httpmetadata.js +48 -0
- package/dist/esm/models/components/httpmetadata.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/errors/apierror.d.ts +8 -5
- package/dist/esm/models/errors/apierror.d.ts.map +1 -1
- package/dist/esm/models/errors/apierror.js +3 -9
- package/dist/esm/models/errors/apierror.js.map +1 -1
- package/dist/{commonjs/models/errors/notfounderror.d.ts → esm/models/errors/baseerror.d.ts} +15 -15
- package/dist/esm/models/errors/baseerror.d.ts.map +1 -0
- package/dist/esm/models/errors/{notfounderror.js → baseerror.js} +13 -13
- package/dist/esm/models/errors/baseerror.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +1 -5
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -5
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/liveness.d.ts +2 -15
- package/dist/esm/models/operations/liveness.d.ts.map +1 -1
- package/dist/esm/models/operations/liveness.js +4 -14
- package/dist/esm/models/operations/liveness.js.map +1 -1
- package/dist/esm/models/operations/ratelimitdeleteoverride.d.ts +2 -15
- package/dist/esm/models/operations/ratelimitdeleteoverride.d.ts.map +1 -1
- package/dist/esm/models/operations/ratelimitdeleteoverride.js +4 -14
- package/dist/esm/models/operations/ratelimitdeleteoverride.js.map +1 -1
- package/dist/esm/models/operations/ratelimitgetoverride.d.ts +2 -15
- package/dist/esm/models/operations/ratelimitgetoverride.d.ts.map +1 -1
- package/dist/esm/models/operations/ratelimitgetoverride.js +4 -14
- package/dist/esm/models/operations/ratelimitgetoverride.js.map +1 -1
- package/dist/esm/models/operations/ratelimitsetoverride.d.ts +2 -15
- package/dist/esm/models/operations/ratelimitsetoverride.d.ts.map +1 -1
- package/dist/esm/models/operations/ratelimitsetoverride.js +4 -14
- package/dist/esm/models/operations/ratelimitsetoverride.js.map +1 -1
- package/dist/esm/models/operations/v1ratelimitlimit.d.ts +2 -15
- package/dist/esm/models/operations/v1ratelimitlimit.d.ts.map +1 -1
- package/dist/esm/models/operations/v1ratelimitlimit.js +4 -14
- package/dist/esm/models/operations/v1ratelimitlimit.js.map +1 -1
- package/docs/sdks/liveness/README.md +5 -5
- package/docs/sdks/ratelimit/README.md +24 -32
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/livenessCheck.ts +11 -15
- package/src/funcs/ratelimitDeleteOverride.ts +11 -27
- package/src/funcs/ratelimitGetOverride.ts +11 -27
- package/src/funcs/ratelimitLimit.ts +11 -27
- package/src/funcs/ratelimitSetOverride.ts +11 -27
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +9 -12
- package/src/models/components/httpmetadata.ts +87 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/errors/apierror.ts +7 -13
- package/src/models/errors/{notfounderror.ts → baseerror.ts} +20 -20
- package/src/models/errors/index.ts +1 -5
- package/src/models/operations/liveness.ts +6 -29
- package/src/models/operations/ratelimitdeleteoverride.ts +6 -29
- package/src/models/operations/ratelimitgetoverride.ts +6 -29
- package/src/models/operations/ratelimitsetoverride.ts +6 -29
- package/src/models/operations/v1ratelimitlimit.ts +6 -29
- package/dist/commonjs/models/errors/forbiddenerror.d.ts +0 -82
- package/dist/commonjs/models/errors/forbiddenerror.d.ts.map +0 -1
- package/dist/commonjs/models/errors/forbiddenerror.js +0 -93
- package/dist/commonjs/models/errors/forbiddenerror.js.map +0 -1
- package/dist/commonjs/models/errors/internalservererror.d.ts +0 -82
- package/dist/commonjs/models/errors/internalservererror.d.ts.map +0 -1
- package/dist/commonjs/models/errors/internalservererror.js +0 -93
- package/dist/commonjs/models/errors/internalservererror.js.map +0 -1
- package/dist/commonjs/models/errors/notfounderror.d.ts.map +0 -1
- package/dist/commonjs/models/errors/notfounderror.js.map +0 -1
- package/dist/commonjs/models/errors/preconditionfailederror.d.ts +0 -82
- package/dist/commonjs/models/errors/preconditionfailederror.d.ts.map +0 -1
- package/dist/commonjs/models/errors/preconditionfailederror.js +0 -93
- package/dist/commonjs/models/errors/preconditionfailederror.js.map +0 -1
- package/dist/commonjs/models/errors/unauthorizederror.d.ts +0 -82
- package/dist/commonjs/models/errors/unauthorizederror.d.ts.map +0 -1
- package/dist/commonjs/models/errors/unauthorizederror.js +0 -93
- package/dist/commonjs/models/errors/unauthorizederror.js.map +0 -1
- package/dist/esm/models/errors/forbiddenerror.d.ts +0 -82
- package/dist/esm/models/errors/forbiddenerror.d.ts.map +0 -1
- package/dist/esm/models/errors/forbiddenerror.js +0 -56
- package/dist/esm/models/errors/forbiddenerror.js.map +0 -1
- package/dist/esm/models/errors/internalservererror.d.ts +0 -82
- package/dist/esm/models/errors/internalservererror.d.ts.map +0 -1
- package/dist/esm/models/errors/internalservererror.js +0 -56
- package/dist/esm/models/errors/internalservererror.js.map +0 -1
- package/dist/esm/models/errors/notfounderror.d.ts.map +0 -1
- package/dist/esm/models/errors/notfounderror.js.map +0 -1
- package/dist/esm/models/errors/preconditionfailederror.d.ts +0 -82
- package/dist/esm/models/errors/preconditionfailederror.d.ts.map +0 -1
- package/dist/esm/models/errors/preconditionfailederror.js +0 -56
- package/dist/esm/models/errors/preconditionfailederror.js.map +0 -1
- package/dist/esm/models/errors/unauthorizederror.d.ts +0 -82
- package/dist/esm/models/errors/unauthorizederror.d.ts.map +0 -1
- package/dist/esm/models/errors/unauthorizederror.js +0 -56
- package/dist/esm/models/errors/unauthorizederror.js.map +0 -1
- package/src/models/errors/forbiddenerror.ts +0 -135
- package/src/models/errors/internalservererror.ts +0 -135
- package/src/models/errors/preconditionfailederror.ts +0 -135
- package/src/models/errors/unauthorizederror.ts +0 -135
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export type InternalServerErrorData = {
|
|
3
|
-
/**
|
|
4
|
-
* A unique id for this request. Please always provide this to support.
|
|
5
|
-
*/
|
|
6
|
-
requestId: string;
|
|
7
|
-
/**
|
|
8
|
-
* A human-readable explanation specific to this occurrence of the problem.
|
|
9
|
-
*/
|
|
10
|
-
detail: string;
|
|
11
|
-
/**
|
|
12
|
-
* A URI reference that identifies the specific occurrence of the problem.
|
|
13
|
-
*/
|
|
14
|
-
instance?: string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* HTTP status code
|
|
17
|
-
*/
|
|
18
|
-
status: number;
|
|
19
|
-
/**
|
|
20
|
-
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
21
|
-
*/
|
|
22
|
-
title: string;
|
|
23
|
-
/**
|
|
24
|
-
* A URI reference to human-readable documentation for the error.
|
|
25
|
-
*/
|
|
26
|
-
type: string;
|
|
27
|
-
};
|
|
28
|
-
export declare class InternalServerError extends Error {
|
|
29
|
-
/**
|
|
30
|
-
* A unique id for this request. Please always provide this to support.
|
|
31
|
-
*/
|
|
32
|
-
requestId: string;
|
|
33
|
-
/**
|
|
34
|
-
* A human-readable explanation specific to this occurrence of the problem.
|
|
35
|
-
*/
|
|
36
|
-
detail: string;
|
|
37
|
-
/**
|
|
38
|
-
* A URI reference that identifies the specific occurrence of the problem.
|
|
39
|
-
*/
|
|
40
|
-
instance?: string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* HTTP status code
|
|
43
|
-
*/
|
|
44
|
-
status: number;
|
|
45
|
-
/**
|
|
46
|
-
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
47
|
-
*/
|
|
48
|
-
title: string;
|
|
49
|
-
/**
|
|
50
|
-
* A URI reference to human-readable documentation for the error.
|
|
51
|
-
*/
|
|
52
|
-
type: string;
|
|
53
|
-
/** The original data that was passed to this error instance. */
|
|
54
|
-
data$: InternalServerErrorData;
|
|
55
|
-
constructor(err: InternalServerErrorData);
|
|
56
|
-
}
|
|
57
|
-
/** @internal */
|
|
58
|
-
export declare const InternalServerError$inboundSchema: z.ZodType<InternalServerError, z.ZodTypeDef, unknown>;
|
|
59
|
-
/** @internal */
|
|
60
|
-
export type InternalServerError$Outbound = {
|
|
61
|
-
requestId: string;
|
|
62
|
-
detail: string;
|
|
63
|
-
instance?: string | undefined;
|
|
64
|
-
status: number;
|
|
65
|
-
title: string;
|
|
66
|
-
type: string;
|
|
67
|
-
};
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const InternalServerError$outboundSchema: z.ZodType<InternalServerError$Outbound, z.ZodTypeDef, InternalServerError>;
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
-
*/
|
|
74
|
-
export declare namespace InternalServerError$ {
|
|
75
|
-
/** @deprecated use `InternalServerError$inboundSchema` instead. */
|
|
76
|
-
const inboundSchema: z.ZodType<InternalServerError, z.ZodTypeDef, unknown>;
|
|
77
|
-
/** @deprecated use `InternalServerError$outboundSchema` instead. */
|
|
78
|
-
const outboundSchema: z.ZodType<InternalServerError$Outbound, z.ZodTypeDef, InternalServerError>;
|
|
79
|
-
/** @deprecated use `InternalServerError$Outbound` instead. */
|
|
80
|
-
type Outbound = InternalServerError$Outbound;
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=internalservererror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internalservererror.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/internalservererror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,MAAM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 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
export class InternalServerError extends Error {
|
|
6
|
-
constructor(err) {
|
|
7
|
-
const message = "message" in err && typeof err.message === "string"
|
|
8
|
-
? err.message
|
|
9
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
10
|
-
super(message);
|
|
11
|
-
this.data$ = err;
|
|
12
|
-
this.requestId = err.requestId;
|
|
13
|
-
this.detail = err.detail;
|
|
14
|
-
if (err.instance != null)
|
|
15
|
-
this.instance = err.instance;
|
|
16
|
-
this.status = err.status;
|
|
17
|
-
this.title = err.title;
|
|
18
|
-
this.type = err.type;
|
|
19
|
-
this.name = "InternalServerError";
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const InternalServerError$inboundSchema = z.object({
|
|
24
|
-
requestId: z.string(),
|
|
25
|
-
detail: z.string(),
|
|
26
|
-
instance: z.string().optional(),
|
|
27
|
-
status: z.number().int(),
|
|
28
|
-
title: z.string(),
|
|
29
|
-
type: z.string(),
|
|
30
|
-
})
|
|
31
|
-
.transform((v) => {
|
|
32
|
-
return new InternalServerError(v);
|
|
33
|
-
});
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const InternalServerError$outboundSchema = z.instanceof(InternalServerError)
|
|
36
|
-
.transform(v => v.data$)
|
|
37
|
-
.pipe(z.object({
|
|
38
|
-
requestId: z.string(),
|
|
39
|
-
detail: z.string(),
|
|
40
|
-
instance: z.string().optional(),
|
|
41
|
-
status: z.number().int(),
|
|
42
|
-
title: z.string(),
|
|
43
|
-
type: z.string(),
|
|
44
|
-
}));
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
-
*/
|
|
49
|
-
export var InternalServerError$;
|
|
50
|
-
(function (InternalServerError$) {
|
|
51
|
-
/** @deprecated use `InternalServerError$inboundSchema` instead. */
|
|
52
|
-
InternalServerError$.inboundSchema = InternalServerError$inboundSchema;
|
|
53
|
-
/** @deprecated use `InternalServerError$outboundSchema` instead. */
|
|
54
|
-
InternalServerError$.outboundSchema = InternalServerError$outboundSchema;
|
|
55
|
-
})(InternalServerError$ || (InternalServerError$ = {}));
|
|
56
|
-
//# sourceMappingURL=internalservererror.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internalservererror.js","sourceRoot":"","sources":["../../../../src/models/errors/internalservererror.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA6BzB,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IA6B5C,YAAY,GAA4B;QACtC,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,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QACzB,IAAI,GAAG,CAAC,QAAQ,IAAI,IAAI;YAAE,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QACvD,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QAErB,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACpC,CAAC;CACF;AAED,gBAAgB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,0 @@
|
|
|
1
|
-
{"version":3,"file":"notfounderror.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/notfounderror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,qBAAa,aAAc,SAAQ,KAAK;IACtC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,gEAAgE;IAChE,KAAK,EAAE,iBAAiB,CAAC;gBAEb,GAAG,EAAE,iBAAiB;CAgBnC;AAED,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAWL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAA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"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export type PreconditionFailedErrorData = {
|
|
3
|
-
/**
|
|
4
|
-
* A unique id for this request. Please always provide this to support.
|
|
5
|
-
*/
|
|
6
|
-
requestId: string;
|
|
7
|
-
/**
|
|
8
|
-
* A human-readable explanation specific to this occurrence of the problem.
|
|
9
|
-
*/
|
|
10
|
-
detail: string;
|
|
11
|
-
/**
|
|
12
|
-
* A URI reference that identifies the specific occurrence of the problem.
|
|
13
|
-
*/
|
|
14
|
-
instance?: string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* HTTP status code
|
|
17
|
-
*/
|
|
18
|
-
status: number;
|
|
19
|
-
/**
|
|
20
|
-
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
21
|
-
*/
|
|
22
|
-
title: string;
|
|
23
|
-
/**
|
|
24
|
-
* A URI reference to human-readable documentation for the error.
|
|
25
|
-
*/
|
|
26
|
-
type: string;
|
|
27
|
-
};
|
|
28
|
-
export declare class PreconditionFailedError extends Error {
|
|
29
|
-
/**
|
|
30
|
-
* A unique id for this request. Please always provide this to support.
|
|
31
|
-
*/
|
|
32
|
-
requestId: string;
|
|
33
|
-
/**
|
|
34
|
-
* A human-readable explanation specific to this occurrence of the problem.
|
|
35
|
-
*/
|
|
36
|
-
detail: string;
|
|
37
|
-
/**
|
|
38
|
-
* A URI reference that identifies the specific occurrence of the problem.
|
|
39
|
-
*/
|
|
40
|
-
instance?: string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* HTTP status code
|
|
43
|
-
*/
|
|
44
|
-
status: number;
|
|
45
|
-
/**
|
|
46
|
-
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
47
|
-
*/
|
|
48
|
-
title: string;
|
|
49
|
-
/**
|
|
50
|
-
* A URI reference to human-readable documentation for the error.
|
|
51
|
-
*/
|
|
52
|
-
type: string;
|
|
53
|
-
/** The original data that was passed to this error instance. */
|
|
54
|
-
data$: PreconditionFailedErrorData;
|
|
55
|
-
constructor(err: PreconditionFailedErrorData);
|
|
56
|
-
}
|
|
57
|
-
/** @internal */
|
|
58
|
-
export declare const PreconditionFailedError$inboundSchema: z.ZodType<PreconditionFailedError, z.ZodTypeDef, unknown>;
|
|
59
|
-
/** @internal */
|
|
60
|
-
export type PreconditionFailedError$Outbound = {
|
|
61
|
-
requestId: string;
|
|
62
|
-
detail: string;
|
|
63
|
-
instance?: string | undefined;
|
|
64
|
-
status: number;
|
|
65
|
-
title: string;
|
|
66
|
-
type: string;
|
|
67
|
-
};
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const PreconditionFailedError$outboundSchema: z.ZodType<PreconditionFailedError$Outbound, z.ZodTypeDef, PreconditionFailedError>;
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
-
*/
|
|
74
|
-
export declare namespace PreconditionFailedError$ {
|
|
75
|
-
/** @deprecated use `PreconditionFailedError$inboundSchema` instead. */
|
|
76
|
-
const inboundSchema: z.ZodType<PreconditionFailedError, z.ZodTypeDef, unknown>;
|
|
77
|
-
/** @deprecated use `PreconditionFailedError$outboundSchema` instead. */
|
|
78
|
-
const outboundSchema: z.ZodType<PreconditionFailedError$Outbound, z.ZodTypeDef, PreconditionFailedError>;
|
|
79
|
-
/** @deprecated use `PreconditionFailedError$Outbound` instead. */
|
|
80
|
-
type Outbound = PreconditionFailedError$Outbound;
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=preconditionfailederror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preconditionfailederror.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/preconditionfailederror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CA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AC;IACnE,wEAAwE;IACjE,MAAM,cAAc,oFAAyC,CAAC;IACrE,kEAAkE;IAClE,KAAY,QAAQ,GAAG,gCAAgC,CAAC;CACzD"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
export class PreconditionFailedError extends Error {
|
|
6
|
-
constructor(err) {
|
|
7
|
-
const message = "message" in err && typeof err.message === "string"
|
|
8
|
-
? err.message
|
|
9
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
10
|
-
super(message);
|
|
11
|
-
this.data$ = err;
|
|
12
|
-
this.requestId = err.requestId;
|
|
13
|
-
this.detail = err.detail;
|
|
14
|
-
if (err.instance != null)
|
|
15
|
-
this.instance = err.instance;
|
|
16
|
-
this.status = err.status;
|
|
17
|
-
this.title = err.title;
|
|
18
|
-
this.type = err.type;
|
|
19
|
-
this.name = "PreconditionFailedError";
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const PreconditionFailedError$inboundSchema = z.object({
|
|
24
|
-
requestId: z.string(),
|
|
25
|
-
detail: z.string(),
|
|
26
|
-
instance: z.string().optional(),
|
|
27
|
-
status: z.number().int(),
|
|
28
|
-
title: z.string(),
|
|
29
|
-
type: z.string(),
|
|
30
|
-
})
|
|
31
|
-
.transform((v) => {
|
|
32
|
-
return new PreconditionFailedError(v);
|
|
33
|
-
});
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const PreconditionFailedError$outboundSchema = z.instanceof(PreconditionFailedError)
|
|
36
|
-
.transform(v => v.data$)
|
|
37
|
-
.pipe(z.object({
|
|
38
|
-
requestId: z.string(),
|
|
39
|
-
detail: z.string(),
|
|
40
|
-
instance: z.string().optional(),
|
|
41
|
-
status: z.number().int(),
|
|
42
|
-
title: z.string(),
|
|
43
|
-
type: z.string(),
|
|
44
|
-
}));
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
-
*/
|
|
49
|
-
export var PreconditionFailedError$;
|
|
50
|
-
(function (PreconditionFailedError$) {
|
|
51
|
-
/** @deprecated use `PreconditionFailedError$inboundSchema` instead. */
|
|
52
|
-
PreconditionFailedError$.inboundSchema = PreconditionFailedError$inboundSchema;
|
|
53
|
-
/** @deprecated use `PreconditionFailedError$outboundSchema` instead. */
|
|
54
|
-
PreconditionFailedError$.outboundSchema = PreconditionFailedError$outboundSchema;
|
|
55
|
-
})(PreconditionFailedError$ || (PreconditionFailedError$ = {}));
|
|
56
|
-
//# sourceMappingURL=preconditionfailederror.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preconditionfailederror.js","sourceRoot":"","sources":["../../../../src/models/errors/preconditionfailederror.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA6BzB,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IA6BhD,YAAY,GAAgC;QAC1C,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,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QACzB,IAAI,GAAG,CAAC,QAAQ,IAAI,IAAI;YAAE,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QACvD,IAAI,CAAC,MAAM,GAAG,GAAG,CAA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B,CAOxC;AAPD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,qCAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,sCAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,KAAxB,wBAAwB,QAOxC"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export type UnauthorizedErrorData = {
|
|
3
|
-
/**
|
|
4
|
-
* A unique id for this request. Please always provide this to support.
|
|
5
|
-
*/
|
|
6
|
-
requestId: string;
|
|
7
|
-
/**
|
|
8
|
-
* A human-readable explanation specific to this occurrence of the problem.
|
|
9
|
-
*/
|
|
10
|
-
detail: string;
|
|
11
|
-
/**
|
|
12
|
-
* A URI reference that identifies the specific occurrence of the problem.
|
|
13
|
-
*/
|
|
14
|
-
instance?: string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* HTTP status code
|
|
17
|
-
*/
|
|
18
|
-
status: number;
|
|
19
|
-
/**
|
|
20
|
-
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
21
|
-
*/
|
|
22
|
-
title: string;
|
|
23
|
-
/**
|
|
24
|
-
* A URI reference to human-readable documentation for the error.
|
|
25
|
-
*/
|
|
26
|
-
type: string;
|
|
27
|
-
};
|
|
28
|
-
export declare class UnauthorizedError extends Error {
|
|
29
|
-
/**
|
|
30
|
-
* A unique id for this request. Please always provide this to support.
|
|
31
|
-
*/
|
|
32
|
-
requestId: string;
|
|
33
|
-
/**
|
|
34
|
-
* A human-readable explanation specific to this occurrence of the problem.
|
|
35
|
-
*/
|
|
36
|
-
detail: string;
|
|
37
|
-
/**
|
|
38
|
-
* A URI reference that identifies the specific occurrence of the problem.
|
|
39
|
-
*/
|
|
40
|
-
instance?: string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* HTTP status code
|
|
43
|
-
*/
|
|
44
|
-
status: number;
|
|
45
|
-
/**
|
|
46
|
-
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
47
|
-
*/
|
|
48
|
-
title: string;
|
|
49
|
-
/**
|
|
50
|
-
* A URI reference to human-readable documentation for the error.
|
|
51
|
-
*/
|
|
52
|
-
type: string;
|
|
53
|
-
/** The original data that was passed to this error instance. */
|
|
54
|
-
data$: UnauthorizedErrorData;
|
|
55
|
-
constructor(err: UnauthorizedErrorData);
|
|
56
|
-
}
|
|
57
|
-
/** @internal */
|
|
58
|
-
export declare const UnauthorizedError$inboundSchema: z.ZodType<UnauthorizedError, z.ZodTypeDef, unknown>;
|
|
59
|
-
/** @internal */
|
|
60
|
-
export type UnauthorizedError$Outbound = {
|
|
61
|
-
requestId: string;
|
|
62
|
-
detail: string;
|
|
63
|
-
instance?: string | undefined;
|
|
64
|
-
status: number;
|
|
65
|
-
title: string;
|
|
66
|
-
type: string;
|
|
67
|
-
};
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const UnauthorizedError$outboundSchema: z.ZodType<UnauthorizedError$Outbound, z.ZodTypeDef, UnauthorizedError>;
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
-
*/
|
|
74
|
-
export declare namespace UnauthorizedError$ {
|
|
75
|
-
/** @deprecated use `UnauthorizedError$inboundSchema` instead. */
|
|
76
|
-
const inboundSchema: z.ZodType<UnauthorizedError, z.ZodTypeDef, unknown>;
|
|
77
|
-
/** @deprecated use `UnauthorizedError$outboundSchema` instead. */
|
|
78
|
-
const outboundSchema: z.ZodType<UnauthorizedError$Outbound, z.ZodTypeDef, UnauthorizedError>;
|
|
79
|
-
/** @deprecated use `UnauthorizedError$Outbound` instead. */
|
|
80
|
-
type Outbound = UnauthorizedError$Outbound;
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=unauthorizederror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unauthorizederror.d.ts","sourceRoot":"","sources":["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,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAUd,CAAC;AAEN;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
export class UnauthorizedError extends Error {
|
|
6
|
-
constructor(err) {
|
|
7
|
-
const message = "message" in err && typeof err.message === "string"
|
|
8
|
-
? err.message
|
|
9
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
10
|
-
super(message);
|
|
11
|
-
this.data$ = err;
|
|
12
|
-
this.requestId = err.requestId;
|
|
13
|
-
this.detail = err.detail;
|
|
14
|
-
if (err.instance != null)
|
|
15
|
-
this.instance = err.instance;
|
|
16
|
-
this.status = err.status;
|
|
17
|
-
this.title = err.title;
|
|
18
|
-
this.type = err.type;
|
|
19
|
-
this.name = "UnauthorizedError";
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const UnauthorizedError$inboundSchema = z.object({
|
|
24
|
-
requestId: z.string(),
|
|
25
|
-
detail: z.string(),
|
|
26
|
-
instance: z.string().optional(),
|
|
27
|
-
status: z.number().int(),
|
|
28
|
-
title: z.string(),
|
|
29
|
-
type: z.string(),
|
|
30
|
-
})
|
|
31
|
-
.transform((v) => {
|
|
32
|
-
return new UnauthorizedError(v);
|
|
33
|
-
});
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const UnauthorizedError$outboundSchema = z.instanceof(UnauthorizedError)
|
|
36
|
-
.transform(v => v.data$)
|
|
37
|
-
.pipe(z.object({
|
|
38
|
-
requestId: z.string(),
|
|
39
|
-
detail: z.string(),
|
|
40
|
-
instance: z.string().optional(),
|
|
41
|
-
status: z.number().int(),
|
|
42
|
-
title: z.string(),
|
|
43
|
-
type: z.string(),
|
|
44
|
-
}));
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
-
*/
|
|
49
|
-
export var UnauthorizedError$;
|
|
50
|
-
(function (UnauthorizedError$) {
|
|
51
|
-
/** @deprecated use `UnauthorizedError$inboundSchema` instead. */
|
|
52
|
-
UnauthorizedError$.inboundSchema = UnauthorizedError$inboundSchema;
|
|
53
|
-
/** @deprecated use `UnauthorizedError$outboundSchema` instead. */
|
|
54
|
-
UnauthorizedError$.outboundSchema = UnauthorizedError$outboundSchema;
|
|
55
|
-
})(UnauthorizedError$ || (UnauthorizedError$ = {}));
|
|
56
|
-
//# sourceMappingURL=unauthorizederror.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unauthorizederror.js","sourceRoot":"","sources":["../../../../src/models/errors/unauthorizederror.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA6BzB,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IA6B1C,YAAY,GAA0B;QACpC,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,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QACzB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,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,MAAM,KAAW,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,+BAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,gCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,KAAlB,kBAAkB,QAOlC"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
|
|
7
|
-
export type ForbiddenErrorData = {
|
|
8
|
-
/**
|
|
9
|
-
* A unique id for this request. Please always provide this to support.
|
|
10
|
-
*/
|
|
11
|
-
requestId: string;
|
|
12
|
-
/**
|
|
13
|
-
* A human-readable explanation specific to this occurrence of the problem.
|
|
14
|
-
*/
|
|
15
|
-
detail: string;
|
|
16
|
-
/**
|
|
17
|
-
* A URI reference that identifies the specific occurrence of the problem.
|
|
18
|
-
*/
|
|
19
|
-
instance?: string | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* HTTP status code
|
|
22
|
-
*/
|
|
23
|
-
status: number;
|
|
24
|
-
/**
|
|
25
|
-
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
26
|
-
*/
|
|
27
|
-
title: string;
|
|
28
|
-
/**
|
|
29
|
-
* A URI reference to human-readable documentation for the error.
|
|
30
|
-
*/
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export class ForbiddenError extends Error {
|
|
35
|
-
/**
|
|
36
|
-
* A unique id for this request. Please always provide this to support.
|
|
37
|
-
*/
|
|
38
|
-
requestId: string;
|
|
39
|
-
/**
|
|
40
|
-
* A human-readable explanation specific to this occurrence of the problem.
|
|
41
|
-
*/
|
|
42
|
-
detail: string;
|
|
43
|
-
/**
|
|
44
|
-
* A URI reference that identifies the specific occurrence of the problem.
|
|
45
|
-
*/
|
|
46
|
-
instance?: string | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* HTTP status code
|
|
49
|
-
*/
|
|
50
|
-
status: number;
|
|
51
|
-
/**
|
|
52
|
-
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
53
|
-
*/
|
|
54
|
-
title: string;
|
|
55
|
-
/**
|
|
56
|
-
* A URI reference to human-readable documentation for the error.
|
|
57
|
-
*/
|
|
58
|
-
type: string;
|
|
59
|
-
|
|
60
|
-
/** The original data that was passed to this error instance. */
|
|
61
|
-
data$: ForbiddenErrorData;
|
|
62
|
-
|
|
63
|
-
constructor(err: ForbiddenErrorData) {
|
|
64
|
-
const message = "message" in err && typeof err.message === "string"
|
|
65
|
-
? err.message
|
|
66
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
67
|
-
super(message);
|
|
68
|
-
this.data$ = err;
|
|
69
|
-
|
|
70
|
-
this.requestId = err.requestId;
|
|
71
|
-
this.detail = err.detail;
|
|
72
|
-
if (err.instance != null) this.instance = err.instance;
|
|
73
|
-
this.status = err.status;
|
|
74
|
-
this.title = err.title;
|
|
75
|
-
this.type = err.type;
|
|
76
|
-
|
|
77
|
-
this.name = "ForbiddenError";
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const ForbiddenError$inboundSchema: z.ZodType<
|
|
83
|
-
ForbiddenError,
|
|
84
|
-
z.ZodTypeDef,
|
|
85
|
-
unknown
|
|
86
|
-
> = z.object({
|
|
87
|
-
requestId: z.string(),
|
|
88
|
-
detail: z.string(),
|
|
89
|
-
instance: z.string().optional(),
|
|
90
|
-
status: z.number().int(),
|
|
91
|
-
title: z.string(),
|
|
92
|
-
type: z.string(),
|
|
93
|
-
})
|
|
94
|
-
.transform((v) => {
|
|
95
|
-
return new ForbiddenError(v);
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
/** @internal */
|
|
99
|
-
export type ForbiddenError$Outbound = {
|
|
100
|
-
requestId: string;
|
|
101
|
-
detail: string;
|
|
102
|
-
instance?: string | undefined;
|
|
103
|
-
status: number;
|
|
104
|
-
title: string;
|
|
105
|
-
type: string;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
/** @internal */
|
|
109
|
-
export const ForbiddenError$outboundSchema: z.ZodType<
|
|
110
|
-
ForbiddenError$Outbound,
|
|
111
|
-
z.ZodTypeDef,
|
|
112
|
-
ForbiddenError
|
|
113
|
-
> = z.instanceof(ForbiddenError)
|
|
114
|
-
.transform(v => v.data$)
|
|
115
|
-
.pipe(z.object({
|
|
116
|
-
requestId: z.string(),
|
|
117
|
-
detail: z.string(),
|
|
118
|
-
instance: z.string().optional(),
|
|
119
|
-
status: z.number().int(),
|
|
120
|
-
title: z.string(),
|
|
121
|
-
type: z.string(),
|
|
122
|
-
}));
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @internal
|
|
126
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
127
|
-
*/
|
|
128
|
-
export namespace ForbiddenError$ {
|
|
129
|
-
/** @deprecated use `ForbiddenError$inboundSchema` instead. */
|
|
130
|
-
export const inboundSchema = ForbiddenError$inboundSchema;
|
|
131
|
-
/** @deprecated use `ForbiddenError$outboundSchema` instead. */
|
|
132
|
-
export const outboundSchema = ForbiddenError$outboundSchema;
|
|
133
|
-
/** @deprecated use `ForbiddenError$Outbound` instead. */
|
|
134
|
-
export type Outbound = ForbiddenError$Outbound;
|
|
135
|
-
}
|