@stigmer/protos 3.5.2 → 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.
|
@@ -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"}
|