@loams/client 0.1.0-preview.2 → 0.1.1

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 (49) hide show
  1. package/README.md +85 -1
  2. package/dist/app.d.ts +149 -0
  3. package/dist/app.js +317 -0
  4. package/dist/builders/filter.d.ts +96 -0
  5. package/dist/builders/filter.js +190 -0
  6. package/dist/builders/schema.d.ts +50 -0
  7. package/dist/builders/schema.js +92 -0
  8. package/dist/builders/search.d.ts +159 -0
  9. package/dist/builders/search.js +307 -0
  10. package/dist/gen/facade.d.ts +293 -4
  11. package/dist/gen/facade.js +223 -1
  12. package/dist/handle.d.ts +67 -0
  13. package/dist/handle.js +107 -0
  14. package/dist/index.d.ts +13 -6
  15. package/dist/index.js +14 -5
  16. package/dist/loams.d.ts +100 -5
  17. package/dist/loams.js +135 -11
  18. package/dist/node.d.ts +1 -1
  19. package/dist/node.js +3 -2
  20. package/dist/runtime/batch.d.ts +29 -0
  21. package/dist/runtime/batch.js +95 -0
  22. package/dist/runtime/call.d.ts +63 -9
  23. package/dist/runtime/call.js +243 -41
  24. package/dist/runtime/consistency.d.ts +65 -11
  25. package/dist/runtime/consistency.js +212 -46
  26. package/dist/runtime/errors.d.ts +29 -2
  27. package/dist/runtime/errors.js +26 -0
  28. package/dist/runtime/pagination.js +8 -2
  29. package/dist/runtime/subscribe.d.ts +37 -0
  30. package/dist/runtime/subscribe.js +128 -0
  31. package/dist/runtime/transports.d.ts +21 -2
  32. package/dist/runtime/transports.js +30 -2
  33. package/dist/vendor/proto/collection-v1.d.ts +3 -0
  34. package/dist/vendor/proto/collection-v1.js +7 -0
  35. package/dist/vendor/proto/gen/loams/collection/v1/collection_pb.d.ts +1610 -0
  36. package/dist/vendor/proto/gen/loams/collection/v1/collection_pb.js +399 -0
  37. package/dist/vendor/proto/gen/loams/collection/v1/document_pb.d.ts +1054 -0
  38. package/dist/vendor/proto/gen/loams/collection/v1/document_pb.js +327 -0
  39. package/dist/vendor/proto/gen/loams/collection/v1/query_pb.d.ts +2101 -0
  40. package/dist/vendor/proto/gen/loams/collection/v1/query_pb.js +608 -0
  41. package/dist/vendor/proto/gen/loams/graph/v1/graph_pb.d.ts +2299 -0
  42. package/dist/vendor/proto/gen/loams/graph/v1/graph_pb.js +596 -0
  43. package/dist/vendor/proto/gen/loams/operations/v1/operations_pb.d.ts +399 -0
  44. package/dist/vendor/proto/gen/loams/operations/v1/operations_pb.js +118 -0
  45. package/dist/vendor/proto/gen/loams/sql/v1/sql_pb.d.ts +182 -0
  46. package/dist/vendor/proto/gen/loams/sql/v1/sql_pb.js +72 -0
  47. package/dist/vendor/proto/gen/loams/stream/v1/stream_pb.d.ts +688 -0
  48. package/dist/vendor/proto/gen/loams/stream/v1/stream_pb.js +180 -0
  49. package/package.json +2 -2
@@ -9,8 +9,13 @@ import type { DescService } from '@bufbuild/protobuf';
9
9
  import type { CallOptions } from '../runtime/call.js';
10
10
  import type { AddTeamMemberRequestSchema, AddTeamMemberResponse, CreateAgentRequestSchema, CreateAgentResponse, CreateEnvironmentRequestSchema, CreateEnvironmentResponse, CreateInvitationRequestSchema, CreateInvitationResponse, CreateKeyRequestSchema, CreateKeyResponse, CreateProjectRequestSchema, CreateProjectResponse, CreateServiceAccountRequestSchema, CreateServiceAccountResponse, CreateTeamRequestSchema, CreateTeamResponse, CreateTrustPolicyRequestSchema, CreateTrustPolicyResponse, GetAgentRequestSchema, GetAgentResponse, GetEnvironmentActivityRequestSchema, GetEnvironmentActivityResponse, GetEnvironmentRequestSchema, GetEnvironmentResponse, GetOrgRequestSchema, GetOrgResponse, GetProjectRequestSchema, GetProjectResponse, GetTeamRequestSchema, GetTeamResponse, GrantAccessRequestSchema, GrantAccessResponse, ListAccessRequestSchema, ListAccessResponse, ListAgentTokensRequestSchema, ListAgentTokensResponse, ListAgentsRequestSchema, ListAgentsResponse, ListAuditEventsRequestSchema, ListAuditEventsResponse, ListEnvironmentsRequestSchema, ListEnvironmentsResponse, ListInvitationsRequestSchema, ListInvitationsResponse, ListKeysRequestSchema, ListKeysResponse, ListMembersRequestSchema, ListMembersResponse, ListProjectsRequestSchema, ListProjectsResponse, ListServiceAccountsRequestSchema, ListServiceAccountsResponse, ListTeamsRequestSchema, ListTeamsResponse, ListTrustPoliciesRequestSchema, ListTrustPoliciesResponse, RemoveMemberRequestSchema, RemoveMemberResponse, ResumeAgentRequestSchema, ResumeAgentResponse, RevokeKeyRequestSchema, RevokeKeyResponse, RevokeTokenRequestSchema, RevokeTokenResponse, SuspendAgentRequestSchema, SuspendAgentResponse, UpdateAgentRequestSchema, UpdateAgentResponse, UpdateOrgRequestSchema, UpdateOrgResponse, WatchAuditEventsRequestSchema, WatchAuditEventsResponse } from '../vendor/proto/admin.js';
