@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
|
@@ -0,0 +1,244 @@
|
|
|
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 GetPublicImageRequest = {
|
|
12
|
+
ifNoneMatch?: string | undefined;
|
|
13
|
+
publicID: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional parameter to request a resized version of the image (WxH).
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
*
|
|
19
|
+
* If either dimension is 0, the image will be scaled proportionally based on
|
|
20
|
+
* the non-zero dimension. Dimensions are capped at 2048 pixels. A default size
|
|
21
|
+
* of 400x400 will be used if this parameter is omitted.
|
|
22
|
+
*/
|
|
23
|
+
size?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type GetPublicImageResponseResult =
|
|
27
|
+
| ReadableStream<Uint8Array>
|
|
28
|
+
| ReadableStream<Uint8Array>
|
|
29
|
+
| ReadableStream<Uint8Array>;
|
|
30
|
+
|
|
31
|
+
export type GetPublicImageResponse = {
|
|
32
|
+
headers: { [k: string]: Array<string> };
|
|
33
|
+
result:
|
|
34
|
+
| ReadableStream<Uint8Array>
|
|
35
|
+
| ReadableStream<Uint8Array>
|
|
36
|
+
| ReadableStream<Uint8Array>;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const GetPublicImageRequest$inboundSchema: z.ZodType<
|
|
41
|
+
GetPublicImageRequest,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
"if-none-match": z.string().optional(),
|
|
46
|
+
publicID: z.string(),
|
|
47
|
+
size: z.string().default("400x400"),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
"if-none-match": "ifNoneMatch",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type GetPublicImageRequest$Outbound = {
|
|
56
|
+
"if-none-match"?: string | undefined;
|
|
57
|
+
publicID: string;
|
|
58
|
+
size: string;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const GetPublicImageRequest$outboundSchema: z.ZodType<
|
|
63
|
+
GetPublicImageRequest$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
GetPublicImageRequest
|
|
66
|
+
> = z.object({
|
|
67
|
+
ifNoneMatch: z.string().optional(),
|
|
68
|
+
publicID: z.string(),
|
|
69
|
+
size: z.string().default("400x400"),
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return remap$(v, {
|
|
72
|
+
ifNoneMatch: "if-none-match",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
+
*/
|
|
80
|
+
export namespace GetPublicImageRequest$ {
|
|
81
|
+
/** @deprecated use `GetPublicImageRequest$inboundSchema` instead. */
|
|
82
|
+
export const inboundSchema = GetPublicImageRequest$inboundSchema;
|
|
83
|
+
/** @deprecated use `GetPublicImageRequest$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema = GetPublicImageRequest$outboundSchema;
|
|
85
|
+
/** @deprecated use `GetPublicImageRequest$Outbound` instead. */
|
|
86
|
+
export type Outbound = GetPublicImageRequest$Outbound;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function getPublicImageRequestToJSON(
|
|
90
|
+
getPublicImageRequest: GetPublicImageRequest,
|
|
91
|
+
): string {
|
|
92
|
+
return JSON.stringify(
|
|
93
|
+
GetPublicImageRequest$outboundSchema.parse(getPublicImageRequest),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function getPublicImageRequestFromJSON(
|
|
98
|
+
jsonString: string,
|
|
99
|
+
): SafeParseResult<GetPublicImageRequest, SDKValidationError> {
|
|
100
|
+
return safeParse(
|
|
101
|
+
jsonString,
|
|
102
|
+
(x) => GetPublicImageRequest$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
+
`Failed to parse 'GetPublicImageRequest' from JSON`,
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const GetPublicImageResponseResult$inboundSchema: z.ZodType<
|
|
109
|
+
GetPublicImageResponseResult,
|
|
110
|
+
z.ZodTypeDef,
|
|
111
|
+
unknown
|
|
112
|
+
> = z.union([
|
|
113
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
114
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
115
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
116
|
+
]);
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
export type GetPublicImageResponseResult$Outbound =
|
|
120
|
+
| ReadableStream<Uint8Array>
|
|
121
|
+
| ReadableStream<Uint8Array>
|
|
122
|
+
| ReadableStream<Uint8Array>;
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const GetPublicImageResponseResult$outboundSchema: z.ZodType<
|
|
126
|
+
GetPublicImageResponseResult$Outbound,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
GetPublicImageResponseResult
|
|
129
|
+
> = z.union([
|
|
130
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
131
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
132
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
133
|
+
]);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
|
+
*/
|
|
139
|
+
export namespace GetPublicImageResponseResult$ {
|
|
140
|
+
/** @deprecated use `GetPublicImageResponseResult$inboundSchema` instead. */
|
|
141
|
+
export const inboundSchema = GetPublicImageResponseResult$inboundSchema;
|
|
142
|
+
/** @deprecated use `GetPublicImageResponseResult$outboundSchema` instead. */
|
|
143
|
+
export const outboundSchema = GetPublicImageResponseResult$outboundSchema;
|
|
144
|
+
/** @deprecated use `GetPublicImageResponseResult$Outbound` instead. */
|
|
145
|
+
export type Outbound = GetPublicImageResponseResult$Outbound;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function getPublicImageResponseResultToJSON(
|
|
149
|
+
getPublicImageResponseResult: GetPublicImageResponseResult,
|
|
150
|
+
): string {
|
|
151
|
+
return JSON.stringify(
|
|
152
|
+
GetPublicImageResponseResult$outboundSchema.parse(
|
|
153
|
+
getPublicImageResponseResult,
|
|
154
|
+
),
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function getPublicImageResponseResultFromJSON(
|
|
159
|
+
jsonString: string,
|
|
160
|
+
): SafeParseResult<GetPublicImageResponseResult, SDKValidationError> {
|
|
161
|
+
return safeParse(
|
|
162
|
+
jsonString,
|
|
163
|
+
(x) => GetPublicImageResponseResult$inboundSchema.parse(JSON.parse(x)),
|
|
164
|
+
`Failed to parse 'GetPublicImageResponseResult' from JSON`,
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const GetPublicImageResponse$inboundSchema: z.ZodType<
|
|
170
|
+
GetPublicImageResponse,
|
|
171
|
+
z.ZodTypeDef,
|
|
172
|
+
unknown
|
|
173
|
+
> = z.object({
|
|
174
|
+
Headers: z.record(z.array(z.string())),
|
|
175
|
+
Result: z.union([
|
|
176
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
177
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
178
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
179
|
+
]),
|
|
180
|
+
}).transform((v) => {
|
|
181
|
+
return remap$(v, {
|
|
182
|
+
"Headers": "headers",
|
|
183
|
+
"Result": "result",
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export type GetPublicImageResponse$Outbound = {
|
|
189
|
+
Headers: { [k: string]: Array<string> };
|
|
190
|
+
Result:
|
|
191
|
+
| ReadableStream<Uint8Array>
|
|
192
|
+
| ReadableStream<Uint8Array>
|
|
193
|
+
| ReadableStream<Uint8Array>;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
/** @internal */
|
|
197
|
+
export const GetPublicImageResponse$outboundSchema: z.ZodType<
|
|
198
|
+
GetPublicImageResponse$Outbound,
|
|
199
|
+
z.ZodTypeDef,
|
|
200
|
+
GetPublicImageResponse
|
|
201
|
+
> = z.object({
|
|
202
|
+
headers: z.record(z.array(z.string())),
|
|
203
|
+
result: z.union([
|
|
204
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
205
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
206
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
207
|
+
]),
|
|
208
|
+
}).transform((v) => {
|
|
209
|
+
return remap$(v, {
|
|
210
|
+
headers: "Headers",
|
|
211
|
+
result: "Result",
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @internal
|
|
217
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
218
|
+
*/
|
|
219
|
+
export namespace GetPublicImageResponse$ {
|
|
220
|
+
/** @deprecated use `GetPublicImageResponse$inboundSchema` instead. */
|
|
221
|
+
export const inboundSchema = GetPublicImageResponse$inboundSchema;
|
|
222
|
+
/** @deprecated use `GetPublicImageResponse$outboundSchema` instead. */
|
|
223
|
+
export const outboundSchema = GetPublicImageResponse$outboundSchema;
|
|
224
|
+
/** @deprecated use `GetPublicImageResponse$Outbound` instead. */
|
|
225
|
+
export type Outbound = GetPublicImageResponse$Outbound;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export function getPublicImageResponseToJSON(
|
|
229
|
+
getPublicImageResponse: GetPublicImageResponse,
|
|
230
|
+
): string {
|
|
231
|
+
return JSON.stringify(
|
|
232
|
+
GetPublicImageResponse$outboundSchema.parse(getPublicImageResponse),
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export function getPublicImageResponseFromJSON(
|
|
237
|
+
jsonString: string,
|
|
238
|
+
): SafeParseResult<GetPublicImageResponse, SDKValidationError> {
|
|
239
|
+
return safeParse(
|
|
240
|
+
jsonString,
|
|
241
|
+
(x) => GetPublicImageResponse$inboundSchema.parse(JSON.parse(x)),
|
|
242
|
+
`Failed to parse 'GetPublicImageResponse' from JSON`,
|
|
243
|
+
);
|
|
244
|
+
}
|
|
@@ -27,6 +27,7 @@ export * from "./createtransfer.js";
|
|
|
27
27
|
export * from "./createtransferoptions.js";
|
|
28
28
|
export * from "./createwallet.js";
|
|
29
29
|
export * from "./deletedisputeevidencefile.js";
|
|
30
|
+
export * from "./deleteimage.js";
|
|
30
31
|
export * from "./deleterepresentative.js";
|
|
31
32
|
export * from "./deleteterminalapplication.js";
|
|
32
33
|
export * from "./disablebankaccount.js";
|
|
@@ -54,6 +55,7 @@ export * from "./getenrichmentaddress.js";
|
|
|
54
55
|
export * from "./getenrichmentprofile.js";
|
|
55
56
|
export * from "./getfiledetails.js";
|
|
56
57
|
export * from "./getfullissuedcard.js";
|
|
58
|
+
export * from "./getimagemetadata.js";
|
|
57
59
|
export * from "./getissuedcard.js";
|
|
58
60
|
export * from "./getissuedcardauthorization.js";
|
|
59
61
|
export * from "./getissuedcardtransaction.js";
|
|
@@ -62,6 +64,7 @@ export * from "./getonboardinginvite.js";
|
|
|
62
64
|
export * from "./getpaymentlink.js";
|
|
63
65
|
export * from "./getpaymentlinkqrcode.js";
|
|
64
66
|
export * from "./getpaymentmethod.js";
|
|
67
|
+
export * from "./getpublicimage.js";
|
|
65
68
|
export * from "./getrefund.js";
|
|
66
69
|
export * from "./getrepresentative.js";
|
|
67
70
|
export * from "./getscheduledoccurrence.js";
|
|
@@ -96,6 +99,7 @@ export * from "./listfeeplanagreements.js";
|
|
|
96
99
|
export * from "./listfeeplans.js";
|
|
97
100
|
export * from "./listfeesfetch.js";
|
|
98
101
|
export * from "./listfiles.js";
|
|
102
|
+
export * from "./listimagemetadata.js";
|
|
99
103
|
export * from "./listindustries.js";
|
|
100
104
|
export * from "./listinstitutions.js";
|
|
101
105
|
export * from "./listissuedcardauthorizationevents.js";
|
|
@@ -0,0 +1,219 @@
|
|
|
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 ListImageMetadataGlobals = {
|
|
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 ListImageMetadataRequest = {
|
|
30
|
+
accountID: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type ListImageMetadataResponse = {
|
|
34
|
+
headers: { [k: string]: Array<string> };
|
|
35
|
+
result: Array<components.ImageMetadata>;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ListImageMetadataGlobals$inboundSchema: z.ZodType<
|
|
40
|
+
ListImageMetadataGlobals,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
"x-moov-version": z.string().default("v2024.01.00"),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
"x-moov-version": "xMoovVersion",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type ListImageMetadataGlobals$Outbound = {
|
|
53
|
+
"x-moov-version": string;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const ListImageMetadataGlobals$outboundSchema: z.ZodType<
|
|
58
|
+
ListImageMetadataGlobals$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
ListImageMetadataGlobals
|
|
61
|
+
> = z.object({
|
|
62
|
+
xMoovVersion: z.string().default("v2024.01.00"),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
xMoovVersion: "x-moov-version",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace ListImageMetadataGlobals$ {
|
|
74
|
+
/** @deprecated use `ListImageMetadataGlobals$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = ListImageMetadataGlobals$inboundSchema;
|
|
76
|
+
/** @deprecated use `ListImageMetadataGlobals$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = ListImageMetadataGlobals$outboundSchema;
|
|
78
|
+
/** @deprecated use `ListImageMetadataGlobals$Outbound` instead. */
|
|
79
|
+
export type Outbound = ListImageMetadataGlobals$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function listImageMetadataGlobalsToJSON(
|
|
83
|
+
listImageMetadataGlobals: ListImageMetadataGlobals,
|
|
84
|
+
): string {
|
|
85
|
+
return JSON.stringify(
|
|
86
|
+
ListImageMetadataGlobals$outboundSchema.parse(listImageMetadataGlobals),
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function listImageMetadataGlobalsFromJSON(
|
|
91
|
+
jsonString: string,
|
|
92
|
+
): SafeParseResult<ListImageMetadataGlobals, SDKValidationError> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) => ListImageMetadataGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
+
`Failed to parse 'ListImageMetadataGlobals' from JSON`,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const ListImageMetadataRequest$inboundSchema: z.ZodType<
|
|
102
|
+
ListImageMetadataRequest,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
unknown
|
|
105
|
+
> = z.object({
|
|
106
|
+
accountID: z.string(),
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export type ListImageMetadataRequest$Outbound = {
|
|
111
|
+
accountID: string;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const ListImageMetadataRequest$outboundSchema: z.ZodType<
|
|
116
|
+
ListImageMetadataRequest$Outbound,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
ListImageMetadataRequest
|
|
119
|
+
> = z.object({
|
|
120
|
+
accountID: z.string(),
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @internal
|
|
125
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
126
|
+
*/
|
|
127
|
+
export namespace ListImageMetadataRequest$ {
|
|
128
|
+
/** @deprecated use `ListImageMetadataRequest$inboundSchema` instead. */
|
|
129
|
+
export const inboundSchema = ListImageMetadataRequest$inboundSchema;
|
|
130
|
+
/** @deprecated use `ListImageMetadataRequest$outboundSchema` instead. */
|
|
131
|
+
export const outboundSchema = ListImageMetadataRequest$outboundSchema;
|
|
132
|
+
/** @deprecated use `ListImageMetadataRequest$Outbound` instead. */
|
|
133
|
+
export type Outbound = ListImageMetadataRequest$Outbound;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function listImageMetadataRequestToJSON(
|
|
137
|
+
listImageMetadataRequest: ListImageMetadataRequest,
|
|
138
|
+
): string {
|
|
139
|
+
return JSON.stringify(
|
|
140
|
+
ListImageMetadataRequest$outboundSchema.parse(listImageMetadataRequest),
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function listImageMetadataRequestFromJSON(
|
|
145
|
+
jsonString: string,
|
|
146
|
+
): SafeParseResult<ListImageMetadataRequest, SDKValidationError> {
|
|
147
|
+
return safeParse(
|
|
148
|
+
jsonString,
|
|
149
|
+
(x) => ListImageMetadataRequest$inboundSchema.parse(JSON.parse(x)),
|
|
150
|
+
`Failed to parse 'ListImageMetadataRequest' from JSON`,
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const ListImageMetadataResponse$inboundSchema: z.ZodType<
|
|
156
|
+
ListImageMetadataResponse,
|
|
157
|
+
z.ZodTypeDef,
|
|
158
|
+
unknown
|
|
159
|
+
> = z.object({
|
|
160
|
+
Headers: z.record(z.array(z.string())),
|
|
161
|
+
Result: z.array(components.ImageMetadata$inboundSchema),
|
|
162
|
+
}).transform((v) => {
|
|
163
|
+
return remap$(v, {
|
|
164
|
+
"Headers": "headers",
|
|
165
|
+
"Result": "result",
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
/** @internal */
|
|
170
|
+
export type ListImageMetadataResponse$Outbound = {
|
|
171
|
+
Headers: { [k: string]: Array<string> };
|
|
172
|
+
Result: Array<components.ImageMetadata$Outbound>;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/** @internal */
|
|
176
|
+
export const ListImageMetadataResponse$outboundSchema: z.ZodType<
|
|
177
|
+
ListImageMetadataResponse$Outbound,
|
|
178
|
+
z.ZodTypeDef,
|
|
179
|
+
ListImageMetadataResponse
|
|
180
|
+
> = z.object({
|
|
181
|
+
headers: z.record(z.array(z.string())),
|
|
182
|
+
result: z.array(components.ImageMetadata$outboundSchema),
|
|
183
|
+
}).transform((v) => {
|
|
184
|
+
return remap$(v, {
|
|
185
|
+
headers: "Headers",
|
|
186
|
+
result: "Result",
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
193
|
+
*/
|
|
194
|
+
export namespace ListImageMetadataResponse$ {
|
|
195
|
+
/** @deprecated use `ListImageMetadataResponse$inboundSchema` instead. */
|
|
196
|
+
export const inboundSchema = ListImageMetadataResponse$inboundSchema;
|
|
197
|
+
/** @deprecated use `ListImageMetadataResponse$outboundSchema` instead. */
|
|
198
|
+
export const outboundSchema = ListImageMetadataResponse$outboundSchema;
|
|
199
|
+
/** @deprecated use `ListImageMetadataResponse$Outbound` instead. */
|
|
200
|
+
export type Outbound = ListImageMetadataResponse$Outbound;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export function listImageMetadataResponseToJSON(
|
|
204
|
+
listImageMetadataResponse: ListImageMetadataResponse,
|
|
205
|
+
): string {
|
|
206
|
+
return JSON.stringify(
|
|
207
|
+
ListImageMetadataResponse$outboundSchema.parse(listImageMetadataResponse),
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function listImageMetadataResponseFromJSON(
|
|
212
|
+
jsonString: string,
|
|
213
|
+
): SafeParseResult<ListImageMetadataResponse, SDKValidationError> {
|
|
214
|
+
return safeParse(
|
|
215
|
+
jsonString,
|
|
216
|
+
(x) => ListImageMetadataResponse$inboundSchema.parse(JSON.parse(x)),
|
|
217
|
+
`Failed to parse 'ListImageMetadataResponse' from JSON`,
|
|
218
|
+
);
|
|
219
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { imagesDelete } from "../funcs/imagesDelete.js";
|
|
6
|
+
import { imagesGetMetadata } from "../funcs/imagesGetMetadata.js";
|
|
7
|
+
import {
|
|
8
|
+
GetPublicAcceptEnum,
|
|
9
|
+
imagesGetPublic,
|
|
10
|
+
} from "../funcs/imagesGetPublic.js";
|
|
11
|
+
import { imagesList } from "../funcs/imagesList.js";
|
|
12
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import * as operations from "../models/operations/index.js";
|
|
14
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
15
|
+
|
|
16
|
+
export { GetPublicAcceptEnum } from "../funcs/imagesGetPublic.js";
|
|
17
|
+
|
|
18
|
+
export class Images extends ClientSDK {
|
|
19
|
+
/**
|
|
20
|
+
* List metadata for all images in the specified account.
|
|
21
|
+
*/
|
|
22
|
+
async list(
|
|
23
|
+
request: operations.ListImageMetadataRequest,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): Promise<operations.ListImageMetadataResponse> {
|
|
26
|
+
return unwrapAsync(imagesList(
|
|
27
|
+
this,
|
|
28
|
+
request,
|
|
29
|
+
options,
|
|
30
|
+
));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Retrieve metadata for a specific image by its ID.
|
|
35
|
+
*/
|
|
36
|
+
async getMetadata(
|
|
37
|
+
request: operations.GetImageMetadataRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): Promise<operations.GetImageMetadataResponse> {
|
|
40
|
+
return unwrapAsync(imagesGetMetadata(
|
|
41
|
+
this,
|
|
42
|
+
request,
|
|
43
|
+
options,
|
|
44
|
+
));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Permanently delete an image by its ID.
|
|
49
|
+
*/
|
|
50
|
+
async delete(
|
|
51
|
+
request: operations.DeleteImageRequest,
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): Promise<operations.DeleteImageResponse | undefined> {
|
|
54
|
+
return unwrapAsync(imagesDelete(
|
|
55
|
+
this,
|
|
56
|
+
request,
|
|
57
|
+
options,
|
|
58
|
+
));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Get an image by its public ID.
|
|
63
|
+
*/
|
|
64
|
+
async getPublic(
|
|
65
|
+
request: operations.GetPublicImageRequest,
|
|
66
|
+
options?: RequestOptions & { acceptHeaderOverride?: GetPublicAcceptEnum },
|
|
67
|
+
): Promise<operations.GetPublicImageResponse | undefined> {
|
|
68
|
+
return unwrapAsync(imagesGetPublic(
|
|
69
|
+
this,
|
|
70
|
+
request,
|
|
71
|
+
options,
|
|
72
|
+
));
|
|
73
|
+
}
|
|
74
|
+
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { EnrichedAddress } from "./enrichedaddress.js";
|
|
|
20
20
|
import { EnrichedProfile } from "./enrichedprofile.js";
|
|
21
21
|
import { FeePlans } from "./feeplans.js";
|
|
22
22
|
import { Files } from "./files.js";
|
|
23
|
+
import { Images } from "./images.js";
|
|
23
24
|
import { Industries } from "./industries.js";
|
|
24
25
|
import { Institutions } from "./institutions.js";
|
|
25
26
|
import { IssuingTransactions } from "./issuingtransactions.js";
|
|
@@ -90,6 +91,11 @@ export class Moov extends ClientSDK {
|
|
|
90
91
|
return (this._files ??= new Files(this._options));
|
|
91
92
|
}
|
|
92
93
|
|
|
94
|
+
private _images?: Images;
|
|
95
|
+
get images(): Images {
|
|
96
|
+
return (this._images ??= new Images(this._options));
|
|
97
|
+
}
|
|
98
|
+
|
|
93
99
|
private _paymentLinks?: PaymentLinks;
|
|
94
100
|
get paymentLinks(): PaymentLinks {
|
|
95
101
|
return (this._paymentLinks ??= new PaymentLinks(this._options));
|