@stigmer/protos 3.2.3 → 3.4.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.
Files changed (97) hide show
  1. package/ai/stigmer/agentic/agent/v1/spec_pb.d.ts +41 -0
  2. package/ai/stigmer/agentic/agent/v1/spec_pb.js +8 -3
  3. package/ai/stigmer/agentic/agent/v1/spec_pb.js.map +1 -1
  4. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +62 -0
  5. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +37 -1
  6. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
  7. package/ai/stigmer/agentic/agentinstance/v1/spec_pb.d.ts +21 -0
  8. package/ai/stigmer/agentic/agentinstance/v1/spec_pb.js +1 -1
  9. package/ai/stigmer/agentic/agentinstance/v1/spec_pb.js.map +1 -1
  10. package/ai/stigmer/agentic/datastore/v1/api_pb.d.ts +64 -0
  11. package/ai/stigmer/agentic/datastore/v1/api_pb.js +18 -0
  12. package/ai/stigmer/agentic/datastore/v1/api_pb.js.map +1 -0
  13. package/ai/stigmer/agentic/datastore/v1/command_connect.d.ts +111 -0
  14. package/ai/stigmer/agentic/datastore/v1/command_connect.js +119 -0
  15. package/ai/stigmer/agentic/datastore/v1/command_connect.js.map +1 -0
  16. package/ai/stigmer/agentic/datastore/v1/command_pb.d.ts +110 -0
  17. package/ai/stigmer/agentic/datastore/v1/command_pb.js +19 -0
  18. package/ai/stigmer/agentic/datastore/v1/command_pb.js.map +1 -0
  19. package/ai/stigmer/agentic/datastore/v1/io_pb.d.ts +64 -0
  20. package/ai/stigmer/agentic/datastore/v1/io_pb.js +22 -0
  21. package/ai/stigmer/agentic/datastore/v1/io_pb.js.map +1 -0
  22. package/ai/stigmer/agentic/datastore/v1/query_connect.d.ts +59 -0
  23. package/ai/stigmer/agentic/datastore/v1/query_connect.js +68 -0
  24. package/ai/stigmer/agentic/datastore/v1/query_connect.js.map +1 -0
  25. package/ai/stigmer/agentic/datastore/v1/query_pb.d.ts +61 -0
  26. package/ai/stigmer/agentic/datastore/v1/query_pb.js +24 -0
  27. package/ai/stigmer/agentic/datastore/v1/query_pb.js.map +1 -0
  28. package/ai/stigmer/agentic/datastore/v1/record_command_connect.d.ts +75 -0
  29. package/ai/stigmer/agentic/datastore/v1/record_command_connect.js +82 -0
  30. package/ai/stigmer/agentic/datastore/v1/record_command_connect.js.map +1 -0
  31. package/ai/stigmer/agentic/datastore/v1/record_command_pb.d.ts +75 -0
  32. package/ai/stigmer/agentic/datastore/v1/record_command_pb.js +32 -0
  33. package/ai/stigmer/agentic/datastore/v1/record_command_pb.js.map +1 -0
  34. package/ai/stigmer/agentic/datastore/v1/record_io_pb.d.ts +752 -0
  35. package/ai/stigmer/agentic/datastore/v1/record_io_pb.js +198 -0
  36. package/ai/stigmer/agentic/datastore/v1/record_io_pb.js.map +1 -0
  37. package/ai/stigmer/agentic/datastore/v1/record_query_connect.d.ts +69 -0
  38. package/ai/stigmer/agentic/datastore/v1/record_query_connect.js +76 -0
  39. package/ai/stigmer/agentic/datastore/v1/record_query_connect.js.map +1 -0
  40. package/ai/stigmer/agentic/datastore/v1/record_query_pb.d.ts +70 -0
  41. package/ai/stigmer/agentic/datastore/v1/record_query_pb.js +38 -0
  42. package/ai/stigmer/agentic/datastore/v1/record_query_pb.js.map +1 -0
  43. package/ai/stigmer/agentic/datastore/v1/spec_pb.d.ts +735 -0
  44. package/ai/stigmer/agentic/datastore/v1/spec_pb.js +195 -0
  45. package/ai/stigmer/agentic/datastore/v1/spec_pb.js.map +1 -0
  46. package/ai/stigmer/agentic/datastore/v1/status_pb.d.ts +159 -0
  47. package/ai/stigmer/agentic/datastore/v1/status_pb.js +93 -0
  48. package/ai/stigmer/agentic/datastore/v1/status_pb.js.map +1 -0
  49. package/ai/stigmer/agentic/session/v1/spec_pb.d.ts +18 -0
  50. package/ai/stigmer/agentic/session/v1/spec_pb.js +1 -1
  51. package/ai/stigmer/agentic/session/v1/spec_pb.js.map +1 -1
  52. package/ai/stigmer/billing/v1/command_connect.d.ts +43 -0
  53. package/ai/stigmer/billing/v1/command_connect.js +46 -1
  54. package/ai/stigmer/billing/v1/command_connect.js.map +1 -1
  55. package/ai/stigmer/billing/v1/command_pb.d.ts +43 -1
  56. package/ai/stigmer/billing/v1/command_pb.js +3 -1
  57. package/ai/stigmer/billing/v1/command_pb.js.map +1 -1
  58. package/ai/stigmer/billing/v1/io_pb.d.ts +299 -1
  59. package/ai/stigmer/billing/v1/io_pb.js +44 -2
  60. package/ai/stigmer/billing/v1/io_pb.js.map +1 -1
  61. package/ai/stigmer/billing/v1/model_pricing_baseline_pb.d.ts +369 -0
  62. package/ai/stigmer/billing/v1/model_pricing_baseline_pb.js +79 -0
  63. package/ai/stigmer/billing/v1/model_pricing_baseline_pb.js.map +1 -0
  64. package/ai/stigmer/billing/v1/pricing_override_pb.d.ts +272 -0
  65. package/ai/stigmer/billing/v1/pricing_override_pb.js +116 -0
  66. package/ai/stigmer/billing/v1/pricing_override_pb.js.map +1 -0
  67. package/ai/stigmer/billing/v1/query_connect.d.ts +31 -0
  68. package/ai/stigmer/billing/v1/query_connect.js +32 -1
  69. package/ai/stigmer/billing/v1/query_connect.js.map +1 -1
  70. package/ai/stigmer/billing/v1/query_pb.d.ts +30 -1
  71. package/ai/stigmer/billing/v1/query_pb.js +1 -1
  72. package/ai/stigmer/billing/v1/query_pb.js.map +1 -1
  73. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +7 -0
  74. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +8 -1
  75. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
  76. package/ai/stigmer/iam/v1/enum_pb.d.ts +44 -1
  77. package/ai/stigmer/iam/v1/enum_pb.js +44 -1
  78. package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
  79. package/ai/stigmer/platform/cursoraccount/v1/command_connect.d.ts +102 -0
  80. package/ai/stigmer/platform/cursoraccount/v1/command_connect.js +110 -0
  81. package/ai/stigmer/platform/cursoraccount/v1/command_connect.js.map +1 -0
  82. package/ai/stigmer/platform/cursoraccount/v1/command_pb.d.ts +100 -0
  83. package/ai/stigmer/platform/cursoraccount/v1/command_pb.js +32 -0
  84. package/ai/stigmer/platform/cursoraccount/v1/command_pb.js.map +1 -0
  85. package/ai/stigmer/platform/cursoraccount/v1/cursor_account_pb.d.ts +409 -0
  86. package/ai/stigmer/platform/cursoraccount/v1/cursor_account_pb.js +36 -0
  87. package/ai/stigmer/platform/cursoraccount/v1/cursor_account_pb.js.map +1 -0
  88. package/ai/stigmer/platform/cursoraccount/v1/io_pb.d.ts +383 -0
  89. package/ai/stigmer/platform/cursoraccount/v1/io_pb.js +115 -0
  90. package/ai/stigmer/platform/cursoraccount/v1/io_pb.js.map +1 -0
  91. package/ai/stigmer/platform/cursoraccount/v1/query_connect.d.ts +44 -0
  92. package/ai/stigmer/platform/cursoraccount/v1/query_connect.js +51 -0
  93. package/ai/stigmer/platform/cursoraccount/v1/query_connect.js.map +1 -0
  94. package/ai/stigmer/platform/cursoraccount/v1/query_pb.d.ts +45 -0
  95. package/ai/stigmer/platform/cursoraccount/v1/query_pb.js +25 -0
  96. package/ai/stigmer/platform/cursoraccount/v1/query_pb.js.map +1 -0
  97. package/package.json +1 -1
