@stigmer/protos 3.1.8 → 3.1.9

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 (55) hide show
  1. package/ai/stigmer/agentic/agent/v1/command_connect.d.ts +0 -54
  2. package/ai/stigmer/agentic/agent/v1/command_connect.js +1 -55
  3. package/ai/stigmer/agentic/agent/v1/command_connect.js.map +1 -1
  4. package/ai/stigmer/agentic/agent/v1/command_pb.d.ts +1 -53
  5. package/ai/stigmer/agentic/agent/v1/command_pb.js +1 -1
  6. package/ai/stigmer/agentic/agent/v1/command_pb.js.map +1 -1
  7. package/ai/stigmer/agentic/agent/v1/io_pb.d.ts +0 -155
  8. package/ai/stigmer/agentic/agent/v1/io_pb.js +2 -23
  9. package/ai/stigmer/agentic/agent/v1/io_pb.js.map +1 -1
  10. package/ai/stigmer/agentic/agent/v1/query_connect.d.ts +0 -67
  11. package/ai/stigmer/agentic/agent/v1/query_connect.js +1 -68
  12. package/ai/stigmer/agentic/agent/v1/query_connect.js.map +1 -1
  13. package/ai/stigmer/agentic/agent/v1/query_pb.d.ts +1 -66
  14. package/ai/stigmer/agentic/agent/v1/query_pb.js +1 -1
  15. package/ai/stigmer/agentic/agent/v1/query_pb.js.map +1 -1
  16. package/ai/stigmer/agentic/agent/v1/spec_pb.d.ts +1 -182
  17. package/ai/stigmer/agentic/agent/v1/spec_pb.js +6 -55
  18. package/ai/stigmer/agentic/agent/v1/spec_pb.js.map +1 -1
  19. package/ai/stigmer/agentic/agent/v1/status_pb.d.ts +0 -25
  20. package/ai/stigmer/agentic/agent/v1/status_pb.js +1 -1
  21. package/ai/stigmer/agentic/agent/v1/status_pb.js.map +1 -1
  22. package/ai/stigmer/agentic/agentshare/v1/api_pb.d.ts +70 -0
  23. package/ai/stigmer/agentic/agentshare/v1/api_pb.js +18 -0
  24. package/ai/stigmer/agentic/agentshare/v1/api_pb.js.map +1 -0
  25. package/ai/stigmer/agentic/agentshare/v1/command_connect.d.ts +119 -0
  26. package/ai/stigmer/agentic/agentshare/v1/command_connect.js +127 -0
  27. package/ai/stigmer/agentic/agentshare/v1/command_connect.js.map +1 -0
  28. package/ai/stigmer/agentic/agentshare/v1/command_pb.d.ts +118 -0
  29. package/ai/stigmer/agentic/agentshare/v1/command_pb.js +19 -0
  30. package/ai/stigmer/agentic/agentshare/v1/command_pb.js.map +1 -0
  31. package/ai/stigmer/agentic/agentshare/v1/io_pb.d.ts +228 -0
  32. package/ai/stigmer/agentic/agentshare/v1/io_pb.js +47 -0
  33. package/ai/stigmer/agentic/agentshare/v1/io_pb.js.map +1 -0
  34. package/ai/stigmer/agentic/agentshare/v1/query_connect.d.ts +133 -0
  35. package/ai/stigmer/agentic/agentshare/v1/query_connect.js +142 -0
  36. package/ai/stigmer/agentic/agentshare/v1/query_connect.js.map +1 -0
  37. package/ai/stigmer/agentic/agentshare/v1/query_pb.d.ts +132 -0
  38. package/ai/stigmer/agentic/agentshare/v1/query_pb.js +20 -0
  39. package/ai/stigmer/agentic/agentshare/v1/query_pb.js.map +1 -0
  40. package/ai/stigmer/agentic/agentshare/v1/spec_pb.d.ts +208 -0
  41. package/ai/stigmer/agentic/agentshare/v1/spec_pb.js +60 -0
  42. package/ai/stigmer/agentic/agentshare/v1/spec_pb.js.map +1 -0
  43. package/ai/stigmer/agentic/agentshare/v1/status_pb.d.ts +50 -0
  44. package/ai/stigmer/agentic/agentshare/v1/status_pb.js +15 -0
  45. package/ai/stigmer/agentic/agentshare/v1/status_pb.js.map +1 -0
  46. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +6 -0
  47. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +7 -1
  48. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
  49. package/ai/stigmer/iam/platformclient/v1/token_connect.d.ts +7 -3
  50. package/ai/stigmer/iam/platformclient/v1/token_connect.js +7 -3
  51. package/ai/stigmer/iam/platformclient/v1/token_connect.js.map +1 -1
  52. package/ai/stigmer/iam/platformclient/v1/token_pb.d.ts +16 -12
  53. package/ai/stigmer/iam/platformclient/v1/token_pb.js +2 -1
  54. package/ai/stigmer/iam/platformclient/v1/token_pb.js.map +1 -1
  55. package/package.json +1 -1
