@stigmer/protos 3.5.1 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/stigmer/agentic/agentchannel/v1/message_command_connect.d.ts +49 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_command_connect.js +56 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_command_connect.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_command_pb.d.ts +51 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_command_pb.js +28 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_command_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_io_pb.d.ts +396 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_io_pb.js +95 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_io_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_query_connect.d.ts +43 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_query_connect.js +50 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_query_connect.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_query_pb.d.ts +45 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_query_pb.js +25 -0
- package/ai/stigmer/agentic/agentchannel/v1/message_query_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/outbound_pb.d.ts +177 -0
- package/ai/stigmer/agentic/agentchannel/v1/outbound_pb.js +56 -0
- package/ai/stigmer/agentic/agentchannel/v1/outbound_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentchannel/v1/spec_pb.d.ts +18 -0
- package/ai/stigmer/agentic/agentchannel/v1/spec_pb.js +1 -1
- package/ai/stigmer/agentic/agentchannel/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/iam/platformclient/v1/spec_pb.d.ts +3 -3
- package/ai/stigmer/iam/platformclient/v1/token_connect.d.ts +5 -2
- package/ai/stigmer/iam/platformclient/v1/token_connect.js +5 -2
- package/ai/stigmer/iam/platformclient/v1/token_connect.js.map +1 -1
- package/ai/stigmer/iam/platformclient/v1/token_pb.d.ts +5 -2
- package/ai/stigmer/iam/platformclient/v1/token_pb.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChannelMessageCommandController handles business-initiated outbound
|
|
3
|
+
* messages on agent channels.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
* proactive-messaging DD-002 D2: the runtime messaging surface beside
|
|
7
|
+
* the AgentChannel resource controllers — the
|
|
8
|
+
* DatastoreRecordCommandController-beside-DatastoreCommandController
|
|
9
|
+
* split, so resource CRUD and runtime traffic never mix. Dual-audience
|
|
10
|
+
* by token-class dispatch (the RecordReach shape): the agent's
|
|
11
|
+
* send_channel_message tool calls with a session-scoped sandbox token;
|
|
12
|
+
* direct principals (console, CLI, SDK) call with their own identity.
|
|
13
|
+
*
|
|
14
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.ChannelMessageCommandController
|
|
15
|
+
*/
|
|
16
|
+
export declare const ChannelMessageCommandController: {
|
|
17
|
+
readonly typeName: "ai.stigmer.agentic.agentchannel.v1.ChannelMessageCommandController";
|
|
18
|
+
readonly methods: {
|
|
19
|
+
/**
|
|
20
|
+
* Send a business-initiated message to a recipient on an agent channel.
|
|
21
|
+
*
|
|
22
|
+
* The message is durably recorded and attempted once inline; transient
|
|
23
|
+
* failures are retried in the background. The outcome reports the
|
|
24
|
+
* truth of the inline attempt.
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
* Authorization in-handler (DD-002 D2/D6/D9): token-class dispatch,
|
|
28
|
+
* fail closed; agent-anchored chain (never session-sender-anchored —
|
|
29
|
+
* the recipient is an argument). Error contract (DD-002 D4): unknown
|
|
30
|
+
* or foreign token class, no serving channel, proactive messaging not
|
|
31
|
+
* enabled, or channel/org mismatch → PERMISSION_DENIED with no policy
|
|
32
|
+
* detail leaked; malformed input or ambiguous channel/language →
|
|
33
|
+
* INVALID_ARGUMENT with the candidates listed; channel not installed →
|
|
34
|
+
* FAILED_PRECONDITION; rate caps, recipient policy, and provider
|
|
35
|
+
* refusals → outcome=refused; transient provider failures →
|
|
36
|
+
* outcome=queued. Cloud-first runtime: the OSS edition returns
|
|
37
|
+
* FAILED_PRECONDITION (decision 001 D-g posture, the initiateInstall
|
|
38
|
+
* precedent).
|
|
39
|
+
*
|
|
40
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.ChannelMessageCommandController.sendMessage
|
|
41
|
+
*/
|
|
42
|
+
readonly sendMessage: {
|
|
43
|
+
readonly name: "sendMessage";
|
|
44
|
+
readonly I: any;
|
|
45
|
+
readonly O: any;
|
|
46
|
+
readonly kind: any;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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/message_command.proto (package ai.stigmer.agentic.agentchannel.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { SendChannelMessageInput, SendChannelMessageOutput } from "./message_io_pbjs";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* ChannelMessageCommandController handles business-initiated outbound
|
|
9
|
+
* messages on agent channels.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
* proactive-messaging DD-002 D2: the runtime messaging surface beside
|
|
13
|
+
* the AgentChannel resource controllers — the
|
|
14
|
+
* DatastoreRecordCommandController-beside-DatastoreCommandController
|
|
15
|
+
* split, so resource CRUD and runtime traffic never mix. Dual-audience
|
|
16
|
+
* by token-class dispatch (the RecordReach shape): the agent's
|
|
17
|
+
* send_channel_message tool calls with a session-scoped sandbox token;
|
|
18
|
+
* direct principals (console, CLI, SDK) call with their own identity.
|
|
19
|
+
*
|
|
20
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.ChannelMessageCommandController
|
|
21
|
+
*/
|
|
22
|
+
export const ChannelMessageCommandController = {
|
|
23
|
+
typeName: "ai.stigmer.agentic.agentchannel.v1.ChannelMessageCommandController",
|
|
24
|
+
methods: {
|
|
25
|
+
/**
|
|
26
|
+
* Send a business-initiated message to a recipient on an agent channel.
|
|
27
|
+
*
|
|
28
|
+
* The message is durably recorded and attempted once inline; transient
|
|
29
|
+
* failures are retried in the background. The outcome reports the
|
|
30
|
+
* truth of the inline attempt.
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
* Authorization in-handler (DD-002 D2/D6/D9): token-class dispatch,
|
|
34
|
+
* fail closed; agent-anchored chain (never session-sender-anchored —
|
|
35
|
+
* the recipient is an argument). Error contract (DD-002 D4): unknown
|
|
36
|
+
* or foreign token class, no serving channel, proactive messaging not
|
|
37
|
+
* enabled, or channel/org mismatch → PERMISSION_DENIED with no policy
|
|
38
|
+
* detail leaked; malformed input or ambiguous channel/language →
|
|
39
|
+
* INVALID_ARGUMENT with the candidates listed; channel not installed →
|
|
40
|
+
* FAILED_PRECONDITION; rate caps, recipient policy, and provider
|
|
41
|
+
* refusals → outcome=refused; transient provider failures →
|
|
42
|
+
* outcome=queued. Cloud-first runtime: the OSS edition returns
|
|
43
|
+
* FAILED_PRECONDITION (decision 001 D-g posture, the initiateInstall
|
|
44
|
+
* precedent).
|
|
45
|
+
*
|
|
46
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.ChannelMessageCommandController.sendMessage
|
|
47
|
+
*/
|
|
48
|
+
sendMessage: {
|
|
49
|
+
name: "sendMessage",
|
|
50
|
+
I: SendChannelMessageInput,
|
|
51
|
+
O: SendChannelMessageOutput,
|
|
52
|
+
kind: MethodKind.Unary,
|
|
53
|
+
},
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=message_command_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message_command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/message_command_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,4IAA4I;AAC5I,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,QAAQ,EAAE,oEAAoE;IAC9E,OAAO,EAAE;QACP;;;;;;;;;;;;;;;;;;;;;;WAsBG;QACH,WAAW,EAAE;YACX,IAAI,EAAE,aAAa;YACnB,CAAC,EAAE,uBAAuB;YAC1B,CAAC,EAAE,wBAAwB;YAC3B,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { SendChannelMessageInputSchema, SendChannelMessageOutputSchema } from "./message_io_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/message_command.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_ai_stigmer_agentic_agentchannel_v1_message_command: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* ChannelMessageCommandController handles business-initiated outbound
|
|
9
|
+
* messages on agent channels.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
* proactive-messaging DD-002 D2: the runtime messaging surface beside
|
|
13
|
+
* the AgentChannel resource controllers — the
|
|
14
|
+
* DatastoreRecordCommandController-beside-DatastoreCommandController
|
|
15
|
+
* split, so resource CRUD and runtime traffic never mix. Dual-audience
|
|
16
|
+
* by token-class dispatch (the RecordReach shape): the agent's
|
|
17
|
+
* send_channel_message tool calls with a session-scoped sandbox token;
|
|
18
|
+
* direct principals (console, CLI, SDK) call with their own identity.
|
|
19
|
+
*
|
|
20
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.ChannelMessageCommandController
|
|
21
|
+
*/
|
|
22
|
+
export declare const ChannelMessageCommandController: GenService<{
|
|
23
|
+
/**
|
|
24
|
+
* Send a business-initiated message to a recipient on an agent channel.
|
|
25
|
+
*
|
|
26
|
+
* The message is durably recorded and attempted once inline; transient
|
|
27
|
+
* failures are retried in the background. The outcome reports the
|
|
28
|
+
* truth of the inline attempt.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
* Authorization in-handler (DD-002 D2/D6/D9): token-class dispatch,
|
|
32
|
+
* fail closed; agent-anchored chain (never session-sender-anchored —
|
|
33
|
+
* the recipient is an argument). Error contract (DD-002 D4): unknown
|
|
34
|
+
* or foreign token class, no serving channel, proactive messaging not
|
|
35
|
+
* enabled, or channel/org mismatch → PERMISSION_DENIED with no policy
|
|
36
|
+
* detail leaked; malformed input or ambiguous channel/language →
|
|
37
|
+
* INVALID_ARGUMENT with the candidates listed; channel not installed →
|
|
38
|
+
* FAILED_PRECONDITION; rate caps, recipient policy, and provider
|
|
39
|
+
* refusals → outcome=refused; transient provider failures →
|
|
40
|
+
* outcome=queued. Cloud-first runtime: the OSS edition returns
|
|
41
|
+
* FAILED_PRECONDITION (decision 001 D-g posture, the initiateInstall
|
|
42
|
+
* precedent).
|
|
43
|
+
*
|
|
44
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.ChannelMessageCommandController.sendMessage
|
|
45
|
+
*/
|
|
46
|
+
sendMessage: {
|
|
47
|
+
methodKind: "unary";
|
|
48
|
+
input: typeof SendChannelMessageInputSchema;
|
|
49
|
+
output: typeof SendChannelMessageOutputSchema;
|
|
50
|
+
};
|
|
51
|
+
}>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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/message_command.proto (package ai.stigmer.agentic.agentchannel.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_agentic_agentchannel_v1_message_io } from "./message_io_pb.js";
|
|
6
|
+
import { file_ai_stigmer_commons_apiresource_rpc_service_options } from "../../../commons/apiresource/rpc_service_options_pb.js";
|
|
7
|
+
import { file_ai_stigmer_commons_rpc_method_options } from "../../../commons/rpc/method_options_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/message_command.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_ai_stigmer_agentic_agentchannel_v1_message_command = /*@__PURE__*/ fileDesc("CjhhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL21lc3NhZ2VfY29tbWFuZC5wcm90bxIiYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MTK4AQofQ2hhbm5lbE1lc3NhZ2VDb21tYW5kQ29udHJvbGxlchKOAQoLc2VuZE1lc3NhZ2USOy5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLlNlbmRDaGFubmVsTWVzc2FnZUlucHV0GjwuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5TZW5kQ2hhbm5lbE1lc3NhZ2VPdXRwdXQiBNC4GAEaBKD/Ky9iBnByb3RvMw", [file_ai_stigmer_agentic_agentchannel_v1_message_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
|
|
12
|
+
/**
|
|
13
|
+
* ChannelMessageCommandController handles business-initiated outbound
|
|
14
|
+
* messages on agent channels.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
* proactive-messaging DD-002 D2: the runtime messaging surface beside
|
|
18
|
+
* the AgentChannel resource controllers — the
|
|
19
|
+
* DatastoreRecordCommandController-beside-DatastoreCommandController
|
|
20
|
+
* split, so resource CRUD and runtime traffic never mix. Dual-audience
|
|
21
|
+
* by token-class dispatch (the RecordReach shape): the agent's
|
|
22
|
+
* send_channel_message tool calls with a session-scoped sandbox token;
|
|
23
|
+
* direct principals (console, CLI, SDK) call with their own identity.
|
|
24
|
+
*
|
|
25
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.ChannelMessageCommandController
|
|
26
|
+
*/
|
|
27
|
+
export const ChannelMessageCommandController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_agentic_agentchannel_v1_message_command, 0);
|
|
28
|
+
//# sourceMappingURL=message_command_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message_command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/message_command_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,4IAA4I;AAC5I,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,kDAAkD,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,uDAAuD,GAAY,aAAa,CAC3F,QAAQ,CAAC,oYAAoY,EAAE,CAAC,kDAAkD,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAE5iB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,+BAA+B,GA6BvC,aAAa,CAChB,WAAW,CAAC,uDAAuD,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/message_io.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_ai_stigmer_agentic_agentchannel_v1_message_io: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* Input for sending a business-initiated message on an agent channel.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
* proactive-messaging DD-002 D4, amended: channel + org are separate
|
|
12
|
+
* fields (the FindRecordsRequest slug/org precedent), never a
|
|
13
|
+
* slug-or-id union. Dispatch mirrors the datastore record surface:
|
|
14
|
+
* session-bound runner credentials leave both empty and the server
|
|
15
|
+
* derives them from the session's serving channel; direct principals
|
|
16
|
+
* (console, CLI, SDK) set them. Ambiguity — the caller's agent has more
|
|
17
|
+
* than one proactive-enabled channel and no channel is named — is an
|
|
18
|
+
* INVALID_ARGUMENT whose detail lists the candidates (D7).
|
|
19
|
+
*
|
|
20
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.SendChannelMessageInput
|
|
21
|
+
*/
|
|
22
|
+
export type SendChannelMessageInput = Message<"ai.stigmer.agentic.agentchannel.v1.SendChannelMessageInput"> & {
|
|
23
|
+
/**
|
|
24
|
+
* AgentChannel slug to send through, resolved within `org`. Optional
|
|
25
|
+
* when the caller's agent has exactly one proactive-enabled channel.
|
|
26
|
+
*
|
|
27
|
+
* @generated from field: string channel = 1;
|
|
28
|
+
*/
|
|
29
|
+
channel: string;
|
|
30
|
+
/**
|
|
31
|
+
* Organization the channel belongs to. Direct callers set it; unset
|
|
32
|
+
* resolves from the caller's context.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: string org = 2;
|
|
35
|
+
*/
|
|
36
|
+
org: string;
|
|
37
|
+
/**
|
|
38
|
+
* External recipient key on the channel's provider (WhatsApp: the
|
|
39
|
+
* recipient's wa_id).
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: string recipient = 3;
|
|
42
|
+
*/
|
|
43
|
+
recipient: string;
|
|
44
|
+
/**
|
|
45
|
+
* Typed message content.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.ChannelOutboundPayload payload = 4;
|
|
48
|
+
*/
|
|
49
|
+
payload?: ChannelOutboundPayload;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.SendChannelMessageInput.
|
|
53
|
+
* Use `create(SendChannelMessageInputSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
export declare const SendChannelMessageInputSchema: GenMessage<SendChannelMessageInput>;
|
|
56
|
+
/**
|
|
57
|
+
* ChannelOutboundPayload is the typed content of a business-initiated
|
|
58
|
+
* message. Exactly one kind must be set.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
61
|
+
* The payments seam (proactive-messaging DD-001 D4 / DD-002 D3): the
|
|
62
|
+
* payments follow-up adds `OrderDetailsPayload order_details = 3` —
|
|
63
|
+
* the provider_config / delivery_context oneof-extension pattern
|
|
64
|
+
* ("extends this oneof; touches zero kinds"). Deliverers dispatch on
|
|
65
|
+
* the arm and refuse unknown arms cleanly (INVALID_ARGUMENT, never
|
|
66
|
+
* silent text coercion).
|
|
67
|
+
*
|
|
68
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.ChannelOutboundPayload
|
|
69
|
+
*/
|
|
70
|
+
export type ChannelOutboundPayload = Message<"ai.stigmer.agentic.agentchannel.v1.ChannelOutboundPayload"> & {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from oneof ai.stigmer.agentic.agentchannel.v1.ChannelOutboundPayload.kind
|
|
73
|
+
*/
|
|
74
|
+
kind: {
|
|
75
|
+
/**
|
|
76
|
+
* Plain text message. Requires an open 24-hour customer-service
|
|
77
|
+
* window on providers that enforce one (WhatsApp).
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.TextPayload text = 1;
|
|
80
|
+
*/
|
|
81
|
+
value: TextPayload;
|
|
82
|
+
case: "text";
|
|
83
|
+
} | {
|
|
84
|
+
/**
|
|
85
|
+
* Provider-approved message template. Required for
|
|
86
|
+
* business-initiated messages outside an open 24-hour window.
|
|
87
|
+
*
|
|
88
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.TemplatePayload template = 2;
|
|
89
|
+
*/
|
|
90
|
+
value: TemplatePayload;
|
|
91
|
+
case: "template";
|
|
92
|
+
} | {
|
|
93
|
+
case: undefined;
|
|
94
|
+
value?: undefined;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.ChannelOutboundPayload.
|
|
99
|
+
* Use `create(ChannelOutboundPayloadSchema)` to create a new message.
|
|
100
|
+
*/
|
|
101
|
+
export declare const ChannelOutboundPayloadSchema: GenMessage<ChannelOutboundPayload>;
|
|
102
|
+
/**
|
|
103
|
+
* TextPayload is a plain text message body.
|
|
104
|
+
*
|
|
105
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.TextPayload
|
|
106
|
+
*/
|
|
107
|
+
export type TextPayload = Message<"ai.stigmer.agentic.agentchannel.v1.TextPayload"> & {
|
|
108
|
+
/**
|
|
109
|
+
* Message body. WhatsApp text-message limits apply.
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: string body = 1;
|
|
112
|
+
*/
|
|
113
|
+
body: string;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.TextPayload.
|
|
117
|
+
* Use `create(TextPayloadSchema)` to create a new message.
|
|
118
|
+
*/
|
|
119
|
+
export declare const TextPayloadSchema: GenMessage<TextPayload>;
|
|
120
|
+
/**
|
|
121
|
+
* TemplatePayload sends a provider-approved message template, filled
|
|
122
|
+
* with the supplied parameter values.
|
|
123
|
+
*
|
|
124
|
+
* @internal
|
|
125
|
+
* proactive-messaging DD-003 D4. Registry-dependent validation (name
|
|
126
|
+
* exists, status APPROVED, language resolution, parameter arity, header
|
|
127
|
+
* requirement) is deliberately NOT proto-level: it is the cloud
|
|
128
|
+
* handler's courtesy pre-check plus the provider's send-time verdict
|
|
129
|
+
* (D7), mapped to ChannelSendOutcome — never a local approval state
|
|
130
|
+
* machine.
|
|
131
|
+
*
|
|
132
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.TemplatePayload
|
|
133
|
+
*/
|
|
134
|
+
export type TemplatePayload = Message<"ai.stigmer.agentic.agentchannel.v1.TemplatePayload"> & {
|
|
135
|
+
/**
|
|
136
|
+
* Name of the approved template on the channel's provider registry
|
|
137
|
+
* (WhatsApp: the WABA's template name).
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: string name = 1;
|
|
140
|
+
*/
|
|
141
|
+
name: string;
|
|
142
|
+
/**
|
|
143
|
+
* Template language code (e.g. "en", "en_US"). Optional when the
|
|
144
|
+
* template name exists in exactly one language.
|
|
145
|
+
*
|
|
146
|
+
* @internal
|
|
147
|
+
* Omitted-language resolution echoes SendChannelMessageInput.channel:
|
|
148
|
+
* unambiguous resolves, ambiguous is INVALID_ARGUMENT with the
|
|
149
|
+
* candidate languages in the detail (DD-003 D4).
|
|
150
|
+
*
|
|
151
|
+
* @generated from field: string language = 2;
|
|
152
|
+
*/
|
|
153
|
+
language: string;
|
|
154
|
+
/**
|
|
155
|
+
* Variable values. Named templates key by parameter name
|
|
156
|
+
* ("member_name"); positional templates key by position ("1", "2").
|
|
157
|
+
*
|
|
158
|
+
* @generated from field: map<string, string> parameters = 3;
|
|
159
|
+
*/
|
|
160
|
+
parameters: {
|
|
161
|
+
[key: string]: string;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Public HTTPS URL for the image header. Required iff the template
|
|
165
|
+
* declares an image header — the asset is needed at send time (the
|
|
166
|
+
* creation-time handle is review-only and expires).
|
|
167
|
+
*
|
|
168
|
+
* @generated from field: string header_image_link = 4;
|
|
169
|
+
*/
|
|
170
|
+
headerImageLink: string;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.TemplatePayload.
|
|
174
|
+
* Use `create(TemplatePayloadSchema)` to create a new message.
|
|
175
|
+
*/
|
|
176
|
+
export declare const TemplatePayloadSchema: GenMessage<TemplatePayload>;
|
|
177
|
+
/**
|
|
178
|
+
* Output of the send-message RPC: the truthful outcome of the inline
|
|
179
|
+
* delivery attempt.
|
|
180
|
+
*
|
|
181
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.SendChannelMessageOutput
|
|
182
|
+
*/
|
|
183
|
+
export type SendChannelMessageOutput = Message<"ai.stigmer.agentic.agentchannel.v1.SendChannelMessageOutput"> & {
|
|
184
|
+
/**
|
|
185
|
+
* Outcome of the inline attempt.
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.ChannelSendOutcome outcome = 1;
|
|
188
|
+
*/
|
|
189
|
+
outcome: ChannelSendOutcome;
|
|
190
|
+
/**
|
|
191
|
+
* Platform id of the durable outbound record (audit handle).
|
|
192
|
+
*
|
|
193
|
+
* @generated from field: string outbound_message_id = 2;
|
|
194
|
+
*/
|
|
195
|
+
outboundMessageId: string;
|
|
196
|
+
/**
|
|
197
|
+
* Provider message id when accepted (WhatsApp: wamid).
|
|
198
|
+
*
|
|
199
|
+
* @generated from field: string provider_message_id = 3;
|
|
200
|
+
*/
|
|
201
|
+
providerMessageId: string;
|
|
202
|
+
/**
|
|
203
|
+
* Honest, agent-readable detail for queued/refused outcomes.
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: string detail = 4;
|
|
206
|
+
*/
|
|
207
|
+
detail: string;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.SendChannelMessageOutput.
|
|
211
|
+
* Use `create(SendChannelMessageOutputSchema)` to create a new message.
|
|
212
|
+
*/
|
|
213
|
+
export declare const SendChannelMessageOutputSchema: GenMessage<SendChannelMessageOutput>;
|
|
214
|
+
/**
|
|
215
|
+
* Input for listing the message templates available on an agent channel.
|
|
216
|
+
*
|
|
217
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.ListChannelTemplatesInput
|
|
218
|
+
*/
|
|
219
|
+
export type ListChannelTemplatesInput = Message<"ai.stigmer.agentic.agentchannel.v1.ListChannelTemplatesInput"> & {
|
|
220
|
+
/**
|
|
221
|
+
* AgentChannel slug whose provider registry to read, resolved within
|
|
222
|
+
* `org`. Optional when the caller's agent has exactly one
|
|
223
|
+
* proactive-enabled channel.
|
|
224
|
+
*
|
|
225
|
+
* @generated from field: string channel = 1;
|
|
226
|
+
*/
|
|
227
|
+
channel: string;
|
|
228
|
+
/**
|
|
229
|
+
* Organization the channel belongs to. Direct callers set it; unset
|
|
230
|
+
* resolves from the caller's context.
|
|
231
|
+
*
|
|
232
|
+
* @generated from field: string org = 2;
|
|
233
|
+
*/
|
|
234
|
+
org: string;
|
|
235
|
+
/**
|
|
236
|
+
* When true, only templates the provider will accept for sending are
|
|
237
|
+
* returned (WhatsApp: status APPROVED, filtered server-side).
|
|
238
|
+
*
|
|
239
|
+
* @internal
|
|
240
|
+
* The two callers split on this flag: the runner's discovery fetch
|
|
241
|
+
* sets it (an agent must never compose against a paused or pending
|
|
242
|
+
* template, DD-003 D5); the console leaves it unset to render every
|
|
243
|
+
* status with its badge (DD-003 D10).
|
|
244
|
+
*
|
|
245
|
+
* @generated from field: bool approved_only = 3;
|
|
246
|
+
*/
|
|
247
|
+
approvedOnly: boolean;
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.ListChannelTemplatesInput.
|
|
251
|
+
* Use `create(ListChannelTemplatesInputSchema)` to create a new message.
|
|
252
|
+
*/
|
|
253
|
+
export declare const ListChannelTemplatesInputSchema: GenMessage<ListChannelTemplatesInput>;
|
|
254
|
+
/**
|
|
255
|
+
* ChannelTemplates contains the message templates available on an agent
|
|
256
|
+
* channel.
|
|
257
|
+
*
|
|
258
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.ChannelTemplates
|
|
259
|
+
*/
|
|
260
|
+
export type ChannelTemplates = Message<"ai.stigmer.agentic.agentchannel.v1.ChannelTemplates"> & {
|
|
261
|
+
/**
|
|
262
|
+
* Template entries, one per (name, language) pair.
|
|
263
|
+
*
|
|
264
|
+
* @generated from field: repeated ai.stigmer.agentic.agentchannel.v1.ChannelTemplate entries = 1;
|
|
265
|
+
*/
|
|
266
|
+
entries: ChannelTemplate[];
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.ChannelTemplates.
|
|
270
|
+
* Use `create(ChannelTemplatesSchema)` to create a new message.
|
|
271
|
+
*/
|
|
272
|
+
export declare const ChannelTemplatesSchema: GenMessage<ChannelTemplates>;
|
|
273
|
+
/**
|
|
274
|
+
* ChannelTemplate is one message template as the channel's provider
|
|
275
|
+
* registry reports it.
|
|
276
|
+
*
|
|
277
|
+
* @internal
|
|
278
|
+
* proactive-messaging DD-003 D6: provider vocabulary verbatim — status,
|
|
279
|
+
* category, format, and rejection copy are the provider's own strings,
|
|
280
|
+
* never re-encoded into a Stigmer enum. The provider is the registry
|
|
281
|
+
* and the send-time authority; this projection is a read-through view.
|
|
282
|
+
*
|
|
283
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.ChannelTemplate
|
|
284
|
+
*/
|
|
285
|
+
export type ChannelTemplate = Message<"ai.stigmer.agentic.agentchannel.v1.ChannelTemplate"> & {
|
|
286
|
+
/**
|
|
287
|
+
* Template name on the provider registry.
|
|
288
|
+
*
|
|
289
|
+
* @generated from field: string name = 1;
|
|
290
|
+
*/
|
|
291
|
+
name: string;
|
|
292
|
+
/**
|
|
293
|
+
* Template language code (e.g. "en_US"). The (name, language) pair is
|
|
294
|
+
* the template's identity; each language is approved independently.
|
|
295
|
+
*
|
|
296
|
+
* @generated from field: string language = 2;
|
|
297
|
+
*/
|
|
298
|
+
language: string;
|
|
299
|
+
/**
|
|
300
|
+
* Provider category, verbatim (WhatsApp: UTILITY, MARKETING,
|
|
301
|
+
* AUTHENTICATION).
|
|
302
|
+
*
|
|
303
|
+
* @generated from field: string category = 3;
|
|
304
|
+
*/
|
|
305
|
+
category: string;
|
|
306
|
+
/**
|
|
307
|
+
* Provider approval status, verbatim (WhatsApp: APPROVED, PENDING,
|
|
308
|
+
* REJECTED, PAUSED, DISABLED).
|
|
309
|
+
*
|
|
310
|
+
* @generated from field: string status = 4;
|
|
311
|
+
*/
|
|
312
|
+
status: string;
|
|
313
|
+
/**
|
|
314
|
+
* Parameter format, verbatim (WhatsApp: POSITIONAL, NAMED).
|
|
315
|
+
*
|
|
316
|
+
* @generated from field: string parameter_format = 5;
|
|
317
|
+
*/
|
|
318
|
+
parameterFormat: string;
|
|
319
|
+
/**
|
|
320
|
+
* Parameter names for named templates; positions ("1", "2", ...) for
|
|
321
|
+
* positional templates.
|
|
322
|
+
*
|
|
323
|
+
* @generated from field: repeated string parameter_names = 6;
|
|
324
|
+
*/
|
|
325
|
+
parameterNames: string[];
|
|
326
|
+
/**
|
|
327
|
+
* Full body text including placeholders (e.g. "Hi {{1}}, your fee of
|
|
328
|
+
* {{2}} is due {{3}}.").
|
|
329
|
+
*
|
|
330
|
+
* @generated from field: string body_text = 7;
|
|
331
|
+
*/
|
|
332
|
+
bodyText: string;
|
|
333
|
+
/**
|
|
334
|
+
* Header format when the template declares a header, verbatim
|
|
335
|
+
* (WhatsApp: TEXT, IMAGE, VIDEO, DOCUMENT). Empty for no header.
|
|
336
|
+
*
|
|
337
|
+
* @generated from field: string header_format = 8;
|
|
338
|
+
*/
|
|
339
|
+
headerFormat: string;
|
|
340
|
+
/**
|
|
341
|
+
* Provider's rejection reason, verbatim. Empty unless status is a
|
|
342
|
+
* rejected state.
|
|
343
|
+
*
|
|
344
|
+
* @generated from field: string rejection_reason = 9;
|
|
345
|
+
*/
|
|
346
|
+
rejectionReason: string;
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.ChannelTemplate.
|
|
350
|
+
* Use `create(ChannelTemplateSchema)` to create a new message.
|
|
351
|
+
*/
|
|
352
|
+
export declare const ChannelTemplateSchema: GenMessage<ChannelTemplate>;
|
|
353
|
+
/**
|
|
354
|
+
* ChannelSendOutcome reports what happened to a business-initiated
|
|
355
|
+
* message on the inline delivery attempt.
|
|
356
|
+
*
|
|
357
|
+
* @internal
|
|
358
|
+
* proactive-messaging DD-002 D1/D4: policy refusals the agent adapts to
|
|
359
|
+
* are typed outcomes; contract violations and authority failures are
|
|
360
|
+
* gRPC errors. Provider verdicts map into the same vocabulary (DD-003
|
|
361
|
+
* D7).
|
|
362
|
+
*
|
|
363
|
+
* @generated from enum ai.stigmer.agentic.agentchannel.v1.ChannelSendOutcome
|
|
364
|
+
*/
|
|
365
|
+
export declare enum ChannelSendOutcome {
|
|
366
|
+
/**
|
|
367
|
+
* Default value when no outcome is set.
|
|
368
|
+
*
|
|
369
|
+
* @generated from enum value: channel_send_outcome_unspecified = 0;
|
|
370
|
+
*/
|
|
371
|
+
channel_send_outcome_unspecified = 0,
|
|
372
|
+
/**
|
|
373
|
+
* Provider accepted the message.
|
|
374
|
+
*
|
|
375
|
+
* @generated from enum value: accepted = 1;
|
|
376
|
+
*/
|
|
377
|
+
accepted = 1,
|
|
378
|
+
/**
|
|
379
|
+
* Transient failure; the platform retries in the background.
|
|
380
|
+
*
|
|
381
|
+
* @generated from enum value: queued = 2;
|
|
382
|
+
*/
|
|
383
|
+
queued = 2,
|
|
384
|
+
/**
|
|
385
|
+
* Terminal refusal; detail says why (caps, recipient policy, provider
|
|
386
|
+
* policy such as an expired 24-hour window). The caller should adapt,
|
|
387
|
+
* not retry.
|
|
388
|
+
*
|
|
389
|
+
* @generated from enum value: refused = 3;
|
|
390
|
+
*/
|
|
391
|
+
refused = 3
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Describes the enum ai.stigmer.agentic.agentchannel.v1.ChannelSendOutcome.
|
|
395
|
+
*/
|
|
396
|
+
export declare const ChannelSendOutcomeSchema: GenEnum<ChannelSendOutcome>;
|
|
@@ -0,0 +1,95 @@
|
|
|
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/message_io.proto (package ai.stigmer.agentic.agentchannel.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb.js";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/message_io.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_ai_stigmer_agentic_agentchannel_v1_message_io = /*@__PURE__*/ fileDesc("CjNhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL21lc3NhZ2VfaW8ucHJvdG8SImFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEivQEKF1NlbmRDaGFubmVsTWVzc2FnZUlucHV0EhgKB2NoYW5uZWwYASABKAlCB7pIBHICGD8SFAoDb3JnGAIgASgJQge6SARyAhg/Eh0KCXJlY2lwaWVudBgDIAEoCUIKukgHcgUQARiAARJTCgdwYXlsb2FkGAQgASgLMjouYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5DaGFubmVsT3V0Ym91bmRQYXlsb2FkQga6SAPIAQEisQEKFkNoYW5uZWxPdXRib3VuZFBheWxvYWQSPwoEdGV4dBgBIAEoCzIvLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuVGV4dFBheWxvYWRIABJHCgh0ZW1wbGF0ZRgCIAEoCzIzLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuVGVtcGxhdGVQYXlsb2FkSABCDQoEa2luZBIFukgCCAEiJwoLVGV4dFBheWxvYWQSGAoEYm9keRgBIAEoCUIKukgHcgUQARiAICKBAgoPVGVtcGxhdGVQYXlsb2FkEhgKBG5hbWUYASABKAlCCrpIB3IFEAEYgAQSGQoIbGFuZ3VhZ2UYAiABKAlCB7pIBHICGBASYQoKcGFyYW1ldGVycxgDIAMoCzJDLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuVGVtcGxhdGVQYXlsb2FkLlBhcmFtZXRlcnNFbnRyeUIIukgFmgECEDISIwoRaGVhZGVyX2ltYWdlX2xpbmsYBCABKAlCCLpIBXIDGIAQGjEKD1BhcmFtZXRlcnNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIq0BChhTZW5kQ2hhbm5lbE1lc3NhZ2VPdXRwdXQSRwoHb3V0Y29tZRgBIAEoDjI2LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQ2hhbm5lbFNlbmRPdXRjb21lEhsKE291dGJvdW5kX21lc3NhZ2VfaWQYAiABKAkSGwoTcHJvdmlkZXJfbWVzc2FnZV9pZBgDIAEoCRIOCgZkZXRhaWwYBCABKAkiYgoZTGlzdENoYW5uZWxUZW1wbGF0ZXNJbnB1dBIYCgdjaGFubmVsGAEgASgJQge6SARyAhg/EhQKA29yZxgCIAEoCUIHukgEcgIYPxIVCg1hcHByb3ZlZF9vbmx5GAMgASgIIlgKEENoYW5uZWxUZW1wbGF0ZXMSRAoHZW50cmllcxgBIAMoCzIzLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQ2hhbm5lbFRlbXBsYXRlIsoBCg9DaGFubmVsVGVtcGxhdGUSDAoEbmFtZRgBIAEoCRIQCghsYW5ndWFnZRgCIAEoCRIQCghjYXRlZ29yeRgDIAEoCRIOCgZzdGF0dXMYBCABKAkSGAoQcGFyYW1ldGVyX2Zvcm1hdBgFIAEoCRIXCg9wYXJhbWV0ZXJfbmFtZXMYBiADKAkSEQoJYm9keV90ZXh0GAcgASgJEhUKDWhlYWRlcl9mb3JtYXQYCCABKAkSGAoQcmVqZWN0aW9uX3JlYXNvbhgJIAEoCSphChJDaGFubmVsU2VuZE91dGNvbWUSJAogY2hhbm5lbF9zZW5kX291dGNvbWVfdW5zcGVjaWZpZWQQABIMCghhY2NlcHRlZBABEgoKBnF1ZXVlZBACEgsKB3JlZnVzZWQQA2IGcHJvdG8z", [file_buf_validate_validate]);
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.SendChannelMessageInput.
|
|
12
|
+
* Use `create(SendChannelMessageInputSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const SendChannelMessageInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_message_io, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.ChannelOutboundPayload.
|
|
17
|
+
* Use `create(ChannelOutboundPayloadSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const ChannelOutboundPayloadSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_message_io, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.TextPayload.
|
|
22
|
+
* Use `create(TextPayloadSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const TextPayloadSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_message_io, 2);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.TemplatePayload.
|
|
27
|
+
* Use `create(TemplatePayloadSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const TemplatePayloadSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_message_io, 3);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.SendChannelMessageOutput.
|
|
32
|
+
* Use `create(SendChannelMessageOutputSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export const SendChannelMessageOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_message_io, 4);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.ListChannelTemplatesInput.
|
|
37
|
+
* Use `create(ListChannelTemplatesInputSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const ListChannelTemplatesInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_message_io, 5);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.ChannelTemplates.
|
|
42
|
+
* Use `create(ChannelTemplatesSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
export const ChannelTemplatesSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_message_io, 6);
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.ChannelTemplate.
|
|
47
|
+
* Use `create(ChannelTemplateSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export const ChannelTemplateSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_message_io, 7);
|
|
50
|
+
/**
|
|
51
|
+
* ChannelSendOutcome reports what happened to a business-initiated
|
|
52
|
+
* message on the inline delivery attempt.
|
|
53
|
+
*
|
|
54
|
+
* @internal
|
|
55
|
+
* proactive-messaging DD-002 D1/D4: policy refusals the agent adapts to
|
|
56
|
+
* are typed outcomes; contract violations and authority failures are
|
|
57
|
+
* gRPC errors. Provider verdicts map into the same vocabulary (DD-003
|
|
58
|
+
* D7).
|
|
59
|
+
*
|
|
60
|
+
* @generated from enum ai.stigmer.agentic.agentchannel.v1.ChannelSendOutcome
|
|
61
|
+
*/
|
|
62
|
+
export var ChannelSendOutcome;
|
|
63
|
+
(function (ChannelSendOutcome) {
|
|
64
|
+
/**
|
|
65
|
+
* Default value when no outcome is set.
|
|
66
|
+
*
|
|
67
|
+
* @generated from enum value: channel_send_outcome_unspecified = 0;
|
|
68
|
+
*/
|
|
69
|
+
ChannelSendOutcome[ChannelSendOutcome["channel_send_outcome_unspecified"] = 0] = "channel_send_outcome_unspecified";
|
|
70
|
+
/**
|
|
71
|
+
* Provider accepted the message.
|
|
72
|
+
*
|
|
73
|
+
* @generated from enum value: accepted = 1;
|
|
74
|
+
*/
|
|
75
|
+
ChannelSendOutcome[ChannelSendOutcome["accepted"] = 1] = "accepted";
|
|
76
|
+
/**
|
|
77
|
+
* Transient failure; the platform retries in the background.
|
|
78
|
+
*
|
|
79
|
+
* @generated from enum value: queued = 2;
|
|
80
|
+
*/
|
|
81
|
+
ChannelSendOutcome[ChannelSendOutcome["queued"] = 2] = "queued";
|
|
82
|
+
/**
|
|
83
|
+
* Terminal refusal; detail says why (caps, recipient policy, provider
|
|
84
|
+
* policy such as an expired 24-hour window). The caller should adapt,
|
|
85
|
+
* not retry.
|
|
86
|
+
*
|
|
87
|
+
* @generated from enum value: refused = 3;
|
|
88
|
+
*/
|
|
89
|
+
ChannelSendOutcome[ChannelSendOutcome["refused"] = 3] = "refused";
|
|
90
|
+
})(ChannelSendOutcome || (ChannelSendOutcome = {}));
|
|
91
|
+
/**
|
|
92
|
+
* Describes the enum ai.stigmer.agentic.agentchannel.v1.ChannelSendOutcome.
|
|
93
|
+
*/
|
|
94
|
+
export const ChannelSendOutcomeSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_agentchannel_v1_message_io, 0);
|
|
95
|
+
//# sourceMappingURL=message_io_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message_io_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/message_io_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,uIAAuI;AACvI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAY,aAAa,CACtF,QAAQ,CAAC,k4DAAk4D,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAkD76D;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAwC,aAAa,CAC7F,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC;AAyCrE;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC,aAAa,CAC3F,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC;AAgBrE;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA4B,aAAa,CACrE,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC;AAwDrE;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC;AAsCrE;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAyC,aAAa,CAC/F,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC;AAwCrE;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAA0C,aAAa,CACjG,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC;AAiBrE;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,aAAa,CAC/E,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC;AAsFrE;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC;AAErE;;;;;;;;;;;GAWG;AACH,MAAM,CAAN,IAAY,kBA8BX;AA9BD,WAAY,kBAAkB;IAC5B;;;;OAIG;IACH,mHAAoC,CAAA;IAEpC;;;;OAIG;IACH,mEAAY,CAAA;IAEZ;;;;OAIG;IACH,+DAAU,CAAA;IAEV;;;;;;OAMG;IACH,iEAAW,CAAA;AACb,CAAC,EA9BW,kBAAkB,KAAlB,kBAAkB,QA8B7B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAgC,aAAa,CAChF,QAAQ,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChannelMessageQueryController serves runtime reads that support
|
|
3
|
+
* business-initiated messaging on agent channels.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
* proactive-messaging DD-003 D6: the query sibling of
|
|
7
|
+
* ChannelMessageCommandController — runtime messaging traffic (the send
|
|
8
|
+
* and its supporting reads) stays off the resource CRUD surface, the
|
|
9
|
+
* datastore-domain split applied consistently.
|
|
10
|
+
*
|
|
11
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.ChannelMessageQueryController
|
|
12
|
+
*/
|
|
13
|
+
export declare const ChannelMessageQueryController: {
|
|
14
|
+
readonly typeName: "ai.stigmer.agentic.agentchannel.v1.ChannelMessageQueryController";
|
|
15
|
+
readonly methods: {
|
|
16
|
+
/**
|
|
17
|
+
* List the message templates available on an agent channel.
|
|
18
|
+
*
|
|
19
|
+
* Read live from the channel provider's registry (WhatsApp: the
|
|
20
|
+
* WABA's templates), lightly cached. The provider is the source of
|
|
21
|
+
* truth; entries carry its vocabulary verbatim.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
* DD-003 D6. Same in-handler token-class reach as sendMessage (DD-002
|
|
25
|
+
* D2/D4): sandbox tokens resolve through the serving channel, direct
|
|
26
|
+
* principals through channel visibility; fail closed. The WABA id is
|
|
27
|
+
* derived from the channel's phone_number_id on demand and cached —
|
|
28
|
+
* never stored (DD-003 D3). A token missing the management scope
|
|
29
|
+
* degrades this read only, never sends (DD-003 D7, Meta error 200 →
|
|
30
|
+
* FAILED_PRECONDITION pointing at token regeneration). Cloud-first
|
|
31
|
+
* runtime: the OSS edition returns FAILED_PRECONDITION (decision 001
|
|
32
|
+
* D-g posture).
|
|
33
|
+
*
|
|
34
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.ChannelMessageQueryController.listTemplates
|
|
35
|
+
*/
|
|
36
|
+
readonly listTemplates: {
|
|
37
|
+
readonly name: "listTemplates";
|
|
38
|
+
readonly I: any;
|
|
39
|
+
readonly O: any;
|
|
40
|
+
readonly kind: any;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
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/message_query.proto (package ai.stigmer.agentic.agentchannel.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { ChannelTemplates, ListChannelTemplatesInput } from "./message_io_pbjs";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* ChannelMessageQueryController serves runtime reads that support
|
|
9
|
+
* business-initiated messaging on agent channels.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
* proactive-messaging DD-003 D6: the query sibling of
|
|
13
|
+
* ChannelMessageCommandController — runtime messaging traffic (the send
|
|
14
|
+
* and its supporting reads) stays off the resource CRUD surface, the
|
|
15
|
+
* datastore-domain split applied consistently.
|
|
16
|
+
*
|
|
17
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.ChannelMessageQueryController
|
|
18
|
+
*/
|
|
19
|
+
export const ChannelMessageQueryController = {
|
|
20
|
+
typeName: "ai.stigmer.agentic.agentchannel.v1.ChannelMessageQueryController",
|
|
21
|
+
methods: {
|
|
22
|
+
/**
|
|
23
|
+
* List the message templates available on an agent channel.
|
|
24
|
+
*
|
|
25
|
+
* Read live from the channel provider's registry (WhatsApp: the
|
|
26
|
+
* WABA's templates), lightly cached. The provider is the source of
|
|
27
|
+
* truth; entries carry its vocabulary verbatim.
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
* DD-003 D6. Same in-handler token-class reach as sendMessage (DD-002
|
|
31
|
+
* D2/D4): sandbox tokens resolve through the serving channel, direct
|
|
32
|
+
* principals through channel visibility; fail closed. The WABA id is
|
|
33
|
+
* derived from the channel's phone_number_id on demand and cached —
|
|
34
|
+
* never stored (DD-003 D3). A token missing the management scope
|
|
35
|
+
* degrades this read only, never sends (DD-003 D7, Meta error 200 →
|
|
36
|
+
* FAILED_PRECONDITION pointing at token regeneration). Cloud-first
|
|
37
|
+
* runtime: the OSS edition returns FAILED_PRECONDITION (decision 001
|
|
38
|
+
* D-g posture).
|
|
39
|
+
*
|
|
40
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.ChannelMessageQueryController.listTemplates
|
|
41
|
+
*/
|
|
42
|
+
listTemplates: {
|
|
43
|
+
name: "listTemplates",
|
|
44
|
+
I: ListChannelTemplatesInput,
|
|
45
|
+
O: ChannelTemplates,
|
|
46
|
+
kind: MethodKind.Unary,
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=message_query_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message_query_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/message_query_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,0IAA0I;AAC1I,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,QAAQ,EAAE,kEAAkE;IAC5E,OAAO,EAAE;QACP;;;;;;;;;;;;;;;;;;;WAmBG;QACH,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,CAAC,EAAE,yBAAyB;YAC5B,CAAC,EAAE,gBAAgB;YACnB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { ChannelTemplatesSchema, ListChannelTemplatesInputSchema } from "./message_io_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/message_query.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_ai_stigmer_agentic_agentchannel_v1_message_query: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* ChannelMessageQueryController serves runtime reads that support
|
|
9
|
+
* business-initiated messaging on agent channels.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
* proactive-messaging DD-003 D6: the query sibling of
|
|
13
|
+
* ChannelMessageCommandController — runtime messaging traffic (the send
|
|
14
|
+
* and its supporting reads) stays off the resource CRUD surface, the
|
|
15
|
+
* datastore-domain split applied consistently.
|
|
16
|
+
*
|
|
17
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.ChannelMessageQueryController
|
|
18
|
+
*/
|
|
19
|
+
export declare const ChannelMessageQueryController: GenService<{
|
|
20
|
+
/**
|
|
21
|
+
* List the message templates available on an agent channel.
|
|
22
|
+
*
|
|
23
|
+
* Read live from the channel provider's registry (WhatsApp: the
|
|
24
|
+
* WABA's templates), lightly cached. The provider is the source of
|
|
25
|
+
* truth; entries carry its vocabulary verbatim.
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
* DD-003 D6. Same in-handler token-class reach as sendMessage (DD-002
|
|
29
|
+
* D2/D4): sandbox tokens resolve through the serving channel, direct
|
|
30
|
+
* principals through channel visibility; fail closed. The WABA id is
|
|
31
|
+
* derived from the channel's phone_number_id on demand and cached —
|
|
32
|
+
* never stored (DD-003 D3). A token missing the management scope
|
|
33
|
+
* degrades this read only, never sends (DD-003 D7, Meta error 200 →
|
|
34
|
+
* FAILED_PRECONDITION pointing at token regeneration). Cloud-first
|
|
35
|
+
* runtime: the OSS edition returns FAILED_PRECONDITION (decision 001
|
|
36
|
+
* D-g posture).
|
|
37
|
+
*
|
|
38
|
+
* @generated from rpc ai.stigmer.agentic.agentchannel.v1.ChannelMessageQueryController.listTemplates
|
|
39
|
+
*/
|
|
40
|
+
listTemplates: {
|
|
41
|
+
methodKind: "unary";
|
|
42
|
+
input: typeof ListChannelTemplatesInputSchema;
|
|
43
|
+
output: typeof ChannelTemplatesSchema;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
@@ -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/message_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_message_io } from "./message_io_pb.js";
|
|
6
|
+
import { file_ai_stigmer_commons_apiresource_rpc_service_options } from "../../../commons/apiresource/rpc_service_options_pb.js";
|
|
7
|
+
import { file_ai_stigmer_commons_rpc_method_options } from "../../../commons/rpc/method_options_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/message_query.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_ai_stigmer_agentic_agentchannel_v1_message_query = /*@__PURE__*/ fileDesc("CjZhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL21lc3NhZ2VfcXVlcnkucHJvdG8SImFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEysgEKHUNoYW5uZWxNZXNzYWdlUXVlcnlDb250cm9sbGVyEooBCg1saXN0VGVtcGxhdGVzEj0uYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5MaXN0Q2hhbm5lbFRlbXBsYXRlc0lucHV0GjQuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5DaGFubmVsVGVtcGxhdGVzIgTQuBgBGgSg/ysvYgZwcm90bzM", [file_ai_stigmer_agentic_agentchannel_v1_message_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
|
|
12
|
+
/**
|
|
13
|
+
* ChannelMessageQueryController serves runtime reads that support
|
|
14
|
+
* business-initiated messaging on agent channels.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
* proactive-messaging DD-003 D6: the query sibling of
|
|
18
|
+
* ChannelMessageCommandController — runtime messaging traffic (the send
|
|
19
|
+
* and its supporting reads) stays off the resource CRUD surface, the
|
|
20
|
+
* datastore-domain split applied consistently.
|
|
21
|
+
*
|
|
22
|
+
* @generated from service ai.stigmer.agentic.agentchannel.v1.ChannelMessageQueryController
|
|
23
|
+
*/
|
|
24
|
+
export const ChannelMessageQueryController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_agentic_agentchannel_v1_message_query, 0);
|
|
25
|
+
//# sourceMappingURL=message_query_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message_query_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/message_query_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,0IAA0I;AAC1I,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,kDAAkD,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,qDAAqD,GAAY,aAAa,CACzF,QAAQ,CAAC,yXAAyX,EAAE,CAAC,kDAAkD,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAEjiB;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,6BAA6B,GA0BrC,aAAa,CAChB,WAAW,CAAC,qDAAqD,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { ChannelDeliveryStatus } from "./delivery_pb.js";
|
|
3
|
+
import type { ChannelOutboundPayload } from "./message_io_pb.js";
|
|
4
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/outbound.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_ai_stigmer_agentic_agentchannel_v1_outbound: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* ChannelOutboundMessage tracks the delivery of one business-initiated
|
|
12
|
+
* message to one external recipient on an agent channel.
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
* Infrastructure-only — no kind, no apiVersion, no CRUD RPCs, no FGA (the
|
|
16
|
+
* ChannelDelivery posture). The proactive sibling of ChannelDelivery
|
|
17
|
+
* (proactive-messaging DD-002 D1, amended by DD-004): its own claim/lease
|
|
18
|
+
* store, sharing the reply lane's idiom but never its table. The row is
|
|
19
|
+
* written by the send handler BEFORE any provider I/O — it is
|
|
20
|
+
* simultaneously the audit trail, the rate-cap ledger, the idempotency
|
|
21
|
+
* anchor for delivery retries, and (via provider_message_id) the future
|
|
22
|
+
* receipt-correlation target. Attempted once inline by the send RPC;
|
|
23
|
+
* attempts 2..N belong to the outbound sweep. Reuses ChannelDeliveryStatus
|
|
24
|
+
* (proto3 enum values are package-scoped; a twin enum would not compile)
|
|
25
|
+
* and carries NO provider-context arm: `recipient` is first-class and the
|
|
26
|
+
* sender re-reads the channel per attempt for provider facts such as the
|
|
27
|
+
* WhatsApp phone_number_id (DD-004 pinned behavior — a stored copy could
|
|
28
|
+
* drift).
|
|
29
|
+
*
|
|
30
|
+
* @generated from message ai.stigmer.agentic.agentchannel.v1.ChannelOutboundMessage
|
|
31
|
+
*/
|
|
32
|
+
export type ChannelOutboundMessage = Message<"ai.stigmer.agentic.agentchannel.v1.ChannelOutboundMessage"> & {
|
|
33
|
+
/**
|
|
34
|
+
* Unique outbound message identifier.
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string outbound_message_id = 1;
|
|
37
|
+
*/
|
|
38
|
+
outboundMessageId: string;
|
|
39
|
+
/**
|
|
40
|
+
* AgentChannel connection this message sends through.
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: string agent_channel_id = 2;
|
|
43
|
+
*/
|
|
44
|
+
agentChannelId: string;
|
|
45
|
+
/**
|
|
46
|
+
* Organization that owns the connection (billing org).
|
|
47
|
+
* Denormalized from the channel so sweep/cap paths never join.
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: string org = 3;
|
|
50
|
+
*/
|
|
51
|
+
org: string;
|
|
52
|
+
/**
|
|
53
|
+
* Session of the originating agent run; empty for direct operator
|
|
54
|
+
* sends, which have no session.
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
* DD-004 S-1: the per-run cap keys on session (the sandbox token
|
|
58
|
+
* carries session_id, never an execution id), so this replaces
|
|
59
|
+
* DD-002's sketched execution_id.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: string session_id = 4;
|
|
62
|
+
*/
|
|
63
|
+
sessionId: string;
|
|
64
|
+
/**
|
|
65
|
+
* How the send was authorized (DD-002 D9's surface-aware policy).
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.ChannelOutboundOrigin origin = 5;
|
|
68
|
+
*/
|
|
69
|
+
origin: ChannelOutboundOrigin;
|
|
70
|
+
/**
|
|
71
|
+
* External recipient key on the channel's provider (WhatsApp: wa_id).
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: string recipient = 6;
|
|
74
|
+
*/
|
|
75
|
+
recipient: string;
|
|
76
|
+
/**
|
|
77
|
+
* Typed message content, verbatim as accepted from the caller.
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.ChannelOutboundPayload payload = 7;
|
|
80
|
+
*/
|
|
81
|
+
payload?: ChannelOutboundPayload;
|
|
82
|
+
/**
|
|
83
|
+
* Delivery lifecycle status (the ChannelDelivery vocabulary).
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: ai.stigmer.agentic.agentchannel.v1.ChannelDeliveryStatus status = 8;
|
|
86
|
+
*/
|
|
87
|
+
status: ChannelDeliveryStatus;
|
|
88
|
+
/**
|
|
89
|
+
* Number of delivery attempts made.
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: int32 attempts = 9;
|
|
92
|
+
*/
|
|
93
|
+
attempts: number;
|
|
94
|
+
/**
|
|
95
|
+
* Last delivery error, empty unless a delivery attempt failed.
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: string last_error = 10;
|
|
98
|
+
*/
|
|
99
|
+
lastError: string;
|
|
100
|
+
/**
|
|
101
|
+
* Idempotency key for outbound provider calls (stable across retries).
|
|
102
|
+
*
|
|
103
|
+
* @generated from field: string idempotency_key = 11;
|
|
104
|
+
*/
|
|
105
|
+
idempotencyKey: string;
|
|
106
|
+
/**
|
|
107
|
+
* Provider message id once the provider accepted (WhatsApp: wamid).
|
|
108
|
+
*
|
|
109
|
+
* @internal
|
|
110
|
+
* Uniquely indexed where present — the DD-002 D10 statuses seam
|
|
111
|
+
* correlates delivery receipts by this value when it lands (slice 2b).
|
|
112
|
+
*
|
|
113
|
+
* @generated from field: string provider_message_id = 12;
|
|
114
|
+
*/
|
|
115
|
+
providerMessageId: string;
|
|
116
|
+
/**
|
|
117
|
+
* When the outbound record was created (send-RPC time).
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: google.protobuf.Timestamp created_at = 13;
|
|
120
|
+
*/
|
|
121
|
+
createdAt?: Timestamp;
|
|
122
|
+
/**
|
|
123
|
+
* When the record was last transitioned.
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 14;
|
|
126
|
+
*/
|
|
127
|
+
updatedAt?: Timestamp;
|
|
128
|
+
/**
|
|
129
|
+
* Earliest time of the next delivery attempt (backoff schedule).
|
|
130
|
+
*
|
|
131
|
+
* @generated from field: google.protobuf.Timestamp next_attempt_at = 15;
|
|
132
|
+
*/
|
|
133
|
+
nextAttemptAt?: Timestamp;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.ChannelOutboundMessage.
|
|
137
|
+
* Use `create(ChannelOutboundMessageSchema)` to create a new message.
|
|
138
|
+
*/
|
|
139
|
+
export declare const ChannelOutboundMessageSchema: GenMessage<ChannelOutboundMessage>;
|
|
140
|
+
/**
|
|
141
|
+
* ChannelOutboundOrigin records which trust context authorized a
|
|
142
|
+
* business-initiated send.
|
|
143
|
+
*
|
|
144
|
+
* @internal
|
|
145
|
+
* DD-002 D9: the two calling contexts carry different trust levels, so
|
|
146
|
+
* recipient policy is surface-aware — channel-conversation sends are
|
|
147
|
+
* bounded to known senders, operator-authored sends to caps. Stamped by
|
|
148
|
+
* the reach resolver (its single writer) for audit; never caller-supplied.
|
|
149
|
+
*
|
|
150
|
+
* @generated from enum ai.stigmer.agentic.agentchannel.v1.ChannelOutboundOrigin
|
|
151
|
+
*/
|
|
152
|
+
export declare enum ChannelOutboundOrigin {
|
|
153
|
+
/**
|
|
154
|
+
* Default value when no origin is set.
|
|
155
|
+
*
|
|
156
|
+
* @generated from enum value: channel_outbound_origin_unspecified = 0;
|
|
157
|
+
*/
|
|
158
|
+
channel_outbound_origin_unspecified = 0,
|
|
159
|
+
/**
|
|
160
|
+
* The send came from an agent run created by an inbound channel
|
|
161
|
+
* message; the recipient must be a known sender on the channel.
|
|
162
|
+
*
|
|
163
|
+
* @generated from enum value: channel_conversation = 1;
|
|
164
|
+
*/
|
|
165
|
+
channel_conversation = 1,
|
|
166
|
+
/**
|
|
167
|
+
* The send was authored by an operator (console, CLI, SDK, scheduled
|
|
168
|
+
* run); any recipient, bounded by caps.
|
|
169
|
+
*
|
|
170
|
+
* @generated from enum value: operator = 2;
|
|
171
|
+
*/
|
|
172
|
+
operator = 2
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Describes the enum ai.stigmer.agentic.agentchannel.v1.ChannelOutboundOrigin.
|
|
176
|
+
*/
|
|
177
|
+
export declare const ChannelOutboundOriginSchema: GenEnum<ChannelOutboundOrigin>;
|
|
@@ -0,0 +1,56 @@
|
|
|
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/outbound.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_agentic_agentchannel_v1_delivery } from "./delivery_pb.js";
|
|
6
|
+
import { file_ai_stigmer_agentic_agentchannel_v1_message_io } from "./message_io_pb.js";
|
|
7
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file ai/stigmer/agentic/agentchannel/v1/outbound.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_ai_stigmer_agentic_agentchannel_v1_outbound = /*@__PURE__*/ fileDesc("CjFhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL291dGJvdW5kLnByb3RvEiJhaS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxItcEChZDaGFubmVsT3V0Ym91bmRNZXNzYWdlEhsKE291dGJvdW5kX21lc3NhZ2VfaWQYASABKAkSGAoQYWdlbnRfY2hhbm5lbF9pZBgCIAEoCRILCgNvcmcYAyABKAkSEgoKc2Vzc2lvbl9pZBgEIAEoCRJJCgZvcmlnaW4YBSABKA4yOS5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkNoYW5uZWxPdXRib3VuZE9yaWdpbhIRCglyZWNpcGllbnQYBiABKAkSSwoHcGF5bG9hZBgHIAEoCzI6LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQ2hhbm5lbE91dGJvdW5kUGF5bG9hZBJJCgZzdGF0dXMYCCABKA4yOS5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkNoYW5uZWxEZWxpdmVyeVN0YXR1cxIQCghhdHRlbXB0cxgJIAEoBRISCgpsYXN0X2Vycm9yGAogASgJEhcKD2lkZW1wb3RlbmN5X2tleRgLIAEoCRIbChNwcm92aWRlcl9tZXNzYWdlX2lkGAwgASgJEi4KCmNyZWF0ZWRfYXQYDSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYDiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjMKD25leHRfYXR0ZW1wdF9hdBgPIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAqaAoVQ2hhbm5lbE91dGJvdW5kT3JpZ2luEicKI2NoYW5uZWxfb3V0Ym91bmRfb3JpZ2luX3Vuc3BlY2lmaWVkEAASGAoUY2hhbm5lbF9jb252ZXJzYXRpb24QARIMCghvcGVyYXRvchACYgZwcm90bzM", [file_ai_stigmer_agentic_agentchannel_v1_delivery, file_ai_stigmer_agentic_agentchannel_v1_message_io, file_google_protobuf_timestamp]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message ai.stigmer.agentic.agentchannel.v1.ChannelOutboundMessage.
|
|
14
|
+
* Use `create(ChannelOutboundMessageSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const ChannelOutboundMessageSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentchannel_v1_outbound, 0);
|
|
17
|
+
/**
|
|
18
|
+
* ChannelOutboundOrigin records which trust context authorized a
|
|
19
|
+
* business-initiated send.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
* DD-002 D9: the two calling contexts carry different trust levels, so
|
|
23
|
+
* recipient policy is surface-aware — channel-conversation sends are
|
|
24
|
+
* bounded to known senders, operator-authored sends to caps. Stamped by
|
|
25
|
+
* the reach resolver (its single writer) for audit; never caller-supplied.
|
|
26
|
+
*
|
|
27
|
+
* @generated from enum ai.stigmer.agentic.agentchannel.v1.ChannelOutboundOrigin
|
|
28
|
+
*/
|
|
29
|
+
export var ChannelOutboundOrigin;
|
|
30
|
+
(function (ChannelOutboundOrigin) {
|
|
31
|
+
/**
|
|
32
|
+
* Default value when no origin is set.
|
|
33
|
+
*
|
|
34
|
+
* @generated from enum value: channel_outbound_origin_unspecified = 0;
|
|
35
|
+
*/
|
|
36
|
+
ChannelOutboundOrigin[ChannelOutboundOrigin["channel_outbound_origin_unspecified"] = 0] = "channel_outbound_origin_unspecified";
|
|
37
|
+
/**
|
|
38
|
+
* The send came from an agent run created by an inbound channel
|
|
39
|
+
* message; the recipient must be a known sender on the channel.
|
|
40
|
+
*
|
|
41
|
+
* @generated from enum value: channel_conversation = 1;
|
|
42
|
+
*/
|
|
43
|
+
ChannelOutboundOrigin[ChannelOutboundOrigin["channel_conversation"] = 1] = "channel_conversation";
|
|
44
|
+
/**
|
|
45
|
+
* The send was authored by an operator (console, CLI, SDK, scheduled
|
|
46
|
+
* run); any recipient, bounded by caps.
|
|
47
|
+
*
|
|
48
|
+
* @generated from enum value: operator = 2;
|
|
49
|
+
*/
|
|
50
|
+
ChannelOutboundOrigin[ChannelOutboundOrigin["operator"] = 2] = "operator";
|
|
51
|
+
})(ChannelOutboundOrigin || (ChannelOutboundOrigin = {}));
|
|
52
|
+
/**
|
|
53
|
+
* Describes the enum ai.stigmer.agentic.agentchannel.v1.ChannelOutboundOrigin.
|
|
54
|
+
*/
|
|
55
|
+
export const ChannelOutboundOriginSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_agentchannel_v1_outbound, 0);
|
|
56
|
+
//# sourceMappingURL=outbound_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outbound_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentchannel/v1/outbound_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,qIAAqI;AACrI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,gDAAgD,EAAE,MAAM,kBAAkB,CAAC;AAEpF,OAAO,EAAE,kDAAkD,EAAE,MAAM,oBAAoB,CAAC;AAExF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,gDAAgD,GAAY,aAAa,CACpF,QAAQ,CAAC,ijCAAijC,EAAE,CAAC,gDAAgD,EAAE,kDAAkD,EAAE,8BAA8B,CAAC,CAAC,CAAC;AA8ItsC;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC,aAAa,CAC3F,WAAW,CAAC,gDAAgD,EAAE,CAAC,CAAC,CAAC;AAEnE;;;;;;;;;;;GAWG;AACH,MAAM,CAAN,IAAY,qBAuBX;AAvBD,WAAY,qBAAqB;IAC/B;;;;OAIG;IACH,+HAAuC,CAAA;IAEvC;;;;;OAKG;IACH,iGAAwB,CAAA;IAExB;;;;;OAKG;IACH,yEAAY,CAAA;AACd,CAAC,EAvBW,qBAAqB,KAArB,qBAAqB,QAuBhC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAmC,aAAa,CACtF,QAAQ,CAAC,gDAAgD,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -133,6 +133,24 @@ export type AgentChannelSpec = Message<"ai.stigmer.agentic.agentchannel.v1.Agent
|
|
|
133
133
|
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceReference app_ref = 5;
|
|
134
134
|
*/
|
|
135
135
|
appRef?: ApiResourceReference;
|
|
136
|
+
/**
|
|
137
|
+
* Whether the serving agent may send business-initiated (proactive)
|
|
138
|
+
* messages on this channel. Off by default: a channel is reply-only
|
|
139
|
+
* until its owner grants this.
|
|
140
|
+
*
|
|
141
|
+
* @internal
|
|
142
|
+
* proactive-messaging DD-002 D5, the DD-014 two-consents operator
|
|
143
|
+
* lever, living where `enabled` lives (the surface owns the grant).
|
|
144
|
+
* Existing channels keep reply-only behavior on deploy. Tuning knobs
|
|
145
|
+
* (rate caps) stay platform config (DD-006 posture); what owners
|
|
146
|
+
* control is this grant. The runner attaches the send_channel_message
|
|
147
|
+
* tool only when getByAgent finds an installed + enabled channel with
|
|
148
|
+
* this flag set — an agent with no proactive channel never sees the
|
|
149
|
+
* tool.
|
|
150
|
+
*
|
|
151
|
+
* @generated from field: bool proactive_messaging_enabled = 7;
|
|
152
|
+
*/
|
|
153
|
+
proactiveMessagingEnabled: boolean;
|
|
136
154
|
};
|
|
137
155
|
/**
|
|
138
156
|
* Describes the message ai.stigmer.agentic.agentchannel.v1.AgentChannelSpec.
|
|
@@ -8,7 +8,7 @@ import { file_buf_validate_validate } from "../../../../../buf/validate/validate
|
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file ai/stigmer/agentic/agentchannel/v1/spec.proto.
|
|
10
10
|
*/
|
|
11
|
-
export const file_ai_stigmer_agentic_agentchannel_v1_spec = /*@__PURE__*/ fileDesc("
|
|
11
|
+
export const file_ai_stigmer_agentic_agentchannel_v1_spec = /*@__PURE__*/ fileDesc("Ci1haS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL3NwZWMucHJvdG8SImFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEiswYKEEFnZW50Q2hhbm5lbFNwZWMSrAEKCWFnZW50X3JlZhgBIAEoCzI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZUJjukhcugFWCg5hZ2VudF9yZWYua2luZBIzYWdlbnRfcmVmIG11c3QgcmVmZXJlbmNlIGEgcmVzb3VyY2Ugd2l0aCBraW5kPWFnZW50Gg90aGlzLmtpbmQgPT0gNDDIAQHghSwoEg8KB2VuYWJsZWQYAiABKAgSRwoFc2xhY2sYAyABKAsyNi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLlNsYWNrQ2hhbm5lbENvbmZpZ0gAEk0KCHdoYXRzYXBwGAYgASgLMjkuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5XaGF0c0FwcENoYW5uZWxDb25maWdIABLIAQoQZW52aXJvbm1lbnRfcmVmcxgEIAMoCzI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZUJ4ukhxkgFuImy6AWkKFWVudmlyb25tZW50X3JlZnMua2luZBI/ZW52aXJvbm1lbnRfcmVmcyBtdXN0IHJlZmVyZW5jZSByZXNvdXJjZXMgd2l0aCBraW5kPWVudmlyb25tZW50Gg90aGlzLmtpbmQgPT0gNTPghSw1ErwBCgdhcHBfcmVmGAUgASgLMjQuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlUmVmZXJlbmNlQnW6SG66AWsKDGFwcF9yZWYua2luZBI3YXBwX3JlZiBtdXN0IHJlZmVyZW5jZSBhIHJlc291cmNlIHdpdGgga2luZD1jaGFubmVsX2FwcBoidGhpcy5zbHVnID09ICcnIHx8IHRoaXMua2luZCA9PSA0OOCFLDASIwobcHJvYWN0aXZlX21lc3NhZ2luZ19lbmFibGVkGAcgASgIQhgKD3Byb3ZpZGVyX2NvbmZpZxIFukgCCAEiFAoSU2xhY2tDaGFubmVsQ29uZmlnIjkKFVdoYXRzQXBwQ2hhbm5lbENvbmZpZxIgCg9waG9uZV9udW1iZXJfaWQYASABKAlCB7pIBHICEAFiBnByb3RvMw", [file_ai_stigmer_commons_apiresource_field_options, file_ai_stigmer_commons_apiresource_io, file_buf_validate_validate]);
|
|
12
12
|
/**
|
|
13
13
|
* Describes the message ai.stigmer.agentic.agentchannel.v1.AgentChannelSpec.
|
|
14
14
|
* Use `create(AgentChannelSpecSchema)` to create a new message.
|
|
@@ -1 +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,
|
|
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,gzCAAgzC,EAAE,CAAC,iDAAiD,EAAE,sCAAsC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAwJt7C;;;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;AAoC/D;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsC,aAAa,CACzF,WAAW,CAAC,4CAA4C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -102,9 +102,9 @@ export type PlatformClientSpec = Message<"ai.stigmer.iam.platformclient.v1.Platf
|
|
|
102
102
|
* called with a user_id that has no existing account.
|
|
103
103
|
*
|
|
104
104
|
* When false (default), the platform must explicitly create identity accounts
|
|
105
|
-
* before minting tokens. mintUserToken returns
|
|
106
|
-
* not exist. This gives platforms full control over which users can
|
|
107
|
-
* Stigmer resources.
|
|
105
|
+
* before minting tokens. mintUserToken returns FAILED_PRECONDITION if the
|
|
106
|
+
* user does not exist. This gives platforms full control over which users can
|
|
107
|
+
* access Stigmer resources.
|
|
108
108
|
*
|
|
109
109
|
* When true, Stigmer creates an IdentityAccount automatically on first
|
|
110
110
|
* encounter, using the user_email and user_name from the mintUserToken request
|
|
@@ -40,9 +40,12 @@ export declare const PlatformClientTokenController: {
|
|
|
40
40
|
*
|
|
41
41
|
* Error scenarios:
|
|
42
42
|
* - UNAUTHENTICATED: Invalid client_id or client_secret
|
|
43
|
-
* -
|
|
44
|
-
*
|
|
43
|
+
* - FAILED_PRECONDITION: user_id does not exist and auto_provision_accounts
|
|
44
|
+
* is false, or the PlatformClient secret has expired
|
|
45
45
|
* - PERMISSION_DENIED: Origin not in allowed_origins (when configured)
|
|
46
|
+
* - INTERNAL: Account provisioning could not be completed (for example, the
|
|
47
|
+
* auto_grant_on_org role grant failed). No partial account is left behind
|
|
48
|
+
* — the account is rolled back — so the request is safe to retry.
|
|
46
49
|
*
|
|
47
50
|
* @internal
|
|
48
51
|
* This RPC is public — no Bearer token is required. The caller authenticates
|
|
@@ -46,9 +46,12 @@ export const PlatformClientTokenController = {
|
|
|
46
46
|
*
|
|
47
47
|
* Error scenarios:
|
|
48
48
|
* - UNAUTHENTICATED: Invalid client_id or client_secret
|
|
49
|
-
* -
|
|
50
|
-
*
|
|
49
|
+
* - FAILED_PRECONDITION: user_id does not exist and auto_provision_accounts
|
|
50
|
+
* is false, or the PlatformClient secret has expired
|
|
51
51
|
* - PERMISSION_DENIED: Origin not in allowed_origins (when configured)
|
|
52
|
+
* - INTERNAL: Account provisioning could not be completed (for example, the
|
|
53
|
+
* auto_grant_on_org role grant failed). No partial account is left behind
|
|
54
|
+
* — the account is rolled back — so the request is safe to retry.
|
|
52
55
|
*
|
|
53
56
|
* @internal
|
|
54
57
|
* This RPC is public — no Bearer token is required. The caller authenticates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/platformclient/v1/token_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,8HAA8H;AAC9H,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1H,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,QAAQ,EAAE,gEAAgE;IAC1E,OAAO,EAAE;QACP
|
|
1
|
+
{"version":3,"file":"token_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/platformclient/v1/token_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,8HAA8H;AAC9H,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1H,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,QAAQ,EAAE,gEAAgE;IAC1E,OAAO,EAAE;QACP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgCG;QACH,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,qBAAqB;YACxB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;WAeG;QACH,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,CAAC,EAAE,qBAAqB;YACxB,CAAC,EAAE,sBAAsB;YACzB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -256,9 +256,12 @@ export declare const PlatformClientTokenController: GenService<{
|
|
|
256
256
|
*
|
|
257
257
|
* Error scenarios:
|
|
258
258
|
* - UNAUTHENTICATED: Invalid client_id or client_secret
|
|
259
|
-
* -
|
|
260
|
-
*
|
|
259
|
+
* - FAILED_PRECONDITION: user_id does not exist and auto_provision_accounts
|
|
260
|
+
* is false, or the PlatformClient secret has expired
|
|
261
261
|
* - PERMISSION_DENIED: Origin not in allowed_origins (when configured)
|
|
262
|
+
* - INTERNAL: Account provisioning could not be completed (for example, the
|
|
263
|
+
* auto_grant_on_org role grant failed). No partial account is left behind
|
|
264
|
+
* — the account is rolled back — so the request is safe to retry.
|
|
262
265
|
*
|
|
263
266
|
* @internal
|
|
264
267
|
* This RPC is public — no Bearer token is required. The caller authenticates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/platformclient/v1/token_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,8HAA8H;AAC9H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AACvG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAY,aAAa,CAC/E,QAAQ,CAAC,omDAAomD,EAAE,CAAC,0CAA0C,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAqE3rD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AA+B9D;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsC,aAAa,CACzF,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AA8E9D;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsC,aAAa,CACzF,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AAwC9D;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC,aAAa,CAC3F,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"token_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/platformclient/v1/token_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,8HAA8H;AAC9H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AACvG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAY,aAAa,CAC/E,QAAQ,CAAC,omDAAomD,EAAE,CAAC,0CAA0C,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAqE3rD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AA+B9D;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsC,aAAa,CACzF,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AA8E9D;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsC,aAAa,CACzF,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AAwC9D;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC,aAAa,CAC3F,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,6BAA6B,GA4DrC,aAAa,CAChB,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC"}
|