@vertesia/common 1.1.0 → 1.1.1-dev.20260505.163000Z
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/lib/cjs/apikey.js.map +1 -1
- package/lib/cjs/apps.js.map +1 -1
- package/lib/cjs/data-platform.js.map +1 -1
- package/lib/cjs/environment.js.map +1 -1
- package/lib/cjs/group.js.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/interaction.js.map +1 -1
- package/lib/cjs/openapi.js +3 -0
- package/lib/cjs/openapi.js.map +1 -0
- package/lib/cjs/project.js.map +1 -1
- package/lib/cjs/store/dsl-workflow.js.map +1 -1
- package/lib/cjs/store/rendering.js.map +1 -1
- package/lib/cjs/store/store.js.map +1 -1
- package/lib/cjs/store/workflow.js.map +1 -1
- package/lib/esm/apikey.js.map +1 -1
- package/lib/esm/apps.js.map +1 -1
- package/lib/esm/data-platform.js.map +1 -1
- package/lib/esm/environment.js.map +1 -1
- package/lib/esm/group.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/interaction.js.map +1 -1
- package/lib/esm/openapi.js +2 -0
- package/lib/esm/openapi.js.map +1 -0
- package/lib/esm/project.js.map +1 -1
- package/lib/esm/store/dsl-workflow.js.map +1 -1
- package/lib/esm/store/rendering.js.map +1 -1
- package/lib/esm/store/store.js.map +1 -1
- package/lib/esm/store/workflow.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/access-control.d.ts +4 -0
- package/lib/types/access-control.d.ts.map +1 -1
- package/lib/types/apikey.d.ts +9 -0
- package/lib/types/apikey.d.ts.map +1 -1
- package/lib/types/apps.d.ts +29 -12
- package/lib/types/apps.d.ts.map +1 -1
- package/lib/types/common.d.ts +18 -0
- package/lib/types/common.d.ts.map +1 -1
- package/lib/types/cost-analytics.d.ts +18 -0
- package/lib/types/cost-analytics.d.ts.map +1 -1
- package/lib/types/data-platform.d.ts +72 -0
- package/lib/types/data-platform.d.ts.map +1 -1
- package/lib/types/environment.d.ts +9 -2
- package/lib/types/environment.d.ts.map +1 -1
- package/lib/types/facets.d.ts +7 -0
- package/lib/types/facets.d.ts.map +1 -1
- package/lib/types/group.d.ts +10 -0
- package/lib/types/group.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/integrations.d.ts +1 -0
- package/lib/types/integrations.d.ts.map +1 -1
- package/lib/types/interaction.d.ts +55 -0
- package/lib/types/interaction.d.ts.map +1 -1
- package/lib/types/oauth.d.ts +10 -0
- package/lib/types/oauth.d.ts.map +1 -1
- package/lib/types/openapi.d.ts +90 -0
- package/lib/types/openapi.d.ts.map +1 -0
- package/lib/types/project.d.ts +19 -0
- package/lib/types/project.d.ts.map +1 -1
- package/lib/types/prompt.d.ts +12 -0
- package/lib/types/prompt.d.ts.map +1 -1
- package/lib/types/store/agent-run.d.ts +22 -1
- package/lib/types/store/agent-run.d.ts.map +1 -1
- package/lib/types/store/collections.d.ts +30 -0
- package/lib/types/store/collections.d.ts.map +1 -1
- package/lib/types/store/doc-analyzer.d.ts +2 -1
- package/lib/types/store/doc-analyzer.d.ts.map +1 -1
- package/lib/types/store/dsl-workflow.d.ts +12 -9
- package/lib/types/store/dsl-workflow.d.ts.map +1 -1
- package/lib/types/store/rendering.d.ts +4 -0
- package/lib/types/store/rendering.d.ts.map +1 -1
- package/lib/types/store/store.d.ts +139 -0
- package/lib/types/store/store.d.ts.map +1 -1
- package/lib/types/store/workflow.d.ts +27 -0
- package/lib/types/store/workflow.d.ts.map +1 -1
- package/lib/types/sts-token-types.d.ts +5 -0
- package/lib/types/sts-token-types.d.ts.map +1 -1
- package/lib/types/user.d.ts +14 -1
- package/lib/types/user.d.ts.map +1 -1
- package/lib/vertesia-common.js +1 -1
- package/lib/vertesia-common.js.map +1 -1
- package/package.json +2 -2
- package/src/access-control.ts +4 -0
- package/src/apikey.ts +12 -0
- package/src/apps.ts +36 -4
- package/src/common.ts +28 -0
- package/src/cost-analytics.ts +20 -0
- package/src/data-platform.ts +83 -0
- package/src/environment.ts +16 -4
- package/src/facets.ts +9 -0
- package/src/group.ts +13 -1
- package/src/index.ts +1 -0
- package/src/integrations.ts +11 -0
- package/src/interaction.ts +68 -0
- package/src/oauth.ts +13 -0
- package/src/openapi.ts +102 -0
- package/src/project.ts +24 -0
- package/src/prompt.ts +15 -0
- package/src/store/agent-run.ts +29 -1
- package/src/store/collections.ts +37 -0
- package/src/store/doc-analyzer.ts +2 -1
- package/src/store/dsl-workflow.ts +14 -9
- package/src/store/rendering.ts +5 -0
- package/src/store/store.ts +164 -0
- package/src/store/workflow.ts +36 -1
- package/src/sts-token-types.ts +7 -1
- package/src/user.ts +18 -1
package/src/prompt.ts
CHANGED
|
@@ -100,3 +100,18 @@ export interface PromptTemplateUpdatePayload
|
|
|
100
100
|
extends Partial<
|
|
101
101
|
Omit<PromptTemplate, "id" | "created_at" | "updated_at" | "created_by" | "updated_by" | "project">
|
|
102
102
|
> { }
|
|
103
|
+
|
|
104
|
+
export interface PromptTemplateInteractionVersion {
|
|
105
|
+
version: number;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface PromptTemplateInteractionUsage {
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
versions: PromptTemplateInteractionVersion[];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface PromptTemplateInteractionsResponse {
|
|
115
|
+
prompt: string;
|
|
116
|
+
interactions: PromptTemplateInteractionUsage[];
|
|
117
|
+
}
|
package/src/store/agent-run.ts
CHANGED
|
@@ -272,6 +272,34 @@ export interface AgentRunUpdatesResponse {
|
|
|
272
272
|
messages: CompactMessage[];
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
export interface AgentRunUpdatesQuery {
|
|
276
|
+
since?: number;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export interface StreamAgentRunQuery extends AgentRunUpdatesQuery {
|
|
280
|
+
skipHistory?: boolean;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface AgentRunDetailsQuery {
|
|
284
|
+
include_history?: boolean;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export type AgentArtifactVisibility = 'user' | 'internal' | 'all';
|
|
288
|
+
|
|
289
|
+
export interface AgentRunArtifactsQuery {
|
|
290
|
+
visibility?: AgentArtifactVisibility;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export interface AgentRunArtifactUploadHeaders {
|
|
294
|
+
'content-type'?: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface AgentRunArtifactQuery {
|
|
298
|
+
url?: boolean;
|
|
299
|
+
disposition?: 'inline' | 'attachment';
|
|
300
|
+
filename?: string;
|
|
301
|
+
}
|
|
302
|
+
|
|
275
303
|
/**
|
|
276
304
|
* Payload for posting an update into an agent's workflow stream.
|
|
277
305
|
*/
|
|
@@ -384,7 +412,7 @@ export interface ListAgentRunsQuery {
|
|
|
384
412
|
}
|
|
385
413
|
|
|
386
414
|
export interface ListAgentRunsResponse {
|
|
387
|
-
items: AgentRun[];
|
|
415
|
+
items: AgentRun<Record<string, unknown>, Record<string, unknown>>[];
|
|
388
416
|
total_count: number;
|
|
389
417
|
next_cursor: string | null;
|
|
390
418
|
}
|
package/src/store/collections.ts
CHANGED
|
@@ -85,3 +85,40 @@ export interface CollectionSearchPayload {
|
|
|
85
85
|
type?: string;
|
|
86
86
|
types?: string[];
|
|
87
87
|
}
|
|
88
|
+
|
|
89
|
+
export interface CollectionMembersUpdateResult {
|
|
90
|
+
id: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface CollectionSecuritySettingsResponse {
|
|
94
|
+
id: string;
|
|
95
|
+
security: Record<string, string[]>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface CollectionPropagationResponse {
|
|
99
|
+
id: string;
|
|
100
|
+
message: string;
|
|
101
|
+
security?: Record<string, string[]>;
|
|
102
|
+
shared_properties?: string[];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface CollectionChildrenUpdateResult {
|
|
106
|
+
count: number;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface CollectionMembersUpdatePayload {
|
|
110
|
+
action: "add" | "delete";
|
|
111
|
+
members: string[];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface CollectionChildrenUpdatePayload {
|
|
115
|
+
action: "add" | "delete";
|
|
116
|
+
children: string[];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface CollectionMembersQuery {
|
|
120
|
+
status?: string;
|
|
121
|
+
type?: string;
|
|
122
|
+
limit?: number;
|
|
123
|
+
offset?: number;
|
|
124
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JSONObject } from "../json.js";
|
|
1
2
|
import { WorkflowExecutionPayload, WorkflowRunStatus } from "./workflow.js";
|
|
2
3
|
|
|
3
4
|
export interface PdfToRichtextOptions {
|
|
@@ -64,7 +65,7 @@ export interface DocTableCsv extends DocTable {
|
|
|
64
65
|
export interface DocTableJson extends DocTable {
|
|
65
66
|
format: "application/json";
|
|
66
67
|
title?: string;
|
|
67
|
-
data:
|
|
68
|
+
data: JSONObject[];
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
/**
|
|
@@ -4,6 +4,8 @@ import { BaseObject } from "./common.js";
|
|
|
4
4
|
import { WorkflowExecutionPayload } from "./index.js";
|
|
5
5
|
import { ParentClosePolicyType } from "./temporalio.js";
|
|
6
6
|
|
|
7
|
+
export type DurationValue = StringValue | number;
|
|
8
|
+
|
|
7
9
|
/**
|
|
8
10
|
* Discriminator for workflow input type - either object IDs or GCS file URIs
|
|
9
11
|
*/
|
|
@@ -42,9 +44,9 @@ export interface DSLWorkflowExecutionPayload extends WorkflowExecutionPayload {
|
|
|
42
44
|
* @see ActivityOptions in @temporalio/common
|
|
43
45
|
*/
|
|
44
46
|
export interface DSLActivityOptions {
|
|
45
|
-
startToCloseTimeout?:
|
|
46
|
-
scheduleToStartTimeout?:
|
|
47
|
-
scheduleToCloseTimeout?:
|
|
47
|
+
startToCloseTimeout?: DurationValue;
|
|
48
|
+
scheduleToStartTimeout?: DurationValue;
|
|
49
|
+
scheduleToCloseTimeout?: DurationValue;
|
|
48
50
|
retry?: DSLRetryPolicy;
|
|
49
51
|
}
|
|
50
52
|
|
|
@@ -55,12 +57,15 @@ export interface DSLActivityOptions {
|
|
|
55
57
|
*/
|
|
56
58
|
export interface DSLRetryPolicy {
|
|
57
59
|
backoffCoefficient?: number;
|
|
58
|
-
initialInterval?:
|
|
60
|
+
initialInterval?: DurationValue;
|
|
59
61
|
maximumAttempts?: number;
|
|
60
|
-
maximumInterval?:
|
|
62
|
+
maximumInterval?: DurationValue;
|
|
61
63
|
nonRetryableErrorTypes?: string[];
|
|
62
64
|
}
|
|
63
65
|
|
|
66
|
+
export type WorkflowSearchAttributeValue = string[] | number[] | boolean[] | Date[];
|
|
67
|
+
export type WorkflowSearchAttributes = Record<string, WorkflowSearchAttributeValue>;
|
|
68
|
+
|
|
64
69
|
/**
|
|
65
70
|
* The payload for a DSL activity execution.
|
|
66
71
|
*/
|
|
@@ -225,11 +230,11 @@ export interface DSLChildWorkflowStep extends DSLWorkflowStepBase {
|
|
|
225
230
|
options?: {
|
|
226
231
|
memo?: Record<string, any>;
|
|
227
232
|
retry?: DSLRetryPolicy;
|
|
228
|
-
searchAttributes?:
|
|
233
|
+
searchAttributes?: WorkflowSearchAttributes;
|
|
229
234
|
taskQueue?: string;
|
|
230
|
-
workflowExecutionTimeout?:
|
|
231
|
-
workflowRunTimeout?:
|
|
232
|
-
workflowTaskTimeout?:
|
|
235
|
+
workflowExecutionTimeout?: DurationValue;
|
|
236
|
+
workflowRunTimeout?: DurationValue;
|
|
237
|
+
workflowTaskTimeout?: DurationValue;
|
|
233
238
|
workflowId?: string;
|
|
234
239
|
cronSchedule?: string;
|
|
235
240
|
parentClosePolicy?: ParentClosePolicyType;
|
package/src/store/rendering.ts
CHANGED
|
@@ -152,6 +152,11 @@ export interface RenderMarkdownStatusResponse extends WorkflowRunStatus {
|
|
|
152
152
|
error?: string;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
export interface RenderMarkdownStatusQuery {
|
|
156
|
+
workflow_id: string;
|
|
157
|
+
workflow_run_id: string;
|
|
158
|
+
}
|
|
159
|
+
|
|
155
160
|
/**
|
|
156
161
|
* Client-side polling options for markdown rendering.
|
|
157
162
|
*/
|
package/src/store/store.ts
CHANGED
|
@@ -12,6 +12,37 @@ export enum ContentObjectApiHeaders {
|
|
|
12
12
|
SUPPRESS_WORKFLOWS = 'x-suppress-workflows',
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export interface CreateContentObjectQuery {
|
|
16
|
+
collection_id?: string;
|
|
17
|
+
processing_priority?: ContentObjectProcessingPriority;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface CreateContentObjectHeaders {
|
|
21
|
+
'x-collection-id'?: string;
|
|
22
|
+
'x-processing-priority'?: ContentObjectProcessingPriority;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface UpdateContentObjectQuery {
|
|
26
|
+
create_revision?: boolean;
|
|
27
|
+
revision_label?: string;
|
|
28
|
+
processing_priority?: ContentObjectProcessingPriority;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface UpdateContentObjectHeaders {
|
|
32
|
+
'if-match'?: string;
|
|
33
|
+
'x-create-revision'?: boolean;
|
|
34
|
+
'x-revision-label'?: string;
|
|
35
|
+
'x-processing-priority'?: ContentObjectProcessingPriority;
|
|
36
|
+
'x-suppress-workflows'?: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface GetObjectRenditionQuery {
|
|
40
|
+
block_on_generation?: boolean;
|
|
41
|
+
generate_if_missing?: boolean;
|
|
42
|
+
max_hw?: number;
|
|
43
|
+
sign_url?: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
15
46
|
/**
|
|
16
47
|
* Headers for Data Store API calls.
|
|
17
48
|
* Used for Cloud Run session affinity to route requests to the same instance.
|
|
@@ -54,6 +85,64 @@ export interface ContentObjectUserPermissions {
|
|
|
54
85
|
can_delete: boolean;
|
|
55
86
|
}
|
|
56
87
|
|
|
88
|
+
export interface ContentObjectTextResponse {
|
|
89
|
+
text?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface DeleteContentObjectResult {
|
|
93
|
+
id: string;
|
|
94
|
+
count: number;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface SetObjectEmbeddingsResponse {
|
|
98
|
+
type?: Embedding;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface ContentObjectApiTypeRef {
|
|
102
|
+
id?: string;
|
|
103
|
+
code?: string;
|
|
104
|
+
name: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface ContentObjectApiRevision {
|
|
108
|
+
parent?: string;
|
|
109
|
+
root: string;
|
|
110
|
+
head: boolean;
|
|
111
|
+
label?: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface ContentObjectItemApiResponse extends BaseObject {
|
|
115
|
+
parent: string;
|
|
116
|
+
location: string;
|
|
117
|
+
status: ContentObjectStatus;
|
|
118
|
+
type?: ContentObjectApiTypeRef;
|
|
119
|
+
content: ContentSource;
|
|
120
|
+
external_id?: string;
|
|
121
|
+
properties: Record<string, unknown>;
|
|
122
|
+
metadata?: Record<string, unknown>;
|
|
123
|
+
tokens?: {
|
|
124
|
+
count: number;
|
|
125
|
+
encoding: string;
|
|
126
|
+
etag: string;
|
|
127
|
+
};
|
|
128
|
+
revision: ContentObjectApiRevision;
|
|
129
|
+
is_deleted?: boolean;
|
|
130
|
+
is_locked?: boolean;
|
|
131
|
+
score?: number;
|
|
132
|
+
user_permissions?: ContentObjectUserPermissions;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface ContentObjectApiResponse extends ContentObjectItemApiResponse {
|
|
136
|
+
text?: string;
|
|
137
|
+
text_etag?: string;
|
|
138
|
+
embeddings?: Record<string, Embedding>;
|
|
139
|
+
parts?: string[];
|
|
140
|
+
parts_etag?: string;
|
|
141
|
+
transcript?: Record<string, unknown>;
|
|
142
|
+
security?: Record<string, string[]>;
|
|
143
|
+
inherited_properties?: InheritedPropertyMetadata[];
|
|
144
|
+
}
|
|
145
|
+
|
|
57
146
|
export interface ContentObject<T = any> extends ContentObjectItem<T> {
|
|
58
147
|
text?: string; // the text representation of the object
|
|
59
148
|
text_etag?: string;
|
|
@@ -493,6 +582,12 @@ export interface GetRenditionResponse {
|
|
|
493
582
|
workflow_run_id?: string;
|
|
494
583
|
}
|
|
495
584
|
|
|
585
|
+
export interface ObjectSearchResponse {
|
|
586
|
+
results: ContentObjectItem<Record<string, unknown>>[];
|
|
587
|
+
facets: import('../facets.js').ComputedFacetResponse;
|
|
588
|
+
aggregations?: Record<string, unknown>;
|
|
589
|
+
}
|
|
590
|
+
|
|
496
591
|
// ============================================================================
|
|
497
592
|
// Rendition Format Compatibility Utilities
|
|
498
593
|
// ============================================================================
|
|
@@ -627,6 +722,15 @@ export interface GetFileUrlResponse {
|
|
|
627
722
|
path: string;
|
|
628
723
|
}
|
|
629
724
|
|
|
725
|
+
export interface FileMetadataResponse {
|
|
726
|
+
name: string;
|
|
727
|
+
size: number;
|
|
728
|
+
contentType: string;
|
|
729
|
+
contentDisposition?: string;
|
|
730
|
+
etag?: string;
|
|
731
|
+
customMetadata?: Record<string, string>;
|
|
732
|
+
}
|
|
733
|
+
|
|
630
734
|
export interface SetFileMetadataPayload {
|
|
631
735
|
/** The file path (relative to bucket) or full URI */
|
|
632
736
|
file: string;
|
|
@@ -634,6 +738,11 @@ export interface SetFileMetadataPayload {
|
|
|
634
738
|
metadata: Record<string, string>;
|
|
635
739
|
}
|
|
636
740
|
|
|
741
|
+
export interface FileMetadataUpdateResult {
|
|
742
|
+
success: boolean;
|
|
743
|
+
file: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
637
746
|
export interface BulkUploadUrlsPayload {
|
|
638
747
|
files: { name: string; mime_type?: string; id?: string }[];
|
|
639
748
|
}
|
|
@@ -642,6 +751,61 @@ export interface BulkUploadUrlsResponse {
|
|
|
642
751
|
files: GetFileUrlResponse[];
|
|
643
752
|
}
|
|
644
753
|
|
|
754
|
+
export interface FileBucketResponse {
|
|
755
|
+
bucket: string;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
export interface FileListResponse {
|
|
759
|
+
files: string[];
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
export interface FileMetadataQuery {
|
|
763
|
+
file: string;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export interface FileListQuery {
|
|
767
|
+
prefix: string;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
export interface FileDeleteQuery {
|
|
771
|
+
prefix?: boolean;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
export interface ContentObjectTypeCatalogQuery {
|
|
775
|
+
tag?: string;
|
|
776
|
+
layout?: boolean;
|
|
777
|
+
schema?: boolean;
|
|
778
|
+
limit?: number;
|
|
779
|
+
offset?: number;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
export interface ContentObjectTypeListQuery {
|
|
783
|
+
name?: string;
|
|
784
|
+
chunkable?: boolean;
|
|
785
|
+
layout?: boolean;
|
|
786
|
+
schema?: boolean;
|
|
787
|
+
limit?: number;
|
|
788
|
+
offset?: number;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export interface CopyFilePayload {
|
|
792
|
+
source: string;
|
|
793
|
+
dest: string;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
export interface CopyFileResponse {
|
|
797
|
+
success: boolean;
|
|
798
|
+
source: string;
|
|
799
|
+
dest: string;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export interface DeleteFileResult {
|
|
803
|
+
success: boolean;
|
|
804
|
+
count: number;
|
|
805
|
+
message?: string;
|
|
806
|
+
file?: string;
|
|
807
|
+
}
|
|
808
|
+
|
|
645
809
|
export enum ContentObjectProcessingPriority {
|
|
646
810
|
normal = "normal",
|
|
647
811
|
low = "low",
|
package/src/store/workflow.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { ModelOptions } from "@llumiverse/common";
|
|
1
2
|
import { ConversationVisibility, InteractionRef, UserChannel } from "../interaction.js";
|
|
3
|
+
import { JSONValue } from "../json.js";
|
|
2
4
|
import { JSONSchema } from "../json-schema.js";
|
|
3
5
|
import type { WorkflowInput } from "./dsl-workflow.js";
|
|
4
6
|
|
|
@@ -587,12 +589,44 @@ export interface ListWorkflowRunsResponse {
|
|
|
587
589
|
has_more?: boolean;
|
|
588
590
|
}
|
|
589
591
|
|
|
592
|
+
export interface WorkflowExecutionStartResult {
|
|
593
|
+
run_id: string;
|
|
594
|
+
workflow_id: string;
|
|
595
|
+
}
|
|
596
|
+
|
|
590
597
|
export interface ListWorkflowInteractionsResponse {
|
|
591
598
|
workflow_id: string,
|
|
592
599
|
run_id: string,
|
|
593
600
|
interaction: WorkflowInteractionVars
|
|
594
601
|
}
|
|
595
602
|
|
|
603
|
+
export interface WorkflowRunUpdatesResponse {
|
|
604
|
+
messages: CompactMessage[];
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export interface WorkflowRunDetailsQuery {
|
|
608
|
+
include_history?: boolean;
|
|
609
|
+
history_format?: 'events' | 'tasks' | 'agent';
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
export interface WorkflowRunUpdatesQuery {
|
|
613
|
+
since?: number;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export interface WorkflowRunStreamQuery extends WorkflowRunUpdatesQuery {
|
|
617
|
+
skipHistory?: boolean;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export interface WorkflowUpdatePublishResponse {
|
|
621
|
+
success: true;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export interface WorkflowActionResponse {
|
|
625
|
+
message: string;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
export type WorkflowQueryResult = JSONValue;
|
|
629
|
+
|
|
596
630
|
export interface WorkflowInteractionVars {
|
|
597
631
|
type: string,
|
|
598
632
|
interaction: string,
|
|
@@ -608,7 +642,8 @@ export interface WorkflowInteractionVars {
|
|
|
608
642
|
tool_names: string[],
|
|
609
643
|
config: {
|
|
610
644
|
environment: string,
|
|
611
|
-
model: string
|
|
645
|
+
model: string,
|
|
646
|
+
model_options?: ModelOptions
|
|
612
647
|
},
|
|
613
648
|
interactionParamsSchema?: JSONSchema,
|
|
614
649
|
collection_id?: string;
|
package/src/sts-token-types.ts
CHANGED
|
@@ -110,8 +110,14 @@ export interface TokenResponse {
|
|
|
110
110
|
token: string;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
export interface IssueTokenResponse {
|
|
114
|
+
token: string;
|
|
115
|
+
token_type: 'Bearer';
|
|
116
|
+
expires_in?: number;
|
|
117
|
+
}
|
|
118
|
+
|
|
113
119
|
export interface ValidateTokenResponse {
|
|
114
120
|
valid: boolean;
|
|
115
121
|
payload?: any;
|
|
116
122
|
error?: string;
|
|
117
|
-
}
|
|
123
|
+
}
|
package/src/user.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiKey } from "./apikey.js";
|
|
2
|
-
import { ProjectRoles } from "./project.js";
|
|
2
|
+
import { ProjectRef, ProjectRoles } from "./project.js";
|
|
3
3
|
|
|
4
4
|
export interface UserWithAccounts extends User {
|
|
5
5
|
accounts: AccountRef[];
|
|
@@ -116,6 +116,23 @@ export interface InviteUserResponsePayload {
|
|
|
116
116
|
action: 'invited' | 'added';
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
export interface InviteAcceptanceResponse {
|
|
120
|
+
status: 'added';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface InviteDeclineResponse {
|
|
124
|
+
status: 'deleted';
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface AccountProjectsResponse {
|
|
128
|
+
data: ProjectRef[];
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface GoogleProjectTokenResponse {
|
|
132
|
+
principal: string;
|
|
133
|
+
token: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
119
136
|
|
|
120
137
|
|
|
121
138
|
type UserOrApiKey<T extends User | ApiKey> = T extends User ? User : ApiKey;
|