@stigmer/protos 3.1.13 → 3.1.15
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/agentchannel/v1/api_pb.d.ts +68 -0
- package/ai/stigmer/agentic/agentchannel/v1/api_pb.js +18 -0
- package/ai/stigmer/agentic/agentchannel/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/command_connect.d.ts +139 -0
- package/ai/stigmer/agentic/agentchannel/v1/command_connect.js +147 -0
- package/ai/stigmer/agentic/agentchannel/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/command_pb.d.ts +137 -0
- package/ai/stigmer/agentic/agentchannel/v1/command_pb.js +19 -0
- package/ai/stigmer/agentic/agentchannel/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/delivery_pb.d.ts +215 -0
- package/ai/stigmer/agentic/agentchannel/v1/delivery_pb.js +67 -0
- package/ai/stigmer/agentic/agentchannel/v1/delivery_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/io_pb.d.ts +206 -0
- package/ai/stigmer/agentic/agentchannel/v1/io_pb.js +47 -0
- package/ai/stigmer/agentic/agentchannel/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/query_connect.d.ts +74 -0
- package/ai/stigmer/agentic/agentchannel/v1/query_connect.js +83 -0
- package/ai/stigmer/agentic/agentchannel/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/query_pb.d.ts +75 -0
- package/ai/stigmer/agentic/agentchannel/v1/query_pb.js +25 -0
- package/ai/stigmer/agentic/agentchannel/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/spec_pb.d.ts +102 -0
- package/ai/stigmer/agentic/agentchannel/v1/spec_pb.js +22 -0
- package/ai/stigmer/agentic/agentchannel/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/status_pb.d.ts +174 -0
- package/ai/stigmer/agentic/agentchannel/v1/status_pb.js +65 -0
- package/ai/stigmer/agentic/agentchannel/v1/status_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.d.ts +41 -5
- 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/agentinstance/v1/io_pb.d.ts +17 -0
- package/ai/stigmer/agentic/agentinstance/v1/io_pb.js +1 -1
- package/ai/stigmer/agentic/agentinstance/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentshare/v1/io_pb.d.ts +17 -0
- package/ai/stigmer/agentic/agentshare/v1/io_pb.js +1 -1
- package/ai/stigmer/agentic/agentshare/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentshare/v1/query_connect.d.ts +2 -1
- package/ai/stigmer/agentic/agentshare/v1/query_connect.js +2 -1
- package/ai/stigmer/agentic/agentshare/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/agentshare/v1/query_pb.d.ts +2 -1
- package/ai/stigmer/agentic/agentshare/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflowinstance/v1/io_pb.d.ts +16 -0
- package/ai/stigmer/agentic/workflowinstance/v1/io_pb.js +1 -1
- package/ai/stigmer/agentic/workflowinstance/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/package.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/agentchannel/v1/query.proto (package ai.stigmer.agentic.agentchannel.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { AgentChannelId, AgentChannelList, GetAgentChannelsByAgentRequest, ListAgentChannelsRequest } from "./io_pbjs";
|
|
6
|
+
import { AgentChannel } from "./api_pbjs";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
import { ApiResourceReference } from "../../../commons/apiresource/io_pbjs";
|
|
9
|
+
/**
|
|
10
|
+
* AgentChannelQueryController handles read operations for agent channels.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* Deliberately no anonymous/public RPC (AgentShare's getSharedProfile has
|
|
14
|
+
* no analog here): the channel's public surface is the provider webhook,
|
|
15
|
+
* which authenticates by signature — never a query endpoint.
|
|
16
|
+
*
|
|
17
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController
|
|
18
|
+
*/
|
|
19
|
+
export const AgentChannelQueryController = {
|
|
20
|
+
typeName: "ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController",
|
|
21
|
+
methods: {
|
|
22
|
+
/**
|
|
23
|
+
* Get a single agent channel by ID.
|
|
24
|
+
*
|
|
25
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController.get
|
|
26
|
+
*/
|
|
27
|
+
get: {
|
|
28
|
+
name: "get",
|
|
29
|
+
I: AgentChannelId,
|
|
30
|
+
O: AgentChannel,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* Get an agent channel by its organization-scoped reference (org/slug).
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
* Custom authorization in handler — checks both direct resource access
|
|
38
|
+
* and organization-level visibility permissions (AgentShare pattern).
|
|
39
|
+
*
|
|
40
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController.getByReference
|
|
41
|
+
*/
|
|
42
|
+
getByReference: {
|
|
43
|
+
name: "getByReference",
|
|
44
|
+
I: ApiResourceReference,
|
|
45
|
+
O: AgentChannel,
|
|
46
|
+
kind: MethodKind.Unary,
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* Get all channels of a specific agent.
|
|
50
|
+
* Returns only channels the caller has access to.
|
|
51
|
+
*
|
|
52
|
+
* This is how the agent's integrations surface and CLI resolve an
|
|
53
|
+
* agent's existing channels regardless of slug.
|
|
54
|
+
*
|
|
55
|
+
* @internal
|
|
56
|
+
* Authorization in-handler: FGA-filtered in cloud, unrestricted in OSS.
|
|
57
|
+
*
|
|
58
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController.getByAgent
|
|
59
|
+
*/
|
|
60
|
+
getByAgent: {
|
|
61
|
+
name: "getByAgent",
|
|
62
|
+
I: GetAgentChannelsByAgentRequest,
|
|
63
|
+
O: AgentChannelList,
|
|
64
|
+
kind: MethodKind.Unary,
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* List agent channels with optional label filtering.
|
|
68
|
+
*
|
|
69
|
+
* @internal
|
|
70
|
+
* Authorization in-handler via FGA-filtered queries (cloud) or
|
|
71
|
+
* unrestricted store queries (OSS).
|
|
72
|
+
*
|
|
73
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController.list
|
|
74
|
+
*/
|
|
75
|
+
list: {
|
|
76
|
+
name: "list",
|
|
77
|
+
I: ListAgentChannelsRequest,
|
|
78
|
+
O: AgentChannelList,
|
|
79
|
+
kind: MethodKind.Unary,
|
|
80
|
+
},
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=query_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/query_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,kIAAkI;AAClI,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACvH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,gEAAgE;IAC1E,OAAO,EAAE;QACP;;;;WAIG;QACH,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,CAAC,EAAE,cAAc;YACjB,CAAC,EAAE,YAAY;YACf,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;WAQG;QACH,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,YAAY;YACf,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;WAWG;QACH,UAAU,EAAE;YACV,IAAI,EAAE,YAAY;YAClB,CAAC,EAAE,8BAA8B;YACjC,CAAC,EAAE,gBAAgB;YACnB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;WAQG;QACH,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,CAAC,EAAE,wBAAwB;YAC3B,CAAC,EAAE,gBAAgB;YACnB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { AgentChannelSchema } from "./api_pb.js";
|
|
3
|
+
import type { AgentChannelIdSchema, AgentChannelListSchema, GetAgentChannelsByAgentRequestSchema, ListAgentChannelsRequestSchema } from "./io_pb.js";
|
|
4
|
+
import type { ApiResourceReferenceSchema } from "../../../commons/apiresource/io_pb.js";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/query.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ai_stigmer_agentic_agentchannel_v1_query: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* AgentChannelQueryController handles read operations for agent channels.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* Deliberately no anonymous/public RPC (AgentShare's getSharedProfile has
|
|
14
|
+
* no analog here): the channel's public surface is the provider webhook,
|
|
15
|
+
* which authenticates by signature — never a query endpoint.
|
|
16
|
+
*
|
|
17
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController
|
|
18
|
+
*/
|
|
19
|
+
export declare const AgentChannelQueryController: GenService<{
|
|
20
|
+
/**
|
|
21
|
+
* Get a single agent channel by ID.
|
|
22
|
+
*
|
|
23
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController.get
|
|
24
|
+
*/
|
|
25
|
+
get: {
|
|
26
|
+
methodKind: "unary";
|
|
27
|
+
input: typeof AgentChannelIdSchema;
|
|
28
|
+
output: typeof AgentChannelSchema;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Get an agent channel by its organization-scoped reference (org/slug).
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
34
|
+
* Custom authorization in handler — checks both direct resource access
|
|
35
|
+
* and organization-level visibility permissions (AgentShare pattern).
|
|
36
|
+
*
|
|
37
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController.getByReference
|
|
38
|
+
*/
|
|
39
|
+
getByReference: {
|
|
40
|
+
methodKind: "unary";
|
|
41
|
+
input: typeof ApiResourceReferenceSchema;
|
|
42
|
+
output: typeof AgentChannelSchema;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Get all channels of a specific agent.
|
|
46
|
+
* Returns only channels the caller has access to.
|
|
47
|
+
*
|
|
48
|
+
* This is how the agent's integrations surface and CLI resolve an
|
|
49
|
+
* agent's existing channels regardless of slug.
|
|
50
|
+
*
|
|
51
|
+
* @internal
|
|
52
|
+
* Authorization in-handler: FGA-filtered in cloud, unrestricted in OSS.
|
|
53
|
+
*
|
|
54
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController.getByAgent
|
|
55
|
+
*/
|
|
56
|
+
getByAgent: {
|
|
57
|
+
methodKind: "unary";
|
|
58
|
+
input: typeof GetAgentChannelsByAgentRequestSchema;
|
|
59
|
+
output: typeof AgentChannelListSchema;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* List agent channels with optional label filtering.
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
* Authorization in-handler via FGA-filtered queries (cloud) or
|
|
66
|
+
* unrestricted store queries (OSS).
|
|
67
|
+
*
|
|
68
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController.list
|
|
69
|
+
*/
|
|
70
|
+
list: {
|
|
71
|
+
methodKind: "unary";
|
|
72
|
+
input: typeof ListAgentChannelsRequestSchema;
|
|
73
|
+
output: typeof AgentChannelListSchema;
|
|
74
|
+
};
|
|
75
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/agentchannel/v1/query.proto (package ai.stigmer.agentic.agentchannel.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_agentic_agentchannel_v1_api } from "./api_pb.js";
|
|
6
|
+
import { file_ai_stigmer_agentic_agentchannel_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/agentchannel/v1/query.proto.
|
|
12
|
+
*/
|
|
13
|
+
export const file_ai_stigmer_agentic_agentchannel_v1_query = /*@__PURE__*/ fileDesc("Ci5haS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL3F1ZXJ5LnByb3RvEiJhaS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxMtcEChtBZ2VudENoYW5uZWxRdWVyeUNvbnRyb2xsZXISnwEKA2dldBIyLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQWdlbnRDaGFubmVsSWQaMC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkFnZW50Q2hhbm5lbCIywrgYLggBEC8iBXZhbHVlKiF1bmF1dGhvcml6ZWQgdG8gZ2V0IGFnZW50IGNoYW5uZWwSfgoOZ2V0QnlSZWZlcmVuY2USNC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VSZWZlcmVuY2UaMC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkFnZW50Q2hhbm5lbCIE0LgYARKMAQoKZ2V0QnlBZ2VudBJCLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuR2V0QWdlbnRDaGFubmVsc0J5QWdlbnRSZXF1ZXN0GjQuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5BZ2VudENoYW5uZWxMaXN0IgTQuBgBEoABCgRsaXN0EjwuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5MaXN0QWdlbnRDaGFubmVsc1JlcXVlc3QaNC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkFnZW50Q2hhbm5lbExpc3QiBNC4GAEaBKD/Ky9iBnByb3RvMw", [file_ai_stigmer_agentic_agentchannel_v1_api, file_ai_stigmer_agentic_agentchannel_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
|
+
* AgentChannelQueryController handles read operations for agent channels.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
* Deliberately no anonymous/public RPC (AgentShare's getSharedProfile has
|
|
19
|
+
* no analog here): the channel's public surface is the provider webhook,
|
|
20
|
+
* which authenticates by signature — never a query endpoint.
|
|
21
|
+
*
|
|
22
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.AgentChannelQueryController
|
|
23
|
+
*/
|
|
24
|
+
export const AgentChannelQueryController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_agentic_agentchannel_v1_query, 0);
|
|
25
|
+
//# sourceMappingURL=query_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/query_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,kIAAkI;AAClI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,2CAA2C,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,0CAA0C,EAAE,MAAM,YAAY,CAAC;AAExE,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,6CAA6C,GAAY,aAAa,CACjF,QAAQ,CAAC,g6BAAg6B,EAAE,CAAC,2CAA2C,EAAE,0CAA0C,EAAE,sCAAsC,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAErpC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAwDnC,aAAa,CAChB,WAAW,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { ApiResourceReference } from "../../../commons/apiresource/io_pb.js";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/spec.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ai_stigmer_agentic_agentchannel_v1_spec: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* AgentChannelSpec defines the configurable properties of an agent channel.
|
|
10
|
+
*
|
|
11
|
+
* The spec is deliberately small: which agent serves the channel, whether
|
|
12
|
+
* serving is enabled, and which provider the channel targets. Workspace
|
|
13
|
+
* identity and credentials are produced by the install flow and live in
|
|
14
|
+
* status — a declarative apply can never clobber them.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
* P1: the provider arms carry only genuinely user-declarable fields. For
|
|
18
|
+
* the multi-tenant Slack app everything concrete (team_id, bot_user_id,
|
|
19
|
+
* scopes, credentials env) is OAuth-observed → status. Owner-customizable
|
|
20
|
+
* refusal copy (the AgentShareMessages analog) is deliberately deferred:
|
|
21
|
+
* platform-default copy lives in the deliverer (decision 006); adding a
|
|
22
|
+
* messages block later is a non-breaking change.
|
|
23
|
+
*
|
|
24
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.AgentChannelSpec
|
|
25
|
+
*/
|
|
26
|
+
export type AgentChannelSpec = Message<"ai.stigmer.agentic.agentchannel.v1.AgentChannelSpec"> & {
|
|
27
|
+
/**
|
|
28
|
+
* Reference to the agent this channel serves.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
* Invariant (enforced in create/update/apply handlers of both editions,
|
|
32
|
+
* mirroring AgentShare's Phase A rule): agent_ref.org must equal
|
|
33
|
+
* metadata.org — the connection-owning org is the billing org and
|
|
34
|
+
* provider credentials resolve in that org (decision 004; T06 invariant).
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceReference agent_ref = 1;
|
|
37
|
+
*/
|
|
38
|
+
agentRef?: ApiResourceReference;
|
|
39
|
+
/**
|
|
40
|
+
* Whether serving traffic on this channel is enabled.
|
|
41
|
+
*
|
|
42
|
+
* Disabling is a config-preserving pause: the connection keeps its
|
|
43
|
+
* install state and credentials, but inbound events are refused until
|
|
44
|
+
* re-enabled. Delete the channel instead for a full teardown.
|
|
45
|
+
*
|
|
46
|
+
* @internal
|
|
47
|
+
* Decision 001 D-d. Pause must never drop the install: re-installing a
|
|
48
|
+
* Slack app to re-auth is painful. The per-turn gate re-reads this live
|
|
49
|
+
* (decision 003), so disabling takes effect on the next message.
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: bool enabled = 2;
|
|
52
|
+
*/
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Provider this channel connects to. Exactly one must be specified.
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
* Decision 001: provider variance is config-shaped, not lifecycle-shaped
|
|
59
|
+
* — one kind, a validated oneof (McpServerSpec.server_type precedent).
|
|
60
|
+
* Adding WhatsApp (T05) extends this oneof; it touches zero kinds.
|
|
61
|
+
*
|
|
62
|
+
* @generated from oneof ai.stigmer.agentic.agentchannel.v1.AgentChannelSpec.provider_config
|
|
63
|
+
*/
|
|
64
|
+
providerConfig: {
|
|
65
|
+
/**
|
|
66
|
+
* Slack workspace connection (multi-tenant Stigmer Slack app).
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.SlackChannelConfig slack = 3;
|
|
69
|
+
*/
|
|
70
|
+
value: SlackChannelConfig;
|
|
71
|
+
case: "slack";
|
|
72
|
+
} | {
|
|
73
|
+
case: undefined;
|
|
74
|
+
value?: undefined;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.AgentChannelSpec.
|
|
79
|
+
* Use `create(AgentChannelSpecSchema)` to create a new message.
|
|
80
|
+
*/
|
|
81
|
+
export declare const AgentChannelSpecSchema: GenMessage<AgentChannelSpec>;
|
|
82
|
+
/**
|
|
83
|
+
* SlackChannelConfig selects Slack as the channel provider.
|
|
84
|
+
*
|
|
85
|
+
* Empty in v1 by design: with the multi-tenant Stigmer Slack app there is
|
|
86
|
+
* nothing for the user to declare before installing — workspace identity,
|
|
87
|
+
* bot user, and granted scopes are observed during the OAuth install and
|
|
88
|
+
* recorded in status. Future user-tunable Slack behavior lands here.
|
|
89
|
+
*
|
|
90
|
+
* @internal
|
|
91
|
+
* P1. An empty message is set explicitly in manifests (`slack: {}`),
|
|
92
|
+
* satisfying the required oneof. Do not add OAuth-observed facts here —
|
|
93
|
+
* that is the spec-clobbering bug class decision 004 rejected.
|
|
94
|
+
*
|
|
95
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.SlackChannelConfig
|
|
96
|
+
*/
|
|
97
|
+
export type SlackChannelConfig = Message<"ai.stigmer.agentic.agentchannel.v1.SlackChannelConfig"> & {};
|
|
98
|
+
/**
|
|
99
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.SlackChannelConfig.
|
|
100
|
+
* Use `create(SlackChannelConfigSchema)` to create a new message.
|
|
101
|
+
*/
|
|
102
|
+
export declare const SlackChannelConfigSchema: GenMessage<SlackChannelConfig>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/agentchannel/v1/spec.proto (package ai.stigmer.agentic.agentchannel.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_commons_apiresource_field_options } from "../../../commons/apiresource/field_options_pb.js";
|
|
6
|
+
import { file_ai_stigmer_commons_apiresource_io } from "../../../commons/apiresource/io_pb.js";
|
|
7
|
+
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/spec.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_ai_stigmer_agentic_agentchannel_v1_spec = /*@__PURE__*/ fileDesc("Ci1haS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL3NwZWMucHJvdG8SImFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEitQIKEEFnZW50Q2hhbm5lbFNwZWMSrAEKCWFnZW50X3JlZhgBIAEoCzI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZUJjukhcugFWCg5hZ2VudF9yZWYua2luZBIzYWdlbnRfcmVmIG11c3QgcmVmZXJlbmNlIGEgcmVzb3VyY2Ugd2l0aCBraW5kPWFnZW50Gg90aGlzLmtpbmQgPT0gNDDIAQHghSwoEg8KB2VuYWJsZWQYAiABKAgSRwoFc2xhY2sYAyABKAsyNi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLlNsYWNrQ2hhbm5lbENvbmZpZ0gAQhgKD3Byb3ZpZGVyX2NvbmZpZxIFukgCCAEiFAoSU2xhY2tDaGFubmVsQ29uZmlnYgZwcm90bzM", [file_ai_stigmer_commons_apiresource_field_options, file_ai_stigmer_commons_apiresource_io, file_buf_validate_validate]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.AgentChannelSpec.
|
|
14
|
+
* Use `create(AgentChannelSpecSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const AgentChannelSpecSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_spec, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.SlackChannelConfig.
|
|
19
|
+
* Use `create(SlackChannelConfigSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const SlackChannelConfigSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_spec, 1);
|
|
22
|
+
//# sourceMappingURL=spec_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,iIAAiI;AACjI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,iDAAiD,EAAE,MAAM,kDAAkD,CAAC;AAErH,OAAO,EAAE,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAY,aAAa,CAChF,QAAQ,CAAC,yjBAAyjB,EAAE,CAAC,iDAAiD,EAAE,sCAAsC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAuE/rB;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,aAAa,CAC/E,WAAW,CAAC,4CAA4C,EAAE,CAAC,CAAC,CAAC;AAoB/D;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,4CAA4C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { ApiResourceAudit } from "../../../commons/apiresource/status_pb.js";
|
|
3
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/status.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ai_stigmer_agentic_agentchannel_v1_status: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* AgentChannelStatus contains system-managed state for an agent channel.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* Server-owned per decision 001 D-e / decision 004: install facts and the
|
|
14
|
+
* credentials reference survive every apply/update verbatim (the
|
|
15
|
+
* share_link_token precedent), so a routine manifest apply can never
|
|
16
|
+
* clobber an install or leak a secret. Secrets themselves NEVER appear
|
|
17
|
+
* here — the bot token lives encrypted in the referenced managed
|
|
18
|
+
* Environment; status is readable by anyone with can_view.
|
|
19
|
+
*
|
|
20
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.AgentChannelStatus
|
|
21
|
+
*/
|
|
22
|
+
export type AgentChannelStatus = Message<"ai.stigmer.agentic.agentchannel.v1.AgentChannelStatus"> & {
|
|
23
|
+
/**
|
|
24
|
+
* Install lifecycle of the provider connection.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.AgentChannelInstallState install_state = 1;
|
|
27
|
+
*/
|
|
28
|
+
installState: AgentChannelInstallState;
|
|
29
|
+
/**
|
|
30
|
+
* Provider-specific install facts observed during the install flow.
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
* Populated by the install completion path (sole writer). The arm always
|
|
34
|
+
* matches spec.provider_config's case.
|
|
35
|
+
*
|
|
36
|
+
* @generated from oneof ai.stigmer.agentic.agentchannel.v1.AgentChannelStatus.provider_status
|
|
37
|
+
*/
|
|
38
|
+
providerStatus: {
|
|
39
|
+
/**
|
|
40
|
+
* Slack workspace install facts.
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.SlackInstallStatus slack = 2;
|
|
43
|
+
*/
|
|
44
|
+
value: SlackInstallStatus;
|
|
45
|
+
case: "slack";
|
|
46
|
+
} | {
|
|
47
|
+
case: undefined;
|
|
48
|
+
value?: undefined;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* ID of the system-managed Environment holding this connection's
|
|
52
|
+
* provider credentials (e.g. the Slack bot token).
|
|
53
|
+
*
|
|
54
|
+
* @internal
|
|
55
|
+
* Decision 004: created via ManagedEnvironmentService in the
|
|
56
|
+
* connection's org (stigmer.ai/managed=true), non-secret grant metadata
|
|
57
|
+
* in the resource-agnostic OAuthGrant document. The webhook receiver and
|
|
58
|
+
* delivery worker resolve the token through this reference — never from
|
|
59
|
+
* the channel resource itself.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: string credentials_environment_id = 3;
|
|
62
|
+
*/
|
|
63
|
+
credentialsEnvironmentId: string;
|
|
64
|
+
/**
|
|
65
|
+
* Standard audit information (created_at, updated_at, created_by, etc.)
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceAudit audit = 99;
|
|
68
|
+
*/
|
|
69
|
+
audit?: ApiResourceAudit;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.AgentChannelStatus.
|
|
73
|
+
* Use `create(AgentChannelStatusSchema)` to create a new message.
|
|
74
|
+
*/
|
|
75
|
+
export declare const AgentChannelStatusSchema: GenMessage<AgentChannelStatus>;
|
|
76
|
+
/**
|
|
77
|
+
* SlackInstallStatus holds the facts observed when the Stigmer Slack app
|
|
78
|
+
* was installed into a workspace.
|
|
79
|
+
*
|
|
80
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.SlackInstallStatus
|
|
81
|
+
*/
|
|
82
|
+
export type SlackInstallStatus = Message<"ai.stigmer.agentic.agentchannel.v1.SlackInstallStatus"> & {
|
|
83
|
+
/**
|
|
84
|
+
* Slack workspace (team) ID, e.g. "T0123ABCD".
|
|
85
|
+
*
|
|
86
|
+
* @internal
|
|
87
|
+
* The inbound routing key: the webhook receiver resolves the
|
|
88
|
+
* AgentChannel from the event payload's team_id. One INSTALLED channel
|
|
89
|
+
* per workspace, enforced by a partial-unique index on installed rows
|
|
90
|
+
* (decision 007).
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: string team_id = 1;
|
|
93
|
+
*/
|
|
94
|
+
teamId: string;
|
|
95
|
+
/**
|
|
96
|
+
* Human-readable workspace name at install time.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: string team_name = 2;
|
|
99
|
+
*/
|
|
100
|
+
teamName: string;
|
|
101
|
+
/**
|
|
102
|
+
* Bot user ID minted by the install, e.g. "U0456EFGH".
|
|
103
|
+
* The identity the agent posts as; also how @mentions are recognized.
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: string bot_user_id = 3;
|
|
106
|
+
*/
|
|
107
|
+
botUserId: string;
|
|
108
|
+
/**
|
|
109
|
+
* OAuth scopes granted to the installation.
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: repeated string granted_scopes = 4;
|
|
112
|
+
*/
|
|
113
|
+
grantedScopes: string[];
|
|
114
|
+
/**
|
|
115
|
+
* Slack user ID of the person who performed the install.
|
|
116
|
+
*
|
|
117
|
+
* @generated from field: string installer_slack_user_id = 5;
|
|
118
|
+
*/
|
|
119
|
+
installerSlackUserId: string;
|
|
120
|
+
/**
|
|
121
|
+
* When the install completed.
|
|
122
|
+
*
|
|
123
|
+
* @generated from field: google.protobuf.Timestamp installed_at = 6;
|
|
124
|
+
*/
|
|
125
|
+
installedAt?: Timestamp;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.SlackInstallStatus.
|
|
129
|
+
* Use `create(SlackInstallStatusSchema)` to create a new message.
|
|
130
|
+
*/
|
|
131
|
+
export declare const SlackInstallStatusSchema: GenMessage<SlackInstallStatus>;
|
|
132
|
+
/**
|
|
133
|
+
* AgentChannelInstallState tracks the provider install lifecycle.
|
|
134
|
+
*
|
|
135
|
+
* This is deliberately distinct from spec.enabled: enabled is the owner's
|
|
136
|
+
* serving switch; install_state is the observed state of the provider
|
|
137
|
+
* connection. Traffic is served only when installed AND enabled.
|
|
138
|
+
*
|
|
139
|
+
* @generated from enum ai.stigmer.agentic.agentchannel.v1.AgentChannelInstallState
|
|
140
|
+
*/
|
|
141
|
+
export declare enum AgentChannelInstallState {
|
|
142
|
+
/**
|
|
143
|
+
* Default value when no state is set.
|
|
144
|
+
*
|
|
145
|
+
* @generated from enum value: agent_channel_install_state_unspecified = 0;
|
|
146
|
+
*/
|
|
147
|
+
agent_channel_install_state_unspecified = 0,
|
|
148
|
+
/**
|
|
149
|
+
* The channel exists but the provider install has not completed.
|
|
150
|
+
* No traffic is served in this state regardless of spec.enabled.
|
|
151
|
+
*
|
|
152
|
+
* @generated from enum value: pending_install = 1;
|
|
153
|
+
*/
|
|
154
|
+
pending_install = 1,
|
|
155
|
+
/**
|
|
156
|
+
* The provider install completed; credentials are stored and the
|
|
157
|
+
* channel serves traffic while spec.enabled is true.
|
|
158
|
+
*
|
|
159
|
+
* @generated from enum value: installed = 2;
|
|
160
|
+
*/
|
|
161
|
+
installed = 2,
|
|
162
|
+
/**
|
|
163
|
+
* The provider revoked the installation (e.g. the Slack app was
|
|
164
|
+
* uninstalled from the workspace or tokens were revoked). The channel
|
|
165
|
+
* configuration survives; re-installing returns it to installed.
|
|
166
|
+
*
|
|
167
|
+
* @generated from enum value: revoked = 3;
|
|
168
|
+
*/
|
|
169
|
+
revoked = 3
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Describes the enum ai.stigmer.agentic.agentchannel.v1.AgentChannelInstallState.
|
|
173
|
+
*/
|
|
174
|
+
export declare const AgentChannelInstallStateSchema: GenEnum<AgentChannelInstallState>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/agentchannel/v1/status.proto (package ai.stigmer.agentic.agentchannel.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_commons_apiresource_status } from "../../../commons/apiresource/status_pb.js";
|
|
6
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/status.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_ai_stigmer_agentic_agentchannel_v1_status = /*@__PURE__*/ fileDesc("Ci9haS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL3N0YXR1cy5wcm90bxIiYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MSKqAgoSQWdlbnRDaGFubmVsU3RhdHVzElMKDWluc3RhbGxfc3RhdGUYASABKA4yPC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkFnZW50Q2hhbm5lbEluc3RhbGxTdGF0ZRJHCgVzbGFjaxgCIAEoCzI2LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuU2xhY2tJbnN0YWxsU3RhdHVzSAASIgoaY3JlZGVudGlhbHNfZW52aXJvbm1lbnRfaWQYAyABKAkSPwoFYXVkaXQYYyABKAsyMC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdEIRCg9wcm92aWRlcl9zdGF0dXMiuAEKElNsYWNrSW5zdGFsbFN0YXR1cxIPCgd0ZWFtX2lkGAEgASgJEhEKCXRlYW1fbmFtZRgCIAEoCRITCgtib3RfdXNlcl9pZBgDIAEoCRIWCg5ncmFudGVkX3Njb3BlcxgEIAMoCRIfChdpbnN0YWxsZXJfc2xhY2tfdXNlcl9pZBgFIAEoCRIwCgxpbnN0YWxsZWRfYXQYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wKngKGEFnZW50Q2hhbm5lbEluc3RhbGxTdGF0ZRIrCidhZ2VudF9jaGFubmVsX2luc3RhbGxfc3RhdGVfdW5zcGVjaWZpZWQQABITCg9wZW5kaW5nX2luc3RhbGwQARINCglpbnN0YWxsZWQQAhILCgdyZXZva2VkEANiBnByb3RvMw", [file_ai_stigmer_commons_apiresource_status, file_google_protobuf_timestamp]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.AgentChannelStatus.
|
|
13
|
+
* Use `create(AgentChannelStatusSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const AgentChannelStatusSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_status, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.SlackInstallStatus.
|
|
18
|
+
* Use `create(SlackInstallStatusSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const SlackInstallStatusSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_status, 1);
|
|
21
|
+
/**
|
|
22
|
+
* AgentChannelInstallState tracks the provider install lifecycle.
|
|
23
|
+
*
|
|
24
|
+
* This is deliberately distinct from spec.enabled: enabled is the owner's
|
|
25
|
+
* serving switch; install_state is the observed state of the provider
|
|
26
|
+
* connection. Traffic is served only when installed AND enabled.
|
|
27
|
+
*
|
|
28
|
+
* @generated from enum ai.stigmer.agentic.agentchannel.v1.AgentChannelInstallState
|
|
29
|
+
*/
|
|
30
|
+
export var AgentChannelInstallState;
|
|
31
|
+
(function (AgentChannelInstallState) {
|
|
32
|
+
/**
|
|
33
|
+
* Default value when no state is set.
|
|
34
|
+
*
|
|
35
|
+
* @generated from enum value: agent_channel_install_state_unspecified = 0;
|
|
36
|
+
*/
|
|
37
|
+
AgentChannelInstallState[AgentChannelInstallState["agent_channel_install_state_unspecified"] = 0] = "agent_channel_install_state_unspecified";
|
|
38
|
+
/**
|
|
39
|
+
* The channel exists but the provider install has not completed.
|
|
40
|
+
* No traffic is served in this state regardless of spec.enabled.
|
|
41
|
+
*
|
|
42
|
+
* @generated from enum value: pending_install = 1;
|
|
43
|
+
*/
|
|
44
|
+
AgentChannelInstallState[AgentChannelInstallState["pending_install"] = 1] = "pending_install";
|
|
45
|
+
/**
|
|
46
|
+
* The provider install completed; credentials are stored and the
|
|
47
|
+
* channel serves traffic while spec.enabled is true.
|
|
48
|
+
*
|
|
49
|
+
* @generated from enum value: installed = 2;
|
|
50
|
+
*/
|
|
51
|
+
AgentChannelInstallState[AgentChannelInstallState["installed"] = 2] = "installed";
|
|
52
|
+
/**
|
|
53
|
+
* The provider revoked the installation (e.g. the Slack app was
|
|
54
|
+
* uninstalled from the workspace or tokens were revoked). The channel
|
|
55
|
+
* configuration survives; re-installing returns it to installed.
|
|
56
|
+
*
|
|
57
|
+
* @generated from enum value: revoked = 3;
|
|
58
|
+
*/
|
|
59
|
+
AgentChannelInstallState[AgentChannelInstallState["revoked"] = 3] = "revoked";
|
|
60
|
+
})(AgentChannelInstallState || (AgentChannelInstallState = {}));
|
|
61
|
+
/**
|
|
62
|
+
* Describes the enum ai.stigmer.agentic.agentchannel.v1.AgentChannelInstallState.
|
|
63
|
+
*/
|
|
64
|
+
export const AgentChannelInstallStateSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_agentchannel_v1_status, 0);
|
|
65
|
+
//# sourceMappingURL=status_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/status_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,mIAAmI;AACnI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,8CAA8C,GAAY,aAAa,CAClF,QAAQ,CAAC,46BAA46B,EAAE,CAAC,0CAA0C,EAAE,8BAA8B,CAAC,CAAC,CAAC;AAiEvgC;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,8CAA8C,EAAE,CAAC,CAAC,CAAC;AA2DjE;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,8CAA8C,EAAE,CAAC,CAAC,CAAC;AAEjE;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,wBAgCX;AAhCD,WAAY,wBAAwB;IAClC;;;;OAIG;IACH,6IAA2C,CAAA;IAE3C;;;;;OAKG;IACH,6FAAmB,CAAA;IAEnB;;;;;OAKG;IACH,iFAAa,CAAA;IAEb;;;;;;OAMG;IACH,6EAAW,CAAA;AACb,CAAC,EAhCW,wBAAwB,KAAxB,wBAAwB,QAgCnC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAsC,aAAa,CAC5F,QAAQ,CAAC,8CAA8C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
2
|
import type { InteractionMode } from "./enum_pb.js";
|
|
3
3
|
import type { ExecutionValue } from "../../executioncontext/v1/spec_pb.js";
|
|
4
|
+
import type { SessionSpec } from "../../session/v1/spec_pb.js";
|
|
4
5
|
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
5
6
|
/**
|
|
6
7
|
* Describes the file ai/stigmer/agentic/agentexecution/v1/spec.proto.
|
|
@@ -18,13 +19,15 @@ export type AgentExecutionSpec = Message<"ai.stigmer.agentic.agentexecution.v1.A
|
|
|
18
19
|
*
|
|
19
20
|
* Resolution priority (enforced in handler pipeline):
|
|
20
21
|
* 1. session_id provided -> use existing session
|
|
21
|
-
* 2.
|
|
22
|
-
* 3.
|
|
22
|
+
* 2. session_spec provided -> auto-create session from the embedded spec
|
|
23
|
+
* 3. agent_id provided -> auto-create session using agent's default instance
|
|
24
|
+
* 4. neither provided -> resolve platform default agent (label
|
|
23
25
|
* stigmer.ai/default-agent + visibility_public), then auto-create session
|
|
24
26
|
*
|
|
25
|
-
*
|
|
26
|
-
* resolution and agent_id is preserved as metadata for
|
|
27
|
-
* (e.g., session subject generation).
|
|
27
|
+
* session_id and agent_id may both be set — when both are present, session_id
|
|
28
|
+
* is used for session resolution and agent_id is preserved as metadata for
|
|
29
|
+
* downstream consumers (e.g., session subject generation). session_id and
|
|
30
|
+
* session_spec are mutually exclusive.
|
|
28
31
|
*
|
|
29
32
|
* @generated from field: string session_id = 1;
|
|
30
33
|
*/
|
|
@@ -47,6 +50,39 @@ export type AgentExecutionSpec = Message<"ai.stigmer.agentic.agentexecution.v1.A
|
|
|
47
50
|
* @generated from field: string agent_id = 2;
|
|
48
51
|
*/
|
|
49
52
|
agentId: string;
|
|
53
|
+
/**
|
|
54
|
+
* Spec for the session to auto-create when session_id is empty (optional).
|
|
55
|
+
*
|
|
56
|
+
* This is the one-call session bootstrap: a single create carries the full
|
|
57
|
+
* session shape (workspace_entries, harness, execution_target, MCP servers,
|
|
58
|
+
* skills) together with the first message, so embedders do not need to
|
|
59
|
+
* orchestrate session.create followed by agentExecution.create. The created
|
|
60
|
+
* session's ID is returned on the persisted execution's session_id.
|
|
61
|
+
*
|
|
62
|
+
* Fields that must be set at session-creation time and are immutable once
|
|
63
|
+
* an execution has run — harness and execution_target — can only reach an
|
|
64
|
+
* auto-created session through this field.
|
|
65
|
+
*
|
|
66
|
+
* When session_spec.agent_instance_id is set, the session runs against that
|
|
67
|
+
* instance and agent_id must not also be resolved from it. When empty, the
|
|
68
|
+
* normal resolution applies: agent_id's default instance, or the platform
|
|
69
|
+
* default agent when agent_id is also empty.
|
|
70
|
+
*
|
|
71
|
+
* Mutually exclusive with session_id. session_spec.harness_state_id must be
|
|
72
|
+
* empty — it is server-owned harness continuity state, created by the runner
|
|
73
|
+
* after the first execution.
|
|
74
|
+
*
|
|
75
|
+
* @internal
|
|
76
|
+
* The Session resource created from this spec is the single source of truth
|
|
77
|
+
* for session configuration. The handler clears this field after the session
|
|
78
|
+
* is created (before persist), so the execution record never carries a
|
|
79
|
+
* second copy of session config that could drift as the session evolves.
|
|
80
|
+
* Extends the existing auto-create path in createSessionIfNeededStep rather
|
|
81
|
+
* than adding a parallel one (stigmer/stigmer#249).
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: ai.stigmer.agentic.session.v1.SessionSpec session_spec = 13;
|
|
84
|
+
*/
|
|
85
|
+
sessionSpec?: SessionSpec;
|
|
50
86
|
/**
|
|
51
87
|
* User input message that triggers this execution.
|
|
52
88
|
* Each execution represents one user message and the agent's response.
|