@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.
Files changed (113) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/LICENSE +198 -0
  5. package/README.md +46 -0
  6. package/dist/apis/AudioApi.d.ts +70 -0
  7. package/dist/apis/AudioApi.js +165 -0
  8. package/dist/apis/DefaultApi.d.ts +56 -0
  9. package/dist/apis/DefaultApi.js +130 -0
  10. package/dist/apis/index.d.ts +2 -0
  11. package/dist/apis/index.js +20 -0
  12. package/dist/esm/apis/AudioApi.d.ts +70 -0
  13. package/dist/esm/apis/AudioApi.js +161 -0
  14. package/dist/esm/apis/DefaultApi.d.ts +56 -0
  15. package/dist/esm/apis/DefaultApi.js +126 -0
  16. package/dist/esm/apis/index.d.ts +2 -0
  17. package/dist/esm/apis/index.js +4 -0
  18. package/dist/esm/index.d.ts +3 -0
  19. package/dist/esm/index.js +5 -0
  20. package/dist/esm/models/AudioDetectRequest.d.ts +31 -0
  21. package/dist/esm/models/AudioDetectRequest.js +40 -0
  22. package/dist/esm/models/AudioDetectResponse.d.ts +69 -0
  23. package/dist/esm/models/AudioDetectResponse.js +52 -0
  24. package/dist/esm/models/AudioEmbedRequest.d.ts +51 -0
  25. package/dist/esm/models/AudioEmbedRequest.js +48 -0
  26. package/dist/esm/models/AudioEmbedResponse.d.ts +67 -0
  27. package/dist/esm/models/AudioEmbedResponse.js +52 -0
  28. package/dist/esm/models/AudioHealthResponse.d.ts +61 -0
  29. package/dist/esm/models/AudioHealthResponse.js +60 -0
  30. package/dist/esm/models/AudioSignRequest.d.ts +57 -0
  31. package/dist/esm/models/AudioSignRequest.js +50 -0
  32. package/dist/esm/models/AudioSignResponse.d.ts +61 -0
  33. package/dist/esm/models/AudioSignResponse.js +50 -0
  34. package/dist/esm/models/HTTPValidationError.d.ts +32 -0
  35. package/dist/esm/models/HTTPValidationError.js +39 -0
  36. package/dist/esm/models/HealthResponse.d.ts +43 -0
  37. package/dist/esm/models/HealthResponse.js +48 -0
  38. package/dist/esm/models/SignRequest.d.ts +73 -0
  39. package/dist/esm/models/SignRequest.js +58 -0
  40. package/dist/esm/models/SignResponse.d.ts +61 -0
  41. package/dist/esm/models/SignResponse.js +50 -0
  42. package/dist/esm/models/ValidationError.d.ts +44 -0
  43. package/dist/esm/models/ValidationError.js +49 -0
  44. package/dist/esm/models/ValidationErrorLocInner.d.ts +25 -0
  45. package/dist/esm/models/ValidationErrorLocInner.js +28 -0
  46. package/dist/esm/models/VerifyRequest.d.ts +31 -0
  47. package/dist/esm/models/VerifyRequest.js +40 -0
  48. package/dist/esm/models/VerifyResponse.d.ts +57 -0
  49. package/dist/esm/models/VerifyResponse.js +48 -0
  50. package/dist/esm/models/index.d.ts +15 -0
  51. package/dist/esm/models/index.js +17 -0
  52. package/dist/esm/runtime.d.ts +181 -0
  53. package/dist/esm/runtime.js +326 -0
  54. package/dist/index.d.ts +3 -0
  55. package/dist/index.js +21 -0
  56. package/dist/models/AudioDetectRequest.d.ts +31 -0
  57. package/dist/models/AudioDetectRequest.js +46 -0
  58. package/dist/models/AudioDetectResponse.d.ts +69 -0
  59. package/dist/models/AudioDetectResponse.js +58 -0
  60. package/dist/models/AudioEmbedRequest.d.ts +51 -0
  61. package/dist/models/AudioEmbedRequest.js +54 -0
  62. package/dist/models/AudioEmbedResponse.d.ts +67 -0
  63. package/dist/models/AudioEmbedResponse.js +58 -0
  64. package/dist/models/AudioHealthResponse.d.ts +61 -0
  65. package/dist/models/AudioHealthResponse.js +66 -0
  66. package/dist/models/AudioSignRequest.d.ts +57 -0
  67. package/dist/models/AudioSignRequest.js +56 -0
  68. package/dist/models/AudioSignResponse.d.ts +61 -0
  69. package/dist/models/AudioSignResponse.js +56 -0
  70. package/dist/models/HTTPValidationError.d.ts +32 -0
  71. package/dist/models/HTTPValidationError.js +45 -0
  72. package/dist/models/HealthResponse.d.ts +43 -0
  73. package/dist/models/HealthResponse.js +54 -0
  74. package/dist/models/SignRequest.d.ts +73 -0
  75. package/dist/models/SignRequest.js +64 -0
  76. package/dist/models/SignResponse.d.ts +61 -0
  77. package/dist/models/SignResponse.js +56 -0
  78. package/dist/models/ValidationError.d.ts +44 -0
  79. package/dist/models/ValidationError.js +55 -0
  80. package/dist/models/ValidationErrorLocInner.d.ts +25 -0
  81. package/dist/models/ValidationErrorLocInner.js +34 -0
  82. package/dist/models/VerifyRequest.d.ts +31 -0
  83. package/dist/models/VerifyRequest.js +46 -0
  84. package/dist/models/VerifyResponse.d.ts +57 -0
  85. package/dist/models/VerifyResponse.js +54 -0
  86. package/dist/models/index.d.ts +15 -0
  87. package/dist/models/index.js +33 -0
  88. package/dist/runtime.d.ts +181 -0
  89. package/dist/runtime.js +341 -0
  90. package/package.json +33 -0
  91. package/src/apis/AudioApi.ts +220 -0
  92. package/src/apis/DefaultApi.ts +167 -0
  93. package/src/apis/index.ts +4 -0
  94. package/src/index.ts +5 -0
  95. package/src/models/AudioDetectRequest.ts +61 -0
  96. package/src/models/AudioDetectResponse.ts +109 -0
  97. package/src/models/AudioEmbedRequest.ts +86 -0
  98. package/src/models/AudioEmbedResponse.ts +109 -0
  99. package/src/models/AudioHealthResponse.ts +106 -0
  100. package/src/models/AudioSignRequest.ts +94 -0
  101. package/src/models/AudioSignResponse.ts +101 -0
  102. package/src/models/HTTPValidationError.ts +67 -0
  103. package/src/models/HealthResponse.ts +79 -0
  104. package/src/models/SignRequest.ts +119 -0
  105. package/src/models/SignResponse.ts +101 -0
  106. package/src/models/ValidationError.ts +86 -0
  107. package/src/models/ValidationErrorLocInner.ts +42 -0
  108. package/src/models/VerifyRequest.ts +61 -0
  109. package/src/models/VerifyResponse.ts +93 -0
  110. package/src/models/index.ts +17 -0
  111. package/src/runtime.ts +426 -0
  112. package/tsconfig.esm.json +7 -0
  113. package/tsconfig.json +16 -0
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vouch Bridge
6
+ * C2PA image signing, QR badge overlay, and audio watermarking service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAudioSignResponse = instanceOfAudioSignResponse;
17
+ exports.AudioSignResponseFromJSON = AudioSignResponseFromJSON;
18
+ exports.AudioSignResponseFromJSONTyped = AudioSignResponseFromJSONTyped;
19
+ exports.AudioSignResponseToJSON = AudioSignResponseToJSON;
20
+ /**
21
+ * Check if a given object implements the AudioSignResponse interface.
22
+ */
23
+ function instanceOfAudioSignResponse(value) {
24
+ if (!('success' in value) || value['success'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ function AudioSignResponseFromJSON(json) {
29
+ return AudioSignResponseFromJSONTyped(json, false);
30
+ }
31
+ function AudioSignResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'success': json['success'],
37
+ 'signedAudioBase64': json['signed_audio_base64'] == null ? undefined : json['signed_audio_base64'],
38
+ 'manifestHash': json['manifest_hash'] == null ? undefined : json['manifest_hash'],
39
+ 'watermarkEmbedded': json['watermark_embedded'] == null ? undefined : json['watermark_embedded'],
40
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
41
+ 'error': json['error'] == null ? undefined : json['error'],
42
+ };
43
+ }
44
+ function AudioSignResponseToJSON(value) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'signed_audio_base64': value['signedAudioBase64'],
51
+ 'manifest_hash': value['manifestHash'],
52
+ 'watermark_embedded': value['watermarkEmbedded'],
53
+ 'timestamp': value['timestamp'],
54
+ 'error': value['error'],
55
+ };
56
+ }
@@ -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,45 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vouch Bridge
6
+ * C2PA image signing, QR badge overlay, and audio watermarking service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfHTTPValidationError = instanceOfHTTPValidationError;
17
+ exports.HTTPValidationErrorFromJSON = HTTPValidationErrorFromJSON;
18
+ exports.HTTPValidationErrorFromJSONTyped = HTTPValidationErrorFromJSONTyped;
19
+ exports.HTTPValidationErrorToJSON = HTTPValidationErrorToJSON;
20
+ const ValidationError_1 = require("./ValidationError");
21
+ /**
22
+ * Check if a given object implements the HTTPValidationError interface.
23
+ */
24
+ function instanceOfHTTPValidationError(value) {
25
+ return true;
26
+ }
27
+ function HTTPValidationErrorFromJSON(json) {
28
+ return HTTPValidationErrorFromJSONTyped(json, false);
29
+ }
30
+ function HTTPValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'detail': json['detail'] == null ? undefined : (json['detail'].map(ValidationError_1.ValidationErrorFromJSON)),
36
+ };
37
+ }
38
+ function HTTPValidationErrorToJSON(value) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'detail': value['detail'] == null ? undefined : (value['detail'].map(ValidationError_1.ValidationErrorToJSON)),
44
+ };
45
+ }
@@ -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,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vouch Bridge
6
+ * C2PA image signing, QR badge overlay, and audio watermarking service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfHealthResponse = instanceOfHealthResponse;
17
+ exports.HealthResponseFromJSON = HealthResponseFromJSON;
18
+ exports.HealthResponseFromJSONTyped = HealthResponseFromJSONTyped;
19
+ exports.HealthResponseToJSON = HealthResponseToJSON;
20
+ /**
21
+ * Check if a given object implements the HealthResponse interface.
22
+ */
23
+ function instanceOfHealthResponse(value) {
24
+ if (!('status' in value) || value['status'] === undefined)
25
+ return false;
26
+ if (!('version' in value) || value['version'] === undefined)
27
+ return false;
28
+ if (!('c2paAvailable' in value) || value['c2paAvailable'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function HealthResponseFromJSON(json) {
33
+ return HealthResponseFromJSONTyped(json, false);
34
+ }
35
+ function HealthResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'status': json['status'],
41
+ 'version': json['version'],
42
+ 'c2paAvailable': json['c2pa_available'],
43
+ };
44
+ }
45
+ function HealthResponseToJSON(value) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'status': value['status'],
51
+ 'version': value['version'],
52
+ 'c2pa_available': value['c2paAvailable'],
53
+ };
54
+ }
@@ -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,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vouch Bridge
6
+ * C2PA image signing, QR badge overlay, and audio watermarking service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSignRequest = instanceOfSignRequest;
17
+ exports.SignRequestFromJSON = SignRequestFromJSON;
18
+ exports.SignRequestFromJSONTyped = SignRequestFromJSONTyped;
19
+ exports.SignRequestToJSON = SignRequestToJSON;
20
+ /**
21
+ * Check if a given object implements the SignRequest interface.
22
+ */
23
+ function instanceOfSignRequest(value) {
24
+ if (!('imageBase64' in value) || value['imageBase64'] === undefined)
25
+ return false;
26
+ if (!('did' in value) || value['did'] === undefined)
27
+ return false;
28
+ if (!('displayName' in value) || value['displayName'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function SignRequestFromJSON(json) {
33
+ return SignRequestFromJSONTyped(json, false);
34
+ }
35
+ function SignRequestFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'imageBase64': json['image_base64'],
41
+ 'did': json['did'],
42
+ 'displayName': json['display_name'],
43
+ 'email': json['email'] == null ? undefined : json['email'],
44
+ 'credentialType': json['credential_type'] == null ? undefined : json['credential_type'],
45
+ 'title': json['title'] == null ? undefined : json['title'],
46
+ 'badgePosition': json['badge_position'] == null ? undefined : json['badge_position'],
47
+ 'shortlinkDomain': json['shortlink_domain'] == null ? undefined : json['shortlink_domain'],
48
+ };
49
+ }
50
+ function SignRequestToJSON(value) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'image_base64': value['imageBase64'],
56
+ 'did': value['did'],
57
+ 'display_name': value['displayName'],
58
+ 'email': value['email'],
59
+ 'credential_type': value['credentialType'],
60
+ 'title': value['title'],
61
+ 'badge_position': value['badgePosition'],
62
+ 'shortlink_domain': value['shortlinkDomain'],
63
+ };
64
+ }
@@ -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,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vouch Bridge
6
+ * C2PA image signing, QR badge overlay, and audio watermarking service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSignResponse = instanceOfSignResponse;
17
+ exports.SignResponseFromJSON = SignResponseFromJSON;
18
+ exports.SignResponseFromJSONTyped = SignResponseFromJSONTyped;
19
+ exports.SignResponseToJSON = SignResponseToJSON;
20
+ /**
21
+ * Check if a given object implements the SignResponse interface.
22
+ */
23
+ function instanceOfSignResponse(value) {
24
+ if (!('success' in value) || value['success'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ function SignResponseFromJSON(json) {
29
+ return SignResponseFromJSONTyped(json, false);
30
+ }
31
+ function SignResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'success': json['success'],
37
+ 'signedImageBase64': json['signed_image_base64'] == null ? undefined : json['signed_image_base64'],
38
+ 'manifestHash': json['manifest_hash'] == null ? undefined : json['manifest_hash'],
39
+ 'verifyUrl': json['verify_url'] == null ? undefined : json['verify_url'],
40
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
41
+ 'error': json['error'] == null ? undefined : json['error'],
42
+ };
43
+ }
44
+ function SignResponseToJSON(value) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'signed_image_base64': value['signedImageBase64'],
51
+ 'manifest_hash': value['manifestHash'],
52
+ 'verify_url': value['verifyUrl'],
53
+ 'timestamp': value['timestamp'],
54
+ 'error': value['error'],
55
+ };
56
+ }
@@ -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,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vouch Bridge
6
+ * C2PA image signing, QR badge overlay, and audio watermarking service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfValidationError = instanceOfValidationError;
17
+ exports.ValidationErrorFromJSON = ValidationErrorFromJSON;
18
+ exports.ValidationErrorFromJSONTyped = ValidationErrorFromJSONTyped;
19
+ exports.ValidationErrorToJSON = ValidationErrorToJSON;
20
+ const ValidationErrorLocInner_1 = require("./ValidationErrorLocInner");
21
+ /**
22
+ * Check if a given object implements the ValidationError interface.
23
+ */
24
+ function instanceOfValidationError(value) {
25
+ if (!('loc' in value) || value['loc'] === undefined)
26
+ return false;
27
+ if (!('msg' in value) || value['msg'] === undefined)
28
+ return false;
29
+ if (!('type' in value) || value['type'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ValidationErrorFromJSON(json) {
34
+ return ValidationErrorFromJSONTyped(json, false);
35
+ }
36
+ function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'loc': (json['loc'].map(ValidationErrorLocInner_1.ValidationErrorLocInnerFromJSON)),
42
+ 'msg': json['msg'],
43
+ 'type': json['type'],
44
+ };
45
+ }
46
+ function ValidationErrorToJSON(value) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'loc': (value['loc'].map(ValidationErrorLocInner_1.ValidationErrorLocInnerToJSON)),
52
+ 'msg': value['msg'],
53
+ 'type': value['type'],
54
+ };
55
+ }
@@ -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,34 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vouch Bridge
6
+ * C2PA image signing, QR badge overlay, and audio watermarking service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfValidationErrorLocInner = instanceOfValidationErrorLocInner;
17
+ exports.ValidationErrorLocInnerFromJSON = ValidationErrorLocInnerFromJSON;
18
+ exports.ValidationErrorLocInnerFromJSONTyped = ValidationErrorLocInnerFromJSONTyped;
19
+ exports.ValidationErrorLocInnerToJSON = ValidationErrorLocInnerToJSON;
20
+ /**
21
+ * Check if a given object implements the ValidationErrorLocInner interface.
22
+ */
23
+ function instanceOfValidationErrorLocInner(value) {
24
+ return true;
25
+ }
26
+ function ValidationErrorLocInnerFromJSON(json) {
27
+ return ValidationErrorLocInnerFromJSONTyped(json, false);
28
+ }
29
+ function ValidationErrorLocInnerFromJSONTyped(json, ignoreDiscriminator) {
30
+ return json;
31
+ }
32
+ function ValidationErrorLocInnerToJSON(value) {
33
+ return value;
34
+ }
@@ -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;