@stigmer/protos 3.1.7 → 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.
- package/ai/stigmer/agentic/agent/v1/spec_pb.js +1 -1
- package/ai/stigmer/agentic/agent/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/agentic/agent/v1/status_pb.js +1 -1
- package/ai/stigmer/agentic/agent/v1/status_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/command_connect.d.ts +11 -8
- package/ai/stigmer/agentic/agentexecution/v1/command_connect.js +11 -8
- package/ai/stigmer/agentic/agentexecution/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/command_pb.d.ts +11 -8
- package/ai/stigmer/agentic/agentexecution/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +82 -11
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +82 -11
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +6 -6
- package/ai/stigmer/agentic/agentshare/v1/api_pb.d.ts +70 -0
- package/ai/stigmer/agentic/agentshare/v1/api_pb.js +18 -0
- package/ai/stigmer/agentic/agentshare/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentshare/v1/command_connect.d.ts +119 -0
- package/ai/stigmer/agentic/agentshare/v1/command_connect.js +127 -0
- package/ai/stigmer/agentic/agentshare/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/agentshare/v1/command_pb.d.ts +118 -0
- package/ai/stigmer/agentic/agentshare/v1/command_pb.js +19 -0
- package/ai/stigmer/agentic/agentshare/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentshare/v1/io_pb.d.ts +228 -0
- package/ai/stigmer/agentic/agentshare/v1/io_pb.js +47 -0
- package/ai/stigmer/agentic/agentshare/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentshare/v1/query_connect.d.ts +133 -0
- package/ai/stigmer/agentic/agentshare/v1/query_connect.js +142 -0
- package/ai/stigmer/agentic/agentshare/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/agentshare/v1/query_pb.d.ts +132 -0
- package/ai/stigmer/agentic/agentshare/v1/query_pb.js +20 -0
- package/ai/stigmer/agentic/agentshare/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentshare/v1/spec_pb.d.ts +208 -0
- package/ai/stigmer/agentic/agentshare/v1/spec_pb.js +60 -0
- package/ai/stigmer/agentic/agentshare/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentshare/v1/status_pb.d.ts +50 -0
- package/ai/stigmer/agentic/agentshare/v1/status_pb.js +15 -0
- package/ai/stigmer/agentic/agentshare/v1/status_pb.js.map +1 -0
- package/ai/stigmer/agentic/environment/v1/command_connect.d.ts +28 -0
- package/ai/stigmer/agentic/environment/v1/command_connect.js +29 -1
- package/ai/stigmer/agentic/environment/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/environment/v1/command_pb.d.ts +28 -1
- package/ai/stigmer/agentic/environment/v1/command_pb.js +1 -1
- package/ai/stigmer/agentic/environment/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/executioncontext/v1/query_connect.d.ts +22 -12
- package/ai/stigmer/agentic/executioncontext/v1/query_connect.js +22 -12
- package/ai/stigmer/agentic/executioncontext/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/executioncontext/v1/query_pb.d.ts +22 -12
- package/ai/stigmer/agentic/executioncontext/v1/query_pb.js +8 -7
- package/ai/stigmer/agentic/executioncontext/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/command_connect.d.ts +10 -2
- package/ai/stigmer/agentic/session/v1/command_connect.js +10 -2
- package/ai/stigmer/agentic/session/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/command_pb.d.ts +10 -2
- package/ai/stigmer/agentic/session/v1/command_pb.js +1 -1
- package/ai/stigmer/agentic/session/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/io_pb.d.ts +9 -9
- package/ai/stigmer/agentic/session/v1/io_pb.js +4 -4
- package/ai/stigmer/agentic/session/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/query_connect.d.ts +6 -5
- package/ai/stigmer/agentic/session/v1/query_connect.js +8 -7
- package/ai/stigmer/agentic/session/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/query_pb.d.ts +7 -6
- package/ai/stigmer/agentic/session/v1/query_pb.js +1 -1
- package/ai/stigmer/agentic/session/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/command_connect.d.ts +16 -12
- package/ai/stigmer/agentic/workflow/v1/command_connect.js +16 -12
- package/ai/stigmer/agentic/workflow/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/command_pb.d.ts +16 -12
- package/ai/stigmer/agentic/workflow/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/serverless/validation_pb.d.ts +10 -5
- package/ai/stigmer/agentic/workflow/v1/serverless/validation_pb.js +3 -1
- package/ai/stigmer/agentic/workflow/v1/serverless/validation_pb.js.map +1 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +13 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +14 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
- package/ai/stigmer/commons/apiresource/enum_pb.d.ts +3 -1
- package/ai/stigmer/commons/apiresource/enum_pb.js +3 -1
- package/ai/stigmer/commons/apiresource/enum_pb.js.map +1 -1
- package/ai/stigmer/commons/apiresource/metadata_pb.d.ts +6 -1
- package/ai/stigmer/commons/apiresource/metadata_pb.js.map +1 -1
- package/ai/stigmer/iam/platformclient/v1/token_connect.d.ts +27 -0
- package/ai/stigmer/iam/platformclient/v1/token_connect.js +28 -1
- package/ai/stigmer/iam/platformclient/v1/token_connect.js.map +1 -1
- package/ai/stigmer/iam/platformclient/v1/token_pb.d.ts +141 -0
- package/ai/stigmer/iam/platformclient/v1/token_pb.js +16 -1
- package/ai/stigmer/iam/platformclient/v1/token_pb.js.map +1 -1
- package/ai/stigmer/iam/v1/enum_pb.d.ts +6 -3
- package/ai/stigmer/iam/v1/enum_pb.js +7 -4
- package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/platform/v1/server_info_connect.d.ts +40 -0
- package/ai/stigmer/platform/v1/server_info_connect.js +41 -1
- package/ai/stigmer/platform/v1/server_info_connect.js.map +1 -1
- package/ai/stigmer/platform/v1/server_info_pb.d.ts +123 -0
- package/ai/stigmer/platform/v1/server_info_pb.js +11 -1
- package/ai/stigmer/platform/v1/server_info_pb.js.map +1 -1
- package/ai/stigmer/tenancy/organization/v1/api_pb.d.ts +7 -1
- package/ai/stigmer/tenancy/organization/v1/api_pb.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { AgentShareSpec } from "./spec_pb.js";
|
|
3
|
+
import type { AgentShareStatus } 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/agentshare/v1/api.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_ai_stigmer_agentic_agentshare_v1_api: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* AgentShare turns an agent into a hosted chat link with its own audience, embed origins, and tool credentials.
|
|
12
|
+
*
|
|
13
|
+
* A share is a distribution channel: it controls who can chat with the
|
|
14
|
+
* referenced agent over `/chat/<org>/<slug>`, which sites may embed the
|
|
15
|
+
* chat widget, what visitors see when a limit refuses them, and which
|
|
16
|
+
* environment credentials guest conversations receive. Deleting the share
|
|
17
|
+
* tears the channel down; disabling it pauses serving while preserving
|
|
18
|
+
* configuration. The referenced agent is never modified by share
|
|
19
|
+
* operations.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
* Promoted from Agent.spec.sharing (decision 011): sharing is channel
|
|
23
|
+
* configuration with its own writer, lifecycle, and — in Phase B — its own
|
|
24
|
+
* billing org per channel. metadata.slug appears in the hosted chat URL,
|
|
25
|
+
* defaults to the referenced agent's slug, and is unique per org.
|
|
26
|
+
*
|
|
27
|
+
* @generated from message ai.stigmer.agentic.agentshare.v1.AgentShare
|
|
28
|
+
*/
|
|
29
|
+
export type AgentShare = Message<"ai.stigmer.agentic.agentshare.v1.AgentShare"> & {
|
|
30
|
+
/**
|
|
31
|
+
* API version for this resource type.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: string api_version = 1;
|
|
34
|
+
*/
|
|
35
|
+
apiVersion: string;
|
|
36
|
+
/**
|
|
37
|
+
* Resource kind identifier.
|
|
38
|
+
*
|
|
39
|
+
* @generated from field: string kind = 2;
|
|
40
|
+
*/
|
|
41
|
+
kind: string;
|
|
42
|
+
/**
|
|
43
|
+
* Resource metadata including name, organization, and labels.
|
|
44
|
+
*
|
|
45
|
+
* The org and slug form the share's hosted chat URL
|
|
46
|
+
* (`/chat/<org>/<slug>`). The slug defaults to the referenced agent's
|
|
47
|
+
* slug and is immutable once created — to change a link, create a new
|
|
48
|
+
* share and delete the old one.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceMetadata metadata = 3;
|
|
51
|
+
*/
|
|
52
|
+
metadata?: ApiResourceMetadata;
|
|
53
|
+
/**
|
|
54
|
+
* Configurable properties: referenced agent, audience, origins, messages, and credentials.
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: ai.stigmer.agentic.agentshare.v1.AgentShareSpec spec = 4;
|
|
57
|
+
*/
|
|
58
|
+
spec?: AgentShareSpec;
|
|
59
|
+
/**
|
|
60
|
+
* System-managed state including audit trail and the rotatable link token.
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: ai.stigmer.agentic.agentshare.v1.AgentShareStatus status = 5;
|
|
63
|
+
*/
|
|
64
|
+
status?: AgentShareStatus;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Describes the message ai.stigmer.agentic.agentshare.v1.AgentShare.
|
|
68
|
+
* Use `create(AgentShareSchema)` to create a new message.
|
|
69
|
+
*/
|
|
70
|
+
export declare const AgentShareSchema: GenMessage<AgentShare>;
|
|
@@ -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/agentshare/v1/api.proto (package ai.stigmer.agentic.agentshare.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_agentic_agentshare_v1_spec } from "./spec_pb.js";
|
|
6
|
+
import { file_ai_stigmer_agentic_agentshare_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/agentshare/v1/api.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_ai_stigmer_agentic_agentshare_v1_api = /*@__PURE__*/ fileDesc("CiphaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRzaGFyZS92MS9hcGkucHJvdG8SIGFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxIrMCCgpBZ2VudFNoYXJlEjEKC2FwaV92ZXJzaW9uGAEgASgJQhy6SBlyFwoVYWdlbnRpYy5zdGlnbWVyLmFpL3YxEh8KBGtpbmQYAiABKAlCEbpIDnIMCgpBZ2VudFNoYXJlEk0KCG1ldGFkYXRhGAMgASgLMjMuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlTWV0YWRhdGFCBrpIA8gBARI+CgRzcGVjGAQgASgLMjAuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50c2hhcmUudjEuQWdlbnRTaGFyZVNwZWMSQgoGc3RhdHVzGAUgASgLMjIuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50c2hhcmUudjEuQWdlbnRTaGFyZVN0YXR1c2IGcHJvdG8z", [file_ai_stigmer_agentic_agentshare_v1_spec, file_ai_stigmer_agentic_agentshare_v1_status, file_ai_stigmer_commons_apiresource_metadata, file_buf_validate_validate]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message ai.stigmer.agentic.agentshare.v1.AgentShare.
|
|
15
|
+
* Use `create(AgentShareSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const AgentShareSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentshare_v1_api, 0);
|
|
18
|
+
//# sourceMappingURL=api_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentshare/v1/api_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,4HAA4H;AAC5H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,0CAA0C,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,EAAE,4CAA4C,EAAE,MAAM,gBAAgB,CAAC;AAE9E,OAAO,EAAE,4CAA4C,EAAE,MAAM,6CAA6C,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAY,aAAa,CAC7E,QAAQ,CAAC,khBAAkhB,EAAE,CAAC,0CAA0C,EAAE,4CAA4C,EAAE,4CAA4C,EAAE,0BAA0B,CAAC,CAAC,CAAC;AA+DrsB;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B,aAAa,CACnE,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentShareCommandController handles write operations for agent shares.
|
|
3
|
+
*
|
|
4
|
+
* @generated from service ai.stigmer.agentic.agentshare.v1.AgentShareCommandController
|
|
5
|
+
*/
|
|
6
|
+
export declare const AgentShareCommandController: {
|
|
7
|
+
readonly typeName: "ai.stigmer.agentic.agentshare.v1.AgentShareCommandController";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* Create or update an agent share.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* The authorization and state-operation are determined depending on
|
|
14
|
+
* whether the share is going to be created or updated, which is resolved
|
|
15
|
+
* as part of the request execution. The share slug defaults to the
|
|
16
|
+
* referenced agent's slug when omitted.
|
|
17
|
+
*
|
|
18
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.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 share.
|
|
28
|
+
*
|
|
29
|
+
* Enabling a share is a billing-affecting decision: conversations over
|
|
30
|
+
* the hosted link consume the sharing organization's credits.
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
* Authorization: requires can_edit on the REFERENCED AGENT
|
|
34
|
+
* (spec.agent_ref), checked in-handler — the same bar as the former
|
|
35
|
+
* updateSharing RPC, since creating a channel broadens who can chat with
|
|
36
|
+
* the agent runtime. The standard org-scoped create tuples (owner =
|
|
37
|
+
* creator) are written for the share itself; no visibility tuples are
|
|
38
|
+
* written for visitors (guest admission is app-level by design — see
|
|
39
|
+
* AgentShareSpec). Phase A invariant enforced here: metadata.org must
|
|
40
|
+
* equal spec.agent_ref.org.
|
|
41
|
+
*
|
|
42
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.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 share.
|
|
52
|
+
*
|
|
53
|
+
* Replaces the spec wholesale: a manifest that omits audience resets the
|
|
54
|
+
* share to public, and one that omits environment_refs unbinds them
|
|
55
|
+
* (fails closed). The slug and referenced agent are immutable.
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
* Authorization: requires can_edit permission on the agent share.
|
|
59
|
+
* status.share_link_token is preserved verbatim (rotateShareLink is its
|
|
60
|
+
* sole writer).
|
|
61
|
+
*
|
|
62
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.update
|
|
63
|
+
*/
|
|
64
|
+
readonly update: {
|
|
65
|
+
readonly name: "update";
|
|
66
|
+
readonly I: any;
|
|
67
|
+
readonly O: any;
|
|
68
|
+
readonly kind: any;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Rotate the share's link token.
|
|
72
|
+
*
|
|
73
|
+
* Generates a fresh server-side token for the share's hosted chat link.
|
|
74
|
+
* The share URL becomes `/chat/<org>/<slug>?k=<token>` and the previous
|
|
75
|
+
* link (tokened or plain) stops working immediately — including for
|
|
76
|
+
* visitors mid-conversation. Use this to kill a leaked or over-shared
|
|
77
|
+
* public link without disabling the share or changing its slug.
|
|
78
|
+
*
|
|
79
|
+
* The token lives in status.share_link_token, so manifest applies never
|
|
80
|
+
* reset it. Rotation affects public-audience shares only; org-audience
|
|
81
|
+
* access is governed by live org membership instead.
|
|
82
|
+
*
|
|
83
|
+
* @internal
|
|
84
|
+
* Authorization: requires can_edit on the agent share — the same bar as
|
|
85
|
+
* update, since both control shared-link access. The handler is the sole
|
|
86
|
+
* writer of status.share_link_token (server-generated entropy; clients
|
|
87
|
+
* never supply the token).
|
|
88
|
+
*
|
|
89
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.rotateShareLink
|
|
90
|
+
*/
|
|
91
|
+
readonly rotateShareLink: {
|
|
92
|
+
readonly name: "rotateShareLink";
|
|
93
|
+
readonly I: any;
|
|
94
|
+
readonly O: any;
|
|
95
|
+
readonly kind: any;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Delete an agent share.
|
|
99
|
+
*
|
|
100
|
+
* Full teardown of the channel: the hosted link stops resolving, live
|
|
101
|
+
* guest tokens die on their next message, and the share's configuration
|
|
102
|
+
* (origins, messages, credentials, link token) is gone. To pause serving
|
|
103
|
+
* while keeping configuration, update the share with enabled=false
|
|
104
|
+
* instead.
|
|
105
|
+
*
|
|
106
|
+
* @internal
|
|
107
|
+
* Authorization: requires can_delete permission on the agent share. The
|
|
108
|
+
* referenced agent is untouched.
|
|
109
|
+
*
|
|
110
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.delete
|
|
111
|
+
*/
|
|
112
|
+
readonly delete: {
|
|
113
|
+
readonly name: "delete";
|
|
114
|
+
readonly I: any;
|
|
115
|
+
readonly O: any;
|
|
116
|
+
readonly kind: any;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
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/command.proto (package ai.stigmer.agentic.agentshare.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { AgentShare } from "./api_pbjs";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
import { AgentShareId, RotateShareLinkInput } from "./io_pbjs";
|
|
8
|
+
/**
|
|
9
|
+
* AgentShareCommandController handles write operations for agent shares.
|
|
10
|
+
*
|
|
11
|
+
* @generated from service ai.stigmer.agentic.agentshare.v1.AgentShareCommandController
|
|
12
|
+
*/
|
|
13
|
+
export const AgentShareCommandController = {
|
|
14
|
+
typeName: "ai.stigmer.agentic.agentshare.v1.AgentShareCommandController",
|
|
15
|
+
methods: {
|
|
16
|
+
/**
|
|
17
|
+
* Create or update an agent share.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
* The authorization and state-operation are determined depending on
|
|
21
|
+
* whether the share is going to be created or updated, which is resolved
|
|
22
|
+
* as part of the request execution. The share slug defaults to the
|
|
23
|
+
* referenced agent's slug when omitted.
|
|
24
|
+
*
|
|
25
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.apply
|
|
26
|
+
*/
|
|
27
|
+
apply: {
|
|
28
|
+
name: "apply",
|
|
29
|
+
I: AgentShare,
|
|
30
|
+
O: AgentShare,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* Create an agent share.
|
|
35
|
+
*
|
|
36
|
+
* Enabling a share is a billing-affecting decision: conversations over
|
|
37
|
+
* the hosted link consume the sharing organization's credits.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
* Authorization: requires can_edit on the REFERENCED AGENT
|
|
41
|
+
* (spec.agent_ref), checked in-handler — the same bar as the former
|
|
42
|
+
* updateSharing RPC, since creating a channel broadens who can chat with
|
|
43
|
+
* the agent runtime. The standard org-scoped create tuples (owner =
|
|
44
|
+
* creator) are written for the share itself; no visibility tuples are
|
|
45
|
+
* written for visitors (guest admission is app-level by design — see
|
|
46
|
+
* AgentShareSpec). Phase A invariant enforced here: metadata.org must
|
|
47
|
+
* equal spec.agent_ref.org.
|
|
48
|
+
*
|
|
49
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.create
|
|
50
|
+
*/
|
|
51
|
+
create: {
|
|
52
|
+
name: "create",
|
|
53
|
+
I: AgentShare,
|
|
54
|
+
O: AgentShare,
|
|
55
|
+
kind: MethodKind.Unary,
|
|
56
|
+
},
|
|
57
|
+
/**
|
|
58
|
+
* Update an existing agent share.
|
|
59
|
+
*
|
|
60
|
+
* Replaces the spec wholesale: a manifest that omits audience resets the
|
|
61
|
+
* share to public, and one that omits environment_refs unbinds them
|
|
62
|
+
* (fails closed). The slug and referenced agent are immutable.
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
* Authorization: requires can_edit permission on the agent share.
|
|
66
|
+
* status.share_link_token is preserved verbatim (rotateShareLink is its
|
|
67
|
+
* sole writer).
|
|
68
|
+
*
|
|
69
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.update
|
|
70
|
+
*/
|
|
71
|
+
update: {
|
|
72
|
+
name: "update",
|
|
73
|
+
I: AgentShare,
|
|
74
|
+
O: AgentShare,
|
|
75
|
+
kind: MethodKind.Unary,
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* Rotate the share's link token.
|
|
79
|
+
*
|
|
80
|
+
* Generates a fresh server-side token for the share's hosted chat link.
|
|
81
|
+
* The share URL becomes `/chat/<org>/<slug>?k=<token>` and the previous
|
|
82
|
+
* link (tokened or plain) stops working immediately — including for
|
|
83
|
+
* visitors mid-conversation. Use this to kill a leaked or over-shared
|
|
84
|
+
* public link without disabling the share or changing its slug.
|
|
85
|
+
*
|
|
86
|
+
* The token lives in status.share_link_token, so manifest applies never
|
|
87
|
+
* reset it. Rotation affects public-audience shares only; org-audience
|
|
88
|
+
* access is governed by live org membership instead.
|
|
89
|
+
*
|
|
90
|
+
* @internal
|
|
91
|
+
* Authorization: requires can_edit on the agent share — the same bar as
|
|
92
|
+
* update, since both control shared-link access. The handler is the sole
|
|
93
|
+
* writer of status.share_link_token (server-generated entropy; clients
|
|
94
|
+
* never supply the token).
|
|
95
|
+
*
|
|
96
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.rotateShareLink
|
|
97
|
+
*/
|
|
98
|
+
rotateShareLink: {
|
|
99
|
+
name: "rotateShareLink",
|
|
100
|
+
I: RotateShareLinkInput,
|
|
101
|
+
O: AgentShare,
|
|
102
|
+
kind: MethodKind.Unary,
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* Delete an agent share.
|
|
106
|
+
*
|
|
107
|
+
* Full teardown of the channel: the hosted link stops resolving, live
|
|
108
|
+
* guest tokens die on their next message, and the share's configuration
|
|
109
|
+
* (origins, messages, credentials, link token) is gone. To pause serving
|
|
110
|
+
* while keeping configuration, update the share with enabled=false
|
|
111
|
+
* instead.
|
|
112
|
+
*
|
|
113
|
+
* @internal
|
|
114
|
+
* Authorization: requires can_delete permission on the agent share. The
|
|
115
|
+
* referenced agent is untouched.
|
|
116
|
+
*
|
|
117
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.delete
|
|
118
|
+
*/
|
|
119
|
+
delete: {
|
|
120
|
+
name: "delete",
|
|
121
|
+
I: AgentShareId,
|
|
122
|
+
O: AgentShare,
|
|
123
|
+
kind: MethodKind.Unary,
|
|
124
|
+
},
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=command_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentshare/v1/command_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,gIAAgI;AAChI,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,8DAA8D;IACxE,OAAO,EAAE;QACP;;;;;;;;;;WAUG;QACH,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,CAAC,EAAE,UAAU;YACb,CAAC,EAAE,UAAU;YACb,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;WAiBG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,UAAU;YACb,CAAC,EAAE,UAAU;YACb,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;WAaG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,UAAU;YACb,CAAC,EAAE,UAAU;YACb,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;WAoBG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,iBAAiB;YACvB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,UAAU;YACb,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;WAcG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,YAAY;YACf,CAAC,EAAE,UAAU;YACb,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { AgentShareSchema } from "./api_pb.js";
|
|
3
|
+
import type { AgentShareIdSchema, RotateShareLinkInputSchema } from "./io_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file ai/stigmer/agentic/agentshare/v1/command.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ai_stigmer_agentic_agentshare_v1_command: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* AgentShareCommandController handles write operations for agent shares.
|
|
10
|
+
*
|
|
11
|
+
* @generated from service ai.stigmer.agentic.agentshare.v1.AgentShareCommandController
|
|
12
|
+
*/
|
|
13
|
+
export declare const AgentShareCommandController: GenService<{
|
|
14
|
+
/**
|
|
15
|
+
* Create or update an agent share.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
* The authorization and state-operation are determined depending on
|
|
19
|
+
* whether the share is going to be created or updated, which is resolved
|
|
20
|
+
* as part of the request execution. The share slug defaults to the
|
|
21
|
+
* referenced agent's slug when omitted.
|
|
22
|
+
*
|
|
23
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.apply
|
|
24
|
+
*/
|
|
25
|
+
apply: {
|
|
26
|
+
methodKind: "unary";
|
|
27
|
+
input: typeof AgentShareSchema;
|
|
28
|
+
output: typeof AgentShareSchema;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Create an agent share.
|
|
32
|
+
*
|
|
33
|
+
* Enabling a share is a billing-affecting decision: conversations over
|
|
34
|
+
* the hosted link consume the sharing organization's credits.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
* Authorization: requires can_edit on the REFERENCED AGENT
|
|
38
|
+
* (spec.agent_ref), checked in-handler — the same bar as the former
|
|
39
|
+
* updateSharing RPC, since creating a channel broadens who can chat with
|
|
40
|
+
* the agent runtime. The standard org-scoped create tuples (owner =
|
|
41
|
+
* creator) are written for the share itself; no visibility tuples are
|
|
42
|
+
* written for visitors (guest admission is app-level by design — see
|
|
43
|
+
* AgentShareSpec). Phase A invariant enforced here: metadata.org must
|
|
44
|
+
* equal spec.agent_ref.org.
|
|
45
|
+
*
|
|
46
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.create
|
|
47
|
+
*/
|
|
48
|
+
create: {
|
|
49
|
+
methodKind: "unary";
|
|
50
|
+
input: typeof AgentShareSchema;
|
|
51
|
+
output: typeof AgentShareSchema;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Update an existing agent share.
|
|
55
|
+
*
|
|
56
|
+
* Replaces the spec wholesale: a manifest that omits audience resets the
|
|
57
|
+
* share to public, and one that omits environment_refs unbinds them
|
|
58
|
+
* (fails closed). The slug and referenced agent are immutable.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
61
|
+
* Authorization: requires can_edit permission on the agent share.
|
|
62
|
+
* status.share_link_token is preserved verbatim (rotateShareLink is its
|
|
63
|
+
* sole writer).
|
|
64
|
+
*
|
|
65
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.update
|
|
66
|
+
*/
|
|
67
|
+
update: {
|
|
68
|
+
methodKind: "unary";
|
|
69
|
+
input: typeof AgentShareSchema;
|
|
70
|
+
output: typeof AgentShareSchema;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Rotate the share's link token.
|
|
74
|
+
*
|
|
75
|
+
* Generates a fresh server-side token for the share's hosted chat link.
|
|
76
|
+
* The share URL becomes `/chat/<org>/<slug>?k=<token>` and the previous
|
|
77
|
+
* link (tokened or plain) stops working immediately — including for
|
|
78
|
+
* visitors mid-conversation. Use this to kill a leaked or over-shared
|
|
79
|
+
* public link without disabling the share or changing its slug.
|
|
80
|
+
*
|
|
81
|
+
* The token lives in status.share_link_token, so manifest applies never
|
|
82
|
+
* reset it. Rotation affects public-audience shares only; org-audience
|
|
83
|
+
* access is governed by live org membership instead.
|
|
84
|
+
*
|
|
85
|
+
* @internal
|
|
86
|
+
* Authorization: requires can_edit on the agent share — the same bar as
|
|
87
|
+
* update, since both control shared-link access. The handler is the sole
|
|
88
|
+
* writer of status.share_link_token (server-generated entropy; clients
|
|
89
|
+
* never supply the token).
|
|
90
|
+
*
|
|
91
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.rotateShareLink
|
|
92
|
+
*/
|
|
93
|
+
rotateShareLink: {
|
|
94
|
+
methodKind: "unary";
|
|
95
|
+
input: typeof RotateShareLinkInputSchema;
|
|
96
|
+
output: typeof AgentShareSchema;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Delete an agent share.
|
|
100
|
+
*
|
|
101
|
+
* Full teardown of the channel: the hosted link stops resolving, live
|
|
102
|
+
* guest tokens die on their next message, and the share's configuration
|
|
103
|
+
* (origins, messages, credentials, link token) is gone. To pause serving
|
|
104
|
+
* while keeping configuration, update the share with enabled=false
|
|
105
|
+
* instead.
|
|
106
|
+
*
|
|
107
|
+
* @internal
|
|
108
|
+
* Authorization: requires can_delete permission on the agent share. The
|
|
109
|
+
* referenced agent is untouched.
|
|
110
|
+
*
|
|
111
|
+
* @generated from rpc ai.stigmer.agentic.agentshare.v1.AgentShareCommandController.delete
|
|
112
|
+
*/
|
|
113
|
+
delete: {
|
|
114
|
+
methodKind: "unary";
|
|
115
|
+
input: typeof AgentShareIdSchema;
|
|
116
|
+
output: typeof AgentShareSchema;
|
|
117
|
+
};
|
|
118
|
+
}>;
|
|
@@ -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/agentshare/v1/command.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_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/agentshare/v1/command.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_ai_stigmer_agentic_agentshare_v1_command = /*@__PURE__*/ fileDesc("Ci5haS9zdGlnbWVyL2FnZW50aWMvYWdlbnRzaGFyZS92MS9jb21tYW5kLnByb3RvEiBhaS5zdGlnbWVyLmFnZW50aWMuYWdlbnRzaGFyZS52MTLuBQobQWdlbnRTaGFyZUNvbW1hbmRDb250cm9sbGVyEmMKBWFwcGx5EiwuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50c2hhcmUudjEuQWdlbnRTaGFyZRosLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLkFnZW50U2hhcmUSagoGY3JlYXRlEiwuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50c2hhcmUudjEuQWdlbnRTaGFyZRosLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLkFnZW50U2hhcmUiBNC4GAESnwEKBnVwZGF0ZRIsLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLkFnZW50U2hhcmUaLC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRzaGFyZS52MS5BZ2VudFNoYXJlIjnCuBg1CAIQLiILbWV0YWRhdGEuaWQqInVuYXV0aG9yaXplZCB0byB1cGRhdGUgYWdlbnQgc2hhcmUStwEKD3JvdGF0ZVNoYXJlTGluaxI2LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLlJvdGF0ZVNoYXJlTGlua0lucHV0GiwuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50c2hhcmUudjEuQWdlbnRTaGFyZSI+wrgYOggCEC4iC3Jlc291cmNlX2lkKid1bmF1dGhvcml6ZWQgdG8gcm90YXRlIGFnZW50IHNoYXJlIGxpbmsSmwEKBmRlbGV0ZRIuLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLkFnZW50U2hhcmVJZBosLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudHNoYXJlLnYxLkFnZW50U2hhcmUiM8K4GC8IAxAuIgV2YWx1ZSoidW5hdXRob3JpemVkIHRvIGRlbGV0ZSBhZ2VudCBzaGFyZRoEoP8rLmIGcHJvdG8z", [file_ai_stigmer_agentic_agentshare_v1_api, file_ai_stigmer_agentic_agentshare_v1_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
|
|
13
|
+
/**
|
|
14
|
+
* AgentShareCommandController handles write operations for agent shares.
|
|
15
|
+
*
|
|
16
|
+
* @generated from service ai.stigmer.agentic.agentshare.v1.AgentShareCommandController
|
|
17
|
+
*/
|
|
18
|
+
export const AgentShareCommandController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_agentic_agentshare_v1_command, 0);
|
|
19
|
+
//# sourceMappingURL=command_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentshare/v1/command_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,gIAAgI;AAChI,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;AACtE,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,smCAAsmC,EAAE,CAAC,yCAAyC,EAAE,wCAAwC,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAE/yC;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAyGnC,aAAa,CAChB,WAAW,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC"}
|