11
11
  import type { CompleteSetupRequestSchema, CompleteSetupResponse, CreateSessionRequestSchema, CreateSessionResponse, DecideConsentRequestSchema, DecideConsentResponse, DeleteSessionRequestSchema, DeleteSessionResponse, GetSessionRequestSchema, GetSessionResponse, ListProvidersRequestSchema, ListProvidersResponse } from '../vendor/proto/gen/loams/auth/v1/auth_pb.js';
12
+ import type { AddFieldsRequestSchema, AddFieldsResponse, CollectionInfo, CountDocumentsRequestSchema, CountDocumentsResponse, CreateCollectionRequestSchema, CreateNamespaceRequestSchema, CreateNamespaceResponse, DeleteByFilterRequestSchema, DropCollectionRequestSchema, DropCollectionResponse, FilterWriteResponse, GetCollectionRequestSchema, GetDocumentsRequestSchema, GetDocumentsResponse, ListCollectionsRequestSchema, ListCollectionsResponse, ListNamespacesRequestSchema, ListNamespacesResponse, ListVersionsRequestSchema, ListVersionsResponse, PatchByFilterRequestSchema, ScanPlan, ScanRequestSchema, ScrollDocumentsRequestSchema, ScrollDocumentsResponse, SearchRequestSchema, SearchResponse, SetHotRequestSchema, SetHotResponse, UpdateAliasesRequestSchema, UpdateAliasesResponse, WarmCollectionRequestSchema, WarmCollectionResponse, WriteDocumentsRequestSchema, WriteDocumentsResponse } from '../vendor/proto/collection-v1.js';
13
+ import type { CreateGraphRequestSchema, DeleteGraphRequestSchema, ExecuteBatchRequestSchema, ExecuteBatchResponse, ExecuteRequestSchema, ExecuteResponse, ExecuteStreamRequestSchema, ExplainRequestSchema, GetGraphRequestSchema, GetSchemaRequestSchema, Graph, GraphSchema, ListGraphsRequestSchema, ListGraphsResponse, Plan, ResultChunk, UpdateGraphRequestSchema } from '../vendor/proto/gen/loams/graph/v1/graph_pb.js';
12
14
  import type { GetInstanceRequestSchema, GetInstanceResponse, WhoAmIRequestSchema, WhoAmIResponse } from '../vendor/proto/gen/loams/instance/v1/instance_pb.js';
13
- import type { ActivateDeploymentRequestSchema, ActivateDeploymentResponse, DeployRequestSchema, DeployResponse, GetDeploymentRequestSchema, GetDeploymentResponse, GetIndexStatusRequestSchema, GetIndexStatusResponse, ListDeploymentsRequestSchema, ListDeploymentsResponse, ModifyQuerySetRequestSchema, ModifyQuerySetResponse, MutateRequestSchema, MutateResponse, QueryRequestSchema, QueryResponse, TailLogsRequestSchema, TailLogsResponse, Transition, WatchRequestSchema } from '@loams/live/live';
15
+ import type { ActivateDeploymentRequestSchema, ActivateDeploymentResponse, AuthenticateRequestSchema, AuthenticateResponse, CreateAppRequestSchema, CreateAppResponse, DeleteAppRequestSchema, DeleteAppResponse, DeployRequestSchema, DeployResponse, GetAppRequestSchema, GetAppResponse, GetDeploymentRequestSchema, GetDeploymentResponse, GetIndexStatusRequestSchema, GetIndexStatusResponse, ListAppsRequestSchema, ListAppsResponse, ListDeploymentsRequestSchema, ListDeploymentsResponse, ModifyQuerySetRequestSchema, ModifyQuerySetResponse, MutateRequestSchema, MutateResponse, QueryRequestSchema, QueryResponse, TailLogsRequestSchema, TailLogsResponse, Transition, UpdateAppRequestSchema, UpdateAppResponse, WatchRequestSchema } from '@loams/live/live';
16
+ import type { QueryArrowRequestSchema, QueryArrowResponse, QueryRequestSchema as SqlV1QueryRequestSchema, QueryResponse as SqlV1QueryResponse } from '../vendor/proto/gen/loams/sql/v1/sql_pb.js';
17
+ import type { CreateStreamRequestSchema, CreateStreamResponse, DescribeStreamRequestSchema, DescribeStreamResponse, FetchCloudEventsRequestSchema, FetchCloudEventsResponse, FetchRequestSchema, FetchResponse, ListStreamsRequestSchema, ListStreamsResponse, ProduceCloudEventsRequestSchema, ProduceCloudEventsResponse, ProduceRequestSchema, ProduceResponse } from '../vendor/proto/gen/loams/stream/v1/stream_pb.js';
18
+ import type { Operation } from '../vendor/proto/gen/loams/operations/v1/operations_pb.js';
14
19
  /**
15
20
  * `loams.admin.agents` — Agents, their tokens and trust policies, and service accounts.
16
21
  *
@@ -257,6 +262,149 @@ export interface AuthModule {
257
262
  */
