@vertesia/common 0.77.0 → 0.78.0-dev-715074d
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/package.json +43 -38
- package/src/access-control.ts +5 -4
- package/src/apikey.ts +23 -21
- package/src/apps.ts +66 -0
- package/src/index.ts +3 -1
- package/src/interaction.ts +140 -18
- package/src/payload.ts +2 -4
- package/src/project.ts +0 -2
- package/src/prompt.ts +16 -9
- package/src/query.ts +2 -0
- package/src/rate-limiter.ts +34 -0
- package/src/store/collections.ts +1 -0
- package/src/store/store.ts +12 -0
- package/src/store/workflow.ts +48 -6
- package/src/sts-token-types.ts +114 -0
- package/src/utils/schemas.ts +4 -4
- package/LICENSE +0 -13
- package/lib/cjs/Progress.js +0 -61
- package/lib/cjs/Progress.js.map +0 -1
- package/lib/cjs/access-control.js +0 -55
- package/lib/cjs/access-control.js.map +0 -1
- package/lib/cjs/analytics.js +0 -3
- package/lib/cjs/analytics.js.map +0 -1
- package/lib/cjs/apikey.js +0 -14
- package/lib/cjs/apikey.js.map +0 -1
- package/lib/cjs/apps.js +0 -3
- package/lib/cjs/apps.js.map +0 -1
- package/lib/cjs/common.js +0 -3
- package/lib/cjs/common.js.map +0 -1
- package/lib/cjs/environment.js +0 -44
- package/lib/cjs/environment.js.map +0 -1
- package/lib/cjs/facets.js +0 -3
- package/lib/cjs/facets.js.map +0 -1
- package/lib/cjs/group.js +0 -5
- package/lib/cjs/group.js.map +0 -1
- package/lib/cjs/index.js +0 -45
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/integrations.js +0 -12
- package/lib/cjs/integrations.js.map +0 -1
- package/lib/cjs/interaction.js +0 -64
- package/lib/cjs/interaction.js.map +0 -1
- package/lib/cjs/json-schema.js +0 -3
- package/lib/cjs/json-schema.js.map +0 -1
- package/lib/cjs/json.js +0 -3
- package/lib/cjs/json.js.map +0 -1
- package/lib/cjs/meters.js +0 -13
- package/lib/cjs/meters.js.map +0 -1
- package/lib/cjs/model_utility.js +0 -6
- package/lib/cjs/model_utility.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/payload.js +0 -3
- package/lib/cjs/payload.js.map +0 -1
- package/lib/cjs/project.js +0 -61
- package/lib/cjs/project.js.map +0 -1
- package/lib/cjs/prompt.js +0 -21
- package/lib/cjs/prompt.js.map +0 -1
- package/lib/cjs/query.js +0 -3
- package/lib/cjs/query.js.map +0 -1
- package/lib/cjs/refs.js +0 -14
- package/lib/cjs/refs.js.map +0 -1
- package/lib/cjs/runs.js +0 -3
- package/lib/cjs/runs.js.map +0 -1
- package/lib/cjs/store/activity-catalog.js +0 -3
- package/lib/cjs/store/activity-catalog.js.map +0 -1
- package/lib/cjs/store/agent.js +0 -3
- package/lib/cjs/store/agent.js.map +0 -1
- package/lib/cjs/store/collections.js +0 -9
- package/lib/cjs/store/collections.js.map +0 -1
- package/lib/cjs/store/common.js +0 -3
- package/lib/cjs/store/common.js.map +0 -1
- package/lib/cjs/store/doc-analyzer.js +0 -3
- package/lib/cjs/store/doc-analyzer.js.map +0 -1
- package/lib/cjs/store/dsl-workflow.js +0 -5
- package/lib/cjs/store/dsl-workflow.js.map +0 -1
- package/lib/cjs/store/index.js +0 -28
- package/lib/cjs/store/index.js.map +0 -1
- package/lib/cjs/store/object-types.js +0 -98
- package/lib/cjs/store/object-types.js.map +0 -1
- package/lib/cjs/store/signals.js +0 -3
- package/lib/cjs/store/signals.js.map +0 -1
- package/lib/cjs/store/store.js +0 -34
- package/lib/cjs/store/store.js.map +0 -1
- package/lib/cjs/store/temporalio.js +0 -44
- package/lib/cjs/store/temporalio.js.map +0 -1
- package/lib/cjs/store/workflow.js +0 -49
- package/lib/cjs/store/workflow.js.map +0 -1
- package/lib/cjs/tenant.js +0 -3
- package/lib/cjs/tenant.js.map +0 -1
- package/lib/cjs/training.js +0 -14
- package/lib/cjs/training.js.map +0 -1
- package/lib/cjs/transient-tokens.js +0 -9
- package/lib/cjs/transient-tokens.js.map +0 -1
- package/lib/cjs/user.js +0 -17
- package/lib/cjs/user.js.map +0 -1
- package/lib/cjs/utils/auth.js +0 -15
- package/lib/cjs/utils/auth.js.map +0 -1
- package/lib/cjs/utils/schemas.js +0 -66
- package/lib/cjs/utils/schemas.js.map +0 -1
- package/lib/cjs/utils/type-helpers.js +0 -3
- package/lib/cjs/utils/type-helpers.js.map +0 -1
- package/lib/esm/Progress.js +0 -57
- package/lib/esm/Progress.js.map +0 -1
- package/lib/esm/access-control.js +0 -52
- package/lib/esm/access-control.js.map +0 -1
- package/lib/esm/analytics.js +0 -2
- package/lib/esm/analytics.js.map +0 -1
- package/lib/esm/apikey.js +0 -11
- package/lib/esm/apikey.js.map +0 -1
- package/lib/esm/apps.js +0 -2
- package/lib/esm/apps.js.map +0 -1
- package/lib/esm/common.js +0 -2
- package/lib/esm/common.js.map +0 -1
- package/lib/esm/environment.js +0 -41
- package/lib/esm/environment.js.map +0 -1
- package/lib/esm/facets.js +0 -2
- package/lib/esm/facets.js.map +0 -1
- package/lib/esm/group.js +0 -2
- package/lib/esm/group.js.map +0 -1
- package/lib/esm/index.js +0 -29
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/integrations.js +0 -9
- package/lib/esm/integrations.js.map +0 -1
- package/lib/esm/interaction.js +0 -61
- package/lib/esm/interaction.js.map +0 -1
- package/lib/esm/json-schema.js +0 -2
- package/lib/esm/json-schema.js.map +0 -1
- package/lib/esm/json.js +0 -2
- package/lib/esm/json.js.map +0 -1
- package/lib/esm/meters.js +0 -10
- package/lib/esm/meters.js.map +0 -1
- package/lib/esm/model_utility.js +0 -2
- package/lib/esm/model_utility.js.map +0 -1
- package/lib/esm/payload.js +0 -2
- package/lib/esm/payload.js.map +0 -1
- package/lib/esm/project.js +0 -57
- package/lib/esm/project.js.map +0 -1
- package/lib/esm/prompt.js +0 -18
- package/lib/esm/prompt.js.map +0 -1
- package/lib/esm/query.js +0 -2
- package/lib/esm/query.js.map +0 -1
- package/lib/esm/refs.js +0 -11
- package/lib/esm/refs.js.map +0 -1
- package/lib/esm/runs.js +0 -2
- package/lib/esm/runs.js.map +0 -1
- package/lib/esm/store/activity-catalog.js +0 -2
- package/lib/esm/store/activity-catalog.js.map +0 -1
- package/lib/esm/store/agent.js +0 -2
- package/lib/esm/store/agent.js.map +0 -1
- package/lib/esm/store/collections.js +0 -6
- package/lib/esm/store/collections.js.map +0 -1
- package/lib/esm/store/common.js +0 -2
- package/lib/esm/store/common.js.map +0 -1
- package/lib/esm/store/doc-analyzer.js +0 -2
- package/lib/esm/store/doc-analyzer.js.map +0 -1
- package/lib/esm/store/dsl-workflow.js +0 -2
- package/lib/esm/store/dsl-workflow.js.map +0 -1
- package/lib/esm/store/index.js +0 -12
- package/lib/esm/store/index.js.map +0 -1
- package/lib/esm/store/object-types.js +0 -95
- package/lib/esm/store/object-types.js.map +0 -1
- package/lib/esm/store/signals.js +0 -2
- package/lib/esm/store/signals.js.map +0 -1
- package/lib/esm/store/store.js +0 -31
- package/lib/esm/store/store.js.map +0 -1
- package/lib/esm/store/temporalio.js +0 -41
- package/lib/esm/store/temporalio.js.map +0 -1
- package/lib/esm/store/workflow.js +0 -45
- package/lib/esm/store/workflow.js.map +0 -1
- package/lib/esm/tenant.js +0 -2
- package/lib/esm/tenant.js.map +0 -1
- package/lib/esm/training.js +0 -11
- package/lib/esm/training.js.map +0 -1
- package/lib/esm/transient-tokens.js +0 -6
- package/lib/esm/transient-tokens.js.map +0 -1
- package/lib/esm/user.js +0 -14
- package/lib/esm/user.js.map +0 -1
- package/lib/esm/utils/auth.js +0 -11
- package/lib/esm/utils/auth.js.map +0 -1
- package/lib/esm/utils/schemas.js +0 -61
- package/lib/esm/utils/schemas.js.map +0 -1
- package/lib/esm/utils/type-helpers.js +0 -2
- package/lib/esm/utils/type-helpers.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/Progress.d.ts +0 -21
- package/lib/types/Progress.d.ts.map +0 -1
- package/lib/types/access-control.d.ts +0 -72
- package/lib/types/access-control.d.ts.map +0 -1
- package/lib/types/analytics.d.ts +0 -36
- package/lib/types/analytics.d.ts.map +0 -1
- package/lib/types/apikey.d.ts +0 -75
- package/lib/types/apikey.d.ts.map +0 -1
- package/lib/types/apps.d.ts +0 -63
- package/lib/types/apps.d.ts.map +0 -1
- package/lib/types/common.d.ts +0 -31
- package/lib/types/common.d.ts.map +0 -1
- package/lib/types/environment.d.ts +0 -84
- package/lib/types/environment.d.ts.map +0 -1
- package/lib/types/facets.d.ts +0 -34
- package/lib/types/facets.d.ts.map +0 -1
- package/lib/types/group.d.ts +0 -21
- package/lib/types/group.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -29
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/integrations.d.ts +0 -28
- package/lib/types/integrations.d.ts.map +0 -1
- package/lib/types/interaction.d.ts +0 -427
- package/lib/types/interaction.d.ts.map +0 -1
- package/lib/types/json-schema.d.ts +0 -1
- package/lib/types/json-schema.d.ts.map +0 -1
- package/lib/types/json.d.ts +0 -1
- package/lib/types/json.d.ts.map +0 -1
- package/lib/types/meters.d.ts +0 -23
- package/lib/types/meters.d.ts.map +0 -1
- package/lib/types/model_utility.d.ts +0 -1
- package/lib/types/model_utility.d.ts.map +0 -1
- package/lib/types/payload.d.ts +0 -62
- package/lib/types/payload.d.ts.map +0 -1
- package/lib/types/project.d.ts +0 -116
- package/lib/types/project.d.ts.map +0 -1
- package/lib/types/prompt.d.ts +0 -70
- package/lib/types/prompt.d.ts.map +0 -1
- package/lib/types/query.d.ts +0 -114
- package/lib/types/query.d.ts.map +0 -1
- package/lib/types/refs.d.ts +0 -22
- package/lib/types/refs.d.ts.map +0 -1
- package/lib/types/runs.d.ts +0 -32
- package/lib/types/runs.d.ts.map +0 -1
- package/lib/types/store/activity-catalog.d.ts +0 -26
- package/lib/types/store/activity-catalog.d.ts.map +0 -1
- package/lib/types/store/agent.d.ts +0 -18
- package/lib/types/store/agent.d.ts.map +0 -1
- package/lib/types/store/collections.d.ts +0 -63
- package/lib/types/store/collections.d.ts.map +0 -1
- package/lib/types/store/common.d.ts +0 -22
- package/lib/types/store/common.d.ts.map +0 -1
- package/lib/types/store/doc-analyzer.d.ts +0 -132
- package/lib/types/store/doc-analyzer.d.ts.map +0 -1
- package/lib/types/store/dsl-workflow.d.ts +0 -238
- package/lib/types/store/dsl-workflow.d.ts.map +0 -1
- package/lib/types/store/index.d.ts +0 -11
- package/lib/types/store/index.d.ts.map +0 -1
- package/lib/types/store/object-types.d.ts +0 -23
- package/lib/types/store/object-types.d.ts.map +0 -1
- package/lib/types/store/signals.d.ts +0 -5
- package/lib/types/store/signals.d.ts.map +0 -1
- package/lib/types/store/store.d.ts +0 -294
- package/lib/types/store/store.d.ts.map +0 -1
- package/lib/types/store/temporalio.d.ts +0 -16
- package/lib/types/store/temporalio.d.ts.map +0 -1
- package/lib/types/store/workflow.d.ts +0 -345
- package/lib/types/store/workflow.d.ts.map +0 -1
- package/lib/types/tenant.d.ts +0 -10
- package/lib/types/tenant.d.ts.map +0 -1
- package/lib/types/training.d.ts +0 -38
- package/lib/types/training.d.ts.map +0 -1
- package/lib/types/transient-tokens.d.ts +0 -24
- package/lib/types/transient-tokens.d.ts.map +0 -1
- package/lib/types/user.d.ts +0 -113
- package/lib/types/user.d.ts.map +0 -1
- package/lib/types/utils/auth.d.ts +0 -3
- package/lib/types/utils/auth.d.ts.map +0 -1
- package/lib/types/utils/schemas.d.ts +0 -7
- package/lib/types/utils/schemas.d.ts.map +0 -1
- package/lib/types/utils/type-helpers.d.ts +0 -3
- package/lib/types/utils/type-helpers.d.ts.map +0 -1
- package/lib/vertesia-common.js +0 -2
- package/lib/vertesia-common.js.map +0 -1
|
@@ -1,427 +0,0 @@
|
|
|
1
|
-
import type { JSONObject, JSONSchema, Modalities, ModelOptions, StatelessExecutionOptions, ToolDefinition, ToolUse } from "@llumiverse/common";
|
|
2
|
-
import type { JSONSchema4 } from "json-schema";
|
|
3
|
-
import { ExecutionTokenUsage } from "@llumiverse/common";
|
|
4
|
-
import { ExecutionEnvironmentRef } from "./environment.js";
|
|
5
|
-
import { ProjectRef } from "./project.js";
|
|
6
|
-
import { PopulatedPromptSegmentDef, PromptSegmentDef, PromptTemplateRef, PromptTemplateRefWithSchema } from "./prompt.js";
|
|
7
|
-
import { ExecutionRunDocRef } from "./runs.js";
|
|
8
|
-
import { AccountRef } from "./user.js";
|
|
9
|
-
export interface InteractionExecutionError {
|
|
10
|
-
code: string;
|
|
11
|
-
message: string;
|
|
12
|
-
data?: any;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The payload to query the interaction endpoints
|
|
16
|
-
*/
|
|
17
|
-
export interface InteractionEndpointQuery {
|
|
18
|
-
limit?: number;
|
|
19
|
-
offset?: number;
|
|
20
|
-
status?: InteractionStatus;
|
|
21
|
-
visibility?: InteractionVisibility;
|
|
22
|
-
version?: number;
|
|
23
|
-
tags?: string[];
|
|
24
|
-
/**
|
|
25
|
-
* Filter by interaction endpoint name to include only the specified endpoints
|
|
26
|
-
* * If both includes and excludes are specified then only the includes filter will be used.
|
|
27
|
-
*/
|
|
28
|
-
includes?: string[];
|
|
29
|
-
/**
|
|
30
|
-
* Filter by interaction endpoint name to excludes the specified endpoints.
|
|
31
|
-
* If both includes and excludes are specified then only the includes filter will be used.
|
|
32
|
-
*/
|
|
33
|
-
excludes?: string[];
|
|
34
|
-
/**
|
|
35
|
-
* Whether or not to return the parameters schema.
|
|
36
|
-
* The parameters schema is an array of JSON schemas.
|
|
37
|
-
* Each schema is a JSON schema that describes the parameters of an interaction prompt.
|
|
38
|
-
*/
|
|
39
|
-
include_params_schema?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Whether or not to return the result schema
|
|
42
|
-
*/
|
|
43
|
-
include_result_schema?: boolean;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* A description of an interaction endpoint.
|
|
47
|
-
*/
|
|
48
|
-
export interface InteractionEndpoint {
|
|
49
|
-
id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
endpoint: string;
|
|
52
|
-
description?: string;
|
|
53
|
-
status: InteractionStatus;
|
|
54
|
-
visibility?: InteractionVisibility;
|
|
55
|
-
version: number;
|
|
56
|
-
tags: string[];
|
|
57
|
-
output_modality?: Modalities;
|
|
58
|
-
result_schema?: JSONSchema;
|
|
59
|
-
params_schema?: JSONSchema;
|
|
60
|
-
}
|
|
61
|
-
export interface InteractionRef {
|
|
62
|
-
id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
endpoint: string;
|
|
65
|
-
parent?: string;
|
|
66
|
-
description?: string;
|
|
67
|
-
status: InteractionStatus;
|
|
68
|
-
visibility?: InteractionVisibility;
|
|
69
|
-
version: number;
|
|
70
|
-
tags: string[];
|
|
71
|
-
prompts?: PromptSegmentDef<PromptTemplateRef>[];
|
|
72
|
-
updated_at: Date;
|
|
73
|
-
}
|
|
74
|
-
export declare const InteractionRefPopulate = "id name endpoint parent description status version visibility tags updated_at prompts";
|
|
75
|
-
export declare const InteractionRefWithSchemaPopulate = "id name endpoint parent description status version visibility tags updated_at prompts result_schema";
|
|
76
|
-
export interface InteractionRefWithSchema extends Omit<InteractionRef, "prompts"> {
|
|
77
|
-
result_schema?: JSONSchema4;
|
|
78
|
-
prompts?: PromptSegmentDef<PromptTemplateRefWithSchema>[];
|
|
79
|
-
}
|
|
80
|
-
export interface InteractionsExportPayload {
|
|
81
|
-
/**
|
|
82
|
-
* The name of the interaction. If not specified all the interactions in the current project will be exported
|
|
83
|
-
*/
|
|
84
|
-
name?: string;
|
|
85
|
-
tags?: string[];
|
|
86
|
-
versions?: (number | "draft" | "latest")[];
|
|
87
|
-
}
|
|
88
|
-
export declare enum InteractionStatus {
|
|
89
|
-
draft = "draft",
|
|
90
|
-
published = "published",
|
|
91
|
-
archived = "archived"
|
|
92
|
-
}
|
|
93
|
-
export declare enum ExecutionRunStatus {
|
|
94
|
-
created = "created",
|
|
95
|
-
processing = "processing",
|
|
96
|
-
completed = "completed",
|
|
97
|
-
failed = "failed"
|
|
98
|
-
}
|
|
99
|
-
export declare enum RunDataStorageLevel {
|
|
100
|
-
STANDARD = "STANDARD",
|
|
101
|
-
RESTRICTED = "RESTRICTED",
|
|
102
|
-
DEBUG = "DEBUG"
|
|
103
|
-
}
|
|
104
|
-
export declare enum RunDataStorageDescription {
|
|
105
|
-
STANDARD = "Run data is stored for both the model inputs and output.",
|
|
106
|
-
RESTRICTED = "No run data is stored for the model inputs \u2014 only the model output.",
|
|
107
|
-
DEBUG = "Run data is stored for the model inputs and output, schema, and final prompt."
|
|
108
|
-
}
|
|
109
|
-
export declare const RunDataStorageOptions: Record<RunDataStorageLevel, RunDataStorageDescription>;
|
|
110
|
-
/**
|
|
111
|
-
* Schema can be stored or specified as a reference to an external schema.
|
|
112
|
-
* We only support "store:" references for now
|
|
113
|
-
*/
|
|
114
|
-
export interface SchemaRef {
|
|
115
|
-
$uri: string;
|
|
116
|
-
}
|
|
117
|
-
export interface CachePolicy {
|
|
118
|
-
type: "cache" | "no_cache" | "cache_and_refresh";
|
|
119
|
-
refresh_probability: number;
|
|
120
|
-
varies_on: string[];
|
|
121
|
-
ttl: number;
|
|
122
|
-
}
|
|
123
|
-
export type InteractionVisibility = "public" | "private";
|
|
124
|
-
export interface Interaction {
|
|
125
|
-
readonly id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
endpoint: string;
|
|
128
|
-
description?: string;
|
|
129
|
-
status: InteractionStatus;
|
|
130
|
-
parent?: string;
|
|
131
|
-
visibility: InteractionVisibility;
|
|
132
|
-
version: number;
|
|
133
|
-
tags: string[];
|
|
134
|
-
test_data?: JSONObject;
|
|
135
|
-
interaction_schema?: JSONSchema4 | SchemaRef;
|
|
136
|
-
result_schema?: JSONSchema4 | SchemaRef;
|
|
137
|
-
cache_policy?: CachePolicy;
|
|
138
|
-
model: string;
|
|
139
|
-
model_options?: ModelOptions;
|
|
140
|
-
prompts: PromptSegmentDef[];
|
|
141
|
-
output_modality?: Modalities;
|
|
142
|
-
environment: string | ExecutionEnvironmentRef;
|
|
143
|
-
restriction?: RunDataStorageLevel;
|
|
144
|
-
project: string | ProjectRef;
|
|
145
|
-
last_published_at?: Date;
|
|
146
|
-
created_by: string;
|
|
147
|
-
updated_by: string;
|
|
148
|
-
created_at: Date;
|
|
149
|
-
updated_at: Date;
|
|
150
|
-
}
|
|
151
|
-
export interface PopulatedInteraction extends Omit<Interaction, "prompts"> {
|
|
152
|
-
prompts: PopulatedPromptSegmentDef[];
|
|
153
|
-
}
|
|
154
|
-
export interface InteractionCreatePayload extends Omit<Interaction, "id" | "created_at" | "updated_at" | "created_by" | "updated_by" | "project" | "formatter" | "tags" | "parent" | "version" | "visibility" | "endpoint"> {
|
|
155
|
-
visibility?: InteractionVisibility;
|
|
156
|
-
}
|
|
157
|
-
export interface InteractionUpdatePayload extends Partial<Omit<Interaction, "result_schema" | "id" | "created_at" | "updated_at" | "created_by" | "updated_by" | "project">> {
|
|
158
|
-
result_schema?: JSONSchema4 | null;
|
|
159
|
-
}
|
|
160
|
-
export interface InteractionPublishPayload {
|
|
161
|
-
visibility?: InteractionVisibility;
|
|
162
|
-
tags?: string[];
|
|
163
|
-
}
|
|
164
|
-
export interface InteractionForkPayload {
|
|
165
|
-
keepTags?: boolean;
|
|
166
|
-
forkPrompts?: boolean;
|
|
167
|
-
targetProject?: string;
|
|
168
|
-
}
|
|
169
|
-
export interface InteractionExecutionPayload {
|
|
170
|
-
/**
|
|
171
|
-
* If a `@memory` property exists on the input data then the value will be used as the value of a memory pack location.
|
|
172
|
-
* and the other properties of the data will contain the memory pack mapping.
|
|
173
|
-
*/
|
|
174
|
-
data?: Record<string, any> | `memory:${string}`;
|
|
175
|
-
config?: InteractionExecutionConfiguration;
|
|
176
|
-
result_schema?: JSONSchema4;
|
|
177
|
-
stream?: boolean;
|
|
178
|
-
do_validate?: boolean;
|
|
179
|
-
tags?: string | string[];
|
|
180
|
-
/**
|
|
181
|
-
* The conversation state to be used in the execution if any.
|
|
182
|
-
* If the `true` is passed then the conversation will be returned in the result.
|
|
183
|
-
* The true value must be used for the first execution that starts the conversation.
|
|
184
|
-
* If conversation is falsy then no conversation is returned back.
|
|
185
|
-
* For regular executions the conversation is not returned back to save memory.
|
|
186
|
-
*/
|
|
187
|
-
conversation?: true | unknown;
|
|
188
|
-
/**
|
|
189
|
-
* The tools to be used in the execution
|
|
190
|
-
*/
|
|
191
|
-
tool_definitions?: ToolDefinition[];
|
|
192
|
-
/**
|
|
193
|
-
* The workflow related to this Interaction Run.
|
|
194
|
-
*/
|
|
195
|
-
workflow?: ExecutionRunWorkflow;
|
|
196
|
-
}
|
|
197
|
-
export interface NamedInteractionExecutionPayload extends InteractionExecutionPayload {
|
|
198
|
-
/**
|
|
199
|
-
* The interaction name and suffixed by an optional tag or version separated from the name using a @ character
|
|
200
|
-
* If no version/tag part is specified then the latest version is used.
|
|
201
|
-
* Example: ReviewContract, ReviewContract@draft, ReviewContract@1, ReviewContract@some-tag
|
|
202
|
-
*/
|
|
203
|
-
interaction: string;
|
|
204
|
-
}
|
|
205
|
-
export type ToolRef = string | {
|
|
206
|
-
name: string;
|
|
207
|
-
description: string;
|
|
208
|
-
};
|
|
209
|
-
interface AsyncExecutionPayloadBase extends Omit<NamedInteractionExecutionPayload, "toolDefinitions" | "stream"> {
|
|
210
|
-
type: "conversation" | "interaction";
|
|
211
|
-
/**
|
|
212
|
-
* An array of endpoint URLs to be notified upon execution
|
|
213
|
-
*/
|
|
214
|
-
notify_endpoints?: string[];
|
|
215
|
-
task_queue?: string;
|
|
216
|
-
}
|
|
217
|
-
export type ConversationVisibility = 'private' | 'project';
|
|
218
|
-
export interface AsyncConversationExecutionPayload extends AsyncExecutionPayloadBase {
|
|
219
|
-
type: "conversation";
|
|
220
|
-
/**
|
|
221
|
-
* Visibility determine if the conversation should be seen by the user only or by anyone with access to the project
|
|
222
|
-
* If not specified, the default is project
|
|
223
|
-
**/
|
|
224
|
-
visibility?: ConversationVisibility;
|
|
225
|
-
/**
|
|
226
|
-
* The tools to use, list of tool or function names.
|
|
227
|
-
* You can use + and - to add or remove from default, if no sign, then list replaces default
|
|
228
|
-
*/
|
|
229
|
-
tool_names?: string[];
|
|
230
|
-
/**
|
|
231
|
-
* The maximum number of iterations in case of a conversation. If <=0 the default of 20 will be used.
|
|
232
|
-
*/
|
|
233
|
-
max_iterations?: number;
|
|
234
|
-
/**
|
|
235
|
-
* Whether the conversation should be interactive or not
|
|
236
|
-
*/
|
|
237
|
-
interactive?: boolean;
|
|
238
|
-
/**
|
|
239
|
-
* Whether to disable the generation of interaction tools or not.
|
|
240
|
-
*/
|
|
241
|
-
disable_interaction_tools?: boolean;
|
|
242
|
-
/**
|
|
243
|
-
* On which scope should the searched by applied, by the search_tool.
|
|
244
|
-
* Only supports collection scope or null for now.
|
|
245
|
-
*/
|
|
246
|
-
search_scope?: string;
|
|
247
|
-
/**
|
|
248
|
-
* The collection in which this workflow is executing
|
|
249
|
-
*/
|
|
250
|
-
collection_id?: string;
|
|
251
|
-
/**
|
|
252
|
-
* The token threshold in thousands (K) for creating checkpoints.
|
|
253
|
-
* If total tokens exceed this value, a checkpoint will be created.
|
|
254
|
-
* If not specified, default value of 150K tokens will be used.
|
|
255
|
-
*/
|
|
256
|
-
checkpoint_tokens?: number;
|
|
257
|
-
/** In child execution workflow, this is the curent task_id */
|
|
258
|
-
task_id?: string;
|
|
259
|
-
/** Whether to enable debug mode */
|
|
260
|
-
debug_mode?: boolean;
|
|
261
|
-
/** Maximum depth for nested conversations to prevent infinite recursion (default: 5) */
|
|
262
|
-
max_nested_conversation_depth?: number;
|
|
263
|
-
}
|
|
264
|
-
export interface AsyncInteractionExecutionPayload extends AsyncExecutionPayloadBase {
|
|
265
|
-
type: "interaction";
|
|
266
|
-
/**
|
|
267
|
-
* Only used for non conversation workflows to include the error on next retry.
|
|
268
|
-
* If tools is defined this is not used
|
|
269
|
-
*/
|
|
270
|
-
include_previous_error?: boolean;
|
|
271
|
-
}
|
|
272
|
-
export type AsyncExecutionPayload = AsyncConversationExecutionPayload | AsyncInteractionExecutionPayload;
|
|
273
|
-
interface ResumeConversationPayload {
|
|
274
|
-
run: ExecutionRunDocRef;
|
|
275
|
-
environment: string;
|
|
276
|
-
options: StatelessExecutionOptions;
|
|
277
|
-
conversation: unknown;
|
|
278
|
-
tools: ToolDefinition[];
|
|
279
|
-
}
|
|
280
|
-
export interface ToolResultContent {
|
|
281
|
-
content: string;
|
|
282
|
-
is_error: boolean;
|
|
283
|
-
files?: string[];
|
|
284
|
-
}
|
|
285
|
-
export interface ToolResult extends ToolResultContent {
|
|
286
|
-
tool_use_id: string;
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* The payload to sent the tool responses back to the target LLM
|
|
290
|
-
*/
|
|
291
|
-
export interface ToolResultsPayload extends ResumeConversationPayload {
|
|
292
|
-
results: ToolResult[];
|
|
293
|
-
}
|
|
294
|
-
export interface UserMessagePayload extends ResumeConversationPayload {
|
|
295
|
-
message: string;
|
|
296
|
-
}
|
|
297
|
-
export type CheckpointConversationPayload = Omit<ToolResultsPayload, "results">;
|
|
298
|
-
export declare enum RunSourceTypes {
|
|
299
|
-
api = "api",
|
|
300
|
-
cli = "cli",
|
|
301
|
-
ui = "ui",
|
|
302
|
-
webhook = "webhook",
|
|
303
|
-
test = "test-data",
|
|
304
|
-
system = "system"
|
|
305
|
-
}
|
|
306
|
-
export interface RunSource {
|
|
307
|
-
type: RunSourceTypes;
|
|
308
|
-
label: string;
|
|
309
|
-
principal_type: "user" | "apikey";
|
|
310
|
-
principal_id: string;
|
|
311
|
-
client_ip: string;
|
|
312
|
-
}
|
|
313
|
-
export interface ExecutionRun<P = any, R = any> {
|
|
314
|
-
readonly id: string;
|
|
315
|
-
/**
|
|
316
|
-
* Only used by runs that were created by a virtual run to point toward the virtual run parent
|
|
317
|
-
*/
|
|
318
|
-
parent?: string | ExecutionRun;
|
|
319
|
-
evaluation?: {
|
|
320
|
-
score?: number;
|
|
321
|
-
selected?: boolean;
|
|
322
|
-
scores?: Record<string, number>;
|
|
323
|
-
};
|
|
324
|
-
result: R;
|
|
325
|
-
/**
|
|
326
|
-
* The parameters used to create the interaction.
|
|
327
|
-
* If the parameters contains the special property "@memory" it will be used
|
|
328
|
-
* to locate a memory pack and the other properties will be used as the memory pack mapping.
|
|
329
|
-
*/
|
|
330
|
-
parameters: P;
|
|
331
|
-
tags?: string[];
|
|
332
|
-
interaction: Interaction;
|
|
333
|
-
environment: ExecutionEnvironmentRef;
|
|
334
|
-
modelId: string;
|
|
335
|
-
result_schema: JSONSchema4;
|
|
336
|
-
ttl: number;
|
|
337
|
-
status: ExecutionRunStatus;
|
|
338
|
-
finish_reason?: string;
|
|
339
|
-
prompt: any;
|
|
340
|
-
token_use?: ExecutionTokenUsage;
|
|
341
|
-
chunks?: number;
|
|
342
|
-
execution_time?: number;
|
|
343
|
-
created_at: Date;
|
|
344
|
-
updated_at: Date;
|
|
345
|
-
account: AccountRef;
|
|
346
|
-
project: ProjectRef;
|
|
347
|
-
config: InteractionExecutionConfiguration;
|
|
348
|
-
error?: InteractionExecutionError;
|
|
349
|
-
source: RunSource;
|
|
350
|
-
output_modality: Modalities;
|
|
351
|
-
created_by: string;
|
|
352
|
-
updated_by: string;
|
|
353
|
-
/**
|
|
354
|
-
* The Vertesia Workflow related to this Interaction Run.
|
|
355
|
-
*
|
|
356
|
-
* This is only set when the interaction is executed as part of a workflow.
|
|
357
|
-
*
|
|
358
|
-
* @since 0.60.0
|
|
359
|
-
*/
|
|
360
|
-
workflow?: ExecutionRunWorkflow;
|
|
361
|
-
}
|
|
362
|
-
export interface ExecutionRunWorkflow {
|
|
363
|
-
/**
|
|
364
|
-
* The Temporal Workflow Run ID related to this Interaction Run.
|
|
365
|
-
*
|
|
366
|
-
* A Run ID is a globally unique, platform-level identifier for a Workflow Execution.
|
|
367
|
-
*
|
|
368
|
-
* @example 01970d37-a890-70c0-9f44-1256d063e69a
|
|
369
|
-
* @see https://docs.temporal.io/workflow-execution/workflowid-runid
|
|
370
|
-
*/
|
|
371
|
-
run_id: string;
|
|
372
|
-
/**
|
|
373
|
-
* The Temporal Workflow ID related to this Interaction Run.
|
|
374
|
-
*
|
|
375
|
-
* @example Standard Document Intake:6834841e4f828d4e36192796
|
|
376
|
-
* @see https://docs.temporal.io/workflow-execution/workflowid-runid
|
|
377
|
-
*/
|
|
378
|
-
workflow_id: string;
|
|
379
|
-
/**
|
|
380
|
-
* The Temporal Activity Type used for executing this Interaction. Undefined if the interaction
|
|
381
|
-
* was not executed as part of a workflow (such as Agent Runner).
|
|
382
|
-
*
|
|
383
|
-
* @example generateDocumentProperties
|
|
384
|
-
*/
|
|
385
|
-
activity_type?: string;
|
|
386
|
-
}
|
|
387
|
-
export interface InteractionExecutionResult<P = any, R = any> extends ExecutionRun<P, R> {
|
|
388
|
-
tool_use?: ToolUse[];
|
|
389
|
-
conversation?: unknown;
|
|
390
|
-
options?: StatelessExecutionOptions;
|
|
391
|
-
}
|
|
392
|
-
export interface ExecutionRunRef extends Omit<ExecutionRun, "result" | "parameters" | "interaction"> {
|
|
393
|
-
interaction: InteractionRef;
|
|
394
|
-
}
|
|
395
|
-
export declare const ExecutionRunRefSelect = "-result -parameters -result_schema -prompt";
|
|
396
|
-
export declare enum ConfigModes {
|
|
397
|
-
RUN_AND_INTERACTION_CONFIG = "RUN_AND_INTERACTION_CONFIG",
|
|
398
|
-
RUN_CONFIG_ONLY = "RUN_CONFIG_ONLY",
|
|
399
|
-
INTERACTION_CONFIG_ONLY = "INTERACTION_CONFIG_ONLY"
|
|
400
|
-
}
|
|
401
|
-
export declare enum ConfigModesDescription {
|
|
402
|
-
RUN_AND_INTERACTION_CONFIG = "This run configuration is used. Undefined options are filled with interaction configuration.",
|
|
403
|
-
RUN_CONFIG_ONLY = "Only this run configuration is used. Undefined options remain undefined.",
|
|
404
|
-
INTERACTION_CONFIG_ONLY = "Only interaction configuration is used."
|
|
405
|
-
}
|
|
406
|
-
export declare const ConfigModesOptions: Record<ConfigModes, ConfigModesDescription>;
|
|
407
|
-
export interface InteractionExecutionConfiguration {
|
|
408
|
-
environment?: string;
|
|
409
|
-
model?: string;
|
|
410
|
-
do_validate?: boolean;
|
|
411
|
-
run_data?: RunDataStorageLevel;
|
|
412
|
-
configMode?: ConfigModes;
|
|
413
|
-
model_options?: ModelOptions;
|
|
414
|
-
}
|
|
415
|
-
export interface GenerateInteractionPayload {
|
|
416
|
-
description: string;
|
|
417
|
-
config: InteractionExecutionConfiguration;
|
|
418
|
-
}
|
|
419
|
-
export interface GenerateTestDataPayload {
|
|
420
|
-
message?: string;
|
|
421
|
-
count?: number;
|
|
422
|
-
config: InteractionExecutionConfiguration;
|
|
423
|
-
}
|
|
424
|
-
export interface ImprovePromptPayload {
|
|
425
|
-
config: InteractionExecutionConfiguration;
|
|
426
|
-
}
|
|
427
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../../src/interaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,yBAAyB,EACzB,cAAc,EACd,OAAO,EACV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACH,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,yBAAyB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,M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chemaType, JSONSchemaTypeName, } from "@llumiverse/common";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../src/json-schema.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,kBAAkB,GACrB,MAAM,oBAAoB,CAAC"}
|
package/lib/types/json.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { JSONArray, JSONComposite, JSONObject, JSONPrimitive, JSONValue } from "@llumiverse/common";
|
package/lib/types/json.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/json.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,SAAS,EAAE,aAAa,EAAE,UAAU,EACpC,aAAa,EAAE,SAAS,EAC3B,MAAM,oBAAoB,CAAC"}
|
package/lib/types/meters.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BillingMethod } from "./user.js";
|
|
2
|
-
export interface MeterAdjustment {
|
|
3
|
-
meter: string;
|
|
4
|
-
value: string;
|
|
5
|
-
identifier?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface AdjustMetersMeterWorkflowParams {
|
|
8
|
-
adjustments: MeterAdjustment[];
|
|
9
|
-
}
|
|
10
|
-
export declare enum MeterNames {
|
|
11
|
-
analyzed_pages = "analyzed_pages",
|
|
12
|
-
extracted_tables = "extracted_tables",
|
|
13
|
-
analyzed_images = "analyzed_images",
|
|
14
|
-
input_token_used = "input_token_used",
|
|
15
|
-
output_token_used = "output_token_used",
|
|
16
|
-
task_run = "task_run"
|
|
17
|
-
}
|
|
18
|
-
export interface StripeBillingStatusResponse {
|
|
19
|
-
status: 'enabled' | 'disabled';
|
|
20
|
-
billing_method: BillingMethod | null;
|
|
21
|
-
portal_url?: string;
|
|
22
|
-
reason?: string;
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meters.d.ts","sourceRoot":"","sources":["../../src/meters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,+BAA+B;IAC5C,WAAW,EAAE,eAAe,EAAE,CAAC;CAClC;AAED,oBAAY,UAAU;IAClB,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,QAAQ,aAAa;CACxB;AAGD,MAAM,WAAW,2BAA2B;IACxC,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC;IAC/B,cAAc,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { supportsToolUse } from "@llumiverse/common";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model_utility.d.ts","sourceRoot":"","sources":["../../src/model_utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
package/lib/types/payload.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { FacetSpec } from "./facets.js";
|
|
2
|
-
import { ComplexCollectionSearchQuery, ComplexSearchQuery, InteractionSearchQuery, ObjectSearchQuery, ObjectTypeSearchQuery, PromptSearchQuery, RunSearchQuery, SimpleSearchQuery } from "./query.js";
|
|
3
|
-
export interface SearchPayload {
|
|
4
|
-
facets?: FacetSpec[];
|
|
5
|
-
/**
|
|
6
|
-
* If the facets should respect "limit"
|
|
7
|
-
* If true, the facet count be limited to the number of results in the query.
|
|
8
|
-
* If false, the facet count will be calculated over all objects.
|
|
9
|
-
* Default is true.
|
|
10
|
-
*/
|
|
11
|
-
limit_facets?: boolean;
|
|
12
|
-
query?: SimpleSearchQuery;
|
|
13
|
-
limit?: number;
|
|
14
|
-
offset?: number;
|
|
15
|
-
select?: string;
|
|
16
|
-
all_revisions?: boolean;
|
|
17
|
-
from_root?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface ComputeFacetPayload {
|
|
20
|
-
facets: FacetSpec[];
|
|
21
|
-
query?: SimpleSearchQuery;
|
|
22
|
-
}
|
|
23
|
-
export interface InteractionSearchPayload extends SearchPayload {
|
|
24
|
-
query?: InteractionSearchQuery;
|
|
25
|
-
}
|
|
26
|
-
export interface ObjectSearchPayload extends SearchPayload {
|
|
27
|
-
query?: ObjectSearchQuery;
|
|
28
|
-
}
|
|
29
|
-
export interface ObjectTypeSearchPayload extends SearchPayload {
|
|
30
|
-
query?: ObjectTypeSearchQuery;
|
|
31
|
-
}
|
|
32
|
-
export interface PromptSearchPayload extends SearchPayload {
|
|
33
|
-
query?: PromptSearchQuery;
|
|
34
|
-
}
|
|
35
|
-
export interface RunSearchPayload extends SearchPayload {
|
|
36
|
-
query?: RunSearchQuery;
|
|
37
|
-
}
|
|
38
|
-
export interface ComputeCollectionFacetPayload extends Omit<ComputeFacetPayload, 'query'> {
|
|
39
|
-
query?: ComplexCollectionSearchQuery;
|
|
40
|
-
}
|
|
41
|
-
export interface ComputeInteractionFacetPayload extends ComputeFacetPayload {
|
|
42
|
-
query?: InteractionSearchQuery;
|
|
43
|
-
}
|
|
44
|
-
export interface ComputeObjectFacetPayload extends ComputeFacetPayload {
|
|
45
|
-
query?: ComplexSearchQuery;
|
|
46
|
-
}
|
|
47
|
-
export interface ComputePromptFacetPayload extends ComputeFacetPayload {
|
|
48
|
-
query?: PromptSearchQuery;
|
|
49
|
-
}
|
|
50
|
-
export interface ComputeRunFacetPayload extends ComputeFacetPayload {
|
|
51
|
-
query?: RunSearchQuery;
|
|
52
|
-
}
|
|
53
|
-
export interface ExportPropertiesPayload {
|
|
54
|
-
objectIds: string[];
|
|
55
|
-
type: string;
|
|
56
|
-
query?: ComplexSearchQuery;
|
|
57
|
-
}
|
|
58
|
-
export interface ExportPropertiesResponse {
|
|
59
|
-
type: string;
|
|
60
|
-
name: string;
|
|
61
|
-
data: Blob;
|
|
62
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACH,4BAA4B,EAC5B,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACpB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,aAAa;IAC1B,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAyB,SAAQ,aAAa;IAC3D,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAClC;AAED,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC1D,KAAK,CAAC,EAAE,qBAAqB,CAAC;CACjC;AAED,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACnD,KAAK,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,MAAM,WAAW,6BAA8B,SAAQ,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACrF,KAAK,CAAC,EAAE,4BAA4B,CAAC;CACxC;AAED,MAAM,WAAW,8BAA+B,SAAQ,mBAAmB;IACvE,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAClC;AAED,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IAClE,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AAED,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IAClE,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IAC/D,KAAK,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACpC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;CACd"}
|
package/lib/types/project.d.ts
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { SupportedIntegrations } from "./integrations.js";
|
|
2
|
-
import { AccountRef } from "./user.js";
|
|
3
|
-
export interface ICreateProjectPayload {
|
|
4
|
-
name: string;
|
|
5
|
-
namespace: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
auto_config?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare enum ProjectRoles {
|
|
10
|
-
owner = "owner",// all permissions
|
|
11
|
-
admin = "admin",// all permissions
|
|
12
|
-
project_admin = "project_admin",// all permissions but manage_account, manage_billing
|
|
13
|
-
developer = "developer",// all permissions but manage_account, manage_billing, manage_roles, delete
|
|
14
|
-
application = "application",// executor + request_pk
|
|
15
|
-
consumer = "consumer",// required permissions for users of micro apps
|
|
16
|
-
executor = "executor",// can only read and execute interactions
|
|
17
|
-
reader = "reader",// can only read (browse)
|
|
18
|
-
billing = "billing",// can only manage billings
|
|
19
|
-
member = "member",// can only access, but no specific permissions
|
|
20
|
-
app_member = "app_member",// used to mark an user have access to an application. does not provide any permission on its own
|
|
21
|
-
content_superadmin = "content_superadmin"
|
|
22
|
-
}
|
|
23
|
-
export declare function isRoleIncludedIn(role: string, includingRole: string): boolean;
|
|
24
|
-
export interface PopulatedProjectRef {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
account: AccountRef;
|
|
28
|
-
}
|
|
29
|
-
export interface ProjectRef {
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
account: string;
|
|
33
|
-
/**
|
|
34
|
-
* Only set when fetching the list of projects visible to an user which is an org admin or owner.
|
|
35
|
-
* If present and true, it means that the project is not accessible to the user.(even if it visible in listing)
|
|
36
|
-
* If not present or false then the project is accessible to the user.
|
|
37
|
-
*/
|
|
38
|
-
restricted?: boolean;
|
|
39
|
-
}
|
|
40
|
-
export declare enum ResourceVisibility {
|
|
41
|
-
public = "public",
|
|
42
|
-
account = "account",
|
|
43
|
-
project = "project"
|
|
44
|
-
}
|
|
45
|
-
export interface ProjectConfiguration {
|
|
46
|
-
human_context: string;
|
|
47
|
-
default_environment?: string;
|
|
48
|
-
default_model?: string;
|
|
49
|
-
embeddings: {
|
|
50
|
-
text?: ProjectConfigurationEmbeddings;
|
|
51
|
-
image?: ProjectConfigurationEmbeddings;
|
|
52
|
-
properties?: ProjectConfigurationEmbeddings;
|
|
53
|
-
};
|
|
54
|
-
datacenter?: string;
|
|
55
|
-
storage_bucket?: string;
|
|
56
|
-
}
|
|
57
|
-
export declare enum SupportedEmbeddingTypes {
|
|
58
|
-
text = "text",
|
|
59
|
-
image = "image",
|
|
60
|
-
properties = "properties"
|
|
61
|
-
}
|
|
62
|
-
export declare enum FullTextType {
|
|
63
|
-
full_text = "full_text"
|
|
64
|
-
}
|
|
65
|
-
export type SearchTypes = SupportedEmbeddingTypes | FullTextType;
|
|
66
|
-
export declare const SearchTypes: {
|
|
67
|
-
readonly full_text: FullTextType.full_text;
|
|
68
|
-
readonly text: SupportedEmbeddingTypes.text;
|
|
69
|
-
readonly image: SupportedEmbeddingTypes.image;
|
|
70
|
-
readonly properties: SupportedEmbeddingTypes.properties;
|
|
71
|
-
};
|
|
72
|
-
export interface ProjectConfigurationEmbeddings {
|
|
73
|
-
environment: string;
|
|
74
|
-
enabled: boolean;
|
|
75
|
-
dimensions: number;
|
|
76
|
-
max_tokens?: number;
|
|
77
|
-
model?: string;
|
|
78
|
-
}
|
|
79
|
-
export interface Project {
|
|
80
|
-
id: string;
|
|
81
|
-
name: string;
|
|
82
|
-
namespace: string;
|
|
83
|
-
description?: string;
|
|
84
|
-
account: string;
|
|
85
|
-
configuration: ProjectConfiguration;
|
|
86
|
-
integrations: Map<string, any>;
|
|
87
|
-
plugins: string[];
|
|
88
|
-
created_by: string;
|
|
89
|
-
updated_by: string;
|
|
90
|
-
created_at: Date;
|
|
91
|
-
updated_at: Date;
|
|
92
|
-
}
|
|
93
|
-
export interface ProjectCreatePayload {
|
|
94
|
-
name: string;
|
|
95
|
-
description?: string;
|
|
96
|
-
}
|
|
97
|
-
export interface ProjectUpdatePayload extends Partial<Project> {
|
|
98
|
-
}
|
|
99
|
-
export declare const ProjectRefPopulate = "id name account";
|
|
100
|
-
export interface EmbeddingsStatusResponse {
|
|
101
|
-
status: string;
|
|
102
|
-
embeddingRunsInProgress: number;
|
|
103
|
-
totalRunsInProgress: number;
|
|
104
|
-
totalIndexableObjects: number;
|
|
105
|
-
embeddingsModels: string[];
|
|
106
|
-
objectsWithEmbeddings: number;
|
|
107
|
-
vectorIndex: {
|
|
108
|
-
status: "READY" | "PENDING" | "DELETING" | "ABSENT";
|
|
109
|
-
name?: string;
|
|
110
|
-
type?: string;
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
export interface ProjectIntegrationListEntry {
|
|
114
|
-
id: SupportedIntegrations;
|
|
115
|
-
enabled: boolean;
|
|
116
|
-
}
|