@stigmer/protos 0.5.0 → 1.0.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/ai/stigmer/agentic/agentexecution/v1/api_pb.d.ts +7 -0
- package/ai/stigmer/agentic/agentexecution/v1/api_pb.js +2 -1
- package/ai/stigmer/agentic/agentexecution/v1/api_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +54 -0
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +56 -1
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +149 -1
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +50 -2
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.d.ts +31 -0
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.js +32 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.d.ts +31 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.js +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.d.ts +16 -0
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js +2 -1
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +68 -0
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +6 -1
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
- package/ai/stigmer/agentic/artifact/v1/api_pb.d.ts +152 -0
- package/ai/stigmer/agentic/artifact/v1/api_pb.js +24 -0
- package/ai/stigmer/agentic/artifact/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/command_connect.d.ts +83 -0
- package/ai/stigmer/agentic/artifact/v1/command_connect.js +92 -0
- package/ai/stigmer/agentic/artifact/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/command_pb.d.ts +86 -0
- package/ai/stigmer/agentic/artifact/v1/command_pb.js +36 -0
- package/ai/stigmer/agentic/artifact/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/enum_pb.d.ts +49 -0
- package/ai/stigmer/agentic/artifact/v1/enum_pb.js +54 -0
- package/ai/stigmer/agentic/artifact/v1/enum_pb.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/io_pb.d.ts +205 -0
- package/ai/stigmer/agentic/artifact/v1/io_pb.js +37 -0
- package/ai/stigmer/agentic/artifact/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/query_connect.d.ts +127 -0
- package/ai/stigmer/agentic/artifact/v1/query_connect.js +135 -0
- package/ai/stigmer/agentic/artifact/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/query_pb.d.ts +128 -0
- package/ai/stigmer/agentic/artifact/v1/query_pb.js +32 -0
- package/ai/stigmer/agentic/artifact/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/spec_pb.d.ts +161 -0
- package/ai/stigmer/agentic/artifact/v1/spec_pb.js +25 -0
- package/ai/stigmer/agentic/artifact/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/runner/v1/api_pb.d.ts +33 -0
- package/ai/stigmer/agentic/runner/v1/api_pb.js +1 -1
- package/ai/stigmer/agentic/runner/v1/api_pb.js.map +1 -1
- package/ai/stigmer/agentic/runner/v1/io_pb.d.ts +15 -1
- package/ai/stigmer/agentic/runner/v1/io_pb.js +1 -1
- package/ai/stigmer/agentic/runner/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/command_connect.d.ts +30 -0
- package/ai/stigmer/agentic/workflow/v1/command_connect.js +31 -0
- package/ai/stigmer/agentic/workflow/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/command_pb.d.ts +30 -0
- package/ai/stigmer/agentic/workflow/v1/command_pb.js +2 -1
- package/ai/stigmer/agentic/workflow/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/enum_pb.d.ts +141 -1
- package/ai/stigmer/agentic/workflow/v1/enum_pb.js +142 -1
- package/ai/stigmer/agentic/workflow/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/spec_pb.d.ts +132 -1
- package/ai/stigmer/agentic/workflow/v1/spec_pb.js +10 -5
- package/ai/stigmer/agentic/workflow/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.d.ts +430 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.js +172 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.d.ts +39 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.js +46 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.d.ts +41 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.js +28 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.d.ts +186 -4
- package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js +10 -2
- package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.d.ts +67 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.js +72 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.d.ts +147 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.js +22 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.d.ts +341 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.js +128 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.d.ts +129 -2
- package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.js +56 -2
- package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.d.ts +284 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.js +80 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.d.ts +186 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.js +18 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.d.ts +160 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.js +16 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.d.ts +124 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.js +65 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.d.ts +19 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.js +1 -1
- package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.d.ts +257 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.js +79 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/api_pb.d.ts +96 -0
- package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/command_connect.d.ts +47 -0
- package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js +48 -1
- package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/command_pb.d.ts +47 -1
- package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/event_pb.d.ts +1287 -0
- package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js +303 -0
- package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/io_pb.d.ts +578 -72
- package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js +82 -70
- package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/query_connect.d.ts +182 -0
- package/ai/stigmer/agentic/workflowexecution/v1/query_connect.js +184 -1
- package/ai/stigmer/agentic/workflowexecution/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/query_pb.d.ts +180 -1
- package/ai/stigmer/agentic/workflowexecution/v1/query_pb.js +2 -1
- package/ai/stigmer/agentic/workflowexecution/v1/query_pb.js.map +1 -1
- package/ai/stigmer/billing/v1/io_pb.d.ts +8 -0
- package/ai/stigmer/billing/v1/io_pb.js +1 -1
- package/ai/stigmer/billing/v1/io_pb.js.map +1 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +6 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +7 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
- package/ai/stigmer/platform/v1/server_info_connect.d.ts +29 -0
- package/ai/stigmer/platform/v1/server_info_connect.js +36 -0
- package/ai/stigmer/platform/v1/server_info_connect.js.map +1 -0
- package/ai/stigmer/platform/v1/server_info_pb.d.ts +100 -0
- package/ai/stigmer/platform/v1/server_info_pb.js +65 -0
- package/ai/stigmer/platform/v1/server_info_pb.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { ArtifactSchema } from "./api_pb.js";
|
|
3
|
+
import type { CreateArtifactInputSchema } from "./io_pb.js";
|
|
4
|
+
import type { ApiResourceIdSchema } from "../../../commons/apiresource/io_pb.js";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ai/stigmer/agentic/artifact/v1/command.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ai_stigmer_agentic_artifact_v1_command: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* ArtifactCommandController handles write operations for Artifact resources.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* Follows the Command-Query Separation (CQS) pattern.
|
|
14
|
+
*
|
|
15
|
+
* These RPCs are system-level — used by the workflow-runner and agent-runner
|
|
16
|
+
* to persist task outputs. They are NOT exposed to end users or the SDK.
|
|
17
|
+
*
|
|
18
|
+
* Artifact creation flow:
|
|
19
|
+
* 1. Runner detects output exceeding auto-promotion threshold (256KB)
|
|
20
|
+
* 2. Runner calls create() with spec (metadata) + content (bytes)
|
|
21
|
+
* 3. Backend hashes content, deduplicates, stores blob, creates record
|
|
22
|
+
* 4. Runner receives Artifact with ID and status
|
|
23
|
+
* 5. Runner replaces inline task output with artifact reference
|
|
24
|
+
* 6. Runner includes artifact_created event in next updateStatus call
|
|
25
|
+
*
|
|
26
|
+
* @since T07 (Artifact Store)
|
|
27
|
+
*
|
|
28
|
+
* @generated from service ai.stigmer.agentic.artifact.v1.ArtifactCommandController
|
|
29
|
+
*/
|
|
30
|
+
export declare const ArtifactCommandController: GenService<{
|
|
31
|
+
/**
|
|
32
|
+
* Create a new artifact with content.
|
|
33
|
+
*
|
|
34
|
+
* Persists the artifact's metadata and content blob. The backend:
|
|
35
|
+
* 1. Computes SHA-256 hash of the content bytes
|
|
36
|
+
* 2. Checks for existing blob with same hash (content-addressable dedup)
|
|
37
|
+
* 3. If new: writes blob to storage (filesystem in OSS, S3 in Cloud)
|
|
38
|
+
* 4. Creates Artifact metadata record with status populated
|
|
39
|
+
* 5. Returns the created Artifact
|
|
40
|
+
*
|
|
41
|
+
* @internal
|
|
42
|
+
* Authorization: skip_authorization (system-level RPC, called by runners)
|
|
43
|
+
* The runner authenticates via service identity, not user credentials.
|
|
44
|
+
*
|
|
45
|
+
* Idempotent by content hash: creating the same content twice returns
|
|
46
|
+
* two distinct Artifact metadata records pointing to the same blob.
|
|
47
|
+
* This is intentional — different tasks may independently produce the
|
|
48
|
+
* same content, and each needs its own provenance trail.
|
|
49
|
+
*
|
|
50
|
+
* Error Cases:
|
|
51
|
+
*
|
|
52
|
+
* - INVALID_ARGUMENT: spec or content is missing/invalid
|
|
53
|
+
* - RESOURCE_EXHAUSTED: content exceeds 50MB limit
|
|
54
|
+
* - INTERNAL: blob storage write failure
|
|
55
|
+
*
|
|
56
|
+
* @generated from rpc ai.stigmer.agentic.artifact.v1.ArtifactCommandController.create
|
|
57
|
+
*/
|
|
58
|
+
create: {
|
|
59
|
+
methodKind: "unary";
|
|
60
|
+
input: typeof CreateArtifactInputSchema;
|
|
61
|
+
output: typeof ArtifactSchema;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Delete an artifact.
|
|
65
|
+
*
|
|
66
|
+
* Marks the artifact for deletion. The backend transitions the storage
|
|
67
|
+
* state to deleted and schedules the blob for garbage collection.
|
|
68
|
+
* If other artifacts reference the same content hash, the blob is
|
|
69
|
+
* retained until all references are deleted.
|
|
70
|
+
*
|
|
71
|
+
* @internal
|
|
72
|
+
* Authorization: requires can_edit permission on the artifact.
|
|
73
|
+
*
|
|
74
|
+
* Error Cases:
|
|
75
|
+
*
|
|
76
|
+
* - NOT_FOUND: Artifact with given ID doesn't exist
|
|
77
|
+
* - PERMISSION_DENIED: User lacks can_edit permission
|
|
78
|
+
*
|
|
79
|
+
* @generated from rpc ai.stigmer.agentic.artifact.v1.ArtifactCommandController.delete
|
|
80
|
+
*/
|
|
81
|
+
delete: {
|
|
82
|
+
methodKind: "unary";
|
|
83
|
+
input: typeof ApiResourceIdSchema;
|
|
84
|
+
output: typeof ArtifactSchema;
|
|
85
|
+
};
|
|
86
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/artifact/v1/command.proto (package ai.stigmer.agentic.artifact.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_agentic_artifact_v1_api } from "./api_pb.js";
|
|
6
|
+
import { file_ai_stigmer_agentic_artifact_v1_io } from "./io_pb.js";
|
|
7
|
+
import { file_ai_stigmer_commons_apiresource_io } from "../../../commons/apiresource/io_pb.js";
|
|
8
|
+
import { file_ai_stigmer_commons_apiresource_rpc_service_options } from "../../../commons/apiresource/rpc_service_options_pb.js";
|
|
9
|
+
import { file_ai_stigmer_commons_rpc_method_options } from "../../../commons/rpc/method_options_pb.js";
|
|
10
|
+
/**
|
|
11
|
+
* Describes the file ai/stigmer/agentic/artifact/v1/command.proto.
|
|
12
|
+
*/
|
|
13
|
+
export const file_ai_stigmer_agentic_artifact_v1_command = /*@__PURE__*/ fileDesc("CixhaS9zdGlnbWVyL2FnZW50aWMvYXJ0aWZhY3QvdjEvY29tbWFuZC5wcm90bxIeYWkuc3RpZ21lci5hZ2VudGljLmFydGlmYWN0LnYxMqYCChlBcnRpZmFjdENvbW1hbmRDb250cm9sbGVyEm0KBmNyZWF0ZRIzLmFpLnN0aWdtZXIuYWdlbnRpYy5hcnRpZmFjdC52MS5DcmVhdGVBcnRpZmFjdElucHV0GiguYWkuc3RpZ21lci5hZ2VudGljLmFydGlmYWN0LnYxLkFydGlmYWN0IgTQuBgBEpMBCgZkZWxldGUSLS5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VJZBooLmFpLnN0aWdtZXIuYWdlbnRpYy5hcnRpZmFjdC52MS5BcnRpZmFjdCIwwrgYLAgCEDciBXZhbHVlKh91bmF1dGhvcml6ZWQgdG8gZGVsZXRlIGFydGlmYWN0GgSg/ys3YgZwcm90bzM", [file_ai_stigmer_agentic_artifact_v1_api, file_ai_stigmer_agentic_artifact_v1_io, file_ai_stigmer_commons_apiresource_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
|
|
14
|
+
/**
|
|
15
|
+
* ArtifactCommandController handles write operations for Artifact resources.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
* Follows the Command-Query Separation (CQS) pattern.
|
|
19
|
+
*
|
|
20
|
+
* These RPCs are system-level — used by the workflow-runner and agent-runner
|
|
21
|
+
* to persist task outputs. They are NOT exposed to end users or the SDK.
|
|
22
|
+
*
|
|
23
|
+
* Artifact creation flow:
|
|
24
|
+
* 1. Runner detects output exceeding auto-promotion threshold (256KB)
|
|
25
|
+
* 2. Runner calls create() with spec (metadata) + content (bytes)
|
|
26
|
+
* 3. Backend hashes content, deduplicates, stores blob, creates record
|
|
27
|
+
* 4. Runner receives Artifact with ID and status
|
|
28
|
+
* 5. Runner replaces inline task output with artifact reference
|
|
29
|
+
* 6. Runner includes artifact_created event in next updateStatus call
|
|
30
|
+
*
|
|
31
|
+
* @since T07 (Artifact Store)
|
|
32
|
+
*
|
|
33
|
+
* @generated from service ai.stigmer.agentic.artifact.v1.ArtifactCommandController
|
|
34
|
+
*/
|
|
35
|
+
export const ArtifactCommandController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_agentic_artifact_v1_command, 0);
|
|
36
|
+
//# sourceMappingURL=command_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/artifact/v1/command_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,4HAA4H;AAC5H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,uCAAuC,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,EAAE,sCAAsC,EAAE,MAAM,YAAY,CAAC;AAEpE,OAAO,EAAE,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAY,aAAa,CAC/E,QAAQ,CAAC,igBAAigB,EAAE,CAAC,uCAAuC,EAAE,sCAAsC,EAAE,sCAAsC,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAE9uB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAwDjC,aAAa,CAChB,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
/**
|
|
3
|
+
* Describes the file ai/stigmer/agentic/artifact/v1/enum.proto.
|
|
4
|
+
*/
|
|
5
|
+
export declare const file_ai_stigmer_agentic_artifact_v1_enum: GenFile;
|
|
6
|
+
/**
|
|
7
|
+
* ArtifactStorageState tracks the lifecycle of an artifact's blob in storage.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
* The state machine is linear:
|
|
11
|
+
* storage_state_pending → storage_state_stored → storage_state_deleted
|
|
12
|
+
*
|
|
13
|
+
* Pending: metadata record created, blob upload not yet confirmed.
|
|
14
|
+
* Stored: blob successfully written to object storage and verified.
|
|
15
|
+
* Deleted: blob has been garbage-collected (metadata may be retained for audit).
|
|
16
|
+
*
|
|
17
|
+
* @since T07 (Artifact Store)
|
|
18
|
+
*
|
|
19
|
+
* @generated from enum ai.stigmer.agentic.artifact.v1.ArtifactStorageState
|
|
20
|
+
*/
|
|
21
|
+
export declare enum ArtifactStorageState {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum value: storage_state_unspecified = 0;
|
|
24
|
+
*/
|
|
25
|
+
storage_state_unspecified = 0,
|
|
26
|
+
/**
|
|
27
|
+
* Metadata created, blob upload in progress or not yet confirmed.
|
|
28
|
+
*
|
|
29
|
+
* @generated from enum value: storage_state_pending = 1;
|
|
30
|
+
*/
|
|
31
|
+
storage_state_pending = 1,
|
|
32
|
+
/**
|
|
33
|
+
* Blob successfully stored and content hash verified.
|
|
34
|
+
*
|
|
35
|
+
* @generated from enum value: storage_state_stored = 2;
|
|
36
|
+
*/
|
|
37
|
+
storage_state_stored = 2,
|
|
38
|
+
/**
|
|
39
|
+
* Blob deleted from storage (retention expired or manual deletion).
|
|
40
|
+
* Metadata record may be retained for audit trail purposes.
|
|
41
|
+
*
|
|
42
|
+
* @generated from enum value: storage_state_deleted = 3;
|
|
43
|
+
*/
|
|
44
|
+
storage_state_deleted = 3
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Describes the enum ai.stigmer.agentic.artifact.v1.ArtifactStorageState.
|
|
48
|
+
*/
|
|
49
|
+
export declare const ArtifactStorageStateSchema: GenEnum<ArtifactStorageState>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/artifact/v1/enum.proto (package ai.stigmer.agentic.artifact.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ai/stigmer/agentic/artifact/v1/enum.proto.
|
|
7
|
+
*/
|
|
8
|
+
export const file_ai_stigmer_agentic_artifact_v1_enum = /*@__PURE__*/ fileDesc("CilhaS9zdGlnbWVyL2FnZW50aWMvYXJ0aWZhY3QvdjEvZW51bS5wcm90bxIeYWkuc3RpZ21lci5hZ2VudGljLmFydGlmYWN0LnYxKoUBChRBcnRpZmFjdFN0b3JhZ2VTdGF0ZRIdChlzdG9yYWdlX3N0YXRlX3Vuc3BlY2lmaWVkEAASGQoVc3RvcmFnZV9zdGF0ZV9wZW5kaW5nEAESGAoUc3RvcmFnZV9zdGF0ZV9zdG9yZWQQAhIZChVzdG9yYWdlX3N0YXRlX2RlbGV0ZWQQA2IGcHJvdG8z");
|
|
9
|
+
/**
|
|
10
|
+
* ArtifactStorageState tracks the lifecycle of an artifact's blob in storage.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* The state machine is linear:
|
|
14
|
+
* storage_state_pending → storage_state_stored → storage_state_deleted
|
|
15
|
+
*
|
|
16
|
+
* Pending: metadata record created, blob upload not yet confirmed.
|
|
17
|
+
* Stored: blob successfully written to object storage and verified.
|
|
18
|
+
* Deleted: blob has been garbage-collected (metadata may be retained for audit).
|
|
19
|
+
*
|
|
20
|
+
* @since T07 (Artifact Store)
|
|
21
|
+
*
|
|
22
|
+
* @generated from enum ai.stigmer.agentic.artifact.v1.ArtifactStorageState
|
|
23
|
+
*/
|
|
24
|
+
export var ArtifactStorageState;
|
|
25
|
+
(function (ArtifactStorageState) {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: storage_state_unspecified = 0;
|
|
28
|
+
*/
|
|
29
|
+
ArtifactStorageState[ArtifactStorageState["storage_state_unspecified"] = 0] = "storage_state_unspecified";
|
|
30
|
+
/**
|
|
31
|
+
* Metadata created, blob upload in progress or not yet confirmed.
|
|
32
|
+
*
|
|
33
|
+
* @generated from enum value: storage_state_pending = 1;
|
|
34
|
+
*/
|
|
35
|
+
ArtifactStorageState[ArtifactStorageState["storage_state_pending"] = 1] = "storage_state_pending";
|
|
36
|
+
/**
|
|
37
|
+
* Blob successfully stored and content hash verified.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: storage_state_stored = 2;
|
|
40
|
+
*/
|
|
41
|
+
ArtifactStorageState[ArtifactStorageState["storage_state_stored"] = 2] = "storage_state_stored";
|
|
42
|
+
/**
|
|
43
|
+
* Blob deleted from storage (retention expired or manual deletion).
|
|
44
|
+
* Metadata record may be retained for audit trail purposes.
|
|
45
|
+
*
|
|
46
|
+
* @generated from enum value: storage_state_deleted = 3;
|
|
47
|
+
*/
|
|
48
|
+
ArtifactStorageState[ArtifactStorageState["storage_state_deleted"] = 3] = "storage_state_deleted";
|
|
49
|
+
})(ArtifactStorageState || (ArtifactStorageState = {}));
|
|
50
|
+
/**
|
|
51
|
+
* Describes the enum ai.stigmer.agentic.artifact.v1.ArtifactStorageState.
|
|
52
|
+
*/
|
|
53
|
+
export const ArtifactStorageStateSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_artifact_v1_enum, 0);
|
|
54
|
+
//# sourceMappingURL=enum_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/artifact/v1/enum_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,yHAAyH;AACzH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAY,aAAa,CAC5E,QAAQ,CAAC,sSAAsS,CAAC,CAAC;AAEnT;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAN,IAAY,oBA2BX;AA3BD,WAAY,oBAAoB;IAC9B;;OAEG;IACH,yGAA6B,CAAA;IAE7B;;;;OAIG;IACH,iGAAyB,CAAA;IAEzB;;;;OAIG;IACH,+FAAwB,CAAA;IAExB;;;;;OAKG;IACH,iGAAyB,CAAA;AAC3B,CAAC,EA3BW,oBAAoB,KAApB,oBAAoB,QA2B/B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAkC,aAAa,CACpF,QAAQ,CAAC,wCAAwC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { Artifact } from "./api_pb.js";
|
|
3
|
+
import type { ArtifactSpec } from "./spec_pb.js";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ai/stigmer/agentic/artifact/v1/io.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ai_stigmer_agentic_artifact_v1_io: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* ArtifactId wraps an artifact identifier.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* Using a wrapper (instead of a raw string) provides validation,
|
|
14
|
+
* clear field naming, and extensibility.
|
|
15
|
+
*
|
|
16
|
+
* @since T07 (Artifact Store)
|
|
17
|
+
*
|
|
18
|
+
* @generated from message ai.stigmer.agentic.artifact.v1.ArtifactId
|
|
19
|
+
*/
|
|
20
|
+
export type ArtifactId = Message<"ai.stigmer.agentic.artifact.v1.ArtifactId"> & {
|
|
21
|
+
/**
|
|
22
|
+
* Artifact identifier.
|
|
23
|
+
* Format: "art_{unique-suffix}" (auto-generated by backend)
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: string value = 1;
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message ai.stigmer.agentic.artifact.v1.ArtifactId.
|
|
31
|
+
* Use `create(ArtifactIdSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ArtifactIdSchema: GenMessage<ArtifactId>;
|
|
34
|
+
/**
|
|
35
|
+
* ArtifactList contains a paginated list of artifacts.
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
* Returned by list operations (listByExecution).
|
|
39
|
+
*
|
|
40
|
+
* @since T07 (Artifact Store)
|
|
41
|
+
*
|
|
42
|
+
* @generated from message ai.stigmer.agentic.artifact.v1.ArtifactList
|
|
43
|
+
*/
|
|
44
|
+
export type ArtifactList = Message<"ai.stigmer.agentic.artifact.v1.ArtifactList"> & {
|
|
45
|
+
/**
|
|
46
|
+
* Total number of pages available for this query.
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: int32 total_pages = 1;
|
|
49
|
+
*/
|
|
50
|
+
totalPages: number;
|
|
51
|
+
/**
|
|
52
|
+
* Artifacts in the current page, sorted by created_at descending.
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: repeated ai.stigmer.agentic.artifact.v1.Artifact entries = 2;
|
|
55
|
+
*/
|
|
56
|
+
entries: Artifact[];
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message ai.stigmer.agentic.artifact.v1.ArtifactList.
|
|
60
|
+
* Use `create(ArtifactListSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export declare const ArtifactListSchema: GenMessage<ArtifactList>;
|
|
63
|
+
/**
|
|
64
|
+
* CreateArtifactInput provides the data needed to create an artifact.
|
|
65
|
+
*
|
|
66
|
+
* @internal
|
|
67
|
+
* Used by the workflow-runner and agent-runner to persist task outputs.
|
|
68
|
+
* This is a system-level RPC — not exposed to end users or the SDK.
|
|
69
|
+
*
|
|
70
|
+
* The backend:
|
|
71
|
+
* 1. Computes SHA-256 hash of content
|
|
72
|
+
* 2. Checks if a blob with that hash already exists (deduplication)
|
|
73
|
+
* 3. If not, writes blob to storage (filesystem in OSS, S3 in Cloud)
|
|
74
|
+
* 4. Creates the Artifact metadata record
|
|
75
|
+
* 5. Returns the created Artifact with status populated
|
|
76
|
+
*
|
|
77
|
+
* Size limit: 50MB per request. This matches Temporal's max history size
|
|
78
|
+
* and covers all practical workflow task outputs. For larger artifacts,
|
|
79
|
+
* multipart upload will be added in a future phase.
|
|
80
|
+
*
|
|
81
|
+
* @since T07 (Artifact Store)
|
|
82
|
+
*
|
|
83
|
+
* @generated from message ai.stigmer.agentic.artifact.v1.CreateArtifactInput
|
|
84
|
+
*/
|
|
85
|
+
export type CreateArtifactInput = Message<"ai.stigmer.agentic.artifact.v1.CreateArtifactInput"> & {
|
|
86
|
+
/**
|
|
87
|
+
* Artifact properties (content type, display name, source, retention).
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: ai.stigmer.agentic.artifact.v1.ArtifactSpec spec = 1;
|
|
90
|
+
*/
|
|
91
|
+
spec?: ArtifactSpec;
|
|
92
|
+
/**
|
|
93
|
+
* Raw artifact content bytes.
|
|
94
|
+
*
|
|
95
|
+
* @internal
|
|
96
|
+
* Maximum size: 50MB (52,428,800 bytes).
|
|
97
|
+
* The backend computes the SHA-256 hash of this content for
|
|
98
|
+
* content-addressable storage and deduplication.
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: bytes content = 2;
|
|
101
|
+
*/
|
|
102
|
+
content: Uint8Array;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Describes the message ai.stigmer.agentic.artifact.v1.CreateArtifactInput.
|
|
106
|
+
* Use `create(CreateArtifactInputSchema)` to create a new message.
|
|
107
|
+
*/
|
|
108
|
+
export declare const CreateArtifactInputSchema: GenMessage<CreateArtifactInput>;
|
|
109
|
+
/**
|
|
110
|
+
* ListArtifactsByExecutionRequest lists artifacts produced by a specific execution.
|
|
111
|
+
*
|
|
112
|
+
* @internal
|
|
113
|
+
* Supports listing by either workflow_execution_id or agent_execution_id.
|
|
114
|
+
* At least one must be provided.
|
|
115
|
+
*
|
|
116
|
+
* @since T07 (Artifact Store)
|
|
117
|
+
*
|
|
118
|
+
* @generated from message ai.stigmer.agentic.artifact.v1.ListArtifactsByExecutionRequest
|
|
119
|
+
*/
|
|
120
|
+
export type ListArtifactsByExecutionRequest = Message<"ai.stigmer.agentic.artifact.v1.ListArtifactsByExecutionRequest"> & {
|
|
121
|
+
/**
|
|
122
|
+
* WorkflowExecution ID to list artifacts for.
|
|
123
|
+
* Format: "wex_{unique-suffix}"
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: string workflow_execution_id = 1;
|
|
126
|
+
*/
|
|
127
|
+
workflowExecutionId: string;
|
|
128
|
+
/**
|
|
129
|
+
* AgentExecution ID to list artifacts for.
|
|
130
|
+
* Format: "aex_{unique-suffix}"
|
|
131
|
+
*
|
|
132
|
+
* @generated from field: string agent_execution_id = 2;
|
|
133
|
+
*/
|
|
134
|
+
agentExecutionId: string;
|
|
135
|
+
/**
|
|
136
|
+
* Maximum number of artifacts to return per page.
|
|
137
|
+
* Default: 50. Maximum: 100.
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: int32 page_size = 3;
|
|
140
|
+
*/
|
|
141
|
+
pageSize: number;
|
|
142
|
+
/**
|
|
143
|
+
* Opaque pagination token from a previous response.
|
|
144
|
+
*
|
|
145
|
+
* @generated from field: string page_token = 4;
|
|
146
|
+
*/
|
|
147
|
+
pageToken: string;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Describes the message ai.stigmer.agentic.artifact.v1.ListArtifactsByExecutionRequest.
|
|
151
|
+
* Use `create(ListArtifactsByExecutionRequestSchema)` to create a new message.
|
|
152
|
+
*/
|
|
153
|
+
export declare const ListArtifactsByExecutionRequestSchema: GenMessage<ListArtifactsByExecutionRequest>;
|
|
154
|
+
/**
|
|
155
|
+
* ArtifactDownloadUrl provides a URL for downloading artifact content.
|
|
156
|
+
*
|
|
157
|
+
* @internal
|
|
158
|
+
* The download strategy differs by edition:
|
|
159
|
+
* - Cloud: pre-signed S3 URL with short TTL (e.g., 15 minutes)
|
|
160
|
+
* - OSS: direct URL to the local artifact server endpoint
|
|
161
|
+
*
|
|
162
|
+
* This pattern avoids streaming large blobs through the gRPC control plane.
|
|
163
|
+
* The client receives a URL and fetches the content via HTTP GET.
|
|
164
|
+
*
|
|
165
|
+
* @since T07 (Artifact Store)
|
|
166
|
+
*
|
|
167
|
+
* @generated from message ai.stigmer.agentic.artifact.v1.ArtifactDownloadUrl
|
|
168
|
+
*/
|
|
169
|
+
export type ArtifactDownloadUrl = Message<"ai.stigmer.agentic.artifact.v1.ArtifactDownloadUrl"> & {
|
|
170
|
+
/**
|
|
171
|
+
* URL to download the artifact content via HTTP GET.
|
|
172
|
+
*
|
|
173
|
+
* @internal
|
|
174
|
+
* Cloud: pre-signed S3 URL (expires after ttl_seconds)
|
|
175
|
+
* OSS: http://localhost:{port}/artifacts/{hash}
|
|
176
|
+
*
|
|
177
|
+
* @generated from field: string url = 1;
|
|
178
|
+
*/
|
|
179
|
+
url: string;
|
|
180
|
+
/**
|
|
181
|
+
* Time-to-live for the download URL in seconds.
|
|
182
|
+
* After this duration, the URL expires and a new one must be requested.
|
|
183
|
+
* Typically 900 (15 minutes) for Cloud, 0 (no expiry) for OSS.
|
|
184
|
+
*
|
|
185
|
+
* @generated from field: int32 ttl_seconds = 2;
|
|
186
|
+
*/
|
|
187
|
+
ttlSeconds: number;
|
|
188
|
+
/**
|
|
189
|
+
* Size of the artifact content in bytes (convenience, same as status.size_bytes).
|
|
190
|
+
*
|
|
191
|
+
* @generated from field: int64 size_bytes = 3;
|
|
192
|
+
*/
|
|
193
|
+
sizeBytes: bigint;
|
|
194
|
+
/**
|
|
195
|
+
* MIME content type (convenience, same as spec.content_type).
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: string content_type = 4;
|
|
198
|
+
*/
|
|
199
|
+
contentType: string;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Describes the message ai.stigmer.agentic.artifact.v1.ArtifactDownloadUrl.
|
|
203
|
+
* Use `create(ArtifactDownloadUrlSchema)` to create a new message.
|
|
204
|
+
*/
|
|
205
|
+
export declare const ArtifactDownloadUrlSchema: GenMessage<ArtifactDownloadUrl>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/artifact/v1/io.proto (package ai.stigmer.agentic.artifact.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_agentic_artifact_v1_api } from "./api_pb.js";
|
|
6
|
+
import { file_ai_stigmer_agentic_artifact_v1_spec } from "./spec_pb.js";
|
|
7
|
+
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file ai/stigmer/agentic/artifact/v1/io.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_ai_stigmer_agentic_artifact_v1_io = /*@__PURE__*/ fileDesc("CidhaS9zdGlnbWVyL2FnZW50aWMvYXJ0aWZhY3QvdjEvaW8ucHJvdG8SHmFpLnN0aWdtZXIuYWdlbnRpYy5hcnRpZmFjdC52MSIjCgpBcnRpZmFjdElkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEiXgoMQXJ0aWZhY3RMaXN0EhMKC3RvdGFsX3BhZ2VzGAEgASgFEjkKB2VudHJpZXMYAiADKAsyKC5haS5zdGlnbWVyLmFnZW50aWMuYXJ0aWZhY3QudjEuQXJ0aWZhY3QieQoTQ3JlYXRlQXJ0aWZhY3RJbnB1dBJCCgRzcGVjGAEgASgLMiwuYWkuc3RpZ21lci5hZ2VudGljLmFydGlmYWN0LnYxLkFydGlmYWN0U3BlY0IGukgDyAEBEh4KB2NvbnRlbnQYAiABKAxCDbpICsgBAXoFGICAgBkigwEKH0xpc3RBcnRpZmFjdHNCeUV4ZWN1dGlvblJlcXVlc3QSHQoVd29ya2Zsb3dfZXhlY3V0aW9uX2lkGAEgASgJEhoKEmFnZW50X2V4ZWN1dGlvbl9pZBgCIAEoCRIRCglwYWdlX3NpemUYAyABKAUSEgoKcGFnZV90b2tlbhgEIAEoCSJhChNBcnRpZmFjdERvd25sb2FkVXJsEgsKA3VybBgBIAEoCRITCgt0dGxfc2Vjb25kcxgCIAEoBRISCgpzaXplX2J5dGVzGAMgASgDEhQKDGNvbnRlbnRfdHlwZRgEIAEoCWIGcHJvdG8z", [file_ai_stigmer_agentic_artifact_v1_api, file_ai_stigmer_agentic_artifact_v1_spec, file_buf_validate_validate]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message ai.stigmer.agentic.artifact.v1.ArtifactId.
|
|
14
|
+
* Use `create(ArtifactIdSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const ArtifactIdSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_artifact_v1_io, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message ai.stigmer.agentic.artifact.v1.ArtifactList.
|
|
19
|
+
* Use `create(ArtifactListSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const ArtifactListSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_artifact_v1_io, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message ai.stigmer.agentic.artifact.v1.CreateArtifactInput.
|
|
24
|
+
* Use `create(CreateArtifactInputSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const CreateArtifactInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_artifact_v1_io, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message ai.stigmer.agentic.artifact.v1.ListArtifactsByExecutionRequest.
|
|
29
|
+
* Use `create(ListArtifactsByExecutionRequestSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const ListArtifactsByExecutionRequestSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_artifact_v1_io, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message ai.stigmer.agentic.artifact.v1.ArtifactDownloadUrl.
|
|
34
|
+
* Use `create(ArtifactDownloadUrlSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const ArtifactDownloadUrlSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_artifact_v1_io, 4);
|
|
37
|
+
//# sourceMappingURL=io_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/artifact/v1/io_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,uHAAuH;AACvH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,uCAAuC,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,EAAE,wCAAwC,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAY,aAAa,CAC1E,QAAQ,CAAC,0vBAA0vB,EAAE,CAAC,uCAAuC,EAAE,wCAAwC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAuBx3B;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B,aAAa,CACnE,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;AA4BzD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;AA6CzD;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAoC,aAAa,CACrF,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;AA8CzD;;;GAGG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAgD,aAAa,CAC7G,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;AAqDzD;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAoC,aAAa,CACrF,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArtifactQueryController handles read operations for Artifact resources.
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
* Follows the Command-Query Separation (CQS) pattern.
|
|
6
|
+
*
|
|
7
|
+
* These RPCs are exposed to the SDK and consumed by:
|
|
8
|
+
* - Execution viewer (T09): lists artifacts per execution, provides download links
|
|
9
|
+
* - CLI: `stigmer workflow artifacts <execution-id>`
|
|
10
|
+
* - React SDK: useArtifact() hook for artifact metadata and download
|
|
11
|
+
*
|
|
12
|
+
* Authorization follows the parent execution's access model:
|
|
13
|
+
* if a user can view an execution, they can view its artifacts.
|
|
14
|
+
*
|
|
15
|
+
* @since T07 (Artifact Store)
|
|
16
|
+
*
|
|
17
|
+
* @generated from service ai.stigmer.agentic.artifact.v1.ArtifactQueryController
|
|
18
|
+
*/
|
|
19
|
+
export declare const ArtifactQueryController: {
|
|
20
|
+
readonly typeName: "ai.stigmer.agentic.artifact.v1.ArtifactQueryController";
|
|
21
|
+
readonly methods: {
|
|
22
|
+
/**
|
|
23
|
+
* Get a single artifact by ID.
|
|
24
|
+
*
|
|
25
|
+
* Returns the complete Artifact resource including metadata, spec,
|
|
26
|
+
* and status (content hash, size, storage state, expiration).
|
|
27
|
+
*
|
|
28
|
+
* Does NOT return the artifact content — use getDownloadUrl to
|
|
29
|
+
* retrieve a URL for downloading the content via HTTP GET.
|
|
30
|
+
*
|
|
31
|
+
* Use Cases:
|
|
32
|
+
*
|
|
33
|
+
* 1. Artifact Detail View:
|
|
34
|
+
* - User clicks an artifact in the execution viewer
|
|
35
|
+
* - UI calls get() to fetch full metadata
|
|
36
|
+
* - UI displays content type, size, source task, expiration
|
|
37
|
+
*
|
|
38
|
+
* 2. Artifact Reference Resolution:
|
|
39
|
+
* - Task output contains _artifact_ref field
|
|
40
|
+
* - UI calls get() to resolve the reference to metadata
|
|
41
|
+
* - UI renders a download/preview widget instead of raw JSON
|
|
42
|
+
*
|
|
43
|
+
* Error Cases:
|
|
44
|
+
*
|
|
45
|
+
* - NOT_FOUND: No Artifact exists with the given ID
|
|
46
|
+
* - PERMISSION_DENIED: User doesn't have view access to the parent execution
|
|
47
|
+
*
|
|
48
|
+
* @generated from rpc ai.stigmer.agentic.artifact.v1.ArtifactQueryController.get
|
|
49
|
+
*/
|
|
50
|
+
readonly get: {
|
|
51
|
+
readonly name: "get";
|
|
52
|
+
readonly I: any;
|
|
53
|
+
readonly O: any;
|
|
54
|
+
readonly kind: any;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* List all artifacts produced by a specific execution.
|
|
58
|
+
*
|
|
59
|
+
* Returns a paginated list of artifacts filtered by either
|
|
60
|
+
* workflow_execution_id or agent_execution_id.
|
|
61
|
+
*
|
|
62
|
+
* Use Cases:
|
|
63
|
+
*
|
|
64
|
+
* 1. Execution Viewer Artifact Panel:
|
|
65
|
+
* - User views a workflow execution in the execution viewer
|
|
66
|
+
* - UI calls listByExecution() to populate the artifact sidebar
|
|
67
|
+
* - Each artifact shows display name, content type, size, source task
|
|
68
|
+
*
|
|
69
|
+
* 2. CLI Artifact Listing:
|
|
70
|
+
* - `stigmer workflow artifacts wex_abc123`
|
|
71
|
+
* - CLI calls listByExecution() and formats as a table
|
|
72
|
+
*
|
|
73
|
+
* Error Cases:
|
|
74
|
+
*
|
|
75
|
+
* - INVALID_ARGUMENT: Neither workflow_execution_id nor agent_execution_id provided
|
|
76
|
+
* - PERMISSION_DENIED: User doesn't have view access to the parent execution
|
|
77
|
+
*
|
|
78
|
+
* @generated from rpc ai.stigmer.agentic.artifact.v1.ArtifactQueryController.listByExecution
|
|
79
|
+
*/
|
|
80
|
+
readonly listByExecution: {
|
|
81
|
+
readonly name: "listByExecution";
|
|
82
|
+
readonly I: any;
|
|
83
|
+
readonly O: any;
|
|
84
|
+
readonly kind: any;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Get a download URL for artifact content.
|
|
88
|
+
*
|
|
89
|
+
* Returns a URL that the client can use to download the artifact's
|
|
90
|
+
* content via HTTP GET. This avoids streaming large blobs through
|
|
91
|
+
* the gRPC control plane.
|
|
92
|
+
*
|
|
93
|
+
* Cloud: returns a pre-signed S3 URL with a short TTL (15 minutes).
|
|
94
|
+
* OSS: returns a direct URL to the local artifact server endpoint.
|
|
95
|
+
*
|
|
96
|
+
* Use Cases:
|
|
97
|
+
*
|
|
98
|
+
* 1. Download Artifact:
|
|
99
|
+
* - User clicks "Download" in the execution viewer
|
|
100
|
+
* - UI calls getDownloadUrl() to get a URL
|
|
101
|
+
* - Browser opens the URL in a new tab or triggers a download
|
|
102
|
+
*
|
|
103
|
+
* 2. Preview Artifact:
|
|
104
|
+
* - UI calls getDownloadUrl() for JSON/text artifacts
|
|
105
|
+
* - UI fetches content from the URL and renders inline
|
|
106
|
+
* - Large artifacts show a truncated preview with download option
|
|
107
|
+
*
|
|
108
|
+
* 3. CLI Download:
|
|
109
|
+
* - `stigmer workflow artifact download art_abc123 -o output.json`
|
|
110
|
+
* - CLI calls getDownloadUrl() then fetches via HTTP GET
|
|
111
|
+
*
|
|
112
|
+
* Error Cases:
|
|
113
|
+
*
|
|
114
|
+
* - NOT_FOUND: No Artifact exists with the given ID
|
|
115
|
+
* - PERMISSION_DENIED: User doesn't have view access to the parent execution
|
|
116
|
+
* - FAILED_PRECONDITION: Artifact blob has been deleted (storage_state_deleted)
|
|
117
|
+
*
|
|
118
|
+
* @generated from rpc ai.stigmer.agentic.artifact.v1.ArtifactQueryController.getDownloadUrl
|
|
119
|
+
*/
|
|
120
|
+
readonly getDownloadUrl: {
|
|
121
|
+
readonly name: "getDownloadUrl";
|
|
122
|
+
readonly I: any;
|
|
123
|
+
readonly O: any;
|
|
124
|
+
readonly kind: any;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|