@lifesi/genesis 0.1.2 → 0.1.4
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 +1497 -244
- package/dist/client.js +12 -2
- package/dist/fleets.d.ts +56 -0
- package/dist/fleets.js +54 -0
- package/dist/generated/operations.d.ts +1497 -244
- package/dist/generated/operations.js +1809 -325
- package/dist/generated/schema.d.ts +3184 -592
- package/dist/genesis.d.ts +158 -0
- package/dist/genesis.js +13 -0
- package/dist/genesis.openapi.json +6218 -2791
- 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-node.js +1 -1
- 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<{
|
|
@@ -1029,6 +1135,24 @@ export declare class Genesis extends GenesisClient {
|
|
|
1029
1135
|
logs_url?: string | null;
|
|
1030
1136
|
url?: string | null;
|
|
1031
1137
|
}>;
|
|
1138
|
+
stop: (project_id: string, deployment_id: string, init?: {
|
|
1139
|
+
signal?: AbortSignal;
|
|
1140
|
+
}) => Promise<{
|
|
1141
|
+
id: string;
|
|
1142
|
+
project_id: string;
|
|
1143
|
+
tenant_id: string;
|
|
1144
|
+
module_id: string;
|
|
1145
|
+
module_hash?: string | null;
|
|
1146
|
+
version: number;
|
|
1147
|
+
status: string;
|
|
1148
|
+
git_sha?: string | null;
|
|
1149
|
+
git_branch?: string | null;
|
|
1150
|
+
created_by: string;
|
|
1151
|
+
created_at: string;
|
|
1152
|
+
promoted_at?: string | null;
|
|
1153
|
+
logs_url?: string | null;
|
|
1154
|
+
url?: string | null;
|
|
1155
|
+
}>;
|
|
1032
1156
|
delete: (project_id: string, deployment_id: string) => Promise<{
|
|
1033
1157
|
id: string;
|
|
1034
1158
|
message: string;
|
|
@@ -1410,6 +1534,20 @@ export declare class Genesis extends GenesisClient {
|
|
|
1410
1534
|
}>;
|
|
1411
1535
|
};
|
|
1412
1536
|
};
|
|
1537
|
+
readonly silos: {
|
|
1538
|
+
projects: {
|
|
1539
|
+
list: () => Promise<{
|
|
1540
|
+
projects: components["schemas"]["Silos.Project"][];
|
|
1541
|
+
}>;
|
|
1542
|
+
create: (body: In<"silos_createProject">["body"]) => Promise<{
|
|
1543
|
+
project: components["schemas"]["Silos.Project"];
|
|
1544
|
+
}>;
|
|
1545
|
+
get: (project_id: string) => Promise<{
|
|
1546
|
+
project: components["schemas"]["Silos.Project"];
|
|
1547
|
+
databases: components["schemas"]["Silos.Database"][];
|
|
1548
|
+
}>;
|
|
1549
|
+
};
|
|
1550
|
+
};
|
|
1413
1551
|
readonly relays: {
|
|
1414
1552
|
zones: {
|
|
1415
1553
|
list: (q?: In<"relays_listZones">) => Promise<{
|
|
@@ -1431,6 +1569,26 @@ export declare class Genesis extends GenesisClient {
|
|
|
1431
1569
|
created_at?: string;
|
|
1432
1570
|
updated_at?: string;
|
|
1433
1571
|
}>;
|
|
1572
|
+
dnssec: (zone: string) => Promise<{
|
|
1573
|
+
zone: string;
|
|
1574
|
+
enabled: boolean;
|
|
1575
|
+
keys: {
|
|
1576
|
+
[key: string]: unknown;
|
|
1577
|
+
}[];
|
|
1578
|
+
ds_records: {
|
|
1579
|
+
[key: string]: unknown;
|
|
1580
|
+
}[];
|
|
1581
|
+
settings: {
|
|
1582
|
+
nsec3: {
|
|
1583
|
+
algorithm?: number;
|
|
1584
|
+
flags?: number;
|
|
1585
|
+
iterations?: number;
|
|
1586
|
+
salt?: string;
|
|
1587
|
+
} | null;
|
|
1588
|
+
auto_publish_cds: boolean;
|
|
1589
|
+
auto_publish_cdnskey: boolean;
|
|
1590
|
+
};
|
|
1591
|
+
}>;
|
|
1434
1592
|
create: (body: S["Relays.CreateZone"]) => Promise<{
|
|
1435
1593
|
id?: number;
|
|
1436
1594
|
name?: string;
|
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'),
|
|
@@ -78,6 +82,7 @@ export class Genesis extends GenesisClient {
|
|
|
78
82
|
promote: (project_id, deployment_id) => this.request('hives_promote_deployment', { project_id, deployment_id }),
|
|
79
83
|
rollback: (project_id, deployment_id, body = {}) => this.request('hives_rollback_deployment', { project_id, deployment_id, body }),
|
|
80
84
|
cancel: (project_id, deployment_id) => this.request('hives_cancel_deployment', { project_id, deployment_id }),
|
|
85
|
+
stop: (project_id, deployment_id, init = {}) => this.request('hives_stop_deployment', { project_id, deployment_id }, init),
|
|
81
86
|
delete: (project_id, deployment_id) => this.request('hives_delete_deployment', { project_id, deployment_id }),
|
|
82
87
|
logs: (project_id, deployment_id, q = {}) => this.request('hives_query_deployment_logs', { ...q, project_id, deployment_id }),
|
|
83
88
|
invoke: (project_id, deployment_id, body = {}, init = {}) => this.raw('hives_invoke_deployment', { project_id, deployment_id, body }, init),
|
|
@@ -93,10 +98,18 @@ export class Genesis extends GenesisClient {
|
|
|
93
98
|
},
|
|
94
99
|
regions: { list: () => this.request('hives_list_regions') },
|
|
95
100
|
};
|
|
101
|
+
silos = {
|
|
102
|
+
projects: {
|
|
103
|
+
list: () => this.request('silos_listProjects'),
|
|
104
|
+
create: (body) => this.request('silos_createProject', { body }),
|
|
105
|
+
get: (project_id) => this.request('silos_getProject', { project_id }),
|
|
106
|
+
},
|
|
107
|
+
};
|
|
96
108
|
relays = {
|
|
97
109
|
zones: {
|
|
98
110
|
list: (q = {}) => this.request('relays_listZones', q),
|
|
99
111
|
get: (zone) => this.request('relays_getZone', { zone }),
|
|
112
|
+
dnssec: (zone) => this.request('relays_getDnssec', { zone }),
|
|
100
113
|
create: (body) => this.request('relays_createZone', { body }),
|
|
101
114
|
delete: (zone) => this.request('relays_deleteZone', { zone }),
|
|
102
115
|
},
|