@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,94 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Request body for POST /audio/sign — full C2PA container signing.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AudioSignRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AudioSignRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Base64-encoded audio file
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AudioSignRequest
|
|
26
|
+
*/
|
|
27
|
+
audioBase64: string;
|
|
28
|
+
/**
|
|
29
|
+
* DID of the signer
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AudioSignRequest
|
|
32
|
+
*/
|
|
33
|
+
did: string;
|
|
34
|
+
/**
|
|
35
|
+
* Human-readable signer name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AudioSignRequest
|
|
38
|
+
*/
|
|
39
|
+
displayName?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {{ [key: string]: any; }}
|
|
43
|
+
* @memberof AudioSignRequest
|
|
44
|
+
*/
|
|
45
|
+
covenant?: { [key: string]: any; } | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AudioSignRequest
|
|
50
|
+
*/
|
|
51
|
+
title?: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AudioSignRequest interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAudioSignRequest(value: object): value is AudioSignRequest {
|
|
58
|
+
if (!('audioBase64' in value) || value['audioBase64'] === undefined) return false;
|
|
59
|
+
if (!('did' in value) || value['did'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AudioSignRequestFromJSON(json: any): AudioSignRequest {
|
|
64
|
+
return AudioSignRequestFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function AudioSignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AudioSignRequest {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'audioBase64': json['audio_base64'],
|
|
74
|
+
'did': json['did'],
|
|
75
|
+
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
76
|
+
'covenant': json['covenant'] == null ? undefined : json['covenant'],
|
|
77
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function AudioSignRequestToJSON(value?: AudioSignRequest | null): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'audio_base64': value['audioBase64'],
|
|
88
|
+
'did': value['did'],
|
|
89
|
+
'display_name': value['displayName'],
|
|
90
|
+
'covenant': value['covenant'],
|
|
91
|
+
'title': value['title'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Response body for POST /audio/sign.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AudioSignResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface AudioSignResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AudioSignResponse
|
|
26
|
+
*/
|
|
27
|
+
success: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AudioSignResponse
|
|
32
|
+
*/
|
|
33
|
+
signedAudioBase64?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AudioSignResponse
|
|
38
|
+
*/
|
|
39
|
+
manifestHash?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof AudioSignResponse
|
|
44
|
+
*/
|
|
45
|
+
watermarkEmbedded?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AudioSignResponse
|
|
50
|
+
*/
|
|
51
|
+
timestamp?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AudioSignResponse
|
|
56
|
+
*/
|
|
57
|
+
error?: string | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the AudioSignResponse interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfAudioSignResponse(value: object): value is AudioSignResponse {
|
|
64
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AudioSignResponseFromJSON(json: any): AudioSignResponse {
|
|
69
|
+
return AudioSignResponseFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AudioSignResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AudioSignResponse {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'success': json['success'],
|
|
79
|
+
'signedAudioBase64': json['signed_audio_base64'] == null ? undefined : json['signed_audio_base64'],
|
|
80
|
+
'manifestHash': json['manifest_hash'] == null ? undefined : json['manifest_hash'],
|
|
81
|
+
'watermarkEmbedded': json['watermark_embedded'] == null ? undefined : json['watermark_embedded'],
|
|
82
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
83
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function AudioSignResponseToJSON(value?: AudioSignResponse | null): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'success': value['success'],
|
|
94
|
+
'signed_audio_base64': value['signedAudioBase64'],
|
|
95
|
+
'manifest_hash': value['manifestHash'],
|
|
96
|
+
'watermark_embedded': value['watermarkEmbedded'],
|
|
97
|
+
'timestamp': value['timestamp'],
|
|
98
|
+
'error': value['error'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ValidationError } from './ValidationError';
|
|
17
|
+
import {
|
|
18
|
+
ValidationErrorFromJSON,
|
|
19
|
+
ValidationErrorFromJSONTyped,
|
|
20
|
+
ValidationErrorToJSON,
|
|
21
|
+
} from './ValidationError';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface HTTPValidationError
|
|
27
|
+
*/
|
|
28
|
+
export interface HTTPValidationError {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<ValidationError>}
|
|
32
|
+
* @memberof HTTPValidationError
|
|
33
|
+
*/
|
|
34
|
+
detail?: Array<ValidationError>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the HTTPValidationError interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfHTTPValidationError(value: object): value is HTTPValidationError {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function HTTPValidationErrorFromJSON(json: any): HTTPValidationError {
|
|
45
|
+
return HTTPValidationErrorFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'detail': json['detail'] == null ? undefined : ((json['detail'] as Array<any>).map(ValidationErrorFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function HTTPValidationErrorToJSON(value?: HTTPValidationError | null): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'detail': value['detail'] == null ? undefined : ((value['detail'] as Array<any>).map(ValidationErrorToJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Response body for GET /health.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface HealthResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface HealthResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof HealthResponse
|
|
26
|
+
*/
|
|
27
|
+
status: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof HealthResponse
|
|
32
|
+
*/
|
|
33
|
+
version: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof HealthResponse
|
|
38
|
+
*/
|
|
39
|
+
c2paAvailable: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the HealthResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfHealthResponse(value: object): value is HealthResponse {
|
|
46
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
47
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
48
|
+
if (!('c2paAvailable' in value) || value['c2paAvailable'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function HealthResponseFromJSON(json: any): HealthResponse {
|
|
53
|
+
return HealthResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function HealthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthResponse {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'status': json['status'],
|
|
63
|
+
'version': json['version'],
|
|
64
|
+
'c2paAvailable': json['c2pa_available'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function HealthResponseToJSON(value?: HealthResponse | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'status': value['status'],
|
|
75
|
+
'version': value['version'],
|
|
76
|
+
'c2pa_available': value['c2paAvailable'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Request body for POST /sign.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SignRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SignRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Base64-encoded source image
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SignRequest
|
|
26
|
+
*/
|
|
27
|
+
imageBase64: string;
|
|
28
|
+
/**
|
|
29
|
+
* DID of the signer
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SignRequest
|
|
32
|
+
*/
|
|
33
|
+
did: string;
|
|
34
|
+
/**
|
|
35
|
+
* Human-readable signer name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SignRequest
|
|
38
|
+
*/
|
|
39
|
+
displayName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SignRequest
|
|
44
|
+
*/
|
|
45
|
+
email?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* FREE or PRO
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SignRequest
|
|
50
|
+
*/
|
|
51
|
+
credentialType?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof SignRequest
|
|
56
|
+
*/
|
|
57
|
+
title?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof SignRequest
|
|
62
|
+
*/
|
|
63
|
+
badgePosition?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof SignRequest
|
|
68
|
+
*/
|
|
69
|
+
shortlinkDomain?: string | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the SignRequest interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfSignRequest(value: object): value is SignRequest {
|
|
76
|
+
if (!('imageBase64' in value) || value['imageBase64'] === undefined) return false;
|
|
77
|
+
if (!('did' in value) || value['did'] === undefined) return false;
|
|
78
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function SignRequestFromJSON(json: any): SignRequest {
|
|
83
|
+
return SignRequestFromJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function SignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignRequest {
|
|
87
|
+
if (json == null) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'imageBase64': json['image_base64'],
|
|
93
|
+
'did': json['did'],
|
|
94
|
+
'displayName': json['display_name'],
|
|
95
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
96
|
+
'credentialType': json['credential_type'] == null ? undefined : json['credential_type'],
|
|
97
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
98
|
+
'badgePosition': json['badge_position'] == null ? undefined : json['badge_position'],
|
|
99
|
+
'shortlinkDomain': json['shortlink_domain'] == null ? undefined : json['shortlink_domain'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function SignRequestToJSON(value?: SignRequest | null): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'image_base64': value['imageBase64'],
|
|
110
|
+
'did': value['did'],
|
|
111
|
+
'display_name': value['displayName'],
|
|
112
|
+
'email': value['email'],
|
|
113
|
+
'credential_type': value['credentialType'],
|
|
114
|
+
'title': value['title'],
|
|
115
|
+
'badge_position': value['badgePosition'],
|
|
116
|
+
'shortlink_domain': value['shortlinkDomain'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Response body for POST /sign.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SignResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface SignResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SignResponse
|
|
26
|
+
*/
|
|
27
|
+
success: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SignResponse
|
|
32
|
+
*/
|
|
33
|
+
signedImageBase64?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SignResponse
|
|
38
|
+
*/
|
|
39
|
+
manifestHash?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SignResponse
|
|
44
|
+
*/
|
|
45
|
+
verifyUrl?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SignResponse
|
|
50
|
+
*/
|
|
51
|
+
timestamp?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof SignResponse
|
|
56
|
+
*/
|
|
57
|
+
error?: string | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the SignResponse interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfSignResponse(value: object): value is SignResponse {
|
|
64
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SignResponseFromJSON(json: any): SignResponse {
|
|
69
|
+
return SignResponseFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SignResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignResponse {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'success': json['success'],
|
|
79
|
+
'signedImageBase64': json['signed_image_base64'] == null ? undefined : json['signed_image_base64'],
|
|
80
|
+
'manifestHash': json['manifest_hash'] == null ? undefined : json['manifest_hash'],
|
|
81
|
+
'verifyUrl': json['verify_url'] == null ? undefined : json['verify_url'],
|
|
82
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
83
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function SignResponseToJSON(value?: SignResponse | null): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'success': value['success'],
|
|
94
|
+
'signed_image_base64': value['signedImageBase64'],
|
|
95
|
+
'manifest_hash': value['manifestHash'],
|
|
96
|
+
'verify_url': value['verifyUrl'],
|
|
97
|
+
'timestamp': value['timestamp'],
|
|
98
|
+
'error': value['error'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
|
|
17
|
+
import {
|
|
18
|
+
ValidationErrorLocInnerFromJSON,
|
|
19
|
+
ValidationErrorLocInnerFromJSONTyped,
|
|
20
|
+
ValidationErrorLocInnerToJSON,
|
|
21
|
+
} from './ValidationErrorLocInner';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ValidationError
|
|
27
|
+
*/
|
|
28
|
+
export interface ValidationError {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
32
|
+
* @memberof ValidationError
|
|
33
|
+
*/
|
|
34
|
+
loc: Array<ValidationErrorLocInner>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ValidationError
|
|
39
|
+
*/
|
|
40
|
+
msg: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ValidationError
|
|
45
|
+
*/
|
|
46
|
+
type: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ValidationError interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfValidationError(value: object): value is ValidationError {
|
|
53
|
+
if (!('loc' in value) || value['loc'] === undefined) return false;
|
|
54
|
+
if (!('msg' in value) || value['msg'] === undefined) return false;
|
|
55
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ValidationErrorFromJSON(json: any): ValidationError {
|
|
60
|
+
return ValidationErrorFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'loc': ((json['loc'] as Array<any>).map(ValidationErrorLocInnerFromJSON)),
|
|
70
|
+
'msg': json['msg'],
|
|
71
|
+
'type': json['type'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ValidationErrorToJSON(value?: ValidationError | null): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'loc': ((value['loc'] as Array<any>).map(ValidationErrorLocInnerToJSON)),
|
|
82
|
+
'msg': value['msg'],
|
|
83
|
+
'type': value['type'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ValidationErrorLocInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ValidationErrorLocInner {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner {
|
|
32
|
+
return ValidationErrorLocInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ValidationErrorLocInnerToJSON(value?: ValidationErrorLocInner | null): any {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
|