@stigmer/protos 3.2.2 → 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/command_connect.d.ts +4 -2
- package/ai/stigmer/agentic/agentexecution/v1/command_connect.js +4 -2
- package/ai/stigmer/agentic/agentexecution/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/command_pb.d.ts +4 -2
- package/ai/stigmer/agentic/agentexecution/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +78 -1
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +92 -14
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.d.ts +18 -1
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js +1 -1
- package/ai/stigmer/agentic/agentexecution/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/agentic/workflow/v1/tasks/human_input_pb.d.ts +13 -1
- package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/event_pb.d.ts +24 -1
- package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js +2 -1
- package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/io_pb.d.ts +10 -2
- package/ai/stigmer/agentic/workflowexecution/v1/io_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/commons/apiresource/status_pb.d.ts +25 -0
- package/ai/stigmer/commons/apiresource/status_pb.js +1 -1
- package/ai/stigmer/commons/apiresource/status_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,64 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { Datastore } from "./api_pb.js";
|
|
3
|
+
import type { PageInfo } from "../../../commons/rpc/pagination_pb.js";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ai/stigmer/agentic/datastore/v1/io.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ai_stigmer_agentic_datastore_v1_io: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* ListDatastoresRequest specifies parameters for listing datastores.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.ListDatastoresRequest
|
|
13
|
+
*/
|
|
14
|
+
export type ListDatastoresRequest = Message<"ai.stigmer.agentic.datastore.v1.ListDatastoresRequest"> & {
|
|
15
|
+
/**
|
|
16
|
+
* Organization to list datastores for.
|
|
17
|
+
*
|
|
18
|
+
* @generated from field: string org = 1;
|
|
19
|
+
*/
|
|
20
|
+
org: string;
|
|
21
|
+
/**
|
|
22
|
+
* Filter by metadata labels. AND semantics: the resource must match all provided labels.
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: map<string, string> labels = 2;
|
|
25
|
+
*/
|
|
26
|
+
labels: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Pagination options.
|
|
31
|
+
*
|
|
32
|
+
* @generated from field: ai.stigmer.commons.rpc.PageInfo page_info = 3;
|
|
33
|
+
*/
|
|
34
|
+
pageInfo?: PageInfo;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.ListDatastoresRequest.
|
|
38
|
+
* Use `create(ListDatastoresRequestSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export declare const ListDatastoresRequestSchema: GenMessage<ListDatastoresRequest>;
|
|
41
|
+
/**
|
|
42
|
+
* DatastoreList contains a paginated list of datastores.
|
|
43
|
+
*
|
|
44
|
+
* @generated from message ai.stigmer.agentic.datastore.v1.DatastoreList
|
|
45
|
+
*/
|
|
46
|
+
export type DatastoreList = Message<"ai.stigmer.agentic.datastore.v1.DatastoreList"> & {
|
|
47
|
+
/**
|
|
48
|
+
* Total count of matching datastores.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: int32 total_count = 1;
|
|
51
|
+
*/
|
|
52
|
+
totalCount: number;
|
|
53
|
+
/**
|
|
54
|
+
* Datastores in the current page.
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: repeated ai.stigmer.agentic.datastore.v1.Datastore items = 2;
|
|
57
|
+
*/
|
|
58
|
+
items: Datastore[];
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.DatastoreList.
|
|
62
|
+
* Use `create(DatastoreListSchema)` to create a new message.
|
|
63
|
+
*/
|
|
64
|
+
export declare const DatastoreListSchema: GenMessage<DatastoreList>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/datastore/v1/io.proto (package ai.stigmer.agentic.datastore.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_agentic_datastore_v1_api } from "./api_pb.js";
|
|
6
|
+
import { file_ai_stigmer_commons_rpc_pagination } from "../../../commons/rpc/pagination_pb.js";
|
|
7
|
+
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file ai/stigmer/agentic/datastore/v1/io.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_ai_stigmer_agentic_datastore_v1_io = /*@__PURE__*/ fileDesc("CihhaS9zdGlnbWVyL2FnZW50aWMvZGF0YXN0b3JlL3YxL2lvLnByb3RvEh9haS5zdGlnbWVyLmFnZW50aWMuZGF0YXN0b3JlLnYxIuUBChVMaXN0RGF0YXN0b3Jlc1JlcXVlc3QSFAoDb3JnGAEgASgJQge6SARyAhABElIKBmxhYmVscxgCIAMoCzJCLmFpLnN0aWdtZXIuYWdlbnRpYy5kYXRhc3RvcmUudjEuTGlzdERhdGFzdG9yZXNSZXF1ZXN0LkxhYmVsc0VudHJ5EjMKCXBhZ2VfaW5mbxgDIAEoCzIgLmFpLnN0aWdtZXIuY29tbW9ucy5ycGMuUGFnZUluZm8aLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJfCg1EYXRhc3RvcmVMaXN0EhMKC3RvdGFsX2NvdW50GAEgASgFEjkKBWl0ZW1zGAIgAygLMiouYWkuc3RpZ21lci5hZ2VudGljLmRhdGFzdG9yZS52MS5EYXRhc3RvcmViBnByb3RvMw", [file_ai_stigmer_agentic_datastore_v1_api, file_ai_stigmer_commons_rpc_pagination, file_buf_validate_validate]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.ListDatastoresRequest.
|
|
14
|
+
* Use `create(ListDatastoresRequestSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const ListDatastoresRequestSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_datastore_v1_io, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message ai.stigmer.agentic.datastore.v1.DatastoreList.
|
|
19
|
+
* Use `create(DatastoreListSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const DatastoreListSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_datastore_v1_io, 1);
|
|
22
|
+
//# sourceMappingURL=io_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/datastore/v1/io_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,yHAAyH;AACzH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAC;AAEvE,OAAO,EAAE,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAY,aAAa,CAC3E,QAAQ,CAAC,wiBAAwiB,EAAE,CAAC,wCAAwC,EAAE,sCAAsC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AA8BrqB;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsC,aAAa,CACzF,WAAW,CAAC,uCAAuC,EAAE,CAAC,CAAC,CAAC;AAuB1D;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,uCAAuC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DatastoreQueryController handles read operations for datastores.
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
* These RPCs read the datastore resource (spec + status), not its
|
|
6
|
+
* records. Record reads go through DatastoreRecordQueryController.
|
|
7
|
+
*
|
|
8
|
+
* @generated from service ai.stigmer.agentic.datastore.v1.DatastoreQueryController
|
|
9
|
+
*/
|
|
10
|
+
export declare const DatastoreQueryController: {
|
|
11
|
+
readonly typeName: "ai.stigmer.agentic.datastore.v1.DatastoreQueryController";
|
|
12
|
+
readonly methods: {
|
|
13
|
+
/**
|
|
14
|
+
* Get a datastore by ID.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
* Authorization: requires can_view permission on the datastore resource.
|
|
18
|
+
*
|
|
19
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreQueryController.get
|
|
20
|
+
*/
|
|
21
|
+
readonly get: {
|
|
22
|
+
readonly name: "get";
|
|
23
|
+
readonly I: any;
|
|
24
|
+
readonly O: any;
|
|
25
|
+
readonly kind: any;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Get a datastore by its organization-scoped reference (org/slug).
|
|
29
|
+
* Resolves a human-readable reference like "acme/clinic-records" to the full Datastore resource.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
* Custom authorization in handler — checks both direct resource access
|
|
33
|
+
* and organization-level visibility permissions.
|
|
34
|
+
*
|
|
35
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreQueryController.getByReference
|
|
36
|
+
*/
|
|
37
|
+
readonly getByReference: {
|
|
38
|
+
readonly name: "getByReference";
|
|
39
|
+
readonly I: any;
|
|
40
|
+
readonly O: any;
|
|
41
|
+
readonly kind: any;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* List datastores with optional label filtering.
|
|
45
|
+
*
|
|
46
|
+
* @internal
|
|
47
|
+
* Authorization is handled in-handler via FGA-filtered queries (cloud)
|
|
48
|
+
* or unrestricted store queries (OSS).
|
|
49
|
+
*
|
|
50
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreQueryController.list
|
|
51
|
+
*/
|
|
52
|
+
readonly list: {
|
|
53
|
+
readonly name: "list";
|
|
54
|
+
readonly I: any;
|
|
55
|
+
readonly O: any;
|
|
56
|
+
readonly kind: any;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/datastore/v1/query.proto (package ai.stigmer.agentic.datastore.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { ApiResourceId, ApiResourceReference } from "../../../commons/apiresource/io_pbjs";
|
|
6
|
+
import { Datastore } from "./api_pbjs";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
import { DatastoreList, ListDatastoresRequest } from "./io_pbjs";
|
|
9
|
+
/**
|
|
10
|
+
* DatastoreQueryController handles read operations for datastores.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* These RPCs read the datastore resource (spec + status), not its
|
|
14
|
+
* records. Record reads go through DatastoreRecordQueryController.
|
|
15
|
+
*
|
|
16
|
+
* @generated from service ai.stigmer.agentic.datastore.v1.DatastoreQueryController
|
|
17
|
+
*/
|
|
18
|
+
export const DatastoreQueryController = {
|
|
19
|
+
typeName: "ai.stigmer.agentic.datastore.v1.DatastoreQueryController",
|
|
20
|
+
methods: {
|
|
21
|
+
/**
|
|
22
|
+
* Get a datastore by ID.
|
|
23
|
+
*
|
|
24
|
+
* @internal
|
|
25
|
+
* Authorization: requires can_view permission on the datastore resource.
|
|
26
|
+
*
|
|
27
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreQueryController.get
|
|
28
|
+
*/
|
|
29
|
+
get: {
|
|
30
|
+
name: "get",
|
|
31
|
+
I: ApiResourceId,
|
|
32
|
+
O: Datastore,
|
|
33
|
+
kind: MethodKind.Unary,
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* Get a datastore by its organization-scoped reference (org/slug).
|
|
37
|
+
* Resolves a human-readable reference like "acme/clinic-records" to the full Datastore resource.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
* Custom authorization in handler — checks both direct resource access
|
|
41
|
+
* and organization-level visibility permissions.
|
|
42
|
+
*
|
|
43
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreQueryController.getByReference
|
|
44
|
+
*/
|
|
45
|
+
getByReference: {
|
|
46
|
+
name: "getByReference",
|
|
47
|
+
I: ApiResourceReference,
|
|
48
|
+
O: Datastore,
|
|
49
|
+
kind: MethodKind.Unary,
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* List datastores with optional label filtering.
|
|
53
|
+
*
|
|
54
|
+
* @internal
|
|
55
|
+
* Authorization is handled in-handler via FGA-filtered queries (cloud)
|
|
56
|
+
* or unrestricted store queries (OSS).
|
|
57
|
+
*
|
|
58
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreQueryController.list
|
|
59
|
+
*/
|
|
60
|
+
list: {
|
|
61
|
+
name: "list",
|
|
62
|
+
I: ListDatastoresRequest,
|
|
63
|
+
O: DatastoreList,
|
|
64
|
+
kind: MethodKind.Unary,
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=query_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/datastore/v1/query_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,4HAA4H;AAC5H,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEjE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,QAAQ,EAAE,0DAA0D;IACpE,OAAO,EAAE;QACP;;;;;;;WAOG;QACH,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,CAAC,EAAE,aAAa;YAChB,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;WASG;QACH,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;WAQG;QACH,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,CAAC,EAAE,qBAAqB;YACxB,CAAC,EAAE,aAAa;YAChB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { DatastoreSchema } from "./api_pb.js";
|
|
3
|
+
import type { DatastoreListSchema, ListDatastoresRequestSchema } from "./io_pb.js";
|
|
4
|
+
import type { ApiResourceIdSchema, ApiResourceReferenceSchema } from "../../../commons/apiresource/io_pb.js";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ai/stigmer/agentic/datastore/v1/query.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ai_stigmer_agentic_datastore_v1_query: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* DatastoreQueryController handles read operations for datastores.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* These RPCs read the datastore resource (spec + status), not its
|
|
14
|
+
* records. Record reads go through DatastoreRecordQueryController.
|
|
15
|
+
*
|
|
16
|
+
* @generated from service ai.stigmer.agentic.datastore.v1.DatastoreQueryController
|
|
17
|
+
*/
|
|
18
|
+
export declare const DatastoreQueryController: GenService<{
|
|
19
|
+
/**
|
|
20
|
+
* Get a datastore by ID.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
* Authorization: requires can_view permission on the datastore resource.
|
|
24
|
+
*
|
|
25
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreQueryController.get
|
|
26
|
+
*/
|
|
27
|
+
get: {
|
|
28
|
+
methodKind: "unary";
|
|
29
|
+
input: typeof ApiResourceIdSchema;
|
|
30
|
+
output: typeof DatastoreSchema;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Get a datastore by its organization-scoped reference (org/slug).
|
|
34
|
+
* Resolves a human-readable reference like "acme/clinic-records" to the full Datastore resource.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
* Custom authorization in handler — checks both direct resource access
|
|
38
|
+
* and organization-level visibility permissions.
|
|
39
|
+
*
|
|
40
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreQueryController.getByReference
|
|
41
|
+
*/
|
|
42
|
+
getByReference: {
|
|
43
|
+
methodKind: "unary";
|
|
44
|
+
input: typeof ApiResourceReferenceSchema;
|
|
45
|
+
output: typeof DatastoreSchema;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* List datastores with optional label filtering.
|
|
49
|
+
*
|
|
50
|
+
* @internal
|
|
51
|
+
* Authorization is handled in-handler via FGA-filtered queries (cloud)
|
|
52
|
+
* or unrestricted store queries (OSS).
|
|
53
|
+
*
|
|
54
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreQueryController.list
|
|
55
|
+
*/
|
|
56
|
+
list: {
|
|
57
|
+
methodKind: "unary";
|
|
58
|
+
input: typeof ListDatastoresRequestSchema;
|
|
59
|
+
output: typeof DatastoreListSchema;
|
|
60
|
+
};
|
|
61
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/datastore/v1/query.proto (package ai.stigmer.agentic.datastore.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_agentic_datastore_v1_api } from "./api_pb.js";
|
|
6
|
+
import { file_ai_stigmer_agentic_datastore_v1_io } from "./io_pb.js";
|
|
7
|
+
import { file_ai_stigmer_commons_apiresource_io } from "../../../commons/apiresource/io_pb.js";
|
|
8
|
+
import { file_ai_stigmer_commons_apiresource_rpc_service_options } from "../../../commons/apiresource/rpc_service_options_pb.js";
|
|
9
|
+
import { file_ai_stigmer_commons_rpc_method_options } from "../../../commons/rpc/method_options_pb.js";
|
|
10
|
+
/**
|
|
11
|
+
* Describes the file ai/stigmer/agentic/datastore/v1/query.proto.
|
|
12
|
+
*/
|
|
13
|
+
export const file_ai_stigmer_agentic_datastore_v1_query = /*@__PURE__*/ fileDesc("CithaS9zdGlnbWVyL2FnZW50aWMvZGF0YXN0b3JlL3YxL3F1ZXJ5LnByb3RvEh9haS5zdGlnbWVyLmFnZW50aWMuZGF0YXN0b3JlLnYxMqMDChhEYXRhc3RvcmVRdWVyeUNvbnRyb2xsZXISkAEKA2dldBItLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZUlkGiouYWkuc3RpZ21lci5hZ2VudGljLmRhdGFzdG9yZS52MS5EYXRhc3RvcmUiLsK4GCoIARAxIgV2YWx1ZSoddW5hdXRob3JpemVkIHRvIGdldCBkYXRhc3RvcmUSeAoOZ2V0QnlSZWZlcmVuY2USNC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VSZWZlcmVuY2UaKi5haS5zdGlnbWVyLmFnZW50aWMuZGF0YXN0b3JlLnYxLkRhdGFzdG9yZSIE0LgYARJ0CgRsaXN0EjYuYWkuc3RpZ21lci5hZ2VudGljLmRhdGFzdG9yZS52MS5MaXN0RGF0YXN0b3Jlc1JlcXVlc3QaLi5haS5zdGlnbWVyLmFnZW50aWMuZGF0YXN0b3JlLnYxLkRhdGFzdG9yZUxpc3QiBNC4GAEaBKD/KzFiBnByb3RvMw", [file_ai_stigmer_agentic_datastore_v1_api, file_ai_stigmer_agentic_datastore_v1_io, file_ai_stigmer_commons_apiresource_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
|
|
14
|
+
/**
|
|
15
|
+
* DatastoreQueryController handles read operations for datastores.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
* These RPCs read the datastore resource (spec + status), not its
|
|
19
|
+
* records. Record reads go through DatastoreRecordQueryController.
|
|
20
|
+
*
|
|
21
|
+
* @generated from service ai.stigmer.agentic.datastore.v1.DatastoreQueryController
|
|
22
|
+
*/
|
|
23
|
+
export const DatastoreQueryController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_agentic_datastore_v1_query, 0);
|
|
24
|
+
//# sourceMappingURL=query_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/datastore/v1/query_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,4HAA4H;AAC5H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAC;AAEvE,OAAO,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AAErE,OAAO,EAAE,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAY,aAAa,CAC9E,QAAQ,CAAC,wqBAAwqB,EAAE,CAAC,wCAAwC,EAAE,uCAAuC,EAAE,sCAAsC,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAEv5B;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,wBAAwB,GA2ChC,aAAa,CAChB,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DatastoreRecordCommandController handles record writes for datastores.
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
* Same two-layer, in-handler authorization as
|
|
6
|
+
* DatastoreRecordQueryController (see its service comment; the RPCs are
|
|
7
|
+
* slug-addressed and credential-class dispatched, hence
|
|
8
|
+
* is_skip_authorization). Writes additionally evaluate declared
|
|
9
|
+
* constraints inside the write transaction — BEGIN IMMEDIATE in OSS
|
|
10
|
+
* SQLite, FOR SHARE row locks or SERIALIZABLE in cloud Postgres — so no
|
|
11
|
+
* write commits against a stale exists check and uniques are always
|
|
12
|
+
* substrate-enforced. Violations return the constraint's declared
|
|
13
|
+
* agent-relayable message with ErrorInfo (reason CONSTRAINT_VIOLATION +
|
|
14
|
+
* constraint name): unique → ALREADY_EXISTS, check/exists →
|
|
15
|
+
* FAILED_PRECONDITION. Record tools never delete structures — dropping
|
|
16
|
+
* collections or datastores is the resource layer's guarded delete.
|
|
17
|
+
*
|
|
18
|
+
* @generated from service ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController
|
|
19
|
+
*/
|
|
20
|
+
export declare const DatastoreRecordCommandController: {
|
|
21
|
+
readonly typeName: "ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController";
|
|
22
|
+
readonly methods: {
|
|
23
|
+
/**
|
|
24
|
+
* Insert a record into a collection.
|
|
25
|
+
*
|
|
26
|
+
* Requires the insert verb on the collection. System fields are
|
|
27
|
+
* server-stamped; supplying them is rejected. Returns the full record
|
|
28
|
+
* envelope.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
* The only non-idempotent record operation; declared uniques are the
|
|
32
|
+
* duplicate guard (a retried insert violating a unique returns
|
|
33
|
+
* ALREADY_EXISTS, never a duplicate). Insert idempotency keys are a
|
|
34
|
+
* recorded growth path.
|
|
35
|
+
*
|
|
36
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController.insertRecord
|
|
37
|
+
*/
|
|
38
|
+
readonly insertRecord: {
|
|
39
|
+
readonly name: "insertRecord";
|
|
40
|
+
readonly I: any;
|
|
41
|
+
readonly O: any;
|
|
42
|
+
readonly kind: any;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Update a record by id with a partial merge.
|
|
46
|
+
*
|
|
47
|
+
* Requires the update verb on the collection (own scope limits it to
|
|
48
|
+
* records the caller created). Only supplied fields change; an
|
|
49
|
+
* explicit null clears a field; constraints evaluate on the merged
|
|
50
|
+
* result. Returns the full record envelope.
|
|
51
|
+
*
|
|
52
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController.updateRecord
|
|
53
|
+
*/
|
|
54
|
+
readonly updateRecord: {
|
|
55
|
+
readonly name: "updateRecord";
|
|
56
|
+
readonly I: any;
|
|
57
|
+
readonly O: any;
|
|
58
|
+
readonly kind: any;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Delete a record by id.
|
|
62
|
+
*
|
|
63
|
+
* Requires the delete verb on the collection (own scope limits it to
|
|
64
|
+
* records the caller created). Returns the deleted record's envelope.
|
|
65
|
+
*
|
|
66
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController.deleteRecord
|
|
67
|
+
*/
|
|
68
|
+
readonly deleteRecord: {
|
|
69
|
+
readonly name: "deleteRecord";
|
|
70
|
+
readonly I: any;
|
|
71
|
+
readonly O: any;
|
|
72
|
+
readonly kind: any;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/datastore/v1/record_command.proto (package ai.stigmer.agentic.datastore.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { DeleteRecordRequest, InsertRecordRequest, RecordEnvelope, UpdateRecordRequest } from "./record_io_pbjs";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* DatastoreRecordCommandController handles record writes for datastores.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
* Same two-layer, in-handler authorization as
|
|
12
|
+
* DatastoreRecordQueryController (see its service comment; the RPCs are
|
|
13
|
+
* slug-addressed and credential-class dispatched, hence
|
|
14
|
+
* is_skip_authorization). Writes additionally evaluate declared
|
|
15
|
+
* constraints inside the write transaction — BEGIN IMMEDIATE in OSS
|
|
16
|
+
* SQLite, FOR SHARE row locks or SERIALIZABLE in cloud Postgres — so no
|
|
17
|
+
* write commits against a stale exists check and uniques are always
|
|
18
|
+
* substrate-enforced. Violations return the constraint's declared
|
|
19
|
+
* agent-relayable message with ErrorInfo (reason CONSTRAINT_VIOLATION +
|
|
20
|
+
* constraint name): unique → ALREADY_EXISTS, check/exists →
|
|
21
|
+
* FAILED_PRECONDITION. Record tools never delete structures — dropping
|
|
22
|
+
* collections or datastores is the resource layer's guarded delete.
|
|
23
|
+
*
|
|
24
|
+
* @generated from service ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController
|
|
25
|
+
*/
|
|
26
|
+
export const DatastoreRecordCommandController = {
|
|
27
|
+
typeName: "ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController",
|
|
28
|
+
methods: {
|
|
29
|
+
/**
|
|
30
|
+
* Insert a record into a collection.
|
|
31
|
+
*
|
|
32
|
+
* Requires the insert verb on the collection. System fields are
|
|
33
|
+
* server-stamped; supplying them is rejected. Returns the full record
|
|
34
|
+
* envelope.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
* The only non-idempotent record operation; declared uniques are the
|
|
38
|
+
* duplicate guard (a retried insert violating a unique returns
|
|
39
|
+
* ALREADY_EXISTS, never a duplicate). Insert idempotency keys are a
|
|
40
|
+
* recorded growth path.
|
|
41
|
+
*
|
|
42
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController.insertRecord
|
|
43
|
+
*/
|
|
44
|
+
insertRecord: {
|
|
45
|
+
name: "insertRecord",
|
|
46
|
+
I: InsertRecordRequest,
|
|
47
|
+
O: RecordEnvelope,
|
|
48
|
+
kind: MethodKind.Unary,
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* Update a record by id with a partial merge.
|
|
52
|
+
*
|
|
53
|
+
* Requires the update verb on the collection (own scope limits it to
|
|
54
|
+
* records the caller created). Only supplied fields change; an
|
|
55
|
+
* explicit null clears a field; constraints evaluate on the merged
|
|
56
|
+
* result. Returns the full record envelope.
|
|
57
|
+
*
|
|
58
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController.updateRecord
|
|
59
|
+
*/
|
|
60
|
+
updateRecord: {
|
|
61
|
+
name: "updateRecord",
|
|
62
|
+
I: UpdateRecordRequest,
|
|
63
|
+
O: RecordEnvelope,
|
|
64
|
+
kind: MethodKind.Unary,
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* Delete a record by id.
|
|
68
|
+
*
|
|
69
|
+
* Requires the delete verb on the collection (own scope limits it to
|
|
70
|
+
* records the caller created). Returns the deleted record's envelope.
|
|
71
|
+
*
|
|
72
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController.deleteRecord
|
|
73
|
+
*/
|
|
74
|
+
deleteRecord: {
|
|
75
|
+
name: "deleteRecord",
|
|
76
|
+
I: DeleteRecordRequest,
|
|
77
|
+
O: RecordEnvelope,
|
|
78
|
+
kind: MethodKind.Unary,
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=record_command_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record_command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/datastore/v1/record_command_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,qIAAqI;AACrI,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACjH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,QAAQ,EAAE,kEAAkE;IAC5E,OAAO,EAAE;QACP;;;;;;;;;;;;;;WAcG;QACH,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,CAAC,EAAE,mBAAmB;YACtB,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;WASG;QACH,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,CAAC,EAAE,mBAAmB;YACtB,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;WAOG;QACH,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,CAAC,EAAE,mBAAmB;YACtB,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { DeleteRecordRequestSchema, InsertRecordRequestSchema, RecordEnvelopeSchema, UpdateRecordRequestSchema } from "./record_io_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file ai/stigmer/agentic/datastore/v1/record_command.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_ai_stigmer_agentic_datastore_v1_record_command: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* DatastoreRecordCommandController handles record writes for datastores.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
* Same two-layer, in-handler authorization as
|
|
12
|
+
* DatastoreRecordQueryController (see its service comment; the RPCs are
|
|
13
|
+
* slug-addressed and credential-class dispatched, hence
|
|
14
|
+
* is_skip_authorization). Writes additionally evaluate declared
|
|
15
|
+
* constraints inside the write transaction — BEGIN IMMEDIATE in OSS
|
|
16
|
+
* SQLite, FOR SHARE row locks or SERIALIZABLE in cloud Postgres — so no
|
|
17
|
+
* write commits against a stale exists check and uniques are always
|
|
18
|
+
* substrate-enforced. Violations return the constraint's declared
|
|
19
|
+
* agent-relayable message with ErrorInfo (reason CONSTRAINT_VIOLATION +
|
|
20
|
+
* constraint name): unique → ALREADY_EXISTS, check/exists →
|
|
21
|
+
* FAILED_PRECONDITION. Record tools never delete structures — dropping
|
|
22
|
+
* collections or datastores is the resource layer's guarded delete.
|
|
23
|
+
*
|
|
24
|
+
* @generated from service ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController
|
|
25
|
+
*/
|
|
26
|
+
export declare const DatastoreRecordCommandController: GenService<{
|
|
27
|
+
/**
|
|
28
|
+
* Insert a record into a collection.
|
|
29
|
+
*
|
|
30
|
+
* Requires the insert verb on the collection. System fields are
|
|
31
|
+
* server-stamped; supplying them is rejected. Returns the full record
|
|
32
|
+
* envelope.
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
* The only non-idempotent record operation; declared uniques are the
|
|
36
|
+
* duplicate guard (a retried insert violating a unique returns
|
|
37
|
+
* ALREADY_EXISTS, never a duplicate). Insert idempotency keys are a
|
|
38
|
+
* recorded growth path.
|
|
39
|
+
*
|
|
40
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController.insertRecord
|
|
41
|
+
*/
|
|
42
|
+
insertRecord: {
|
|
43
|
+
methodKind: "unary";
|
|
44
|
+
input: typeof InsertRecordRequestSchema;
|
|
45
|
+
output: typeof RecordEnvelopeSchema;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Update a record by id with a partial merge.
|
|
49
|
+
*
|
|
50
|
+
* Requires the update verb on the collection (own scope limits it to
|
|
51
|
+
* records the caller created). Only supplied fields change; an
|
|
52
|
+
* explicit null clears a field; constraints evaluate on the merged
|
|
53
|
+
* result. Returns the full record envelope.
|
|
54
|
+
*
|
|
55
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController.updateRecord
|
|
56
|
+
*/
|
|
57
|
+
updateRecord: {
|
|
58
|
+
methodKind: "unary";
|
|
59
|
+
input: typeof UpdateRecordRequestSchema;
|
|
60
|
+
output: typeof RecordEnvelopeSchema;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Delete a record by id.
|
|
64
|
+
*
|
|
65
|
+
* Requires the delete verb on the collection (own scope limits it to
|
|
66
|
+
* records the caller created). Returns the deleted record's envelope.
|
|
67
|
+
*
|
|
68
|
+
* @generated from rpc ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController.deleteRecord
|
|
69
|
+
*/
|
|
70
|
+
deleteRecord: {
|
|
71
|
+
methodKind: "unary";
|
|
72
|
+
input: typeof DeleteRecordRequestSchema;
|
|
73
|
+
output: typeof RecordEnvelopeSchema;
|
|
74
|
+
};
|
|
75
|
+
}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/datastore/v1/record_command.proto (package ai.stigmer.agentic.datastore.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_agentic_datastore_v1_record_io } from "./record_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/datastore/v1/record_command.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_ai_stigmer_agentic_datastore_v1_record_command = /*@__PURE__*/ fileDesc("CjRhaS9zdGlnbWVyL2FnZW50aWMvZGF0YXN0b3JlL3YxL3JlY29yZF9jb21tYW5kLnByb3RvEh9haS5zdGlnbWVyLmFnZW50aWMuZGF0YXN0b3JlLnYxMp8DCiBEYXRhc3RvcmVSZWNvcmRDb21tYW5kQ29udHJvbGxlchJ7CgxpbnNlcnRSZWNvcmQSNC5haS5zdGlnbWVyLmFnZW50aWMuZGF0YXN0b3JlLnYxLkluc2VydFJlY29yZFJlcXVlc3QaLy5haS5zdGlnbWVyLmFnZW50aWMuZGF0YXN0b3JlLnYxLlJlY29yZEVudmVsb3BlIgTQuBgBEnsKDHVwZGF0ZVJlY29yZBI0LmFpLnN0aWdtZXIuYWdlbnRpYy5kYXRhc3RvcmUudjEuVXBkYXRlUmVjb3JkUmVxdWVzdBovLmFpLnN0aWdtZXIuYWdlbnRpYy5kYXRhc3RvcmUudjEuUmVjb3JkRW52ZWxvcGUiBNC4GAESewoMZGVsZXRlUmVjb3JkEjQuYWkuc3RpZ21lci5hZ2VudGljLmRhdGFzdG9yZS52MS5EZWxldGVSZWNvcmRSZXF1ZXN0Gi8uYWkuc3RpZ21lci5hZ2VudGljLmRhdGFzdG9yZS52MS5SZWNvcmRFbnZlbG9wZSIE0LgYARoEoP8rMWIGcHJvdG8z", [file_ai_stigmer_agentic_datastore_v1_record_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
|
|
12
|
+
/**
|
|
13
|
+
* DatastoreRecordCommandController handles record writes for datastores.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
* Same two-layer, in-handler authorization as
|
|
17
|
+
* DatastoreRecordQueryController (see its service comment; the RPCs are
|
|
18
|
+
* slug-addressed and credential-class dispatched, hence
|
|
19
|
+
* is_skip_authorization). Writes additionally evaluate declared
|
|
20
|
+
* constraints inside the write transaction — BEGIN IMMEDIATE in OSS
|
|
21
|
+
* SQLite, FOR SHARE row locks or SERIALIZABLE in cloud Postgres — so no
|
|
22
|
+
* write commits against a stale exists check and uniques are always
|
|
23
|
+
* substrate-enforced. Violations return the constraint's declared
|
|
24
|
+
* agent-relayable message with ErrorInfo (reason CONSTRAINT_VIOLATION +
|
|
25
|
+
* constraint name): unique → ALREADY_EXISTS, check/exists →
|
|
26
|
+
* FAILED_PRECONDITION. Record tools never delete structures — dropping
|
|
27
|
+
* collections or datastores is the resource layer's guarded delete.
|
|
28
|
+
*
|
|
29
|
+
* @generated from service ai.stigmer.agentic.datastore.v1.DatastoreRecordCommandController
|
|
30
|
+
*/
|
|
31
|
+
export const DatastoreRecordCommandController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_agentic_datastore_v1_record_command, 0);
|
|
32
|
+
//# sourceMappingURL=record_command_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record_command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/datastore/v1/record_command_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,qIAAqI;AACrI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,8CAA8C,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,mDAAmD,GAAY,aAAa,CACvF,QAAQ,CAAC,8qBAA8qB,EAAE,CAAC,8CAA8C,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAEl1B;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAiDxC,aAAa,CAChB,WAAW,CAAC,mDAAmD,EAAE,CAAC,CAAC,CAAC"}
|