258
263
  listProviders(request: MessageInitShape<typeof ListProvidersRequestSchema>, options?: CallOptions): Promise<ListProvidersResponse>;
259
264
  }
265
+ /**
266
+ * `loams.collections` — Collections: schema, aliases, versions, scan plans and the hot tier.
267
+ *
268
+ * Wraps `loams.collection.v1.CollectionService`.
269
+ */
270
+ export interface CollectionsModule {
271
+ /** The SDK module, as it appears on `loams.collections`. */
272
+ readonly module: 'collections';
273
+ /** The service behind the module. */
274
+ readonly service: 'loams.collection.v1.CollectionService';
275
+ /** Whether the package's wire contract may still change. */
276
+ readonly unstable: false;
277
+ /**
278
+ * `loams.collection.v1.CollectionService/AddFields`, retried: safe.
279
+ */
280
+ addFields(request: MessageInitShape<typeof AddFieldsRequestSchema>, options?: CallOptions): Promise<AddFieldsResponse>;
281
+ /**
282
+ * `loams.collection.v1.CollectionService/CreateCollection`, retried: safe.
283
+ */
284
+ create(request: MessageInitShape<typeof CreateCollectionRequestSchema>, options?: CallOptions): Promise<CollectionInfo>;
285
+ /**
286
+ * `loams.collection.v1.CollectionService/DropCollection`, retried: safe.
287
+ */
288
+ drop(request: MessageInitShape<typeof DropCollectionRequestSchema>, options?: CallOptions): Promise<DropCollectionResponse>;
289
+ /**
290
+ * `loams.collection.v1.CollectionService/GetCollection`, retried: safe.
291
+ */
292
+ get(request: MessageInitShape<typeof GetCollectionRequestSchema>, options?: CallOptions): Promise<CollectionInfo>;
293
+ /**
294
+ * `loams.collection.v1.CollectionService/ListCollections`, retried: safe. AIP-158: page with `collections` and follow `next_page_token` through `loams.paginate`.
295
+ */
296
+ list(request: MessageInitShape<typeof ListCollectionsRequestSchema>, options?: CallOptions): Promise<ListCollectionsResponse>;
297
+ /**
298
+ * `loams.collection.v1.CollectionService/ListVersions`, retried: safe. AIP-158: page with `versions` and follow `next_page_token` through `loams.paginate`.
299
+ */
300
+ listVersions(request: MessageInitShape<typeof ListVersionsRequestSchema>, options?: CallOptions): Promise<ListVersionsResponse>;
301
+ /**
302
+ * `loams.collection.v1.CollectionService/Scan`, retried: manual.
303
+ */
304
+ scan(request: MessageInitShape<typeof ScanRequestSchema>, options?: CallOptions): Promise<ScanPlan>;
305
+ /**
306
+ * `loams.collection.v1.CollectionService/SetHot`, retried: safe.
307
+ */
308
+ setHot(request: MessageInitShape<typeof SetHotRequestSchema>, options?: CallOptions): Promise<SetHotResponse>;
309
+ /**
310
+ * `loams.collection.v1.CollectionService/UpdateAliases`, retried: safe.
311
+ */
312
+ updateAliases(request: MessageInitShape<typeof UpdateAliasesRequestSchema>, options?: CallOptions): Promise<UpdateAliasesResponse>;
313
+ /**
314
+ * `loams.collection.v1.CollectionService/WarmCollection`, retried: safe.
315
+ */
316
+ warm(request: MessageInitShape<typeof WarmCollectionRequestSchema>, options?: CallOptions): Promise<WarmCollectionResponse>;
317
+ }
318
+ /**
319
+ * `loams.documents` — Documents: write, get, scroll, count, delete by filter and patch by filter.
320
+ *
321
+ * Wraps `loams.collection.v1.DocumentService`.
322
+ */
323
+ export interface DocumentsModule {
324
+ /** The SDK module, as it appears on `loams.documents`. */
325
+ readonly module: 'documents';
326
+ /** The service behind the module. */
327
+ readonly service: 'loams.collection.v1.DocumentService';
328
+ /** Whether the package's wire contract may still change. */
329
+ readonly unstable: false;
330
+ /**
331
+ * `loams.collection.v1.DocumentService/CountDocuments`, retried: safe.
332
+ */
333
+ count(request: MessageInitShape<typeof CountDocumentsRequestSchema>, options?: CallOptions): Promise<CountDocumentsResponse>;
334
+ /**
335
+ * `loams.collection.v1.DocumentService/DeleteByFilter`, retried: manual.
336
+ */
337
+ deleteByFilter(request: MessageInitShape<typeof DeleteByFilterRequestSchema>, options?: CallOptions): Promise<FilterWriteResponse>;
338
+ /**
339
+ * `loams.collection.v1.DocumentService/GetDocuments`, retried: safe.
340
+ */
341
+ get(request: MessageInitShape<typeof GetDocumentsRequestSchema>, options?: CallOptions): Promise<GetDocumentsResponse>;
342
+ /**
343
+ * `loams.collection.v1.DocumentService/PatchByFilter`, retried: manual.
344
+ */
345
+ patchByFilter(request: MessageInitShape<typeof PatchByFilterRequestSchema>, options?: CallOptions): Promise<FilterWriteResponse>;
346
+ /**
347
+ * `loams.collection.v1.DocumentService/ScrollDocuments`, retried: safe.
348
+ */
349
+ scroll(request: MessageInitShape<typeof ScrollDocumentsRequestSchema>, options?: CallOptions): Promise<ScrollDocumentsResponse>;
350
+ /**
351
+ * `loams.collection.v1.DocumentService/WriteDocuments`, retried: manual.
352
+ */
353
+ write(request: MessageInitShape<typeof WriteDocumentsRequestSchema>, options?: CallOptions): Promise<WriteDocumentsResponse>;
354
+ }
355
+ /**
356
+ * `loams.graph` — Loams Graph: stored property graphs, queried with GQL.
357
+ *
358
+ * Wraps `loams.graph.v1.GraphAdminService`. Its wire contract may still change, so `buf breaking` skips it and an SDK marks it experimental (§44 §10.3).
359
+ */
360
+ export interface GraphModule {
361
+ /** The SDK module, as it appears on `loams.graph`. */
362
+ readonly module: 'graph';
363
+ /** The service behind the module. */
364
+ readonly service: 'loams.graph.v1.GraphAdminService';
365
+ /** Whether the package's wire contract may still change. */
366
+ readonly unstable: true;
367
+ /**
368
+ * `loams.graph.v1.GraphAdminService/CreateGraph`, retried: manual.
369
+ */
370
+ create(request: MessageInitShape<typeof CreateGraphRequestSchema>, options?: CallOptions): Promise<Graph>;
371
+ /**
372
+ * `loams.graph.v1.GraphAdminService/DeleteGraph`, retried: manual.
373
+ */
374
+ delete(request: MessageInitShape<typeof DeleteGraphRequestSchema>, options?: CallOptions): Promise<Operation>;
375
+ /**
376
+ * `loams.graph.v1.GraphService/Explain`, retried: safe.
377
+ */
378
+ explain(request: MessageInitShape<typeof ExplainRequestSchema>, options?: CallOptions): Promise<Plan>;
379
+ /**
380
+ * `loams.graph.v1.GraphAdminService/GetGraph`, retried: safe.
381
+ */
382
+ get(request: MessageInitShape<typeof GetGraphRequestSchema>, options?: CallOptions): Promise<Graph>;
383
+ /**
384
+ * `loams.graph.v1.GraphAdminService/ListGraphs`, retried: safe. AIP-158: page with `graphs` and follow `next_page_token` through `loams.paginate`.
385
+ */
386
+ list(request: MessageInitShape<typeof ListGraphsRequestSchema>, options?: CallOptions): Promise<ListGraphsResponse>;
387
+ /**
388
+ * `loams.graph.v1.GraphService/Execute`, retried: manual.
389
+ */
390
+ query(request: MessageInitShape<typeof ExecuteRequestSchema>, options?: CallOptions): Promise<ExecuteResponse>;
391
+ /**
392
+ * `loams.graph.v1.GraphService/ExecuteBatch`, retried: manual.
393
+ */
394
+ queryBatch(request: MessageInitShape<typeof ExecuteBatchRequestSchema>, options?: CallOptions): Promise<ExecuteBatchResponse>;
395
+ /**
396
+ * `loams.graph.v1.GraphService/ExecuteStream`, retried: manual.
397
+ */
398
+ queryStream(request: MessageInitShape<typeof ExecuteStreamRequestSchema>, options?: CallOptions): AsyncIterable<ResultChunk>;
399
+ /**
400
+ * `loams.graph.v1.GraphAdminService/GetSchema`, retried: safe.
401
+ */
402
+ schema(request: MessageInitShape<typeof GetSchemaRequestSchema>, options?: CallOptions): Promise<GraphSchema>;
403
+ /**
404
+ * `loams.graph.v1.GraphAdminService/UpdateGraph`, retried: manual.
405
+ */
406
+ update(request: MessageInitShape<typeof UpdateGraphRequestSchema>, options?: CallOptions): Promise<Graph>;
407
+ }
260
408
  /**
261
409
  * `loams.instance` — What this instance is, and who the caller is on it.
262
410
  *
@@ -290,6 +438,10 @@ export interface LiveModule {
290
438
  readonly service: 'loams.live.v1.LiveService';
291
439
  /** Whether the package's wire contract may still change. */
