@lifesi/genesis 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/beacons.d.ts +46 -0
  2. package/dist/beacons.js +20 -0
  3. package/dist/client.d.ts +7669 -1635
  4. package/dist/client.js +54 -5
  5. package/dist/dials.d.ts +171 -1
  6. package/dist/dials.js +40 -0
  7. package/dist/fleets.d.ts +109 -1
  8. package/dist/fleets.js +89 -1
  9. package/dist/flocks.d.ts +73 -0
  10. package/dist/flocks.js +22 -0
  11. package/dist/generated/operations.d.ts +7669 -1635
  12. package/dist/generated/operations.js +9193 -1691
  13. package/dist/generated/schema.d.ts +16979 -5698
  14. package/dist/genesis.d.ts +795 -13
  15. package/dist/genesis.js +21 -0
  16. package/dist/genesis.openapi.json +23483 -7599
  17. package/dist/henry.d.ts +7 -0
  18. package/dist/henry.js +23 -0
  19. package/dist/hives-cells.d.ts +127 -0
  20. package/dist/hives-cells.js +151 -0
  21. package/dist/hives-environment.d.ts +28 -0
  22. package/dist/hives-environment.js +58 -0
  23. package/dist/hives-functions.d.ts +1 -1
  24. package/dist/hives-functions.js +3 -1
  25. package/dist/hives-marketplace.d.ts +128 -0
  26. package/dist/hives-marketplace.js +187 -0
  27. package/dist/hives-node.js +2 -0
  28. package/dist/hives-operations.d.ts +304 -0
  29. package/dist/hives-operations.js +39 -0
  30. package/dist/hives-queues.d.ts +121 -0
  31. package/dist/hives-queues.js +106 -0
  32. package/dist/hives-resources-transport.d.ts +18 -0
  33. package/dist/hives-resources-transport.js +165 -0
  34. package/dist/hives-runtimes.d.ts +34 -0
  35. package/dist/hives-runtimes.js +32 -0
  36. package/dist/hives-volumes.d.ts +64 -0
  37. package/dist/hives-volumes.js +117 -0
  38. package/dist/index.d.ts +8 -1
  39. package/dist/index.js +3 -0
  40. package/dist/runner-grant.d.ts +10 -0
  41. package/dist/runner-grant.js +133 -0
  42. package/dist/runner.d.ts +16 -0
  43. package/dist/runner.js +4 -0
  44. package/package.json +6 -1
package/dist/genesis.d.ts CHANGED
@@ -21,6 +21,136 @@ export declare class Genesis extends GenesisClient {
21
21
  headers?: Record<string, string>;
22
22
  }) => Promise<import("./types.js").OperationOutput<K>>;
