@vouch-protocol-official/api-client 0.1.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/.openapi-generator/FILES +28 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/LICENSE +198 -0
- package/README.md +46 -0
- package/dist/apis/AudioApi.d.ts +70 -0
- package/dist/apis/AudioApi.js +165 -0
- package/dist/apis/DefaultApi.d.ts +56 -0
- package/dist/apis/DefaultApi.js +130 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/esm/apis/AudioApi.d.ts +70 -0
- package/dist/esm/apis/AudioApi.js +161 -0
- package/dist/esm/apis/DefaultApi.d.ts +56 -0
- package/dist/esm/apis/DefaultApi.js +126 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AudioDetectRequest.d.ts +31 -0
- package/dist/esm/models/AudioDetectRequest.js +40 -0
- package/dist/esm/models/AudioDetectResponse.d.ts +69 -0
- package/dist/esm/models/AudioDetectResponse.js +52 -0
- package/dist/esm/models/AudioEmbedRequest.d.ts +51 -0
- package/dist/esm/models/AudioEmbedRequest.js +48 -0
- package/dist/esm/models/AudioEmbedResponse.d.ts +67 -0
- package/dist/esm/models/AudioEmbedResponse.js +52 -0
- package/dist/esm/models/AudioHealthResponse.d.ts +61 -0
- package/dist/esm/models/AudioHealthResponse.js +60 -0
- package/dist/esm/models/AudioSignRequest.d.ts +57 -0
- package/dist/esm/models/AudioSignRequest.js +50 -0
- package/dist/esm/models/AudioSignResponse.d.ts +61 -0
- package/dist/esm/models/AudioSignResponse.js +50 -0
- package/dist/esm/models/HTTPValidationError.d.ts +32 -0
- package/dist/esm/models/HTTPValidationError.js +39 -0
- package/dist/esm/models/HealthResponse.d.ts +43 -0
- package/dist/esm/models/HealthResponse.js +48 -0
- package/dist/esm/models/SignRequest.d.ts +73 -0
- package/dist/esm/models/SignRequest.js +58 -0
- package/dist/esm/models/SignResponse.d.ts +61 -0
- package/dist/esm/models/SignResponse.js +50 -0
- package/dist/esm/models/ValidationError.d.ts +44 -0
- package/dist/esm/models/ValidationError.js +49 -0
- package/dist/esm/models/ValidationErrorLocInner.d.ts +25 -0
- package/dist/esm/models/ValidationErrorLocInner.js +28 -0
- package/dist/esm/models/VerifyRequest.d.ts +31 -0
- package/dist/esm/models/VerifyRequest.js +40 -0
- package/dist/esm/models/VerifyResponse.d.ts +57 -0
- package/dist/esm/models/VerifyResponse.js +48 -0
- package/dist/esm/models/index.d.ts +15 -0
- package/dist/esm/models/index.js +17 -0
- package/dist/esm/runtime.d.ts +181 -0
- package/dist/esm/runtime.js +326 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AudioDetectRequest.d.ts +31 -0
- package/dist/models/AudioDetectRequest.js +46 -0
- package/dist/models/AudioDetectResponse.d.ts +69 -0
- package/dist/models/AudioDetectResponse.js +58 -0
- package/dist/models/AudioEmbedRequest.d.ts +51 -0
- package/dist/models/AudioEmbedRequest.js +54 -0
- package/dist/models/AudioEmbedResponse.d.ts +67 -0
- package/dist/models/AudioEmbedResponse.js +58 -0
- package/dist/models/AudioHealthResponse.d.ts +61 -0
- package/dist/models/AudioHealthResponse.js +66 -0
- package/dist/models/AudioSignRequest.d.ts +57 -0
- package/dist/models/AudioSignRequest.js +56 -0
- package/dist/models/AudioSignResponse.d.ts +61 -0
- package/dist/models/AudioSignResponse.js +56 -0
- package/dist/models/HTTPValidationError.d.ts +32 -0
- package/dist/models/HTTPValidationError.js +45 -0
- package/dist/models/HealthResponse.d.ts +43 -0
- package/dist/models/HealthResponse.js +54 -0
- package/dist/models/SignRequest.d.ts +73 -0
- package/dist/models/SignRequest.js +64 -0
- package/dist/models/SignResponse.d.ts +61 -0
- package/dist/models/SignResponse.js +56 -0
- package/dist/models/ValidationError.d.ts +44 -0
- package/dist/models/ValidationError.js +55 -0
- package/dist/models/ValidationErrorLocInner.d.ts +25 -0
- package/dist/models/ValidationErrorLocInner.js +34 -0
- package/dist/models/VerifyRequest.d.ts +31 -0
- package/dist/models/VerifyRequest.js +46 -0
- package/dist/models/VerifyResponse.d.ts +57 -0
- package/dist/models/VerifyResponse.js +54 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +33 -0
- package/dist/runtime.d.ts +181 -0
- package/dist/runtime.js +341 -0
- package/package.json +33 -0
- package/src/apis/AudioApi.ts +220 -0
- package/src/apis/DefaultApi.ts +167 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/AudioDetectRequest.ts +61 -0
- package/src/models/AudioDetectResponse.ts +109 -0
- package/src/models/AudioEmbedRequest.ts +86 -0
- package/src/models/AudioEmbedResponse.ts +109 -0
- package/src/models/AudioHealthResponse.ts +106 -0
- package/src/models/AudioSignRequest.ts +94 -0
- package/src/models/AudioSignResponse.ts +101 -0
- package/src/models/HTTPValidationError.ts +67 -0
- package/src/models/HealthResponse.ts +79 -0
- package/src/models/SignRequest.ts +119 -0
- package/src/models/SignResponse.ts +101 -0
- package/src/models/ValidationError.ts +86 -0
- package/src/models/ValidationErrorLocInner.ts +42 -0
- package/src/models/VerifyRequest.ts +61 -0
- package/src/models/VerifyResponse.ts +93 -0
- package/src/models/index.ts +17 -0
- package/src/runtime.ts +426 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouch Bridge
|
|
3
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ValidationError } from './ValidationError';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface HTTPValidationError
|
|
17
|
+
*/
|
|
18
|
+
export interface HTTPValidationError {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ValidationError>}
|
|
22
|
+
* @memberof HTTPValidationError
|
|
23
|
+
*/
|
|
24
|
+
detail?: Array<ValidationError>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the HTTPValidationError interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfHTTPValidationError(value: object): value is HTTPValidationError;
|
|
30
|
+
export declare function HTTPValidationErrorFromJSON(json: any): HTTPValidationError;
|
|
31
|
+
export declare function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError;
|
|
32
|
+
export declare function HTTPValidationErrorToJSON(value?: HTTPValidationError | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vouch Bridge
|
|
5
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ValidationErrorFromJSON, ValidationErrorToJSON, } from './ValidationError';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the HTTPValidationError interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfHTTPValidationError(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function HTTPValidationErrorFromJSON(json) {
|
|
22
|
+
return HTTPValidationErrorFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function HTTPValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'detail': json['detail'] == null ? undefined : (json['detail'].map(ValidationErrorFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function HTTPValidationErrorToJSON(value) {
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'detail': value['detail'] == null ? undefined : (value['detail'].map(ValidationErrorToJSON)),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouch Bridge
|
|
3
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Response body for GET /health.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HealthResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface HealthResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HealthResponse
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof HealthResponse
|
|
28
|
+
*/
|
|
29
|
+
version: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof HealthResponse
|
|
34
|
+
*/
|
|
35
|
+
c2paAvailable: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the HealthResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfHealthResponse(value: object): value is HealthResponse;
|
|
41
|
+
export declare function HealthResponseFromJSON(json: any): HealthResponse;
|
|
42
|
+
export declare function HealthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthResponse;
|
|
43
|
+
export declare function HealthResponseToJSON(value?: HealthResponse | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vouch Bridge
|
|
5
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the HealthResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHealthResponse(value) {
|
|
18
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('c2paAvailable' in value) || value['c2paAvailable'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function HealthResponseFromJSON(json) {
|
|
27
|
+
return HealthResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function HealthResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'status': json['status'],
|
|
35
|
+
'version': json['version'],
|
|
36
|
+
'c2paAvailable': json['c2pa_available'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function HealthResponseToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'status': value['status'],
|
|
45
|
+
'version': value['version'],
|
|
46
|
+
'c2pa_available': value['c2paAvailable'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouch Bridge
|
|
3
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Request body for POST /sign.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SignRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SignRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Base64-encoded source image
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SignRequest
|
|
22
|
+
*/
|
|
23
|
+
imageBase64: string;
|
|
24
|
+
/**
|
|
25
|
+
* DID of the signer
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SignRequest
|
|
28
|
+
*/
|
|
29
|
+
did: string;
|
|
30
|
+
/**
|
|
31
|
+
* Human-readable signer name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SignRequest
|
|
34
|
+
*/
|
|
35
|
+
displayName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SignRequest
|
|
40
|
+
*/
|
|
41
|
+
email?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* FREE or PRO
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SignRequest
|
|
46
|
+
*/
|
|
47
|
+
credentialType?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SignRequest
|
|
52
|
+
*/
|
|
53
|
+
title?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SignRequest
|
|
58
|
+
*/
|
|
59
|
+
badgePosition?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SignRequest
|
|
64
|
+
*/
|
|
65
|
+
shortlinkDomain?: string | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the SignRequest interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfSignRequest(value: object): value is SignRequest;
|
|
71
|
+
export declare function SignRequestFromJSON(json: any): SignRequest;
|
|
72
|
+
export declare function SignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignRequest;
|
|
73
|
+
export declare function SignRequestToJSON(value?: SignRequest | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vouch Bridge
|
|
5
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the SignRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSignRequest(value) {
|
|
18
|
+
if (!('imageBase64' in value) || value['imageBase64'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('did' in value) || value['did'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function SignRequestFromJSON(json) {
|
|
27
|
+
return SignRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function SignRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'imageBase64': json['image_base64'],
|
|
35
|
+
'did': json['did'],
|
|
36
|
+
'displayName': json['display_name'],
|
|
37
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
38
|
+
'credentialType': json['credential_type'] == null ? undefined : json['credential_type'],
|
|
39
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
40
|
+
'badgePosition': json['badge_position'] == null ? undefined : json['badge_position'],
|
|
41
|
+
'shortlinkDomain': json['shortlink_domain'] == null ? undefined : json['shortlink_domain'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function SignRequestToJSON(value) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'image_base64': value['imageBase64'],
|
|
50
|
+
'did': value['did'],
|
|
51
|
+
'display_name': value['displayName'],
|
|
52
|
+
'email': value['email'],
|
|
53
|
+
'credential_type': value['credentialType'],
|
|
54
|
+
'title': value['title'],
|
|
55
|
+
'badge_position': value['badgePosition'],
|
|
56
|
+
'shortlink_domain': value['shortlinkDomain'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouch Bridge
|
|
3
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Response body for POST /sign.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SignResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SignResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof SignResponse
|
|
22
|
+
*/
|
|
23
|
+
success: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SignResponse
|
|
28
|
+
*/
|
|
29
|
+
signedImageBase64?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SignResponse
|
|
34
|
+
*/
|
|
35
|
+
manifestHash?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SignResponse
|
|
40
|
+
*/
|
|
41
|
+
verifyUrl?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SignResponse
|
|
46
|
+
*/
|
|
47
|
+
timestamp?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SignResponse
|
|
52
|
+
*/
|
|
53
|
+
error?: string | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the SignResponse interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfSignResponse(value: object): value is SignResponse;
|
|
59
|
+
export declare function SignResponseFromJSON(json: any): SignResponse;
|
|
60
|
+
export declare function SignResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignResponse;
|
|
61
|
+
export declare function SignResponseToJSON(value?: SignResponse | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vouch Bridge
|
|
5
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the SignResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSignResponse(value) {
|
|
18
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function SignResponseFromJSON(json) {
|
|
23
|
+
return SignResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function SignResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'success': json['success'],
|
|
31
|
+
'signedImageBase64': json['signed_image_base64'] == null ? undefined : json['signed_image_base64'],
|
|
32
|
+
'manifestHash': json['manifest_hash'] == null ? undefined : json['manifest_hash'],
|
|
33
|
+
'verifyUrl': json['verify_url'] == null ? undefined : json['verify_url'],
|
|
34
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
35
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function SignResponseToJSON(value) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'success': value['success'],
|
|
44
|
+
'signed_image_base64': value['signedImageBase64'],
|
|
45
|
+
'manifest_hash': value['manifestHash'],
|
|
46
|
+
'verify_url': value['verifyUrl'],
|
|
47
|
+
'timestamp': value['timestamp'],
|
|
48
|
+
'error': value['error'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouch Bridge
|
|
3
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ValidationError
|
|
17
|
+
*/
|
|
18
|
+
export interface ValidationError {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
22
|
+
* @memberof ValidationError
|
|
23
|
+
*/
|
|
24
|
+
loc: Array<ValidationErrorLocInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ValidationError
|
|
29
|
+
*/
|
|
30
|
+
msg: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ValidationError
|
|
35
|
+
*/
|
|
36
|
+
type: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ValidationError interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfValidationError(value: object): value is ValidationError;
|
|
42
|
+
export declare function ValidationErrorFromJSON(json: any): ValidationError;
|
|
43
|
+
export declare function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError;
|
|
44
|
+
export declare function ValidationErrorToJSON(value?: ValidationError | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vouch Bridge
|
|
5
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ValidationErrorLocInnerFromJSON, ValidationErrorLocInnerToJSON, } from './ValidationErrorLocInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ValidationError interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfValidationError(value) {
|
|
19
|
+
if (!('loc' in value) || value['loc'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('msg' in value) || value['msg'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ValidationErrorFromJSON(json) {
|
|
28
|
+
return ValidationErrorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'loc': (json['loc'].map(ValidationErrorLocInnerFromJSON)),
|
|
36
|
+
'msg': json['msg'],
|
|
37
|
+
'type': json['type'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function ValidationErrorToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'loc': (value['loc'].map(ValidationErrorLocInnerToJSON)),
|
|
46
|
+
'msg': value['msg'],
|
|
47
|
+
'type': value['type'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouch Bridge
|
|
3
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ValidationErrorLocInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ValidationErrorLocInner {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
21
|
+
*/
|
|
22
|
+
export declare function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner;
|
|
23
|
+
export declare function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner;
|
|
24
|
+
export declare function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner;
|
|
25
|
+
export declare function ValidationErrorLocInnerToJSON(value?: ValidationErrorLocInner | null): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vouch Bridge
|
|
5
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfValidationErrorLocInner(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ValidationErrorLocInnerFromJSON(json) {
|
|
21
|
+
return ValidationErrorLocInnerFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ValidationErrorLocInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
export function ValidationErrorLocInnerToJSON(value) {
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouch Bridge
|
|
3
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Request body for POST /verify.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VerifyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface VerifyRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Base64-encoded image to verify
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VerifyRequest
|
|
22
|
+
*/
|
|
23
|
+
imageBase64: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the VerifyRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfVerifyRequest(value: object): value is VerifyRequest;
|
|
29
|
+
export declare function VerifyRequestFromJSON(json: any): VerifyRequest;
|
|
30
|
+
export declare function VerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyRequest;
|
|
31
|
+
export declare function VerifyRequestToJSON(value?: VerifyRequest | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vouch Bridge
|
|
5
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VerifyRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVerifyRequest(value) {
|
|
18
|
+
if (!('imageBase64' in value) || value['imageBase64'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function VerifyRequestFromJSON(json) {
|
|
23
|
+
return VerifyRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function VerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'imageBase64': json['image_base64'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function VerifyRequestToJSON(value) {
|
|
34
|
+
if (value == null) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'image_base64': value['imageBase64'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouch Bridge
|
|
3
|
+
* C2PA image signing, QR badge overlay, and audio watermarking service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Response body for POST /verify.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VerifyResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface VerifyResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof VerifyResponse
|
|
22
|
+
*/
|
|
23
|
+
isValid: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
|
+
* @memberof VerifyResponse
|
|
28
|
+
*/
|
|
29
|
+
signerIdentity?: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
} | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof VerifyResponse
|
|
36
|
+
*/
|
|
37
|
+
signedAt?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof VerifyResponse
|
|
42
|
+
*/
|
|
43
|
+
claimGenerator?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof VerifyResponse
|
|
48
|
+
*/
|
|
49
|
+
error?: string | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the VerifyResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfVerifyResponse(value: object): value is VerifyResponse;
|
|
55
|
+
export declare function VerifyResponseFromJSON(json: any): VerifyResponse;
|
|
56
|
+
export declare function VerifyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyResponse;
|
|
57
|
+
export declare function VerifyResponseToJSON(value?: VerifyResponse | null): any;
|