@onesi/genesis 0.2.4 → 0.2.6

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.d.ts CHANGED
@@ -2195,7 +2195,9 @@ export declare class Genesis extends GenesisClient {
2195
2195
  }>;
2196
2196
  streamEvents: (run_id: string, options?: import("./henry.js").HenryStreamOptions) => AsyncGenerator<import("./henry.js").HenryStreamEvent, any, any>;
2197
2197
  replay: (run_id: string, options?: {
2198
- signal?: AbortSignal;
2198
+ signal
2199
+ /** Copies the parent's latest checkpoint (the default branch when no parent is given). */
2200
+ ? /** Copies the parent's latest checkpoint (the default branch when no parent is given). */: AbortSignal;
2199
2201
  }) => Promise<import("./henry.js").HenryReplay>;
2200
2202
  };
2201
2203
  };
@@ -2343,7 +2345,9 @@ export declare class Genesis extends GenesisClient {
2343
2345
  model: string;
2344
2346
  updated_at?: number;
2345
2347
  }>;
2346
- set: (api_key: string) => Promise<{
2348
+ set: (api_key: string, options?: {
2349
+ model?: string;
2350
+ }) => Promise<{
2347
2351
  connected: boolean;
2348
2352
  model: string;
2349
2353
  updated_at?: number;
@@ -6660,7 +6664,9 @@ export declare class Genesis extends GenesisClient {
6660
6664
  };
6661
6665
  invoices: (org: string, query?: {
6662
6666
  service?: string;
6663
- limit?: number;
6667
+ limit
6668
+ /** The Hives project id (prj_…) for a prj_… id, the selected context's Genesis pr_… id, or nothing (the selected context's binding). */
6669
+ ? /** The Hives project id (prj_…) for a prj_… id, the selected context's Genesis pr_… id, or nothing (the selected context's binding). */: number;
6664
6670
  }) => Promise<{
6665
6671
  object: "list";
6666
6672
  org_id: string;
@@ -8955,6 +8961,10 @@ export declare class Genesis extends GenesisClient {
8955
8961
  };
8956
8962
  };
8957
8963
  readonly hives: {
8964
+ /** The Hives project id (prj_…) for a prj_… id, the selected context's Genesis pr_… id, or nothing (the selected context's binding). */
8965
+ resolveProject: (project_id?: string, init?: {
8966
+ signal?: AbortSignal;
8967
+ }) => Promise<string>;
8958
8968
  volumes: {
8959
8969
  list(project: string, query?: {
8960
8970
  page?: number;
@@ -9362,16 +9372,16 @@ export declare class Genesis extends GenesisClient {
9362
9372
  }, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesObjectList>;
9363
9373
  put(project: string, id: string, key: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesFundedWriteOptions & {
9364
9374
  content_type?: string;
9365
- }): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
9375
+ }): Promise<import("./hives-cells.js").HivesObjectAcknowledgement | import("./hives-cells.js").HivesStorageWriteReplay>;
9366
9376
  remove: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
9367
9377
  download: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<Response>;
9368
9378
  putFlat(project: string, id: string, key: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesFundedWriteOptions & {
9369
- content_type? /** Rename within the selected project; 409 when the name is taken. */: string;
9370
- }): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
9379
+ content_type?: string;
9380
+ }): Promise<import("./hives-cells.js").HivesObjectAcknowledgement | import("./hives-cells.js").HivesStorageWriteReplay>;
9371
9381
  removeFlat: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
9372
9382
  putDownload(project: string, id: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesFundedWriteOptions & {
9373
9383
  content_type?: string;
9374
- }): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
9384
+ }): Promise<import("./hives-cells.js").HivesObjectAcknowledgement | import("./hives-cells.js").HivesStorageWriteReplay>;
9375
9385
  removeDownload: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
9376
9386
  };
9377
9387
  presign(project: string, id: string, body: import("./hives-cells.js").HivesPresign, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesPresignedUrl>;
package/dist/genesis.js CHANGED
@@ -83,6 +83,8 @@ export class Genesis extends GenesisClient {
83
83
  };
84
84
  hives = {
85
85
  ...hivesOperations(this),
86
+ /** The Hives project id (prj_…) for a prj_… id, the selected context's Genesis pr_… id, or nothing (the selected context's binding). */
87
+ resolveProject: (project_id, init = {}) => this.hivesProjectId(project_id, init),
86
88
  volumes: hivesVolumes(this),
87
89
  marketplace: hivesMarketplace(this),
88
90
  /** The gateway resolves the current authorized selection from an interactive One account session. */