@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.
- package/.openapi-generator/FILES +45 -4
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +46 -13
- package/api/aisettings-api.ts +77 -0
- package/api/esign-api.ts +719 -0
- package/api/esign-enterprise-api.ts +286 -0
- package/api/{digital-signature-public-api.ts → esign-public-api.ts} +183 -24
- package/api/{digital-signature-api.ts → esign-templates-api.ts} +137 -113
- package/api.ts +4 -2
- package/dist/api/aisettings-api.d.ts +34 -0
- package/dist/api/aisettings-api.js +70 -0
- package/dist/api/esign-api.d.ts +334 -0
- package/dist/api/esign-api.js +693 -0
- package/dist/api/esign-enterprise-api.d.ts +138 -0
- package/dist/api/esign-enterprise-api.js +278 -0
- package/dist/{esm/api/digital-signature-public-api.d.ts → api/esign-public-api.d.ts} +81 -12
- package/dist/api/{digital-signature-public-api.js → esign-public-api.js} +178 -29
- package/dist/api/esign-templates-api.d.ts +234 -0
- package/dist/api/{digital-signature-api.js → esign-templates-api.js} +137 -115
- package/dist/api.d.ts +4 -2
- package/dist/api.js +4 -2
- package/dist/esm/api/aisettings-api.d.ts +34 -0
- package/dist/esm/api/aisettings-api.js +70 -0
- package/dist/esm/api/esign-api.d.ts +334 -0
- package/dist/esm/api/esign-api.js +686 -0
- package/dist/esm/api/esign-enterprise-api.d.ts +138 -0
- package/dist/esm/api/esign-enterprise-api.js +271 -0
- package/dist/{api/digital-signature-public-api.d.ts → esm/api/esign-public-api.d.ts} +81 -12
- package/dist/esm/api/{digital-signature-public-api.js → esign-public-api.js} +173 -24
- package/dist/esm/api/esign-templates-api.d.ts +234 -0
- package/dist/esm/api/{digital-signature-api.js → esign-templates-api.js} +132 -110
- package/dist/esm/api.d.ts +4 -2
- package/dist/esm/api.js +4 -2
- package/dist/esm/models/ai-models-response.d.ts +41 -0
- package/dist/esm/models/ai-models-response.js +23 -0
- package/dist/esm/models/apply-signature-request.d.ts +3 -0
- package/dist/esm/models/bulk-row-result.d.ts +17 -0
- package/dist/esm/models/bulk-row-result.js +14 -0
- package/dist/esm/models/bulk-row.d.ts +19 -0
- package/dist/esm/models/bulk-row.js +14 -0
- package/dist/esm/models/bulk-send-request.d.ts +19 -0
- package/dist/esm/models/bulk-send-request.js +14 -0
- package/dist/esm/models/bulk-send-response.d.ts +18 -0
- package/dist/esm/models/bulk-send-response.js +14 -0
- package/dist/esm/models/create-signature-envelope-request.d.ts +5 -0
- package/dist/esm/models/embed-url-response.d.ts +16 -0
- package/dist/esm/models/embed-url-response.js +14 -0
- package/dist/esm/models/enriched-audit-log.d.ts +3 -0
- package/dist/esm/models/enriched-audit-log.js +3 -0
- package/dist/esm/models/index.d.ts +18 -0
- package/dist/esm/models/index.js +18 -0
- package/dist/esm/models/instantiate-template-request.d.ts +22 -0
- package/dist/esm/models/instantiate-template-request.js +14 -0
- package/dist/esm/models/list-ai-models-request.d.ts +32 -0
- package/dist/esm/models/list-ai-models-request.js +19 -0
- package/dist/esm/models/public-signature-view.d.ts +13 -0
- package/dist/esm/models/public-signature-view.js +5 -0
- package/dist/esm/models/role-binding.d.ts +19 -0
- package/dist/esm/models/role-binding.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +3 -0
- package/dist/esm/models/search-by-audit-log-request.js +3 -0
- package/dist/esm/models/settings.d.ts +3 -0
- package/dist/esm/models/signature-envelope-dto.d.ts +6 -0
- package/dist/esm/models/signature-event-dto.d.ts +33 -0
- package/dist/esm/models/signature-event-dto.js +26 -0
- package/dist/esm/models/signature-field-dto.d.ts +44 -0
- package/dist/esm/models/signature-field-dto.js +27 -0
- package/dist/esm/models/signature-field-input.d.ts +39 -0
- package/dist/esm/models/signature-field-input.js +27 -0
- package/dist/esm/models/signature-field-value.d.ts +16 -0
- package/dist/esm/models/signature-field-value.js +14 -0
- package/dist/esm/models/signature-recipient-dto.d.ts +16 -0
- package/dist/esm/models/signature-recipient-dto.js +9 -0
- package/dist/esm/models/signature-recipient-input.d.ts +19 -1
- package/dist/esm/models/signature-recipient-input.js +9 -1
- package/dist/esm/models/signature-template-dto.d.ts +27 -0
- package/dist/esm/models/signature-template-dto.js +14 -0
- package/dist/esm/models/signature-template-field.d.ts +40 -0
- package/dist/esm/models/signature-template-field.js +27 -0
- package/dist/esm/models/signature-template-request.d.ts +23 -0
- package/dist/esm/models/signature-template-request.js +14 -0
- package/dist/esm/models/signature-template-role.d.ts +28 -0
- package/dist/esm/models/signature-template-role.js +22 -0
- package/dist/esm/models/verify-otp-request.d.ts +14 -0
- package/dist/esm/models/verify-otp-request.js +14 -0
- package/dist/models/ai-models-response.d.ts +41 -0
- package/dist/models/ai-models-response.js +26 -0
- package/dist/models/apply-signature-request.d.ts +3 -0
- package/dist/models/bulk-row-result.d.ts +17 -0
- package/dist/models/bulk-row-result.js +15 -0
- package/dist/models/bulk-row.d.ts +19 -0
- package/dist/models/bulk-row.js +15 -0
- package/dist/models/bulk-send-request.d.ts +19 -0
- package/dist/models/bulk-send-request.js +15 -0
- package/dist/models/bulk-send-response.d.ts +18 -0
- package/dist/models/bulk-send-response.js +15 -0
- package/dist/models/create-signature-envelope-request.d.ts +5 -0
- package/dist/models/embed-url-response.d.ts +16 -0
- package/dist/models/embed-url-response.js +15 -0
- package/dist/models/enriched-audit-log.d.ts +3 -0
- package/dist/models/enriched-audit-log.js +3 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/dist/models/instantiate-template-request.d.ts +22 -0
- package/dist/models/instantiate-template-request.js +15 -0
- package/dist/models/list-ai-models-request.d.ts +32 -0
- package/dist/models/list-ai-models-request.js +22 -0
- package/dist/models/public-signature-view.d.ts +13 -0
- package/dist/models/public-signature-view.js +6 -1
- package/dist/models/role-binding.d.ts +19 -0
- package/dist/models/role-binding.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +3 -0
- package/dist/models/search-by-audit-log-request.js +3 -0
- package/dist/models/settings.d.ts +3 -0
- package/dist/models/signature-envelope-dto.d.ts +6 -0
- package/dist/models/signature-event-dto.d.ts +33 -0
- package/dist/models/signature-event-dto.js +29 -0
- package/dist/models/signature-field-dto.d.ts +44 -0
- package/dist/models/signature-field-dto.js +30 -0
- package/dist/models/signature-field-input.d.ts +39 -0
- package/dist/models/signature-field-input.js +30 -0
- package/dist/models/signature-field-value.d.ts +16 -0
- package/dist/models/signature-field-value.js +15 -0
- package/dist/models/signature-recipient-dto.d.ts +16 -0
- package/dist/models/signature-recipient-dto.js +10 -1
- package/dist/models/signature-recipient-input.d.ts +19 -1
- package/dist/models/signature-recipient-input.js +10 -0
- package/dist/models/signature-template-dto.d.ts +27 -0
- package/dist/models/signature-template-dto.js +15 -0
- package/dist/models/signature-template-field.d.ts +40 -0
- package/dist/models/signature-template-field.js +30 -0
- package/dist/models/signature-template-request.d.ts +23 -0
- package/dist/models/signature-template-request.js +15 -0
- package/dist/models/signature-template-role.d.ts +28 -0
- package/dist/models/signature-template-role.js +25 -0
- package/dist/models/verify-otp-request.d.ts +14 -0
- package/dist/models/verify-otp-request.js +15 -0
- package/docs/AISettingsApi.md +53 -0
- package/docs/AiModelsResponse.md +26 -0
- package/docs/ApplySignatureRequest.md +4 -0
- package/docs/BulkRow.md +28 -0
- package/docs/BulkRowResult.md +26 -0
- package/docs/BulkSendRequest.md +28 -0
- package/docs/BulkSendResponse.md +26 -0
- package/docs/CreateSignatureEnvelopeRequest.md +10 -0
- package/docs/ESignApi.md +463 -0
- package/docs/ESignEnterpriseApi.md +164 -0
- package/docs/{DigitalSignaturePublicApi.md → ESignPublicApi.md} +118 -12
- package/docs/{DigitalSignatureApi.md → ESignTemplatesApi.md} +76 -61
- package/docs/EmbedUrlResponse.md +24 -0
- package/docs/InstantiateTemplateRequest.md +34 -0
- package/docs/ListAiModelsRequest.md +24 -0
- package/docs/PublicSignatureView.md +12 -0
- package/docs/RoleBinding.md +30 -0
- package/docs/Settings.md +6 -0
- package/docs/SignatureEnvelopeDTO.md +12 -0
- package/docs/SignatureEventDTO.md +30 -0
- package/docs/SignatureFieldDTO.md +46 -0
- package/docs/SignatureFieldInput.md +36 -0
- package/docs/SignatureFieldValue.md +24 -0
- package/docs/SignatureRecipientDTO.md +8 -0
- package/docs/SignatureRecipientInput.md +13 -1
- package/docs/SignatureTemplateDTO.md +42 -0
- package/docs/SignatureTemplateField.md +38 -0
- package/docs/SignatureTemplateRequest.md +34 -0
- package/docs/SignatureTemplateRole.md +26 -0
- package/docs/VerifyOtpRequest.md +20 -0
- package/models/ai-models-response.ts +51 -0
- package/models/apply-signature-request.ts +5 -0
- package/models/bulk-row-result.ts +23 -0
- package/models/bulk-row.ts +27 -0
- package/models/bulk-send-request.ts +27 -0
- package/models/bulk-send-response.ts +26 -0
- package/models/create-signature-envelope-request.ts +5 -0
- package/models/embed-url-response.ts +22 -0
- package/models/enriched-audit-log.ts +3 -0
- package/models/index.ts +18 -0
- package/models/instantiate-template-request.ts +30 -0
- package/models/list-ai-models-request.ts +41 -0
- package/models/public-signature-view.ts +16 -0
- package/models/role-binding.ts +25 -0
- package/models/search-by-audit-log-request.ts +3 -0
- package/models/settings.ts +3 -0
- package/models/signature-envelope-dto.ts +6 -0
- package/models/signature-event-dto.ts +42 -0
- package/models/signature-field-dto.ts +51 -0
- package/models/signature-field-input.ts +46 -0
- package/models/signature-field-value.ts +22 -0
- package/models/signature-recipient-dto.ts +20 -0
- package/models/signature-recipient-input.ts +25 -1
- package/models/signature-template-dto.ts +37 -0
- package/models/signature-template-field.ts +47 -0
- package/models/signature-template-request.ts +33 -0
- package/models/signature-template-role.ts +38 -0
- package/models/verify-otp-request.ts +20 -0
- package/package.json +1 -1
- package/dist/api/digital-signature-api.d.ts +0 -221
- package/dist/esm/api/digital-signature-api.d.ts +0 -221
|
@@ -27,21 +27,21 @@ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchPara
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* ESignTemplatesApi - axios parameter creator
|
|
31
31
|
*/
|
|
32
|
-
export const
|
|
32
|
+
export const ESignTemplatesApiAxiosParamCreator = function (configuration) {
|
|
33
33
|
return {
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @summary
|
|
36
|
+
* @summary Delete a template
|
|
37
37
|
* @param {string} id
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
_delete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
42
42
|
// verify required parameter 'id' is not null or undefined
|
|
43
|
-
assertParamExists('
|
|
44
|
-
const localVarPath = `/api/v1/
|
|
43
|
+
assertParamExists('_delete', 'id', id);
|
|
44
|
+
const localVarPath = `/api/v1/signature-templates/{id}`
|
|
45
45
|
.replace('{id}', encodeURIComponent(String(id)));
|
|
46
46
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
47
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -49,13 +49,12 @@ export const DigitalSignatureApiAxiosParamCreator = function (configuration) {
|
|
|
49
49
|
if (configuration) {
|
|
50
50
|
baseOptions = configuration.baseOptions;
|
|
51
51
|
}
|
|
52
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
52
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
53
53
|
const localVarHeaderParameter = {};
|
|
54
54
|
const localVarQueryParameter = {};
|
|
55
55
|
// authentication keycloak_auth required
|
|
56
56
|
// http bearer authentication required
|
|
57
57
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
58
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
59
58
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
59
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
60
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -66,16 +65,15 @@ export const DigitalSignatureApiAxiosParamCreator = function (configuration) {
|
|
|
66
65
|
}),
|
|
67
66
|
/**
|
|
68
67
|
*
|
|
69
|
-
* @summary
|
|
70
|
-
* @param {
|
|
68
|
+
* @summary Create a template
|
|
69
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
71
70
|
* @param {*} [options] Override http request option.
|
|
72
71
|
* @throws {RequiredError}
|
|
73
72
|
*/
|
|
74
|
-
|
|
75
|
-
// verify required parameter '
|
|
76
|
-
assertParamExists('
|
|
77
|
-
const localVarPath = `/api/v1/
|
|
78
|
-
.replace('{id}', encodeURIComponent(String(id)));
|
|
73
|
+
create1: (signatureTemplateRequest_1, ...args_1) => __awaiter(this, [signatureTemplateRequest_1, ...args_1], void 0, function* (signatureTemplateRequest, options = {}) {
|
|
74
|
+
// verify required parameter 'signatureTemplateRequest' is not null or undefined
|
|
75
|
+
assertParamExists('create1', 'signatureTemplateRequest', signatureTemplateRequest);
|
|
76
|
+
const localVarPath = `/api/v1/signature-templates`;
|
|
79
77
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
78
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
81
79
|
let baseOptions;
|
|
@@ -88,10 +86,12 @@ export const DigitalSignatureApiAxiosParamCreator = function (configuration) {
|
|
|
88
86
|
// authentication keycloak_auth required
|
|
89
87
|
// http bearer authentication required
|
|
90
88
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
89
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
91
90
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
92
91
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
93
92
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
93
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
94
|
+
localVarRequestOptions.data = serializeDataIfNeeded(signatureTemplateRequest, localVarRequestOptions, configuration);
|
|
95
95
|
return {
|
|
96
96
|
url: toPathString(localVarUrlObj),
|
|
97
97
|
options: localVarRequestOptions,
|
|
@@ -99,33 +99,32 @@ export const DigitalSignatureApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
}),
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
102
|
-
* @summary
|
|
103
|
-
* @param {
|
|
102
|
+
* @summary Get a template
|
|
103
|
+
* @param {string} id
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
|
|
108
|
-
// verify required parameter '
|
|
109
|
-
assertParamExists('
|
|
110
|
-
const localVarPath = `/api/v1/
|
|
107
|
+
get1: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
108
|
+
// verify required parameter 'id' is not null or undefined
|
|
109
|
+
assertParamExists('get1', 'id', id);
|
|
110
|
+
const localVarPath = `/api/v1/signature-templates/{id}`
|
|
111
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
111
112
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
113
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
113
114
|
let baseOptions;
|
|
114
115
|
if (configuration) {
|
|
115
116
|
baseOptions = configuration.baseOptions;
|
|
116
117
|
}
|
|
117
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
118
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
118
119
|
const localVarHeaderParameter = {};
|
|
119
120
|
const localVarQueryParameter = {};
|
|
120
121
|
// authentication keycloak_auth required
|
|
121
122
|
// http bearer authentication required
|
|
122
123
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
123
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
124
124
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
125
125
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
126
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
127
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
128
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createSignatureEnvelopeRequest, localVarRequestOptions, configuration);
|
|
129
128
|
return {
|
|
130
129
|
url: toPathString(localVarUrlObj),
|
|
131
130
|
options: localVarRequestOptions,
|
|
@@ -133,15 +132,18 @@ export const DigitalSignatureApiAxiosParamCreator = function (configuration) {
|
|
|
133
132
|
}),
|
|
134
133
|
/**
|
|
135
134
|
*
|
|
136
|
-
* @summary
|
|
135
|
+
* @summary Create (and send) an envelope from a template
|
|
137
136
|
* @param {string} id
|
|
137
|
+
* @param {InstantiateTemplateRequest} instantiateTemplateRequest
|
|
138
138
|
* @param {*} [options] Override http request option.
|
|
139
139
|
* @throws {RequiredError}
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
instantiate: (id_1, instantiateTemplateRequest_1, ...args_1) => __awaiter(this, [id_1, instantiateTemplateRequest_1, ...args_1], void 0, function* (id, instantiateTemplateRequest, options = {}) {
|
|
142
142
|
// verify required parameter 'id' is not null or undefined
|
|
143
|
-
assertParamExists('
|
|
144
|
-
|
|
143
|
+
assertParamExists('instantiate', 'id', id);
|
|
144
|
+
// verify required parameter 'instantiateTemplateRequest' is not null or undefined
|
|
145
|
+
assertParamExists('instantiate', 'instantiateTemplateRequest', instantiateTemplateRequest);
|
|
146
|
+
const localVarPath = `/api/v1/signature-templates/{id}/envelopes`
|
|
145
147
|
.replace('{id}', encodeURIComponent(String(id)));
|
|
146
148
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147
149
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -149,16 +151,18 @@ export const DigitalSignatureApiAxiosParamCreator = function (configuration) {
|
|
|
149
151
|
if (configuration) {
|
|
150
152
|
baseOptions = configuration.baseOptions;
|
|
151
153
|
}
|
|
152
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
154
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
153
155
|
const localVarHeaderParameter = {};
|
|
154
156
|
const localVarQueryParameter = {};
|
|
155
157
|
// authentication keycloak_auth required
|
|
156
158
|
// http bearer authentication required
|
|
157
159
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
160
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
158
161
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
159
162
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
160
163
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
161
164
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
165
|
+
localVarRequestOptions.data = serializeDataIfNeeded(instantiateTemplateRequest, localVarRequestOptions, configuration);
|
|
162
166
|
return {
|
|
163
167
|
url: toPathString(localVarUrlObj),
|
|
164
168
|
options: localVarRequestOptions,
|
|
@@ -166,12 +170,12 @@ export const DigitalSignatureApiAxiosParamCreator = function (configuration) {
|
|
|
166
170
|
}),
|
|
167
171
|
/**
|
|
168
172
|
*
|
|
169
|
-
* @summary List
|
|
173
|
+
* @summary List my templates
|
|
170
174
|
* @param {*} [options] Override http request option.
|
|
171
175
|
* @throws {RequiredError}
|
|
172
176
|
*/
|
|
173
|
-
|
|
174
|
-
const localVarPath = `/api/v1/
|
|
177
|
+
list: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
178
|
+
const localVarPath = `/api/v1/signature-templates`;
|
|
175
179
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
176
180
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
177
181
|
let baseOptions;
|
|
@@ -195,28 +199,37 @@ export const DigitalSignatureApiAxiosParamCreator = function (configuration) {
|
|
|
195
199
|
}),
|
|
196
200
|
/**
|
|
197
201
|
*
|
|
198
|
-
* @summary
|
|
202
|
+
* @summary Update a template
|
|
203
|
+
* @param {string} id
|
|
204
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
199
205
|
* @param {*} [options] Override http request option.
|
|
200
206
|
* @throws {RequiredError}
|
|
201
207
|
*/
|
|
202
|
-
|
|
203
|
-
|
|
208
|
+
update1: (id_1, signatureTemplateRequest_1, ...args_1) => __awaiter(this, [id_1, signatureTemplateRequest_1, ...args_1], void 0, function* (id, signatureTemplateRequest, options = {}) {
|
|
209
|
+
// verify required parameter 'id' is not null or undefined
|
|
210
|
+
assertParamExists('update1', 'id', id);
|
|
211
|
+
// verify required parameter 'signatureTemplateRequest' is not null or undefined
|
|
212
|
+
assertParamExists('update1', 'signatureTemplateRequest', signatureTemplateRequest);
|
|
213
|
+
const localVarPath = `/api/v1/signature-templates/{id}`
|
|
214
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
204
215
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
205
216
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
206
217
|
let baseOptions;
|
|
207
218
|
if (configuration) {
|
|
208
219
|
baseOptions = configuration.baseOptions;
|
|
209
220
|
}
|
|
210
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
221
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
211
222
|
const localVarHeaderParameter = {};
|
|
212
223
|
const localVarQueryParameter = {};
|
|
213
224
|
// authentication keycloak_auth required
|
|
214
225
|
// http bearer authentication required
|
|
215
226
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
227
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
216
228
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
217
229
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
218
230
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
219
231
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
232
|
+
localVarRequestOptions.data = serializeDataIfNeeded(signatureTemplateRequest, localVarRequestOptions, configuration);
|
|
220
233
|
return {
|
|
221
234
|
url: toPathString(localVarUrlObj),
|
|
222
235
|
options: localVarRequestOptions,
|
|
@@ -225,233 +238,242 @@ export const DigitalSignatureApiAxiosParamCreator = function (configuration) {
|
|
|
225
238
|
};
|
|
226
239
|
};
|
|
227
240
|
/**
|
|
228
|
-
*
|
|
241
|
+
* ESignTemplatesApi - functional programming interface
|
|
229
242
|
*/
|
|
230
|
-
export const
|
|
231
|
-
const localVarAxiosParamCreator =
|
|
243
|
+
export const ESignTemplatesApiFp = function (configuration) {
|
|
244
|
+
const localVarAxiosParamCreator = ESignTemplatesApiAxiosParamCreator(configuration);
|
|
232
245
|
return {
|
|
233
246
|
/**
|
|
234
247
|
*
|
|
235
|
-
* @summary
|
|
248
|
+
* @summary Delete a template
|
|
236
249
|
* @param {string} id
|
|
237
250
|
* @param {*} [options] Override http request option.
|
|
238
251
|
* @throws {RequiredError}
|
|
239
252
|
*/
|
|
240
|
-
|
|
253
|
+
_delete(id, options) {
|
|
241
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
242
255
|
var _a, _b, _c;
|
|
243
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
256
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator._delete(id, options);
|
|
244
257
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
245
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
258
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi._delete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
246
259
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
247
260
|
});
|
|
248
261
|
},
|
|
249
262
|
/**
|
|
250
263
|
*
|
|
251
|
-
* @summary
|
|
252
|
-
* @param {
|
|
264
|
+
* @summary Create a template
|
|
265
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
253
266
|
* @param {*} [options] Override http request option.
|
|
254
267
|
* @throws {RequiredError}
|
|
255
268
|
*/
|
|
256
|
-
|
|
269
|
+
create1(signatureTemplateRequest, options) {
|
|
257
270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
258
271
|
var _a, _b, _c;
|
|
259
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
272
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.create1(signatureTemplateRequest, options);
|
|
260
273
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
261
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
274
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi.create1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
262
275
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
263
276
|
});
|
|
264
277
|
},
|
|
265
278
|
/**
|
|
266
279
|
*
|
|
267
|
-
* @summary
|
|
268
|
-
* @param {
|
|
280
|
+
* @summary Get a template
|
|
281
|
+
* @param {string} id
|
|
269
282
|
* @param {*} [options] Override http request option.
|
|
270
283
|
* @throws {RequiredError}
|
|
271
284
|
*/
|
|
272
|
-
|
|
285
|
+
get1(id, options) {
|
|
273
286
|
return __awaiter(this, void 0, void 0, function* () {
|
|
274
287
|
var _a, _b, _c;
|
|
275
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
288
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.get1(id, options);
|
|
276
289
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
277
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
290
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi.get1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
278
291
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
279
292
|
});
|
|
280
293
|
},
|
|
281
294
|
/**
|
|
282
295
|
*
|
|
283
|
-
* @summary
|
|
296
|
+
* @summary Create (and send) an envelope from a template
|
|
284
297
|
* @param {string} id
|
|
298
|
+
* @param {InstantiateTemplateRequest} instantiateTemplateRequest
|
|
285
299
|
* @param {*} [options] Override http request option.
|
|
286
300
|
* @throws {RequiredError}
|
|
287
301
|
*/
|
|
288
|
-
|
|
302
|
+
instantiate(id, instantiateTemplateRequest, options) {
|
|
289
303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
290
304
|
var _a, _b, _c;
|
|
291
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
305
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.instantiate(id, instantiateTemplateRequest, options);
|
|
292
306
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
293
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
307
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi.instantiate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
294
308
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
295
309
|
});
|
|
296
310
|
},
|
|
297
311
|
/**
|
|
298
312
|
*
|
|
299
|
-
* @summary List
|
|
313
|
+
* @summary List my templates
|
|
300
314
|
* @param {*} [options] Override http request option.
|
|
301
315
|
* @throws {RequiredError}
|
|
302
316
|
*/
|
|
303
|
-
|
|
317
|
+
list(options) {
|
|
304
318
|
return __awaiter(this, void 0, void 0, function* () {
|
|
305
319
|
var _a, _b, _c;
|
|
306
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
320
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.list(options);
|
|
307
321
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
308
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
322
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi.list']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
309
323
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
310
324
|
});
|
|
311
325
|
},
|
|
312
326
|
/**
|
|
313
327
|
*
|
|
314
|
-
* @summary
|
|
328
|
+
* @summary Update a template
|
|
329
|
+
* @param {string} id
|
|
330
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
315
331
|
* @param {*} [options] Override http request option.
|
|
316
332
|
* @throws {RequiredError}
|
|
317
333
|
*/
|
|
318
|
-
|
|
334
|
+
update1(id, signatureTemplateRequest, options) {
|
|
319
335
|
return __awaiter(this, void 0, void 0, function* () {
|
|
320
336
|
var _a, _b, _c;
|
|
321
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
337
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.update1(id, signatureTemplateRequest, options);
|
|
322
338
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
323
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
339
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi.update1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
324
340
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
325
341
|
});
|
|
326
342
|
},
|
|
327
343
|
};
|
|
328
344
|
};
|
|
329
345
|
/**
|
|
330
|
-
*
|
|
346
|
+
* ESignTemplatesApi - factory interface
|
|
331
347
|
*/
|
|
332
|
-
export const
|
|
333
|
-
const localVarFp =
|
|
348
|
+
export const ESignTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
349
|
+
const localVarFp = ESignTemplatesApiFp(configuration);
|
|
334
350
|
return {
|
|
335
351
|
/**
|
|
336
352
|
*
|
|
337
|
-
* @summary
|
|
353
|
+
* @summary Delete a template
|
|
338
354
|
* @param {string} id
|
|
339
355
|
* @param {*} [options] Override http request option.
|
|
340
356
|
* @throws {RequiredError}
|
|
341
357
|
*/
|
|
342
|
-
|
|
343
|
-
return localVarFp.
|
|
358
|
+
_delete(id, options) {
|
|
359
|
+
return localVarFp._delete(id, options).then((request) => request(axios, basePath));
|
|
344
360
|
},
|
|
345
361
|
/**
|
|
346
362
|
*
|
|
347
|
-
* @summary
|
|
348
|
-
* @param {
|
|
363
|
+
* @summary Create a template
|
|
364
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
349
365
|
* @param {*} [options] Override http request option.
|
|
350
366
|
* @throws {RequiredError}
|
|
351
367
|
*/
|
|
352
|
-
|
|
353
|
-
return localVarFp.
|
|
368
|
+
create1(signatureTemplateRequest, options) {
|
|
369
|
+
return localVarFp.create1(signatureTemplateRequest, options).then((request) => request(axios, basePath));
|
|
354
370
|
},
|
|
355
371
|
/**
|
|
356
372
|
*
|
|
357
|
-
* @summary
|
|
358
|
-
* @param {
|
|
373
|
+
* @summary Get a template
|
|
374
|
+
* @param {string} id
|
|
359
375
|
* @param {*} [options] Override http request option.
|
|
360
376
|
* @throws {RequiredError}
|
|
361
377
|
*/
|
|
362
|
-
|
|
363
|
-
return localVarFp.
|
|
378
|
+
get1(id, options) {
|
|
379
|
+
return localVarFp.get1(id, options).then((request) => request(axios, basePath));
|
|
364
380
|
},
|
|
365
381
|
/**
|
|
366
382
|
*
|
|
367
|
-
* @summary
|
|
383
|
+
* @summary Create (and send) an envelope from a template
|
|
368
384
|
* @param {string} id
|
|
385
|
+
* @param {InstantiateTemplateRequest} instantiateTemplateRequest
|
|
369
386
|
* @param {*} [options] Override http request option.
|
|
370
387
|
* @throws {RequiredError}
|
|
371
388
|
*/
|
|
372
|
-
|
|
373
|
-
return localVarFp.
|
|
389
|
+
instantiate(id, instantiateTemplateRequest, options) {
|
|
390
|
+
return localVarFp.instantiate(id, instantiateTemplateRequest, options).then((request) => request(axios, basePath));
|
|
374
391
|
},
|
|
375
392
|
/**
|
|
376
393
|
*
|
|
377
|
-
* @summary List
|
|
394
|
+
* @summary List my templates
|
|
378
395
|
* @param {*} [options] Override http request option.
|
|
379
396
|
* @throws {RequiredError}
|
|
380
397
|
*/
|
|
381
|
-
|
|
382
|
-
return localVarFp.
|
|
398
|
+
list(options) {
|
|
399
|
+
return localVarFp.list(options).then((request) => request(axios, basePath));
|
|
383
400
|
},
|
|
384
401
|
/**
|
|
385
402
|
*
|
|
386
|
-
* @summary
|
|
403
|
+
* @summary Update a template
|
|
404
|
+
* @param {string} id
|
|
405
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
387
406
|
* @param {*} [options] Override http request option.
|
|
388
407
|
* @throws {RequiredError}
|
|
389
408
|
*/
|
|
390
|
-
|
|
391
|
-
return localVarFp.
|
|
409
|
+
update1(id, signatureTemplateRequest, options) {
|
|
410
|
+
return localVarFp.update1(id, signatureTemplateRequest, options).then((request) => request(axios, basePath));
|
|
392
411
|
},
|
|
393
412
|
};
|
|
394
413
|
};
|
|
395
414
|
/**
|
|
396
|
-
*
|
|
415
|
+
* ESignTemplatesApi - object-oriented interface
|
|
397
416
|
*/
|
|
398
|
-
export class
|
|
417
|
+
export class ESignTemplatesApi extends BaseAPI {
|
|
399
418
|
/**
|
|
400
419
|
*
|
|
401
|
-
* @summary
|
|
420
|
+
* @summary Delete a template
|
|
402
421
|
* @param {string} id
|
|
403
422
|
* @param {*} [options] Override http request option.
|
|
404
423
|
* @throws {RequiredError}
|
|
405
424
|
*/
|
|
406
|
-
|
|
407
|
-
return
|
|
425
|
+
_delete(id, options) {
|
|
426
|
+
return ESignTemplatesApiFp(this.configuration)._delete(id, options).then((request) => request(this.axios, this.basePath));
|
|
408
427
|
}
|
|
409
428
|
/**
|
|
410
429
|
*
|
|
411
|
-
* @summary
|
|
412
|
-
* @param {
|
|
430
|
+
* @summary Create a template
|
|
431
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
413
432
|
* @param {*} [options] Override http request option.
|
|
414
433
|
* @throws {RequiredError}
|
|
415
434
|
*/
|
|
416
|
-
|
|
417
|
-
return
|
|
435
|
+
create1(signatureTemplateRequest, options) {
|
|
436
|
+
return ESignTemplatesApiFp(this.configuration).create1(signatureTemplateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
418
437
|
}
|
|
419
438
|
/**
|
|
420
439
|
*
|
|
421
|
-
* @summary
|
|
422
|
-
* @param {
|
|
440
|
+
* @summary Get a template
|
|
441
|
+
* @param {string} id
|
|
423
442
|
* @param {*} [options] Override http request option.
|
|
424
443
|
* @throws {RequiredError}
|
|
425
444
|
*/
|
|
426
|
-
|
|
427
|
-
return
|
|
445
|
+
get1(id, options) {
|
|
446
|
+
return ESignTemplatesApiFp(this.configuration).get1(id, options).then((request) => request(this.axios, this.basePath));
|
|
428
447
|
}
|
|
429
448
|
/**
|
|
430
449
|
*
|
|
431
|
-
* @summary
|
|
450
|
+
* @summary Create (and send) an envelope from a template
|
|
432
451
|
* @param {string} id
|
|
452
|
+
* @param {InstantiateTemplateRequest} instantiateTemplateRequest
|
|
433
453
|
* @param {*} [options] Override http request option.
|
|
434
454
|
* @throws {RequiredError}
|
|
435
455
|
*/
|
|
436
|
-
|
|
437
|
-
return
|
|
456
|
+
instantiate(id, instantiateTemplateRequest, options) {
|
|
457
|
+
return ESignTemplatesApiFp(this.configuration).instantiate(id, instantiateTemplateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
438
458
|
}
|
|
439
459
|
/**
|
|
440
460
|
*
|
|
441
|
-
* @summary List
|
|
461
|
+
* @summary List my templates
|
|
442
462
|
* @param {*} [options] Override http request option.
|
|
443
463
|
* @throws {RequiredError}
|
|
444
464
|
*/
|
|
445
|
-
|
|
446
|
-
return
|
|
465
|
+
list(options) {
|
|
466
|
+
return ESignTemplatesApiFp(this.configuration).list(options).then((request) => request(this.axios, this.basePath));
|
|
447
467
|
}
|
|
448
468
|
/**
|
|
449
469
|
*
|
|
450
|
-
* @summary
|
|
470
|
+
* @summary Update a template
|
|
471
|
+
* @param {string} id
|
|
472
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
451
473
|
* @param {*} [options] Override http request option.
|
|
452
474
|
* @throws {RequiredError}
|
|
453
475
|
*/
|
|
454
|
-
|
|
455
|
-
return
|
|
476
|
+
update1(id, signatureTemplateRequest, options) {
|
|
477
|
+
return ESignTemplatesApiFp(this.configuration).update1(id, signatureTemplateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
456
478
|
}
|
|
457
479
|
}
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -17,11 +17,13 @@ export * from './api/comments-api';
|
|
|
17
17
|
export * from './api/dashboard-api';
|
|
18
18
|
export * from './api/delegated-browse-grants-admin-api';
|
|
19
19
|
export * from './api/delegated-browse-grants-end-user-api';
|
|
20
|
-
export * from './api/digital-signature-api';
|
|
21
|
-
export * from './api/digital-signature-public-api';
|
|
22
20
|
export * from './api/document-controller-api';
|
|
23
21
|
export * from './api/document-suggestion-controller-api';
|
|
24
22
|
export * from './api/document-version-controller-api';
|
|
23
|
+
export * from './api/esign-api';
|
|
24
|
+
export * from './api/esign-enterprise-api';
|
|
25
|
+
export * from './api/esign-public-api';
|
|
26
|
+
export * from './api/esign-templates-api';
|
|
25
27
|
export * from './api/favorites-api';
|
|
26
28
|
export * from './api/file-controller-api';
|
|
27
29
|
export * from './api/folder-controller-api';
|
package/dist/esm/api.js
CHANGED
|
@@ -19,11 +19,13 @@ export * from './api/comments-api';
|
|
|
19
19
|
export * from './api/dashboard-api';
|
|
20
20
|
export * from './api/delegated-browse-grants-admin-api';
|
|
21
21
|
export * from './api/delegated-browse-grants-end-user-api';
|
|
22
|
-
export * from './api/digital-signature-api';
|
|
23
|
-
export * from './api/digital-signature-public-api';
|
|
24
22
|
export * from './api/document-controller-api';
|
|
25
23
|
export * from './api/document-suggestion-controller-api';
|
|
26
24
|
export * from './api/document-version-controller-api';
|
|
25
|
+
export * from './api/esign-api';
|
|
26
|
+
export * from './api/esign-enterprise-api';
|
|
27
|
+
export * from './api/esign-public-api';
|
|
28
|
+
export * from './api/esign-templates-api';
|
|
27
29
|
export * from './api/favorites-api';
|
|
28
30
|
export * from './api/file-controller-api';
|
|
29
31
|
export * from './api/folder-controller-api';
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
export interface AiModelsResponse {
|
|
13
|
+
/**
|
|
14
|
+
* Provider the list belongs to
|
|
15
|
+
*/
|
|
16
|
+
'provider'?: AiModelsResponseProviderEnum;
|
|
17
|
+
/**
|
|
18
|
+
* Model ids, best default first
|
|
19
|
+
*/
|
|
20
|
+
'models'?: Array<string>;
|
|
21
|
+
/**
|
|
22
|
+
* LIVE or FALLBACK
|
|
23
|
+
*/
|
|
24
|
+
'source'?: AiModelsResponseSourceEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Why the provider list is unavailable, when source is FALLBACK
|
|
27
|
+
*/
|
|
28
|
+
'message'?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const AiModelsResponseProviderEnum: {
|
|
31
|
+
readonly Openai: "OPENAI";
|
|
32
|
+
readonly Anthropic: "ANTHROPIC";
|
|
33
|
+
readonly Google: "GOOGLE";
|
|
34
|
+
readonly OpenaiCompatible: "OPENAI_COMPATIBLE";
|
|
35
|
+
};
|
|
36
|
+
export type AiModelsResponseProviderEnum = typeof AiModelsResponseProviderEnum[keyof typeof AiModelsResponseProviderEnum];
|
|
37
|
+
export declare const AiModelsResponseSourceEnum: {
|
|
38
|
+
readonly Live: "LIVE";
|
|
39
|
+
readonly Fallback: "FALLBACK";
|
|
40
|
+
};
|
|
41
|
+
export type AiModelsResponseSourceEnum = typeof AiModelsResponseSourceEnum[keyof typeof AiModelsResponseSourceEnum];
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
export const AiModelsResponseProviderEnum = {
|
|
15
|
+
Openai: 'OPENAI',
|
|
16
|
+
Anthropic: 'ANTHROPIC',
|
|
17
|
+
Google: 'GOOGLE',
|
|
18
|
+
OpenaiCompatible: 'OPENAI_COMPATIBLE',
|
|
19
|
+
};
|
|
20
|
+
export const AiModelsResponseSourceEnum = {
|
|
21
|
+
Live: 'LIVE',
|
|
22
|
+
Fallback: 'FALLBACK',
|
|
23
|
+
};
|