@knowledge-stack/ksapi 1.14.1 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -0
- package/README.md +2 -2
- package/dist/apis/AuthApi.d.ts +30 -1
- package/dist/apis/AuthApi.js +39 -0
- package/dist/apis/DocumentVersionsApi.d.ts +32 -1
- package/dist/apis/DocumentVersionsApi.js +37 -0
- package/dist/apis/DocumentsApi.d.ts +34 -1
- package/dist/apis/DocumentsApi.js +59 -0
- package/dist/apis/InvitesApi.d.ts +29 -0
- package/dist/apis/InvitesApi.js +31 -0
- package/dist/apis/TenantsApi.d.ts +4 -4
- package/dist/apis/TenantsApi.js +2 -2
- package/dist/esm/apis/AuthApi.d.ts +30 -1
- package/dist/esm/apis/AuthApi.js +40 -1
- package/dist/esm/apis/DocumentVersionsApi.d.ts +32 -1
- package/dist/esm/apis/DocumentVersionsApi.js +38 -1
- package/dist/esm/apis/DocumentsApi.d.ts +34 -1
- package/dist/esm/apis/DocumentsApi.js +60 -1
- package/dist/esm/apis/InvitesApi.d.ts +29 -0
- package/dist/esm/apis/InvitesApi.js +31 -0
- package/dist/esm/apis/TenantsApi.d.ts +4 -4
- package/dist/esm/apis/TenantsApi.js +2 -2
- package/dist/esm/models/AssumeUserRequest.d.ts +53 -0
- package/dist/esm/models/AssumeUserRequest.js +48 -0
- package/dist/esm/models/AssumeUserResponse.d.ts +47 -0
- package/dist/esm/models/AssumeUserResponse.js +44 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +89 -0
- package/dist/esm/models/DocumentVersionMetadata.js +55 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +87 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +55 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +13 -0
- package/dist/esm/models/DocumentVersionResponse.js +5 -0
- package/dist/esm/models/IngestDocumentResponse.d.ts +59 -0
- package/dist/esm/models/IngestDocumentResponse.js +52 -0
- package/dist/esm/models/PipelineState.d.ts +78 -0
- package/dist/esm/models/PipelineState.js +57 -0
- package/dist/esm/models/PipelineStatus.d.ts +27 -0
- package/dist/esm/models/PipelineStatus.js +45 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AssumeUserRequest.d.ts +53 -0
- package/dist/models/AssumeUserRequest.js +56 -0
- package/dist/models/AssumeUserResponse.d.ts +47 -0
- package/dist/models/AssumeUserResponse.js +52 -0
- package/dist/models/DocumentVersionMetadata.d.ts +89 -0
- package/dist/models/DocumentVersionMetadata.js +63 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +87 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +63 -0
- package/dist/models/DocumentVersionResponse.d.ts +13 -0
- package/dist/models/DocumentVersionResponse.js +5 -0
- package/dist/models/IngestDocumentResponse.d.ts +59 -0
- package/dist/models/IngestDocumentResponse.js +60 -0
- package/dist/models/PipelineState.d.ts +78 -0
- package/dist/models/PipelineState.js +65 -0
- package/dist/models/PipelineStatus.d.ts +27 -0
- package/dist/models/PipelineStatus.js +53 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +80 -0
- package/src/apis/DocumentVersionsApi.ts +76 -0
- package/src/apis/DocumentsApi.ts +103 -0
- package/src/apis/InvitesApi.ts +60 -0
- package/src/apis/TenantsApi.ts +4 -4
- package/src/models/AssumeUserRequest.ts +92 -0
- package/src/models/AssumeUserResponse.ts +83 -0
- package/src/models/DocumentVersionMetadata.ts +143 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +141 -0
- package/src/models/DocumentVersionResponse.ts +24 -0
- package/src/models/IngestDocumentResponse.ts +101 -0
- package/src/models/PipelineState.ts +134 -0
- package/src/models/PipelineStatus.ts +55 -0
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.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
|
+
/**
|
|
13
|
+
* Response with workflow execution details.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IngestDocumentResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface IngestDocumentResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Temporal workflow ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IngestDocumentResponse
|
|
22
|
+
*/
|
|
23
|
+
workflowId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IngestDocumentResponse
|
|
28
|
+
*/
|
|
29
|
+
documentId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IngestDocumentResponse
|
|
34
|
+
*/
|
|
35
|
+
documentVersionId: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IngestDocumentResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfIngestDocumentResponse(value: object): value is IngestDocumentResponse;
|
|
41
|
+
export declare function IngestDocumentResponseFromJSON(json: any): IngestDocumentResponse;
|
|
42
|
+
export declare function IngestDocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngestDocumentResponse;
|
|
43
|
+
export declare function IngestDocumentResponseToJSON(json: any): IngestDocumentResponse;
|
|
44
|
+
export declare function IngestDocumentResponseToJSONTyped(value?: IngestDocumentResponse | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
export declare const IngestDocumentResponsePropertyValidationAttributesMap: {
|
|
46
|
+
[property: string]: {
|
|
47
|
+
maxLength?: number;
|
|
48
|
+
minLength?: number;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
maximum?: number;
|
|
51
|
+
exclusiveMaximum?: boolean;
|
|
52
|
+
minimum?: number;
|
|
53
|
+
exclusiveMinimum?: boolean;
|
|
54
|
+
multipleOf?: number;
|
|
55
|
+
maxItems?: number;
|
|
56
|
+
minItems?: number;
|
|
57
|
+
uniqueItems?: boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IngestDocumentResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfIngestDocumentResponse = instanceOfIngestDocumentResponse;
|
|
18
|
+
exports.IngestDocumentResponseFromJSON = IngestDocumentResponseFromJSON;
|
|
19
|
+
exports.IngestDocumentResponseFromJSONTyped = IngestDocumentResponseFromJSONTyped;
|
|
20
|
+
exports.IngestDocumentResponseToJSON = IngestDocumentResponseToJSON;
|
|
21
|
+
exports.IngestDocumentResponseToJSONTyped = IngestDocumentResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IngestDocumentResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIngestDocumentResponse(value) {
|
|
26
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('documentVersionId' in value) || value['documentVersionId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function IngestDocumentResponseFromJSON(json) {
|
|
35
|
+
return IngestDocumentResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function IngestDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'workflowId': json['workflow_id'],
|
|
43
|
+
'documentId': json['document_id'],
|
|
44
|
+
'documentVersionId': json['document_version_id'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function IngestDocumentResponseToJSON(json) {
|
|
48
|
+
return IngestDocumentResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function IngestDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'workflow_id': value['workflowId'],
|
|
56
|
+
'document_id': value['documentId'],
|
|
57
|
+
'document_version_id': value['documentVersionId'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.IngestDocumentResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.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 { PipelineStatus } from './PipelineStatus';
|
|
13
|
+
/**
|
|
14
|
+
* Pipeline execution state tracking.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PipelineState
|
|
17
|
+
*/
|
|
18
|
+
export interface PipelineState {
|
|
19
|
+
/**
|
|
20
|
+
* Current status of the ingestion pipeline
|
|
21
|
+
* @type {PipelineStatus}
|
|
22
|
+
* @memberof PipelineState
|
|
23
|
+
*/
|
|
24
|
+
status: PipelineStatus;
|
|
25
|
+
/**
|
|
26
|
+
* Timestamp of the last pipeline execution attempt
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof PipelineState
|
|
29
|
+
*/
|
|
30
|
+
lastRunTimestamp: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Name of the last activity that executed (e.g., 'docling_conversion')
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PipelineState
|
|
35
|
+
*/
|
|
36
|
+
lastActivity?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Error message if pipeline failed
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PipelineState
|
|
41
|
+
*/
|
|
42
|
+
error?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Temporal workflow ID for tracking the ingestion run
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PipelineState
|
|
47
|
+
*/
|
|
48
|
+
temporalWorkflowId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Number of chunks processed (for progress tracking)
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof PipelineState
|
|
53
|
+
*/
|
|
54
|
+
chunksProcessed?: number;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PipelineState interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfPipelineState(value: object): value is PipelineState;
|
|
60
|
+
export declare function PipelineStateFromJSON(json: any): PipelineState;
|
|
61
|
+
export declare function PipelineStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineState;
|
|
62
|
+
export declare function PipelineStateToJSON(json: any): PipelineState;
|
|
63
|
+
export declare function PipelineStateToJSONTyped(value?: PipelineState | null, ignoreDiscriminator?: boolean): any;
|
|
64
|
+
export declare const PipelineStatePropertyValidationAttributesMap: {
|
|
65
|
+
[property: string]: {
|
|
66
|
+
maxLength?: number;
|
|
67
|
+
minLength?: number;
|
|
68
|
+
pattern?: string;
|
|
69
|
+
maximum?: number;
|
|
70
|
+
exclusiveMaximum?: boolean;
|
|
71
|
+
minimum?: number;
|
|
72
|
+
exclusiveMinimum?: boolean;
|
|
73
|
+
multipleOf?: number;
|
|
74
|
+
maxItems?: number;
|
|
75
|
+
minItems?: number;
|
|
76
|
+
uniqueItems?: boolean;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PipelineStatePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPipelineState = instanceOfPipelineState;
|
|
18
|
+
exports.PipelineStateFromJSON = PipelineStateFromJSON;
|
|
19
|
+
exports.PipelineStateFromJSONTyped = PipelineStateFromJSONTyped;
|
|
20
|
+
exports.PipelineStateToJSON = PipelineStateToJSON;
|
|
21
|
+
exports.PipelineStateToJSONTyped = PipelineStateToJSONTyped;
|
|
22
|
+
const PipelineStatus_1 = require("./PipelineStatus");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PipelineState interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPipelineState(value) {
|
|
27
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PipelineStateFromJSON(json) {
|
|
34
|
+
return PipelineStateFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'status': (0, PipelineStatus_1.PipelineStatusFromJSON)(json['status']),
|
|
42
|
+
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
43
|
+
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
44
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
45
|
+
'temporalWorkflowId': json['temporal_workflow_id'] == null ? undefined : json['temporal_workflow_id'],
|
|
46
|
+
'chunksProcessed': json['chunks_processed'] == null ? undefined : json['chunks_processed'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function PipelineStateToJSON(json) {
|
|
50
|
+
return PipelineStateToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'status': (0, PipelineStatus_1.PipelineStatusToJSON)(value['status']),
|
|
58
|
+
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
59
|
+
'last_activity': value['lastActivity'],
|
|
60
|
+
'error': value['error'],
|
|
61
|
+
'temporal_workflow_id': value['temporalWorkflowId'],
|
|
62
|
+
'chunks_processed': value['chunksProcessed'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PipelineStatePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.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
|
+
/**
|
|
13
|
+
* Status of the ingestion pipeline workflow.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const PipelineStatus: {
|
|
17
|
+
readonly Pending: "pending";
|
|
18
|
+
readonly Processing: "processing";
|
|
19
|
+
readonly Completed: "completed";
|
|
20
|
+
readonly Failed: "failed";
|
|
21
|
+
};
|
|
22
|
+
export type PipelineStatus = typeof PipelineStatus[keyof typeof PipelineStatus];
|
|
23
|
+
export declare function instanceOfPipelineStatus(value: any): boolean;
|
|
24
|
+
export declare function PipelineStatusFromJSON(json: any): PipelineStatus;
|
|
25
|
+
export declare function PipelineStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineStatus;
|
|
26
|
+
export declare function PipelineStatusToJSON(value?: PipelineStatus | null): any;
|
|
27
|
+
export declare function PipelineStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PipelineStatus;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PipelineStatus = void 0;
|
|
17
|
+
exports.instanceOfPipelineStatus = instanceOfPipelineStatus;
|
|
18
|
+
exports.PipelineStatusFromJSON = PipelineStatusFromJSON;
|
|
19
|
+
exports.PipelineStatusFromJSONTyped = PipelineStatusFromJSONTyped;
|
|
20
|
+
exports.PipelineStatusToJSON = PipelineStatusToJSON;
|
|
21
|
+
exports.PipelineStatusToJSONTyped = PipelineStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Status of the ingestion pipeline workflow.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PipelineStatus = {
|
|
27
|
+
Pending: 'pending',
|
|
28
|
+
Processing: 'processing',
|
|
29
|
+
Completed: 'completed',
|
|
30
|
+
Failed: 'failed'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfPipelineStatus(value) {
|
|
33
|
+
for (const key in exports.PipelineStatus) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.PipelineStatus, key)) {
|
|
35
|
+
if (exports.PipelineStatus[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function PipelineStatusFromJSON(json) {
|
|
43
|
+
return PipelineStatusFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function PipelineStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function PipelineStatusToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function PipelineStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './AssumeUserRequest';
|
|
2
|
+
export * from './AssumeUserResponse';
|
|
1
3
|
export * from './ChunkLineageResponse';
|
|
2
4
|
export * from './ChunkMetadataInput';
|
|
3
5
|
export * from './ChunkMetadataOutput';
|
|
@@ -19,6 +21,8 @@ export * from './DocumentContentPathPart';
|
|
|
19
21
|
export * from './DocumentOrigin';
|
|
20
22
|
export * from './DocumentResponse';
|
|
21
23
|
export * from './DocumentType';
|
|
24
|
+
export * from './DocumentVersionMetadata';
|
|
25
|
+
export * from './DocumentVersionMetadataUpdate';
|
|
22
26
|
export * from './DocumentVersionResponse';
|
|
23
27
|
export * from './EmailSentResponse';
|
|
24
28
|
export * from './EmailVerificationRequest';
|
|
@@ -28,6 +32,7 @@ export * from './FolderResponse';
|
|
|
28
32
|
export * from './HTTPValidationError';
|
|
29
33
|
export * from './HealthCheckResponse';
|
|
30
34
|
export * from './IdpType';
|
|
35
|
+
export * from './IngestDocumentResponse';
|
|
31
36
|
export * from './InviteResponse';
|
|
32
37
|
export * from './InviteStatus';
|
|
33
38
|
export * from './InviteUserRequest';
|
|
@@ -56,6 +61,8 @@ export * from './PathOrder';
|
|
|
56
61
|
export * from './PathPartResponse';
|
|
57
62
|
export * from './PermissionCapability';
|
|
58
63
|
export * from './PermissionResponse';
|
|
64
|
+
export * from './PipelineState';
|
|
65
|
+
export * from './PipelineStatus';
|
|
59
66
|
export * from './Polygon';
|
|
60
67
|
export * from './PolygonReference';
|
|
61
68
|
export * from './RootResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AssumeUserRequest"), exports);
|
|
20
|
+
__exportStar(require("./AssumeUserResponse"), exports);
|
|
19
21
|
__exportStar(require("./ChunkLineageResponse"), exports);
|
|
20
22
|
__exportStar(require("./ChunkMetadataInput"), exports);
|
|
21
23
|
__exportStar(require("./ChunkMetadataOutput"), exports);
|
|
@@ -37,6 +39,8 @@ __exportStar(require("./DocumentContentPathPart"), exports);
|
|
|
37
39
|
__exportStar(require("./DocumentOrigin"), exports);
|
|
38
40
|
__exportStar(require("./DocumentResponse"), exports);
|
|
39
41
|
__exportStar(require("./DocumentType"), exports);
|
|
42
|
+
__exportStar(require("./DocumentVersionMetadata"), exports);
|
|
43
|
+
__exportStar(require("./DocumentVersionMetadataUpdate"), exports);
|
|
40
44
|
__exportStar(require("./DocumentVersionResponse"), exports);
|
|
41
45
|
__exportStar(require("./EmailSentResponse"), exports);
|
|
42
46
|
__exportStar(require("./EmailVerificationRequest"), exports);
|
|
@@ -46,6 +50,7 @@ __exportStar(require("./FolderResponse"), exports);
|
|
|
46
50
|
__exportStar(require("./HTTPValidationError"), exports);
|
|
47
51
|
__exportStar(require("./HealthCheckResponse"), exports);
|
|
48
52
|
__exportStar(require("./IdpType"), exports);
|
|
53
|
+
__exportStar(require("./IngestDocumentResponse"), exports);
|
|
49
54
|
__exportStar(require("./InviteResponse"), exports);
|
|
50
55
|
__exportStar(require("./InviteStatus"), exports);
|
|
51
56
|
__exportStar(require("./InviteUserRequest"), exports);
|
|
@@ -74,6 +79,8 @@ __exportStar(require("./PathOrder"), exports);
|
|
|
74
79
|
__exportStar(require("./PathPartResponse"), exports);
|
|
75
80
|
__exportStar(require("./PermissionCapability"), exports);
|
|
76
81
|
__exportStar(require("./PermissionResponse"), exports);
|
|
82
|
+
__exportStar(require("./PipelineState"), exports);
|
|
83
|
+
__exportStar(require("./PipelineStatus"), exports);
|
|
77
84
|
__exportStar(require("./Polygon"), exports);
|
|
78
85
|
__exportStar(require("./PolygonReference"), exports);
|
|
79
86
|
__exportStar(require("./RootResponse"), exports);
|
package/package.json
CHANGED
package/src/apis/AuthApi.ts
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AssumeUserRequest,
|
|
19
|
+
AssumeUserResponse,
|
|
18
20
|
CreatePasswordUserRequest,
|
|
19
21
|
EmailSentResponse,
|
|
20
22
|
EmailVerificationRequest,
|
|
@@ -26,6 +28,10 @@ import type {
|
|
|
26
28
|
UserResponse,
|
|
27
29
|
} from '../models/index';
|
|
28
30
|
import {
|
|
31
|
+
AssumeUserRequestFromJSON,
|
|
32
|
+
AssumeUserRequestToJSON,
|
|
33
|
+
AssumeUserResponseFromJSON,
|
|
34
|
+
AssumeUserResponseToJSON,
|
|
29
35
|
CreatePasswordUserRequestFromJSON,
|
|
30
36
|
CreatePasswordUserRequestToJSON,
|
|
31
37
|
EmailSentResponseFromJSON,
|
|
@@ -46,6 +52,11 @@ import {
|
|
|
46
52
|
UserResponseToJSON,
|
|
47
53
|
} from '../models/index';
|
|
48
54
|
|
|
55
|
+
export interface AssumeUserOperationRequest {
|
|
56
|
+
xAdminApiKey: string;
|
|
57
|
+
assumeUserRequest: AssumeUserRequest;
|
|
58
|
+
}
|
|
59
|
+
|
|
49
60
|
export interface CreatePasswordUserOperationRequest {
|
|
50
61
|
createPasswordUserRequest: CreatePasswordUserRequest;
|
|
51
62
|
}
|
|
@@ -97,6 +108,23 @@ export interface SendPwResetEmailRequest {
|
|
|
97
108
|
* @interface AuthApiInterface
|
|
98
109
|
*/
|
|
99
110
|
export interface AuthApiInterface {
|
|
111
|
+
/**
|
|
112
|
+
* Generate a UAT for a given user/tenant pair. Authenticated via static ADMIN_API_KEY. Intended for worker service to obtain identity credentials for user-aware API operations. Validates that the user is a member of the requested tenant before minting the token.
|
|
113
|
+
* @summary Assume User Identity Handler
|
|
114
|
+
* @param {string} xAdminApiKey
|
|
115
|
+
* @param {AssumeUserRequest} assumeUserRequest
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
* @memberof AuthApiInterface
|
|
119
|
+
*/
|
|
120
|
+
assumeUserRaw(requestParameters: AssumeUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssumeUserResponse>>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Generate a UAT for a given user/tenant pair. Authenticated via static ADMIN_API_KEY. Intended for worker service to obtain identity credentials for user-aware API operations. Validates that the user is a member of the requested tenant before minting the token.
|
|
124
|
+
* Assume User Identity Handler
|
|
125
|
+
*/
|
|
126
|
+
assumeUser(requestParameters: AssumeUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssumeUserResponse>;
|
|
127
|
+
|
|
100
128
|
/**
|
|
101
129
|
*
|
|
102
130
|
* @summary Create Password User Handler
|
|
@@ -268,6 +296,58 @@ export interface AuthApiInterface {
|
|
|
268
296
|
*/
|
|
269
297
|
export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
270
298
|
|
|
299
|
+
/**
|
|
300
|
+
* Generate a UAT for a given user/tenant pair. Authenticated via static ADMIN_API_KEY. Intended for worker service to obtain identity credentials for user-aware API operations. Validates that the user is a member of the requested tenant before minting the token.
|
|
301
|
+
* Assume User Identity Handler
|
|
302
|
+
*/
|
|
303
|
+
async assumeUserRaw(requestParameters: AssumeUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssumeUserResponse>> {
|
|
304
|
+
if (requestParameters['xAdminApiKey'] == null) {
|
|
305
|
+
throw new runtime.RequiredError(
|
|
306
|
+
'xAdminApiKey',
|
|
307
|
+
'Required parameter "xAdminApiKey" was null or undefined when calling assumeUser().'
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (requestParameters['assumeUserRequest'] == null) {
|
|
312
|
+
throw new runtime.RequiredError(
|
|
313
|
+
'assumeUserRequest',
|
|
314
|
+
'Required parameter "assumeUserRequest" was null or undefined when calling assumeUser().'
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
const queryParameters: any = {};
|
|
319
|
+
|
|
320
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
321
|
+
|
|
322
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
323
|
+
|
|
324
|
+
if (requestParameters['xAdminApiKey'] != null) {
|
|
325
|
+
headerParameters['x-admin-api-key'] = String(requestParameters['xAdminApiKey']);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
let urlPath = `/v1/auth/assume_user`;
|
|
330
|
+
|
|
331
|
+
const response = await this.request({
|
|
332
|
+
path: urlPath,
|
|
333
|
+
method: 'POST',
|
|
334
|
+
headers: headerParameters,
|
|
335
|
+
query: queryParameters,
|
|
336
|
+
body: AssumeUserRequestToJSON(requestParameters['assumeUserRequest']),
|
|
337
|
+
}, initOverrides);
|
|
338
|
+
|
|
339
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AssumeUserResponseFromJSON(jsonValue));
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Generate a UAT for a given user/tenant pair. Authenticated via static ADMIN_API_KEY. Intended for worker service to obtain identity credentials for user-aware API operations. Validates that the user is a member of the requested tenant before minting the token.
|
|
344
|
+
* Assume User Identity Handler
|
|
345
|
+
*/
|
|
346
|
+
async assumeUser(requestParameters: AssumeUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssumeUserResponse> {
|
|
347
|
+
const response = await this.assumeUserRaw(requestParameters, initOverrides);
|
|
348
|
+
return await response.value();
|
|
349
|
+
}
|
|
350
|
+
|
|
271
351
|
/**
|
|
272
352
|
* Create Password User Handler
|
|
273
353
|
*/
|
|
@@ -15,12 +15,15 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
DocumentVersionMetadataUpdate,
|
|
18
19
|
DocumentVersionResponse,
|
|
19
20
|
HTTPValidationError,
|
|
20
21
|
PaginatedResponseDocumentContentPathPart,
|
|
21
22
|
PaginatedResponseDocumentVersionResponse,
|
|
22
23
|
} from '../models/index';
|
|
23
24
|
import {
|
|
25
|
+
DocumentVersionMetadataUpdateFromJSON,
|
|
26
|
+
DocumentVersionMetadataUpdateToJSON,
|
|
24
27
|
DocumentVersionResponseFromJSON,
|
|
25
28
|
DocumentVersionResponseToJSON,
|
|
26
29
|
HTTPValidationErrorFromJSON,
|
|
@@ -61,6 +64,12 @@ export interface ListDocumentVersionsRequest {
|
|
|
61
64
|
ksUat?: string;
|
|
62
65
|
}
|
|
63
66
|
|
|
67
|
+
export interface UpdateDocumentVersionMetadataRequest {
|
|
68
|
+
versionId: string;
|
|
69
|
+
documentVersionMetadataUpdate: DocumentVersionMetadataUpdate;
|
|
70
|
+
ksUat?: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
64
73
|
/**
|
|
65
74
|
* DocumentVersionsApi - interface
|
|
66
75
|
*
|
|
@@ -158,6 +167,24 @@ export interface DocumentVersionsApiInterface {
|
|
|
158
167
|
*/
|
|
159
168
|
listDocumentVersions(requestParameters: ListDocumentVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseDocumentVersionResponse>;
|
|
160
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved.
|
|
172
|
+
* @summary Update Document Version Metadata Handler
|
|
173
|
+
* @param {string} versionId DocumentVersion ID
|
|
174
|
+
* @param {DocumentVersionMetadataUpdate} documentVersionMetadataUpdate
|
|
175
|
+
* @param {string} [ksUat]
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
* @memberof DocumentVersionsApiInterface
|
|
179
|
+
*/
|
|
180
|
+
updateDocumentVersionMetadataRaw(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentVersionResponse>>;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved.
|
|
184
|
+
* Update Document Version Metadata Handler
|
|
185
|
+
*/
|
|
186
|
+
updateDocumentVersionMetadata(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentVersionResponse>;
|
|
187
|
+
|
|
161
188
|
}
|
|
162
189
|
|
|
163
190
|
/**
|
|
@@ -382,4 +409,53 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
|
|
|
382
409
|
return await response.value();
|
|
383
410
|
}
|
|
384
411
|
|
|
412
|
+
/**
|
|
413
|
+
* Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved.
|
|
414
|
+
* Update Document Version Metadata Handler
|
|
415
|
+
*/
|
|
416
|
+
async updateDocumentVersionMetadataRaw(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentVersionResponse>> {
|
|
417
|
+
if (requestParameters['versionId'] == null) {
|
|
418
|
+
throw new runtime.RequiredError(
|
|
419
|
+
'versionId',
|
|
420
|
+
'Required parameter "versionId" was null or undefined when calling updateDocumentVersionMetadata().'
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
if (requestParameters['documentVersionMetadataUpdate'] == null) {
|
|
425
|
+
throw new runtime.RequiredError(
|
|
426
|
+
'documentVersionMetadataUpdate',
|
|
427
|
+
'Required parameter "documentVersionMetadataUpdate" was null or undefined when calling updateDocumentVersionMetadata().'
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
const queryParameters: any = {};
|
|
432
|
+
|
|
433
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
434
|
+
|
|
435
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
let urlPath = `/v1/document_versions/{version_id}/metadata`;
|
|
439
|
+
urlPath = urlPath.replace(`{${"version_id"}}`, encodeURIComponent(String(requestParameters['versionId'])));
|
|
440
|
+
|
|
441
|
+
const response = await this.request({
|
|
442
|
+
path: urlPath,
|
|
443
|
+
method: 'PATCH',
|
|
444
|
+
headers: headerParameters,
|
|
445
|
+
query: queryParameters,
|
|
446
|
+
body: DocumentVersionMetadataUpdateToJSON(requestParameters['documentVersionMetadataUpdate']),
|
|
447
|
+
}, initOverrides);
|
|
448
|
+
|
|
449
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DocumentVersionResponseFromJSON(jsonValue));
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved.
|
|
454
|
+
* Update Document Version Metadata Handler
|
|
455
|
+
*/
|
|
456
|
+
async updateDocumentVersionMetadata(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentVersionResponse> {
|
|
457
|
+
const response = await this.updateDocumentVersionMetadataRaw(requestParameters, initOverrides);
|
|
458
|
+
return await response.value();
|
|
459
|
+
}
|
|
460
|
+
|
|
385
461
|
}
|