@openfilz-sdk/typescript-ee 1.8.0 → 1.8.2

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 (198) hide show
  1. package/.openapi-generator/FILES +45 -4
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +46 -13
  4. package/api/aisettings-api.ts +77 -0
  5. package/api/esign-api.ts +719 -0
  6. package/api/esign-enterprise-api.ts +286 -0
  7. package/api/{digital-signature-public-api.ts → esign-public-api.ts} +183 -24
  8. package/api/{digital-signature-api.ts → esign-templates-api.ts} +137 -113
  9. package/api.ts +4 -2
  10. package/dist/api/aisettings-api.d.ts +34 -0
  11. package/dist/api/aisettings-api.js +70 -0
  12. package/dist/api/esign-api.d.ts +334 -0
  13. package/dist/api/esign-api.js +693 -0
  14. package/dist/api/esign-enterprise-api.d.ts +138 -0
  15. package/dist/api/esign-enterprise-api.js +278 -0
  16. package/dist/{esm/api/digital-signature-public-api.d.ts → api/esign-public-api.d.ts} +81 -12
  17. package/dist/api/{digital-signature-public-api.js → esign-public-api.js} +178 -29
  18. package/dist/api/esign-templates-api.d.ts +234 -0
  19. package/dist/api/{digital-signature-api.js → esign-templates-api.js} +137 -115
  20. package/dist/api.d.ts +4 -2
  21. package/dist/api.js +4 -2
  22. package/dist/esm/api/aisettings-api.d.ts +34 -0
  23. package/dist/esm/api/aisettings-api.js +70 -0
  24. package/dist/esm/api/esign-api.d.ts +334 -0
  25. package/dist/esm/api/esign-api.js +686 -0
  26. package/dist/esm/api/esign-enterprise-api.d.ts +138 -0
  27. package/dist/esm/api/esign-enterprise-api.js +271 -0
  28. package/dist/{api/digital-signature-public-api.d.ts → esm/api/esign-public-api.d.ts} +81 -12
  29. package/dist/esm/api/{digital-signature-public-api.js → esign-public-api.js} +173 -24
  30. package/dist/esm/api/esign-templates-api.d.ts +234 -0
  31. package/dist/esm/api/{digital-signature-api.js → esign-templates-api.js} +132 -110
  32. package/dist/esm/api.d.ts +4 -2
  33. package/dist/esm/api.js +4 -2
  34. package/dist/esm/models/ai-models-response.d.ts +41 -0
  35. package/dist/esm/models/ai-models-response.js +23 -0
  36. package/dist/esm/models/apply-signature-request.d.ts +3 -0
  37. package/dist/esm/models/bulk-row-result.d.ts +17 -0
  38. package/dist/esm/models/bulk-row-result.js +14 -0
  39. package/dist/esm/models/bulk-row.d.ts +19 -0
  40. package/dist/esm/models/bulk-row.js +14 -0
  41. package/dist/esm/models/bulk-send-request.d.ts +19 -0
  42. package/dist/esm/models/bulk-send-request.js +14 -0
  43. package/dist/esm/models/bulk-send-response.d.ts +18 -0
  44. package/dist/esm/models/bulk-send-response.js +14 -0
  45. package/dist/esm/models/create-signature-envelope-request.d.ts +5 -0
  46. package/dist/esm/models/embed-url-response.d.ts +16 -0
  47. package/dist/esm/models/embed-url-response.js +14 -0
  48. package/dist/esm/models/enriched-audit-log.d.ts +3 -0
  49. package/dist/esm/models/enriched-audit-log.js +3 -0
  50. package/dist/esm/models/index.d.ts +18 -0
  51. package/dist/esm/models/index.js +18 -0
  52. package/dist/esm/models/instantiate-template-request.d.ts +22 -0
  53. package/dist/esm/models/instantiate-template-request.js +14 -0
  54. package/dist/esm/models/list-ai-models-request.d.ts +32 -0
  55. package/dist/esm/models/list-ai-models-request.js +19 -0
  56. package/dist/esm/models/public-signature-view.d.ts +13 -0
  57. package/dist/esm/models/public-signature-view.js +5 -0
  58. package/dist/esm/models/role-binding.d.ts +19 -0
  59. package/dist/esm/models/role-binding.js +14 -0
  60. package/dist/esm/models/search-by-audit-log-request.d.ts +3 -0
  61. package/dist/esm/models/search-by-audit-log-request.js +3 -0
  62. package/dist/esm/models/settings.d.ts +3 -0
  63. package/dist/esm/models/signature-envelope-dto.d.ts +6 -0
  64. package/dist/esm/models/signature-event-dto.d.ts +33 -0
  65. package/dist/esm/models/signature-event-dto.js +26 -0
  66. package/dist/esm/models/signature-field-dto.d.ts +44 -0
  67. package/dist/esm/models/signature-field-dto.js +27 -0
  68. package/dist/esm/models/signature-field-input.d.ts +39 -0
  69. package/dist/esm/models/signature-field-input.js +27 -0
  70. package/dist/esm/models/signature-field-value.d.ts +16 -0
  71. package/dist/esm/models/signature-field-value.js +14 -0
  72. package/dist/esm/models/signature-recipient-dto.d.ts +16 -0
  73. package/dist/esm/models/signature-recipient-dto.js +9 -0
  74. package/dist/esm/models/signature-recipient-input.d.ts +19 -1
  75. package/dist/esm/models/signature-recipient-input.js +9 -1
  76. package/dist/esm/models/signature-template-dto.d.ts +27 -0
  77. package/dist/esm/models/signature-template-dto.js +14 -0
  78. package/dist/esm/models/signature-template-field.d.ts +40 -0
  79. package/dist/esm/models/signature-template-field.js +27 -0
  80. package/dist/esm/models/signature-template-request.d.ts +23 -0
  81. package/dist/esm/models/signature-template-request.js +14 -0
  82. package/dist/esm/models/signature-template-role.d.ts +28 -0
  83. package/dist/esm/models/signature-template-role.js +22 -0
  84. package/dist/esm/models/verify-otp-request.d.ts +14 -0
  85. package/dist/esm/models/verify-otp-request.js +14 -0
  86. package/dist/models/ai-models-response.d.ts +41 -0
  87. package/dist/models/ai-models-response.js +26 -0
  88. package/dist/models/apply-signature-request.d.ts +3 -0
  89. package/dist/models/bulk-row-result.d.ts +17 -0
  90. package/dist/models/bulk-row-result.js +15 -0
  91. package/dist/models/bulk-row.d.ts +19 -0
  92. package/dist/models/bulk-row.js +15 -0
  93. package/dist/models/bulk-send-request.d.ts +19 -0
  94. package/dist/models/bulk-send-request.js +15 -0
  95. package/dist/models/bulk-send-response.d.ts +18 -0
  96. package/dist/models/bulk-send-response.js +15 -0
  97. package/dist/models/create-signature-envelope-request.d.ts +5 -0
  98. package/dist/models/embed-url-response.d.ts +16 -0
  99. package/dist/models/embed-url-response.js +15 -0
  100. package/dist/models/enriched-audit-log.d.ts +3 -0
  101. package/dist/models/enriched-audit-log.js +3 -0
  102. package/dist/models/index.d.ts +18 -0
  103. package/dist/models/index.js +18 -0
  104. package/dist/models/instantiate-template-request.d.ts +22 -0
  105. package/dist/models/instantiate-template-request.js +15 -0
  106. package/dist/models/list-ai-models-request.d.ts +32 -0
  107. package/dist/models/list-ai-models-request.js +22 -0
  108. package/dist/models/public-signature-view.d.ts +13 -0
  109. package/dist/models/public-signature-view.js +6 -1
  110. package/dist/models/role-binding.d.ts +19 -0
  111. package/dist/models/role-binding.js +15 -0
  112. package/dist/models/search-by-audit-log-request.d.ts +3 -0
  113. package/dist/models/search-by-audit-log-request.js +3 -0
  114. package/dist/models/settings.d.ts +3 -0
  115. package/dist/models/signature-envelope-dto.d.ts +6 -0
  116. package/dist/models/signature-event-dto.d.ts +33 -0
  117. package/dist/models/signature-event-dto.js +29 -0
  118. package/dist/models/signature-field-dto.d.ts +44 -0
  119. package/dist/models/signature-field-dto.js +30 -0
  120. package/dist/models/signature-field-input.d.ts +39 -0
  121. package/dist/models/signature-field-input.js +30 -0
  122. package/dist/models/signature-field-value.d.ts +16 -0
  123. package/dist/models/signature-field-value.js +15 -0
  124. package/dist/models/signature-recipient-dto.d.ts +16 -0
  125. package/dist/models/signature-recipient-dto.js +10 -1
  126. package/dist/models/signature-recipient-input.d.ts +19 -1
  127. package/dist/models/signature-recipient-input.js +10 -0
  128. package/dist/models/signature-template-dto.d.ts +27 -0
  129. package/dist/models/signature-template-dto.js +15 -0
  130. package/dist/models/signature-template-field.d.ts +40 -0
  131. package/dist/models/signature-template-field.js +30 -0
  132. package/dist/models/signature-template-request.d.ts +23 -0
  133. package/dist/models/signature-template-request.js +15 -0
  134. package/dist/models/signature-template-role.d.ts +28 -0
  135. package/dist/models/signature-template-role.js +25 -0
  136. package/dist/models/verify-otp-request.d.ts +14 -0
  137. package/dist/models/verify-otp-request.js +15 -0
  138. package/docs/AISettingsApi.md +53 -0
  139. package/docs/AiModelsResponse.md +26 -0
  140. package/docs/ApplySignatureRequest.md +4 -0
  141. package/docs/BulkRow.md +28 -0
  142. package/docs/BulkRowResult.md +26 -0
  143. package/docs/BulkSendRequest.md +28 -0
  144. package/docs/BulkSendResponse.md +26 -0
  145. package/docs/CreateSignatureEnvelopeRequest.md +10 -0
  146. package/docs/ESignApi.md +463 -0
  147. package/docs/ESignEnterpriseApi.md +164 -0
  148. package/docs/{DigitalSignaturePublicApi.md → ESignPublicApi.md} +118 -12
  149. package/docs/{DigitalSignatureApi.md → ESignTemplatesApi.md} +76 -61
  150. package/docs/EmbedUrlResponse.md +24 -0
  151. package/docs/InstantiateTemplateRequest.md +34 -0
  152. package/docs/ListAiModelsRequest.md +24 -0
  153. package/docs/PublicSignatureView.md +12 -0
  154. package/docs/RoleBinding.md +30 -0
  155. package/docs/Settings.md +6 -0
  156. package/docs/SignatureEnvelopeDTO.md +12 -0
  157. package/docs/SignatureEventDTO.md +30 -0
  158. package/docs/SignatureFieldDTO.md +46 -0
  159. package/docs/SignatureFieldInput.md +36 -0
  160. package/docs/SignatureFieldValue.md +24 -0
  161. package/docs/SignatureRecipientDTO.md +8 -0
  162. package/docs/SignatureRecipientInput.md +13 -1
  163. package/docs/SignatureTemplateDTO.md +42 -0
  164. package/docs/SignatureTemplateField.md +38 -0
  165. package/docs/SignatureTemplateRequest.md +34 -0
  166. package/docs/SignatureTemplateRole.md +26 -0
  167. package/docs/VerifyOtpRequest.md +20 -0
  168. package/models/ai-models-response.ts +51 -0
  169. package/models/apply-signature-request.ts +5 -0
  170. package/models/bulk-row-result.ts +23 -0
  171. package/models/bulk-row.ts +27 -0
  172. package/models/bulk-send-request.ts +27 -0
  173. package/models/bulk-send-response.ts +26 -0
  174. package/models/create-signature-envelope-request.ts +5 -0
  175. package/models/embed-url-response.ts +22 -0
  176. package/models/enriched-audit-log.ts +3 -0
  177. package/models/index.ts +18 -0
  178. package/models/instantiate-template-request.ts +30 -0
  179. package/models/list-ai-models-request.ts +41 -0
  180. package/models/public-signature-view.ts +16 -0
  181. package/models/role-binding.ts +25 -0
  182. package/models/search-by-audit-log-request.ts +3 -0
  183. package/models/settings.ts +3 -0
  184. package/models/signature-envelope-dto.ts +6 -0
  185. package/models/signature-event-dto.ts +42 -0
  186. package/models/signature-field-dto.ts +51 -0
  187. package/models/signature-field-input.ts +46 -0
  188. package/models/signature-field-value.ts +22 -0
  189. package/models/signature-recipient-dto.ts +20 -0
  190. package/models/signature-recipient-input.ts +25 -1
  191. package/models/signature-template-dto.ts +37 -0
  192. package/models/signature-template-field.ts +47 -0
  193. package/models/signature-template-request.ts +33 -0
  194. package/models/signature-template-role.ts +38 -0
  195. package/models/verify-otp-request.ts +20 -0
  196. package/package.json +1 -1
  197. package/dist/api/digital-signature-api.d.ts +0 -221
  198. package/dist/esm/api/digital-signature-api.d.ts +0 -221
