@stigmer/protos 3.1.12 → 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.
Files changed (44) hide show
  1. package/ai/stigmer/agentic/agent/v1/command_connect.d.ts +13 -7
  2. package/ai/stigmer/agentic/agent/v1/command_connect.js +13 -7
  3. package/ai/stigmer/agentic/agent/v1/command_connect.js.map +1 -1
  4. package/ai/stigmer/agentic/agent/v1/command_pb.d.ts +13 -7
  5. package/ai/stigmer/agentic/agent/v1/command_pb.js.map +1 -1
  6. package/ai/stigmer/agentic/agentchannel/v1/api_pb.d.ts +68 -0
  7. package/ai/stigmer/agentic/agentchannel/v1/api_pb.js +18 -0
  8. package/ai/stigmer/agentic/agentchannel/v1/api_pb.js.map +1 -0
  9. package/ai/stigmer/agentic/agentchannel/v1/command_connect.d.ts +139 -0
  10. package/ai/stigmer/agentic/agentchannel/v1/command_connect.js +147 -0
  11. package/ai/stigmer/agentic/agentchannel/v1/command_connect.js.map +1 -0
  12. package/ai/stigmer/agentic/agentchannel/v1/command_pb.d.ts +137 -0
  13. package/ai/stigmer/agentic/agentchannel/v1/command_pb.js +19 -0
  14. package/ai/stigmer/agentic/agentchannel/v1/command_pb.js.map +1 -0
  15. package/ai/stigmer/agentic/agentchannel/v1/delivery_pb.d.ts +215 -0
  16. package/ai/stigmer/agentic/agentchannel/v1/delivery_pb.js +67 -0
  17. package/ai/stigmer/agentic/agentchannel/v1/delivery_pb.js.map +1 -0
  18. package/ai/stigmer/agentic/agentchannel/v1/io_pb.d.ts +190 -0
  19. package/ai/stigmer/agentic/agentchannel/v1/io_pb.js +47 -0
  20. package/ai/stigmer/agentic/agentchannel/v1/io_pb.js.map +1 -0
  21. package/ai/stigmer/agentic/agentchannel/v1/query_connect.d.ts +74 -0
  22. package/ai/stigmer/agentic/agentchannel/v1/query_connect.js +83 -0
  23. package/ai/stigmer/agentic/agentchannel/v1/query_connect.js.map +1 -0
  24. package/ai/stigmer/agentic/agentchannel/v1/query_pb.d.ts +75 -0
  25. package/ai/stigmer/agentic/agentchannel/v1/query_pb.js +25 -0
  26. package/ai/stigmer/agentic/agentchannel/v1/query_pb.js.map +1 -0
  27. package/ai/stigmer/agentic/agentchannel/v1/spec_pb.d.ts +102 -0
  28. package/ai/stigmer/agentic/agentchannel/v1/spec_pb.js +22 -0
  29. package/ai/stigmer/agentic/agentchannel/v1/spec_pb.js.map +1 -0
  30. package/ai/stigmer/agentic/agentchannel/v1/status_pb.d.ts +174 -0
  31. package/ai/stigmer/agentic/agentchannel/v1/status_pb.js +65 -0
  32. package/ai/stigmer/agentic/agentchannel/v1/status_pb.js.map +1 -0
  33. package/ai/stigmer/agentic/agentshare/v1/spec_pb.d.ts +19 -5
  34. package/ai/stigmer/agentic/agentshare/v1/spec_pb.js.map +1 -1
  35. package/ai/stigmer/agentic/agentshare/v1/status_pb.d.ts +25 -0
  36. package/ai/stigmer/agentic/agentshare/v1/status_pb.js +1 -1
  37. package/ai/stigmer/agentic/agentshare/v1/status_pb.js.map +1 -1
  38. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +6 -0
  39. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +7 -1
  40. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
  41. package/ai/stigmer/iam/v1/enum_pb.d.ts +14 -1
  42. package/ai/stigmer/iam/v1/enum_pb.js +14 -1
  43. package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
  44. 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"}
@@ -29,12 +29,26 @@ export type AgentShareSpec = Message<"ai.stigmer.agentic.agentshare.v1.AgentShar
29
29
  /**
30
30
  * Reference to the agent this share distributes.
31
31
  *
32
+ * The referenced agent may live in another organization when it is
33
+ * marketplace-public: the share then offers that agent from this share's
34
+ * org, billed to this share's org, with tool credentials bound from this
35
+ * share's org. Cross-org shares must have a public audience.
36
+ *
32
37
  * @internal
33
- * Phase A invariant: agent_ref.org must equal metadata.org — the sharing
34
- * org is the billing org (decision 001 generalized), and guest tool
35
- * credentials resolve in the share's org (secrets never cross orgs).
36
- * Enforced in the create/update/apply handlers of both editions;
37
- * cross-org shares are Phase B (decision 012).
38
+ * Cross-org contract (decision 013): making an agent visibility_public
39
+ * IS the origin org's consent to external shares enforced app-level in
40
+ * both editions' defaults resolvers (spec-level CEL cannot see
41
+ * metadata.org), together with the public-audience-only rule and the
42
+ * dependency-publicness sweep (every skill/MCP the agent declares must be
43
+ * visibility_public, refused loudly naming blockers). The sharing org is
44
+ * always the billing org (decision 001 generalized) and guest tool
45
+ * credentials resolve in the share's org (secrets never cross orgs —
46
+ * org A's environments are structurally unreachable from org B's
47
+ * executions via OrgSharedEnvironmentPolicy). The agent's public
48
+ * visibility is re-verified on every guest turn, at the shared profile,
49
+ * and at guest mint, so revoking visibility kills external channels on
50
+ * the visitor's next message. status.agent_id pins the resolved agent
51
+ * against slug-reuse rebind.
38
52
  *
39
53
  * @generated from field: ai.stigmer.commons.apiresource.ApiResourceReference agent_ref = 1;
40
54
  */
