@stigmer/protos 3.1.13 → 3.1.14
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 +190 -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/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,68 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { AgentChannelSpec } from "./spec_pb.js";
|
|
3
|
+
import type { AgentChannelStatus } from "./status_pb.js";
|
|
4
|
+
import type { ApiResourceMetadata } from "../../../commons/apiresource/metadata_pb.js";
|
|
5
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/api.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_ai_stigmer_agentic_agentchannel_v1_api: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* AgentChannel connects an agent to an external messaging platform so people can chat with it where they already work.
|
|
12
|
+
*
|
|
13
|
+
* A channel is a distribution channel like AgentShare, but for push-based
|
|
14
|
+
* messaging platforms: the provider (Slack today) delivers user messages
|
|
15
|
+
* to a Stigmer webhook, and Stigmer calls the provider's API to deliver
|
|
16
|
+
* the agent's replies. The connection records which agent serves the
|
|
17
|
+
* channel, whether serving is enabled, and provider selection; the
|
|
18
|
+
* workspace identity and credential references produced by the install
|
|
19
|
+
* flow live in status. Deleting the channel tears the connection down;
|
|
20
|
+
* disabling pauses serving while preserving the install.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
* Sibling of AgentShare (decision 001): one kind per target, provider
|
|
24
|
+
* variance in spec.provider_config. metadata.org is the billing org
|
|
25
|
+
* (decision 001 D-b). N channels per agent; the defaults resolver does
|
|
26
|
+
* NOT default the slug to the agent slug (org+slug is unique and channels
|
|
27
|
+
* are N-per-agent — P7), standard derive-from-name applies. The overview.md
|
|
28
|
+
* file provides the SDK-facing description and example YAML.
|
|
29
|
+
*
|
|
30
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.AgentChannel
|
|
31
|
+
*/
|
|
32
|
+
export type AgentChannel = Message<"ai.stigmer.agentic.agentchannel.v1.AgentChannel"> & {
|
|
33
|
+
/**
|
|
34
|
+
* API version for this resource type.
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string api_version = 1;
|
|
37
|
+
*/
|
|
38
|
+
apiVersion: string;
|
|
39
|
+
/**
|
|
40
|
+
* Resource kind identifier.
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: string kind = 2;
|
|
43
|
+
*/
|
|
44
|
+
kind: string;
|
|
45
|
+
/**
|
|
46
|
+
* Resource metadata including name, organization, and labels.
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceMetadata metadata = 3;
|
|
49
|
+
*/
|
|
50
|
+
metadata?: ApiResourceMetadata;
|
|
51
|
+
/**
|
|
52
|
+
* Configurable properties: referenced agent, enablement, and provider selection.
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.AgentChannelSpec spec = 4;
|
|
55
|
+
*/
|
|
56
|
+
spec?: AgentChannelSpec;
|
|
57
|
+
/**
|
|
58
|
+
* System-managed state: install lifecycle, provider install facts, credential reference, and audit trail.
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.AgentChannelStatus status = 5;
|
|
61
|
+
*/
|
|
62
|
+
status?: AgentChannelStatus;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.AgentChannel.
|
|
66
|
+
* Use `create(AgentChannelSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export declare const AgentChannelSchema: GenMessage<AgentChannel>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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/api.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_agentic_agentchannel_v1_spec } from "./spec_pb.js";
|
|
6
|
+
import { file_ai_stigmer_agentic_agentchannel_v1_status } from "./status_pb.js";
|
|
7
|
+
import { file_ai_stigmer_commons_apiresource_metadata } from "../../../commons/apiresource/metadata_pb.js";
|
|
8
|
+
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb.js";
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/api.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_ai_stigmer_agentic_agentchannel_v1_api = /*@__PURE__*/ fileDesc("CixhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL2FwaS5wcm90bxIiYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MSK/AgoMQWdlbnRDaGFubmVsEjEKC2FwaV92ZXJzaW9uGAEgASgJQhy6SBlyFwoVYWdlbnRpYy5zdGlnbWVyLmFpL3YxEiEKBGtpbmQYAiABKAlCE7pIEHIOCgxBZ2VudENoYW5uZWwSTQoIbWV0YWRhdGEYAyABKAsyMy5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VNZXRhZGF0YUIGukgDyAEBEkIKBHNwZWMYBCABKAsyNC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkFnZW50Q2hhbm5lbFNwZWMSRgoGc3RhdHVzGAUgASgLMjYuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5BZ2VudENoYW5uZWxTdGF0dXNiBnByb3RvMw", [file_ai_stigmer_agentic_agentchannel_v1_spec, file_ai_stigmer_agentic_agentchannel_v1_status, file_ai_stigmer_commons_apiresource_metadata, file_buf_validate_validate]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.AgentChannel.
|
|
15
|
+
* Use `create(AgentChannelSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const AgentChannelSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_api, 0);
|
|
18
|
+
//# sourceMappingURL=api_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/api_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,gIAAgI;AAChI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,4CAA4C,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,EAAE,8CAA8C,EAAE,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAE,4CAA4C,EAAE,MAAM,6CAA6C,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAY,aAAa,CAC/E,QAAQ,CAAC,wiBAAwiB,EAAE,CAAC,4CAA4C,EAAE,8CAA8C,EAAE,4CAA4C,EAAE,0BAA0B,CAAC,CAAC,CAAC;AA6D/tB;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentChannelCommandController handles write operations for agent channels.
|
|
3
|
+
*
|
|
4
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController
|
|
5
|
+
*/
|
|
6
|
+
export declare const AgentChannelCommandController: {
|
|
7
|
+
readonly typeName: "ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* Create or update an agent channel.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* The authorization and state-operation are determined depending on
|
|
14
|
+
* whether the channel is going to be created or updated, resolved as
|
|
15
|
+
* part of request execution. status is preserved verbatim (the install
|
|
16
|
+
* flow is its sole writer).
|
|
17
|
+
*
|
|
18
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.apply
|
|
19
|
+
*/
|
|
20
|
+
readonly apply: {
|
|
21
|
+
readonly name: "apply";
|
|
22
|
+
readonly I: any;
|
|
23
|
+
readonly O: any;
|
|
24
|
+
readonly kind: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Create an agent channel.
|
|
28
|
+
*
|
|
29
|
+
* Connecting an agent to a channel is a billing-affecting decision:
|
|
30
|
+
* conversations arriving over the channel consume the connection-owning
|
|
31
|
+
* organization's credits.
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
34
|
+
* Authorization: requires can_edit on the REFERENCED AGENT
|
|
35
|
+
* (spec.agent_ref), checked in-handler — same bar as AgentShare create,
|
|
36
|
+
* since connecting a channel broadens who can chat with the agent
|
|
37
|
+
* runtime. Standard org-scoped create tuples (owner = creator) for the
|
|
38
|
+
* channel itself; no visibility tuples (channel admission is app-level).
|
|
39
|
+
* Invariant enforced here: metadata.org must equal spec.agent_ref.org.
|
|
40
|
+
* status.install_state is initialized to pending_install.
|
|
41
|
+
*
|
|
42
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.create
|
|
43
|
+
*/
|
|
44
|
+
readonly create: {
|
|
45
|
+
readonly name: "create";
|
|
46
|
+
readonly I: any;
|
|
47
|
+
readonly O: any;
|
|
48
|
+
readonly kind: any;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Update an existing agent channel.
|
|
52
|
+
*
|
|
53
|
+
* Replaces the spec wholesale. The slug, referenced agent, and provider
|
|
54
|
+
* arm are immutable; status (install facts, credential reference) is
|
|
55
|
+
* never touched by updates.
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
* Authorization: requires can_edit permission on the agent channel.
|
|
59
|
+
* Provider-arm immutability (a slack channel cannot become whatsapp) is
|
|
60
|
+
* enforced in-handler: the install state, credentials, and delivery
|
|
61
|
+
* records are all provider-shaped.
|
|
62
|
+
*
|
|
63
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.update
|
|
64
|
+
*/
|
|
65
|
+
readonly update: {
|
|
66
|
+
readonly name: "update";
|
|
67
|
+
readonly I: any;
|
|
68
|
+
readonly O: any;
|
|
69
|
+
readonly kind: any;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Start the provider install flow for an agent channel.
|
|
73
|
+
*
|
|
74
|
+
* Returns the provider authorization URL to redirect the installing
|
|
75
|
+
* user to, plus the single-use state that completeInstall verifies.
|
|
76
|
+
*
|
|
77
|
+
* @internal
|
|
78
|
+
* Authorization: requires can_edit on the agent channel — installing
|
|
79
|
+
* grants a workspace access to the agent runtime, the same bar as
|
|
80
|
+
* enabling. Generates and persists the single-use state (pending-state
|
|
81
|
+
* pattern from MCP OAuth). Cloud-first runtime: the OSS edition stores
|
|
82
|
+
* channel resources but returns FAILED_PRECONDITION here (documented
|
|
83
|
+
* posture, decision 001 D-g / T02 §0-b).
|
|
84
|
+
*
|
|
85
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.initiateInstall
|
|
86
|
+
*/
|
|
87
|
+
readonly initiateInstall: {
|
|
88
|
+
readonly name: "initiateInstall";
|
|
89
|
+
readonly I: any;
|
|
90
|
+
readonly O: any;
|
|
91
|
+
readonly kind: any;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Complete the provider install flow for an agent channel.
|
|
95
|
+
*
|
|
96
|
+
* Called by the console after the provider's consent redirect, with the
|
|
97
|
+
* state from initiateInstall and the provider's authorization code. On
|
|
98
|
+
* success the channel's status carries the install facts and the
|
|
99
|
+
* channel begins serving (subject to spec.enabled).
|
|
100
|
+
*
|
|
101
|
+
* @internal
|
|
102
|
+
* Authorization: requires can_edit on the agent channel — the same bar
|
|
103
|
+
* as initiateInstall (the two halves of one flow). The handler consumes
|
|
104
|
+
* the state atomically, exchanges the code, stores credentials in the
|
|
105
|
+
* system-managed Environment, records the grant, and writes the status
|
|
106
|
+
* facts (sole writer). The OSS edition returns FAILED_PRECONDITION
|
|
107
|
+
* (documented posture, decision 001 D-g / T02 §0-b).
|
|
108
|
+
*
|
|
109
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.completeInstall
|
|
110
|
+
*/
|
|
111
|
+
readonly completeInstall: {
|
|
112
|
+
readonly name: "completeInstall";
|
|
113
|
+
readonly I: any;
|
|
114
|
+
readonly O: any;
|
|
115
|
+
readonly kind: any;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Delete an agent channel.
|
|
119
|
+
*
|
|
120
|
+
* Full teardown of the connection: inbound events for the workspace stop
|
|
121
|
+
* resolving, pending deliveries are abandoned, and the credentials
|
|
122
|
+
* environment is deleted with the grant. To pause serving while keeping
|
|
123
|
+
* the install, update the channel with enabled=false instead.
|
|
124
|
+
*
|
|
125
|
+
* @internal
|
|
126
|
+
* Authorization: requires can_delete permission on the agent channel.
|
|
127
|
+
* The referenced agent is untouched. Teardown cascade (managed env +
|
|
128
|
+
* grant deletion) mirrors McpServer disconnectOAuth.
|
|
129
|
+
*
|
|
130
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.delete
|
|
131
|
+
*/
|
|
132
|
+
readonly delete: {
|
|
133
|
+
readonly name: "delete";
|
|
134
|
+
readonly I: any;
|
|
135
|
+
readonly O: any;
|
|
136
|
+
readonly kind: any;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
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/command.proto (package ai.stigmer.agentic.agentchannel.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { AgentChannel } from "./api_pbjs";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
import { AgentChannelId, CompleteChannelInstallInput, InitiateChannelInstallInput, InitiateChannelInstallOutput } from "./io_pbjs";
|
|
8
|
+
/**
|
|
9
|
+
* AgentChannelCommandController handles write operations for agent channels.
|
|
10
|
+
*
|
|
11
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController
|
|
12
|
+
*/
|
|
13
|
+
export const AgentChannelCommandController = {
|
|
14
|
+
typeName: "ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController",
|
|
15
|
+
methods: {
|
|
16
|
+
/**
|
|
17
|
+
* Create or update an agent channel.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
* The authorization and state-operation are determined depending on
|
|
21
|
+
* whether the channel is going to be created or updated, resolved as
|
|
22
|
+
* part of request execution. status is preserved verbatim (the install
|
|
23
|
+
* flow is its sole writer).
|
|
24
|
+
*
|
|
25
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.apply
|
|
26
|
+
*/
|
|
27
|
+
apply: {
|
|
28
|
+
name: "apply",
|
|
29
|
+
I: AgentChannel,
|
|
30
|
+
O: AgentChannel,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* Create an agent channel.
|
|
35
|
+
*
|
|
36
|
+
* Connecting an agent to a channel is a billing-affecting decision:
|
|
37
|
+
* conversations arriving over the channel consume the connection-owning
|
|
38
|
+
* organization's credits.
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
* Authorization: requires can_edit on the REFERENCED AGENT
|
|
42
|
+
* (spec.agent_ref), checked in-handler — same bar as AgentShare create,
|
|
43
|
+
* since connecting a channel broadens who can chat with the agent
|
|
44
|
+
* runtime. Standard org-scoped create tuples (owner = creator) for the
|
|
45
|
+
* channel itself; no visibility tuples (channel admission is app-level).
|
|
46
|
+
* Invariant enforced here: metadata.org must equal spec.agent_ref.org.
|
|
47
|
+
* status.install_state is initialized to pending_install.
|
|
48
|
+
*
|
|
49
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.create
|
|
50
|
+
*/
|
|
51
|
+
create: {
|
|
52
|
+
name: "create",
|
|
53
|
+
I: AgentChannel,
|
|
54
|
+
O: AgentChannel,
|
|
55
|
+
kind: MethodKind.Unary,
|
|
56
|
+
},
|
|
57
|
+
/**
|
|
58
|
+
* Update an existing agent channel.
|
|
59
|
+
*
|
|
60
|
+
* Replaces the spec wholesale. The slug, referenced agent, and provider
|
|
61
|
+
* arm are immutable; status (install facts, credential reference) is
|
|
62
|
+
* never touched by updates.
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
* Authorization: requires can_edit permission on the agent channel.
|
|
66
|
+
* Provider-arm immutability (a slack channel cannot become whatsapp) is
|
|
67
|
+
* enforced in-handler: the install state, credentials, and delivery
|
|
68
|
+
* records are all provider-shaped.
|
|
69
|
+
*
|
|
70
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.update
|
|
71
|
+
*/
|
|
72
|
+
update: {
|
|
73
|
+
name: "update",
|
|
74
|
+
I: AgentChannel,
|
|
75
|
+
O: AgentChannel,
|
|
76
|
+
kind: MethodKind.Unary,
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* Start the provider install flow for an agent channel.
|
|
80
|
+
*
|
|
81
|
+
* Returns the provider authorization URL to redirect the installing
|
|
82
|
+
* user to, plus the single-use state that completeInstall verifies.
|
|
83
|
+
*
|
|
84
|
+
* @internal
|
|
85
|
+
* Authorization: requires can_edit on the agent channel — installing
|
|
86
|
+
* grants a workspace access to the agent runtime, the same bar as
|
|
87
|
+
* enabling. Generates and persists the single-use state (pending-state
|
|
88
|
+
* pattern from MCP OAuth). Cloud-first runtime: the OSS edition stores
|
|
89
|
+
* channel resources but returns FAILED_PRECONDITION here (documented
|
|
90
|
+
* posture, decision 001 D-g / T02 §0-b).
|
|
91
|
+
*
|
|
92
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.initiateInstall
|
|
93
|
+
*/
|
|
94
|
+
initiateInstall: {
|
|
95
|
+
name: "initiateInstall",
|
|
96
|
+
I: InitiateChannelInstallInput,
|
|
97
|
+
O: InitiateChannelInstallOutput,
|
|
98
|
+
kind: MethodKind.Unary,
|
|
99
|
+
},
|
|
100
|
+
/**
|
|
101
|
+
* Complete the provider install flow for an agent channel.
|
|
102
|
+
*
|
|
103
|
+
* Called by the console after the provider's consent redirect, with the
|
|
104
|
+
* state from initiateInstall and the provider's authorization code. On
|
|
105
|
+
* success the channel's status carries the install facts and the
|
|
106
|
+
* channel begins serving (subject to spec.enabled).
|
|
107
|
+
*
|
|
108
|
+
* @internal
|
|
109
|
+
* Authorization: requires can_edit on the agent channel — the same bar
|
|
110
|
+
* as initiateInstall (the two halves of one flow). The handler consumes
|
|
111
|
+
* the state atomically, exchanges the code, stores credentials in the
|
|
112
|
+
* system-managed Environment, records the grant, and writes the status
|
|
113
|
+
* facts (sole writer). The OSS edition returns FAILED_PRECONDITION
|
|
114
|
+
* (documented posture, decision 001 D-g / T02 §0-b).
|
|
115
|
+
*
|
|
116
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.completeInstall
|
|
117
|
+
*/
|
|
118
|
+
completeInstall: {
|
|
119
|
+
name: "completeInstall",
|
|
120
|
+
I: CompleteChannelInstallInput,
|
|
121
|
+
O: AgentChannel,
|
|
122
|
+
kind: MethodKind.Unary,
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
* Delete an agent channel.
|
|
126
|
+
*
|
|
127
|
+
* Full teardown of the connection: inbound events for the workspace stop
|
|
128
|
+
* resolving, pending deliveries are abandoned, and the credentials
|
|
129
|
+
* environment is deleted with the grant. To pause serving while keeping
|
|
130
|
+
* the install, update the channel with enabled=false instead.
|
|
131
|
+
*
|
|
132
|
+
* @internal
|
|
133
|
+
* Authorization: requires can_delete permission on the agent channel.
|
|
134
|
+
* The referenced agent is untouched. Teardown cascade (managed env +
|
|
135
|
+
* grant deletion) mirrors McpServer disconnectOAuth.
|
|
136
|
+
*
|
|
137
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.delete
|
|
138
|
+
*/
|
|
139
|
+
delete: {
|
|
140
|
+
name: "delete",
|
|
141
|
+
I: AgentChannelId,
|
|
142
|
+
O: AgentChannel,
|
|
143
|
+
kind: MethodKind.Unary,
|
|
144
|
+
},
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
//# sourceMappingURL=command_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/command_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,oIAAoI;AACpI,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAEnI;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,QAAQ,EAAE,kEAAkE;IAC5E,OAAO,EAAE;QACP;;;;;;;;;;WAUG;QACH,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,CAAC,EAAE,YAAY;YACf,CAAC,EAAE,YAAY;YACf,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;WAiBG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,YAAY;YACf,CAAC,EAAE,YAAY;YACf,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;WAcG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,YAAY;YACf,CAAC,EAAE,YAAY;YACf,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;WAeG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,iBAAiB;YACvB,CAAC,EAAE,2BAA2B;YAC9B,CAAC,EAAE,4BAA4B;YAC/B,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;WAiBG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,iBAAiB;YACvB,CAAC,EAAE,2BAA2B;YAC9B,CAAC,EAAE,YAAY;YACf,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;WAcG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,cAAc;YACjB,CAAC,EAAE,YAAY;YACf,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { AgentChannelSchema } from "./api_pb.js";
|
|
3
|
+
import type { AgentChannelIdSchema, CompleteChannelInstallInputSchema, InitiateChannelInstallInputSchema, InitiateChannelInstallOutputSchema } from "./io_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/command.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ai_stigmer_agentic_agentchannel_v1_command: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* AgentChannelCommandController handles write operations for agent channels.
|
|
10
|
+
*
|
|
11
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController
|
|
12
|
+
*/
|
|
13
|
+
export declare const AgentChannelCommandController: GenService<{
|
|
14
|
+
/**
|
|
15
|
+
* Create or update an agent channel.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
* The authorization and state-operation are determined depending on
|
|
19
|
+
* whether the channel is going to be created or updated, resolved as
|
|
20
|
+
* part of request execution. status is preserved verbatim (the install
|
|
21
|
+
* flow is its sole writer).
|
|
22
|
+
*
|
|
23
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.apply
|
|
24
|
+
*/
|
|
25
|
+
apply: {
|
|
26
|
+
methodKind: "unary";
|
|
27
|
+
input: typeof AgentChannelSchema;
|
|
28
|
+
output: typeof AgentChannelSchema;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Create an agent channel.
|
|
32
|
+
*
|
|
33
|
+
* Connecting an agent to a channel is a billing-affecting decision:
|
|
34
|
+
* conversations arriving over the channel consume the connection-owning
|
|
35
|
+
* organization's credits.
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
* Authorization: requires can_edit on the REFERENCED AGENT
|
|
39
|
+
* (spec.agent_ref), checked in-handler — same bar as AgentShare create,
|
|
40
|
+
* since connecting a channel broadens who can chat with the agent
|
|
41
|
+
* runtime. Standard org-scoped create tuples (owner = creator) for the
|
|
42
|
+
* channel itself; no visibility tuples (channel admission is app-level).
|
|
43
|
+
* Invariant enforced here: metadata.org must equal spec.agent_ref.org.
|
|
44
|
+
* status.install_state is initialized to pending_install.
|
|
45
|
+
*
|
|
46
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.create
|
|
47
|
+
*/
|
|
48
|
+
create: {
|
|
49
|
+
methodKind: "unary";
|
|
50
|
+
input: typeof AgentChannelSchema;
|
|
51
|
+
output: typeof AgentChannelSchema;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Update an existing agent channel.
|
|
55
|
+
*
|
|
56
|
+
* Replaces the spec wholesale. The slug, referenced agent, and provider
|
|
57
|
+
* arm are immutable; status (install facts, credential reference) is
|
|
58
|
+
* never touched by updates.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
61
|
+
* Authorization: requires can_edit permission on the agent channel.
|
|
62
|
+
* Provider-arm immutability (a slack channel cannot become whatsapp) is
|
|
63
|
+
* enforced in-handler: the install state, credentials, and delivery
|
|
64
|
+
* records are all provider-shaped.
|
|
65
|
+
*
|
|
66
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.update
|
|
67
|
+
*/
|
|
68
|
+
update: {
|
|
69
|
+
methodKind: "unary";
|
|
70
|
+
input: typeof AgentChannelSchema;
|
|
71
|
+
output: typeof AgentChannelSchema;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Start the provider install flow for an agent channel.
|
|
75
|
+
*
|
|
76
|
+
* Returns the provider authorization URL to redirect the installing
|
|
77
|
+
* user to, plus the single-use state that completeInstall verifies.
|
|
78
|
+
*
|
|
79
|
+
* @internal
|
|
80
|
+
* Authorization: requires can_edit on the agent channel — installing
|
|
81
|
+
* grants a workspace access to the agent runtime, the same bar as
|
|
82
|
+
* enabling. Generates and persists the single-use state (pending-state
|
|
83
|
+
* pattern from MCP OAuth). Cloud-first runtime: the OSS edition stores
|
|
84
|
+
* channel resources but returns FAILED_PRECONDITION here (documented
|
|
85
|
+
* posture, decision 001 D-g / T02 §0-b).
|
|
86
|
+
*
|
|
87
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.initiateInstall
|
|
88
|
+
*/
|
|
89
|
+
initiateInstall: {
|
|
90
|
+
methodKind: "unary";
|
|
91
|
+
input: typeof InitiateChannelInstallInputSchema;
|
|
92
|
+
output: typeof InitiateChannelInstallOutputSchema;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Complete the provider install flow for an agent channel.
|
|
96
|
+
*
|
|
97
|
+
* Called by the console after the provider's consent redirect, with the
|
|
98
|
+
* state from initiateInstall and the provider's authorization code. On
|
|
99
|
+
* success the channel's status carries the install facts and the
|
|
100
|
+
* channel begins serving (subject to spec.enabled).
|
|
101
|
+
*
|
|
102
|
+
* @internal
|
|
103
|
+
* Authorization: requires can_edit on the agent channel — the same bar
|
|
104
|
+
* as initiateInstall (the two halves of one flow). The handler consumes
|
|
105
|
+
* the state atomically, exchanges the code, stores credentials in the
|
|
106
|
+
* system-managed Environment, records the grant, and writes the status
|
|
107
|
+
* facts (sole writer). The OSS edition returns FAILED_PRECONDITION
|
|
108
|
+
* (documented posture, decision 001 D-g / T02 §0-b).
|
|
109
|
+
*
|
|
110
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.completeInstall
|
|
111
|
+
*/
|
|
112
|
+
completeInstall: {
|
|
113
|
+
methodKind: "unary";
|
|
114
|
+
input: typeof CompleteChannelInstallInputSchema;
|
|
115
|
+
output: typeof AgentChannelSchema;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Delete an agent channel.
|
|
119
|
+
*
|
|
120
|
+
* Full teardown of the connection: inbound events for the workspace stop
|
|
121
|
+
* resolving, pending deliveries are abandoned, and the credentials
|
|
122
|
+
* environment is deleted with the grant. To pause serving while keeping
|
|
123
|
+
* the install, update the channel with enabled=false instead.
|
|
124
|
+
*
|
|
125
|
+
* @internal
|
|
126
|
+
* Authorization: requires can_delete permission on the agent channel.
|
|
127
|
+
* The referenced agent is untouched. Teardown cascade (managed env +
|
|
128
|
+
* grant deletion) mirrors McpServer disconnectOAuth.
|
|
129
|
+
*
|
|
130
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController.delete
|
|
131
|
+
*/
|
|
132
|
+
delete: {
|
|
133
|
+
methodKind: "unary";
|
|
134
|
+
input: typeof AgentChannelIdSchema;
|
|
135
|
+
output: typeof AgentChannelSchema;
|
|
136
|
+
};
|
|
137
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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/command.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_rpc_service_options } from "../../../commons/apiresource/rpc_service_options_pb.js";
|
|
8
|
+
import { file_ai_stigmer_commons_rpc_method_options } from "../../../commons/rpc/method_options_pb.js";
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/command.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_ai_stigmer_agentic_agentchannel_v1_command = /*@__PURE__*/ fileDesc("CjBhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL2NvbW1hbmQucHJvdG8SImFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEy9AcKHUFnZW50Q2hhbm5lbENvbW1hbmRDb250cm9sbGVyEmsKBWFwcGx5EjAuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5BZ2VudENoYW5uZWwaMC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkFnZW50Q2hhbm5lbBJyCgZjcmVhdGUSMC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkFnZW50Q2hhbm5lbBowLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQWdlbnRDaGFubmVsIgTQuBgBEqkBCgZ1cGRhdGUSMC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkFnZW50Q2hhbm5lbBowLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQWdlbnRDaGFubmVsIjvCuBg3CAIQLyILbWV0YWRhdGEuaWQqJHVuYXV0aG9yaXplZCB0byB1cGRhdGUgYWdlbnQgY2hhbm5lbBLSAQoPaW5pdGlhdGVJbnN0YWxsEj8uYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5Jbml0aWF0ZUNoYW5uZWxJbnN0YWxsSW5wdXQaQC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkluaXRpYXRlQ2hhbm5lbEluc3RhbGxPdXRwdXQiPMK4GDgIAhAvIgtyZXNvdXJjZV9pZColdW5hdXRob3JpemVkIHRvIGluc3RhbGwgYWdlbnQgY2hhbm5lbBLCAQoPY29tcGxldGVJbnN0YWxsEj8uYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5Db21wbGV0ZUNoYW5uZWxJbnN0YWxsSW5wdXQaMC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkFnZW50Q2hhbm5lbCI8wrgYOAgCEC8iC3Jlc291cmNlX2lkKiV1bmF1dGhvcml6ZWQgdG8gaW5zdGFsbCBhZ2VudCBjaGFubmVsEqUBCgZkZWxldGUSMi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkFnZW50Q2hhbm5lbElkGjAuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5BZ2VudENoYW5uZWwiNcK4GDEIAxAvIgV2YWx1ZSokdW5hdXRob3JpemVkIHRvIGRlbGV0ZSBhZ2VudCBjaGFubmVsGgSg/ysvYgZwcm90bzM", [file_ai_stigmer_agentic_agentchannel_v1_api, file_ai_stigmer_agentic_agentchannel_v1_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
|
|
13
|
+
/**
|
|
14
|
+
* AgentChannelCommandController handles write operations for agent channels.
|
|
15
|
+
*
|
|
16
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.AgentChannelCommandController
|
|
17
|
+
*/
|
|
18
|
+
export const AgentChannelCommandController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_agentic_agentchannel_v1_command, 0);
|
|
19
|
+
//# sourceMappingURL=command_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/command_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,oIAAoI;AACpI,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;AACxE,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,+CAA+C,GAAY,aAAa,CACnF,QAAQ,CAAC,y8CAAy8C,EAAE,CAAC,2CAA2C,EAAE,0CAA0C,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAEtpD;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GA4HrC,aAAa,CAChB,WAAW,CAAC,+CAA+C,EAAE,CAAC,CAAC,CAAC"}
|