@knowledge-stack/ksapi 2.4.3 → 2.6.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 +10 -0
- package/README.md +7 -2
- package/dist/apis/DocumentsApi.d.ts +9 -0
- package/dist/apis/DocumentsApi.js +9 -0
- package/dist/apis/SystemJobsApi.d.ts +4 -4
- package/dist/apis/SystemJobsApi.js +2 -2
- package/dist/apis/TenantInvitationsApi.d.ts +67 -0
- package/dist/apis/TenantInvitationsApi.js +112 -0
- package/dist/apis/TenantsApi.d.ts +4 -4
- package/dist/apis/TenantsApi.js +2 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DocumentsApi.d.ts +9 -0
- package/dist/esm/apis/DocumentsApi.js +9 -0
- package/dist/esm/apis/SystemJobsApi.d.ts +4 -4
- package/dist/esm/apis/SystemJobsApi.js +2 -2
- package/dist/esm/apis/TenantInvitationsApi.d.ts +67 -0
- package/dist/esm/apis/TenantInvitationsApi.js +75 -0
- package/dist/esm/apis/TenantsApi.d.ts +4 -4
- package/dist/esm/apis/TenantsApi.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AcceptTenantInvitationRequest.d.ts +53 -0
- package/dist/esm/models/AcceptTenantInvitationRequest.js +48 -0
- package/dist/esm/models/AcceptTenantInvitationResponse.d.ts +59 -0
- package/dist/esm/models/AcceptTenantInvitationResponse.js +52 -0
- package/dist/esm/models/ChunkMetadata.d.ts +12 -0
- package/dist/esm/models/ChunkMetadata.js +4 -0
- package/dist/esm/models/CreateUploadRequest.d.ts +18 -0
- package/dist/esm/models/CreateUploadRequest.js +6 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +7 -0
- package/dist/esm/models/DocumentVersionMetadata.js +3 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +7 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +3 -0
- package/dist/esm/models/EmailMetadata.d.ts +119 -0
- package/dist/esm/models/EmailMetadata.js +65 -0
- package/dist/esm/models/EmailParty.d.ts +53 -0
- package/dist/esm/models/EmailParty.js +46 -0
- package/dist/esm/models/EventResponse.d.ts +6 -0
- package/dist/esm/models/EventResponse.js +2 -0
- package/dist/esm/models/ImageTaxonomy.d.ts +1 -0
- package/dist/esm/models/ImageTaxonomy.js +1 -0
- package/dist/esm/models/IngestDocumentResponse.d.ts +18 -0
- package/dist/esm/models/IngestDocumentResponse.js +6 -0
- package/dist/esm/models/SegmentSpan.d.ts +9 -2
- package/dist/esm/models/SegmentSpan.js +2 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/AcceptTenantInvitationRequest.d.ts +53 -0
- package/dist/models/AcceptTenantInvitationRequest.js +56 -0
- package/dist/models/AcceptTenantInvitationResponse.d.ts +59 -0
- package/dist/models/AcceptTenantInvitationResponse.js +60 -0
- package/dist/models/ChunkMetadata.d.ts +12 -0
- package/dist/models/ChunkMetadata.js +4 -0
- package/dist/models/CreateUploadRequest.d.ts +18 -0
- package/dist/models/CreateUploadRequest.js +6 -0
- package/dist/models/DocumentVersionMetadata.d.ts +7 -0
- package/dist/models/DocumentVersionMetadata.js +3 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +7 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +3 -0
- package/dist/models/EmailMetadata.d.ts +119 -0
- package/dist/models/EmailMetadata.js +73 -0
- package/dist/models/EmailParty.d.ts +53 -0
- package/dist/models/EmailParty.js +54 -0
- package/dist/models/EventResponse.d.ts +6 -0
- package/dist/models/EventResponse.js +2 -0
- package/dist/models/ImageTaxonomy.d.ts +1 -0
- package/dist/models/ImageTaxonomy.js +1 -0
- package/dist/models/IngestDocumentResponse.d.ts +18 -0
- package/dist/models/IngestDocumentResponse.js +6 -0
- package/dist/models/SegmentSpan.d.ts +9 -2
- package/dist/models/SegmentSpan.js +2 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/AcceptTenantInvitationRequest.md +36 -0
- package/docs/AcceptTenantInvitationResponse.md +38 -0
- package/docs/ChunkMetadata.md +4 -0
- package/docs/CreateUploadRequest.md +6 -0
- package/docs/DocumentVersionMetadata.md +2 -0
- package/docs/DocumentVersionMetadataUpdate.md +2 -0
- package/docs/DocumentsApi.md +13 -4
- package/docs/EmailMetadata.md +57 -0
- package/docs/EmailParty.md +37 -0
- package/docs/EventResponse.md +2 -0
- package/docs/IngestDocumentResponse.md +6 -0
- package/docs/SegmentSpan.md +3 -1
- package/docs/SystemJobsApi.md +1 -1
- package/docs/TenantInvitationsApi.md +85 -0
- package/docs/TenantsApi.md +1 -1
- package/package.json +1 -1
- package/src/apis/DocumentsApi.ts +21 -0
- package/src/apis/SystemJobsApi.ts +4 -4
- package/src/apis/TenantInvitationsApi.ts +136 -0
- package/src/apis/TenantsApi.ts +4 -4
- package/src/apis/index.ts +1 -0
- package/src/models/AcceptTenantInvitationRequest.ts +93 -0
- package/src/models/AcceptTenantInvitationResponse.ts +101 -0
- package/src/models/ChunkMetadata.ts +16 -0
- package/src/models/CreateUploadRequest.ts +24 -0
- package/src/models/DocumentVersionMetadata.ts +15 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +15 -0
- package/src/models/EmailMetadata.ts +183 -0
- package/src/models/EmailParty.ts +91 -0
- package/src/models/EventResponse.ts +8 -0
- package/src/models/ImageTaxonomy.ts +1 -0
- package/src/models/IngestDocumentResponse.ts +24 -0
- package/src/models/SegmentSpan.ts +11 -2
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
|
|
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 { EmailParty } from './EmailParty';
|
|
17
|
+
import {
|
|
18
|
+
EmailPartyFromJSON,
|
|
19
|
+
EmailPartyFromJSONTyped,
|
|
20
|
+
EmailPartyToJSON,
|
|
21
|
+
EmailPartyToJSONTyped,
|
|
22
|
+
} from './EmailParty';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Structured headers of an ingested email (EMAIL document type only).
|
|
26
|
+
*
|
|
27
|
+
* Populated by ``document_preparation_activity`` from the same parse that
|
|
28
|
+
* renders the message body, so the stored metadata and the rendered document
|
|
29
|
+
* cannot disagree. Null on a multi-message archive: its messages are ingested
|
|
30
|
+
* as their own documents, and each carries its own block.
|
|
31
|
+
* @export
|
|
32
|
+
* @interface EmailMetadata
|
|
33
|
+
*/
|
|
34
|
+
export interface EmailMetadata {
|
|
35
|
+
/**
|
|
36
|
+
* Message subject
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof EmailMetadata
|
|
39
|
+
*/
|
|
40
|
+
subject?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Sender; null if unparseable
|
|
43
|
+
* @type {EmailParty}
|
|
44
|
+
* @memberof EmailMetadata
|
|
45
|
+
*/
|
|
46
|
+
sender?: EmailParty | null;
|
|
47
|
+
/**
|
|
48
|
+
* To recipients
|
|
49
|
+
* @type {Array<EmailParty>}
|
|
50
|
+
* @memberof EmailMetadata
|
|
51
|
+
*/
|
|
52
|
+
to?: Array<EmailParty>;
|
|
53
|
+
/**
|
|
54
|
+
* Cc recipients
|
|
55
|
+
* @type {Array<EmailParty>}
|
|
56
|
+
* @memberof EmailMetadata
|
|
57
|
+
*/
|
|
58
|
+
cc?: Array<EmailParty>;
|
|
59
|
+
/**
|
|
60
|
+
* Bcc recipients. Present only when the source file carries them — a sending MTA strips Bcc, so it survives in the sender's own copy (a .msg exported from Sent Items) but never in a received .eml.
|
|
61
|
+
* @type {Array<EmailParty>}
|
|
62
|
+
* @memberof EmailMetadata
|
|
63
|
+
*/
|
|
64
|
+
bcc?: Array<EmailParty>;
|
|
65
|
+
/**
|
|
66
|
+
* Date header, as written
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof EmailMetadata
|
|
69
|
+
*/
|
|
70
|
+
sentAt?: string;
|
|
71
|
+
/**
|
|
72
|
+
* RFC 5322 Message-ID
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof EmailMetadata
|
|
75
|
+
*/
|
|
76
|
+
messageId?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Message-ID being replied to
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof EmailMetadata
|
|
81
|
+
*/
|
|
82
|
+
inReplyTo?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Reply chain, oldest first
|
|
85
|
+
* @type {Array<string>}
|
|
86
|
+
* @memberof EmailMetadata
|
|
87
|
+
*/
|
|
88
|
+
references?: Array<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Outlook PidTagConversationTopic (.msg only)
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof EmailMetadata
|
|
93
|
+
*/
|
|
94
|
+
conversationTopic?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Message-ID that started the thread — the first References entry, or this message's own id. Group by this to reconstruct a thread.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof EmailMetadata
|
|
99
|
+
*/
|
|
100
|
+
threadRootId?: string;
|
|
101
|
+
/**
|
|
102
|
+
* The verbatim header block, so a header this schema does not model stays recoverable without re-reading the source file.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof EmailMetadata
|
|
105
|
+
*/
|
|
106
|
+
rawHeaders?: string;
|
|
107
|
+
}
|
|
108
|
+
export const EmailMetadataPropertyValidationAttributesMap: {
|
|
109
|
+
[property: string]: {
|
|
110
|
+
maxLength?: number,
|
|
111
|
+
minLength?: number,
|
|
112
|
+
pattern?: string,
|
|
113
|
+
maximum?: number,
|
|
114
|
+
exclusiveMaximum?: boolean,
|
|
115
|
+
minimum?: number,
|
|
116
|
+
exclusiveMinimum?: boolean,
|
|
117
|
+
multipleOf?: number,
|
|
118
|
+
maxItems?: number,
|
|
119
|
+
minItems?: number,
|
|
120
|
+
uniqueItems?: boolean
|
|
121
|
+
}
|
|
122
|
+
} = {
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Check if a given object implements the EmailMetadata interface.
|
|
128
|
+
*/
|
|
129
|
+
export function instanceOfEmailMetadata(value: object): value is EmailMetadata {
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function EmailMetadataFromJSON(json: any): EmailMetadata {
|
|
134
|
+
return EmailMetadataFromJSONTyped(json, false);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function EmailMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailMetadata {
|
|
138
|
+
if (json == null) {
|
|
139
|
+
return json;
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
|
|
143
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
144
|
+
'sender': json['sender'] == null ? undefined : EmailPartyFromJSON(json['sender']),
|
|
145
|
+
'to': json['to'] == null ? undefined : ((json['to'] as Array<any>).map(EmailPartyFromJSON)),
|
|
146
|
+
'cc': json['cc'] == null ? undefined : ((json['cc'] as Array<any>).map(EmailPartyFromJSON)),
|
|
147
|
+
'bcc': json['bcc'] == null ? undefined : ((json['bcc'] as Array<any>).map(EmailPartyFromJSON)),
|
|
148
|
+
'sentAt': json['sent_at'] == null ? undefined : json['sent_at'],
|
|
149
|
+
'messageId': json['message_id'] == null ? undefined : json['message_id'],
|
|
150
|
+
'inReplyTo': json['in_reply_to'] == null ? undefined : json['in_reply_to'],
|
|
151
|
+
'references': json['references'] == null ? undefined : json['references'],
|
|
152
|
+
'conversationTopic': json['conversation_topic'] == null ? undefined : json['conversation_topic'],
|
|
153
|
+
'threadRootId': json['thread_root_id'] == null ? undefined : json['thread_root_id'],
|
|
154
|
+
'rawHeaders': json['raw_headers'] == null ? undefined : json['raw_headers'],
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function EmailMetadataToJSON(json: any): EmailMetadata {
|
|
159
|
+
return EmailMetadataToJSONTyped(json, false);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function EmailMetadataToJSONTyped(value?: EmailMetadata | null, ignoreDiscriminator: boolean = false): any {
|
|
163
|
+
if (value == null) {
|
|
164
|
+
return value;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return {
|
|
168
|
+
|
|
169
|
+
'subject': value['subject'],
|
|
170
|
+
'sender': EmailPartyToJSON(value['sender']),
|
|
171
|
+
'to': value['to'] == null ? undefined : ((value['to'] as Array<any>).map(EmailPartyToJSON)),
|
|
172
|
+
'cc': value['cc'] == null ? undefined : ((value['cc'] as Array<any>).map(EmailPartyToJSON)),
|
|
173
|
+
'bcc': value['bcc'] == null ? undefined : ((value['bcc'] as Array<any>).map(EmailPartyToJSON)),
|
|
174
|
+
'sent_at': value['sentAt'],
|
|
175
|
+
'message_id': value['messageId'],
|
|
176
|
+
'in_reply_to': value['inReplyTo'],
|
|
177
|
+
'references': value['references'],
|
|
178
|
+
'conversation_topic': value['conversationTopic'],
|
|
179
|
+
'thread_root_id': value['threadRootId'],
|
|
180
|
+
'raw_headers': value['rawHeaders'],
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
|
|
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
|
+
* One email participant.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EmailParty
|
|
20
|
+
*/
|
|
21
|
+
export interface EmailParty {
|
|
22
|
+
/**
|
|
23
|
+
* Display name; empty if unnamed
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EmailParty
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Email address
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof EmailParty
|
|
32
|
+
*/
|
|
33
|
+
address: string;
|
|
34
|
+
}
|
|
35
|
+
export const EmailPartyPropertyValidationAttributesMap: {
|
|
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
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the EmailParty interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfEmailParty(value: object): value is EmailParty {
|
|
57
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function EmailPartyFromJSON(json: any): EmailParty {
|
|
62
|
+
return EmailPartyFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function EmailPartyFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailParty {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
72
|
+
'address': json['address'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function EmailPartyToJSON(json: any): EmailParty {
|
|
77
|
+
return EmailPartyToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function EmailPartyToJSONTyped(value?: EmailParty | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'address': value['address'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -69,6 +69,12 @@ export interface EventResponse {
|
|
|
69
69
|
* @memberof EventResponse
|
|
70
70
|
*/
|
|
71
71
|
actorUserId: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof EventResponse
|
|
76
|
+
*/
|
|
77
|
+
actorOnBehalfOf?: string | null;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {{ [key: string]: any; }}
|
|
@@ -158,6 +164,7 @@ export function EventResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
158
164
|
'kind': json['kind'],
|
|
159
165
|
'ts': (new Date(json['ts'])),
|
|
160
166
|
'actorUserId': json['actor_user_id'],
|
|
167
|
+
'actorOnBehalfOf': json['actor_on_behalf_of'] == null ? undefined : json['actor_on_behalf_of'],
|
|
161
168
|
'payload': json['payload'],
|
|
162
169
|
'actor': json['actor'] == null ? undefined : UserInfoFromJSON(json['actor']),
|
|
163
170
|
'subjectName': json['subject_name'] == null ? undefined : json['subject_name'],
|
|
@@ -184,6 +191,7 @@ export function EventResponseToJSONTyped(value?: EventResponse | null, ignoreDis
|
|
|
184
191
|
'kind': value['kind'],
|
|
185
192
|
'ts': value['ts'].toISOString(),
|
|
186
193
|
'actor_user_id': value['actorUserId'],
|
|
194
|
+
'actor_on_behalf_of': value['actorOnBehalfOf'],
|
|
187
195
|
'payload': value['payload'],
|
|
188
196
|
'actor': UserInfoToJSON(value['actor']),
|
|
189
197
|
'subject_name': value['subjectName'],
|
|
@@ -37,6 +37,24 @@ export interface IngestDocumentResponse {
|
|
|
37
37
|
* @memberof IngestDocumentResponse
|
|
38
38
|
*/
|
|
39
39
|
documentVersionId: string;
|
|
40
|
+
/**
|
|
41
|
+
* Folder created to hold this upload and its members. Set for email uploads, which always nest inside their own folder; null for every other type, which ingest directly into path_part_id.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof IngestDocumentResponse
|
|
44
|
+
*/
|
|
45
|
+
folderId?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Members found on an email upload, each becoming its own document beside the email: the attachments of a single message, or the messages of an .mbox archive (whose own attachments are then expanded one level deeper). Always 0 for non-email uploads. Null for a .pst, whose members are enumerated only by the worker fan-out — poll attachment_workflow_id for per-member outcomes.
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IngestDocumentResponse
|
|
50
|
+
*/
|
|
51
|
+
attachmentCount?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
* Fan-out workflow ingesting the members. Poll GET /v1/system-jobs/zip-ingestions/{id} for per-member outcomes. Null when the upload had no ingestible members.
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof IngestDocumentResponse
|
|
56
|
+
*/
|
|
57
|
+
attachmentWorkflowId?: string | null;
|
|
40
58
|
}
|
|
41
59
|
export const IngestDocumentResponsePropertyValidationAttributesMap: {
|
|
42
60
|
[property: string]: {
|
|
@@ -79,6 +97,9 @@ export function IngestDocumentResponseFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
79
97
|
'workflowId': json['workflow_id'],
|
|
80
98
|
'documentId': json['document_id'],
|
|
81
99
|
'documentVersionId': json['document_version_id'],
|
|
100
|
+
'folderId': json['folder_id'] == null ? undefined : json['folder_id'],
|
|
101
|
+
'attachmentCount': json['attachment_count'] == null ? undefined : json['attachment_count'],
|
|
102
|
+
'attachmentWorkflowId': json['attachment_workflow_id'] == null ? undefined : json['attachment_workflow_id'],
|
|
82
103
|
};
|
|
83
104
|
}
|
|
84
105
|
|
|
@@ -96,6 +117,9 @@ export function IngestDocumentResponseToJSONTyped(value?: IngestDocumentResponse
|
|
|
96
117
|
'workflow_id': value['workflowId'],
|
|
97
118
|
'document_id': value['documentId'],
|
|
98
119
|
'document_version_id': value['documentVersionId'],
|
|
120
|
+
'folder_id': value['folderId'],
|
|
121
|
+
'attachment_count': value['attachmentCount'],
|
|
122
|
+
'attachment_workflow_id': value['attachmentWorkflowId'],
|
|
99
123
|
};
|
|
100
124
|
}
|
|
101
125
|
|
|
@@ -16,8 +16,9 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
* One ASR segment's span inside a media chunk (media chunks only).
|
|
18
18
|
*
|
|
19
|
-
* Field names are deliberately compact — a media document stores hundreds
|
|
20
|
-
*
|
|
19
|
+
* Field names are deliberately compact — a media document stores hundreds of
|
|
20
|
+
* chunks x tens of spans each in ``chunk_metadata`` JSONB. Measured worst
|
|
21
|
+
* case is a 4-hour Mandarin recording: 175 chunks x ~33 spans, ~190 KB total.
|
|
21
22
|
* @export
|
|
22
23
|
* @interface SegmentSpan
|
|
23
24
|
*/
|
|
@@ -40,6 +41,12 @@ export interface SegmentSpan {
|
|
|
40
41
|
* @memberof SegmentSpan
|
|
41
42
|
*/
|
|
42
43
|
c: number;
|
|
44
|
+
/**
|
|
45
|
+
* Speaker label for this segment, 0-indexed within the recording. It identifies turns, not people — there is no voiceprint enrollment, so label 0 in one meeting is unrelated to label 0 in another. None when the ASR provider does not diarize.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof SegmentSpan
|
|
48
|
+
*/
|
|
49
|
+
k?: number | null;
|
|
43
50
|
}
|
|
44
51
|
export const SegmentSpanPropertyValidationAttributesMap: {
|
|
45
52
|
[property: string]: {
|
|
@@ -82,6 +89,7 @@ export function SegmentSpanFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
82
89
|
's': json['s'],
|
|
83
90
|
'e': json['e'],
|
|
84
91
|
'c': json['c'],
|
|
92
|
+
'k': json['k'] == null ? undefined : json['k'],
|
|
85
93
|
};
|
|
86
94
|
}
|
|
87
95
|
|
|
@@ -99,6 +107,7 @@ export function SegmentSpanToJSONTyped(value?: SegmentSpan | null, ignoreDiscrim
|
|
|
99
107
|
's': value['s'],
|
|
100
108
|
'e': value['e'],
|
|
101
109
|
'c': value['c'],
|
|
110
|
+
'k': value['k'],
|
|
102
111
|
};
|
|
103
112
|
}
|
|
104
113
|
|
package/src/models/index.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AcceptDisclaimerRequest';
|
|
4
4
|
export * from './AcceptInviteResponse';
|
|
5
|
+
export * from './AcceptTenantInvitationRequest';
|
|
6
|
+
export * from './AcceptTenantInvitationResponse';
|
|
5
7
|
export * from './AccessCheckResponse';
|
|
6
8
|
export * from './ActivateSkillVersionRequest';
|
|
7
9
|
export * from './AddMemberRequest';
|
|
@@ -129,6 +131,8 @@ export * from './DocxParagraphAnchorInput';
|
|
|
129
131
|
export * from './DocxParagraphAnchorOutput';
|
|
130
132
|
export * from './DownloadArtifact';
|
|
131
133
|
export * from './EditMemoryChunkRequest';
|
|
134
|
+
export * from './EmailMetadata';
|
|
135
|
+
export * from './EmailParty';
|
|
132
136
|
export * from './EmailSentResponse';
|
|
133
137
|
export * from './EmailVerificationRequest';
|
|
134
138
|
export * from './EnrichedCitation';
|