@@ -0,0 +1,735 @@
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
+ * @internal
447
+ * Apply-time integrity (both editions, the shared spec validators):
448
+ * the role must be declared, a principal subject must be an
449
+ * identity_account with no relation qualifier, and no two bindings may
450
+ * share a subject — role resolution is first-match-wins, so a
451
+ * duplicate would be silently shadowed dead configuration. Cloud
452
+ * additionally verifies the bound identity account exists and is an
453
+ * org member (ValidateBindingPrincipalsStep); OSS stores no identity
454
+ * accounts and accepts arbitrary ids so cloud-destined manifests stay
455
+ * locally appliable (recorded limitation, DD-002).
456
+ *
457
+ * @generated from message ai.stigmer.agentic.datastore.v1.DatastoreRoleBinding
458
+ */
459
+ export type DatastoreRoleBinding = Message<"ai.stigmer.agentic.datastore.v1.DatastoreRoleBinding"> & {
460
+ /**
461
+ * The caller identity this binding matches.
462
+ *
463
+ * @generated from field: ai.stigmer.agentic.datastore.v1.DatastoreSubject subject = 1;
464
+ */
465
+ subject?: DatastoreSubject;
466
+ /**
467
+ * Name of a declared role.
468
+ *
469
+ * @generated from field: string role = 2;
470
+ */
471
+ role: string;
472
+ };
473
+ /**
474
+ * Describes the message ai.stigmer.agentic.datastore.v1.DatastoreRoleBinding.
475
+ * Use `create(DatastoreRoleBindingSchema)` to create a new message.
476
+ */
477
+ export declare const DatastoreRoleBindingSchema: GenMessage<DatastoreRoleBinding>;
478
+ /**
479
+ * DatastoreSubject is a caller identity a binding matches: a
480
+ * channel-verified sender or a platform principal.
481
+ *
482
+ * @generated from message ai.stigmer.agentic.datastore.v1.DatastoreSubject
483
+ */
484
+ export type DatastoreSubject = Message<"ai.stigmer.agentic.datastore.v1.DatastoreSubject"> & {
485
+ /**
486
+ * @generated from oneof ai.stigmer.agentic.datastore.v1.DatastoreSubject.kind
487
+ */
488
+ kind: {
489
+ /**
490
+ * Channel sender identity, matched against the session metadata
491
+ * stamped by the channel broker.
492
+ *
493
+ * @generated from field: ai.stigmer.agentic.datastore.v1.ChannelSenderSubject channel_sender = 1;
494
+ */
495
+ value: ChannelSenderSubject;
496
+ case: "channelSender";
497
+ } | {
498
+ /**
499
+ * Platform principal (an identity account today; teams later
500
+ * without schema change).
501
+ *
502
+ * @internal
503
+ * Matched by exact kind+id equality against the caller-derived
504
+ * subject; the relation qualifier is excluded from identity and
505
+ * rejected at apply. The id is the account id, never a slug or
506
+ * email — apply-time validation refuses unresolvable values with a
507
+ * membership-gated did-you-mean instead of letting them bind
508
+ * nothing silently (dont-dos/001).
509
+ *
510
+ * @generated from field: ai.stigmer.iam.iampolicy.v1.ApiResourceRef principal = 2;
511
+ */
512
+ value: ApiResourceRef;
513
+ case: "principal";
514
+ } | {
515
+ case: undefined;
516
+ value?: undefined;
517
+ };
518
+ };
519
+ /**
520
+ * Describes the message ai.stigmer.agentic.datastore.v1.DatastoreSubject.
521
+ * Use `create(DatastoreSubjectSchema)` to create a new message.
522
+ */
523
+ export declare const DatastoreSubjectSchema: GenMessage<DatastoreSubject>;
524
+ /**
525
+ * ChannelSenderSubject identifies a sender on a messaging channel.
526
+ *
527
+ * @generated from message ai.stigmer.agentic.datastore.v1.ChannelSenderSubject
528
+ */
529
+ export type ChannelSenderSubject = Message<"ai.stigmer.agentic.datastore.v1.ChannelSenderSubject"> & {
530
+ /**
531
+ * Sender identity namespace (e.g. "whatsapp_phone", "slack_user_id").
532
+ *
533
+ * @generated from field: string sender_kind = 1;
534
+ */
535
+ senderKind: string;
536
+ /**
537
+ * Sender identity value within the namespace (e.g. the E.164 number).
538
+ *
539
+ * @internal
540
+ * Bearer-adjacent: never logged raw, never filterable, and only ever
541
+ * compared against broker-stamped session metadata.
542
+ *
543
+ * @generated from field: string value = 2;
544
+ */
545
+ value: string;
546
+ };
547
+ /**
548
+ * Describes the message ai.stigmer.agentic.datastore.v1.ChannelSenderSubject.
549
+ * Use `create(ChannelSenderSubjectSchema)` to create a new message.
550
+ */
551
+ export declare const ChannelSenderSubjectSchema: GenMessage<ChannelSenderSubject>;
552
+ /**
553
+ * DatastoreGrant gives a role a set of verbs on one collection's records.
554
+ *
555
+ * @internal
556
+ * Apply-time integrity (both editions, the shared spec validators): a
557
+ * (role, verb) pair may appear in at most one grant per collection —
558
+ * with one read grant per role, the resolved access is exactly
559
+ * {scope, read_fields} and no merge rules exist (a duplicate would
560
+ * reopen the composition ambiguity read_fields closes). Stored specs
561
+ * that predate this rule keep their widest-scope-wins resolution; they
562
+ * can never carry read_fields (the rule ships with the field).
563
+ *
564
+ * @generated from message ai.stigmer.agentic.datastore.v1.DatastoreGrant
565
+ */
566
+ export type DatastoreGrant = Message<"ai.stigmer.agentic.datastore.v1.DatastoreGrant"> & {
567
+ /**
568
+ * Name of a declared role.
569
+ *
570
+ * @generated from field: string role = 1;
571
+ */
572
+ role: string;
573
+ /**
574
+ * Verbs granted to the role on this collection.
575
+ *
576
+ * @generated from field: repeated ai.stigmer.agentic.datastore.v1.DatastoreVerb verbs = 2;
577
+ */
578
+ verbs: DatastoreVerb[];
579
+ /**
580
+ * Row scope of the grant.
581
+ *
582
+ * Defaults to all records. `own` limits update and delete (and read)
583
+ * to records whose server-stamped created_by matches the caller.
584
+ *
585
+ * @generated from field: ai.stigmer.agentic.datastore.v1.DatastoreGrantScope scope = 3;
586
+ */
587
+ scope: DatastoreGrantScope;
588
+ /**
589
+ * Field allowlist for the read verb: when set, reads by this role
590
+ * return only these fields, and filter conditions and order_by may
591
+ * reference only these fields. Empty means every field is readable.
592
+ *
593
+ * Entries name declared fields of the collection, or `created_by` to
594
+ * expose the attribution subject. The system fields id, created_at,
595
+ * and updated_at are always readable.
596
+ *
597
+ * @internal
598
+ * The column-level GRANT SELECT of the record layer, closing the
599
+ * scope-all-reads-carry-PII residual (dont-dos/002): every record RPC
600
+ * response — find results AND write echoes — is projected to the
601
+ * caller's read-grant field set, and created_by is included only when
602
+ * listed (for channel senders it is the phone number, the most direct
603
+ * PII in the envelope). A caller with no read grant at all receives
604
+ * envelopes with id and timestamps only (write-only access). Empty =
605
+ * unrestricted is forced by proto3 repeated-field semantics (no
606
+ * presence) and mirrors `scope` unset = all. Requires `read` among
607
+ * the grant's verbs — read_fields on a write-only grant is declared
608
+ * intent with no effect and is refused at apply, same posture as the
609
+ * binding relation qualifier. Entry-to-declared-field resolution is
610
+ * domain validation (both editions, byte-identical messages).
611
+ *
612
+ * @generated from field: repeated string read_fields = 4;
613
+ */
614
+ readFields: string[];
615
+ };
616
+ /**
617
+ * Describes the message ai.stigmer.agentic.datastore.v1.DatastoreGrant.
618
+ * Use `create(DatastoreGrantSchema)` to create a new message.
619
+ */
620
+ export declare const DatastoreGrantSchema: GenMessage<DatastoreGrant>;
621
+ /**
622
+ * FieldType is the value type of a declared field.
623
+ *
624
+ * @internal
625
+ * Canonical encodings (DD-004): date is `YYYY-MM-DD`, time is
626
+ * zero-padded `HH:MM[:SS]` (both lexicographically chronological),
627
+ * timestamp is RFC 3339 UTC. json is an escape hatch — not
628
+ * constrainable or filterable in v1. The value is `bool`, not
629
+ * `boolean`, because protoc-java emits enum constants verbatim and
630
+ * `boolean` is a Java reserved word.
631
+ *
632
+ * @generated from enum ai.stigmer.agentic.datastore.v1.FieldType
633
+ */
634
+ export declare enum FieldType {
635
+ /**
636
+ * @generated from enum value: field_type_unspecified = 0;
637
+ */
638
+ field_type_unspecified = 0,
639
+ /**
640
+ * @generated from enum value: string = 1;
641
+ */
642
+ string = 1,
643
+ /**
644
+ * @generated from enum value: integer = 2;
645
+ */
646
+ integer = 2,
647
+ /**
648
+ * @generated from enum value: number = 3;
649
+ */
650
+ number = 3,
651
+ /**
652
+ * @generated from enum value: bool = 4;
653
+ */
654
+ bool = 4,
655
+ /**
656
+ * @generated from enum value: timestamp = 5;
657
+ */
658
+ timestamp = 5,
659
+ /**
660
+ * @generated from enum value: date = 6;
661
+ */
662
+ date = 6,
663
+ /**
664
+ * @generated from enum value: time = 7;
665
+ */
666
+ time = 7,
667
+ /**
668
+ * @generated from enum value: json = 8;
669
+ */
670
+ json = 8
671
+ }
672
+ /**
673
+ * Describes the enum ai.stigmer.agentic.datastore.v1.FieldType.
674
+ */
675
+ export declare const FieldTypeSchema: GenEnum<FieldType>;
676
+ /**
677
+ * DatastoreVerb is an operation a grant can allow on records.
678
+ *
679
+ * @generated from enum ai.stigmer.agentic.datastore.v1.DatastoreVerb
680
+ */
681
+ export declare enum DatastoreVerb {
682
+ /**
683
+ * @generated from enum value: datastore_verb_unspecified = 0;
684
+ */
685
+ datastore_verb_unspecified = 0,
686
+ /**
687
+ * @generated from enum value: read = 1;
688
+ */
689
+ read = 1,
690
+ /**
691
+ * @generated from enum value: insert = 2;
692
+ */
693
+ insert = 2,
694
+ /**
695
+ * @generated from enum value: update = 3;
696
+ */
697
+ update = 3,
698
+ /**
699
+ * @generated from enum value: delete = 4;
700
+ */
701
+ delete = 4
702
+ }
703
+ /**
704
+ * Describes the enum ai.stigmer.agentic.datastore.v1.DatastoreVerb.
705
+ */
706
+ export declare const DatastoreVerbSchema: GenEnum<DatastoreVerb>;
707
+ /**
708
+ * DatastoreGrantScope is the row scope of a grant.
709
+ *
710
+ * @internal
711
+ * `own` resolves against the server-stamped created_by attribution
712
+ * only — callers can neither set nor observe it.
713
+ *
714
+ * @generated from enum ai.stigmer.agentic.datastore.v1.DatastoreGrantScope
715
+ */
716
+ export declare enum DatastoreGrantScope {
717
+ /**
718
+ * Unset: treated as `all`.
719
+ *
720
+ * @generated from enum value: datastore_grant_scope_unspecified = 0;
721
+ */
722
+ datastore_grant_scope_unspecified = 0,
723
+ /**
724
+ * @generated from enum value: all = 1;
725
+ */
726
+ all = 1,
727
+ /**
728
+ * @generated from enum value: own = 2;
729
+ */
730
+ own = 2
731
+ }
732
+ /**
733
+ * Describes the enum ai.stigmer.agentic.datastore.v1.DatastoreGrantScope.
734
+ */
735
+ export declare const DatastoreGrantScopeSchema: GenEnum<DatastoreGrantScope>;