@stigmer/protos 3.2.3 → 3.3.0
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.d.ts +41 -0
- package/ai/stigmer/agentic/agent/v1/spec_pb.js +8 -3
- package/ai/stigmer/agentic/agent/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +17 -0
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentinstance/v1/spec_pb.d.ts +21 -0
- package/ai/stigmer/agentic/agentinstance/v1/spec_pb.js +1 -1
- package/ai/stigmer/agentic/agentinstance/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/agentic/datastore/v1/api_pb.d.ts +64 -0
- package/ai/stigmer/agentic/datastore/v1/api_pb.js +18 -0
- package/ai/stigmer/agentic/datastore/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/command_connect.d.ts +111 -0
- package/ai/stigmer/agentic/datastore/v1/command_connect.js +119 -0
- package/ai/stigmer/agentic/datastore/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/command_pb.d.ts +110 -0
- package/ai/stigmer/agentic/datastore/v1/command_pb.js +19 -0
- package/ai/stigmer/agentic/datastore/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/io_pb.d.ts +64 -0
- package/ai/stigmer/agentic/datastore/v1/io_pb.js +22 -0
- package/ai/stigmer/agentic/datastore/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/query_connect.d.ts +59 -0
- package/ai/stigmer/agentic/datastore/v1/query_connect.js +68 -0
- package/ai/stigmer/agentic/datastore/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/query_pb.d.ts +61 -0
- package/ai/stigmer/agentic/datastore/v1/query_pb.js +24 -0
- package/ai/stigmer/agentic/datastore/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/record_command_connect.d.ts +75 -0
- package/ai/stigmer/agentic/datastore/v1/record_command_connect.js +82 -0
- package/ai/stigmer/agentic/datastore/v1/record_command_connect.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/record_command_pb.d.ts +75 -0
- package/ai/stigmer/agentic/datastore/v1/record_command_pb.js +32 -0
- package/ai/stigmer/agentic/datastore/v1/record_command_pb.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/record_io_pb.d.ts +729 -0
- package/ai/stigmer/agentic/datastore/v1/record_io_pb.js +198 -0
- package/ai/stigmer/agentic/datastore/v1/record_io_pb.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/record_query_connect.d.ts +69 -0
- package/ai/stigmer/agentic/datastore/v1/record_query_connect.js +76 -0
- package/ai/stigmer/agentic/datastore/v1/record_query_connect.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/record_query_pb.d.ts +70 -0
- package/ai/stigmer/agentic/datastore/v1/record_query_pb.js +38 -0
- package/ai/stigmer/agentic/datastore/v1/record_query_pb.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/spec_pb.d.ts +680 -0
- package/ai/stigmer/agentic/datastore/v1/spec_pb.js +195 -0
- package/ai/stigmer/agentic/datastore/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/datastore/v1/status_pb.d.ts +159 -0
- package/ai/stigmer/agentic/datastore/v1/status_pb.js +93 -0
- package/ai/stigmer/agentic/datastore/v1/status_pb.js.map +1 -0
- package/ai/stigmer/agentic/session/v1/spec_pb.d.ts +18 -0
- package/ai/stigmer/agentic/session/v1/spec_pb.js +1 -1
- package/ai/stigmer/agentic/session/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/billing/v1/command_connect.d.ts +43 -0
- package/ai/stigmer/billing/v1/command_connect.js +46 -1
- package/ai/stigmer/billing/v1/command_connect.js.map +1 -1
- package/ai/stigmer/billing/v1/command_pb.d.ts +43 -1
- package/ai/stigmer/billing/v1/command_pb.js +3 -1
- package/ai/stigmer/billing/v1/command_pb.js.map +1 -1
- package/ai/stigmer/billing/v1/io_pb.d.ts +274 -0
- package/ai/stigmer/billing/v1/io_pb.js +44 -2
- package/ai/stigmer/billing/v1/io_pb.js.map +1 -1
- package/ai/stigmer/billing/v1/model_pricing_baseline_pb.d.ts +369 -0
- package/ai/stigmer/billing/v1/model_pricing_baseline_pb.js +79 -0
- package/ai/stigmer/billing/v1/model_pricing_baseline_pb.js.map +1 -0
- package/ai/stigmer/billing/v1/pricing_override_pb.d.ts +272 -0
- package/ai/stigmer/billing/v1/pricing_override_pb.js +116 -0
- package/ai/stigmer/billing/v1/pricing_override_pb.js.map +1 -0
- package/ai/stigmer/billing/v1/query_connect.d.ts +31 -0
- package/ai/stigmer/billing/v1/query_connect.js +32 -1
- package/ai/stigmer/billing/v1/query_connect.js.map +1 -1
- package/ai/stigmer/billing/v1/query_pb.d.ts +30 -1
- package/ai/stigmer/billing/v1/query_pb.js +1 -1
- package/ai/stigmer/billing/v1/query_pb.js.map +1 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +7 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +8 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
- package/ai/stigmer/iam/v1/enum_pb.d.ts +44 -1
- package/ai/stigmer/iam/v1/enum_pb.js +44 -1
- package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/platform/cursoraccount/v1/command_connect.d.ts +102 -0
- package/ai/stigmer/platform/cursoraccount/v1/command_connect.js +110 -0
- package/ai/stigmer/platform/cursoraccount/v1/command_connect.js.map +1 -0
- package/ai/stigmer/platform/cursoraccount/v1/command_pb.d.ts +100 -0
- package/ai/stigmer/platform/cursoraccount/v1/command_pb.js +32 -0
- package/ai/stigmer/platform/cursoraccount/v1/command_pb.js.map +1 -0
- package/ai/stigmer/platform/cursoraccount/v1/cursor_account_pb.d.ts +331 -0
- package/ai/stigmer/platform/cursoraccount/v1/cursor_account_pb.js +36 -0
- package/ai/stigmer/platform/cursoraccount/v1/cursor_account_pb.js.map +1 -0
- package/ai/stigmer/platform/cursoraccount/v1/io_pb.d.ts +332 -0
- package/ai/stigmer/platform/cursoraccount/v1/io_pb.js +110 -0
- package/ai/stigmer/platform/cursoraccount/v1/io_pb.js.map +1 -0
- package/ai/stigmer/platform/cursoraccount/v1/query_connect.d.ts +44 -0
- package/ai/stigmer/platform/cursoraccount/v1/query_connect.js +51 -0
- package/ai/stigmer/platform/cursoraccount/v1/query_connect.js.map +1 -0
- package/ai/stigmer/platform/cursoraccount/v1/query_pb.d.ts +45 -0
- package/ai/stigmer/platform/cursoraccount/v1/query_pb.js +25 -0
- package/ai/stigmer/platform/cursoraccount/v1/query_pb.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,680 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { ApiResourceRef } from "../../../iam/iampolicy/v1/spec_pb.js";
|
|
3
|
+
import type { Value } from "@bufbuild/protobuf/wkt";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ai/stigmer/agentic/datastore/v1/spec.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ai_stigmer_agentic_datastore_v1_spec: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* DatastoreSpec declares typed record collections with constraints and
|
|
11
|
+
* role-aware access grants.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
* The manifest is authoritative for structure, never for living data:
|
|
15
|
+
* schema changes sync on apply (additive-plus change matrix, gating),
|
|
16
|
+
* and records enter exclusively through the record RPCs — there is no
|
|
17
|
+
* seed path (DD-010 SD-5 removed seed_records; console, agent tools,
|
|
18
|
+
* and import scripts are the population surfaces). Structural limits
|
|
19
|
+
* here are v1 guardrails — raising a max_items later is a non-breaking
|
|
20
|
+
* change. Max datastores per org (25) cannot be expressed on this
|
|
21
|
+
* message; it is a domain validation constant in the create pipelines.
|
|
22
|
+
*
|
|
23
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.DatastoreSpec
|
|
24
|
+
*/
|
|
25
|
+
export type DatastoreSpec = Message<"ai.stigmer.agentic.datastore.v1.DatastoreSpec"> & {
|
|
26
|
+
/**
|
|
27
|
+
* Human-readable description of what this datastore holds.
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string description = 1;
|
|
30
|
+
*/
|
|
31
|
+
description: string;
|
|
32
|
+
/**
|
|
33
|
+
* IANA timezone (e.g. "Asia/Kolkata") for constraint evaluation.
|
|
34
|
+
*
|
|
35
|
+
* Bound as the constant `tz` in check and exists constraint
|
|
36
|
+
* expressions. Optional; when unset, expressions that reference `tz`
|
|
37
|
+
* are rejected at apply time.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
* IANA-name validity is domain validation (the proto layer cannot
|
|
41
|
+
* carry a timezone database).
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: string timezone = 2;
|
|
44
|
+
*/
|
|
45
|
+
timezone: string;
|
|
46
|
+
/**
|
|
47
|
+
* Record-layer authorization: roles, subject bindings, and the
|
|
48
|
+
* default role for unbound callers.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: ai.stigmer.agentic.datastore.v1.DatastoreAuthorization authorization = 3;
|
|
51
|
+
*/
|
|
52
|
+
authorization?: DatastoreAuthorization;
|
|
53
|
+
/**
|
|
54
|
+
* Record collections declared by this datastore.
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
* Collection-name uniqueness within the datastore is domain
|
|
58
|
+
* validation (protovalidate CEL has no portable uniqueness check
|
|
59
|
+
* over message lists).
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.CollectionDeclaration collections = 4;
|
|
62
|
+
*/
|
|
63
|
+
collections: CollectionDeclaration[];
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.DatastoreSpec.
|
|
67
|
+
* Use `create(DatastoreSpecSchema)` to create a new message.
|
|
68
|
+
*/
|
|
69
|
+
export declare const DatastoreSpecSchema: GenMessage<DatastoreSpec>;
|
|
70
|
+
/**
|
|
71
|
+
* CollectionDeclaration is a named collection of records with typed
|
|
72
|
+
* fields, constraints, and access grants.
|
|
73
|
+
*
|
|
74
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.CollectionDeclaration
|
|
75
|
+
*/
|
|
76
|
+
export type CollectionDeclaration = Message<"ai.stigmer.agentic.datastore.v1.CollectionDeclaration"> & {
|
|
77
|
+
/**
|
|
78
|
+
* Collection name, unique within the datastore.
|
|
79
|
+
*
|
|
80
|
+
* Format: lowercase snake_case (e.g. "bookings", "schedule_exceptions").
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: string name = 1;
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
/**
|
|
86
|
+
* Human-readable description of what records in this collection represent.
|
|
87
|
+
*
|
|
88
|
+
* @generated from field: string description = 2;
|
|
89
|
+
*/
|
|
90
|
+
description: string;
|
|
91
|
+
/**
|
|
92
|
+
* Typed field declarations for records in this collection.
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.FieldDeclaration fields = 3;
|
|
95
|
+
*/
|
|
96
|
+
fields: FieldDeclaration[];
|
|
97
|
+
/**
|
|
98
|
+
* Uniqueness constraints, enforced by substrate indexes.
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.UniqueConstraint uniques = 4;
|
|
101
|
+
*/
|
|
102
|
+
uniques: UniqueConstraint[];
|
|
103
|
+
/**
|
|
104
|
+
* Single-record check constraints, evaluated on every insert and update.
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.CheckConstraint checks = 5;
|
|
107
|
+
*/
|
|
108
|
+
checks: CheckConstraint[];
|
|
109
|
+
/**
|
|
110
|
+
* Cross-collection constraints requiring a matching record to exist.
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.ExistsConstraint exists = 6;
|
|
113
|
+
*/
|
|
114
|
+
exists: ExistsConstraint[];
|
|
115
|
+
/**
|
|
116
|
+
* Cross-collection constraints requiring no matching record to exist.
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.ExistsConstraint not_exists = 7;
|
|
119
|
+
*/
|
|
120
|
+
notExists: ExistsConstraint[];
|
|
121
|
+
/**
|
|
122
|
+
* Per-role access grants for records in this collection.
|
|
123
|
+
*
|
|
124
|
+
* Deny by default: a role with no grant on a collection has no access
|
|
125
|
+
* to it.
|
|
126
|
+
*
|
|
127
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.DatastoreGrant grants = 8;
|
|
128
|
+
*/
|
|
129
|
+
grants: DatastoreGrant[];
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.CollectionDeclaration.
|
|
133
|
+
* Use `create(CollectionDeclarationSchema)` to create a new message.
|
|
134
|
+
*/
|
|
135
|
+
export declare const CollectionDeclarationSchema: GenMessage<CollectionDeclaration>;
|
|
136
|
+
/**
|
|
137
|
+
* FieldDeclaration is a typed field on a collection's records.
|
|
138
|
+
*
|
|
139
|
+
* @internal
|
|
140
|
+
* System fields (id, created_at, updated_at, created_by) are not
|
|
141
|
+
* declared — they are part of the record envelope, server-stamped, and
|
|
142
|
+
* never caller-writable. Their names are reserved below, plus `org`
|
|
143
|
+
* (the stamped tenancy column in cloud record tables) and `partition`
|
|
144
|
+
* (the DD-010 data-partition label: ambient scope set by the server,
|
|
145
|
+
* never data — not declarable, not in payloads, not filterable).
|
|
146
|
+
*
|
|
147
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.FieldDeclaration
|
|
148
|
+
*/
|
|
149
|
+
export type FieldDeclaration = Message<"ai.stigmer.agentic.datastore.v1.FieldDeclaration"> & {
|
|
150
|
+
/**
|
|
151
|
+
* Field name, unique within the collection.
|
|
152
|
+
*
|
|
153
|
+
* Format: lowercase snake_case. The record envelope's system field
|
|
154
|
+
* names (id, created_at, updated_at, created_by), `org`, and
|
|
155
|
+
* `partition` are reserved.
|
|
156
|
+
*
|
|
157
|
+
* @generated from field: string name = 1;
|
|
158
|
+
*/
|
|
159
|
+
name: string;
|
|
160
|
+
/**
|
|
161
|
+
* Value type for this field.
|
|
162
|
+
*
|
|
163
|
+
* @generated from field: ai.stigmer.agentic.datastore.v1.FieldType type = 2;
|
|
164
|
+
*/
|
|
165
|
+
type: FieldType;
|
|
166
|
+
/**
|
|
167
|
+
* Whether a value must be present on every record.
|
|
168
|
+
*
|
|
169
|
+
* Absent optional fields evaluate as null in constraint expressions.
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: bool required = 3;
|
|
172
|
+
*/
|
|
173
|
+
required: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Default value applied when the field is absent on insert.
|
|
176
|
+
*
|
|
177
|
+
* @internal
|
|
178
|
+
* Type compatibility between the default and the declared type is
|
|
179
|
+
* domain validation (google.protobuf.Value is untyped here).
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: google.protobuf.Value default = 4;
|
|
182
|
+
*/
|
|
183
|
+
default?: Value;
|
|
184
|
+
/**
|
|
185
|
+
* Allowed values for string fields.
|
|
186
|
+
*
|
|
187
|
+
* Declaring enum_values on a non-string field is rejected.
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: repeated string enum_values = 5;
|
|
190
|
+
*/
|
|
191
|
+
enumValues: string[];
|
|
192
|
+
/**
|
|
193
|
+
* Human-readable description, surfaced to agents via describe_datastore.
|
|
194
|
+
*
|
|
195
|
+
* @generated from field: string description = 6;
|
|
196
|
+
*/
|
|
197
|
+
description: string;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.FieldDeclaration.
|
|
201
|
+
* Use `create(FieldDeclarationSchema)` to create a new message.
|
|
202
|
+
*/
|
|
203
|
+
export declare const FieldDeclarationSchema: GenMessage<FieldDeclaration>;
|
|
204
|
+
/**
|
|
205
|
+
* UniqueConstraint enforces uniqueness over one or more fields,
|
|
206
|
+
* optionally limited to records matching a condition.
|
|
207
|
+
*
|
|
208
|
+
* @internal
|
|
209
|
+
* Always substrate-enforced as an index (partial index when `where` is
|
|
210
|
+
* set), never read-then-write in domain logic. Violations surface as
|
|
211
|
+
* ALREADY_EXISTS carrying the declared message.
|
|
212
|
+
*
|
|
213
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.UniqueConstraint
|
|
214
|
+
*/
|
|
215
|
+
export type UniqueConstraint = Message<"ai.stigmer.agentic.datastore.v1.UniqueConstraint"> & {
|
|
216
|
+
/**
|
|
217
|
+
* Constraint name, unique within the collection.
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: string name = 1;
|
|
220
|
+
*/
|
|
221
|
+
name: string;
|
|
222
|
+
/**
|
|
223
|
+
* Declared fields whose combined values must be unique.
|
|
224
|
+
*
|
|
225
|
+
* @generated from field: repeated string fields = 2;
|
|
226
|
+
*/
|
|
227
|
+
fields: string[];
|
|
228
|
+
/**
|
|
229
|
+
* Limits the constraint to records matching this condition
|
|
230
|
+
* (e.g. only `status == "confirmed"` bookings must be unique per slot).
|
|
231
|
+
*
|
|
232
|
+
* @internal
|
|
233
|
+
* Structured, never an expression — it must compile to the
|
|
234
|
+
* substrate's partial-index dialect in both editions.
|
|
235
|
+
*
|
|
236
|
+
* @generated from field: ai.stigmer.agentic.datastore.v1.UniqueWhere where = 3;
|
|
237
|
+
*/
|
|
238
|
+
where?: UniqueWhere;
|
|
239
|
+
/**
|
|
240
|
+
* Error message returned on violation, written to be relayed to an
|
|
241
|
+
* end user by an agent (e.g. "that slot is already booked").
|
|
242
|
+
*
|
|
243
|
+
* @generated from field: string message = 4;
|
|
244
|
+
*/
|
|
245
|
+
message: string;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.UniqueConstraint.
|
|
249
|
+
* Use `create(UniqueConstraintSchema)` to create a new message.
|
|
250
|
+
*/
|
|
251
|
+
export declare const UniqueConstraintSchema: GenMessage<UniqueConstraint>;
|
|
252
|
+
/**
|
|
253
|
+
* UniqueWhere is the condition limiting a partial unique constraint.
|
|
254
|
+
*
|
|
255
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.UniqueWhere
|
|
256
|
+
*/
|
|
257
|
+
export type UniqueWhere = Message<"ai.stigmer.agentic.datastore.v1.UniqueWhere"> & {
|
|
258
|
+
/**
|
|
259
|
+
* Declared field the condition tests.
|
|
260
|
+
*
|
|
261
|
+
* @generated from field: string field = 1;
|
|
262
|
+
*/
|
|
263
|
+
field: string;
|
|
264
|
+
/**
|
|
265
|
+
* Value the field must equal for the constraint to apply.
|
|
266
|
+
*
|
|
267
|
+
* @generated from field: google.protobuf.Value equals = 2;
|
|
268
|
+
*/
|
|
269
|
+
equals?: Value;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.UniqueWhere.
|
|
273
|
+
* Use `create(UniqueWhereSchema)` to create a new message.
|
|
274
|
+
*/
|
|
275
|
+
export declare const UniqueWhereSchema: GenMessage<UniqueWhere>;
|
|
276
|
+
/**
|
|
277
|
+
* CheckConstraint validates a single record with a CEL expression on
|
|
278
|
+
* every insert and update.
|
|
279
|
+
*
|
|
280
|
+
* @internal
|
|
281
|
+
* Scope-fenced: expressions see only `this` (the candidate record,
|
|
282
|
+
* post-merge on updates) and the `tz` constant; the curated function
|
|
283
|
+
* additions (timeOfDay, localDate) are registered identically in cel-go
|
|
284
|
+
* and cel-java with cross-edition conformance fixtures. Evaluated in
|
|
285
|
+
* record-RPC domain logic in both editions — identical semantics,
|
|
286
|
+
* byte-identical messages. Violations surface as FAILED_PRECONDITION
|
|
287
|
+
* carrying the declared message.
|
|
288
|
+
*
|
|
289
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.CheckConstraint
|
|
290
|
+
*/
|
|
291
|
+
export type CheckConstraint = Message<"ai.stigmer.agentic.datastore.v1.CheckConstraint"> & {
|
|
292
|
+
/**
|
|
293
|
+
* Constraint name, unique within the collection.
|
|
294
|
+
*
|
|
295
|
+
* @generated from field: string name = 1;
|
|
296
|
+
*/
|
|
297
|
+
name: string;
|
|
298
|
+
/**
|
|
299
|
+
* CEL expression that must evaluate true for the record to be written.
|
|
300
|
+
*
|
|
301
|
+
* @generated from field: string expression = 2;
|
|
302
|
+
*/
|
|
303
|
+
expression: string;
|
|
304
|
+
/**
|
|
305
|
+
* Optional CEL gate: the check applies only when this evaluates true.
|
|
306
|
+
*
|
|
307
|
+
* @generated from field: string when = 3;
|
|
308
|
+
*/
|
|
309
|
+
when: string;
|
|
310
|
+
/**
|
|
311
|
+
* Error message returned on violation, written to be relayed to an
|
|
312
|
+
* end user by an agent.
|
|
313
|
+
*
|
|
314
|
+
* @generated from field: string message = 4;
|
|
315
|
+
*/
|
|
316
|
+
message: string;
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.CheckConstraint.
|
|
320
|
+
* Use `create(CheckConstraintSchema)` to create a new message.
|
|
321
|
+
*/
|
|
322
|
+
export declare const CheckConstraintSchema: GenMessage<CheckConstraint>;
|
|
323
|
+
/**
|
|
324
|
+
* ExistsConstraint validates a record against another collection in the
|
|
325
|
+
* same datastore, requiring a matching record to exist (`exists`) or to
|
|
326
|
+
* not exist (`not_exists`).
|
|
327
|
+
*
|
|
328
|
+
* @internal
|
|
329
|
+
* Bounded by design: target collection in the same datastore only;
|
|
330
|
+
* `where` is CEL over exactly `this` (the candidate) and `that` (a
|
|
331
|
+
* record of the target collection), plus `tz`; one level, read-only.
|
|
332
|
+
* Evaluated inside the write transaction — BEGIN IMMEDIATE in OSS
|
|
333
|
+
* SQLite, FOR SHARE row locks or SERIALIZABLE in cloud Postgres — so no
|
|
334
|
+
* write commits against a stale check. Violations surface as
|
|
335
|
+
* FAILED_PRECONDITION carrying the declared message.
|
|
336
|
+
*
|
|
337
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.ExistsConstraint
|
|
338
|
+
*/
|
|
339
|
+
export type ExistsConstraint = Message<"ai.stigmer.agentic.datastore.v1.ExistsConstraint"> & {
|
|
340
|
+
/**
|
|
341
|
+
* Constraint name, unique within the collection.
|
|
342
|
+
*
|
|
343
|
+
* @generated from field: string name = 1;
|
|
344
|
+
*/
|
|
345
|
+
name: string;
|
|
346
|
+
/**
|
|
347
|
+
* Target collection in the same datastore.
|
|
348
|
+
*
|
|
349
|
+
* @generated from field: string collection = 2;
|
|
350
|
+
*/
|
|
351
|
+
collection: string;
|
|
352
|
+
/**
|
|
353
|
+
* CEL condition matching candidate (`this`) against target records
|
|
354
|
+
* (`that`).
|
|
355
|
+
*
|
|
356
|
+
* @generated from field: string where = 3;
|
|
357
|
+
*/
|
|
358
|
+
where: string;
|
|
359
|
+
/**
|
|
360
|
+
* Optional CEL gate: the constraint applies only when this evaluates
|
|
361
|
+
* true.
|
|
362
|
+
*
|
|
363
|
+
* @generated from field: string when = 4;
|
|
364
|
+
*/
|
|
365
|
+
when: string;
|
|
366
|
+
/**
|
|
367
|
+
* Error message returned on violation, written to be relayed to an
|
|
368
|
+
* end user by an agent.
|
|
369
|
+
*
|
|
370
|
+
* @generated from field: string message = 5;
|
|
371
|
+
*/
|
|
372
|
+
message: string;
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.ExistsConstraint.
|
|
376
|
+
* Use `create(ExistsConstraintSchema)` to create a new message.
|
|
377
|
+
*/
|
|
378
|
+
export declare const ExistsConstraintSchema: GenMessage<ExistsConstraint>;
|
|
379
|
+
/**
|
|
380
|
+
* DatastoreAuthorization declares the record-layer access model: roles,
|
|
381
|
+
* subject bindings, and the default role for unbound callers.
|
|
382
|
+
*
|
|
383
|
+
* @internal
|
|
384
|
+
* Evaluated in datastore domain logic in both editions — deliberately
|
|
385
|
+
* NOT part of the kind registry's AuthorizationConfig, which governs
|
|
386
|
+
* only the resource layer (who may edit the datastore itself). Agents
|
|
387
|
+
* are never record-layer subjects; they reach records through their
|
|
388
|
+
* datastore_usages, and the caller resolved here is the channel sender
|
|
389
|
+
* or platform principal behind the session.
|
|
390
|
+
*
|
|
391
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.DatastoreAuthorization
|
|
392
|
+
*/
|
|
393
|
+
export type DatastoreAuthorization = Message<"ai.stigmer.agentic.datastore.v1.DatastoreAuthorization"> & {
|
|
394
|
+
/**
|
|
395
|
+
* Role names referenced by bindings and grants (e.g. "admin", "patient").
|
|
396
|
+
*
|
|
397
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.DatastoreRole roles = 1;
|
|
398
|
+
*/
|
|
399
|
+
roles: DatastoreRole[];
|
|
400
|
+
/**
|
|
401
|
+
* Subject-to-role bindings.
|
|
402
|
+
*
|
|
403
|
+
* @internal
|
|
404
|
+
* Role-reference integrity (every binding names a declared role) is
|
|
405
|
+
* domain validation.
|
|
406
|
+
*
|
|
407
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.DatastoreRoleBinding bindings = 2;
|
|
408
|
+
*/
|
|
409
|
+
bindings: DatastoreRoleBinding[];
|
|
410
|
+
/**
|
|
411
|
+
* Role an unbound caller resolves to.
|
|
412
|
+
*
|
|
413
|
+
* Applies to channel senders with no binding and platform principals
|
|
414
|
+
* with no binding. When empty, unbound callers are denied every verb.
|
|
415
|
+
*
|
|
416
|
+
* @generated from field: string default_role = 3;
|
|
417
|
+
*/
|
|
418
|
+
defaultRole: string;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.DatastoreAuthorization.
|
|
422
|
+
* Use `create(DatastoreAuthorizationSchema)` to create a new message.
|
|
423
|
+
*/
|
|
424
|
+
export declare const DatastoreAuthorizationSchema: GenMessage<DatastoreAuthorization>;
|
|
425
|
+
/**
|
|
426
|
+
* DatastoreRole is a named record-layer role.
|
|
427
|
+
*
|
|
428
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.DatastoreRole
|
|
429
|
+
*/
|
|
430
|
+
export type DatastoreRole = Message<"ai.stigmer.agentic.datastore.v1.DatastoreRole"> & {
|
|
431
|
+
/**
|
|
432
|
+
* Role name, referenced by bindings, grants, and default_role.
|
|
433
|
+
*
|
|
434
|
+
* @generated from field: string name = 1;
|
|
435
|
+
*/
|
|
436
|
+
name: string;
|
|
437
|
+
};
|
|
438
|
+
/**
|
|
439
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.DatastoreRole.
|
|
440
|
+
* Use `create(DatastoreRoleSchema)` to create a new message.
|
|
441
|
+
*/
|
|
442
|
+
export declare const DatastoreRoleSchema: GenMessage<DatastoreRole>;
|
|
443
|
+
/**
|
|
444
|
+
* DatastoreRoleBinding assigns a role to a caller identity.
|
|
445
|
+
*
|
|
446
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.DatastoreRoleBinding
|
|
447
|
+
*/
|
|
448
|
+
export type DatastoreRoleBinding = Message<"ai.stigmer.agentic.datastore.v1.DatastoreRoleBinding"> & {
|
|
449
|
+
/**
|
|
450
|
+
* The caller identity this binding matches.
|
|
451
|
+
*
|
|
452
|
+
* @generated from field: ai.stigmer.agentic.datastore.v1.DatastoreSubject subject = 1;
|
|
453
|
+
*/
|
|
454
|
+
subject?: DatastoreSubject;
|
|
455
|
+
/**
|
|
456
|
+
* Name of a declared role.
|
|
457
|
+
*
|
|
458
|
+
* @generated from field: string role = 2;
|
|
459
|
+
*/
|
|
460
|
+
role: string;
|
|
461
|
+
};
|
|
462
|
+
/**
|
|
463
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.DatastoreRoleBinding.
|
|
464
|
+
* Use `create(DatastoreRoleBindingSchema)` to create a new message.
|
|
465
|
+
*/
|
|
466
|
+
export declare const DatastoreRoleBindingSchema: GenMessage<DatastoreRoleBinding>;
|
|
467
|
+
/**
|
|
468
|
+
* DatastoreSubject is a caller identity a binding matches: a
|
|
469
|
+
* channel-verified sender or a platform principal.
|
|
470
|
+
*
|
|
471
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.DatastoreSubject
|
|
472
|
+
*/
|
|
473
|
+
export type DatastoreSubject = Message<"ai.stigmer.agentic.datastore.v1.DatastoreSubject"> & {
|
|
474
|
+
/**
|
|
475
|
+
* @generated from oneof ai.stigmer.agentic.datastore.v1.DatastoreSubject.kind
|
|
476
|
+
*/
|
|
477
|
+
kind: {
|
|
478
|
+
/**
|
|
479
|
+
* Channel sender identity, matched against the session metadata
|
|
480
|
+
* stamped by the channel broker.
|
|
481
|
+
*
|
|
482
|
+
* @generated from field: ai.stigmer.agentic.datastore.v1.ChannelSenderSubject channel_sender = 1;
|
|
483
|
+
*/
|
|
484
|
+
value: ChannelSenderSubject;
|
|
485
|
+
case: "channelSender";
|
|
486
|
+
} | {
|
|
487
|
+
/**
|
|
488
|
+
* Platform principal (an identity account today; teams later
|
|
489
|
+
* without schema change).
|
|
490
|
+
*
|
|
491
|
+
* @generated from field: ai.stigmer.iam.iampolicy.v1.ApiResourceRef principal = 2;
|
|
492
|
+
*/
|
|
493
|
+
value: ApiResourceRef;
|
|
494
|
+
case: "principal";
|
|
495
|
+
} | {
|
|
496
|
+
case: undefined;
|
|
497
|
+
value?: undefined;
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.DatastoreSubject.
|
|
502
|
+
* Use `create(DatastoreSubjectSchema)` to create a new message.
|
|
503
|
+
*/
|
|
504
|
+
export declare const DatastoreSubjectSchema: GenMessage<DatastoreSubject>;
|
|
505
|
+
/**
|
|
506
|
+
* ChannelSenderSubject identifies a sender on a messaging channel.
|
|
507
|
+
*
|
|
508
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.ChannelSenderSubject
|
|
509
|
+
*/
|
|
510
|
+
export type ChannelSenderSubject = Message<"ai.stigmer.agentic.datastore.v1.ChannelSenderSubject"> & {
|
|
511
|
+
/**
|
|
512
|
+
* Sender identity namespace (e.g. "whatsapp_phone", "slack_user_id").
|
|
513
|
+
*
|
|
514
|
+
* @generated from field: string sender_kind = 1;
|
|
515
|
+
*/
|
|
516
|
+
senderKind: string;
|
|
517
|
+
/**
|
|
518
|
+
* Sender identity value within the namespace (e.g. the E.164 number).
|
|
519
|
+
*
|
|
520
|
+
* @internal
|
|
521
|
+
* Bearer-adjacent: never logged raw, never filterable, and only ever
|
|
522
|
+
* compared against broker-stamped session metadata.
|
|
523
|
+
*
|
|
524
|
+
* @generated from field: string value = 2;
|
|
525
|
+
*/
|
|
526
|
+
value: string;
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.ChannelSenderSubject.
|
|
530
|
+
* Use `create(ChannelSenderSubjectSchema)` to create a new message.
|
|
531
|
+
*/
|
|
532
|
+
export declare const ChannelSenderSubjectSchema: GenMessage<ChannelSenderSubject>;
|
|
533
|
+
/**
|
|
534
|
+
* DatastoreGrant gives a role a set of verbs on one collection's records.
|
|
535
|
+
*
|
|
536
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.DatastoreGrant
|
|
537
|
+
*/
|
|
538
|
+
export type DatastoreGrant = Message<"ai.stigmer.agentic.datastore.v1.DatastoreGrant"> & {
|
|
539
|
+
/**
|
|
540
|
+
* Name of a declared role.
|
|
541
|
+
*
|
|
542
|
+
* @generated from field: string role = 1;
|
|
543
|
+
*/
|
|
544
|
+
role: string;
|
|
545
|
+
/**
|
|
546
|
+
* Verbs granted to the role on this collection.
|
|
547
|
+
*
|
|
548
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.DatastoreVerb verbs = 2;
|
|
549
|
+
*/
|
|
550
|
+
verbs: DatastoreVerb[];
|
|
551
|
+
/**
|
|
552
|
+
* Row scope of the grant.
|
|
553
|
+
*
|
|
554
|
+
* Defaults to all records. `own` limits update and delete (and read)
|
|
555
|
+
* to records whose server-stamped created_by matches the caller.
|
|
556
|
+
*
|
|
557
|
+
* @generated from field: ai.stigmer.agentic.datastore.v1.DatastoreGrantScope scope = 3;
|
|
558
|
+
*/
|
|
559
|
+
scope: DatastoreGrantScope;
|
|
560
|
+
};
|
|
561
|
+
/**
|
|
562
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.DatastoreGrant.
|
|
563
|
+
* Use `create(DatastoreGrantSchema)` to create a new message.
|
|
564
|
+
*/
|
|
565
|
+
export declare const DatastoreGrantSchema: GenMessage<DatastoreGrant>;
|
|
566
|
+
/**
|
|
567
|
+
* FieldType is the value type of a declared field.
|
|
568
|
+
*
|
|
569
|
+
* @internal
|
|
570
|
+
* Canonical encodings (DD-004): date is `YYYY-MM-DD`, time is
|
|
571
|
+
* zero-padded `HH:MM[:SS]` (both lexicographically chronological),
|
|
572
|
+
* timestamp is RFC 3339 UTC. json is an escape hatch — not
|
|
573
|
+
* constrainable or filterable in v1. The value is `bool`, not
|
|
574
|
+
* `boolean`, because protoc-java emits enum constants verbatim and
|
|
575
|
+
* `boolean` is a Java reserved word.
|
|
576
|
+
*
|
|
577
|
+
* @generated from enum ai.stigmer.agentic.datastore.v1.FieldType
|
|
578
|
+
*/
|
|
579
|
+
export declare enum FieldType {
|
|
580
|
+
/**
|
|
581
|
+
* @generated from enum value: field_type_unspecified = 0;
|
|
582
|
+
*/
|
|
583
|
+
field_type_unspecified = 0,
|
|
584
|
+
/**
|
|
585
|
+
* @generated from enum value: string = 1;
|
|
586
|
+
*/
|
|
587
|
+
string = 1,
|
|
588
|
+
/**
|
|
589
|
+
* @generated from enum value: integer = 2;
|
|
590
|
+
*/
|
|
591
|
+
integer = 2,
|
|
592
|
+
/**
|
|
593
|
+
* @generated from enum value: number = 3;
|
|
594
|
+
*/
|
|
595
|
+
number = 3,
|
|
596
|
+
/**
|
|
597
|
+
* @generated from enum value: bool = 4;
|
|
598
|
+
*/
|
|
599
|
+
bool = 4,
|
|
600
|
+
/**
|
|
601
|
+
* @generated from enum value: timestamp = 5;
|
|
602
|
+
*/
|
|
603
|
+
timestamp = 5,
|
|
604
|
+
/**
|
|
605
|
+
* @generated from enum value: date = 6;
|
|
606
|
+
*/
|
|
607
|
+
date = 6,
|
|
608
|
+
/**
|
|
609
|
+
* @generated from enum value: time = 7;
|
|
610
|
+
*/
|
|
611
|
+
time = 7,
|
|
612
|
+
/**
|
|
613
|
+
* @generated from enum value: json = 8;
|
|
614
|
+
*/
|
|
615
|
+
json = 8
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Describes the enum ai.stigmer.agentic.datastore.v1.FieldType.
|
|
619
|
+
*/
|
|
620
|
+
export declare const FieldTypeSchema: GenEnum<FieldType>;
|
|
621
|
+
/**
|
|
622
|
+
* DatastoreVerb is an operation a grant can allow on records.
|
|
623
|
+
*
|
|
624
|
+
* @generated from enum ai.stigmer.agentic.datastore.v1.DatastoreVerb
|
|
625
|
+
*/
|
|
626
|
+
export declare enum DatastoreVerb {
|
|
627
|
+
/**
|
|
628
|
+
* @generated from enum value: datastore_verb_unspecified = 0;
|
|
629
|
+
*/
|
|
630
|
+
datastore_verb_unspecified = 0,
|
|
631
|
+
/**
|
|
632
|
+
* @generated from enum value: read = 1;
|
|
633
|
+
*/
|
|
634
|
+
read = 1,
|
|
635
|
+
/**
|
|
636
|
+
* @generated from enum value: insert = 2;
|
|
637
|
+
*/
|
|
638
|
+
insert = 2,
|
|
639
|
+
/**
|
|
640
|
+
* @generated from enum value: update = 3;
|
|
641
|
+
*/
|
|
642
|
+
update = 3,
|
|
643
|
+
/**
|
|
644
|
+
* @generated from enum value: delete = 4;
|
|
645
|
+
*/
|
|
646
|
+
delete = 4
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Describes the enum ai.stigmer.agentic.datastore.v1.DatastoreVerb.
|
|
650
|
+
*/
|
|
651
|
+
export declare const DatastoreVerbSchema: GenEnum<DatastoreVerb>;
|
|
652
|
+
/**
|
|
653
|
+
* DatastoreGrantScope is the row scope of a grant.
|
|
654
|
+
*
|
|
655
|
+
* @internal
|
|
656
|
+
* `own` resolves against the server-stamped created_by attribution
|
|
657
|
+
* only — callers can neither set nor observe it.
|
|
658
|
+
*
|
|
659
|
+
* @generated from enum ai.stigmer.agentic.datastore.v1.DatastoreGrantScope
|
|
660
|
+
*/
|
|
661
|
+
export declare enum DatastoreGrantScope {
|
|
662
|
+
/**
|
|
663
|
+
* Unset: treated as `all`.
|
|
664
|
+
*
|
|
665
|
+
* @generated from enum value: datastore_grant_scope_unspecified = 0;
|
|
666
|
+
*/
|
|
667
|
+
datastore_grant_scope_unspecified = 0,
|
|
668
|
+
/**
|
|
669
|
+
* @generated from enum value: all = 1;
|
|
670
|
+
*/
|
|
671
|
+
all = 1,
|
|
672
|
+
/**
|
|
673
|
+
* @generated from enum value: own = 2;
|
|
674
|
+
*/
|
|
675
|
+
own = 2
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Describes the enum ai.stigmer.agentic.datastore.v1.DatastoreGrantScope.
|
|
679
|
+
*/
|
|
680
|
+
export declare const DatastoreGrantScopeSchema: GenEnum<DatastoreGrantScope>;
|