@moovio/sdk 0.15.6 → 0.16.0
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 +54 -43
- package/bin/mcp-server.js +1376 -629
- package/bin/mcp-server.js.map +25 -12
- package/docs/sdks/images/README.md +328 -0
- package/examples/package-lock.json +1 -1
- package/funcs/imagesDelete.d.ts +15 -0
- package/funcs/imagesDelete.d.ts.map +1 -0
- package/funcs/imagesDelete.js +137 -0
- package/funcs/imagesDelete.js.map +1 -0
- package/funcs/imagesGetMetadata.d.ts +14 -0
- package/funcs/imagesGetMetadata.d.ts.map +1 -0
- package/funcs/imagesGetMetadata.js +126 -0
- package/funcs/imagesGetMetadata.js.map +1 -0
- package/funcs/imagesGetPublic.d.ts +21 -0
- package/funcs/imagesGetPublic.d.ts.map +1 -0
- package/funcs/imagesGetPublic.js +144 -0
- package/funcs/imagesGetPublic.js.map +1 -0
- package/funcs/imagesList.d.ts +14 -0
- package/funcs/imagesList.d.ts.map +1 -0
- package/funcs/imagesList.js +122 -0
- package/funcs/imagesList.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +9 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/imagesDelete.d.ts +8 -0
- package/mcp-server/tools/imagesDelete.d.ts.map +1 -0
- package/mcp-server/tools/imagesDelete.js +61 -0
- package/mcp-server/tools/imagesDelete.js.map +1 -0
- package/mcp-server/tools/imagesGetMetadata.d.ts +8 -0
- package/mcp-server/tools/imagesGetMetadata.d.ts.map +1 -0
- package/mcp-server/tools/imagesGetMetadata.js +62 -0
- package/mcp-server/tools/imagesGetMetadata.js.map +1 -0
- package/mcp-server/tools/imagesGetPublic.d.ts +8 -0
- package/mcp-server/tools/imagesGetPublic.d.ts.map +1 -0
- package/mcp-server/tools/imagesGetPublic.js +62 -0
- package/mcp-server/tools/imagesGetPublic.js.map +1 -0
- package/mcp-server/tools/imagesList.d.ts +8 -0
- package/mcp-server/tools/imagesList.d.ts.map +1 -0
- package/mcp-server/tools/imagesList.js +62 -0
- package/mcp-server/tools/imagesList.js.map +1 -0
- package/models/components/imagemetadata.d.ts +49 -0
- package/models/components/imagemetadata.d.ts.map +1 -0
- package/models/components/imagemetadata.js +77 -0
- package/models/components/imagemetadata.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/paymentmethodswallet.d.ts +2 -2
- package/models/components/security.d.ts +4 -4
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +4 -4
- package/models/components/security.js.map +1 -1
- package/models/components/wallet.d.ts +2 -2
- package/models/components/wallettype.d.ts +4 -4
- package/models/components/wallettype.js +2 -2
- package/models/operations/deleteimage.d.ts +98 -0
- package/models/operations/deleteimage.d.ts.map +1 -0
- package/models/operations/deleteimage.js +142 -0
- package/models/operations/deleteimage.js.map +1 -0
- package/models/operations/getimagemetadata.d.ts +101 -0
- package/models/operations/getimagemetadata.d.ts.map +1 -0
- package/models/operations/getimagemetadata.js +147 -0
- package/models/operations/getimagemetadata.js.map +1 -0
- package/models/operations/getpublicimage.d.ts +94 -0
- package/models/operations/getpublicimage.d.ts.map +1 -0
- package/models/operations/getpublicimage.js +160 -0
- package/models/operations/getpublicimage.js.map +1 -0
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listimagemetadata.d.ts +99 -0
- package/models/operations/listimagemetadata.d.ts.map +1 -0
- package/models/operations/listimagemetadata.js +145 -0
- package/models/operations/listimagemetadata.js.map +1 -0
- package/package.json +1 -1
- package/sdk/images.d.ts +25 -0
- package/sdk/images.d.ts.map +1 -0
- package/sdk/images.js +42 -0
- package/sdk/images.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/imagesDelete.ts +195 -0
- package/src/funcs/imagesGetMetadata.ts +180 -0
- package/src/funcs/imagesGetPublic.ts +196 -0
- package/src/funcs/imagesList.ts +176 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/imagesDelete.ts +33 -0
- package/src/mcp-server/tools/imagesGetMetadata.ts +35 -0
- package/src/mcp-server/tools/imagesGetPublic.ts +35 -0
- package/src/mcp-server/tools/imagesList.ts +35 -0
- package/src/models/components/imagemetadata.ts +90 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/paymentmethodswallet.ts +2 -2
- package/src/models/components/security.ts +8 -8
- package/src/models/components/wallet.ts +2 -2
- package/src/models/components/wallettype.ts +4 -4
- package/src/models/operations/deleteimage.ts +216 -0
- package/src/models/operations/getimagemetadata.ts +223 -0
- package/src/models/operations/getpublicimage.ts +244 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listimagemetadata.ts +219 -0
- package/src/sdk/images.ts +74 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -8,8 +8,8 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type Security = {
|
|
11
|
-
username
|
|
12
|
-
password
|
|
11
|
+
username?: string | undefined;
|
|
12
|
+
password?: string | undefined;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
/** @internal */
|
|
@@ -18,14 +18,14 @@ export const Security$inboundSchema: z.ZodType<
|
|
|
18
18
|
z.ZodTypeDef,
|
|
19
19
|
unknown
|
|
20
20
|
> = z.object({
|
|
21
|
-
username: z.string(),
|
|
22
|
-
password: z.string(),
|
|
21
|
+
username: z.string().optional(),
|
|
22
|
+
password: z.string().optional(),
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
|
26
26
|
export type Security$Outbound = {
|
|
27
|
-
username
|
|
28
|
-
password
|
|
27
|
+
username?: string | undefined;
|
|
28
|
+
password?: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
/** @internal */
|
|
@@ -34,8 +34,8 @@ export const Security$outboundSchema: z.ZodType<
|
|
|
34
34
|
z.ZodTypeDef,
|
|
35
35
|
Security
|
|
36
36
|
> = z.object({
|
|
37
|
-
username: z.string(),
|
|
38
|
-
password: z.string(),
|
|
37
|
+
username: z.string().optional(),
|
|
38
|
+
password: z.string().optional(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -46,8 +46,8 @@ export type Wallet = {
|
|
|
46
46
|
* Type of a wallet.
|
|
47
47
|
*
|
|
48
48
|
* @remarks
|
|
49
|
-
* - `default`: The
|
|
50
|
-
* - `general`:
|
|
49
|
+
* - `default`: The system-generated wallet automatically created when an account is granted the wallet capability.
|
|
50
|
+
* - `general`: An additional, user-defined wallet created via API or Dashboard.
|
|
51
51
|
*/
|
|
52
52
|
walletType: WalletType;
|
|
53
53
|
/**
|
|
@@ -9,8 +9,8 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
* Type of a wallet.
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
|
-
* - `default`: The
|
|
13
|
-
* - `general`:
|
|
12
|
+
* - `default`: The system-generated wallet automatically created when an account is granted the wallet capability.
|
|
13
|
+
* - `general`: An additional, user-defined wallet created via API or Dashboard.
|
|
14
14
|
*/
|
|
15
15
|
export const WalletType = {
|
|
16
16
|
Default: "default",
|
|
@@ -20,8 +20,8 @@ export const WalletType = {
|
|
|
20
20
|
* Type of a wallet.
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
23
|
-
* - `default`: The
|
|
24
|
-
* - `general`:
|
|
23
|
+
* - `default`: The system-generated wallet automatically created when an account is granted the wallet capability.
|
|
24
|
+
* - `general`: An additional, user-defined wallet created via API or Dashboard.
|
|
25
25
|
*/
|
|
26
26
|
export type WalletType = ClosedEnum<typeof WalletType>;
|
|
27
27
|
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type DeleteImageGlobals = {
|
|
12
|
+
/**
|
|
13
|
+
* Specify an API version.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
*
|
|
17
|
+
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
18
|
+
* - `YYYY` is the year
|
|
19
|
+
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
20
|
+
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
21
|
+
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
22
|
+
*
|
|
23
|
+
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
24
|
+
*/
|
|
25
|
+
xMoovVersion?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type DeleteImageRequest = {
|
|
29
|
+
accountID: string;
|
|
30
|
+
imageID: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type DeleteImageResponse = {
|
|
34
|
+
headers: { [k: string]: Array<string> };
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const DeleteImageGlobals$inboundSchema: z.ZodType<
|
|
39
|
+
DeleteImageGlobals,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
"x-moov-version": z.string().default("v2024.01.00"),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"x-moov-version": "xMoovVersion",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type DeleteImageGlobals$Outbound = {
|
|
52
|
+
"x-moov-version": string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const DeleteImageGlobals$outboundSchema: z.ZodType<
|
|
57
|
+
DeleteImageGlobals$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
DeleteImageGlobals
|
|
60
|
+
> = z.object({
|
|
61
|
+
xMoovVersion: z.string().default("v2024.01.00"),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return remap$(v, {
|
|
64
|
+
xMoovVersion: "x-moov-version",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export namespace DeleteImageGlobals$ {
|
|
73
|
+
/** @deprecated use `DeleteImageGlobals$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = DeleteImageGlobals$inboundSchema;
|
|
75
|
+
/** @deprecated use `DeleteImageGlobals$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = DeleteImageGlobals$outboundSchema;
|
|
77
|
+
/** @deprecated use `DeleteImageGlobals$Outbound` instead. */
|
|
78
|
+
export type Outbound = DeleteImageGlobals$Outbound;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function deleteImageGlobalsToJSON(
|
|
82
|
+
deleteImageGlobals: DeleteImageGlobals,
|
|
83
|
+
): string {
|
|
84
|
+
return JSON.stringify(
|
|
85
|
+
DeleteImageGlobals$outboundSchema.parse(deleteImageGlobals),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function deleteImageGlobalsFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<DeleteImageGlobals, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => DeleteImageGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'DeleteImageGlobals' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const DeleteImageRequest$inboundSchema: z.ZodType<
|
|
101
|
+
DeleteImageRequest,
|
|
102
|
+
z.ZodTypeDef,
|
|
103
|
+
unknown
|
|
104
|
+
> = z.object({
|
|
105
|
+
accountID: z.string(),
|
|
106
|
+
imageID: z.string(),
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export type DeleteImageRequest$Outbound = {
|
|
111
|
+
accountID: string;
|
|
112
|
+
imageID: string;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const DeleteImageRequest$outboundSchema: z.ZodType<
|
|
117
|
+
DeleteImageRequest$Outbound,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
DeleteImageRequest
|
|
120
|
+
> = z.object({
|
|
121
|
+
accountID: z.string(),
|
|
122
|
+
imageID: z.string(),
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
128
|
+
*/
|
|
129
|
+
export namespace DeleteImageRequest$ {
|
|
130
|
+
/** @deprecated use `DeleteImageRequest$inboundSchema` instead. */
|
|
131
|
+
export const inboundSchema = DeleteImageRequest$inboundSchema;
|
|
132
|
+
/** @deprecated use `DeleteImageRequest$outboundSchema` instead. */
|
|
133
|
+
export const outboundSchema = DeleteImageRequest$outboundSchema;
|
|
134
|
+
/** @deprecated use `DeleteImageRequest$Outbound` instead. */
|
|
135
|
+
export type Outbound = DeleteImageRequest$Outbound;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function deleteImageRequestToJSON(
|
|
139
|
+
deleteImageRequest: DeleteImageRequest,
|
|
140
|
+
): string {
|
|
141
|
+
return JSON.stringify(
|
|
142
|
+
DeleteImageRequest$outboundSchema.parse(deleteImageRequest),
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function deleteImageRequestFromJSON(
|
|
147
|
+
jsonString: string,
|
|
148
|
+
): SafeParseResult<DeleteImageRequest, SDKValidationError> {
|
|
149
|
+
return safeParse(
|
|
150
|
+
jsonString,
|
|
151
|
+
(x) => DeleteImageRequest$inboundSchema.parse(JSON.parse(x)),
|
|
152
|
+
`Failed to parse 'DeleteImageRequest' from JSON`,
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** @internal */
|
|
157
|
+
export const DeleteImageResponse$inboundSchema: z.ZodType<
|
|
158
|
+
DeleteImageResponse,
|
|
159
|
+
z.ZodTypeDef,
|
|
160
|
+
unknown
|
|
161
|
+
> = z.object({
|
|
162
|
+
Headers: z.record(z.array(z.string())),
|
|
163
|
+
}).transform((v) => {
|
|
164
|
+
return remap$(v, {
|
|
165
|
+
"Headers": "headers",
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
/** @internal */
|
|
170
|
+
export type DeleteImageResponse$Outbound = {
|
|
171
|
+
Headers: { [k: string]: Array<string> };
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/** @internal */
|
|
175
|
+
export const DeleteImageResponse$outboundSchema: z.ZodType<
|
|
176
|
+
DeleteImageResponse$Outbound,
|
|
177
|
+
z.ZodTypeDef,
|
|
178
|
+
DeleteImageResponse
|
|
179
|
+
> = z.object({
|
|
180
|
+
headers: z.record(z.array(z.string())),
|
|
181
|
+
}).transform((v) => {
|
|
182
|
+
return remap$(v, {
|
|
183
|
+
headers: "Headers",
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @internal
|
|
189
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
190
|
+
*/
|
|
191
|
+
export namespace DeleteImageResponse$ {
|
|
192
|
+
/** @deprecated use `DeleteImageResponse$inboundSchema` instead. */
|
|
193
|
+
export const inboundSchema = DeleteImageResponse$inboundSchema;
|
|
194
|
+
/** @deprecated use `DeleteImageResponse$outboundSchema` instead. */
|
|
195
|
+
export const outboundSchema = DeleteImageResponse$outboundSchema;
|
|
196
|
+
/** @deprecated use `DeleteImageResponse$Outbound` instead. */
|
|
197
|
+
export type Outbound = DeleteImageResponse$Outbound;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export function deleteImageResponseToJSON(
|
|
201
|
+
deleteImageResponse: DeleteImageResponse,
|
|
202
|
+
): string {
|
|
203
|
+
return JSON.stringify(
|
|
204
|
+
DeleteImageResponse$outboundSchema.parse(deleteImageResponse),
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function deleteImageResponseFromJSON(
|
|
209
|
+
jsonString: string,
|
|
210
|
+
): SafeParseResult<DeleteImageResponse, SDKValidationError> {
|
|
211
|
+
return safeParse(
|
|
212
|
+
jsonString,
|
|
213
|
+
(x) => DeleteImageResponse$inboundSchema.parse(JSON.parse(x)),
|
|
214
|
+
`Failed to parse 'DeleteImageResponse' from JSON`,
|
|
215
|
+
);
|
|
216
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type GetImageMetadataGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* Specify an API version.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*
|
|
18
|
+
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
19
|
+
* - `YYYY` is the year
|
|
20
|
+
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
21
|
+
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
22
|
+
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
23
|
+
*
|
|
24
|
+
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
25
|
+
*/
|
|
26
|
+
xMoovVersion?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type GetImageMetadataRequest = {
|
|
30
|
+
accountID: string;
|
|
31
|
+
imageID: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type GetImageMetadataResponse = {
|
|
35
|
+
headers: { [k: string]: Array<string> };
|
|
36
|
+
result: components.ImageMetadata;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const GetImageMetadataGlobals$inboundSchema: z.ZodType<
|
|
41
|
+
GetImageMetadataGlobals,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
"x-moov-version": z.string().default("v2024.01.00"),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
"x-moov-version": "xMoovVersion",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type GetImageMetadataGlobals$Outbound = {
|
|
54
|
+
"x-moov-version": string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const GetImageMetadataGlobals$outboundSchema: z.ZodType<
|
|
59
|
+
GetImageMetadataGlobals$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
GetImageMetadataGlobals
|
|
62
|
+
> = z.object({
|
|
63
|
+
xMoovVersion: z.string().default("v2024.01.00"),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
xMoovVersion: "x-moov-version",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
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 namespace GetImageMetadataGlobals$ {
|
|
75
|
+
/** @deprecated use `GetImageMetadataGlobals$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = GetImageMetadataGlobals$inboundSchema;
|
|
77
|
+
/** @deprecated use `GetImageMetadataGlobals$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = GetImageMetadataGlobals$outboundSchema;
|
|
79
|
+
/** @deprecated use `GetImageMetadataGlobals$Outbound` instead. */
|
|
80
|
+
export type Outbound = GetImageMetadataGlobals$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function getImageMetadataGlobalsToJSON(
|
|
84
|
+
getImageMetadataGlobals: GetImageMetadataGlobals,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
GetImageMetadataGlobals$outboundSchema.parse(getImageMetadataGlobals),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function getImageMetadataGlobalsFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<GetImageMetadataGlobals, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => GetImageMetadataGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'GetImageMetadataGlobals' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const GetImageMetadataRequest$inboundSchema: z.ZodType<
|
|
103
|
+
GetImageMetadataRequest,
|
|
104
|
+
z.ZodTypeDef,
|
|
105
|
+
unknown
|
|
106
|
+
> = z.object({
|
|
107
|
+
accountID: z.string(),
|
|
108
|
+
imageID: z.string(),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type GetImageMetadataRequest$Outbound = {
|
|
113
|
+
accountID: string;
|
|
114
|
+
imageID: string;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const GetImageMetadataRequest$outboundSchema: z.ZodType<
|
|
119
|
+
GetImageMetadataRequest$Outbound,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
GetImageMetadataRequest
|
|
122
|
+
> = z.object({
|
|
123
|
+
accountID: z.string(),
|
|
124
|
+
imageID: z.string(),
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
130
|
+
*/
|
|
131
|
+
export namespace GetImageMetadataRequest$ {
|
|
132
|
+
/** @deprecated use `GetImageMetadataRequest$inboundSchema` instead. */
|
|
133
|
+
export const inboundSchema = GetImageMetadataRequest$inboundSchema;
|
|
134
|
+
/** @deprecated use `GetImageMetadataRequest$outboundSchema` instead. */
|
|
135
|
+
export const outboundSchema = GetImageMetadataRequest$outboundSchema;
|
|
136
|
+
/** @deprecated use `GetImageMetadataRequest$Outbound` instead. */
|
|
137
|
+
export type Outbound = GetImageMetadataRequest$Outbound;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function getImageMetadataRequestToJSON(
|
|
141
|
+
getImageMetadataRequest: GetImageMetadataRequest,
|
|
142
|
+
): string {
|
|
143
|
+
return JSON.stringify(
|
|
144
|
+
GetImageMetadataRequest$outboundSchema.parse(getImageMetadataRequest),
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function getImageMetadataRequestFromJSON(
|
|
149
|
+
jsonString: string,
|
|
150
|
+
): SafeParseResult<GetImageMetadataRequest, SDKValidationError> {
|
|
151
|
+
return safeParse(
|
|
152
|
+
jsonString,
|
|
153
|
+
(x) => GetImageMetadataRequest$inboundSchema.parse(JSON.parse(x)),
|
|
154
|
+
`Failed to parse 'GetImageMetadataRequest' from JSON`,
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** @internal */
|
|
159
|
+
export const GetImageMetadataResponse$inboundSchema: z.ZodType<
|
|
160
|
+
GetImageMetadataResponse,
|
|
161
|
+
z.ZodTypeDef,
|
|
162
|
+
unknown
|
|
163
|
+
> = z.object({
|
|
164
|
+
Headers: z.record(z.array(z.string())),
|
|
165
|
+
Result: components.ImageMetadata$inboundSchema,
|
|
166
|
+
}).transform((v) => {
|
|
167
|
+
return remap$(v, {
|
|
168
|
+
"Headers": "headers",
|
|
169
|
+
"Result": "result",
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
/** @internal */
|
|
174
|
+
export type GetImageMetadataResponse$Outbound = {
|
|
175
|
+
Headers: { [k: string]: Array<string> };
|
|
176
|
+
Result: components.ImageMetadata$Outbound;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
/** @internal */
|
|
180
|
+
export const GetImageMetadataResponse$outboundSchema: z.ZodType<
|
|
181
|
+
GetImageMetadataResponse$Outbound,
|
|
182
|
+
z.ZodTypeDef,
|
|
183
|
+
GetImageMetadataResponse
|
|
184
|
+
> = z.object({
|
|
185
|
+
headers: z.record(z.array(z.string())),
|
|
186
|
+
result: components.ImageMetadata$outboundSchema,
|
|
187
|
+
}).transform((v) => {
|
|
188
|
+
return remap$(v, {
|
|
189
|
+
headers: "Headers",
|
|
190
|
+
result: "Result",
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @internal
|
|
196
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
197
|
+
*/
|
|
198
|
+
export namespace GetImageMetadataResponse$ {
|
|
199
|
+
/** @deprecated use `GetImageMetadataResponse$inboundSchema` instead. */
|
|
200
|
+
export const inboundSchema = GetImageMetadataResponse$inboundSchema;
|
|
201
|
+
/** @deprecated use `GetImageMetadataResponse$outboundSchema` instead. */
|
|
202
|
+
export const outboundSchema = GetImageMetadataResponse$outboundSchema;
|
|
203
|
+
/** @deprecated use `GetImageMetadataResponse$Outbound` instead. */
|
|
204
|
+
export type Outbound = GetImageMetadataResponse$Outbound;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export function getImageMetadataResponseToJSON(
|
|
208
|
+
getImageMetadataResponse: GetImageMetadataResponse,
|
|
209
|
+
): string {
|
|
210
|
+
return JSON.stringify(
|
|
211
|
+
GetImageMetadataResponse$outboundSchema.parse(getImageMetadataResponse),
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export function getImageMetadataResponseFromJSON(
|
|
216
|
+
jsonString: string,
|
|
217
|
+
): SafeParseResult<GetImageMetadataResponse, SDKValidationError> {
|
|
218
|
+
return safeParse(
|
|
219
|
+
jsonString,
|
|
220
|
+
(x) => GetImageMetadataResponse$inboundSchema.parse(JSON.parse(x)),
|
|
221
|
+
`Failed to parse 'GetImageMetadataResponse' from JSON`,
|
|
222
|
+
);
|
|
223
|
+
}
|