magic-hour 0.29.0 → 0.30.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 +5 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/face-detection/index.d.ts +2 -0
- package/dist/resources/v1/face-detection/index.js +5 -0
- package/dist/resources/v1/face-detection/request-types.d.ts +51 -0
- package/dist/resources/v1/face-detection/request-types.js +101 -0
- package/dist/resources/v1/face-detection/resource-client.d.ts +24 -0
- package/dist/resources/v1/face-detection/resource-client.js +48 -0
- package/dist/resources/v1/index.d.ts +1 -0
- package/dist/resources/v1/index.js +2 -1
- package/dist/resources/v1/resource-client.d.ts +3 -0
- package/dist/resources/v1/resource-client.js +6 -0
- package/dist/types/index.d.ts +18 -0
- package/dist/types/v1-face-detection-create-body-assets.d.ts +22 -0
- package/dist/types/v1-face-detection-create-body-assets.js +67 -0
- package/dist/types/v1-face-detection-create-body.d.ts +30 -0
- package/dist/types/v1-face-detection-create-body.js +72 -0
- package/dist/types/v1-face-detection-create-response.d.ts +27 -0
- package/dist/types/v1-face-detection-create-response.js +71 -0
- package/dist/types/v1-face-detection-create-response400.d.ts +19 -0
- package/dist/types/v1-face-detection-create-response400.js +67 -0
- package/dist/types/v1-face-detection-create-response401-message-enum.d.ts +4 -0
- package/dist/types/v1-face-detection-create-response401-message-enum.js +2 -0
- package/dist/types/v1-face-detection-create-response401.d.ts +19 -0
- package/dist/types/v1-face-detection-create-response401.js +67 -0
- package/dist/types/v1-face-detection-create-response404-message-enum.d.ts +4 -0
- package/dist/types/v1-face-detection-create-response404-message-enum.js +2 -0
- package/dist/types/v1-face-detection-create-response404.d.ts +19 -0
- package/dist/types/v1-face-detection-create-response404.js +67 -0
- package/dist/types/v1-face-detection-create-response422.d.ts +19 -0
- package/dist/types/v1-face-detection-create-response422.js +67 -0
- package/dist/types/v1-face-detection-get-response-faces-item.d.ts +27 -0
- package/dist/types/v1-face-detection-get-response-faces-item.js +71 -0
- package/dist/types/v1-face-detection-get-response-status-enum.d.ts +4 -0
- package/dist/types/v1-face-detection-get-response-status-enum.js +2 -0
- package/dist/types/v1-face-detection-get-response.d.ts +38 -0
- package/dist/types/v1-face-detection-get-response.js +80 -0
- package/dist/types/v1-face-detection-get-response400.d.ts +19 -0
- package/dist/types/v1-face-detection-get-response400.js +67 -0
- package/dist/types/v1-face-detection-get-response401-message-enum.d.ts +4 -0
- package/dist/types/v1-face-detection-get-response401-message-enum.js +2 -0
- package/dist/types/v1-face-detection-get-response401.d.ts +19 -0
- package/dist/types/v1-face-detection-get-response401.js +67 -0
- package/dist/types/v1-face-detection-get-response404-message-enum.d.ts +4 -0
- package/dist/types/v1-face-detection-get-response404-message-enum.js +2 -0
- package/dist/types/v1-face-detection-get-response404.d.ts +19 -0
- package/dist/types/v1-face-detection-get-response404.js +67 -0
- package/dist/types/v1-face-detection-get-response422.d.ts +19 -0
- package/dist/types/v1-face-detection-get-response422.js +67 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The request is invalid
|
|
4
|
+
*/
|
|
5
|
+
export type V1FaceDetectionCreateResponse400 = {
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* V1FaceDetectionCreateResponse400 without any key transformation, this is what
|
|
11
|
+
* we expect to come in as network data
|
|
12
|
+
*/
|
|
13
|
+
export type External$V1FaceDetectionCreateResponse400 = {
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const Schemas$V1FaceDetectionCreateResponse400: {
|
|
17
|
+
in: z.ZodType<V1FaceDetectionCreateResponse400, z.ZodTypeDef, unknown>;
|
|
18
|
+
out: z.ZodType<External$V1FaceDetectionCreateResponse400, z.ZodTypeDef, V1FaceDetectionCreateResponse400>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1FaceDetectionCreateResponse400 = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1FaceDetectionCreateResponse400
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1FaceDetectionCreateResponse400 = z
|
|
43
|
+
.object({
|
|
44
|
+
message: z.string(),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, core_1.zodTransform)(obj, {
|
|
48
|
+
message: "message",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1FaceDetectionCreateResponse400
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1FaceDetectionCreateResponse400 = z
|
|
56
|
+
.object({
|
|
57
|
+
message: z.string(),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, core_1.zodTransform)(obj, {
|
|
61
|
+
message: "message",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1FaceDetectionCreateResponse400 = {
|
|
65
|
+
in: SchemaIn$V1FaceDetectionCreateResponse400,
|
|
66
|
+
out: SchemaOut$V1FaceDetectionCreateResponse400,
|
|
67
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The request is not properly authenticated
|
|
4
|
+
*/
|
|
5
|
+
export type V1FaceDetectionCreateResponse401 = {
|
|
6
|
+
message: "Unauthorized";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* V1FaceDetectionCreateResponse401 without any key transformation, this is what
|
|
11
|
+
* we expect to come in as network data
|
|
12
|
+
*/
|
|
13
|
+
export type External$V1FaceDetectionCreateResponse401 = {
|
|
14
|
+
message: "Unauthorized";
|
|
15
|
+
};
|
|
16
|
+
export declare const Schemas$V1FaceDetectionCreateResponse401: {
|
|
17
|
+
in: z.ZodType<V1FaceDetectionCreateResponse401, z.ZodTypeDef, unknown>;
|
|
18
|
+
out: z.ZodType<External$V1FaceDetectionCreateResponse401, z.ZodTypeDef, V1FaceDetectionCreateResponse401>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1FaceDetectionCreateResponse401 = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1FaceDetectionCreateResponse401
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1FaceDetectionCreateResponse401 = z
|
|
43
|
+
.object({
|
|
44
|
+
message: z.enum(["Unauthorized"]),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, core_1.zodTransform)(obj, {
|
|
48
|
+
message: "message",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1FaceDetectionCreateResponse401
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1FaceDetectionCreateResponse401 = z
|
|
56
|
+
.object({
|
|
57
|
+
message: z.enum(["Unauthorized"]),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, core_1.zodTransform)(obj, {
|
|
61
|
+
message: "message",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1FaceDetectionCreateResponse401 = {
|
|
65
|
+
in: SchemaIn$V1FaceDetectionCreateResponse401,
|
|
66
|
+
out: SchemaOut$V1FaceDetectionCreateResponse401,
|
|
67
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Requested resource is not found
|
|
4
|
+
*/
|
|
5
|
+
export type V1FaceDetectionCreateResponse404 = {
|
|
6
|
+
message: "Not Found";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* V1FaceDetectionCreateResponse404 without any key transformation, this is what
|
|
11
|
+
* we expect to come in as network data
|
|
12
|
+
*/
|
|
13
|
+
export type External$V1FaceDetectionCreateResponse404 = {
|
|
14
|
+
message: "Not Found";
|
|
15
|
+
};
|
|
16
|
+
export declare const Schemas$V1FaceDetectionCreateResponse404: {
|
|
17
|
+
in: z.ZodType<V1FaceDetectionCreateResponse404, z.ZodTypeDef, unknown>;
|
|
18
|
+
out: z.ZodType<External$V1FaceDetectionCreateResponse404, z.ZodTypeDef, V1FaceDetectionCreateResponse404>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1FaceDetectionCreateResponse404 = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1FaceDetectionCreateResponse404
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1FaceDetectionCreateResponse404 = z
|
|
43
|
+
.object({
|
|
44
|
+
message: z.enum(["Not Found"]),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, core_1.zodTransform)(obj, {
|
|
48
|
+
message: "message",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1FaceDetectionCreateResponse404
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1FaceDetectionCreateResponse404 = z
|
|
56
|
+
.object({
|
|
57
|
+
message: z.enum(["Not Found"]),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, core_1.zodTransform)(obj, {
|
|
61
|
+
message: "message",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1FaceDetectionCreateResponse404 = {
|
|
65
|
+
in: SchemaIn$V1FaceDetectionCreateResponse404,
|
|
66
|
+
out: SchemaOut$V1FaceDetectionCreateResponse404,
|
|
67
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Unprocessable Entity
|
|
4
|
+
*/
|
|
5
|
+
export type V1FaceDetectionCreateResponse422 = {
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* V1FaceDetectionCreateResponse422 without any key transformation, this is what
|
|
11
|
+
* we expect to come in as network data
|
|
12
|
+
*/
|
|
13
|
+
export type External$V1FaceDetectionCreateResponse422 = {
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const Schemas$V1FaceDetectionCreateResponse422: {
|
|
17
|
+
in: z.ZodType<V1FaceDetectionCreateResponse422, z.ZodTypeDef, unknown>;
|
|
18
|
+
out: z.ZodType<External$V1FaceDetectionCreateResponse422, z.ZodTypeDef, V1FaceDetectionCreateResponse422>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1FaceDetectionCreateResponse422 = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1FaceDetectionCreateResponse422
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1FaceDetectionCreateResponse422 = z
|
|
43
|
+
.object({
|
|
44
|
+
message: z.string(),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, core_1.zodTransform)(obj, {
|
|
48
|
+
message: "message",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1FaceDetectionCreateResponse422
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1FaceDetectionCreateResponse422 = z
|
|
56
|
+
.object({
|
|
57
|
+
message: z.string(),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, core_1.zodTransform)(obj, {
|
|
61
|
+
message: "message",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1FaceDetectionCreateResponse422 = {
|
|
65
|
+
in: SchemaIn$V1FaceDetectionCreateResponse422,
|
|
66
|
+
out: SchemaOut$V1FaceDetectionCreateResponse422,
|
|
67
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* V1FaceDetectionGetResponseFacesItem
|
|
4
|
+
*/
|
|
5
|
+
export type V1FaceDetectionGetResponseFacesItem = {
|
|
6
|
+
/**
|
|
7
|
+
* The path to the face image. This should be used in face swap photo/video API calls as `.assets.face_mappings.original_face`
|
|
8
|
+
*/
|
|
9
|
+
path: string;
|
|
10
|
+
/**
|
|
11
|
+
* The url to the face image. This is used to render the image in your applications.
|
|
12
|
+
*/
|
|
13
|
+
url: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
* V1FaceDetectionGetResponseFacesItem without any key transformation, this is what
|
|
18
|
+
* we expect to come in as network data
|
|
19
|
+
*/
|
|
20
|
+
export type External$V1FaceDetectionGetResponseFacesItem = {
|
|
21
|
+
path: string;
|
|
22
|
+
url: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const Schemas$V1FaceDetectionGetResponseFacesItem: {
|
|
25
|
+
in: z.ZodType<V1FaceDetectionGetResponseFacesItem, z.ZodTypeDef, unknown>;
|
|
26
|
+
out: z.ZodType<External$V1FaceDetectionGetResponseFacesItem, z.ZodTypeDef, V1FaceDetectionGetResponseFacesItem>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1FaceDetectionGetResponseFacesItem = void 0;
|
|
37
|
+
const core_1 = require("../core");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1FaceDetectionGetResponseFacesItem
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1FaceDetectionGetResponseFacesItem = z
|
|
43
|
+
.object({
|
|
44
|
+
path: z.string(),
|
|
45
|
+
url: z.string(),
|
|
46
|
+
})
|
|
47
|
+
.transform((obj) => {
|
|
48
|
+
return (0, core_1.zodTransform)(obj, {
|
|
49
|
+
path: "path",
|
|
50
|
+
url: "url",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1FaceDetectionGetResponseFacesItem
|
|
56
|
+
*/
|
|
57
|
+
const SchemaOut$V1FaceDetectionGetResponseFacesItem = z
|
|
58
|
+
.object({
|
|
59
|
+
path: z.string(),
|
|
60
|
+
url: z.string(),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, core_1.zodTransform)(obj, {
|
|
64
|
+
path: "path",
|
|
65
|
+
url: "url",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
exports.Schemas$V1FaceDetectionGetResponseFacesItem = {
|
|
69
|
+
in: SchemaIn$V1FaceDetectionGetResponseFacesItem,
|
|
70
|
+
out: SchemaOut$V1FaceDetectionGetResponseFacesItem,
|
|
71
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { External$V1FaceDetectionGetResponseFacesItem, V1FaceDetectionGetResponseFacesItem } from "./v1-face-detection-get-response-faces-item";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* V1FaceDetectionGetResponse
|
|
5
|
+
*/
|
|
6
|
+
export type V1FaceDetectionGetResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* The credits charged for the task.
|
|
9
|
+
*/
|
|
10
|
+
creditsCharged: number;
|
|
11
|
+
/**
|
|
12
|
+
* The faces detected in the image or video. The list is populated as faces are detected.
|
|
13
|
+
*/
|
|
14
|
+
faces: V1FaceDetectionGetResponseFacesItem[];
|
|
15
|
+
/**
|
|
16
|
+
* The id of the task
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* The status of the detection.
|
|
21
|
+
*/
|
|
22
|
+
status: "complete" | "error" | "queued" | "rendering";
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* V1FaceDetectionGetResponse without any key transformation, this is what
|
|
27
|
+
* we expect to come in as network data
|
|
28
|
+
*/
|
|
29
|
+
export type External$V1FaceDetectionGetResponse = {
|
|
30
|
+
credits_charged: number;
|
|
31
|
+
faces: External$V1FaceDetectionGetResponseFacesItem[];
|
|
32
|
+
id: string;
|
|
33
|
+
status: "complete" | "error" | "queued" | "rendering";
|
|
34
|
+
};
|
|
35
|
+
export declare const Schemas$V1FaceDetectionGetResponse: {
|
|
36
|
+
in: z.ZodType<V1FaceDetectionGetResponse, z.ZodTypeDef, unknown>;
|
|
37
|
+
out: z.ZodType<External$V1FaceDetectionGetResponse, z.ZodTypeDef, V1FaceDetectionGetResponse>;
|
|
38
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1FaceDetectionGetResponse = void 0;
|
|
37
|
+
const v1_face_detection_get_response_faces_item_1 = require("./v1-face-detection-get-response-faces-item");
|
|
38
|
+
const core_1 = require("../core");
|
|
39
|
+
const z = __importStar(require("zod"));
|
|
40
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1FaceDetectionGetResponse
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$V1FaceDetectionGetResponse = z
|
|
44
|
+
.object({
|
|
45
|
+
credits_charged: z.number().int(),
|
|
46
|
+
faces: z.array(v1_face_detection_get_response_faces_item_1.Schemas$V1FaceDetectionGetResponseFacesItem.in),
|
|
47
|
+
id: z.string(),
|
|
48
|
+
status: z.enum(["complete", "error", "queued", "rendering"]),
|
|
49
|
+
})
|
|
50
|
+
.transform((obj) => {
|
|
51
|
+
return (0, core_1.zodTransform)(obj, {
|
|
52
|
+
credits_charged: "creditsCharged",
|
|
53
|
+
faces: "faces",
|
|
54
|
+
id: "id",
|
|
55
|
+
status: "status",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1FaceDetectionGetResponse
|
|
61
|
+
*/
|
|
62
|
+
const SchemaOut$V1FaceDetectionGetResponse = z
|
|
63
|
+
.object({
|
|
64
|
+
creditsCharged: z.number().int(),
|
|
65
|
+
faces: z.array(v1_face_detection_get_response_faces_item_1.Schemas$V1FaceDetectionGetResponseFacesItem.out),
|
|
66
|
+
id: z.string(),
|
|
67
|
+
status: z.enum(["complete", "error", "queued", "rendering"]),
|
|
68
|
+
})
|
|
69
|
+
.transform((obj) => {
|
|
70
|
+
return (0, core_1.zodTransform)(obj, {
|
|
71
|
+
creditsCharged: "credits_charged",
|
|
72
|
+
faces: "faces",
|
|
73
|
+
id: "id",
|
|
74
|
+
status: "status",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
exports.Schemas$V1FaceDetectionGetResponse = {
|
|
78
|
+
in: SchemaIn$V1FaceDetectionGetResponse,
|
|
79
|
+
out: SchemaOut$V1FaceDetectionGetResponse,
|
|
80
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The request is invalid
|
|
4
|
+
*/
|
|
5
|
+
export type V1FaceDetectionGetResponse400 = {
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* V1FaceDetectionGetResponse400 without any key transformation, this is what
|
|
11
|
+
* we expect to come in as network data
|
|
12
|
+
*/
|
|
13
|
+
export type External$V1FaceDetectionGetResponse400 = {
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const Schemas$V1FaceDetectionGetResponse400: {
|
|
17
|
+
in: z.ZodType<V1FaceDetectionGetResponse400, z.ZodTypeDef, unknown>;
|
|
18
|
+
out: z.ZodType<External$V1FaceDetectionGetResponse400, z.ZodTypeDef, V1FaceDetectionGetResponse400>;
|
|
19
|
+
};
|