292
440
  readonly unstable: true;
441
+ /**
442
+ * `loams.live.v1.LiveService/Authenticate`, retried: manual.
443
+ */
444
+ authenticate(request: MessageInitShape<typeof AuthenticateRequestSchema>, options?: CallOptions): Promise<AuthenticateResponse>;
293
445
  /**
294
446
  * `loams.live.v1.LiveService/ModifyQuerySet`, retried: manual.
295
447
  */
@@ -300,7 +452,7 @@ export interface LiveModule {
300
452
  watch(request: MessageInitShape<typeof WatchRequestSchema>, options?: CallOptions): AsyncIterable<Transition>;
301
453
  }
302
454
  /**
303
- * `loams.live.admin` — Live administration: deploy, roll back, index status and function logs.
455
+ * `loams.live.admin` — Live administration: apps, deploy, roll back, index status and function logs.
304
456
  *
305
457
  * Wraps `loams.live.v1.LiveAdminService`. Its wire contract may still change, so `buf breaking` skips it and an SDK marks it experimental (§44 §10.3).
306
458
  */
@@ -315,10 +467,22 @@ export interface LiveAdminModule {
315
467
  * `loams.live.v1.LiveAdminService/ActivateDeployment`, retried: manual.
316
468
  */
317
469
  activateDeployment(request: MessageInitShape<typeof ActivateDeploymentRequestSchema>, options?: CallOptions): Promise<ActivateDeploymentResponse>;
470
+ /**
471
+ * `loams.live.v1.LiveAdminService/CreateApp`, retried: manual.
472
+ */
473
+ createApp(request: MessageInitShape<typeof CreateAppRequestSchema>, options?: CallOptions): Promise<CreateAppResponse>;
474
+ /**
475
+ * `loams.live.v1.LiveAdminService/DeleteApp`, retried: manual.
476
+ */
477
+ deleteApp(request: MessageInitShape<typeof DeleteAppRequestSchema>, options?: CallOptions): Promise<DeleteAppResponse>;
318
478
  /**
319
479
  * `loams.live.v1.LiveAdminService/Deploy`, retried: manual.
320
480
  */
321
481
  deploy(request: MessageInitShape<typeof DeployRequestSchema>, options?: CallOptions): Promise<DeployResponse>;
482
+ /**
483
+ * `loams.live.v1.LiveAdminService/GetApp`, retried: safe.
484
+ */
485
+ getApp(request: MessageInitShape<typeof GetAppRequestSchema>, options?: CallOptions): Promise<GetAppResponse>;
322
486
  /**
323
487
  * `loams.live.v1.LiveAdminService/GetDeployment`, retried: safe.
324
488
  */
@@ -327,6 +491,10 @@ export interface LiveAdminModule {
327
491
  * `loams.live.v1.LiveAdminService/GetIndexStatus`, retried: safe.
328
492
  */
329
493
  getIndexStatus(request: MessageInitShape<typeof GetIndexStatusRequestSchema>, options?: CallOptions): Promise<GetIndexStatusResponse>;
494
+ /**
495
+ * `loams.live.v1.LiveAdminService/ListApps`, retried: safe. AIP-158: page with `apps` and follow `next_page_token` through `loams.paginate`.
496
+ */
497
+ listApps(request: MessageInitShape<typeof ListAppsRequestSchema>, options?: CallOptions): Promise<ListAppsResponse>;
330
498
  /**
331
499
  * `loams.live.v1.LiveAdminService/ListDeployments`, retried: safe. AIP-158: page with `deployments` and follow `next_page_token` through `loams.paginate`.
332
500
  */
@@ -335,6 +503,110 @@ export interface LiveAdminModule {
335
503
  * `loams.live.v1.LiveAdminService/TailLogs`, retried: manual.
336
504
  */
337
505
  tailLogs(request: MessageInitShape<typeof TailLogsRequestSchema>, options?: CallOptions): AsyncIterable<TailLogsResponse>;
506
+ /**
507
+ * `loams.live.v1.LiveAdminService/UpdateApp`, retried: manual.
508
+ */
509
+ updateApp(request: MessageInitShape<typeof UpdateAppRequestSchema>, options?: CallOptions): Promise<UpdateAppResponse>;
510
+ }
511
+ /**
512
+ * `loams.namespaces` — Namespaces: the container every collection and stream lives in.
513
+ *
514
+ * Wraps `loams.collection.v1.NamespaceService`.
515
+ */
516
+ export interface NamespacesModule {
517
+ /** The SDK module, as it appears on `loams.namespaces`. */
518
+ readonly module: 'namespaces';
519
+ /** The service behind the module. */
520
+ readonly service: 'loams.collection.v1.NamespaceService';
521
+ /** Whether the package's wire contract may still change. */
522
+ readonly unstable: false;
523
+ /**
524
+ * `loams.collection.v1.NamespaceService/CreateNamespace`, retried: safe.
525
+ */
526
+ create(request: MessageInitShape<typeof CreateNamespaceRequestSchema>, options?: CallOptions): Promise<CreateNamespaceResponse>;
527
+ /**
528
+ * `loams.collection.v1.NamespaceService/ListNamespaces`, retried: safe. AIP-158: page with `namespaces` and follow `next_page_token` through `loams.paginate`.
529
+ */
530
+ list(request: MessageInitShape<typeof ListNamespacesRequestSchema>, options?: CallOptions): Promise<ListNamespacesResponse>;
531
+ }
532
+ /**
533
+ * `loams.search` — Queries: one search over one collection, dense, sparse, text or hybrid.
534
+ *
535
+ * Wraps `loams.collection.v1.QueryService`.
536
+ */
537
+ export interface SearchModule {
538
+ /** The SDK module, as it appears on `loams.search`. */
539
+ readonly module: 'search';
540
+ /** The service behind the module. */
541
+ readonly service: 'loams.collection.v1.QueryService';
542
+ /** Whether the package's wire contract may still change. */
543
+ readonly unstable: false;
544
+ /**
545
+ * `loams.collection.v1.QueryService/Search`, retried: safe.
546
+ */
547
+ query(request: MessageInitShape<typeof SearchRequestSchema>, options?: CallOptions): Promise<SearchResponse>;
548
+ }
549
+ /**
550
+ * `loams.sql` — SQL: one read-only statement over a namespace's collections, with parameters.
551
+ *
552
+ * Wraps `loams.sql.v1.SqlService`.
553
+ */
554
+ export interface SqlModule {
555
+ /** The SDK module, as it appears on `loams.sql`. */
556
+ readonly module: 'sql';
557
+ /** The service behind the module. */
558
+ readonly service: 'loams.sql.v1.SqlService';
559
+ /** Whether the package's wire contract may still change. */
560
+ readonly unstable: false;
561
+ /**
562
+ * `loams.sql.v1.SqlService/Query`, retried: safe.
563
+ */
564
+ query(request: MessageInitShape<typeof SqlV1QueryRequestSchema>, options?: CallOptions): Promise<SqlV1QueryResponse>;
565
+ /**
566
+ * `loams.sql.v1.SqlService/QueryArrow`, retried: safe.
567
+ */
568
+ queryArrow(request: MessageInitShape<typeof QueryArrowRequestSchema>, options?: CallOptions): Promise<QueryArrowResponse>;
569
+ }
570
+ /**
571
+ * `loams.streams` — Streams: create, list and describe a namespace's logs; produce and fetch records and CloudEvents.
572
+ *
573
+ * Wraps `loams.stream.v1.StreamService`.
574
+ */
575
+ export interface StreamsModule {
576
+ /** The SDK module, as it appears on `loams.streams`. */
577
+ readonly module: 'streams';
578
+ /** The service behind the module. */
579
+ readonly service: 'loams.stream.v1.StreamService';
580
+ /** Whether the package's wire contract may still change. */
581
+ readonly unstable: false;
582
+ /**
583
+ * `loams.stream.v1.StreamService/CreateStream`, retried: safe.
584
+ */
585
+ create(request: MessageInitShape<typeof CreateStreamRequestSchema>, options?: CallOptions): Promise<CreateStreamResponse>;
586
+ /**
587
+ * `loams.stream.v1.StreamService/Fetch`, retried: safe.
588
+ */
589
+ fetch(request: MessageInitShape<typeof FetchRequestSchema>, options?: CallOptions): Promise<FetchResponse>;
590
+ /**
591
+ * `loams.stream.v1.StreamService/FetchCloudEvents`, retried: safe.
592
+ */
593
+ fetchEvents(request: MessageInitShape<typeof FetchCloudEventsRequestSchema>, options?: CallOptions): Promise<FetchCloudEventsResponse>;
594
+ /**
595
+ * `loams.stream.v1.StreamService/DescribeStream`, retried: safe.
596
+ */
597
+ get(request: MessageInitShape<typeof DescribeStreamRequestSchema>, options?: CallOptions): Promise<DescribeStreamResponse>;
598
+ /**
599
+ * `loams.stream.v1.StreamService/ListStreams`, retried: safe. AIP-158: page with `streams` and follow `next_page_token` through `loams.paginate`.
600
+ */
601
+ list(request: MessageInitShape<typeof ListStreamsRequestSchema>, options?: CallOptions): Promise<ListStreamsResponse>;
602
+ /**
603
+ * `loams.stream.v1.StreamService/Produce`, retried: manual.
604
+ */
605
+ produce(request: MessageInitShape<typeof ProduceRequestSchema>, options?: CallOptions): Promise<ProduceResponse>;
606
+ /**
607
+ * `loams.stream.v1.StreamService/ProduceCloudEvents`, retried: manual.
608
+ */
609
+ produceEvents(request: MessageInitShape<typeof ProduceCloudEventsRequestSchema>, options?: CallOptions): Promise<ProduceCloudEventsResponse>;
338
610
  }
339
611
  /**
340
612
  * A second facade name for the same RPCs, exposed as `loams.tables`.
@@ -357,6 +629,23 @@ export interface TablesModule {
357
629
  */
358
630
  query(request: MessageInitShape<typeof QueryRequestSchema>, options?: CallOptions): Promise<QueryResponse>;
359
631
  }
632
+ /**
633
+ * A second facade name for the same RPCs, exposed as `loams.vector`.
634
+ *
635
+ * Wraps `loams.collection.v1.QueryService`.
636
+ */
637
+ export interface VectorModule {
638
+ /** The SDK module, as it appears on `loams.vector`. */
639
+ readonly module: 'vector';
640
+ /** The service behind the module. */
641
+ readonly service: 'loams.collection.v1.QueryService';
642
+ /** Whether the package's wire contract may still change. */
643
+ readonly unstable: false;
644
+ /**
645
+ * `loams.collection.v1.QueryService/Search`, retried: safe.
646
+ */
647
+ search(request: MessageInitShape<typeof SearchRequestSchema>, options?: CallOptions): Promise<SearchResponse>;
648
+ }
360
649
  /** One facade call, as the runtime dispatches it. */
361
650
  export interface CallBinding {
362
651
  /** The module the call is exposed on. */
@@ -400,13 +689,13 @@ export declare const MODULES: readonly ModuleBinding[];
400
689
  */
401
690
  export declare const SERVICE_DESCRIPTORS: Readonly<Record<string, DescService>>;
402
691
  /** The proto packages this SDK speaks, as `GetInstance.api_versions` names them. */
403
- export declare const PROTO_PACKAGES: readonly ["google.protobuf", "loams.admin.v1", "loams.approvals.v1", "loams.auth.v1", "loams.collection.v1", "loams.devices.v1", "loams.errors.v1", "loams.graph.v1", "loams.house.v1", "loams.instance.v1", "loams.live.v1", "loams.live.worker.v1", "loams.notifications.v1", "loams.operations.v1", "loams.options.v1", "loams.postgres.v1", "loams.repos.v1"];
692
+ export declare const PROTO_PACKAGES: readonly ["google.protobuf", "loams.admin.v1", "loams.approvals.v1", "loams.auth.v1", "loams.collection.v1", "loams.devices.v1", "loams.errors.v1", "loams.graph.v1", "loams.house.v1", "loams.instance.v1", "loams.live.v1", "loams.live.worker.v1", "loams.memory.v1", "loams.notifications.v1", "loams.operations.v1", "loams.options.v1", "loams.postgres.v1", "loams.repos.v1", "loams.sql.v1", "loams.stream.v1"];
404
693
  /**
405
694
  * Every `reason` in `docs/api/reasons.md` (design §44 §7.4, D611). Within
406
695
  * an API major version a reason is never renamed and never removed, so
407
696
  * this union only grows; a caller switching on it is exhaustive.
408
697
  */
409
- export declare const REASONS: readonly ["approval_expired", "approval_already_decided", "approval_stale_revision", "requester_cannot_approve", "decision_proof_invalid", "step_up_required", "reason_required", "invalid_decision", "pairing_expired", "pairing_used", "device_revoked", "push_target_unknown", "not_implemented", "feature_not_in_variant", "house_not_configured", "house_syntax_error", "house_unknown_table", "house_unknown_database", "house_access_denied", "house_read_only", "house_timeout", "house_memory_limit", "house_too_many_queries", "house_quota_exceeded", "house_disabled_function", "house_cancelled", "house_query_not_found", "house_query_failed", "project_not_found", "branch_has_children", "branch_protected", "lsn_out_of_retention", "endpoint_exists_for_branch", "compute_start_failed", "quota_exceeded", "storage_unavailable", "secret_already_issued", "repo_not_found", "repo_already_exists", "repo_deleting", "ref_stale", "ref_protected", "out_of_scope", "object_format_unsupported", "fork_too_deep", "sequencer_unavailable", "idempotency_key_reused", "workspace_not_found", "workspace_fenced", "workspace_read_only", "workspace_name_taken", "object_missing", "secret_detected", "env_unsealed", "env_access_denied", "env_foreign_reference", "live_bad_cursor", "live_worker_crashed", "live_deploy_conflict", "live_schema_violation", "live_index_not_ready", "role_required", "setup_required", "token_missing", "token_malformed", "token_revoked", "token_not_yet_valid", "token_bad_signature", "token_wrong_audience", "token_wrong_issuer", "token_unknown_key", "token_algorithm_not_allowed", "api_key_invalid", "credential_not_accepted", "credential_in_query_string", "csrf_token_invalid", "principal_not_allowed", "cors_origin_not_allowed", "auth_unavailable", "invalid_argument", "not_found", "already_exists", "permission_denied", "token_expired", "unauthenticated", "failed_precondition", "resource_exhausted", "unavailable", "deadline_exceeded", "aborted", "internal"];
698
+ export declare const REASONS: readonly ["approval_expired", "approval_already_decided", "approval_stale_revision", "requester_cannot_approve", "decision_proof_invalid", "step_up_required", "reason_required", "invalid_decision", "pairing_expired", "pairing_used", "device_revoked", "push_target_unknown", "not_implemented", "feature_not_in_variant", "house_not_configured", "house_syntax_error", "house_unknown_table", "house_unknown_database", "house_access_denied", "house_read_only", "house_timeout", "house_memory_limit", "house_too_many_queries", "house_quota_exceeded", "house_disabled_function", "house_cancelled", "house_query_not_found", "house_query_failed", "project_not_found", "branch_has_children", "branch_protected", "lsn_out_of_retention", "endpoint_exists_for_branch", "compute_start_failed", "quota_exceeded", "storage_unavailable", "secret_already_issued", "repo_not_found", "repo_already_exists", "repo_deleting", "ref_stale", "ref_protected", "out_of_scope", "object_format_unsupported", "fork_too_deep", "sequencer_unavailable", "idempotency_key_reused", "workspace_not_found", "workspace_fenced", "batch_partially_applied", "workspace_read_only", "workspace_name_taken", "object_missing", "secret_detected", "env_unsealed", "env_access_denied", "env_foreign_reference", "memory_store_not_found", "memory_space_not_found", "memory_space_limit", "memory_managed_object", "memory_block_version_mismatch", "memory_block_too_large", "memory_core_budget_exceeded", "memory_content_too_large", "memory_secret_detected", "memory_pii_refused", "memory_model_not_configured", "memory_model_not_local", "memory_token_budget_exhausted", "memory_extraction_failed", "memory_too_many_spaces", "memory_cross_space_write", "memory_not_yet_available", "code_repo_not_indexed", "code_index_building", "code_change_too_large", "code_language_unsupported", "code_scip_invalid", "live_bad_cursor", "live_worker_crashed", "live_deploy_conflict", "live_schema_violation", "filter_conflict", "search_after_needs_tiebreak", "invalid_consistency_token", "namespace_required", "sql_param_count", "live_index_not_ready", "live_app_disabled", "live_app_exists", "live_function_error", "live_function_timeout", "client_deadline_exceeded", "live_function_out_of_memory", "live_limit_exceeded", "result_too_large", "live_app_mismatch", "live_origin_not_allowed", "session_rotate", "session_gone", "node_draining", "role_required", "setup_required", "token_missing", "token_malformed", "token_revoked", "token_not_yet_valid", "token_bad_signature", "token_wrong_audience", "token_wrong_issuer", "token_unknown_key", "token_algorithm_not_allowed", "api_key_invalid", "credential_not_accepted", "credential_in_query_string", "csrf_token_invalid", "principal_not_allowed", "cors_origin_not_allowed", "auth_unavailable", "invalid_argument", "not_found", "already_exists", "permission_denied", "token_expired", "unauthenticated", "failed_precondition", "resource_exhausted", "unavailable", "deadline_exceeded", "aborted", "internal"];
410
699
  /** A stable, machine-readable cause of a failed RPC. */
411
700
  export type Reason = (typeof REASONS)[number];
412
701
  /** The Connect code each reason is raised under, from the same registry. */