@knowledge-stack/ksapi 1.80.1 → 1.82.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 +6 -0
- package/README.md +8 -2
- package/dist/apis/UsersApi.d.ts +130 -1
- package/dist/apis/UsersApi.js +130 -0
- package/dist/apis/WorkflowDefinitionsApi.d.ts +4 -1
- package/dist/apis/WorkflowDefinitionsApi.js +2 -0
- package/dist/esm/apis/UsersApi.d.ts +130 -1
- package/dist/esm/apis/UsersApi.js +131 -1
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +4 -1
- package/dist/esm/apis/WorkflowDefinitionsApi.js +2 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +8 -1
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +1 -4
- package/dist/esm/models/InstructionSnapshot.d.ts +71 -0
- package/dist/esm/models/InstructionSnapshot.js +57 -0
- package/dist/esm/models/InvokeWorkflowRequest.d.ts +6 -0
- package/dist/esm/models/InvokeWorkflowRequest.js +6 -0
- package/dist/esm/models/OnboardingCompanyRequest.d.ts +53 -0
- package/dist/esm/models/OnboardingCompanyRequest.js +51 -0
- package/dist/esm/models/OnboardingProfileRequest.d.ts +59 -0
- package/dist/esm/models/OnboardingProfileRequest.js +50 -0
- package/dist/esm/models/TenantSettingsResponse.d.ts +6 -0
- package/dist/esm/models/TenantSettingsResponse.js +2 -0
- package/dist/esm/models/TenantSettingsUpdate.d.ts +6 -0
- package/dist/esm/models/TenantSettingsUpdate.js +10 -1
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +6 -1
- package/dist/esm/models/UserResponse.d.ts +12 -0
- package/dist/esm/models/UserResponse.js +4 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +17 -0
- package/dist/esm/models/WorkflowRunResponse.js +8 -0
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +3 -2
- package/dist/esm/models/WorkflowRunSnapshot.js +3 -2
- package/dist/esm/models/WorkflowRunnerType.d.ts +1 -0
- package/dist/esm/models/WorkflowRunnerType.js +2 -1
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +8 -1
- package/dist/models/CreateWorkflowDefinitionRequest.js +1 -4
- package/dist/models/InstructionSnapshot.d.ts +71 -0
- package/dist/models/InstructionSnapshot.js +65 -0
- package/dist/models/InvokeWorkflowRequest.d.ts +6 -0
- package/dist/models/InvokeWorkflowRequest.js +6 -0
- package/dist/models/OnboardingCompanyRequest.d.ts +53 -0
- package/dist/models/OnboardingCompanyRequest.js +59 -0
- package/dist/models/OnboardingProfileRequest.d.ts +59 -0
- package/dist/models/OnboardingProfileRequest.js +58 -0
- package/dist/models/TenantSettingsResponse.d.ts +6 -0
- package/dist/models/TenantSettingsResponse.js +2 -0
- package/dist/models/TenantSettingsUpdate.d.ts +6 -0
- package/dist/models/TenantSettingsUpdate.js +10 -1
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +6 -1
- package/dist/models/UserResponse.d.ts +12 -0
- package/dist/models/UserResponse.js +4 -0
- package/dist/models/WorkflowRunResponse.d.ts +17 -0
- package/dist/models/WorkflowRunResponse.js +8 -0
- package/dist/models/WorkflowRunSnapshot.d.ts +3 -2
- package/dist/models/WorkflowRunSnapshot.js +3 -2
- package/dist/models/WorkflowRunnerType.d.ts +1 -0
- package/dist/models/WorkflowRunnerType.js +2 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/CreateWorkflowDefinitionRequest.md +1 -1
- package/docs/InstructionSnapshot.md +41 -0
- package/docs/InvokeWorkflowRequest.md +2 -0
- package/docs/OnboardingCompanyRequest.md +37 -0
- package/docs/OnboardingProfileRequest.md +39 -0
- package/docs/TenantSettingsResponse.md +2 -0
- package/docs/TenantSettingsUpdate.md +2 -0
- package/docs/UpdateWorkflowDefinitionRequest.md +1 -1
- package/docs/UserResponse.md +4 -0
- package/docs/UsersApi.md +222 -0
- package/docs/WorkflowDefinitionsApi.md +2 -0
- package/docs/WorkflowRunResponse.md +5 -1
- package/docs/WorkflowRunSnapshot.md +1 -1
- package/package.json +1 -1
- package/src/apis/UsersApi.ts +254 -0
- package/src/apis/WorkflowDefinitionsApi.ts +4 -1
- package/src/models/CreateWorkflowDefinitionRequest.ts +9 -4
- package/src/models/InstructionSnapshot.ts +125 -0
- package/src/models/InvokeWorkflowRequest.ts +12 -0
- package/src/models/OnboardingCompanyRequest.ts +96 -0
- package/src/models/OnboardingProfileRequest.ts +101 -0
- package/src/models/TenantSettingsResponse.ts +8 -0
- package/src/models/TenantSettingsUpdate.ts +14 -0
- package/src/models/UpdateWorkflowDefinitionRequest.ts +6 -1
- package/src/models/UserResponse.ts +16 -0
- package/src/models/WorkflowRunResponse.ts +23 -0
- package/src/models/WorkflowRunSnapshot.ts +11 -4
- package/src/models/WorkflowRunnerType.ts +2 -1
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PartType } from './PartType';
|
|
17
|
+
import {
|
|
18
|
+
PartTypeFromJSON,
|
|
19
|
+
PartTypeFromJSONTyped,
|
|
20
|
+
PartTypeToJSON,
|
|
21
|
+
PartTypeToJSONTyped,
|
|
22
|
+
} from './PartType';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Snapshot of one instruction document, pinned at trigger time.
|
|
26
|
+
*
|
|
27
|
+
* The instruction file is the workflow's **contract**: the agent reads
|
|
28
|
+
* this exact ``document_version_id`` for the duration of the run, even
|
|
29
|
+
* if the document is edited mid-flight or after the run completes.
|
|
30
|
+
* Reproducibility and audit replay depend on this pinning.
|
|
31
|
+
* @export
|
|
32
|
+
* @interface InstructionSnapshot
|
|
33
|
+
*/
|
|
34
|
+
export interface InstructionSnapshot {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof InstructionSnapshot
|
|
39
|
+
*/
|
|
40
|
+
pathPartId: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof InstructionSnapshot
|
|
45
|
+
*/
|
|
46
|
+
materializedPath: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {PartType}
|
|
50
|
+
* @memberof InstructionSnapshot
|
|
51
|
+
*/
|
|
52
|
+
partType: PartType;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof InstructionSnapshot
|
|
57
|
+
*/
|
|
58
|
+
documentVersionId: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
export const InstructionSnapshotPropertyValidationAttributesMap: {
|
|
63
|
+
[property: string]: {
|
|
64
|
+
maxLength?: number,
|
|
65
|
+
minLength?: number,
|
|
66
|
+
pattern?: string,
|
|
67
|
+
maximum?: number,
|
|
68
|
+
exclusiveMaximum?: boolean,
|
|
69
|
+
minimum?: number,
|
|
70
|
+
exclusiveMinimum?: boolean,
|
|
71
|
+
multipleOf?: number,
|
|
72
|
+
maxItems?: number,
|
|
73
|
+
minItems?: number,
|
|
74
|
+
uniqueItems?: boolean
|
|
75
|
+
}
|
|
76
|
+
} = {
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the InstructionSnapshot interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfInstructionSnapshot(value: object): value is InstructionSnapshot {
|
|
84
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
85
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
86
|
+
if (!('partType' in value) || value['partType'] === undefined) return false;
|
|
87
|
+
if (!('documentVersionId' in value) || value['documentVersionId'] === undefined) return false;
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function InstructionSnapshotFromJSON(json: any): InstructionSnapshot {
|
|
92
|
+
return InstructionSnapshotFromJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function InstructionSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstructionSnapshot {
|
|
96
|
+
if (json == null) {
|
|
97
|
+
return json;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'pathPartId': json['path_part_id'],
|
|
102
|
+
'materializedPath': json['materialized_path'],
|
|
103
|
+
'partType': PartTypeFromJSON(json['part_type']),
|
|
104
|
+
'documentVersionId': json['document_version_id'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function InstructionSnapshotToJSON(json: any): InstructionSnapshot {
|
|
109
|
+
return InstructionSnapshotToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function InstructionSnapshotToJSONTyped(value?: InstructionSnapshot | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'path_part_id': value['pathPartId'],
|
|
120
|
+
'materialized_path': value['materializedPath'],
|
|
121
|
+
'part_type': PartTypeToJSON(value['partType']),
|
|
122
|
+
'document_version_id': value['documentVersionId'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
@@ -25,6 +25,12 @@ export interface InvokeWorkflowRequest {
|
|
|
25
25
|
* @memberof InvokeWorkflowRequest
|
|
26
26
|
*/
|
|
27
27
|
idempotencyKey?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Path part IDs of input documents to pin to this run. Each path_part must be a DOCUMENT readable by the caller. Active document_version_id is captured at trigger time.
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof InvokeWorkflowRequest
|
|
32
|
+
*/
|
|
33
|
+
inputPathPartIds?: Array<string>;
|
|
28
34
|
}
|
|
29
35
|
export const InvokeWorkflowRequestPropertyValidationAttributesMap: {
|
|
30
36
|
[property: string]: {
|
|
@@ -44,6 +50,10 @@ export const InvokeWorkflowRequestPropertyValidationAttributesMap: {
|
|
|
44
50
|
idempotencyKey: {
|
|
45
51
|
maxLength: 255,
|
|
46
52
|
},
|
|
53
|
+
inputPathPartIds: {
|
|
54
|
+
maxItems: 50,
|
|
55
|
+
uniqueItems: false,
|
|
56
|
+
},
|
|
47
57
|
}
|
|
48
58
|
|
|
49
59
|
|
|
@@ -65,6 +75,7 @@ export function InvokeWorkflowRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
65
75
|
return {
|
|
66
76
|
|
|
67
77
|
'idempotencyKey': json['idempotency_key'] == null ? undefined : json['idempotency_key'],
|
|
78
|
+
'inputPathPartIds': json['input_path_part_ids'] == null ? undefined : json['input_path_part_ids'],
|
|
68
79
|
};
|
|
69
80
|
}
|
|
70
81
|
|
|
@@ -80,6 +91,7 @@ export function InvokeWorkflowRequestToJSONTyped(value?: InvokeWorkflowRequest |
|
|
|
80
91
|
return {
|
|
81
92
|
|
|
82
93
|
'idempotency_key': value['idempotencyKey'],
|
|
94
|
+
'input_path_part_ids': value['inputPathPartIds'],
|
|
83
95
|
};
|
|
84
96
|
}
|
|
85
97
|
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Step 1 of onboarding — tenant-wide company info. OWNER/ADMIN only.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OnboardingCompanyRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface OnboardingCompanyRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Brief company description (≤5000 chars)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OnboardingCompanyRequest
|
|
26
|
+
*/
|
|
27
|
+
description?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Industry / company type (free text)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OnboardingCompanyRequest
|
|
32
|
+
*/
|
|
33
|
+
industry?: string | null;
|
|
34
|
+
}
|
|
35
|
+
export const OnboardingCompanyRequestPropertyValidationAttributesMap: {
|
|
36
|
+
[property: string]: {
|
|
37
|
+
maxLength?: number,
|
|
38
|
+
minLength?: number,
|
|
39
|
+
pattern?: string,
|
|
40
|
+
maximum?: number,
|
|
41
|
+
exclusiveMaximum?: boolean,
|
|
42
|
+
minimum?: number,
|
|
43
|
+
exclusiveMinimum?: boolean,
|
|
44
|
+
multipleOf?: number,
|
|
45
|
+
maxItems?: number,
|
|
46
|
+
minItems?: number,
|
|
47
|
+
uniqueItems?: boolean
|
|
48
|
+
}
|
|
49
|
+
} = {
|
|
50
|
+
description: {
|
|
51
|
+
maxLength: 5000,
|
|
52
|
+
},
|
|
53
|
+
industry: {
|
|
54
|
+
maxLength: 120,
|
|
55
|
+
},
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the OnboardingCompanyRequest interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfOnboardingCompanyRequest(value: object): value is OnboardingCompanyRequest {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function OnboardingCompanyRequestFromJSON(json: any): OnboardingCompanyRequest {
|
|
67
|
+
return OnboardingCompanyRequestFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function OnboardingCompanyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OnboardingCompanyRequest {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
77
|
+
'industry': json['industry'] == null ? undefined : json['industry'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function OnboardingCompanyRequestToJSON(json: any): OnboardingCompanyRequest {
|
|
82
|
+
return OnboardingCompanyRequestToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function OnboardingCompanyRequestToJSONTyped(value?: OnboardingCompanyRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'description': value['description'],
|
|
93
|
+
'industry': value['industry'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Step 2 of onboarding — per-user info for the current tenant.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OnboardingProfileRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface OnboardingProfileRequest {
|
|
22
|
+
/**
|
|
23
|
+
* User's first name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OnboardingProfileRequest
|
|
26
|
+
*/
|
|
27
|
+
firstName?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* User's last name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OnboardingProfileRequest
|
|
32
|
+
*/
|
|
33
|
+
lastName?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* What the user does at this tenant
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof OnboardingProfileRequest
|
|
38
|
+
*/
|
|
39
|
+
jobTitle?: string | null;
|
|
40
|
+
}
|
|
41
|
+
export const OnboardingProfileRequestPropertyValidationAttributesMap: {
|
|
42
|
+
[property: string]: {
|
|
43
|
+
maxLength?: number,
|
|
44
|
+
minLength?: number,
|
|
45
|
+
pattern?: string,
|
|
46
|
+
maximum?: number,
|
|
47
|
+
exclusiveMaximum?: boolean,
|
|
48
|
+
minimum?: number,
|
|
49
|
+
exclusiveMinimum?: boolean,
|
|
50
|
+
multipleOf?: number,
|
|
51
|
+
maxItems?: number,
|
|
52
|
+
minItems?: number,
|
|
53
|
+
uniqueItems?: boolean
|
|
54
|
+
}
|
|
55
|
+
} = {
|
|
56
|
+
jobTitle: {
|
|
57
|
+
maxLength: 120,
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the OnboardingProfileRequest interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfOnboardingProfileRequest(value: object): value is OnboardingProfileRequest {
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function OnboardingProfileRequestFromJSON(json: any): OnboardingProfileRequest {
|
|
70
|
+
return OnboardingProfileRequestFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function OnboardingProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OnboardingProfileRequest {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
80
|
+
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
81
|
+
'jobTitle': json['job_title'] == null ? undefined : json['job_title'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function OnboardingProfileRequestToJSON(json: any): OnboardingProfileRequest {
|
|
86
|
+
return OnboardingProfileRequestToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function OnboardingProfileRequestToJSONTyped(value?: OnboardingProfileRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'first_name': value['firstName'],
|
|
97
|
+
'last_name': value['lastName'],
|
|
98
|
+
'job_title': value['jobTitle'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -46,6 +46,12 @@ export interface TenantSettingsResponse {
|
|
|
46
46
|
* @memberof TenantSettingsResponse
|
|
47
47
|
*/
|
|
48
48
|
description: string;
|
|
49
|
+
/**
|
|
50
|
+
* Industry / company type captured during onboarding
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TenantSettingsResponse
|
|
53
|
+
*/
|
|
54
|
+
industry?: string | null;
|
|
49
55
|
/**
|
|
50
56
|
* IANA timezone (e.g. 'America/New_York')
|
|
51
57
|
* @type {string}
|
|
@@ -102,6 +108,7 @@ export function TenantSettingsResponseFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
102
108
|
|
|
103
109
|
'language': SupportedLanguageFromJSON(json['language']),
|
|
104
110
|
'description': json['description'],
|
|
111
|
+
'industry': json['industry'] == null ? undefined : json['industry'],
|
|
105
112
|
'timezone': json['timezone'],
|
|
106
113
|
'inviteLink': InviteLinkSettingsResponseFromJSON(json['invite_link']),
|
|
107
114
|
};
|
|
@@ -120,6 +127,7 @@ export function TenantSettingsResponseToJSONTyped(value?: TenantSettingsResponse
|
|
|
120
127
|
|
|
121
128
|
'language': SupportedLanguageToJSON(value['language']),
|
|
122
129
|
'description': value['description'],
|
|
130
|
+
'industry': value['industry'],
|
|
123
131
|
'timezone': value['timezone'],
|
|
124
132
|
'invite_link': InviteLinkSettingsResponseToJSON(value['inviteLink']),
|
|
125
133
|
};
|
|
@@ -46,6 +46,12 @@ export interface TenantSettingsUpdate {
|
|
|
46
46
|
* @memberof TenantSettingsUpdate
|
|
47
47
|
*/
|
|
48
48
|
description?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Industry / company type captured during onboarding
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TenantSettingsUpdate
|
|
53
|
+
*/
|
|
54
|
+
industry?: string | null;
|
|
49
55
|
/**
|
|
50
56
|
* IANA timezone (e.g. 'America/New_York')
|
|
51
57
|
* @type {string}
|
|
@@ -94,6 +100,12 @@ export const TenantSettingsUpdatePropertyValidationAttributesMap: {
|
|
|
94
100
|
uniqueItems?: boolean
|
|
95
101
|
}
|
|
96
102
|
} = {
|
|
103
|
+
description: {
|
|
104
|
+
maxLength: 5000,
|
|
105
|
+
},
|
|
106
|
+
industry: {
|
|
107
|
+
maxLength: 120,
|
|
108
|
+
},
|
|
97
109
|
}
|
|
98
110
|
|
|
99
111
|
|
|
@@ -116,6 +128,7 @@ export function TenantSettingsUpdateFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
116
128
|
|
|
117
129
|
'language': json['language'] == null ? undefined : SupportedLanguageFromJSON(json['language']),
|
|
118
130
|
'description': json['description'] == null ? undefined : json['description'],
|
|
131
|
+
'industry': json['industry'] == null ? undefined : json['industry'],
|
|
119
132
|
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
120
133
|
'brandName': json['brand_name'] == null ? undefined : json['brand_name'],
|
|
121
134
|
'brandColor': json['brand_color'] == null ? undefined : json['brand_color'],
|
|
@@ -137,6 +150,7 @@ export function TenantSettingsUpdateToJSONTyped(value?: TenantSettingsUpdate | n
|
|
|
137
150
|
|
|
138
151
|
'language': SupportedLanguageToJSON(value['language']),
|
|
139
152
|
'description': value['description'],
|
|
153
|
+
'industry': value['industry'],
|
|
140
154
|
'timezone': value['timezone'],
|
|
141
155
|
'brand_name': value['brandName'],
|
|
142
156
|
'brand_color': value['brandColor'],
|
|
@@ -29,7 +29,12 @@ import {
|
|
|
29
29
|
} from './WorkflowRunnerType';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Full replacement (PUT semantics).
|
|
32
|
+
* Full replacement (PUT semantics).
|
|
33
|
+
*
|
|
34
|
+
* ``instruction_path_part_ids``:
|
|
35
|
+
*
|
|
36
|
+
* - ``KS_INTERNAL``: must remain ``len == 1`` (the auto-provisioned doc).
|
|
37
|
+
* - ``SELF_HOSTED``: ``len ≥ 1``; callers may swap or add documents.
|
|
33
38
|
* @export
|
|
34
39
|
* @interface UpdateWorkflowDefinitionRequest
|
|
35
40
|
*/
|
|
@@ -82,6 +82,18 @@ export interface UserResponse {
|
|
|
82
82
|
* @memberof UserResponse
|
|
83
83
|
*/
|
|
84
84
|
defaultTenantId: string;
|
|
85
|
+
/**
|
|
86
|
+
* User's job title at the current tenant (per-membership)
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof UserResponse
|
|
89
|
+
*/
|
|
90
|
+
jobTitle?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* When the user finished onboarding for the current tenant. NULL = wizard should be shown.
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof UserResponse
|
|
95
|
+
*/
|
|
96
|
+
onboardingCompletedAt?: Date | null;
|
|
85
97
|
}
|
|
86
98
|
|
|
87
99
|
|
|
@@ -136,6 +148,8 @@ export function UserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
136
148
|
'currentTenantId': json['current_tenant_id'],
|
|
137
149
|
'currentTenantRole': TenantUserRoleFromJSON(json['current_tenant_role']),
|
|
138
150
|
'defaultTenantId': json['default_tenant_id'],
|
|
151
|
+
'jobTitle': json['job_title'] == null ? undefined : json['job_title'],
|
|
152
|
+
'onboardingCompletedAt': json['onboarding_completed_at'] == null ? undefined : (new Date(json['onboarding_completed_at'])),
|
|
139
153
|
};
|
|
140
154
|
}
|
|
141
155
|
|
|
@@ -158,6 +172,8 @@ export function UserResponseToJSONTyped(value?: UserResponse | null, ignoreDiscr
|
|
|
158
172
|
'current_tenant_id': value['currentTenantId'],
|
|
159
173
|
'current_tenant_role': TenantUserRoleToJSON(value['currentTenantRole']),
|
|
160
174
|
'default_tenant_id': value['defaultTenantId'],
|
|
175
|
+
'job_title': value['jobTitle'],
|
|
176
|
+
'onboarding_completed_at': value['onboardingCompletedAt'] == null ? value['onboardingCompletedAt'] : value['onboardingCompletedAt'].toISOString(),
|
|
161
177
|
};
|
|
162
178
|
}
|
|
163
179
|
|
|
@@ -37,6 +37,11 @@ import {
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Workflow run response.
|
|
40
|
+
*
|
|
41
|
+
* Note: ``run_token_jti`` is intentionally NOT exposed. It's an
|
|
42
|
+
* internal token identifier persisted on the run row for callback
|
|
43
|
+
* auth — clients should treat run dispatch state as observable via
|
|
44
|
+
* ``status`` (RUNNING => dispatched), not via JTI presence.
|
|
40
45
|
* @export
|
|
41
46
|
* @interface WorkflowRunResponse
|
|
42
47
|
*/
|
|
@@ -95,6 +100,18 @@ export interface WorkflowRunResponse {
|
|
|
95
100
|
* @memberof WorkflowRunResponse
|
|
96
101
|
*/
|
|
97
102
|
error: string | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {Array<string>}
|
|
106
|
+
* @memberof WorkflowRunResponse
|
|
107
|
+
*/
|
|
108
|
+
inputPathPartIds: Array<string>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {Array<string>}
|
|
112
|
+
* @memberof WorkflowRunResponse
|
|
113
|
+
*/
|
|
114
|
+
inputVersionIds: Array<string>;
|
|
98
115
|
/**
|
|
99
116
|
*
|
|
100
117
|
* @type {Date}
|
|
@@ -141,6 +158,8 @@ export function instanceOfWorkflowRunResponse(value: object): value is WorkflowR
|
|
|
141
158
|
if (!('completedAt' in value) || value['completedAt'] === undefined) return false;
|
|
142
159
|
if (!('runSnapshot' in value) || value['runSnapshot'] === undefined) return false;
|
|
143
160
|
if (!('error' in value) || value['error'] === undefined) return false;
|
|
161
|
+
if (!('inputPathPartIds' in value) || value['inputPathPartIds'] === undefined) return false;
|
|
162
|
+
if (!('inputVersionIds' in value) || value['inputVersionIds'] === undefined) return false;
|
|
144
163
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
145
164
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
146
165
|
return true;
|
|
@@ -165,6 +184,8 @@ export function WorkflowRunResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
165
184
|
'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
|
|
166
185
|
'runSnapshot': WorkflowRunSnapshotFromJSON(json['run_snapshot']),
|
|
167
186
|
'error': json['error'],
|
|
187
|
+
'inputPathPartIds': json['input_path_part_ids'],
|
|
188
|
+
'inputVersionIds': json['input_version_ids'],
|
|
168
189
|
'createdAt': (new Date(json['created_at'])),
|
|
169
190
|
'updatedAt': (new Date(json['updated_at'])),
|
|
170
191
|
};
|
|
@@ -190,6 +211,8 @@ export function WorkflowRunResponseToJSONTyped(value?: WorkflowRunResponse | nul
|
|
|
190
211
|
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
191
212
|
'run_snapshot': WorkflowRunSnapshotToJSON(value['runSnapshot']),
|
|
192
213
|
'error': value['error'],
|
|
214
|
+
'input_path_part_ids': value['inputPathPartIds'],
|
|
215
|
+
'input_version_ids': value['inputVersionIds'],
|
|
193
216
|
'created_at': value['createdAt'].toISOString(),
|
|
194
217
|
'updated_at': value['updatedAt'].toISOString(),
|
|
195
218
|
};
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
ABCDPathSnapshotToJSON,
|
|
21
21
|
ABCDPathSnapshotToJSONTyped,
|
|
22
22
|
} from './ABCDPathSnapshot';
|
|
23
|
+
import type { InstructionSnapshot } from './InstructionSnapshot';
|
|
24
|
+
import {
|
|
25
|
+
InstructionSnapshotFromJSON,
|
|
26
|
+
InstructionSnapshotFromJSONTyped,
|
|
27
|
+
InstructionSnapshotToJSON,
|
|
28
|
+
InstructionSnapshotToJSONTyped,
|
|
29
|
+
} from './InstructionSnapshot';
|
|
23
30
|
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
24
31
|
import {
|
|
25
32
|
WorkflowRunnerTypeFromJSON,
|
|
@@ -72,10 +79,10 @@ export interface WorkflowRunSnapshot {
|
|
|
72
79
|
sources: Array<ABCDPathSnapshot>;
|
|
73
80
|
/**
|
|
74
81
|
*
|
|
75
|
-
* @type {Array<
|
|
82
|
+
* @type {Array<InstructionSnapshot>}
|
|
76
83
|
* @memberof WorkflowRunSnapshot
|
|
77
84
|
*/
|
|
78
|
-
instructions: Array<
|
|
85
|
+
instructions: Array<InstructionSnapshot>;
|
|
79
86
|
/**
|
|
80
87
|
*
|
|
81
88
|
* @type {Array<ABCDPathSnapshot>}
|
|
@@ -141,7 +148,7 @@ export function WorkflowRunSnapshotFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
141
148
|
'userId': json['user_id'],
|
|
142
149
|
'maxRunDurationSeconds': json['max_run_duration_seconds'],
|
|
143
150
|
'sources': ((json['sources'] as Array<any>).map(ABCDPathSnapshotFromJSON)),
|
|
144
|
-
'instructions': ((json['instructions'] as Array<any>).map(
|
|
151
|
+
'instructions': ((json['instructions'] as Array<any>).map(InstructionSnapshotFromJSON)),
|
|
145
152
|
'outputs': ((json['outputs'] as Array<any>).map(ABCDPathSnapshotFromJSON)),
|
|
146
153
|
'template': ABCDPathSnapshotFromJSON(json['template']),
|
|
147
154
|
};
|
|
@@ -164,7 +171,7 @@ export function WorkflowRunSnapshotToJSONTyped(value?: WorkflowRunSnapshot | nul
|
|
|
164
171
|
'user_id': value['userId'],
|
|
165
172
|
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
166
173
|
'sources': ((value['sources'] as Array<any>).map(ABCDPathSnapshotToJSON)),
|
|
167
|
-
'instructions': ((value['instructions'] as Array<any>).map(
|
|
174
|
+
'instructions': ((value['instructions'] as Array<any>).map(InstructionSnapshotToJSON)),
|
|
168
175
|
'outputs': ((value['outputs'] as Array<any>).map(ABCDPathSnapshotToJSON)),
|
|
169
176
|
'template': ABCDPathSnapshotToJSON(value['template']),
|
|
170
177
|
};
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
export const WorkflowRunnerType = {
|
|
21
|
-
SelfHosted: 'SELF_HOSTED'
|
|
21
|
+
SelfHosted: 'SELF_HOSTED',
|
|
22
|
+
KsInternal: 'KS_INTERNAL'
|
|
22
23
|
} as const;
|
|
23
24
|
export type WorkflowRunnerType = typeof WorkflowRunnerType[keyof typeof WorkflowRunnerType];
|
|
24
25
|
|
package/src/models/index.ts
CHANGED
|
@@ -76,6 +76,7 @@ export * from './ImageTaxonomy';
|
|
|
76
76
|
export * from './InformationStatistics';
|
|
77
77
|
export * from './IngestDocumentResponse';
|
|
78
78
|
export * from './IngestionMode';
|
|
79
|
+
export * from './InstructionSnapshot';
|
|
79
80
|
export * from './InviteLinkSettingsRequest';
|
|
80
81
|
export * from './InviteLinkSettingsResponse';
|
|
81
82
|
export * from './InviteResponse';
|
|
@@ -90,6 +91,8 @@ export * from './MembershipResponse';
|
|
|
90
91
|
export * from './MessageRole';
|
|
91
92
|
export * from './MeteredQuotaStatus';
|
|
92
93
|
export * from './NonFilesystemReferenceType';
|
|
94
|
+
export * from './OnboardingCompanyRequest';
|
|
95
|
+
export * from './OnboardingProfileRequest';
|
|
93
96
|
export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
|
|
94
97
|
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
95
98
|
export * from './PaginatedResponseDocumentResponse';
|