@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
|
@@ -10,18 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type LivenessResponse = {
|
|
13
|
-
|
|
14
|
-
* HTTP response content type for this operation
|
|
15
|
-
*/
|
|
16
|
-
contentType: string;
|
|
17
|
-
/**
|
|
18
|
-
* HTTP response status code for this operation
|
|
19
|
-
*/
|
|
20
|
-
statusCode: number;
|
|
21
|
-
/**
|
|
22
|
-
* Raw HTTP response; suitable for custom response parsing
|
|
23
|
-
*/
|
|
24
|
-
rawResponse: Response;
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
25
14
|
/**
|
|
26
15
|
* OK
|
|
27
16
|
*/
|
|
@@ -34,25 +23,19 @@ export const LivenessResponse$inboundSchema: z.ZodType<
|
|
|
34
23
|
z.ZodTypeDef,
|
|
35
24
|
unknown
|
|
36
25
|
> = z.object({
|
|
37
|
-
|
|
38
|
-
StatusCode: z.number().int(),
|
|
39
|
-
RawResponse: z.instanceof(Response),
|
|
26
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
40
27
|
V2LivenessResponseBody: components.V2LivenessResponseBody$inboundSchema
|
|
41
28
|
.optional(),
|
|
42
29
|
}).transform((v) => {
|
|
43
30
|
return remap$(v, {
|
|
44
|
-
"
|
|
45
|
-
"StatusCode": "statusCode",
|
|
46
|
-
"RawResponse": "rawResponse",
|
|
31
|
+
"HttpMeta": "httpMeta",
|
|
47
32
|
"V2LivenessResponseBody": "v2LivenessResponseBody",
|
|
48
33
|
});
|
|
49
34
|
});
|
|
50
35
|
|
|
51
36
|
/** @internal */
|
|
52
37
|
export type LivenessResponse$Outbound = {
|
|
53
|
-
|
|
54
|
-
StatusCode: number;
|
|
55
|
-
RawResponse: never;
|
|
38
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
56
39
|
V2LivenessResponseBody?:
|
|
57
40
|
| components.V2LivenessResponseBody$Outbound
|
|
58
41
|
| undefined;
|
|
@@ -64,18 +47,12 @@ export const LivenessResponse$outboundSchema: z.ZodType<
|
|
|
64
47
|
z.ZodTypeDef,
|
|
65
48
|
LivenessResponse
|
|
66
49
|
> = z.object({
|
|
67
|
-
|
|
68
|
-
statusCode: z.number().int(),
|
|
69
|
-
rawResponse: z.instanceof(Response).transform(() => {
|
|
70
|
-
throw new Error("Response cannot be serialized");
|
|
71
|
-
}),
|
|
50
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
72
51
|
v2LivenessResponseBody: components.V2LivenessResponseBody$outboundSchema
|
|
73
52
|
.optional(),
|
|
74
53
|
}).transform((v) => {
|
|
75
54
|
return remap$(v, {
|
|
76
|
-
|
|
77
|
-
statusCode: "StatusCode",
|
|
78
|
-
rawResponse: "RawResponse",
|
|
55
|
+
httpMeta: "HttpMeta",
|
|
79
56
|
v2LivenessResponseBody: "V2LivenessResponseBody",
|
|
80
57
|
});
|
|
81
58
|
});
|
|
@@ -10,18 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type RatelimitDeleteOverrideResponse = {
|
|
13
|
-
|
|
14
|
-
* HTTP response content type for this operation
|
|
15
|
-
*/
|
|
16
|
-
contentType: string;
|
|
17
|
-
/**
|
|
18
|
-
* HTTP response status code for this operation
|
|
19
|
-
*/
|
|
20
|
-
statusCode: number;
|
|
21
|
-
/**
|
|
22
|
-
* Raw HTTP response; suitable for custom response parsing
|
|
23
|
-
*/
|
|
24
|
-
rawResponse: Response;
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
25
14
|
/**
|
|
26
15
|
* OK
|
|
27
16
|
*/
|
|
@@ -36,16 +25,12 @@ export const RatelimitDeleteOverrideResponse$inboundSchema: z.ZodType<
|
|
|
36
25
|
z.ZodTypeDef,
|
|
37
26
|
unknown
|
|
38
27
|
> = z.object({
|
|
39
|
-
|
|
40
|
-
StatusCode: z.number().int(),
|
|
41
|
-
RawResponse: z.instanceof(Response),
|
|
28
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
42
29
|
V2RatelimitDeleteOverrideResponseBody: components
|
|
43
30
|
.V2RatelimitDeleteOverrideResponseBody$inboundSchema.optional(),
|
|
44
31
|
}).transform((v) => {
|
|
45
32
|
return remap$(v, {
|
|
46
|
-
"
|
|
47
|
-
"StatusCode": "statusCode",
|
|
48
|
-
"RawResponse": "rawResponse",
|
|
33
|
+
"HttpMeta": "httpMeta",
|
|
49
34
|
"V2RatelimitDeleteOverrideResponseBody":
|
|
50
35
|
"v2RatelimitDeleteOverrideResponseBody",
|
|
51
36
|
});
|
|
@@ -53,9 +38,7 @@ export const RatelimitDeleteOverrideResponse$inboundSchema: z.ZodType<
|
|
|
53
38
|
|
|
54
39
|
/** @internal */
|
|
55
40
|
export type RatelimitDeleteOverrideResponse$Outbound = {
|
|
56
|
-
|
|
57
|
-
StatusCode: number;
|
|
58
|
-
RawResponse: never;
|
|
41
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
59
42
|
V2RatelimitDeleteOverrideResponseBody?:
|
|
60
43
|
| components.V2RatelimitDeleteOverrideResponseBody$Outbound
|
|
61
44
|
| undefined;
|
|
@@ -67,18 +50,12 @@ export const RatelimitDeleteOverrideResponse$outboundSchema: z.ZodType<
|
|
|
67
50
|
z.ZodTypeDef,
|
|
68
51
|
RatelimitDeleteOverrideResponse
|
|
69
52
|
> = z.object({
|
|
70
|
-
|
|
71
|
-
statusCode: z.number().int(),
|
|
72
|
-
rawResponse: z.instanceof(Response).transform(() => {
|
|
73
|
-
throw new Error("Response cannot be serialized");
|
|
74
|
-
}),
|
|
53
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
75
54
|
v2RatelimitDeleteOverrideResponseBody: components
|
|
76
55
|
.V2RatelimitDeleteOverrideResponseBody$outboundSchema.optional(),
|
|
77
56
|
}).transform((v) => {
|
|
78
57
|
return remap$(v, {
|
|
79
|
-
|
|
80
|
-
statusCode: "StatusCode",
|
|
81
|
-
rawResponse: "RawResponse",
|
|
58
|
+
httpMeta: "HttpMeta",
|
|
82
59
|
v2RatelimitDeleteOverrideResponseBody:
|
|
83
60
|
"V2RatelimitDeleteOverrideResponseBody",
|
|
84
61
|
});
|
|
@@ -10,18 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type RatelimitGetOverrideResponse = {
|
|
13
|
-
|
|
14
|
-
* HTTP response content type for this operation
|
|
15
|
-
*/
|
|
16
|
-
contentType: string;
|
|
17
|
-
/**
|
|
18
|
-
* HTTP response status code for this operation
|
|
19
|
-
*/
|
|
20
|
-
statusCode: number;
|
|
21
|
-
/**
|
|
22
|
-
* Raw HTTP response; suitable for custom response parsing
|
|
23
|
-
*/
|
|
24
|
-
rawResponse: Response;
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
25
14
|
/**
|
|
26
15
|
* OK
|
|
27
16
|
*/
|
|
@@ -36,25 +25,19 @@ export const RatelimitGetOverrideResponse$inboundSchema: z.ZodType<
|
|
|
36
25
|
z.ZodTypeDef,
|
|
37
26
|
unknown
|
|
38
27
|
> = z.object({
|
|
39
|
-
|
|
40
|
-
StatusCode: z.number().int(),
|
|
41
|
-
RawResponse: z.instanceof(Response),
|
|
28
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
42
29
|
V2RatelimitGetOverrideResponseBody: components
|
|
43
30
|
.V2RatelimitGetOverrideResponseBody$inboundSchema.optional(),
|
|
44
31
|
}).transform((v) => {
|
|
45
32
|
return remap$(v, {
|
|
46
|
-
"
|
|
47
|
-
"StatusCode": "statusCode",
|
|
48
|
-
"RawResponse": "rawResponse",
|
|
33
|
+
"HttpMeta": "httpMeta",
|
|
49
34
|
"V2RatelimitGetOverrideResponseBody": "v2RatelimitGetOverrideResponseBody",
|
|
50
35
|
});
|
|
51
36
|
});
|
|
52
37
|
|
|
53
38
|
/** @internal */
|
|
54
39
|
export type RatelimitGetOverrideResponse$Outbound = {
|
|
55
|
-
|
|
56
|
-
StatusCode: number;
|
|
57
|
-
RawResponse: never;
|
|
40
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
58
41
|
V2RatelimitGetOverrideResponseBody?:
|
|
59
42
|
| components.V2RatelimitGetOverrideResponseBody$Outbound
|
|
60
43
|
| undefined;
|
|
@@ -66,18 +49,12 @@ export const RatelimitGetOverrideResponse$outboundSchema: z.ZodType<
|
|
|
66
49
|
z.ZodTypeDef,
|
|
67
50
|
RatelimitGetOverrideResponse
|
|
68
51
|
> = z.object({
|
|
69
|
-
|
|
70
|
-
statusCode: z.number().int(),
|
|
71
|
-
rawResponse: z.instanceof(Response).transform(() => {
|
|
72
|
-
throw new Error("Response cannot be serialized");
|
|
73
|
-
}),
|
|
52
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
74
53
|
v2RatelimitGetOverrideResponseBody: components
|
|
75
54
|
.V2RatelimitGetOverrideResponseBody$outboundSchema.optional(),
|
|
76
55
|
}).transform((v) => {
|
|
77
56
|
return remap$(v, {
|
|
78
|
-
|
|
79
|
-
statusCode: "StatusCode",
|
|
80
|
-
rawResponse: "RawResponse",
|
|
57
|
+
httpMeta: "HttpMeta",
|
|
81
58
|
v2RatelimitGetOverrideResponseBody: "V2RatelimitGetOverrideResponseBody",
|
|
82
59
|
});
|
|
83
60
|
});
|
|
@@ -10,18 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type RatelimitSetOverrideResponse = {
|
|
13
|
-
|
|
14
|
-
* HTTP response content type for this operation
|
|
15
|
-
*/
|
|
16
|
-
contentType: string;
|
|
17
|
-
/**
|
|
18
|
-
* HTTP response status code for this operation
|
|
19
|
-
*/
|
|
20
|
-
statusCode: number;
|
|
21
|
-
/**
|
|
22
|
-
* Raw HTTP response; suitable for custom response parsing
|
|
23
|
-
*/
|
|
24
|
-
rawResponse: Response;
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
25
14
|
/**
|
|
26
15
|
* OK
|
|
27
16
|
*/
|
|
@@ -36,25 +25,19 @@ export const RatelimitSetOverrideResponse$inboundSchema: z.ZodType<
|
|
|
36
25
|
z.ZodTypeDef,
|
|
37
26
|
unknown
|
|
38
27
|
> = z.object({
|
|
39
|
-
|
|
40
|
-
StatusCode: z.number().int(),
|
|
41
|
-
RawResponse: z.instanceof(Response),
|
|
28
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
42
29
|
V2RatelimitSetOverrideResponseBody: components
|
|
43
30
|
.V2RatelimitSetOverrideResponseBody$inboundSchema.optional(),
|
|
44
31
|
}).transform((v) => {
|
|
45
32
|
return remap$(v, {
|
|
46
|
-
"
|
|
47
|
-
"StatusCode": "statusCode",
|
|
48
|
-
"RawResponse": "rawResponse",
|
|
33
|
+
"HttpMeta": "httpMeta",
|
|
49
34
|
"V2RatelimitSetOverrideResponseBody": "v2RatelimitSetOverrideResponseBody",
|
|
50
35
|
});
|
|
51
36
|
});
|
|
52
37
|
|
|
53
38
|
/** @internal */
|
|
54
39
|
export type RatelimitSetOverrideResponse$Outbound = {
|
|
55
|
-
|
|
56
|
-
StatusCode: number;
|
|
57
|
-
RawResponse: never;
|
|
40
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
58
41
|
V2RatelimitSetOverrideResponseBody?:
|
|
59
42
|
| components.V2RatelimitSetOverrideResponseBody$Outbound
|
|
60
43
|
| undefined;
|
|
@@ -66,18 +49,12 @@ export const RatelimitSetOverrideResponse$outboundSchema: z.ZodType<
|
|
|
66
49
|
z.ZodTypeDef,
|
|
67
50
|
RatelimitSetOverrideResponse
|
|
68
51
|
> = z.object({
|
|
69
|
-
|
|
70
|
-
statusCode: z.number().int(),
|
|
71
|
-
rawResponse: z.instanceof(Response).transform(() => {
|
|
72
|
-
throw new Error("Response cannot be serialized");
|
|
73
|
-
}),
|
|
52
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
74
53
|
v2RatelimitSetOverrideResponseBody: components
|
|
75
54
|
.V2RatelimitSetOverrideResponseBody$outboundSchema.optional(),
|
|
76
55
|
}).transform((v) => {
|
|
77
56
|
return remap$(v, {
|
|
78
|
-
|
|
79
|
-
statusCode: "StatusCode",
|
|
80
|
-
rawResponse: "RawResponse",
|
|
57
|
+
httpMeta: "HttpMeta",
|
|
81
58
|
v2RatelimitSetOverrideResponseBody: "V2RatelimitSetOverrideResponseBody",
|
|
82
59
|
});
|
|
83
60
|
});
|
|
@@ -10,18 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type V1RatelimitLimitResponse = {
|
|
13
|
-
|
|
14
|
-
* HTTP response content type for this operation
|
|
15
|
-
*/
|
|
16
|
-
contentType: string;
|
|
17
|
-
/**
|
|
18
|
-
* HTTP response status code for this operation
|
|
19
|
-
*/
|
|
20
|
-
statusCode: number;
|
|
21
|
-
/**
|
|
22
|
-
* Raw HTTP response; suitable for custom response parsing
|
|
23
|
-
*/
|
|
24
|
-
rawResponse: Response;
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
25
14
|
/**
|
|
26
15
|
* OK
|
|
27
16
|
*/
|
|
@@ -36,25 +25,19 @@ export const V1RatelimitLimitResponse$inboundSchema: z.ZodType<
|
|
|
36
25
|
z.ZodTypeDef,
|
|
37
26
|
unknown
|
|
38
27
|
> = z.object({
|
|
39
|
-
|
|
40
|
-
StatusCode: z.number().int(),
|
|
41
|
-
RawResponse: z.instanceof(Response),
|
|
28
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
42
29
|
V2RatelimitLimitResponseBody: components
|
|
43
30
|
.V2RatelimitLimitResponseBody$inboundSchema.optional(),
|
|
44
31
|
}).transform((v) => {
|
|
45
32
|
return remap$(v, {
|
|
46
|
-
"
|
|
47
|
-
"StatusCode": "statusCode",
|
|
48
|
-
"RawResponse": "rawResponse",
|
|
33
|
+
"HttpMeta": "httpMeta",
|
|
49
34
|
"V2RatelimitLimitResponseBody": "v2RatelimitLimitResponseBody",
|
|
50
35
|
});
|
|
51
36
|
});
|
|
52
37
|
|
|
53
38
|
/** @internal */
|
|
54
39
|
export type V1RatelimitLimitResponse$Outbound = {
|
|
55
|
-
|
|
56
|
-
StatusCode: number;
|
|
57
|
-
RawResponse: never;
|
|
40
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
58
41
|
V2RatelimitLimitResponseBody?:
|
|
59
42
|
| components.V2RatelimitLimitResponseBody$Outbound
|
|
60
43
|
| undefined;
|
|
@@ -66,18 +49,12 @@ export const V1RatelimitLimitResponse$outboundSchema: z.ZodType<
|
|
|
66
49
|
z.ZodTypeDef,
|
|
67
50
|
V1RatelimitLimitResponse
|
|
68
51
|
> = z.object({
|
|
69
|
-
|
|
70
|
-
statusCode: z.number().int(),
|
|
71
|
-
rawResponse: z.instanceof(Response).transform(() => {
|
|
72
|
-
throw new Error("Response cannot be serialized");
|
|
73
|
-
}),
|
|
52
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
74
53
|
v2RatelimitLimitResponseBody: components
|
|
75
54
|
.V2RatelimitLimitResponseBody$outboundSchema.optional(),
|
|
76
55
|
}).transform((v) => {
|
|
77
56
|
return remap$(v, {
|
|
78
|
-
|
|
79
|
-
statusCode: "StatusCode",
|
|
80
|
-
rawResponse: "RawResponse",
|
|
57
|
+
httpMeta: "HttpMeta",
|
|
81
58
|
v2RatelimitLimitResponseBody: "V2RatelimitLimitResponseBody",
|
|
82
59
|
});
|
|
83
60
|
});
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export type ForbiddenErrorData = {
|
|
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 ForbiddenError 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$: ForbiddenErrorData;
|
|
55
|
-
constructor(err: ForbiddenErrorData);
|
|
56
|
-
}
|
|
57
|
-
/** @internal */
|
|
58
|
-
export declare const ForbiddenError$inboundSchema: z.ZodType<ForbiddenError, z.ZodTypeDef, unknown>;
|
|
59
|
-
/** @internal */
|
|
60
|
-
export type ForbiddenError$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 ForbiddenError$outboundSchema: z.ZodType<ForbiddenError$Outbound, z.ZodTypeDef, ForbiddenError>;
|
|
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 ForbiddenError$ {
|
|
75
|
-
/** @deprecated use `ForbiddenError$inboundSchema` instead. */
|
|
76
|
-
const inboundSchema: z.ZodType<ForbiddenError, z.ZodTypeDef, unknown>;
|
|
77
|
-
/** @deprecated use `ForbiddenError$outboundSchema` instead. */
|
|
78
|
-
const outboundSchema: z.ZodType<ForbiddenError$Outbound, z.ZodTypeDef, ForbiddenError>;
|
|
79
|
-
/** @deprecated use `ForbiddenError$Outbound` instead. */
|
|
80
|
-
type Outbound = ForbiddenError$Outbound;
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=forbiddenerror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forbiddenerror.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/forbiddenerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;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,cAAe,SAAQ,KAAK;IACvC;;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,kBAAkB,CAAC;gBAEd,GAAG,EAAE,kBAAkB;CAgBpC;AAED,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAWL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,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,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAUX,CAAC;AAEN;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ForbiddenError$ = exports.ForbiddenError$outboundSchema = exports.ForbiddenError$inboundSchema = exports.ForbiddenError = void 0;
|
|
40
|
-
const z = __importStar(require("zod"));
|
|
41
|
-
class ForbiddenError extends Error {
|
|
42
|
-
constructor(err) {
|
|
43
|
-
const message = "message" in err && typeof err.message === "string"
|
|
44
|
-
? err.message
|
|
45
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
46
|
-
super(message);
|
|
47
|
-
this.data$ = err;
|
|
48
|
-
this.requestId = err.requestId;
|
|
49
|
-
this.detail = err.detail;
|
|
50
|
-
if (err.instance != null)
|
|
51
|
-
this.instance = err.instance;
|
|
52
|
-
this.status = err.status;
|
|
53
|
-
this.title = err.title;
|
|
54
|
-
this.type = err.type;
|
|
55
|
-
this.name = "ForbiddenError";
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.ForbiddenError = ForbiddenError;
|
|
59
|
-
/** @internal */
|
|
60
|
-
exports.ForbiddenError$inboundSchema = z.object({
|
|
61
|
-
requestId: z.string(),
|
|
62
|
-
detail: z.string(),
|
|
63
|
-
instance: z.string().optional(),
|
|
64
|
-
status: z.number().int(),
|
|
65
|
-
title: z.string(),
|
|
66
|
-
type: z.string(),
|
|
67
|
-
})
|
|
68
|
-
.transform((v) => {
|
|
69
|
-
return new ForbiddenError(v);
|
|
70
|
-
});
|
|
71
|
-
/** @internal */
|
|
72
|
-
exports.ForbiddenError$outboundSchema = z.instanceof(ForbiddenError)
|
|
73
|
-
.transform(v => v.data$)
|
|
74
|
-
.pipe(z.object({
|
|
75
|
-
requestId: z.string(),
|
|
76
|
-
detail: z.string(),
|
|
77
|
-
instance: z.string().optional(),
|
|
78
|
-
status: z.number().int(),
|
|
79
|
-
title: z.string(),
|
|
80
|
-
type: z.string(),
|
|
81
|
-
}));
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
var ForbiddenError$;
|
|
87
|
-
(function (ForbiddenError$) {
|
|
88
|
-
/** @deprecated use `ForbiddenError$inboundSchema` instead. */
|
|
89
|
-
ForbiddenError$.inboundSchema = exports.ForbiddenError$inboundSchema;
|
|
90
|
-
/** @deprecated use `ForbiddenError$outboundSchema` instead. */
|
|
91
|
-
ForbiddenError$.outboundSchema = exports.ForbiddenError$outboundSchema;
|
|
92
|
-
})(ForbiddenError$ || (exports.ForbiddenError$ = ForbiddenError$ = {}));
|
|
93
|
-
//# sourceMappingURL=forbiddenerror.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forbiddenerror.js","sourceRoot":"","sources":["../../../../src/models/errors/forbiddenerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AA6BzB,MAAa,cAAe,SAAQ,KAAK;IA6BvC,YAAY,GAAuB;QACjC,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,gBAAgB,CAAC;IAC/B,CAAC;CACF;AA7CD,wCA6CC;AAED,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC;AAC/B,CAAC,CAAC,CAAC;AAYL,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC;KAC7B,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;KACvB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B"}
|
|
@@ -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,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C;;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,uBAAuB,CAAC;gBAEnB,GAAG,EAAE,uBAAuB;CAgBzC;AAED,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAWL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,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,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAUhB,CAAC;AAEN;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD"}
|