23
23
  readonly dials: {
24
+ routing: {
25
+ list: (scope: import("./dials.js").DialsScope) => Promise<{
26
+ ok: true;
27
+ scope: components["schemas"]["Dials.Scope"];
28
+ rules: components["schemas"]["Dials.RoutingRule"][];
29
+ }>;
30
+ create: (body: In<"dials_createRoutingRule">["body"]) => Promise<{
31
+ ok: true;
32
+ rule: components["schemas"]["Dials.RoutingRule"];
33
+ auditId: string;
34
+ idempotentReplay: boolean;
35
+ }>;
36
+ disable: (ruleId: string, body: In<"dials_disableRoutingRule">["body"]) => Promise<{
37
+ ok: true;
38
+ rule: components["schemas"]["Dials.RoutingRule"];
39
+ auditId: string | null;
40
+ idempotentReplay: boolean;
41
+ }>;
42
+ };
43
+ people: {
44
+ list: (scope: import("./dials.js").DialsScope) => Promise<{
45
+ ok: boolean;
46
+ humans: components["schemas"]["Dials.HumanProfile"][];
47
+ }>;
48
+ create: (body: In<"dials_createHumanProfile">["body"]) => Promise<{
49
+ ok: boolean;
50
+ human: components["schemas"]["Dials.HumanProfile"];
51
+ auditId: string;
52
+ usageEventId: string;
53
+ next: string;
54
+ }>;
55
+ };
56
+ agents: {
57
+ list: (scope: import("./dials.js").DialsScope) => Promise<{
58
+ ok: boolean;
59
+ agents: components["schemas"]["Dials.AgentProfile"][];
60
+ }>;
61
+ create: (body: In<"dials_createAgent">["body"]) => Promise<{
62
+ ok: boolean;
63
+ agent: components["schemas"]["Dials.AgentProfile"];
64
+ auditId: string;
65
+ usageEventId: string;
66
+ next: string;
67
+ }>;
68
+ };
69
+ voice: {
70
+ list: (scope: import("./dials.js").DialsScope) => Promise<{
71
+ ok: boolean;
72
+ voiceProfiles: components["schemas"]["Dials.VoiceProfile"][];
73
+ }>;
74
+ create: (body: In<"dials_createVoiceProfile">["body"]) => Promise<{
75
+ ok: boolean;
76
+ voiceProfile: components["schemas"]["Dials.VoiceProfile"];
77
+ auditId: string;
78
+ usageEventId: string;
79
+ next: string;
80
+ }>;
81
+ };
82
+ messages: {
83
+ list: (scope: import("./dials.js").DialsScope) => Promise<{
84
+ ok: boolean;
85
+ messages: components["schemas"]["Dials.MessageEvent"][];
86
+ }>;
87
+ send: (body: In<"dials_createOutboundMessage">["body"]) => Promise<{
88
+ ok: boolean;
89
+ message: components["schemas"]["Dials.MessageEvent"];
90
+ auditId: string;
91
+ usageEventId: string;
92
+ next: string;
93
+ idempotentReplay: boolean;
94
+ }>;
95
+ templates: {
96
+ list: (scope: import("./dials.js").DialsScope) => Promise<{
97
+ ok: boolean;
98
+ templates: components["schemas"]["Dials.MessageTemplate"][];
99
+ }>;
100
+ create: (body: In<"dials_createMessageTemplate">["body"]) => Promise<{
101
+ ok: boolean;
102
+ template: components["schemas"]["Dials.MessageTemplate"];
103
+ auditId: string;
104
+ usageEventId: string;
105
+ next: string;
106
+ }>;
107
+ };
108
+ brands: {
109
+ list: (scope: import("./dials.js").DialsScope) => Promise<{
110
+ ok: boolean;
111
+ brands: components["schemas"]["Dials.MessagingBrand"][];
112
+ }>;
113
+ create: (body: In<"dials_createMessagingBrand">["body"]) => Promise<{
114
+ ok: boolean;
115
+ brand: components["schemas"]["Dials.MessagingBrand"];
116
+ auditId: string;
117
+ next: string;
118
+ }>;
119
+ };
120
+ campaigns: {
121
+ list: (scope: import("./dials.js").DialsScope) => Promise<{
122
+ ok: boolean;
123
+ campaigns: components["schemas"]["Dials.MessagingCampaign"][];
124
+ }>;
125
+ create: (body: In<"dials_createMessagingCampaign">["body"]) => Promise<{
126
+ ok: boolean;
127
+ campaign: components["schemas"]["Dials.MessagingCampaign"];
128
+ auditId: string;
129
+ next: string;
130
+ }>;
131
+ assignNumber: (campaignId: string, body: In<"dials_assignCampaignNumber">["body"]) => Promise<{
132
+ ok: boolean;
133
+ campaignId: string;
134
+ phoneNumberId: string;
135
+ auditId: string;
136
+ next: string;
137
+ }>;
138
+ };
139
+ };
140
+ workflows: {
141
+ list: (scope: import("./dials.js").DialsScope) => Promise<{
142
+ ok: boolean;
143
+ workflows: components["schemas"]["Dials.WorkflowDocument"][];
144
+ }>;
145
+ deploy: (body: In<"dials_deployWorkflow">["body"]) => Promise<{
146
+ ok: boolean;
147
+ workflow: components["schemas"]["Dials.WorkflowDocument"];
148
+ auditId: string;
149
+ usageEventId: string;
150
+ next: string;
151
+ route: components["schemas"]["Dials.RoutingRule"];
152
+ }>;
153
+ };
24
154
  overview: {
25
155
  summary: (scope: import("./dials.js").DialsScope) => Promise<{
26
156
  ok: boolean;
@@ -113,6 +243,13 @@ export declare class Genesis extends GenesisClient {
113
243
  assign: (body: In<"dials_assignNumber">["body"]) => Promise<{
114
244
  [key: string]: unknown;
115
245
  }>;
246
+ delete: (input: In<"dials_deleteNumber">) => Promise<{
247
+ ok: boolean;
248
+ number: components["schemas"]["Dials.Number"];
249
+ auditId: string;
250
+ usageEventId: string;
251
+ next: string;
252
+ }>;
116
253
  release: (body: In<"dials_releaseNumber">["body"]) => Promise<{
117
254
  [key: string]: unknown;
118
255
  }>;
@@ -127,14 +264,35 @@ export declare class Genesis extends GenesisClient {
127
264
  calls: {
128
265
  list: (scope: import("./dials.js").DialsScope) => Promise<{
129
266
  ok: boolean;
130
- calls: components["schemas"]["Dials.Call"][];
267
+ calls: components["schemas"]["Dials.CallListItem"][];
131
268
  }>;
132
269
  validate: (body: import("./dials.js").DialsOutboundCall) => Promise<{
133
270
  [key: string]: unknown;
134
271
  }>;
135
272
  create: (body: import("./dials.js").DialsOutboundCall) => Promise<{
273
+ ok: boolean;
274
+ call: components["schemas"]["Dials.CallSession"];
275
+ auditId: string;
276
+ dispatchJobId: string;
277
+ usageEventId: string;
278
+ next: string;
279
+ idempotentReplay: boolean;
280
+ } & {
136
281
  [key: string]: unknown;
137
282
  }>;
283
+ recover: (body: import("./dials.js").DialsOutboundCall) => Promise<{
284
+ ok: boolean;
285
+ call: components["schemas"]["Dials.CallSession"];
286
+ auditId: string;
287
+ dispatchJobId: string;
288
+ usageEventId: string;
289
+ next: string;
290
+ idempotentReplay: boolean;
291
+ } & {
292
+ [key: string]: unknown;
293
+ } & {
294
+ idempotentReplay: true;
295
+ }>;
138
296
  };
139
297
  };
140
298
  readonly henry: {
@@ -150,6 +308,12 @@ export declare class Genesis extends GenesisClient {
150
308
  id: string;
151
309
  }[];
152
310
  }>;
311
+ receipts: {
312
+ verificationKey: () => Promise<{
313
+ keyId: string;
314
+ publicKeyBase64: string;
315
+ }>;
316
+ };
153
317
  runs: {
154
318
  list: (page_token?: string) => Promise<{
155
319
  runs: components["schemas"]["Henry.Run"][];
@@ -290,6 +454,117 @@ export declare class Genesis extends GenesisClient {
290
454
  };
291
455
  };
292
456
  readonly fleets: {
457
+ agents: {
458
+ list: () => Promise<{
459
+ agents: components["schemas"]["Fleets.Agent"][];
460
+ }>;
461
+ launch: (body: {
462
+ name: string;
463
+ memory?: components["schemas"]["Fleets.Memory"];
464
+ model?: string;
465
+ instructions?: string;
466
+ idempotency_key?: string;
467
+ }) => Promise<{
468
+ id: string;
469
+ name: string;
470
+ state: "launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required";
471
+ memory: components["schemas"]["Fleets.Memory"];
472
+ model?: string | null;
473
+ inference: {
474
+ provider: "foundry";
475
+ mode: "managed";
476
+ };
477
+ created_at_ms: number;
478
+ updated_at_ms: number;
479
+ last_operation_id?: string | null;
480
+ }>;
481
+ get: (agent_id: string) => Promise<{
482
+ id: string;
483
+ name: string;
484
+ state: "launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required";
485
+ memory: components["schemas"]["Fleets.Memory"];
486
+ model?: string | null;
487
+ inference: {
488
+ provider: "foundry";
489
+ mode: "managed";
490
+ };
491
+ created_at_ms: number;
492
+ updated_at_ms: number;
493
+ last_operation_id?: string | null;
494
+ }>;
495
+ command: (agent_id: string, body: {
496
+ input: string;
497
+ delivery?: "queue" | "steer" | "interrupt";
498
+ }) => Promise<{
499
+ agent: components["schemas"]["Fleets.Agent"];
500
+ operation_id: string;
501
+ result?: {
502
+ [key: string]: unknown;
503
+ };
504
+ }>;
505
+ stop: (agent_id: string) => Promise<{
506
+ agent: components["schemas"]["Fleets.Agent"];
507
+ operation_id: string;
508
+ result?: {
509
+ [key: string]: unknown;
510
+ };
511
+ }>;
512
+ recover: (agent_id: string) => Promise<{
513
+ agent: components["schemas"]["Fleets.Agent"];
514
+ operation_id: string;
515
+ result?: {
516
+ [key: string]: unknown;
517
+ };
518
+ }>;
519
+ };
520
+ instances: {
521
+ list: (query?: In<"fleets_listInstances">) => Promise<{
522
+ instances: components["schemas"]["Fleets.Instance"][];
523
+ next_cursor: string | null;
524
+ }>;
525
+ get: (instance_id: string) => Promise<{
526
+ id: string;
527
+ name: string;
528
+ organization_id: string;
529
+ workspace_id: string;
530
+ project_id: string;
531
+ admission_held: boolean | null;
532
+ physical_state: "created" | "running" | "held" | "stopped" | "recovery_required" | "released";
533
+ status_evidence: "live_controller" | "confirmed_release_receipt";
534
+ release_acknowledged_at_ms: number | null;
535
+ harness_ready: boolean;
536
+ observed_at_ms: number | null;
537
+ lease_expires: {
538
+ wall_ms: number;
539
+ logical: number;
540
+ } | null;
541
+ }>;
542
+ stop: (instance_id: string, options?: import("./fleets.js").FleetsInstanceOptions) => Promise<{
543
+ id: string;
544
+ state: "released";
545
+ reaped: true;
546
+ data_retained: true;
547
+ status_evidence: "confirmed_release_receipt";
548
+ release_acknowledged_at_ms: number;
549
+ }>;
550
+ start: (instance_id: string, options?: import("./fleets.js").FleetsInstanceOptions) => Promise<{
551
+ id: string;
552
+ name: string;
553
+ organization_id: string;
554
+ workspace_id: string;
555
+ project_id: string;
556
+ admission_held: boolean | null;
557
+ physical_state: "created" | "running" | "held" | "stopped" | "recovery_required" | "released";
558
+ status_evidence: "live_controller" | "confirmed_release_receipt";
559
+ release_acknowledged_at_ms: number | null;
560
+ harness_ready: boolean;
561
+ observed_at_ms: number | null;
562
+ lease_expires: {
563
+ wall_ms: number;
564
+ logical: number;
565
+ } | null;
566
+ }>;
567
+ };
293
568
  connection: {
294
569
  get: () => Promise<{
295
570
  connected: boolean;
@@ -360,6 +635,21 @@ export declare class Genesis extends GenesisClient {
360
635
  };
361
636
  };
362
637
  readonly runner: Readonly<{
638
+ permission: Readonly<{
639
+ grant: (input: import("./runner-grant.js").RunnerSelfExecutionGrantInput, opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
640
+ id: string;
641
+ principal_id: string;
642
+ organization_id: string;
643
+ project_id: string;
644
+ platform_id: "pf_console";
645
+ workspace_id: string;
646
+ environmentId: "sandbox";
647
+ role_ids: unknown[];
648
+ permissions: "runner.tasks.execute"[];
649
+ expires_at: number;
650
+ created_at: number;
651
+ }>;
652
+ }>;
363
653
  catalog: (opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
364
654
  workspaces: {
365
655
  key: components["schemas"]["Runner.SafeOpaqueRef"];
@@ -399,7 +689,52 @@ export declare class Genesis extends GenesisClient {
399
689
  }>;
400
690
  }>;
401
691
  readonly beacons: {
692
+ fleets: {
693
+ provision: (requestId: string, body?: {
694
+ name?: string;
695
+ }) => Promise<{
696
+ data: {
697
+ fleet_id: string;
698
+ organization_id: string;
699
+ workspace_id: string;
700
+ project_id: string;
701
+ environment_id: string;
702
+ metadata_only: true;
703
+ };
704
+ }>;
705
+ };
402
706
  devices: {
707
+ revocations: (id: string) => Promise<{
708
+ data: components["schemas"]["Beacons.DeviceRevocation"][];
709
+ }>;
710
+ acknowledge: (id: string, version: number, body: In<"beacons_acknowledgeBridgeDeviceRevocation">["body"]) => Promise<{
711
+ data: components["schemas"]["Beacons.DeviceRevocation"];
712
+ }>;
713
+ challenge: (body: In<"beacons_issueBridgeDeviceChallenge">["body"]) => Promise<{
714
+ version: 1;
715
+ id: string;
716
+ nonce: string;
717
+ issuer: string;
718
+ organization: string;
719
+ principal: string;
720
+ workspace: string;
721
+ project: string;
722
+ environment: string;
723
+ binding_revision: string;
724
+ transport: string;
725
+ fleet_id: string;
726
+ proof_key: string;
727
+ tunnel_key: string;
728
+ issued_at: number;
729
+ expires_at: number;
730
+ }>;
731
+ enroll: (body: In<"beacons_enrollBridgeDevice">["body"]) => Promise<{
732
+ device_id: string;
733
+ fleet_id: string;
734
+ mesh: {
735
+ [key: string]: unknown;
736
+ };
737
+ }>;
403
738
  list: () => Promise<{
404
739
  data?: components["schemas"]["Beacons.BridgeDevice"][];
405
740
  }>;
@@ -414,6 +749,76 @@ export declare class Genesis extends GenesisClient {
414
749
  revoke: (id: string) => Promise<import("./types.js").OperationOutput<"beacons_revokeBridgeDevice"> | undefined>;
415
750
  };
416
751
  };
752
+ readonly flocks: {
753
+ readiness: {
754
+ get: () => Promise<{
755
+ node_enrollment_available: boolean;
756
+ reason_code?: "node_credential_issuer_unavailable";
757
+ }>;
758
+ };
759
+ nodes: {
760
+ list: () => Promise<{
761
+ id: string;
762
+ name: string;
763
+ nickname: string;
764
+ platform: string;
765
+ cpu_count: number;
766
+ state: "enrolled" | "revoked";
767
+ last_seen_at: number;
768
+ enrolled_at: number;
769
+ }[]>;
770
+ rename: (id: string, nickname: string) => Promise<{
771
+ id: string;
772
+ name: string;
773
+ nickname: string;
774
+ platform: string;
775
+ cpu_count: number;
776
+ state: "enrolled" | "revoked";
777
+ last_seen_at: number;
778
+ enrolled_at: number;
779
+ }>;
780
+ revoke: (id: string) => Promise<{
781
+ id: string;
782
+ name: string;
783
+ nickname: string;
784
+ platform: string;
785
+ cpu_count: number;
786
+ state: "enrolled" | "revoked";
787
+ last_seen_at: number;
788
+ enrolled_at: number;
789
+ }>;
790
+ heartbeat: (id: string, nodeBinding: string) => Promise<{
791
+ accepted: boolean;
792
+ }>;
793
+ enroll: (body: In<"flocks_enrollNode">["body"]) => Promise<{
794
+ node: components["schemas"]["Flocks.Node"];
795
+ node_binding: string;
796
+ heartbeat_interval_seconds: number;
797
+ }>;
798
+ activate: (id: string, body: In<"flocks_activateNode">["body"]) => Promise<{
799
+ node: components["schemas"]["Flocks.Node"];
800
+ activated: boolean;
801
+ }>;
802
+ rotateCredential: (id: string, body: In<"flocks_rotateNodeCredential">["body"]) => Promise<{
803
+ accepted: boolean;
804
+ }>;
805
+ };
806
+ joinTokens: {
807
+ exchange: (body: In<"flocks_exchangeJoinToken">["body"]) => Promise<{
808
+ node_id: string;
809
+ organization_id: string;
810
+ credential_id: string;
811
+ credential_value: string;
812
+ scopes: "flocks:node"[];
813
+ expires_at: string;
814
+ node_nonce_hash?: string;
815
+ }>;
816
+ create: (ttlSeconds?: number) => Promise<{
817
+ token: string;
818
+ expires_at: number;
819
+ }>;
820
+ };
821
+ };
417
822
  readonly foundry: {
418
823
  models: {
419
824
  list: () => Promise<{
@@ -460,33 +865,112 @@ export declare class Genesis extends GenesisClient {
460
865
  };
461
866
  };
462
867
  readonly hives: {
868
+ volumes: {
869
+ list(project: string, query?: {
870
+ page?: number;
871
+ per_page?: number;
872
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-volumes.js").HivesVolumePage>;
873
+ get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-volumes.js").HivesVolume>;
874
+ create(project: string, input: import("./hives-volumes.js").HivesVolumeCreate, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-volumes.js").HivesVolume>;
875
+ mount(project: string, id: string, input: import("./hives-volumes.js").HivesVolumeMount, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-volumes.js").HivesVolume>;
876
+ unmount(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-volumes.js").HivesVolume>;
877
+ remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
878
+ success: true;
879
+ id: string;
880
+ message: string;
881
+ }>;
882
+ };
883
+ marketplace: {
884
+ list(project: string, query?: import("./hives-marketplace.js").HivesMarketplaceSearch, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplacePage<import("./hives-marketplace.js").HivesMarketplacePackage>>;
885
+ get(project: string, packageSlug: string, query?: {
886
+ version?: string | null;
887
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceDetail>;
888
+ versions(project: string, packageSlug: string, query?: {
889
+ page?: number;
890
+ page_size?: number;
891
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplacePage<import("./hives-marketplace.js").HivesMarketplaceVersion>>;
892
+ featured(project: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplacePage<import("./hives-marketplace.js").HivesMarketplacePackage>>;
893
+ categories(project: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceCategory[]>;
894
+ publish(project: string, input: import("./hives-marketplace.js").HivesMarketplacePublish, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceDetail>;
895
+ install(project: string, packageSlug: string, input?: import("./hives-marketplace.js").HivesMarketplaceInstall, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceInstallation>;
896
+ update(project: string, packageSlug: string, input?: import("./hives-marketplace.js").HivesMarketplaceInstall, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceInstallation>;
897
+ installed(project: string, query?: {
898
+ page?: number;
899
+ page_size?: number;
900
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplacePage<import("./hives-marketplace.js").HivesMarketplaceInstallation>>;
901
+ getInstallation(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceInstallation>;
902
+ reconcile(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceInstallation>;
903
+ uninstall(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceInstallation>;
904
+ };
905
+ /** The gateway resolves the current authorized selection from an interactive LifeID session. */
906
+ context: {
907
+ get: () => Promise<{
908
+ binding: components["schemas"]["Hives.ProjectBindingMetadata"];
909
+ project: components["schemas"]["Hives.ContextProjectMetadata"];
910
+ selectedContext: components["schemas"]["Hives.SelectedContext"];
911
+ }>;
912
+ set: (body: In<"hives_set_context_project">["body"]) => Promise<{
913
+ binding: components["schemas"]["Hives.ProjectBindingMetadata"];
914
+ project: components["schemas"]["Hives.ContextProjectMetadata"];
915
+ selectedContext: components["schemas"]["Hives.SelectedContext"];
916
+ }>;
917
+ /** Detach this selection; the service project and customer resources are retained. */
918
+ detach: () => Promise<{
919
+ hivesProjectId: string;
920
+ removed: boolean;
921
+ }>;
922
+ };
923
+ environment: {
924
+ list: (project_id: string, q?: Omit<In<"hives_list_project_environment">, "project_id">) => Promise<{
925
+ data: components["schemas"]["Hives.EnvironmentVariableMetadata"][];
926
+ pagination: components["schemas"]["Hives.PaginationMeta"];
927
+ project_id: string;
928
+ }>;
929
+ upsert: (project_id: string, body: In<"hives_update_project_environment">["body"]) => Promise<{
930
+ project_id: string;
931
+ updated: components["schemas"]["Hives.EnvironmentVariableMetadata"][];
932
+ }>;
933
+ /** Explicit KMS reveal with a persisted names-only audit. Do not log the plaintext. */
934
+ reveal: (project_id: string, key: string) => Promise<{
935
+ name: string;
936
+ value: string;
937
+ }>;
938
+ };
463
939
  projects: {
464
940
  list: (q?: In<"hives_list_projects">) => Promise<{
465
941
  data: (Record<string, never> & {
466
- active_instances: number;
942
+ active_instances?: number | null;
467
943
  current_version?: number | null;
468
- requests_24h: number;
469
- total_deployments: number;
944
+ observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
945
+ requests_24h?: number | null;
946
+ summary_state: components["schemas"]["Hives.ProjectSummaryState"];
947
+ total_deployments?: number | null;
470
948
  })[];
471
949
  pagination: components["schemas"]["Hives.PaginationMeta"];
472
950
  }>;
473
951
  get: (project_id: string) => Promise<Record<string, never> & {
474
- active_instances: number;
952
+ active_instances?: number | null;
475
953
  current_version?: number | null;
476
- requests_24h: number;
477
- total_deployments: number;
954
+ observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
955
+ requests_24h?: number | null;
956
+ summary_state: components["schemas"]["Hives.ProjectSummaryState"];
957
+ total_deployments?: number | null;
478
958
  }>;
479
959
  create: (body: In<"hives_create_project">["body"]) => Promise<Record<string, never> & {
480
- active_instances: number;
960
+ active_instances?: number | null;
481
961
  current_version?: number | null;
482
- requests_24h: number;
483
- total_deployments: number;
962
+ observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
963
+ requests_24h?: number | null;
964
+ summary_state: components["schemas"]["Hives.ProjectSummaryState"];
965
+ total_deployments?: number | null;
484
966
  }>;
485
967
  update: (project_id: string, body: In<"hives_update_project">["body"]) => Promise<Record<string, never> & {
486
- active_instances: number;
968
+ active_instances?: number | null;
487
969
  current_version?: number | null;
488
- requests_24h: number;
489
- total_deployments: number;
970
+ observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
971
+ requests_24h?: number | null;
972
+ summary_state: components["schemas"]["Hives.ProjectSummaryState"];
973
+ total_deployments?: number | null;
490
974
  }>;
491
975
  activity: (project_id: string, q?: Omit<In<"hives_get_project_activity">, "project_id">) => Promise<{
492
976
  data: components["schemas"]["Hives.ActivityEntry"][];
@@ -733,6 +1217,304 @@ export declare class Genesis extends GenesisClient {
733
1217
  regions: components["schemas"]["Hives.Region"][];
734
1218
  }>;
735
1219
  };
1220
+ cells: {
1221
+ list(project: string, query?: {
1222
+ page?: number;
1223
+ per_page?: number;
1224
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucketList>;
1225
+ get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucket>;
1226
+ create(project: string, body: import("./hives-cells.js").HivesCreateBucket, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucket>;
1227
+ remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
1228
+ id: string;
1229
+ success: boolean;
1230
+ message: string;
1231
+ }>;
1232
+ reconcile(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
1233
+ bucket: import("./hives-cells.js").HivesBucket;
1234
+ outcome: string;
1235
+ }>;
1236
+ cors: {
1237
+ get: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-cells.js").HivesCorsRule[]>;
1238
+ set: (project: string, id: string, rules: import("./hives-cells.js").HivesCorsRule[], options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-cells.js").HivesCorsRule[]>;
1239
+ };
1240
+ objects: {
1241
+ list(project: string, id: string, query?: {
1242
+ prefix?: string;
1243
+ delimiter?: string;
1244
+ continuation_token?: string;
1245
+ max_keys?: number;
1246
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesObjectList>;
1247
+ put(project: string, id: string, key: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesResourceOptions & {
1248
+ content_type?: string;
1249
+ }): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
1250
+ remove: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
1251
+ download: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<Response>;
1252
+ putFlat(project: string, id: string, key: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesResourceOptions & {
1253
+ content_type?: string;
1254
+ }): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
1255
+ removeFlat: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
1256
+ };
1257
+ presign(project: string, id: string, body: import("./hives-cells.js").HivesPresign, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesPresignedUrl>;
1258
+ };
1259
+ queues: {
1260
+ list(project: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
1261
+ data: import("./hives-queues.js").HivesQueue[];
1262
+ engine_available: true;
1263
+ }>;
1264
+ get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
1265
+ create(project: string, body: import("./hives-queues.js").HivesQueueCreate, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
1266
+ configure(project: string, id: string, body: import("./hives-queues.js").HivesQueueConfig, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
1267
+ remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
1268
+ deleted: true;
1269
+ }>;
1270
+ stats(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
1271
+ consumers: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<never>;
1272
+ pause(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
1273
+ resume(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
1274
+ purge(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
1275
+ purged: number;
1276
+ }>;
1277
+ send(project: string, id: string, body: import("./hives-queues.js").HivesQueueSend, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
1278
+ message_id: string;
1279
+ }>;
1280
+ receive(project: string, id: string, body?: {
1281
+ maxMessages?: number;
1282
+ waitSeconds?: number;
1283
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
1284
+ messages: import("./hives-queues.js").HivesQueueDelivery[];
1285
+ }>;
1286
+ ack: (project: string, id: string, message: string, receipt: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
1287
+ acknowledged: boolean;
1288
+ released: boolean;
1289
+ }>;
1290
+ nack: (project: string, id: string, message: string, receipt: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
1291
+ acknowledged: boolean;
1292
+ released: boolean;
1293
+ }>;
1294
+ deadLetters: (project: string, id: string, query?: {
1295
+ limit?: number;
1296
+ offset?: number;
1297
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
1298
+ messages: import("./hives-queues.js").HivesDeadLetter[];
1299
+ }>;
1300
+ deadLetterStats: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-queues.js").HivesDeadLetterStats>;
1301
+ replay(project: string, id: string, message: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
1302
+ message_id: string;
1303
+ replayed: 1;
1304
+ }>;
1305
+ deleteDeadLetter(project: string, id: string, message: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
1306
+ deleted: true;
1307
+ }>;
1308
+ purgeDeadLetters(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
1309
+ purged: number;
1310
+ }>;
1311
+ };
1312
+ runtimes: {
1313
+ list: (options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
1314
+ runtimes: import("./hives-runtimes.js").HivesRuntime[];
1315
+ }>;
1316
+ project: (project_id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
1317
+ runtimes: import("./hives-runtimes.js").HivesRuntime[];
1318
+ }>;
1319
+ get: (name: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntime>;
1320
+ select: (input: {
1321
+ wasi: string;
1322
+ runner: string;
1323
+ artifact: string;
1324
+ }, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntimeSelection>;
1325
+ };
1326
+ settings: {
1327
+ get: (project_id: string) => Promise<{
1328
+ autoDeployEnabled: boolean;
1329
+ buildCommand?: string | null;
1330
+ defaultRegion: string;
1331
+ installCommand?: string | null;
1332
+ outputDirectory?: string | null;
1333
+ previewDeploymentsEnabled: boolean;
1334
+ } & {
1335
+ capabilities: components["schemas"]["Hives.ProjectSettingsCapabilities"];
1336
+ effective: components["schemas"]["Hives.EffectiveProjectSettings"];
1337
+ }>;
1338
+ update: (project_id: string, body: In<"hives_update_project_settings">["body"]) => Promise<{
1339
+ autoDeployEnabled: boolean;
1340
+ buildCommand?: string | null;
1341
+ defaultRegion: string;
1342
+ installCommand?: string | null;
1343
+ outputDirectory?: string | null;
1344
+ previewDeploymentsEnabled: boolean;
1345
+ } & {
1346
+ capabilities: components["schemas"]["Hives.ProjectSettingsCapabilities"];
1347
+ effective: components["schemas"]["Hives.EffectiveProjectSettings"];
1348
+ }>;
1349
+ };
1350
+ crons: {
1351
+ list: (project_id: string, q?: Omit<In<"hives_list_crons">, "project_id">) => Promise<Record<string, never>>;
1352
+ get: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
1353
+ create: (project_id: string, body: In<"hives_create_cron">["body"]) => Promise<Record<string, never>>;
1354
+ update: (project_id: string, cron_id: string, body: In<"hives_update_cron">["body"]) => Promise<Record<string, never>>;
1355
+ delete: (project_id: string, cron_id: string) => Promise<{
1356
+ id: string;
1357
+ message: string;
1358
+ success: boolean;
1359
+ }>;
1360
+ pause: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
1361
+ resume: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
1362
+ trigger: (project_id: string, cron_id: string) => Promise<unknown>;
1363
+ runs: (project_id: string, cron_id: string, q?: Omit<In<"hives_get_cron_runs">, "project_id" | "cron_id">) => Promise<{
1364
+ data: {
1365
+ duration_ms?: number | null;
1366
+ ended_at?: string | null;
1367
+ error?: string | null;
1368
+ id: string;
1369
+ logs_url?: string | null;
1370
+ started_at: string;
1371
+ status: string;
1372
+ }[];
1373
+ pagination: components["schemas"]["Hives.PaginationMeta"];
1374
+ }>;
1375
+ };
1376
+ metrics: {
1377
+ project: (project_id: string, q?: Omit<In<"hives_get_project_metrics">, "project_id">) => Promise<{
1378
+ active_deployments: number;
1379
+ avg_api_http_duration_ms?: number | null;
1380
+ avg_response_time_ms?: number | null;
1381
+ cron_executions?: number | null;
1382
+ data_transfer_bytes: number;
1383
+ error_count: number;
1384
+ error_rate?: number | null;
1385
+ function_invocations: number;
1386
+ observation: components["schemas"]["Hives.ObservationScope"];
1387
+ observed_request_payload_bytes: number;
1388
+ observed_response_payload_bytes: number;
1389
+ p95_response_time_ms?: number | null;
1390
+ p99_response_time_ms?: number | null;
1391
+ project_id: string;
1392
+ storage_bytes?: number | null;
1393
+ time_range: components["schemas"]["Hives.TimeRange"];
1394
+ total_requests: number;
1395
+ unique_visitors?: number | null;
1396
+ }>;
1397
+ dashboard: (project_id: string, q?: Omit<In<"hives_get_dashboard_metrics">, "project_id">) => Promise<{
1398
+ activeDeployments: number;
1399
+ avgApiHttpDurationMs?: number | null;
1400
+ avgLatencyMs?: number | null;
1401
+ deploymentsChange?: number | null;
1402
+ errorRate?: number | null;
1403
+ errorRateChange?: number | null;
1404
+ errorTimeSeries: components["schemas"]["Hives.MetricDataPoint"][];
1405
+ latencyChange?: number | null;
1406
+ latencyTimeSeries: components["schemas"]["Hives.MetricDataPoint"][];
1407
+ observation: components["schemas"]["Hives.ObservationScope"];
1408
+ observedRequestPayloadBytes: number;
1409
+ observedResponsePayloadBytes: number;
1410
+ requestsChange?: number | null;
1411
+ requestsTimeSeries: components["schemas"]["Hives.MetricDataPoint"][];
1412
+ totalRequests: number;
1413
+ }>;
1414
+ requests: (project_id: string, q?: Omit<In<"hives_get_request_metrics">, "project_id">) => Promise<{
1415
+ aggregation: components["schemas"]["Hives.MetricAggregation"];
1416
+ data: components["schemas"]["Hives.MetricDataPoint"][];
1417
+ name: string;
1418
+ observation: components["schemas"]["Hives.ObservationScope"];
1419
+ resolution_seconds: number;
1420
+ time_range: components["schemas"]["Hives.TimeRange"];
1421
+ }>;
1422
+ latency: (project_id: string, q?: Omit<In<"hives_get_latency_metrics">, "project_id">) => Promise<{
1423
+ aggregation: components["schemas"]["Hives.MetricAggregation"];
1424
+ data: components["schemas"]["Hives.MetricDataPoint"][];
1425
+ name: string;
1426
+ observation: components["schemas"]["Hives.ObservationScope"];
1427
+ resolution_seconds: number;
1428
+ time_range: components["schemas"]["Hives.TimeRange"];
1429
+ }>;
1430
+ errors: (project_id: string, q?: Omit<In<"hives_get_error_metrics">, "project_id">) => Promise<{
1431
+ aggregation: components["schemas"]["Hives.MetricAggregation"];
1432
+ data: components["schemas"]["Hives.MetricDataPoint"][];
1433
+ name: string;
1434
+ observation: components["schemas"]["Hives.ObservationScope"];
1435
+ resolution_seconds: number;
1436
+ time_range: components["schemas"]["Hives.TimeRange"];
1437
+ }>;
1438
+ function: (project_id: string, function_id: string, q?: Omit<In<"hives_get_function_metrics">, "project_id" | "function_id">) => Promise<{
1439
+ avg_api_http_duration_ms?: number | null;
1440
+ avg_duration_ms?: number | null;
1441
+ billed_gb_seconds?: number | null;
1442
+ cold_starts?: number | null;
1443
+ configured_memory_limit_mb: number;
1444
+ failed_invocations: number;
1445
+ function_id: string;
1446
+ function_name: string;
1447
+ memory_mb?: number | null;
1448
+ observation: components["schemas"]["Hives.ObservationScope"];
1449
+ observed_request_payload_bytes: number;
1450
+ observed_response_payload_bytes: number;
1451
+ p50_duration_ms?: number | null;
1452
+ p95_duration_ms?: number | null;
1453
+ p99_duration_ms?: number | null;
1454
+ success_rate?: number | null;
1455
+ successful_invocations: number;
1456
+ time_range: components["schemas"]["Hives.TimeRange"];
1457
+ timeouts?: number | null;
1458
+ total_invocations: number;
1459
+ }>;
1460
+ invocations: (project_id: string, function_id: string, q?: Omit<In<"hives_get_function_invocations_series">, "project_id" | "function_id">) => Promise<{
1461
+ aggregation: components["schemas"]["Hives.MetricAggregation"];
1462
+ data: components["schemas"]["Hives.MetricDataPoint"][];
1463
+ name: string;
1464
+ observation: components["schemas"]["Hives.ObservationScope"];
1465
+ resolution_seconds: number;
1466
+ time_range: components["schemas"]["Hives.TimeRange"];
1467
+ }>;
1468
+ deployment: (project_id: string, deployment_id: string, q?: Omit<In<"hives_get_deployment_metrics">, "project_id" | "deployment_id">) => Promise<{
1469
+ active_instances?: number | null;
1470
+ avg_api_http_duration_ms?: number | null;
1471
+ avg_cpu_percent?: number | null;
1472
+ avg_memory_mb?: number | null;
1473
+ avg_response_time_ms?: number | null;
1474
+ deployment_id: string;
1475
+ error_count: number;
1476
+ error_rate?: number | null;
1477
+ max_instances?: number | null;
1478
+ min_instances?: number | null;
1479
+ network_in_bytes?: number | null;
1480
+ network_out_bytes?: number | null;
1481
+ observation: components["schemas"]["Hives.ObservationScope"];
1482
+ observed_request_payload_bytes: number;
1483
+ observed_response_payload_bytes: number;
1484
+ p95_response_time_ms?: number | null;
1485
+ time_range: components["schemas"]["Hives.TimeRange"];
1486
+ total_requests: number;
1487
+ }>;
1488
+ resources: (project_id: string, q?: Omit<In<"hives_get_resource_usage">, "project_id">) => Promise<{
1489
+ active_deployments: number;
1490
+ avg_api_http_duration_ms?: number | null;
1491
+ bandwidth_gb?: number | null;
1492
+ build_minutes?: number | null;
1493
+ compute_gb_seconds?: number | null;
1494
+ custom_domains: number;
1495
+ function_invocations: number;
1496
+ observation: components["schemas"]["Hives.ObservationScope"];
1497
+ observed_request_payload_bytes: number;
1498
+ observed_response_payload_bytes: number;
1499
+ scheduled_jobs: number;
1500
+ ssl_certificates: number;
1501
+ storage_gb?: number | null;
1502
+ time_range: components["schemas"]["Hives.TimeRange"];
1503
+ }>;
1504
+ realtime: (project_id: string) => Promise<{
1505
+ active_connections?: number | null;
1506
+ avg_api_http_duration_ms?: number | null;
1507
+ avg_response_time_ms?: number | null;
1508
+ cpu_percent?: number | null;
1509
+ error_rate?: number | null;
1510
+ memory_percent?: number | null;
1511
+ observation: components["schemas"]["Hives.ObservationScope"];
1512
+ observed_request_payload_bytes: number;
1513
+ observed_response_payload_bytes: number;
1514
+ requests_per_second: number;
1515
+ updated_at: string;
1516
+ }>;
1517
+ };
736
1518
  };
737
1519
  readonly relays: {
738
1520
  zones: {