@lifesi/genesis 0.1.2 → 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.
- package/dist/client.d.ts +1234 -138
- package/dist/client.js +1 -1
- package/dist/fleets.d.ts +56 -0
- package/dist/fleets.js +54 -0
- package/dist/generated/operations.d.ts +1234 -138
- package/dist/generated/operations.js +1446 -146
- package/dist/generated/schema.d.ts +2840 -623
- package/dist/genesis.d.ts +106 -0
- package/dist/genesis.js +4 -0
- package/dist/genesis.openapi.json +5804 -2834
- package/dist/henry.d.ts +7 -0
- package/dist/henry.js +23 -0
- package/dist/hives-functions.d.ts +1 -1
- package/dist/hives-functions.js +3 -1
- package/dist/hives-marketplace.d.ts +128 -0
- package/dist/hives-marketplace.js +187 -0
- package/dist/hives-resources-transport.js +1 -1
- package/dist/hives-volumes.d.ts +64 -0
- package/dist/hives-volumes.js +117 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/genesis.d.ts
CHANGED
|
@@ -308,6 +308,12 @@ export declare class Genesis extends GenesisClient {
|
|
|
308
308
|
id: string;
|
|
309
309
|
}[];
|
|
310
310
|
}>;
|
|
311
|
+
receipts: {
|
|
312
|
+
verificationKey: () => Promise<{
|
|
313
|
+
keyId: string;
|
|
314
|
+
publicKeyBase64: string;
|
|
315
|
+
}>;
|
|
316
|
+
};
|
|
311
317
|
runs: {
|
|
312
318
|
list: (page_token?: string) => Promise<{
|
|
313
319
|
runs: components["schemas"]["Henry.Run"][];
|
|
@@ -448,6 +454,69 @@ export declare class Genesis extends GenesisClient {
|
|
|
448
454
|
};
|
|
449
455
|
};
|
|
450
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
|
+
};
|
|
451
520
|
instances: {
|
|
452
521
|
list: (query?: In<"fleets_listInstances">) => Promise<{
|
|
453
522
|
instances: components["schemas"]["Fleets.Instance"][];
|
|
@@ -796,6 +865,43 @@ export declare class Genesis extends GenesisClient {
|
|
|
796
865
|
};
|
|
797
866
|
};
|
|
798
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
|
+
};
|
|
799
905
|
/** The gateway resolves the current authorized selection from an interactive LifeID session. */
|
|
800
906
|
context: {
|
|
801
907
|
get: () => Promise<{
|
package/dist/genesis.js
CHANGED
|
@@ -7,6 +7,8 @@ import { flocksModule } from './flocks.js';
|
|
|
7
7
|
import { hivesUploadBody } from './hives-upload.js';
|
|
8
8
|
import { runnerModule } from './runner.js';
|
|
9
9
|
import { hivesOperations } from './hives-operations.js';
|
|
10
|
+
import { hivesMarketplace } from './hives-marketplace.js';
|
|
11
|
+
import { hivesVolumes } from './hives-volumes.js';
|
|
10
12
|
/**
|
|
11
13
|
* The Genesis SDK: one client, every service.
|
|
12
14
|
* const genesis = new Genesis(); // GENESIS_API_KEY or `genesis login`
|
|
@@ -39,6 +41,8 @@ export class Genesis extends GenesisClient {
|
|
|
39
41
|
};
|
|
40
42
|
hives = {
|
|
41
43
|
...hivesOperations(this),
|
|
44
|
+
volumes: hivesVolumes(this),
|
|
45
|
+
marketplace: hivesMarketplace(this),
|
|
42
46
|
/** The gateway resolves the current authorized selection from an interactive LifeID session. */
|
|
43
47
|
context: {
|
|
44
48
|
get: () => this.request('hives_get_context_project'),
|