@openfilz-sdk/typescript 1.3.20 → 1.3.21
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 +4 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +6 -2
- package/api/audit-controller-api.ts +67 -0
- package/api/document-controller-api.ts +74 -0
- package/dist/api/audit-controller-api.d.ts +29 -0
- package/dist/api/audit-controller-api.js +62 -0
- package/dist/api/document-controller-api.d.ts +33 -0
- package/dist/api/document-controller-api.js +69 -0
- package/dist/esm/api/audit-controller-api.d.ts +29 -0
- package/dist/esm/api/audit-controller-api.js +62 -0
- package/dist/esm/api/document-controller-api.d.ts +33 -0
- package/dist/esm/api/document-controller-api.js +69 -0
- package/dist/esm/models/audit-integrity-status-response.d.ts +37 -0
- package/dist/esm/models/audit-integrity-status-response.js +14 -0
- package/dist/esm/models/document-integrity-record.d.ts +23 -0
- package/dist/esm/models/document-integrity-record.js +14 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/audit-integrity-status-response.d.ts +37 -0
- package/dist/models/audit-integrity-status-response.js +15 -0
- package/dist/models/document-integrity-record.d.ts +23 -0
- package/dist/models/document-integrity-record.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/AuditControllerApi.md +45 -0
- package/docs/AuditIntegrityStatusResponse.md +29 -0
- package/docs/DocumentControllerApi.md +52 -0
- package/docs/DocumentIntegrityRecord.md +33 -0
- package/models/audit-integrity-status-response.ts +45 -0
- package/models/document-integrity-record.ts +29 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# AuditIntegrityStatusResponse
|
|
2
|
+
|
|
3
|
+
Last known result of the scheduled audit chain verification on this instance
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**chainBroken** | **boolean** | true when the last scheduled pass reported a broken chain | [optional] [default to undefined]
|
|
10
|
+
**verified** | **boolean** | false until the first scheduled verification has completed on this instance, or when the last one could not run. Not verified is not the same as valid. | [optional] [default to undefined]
|
|
11
|
+
**lastResult** | [**AuditVerificationResult**](AuditVerificationResult.md) | Verdict of the last completed scheduled verification, if any | [optional] [default to undefined]
|
|
12
|
+
**lastFailureMessage** | **string** | Why the last scheduled verification could not run, if it failed | [optional] [default to undefined]
|
|
13
|
+
**lastFailureAt** | **string** | When the last scheduled verification failed to run, if it did | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { AuditIntegrityStatusResponse } from '@openfilz-sdk/typescript';
|
|
19
|
+
|
|
20
|
+
const instance: AuditIntegrityStatusResponse = {
|
|
21
|
+
chainBroken,
|
|
22
|
+
verified,
|
|
23
|
+
lastResult,
|
|
24
|
+
lastFailureMessage,
|
|
25
|
+
lastFailureAt,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost:8081*
|
|
|
11
11
|
|[**downloadMultipleDocumentsAsZip**](#downloadmultipledocumentsaszip) | **POST** /api/v1/documents/download-multiple | Download multiple documents as ZIP|
|
|
12
12
|
|[**getDocumentAncestors**](#getdocumentancestors) | **GET** /api/v1/documents/{documentId}/ancestors | Get document ancestors|
|
|
13
13
|
|[**getDocumentInfo**](#getdocumentinfo) | **GET** /api/v1/documents/{documentId}/info | Get information of a document|
|
|
14
|
+
|[**getDocumentIntegrity**](#getdocumentintegrity) | **GET** /api/v1/documents/{documentId}/integrity | Get a document\'s integrity ledger|
|
|
14
15
|
|[**getDocumentMetadata**](#getdocumentmetadata) | **POST** /api/v1/documents/{documentId}/search/metadata | Search metadata of a document|
|
|
15
16
|
|[**getDocumentPosition**](#getdocumentposition) | **GET** /api/v1/documents/{documentId}/position | Get document position in folder|
|
|
16
17
|
|[**replaceDocumentContent**](#replacedocumentcontent) | **PUT** /api/v1/documents/{documentId}/replace-content | Replace document content|
|
|
@@ -384,6 +385,57 @@ const { status, data } = await apiInstance.getDocumentInfo(
|
|
|
384
385
|
- **Accept**: */*
|
|
385
386
|
|
|
386
387
|
|
|
388
|
+
### HTTP response details
|
|
389
|
+
| Status code | Description | Response headers |
|
|
390
|
+
|-------------|-------------|------------------|
|
|
391
|
+
|**200** | OK | - |
|
|
392
|
+
|
|
393
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
394
|
+
|
|
395
|
+
# **getDocumentIntegrity**
|
|
396
|
+
> Array<DocumentIntegrityRecord> getDocumentIntegrity()
|
|
397
|
+
|
|
398
|
+
Append-only history of what this document\'s content hashed to, newest first. Unlike the sha256 in metadata, these entries cannot be modified or deleted — a database trigger refuses UPDATE and DELETE on the table. Empty for documents uploaded before the ledger existed, or when openfilz.calculate-checksum is off.
|
|
399
|
+
|
|
400
|
+
### Example
|
|
401
|
+
|
|
402
|
+
```typescript
|
|
403
|
+
import {
|
|
404
|
+
DocumentControllerApi,
|
|
405
|
+
Configuration
|
|
406
|
+
} from '@openfilz-sdk/typescript';
|
|
407
|
+
|
|
408
|
+
const configuration = new Configuration();
|
|
409
|
+
const apiInstance = new DocumentControllerApi(configuration);
|
|
410
|
+
|
|
411
|
+
let documentId: string; // (default to undefined)
|
|
412
|
+
|
|
413
|
+
const { status, data } = await apiInstance.getDocumentIntegrity(
|
|
414
|
+
documentId
|
|
415
|
+
);
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
### Parameters
|
|
419
|
+
|
|
420
|
+
|Name | Type | Description | Notes|
|
|
421
|
+
|------------- | ------------- | ------------- | -------------|
|
|
422
|
+
| **documentId** | [**string**] | | defaults to undefined|
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
### Return type
|
|
426
|
+
|
|
427
|
+
**Array<DocumentIntegrityRecord>**
|
|
428
|
+
|
|
429
|
+
### Authorization
|
|
430
|
+
|
|
431
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
432
|
+
|
|
433
|
+
### HTTP request headers
|
|
434
|
+
|
|
435
|
+
- **Content-Type**: Not defined
|
|
436
|
+
- **Accept**: */*
|
|
437
|
+
|
|
438
|
+
|
|
387
439
|
### HTTP response details
|
|
388
440
|
| Status code | Description | Response headers |
|
|
389
441
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# DocumentIntegrityRecord
|
|
2
|
+
|
|
3
|
+
One entry of a document\'s append-only integrity ledger
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**documentId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**storagePath** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**versionId** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**algorithm** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**hash** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**recordedAt** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**recordedBy** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { DocumentIntegrityRecord } from '@openfilz-sdk/typescript';
|
|
21
|
+
|
|
22
|
+
const instance: DocumentIntegrityRecord = {
|
|
23
|
+
documentId,
|
|
24
|
+
storagePath,
|
|
25
|
+
versionId,
|
|
26
|
+
algorithm,
|
|
27
|
+
hash,
|
|
28
|
+
recordedAt,
|
|
29
|
+
recordedBy,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { AuditVerificationResult } from './audit-verification-result';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Last known result of the scheduled audit chain verification on this instance
|
|
22
|
+
*/
|
|
23
|
+
export interface AuditIntegrityStatusResponse {
|
|
24
|
+
/**
|
|
25
|
+
* true when the last scheduled pass reported a broken chain
|
|
26
|
+
*/
|
|
27
|
+
'chainBroken'?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* false until the first scheduled verification has completed on this instance, or when the last one could not run. Not verified is not the same as valid.
|
|
30
|
+
*/
|
|
31
|
+
'verified'?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Verdict of the last completed scheduled verification, if any
|
|
34
|
+
*/
|
|
35
|
+
'lastResult'?: AuditVerificationResult;
|
|
36
|
+
/**
|
|
37
|
+
* Why the last scheduled verification could not run, if it failed
|
|
38
|
+
*/
|
|
39
|
+
'lastFailureMessage'?: string;
|
|
40
|
+
/**
|
|
41
|
+
* When the last scheduled verification failed to run, if it did
|
|
42
|
+
*/
|
|
43
|
+
'lastFailureAt'?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* One entry of a document\'s append-only integrity ledger
|
|
19
|
+
*/
|
|
20
|
+
export interface DocumentIntegrityRecord {
|
|
21
|
+
'documentId'?: string;
|
|
22
|
+
'storagePath'?: string;
|
|
23
|
+
'versionId'?: string;
|
|
24
|
+
'algorithm'?: string;
|
|
25
|
+
'hash'?: string;
|
|
26
|
+
'recordedAt'?: string;
|
|
27
|
+
'recordedBy'?: string;
|
|
28
|
+
}
|
|
29
|
+
|
package/models/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './ai-preferences-view';
|
|
|
7
7
|
export * from './ai-settings-response';
|
|
8
8
|
export * from './ancestor-info';
|
|
9
9
|
export * from './apply-signature-request';
|
|
10
|
+
export * from './audit-integrity-status-response';
|
|
10
11
|
export * from './audit-log';
|
|
11
12
|
export * from './audit-log-details';
|
|
12
13
|
export * from './audit-log-details-one-of';
|
|
@@ -35,6 +36,7 @@ export * from './delete-metadata-request';
|
|
|
35
36
|
export * from './delete-request';
|
|
36
37
|
export * from './document-info';
|
|
37
38
|
export * from './document-insight-view';
|
|
39
|
+
export * from './document-integrity-record';
|
|
38
40
|
export * from './document-position';
|
|
39
41
|
export * from './document-version-info';
|
|
40
42
|
export * from './element-info';
|