@openfilz-sdk/typescript 1.2.27 → 1.2.29

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 (160) hide show
  1. package/.openapi-generator/FILES +44 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +43 -2
  4. package/api/esign-api.ts +719 -0
  5. package/api/esign-public-api.ts +622 -0
  6. package/api/esign-templates-api.ts +503 -0
  7. package/api.ts +3 -0
  8. package/dist/api/esign-api.d.ts +334 -0
  9. package/dist/api/esign-api.js +693 -0
  10. package/dist/api/esign-public-api.d.ts +282 -0
  11. package/dist/api/esign-public-api.js +595 -0
  12. package/dist/api/esign-templates-api.d.ts +234 -0
  13. package/dist/api/esign-templates-api.js +486 -0
  14. package/dist/api.d.ts +3 -0
  15. package/dist/api.js +3 -0
  16. package/dist/esm/api/esign-api.d.ts +334 -0
  17. package/dist/esm/api/esign-api.js +686 -0
  18. package/dist/esm/api/esign-public-api.d.ts +282 -0
  19. package/dist/esm/api/esign-public-api.js +588 -0
  20. package/dist/esm/api/esign-templates-api.d.ts +234 -0
  21. package/dist/esm/api/esign-templates-api.js +479 -0
  22. package/dist/esm/api.d.ts +3 -0
  23. package/dist/esm/api.js +3 -0
  24. package/dist/esm/models/apply-signature-request.d.ts +18 -0
  25. package/dist/esm/models/apply-signature-request.js +14 -0
  26. package/dist/esm/models/audit-log.d.ts +10 -0
  27. package/dist/esm/models/audit-log.js +10 -0
  28. package/dist/esm/models/create-signature-envelope-request.d.ts +24 -0
  29. package/dist/esm/models/create-signature-envelope-request.js +14 -0
  30. package/dist/esm/models/decline-signature-request.d.ts +14 -0
  31. package/dist/esm/models/decline-signature-request.js +14 -0
  32. package/dist/esm/models/index.d.ts +19 -0
  33. package/dist/esm/models/index.js +19 -0
  34. package/dist/esm/models/instantiate-template-request.d.ts +22 -0
  35. package/dist/esm/models/instantiate-template-request.js +14 -0
  36. package/dist/esm/models/public-signature-view.d.ts +57 -0
  37. package/dist/esm/models/public-signature-view.js +32 -0
  38. package/dist/esm/models/role-binding.d.ts +19 -0
  39. package/dist/esm/models/role-binding.js +14 -0
  40. package/dist/esm/models/search-by-audit-log-request.d.ts +10 -0
  41. package/dist/esm/models/search-by-audit-log-request.js +10 -0
  42. package/dist/esm/models/settings.d.ts +3 -0
  43. package/dist/esm/models/signature-envelope-dto.d.ts +40 -0
  44. package/dist/esm/models/signature-envelope-dto.js +21 -0
  45. package/dist/esm/models/signature-event-dto.d.ts +33 -0
  46. package/dist/esm/models/signature-event-dto.js +26 -0
  47. package/dist/esm/models/signature-field-dto.d.ts +44 -0
  48. package/dist/esm/models/signature-field-dto.js +27 -0
  49. package/dist/esm/models/signature-field-input.d.ts +39 -0
  50. package/dist/esm/models/signature-field-input.js +27 -0
  51. package/dist/esm/models/signature-field-placement.d.ts +18 -0
  52. package/dist/esm/models/signature-field-placement.js +14 -0
  53. package/dist/esm/models/signature-field-value.d.ts +16 -0
  54. package/dist/esm/models/signature-field-value.js +14 -0
  55. package/dist/esm/models/signature-recipient-dto.d.ts +45 -0
  56. package/dist/esm/models/signature-recipient-dto.js +28 -0
  57. package/dist/esm/models/signature-recipient-input.d.ts +36 -0
  58. package/dist/esm/models/signature-recipient-input.js +22 -0
  59. package/dist/esm/models/signature-template-dto.d.ts +27 -0
  60. package/dist/esm/models/signature-template-dto.js +14 -0
  61. package/dist/esm/models/signature-template-field.d.ts +40 -0
  62. package/dist/esm/models/signature-template-field.js +27 -0
  63. package/dist/esm/models/signature-template-request.d.ts +23 -0
  64. package/dist/esm/models/signature-template-request.js +14 -0
  65. package/dist/esm/models/signature-template-role.d.ts +28 -0
  66. package/dist/esm/models/signature-template-role.js +22 -0
  67. package/dist/esm/models/verify-otp-request.d.ts +14 -0
  68. package/dist/esm/models/verify-otp-request.js +14 -0
  69. package/dist/models/apply-signature-request.d.ts +18 -0
  70. package/dist/models/apply-signature-request.js +15 -0
  71. package/dist/models/audit-log.d.ts +10 -0
  72. package/dist/models/audit-log.js +10 -0
  73. package/dist/models/create-signature-envelope-request.d.ts +24 -0
  74. package/dist/models/create-signature-envelope-request.js +15 -0
  75. package/dist/models/decline-signature-request.d.ts +14 -0
  76. package/dist/models/decline-signature-request.js +15 -0
  77. package/dist/models/index.d.ts +19 -0
  78. package/dist/models/index.js +19 -0
  79. package/dist/models/instantiate-template-request.d.ts +22 -0
  80. package/dist/models/instantiate-template-request.js +15 -0
  81. package/dist/models/public-signature-view.d.ts +57 -0
  82. package/dist/models/public-signature-view.js +35 -0
  83. package/dist/models/role-binding.d.ts +19 -0
  84. package/dist/models/role-binding.js +15 -0
  85. package/dist/models/search-by-audit-log-request.d.ts +10 -0
  86. package/dist/models/search-by-audit-log-request.js +10 -0
  87. package/dist/models/settings.d.ts +3 -0
  88. package/dist/models/signature-envelope-dto.d.ts +40 -0
  89. package/dist/models/signature-envelope-dto.js +24 -0
  90. package/dist/models/signature-event-dto.d.ts +33 -0
  91. package/dist/models/signature-event-dto.js +29 -0
  92. package/dist/models/signature-field-dto.d.ts +44 -0
  93. package/dist/models/signature-field-dto.js +30 -0
  94. package/dist/models/signature-field-input.d.ts +39 -0
  95. package/dist/models/signature-field-input.js +30 -0
  96. package/dist/models/signature-field-placement.d.ts +18 -0
  97. package/dist/models/signature-field-placement.js +15 -0
  98. package/dist/models/signature-field-value.d.ts +16 -0
  99. package/dist/models/signature-field-value.js +15 -0
  100. package/dist/models/signature-recipient-dto.d.ts +45 -0
  101. package/dist/models/signature-recipient-dto.js +31 -0
  102. package/dist/models/signature-recipient-input.d.ts +36 -0
  103. package/dist/models/signature-recipient-input.js +25 -0
  104. package/dist/models/signature-template-dto.d.ts +27 -0
  105. package/dist/models/signature-template-dto.js +15 -0
  106. package/dist/models/signature-template-field.d.ts +40 -0
  107. package/dist/models/signature-template-field.js +30 -0
  108. package/dist/models/signature-template-request.d.ts +23 -0
  109. package/dist/models/signature-template-request.js +15 -0
  110. package/dist/models/signature-template-role.d.ts +28 -0
  111. package/dist/models/signature-template-role.js +25 -0
  112. package/dist/models/verify-otp-request.d.ts +14 -0
  113. package/dist/models/verify-otp-request.js +15 -0
  114. package/docs/ApplySignatureRequest.md +26 -0
  115. package/docs/CreateSignatureEnvelopeRequest.md +38 -0
  116. package/docs/DeclineSignatureRequest.md +20 -0
  117. package/docs/ESignApi.md +463 -0
  118. package/docs/ESignPublicApi.md +382 -0
  119. package/docs/ESignTemplatesApi.md +315 -0
  120. package/docs/InstantiateTemplateRequest.md +34 -0
  121. package/docs/PublicSignatureView.md +60 -0
  122. package/docs/RoleBinding.md +30 -0
  123. package/docs/Settings.md +6 -0
  124. package/docs/SignatureEnvelopeDTO.md +52 -0
  125. package/docs/SignatureEventDTO.md +30 -0
  126. package/docs/SignatureFieldDTO.md +46 -0
  127. package/docs/SignatureFieldInput.md +36 -0
  128. package/docs/SignatureFieldPlacement.md +28 -0
  129. package/docs/SignatureFieldValue.md +24 -0
  130. package/docs/SignatureRecipientDTO.md +44 -0
  131. package/docs/SignatureRecipientInput.md +38 -0
  132. package/docs/SignatureTemplateDTO.md +42 -0
  133. package/docs/SignatureTemplateField.md +38 -0
  134. package/docs/SignatureTemplateRequest.md +34 -0
  135. package/docs/SignatureTemplateRole.md +26 -0
  136. package/docs/VerifyOtpRequest.md +20 -0
  137. package/models/apply-signature-request.ts +26 -0
  138. package/models/audit-log.ts +10 -0
  139. package/models/create-signature-envelope-request.ts +32 -0
  140. package/models/decline-signature-request.ts +20 -0
  141. package/models/index.ts +19 -0
  142. package/models/instantiate-template-request.ts +30 -0
  143. package/models/public-signature-view.ts +70 -0
  144. package/models/role-binding.ts +25 -0
  145. package/models/search-by-audit-log-request.ts +10 -0
  146. package/models/settings.ts +3 -0
  147. package/models/signature-envelope-dto.ts +51 -0
  148. package/models/signature-event-dto.ts +42 -0
  149. package/models/signature-field-dto.ts +51 -0
  150. package/models/signature-field-input.ts +46 -0
  151. package/models/signature-field-placement.ts +24 -0
  152. package/models/signature-field-value.ts +22 -0
  153. package/models/signature-recipient-dto.ts +58 -0
  154. package/models/signature-recipient-input.ts +50 -0
  155. package/models/signature-template-dto.ts +37 -0
  156. package/models/signature-template-field.ts +47 -0
  157. package/models/signature-template-request.ts +33 -0
  158. package/models/signature-template-role.ts +38 -0
  159. package/models/verify-otp-request.ts +20 -0
  160. package/package.json +1 -1