@@ -0,0 +1,138 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
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 { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { BulkSendRequest } from '../models';
16
+ import type { BulkSendResponse } from '../models';
17
+ import type { EmbedUrlResponse } from '../models';
18
+ import type { SignatureArchiveDTO } from '../models';
19
+ /**
20
+ * ESignEnterpriseApi - axios parameter creator
21
+ */
22
+ export declare const ESignEnterpriseApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ *
25
+ * @summary PDF/A-2b archive + veraPDF compliance for a completed envelope
26
+ * @param {string} id
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ archive: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ *
33
+ * @summary Create (and send) one envelope per row from a template
34
+ * @param {BulkSendRequest} bulkSendRequest
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ bulk: (bulkSendRequest: BulkSendRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
+ /**
40
+ *
41
+ * @summary Mint an embedded-signing URL for a recipient (rotates the token; no email is sent)
42
+ * @param {string} id
43
+ * @param {string} recipientId
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ embedUrl: (id: string, recipientId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
+ };
49
+ /**
50
+ * ESignEnterpriseApi - functional programming interface
51
+ */
52
+ export declare const ESignEnterpriseApiFp: (configuration?: Configuration) => {
53
+ /**
54
+ *
55
+ * @summary PDF/A-2b archive + veraPDF compliance for a completed envelope
56
+ * @param {string} id
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ archive(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignatureArchiveDTO>>;
61
+ /**
62
+ *
63
+ * @summary Create (and send) one envelope per row from a template
64
+ * @param {BulkSendRequest} bulkSendRequest
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ bulk(bulkSendRequest: BulkSendRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BulkSendResponse>>;
69
+ /**
70
+ *
71
+ * @summary Mint an embedded-signing URL for a recipient (rotates the token; no email is sent)
72
+ * @param {string} id
73
+ * @param {string} recipientId
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ embedUrl(id: string, recipientId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmbedUrlResponse>>;
78
+ };
79
+ /**
80
+ * ESignEnterpriseApi - factory interface
81
+ */
82
+ export declare const ESignEnterpriseApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
83
+ /**
84
+ *
85
+ * @summary PDF/A-2b archive + veraPDF compliance for a completed envelope
86
+ * @param {string} id
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ archive(id: string, options?: RawAxiosRequestConfig): AxiosPromise<SignatureArchiveDTO>;
91
+ /**
92
+ *
93
+ * @summary Create (and send) one envelope per row from a template
94
+ * @param {BulkSendRequest} bulkSendRequest
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ bulk(bulkSendRequest: BulkSendRequest, options?: RawAxiosRequestConfig): AxiosPromise<BulkSendResponse>;
99
+ /**
100
+ *
101
+ * @summary Mint an embedded-signing URL for a recipient (rotates the token; no email is sent)
102
+ * @param {string} id
103
+ * @param {string} recipientId
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ embedUrl(id: string, recipientId: string, options?: RawAxiosRequestConfig): AxiosPromise<EmbedUrlResponse>;
108
+ };
109
+ /**
110
+ * ESignEnterpriseApi - object-oriented interface
111
+ */
112
+ export declare class ESignEnterpriseApi extends BaseAPI {
113
+ /**
114
+ *
115
+ * @summary PDF/A-2b archive + veraPDF compliance for a completed envelope
116
+ * @param {string} id
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ archive(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SignatureArchiveDTO, any, {}, any>>;
121
+ /**
122
+ *
123
+ * @summary Create (and send) one envelope per row from a template
124
+ * @param {BulkSendRequest} bulkSendRequest
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ bulk(bulkSendRequest: BulkSendRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BulkSendResponse, any, {}, any>>;
129
+ /**
130
+ *
131
+ * @summary Mint an embedded-signing URL for a recipient (rotates the token; no email is sent)
132
+ * @param {string} id
133
+ * @param {string} recipientId
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ embedUrl(id: string, recipientId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EmbedUrlResponse, any, {}, any>>;
138
+ }
@@ -0,0 +1,271 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * ESignEnterpriseApi - axios parameter creator
31
+ */
32
+ export const ESignEnterpriseApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary PDF/A-2b archive + veraPDF compliance for a completed envelope
37
+ * @param {string} id
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ archive: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
42
+ // verify required parameter 'id' is not null or undefined
43
+ assertParamExists('archive', 'id', id);
44
+ const localVarPath = `/api/v1/signatures/{id}/archive`
45
+ .replace('{id}', encodeURIComponent(String(id)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ localVarHeaderParameter['Accept'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ return {
63
+ url: toPathString(localVarUrlObj),
64
+ options: localVarRequestOptions,
65
+ };
66
+ }),
67
+ /**
68
+ *
69
+ * @summary Create (and send) one envelope per row from a template
70
+ * @param {BulkSendRequest} bulkSendRequest
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ bulk: (bulkSendRequest_1, ...args_1) => __awaiter(this, [bulkSendRequest_1, ...args_1], void 0, function* (bulkSendRequest, options = {}) {
75
+ // verify required parameter 'bulkSendRequest' is not null or undefined
76
+ assertParamExists('bulk', 'bulkSendRequest', bulkSendRequest);
77
+ const localVarPath = `/api/v1/signatures/bulk`;
78
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
+ let baseOptions;
81
+ if (configuration) {
82
+ baseOptions = configuration.baseOptions;
83
+ }
84
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
85
+ const localVarHeaderParameter = {};
86
+ const localVarQueryParameter = {};
87
+ // authentication keycloak_auth required
88
+ // http bearer authentication required
89
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
90
+ localVarHeaderParameter['Content-Type'] = 'application/json';
91
+ localVarHeaderParameter['Accept'] = 'application/json';
92
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
93
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95
+ localVarRequestOptions.data = serializeDataIfNeeded(bulkSendRequest, localVarRequestOptions, configuration);
96
+ return {
97
+ url: toPathString(localVarUrlObj),
98
+ options: localVarRequestOptions,
99
+ };
100
+ }),
101
+ /**
102
+ *
103
+ * @summary Mint an embedded-signing URL for a recipient (rotates the token; no email is sent)
104
+ * @param {string} id
105
+ * @param {string} recipientId
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ embedUrl: (id_1, recipientId_1, ...args_1) => __awaiter(this, [id_1, recipientId_1, ...args_1], void 0, function* (id, recipientId, options = {}) {
110
+ // verify required parameter 'id' is not null or undefined
111
+ assertParamExists('embedUrl', 'id', id);
112
+ // verify required parameter 'recipientId' is not null or undefined
113
+ assertParamExists('embedUrl', 'recipientId', recipientId);
114
+ const localVarPath = `/api/v1/signatures/{id}/recipients/{recipientId}/embed-url`
115
+ .replace('{id}', encodeURIComponent(String(id)))
116
+ .replace('{recipientId}', encodeURIComponent(String(recipientId)));
117
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
119
+ let baseOptions;
120
+ if (configuration) {
121
+ baseOptions = configuration.baseOptions;
122
+ }
123
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
124
+ const localVarHeaderParameter = {};
125
+ const localVarQueryParameter = {};
126
+ // authentication keycloak_auth required
127
+ // http bearer authentication required
128
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
129
+ localVarHeaderParameter['Accept'] = 'application/json';
130
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
131
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
132
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
133
+ return {
134
+ url: toPathString(localVarUrlObj),
135
+ options: localVarRequestOptions,
136
+ };
137
+ }),
138
+ };
139
+ };
140
+ /**
141
+ * ESignEnterpriseApi - functional programming interface
142
+ */
143
+ export const ESignEnterpriseApiFp = function (configuration) {
144
+ const localVarAxiosParamCreator = ESignEnterpriseApiAxiosParamCreator(configuration);
145
+ return {
146
+ /**
147
+ *
148
+ * @summary PDF/A-2b archive + veraPDF compliance for a completed envelope
149
+ * @param {string} id
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ archive(id, options) {
154
+ return __awaiter(this, void 0, void 0, function* () {
155
+ var _a, _b, _c;
156
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archive(id, options);
157
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
158
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignEnterpriseApi.archive']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
159
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
160
+ });
161
+ },
162
+ /**
163
+ *
164
+ * @summary Create (and send) one envelope per row from a template
165
+ * @param {BulkSendRequest} bulkSendRequest
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ bulk(bulkSendRequest, options) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ var _a, _b, _c;
172
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bulk(bulkSendRequest, options);
173
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
174
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignEnterpriseApi.bulk']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
175
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
176
+ });
177
+ },
178
+ /**
179
+ *
180
+ * @summary Mint an embedded-signing URL for a recipient (rotates the token; no email is sent)
181
+ * @param {string} id
182
+ * @param {string} recipientId
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ embedUrl(id, recipientId, options) {
187
+ return __awaiter(this, void 0, void 0, function* () {
188
+ var _a, _b, _c;
189
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.embedUrl(id, recipientId, options);
190
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
191
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignEnterpriseApi.embedUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
192
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
193
+ });
194
+ },
195
+ };
196
+ };
197
+ /**
198
+ * ESignEnterpriseApi - factory interface
199
+ */
200
+ export const ESignEnterpriseApiFactory = function (configuration, basePath, axios) {
201
+ const localVarFp = ESignEnterpriseApiFp(configuration);
202
+ return {
203
+ /**
204
+ *
205
+ * @summary PDF/A-2b archive + veraPDF compliance for a completed envelope
206
+ * @param {string} id
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ archive(id, options) {
211
+ return localVarFp.archive(id, options).then((request) => request(axios, basePath));
212
+ },
213
+ /**
214
+ *
215
+ * @summary Create (and send) one envelope per row from a template
216
+ * @param {BulkSendRequest} bulkSendRequest
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ bulk(bulkSendRequest, options) {
221
+ return localVarFp.bulk(bulkSendRequest, options).then((request) => request(axios, basePath));
222
+ },
223
+ /**
224
+ *
225
+ * @summary Mint an embedded-signing URL for a recipient (rotates the token; no email is sent)
226
+ * @param {string} id
227
+ * @param {string} recipientId
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ embedUrl(id, recipientId, options) {
232
+ return localVarFp.embedUrl(id, recipientId, options).then((request) => request(axios, basePath));
233
+ },
234
+ };
235
+ };
236
+ /**
237
+ * ESignEnterpriseApi - object-oriented interface
238
+ */
239
+ export class ESignEnterpriseApi extends BaseAPI {
240
+ /**
241
+ *
242
+ * @summary PDF/A-2b archive + veraPDF compliance for a completed envelope
243
+ * @param {string} id
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ archive(id, options) {
248
+ return ESignEnterpriseApiFp(this.configuration).archive(id, options).then((request) => request(this.axios, this.basePath));
249
+ }
250
+ /**
251
+ *
252
+ * @summary Create (and send) one envelope per row from a template
253
+ * @param {BulkSendRequest} bulkSendRequest
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ bulk(bulkSendRequest, options) {
258
+ return ESignEnterpriseApiFp(this.configuration).bulk(bulkSendRequest, options).then((request) => request(this.axios, this.basePath));
259
+ }
260
+ /**
261
+ *
262
+ * @summary Mint an embedded-signing URL for a recipient (rotates the token; no email is sent)
263
+ * @param {string} id
264
+ * @param {string} recipientId
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ embedUrl(id, recipientId, options) {
269
+ return ESignEnterpriseApiFp(this.configuration).embedUrl(id, recipientId, options).then((request) => request(this.axios, this.basePath));
270
+ }
271
+ }
@@ -15,10 +15,11 @@ import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { ApplySignatureRequest } from '../models';
16
16
  import type { DeclineSignatureRequest } from '../models';
17
17
  import type { PublicSignatureView } from '../models';
18
+ import type { VerifyOtpRequest } from '../models';
18
19
  /**
19
- * DigitalSignaturePublicApi - axios parameter creator
20
+ * ESignPublicApi - axios parameter creator
20
21
  */
21
- export declare const DigitalSignaturePublicApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ export declare const ESignPublicApiAxiosParamCreator: (configuration?: Configuration) => {
22
23
  /**
23
24
  *
24
25
  * @summary Decline to sign (voids the envelope)
@@ -47,7 +48,15 @@ export declare const DigitalSignaturePublicApiAxiosParamCreator: (configuration?
47
48
  markViewed: (token: string, userAgent?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
49
  /**
49
50
  *
50
- * @summary Apply the recipient\'s signature
51
+ * @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
52
+ * @param {string} token
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ requestOtp: (token: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
57
+ /**
58
+ *
59
+ * @summary Submit the recipient\'s fields and sign
51
60
  * @param {string} token
52
61
  * @param {ApplySignatureRequest} applySignatureRequest
53
62
  * @param {string} [userAgent]
@@ -55,6 +64,15 @@ export declare const DigitalSignaturePublicApiAxiosParamCreator: (configuration?
55
64
  * @throws {RequiredError}
56
65
  */
57
66
  sign: (token: string, applySignatureRequest: ApplySignatureRequest, userAgent?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
67
+ /**
68
+ *
69
+ * @summary Verify the one-time access code
70
+ * @param {string} token
71
+ * @param {VerifyOtpRequest} verifyOtpRequest
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ verifyOtp: (token: string, verifyOtpRequest: VerifyOtpRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
58
76
  /**
59
77
  *
60
78
  * @summary Resolve a signing token to its envelope view
@@ -65,9 +83,9 @@ export declare const DigitalSignaturePublicApiAxiosParamCreator: (configuration?
65
83
  view: (token: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66
84
  };
67
85
  /**
68
- * DigitalSignaturePublicApi - functional programming interface
86
+ * ESignPublicApi - functional programming interface
69
87
  */
70
- export declare const DigitalSignaturePublicApiFp: (configuration?: Configuration) => {
88
+ export declare const ESignPublicApiFp: (configuration?: Configuration) => {
71
89
  /**
72
90
  *
73
91
  * @summary Decline to sign (voids the envelope)
@@ -96,7 +114,15 @@ export declare const DigitalSignaturePublicApiFp: (configuration?: Configuration
96
114
  markViewed(token: string, userAgent?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicSignatureView>>;
97
115
  /**
98
116
  *
99
- * @summary Apply the recipient\'s signature
117
+ * @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
118
+ * @param {string} token
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ requestOtp(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
123
+ /**
124
+ *
125
+ * @summary Submit the recipient\'s fields and sign
100
126
  * @param {string} token
101
127
  * @param {ApplySignatureRequest} applySignatureRequest
102
128
  * @param {string} [userAgent]
@@ -104,6 +130,15 @@ export declare const DigitalSignaturePublicApiFp: (configuration?: Configuration
104
130
  * @throws {RequiredError}
105
131
  */
106
132
  sign(token: string, applySignatureRequest: ApplySignatureRequest, userAgent?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicSignatureView>>;
133
+ /**
134
+ *
135
+ * @summary Verify the one-time access code
136
+ * @param {string} token
137
+ * @param {VerifyOtpRequest} verifyOtpRequest
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ verifyOtp(token: string, verifyOtpRequest: VerifyOtpRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicSignatureView>>;
107
142
  /**
108
143
  *
109
144
  * @summary Resolve a signing token to its envelope view
@@ -114,9 +149,9 @@ export declare const DigitalSignaturePublicApiFp: (configuration?: Configuration
114
149
  view(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicSignatureView>>;
115
150
  };
116
151
  /**
117
- * DigitalSignaturePublicApi - factory interface
152
+ * ESignPublicApi - factory interface
118
153
  */
119
- export declare const DigitalSignaturePublicApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
154
+ export declare const ESignPublicApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
120
155
  /**
121
156
  *
122
157
  * @summary Decline to sign (voids the envelope)
@@ -145,7 +180,15 @@ export declare const DigitalSignaturePublicApiFactory: (configuration?: Configur
145
180
  markViewed(token: string, userAgent?: string, options?: RawAxiosRequestConfig): AxiosPromise<PublicSignatureView>;
146
181
  /**
147
182
  *
148
- * @summary Apply the recipient\'s signature
183
+ * @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
184
+ * @param {string} token
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ requestOtp(token: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
189
+ /**
190
+ *
191
+ * @summary Submit the recipient\'s fields and sign
149
192
  * @param {string} token
150
193
  * @param {ApplySignatureRequest} applySignatureRequest
151
194
  * @param {string} [userAgent]
@@ -153,6 +196,15 @@ export declare const DigitalSignaturePublicApiFactory: (configuration?: Configur
153
196
  * @throws {RequiredError}
154
197
  */
155
198
  sign(token: string, applySignatureRequest: ApplySignatureRequest, userAgent?: string, options?: RawAxiosRequestConfig): AxiosPromise<PublicSignatureView>;
199
+ /**
200
+ *
201
+ * @summary Verify the one-time access code
202
+ * @param {string} token
203
+ * @param {VerifyOtpRequest} verifyOtpRequest
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ verifyOtp(token: string, verifyOtpRequest: VerifyOtpRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicSignatureView>;
156
208
  /**
157
209
  *
158
210
  * @summary Resolve a signing token to its envelope view
@@ -163,9 +215,9 @@ export declare const DigitalSignaturePublicApiFactory: (configuration?: Configur
163
215
  view(token: string, options?: RawAxiosRequestConfig): AxiosPromise<PublicSignatureView>;
164
216
  };
165
217
  /**
166
- * DigitalSignaturePublicApi - object-oriented interface
218
+ * ESignPublicApi - object-oriented interface
167
219
  */
168
- export declare class DigitalSignaturePublicApi extends BaseAPI {
220
+ export declare class ESignPublicApi extends BaseAPI {
169
221
  /**
170
222
  *
171
223
  * @summary Decline to sign (voids the envelope)
@@ -194,7 +246,15 @@ export declare class DigitalSignaturePublicApi extends BaseAPI {
194
246
  markViewed(token: string, userAgent?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicSignatureView, any, {}, any>>;
195
247
  /**
196
248
  *
197
- * @summary Apply the recipient\'s signature
249
+ * @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
250
+ * @param {string} token
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ requestOtp(token: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
255
+ /**
256
+ *
257
+ * @summary Submit the recipient\'s fields and sign
198
258
  * @param {string} token
199
259
  * @param {ApplySignatureRequest} applySignatureRequest
200
260
  * @param {string} [userAgent]
@@ -202,6 +262,15 @@ export declare class DigitalSignaturePublicApi extends BaseAPI {
202
262
  * @throws {RequiredError}
203
263
  */
204
264
  sign(token: string, applySignatureRequest: ApplySignatureRequest, userAgent?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicSignatureView, any, {}, any>>;
265
+ /**
266
+ *
267
+ * @summary Verify the one-time access code
268
+ * @param {string} token
269
+ * @param {VerifyOtpRequest} verifyOtpRequest
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ verifyOtp(token: string, verifyOtpRequest: VerifyOtpRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicSignatureView, any, {}, any>>;
205
274
  /**
206
275
  *
207
276
  * @summary Resolve a signing token to its envelope view