@@ -0,0 +1,133 @@
1
+ /**
2
+ * AgentShareQueryController handles read operations for agent shares.
3
+ *
4
+ * @generated from service ai.stigmer.agentic.agentshare.v1.AgentShareQueryController
5
+ */
6
+ export declare const AgentShareQueryController: {
7
+ readonly typeName: "ai.stigmer.agentic.agentshare.v1.AgentShareQueryController";
8
+ readonly methods: {
9
+ /**
10
+ * Get a single agent share by ID.
11
+ *
12
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.get
13
+ */
14
+ readonly get: {
15
+ readonly name: "get";
16
+ readonly I: any;
17
+ readonly O: any;
18
+ readonly kind: any;
19
+ };
20
+ /**
21
+ * Get an agent share by its organization-scoped reference (org/slug).
22
+ *
23
+ * @internal
24
+ * Custom authorization in handler — checks both direct resource access
25
+ * and organization-level visibility permissions.
26
+ *
27
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getByReference
28
+ */
29
+ readonly getByReference: {
30
+ readonly name: "getByReference";
31
+ readonly I: any;
32
+ readonly O: any;
33
+ readonly kind: any;
34
+ };
35
+ /**
36
+ * Get all shares of a specific agent.
37
+ * Returns only shares the caller has access to.
38
+ *
39
+ * This is how the Share dialog and CLI resolve an agent's existing
40
+ * share regardless of its slug (a renamed share keeps working).
41
+ *
42
+ * @internal
43
+ * Authorization is handled in-handler: FGA-filtered in cloud, unrestricted
44
+ * in OSS (single-user edition).
45
+ *
46
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getByAgent
47
+ */
48
+ readonly getByAgent: {
49
+ readonly name: "getByAgent";
50
+ readonly I: any;
51
+ readonly O: any;
52
+ readonly kind: any;
53
+ };
54
+ /**
55
+ * List agent shares with optional label filtering.
56
+ *
57
+ * @internal
58
+ * Authorization is handled in-handler via FGA-filtered queries (cloud)
59
+ * or unrestricted store queries (OSS).
60
+ *
61
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.list
62
+ */
63
+ readonly list: {
64
+ readonly name: "list";
65
+ readonly I: any;
66
+ readonly O: any;
67
+ readonly kind: any;
68
+ };
69
+ /**
70
+ * Get the public profile of a shared agent by the share's org/slug.
71
+ *
72
+ * This is the resolution path for the hosted chat page: anonymous
73
+ * visitors (no Stigmer account, no token) resolve a shared link to the
74
+ * trimmed SharedAgentProfile — never the full Agent, whose spec carries
75
+ * the system prompt, environment declarations, and MCP wiring.
76
+ *
77
+ * Returns NOT_FOUND when the share does not exist, is disabled, has the
78
+ * org audience (anonymous callers must not be able to distinguish an
79
+ * org-internal share from a nonexistent one; use
80
+ * getSharedProfileForMember instead), or the share link is locked and
81
+ * link_token does not match the share's current status.share_link_token.
82
+ * The cases are deliberately indistinguishable so an unshared, revoked,
83
+ * or rotated URL leaks nothing. Returns INVALID_ARGUMENT when org is
84
+ * empty: org+slug is the shared URL's identity, and cross-org slug
85
+ * matching on a public endpoint would enable enumeration.
86
+ *
87
+ * @internal
88
+ * Public by design (no authentication): enforcement is the app-level
89
+ * sharing gate in the handler, not FGA — see AgentShareSpec for why a
90
+ * share writes no visibility tuples.
91
+ *
92
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getSharedProfile
93
+ */
94
+ readonly getSharedProfile: {
95
+ readonly name: "getSharedProfile";
96
+ readonly I: any;
97
+ readonly O: any;
98
+ readonly kind: any;
99
+ };
100
+ /**
101
+ * Get the profile of a shared agent as a signed-in organization member.
102
+ *
103
+ * This is the resolution path for the hosted chat page when a share has
104
+ * the org audience: the public getSharedProfile deliberately returns
105
+ * NOT_FOUND for such shares, so a signed-in member resolves the same
106
+ * trimmed SharedAgentProfile through this authenticated RPC instead.
107
+ * Also resolves public-audience shares, so an authenticated caller can
108
+ * use one resolution path for any share.
109
+ *
110
+ * Returns NOT_FOUND when the share does not exist, is disabled, the
111
+ * caller is not a member of the sharing organization, or the share is a
112
+ * public-audience share locked with a link token (this tokenless path
113
+ * must not reveal a killed link's profile) — the cases are deliberately
114
+ * indistinguishable so a share URL leaks nothing to non-members.
115
+ * Returns INVALID_ARGUMENT when org is empty.
116
+ *
117
+ * @internal
118
+ * Custom authorization in handler — requires authentication (not
119
+ * is_public), then an app-level organization#member FGA check for org
120
+ * shares. No standard resource_kind/permission config: the sharing gate
121
+ * is app-level by design (see AgentShareSpec), and membership is checked
122
+ * live on every call so revoked members lose access immediately.
123
+ *
124
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getSharedProfileForMember
125
+ */
126
+ readonly getSharedProfileForMember: {
127
+ readonly name: "getSharedProfileForMember";
128
+ readonly I: any;
129
+ readonly O: any;
130
+ readonly kind: any;
131
+ };
132
+ };
133
+ };
@@ -0,0 +1,142 @@
1
+ // @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=js"
2
+ // @generated from file ai/stigmer/agentic/agentshare/v1/query.proto (package ai.stigmer.agentic.agentshare.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { AgentShareId, AgentShareList, GetAgentSharesByAgentRequest, GetSharedProfileRequest, ListAgentSharesRequest, SharedAgentProfile } from "./io_pbjs";
6
+ import { AgentShare } from "./api_pbjs";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+ import { ApiResourceReference } from "../../../commons/apiresource/io_pbjs";
9
+ /**
10
+ * AgentShareQueryController handles read operations for agent shares.
11
+ *
12
+ * @generated from service ai.stigmer.agentic.agentshare.v1.AgentShareQueryController
13
+ */
14
+ export const AgentShareQueryController = {
15
+ typeName: "ai.stigmer.agentic.agentshare.v1.AgentShareQueryController",
16
+ methods: {
17
+ /**
18
+ * Get a single agent share by ID.
19
+ *
20
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.get
21
+ */
22
+ get: {
23
+ name: "get",
24
+ I: AgentShareId,
25
+ O: AgentShare,
26
+ kind: MethodKind.Unary,
27
+ },
28
+ /**
29
+ * Get an agent share by its organization-scoped reference (org/slug).
30
+ *
31
+ * @internal
32
+ * Custom authorization in handler — checks both direct resource access
33
+ * and organization-level visibility permissions.
34
+ *
35
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getByReference
36
+ */
37
+ getByReference: {
38
+ name: "getByReference",
39
+ I: ApiResourceReference,
40
+ O: AgentShare,
41
+ kind: MethodKind.Unary,
42
+ },
43
+ /**
44
+ * Get all shares of a specific agent.
45
+ * Returns only shares the caller has access to.
46
+ *
47
+ * This is how the Share dialog and CLI resolve an agent's existing
48
+ * share regardless of its slug (a renamed share keeps working).
49
+ *
50
+ * @internal
51
+ * Authorization is handled in-handler: FGA-filtered in cloud, unrestricted
52
+ * in OSS (single-user edition).
53
+ *
54
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getByAgent
55
+ */
56
+ getByAgent: {
57
+ name: "getByAgent",
58
+ I: GetAgentSharesByAgentRequest,
59
+ O: AgentShareList,
60
+ kind: MethodKind.Unary,
61
+ },
62
+ /**
63
+ * List agent shares with optional label filtering.
64
+ *
65
+ * @internal
66
+ * Authorization is handled in-handler via FGA-filtered queries (cloud)
67
+ * or unrestricted store queries (OSS).
68
+ *
69
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.list
70
+ */
71
+ list: {
72
+ name: "list",
73
+ I: ListAgentSharesRequest,
74
+ O: AgentShareList,
75
+ kind: MethodKind.Unary,
76
+ },
77
+ /**
78
+ * Get the public profile of a shared agent by the share's org/slug.
79
+ *
80
+ * This is the resolution path for the hosted chat page: anonymous
81
+ * visitors (no Stigmer account, no token) resolve a shared link to the
82
+ * trimmed SharedAgentProfile — never the full Agent, whose spec carries
83
+ * the system prompt, environment declarations, and MCP wiring.
84
+ *
85
+ * Returns NOT_FOUND when the share does not exist, is disabled, has the
86
+ * org audience (anonymous callers must not be able to distinguish an
87
+ * org-internal share from a nonexistent one; use
88
+ * getSharedProfileForMember instead), or the share link is locked and
89
+ * link_token does not match the share's current status.share_link_token.
90
+ * The cases are deliberately indistinguishable so an unshared, revoked,
91
+ * or rotated URL leaks nothing. Returns INVALID_ARGUMENT when org is
92
+ * empty: org+slug is the shared URL's identity, and cross-org slug
93
+ * matching on a public endpoint would enable enumeration.
94
+ *
95
+ * @internal
96
+ * Public by design (no authentication): enforcement is the app-level
97
+ * sharing gate in the handler, not FGA — see AgentShareSpec for why a
98
+ * share writes no visibility tuples.
99
+ *
100
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getSharedProfile
101
+ */
102
+ getSharedProfile: {
103
+ name: "getSharedProfile",
104
+ I: GetSharedProfileRequest,
105
+ O: SharedAgentProfile,
106
+ kind: MethodKind.Unary,
107
+ },
108
+ /**
109
+ * Get the profile of a shared agent as a signed-in organization member.
110
+ *
111
+ * This is the resolution path for the hosted chat page when a share has
112
+ * the org audience: the public getSharedProfile deliberately returns
113
+ * NOT_FOUND for such shares, so a signed-in member resolves the same
114
+ * trimmed SharedAgentProfile through this authenticated RPC instead.
115
+ * Also resolves public-audience shares, so an authenticated caller can
116
+ * use one resolution path for any share.
117
+ *
118
+ * Returns NOT_FOUND when the share does not exist, is disabled, the
119
+ * caller is not a member of the sharing organization, or the share is a
120
+ * public-audience share locked with a link token (this tokenless path
121
+ * must not reveal a killed link's profile) — the cases are deliberately
122
+ * indistinguishable so a share URL leaks nothing to non-members.
123
+ * Returns INVALID_ARGUMENT when org is empty.
124
+ *
125
+ * @internal
126
+ * Custom authorization in handler — requires authentication (not
127
+ * is_public), then an app-level organization#member FGA check for org
128
+ * shares. No standard resource_kind/permission config: the sharing gate
129
+ * is app-level by design (see AgentShareSpec), and membership is checked
130
+ * live on every call so revoked members lose access immediately.
131
+ *
132
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getSharedProfileForMember
133
+ */
134
+ getSharedProfileForMember: {
135
+ name: "getSharedProfileForMember",
136
+ I: ApiResourceReference,
137
+ O: SharedAgentProfile,
138
+ kind: MethodKind.Unary,
139
+ },
140
+ }
141
+ };
142
+ //# sourceMappingURL=query_connect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentshare/v1/query_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,8HAA8H;AAC9H,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC5J,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,QAAQ,EAAE,4DAA4D;IACtE,OAAO,EAAE;QACP;;;;WAIG;QACH,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,CAAC,EAAE,YAAY;YACf,CAAC,EAAE,UAAU;YACb,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;WAQG;QACH,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,UAAU;YACb,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;WAYG;QACH,UAAU,EAAE;YACV,IAAI,EAAE,YAAY;YAClB,CAAC,EAAE,4BAA4B;YAC/B,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;WAQG;QACH,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,CAAC,EAAE,sBAAsB;YACzB,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;WAwBG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,uBAAuB;YAC1B,CAAC,EAAE,kBAAkB;YACrB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;;WAyBG;QACH,yBAAyB,EAAE;YACzB,IAAI,EAAE,2BAA2B;YACjC,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,kBAAkB;YACrB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
@@ -0,0 +1,132 @@
1
+ import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
2
+ import type { AgentShareSchema } from "./api_pb.js";
3
+ import type { AgentShareIdSchema, AgentShareListSchema, GetAgentSharesByAgentRequestSchema, GetSharedProfileRequestSchema, ListAgentSharesRequestSchema, SharedAgentProfileSchema } from "./io_pb.js";
4
+ import type { ApiResourceReferenceSchema } from "../../../commons/apiresource/io_pb.js";
5
+ /**
6
+ * Describes the file ai/stigmer/agentic/agentshare/v1/query.proto.
7
+ */
8
+ export declare const file_ai_stigmer_agentic_agentshare_v1_query: GenFile;
9
+ /**
10
+ * AgentShareQueryController handles read operations for agent shares.
11
+ *
12
+ * @generated from service ai.stigmer.agentic.agentshare.v1.AgentShareQueryController
13
+ */
14
+ export declare const AgentShareQueryController: GenService<{
15
+ /**
16
+ * Get a single agent share by ID.
17
+ *
18
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.get
19
+ */
20
+ get: {
21
+ methodKind: "unary";
22
+ input: typeof AgentShareIdSchema;
23
+ output: typeof AgentShareSchema;
24
+ };
25
+ /**
26
+ * Get an agent share by its organization-scoped reference (org/slug).
27
+ *
28
+ * @internal
29
+ * Custom authorization in handler — checks both direct resource access
30
+ * and organization-level visibility permissions.
31
+ *
32
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getByReference
33
+ */
34
+ getByReference: {
35
+ methodKind: "unary";
36
+ input: typeof ApiResourceReferenceSchema;
37
+ output: typeof AgentShareSchema;
38
+ };
39
+ /**
40
+ * Get all shares of a specific agent.
41
+ * Returns only shares the caller has access to.
42
+ *
43
+ * This is how the Share dialog and CLI resolve an agent's existing
44
+ * share regardless of its slug (a renamed share keeps working).
45
+ *
46
+ * @internal
47
+ * Authorization is handled in-handler: FGA-filtered in cloud, unrestricted
48
+ * in OSS (single-user edition).
49
+ *
50
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getByAgent
51
+ */
52
+ getByAgent: {
53
+ methodKind: "unary";
54
+ input: typeof GetAgentSharesByAgentRequestSchema;
55
+ output: typeof AgentShareListSchema;
56
+ };
57
+ /**
58
+ * List agent shares with optional label filtering.
59
+ *
60
+ * @internal
61
+ * Authorization is handled in-handler via FGA-filtered queries (cloud)
62
+ * or unrestricted store queries (OSS).
63
+ *
64
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.list
65
+ */
66
+ list: {
67
+ methodKind: "unary";
68
+ input: typeof ListAgentSharesRequestSchema;
69
+ output: typeof AgentShareListSchema;
70
+ };
71
+ /**
72
+ * Get the public profile of a shared agent by the share's org/slug.
73
+ *
74
+ * This is the resolution path for the hosted chat page: anonymous
75
+ * visitors (no Stigmer account, no token) resolve a shared link to the
76
+ * trimmed SharedAgentProfile — never the full Agent, whose spec carries
77
+ * the system prompt, environment declarations, and MCP wiring.
78
+ *
79
+ * Returns NOT_FOUND when the share does not exist, is disabled, has the
80
+ * org audience (anonymous callers must not be able to distinguish an
81
+ * org-internal share from a nonexistent one; use
82
+ * getSharedProfileForMember instead), or the share link is locked and
83
+ * link_token does not match the share's current status.share_link_token.
84
+ * The cases are deliberately indistinguishable so an unshared, revoked,
85
+ * or rotated URL leaks nothing. Returns INVALID_ARGUMENT when org is
86
+ * empty: org+slug is the shared URL's identity, and cross-org slug
87
+ * matching on a public endpoint would enable enumeration.
88
+ *
89
+ * @internal
90
+ * Public by design (no authentication): enforcement is the app-level
91
+ * sharing gate in the handler, not FGA — see AgentShareSpec for why a
92
+ * share writes no visibility tuples.
93
+ *
94
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getSharedProfile
95
+ */
96
+ getSharedProfile: {
97
+ methodKind: "unary";
98
+ input: typeof GetSharedProfileRequestSchema;
99
+ output: typeof SharedAgentProfileSchema;
100
+ };
101
+ /**
102
+ * Get the profile of a shared agent as a signed-in organization member.
103
+ *
104
+ * This is the resolution path for the hosted chat page when a share has
105
+ * the org audience: the public getSharedProfile deliberately returns
106
+ * NOT_FOUND for such shares, so a signed-in member resolves the same
107
+ * trimmed SharedAgentProfile through this authenticated RPC instead.
108
+ * Also resolves public-audience shares, so an authenticated caller can
109
+ * use one resolution path for any share.
110
+ *
111
+ * Returns NOT_FOUND when the share does not exist, is disabled, the
112
+ * caller is not a member of the sharing organization, or the share is a
113
+ * public-audience share locked with a link token (this tokenless path
114
+ * must not reveal a killed link's profile) — the cases are deliberately
115
+ * indistinguishable so a share URL leaks nothing to non-members.
116
+ * Returns INVALID_ARGUMENT when org is empty.
117
+ *
118
+ * @internal
119
+ * Custom authorization in handler — requires authentication (not
120
+ * is_public), then an app-level organization#member FGA check for org
121
+ * shares. No standard resource_kind/permission config: the sharing gate
122
+ * is app-level by design (see AgentShareSpec), and membership is checked
123
+ * live on every call so revoked members lose access immediately.
124
+ *
125
+ * @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareQueryController.getSharedProfileForMember
126
+ */
127
+ getSharedProfileForMember: {
128
+ methodKind: "unary";
129
+ input: typeof ApiResourceReferenceSchema;
130
+ output: typeof SharedAgentProfileSchema;
131
+ };
132
+ }>;
@@ -0,0 +1,20 @@
1
+ // @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file ai/stigmer/agentic/agentshare/v1/query.proto (package ai.stigmer.agentic.agentshare.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
5
+ import { file_ai_stigmer_agentic_agentshare_v1_api } from "./api_pb.js";
6
+ import { file_ai_stigmer_agentic_agentshare_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/agentshare/v1/query.proto.
12
+ */
13
+ export const file_ai_stigmer_agentic_agentshare_v1_query = /*@__PURE__*/ fileDesc("CixhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRzaGFyZS92MS9xdWVyeS5wcm90bxIgYWkuc3RpZ21lci5hZ2VudGljLmFnZW50c2hhcmUudjEy0gYKGUFnZW50U2hhcmVRdWVyeUNvbnRyb2xsZXISlQEKA2dldBIuLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLkFnZW50U2hhcmVJZBosLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLkFnZW50U2hhcmUiMMK4GCwIARAuIgV2YWx1ZSofdW5hdXRob3JpemVkIHRvIGdldCBhZ2VudCBzaGFyZRJ6Cg5nZXRCeVJlZmVyZW5jZRI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZRosLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLkFnZW50U2hhcmUiBNC4GAEShAEKCmdldEJ5QWdlbnQSPi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRzaGFyZS52MS5HZXRBZ2VudFNoYXJlc0J5QWdlbnRSZXF1ZXN0GjAuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50c2hhcmUudjEuQWdlbnRTaGFyZUxpc3QiBNC4GAESeAoEbGlzdBI4LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLkxpc3RBZ2VudFNoYXJlc1JlcXVlc3QaMC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRzaGFyZS52MS5BZ2VudFNoYXJlTGlzdCIE0LgYARKJAQoQZ2V0U2hhcmVkUHJvZmlsZRI5LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLkdldFNoYXJlZFByb2ZpbGVSZXF1ZXN0GjQuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50c2hhcmUudjEuU2hhcmVkQWdlbnRQcm9maWxlIgTIuBgBEo0BChlnZXRTaGFyZWRQcm9maWxlRm9yTWVtYmVyEjQuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlUmVmZXJlbmNlGjQuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50c2hhcmUudjEuU2hhcmVkQWdlbnRQcm9maWxlIgTQuBgBGgSg/ysuYgZwcm90bzM", [file_ai_stigmer_agentic_agentshare_v1_api, file_ai_stigmer_agentic_agentshare_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
+ * AgentShareQueryController handles read operations for agent shares.
16
+ *
17
+ * @generated from service ai.stigmer.agentic.agentshare.v1.AgentShareQueryController
18
+ */
19
+ export const AgentShareQueryController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_agentic_agentshare_v1_query, 0);
20
+ //# sourceMappingURL=query_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentshare/v1/query_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,8HAA8H;AAC9H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,yCAAyC,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,EAAE,wCAAwC,EAAE,MAAM,YAAY,CAAC;AAEtE,OAAO,EAAE,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAY,aAAa,CAC/E,QAAQ,CAAC,yuCAAyuC,EAAE,CAAC,yCAAyC,EAAE,wCAAwC,EAAE,sCAAsC,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAE19C;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAsHjC,aAAa,CAChB,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,208 @@
1
+ import type { GenEnum, 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/agentshare/v1/spec.proto.
6
+ */
7
+ export declare const file_ai_stigmer_agentic_agentshare_v1_spec: GenFile;
8
+ /**
9
+ * AgentShareSpec defines the configurable properties of an agent share.
10
+ *
11
+ * A share is a distribution channel for an agent's hosted chat experience.
12
+ * It carries its own audience, embed origins, visitor-facing messages, and
13
+ * tool credentials — all independent of the agent blueprint it references.
14
+ *
15
+ * @internal
16
+ * Sharing is channel configuration, not agent behavior (decision 011):
17
+ * applying an agent manifest never touches a share, and the share has its
18
+ * own writer, lifecycle, and change cadence. Guest admission is enforced
19
+ * app-level in the shared-profile/mint/create-time gates — a share writes
20
+ * NO FGA visibility tuples, because a public wildcard viewer tuple would
21
+ * expose the referenced agent's full blueprint (instructions included) to
22
+ * any authenticated account, conflating blueprint visibility with chat
23
+ * access. The overview.md file provides the SDK-facing description and
24
+ * example YAML.
25
+ *
26
+ * @generated from message ai.stigmer.agentic.agentshare.v1.AgentShareSpec
27
+ */
28
+ export type AgentShareSpec = Message<"ai.stigmer.agentic.agentshare.v1.AgentShareSpec"> & {
29
+ /**
30
+ * Reference to the agent this share distributes.
31
+ *
32
+ * @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
+ *
39
+ * @generated from field: ai.stigmer.commons.apiresource.ApiResourceReference agent_ref = 1;
40
+ */
41
+ agentRef?: ApiResourceReference;
42
+ /**
43
+ * Whether hosted-chat access for the configured audience is enabled.
44
+ *
45
+ * Disabling is a config-preserving pause: the share keeps its origins,
46
+ * messages, credentials, and link token, but the hosted link answers
47
+ * NOT_FOUND until re-enabled. Delete the share instead for a full
48
+ * teardown.
49
+ *
50
+ * @generated from field: bool enabled = 2;
51
+ */
52
+ enabled: boolean;
53
+ /**
54
+ * Who can chat over this share. Unspecified means public (anyone with
55
+ * the link), so a manifest that omits audience creates a public share.
56
+ *
57
+ * To keep a share org-only, audience must be present in every apply:
58
+ * update/apply replace the spec wholesale, so a manifest that sets
59
+ * enabled without audience resets the share to public.
60
+ *
61
+ * @internal
62
+ * Org audience is enforced cloud-side only (org membership is a
63
+ * multi-tenant IAM concept): the guest mint and public profile handlers
64
+ * treat audience=org as NOT_FOUND, and the create-time blueprint gate
65
+ * admits authenticated org members via an app-level FGA member check
66
+ * (no visibility tuples written). The OSS single-user server stores and
67
+ * echoes the field.
68
+ *
69
+ * @generated from field: ai.stigmer.agentic.agentshare.v1.AgentShareAudience audience = 3;
70
+ */
71
+ audience: AgentShareAudience;
72
+ /**
73
+ * Origins permitted to embed this share's chat widget.
74
+ *
75
+ * Each entry is an exact web origin (scheme://host[:port]) with no path,
76
+ * for example "https://docs.example.com". An empty list allows embedding
77
+ * from any site; listing origins restricts embedding to those sites. The
78
+ * first-party hosted chat page is always exempt.
79
+ *
80
+ * @internal
81
+ * Enforced since T04 against the embed_origin the widget reports at
82
+ * mintGuestToken time (stamped into the guest JWT as a claim) and
83
+ * re-validated against this live list by the guest create-time gate
84
+ * (SharedSessionBlueprintAccess) on every session/execution create — the
85
+ * same gate that re-checks enabled, so revocation latency is identical
86
+ * (immediate). Unframed hosted-page visitors report no origin and are
87
+ * exempt by construction. Exact origins only — loosening to wildcards
88
+ * later is a non-breaking change, tightening would not be.
89
+ *
90
+ * @generated from field: repeated string allowed_origins = 4;
91
+ */
92
+ allowedOrigins: string[];
93
+ /**
94
+ * Owner-customizable copy shown to visitors when a launch-gate limit
95
+ * refuses their message. Unset fields fall back to platform defaults.
96
+ *
97
+ * @internal
98
+ * Resolved server-side at the refusal point and carried in the gRPC
99
+ * status description — deliberately NOT surfaced on SharedAgentProfile
100
+ * and NOT mapped client-side, so the copy reaches every client (web,
101
+ * embed, CLI) through the existing error-message path.
102
+ *
103
+ * @generated from field: ai.stigmer.agentic.agentshare.v1.AgentShareMessages messages = 5;
104
+ */
105
+ messages?: AgentShareMessages;
106
+ /**
107
+ * References to Environment resources whose values are provided to guest
108
+ * conversations on this share.
109
+ *
110
+ * This is how a tool-using agent becomes chattable over a share link:
111
+ * bind an org-shared environment holding the needed credentials (for
112
+ * example a read-only API token), and guest executions receive its
113
+ * values at runtime. The agent and its default instance stay untouched.
114
+ * Valid on public-audience shares only.
115
+ *
116
+ * @internal
117
+ * Resolved in the share's org through the org-shared environment
118
+ * resolution seam (EnvironmentRuntimeResolutionService /
119
+ * OrgSharedEnvironmentPolicy — decision 006): each referenced environment
120
+ * must be visibility_org in the share's org, or the merge skips it with
121
+ * a diagnostic. Merged at guest execution-context build time only —
122
+ * never bound to the agent's system-managed default instance, which is
123
+ * recreated empty on lifecycle events and shared by every org member's
124
+ * casual chat (decision 011). Org-audience shares reject this field via
125
+ * the message-level CEL rule: member sessions carry no share linkage in
126
+ * Phase A, so bound credentials would silently never apply.
127
+ *
128
+ * @generated from field: repeated ai.stigmer.commons.apiresource.ApiResourceReference environment_refs = 6;
129
+ */
130
+ environmentRefs: ApiResourceReference[];
131
+ };
132
+ /**
133
+ * Describes the message ai.stigmer.agentic.agentshare.v1.AgentShareSpec.
134
+ * Use `create(AgentShareSpecSchema)` to create a new message.
135
+ */
136
+ export declare const AgentShareSpecSchema: GenMessage<AgentShareSpec>;
137
+ /**
138
+ * AgentShareMessages holds owner-customizable visitor-facing copy for
139
+ * shared-agent limit refusals.
140
+ *
141
+ * Empty fields mean "use the platform default". Plain text only; rendered
142
+ * verbatim in the visitor's chat surface.
143
+ *
144
+ * @generated from message ai.stigmer.agentic.agentshare.v1.AgentShareMessages
145
+ */
146
+ export type AgentShareMessages = Message<"ai.stigmer.agentic.agentshare.v1.AgentShareMessages"> & {
147
+ /**
148
+ * Shown when a visitor or the org exceeds the message rate limit.
149
+ *
150
+ * @generated from field: string rate_limited = 1;
151
+ */
152
+ rateLimited: string;
153
+ /**
154
+ * Shown when the share cannot serve the conversation — the org's credits
155
+ * are exhausted or the agent's tools are not ready (fails closed).
156
+ *
157
+ * @generated from field: string unavailable = 2;
158
+ */
159
+ unavailable: string;
160
+ /**
161
+ * Shown when a conversation hits its turn limit or inactivity timeout.
162
+ *
163
+ * @generated from field: string conversation_ended = 3;
164
+ */
165
+ conversationEnded: string;
166
+ };
167
+ /**
168
+ * Describes the message ai.stigmer.agentic.agentshare.v1.AgentShareMessages.
169
+ * Use `create(AgentShareMessagesSchema)` to create a new message.
170
+ */
171
+ export declare const AgentShareMessagesSchema: GenMessage<AgentShareMessages>;
172
+ /**
173
+ * AgentShareAudience selects who can chat over a share's hosted link.
174
+ *
175
+ * Unspecified is treated as public: a share created without an explicit
176
+ * audience is an anyone-with-link share.
177
+ *
178
+ * @generated from enum ai.stigmer.agentic.agentshare.v1.AgentShareAudience
179
+ */
180
+ export declare enum AgentShareAudience {
181
+ /**
182
+ * Treated as public (audience omitted).
183
+ *
184
+ * @generated from enum value: agent_share_audience_unspecified = 0;
185
+ */
186
+ unspecified = 0,
187
+ /**
188
+ * Anyone with the link can chat — no Stigmer account required.
189
+ * Visitors are anonymous guests; suitable only for knowledge that is
190
+ * safe to expose to the entire internet.
191
+ *
192
+ * @generated from enum value: agent_share_audience_public = 1;
193
+ */
194
+ public = 1,
195
+ /**
196
+ * Only signed-in members of the sharing organization can chat.
197
+ * Membership is checked on every conversation turn, so access ends the
198
+ * moment a member leaves the organization. The right mode for
199
+ * org-internal knowledge agents.
200
+ *
201
+ * @generated from enum value: agent_share_audience_org = 2;
202
+ */
203
+ org = 2
204
+ }
205
+ /**
206
+ * Describes the enum ai.stigmer.agentic.agentshare.v1.AgentShareAudience.
207
+ */
208
+ export declare const AgentShareAudienceSchema: GenEnum<AgentShareAudience>;