@@ -1 +1 @@
1
- {"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentshare/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,6HAA6H;AAC7H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC/E,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,0CAA0C,GAAY,aAAa,CAC9E,QAAQ,CAAC,iyDAAiyD,EAAE,CAAC,iDAAiD,EAAE,sCAAsC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAoIv6D;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AAmC7D;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,kBA0BX;AA1BD,WAAY,kBAAkB;IAC5B;;;;OAIG;IACH,yEAAe,CAAA;IAEf;;;;;;OAMG;IACH,+DAAU,CAAA;IAEV;;;;;;;OAOG;IACH,yDAAO,CAAA;AACT,CAAC,EA1BW,kBAAkB,KAAlB,kBAAkB,QA0B7B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAgC,aAAa,CAChF,QAAQ,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentshare/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,6HAA6H;AAC7H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC/E,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,0CAA0C,GAAY,aAAa,CAC9E,QAAQ,CAAC,iyDAAiyD,EAAE,CAAC,iDAAiD,EAAE,sCAAsC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAkJv6D;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AAmC7D;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,kBA0BX;AA1BD,WAAY,kBAAkB;IAC5B;;;;OAIG;IACH,yEAAe,CAAA;IAEf;;;;;;OAMG;IACH,+DAAU,CAAA;IAEV;;;;;;;OAOG;IACH,yDAAO,CAAA;AACT,CAAC,EA1BW,kBAAkB,KAAlB,kBAAkB,QA0B7B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAgC,aAAa,CAChF,QAAQ,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC"}
@@ -42,6 +42,31 @@ export type AgentShareStatus = Message<"ai.stigmer.agentic.agentshare.v1.AgentSh
42
42
  * @generated from field: string share_link_token = 1;
43
43
  */
44
44
  shareLinkToken: string;
45
+ /**
46
+ * ID of the agent this share was created against.
47
+ *
48
+ * Pins the share to the exact agent (by immutable ID) that spec.agent_ref
49
+ * resolved to at creation. If that agent is deleted and a different one
50
+ * is later created at the same org/slug, the share stops resolving
51
+ * instead of silently attaching to the new agent.
52
+ *
53
+ * @internal
54
+ * Server-owned rebind guard (decision 013): agent_ref is org+slug, and
55
+ * slugs are reusable after delete — without the pin, a stale share's
56
+ * audience, link token, and bound credentials would transfer to whatever
57
+ * agent later claims the slug. Stamped once at create (the defaults
58
+ * resolver already loads the referenced agent); immutable like agent_ref
59
+ * itself; in status so no apply can wipe or forge it (the
60
+ * share_link_token posture). Every share-resolution gate (shared
61
+ * profile, guest mint, create-time gate, runner elevation) verifies it
62
+ * WHEN PRESENT; shares created before this field exists carry an empty
63
+ * pin and are tolerated — the same-org delete cascade already guarantees
64
+ * a same-org share never outlives its agent, so no backfill is needed.
65
+ * Cross-org shares (Phase B) always carry the pin.
66
+ *
67
+ * @generated from field: string agent_id = 2;
68
+ */
69
+ agentId: string;
45
70
  };
46
71
  /**
47
72
  * Describes the message ai.stigmer.agentic.agentshare.v1.AgentShareStatus.
@@ -6,7 +6,7 @@ import { file_ai_stigmer_commons_apiresource_status } from "../../../commons/api
6
6
  /**
7
7
  * Describes the file ai/stigmer/agentic/agentshare/v1/status.proto.
8
8
  */
9
- export const file_ai_stigmer_agentic_agentshare_v1_status = /*@__PURE__*/ fileDesc("Ci1haS9zdGlnbWVyL2FnZW50aWMvYWdlbnRzaGFyZS92MS9zdGF0dXMucHJvdG8SIGFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxIm0KEEFnZW50U2hhcmVTdGF0dXMSPwoFYXVkaXQYYyABKAsyMC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdBIYChBzaGFyZV9saW5rX3Rva2VuGAEgASgJYgZwcm90bzM", [file_ai_stigmer_commons_apiresource_status]);
9
+ export const file_ai_stigmer_agentic_agentshare_v1_status = /*@__PURE__*/ fileDesc("Ci1haS9zdGlnbWVyL2FnZW50aWMvYWdlbnRzaGFyZS92MS9zdGF0dXMucHJvdG8SIGFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxIn8KEEFnZW50U2hhcmVTdGF0dXMSPwoFYXVkaXQYYyABKAsyMC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdBIYChBzaGFyZV9saW5rX3Rva2VuGAEgASgJEhAKCGFnZW50X2lkGAIgASgJYgZwcm90bzM", [file_ai_stigmer_commons_apiresource_status]);
10
10
  /**
11
11
  * Describes the message ai.stigmer.agentic.agentshare.v1.AgentShareStatus.
12
12
  * Use `create(AgentShareStatusSchema)` to create a new message.