@@ -0,0 +1,595 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
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.ESignPublicApi = exports.ESignPublicApiFactory = exports.ESignPublicApiFp = exports.ESignPublicApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * ESignPublicApi - axios parameter creator
34
+ */
35
+ const ESignPublicApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ *
39
+ * @summary Decline to sign (voids the envelope)
40
+ * @param {string} token
41
+ * @param {DeclineSignatureRequest} [declineSignatureRequest]
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ decline: (token_1, declineSignatureRequest_1, ...args_1) => __awaiter(this, [token_1, declineSignatureRequest_1, ...args_1], void 0, function* (token, declineSignatureRequest, options = {}) {
46
+ // verify required parameter 'token' is not null or undefined
47
+ (0, common_1.assertParamExists)('decline', 'token', token);
48
+ const localVarPath = `/api/v1/public/signatures/decline`;
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ if (configuration) {
53
+ baseOptions = configuration.baseOptions;
54
+ }
55
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
56
+ const localVarHeaderParameter = {};
57
+ const localVarQueryParameter = {};
58
+ // authentication keycloak_auth required
59
+ // http bearer authentication required
60
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
61
+ if (token !== undefined) {
62
+ localVarQueryParameter['token'] = token;
63
+ }
64
+ localVarHeaderParameter['Content-Type'] = 'application/json';
65
+ localVarHeaderParameter['Accept'] = 'application/json';
66
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
67
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
69
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(declineSignatureRequest, localVarRequestOptions, configuration);
70
+ return {
71
+ url: (0, common_1.toPathString)(localVarUrlObj),
72
+ options: localVarRequestOptions,
73
+ };
74
+ }),
75
+ /**
76
+ *
77
+ * @summary Stream the source PDF for signing
78
+ * @param {string} token
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ document: (token_1, ...args_1) => __awaiter(this, [token_1, ...args_1], void 0, function* (token, options = {}) {
83
+ // verify required parameter 'token' is not null or undefined
84
+ (0, common_1.assertParamExists)('document', 'token', token);
85
+ const localVarPath = `/api/v1/public/signatures/document`;
86
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
88
+ let baseOptions;
89
+ if (configuration) {
90
+ baseOptions = configuration.baseOptions;
91
+ }
92
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
93
+ const localVarHeaderParameter = {};
94
+ const localVarQueryParameter = {};
95
+ // authentication keycloak_auth required
96
+ // http bearer authentication required
97
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
98
+ if (token !== undefined) {
99
+ localVarQueryParameter['token'] = token;
100
+ }
101
+ localVarHeaderParameter['Accept'] = 'application/pdf';
102
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
104
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
105
+ return {
106
+ url: (0, common_1.toPathString)(localVarUrlObj),
107
+ options: localVarRequestOptions,
108
+ };
109
+ }),
110
+ /**
111
+ *
112
+ * @summary Record that the recipient opened the document
113
+ * @param {string} token
114
+ * @param {string} [userAgent]
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ markViewed: (token_1, userAgent_1, ...args_1) => __awaiter(this, [token_1, userAgent_1, ...args_1], void 0, function* (token, userAgent, options = {}) {
119
+ // verify required parameter 'token' is not null or undefined
120
+ (0, common_1.assertParamExists)('markViewed', 'token', token);
121
+ const localVarPath = `/api/v1/public/signatures/viewed`;
122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
123
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
124
+ let baseOptions;
125
+ if (configuration) {
126
+ baseOptions = configuration.baseOptions;
127
+ }
128
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
129
+ const localVarHeaderParameter = {};
130
+ const localVarQueryParameter = {};
131
+ // authentication keycloak_auth required
132
+ // http bearer authentication required
133
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
134
+ if (token !== undefined) {
135
+ localVarQueryParameter['token'] = token;
136
+ }
137
+ localVarHeaderParameter['Accept'] = 'application/json';
138
+ if (userAgent != null) {
139
+ localVarHeaderParameter['User-Agent'] = String(userAgent);
140
+ }
141
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
144
+ return {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ };
148
+ }),
149
+ /**
150
+ *
151
+ * @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
152
+ * @param {string} token
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ requestOtp: (token_1, ...args_1) => __awaiter(this, [token_1, ...args_1], void 0, function* (token, options = {}) {
157
+ // verify required parameter 'token' is not null or undefined
158
+ (0, common_1.assertParamExists)('requestOtp', 'token', token);
159
+ const localVarPath = `/api/v1/public/signatures/otp/request`;
160
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
161
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
162
+ let baseOptions;
163
+ if (configuration) {
164
+ baseOptions = configuration.baseOptions;
165
+ }
166
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
167
+ const localVarHeaderParameter = {};
168
+ const localVarQueryParameter = {};
169
+ // authentication keycloak_auth required
170
+ // http bearer authentication required
171
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
172
+ if (token !== undefined) {
173
+ localVarQueryParameter['token'] = token;
174
+ }
175
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
176
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
177
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
178
+ return {
179
+ url: (0, common_1.toPathString)(localVarUrlObj),
180
+ options: localVarRequestOptions,
181
+ };
182
+ }),
183
+ /**
184
+ *
185
+ * @summary Submit the recipient\'s fields and sign
186
+ * @param {string} token
187
+ * @param {ApplySignatureRequest} applySignatureRequest
188
+ * @param {string} [userAgent]
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ sign: (token_1, applySignatureRequest_1, userAgent_1, ...args_1) => __awaiter(this, [token_1, applySignatureRequest_1, userAgent_1, ...args_1], void 0, function* (token, applySignatureRequest, userAgent, options = {}) {
193
+ // verify required parameter 'token' is not null or undefined
194
+ (0, common_1.assertParamExists)('sign', 'token', token);
195
+ // verify required parameter 'applySignatureRequest' is not null or undefined
196
+ (0, common_1.assertParamExists)('sign', 'applySignatureRequest', applySignatureRequest);
197
+ const localVarPath = `/api/v1/public/signatures/sign`;
198
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
200
+ let baseOptions;
201
+ if (configuration) {
202
+ baseOptions = configuration.baseOptions;
203
+ }
204
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
205
+ const localVarHeaderParameter = {};
206
+ const localVarQueryParameter = {};
207
+ // authentication keycloak_auth required
208
+ // http bearer authentication required
209
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
210
+ if (token !== undefined) {
211
+ localVarQueryParameter['token'] = token;
212
+ }
213
+ localVarHeaderParameter['Content-Type'] = 'application/json';
214
+ localVarHeaderParameter['Accept'] = 'application/json';
215
+ if (userAgent != null) {
216
+ localVarHeaderParameter['User-Agent'] = String(userAgent);
217
+ }
218
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
221
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(applySignatureRequest, localVarRequestOptions, configuration);
222
+ return {
223
+ url: (0, common_1.toPathString)(localVarUrlObj),
224
+ options: localVarRequestOptions,
225
+ };
226
+ }),
227
+ /**
228
+ *
229
+ * @summary Verify the one-time access code
230
+ * @param {string} token
231
+ * @param {VerifyOtpRequest} verifyOtpRequest
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ verifyOtp: (token_1, verifyOtpRequest_1, ...args_1) => __awaiter(this, [token_1, verifyOtpRequest_1, ...args_1], void 0, function* (token, verifyOtpRequest, options = {}) {
236
+ // verify required parameter 'token' is not null or undefined
237
+ (0, common_1.assertParamExists)('verifyOtp', 'token', token);
238
+ // verify required parameter 'verifyOtpRequest' is not null or undefined
239
+ (0, common_1.assertParamExists)('verifyOtp', 'verifyOtpRequest', verifyOtpRequest);
240
+ const localVarPath = `/api/v1/public/signatures/otp/verify`;
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ if (configuration) {
245
+ baseOptions = configuration.baseOptions;
246
+ }
247
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
248
+ const localVarHeaderParameter = {};
249
+ const localVarQueryParameter = {};
250
+ // authentication keycloak_auth required
251
+ // http bearer authentication required
252
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
253
+ if (token !== undefined) {
254
+ localVarQueryParameter['token'] = token;
255
+ }
256
+ localVarHeaderParameter['Content-Type'] = 'application/json';
257
+ localVarHeaderParameter['Accept'] = 'application/json';
258
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
259
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
261
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyOtpRequest, localVarRequestOptions, configuration);
262
+ return {
263
+ url: (0, common_1.toPathString)(localVarUrlObj),
264
+ options: localVarRequestOptions,
265
+ };
266
+ }),
267
+ /**
268
+ *
269
+ * @summary Resolve a signing token to its envelope view
270
+ * @param {string} token
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ view: (token_1, ...args_1) => __awaiter(this, [token_1, ...args_1], void 0, function* (token, options = {}) {
275
+ // verify required parameter 'token' is not null or undefined
276
+ (0, common_1.assertParamExists)('view', 'token', token);
277
+ const localVarPath = `/api/v1/public/signatures`;
278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
280
+ let baseOptions;
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ }
284
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
285
+ const localVarHeaderParameter = {};
286
+ const localVarQueryParameter = {};
287
+ // authentication keycloak_auth required
288
+ // http bearer authentication required
289
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
290
+ if (token !== undefined) {
291
+ localVarQueryParameter['token'] = token;
292
+ }
293
+ localVarHeaderParameter['Accept'] = 'application/json';
294
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
295
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
296
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
297
+ return {
298
+ url: (0, common_1.toPathString)(localVarUrlObj),
299
+ options: localVarRequestOptions,
300
+ };
301
+ }),
302
+ };
303
+ };
304
+ exports.ESignPublicApiAxiosParamCreator = ESignPublicApiAxiosParamCreator;
305
+ /**
306
+ * ESignPublicApi - functional programming interface
307
+ */
308
+ const ESignPublicApiFp = function (configuration) {
309
+ const localVarAxiosParamCreator = (0, exports.ESignPublicApiAxiosParamCreator)(configuration);
310
+ return {
311
+ /**
312
+ *
313
+ * @summary Decline to sign (voids the envelope)
314
+ * @param {string} token
315
+ * @param {DeclineSignatureRequest} [declineSignatureRequest]
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ decline(token, declineSignatureRequest, options) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ var _a, _b, _c;
322
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.decline(token, declineSignatureRequest, options);
323
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
324
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignPublicApi.decline']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
325
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
326
+ });
327
+ },
328
+ /**
329
+ *
330
+ * @summary Stream the source PDF for signing
331
+ * @param {string} token
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ document(token, options) {
336
+ return __awaiter(this, void 0, void 0, function* () {
337
+ var _a, _b, _c;
338
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.document(token, options);
339
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
340
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignPublicApi.document']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
341
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
342
+ });
343
+ },
344
+ /**
345
+ *
346
+ * @summary Record that the recipient opened the document
347
+ * @param {string} token
348
+ * @param {string} [userAgent]
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ */
352
+ markViewed(token, userAgent, options) {
353
+ return __awaiter(this, void 0, void 0, function* () {
354
+ var _a, _b, _c;
355
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.markViewed(token, userAgent, options);
356
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
357
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignPublicApi.markViewed']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
358
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
359
+ });
360
+ },
361
+ /**
362
+ *
363
+ * @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
364
+ * @param {string} token
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ requestOtp(token, options) {
369
+ return __awaiter(this, void 0, void 0, function* () {
370
+ var _a, _b, _c;
371
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOtp(token, options);
372
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
373
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignPublicApi.requestOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
374
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
375
+ });
376
+ },
377
+ /**
378
+ *
379
+ * @summary Submit the recipient\'s fields and sign
380
+ * @param {string} token
381
+ * @param {ApplySignatureRequest} applySignatureRequest
382
+ * @param {string} [userAgent]
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ sign(token, applySignatureRequest, userAgent, options) {
387
+ return __awaiter(this, void 0, void 0, function* () {
388
+ var _a, _b, _c;
389
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sign(token, applySignatureRequest, userAgent, options);
390
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
391
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignPublicApi.sign']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
392
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
393
+ });
394
+ },
395
+ /**
396
+ *
397
+ * @summary Verify the one-time access code
398
+ * @param {string} token
399
+ * @param {VerifyOtpRequest} verifyOtpRequest
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ */
403
+ verifyOtp(token, verifyOtpRequest, options) {
404
+ return __awaiter(this, void 0, void 0, function* () {
405
+ var _a, _b, _c;
406
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOtp(token, verifyOtpRequest, options);
407
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
408
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignPublicApi.verifyOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
409
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
410
+ });
411
+ },
412
+ /**
413
+ *
414
+ * @summary Resolve a signing token to its envelope view
415
+ * @param {string} token
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ */
419
+ view(token, options) {
420
+ return __awaiter(this, void 0, void 0, function* () {
421
+ var _a, _b, _c;
422
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.view(token, options);
423
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
424
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignPublicApi.view']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
425
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
426
+ });
427
+ },
428
+ };
429
+ };
430
+ exports.ESignPublicApiFp = ESignPublicApiFp;
431
+ /**
432
+ * ESignPublicApi - factory interface
433
+ */
434
+ const ESignPublicApiFactory = function (configuration, basePath, axios) {
435
+ const localVarFp = (0, exports.ESignPublicApiFp)(configuration);
436
+ return {
437
+ /**
438
+ *
439
+ * @summary Decline to sign (voids the envelope)
440
+ * @param {string} token
441
+ * @param {DeclineSignatureRequest} [declineSignatureRequest]
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ decline(token, declineSignatureRequest, options) {
446
+ return localVarFp.decline(token, declineSignatureRequest, options).then((request) => request(axios, basePath));
447
+ },
448
+ /**
449
+ *
450
+ * @summary Stream the source PDF for signing
451
+ * @param {string} token
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ */
455
+ document(token, options) {
456
+ return localVarFp.document(token, options).then((request) => request(axios, basePath));
457
+ },
458
+ /**
459
+ *
460
+ * @summary Record that the recipient opened the document
461
+ * @param {string} token
462
+ * @param {string} [userAgent]
463
+ * @param {*} [options] Override http request option.
464
+ * @throws {RequiredError}
465
+ */
466
+ markViewed(token, userAgent, options) {
467
+ return localVarFp.markViewed(token, userAgent, options).then((request) => request(axios, basePath));
468
+ },
469
+ /**
470
+ *
471
+ * @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
472
+ * @param {string} token
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ requestOtp(token, options) {
477
+ return localVarFp.requestOtp(token, options).then((request) => request(axios, basePath));
478
+ },
479
+ /**
480
+ *
481
+ * @summary Submit the recipient\'s fields and sign
482
+ * @param {string} token
483
+ * @param {ApplySignatureRequest} applySignatureRequest
484
+ * @param {string} [userAgent]
485
+ * @param {*} [options] Override http request option.
486
+ * @throws {RequiredError}
487
+ */
488
+ sign(token, applySignatureRequest, userAgent, options) {
489
+ return localVarFp.sign(token, applySignatureRequest, userAgent, options).then((request) => request(axios, basePath));
490
+ },
491
+ /**
492
+ *
493
+ * @summary Verify the one-time access code
494
+ * @param {string} token
495
+ * @param {VerifyOtpRequest} verifyOtpRequest
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ */
499
+ verifyOtp(token, verifyOtpRequest, options) {
500
+ return localVarFp.verifyOtp(token, verifyOtpRequest, options).then((request) => request(axios, basePath));
501
+ },
502
+ /**
503
+ *
504
+ * @summary Resolve a signing token to its envelope view
505
+ * @param {string} token
506
+ * @param {*} [options] Override http request option.
507
+ * @throws {RequiredError}
508
+ */
509
+ view(token, options) {
510
+ return localVarFp.view(token, options).then((request) => request(axios, basePath));
511
+ },
512
+ };
513
+ };
514
+ exports.ESignPublicApiFactory = ESignPublicApiFactory;
515
+ /**
516
+ * ESignPublicApi - object-oriented interface
517
+ */
518
+ class ESignPublicApi extends base_1.BaseAPI {
519
+ /**
520
+ *
521
+ * @summary Decline to sign (voids the envelope)
522
+ * @param {string} token
523
+ * @param {DeclineSignatureRequest} [declineSignatureRequest]
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ decline(token, declineSignatureRequest, options) {
528
+ return (0, exports.ESignPublicApiFp)(this.configuration).decline(token, declineSignatureRequest, options).then((request) => request(this.axios, this.basePath));
529
+ }
530
+ /**
531
+ *
532
+ * @summary Stream the source PDF for signing
533
+ * @param {string} token
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ document(token, options) {
538
+ return (0, exports.ESignPublicApiFp)(this.configuration).document(token, options).then((request) => request(this.axios, this.basePath));
539
+ }
540
+ /**
541
+ *
542
+ * @summary Record that the recipient opened the document
543
+ * @param {string} token
544
+ * @param {string} [userAgent]
545
+ * @param {*} [options] Override http request option.
546
+ * @throws {RequiredError}
547
+ */
548
+ markViewed(token, userAgent, options) {
549
+ return (0, exports.ESignPublicApiFp)(this.configuration).markViewed(token, userAgent, options).then((request) => request(this.axios, this.basePath));
550
+ }
551
+ /**
552
+ *
553
+ * @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
554
+ * @param {string} token
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ */
558
+ requestOtp(token, options) {
559
+ return (0, exports.ESignPublicApiFp)(this.configuration).requestOtp(token, options).then((request) => request(this.axios, this.basePath));
560
+ }
561
+ /**
562
+ *
563
+ * @summary Submit the recipient\'s fields and sign
564
+ * @param {string} token
565
+ * @param {ApplySignatureRequest} applySignatureRequest
566
+ * @param {string} [userAgent]
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ */
570
+ sign(token, applySignatureRequest, userAgent, options) {
571
+ return (0, exports.ESignPublicApiFp)(this.configuration).sign(token, applySignatureRequest, userAgent, options).then((request) => request(this.axios, this.basePath));
572
+ }
573
+ /**
574
+ *
575
+ * @summary Verify the one-time access code
576
+ * @param {string} token
577
+ * @param {VerifyOtpRequest} verifyOtpRequest
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ */
581
+ verifyOtp(token, verifyOtpRequest, options) {
582
+ return (0, exports.ESignPublicApiFp)(this.configuration).verifyOtp(token, verifyOtpRequest, options).then((request) => request(this.axios, this.basePath));
583
+ }
584
+ /**
585
+ *
586
+ * @summary Resolve a signing token to its envelope view
587
+ * @param {string} token
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ view(token, options) {
592
+ return (0, exports.ESignPublicApiFp)(this.configuration).view(token, options).then((request) => request(this.axios, this.basePath));
593
+ }
594
+ }
595
+ exports.ESignPublicApi = ESignPublicApi;