@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,28 @@
1
+ .gitignore
2
+ .npmignore
3
+ .openapi-generator-ignore
4
+ README.md
5
+ package.json
6
+ src/apis/AudioApi.ts
7
+ src/apis/DefaultApi.ts
8
+ src/apis/index.ts
9
+ src/index.ts
10
+ src/models/AudioDetectRequest.ts
11
+ src/models/AudioDetectResponse.ts
12
+ src/models/AudioEmbedRequest.ts
13
+ src/models/AudioEmbedResponse.ts
14
+ src/models/AudioHealthResponse.ts
15
+ src/models/AudioSignRequest.ts
16
+ src/models/AudioSignResponse.ts
17
+ src/models/HTTPValidationError.ts
18
+ src/models/HealthResponse.ts
19
+ src/models/SignRequest.ts
20
+ src/models/SignResponse.ts
21
+ src/models/ValidationError.ts
22
+ src/models/ValidationErrorLocInner.ts
23
+ src/models/VerifyRequest.ts
24
+ src/models/VerifyResponse.ts
25
+ src/models/index.ts
26
+ src/runtime.ts
27
+ tsconfig.esm.json
28
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.7.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/LICENSE ADDED
@@ -0,0 +1,198 @@
1
+ Apache License 2.0
2
+ ==================
3
+
4
+ Copyright 2025 Vouch Protocol Contributors
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+
18
+ NOTE: The Vouch Protocol specification may be contributed to W3C
19
+ Verifiable Credentials Working Group as a separate standards track.
20
+
21
+ ================================================================================
22
+
23
+ Apache License
24
+ Version 2.0, January 2004
25
+ http://www.apache.org/licenses/
26
+
27
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
28
+
29
+ 1. Definitions.
30
+
31
+ "License" shall mean the terms and conditions for use, reproduction,
32
+ and distribution as defined by Sections 1 through 9 of this document.
33
+
34
+ "Licensor" shall mean the copyright owner or entity authorized by
35
+ the copyright owner that is granting the License.
36
+
37
+ "Legal Entity" shall mean the union of the acting entity and all
38
+ other entities that control, are controlled by, or are under common
39
+ control with that entity. For the purposes of this definition,
40
+ "control" means (i) the power, direct or indirect, to cause the
41
+ direction or management of such entity, whether by contract or
42
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
43
+ outstanding shares, or (iii) beneficial ownership of such entity.
44
+
45
+ "You" (or "Your") shall mean an individual or Legal Entity
46
+ exercising permissions granted by this License.
47
+
48
+ "Source" form shall mean the preferred form for making modifications,
49
+ including but not limited to software source code, documentation
50
+ source, and configuration files.
51
+
52
+ "Object" form shall mean any form resulting from mechanical
53
+ transformation or translation of a Source form, including but
54
+ not limited to compiled object code, generated documentation,
55
+ and conversions to other media types.
56
+
57
+ "Work" shall mean the work of authorship, whether in Source or
58
+ Object form, made available under the License, as indicated by a
59
+ copyright notice that is included in or attached to the work
60
+ (an example is provided in the Appendix below).
61
+
62
+ "Derivative Works" shall mean any work, whether in Source or Object
63
+ form, that is based on (or derived from) the Work and for which the
64
+ editorial revisions, annotations, elaborations, or other modifications
65
+ represent, as a whole, an original work of authorship. For the purposes
66
+ of this License, Derivative Works shall not include works that remain
67
+ separable from, or merely link (or bind by name) to the interfaces of,
68
+ the Work and Derivative Works thereof.
69
+
70
+ "Contribution" shall mean any work of authorship, including
71
+ the original version of the Work and any modifications or additions
72
+ to that Work or Derivative Works thereof, that is intentionally
73
+ submitted to Licensor for inclusion in the Work by the copyright owner
74
+ or by an individual or Legal Entity authorized to submit on behalf of
75
+ the copyright owner. For the purposes of this definition, "submitted"
76
+ means any form of electronic, verbal, or written communication sent
77
+ to the Licensor or its representatives, including but not limited to
78
+ communication on electronic mailing lists, source code control systems,
79
+ and issue tracking systems that are managed by, or on behalf of, the
80
+ Licensor for the purpose of discussing and improving the Work, but
81
+ excluding communication that is conspicuously marked or otherwise
82
+ designated in writing by the copyright owner as "Not a Contribution."
83
+
84
+ "Contributor" shall mean Licensor and any individual or Legal Entity
85
+ on behalf of whom a Contribution has been received by Licensor and
86
+ subsequently incorporated within the Work.
87
+
88
+ 2. Grant of Copyright License. Subject to the terms and conditions of
89
+ this License, each Contributor hereby grants to You a perpetual,
90
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
91
+ copyright license to reproduce, prepare Derivative Works of,
92
+ publicly display, publicly perform, sublicense, and distribute the
93
+ Work and such Derivative Works in Source or Object form.
94
+
95
+ 3. Grant of Patent License. Subject to the terms and conditions of
96
+ this License, each Contributor hereby grants to You a perpetual,
97
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
98
+ (except as stated in this section) patent license to make, have made,
99
+ use, offer to sell, sell, import, and otherwise transfer the Work,
100
+ where such license applies only to those patent claims licensable
101
+ by such Contributor that are necessarily infringed by their
102
+ Contribution(s) alone or by combination of their Contribution(s)
103
+ with the Work to which such Contribution(s) was submitted. If You
104
+ institute patent litigation against any entity (including a
105
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
106
+ or a Contribution incorporated within the Work constitutes direct
107
+ or contributory patent infringement, then any patent licenses
108
+ granted to You under this License for that Work shall terminate
109
+ as of the date such litigation is filed.
110
+
111
+ 4. Redistribution. You may reproduce and distribute copies of the
112
+ Work or Derivative Works thereof in any medium, with or without
113
+ modifications, and in Source or Object form, provided that You
114
+ meet the following conditions:
115
+
116
+ (a) You must give any other recipients of the Work or
117
+ Derivative Works a copy of this License; and
118
+
119
+ (b) You must cause any modified files to carry prominent notices
120
+ stating that You changed the files; and
121
+
122
+ (c) You must retain, in the Source form of any Derivative Works
123
+ that You distribute, all copyright, patent, trademark, and
124
+ attribution notices from the Source form of the Work,
125
+ excluding those notices that do not pertain to any part of
126
+ the Derivative Works; and
127
+
128
+ (d) If the Work includes a "NOTICE" text file as part of its
129
+ distribution, then any Derivative Works that You distribute must
130
+ include a readable copy of the attribution notices contained
131
+ within such NOTICE file, excluding those notices that do not
132
+ pertain to any part of the Derivative Works, in at least one
133
+ of the following places: within a NOTICE text file distributed
134
+ as part of the Derivative Works; within the Source form or
135
+ documentation, if provided along with the Derivative Works; or,
136
+ within a display generated by the Derivative Works, if and
137
+ wherever such third-party notices normally appear. The contents
138
+ of the NOTICE file are for informational purposes only and
139
+ do not modify the License. You may add Your own attribution
140
+ notices within Derivative Works that You distribute, alongside
141
+ or as an addendum to the NOTICE text from the Work, provided
142
+ that such additional attribution notices cannot be construed
143
+ as modifying the License.
144
+
145
+ You may add Your own copyright statement to Your modifications and
146
+ may provide additional or different license terms and conditions
147
+ for use, reproduction, or distribution of Your modifications, or
148
+ for any such Derivative Works as a whole, provided Your use,
149
+ reproduction, and distribution of the Work otherwise complies with
150
+ the conditions stated in this License.
151
+
152
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
153
+ any Contribution intentionally submitted for inclusion in the Work
154
+ by You to the Licensor shall be under the terms and conditions of
155
+ this License, without any additional terms or conditions.
156
+ Notwithstanding the above, nothing herein shall supersede or modify
157
+ the terms of any separate license agreement you may have executed
158
+ with Licensor regarding such Contributions.
159
+
160
+ 6. Trademarks. This License does not grant permission to use the trade
161
+ names, trademarks, service marks, or product names of the Licensor,
162
+ except as required for reasonable and customary use in describing the
163
+ origin of the Work and reproducing the content of the NOTICE file.
164
+
165
+ 7. Disclaimer of Warranty. Unless required by applicable law or
166
+ agreed to in writing, Licensor provides the Work (and each
167
+ Contributor provides its Contributions) on an "AS IS" BASIS,
168
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
169
+ implied, including, without limitation, any warranties or conditions
170
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
171
+ PARTICULAR PURPOSE. You are solely responsible for determining the
172
+ appropriateness of using or redistributing the Work and assume any
173
+ risks associated with Your exercise of permissions under this License.
174
+
175
+ 8. Limitation of Liability. In no event and under no legal theory,
176
+ whether in tort (including negligence), contract, or otherwise,
177
+ unless required by applicable law (such as deliberate and grossly
178
+ negligent acts) or agreed to in writing, shall any Contributor be
179
+ liable to You for damages, including any direct, indirect, special,
180
+ incidental, or consequential damages of any character arising as a
181
+ result of this License or out of the use or inability to use the
182
+ Work (including but not limited to damages for loss of goodwill,
183
+ work stoppage, computer failure or malfunction, or any and all
184
+ other commercial damages or losses), even if such Contributor
185
+ has been advised of the possibility of such damages.
186
+
187
+ 9. Accepting Warranty or Additional Liability. While redistributing
188
+ the Work or Derivative Works thereof, You may choose to offer,
189
+ and charge a fee for, acceptance of support, warranty, indemnity,
190
+ or other liability obligations and/or rights consistent with this
191
+ License. However, in accepting such obligations, You may act only
192
+ on Your own behalf and on Your sole responsibility, not on behalf
193
+ of any other Contributor, and only if You agree to indemnify,
194
+ defend, and hold each Contributor harmless for any liability
195
+ incurred by, or claims asserted against, such Contributor by reason
196
+ of your accepting any such warranty or additional liability.
197
+
198
+ END OF TERMS AND CONDITIONS
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ ## @vouch-protocol-official/api-client@1.0.0
2
+
3
+ This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
+
5
+ Environment
6
+ * Node.js
7
+ * Webpack
8
+ * Browserify
9
+
10
+ Language level
11
+ * ES5 - you must have a Promises/A+ library installed
12
+ * ES6
13
+
14
+ Module system
15
+ * CommonJS
16
+ * ES6 module system
17
+
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
+
20
+ ### Building
21
+
22
+ To build and compile the typescript sources to javascript use:
23
+ ```
24
+ npm install
25
+ npm run build
26
+ ```
27
+
28
+ ### Publishing
29
+
30
+ First build the package then run `npm publish`
31
+
32
+ ### Consuming
33
+
34
+ navigate to the folder of your consuming project and run one of the following commands.
35
+
36
+ _published:_
37
+
38
+ ```
39
+ npm install @vouch-protocol-official/api-client@1.0.0 --save
40
+ ```
41
+
42
+ _unPublished (not recommended):_
43
+
44
+ ```
45
+ npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
@@ -0,0 +1,70 @@
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 * as runtime from '../runtime';
13
+ import type { AudioDetectRequest, AudioDetectResponse, AudioEmbedRequest, AudioEmbedResponse, AudioHealthResponse, AudioSignRequest, AudioSignResponse } from '../models/index';
14
+ export interface AudioDetectAudioDetectPostRequest {
15
+ audioDetectRequest: AudioDetectRequest;
16
+ authorization?: string | null;
17
+ }
18
+ export interface AudioEmbedAudioEmbedPostRequest {
19
+ audioEmbedRequest: AudioEmbedRequest;
20
+ authorization?: string | null;
21
+ }
22
+ export interface AudioSignAudioSignPostRequest {
23
+ audioSignRequest: AudioSignRequest;
24
+ authorization?: string | null;
25
+ }
26
+ /**
27
+ *
28
+ */
29
+ export declare class AudioApi extends runtime.BaseAPI {
30
+ /**
31
+ * Detect watermark in audio (server-side).
32
+ * Audio Detect
33
+ */
34
+ audioDetectAudioDetectPostRaw(requestParameters: AudioDetectAudioDetectPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AudioDetectResponse>>;
35
+ /**
36
+ * Detect watermark in audio (server-side).
37
+ * Audio Detect
38
+ */
39
+ audioDetectAudioDetectPost(requestParameters: AudioDetectAudioDetectPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AudioDetectResponse>;
40
+ /**
41
+ * Embed spread-spectrum watermark into audio (server-side).
42
+ * Audio Embed
43
+ */
44
+ audioEmbedAudioEmbedPostRaw(requestParameters: AudioEmbedAudioEmbedPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AudioEmbedResponse>>;
45
+ /**
46
+ * Embed spread-spectrum watermark into audio (server-side).
47
+ * Audio Embed
48
+ */
49
+ audioEmbedAudioEmbedPost(requestParameters: AudioEmbedAudioEmbedPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AudioEmbedResponse>;
50
+ /**
51
+ * Audio subsystem health check — no auth required.
52
+ * Audio Health
53
+ */
54
+ audioHealthAudioHealthGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AudioHealthResponse>>;
55
+ /**
56
+ * Audio subsystem health check — no auth required.
57
+ * Audio Health
58
+ */
59
+ audioHealthAudioHealthGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AudioHealthResponse>;
60
+ /**
61
+ * Full C2PA container signing with VouchCovenant + optional watermark.
62
+ * Audio Sign
63
+ */
64
+ audioSignAudioSignPostRaw(requestParameters: AudioSignAudioSignPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AudioSignResponse>>;
65
+ /**
66
+ * Full C2PA container signing with VouchCovenant + optional watermark.
67
+ * Audio Sign
68
+ */
69
+ audioSignAudioSignPost(requestParameters: AudioSignAudioSignPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AudioSignResponse>;
70
+ }
@@ -0,0 +1,165 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.AudioApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class AudioApi extends runtime.BaseAPI {
32
+ /**
33
+ * Detect watermark in audio (server-side).
34
+ * Audio Detect
35
+ */
36
+ audioDetectAudioDetectPostRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['audioDetectRequest'] == null) {
39
+ throw new runtime.RequiredError('audioDetectRequest', 'Required parameter "audioDetectRequest" was null or undefined when calling audioDetectAudioDetectPost().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ headerParameters['Content-Type'] = 'application/json';
44
+ if (requestParameters['authorization'] != null) {
45
+ headerParameters['authorization'] = String(requestParameters['authorization']);
46
+ }
47
+ const response = yield this.request({
48
+ path: `/audio/detect`,
49
+ method: 'POST',
50
+ headers: headerParameters,
51
+ query: queryParameters,
52
+ body: (0, index_1.AudioDetectRequestToJSON)(requestParameters['audioDetectRequest']),
53
+ }, initOverrides);
54
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AudioDetectResponseFromJSON)(jsonValue));
55
+ });
56
+ }
57
+ /**
58
+ * Detect watermark in audio (server-side).
59
+ * Audio Detect
60
+ */
61
+ audioDetectAudioDetectPost(requestParameters, initOverrides) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const response = yield this.audioDetectAudioDetectPostRaw(requestParameters, initOverrides);
64
+ return yield response.value();
65
+ });
66
+ }
67
+ /**
68
+ * Embed spread-spectrum watermark into audio (server-side).
69
+ * Audio Embed
70
+ */
71
+ audioEmbedAudioEmbedPostRaw(requestParameters, initOverrides) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ if (requestParameters['audioEmbedRequest'] == null) {
74
+ throw new runtime.RequiredError('audioEmbedRequest', 'Required parameter "audioEmbedRequest" was null or undefined when calling audioEmbedAudioEmbedPost().');
75
+ }
76
+ const queryParameters = {};
77
+ const headerParameters = {};
78
+ headerParameters['Content-Type'] = 'application/json';
79
+ if (requestParameters['authorization'] != null) {
80
+ headerParameters['authorization'] = String(requestParameters['authorization']);
81
+ }
82
+ const response = yield this.request({
83
+ path: `/audio/embed`,
84
+ method: 'POST',
85
+ headers: headerParameters,
86
+ query: queryParameters,
87
+ body: (0, index_1.AudioEmbedRequestToJSON)(requestParameters['audioEmbedRequest']),
88
+ }, initOverrides);
89
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AudioEmbedResponseFromJSON)(jsonValue));
90
+ });
91
+ }
92
+ /**
93
+ * Embed spread-spectrum watermark into audio (server-side).
94
+ * Audio Embed
95
+ */
96
+ audioEmbedAudioEmbedPost(requestParameters, initOverrides) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ const response = yield this.audioEmbedAudioEmbedPostRaw(requestParameters, initOverrides);
99
+ return yield response.value();
100
+ });
101
+ }
102
+ /**
103
+ * Audio subsystem health check — no auth required.
104
+ * Audio Health
105
+ */
106
+ audioHealthAudioHealthGetRaw(initOverrides) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ const queryParameters = {};
109
+ const headerParameters = {};
110
+ const response = yield this.request({
111
+ path: `/audio/health`,
112
+ method: 'GET',
113
+ headers: headerParameters,
114
+ query: queryParameters,
115
+ }, initOverrides);
116
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AudioHealthResponseFromJSON)(jsonValue));
117
+ });
118
+ }
119
+ /**
120
+ * Audio subsystem health check — no auth required.
121
+ * Audio Health
122
+ */
123
+ audioHealthAudioHealthGet(initOverrides) {
124
+ return __awaiter(this, void 0, void 0, function* () {
125
+ const response = yield this.audioHealthAudioHealthGetRaw(initOverrides);
126
+ return yield response.value();
127
+ });
128
+ }
129
+ /**
130
+ * Full C2PA container signing with VouchCovenant + optional watermark.
131
+ * Audio Sign
132
+ */
133
+ audioSignAudioSignPostRaw(requestParameters, initOverrides) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ if (requestParameters['audioSignRequest'] == null) {
136
+ throw new runtime.RequiredError('audioSignRequest', 'Required parameter "audioSignRequest" was null or undefined when calling audioSignAudioSignPost().');
137
+ }
138
+ const queryParameters = {};
139
+ const headerParameters = {};
140
+ headerParameters['Content-Type'] = 'application/json';
141
+ if (requestParameters['authorization'] != null) {
142
+ headerParameters['authorization'] = String(requestParameters['authorization']);
143
+ }
144
+ const response = yield this.request({
145
+ path: `/audio/sign`,
146
+ method: 'POST',
147
+ headers: headerParameters,
148
+ query: queryParameters,
149
+ body: (0, index_1.AudioSignRequestToJSON)(requestParameters['audioSignRequest']),
150
+ }, initOverrides);
151
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AudioSignResponseFromJSON)(jsonValue));
152
+ });
153
+ }
154
+ /**
155
+ * Full C2PA container signing with VouchCovenant + optional watermark.
156
+ * Audio Sign
157
+ */
158
+ audioSignAudioSignPost(requestParameters, initOverrides) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ const response = yield this.audioSignAudioSignPostRaw(requestParameters, initOverrides);
161
+ return yield response.value();
162
+ });
163
+ }
164
+ }
165
+ exports.AudioApi = AudioApi;
@@ -0,0 +1,56 @@
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 * as runtime from '../runtime';
13
+ import type { HealthResponse, SignRequest, SignResponse, VerifyRequest, VerifyResponse } from '../models/index';
14
+ export interface SignImageSignPostRequest {
15
+ signRequest: SignRequest;
16
+ authorization?: string | null;
17
+ }
18
+ export interface VerifyImageVerifyPostRequest {
19
+ verifyRequest: VerifyRequest;
20
+ authorization?: string | null;
21
+ }
22
+ /**
23
+ *
24
+ */
25
+ export declare class DefaultApi extends runtime.BaseAPI {
26
+ /**
27
+ * Health check — no auth required.
28
+ * Health
29
+ */
30
+ healthHealthGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HealthResponse>>;
31
+ /**
32
+ * Health check — no auth required.
33
+ * Health
34
+ */
35
+ healthHealthGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HealthResponse>;
36
+ /**
37
+ * Sign an image with C2PA manifest and QR badge.
38
+ * Sign Image
39
+ */
40
+ signImageSignPostRaw(requestParameters: SignImageSignPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignResponse>>;
41
+ /**
42
+ * Sign an image with C2PA manifest and QR badge.
43
+ * Sign Image
44
+ */
45
+ signImageSignPost(requestParameters: SignImageSignPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignResponse>;
46
+ /**
47
+ * Verify a signed image\'s C2PA manifest.
48
+ * Verify Image
49
+ */
50
+ verifyImageVerifyPostRaw(requestParameters: VerifyImageVerifyPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VerifyResponse>>;
51
+ /**
52
+ * Verify a signed image\'s C2PA manifest.
53
+ * Verify Image
54
+ */
55
+ verifyImageVerifyPost(requestParameters: VerifyImageVerifyPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VerifyResponse>;
56
+ }