@lifesi/genesis 0.1.1 → 0.1.2

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/dist/genesis.js CHANGED
@@ -3,8 +3,10 @@ import { dialsModule } from './dials.js';
3
3
  import { GenesisClient } from './client.js';
4
4
  import { henryModule } from './henry.js';
5
5
  import { fleetsModule } from './fleets.js';
6
+ import { flocksModule } from './flocks.js';
6
7
  import { hivesUploadBody } from './hives-upload.js';
7
8
  import { runnerModule } from './runner.js';
9
+ import { hivesOperations } from './hives-operations.js';
8
10
  /**
9
11
  * The Genesis SDK: one client, every service.
10
12
  * const genesis = new Genesis(); // GENESIS_API_KEY or `genesis login`
@@ -20,6 +22,7 @@ export class Genesis extends GenesisClient {
20
22
  fleets = fleetsModule(this);
21
23
  runner = runnerModule(this);
22
24
  beacons = beaconsModule(this);
25
+ flocks = flocksModule(this);
23
26
  foundry = {
24
27
  models: {
25
28
  list: () => this.request('foundry_listModels'),
@@ -35,6 +38,20 @@ export class Genesis extends GenesisClient {
35
38
  },
36
39
  };
37
40
  hives = {
41
+ ...hivesOperations(this),
42
+ /** The gateway resolves the current authorized selection from an interactive LifeID session. */
43
+ context: {
44
+ get: () => this.request('hives_get_context_project'),
45
+ set: (body) => this.request('hives_set_context_project', { body }),
46
+ /** Detach this selection; the service project and customer resources are retained. */
47
+ detach: () => this.request('hives_detach_context_project'),
48
+ },
49
+ environment: {
50
+ list: (project_id, q = {}) => this.request('hives_list_project_environment', { ...q, project_id }),
51
+ upsert: (project_id, body) => this.request('hives_update_project_environment', { project_id, body }),
52
+ /** Explicit KMS reveal with a persisted names-only audit. Do not log the plaintext. */
53
+ reveal: (project_id, key) => this.request('hives_reveal_project_environment', { project_id, key }),
54
+ },
38
55
  projects: {
39
56
  list: (q = {}) => this.request('hives_list_projects', q),
40
57
  get: (project_id) => this.request('hives_get_project', { project_id }),