@cloudinary/asset-management-mcp 0.7.0 → 0.8.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 +46 -2
- package/bin/mcp-server.js +6852 -5586
- package/bin/mcp-server.js.map +30 -25
- package/esm/funcs/foldersAssignFolderRoles.d.ts +19 -0
- package/esm/funcs/foldersAssignFolderRoles.d.ts.map +1 -0
- package/esm/funcs/foldersAssignFolderRoles.js +101 -0
- package/esm/funcs/foldersAssignFolderRoles.js.map +1 -0
- package/esm/funcs/foldersGetFolderRoles.d.ts +15 -0
- package/esm/funcs/foldersGetFolderRoles.d.ts.map +1 -0
- package/esm/funcs/foldersGetFolderRoles.js +99 -0
- package/esm/funcs/foldersGetFolderRoles.js.map +1 -0
- package/esm/funcs/peopleGetPerson.d.ts +16 -0
- package/esm/funcs/peopleGetPerson.d.ts.map +1 -0
- package/esm/funcs/peopleGetPerson.js +95 -0
- package/esm/funcs/peopleGetPerson.js.map +1 -0
- package/esm/funcs/peopleListPeople.d.ts +19 -0
- package/esm/funcs/peopleListPeople.d.ts.map +1 -0
- package/esm/funcs/peopleListPeople.js +107 -0
- package/esm/funcs/peopleListPeople.js.map +1 -0
- package/esm/funcs/peopleUpdatePerson.d.ts +18 -0
- package/esm/funcs/peopleUpdatePerson.d.ts.map +1 -0
- package/esm/funcs/peopleUpdatePerson.js +98 -0
- package/esm/funcs/peopleUpdatePerson.js.map +1 -0
- package/esm/funcs/videoAnalyticsGetVideoViews.d.ts +2 -2
- package/esm/funcs/videoAnalyticsGetVideoViews.d.ts.map +1 -1
- package/esm/funcs/videoAnalyticsGetVideoViews.js.map +1 -1
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +4 -4
- package/esm/lib/config.js +4 -4
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js.map +1 -1
- package/esm/mcp-server/cli/serve/command.d.ts +2 -0
- package/esm/mcp-server/cli/serve/command.d.ts.map +1 -0
- package/esm/mcp-server/cli/serve/command.js +140 -0
- package/esm/mcp-server/cli/serve/command.js.map +1 -0
- package/esm/mcp-server/cli/serve/impl.d.ts +12 -0
- package/esm/mcp-server/cli/serve/impl.d.ts.map +1 -0
- package/esm/mcp-server/cli/serve/impl.js +85 -0
- package/esm/mcp-server/cli/serve/impl.js.map +1 -0
- package/esm/mcp-server/mcp-server.d.ts.map +1 -1
- package/esm/mcp-server/mcp-server.js +3 -1
- package/esm/mcp-server/mcp-server.js.map +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools.d.ts +4 -0
- package/esm/mcp-server/tools.d.ts.map +1 -1
- package/esm/mcp-server/tools.js +40 -0
- package/esm/mcp-server/tools.js.map +1 -1
- package/esm/models/assignfolderrolesop.d.ts +16 -0
- package/esm/models/assignfolderrolesop.d.ts.map +1 -0
- package/esm/models/assignfolderrolesop.js +20 -0
- package/esm/models/assignfolderrolesop.js.map +1 -0
- package/esm/models/assignfolderrolesrequest.d.ts +33 -0
- package/esm/models/assignfolderrolesrequest.d.ts.map +1 -0
- package/esm/models/assignfolderrolesrequest.js +26 -0
- package/esm/models/assignfolderrolesrequest.js.map +1 -0
- package/esm/models/destroyassetop.d.ts +5 -3
- package/esm/models/destroyassetop.d.ts.map +1 -1
- package/esm/models/destroyassetop.js +5 -3
- package/esm/models/destroyassetop.js.map +1 -1
- package/esm/models/explicitassetop.d.ts +1 -67
- package/esm/models/explicitassetop.d.ts.map +1 -1
- package/esm/models/explicitassetop.js +1 -44
- package/esm/models/explicitassetop.js.map +1 -1
- package/esm/models/folderrole.d.ts +9 -0
- package/esm/models/folderrole.d.ts.map +1 -0
- package/esm/models/folderrole.js +11 -0
- package/esm/models/folderrole.js.map +1 -0
- package/esm/models/folderroleassignment.d.ts +11 -0
- package/esm/models/folderroleassignment.d.ts.map +1 -0
- package/esm/models/folderroleassignment.js +14 -0
- package/esm/models/folderroleassignment.js.map +1 -0
- package/esm/models/folderrolesresponse.d.ts +9 -0
- package/esm/models/folderrolesresponse.d.ts.map +1 -0
- package/esm/models/folderrolesresponse.js +12 -0
- package/esm/models/folderrolesresponse.js.map +1 -0
- package/esm/models/getfolderrolesop.d.ts +15 -0
- package/esm/models/getfolderrolesop.d.ts.map +1 -0
- package/esm/models/getfolderrolesop.js +18 -0
- package/esm/models/getfolderrolesop.js.map +1 -0
- package/esm/models/getpersonop.d.ts +21 -0
- package/esm/models/getpersonop.d.ts.map +1 -0
- package/esm/models/getpersonop.js +21 -0
- package/esm/models/getpersonop.js.map +1 -0
- package/esm/models/getvideoviewsop.d.ts +4 -4
- package/esm/models/getvideoviewsop.d.ts.map +1 -1
- package/esm/models/getvideoviewsop.js +3 -3
- package/esm/models/getvideoviewsop.js.map +1 -1
- package/esm/models/info.d.ts +25 -12
- package/esm/models/info.d.ts.map +1 -1
- package/esm/models/info.js +26 -8
- package/esm/models/info.js.map +1 -1
- package/esm/models/listpeopleop.d.ts +69 -0
- package/esm/models/listpeopleop.d.ts.map +1 -0
- package/esm/models/listpeopleop.js +60 -0
- package/esm/models/listpeopleop.js.map +1 -0
- package/esm/models/listresourcesbymoderationkindandstatusop.d.ts +1 -1
- package/esm/models/parametersdirection.d.ts +18 -0
- package/esm/models/parametersdirection.d.ts.map +1 -0
- package/esm/models/parametersdirection.js +16 -0
- package/esm/models/parametersdirection.js.map +1 -0
- package/esm/models/permittedrole.d.ts +8 -0
- package/esm/models/permittedrole.d.ts.map +1 -0
- package/esm/models/permittedrole.js +10 -0
- package/esm/models/permittedrole.js.map +1 -0
- package/esm/models/persondetails.d.ts +16 -0
- package/esm/models/persondetails.d.ts.map +1 -0
- package/esm/models/persondetails.js +15 -0
- package/esm/models/persondetails.js.map +1 -0
- package/esm/models/personstatus.d.ts +18 -0
- package/esm/models/personstatus.d.ts.map +1 -0
- package/esm/models/personstatus.js +16 -0
- package/esm/models/personstatus.js.map +1 -0
- package/esm/models/principaltype.d.ts +20 -0
- package/esm/models/principaltype.d.ts.map +1 -0
- package/esm/models/principaltype.js +18 -0
- package/esm/models/principaltype.js.map +1 -0
- package/esm/models/resourceupdaterequest.d.ts +4 -68
- package/esm/models/resourceupdaterequest.d.ts.map +1 -1
- package/esm/models/resourceupdaterequest.js +4 -53
- package/esm/models/resourceupdaterequest.js.map +1 -1
- package/esm/models/searchparameters.d.ts +1 -1
- package/esm/models/searchresponse.d.ts +4 -0
- package/esm/models/searchresponse.d.ts.map +1 -1
- package/esm/models/searchresponse.js +4 -0
- package/esm/models/searchresponse.js.map +1 -1
- package/esm/models/successresponse.d.ts +6 -0
- package/esm/models/successresponse.d.ts.map +1 -0
- package/esm/models/successresponse.js +8 -0
- package/esm/models/successresponse.js.map +1 -0
- package/esm/models/textop.d.ts +15 -15
- package/esm/models/textop.d.ts.map +1 -1
- package/esm/models/textop.js +15 -15
- package/esm/models/textop.js.map +1 -1
- package/esm/models/thumbnail.d.ts +15 -0
- package/esm/models/thumbnail.d.ts.map +1 -0
- package/esm/models/thumbnail.js +14 -0
- package/esm/models/thumbnail.js.map +1 -0
- package/esm/models/updatepersonop.d.ts +30 -0
- package/esm/models/updatepersonop.d.ts.map +1 -0
- package/esm/models/updatepersonop.js +31 -0
- package/esm/models/updatepersonop.js.map +1 -0
- package/esm/models/uploadrequest.d.ts +4 -136
- package/esm/models/uploadrequest.d.ts.map +1 -1
- package/esm/models/uploadrequest.js +4 -96
- package/esm/models/uploadrequest.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/foldersAssignFolderRoles.ts +173 -0
- package/src/funcs/foldersGetFolderRoles.ts +170 -0
- package/src/funcs/peopleGetPerson.ts +161 -0
- package/src/funcs/peopleListPeople.ts +195 -0
- package/src/funcs/peopleUpdatePerson.ts +168 -0
- package/src/funcs/videoAnalyticsGetVideoViews.ts +3 -3
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/security.ts +4 -1
- package/src/mcp-server/cli/serve/command.ts +147 -0
- package/src/mcp-server/cli/serve/impl.ts +114 -0
- package/src/mcp-server/mcp-server.ts +3 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools.ts +89 -0
- package/src/models/assignfolderrolesop.ts +46 -0
- package/src/models/assignfolderrolesrequest.ts +52 -0
- package/src/models/destroyassetop.ts +7 -5
- package/src/models/explicitassetop.ts +2 -74
- package/src/models/folderrole.ts +19 -0
- package/src/models/folderroleassignment.ts +22 -0
- package/src/models/folderrolesresponse.ts +21 -0
- package/src/models/getfolderrolesop.ts +43 -0
- package/src/models/getpersonop.ts +43 -0
- package/src/models/getvideoviewsop.ts +5 -5
- package/src/models/info.ts +53 -17
- package/src/models/listpeopleop.ts +114 -0
- package/src/models/parametersdirection.ts +23 -0
- package/src/models/permittedrole.ts +13 -0
- package/src/models/persondetails.ts +28 -0
- package/src/models/personstatus.ts +23 -0
- package/src/models/principaltype.ts +25 -0
- package/src/models/resourceupdaterequest.ts +8 -87
- package/src/models/searchresponse.ts +4 -0
- package/src/models/successresponse.ts +11 -0
- package/src/models/textop.ts +30 -30
- package/src/models/thumbnail.ts +28 -0
- package/src/models/updatepersonop.ts +66 -0
- package/src/models/uploadrequest.ts +8 -162
- package/_speakeasy/.github/action-inputs-config.json +0 -53
- package/_speakeasy/.github/action-security-config.json +0 -88
- package/manifest.json +0 -169
- package/tsconfig.json +0 -35
|
@@ -26,84 +26,6 @@ export const ModerationStatus$zodSchema = z.enum([
|
|
|
26
26
|
"rejected",
|
|
27
27
|
]).describe("The moderation status of the resource.");
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
* The type of OCR to perform on the resource.
|
|
31
|
-
*/
|
|
32
|
-
export const ResourceUpdateRequestOcr = {
|
|
33
|
-
AdvOcr: "adv_ocr",
|
|
34
|
-
} as const;
|
|
35
|
-
/**
|
|
36
|
-
* The type of OCR to perform on the resource.
|
|
37
|
-
*/
|
|
38
|
-
export type ResourceUpdateRequestOcr = ClosedEnum<
|
|
39
|
-
typeof ResourceUpdateRequestOcr
|
|
40
|
-
>;
|
|
41
|
-
|
|
42
|
-
export const ResourceUpdateRequestOcr$zodSchema = z.enum([
|
|
43
|
-
"adv_ocr",
|
|
44
|
-
]).describe("The type of OCR to perform on the resource.");
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The conversion to apply for raw files.
|
|
48
|
-
*/
|
|
49
|
-
export const RawConvert = {
|
|
50
|
-
Aspose: "aspose",
|
|
51
|
-
GoogleSpeech: "google_speech",
|
|
52
|
-
ExtractText: "extract_text",
|
|
53
|
-
} as const;
|
|
54
|
-
/**
|
|
55
|
-
* The conversion to apply for raw files.
|
|
56
|
-
*/
|
|
57
|
-
export type RawConvert = ClosedEnum<typeof RawConvert>;
|
|
58
|
-
|
|
59
|
-
export const RawConvert$zodSchema = z.enum([
|
|
60
|
-
"aspose",
|
|
61
|
-
"google_speech",
|
|
62
|
-
"extract_text",
|
|
63
|
-
]).describe("The conversion to apply for raw files.");
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* The type of categorization to perform on the resource.
|
|
67
|
-
*/
|
|
68
|
-
export const ResourceUpdateRequestCategorization = {
|
|
69
|
-
GoogleTagging: "google_tagging",
|
|
70
|
-
GoogleVideoTagging: "google_video_tagging",
|
|
71
|
-
ImaggaTagging: "imagga_tagging",
|
|
72
|
-
AwsRekTagging: "aws_rek_tagging",
|
|
73
|
-
} as const;
|
|
74
|
-
/**
|
|
75
|
-
* The type of categorization to perform on the resource.
|
|
76
|
-
*/
|
|
77
|
-
export type ResourceUpdateRequestCategorization = ClosedEnum<
|
|
78
|
-
typeof ResourceUpdateRequestCategorization
|
|
79
|
-
>;
|
|
80
|
-
|
|
81
|
-
export const ResourceUpdateRequestCategorization$zodSchema = z.enum([
|
|
82
|
-
"google_tagging",
|
|
83
|
-
"google_video_tagging",
|
|
84
|
-
"imagga_tagging",
|
|
85
|
-
"aws_rek_tagging",
|
|
86
|
-
]).describe("The type of categorization to perform on the resource.");
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* The background removal provider to use for the resource.
|
|
90
|
-
*/
|
|
91
|
-
export const ResourceUpdateRequestBackgroundRemoval = {
|
|
92
|
-
CloudinaryAi: "cloudinary_ai",
|
|
93
|
-
Pixelz: "pixelz",
|
|
94
|
-
} as const;
|
|
95
|
-
/**
|
|
96
|
-
* The background removal provider to use for the resource.
|
|
97
|
-
*/
|
|
98
|
-
export type ResourceUpdateRequestBackgroundRemoval = ClosedEnum<
|
|
99
|
-
typeof ResourceUpdateRequestBackgroundRemoval
|
|
100
|
-
>;
|
|
101
|
-
|
|
102
|
-
export const ResourceUpdateRequestBackgroundRemoval$zodSchema = z.enum([
|
|
103
|
-
"cloudinary_ai",
|
|
104
|
-
"pixelz",
|
|
105
|
-
]).describe("The background removal provider to use for the resource.");
|
|
106
|
-
|
|
107
29
|
export type ResourceUpdateRequest = {
|
|
108
30
|
display_name?: string | undefined;
|
|
109
31
|
unique_display_name?: boolean | undefined;
|
|
@@ -119,11 +41,11 @@ export type ResourceUpdateRequest = {
|
|
|
119
41
|
moderation_status?: ModerationStatus | undefined;
|
|
120
42
|
auto_tagging?: number | undefined;
|
|
121
43
|
detection?: string | undefined;
|
|
122
|
-
ocr?:
|
|
123
|
-
raw_convert?:
|
|
124
|
-
categorization?:
|
|
44
|
+
ocr?: string | undefined;
|
|
45
|
+
raw_convert?: string | undefined;
|
|
46
|
+
categorization?: string | undefined;
|
|
125
47
|
visual_search?: boolean | undefined;
|
|
126
|
-
background_removal?:
|
|
48
|
+
background_removal?: string | undefined;
|
|
127
49
|
access_control?: Array<AccessControlItem> | undefined;
|
|
128
50
|
};
|
|
129
51
|
|
|
@@ -132,9 +54,8 @@ export const ResourceUpdateRequest$zodSchema: z.ZodType<ResourceUpdateRequest> =
|
|
|
132
54
|
access_control: z.array(AccessControlItem$zodSchema).optional(),
|
|
133
55
|
asset_folder: z.string().optional(),
|
|
134
56
|
auto_tagging: z.number().optional(),
|
|
135
|
-
background_removal:
|
|
136
|
-
|
|
137
|
-
categorization: ResourceUpdateRequestCategorization$zodSchema.optional(),
|
|
57
|
+
background_removal: z.string().optional(),
|
|
58
|
+
categorization: z.string().optional(),
|
|
138
59
|
clear_invalid: z.boolean().default(false),
|
|
139
60
|
context: z.string().optional(),
|
|
140
61
|
custom_coordinates: z.string().optional(),
|
|
@@ -143,9 +64,9 @@ export const ResourceUpdateRequest$zodSchema: z.ZodType<ResourceUpdateRequest> =
|
|
|
143
64
|
face_coordinates: z.string().optional(),
|
|
144
65
|
metadata: z.string().optional(),
|
|
145
66
|
moderation_status: ModerationStatus$zodSchema.optional(),
|
|
146
|
-
ocr:
|
|
67
|
+
ocr: z.string().optional(),
|
|
147
68
|
quality_override: z.string().optional(),
|
|
148
|
-
raw_convert:
|
|
69
|
+
raw_convert: z.string().optional(),
|
|
149
70
|
regions: z.string().optional(),
|
|
150
71
|
tags: z.string().optional(),
|
|
151
72
|
unique_display_name: z.boolean().default(false),
|
|
@@ -59,6 +59,8 @@ export const SearchResponseType$zodSchema = z.enum([
|
|
|
59
59
|
export const SearchResponseStatus = {
|
|
60
60
|
Active: "active",
|
|
61
61
|
Inactive: "inactive",
|
|
62
|
+
Deleted: "deleted",
|
|
63
|
+
Pending: "pending",
|
|
62
64
|
} as const;
|
|
63
65
|
/**
|
|
64
66
|
* The current status of the asset.
|
|
@@ -68,6 +70,8 @@ export type SearchResponseStatus = ClosedEnum<typeof SearchResponseStatus>;
|
|
|
68
70
|
export const SearchResponseStatus$zodSchema = z.enum([
|
|
69
71
|
"active",
|
|
70
72
|
"inactive",
|
|
73
|
+
"deleted",
|
|
74
|
+
"pending",
|
|
71
75
|
]).describe("The current status of the asset.");
|
|
72
76
|
|
|
73
77
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type SuccessResponse = { success: boolean };
|
|
8
|
+
|
|
9
|
+
export const SuccessResponse$zodSchema: z.ZodType<SuccessResponse> = z.object({
|
|
10
|
+
success: z.boolean(),
|
|
11
|
+
});
|
package/src/models/textop.ts
CHANGED
|
@@ -171,24 +171,24 @@ export const TextInfo$zodSchema: z.ZodType<TextInfo> = z.object({}).describe(
|
|
|
171
171
|
* Text image created successfully
|
|
172
172
|
*/
|
|
173
173
|
export type TextResponseBody = {
|
|
174
|
-
asset_id
|
|
175
|
-
public_id
|
|
176
|
-
version
|
|
177
|
-
version_id
|
|
178
|
-
signature
|
|
179
|
-
width
|
|
180
|
-
height
|
|
181
|
-
format
|
|
182
|
-
resource_type
|
|
183
|
-
created_at
|
|
174
|
+
asset_id?: string | undefined;
|
|
175
|
+
public_id?: string | undefined;
|
|
176
|
+
version?: number | undefined;
|
|
177
|
+
version_id?: string | undefined;
|
|
178
|
+
signature?: string | undefined;
|
|
179
|
+
width?: number | undefined;
|
|
180
|
+
height?: number | undefined;
|
|
181
|
+
format?: string | undefined;
|
|
182
|
+
resource_type?: string | undefined;
|
|
183
|
+
created_at?: string | undefined;
|
|
184
184
|
tags?: Array<string> | undefined;
|
|
185
185
|
pages?: number | undefined;
|
|
186
|
-
bytes
|
|
187
|
-
type
|
|
186
|
+
bytes?: number | undefined;
|
|
187
|
+
type?: string | undefined;
|
|
188
188
|
etag?: string | undefined;
|
|
189
189
|
placeholder?: boolean | undefined;
|
|
190
|
-
url
|
|
191
|
-
secure_url
|
|
190
|
+
url?: string | undefined;
|
|
191
|
+
secure_url?: string | undefined;
|
|
192
192
|
display_name?: string | undefined;
|
|
193
193
|
access_mode?: string | undefined;
|
|
194
194
|
access_control?: Array<AccessControlItem> | undefined;
|
|
@@ -201,34 +201,34 @@ export const TextResponseBody$zodSchema: z.ZodType<TextResponseBody> = z.object(
|
|
|
201
201
|
{
|
|
202
202
|
access_control: z.array(AccessControlItem$zodSchema).optional(),
|
|
203
203
|
access_mode: z.string().optional(),
|
|
204
|
-
asset_id: z.string(),
|
|
205
|
-
bytes: z.int(),
|
|
206
|
-
created_at: z.iso.datetime({ offset: true }),
|
|
204
|
+
asset_id: z.string().optional(),
|
|
205
|
+
bytes: z.int().optional(),
|
|
206
|
+
created_at: z.iso.datetime({ offset: true }).optional(),
|
|
207
207
|
display_name: z.string().optional(),
|
|
208
208
|
etag: z.string().optional(),
|
|
209
|
-
format: z.string(),
|
|
210
|
-
height: z.int(),
|
|
209
|
+
format: z.string().optional(),
|
|
210
|
+
height: z.int().optional(),
|
|
211
211
|
info: z.lazy(() => TextInfo$zodSchema).optional(),
|
|
212
212
|
moderation: z.lazy(() => TextModeration$zodSchema).optional(),
|
|
213
213
|
pages: z.int().optional(),
|
|
214
214
|
placeholder: z.boolean().optional(),
|
|
215
|
-
public_id: z.string(),
|
|
215
|
+
public_id: z.string().optional(),
|
|
216
216
|
regions: z.array(z.lazy(() => Region$zodSchema)).optional(),
|
|
217
|
-
resource_type: z.string(),
|
|
218
|
-
secure_url: z.string(),
|
|
219
|
-
signature: z.string(),
|
|
217
|
+
resource_type: z.string().optional(),
|
|
218
|
+
secure_url: z.string().optional(),
|
|
219
|
+
signature: z.string().optional(),
|
|
220
220
|
tags: z.array(z.string()).optional(),
|
|
221
|
-
type: z.string(),
|
|
222
|
-
url: z.string(),
|
|
223
|
-
version: z.int(),
|
|
224
|
-
version_id: z.string(),
|
|
225
|
-
width: z.int(),
|
|
221
|
+
type: z.string().optional(),
|
|
222
|
+
url: z.string().optional(),
|
|
223
|
+
version: z.int().optional(),
|
|
224
|
+
version_id: z.string().optional(),
|
|
225
|
+
width: z.int().optional(),
|
|
226
226
|
},
|
|
227
227
|
).describe("Text image created successfully");
|
|
228
228
|
|
|
229
|
-
export type TextResponse =
|
|
229
|
+
export type TextResponse = ApiError | TextResponseBody;
|
|
230
230
|
|
|
231
231
|
export const TextResponse$zodSchema: z.ZodType<TextResponse> = z.union([
|
|
232
|
-
z.lazy(() => TextResponseBody$zodSchema),
|
|
233
232
|
ApiError$zodSchema,
|
|
233
|
+
z.lazy(() => TextResponseBody$zodSchema),
|
|
234
234
|
]);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The thumbnail image for a person.
|
|
9
|
+
*/
|
|
10
|
+
export type Thumbnail = {
|
|
11
|
+
asset_id?: string | undefined;
|
|
12
|
+
bounding_box?: Array<number> | undefined;
|
|
13
|
+
url?: string | undefined;
|
|
14
|
+
resource_type?: string | undefined;
|
|
15
|
+
type?: string | undefined;
|
|
16
|
+
public_id?: string | undefined;
|
|
17
|
+
version?: number | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const Thumbnail$zodSchema: z.ZodType<Thumbnail> = z.object({
|
|
21
|
+
asset_id: z.string().optional(),
|
|
22
|
+
bounding_box: z.array(z.int()).optional(),
|
|
23
|
+
public_id: z.string().optional(),
|
|
24
|
+
resource_type: z.string().optional(),
|
|
25
|
+
type: z.string().optional(),
|
|
26
|
+
url: z.string().optional(),
|
|
27
|
+
version: z.int().optional(),
|
|
28
|
+
}).describe("The thumbnail image for a person.");
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ApiError, ApiError$zodSchema } from "./apierror.js";
|
|
7
|
+
import { PersonStatus, PersonStatus$zodSchema } from "./personstatus.js";
|
|
8
|
+
|
|
9
|
+
export type UpdatePersonGlobals = { cloud_name?: string | undefined };
|
|
10
|
+
|
|
11
|
+
export const UpdatePersonGlobals$zodSchema: z.ZodType<UpdatePersonGlobals> = z
|
|
12
|
+
.object({
|
|
13
|
+
cloud_name: z.string().describe(
|
|
14
|
+
"The cloud name of your product environment.",
|
|
15
|
+
).optional(),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export type UpdatePersonRequestBody = {
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
status?: PersonStatus | undefined;
|
|
21
|
+
thumbnail_asset_id?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const UpdatePersonRequestBody$zodSchema: z.ZodType<
|
|
25
|
+
UpdatePersonRequestBody
|
|
26
|
+
> = z.object({
|
|
27
|
+
name: z.string().optional(),
|
|
28
|
+
status: PersonStatus$zodSchema.optional(),
|
|
29
|
+
thumbnail_asset_id: z.string().optional(),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export type UpdatePersonRequest = {
|
|
33
|
+
person_id: string;
|
|
34
|
+
RequestBody: UpdatePersonRequestBody;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const UpdatePersonRequest$zodSchema: z.ZodType<UpdatePersonRequest> = z
|
|
38
|
+
.object({
|
|
39
|
+
RequestBody: z.lazy(() => UpdatePersonRequestBody$zodSchema),
|
|
40
|
+
person_id: z.string().describe("The unique identifier of the person."),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Person updated successfully
|
|
45
|
+
*/
|
|
46
|
+
export type UpdatePersonResponseBody = {
|
|
47
|
+
person_id?: string | undefined;
|
|
48
|
+
name?: string | undefined;
|
|
49
|
+
status?: PersonStatus | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const UpdatePersonResponseBody$zodSchema: z.ZodType<
|
|
53
|
+
UpdatePersonResponseBody
|
|
54
|
+
> = z.object({
|
|
55
|
+
name: z.string().optional(),
|
|
56
|
+
person_id: z.string().optional(),
|
|
57
|
+
status: PersonStatus$zodSchema.optional(),
|
|
58
|
+
}).describe("Person updated successfully");
|
|
59
|
+
|
|
60
|
+
export type UpdatePersonResponse = ApiError | UpdatePersonResponseBody;
|
|
61
|
+
|
|
62
|
+
export const UpdatePersonResponse$zodSchema: z.ZodType<UpdatePersonResponse> = z
|
|
63
|
+
.union([
|
|
64
|
+
ApiError$zodSchema,
|
|
65
|
+
z.lazy(() => UpdatePersonResponseBody$zodSchema),
|
|
66
|
+
]);
|
|
@@ -30,77 +30,6 @@ export const AutoTranscriptionUnion$zodSchema: z.ZodType<
|
|
|
30
30
|
z.lazy(() => AutoTranscription$zodSchema),
|
|
31
31
|
]);
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* For all asset types, set to:
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* - manual to add the uploaded asset to a list of pending assets that can be moderated using the Admin API or the Cloudinary Console.
|
|
38
|
-
* - perception_point to automatically moderate the uploaded asset using the Perception Point Malware Detection add-on.
|
|
39
|
-
*
|
|
40
|
-
* For images only, set to:
|
|
41
|
-
* - webpurify to automatically moderate the uploaded image using the WebPurify Image Moderation add-on.
|
|
42
|
-
* - aws_rek to automatically moderate the uploaded image using the Amazon Rekognition AI Moderation add-on.
|
|
43
|
-
* - duplicate:<threshold> to detect if the same or a similar image already exists using the Cloudinary Duplicate Image Detection add-on. Set threshold to a float greater than 0 and less than or equal to 1.0 to specify how similar an image needs to be in order to be considered a duplicate. Set threshold to 0 to add an image to the index of images that are searched when duplicate detection is invoked for another image.
|
|
44
|
-
*
|
|
45
|
-
* For videos only, set to:
|
|
46
|
-
* - aws_rek_video to automatically moderate the uploaded video using the Amazon Rekognition Video Moderation add-on.
|
|
47
|
-
* - google_video_moderation automatically moderate the uploaded video using the Google AI Video Moderation add-on.
|
|
48
|
-
*
|
|
49
|
-
* To request multiple moderations in a single API call:
|
|
50
|
-
* - Send the desired list of moderations as a pipe-separated string with manual moderation, if relevant, being last.
|
|
51
|
-
*
|
|
52
|
-
* Note: Rejected assets are automatically invalidated on the CDN within approximately ten minutes.
|
|
53
|
-
*/
|
|
54
|
-
export const UploadRequestModeration = {
|
|
55
|
-
Manual: "manual",
|
|
56
|
-
Webpurify: "webpurify",
|
|
57
|
-
Metascan: "metascan",
|
|
58
|
-
AwsRek: "aws_rek",
|
|
59
|
-
AwsRekVideo: "aws_rek_video",
|
|
60
|
-
GoogleVideoModeration: "google_video_moderation",
|
|
61
|
-
PerceptionPoint: "perception_point",
|
|
62
|
-
Duplicate: "duplicate",
|
|
63
|
-
Cld: "cld",
|
|
64
|
-
} as const;
|
|
65
|
-
/**
|
|
66
|
-
* For all asset types, set to:
|
|
67
|
-
*
|
|
68
|
-
* @remarks
|
|
69
|
-
* - manual to add the uploaded asset to a list of pending assets that can be moderated using the Admin API or the Cloudinary Console.
|
|
70
|
-
* - perception_point to automatically moderate the uploaded asset using the Perception Point Malware Detection add-on.
|
|
71
|
-
*
|
|
72
|
-
* For images only, set to:
|
|
73
|
-
* - webpurify to automatically moderate the uploaded image using the WebPurify Image Moderation add-on.
|
|
74
|
-
* - aws_rek to automatically moderate the uploaded image using the Amazon Rekognition AI Moderation add-on.
|
|
75
|
-
* - duplicate:<threshold> to detect if the same or a similar image already exists using the Cloudinary Duplicate Image Detection add-on. Set threshold to a float greater than 0 and less than or equal to 1.0 to specify how similar an image needs to be in order to be considered a duplicate. Set threshold to 0 to add an image to the index of images that are searched when duplicate detection is invoked for another image.
|
|
76
|
-
*
|
|
77
|
-
* For videos only, set to:
|
|
78
|
-
* - aws_rek_video to automatically moderate the uploaded video using the Amazon Rekognition Video Moderation add-on.
|
|
79
|
-
* - google_video_moderation automatically moderate the uploaded video using the Google AI Video Moderation add-on.
|
|
80
|
-
*
|
|
81
|
-
* To request multiple moderations in a single API call:
|
|
82
|
-
* - Send the desired list of moderations as a pipe-separated string with manual moderation, if relevant, being last.
|
|
83
|
-
*
|
|
84
|
-
* Note: Rejected assets are automatically invalidated on the CDN within approximately ten minutes.
|
|
85
|
-
*/
|
|
86
|
-
export type UploadRequestModeration = ClosedEnum<
|
|
87
|
-
typeof UploadRequestModeration
|
|
88
|
-
>;
|
|
89
|
-
|
|
90
|
-
export const UploadRequestModeration$zodSchema = z.enum([
|
|
91
|
-
"manual",
|
|
92
|
-
"webpurify",
|
|
93
|
-
"metascan",
|
|
94
|
-
"aws_rek",
|
|
95
|
-
"aws_rek_video",
|
|
96
|
-
"google_video_moderation",
|
|
97
|
-
"perception_point",
|
|
98
|
-
"duplicate",
|
|
99
|
-
"cld",
|
|
100
|
-
]).describe(
|
|
101
|
-
"For all asset types, set to:\n- manual to add the uploaded asset to a list of pending assets that can be moderated using the Admin API or the Cloudinary Console.\n- perception_point to automatically moderate the uploaded asset using the Perception Point Malware Detection add-on.\n\nFor images only, set to:\n- webpurify to automatically moderate the uploaded image using the WebPurify Image Moderation add-on.\n- aws_rek to automatically moderate the uploaded image using the Amazon Rekognition AI Moderation add-on.\n- duplicate:<threshold> to detect if the same or a similar image already exists using the Cloudinary Duplicate Image Detection add-on. Set threshold to a float greater than 0 and less than or equal to 1.0 to specify how similar an image needs to be in order to be considered a duplicate. Set threshold to 0 to add an image to the index of images that are searched when duplicate detection is invoked for another image.\n\nFor videos only, set to:\n- aws_rek_video to automatically moderate the uploaded video using the Amazon Rekognition Video Moderation add-on.\n- google_video_moderation automatically moderate the uploaded video using the Google AI Video Moderation add-on.\n\nTo request multiple moderations in a single API call:\n- Send the desired list of moderations as a pipe-separated string with manual moderation, if relevant, being last.\n\nNote: Rejected assets are automatically invalidated on the CDN within approximately ten minutes.\n",
|
|
102
|
-
);
|
|
103
|
-
|
|
104
33
|
export type ResponsiveBreakpoint = {
|
|
105
34
|
create_derived?: boolean | undefined;
|
|
106
35
|
max_width?: number | undefined;
|
|
@@ -172,89 +101,6 @@ export const UploadRequestAccessMode$zodSchema = z.enum([
|
|
|
172
101
|
"Allows the asset to behave as if it's of the authenticated 'type' (see above) while still using the default 'upload' type in delivery URLs. The asset can later be made public by changing its access_mode via the Admin API, without having to update any delivery URLs. Valid values: public, and authenticated.\n",
|
|
173
102
|
);
|
|
174
103
|
|
|
175
|
-
/**
|
|
176
|
-
* A comma-separated list of the categorization add-ons to run on the asset. Set to google_tagging, google_video_tagging, imagga_tagging and/or aws_rek_tagging to automatically classify the scenes of the uploaded asset.
|
|
177
|
-
*/
|
|
178
|
-
export const UploadRequestCategorization = {
|
|
179
|
-
RekognitionScene: "rekognition_scene",
|
|
180
|
-
ImaggaTagging: "imagga_tagging",
|
|
181
|
-
AwsRekTagging: "aws_rek_tagging",
|
|
182
|
-
GoogleVideoTagging: "google_video_tagging",
|
|
183
|
-
GoogleTagging: "google_tagging",
|
|
184
|
-
VisenzeRecognition: "visenze_recognition",
|
|
185
|
-
AzureVideoIndexer: "azure_video_indexer",
|
|
186
|
-
} as const;
|
|
187
|
-
/**
|
|
188
|
-
* A comma-separated list of the categorization add-ons to run on the asset. Set to google_tagging, google_video_tagging, imagga_tagging and/or aws_rek_tagging to automatically classify the scenes of the uploaded asset.
|
|
189
|
-
*/
|
|
190
|
-
export type UploadRequestCategorization = ClosedEnum<
|
|
191
|
-
typeof UploadRequestCategorization
|
|
192
|
-
>;
|
|
193
|
-
|
|
194
|
-
export const UploadRequestCategorization$zodSchema = z.enum([
|
|
195
|
-
"rekognition_scene",
|
|
196
|
-
"imagga_tagging",
|
|
197
|
-
"aws_rek_tagging",
|
|
198
|
-
"google_video_tagging",
|
|
199
|
-
"google_tagging",
|
|
200
|
-
"visenze_recognition",
|
|
201
|
-
"azure_video_indexer",
|
|
202
|
-
]).describe(
|
|
203
|
-
"A comma-separated list of the categorization add-ons to run on the asset. Set to google_tagging, google_video_tagging, imagga_tagging and/or aws_rek_tagging to automatically classify the scenes of the uploaded asset.",
|
|
204
|
-
);
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Set to adv_ocr to extract all text elements in an image as well as the bounding box coordinates of each detected element using the OCR text detection and extraction add-on.
|
|
208
|
-
*/
|
|
209
|
-
export const UploadRequestOcr = {
|
|
210
|
-
AdvOcr: "adv_ocr",
|
|
211
|
-
} as const;
|
|
212
|
-
/**
|
|
213
|
-
* Set to adv_ocr to extract all text elements in an image as well as the bounding box coordinates of each detected element using the OCR text detection and extraction add-on.
|
|
214
|
-
*/
|
|
215
|
-
export type UploadRequestOcr = ClosedEnum<typeof UploadRequestOcr>;
|
|
216
|
-
|
|
217
|
-
export const UploadRequestOcr$zodSchema = z.enum([
|
|
218
|
-
"adv_ocr",
|
|
219
|
-
]).describe(
|
|
220
|
-
"Set to adv_ocr to extract all text elements in an image as well as the bounding box coordinates of each detected element using the OCR text detection and extraction add-on.",
|
|
221
|
-
);
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Automatically remove the background of an image using an add-on.
|
|
225
|
-
*
|
|
226
|
-
* @remarks
|
|
227
|
-
* - Set to cloudinary_ai to use the deep-learning based Cloudinary AI Background Removal add-on.
|
|
228
|
-
* - Note: this feature has been superseded by background removal on the fly.
|
|
229
|
-
* - Set to pixelz to use the human-powered Pixelz Remove-The-Background Editing add-on service.
|
|
230
|
-
* Relevant for images only.
|
|
231
|
-
*/
|
|
232
|
-
export const UploadRequestBackgroundRemoval = {
|
|
233
|
-
CloudinaryAi: "cloudinary_ai",
|
|
234
|
-
RemoveTheBackground: "remove_the_background",
|
|
235
|
-
Pixelz: "pixelz",
|
|
236
|
-
} as const;
|
|
237
|
-
/**
|
|
238
|
-
* Automatically remove the background of an image using an add-on.
|
|
239
|
-
*
|
|
240
|
-
* @remarks
|
|
241
|
-
* - Set to cloudinary_ai to use the deep-learning based Cloudinary AI Background Removal add-on.
|
|
242
|
-
* - Note: this feature has been superseded by background removal on the fly.
|
|
243
|
-
* - Set to pixelz to use the human-powered Pixelz Remove-The-Background Editing add-on service.
|
|
244
|
-
* Relevant for images only.
|
|
245
|
-
*/
|
|
246
|
-
export type UploadRequestBackgroundRemoval = ClosedEnum<
|
|
247
|
-
typeof UploadRequestBackgroundRemoval
|
|
248
|
-
>;
|
|
249
|
-
|
|
250
|
-
export const UploadRequestBackgroundRemoval$zodSchema = z.enum([
|
|
251
|
-
"cloudinary_ai",
|
|
252
|
-
"remove_the_background",
|
|
253
|
-
"pixelz",
|
|
254
|
-
]).describe(
|
|
255
|
-
"Automatically remove the background of an image using an add-on.\n- Set to cloudinary_ai to use the deep-learning based Cloudinary AI Background Removal add-on.\n- Note: this feature has been superseded by background removal on the fly.\n- Set to pixelz to use the human-powered Pixelz Remove-The-Background Editing add-on service.\nRelevant for images only.\n",
|
|
256
|
-
);
|
|
257
|
-
|
|
258
104
|
export type UploadRequest = {
|
|
259
105
|
api_key?: string | undefined;
|
|
260
106
|
timestamp?: number | undefined;
|
|
@@ -278,7 +124,7 @@ export type UploadRequest = {
|
|
|
278
124
|
invalidate?: boolean | undefined;
|
|
279
125
|
media_metadata?: boolean | undefined;
|
|
280
126
|
metadata?: string | undefined;
|
|
281
|
-
moderation?:
|
|
127
|
+
moderation?: string | undefined;
|
|
282
128
|
notification_url?: string | undefined;
|
|
283
129
|
phash?: boolean | undefined;
|
|
284
130
|
quality_analysis?: boolean | undefined;
|
|
@@ -292,10 +138,10 @@ export type UploadRequest = {
|
|
|
292
138
|
return_delete_token?: boolean | undefined;
|
|
293
139
|
type?: UploadRequestType | undefined;
|
|
294
140
|
access_mode?: UploadRequestAccessMode | undefined;
|
|
295
|
-
categorization?:
|
|
296
|
-
ocr?:
|
|
141
|
+
categorization?: string | undefined;
|
|
142
|
+
ocr?: string | undefined;
|
|
297
143
|
raw_convert?: string | undefined;
|
|
298
|
-
background_removal?:
|
|
144
|
+
background_removal?: string | undefined;
|
|
299
145
|
public_id?: string | undefined;
|
|
300
146
|
transformation?: string | undefined;
|
|
301
147
|
format?: string | undefined;
|
|
@@ -333,10 +179,10 @@ export const UploadRequest$zodSchema: z.ZodType<UploadRequest> = z.object({
|
|
|
333
179
|
z.boolean(),
|
|
334
180
|
z.lazy(() => AutoTranscription$zodSchema),
|
|
335
181
|
]).optional(),
|
|
336
|
-
background_removal:
|
|
182
|
+
background_removal: z.string().optional(),
|
|
337
183
|
backup: z.boolean().optional(),
|
|
338
184
|
callback: z.string().optional(),
|
|
339
|
-
categorization:
|
|
185
|
+
categorization: z.string().optional(),
|
|
340
186
|
cinemagraph_analysis: z.boolean().optional(),
|
|
341
187
|
colors: z.boolean().default(false),
|
|
342
188
|
context: z.string().optional(),
|
|
@@ -358,9 +204,9 @@ export const UploadRequest$zodSchema: z.ZodType<UploadRequest> = z.object({
|
|
|
358
204
|
invalidate: z.boolean().optional(),
|
|
359
205
|
media_metadata: z.boolean().optional(),
|
|
360
206
|
metadata: z.string().optional(),
|
|
361
|
-
moderation:
|
|
207
|
+
moderation: z.string().optional(),
|
|
362
208
|
notification_url: z.string().optional(),
|
|
363
|
-
ocr:
|
|
209
|
+
ocr: z.string().optional(),
|
|
364
210
|
on_success: z.string().optional(),
|
|
365
211
|
overwrite: z.boolean().optional(),
|
|
366
212
|
phash: z.boolean().optional(),
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"name": "mode",
|
|
4
|
-
"validation_regex": "/^(direct|pr)$/.source",
|
|
5
|
-
"validation_message": "Must be `direct` or `pr`"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"name": "speakeasy_version",
|
|
9
|
-
"validation_regex": "/^[\\w.\\-]+$/.source",
|
|
10
|
-
"validation_message": "Letters, numbers, or .-_ only"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "openapi_doc_location",
|
|
14
|
-
"validation_regex": "/^((https?):\\/\\/([\\w\\-]+\\.)+\\w+(\\/.*)?|[\\w.\\-\\/]+)$/i.source",
|
|
15
|
-
"validation_message": "Must be a valid server URL or file path containing letters, numbers, or .-_/ only"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "openapi_doc_auth_header",
|
|
19
|
-
"validation_regex": "/^[A-Za-z\\-]+$/.source",
|
|
20
|
-
"validation_message": "Letters or - only"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "create_release"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "publish_python",
|
|
27
|
-
"language": "python"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "publish_typescript",
|
|
31
|
-
"language": "typescript"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "publish_java",
|
|
35
|
-
"language": "java"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "publish_php",
|
|
39
|
-
"language": "php"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"name": "publish_ruby",
|
|
43
|
-
"language": "ruby"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "publish_csharp",
|
|
47
|
-
"language": "csharp"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "publish_terraform",
|
|
51
|
-
"language": "terraform"
|
|
52
|
-
}
|
|
53
|
-
]
|