@onesi/genesis 0.2.14 → 0.2.15
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/README.md +1 -1
- package/dist/client.js +1 -1
- package/dist/dials.d.ts +49 -0
- package/dist/dials.js +12 -0
- package/dist/fleets.d.ts +18 -0
- package/dist/fleets.js +14 -0
- package/dist/gateway.d.ts +149 -5
- package/dist/gateway.js +19 -3
- package/dist/generated/operations.d.ts +1 -1
- package/dist/generated/operations.js +1905 -329
- package/dist/generated/schema.d.ts +3559 -408
- package/dist/genesis.d.ts +403 -3
- package/dist/genesis.js +3 -0
- package/dist/genesis.openapi.json +5322 -591
- package/dist/hives-operations.d.ts +78 -0
- package/dist/hives-operations.js +2 -0
- package/dist/hives-timers.d.ts +90 -0
- package/dist/hives-timers.js +25 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/instances.d.ts +73 -0
- package/dist/instances.js +10 -0
- package/dist/minds.d.ts +39 -0
- package/dist/minds.js +13 -0
- package/dist/one.d.ts +45 -0
- package/dist/one.js +24 -0
- package/dist/redact.js +1 -1
- package/dist/scopes.d.ts +8 -0
- package/package.json +2 -2
|
@@ -145,6 +145,84 @@ export declare function hivesOperations(client: GenesisClient): {
|
|
|
145
145
|
artifact: string;
|
|
146
146
|
}, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntimeSelection>;
|
|
147
147
|
};
|
|
148
|
+
timers: {
|
|
149
|
+
create: (project_id: string, body: In<"hives_createTimer">["body"]) => Promise<{
|
|
150
|
+
id: string;
|
|
151
|
+
project_id: string;
|
|
152
|
+
environment: "sandbox" | "live";
|
|
153
|
+
target_id: string;
|
|
154
|
+
at: string;
|
|
155
|
+
state: "scheduled" | "firing" | "fired" | "failed" | "cancelled";
|
|
156
|
+
attempts: number;
|
|
157
|
+
last_status?: number | null;
|
|
158
|
+
fired_at?: string | null;
|
|
159
|
+
cancelled_at?: string | null;
|
|
160
|
+
created_at: string;
|
|
161
|
+
idempotency_key: string;
|
|
162
|
+
payload?: Record<string, never>;
|
|
163
|
+
}>;
|
|
164
|
+
get: (project_id: string, timer_id: string) => Promise<{
|
|
165
|
+
id: string;
|
|
166
|
+
project_id: string;
|
|
167
|
+
environment: "sandbox" | "live";
|
|
168
|
+
target_id: string;
|
|
169
|
+
at: string;
|
|
170
|
+
state: "scheduled" | "firing" | "fired" | "failed" | "cancelled";
|
|
171
|
+
attempts: number;
|
|
172
|
+
last_status?: number | null;
|
|
173
|
+
fired_at?: string | null;
|
|
174
|
+
cancelled_at?: string | null;
|
|
175
|
+
created_at: string;
|
|
176
|
+
idempotency_key: string;
|
|
177
|
+
payload?: Record<string, never>;
|
|
178
|
+
}>;
|
|
179
|
+
list: (project_id: string, q?: Omit<In<"hives_listTimers">, "project_id">) => Promise<{
|
|
180
|
+
timers: import("./index.js").components["schemas"]["Hives.Timer"][];
|
|
181
|
+
next_cursor?: string | null;
|
|
182
|
+
}>;
|
|
183
|
+
cancel: (project_id: string, timer_id: string) => Promise<{
|
|
184
|
+
id: string;
|
|
185
|
+
project_id: string;
|
|
186
|
+
environment: "sandbox" | "live";
|
|
187
|
+
target_id: string;
|
|
188
|
+
at: string;
|
|
189
|
+
state: "scheduled" | "firing" | "fired" | "failed" | "cancelled";
|
|
190
|
+
attempts: number;
|
|
191
|
+
last_status?: number | null;
|
|
192
|
+
fired_at?: string | null;
|
|
193
|
+
cancelled_at?: string | null;
|
|
194
|
+
created_at: string;
|
|
195
|
+
idempotency_key: string;
|
|
196
|
+
payload?: Record<string, never>;
|
|
197
|
+
}>;
|
|
198
|
+
targets: {
|
|
199
|
+
create: (project_id: string, body: In<"hives_createTimerTarget">["body"]) => Promise<{
|
|
200
|
+
target_id: string;
|
|
201
|
+
url: string;
|
|
202
|
+
name?: string | null;
|
|
203
|
+
created_at: string;
|
|
204
|
+
signing_secret: string;
|
|
205
|
+
}>;
|
|
206
|
+
list: (project_id: string) => Promise<{
|
|
207
|
+
targets: import("./index.js").components["schemas"]["Hives.TimerTarget"][];
|
|
208
|
+
}>;
|
|
209
|
+
get: (project_id: string, target_id: string) => Promise<{
|
|
210
|
+
id: string;
|
|
211
|
+
project_id: string;
|
|
212
|
+
environment: "sandbox" | "live";
|
|
213
|
+
url: string;
|
|
214
|
+
name?: string | null;
|
|
215
|
+
created_at: string;
|
|
216
|
+
rotated_at?: string | null;
|
|
217
|
+
}>;
|
|
218
|
+
rotate: (project_id: string, target_id: string) => Promise<{
|
|
219
|
+
target_id: string;
|
|
220
|
+
signing_secret: string;
|
|
221
|
+
previous_valid_until: string;
|
|
222
|
+
}>;
|
|
223
|
+
delete: (project_id: string, target_id: string) => Promise<void>;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
148
226
|
settings: {
|
|
149
227
|
get: (project_id: string) => Promise<{
|
|
150
228
|
autoDeployEnabled: boolean;
|
package/dist/hives-operations.js
CHANGED
|
@@ -3,6 +3,7 @@ import { hivesCells } from './hives-cells.js';
|
|
|
3
3
|
import { hivesQueues } from './hives-queues.js';
|
|
4
4
|
import { hivesRuntimes } from './hives-runtimes.js';
|
|
5
5
|
import { hivesPlatform } from './hives-platform.js';
|
|
6
|
+
import { hivesTimers } from './hives-timers.js';
|
|
6
7
|
/** The original Hives scheduler, settings and measured activity use the same gateway and identity. */
|
|
7
8
|
export function hivesOperations(client) {
|
|
8
9
|
return {
|
|
@@ -11,6 +12,7 @@ export function hivesOperations(client) {
|
|
|
11
12
|
queues: hivesQueues(client),
|
|
12
13
|
topics: hivesTopics(client),
|
|
13
14
|
runtimes: hivesRuntimes(client),
|
|
15
|
+
timers: hivesTimers(client),
|
|
14
16
|
settings: {
|
|
15
17
|
get: (project_id) => client.request('hives_get_project_settings', { project_id }),
|
|
16
18
|
update: (project_id, body) => client.request('hives_update_project_settings', { project_id, body }),
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { GenesisClient } from './client.js';
|
|
2
|
+
import type { OperationInput as In } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Hives one-shot timers and their signed-callback targets (`hives-callback-v1`).
|
|
5
|
+
*
|
|
6
|
+
* `targets.create` and `targets.rotate` return a `signing_secret` that Hives shows ONCE and never
|
|
7
|
+
* again: store it from the answer you get here. This SDK never logs it and keeps it out of its
|
|
8
|
+
* errors; the CLI (`--print-secret-only`) and the MCP return it exactly once. Until Hives turns
|
|
9
|
+
* timers on, every call here answers the normal upstream 404.
|
|
10
|
+
*/
|
|
11
|
+
export declare function hivesTimers(client: GenesisClient): {
|
|
12
|
+
create: (project_id: string, body: In<"hives_createTimer">["body"]) => Promise<{
|
|
13
|
+
id: string;
|
|
14
|
+
project_id: string;
|
|
15
|
+
environment: "sandbox" | "live";
|
|
16
|
+
target_id: string;
|
|
17
|
+
at: string;
|
|
18
|
+
state: "scheduled" | "firing" | "fired" | "failed" | "cancelled";
|
|
19
|
+
attempts: number;
|
|
20
|
+
last_status?: number | null;
|
|
21
|
+
fired_at?: string | null;
|
|
22
|
+
cancelled_at?: string | null;
|
|
23
|
+
created_at: string;
|
|
24
|
+
idempotency_key: string;
|
|
25
|
+
payload?: Record<string, never>;
|
|
26
|
+
}>;
|
|
27
|
+
get: (project_id: string, timer_id: string) => Promise<{
|
|
28
|
+
id: string;
|
|
29
|
+
project_id: string;
|
|
30
|
+
environment: "sandbox" | "live";
|
|
31
|
+
target_id: string;
|
|
32
|
+
at: string;
|
|
33
|
+
state: "scheduled" | "firing" | "fired" | "failed" | "cancelled";
|
|
34
|
+
attempts: number;
|
|
35
|
+
last_status?: number | null;
|
|
36
|
+
fired_at?: string | null;
|
|
37
|
+
cancelled_at?: string | null;
|
|
38
|
+
created_at: string;
|
|
39
|
+
idempotency_key: string;
|
|
40
|
+
payload?: Record<string, never>;
|
|
41
|
+
}>;
|
|
42
|
+
list: (project_id: string, q?: Omit<In<"hives_listTimers">, "project_id">) => Promise<{
|
|
43
|
+
timers: import("./index.js").components["schemas"]["Hives.Timer"][];
|
|
44
|
+
next_cursor?: string | null;
|
|
45
|
+
}>;
|
|
46
|
+
cancel: (project_id: string, timer_id: string) => Promise<{
|
|
47
|
+
id: string;
|
|
48
|
+
project_id: string;
|
|
49
|
+
environment: "sandbox" | "live";
|
|
50
|
+
target_id: string;
|
|
51
|
+
at: string;
|
|
52
|
+
state: "scheduled" | "firing" | "fired" | "failed" | "cancelled";
|
|
53
|
+
attempts: number;
|
|
54
|
+
last_status?: number | null;
|
|
55
|
+
fired_at?: string | null;
|
|
56
|
+
cancelled_at?: string | null;
|
|
57
|
+
created_at: string;
|
|
58
|
+
idempotency_key: string;
|
|
59
|
+
payload?: Record<string, never>;
|
|
60
|
+
}>;
|
|
61
|
+
targets: {
|
|
62
|
+
/** The answer carries `signing_secret`, shown once. Store it now; it cannot be read again. */
|
|
63
|
+
create: (project_id: string, body: In<"hives_createTimerTarget">["body"]) => Promise<{
|
|
64
|
+
target_id: string;
|
|
65
|
+
url: string;
|
|
66
|
+
name?: string | null;
|
|
67
|
+
created_at: string;
|
|
68
|
+
signing_secret: string;
|
|
69
|
+
}>;
|
|
70
|
+
list: (project_id: string) => Promise<{
|
|
71
|
+
targets: import("./index.js").components["schemas"]["Hives.TimerTarget"][];
|
|
72
|
+
}>;
|
|
73
|
+
get: (project_id: string, target_id: string) => Promise<{
|
|
74
|
+
id: string;
|
|
75
|
+
project_id: string;
|
|
76
|
+
environment: "sandbox" | "live";
|
|
77
|
+
url: string;
|
|
78
|
+
name?: string | null;
|
|
79
|
+
created_at: string;
|
|
80
|
+
rotated_at?: string | null;
|
|
81
|
+
}>;
|
|
82
|
+
/** The answer carries the new `signing_secret`, shown once. Receivers may verify the old one until `previous_valid_until`. */
|
|
83
|
+
rotate: (project_id: string, target_id: string) => Promise<{
|
|
84
|
+
target_id: string;
|
|
85
|
+
signing_secret: string;
|
|
86
|
+
previous_valid_until: string;
|
|
87
|
+
}>;
|
|
88
|
+
delete: (project_id: string, target_id: string) => Promise<void>;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hives one-shot timers and their signed-callback targets (`hives-callback-v1`).
|
|
3
|
+
*
|
|
4
|
+
* `targets.create` and `targets.rotate` return a `signing_secret` that Hives shows ONCE and never
|
|
5
|
+
* again: store it from the answer you get here. This SDK never logs it and keeps it out of its
|
|
6
|
+
* errors; the CLI (`--print-secret-only`) and the MCP return it exactly once. Until Hives turns
|
|
7
|
+
* timers on, every call here answers the normal upstream 404.
|
|
8
|
+
*/
|
|
9
|
+
export function hivesTimers(client) {
|
|
10
|
+
return {
|
|
11
|
+
create: (project_id, body) => client.request('hives_createTimer', { project_id, body }),
|
|
12
|
+
get: (project_id, timer_id) => client.request('hives_getTimer', { project_id, timer_id }),
|
|
13
|
+
list: (project_id, q = {}) => client.request('hives_listTimers', { ...q, project_id }),
|
|
14
|
+
cancel: (project_id, timer_id) => client.request('hives_cancelTimer', { project_id, timer_id }),
|
|
15
|
+
targets: {
|
|
16
|
+
/** The answer carries `signing_secret`, shown once. Store it now; it cannot be read again. */
|
|
17
|
+
create: (project_id, body) => client.request('hives_createTimerTarget', { project_id, body }),
|
|
18
|
+
list: (project_id) => client.request('hives_listTimerTargets', { project_id }),
|
|
19
|
+
get: (project_id, target_id) => client.request('hives_getTimerTarget', { project_id, target_id }),
|
|
20
|
+
/** The answer carries the new `signing_secret`, shown once. Receivers may verify the old one until `previous_valid_until`. */
|
|
21
|
+
rotate: (project_id, target_id) => client.request('hives_rotateTimerTarget', { project_id, target_id }),
|
|
22
|
+
delete: (project_id, target_id) => client.request('hives_deleteTimerTarget', { project_id, target_id }),
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export type { BeaconsClientPlatform } from './beacons.js';
|
|
|
20
20
|
export { rigsModule, panesModule, shellsModule } from './instances.js';
|
|
21
21
|
export { gearsModule } from './gears.js';
|
|
22
22
|
export { tapsModule } from './taps.js';
|
|
23
|
+
export { oneModule } from './one.js';
|
|
23
24
|
export { lanesModule } from './lanes.js';
|
|
24
25
|
export { flaresModule } from './flares.js';
|
|
25
26
|
export { idempotencyHeaders, ifMatchHeaders } from './idempotency.js';
|
|
@@ -31,7 +32,7 @@ export { scopesModule } from './scopes.js';
|
|
|
31
32
|
export { billingModule, creditsModule, gatewayModule, orgsModule } from './gateway.js';
|
|
32
33
|
export { agentsModule, AGENT_SEARCH_LIMIT_MAX, AGENT_SEARCH_Q_MAX, type AgentSearchHit, type AgentSitemapEntry } from './agents.js';
|
|
33
34
|
export { boxesModule } from './boxes.js';
|
|
34
|
-
export { dialsModule, dialsEmergencyAddressFeedback, type DialsEmergencyAddressFeedback, type DialsScope, type DialsOutboundCall, type DialsCallControl, type DialsEmergencyAddress, type DialsCallListItem, type DialsCallDispatchState, type DialsMessage, type DialsMessageTemplate, type DialsMessagingBrand, type DialsMessagingCampaign, type DialsWorkflowDocument, type DialsWorkflowDeleteReceipt, type DialsRoutingAction, type DialsRoutingRule, type DialsRoutingRuleReceipt, type DialsOutboundCallReceipt, type DialsRecoveredOutboundCallReceipt } from './dials.js';
|
|
35
|
+
export { dialsModule, dialsEmergencyAddressFeedback, type DialsEmergencyAddressFeedback, type DialsScope, type DialsOutboundCall, type DialsCallControl, type DialsEmergencyAddress, type DialsCallListItem, type DialsCallDispatchState, type DialsMessage, type DialsMessageTemplate, type DialsMessagingBrand, type DialsMessagingCampaign, type DialsWorkflowDocument, type DialsWorkflowDeleteReceipt, type DialsNumberVoiceHandlerReceipt, type DialsOneNumber, type DialsOneNumberSuggestions, type DialsOneNumberChoice, type DialsMyOneNumber, type DialsOneNumberRelease, type DialsRoutingAction, type DialsRoutingRule, type DialsRoutingRuleReceipt, type DialsOutboundCallReceipt, type DialsRecoveredOutboundCallReceipt } from './dials.js';
|
|
35
36
|
export { hivesObjectKey, type HivesBucket, type HivesObject, type HivesObjectAcknowledgement, type HivesStorageWriteReplay, type HivesObjectList, type HivesCorsRule, type HivesCreateBucket, type HivesPresign, type HivesPresignedUrl } from './hives-cells.js';
|
|
36
37
|
export { hivesSseEvents, hivesSseReader, type HivesLogStreamEvent, type HivesLogStreamQuery, type HivesLogWindow, type HivesLogWindowOptions } from './hives-platform.js';
|
|
37
38
|
export { hivesQueueBody, type HivesQueue, type HivesQueueConfig, type HivesQueueCreate, type HivesQueueSend, type HivesQueueDelivery, type HivesDeadLetter, type HivesDeadLetterStats } from './hives-queues.js';
|
|
@@ -42,7 +43,7 @@ export type { HivesMarketplacePackage, HivesMarketplaceVersion, HivesMarketplace
|
|
|
42
43
|
export type { HivesQueueConsumerConfig, HivesQueueConsumerBinding, HivesQueueConsumerAttempt, HivesQueueConsumerStatus } from './hives-queue-consumer.js';
|
|
43
44
|
export { foundryBillingOperations, isFoundryBillingOperation } from './foundry-billing.js';
|
|
44
45
|
export type { HivesTopic, HivesTopicSubscription, HivesTopicPublish, HivesTopicPublication } from './hives-topics.js';
|
|
45
|
-
export { mindsModule, mindsOperations, isMindsOperation, mindsServices, type MindsService, type MindsDeleteOptions, type MindsResizeOptions, type MindsCreateOptions, type MindsResumeOptions, type MindsStopOptions, type MindsWakeReason, type MindsRequestOptions, type MindsUsage, type MindsEventInput, type MindsWebhookDelivery, type MindsWebhookDeliveryReceipt } from './minds.js';
|
|
46
|
+
export { mindsModule, mindsOperations, isMindsOperation, mindsScalingOperations, isMindsScalingOperation, type MindsProfiles, type MindsScaling, type MindsScalingPolicy, type MindsScalingPolicyInput, type MindsScalingEvents, type MindsScalingSetOptions, type MindsScalingEventsQuery, mindsServices, type MindsService, type MindsDeleteOptions, type MindsResizeOptions, type MindsCreateOptions, type MindsResumeOptions, type MindsStopOptions, type MindsWakeReason, type MindsRequestOptions, type MindsUsage, type MindsEventInput, type MindsWebhookDelivery, type MindsWebhookDeliveryReceipt } from './minds.js';
|
|
46
47
|
export { MindsAgentError, mindsAgentOperations, isMindsAgentOperation, mindsAgentCreateOperations, isMindsAgentCreateOperation, type MindsAgentOptions, type MindsAgentEventInput, type MindsAgentCreateInput, type MindsAgentCreateOptions } from './minds-agent.js';
|
|
47
48
|
export { mindsEngineModule, mindsEngineOperations, isMindsEngineOperation, mindsEngineCommands, type MindsEngineOperation, type MindsEngineOptions } from './minds-engine.js';
|
|
48
49
|
export { MindsOwnerError, mindsOwnerOperations, isMindsOwnerOperation, type MindsOwnerOptions, type MindsOwnerVersion, type MindsAttachmentSubject, type MindsAttachInput } from './minds-owner.js';
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export { beaconsModule, BEACONS_RESOURCE_FAMILIES, BEACONS_CLIENT_PLATFORMS } fr
|
|
|
16
16
|
export { rigsModule, panesModule, shellsModule } from './instances.js';
|
|
17
17
|
export { gearsModule } from './gears.js';
|
|
18
18
|
export { tapsModule } from './taps.js';
|
|
19
|
+
export { oneModule } from './one.js';
|
|
19
20
|
export { lanesModule } from './lanes.js';
|
|
20
21
|
export { flaresModule } from './flares.js';
|
|
21
22
|
export { idempotencyHeaders, ifMatchHeaders } from './idempotency.js';
|
|
@@ -32,7 +33,7 @@ export { hivesSseEvents, hivesSseReader } from './hives-platform.js';
|
|
|
32
33
|
export { hivesQueueBody } from './hives-queues.js';
|
|
33
34
|
export { HIVES_OBJECT_BYTES, HIVES_QUEUE_BYTES } from './hives-resources-transport.js';
|
|
34
35
|
export { foundryBillingOperations, isFoundryBillingOperation } from './foundry-billing.js';
|
|
35
|
-
export { mindsModule, mindsOperations, isMindsOperation, mindsServices } from './minds.js';
|
|
36
|
+
export { mindsModule, mindsOperations, isMindsOperation, mindsScalingOperations, isMindsScalingOperation, mindsServices } from './minds.js';
|
|
36
37
|
export { MindsAgentError, mindsAgentOperations, isMindsAgentOperation, mindsAgentCreateOperations, isMindsAgentCreateOperation } from './minds-agent.js';
|
|
37
38
|
export { mindsEngineModule, mindsEngineOperations, isMindsEngineOperation, mindsEngineCommands } from './minds-engine.js';
|
|
38
39
|
export { MindsOwnerError, mindsOwnerOperations, isMindsOwnerOperation } from './minds-owner.js';
|
package/dist/instances.d.ts
CHANGED
|
@@ -206,4 +206,77 @@ export declare function shellsModule(client: GenesisClient): {
|
|
|
206
206
|
durationMs: number;
|
|
207
207
|
};
|
|
208
208
|
}>;
|
|
209
|
+
/** The Shell's network access: tier, extra hosts and expiry, usage and limits. */
|
|
210
|
+
egress: (id: string) => Promise<{
|
|
211
|
+
ok: boolean;
|
|
212
|
+
product: string;
|
|
213
|
+
id: string;
|
|
214
|
+
egress: {
|
|
215
|
+
[key: string]: unknown;
|
|
216
|
+
} | null;
|
|
217
|
+
} & {
|
|
218
|
+
[key: string]: unknown;
|
|
219
|
+
}>;
|
|
220
|
+
/** The Shell's recent network decisions; `limit` is 1 to 100. */
|
|
221
|
+
egressLog: (id: string, options?: {
|
|
222
|
+
limit?: number;
|
|
223
|
+
}) => Promise<{
|
|
224
|
+
ok: boolean;
|
|
225
|
+
product: string;
|
|
226
|
+
id: string;
|
|
227
|
+
log: {
|
|
228
|
+
[key: string]: unknown;
|
|
229
|
+
} | unknown[] | null;
|
|
230
|
+
} & {
|
|
231
|
+
[key: string]: unknown;
|
|
232
|
+
}>;
|
|
233
|
+
/** Ask for more network access: files a request the Shell's creator confirms. Nothing is widened by this call. */
|
|
234
|
+
requestEgress: (id: string, body: NonNullable<OperationInput<"shells_requestShellEgress">["body"]>, idempotencyKey: string) => Promise<{
|
|
235
|
+
ok: boolean;
|
|
236
|
+
product: string;
|
|
237
|
+
request: {
|
|
238
|
+
request_id: string;
|
|
239
|
+
status: "pending";
|
|
240
|
+
shell_id: string;
|
|
241
|
+
hosts: string[];
|
|
242
|
+
expires_at: string;
|
|
243
|
+
expires_at_epoch?: number;
|
|
244
|
+
reason?: string;
|
|
245
|
+
digest: string;
|
|
246
|
+
sentence: string;
|
|
247
|
+
} & {
|
|
248
|
+
[key: string]: unknown;
|
|
249
|
+
};
|
|
250
|
+
} & {
|
|
251
|
+
[key: string]: unknown;
|
|
252
|
+
}>;
|
|
253
|
+
/** A request's status; once the person confirmed it, this read applies it (once). */
|
|
254
|
+
egressRequest: (id: string, requestId: string) => Promise<{
|
|
255
|
+
ok: boolean;
|
|
256
|
+
product: string;
|
|
257
|
+
request: {
|
|
258
|
+
request_id: string;
|
|
259
|
+
shell_id: string;
|
|
260
|
+
hosts: string[];
|
|
261
|
+
expires_at: string;
|
|
262
|
+
digest: string;
|
|
263
|
+
status: "pending" | "approved" | "declined" | "expired" | "applied";
|
|
264
|
+
applied_at?: string | null;
|
|
265
|
+
} & {
|
|
266
|
+
[key: string]: unknown;
|
|
267
|
+
};
|
|
268
|
+
} & {
|
|
269
|
+
[key: string]: unknown;
|
|
270
|
+
}>;
|
|
271
|
+
/** Take the extra network access away now. */
|
|
272
|
+
revokeEgress: (id: string, idempotencyKey: string) => Promise<{
|
|
273
|
+
ok: boolean;
|
|
274
|
+
product: string;
|
|
275
|
+
id: string;
|
|
276
|
+
result?: {
|
|
277
|
+
[key: string]: unknown;
|
|
278
|
+
} | null;
|
|
279
|
+
} & {
|
|
280
|
+
[key: string]: unknown;
|
|
281
|
+
}>;
|
|
209
282
|
};
|
package/dist/instances.js
CHANGED
|
@@ -42,5 +42,15 @@ export function shellsModule(client) {
|
|
|
42
42
|
term: (id) => client.request('shells_openShellTerm', { id }),
|
|
43
43
|
/** One-shot exec; a repeat with the same key and body replays the stored result. */
|
|
44
44
|
exec: (id, body, idempotencyKey) => client.request('shells_execShell', { id, body }, { headers: idempotencyHeaders('shells_execShell', idempotencyKey) }),
|
|
45
|
+
/** The Shell's network access: tier, extra hosts and expiry, usage and limits. */
|
|
46
|
+
egress: (id) => client.request('shells_getShellEgress', { id }),
|
|
47
|
+
/** The Shell's recent network decisions; `limit` is 1 to 100. */
|
|
48
|
+
egressLog: (id, options = {}) => client.request('shells_getShellEgressLog', options.limit === undefined ? { id } : { id, limit: options.limit }),
|
|
49
|
+
/** Ask for more network access: files a request the Shell's creator confirms. Nothing is widened by this call. */
|
|
50
|
+
requestEgress: (id, body, idempotencyKey) => client.request('shells_requestShellEgress', { id, body }, { headers: idempotencyHeaders('shells_requestShellEgress', idempotencyKey) }),
|
|
51
|
+
/** A request's status; once the person confirmed it, this read applies it (once). */
|
|
52
|
+
egressRequest: (id, requestId) => client.request('shells_getShellEgressRequest', { id, requestId }),
|
|
53
|
+
/** Take the extra network access away now. */
|
|
54
|
+
revokeEgress: (id, idempotencyKey) => client.request('shells_revokeShellEgress', { id }, { headers: idempotencyHeaders('shells_revokeShellEgress', idempotencyKey) }),
|
|
45
55
|
};
|
|
46
56
|
}
|
package/dist/minds.d.ts
CHANGED
|
@@ -22,6 +22,21 @@ export interface MindsStopOptions extends MindsRequestOptions {
|
|
|
22
22
|
}
|
|
23
23
|
export type MindsDeleteOptions = MindsStopOptions;
|
|
24
24
|
export type MindsResizeOptions = MindsStopOptions;
|
|
25
|
+
/** Scaling (MINDS_SCALING_V1): served through the generic gateway transport, not mindsTransport. */
|
|
26
|
+
export declare const mindsScalingOperations: readonly ["minds_listProfiles", "minds_getScaling", "minds_setScaling", "minds_listScalingEvents"];
|
|
27
|
+
export declare const isMindsScalingOperation: (id: string) => boolean;
|
|
28
|
+
export type MindsProfiles = OperationOutput<'minds_listProfiles'>;
|
|
29
|
+
export type MindsScaling = OperationOutput<'minds_getScaling'>;
|
|
30
|
+
export type MindsScalingPolicy = MindsScaling['policy'];
|
|
31
|
+
export type MindsScalingPolicyInput = OperationInput<'minds_setScaling'>['body']['policy'];
|
|
32
|
+
export type MindsScalingEvents = OperationOutput<'minds_listScalingEvents'>;
|
|
33
|
+
export interface MindsScalingSetOptions extends MindsRequestOptions {
|
|
34
|
+
idempotencyKey?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface MindsScalingEventsQuery {
|
|
37
|
+
cursor?: string;
|
|
38
|
+
limit?: number;
|
|
39
|
+
}
|
|
25
40
|
export interface MindsCreateOptions extends MindsRequestOptions {
|
|
26
41
|
idempotencyKey: string;
|
|
27
42
|
contextSha256: string;
|
|
@@ -247,6 +262,30 @@ export declare function mindsModule(client: GenesisClient): {
|
|
|
247
262
|
} & {
|
|
248
263
|
[key: string]: unknown;
|
|
249
264
|
}>;
|
|
265
|
+
/** The Mind instance profiles (F1/D1/D2) with the plans and environments each is offered in. */
|
|
266
|
+
profiles: (options?: MindsRequestOptions) => Promise<{
|
|
267
|
+
profiles: import("./index.js").components["schemas"]["Minds.MindsProfile"][];
|
|
268
|
+
}>;
|
|
269
|
+
scaling: {
|
|
270
|
+
/** The stored scaling policy (or the effective default, generation 0) and the read-only state. */
|
|
271
|
+
get: (mind_id: string, options?: MindsRequestOptions) => Promise<{
|
|
272
|
+
policy: import("./index.js").components["schemas"]["Minds.ScalingPolicy"];
|
|
273
|
+
state: import("./index.js").components["schemas"]["Minds.ScalingState"];
|
|
274
|
+
}>;
|
|
275
|
+
/** Sets the policy; `generation` is the stored one from get (0 when none). Org API keys with minds:manage only. */
|
|
276
|
+
set: (mind_id: string, input: {
|
|
277
|
+
generation: number;
|
|
278
|
+
policy: MindsScalingPolicyInput;
|
|
279
|
+
}, options?: MindsScalingSetOptions) => Promise<{
|
|
280
|
+
policy: import("./index.js").components["schemas"]["Minds.ScalingPolicy"];
|
|
281
|
+
state: import("./index.js").components["schemas"]["Minds.ScalingState"];
|
|
282
|
+
}>;
|
|
283
|
+
/** Scaling decisions, newest first; pass next_cursor back as cursor. */
|
|
284
|
+
events: (mind_id: string, query?: MindsScalingEventsQuery, options?: MindsRequestOptions) => Promise<{
|
|
285
|
+
items: import("./index.js").components["schemas"]["Minds.ScalingDecision"][];
|
|
286
|
+
next_cursor: string | null;
|
|
287
|
+
}>;
|
|
288
|
+
};
|
|
250
289
|
webhookDeliveries: {
|
|
251
290
|
create: (mind_id: string, delivery: MindsWebhookDelivery, options?: MindsRequestOptions) => Promise<{
|
|
252
291
|
schema_version: "minds.webhook-delivery.v1";
|
package/dist/minds.js
CHANGED
|
@@ -5,6 +5,9 @@ export const mindsOperations = ['minds_listMinds', 'minds_getMind', 'minds_getUs
|
|
|
5
5
|
/** Engine service groups a create may choose (the controller's CREATE_SERVICES); kv and memory always run. */
|
|
6
6
|
export const mindsServices = ['kv', 'memory', 'graph', 'analytics', 'ml', 'inference', 'vector', 'snn', 'continual', 'associative-memory', 'cognitive', 'cognitive-cycle', 'mcp'];
|
|
7
7
|
export const isMindsOperation = (id) => mindsOperations.includes(id);
|
|
8
|
+
/** Scaling (MINDS_SCALING_V1): served through the generic gateway transport, not mindsTransport. */
|
|
9
|
+
export const mindsScalingOperations = ['minds_listProfiles', 'minds_getScaling', 'minds_setScaling', 'minds_listScalingEvents'];
|
|
10
|
+
export const isMindsScalingOperation = (id) => mindsScalingOperations.includes(id);
|
|
8
11
|
const uuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
9
12
|
const uuid4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
|
|
10
13
|
const lifecycle = ['minds_resumeMind', 'minds_stopMind', 'minds_deleteMind', 'minds_resizeMind'];
|
|
@@ -217,6 +220,16 @@ export function mindsModule(client) {
|
|
|
217
220
|
delete: (mind_id, expected_generation, options) => client.request('minds_deleteMind', { mind_id, expected_generation }, { signal: options.signal, headers: { 'idempotency-key': options.idempotencyKey } }),
|
|
218
221
|
/** Resizes to an existing Pro profile (F1/D1/D2): human manage permission, or an org API key with minds:manage. */
|
|
219
222
|
resize: (mind_id, expected_generation, profile_id, options) => client.request('minds_resizeMind', { mind_id, body: { expected_generation, profile_id } }, { signal: options.signal, headers: { 'idempotency-key': options.idempotencyKey } }),
|
|
223
|
+
/** The Mind instance profiles (F1/D1/D2) with the plans and environments each is offered in. */
|
|
224
|
+
profiles: (options = {}) => client.request('minds_listProfiles', {}, options),
|
|
225
|
+
scaling: {
|
|
226
|
+
/** The stored scaling policy (or the effective default, generation 0) and the read-only state. */
|
|
227
|
+
get: (mind_id, options = {}) => client.request('minds_getScaling', { mind_id }, options),
|
|
228
|
+
/** Sets the policy; `generation` is the stored one from get (0 when none). Org API keys with minds:manage only. */
|
|
229
|
+
set: (mind_id, input, options = {}) => client.request('minds_setScaling', { mind_id, body: { generation: input.generation, policy: input.policy } }, { signal: options.signal, ...(options.idempotencyKey === undefined ? {} : { headers: { 'idempotency-key': options.idempotencyKey } }) }),
|
|
230
|
+
/** Scaling decisions, newest first; pass next_cursor back as cursor. */
|
|
231
|
+
events: (mind_id, query = {}, options = {}) => client.request('minds_listScalingEvents', { mind_id, ...(query.cursor === undefined ? {} : { cursor: query.cursor }), ...(query.limit === undefined ? {} : { limit: query.limit }) }, options),
|
|
232
|
+
},
|
|
220
233
|
webhookDeliveries: {
|
|
221
234
|
create: (mind_id, delivery, options = {}) => client.request('minds_createWebhookDelivery', { mind_id, body: delivery }, options),
|
|
222
235
|
get: (mind_id, delivery_id, options = {}) => client.request('minds_getWebhookDelivery', { mind_id, delivery_id }, options),
|
package/dist/one.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { GenesisClient } from './client.js';
|
|
2
|
+
import type { OperationInput as In } from './types.js';
|
|
3
|
+
/** One: your own One instance, through the gateway's One relay (dark until ONE_RELAY_ENABLED).
|
|
4
|
+
* Only a person signed in with `genesis login` reaches their own One; an org API key, an M2M token or an agent
|
|
5
|
+
* gets 403 FORBIDDEN `person_required`. GET needs one:read, stop, resume and wakes one:write.
|
|
6
|
+
* Stop works even when you are signed out of One; everything else needs your live One sign-in. */
|
|
7
|
+
export declare function oneModule(client: GenesisClient): {
|
|
8
|
+
instance: {
|
|
9
|
+
/** Your One's state, goals, bound connections, heartbeat and newest checkpoint; `instance` is null before it exists. */
|
|
10
|
+
get: () => Promise<{
|
|
11
|
+
instance: import("./index.js").components["schemas"]["One.Instance"] | null;
|
|
12
|
+
}>;
|
|
13
|
+
/** Stop One: halts it, stops the reply being written and cancels its runs. Only you can. */
|
|
14
|
+
stop: () => Promise<{
|
|
15
|
+
state: "halted";
|
|
16
|
+
replyStopped: boolean;
|
|
17
|
+
runsCancelled: number;
|
|
18
|
+
runsUnconfirmed: number;
|
|
19
|
+
}>;
|
|
20
|
+
/** Resume your halted One. Only you can. */
|
|
21
|
+
resume: () => Promise<{
|
|
22
|
+
state: "asleep" | null;
|
|
23
|
+
resumed: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
};
|
|
26
|
+
wakeups: {
|
|
27
|
+
/** What is still to come, then what each wake did. */
|
|
28
|
+
list: () => Promise<{
|
|
29
|
+
wakeups: import("./index.js").components["schemas"]["One.Wake"][];
|
|
30
|
+
}>;
|
|
31
|
+
/** Set a wake: at `at` (ISO time with offset) One runs with your words. Only you set wakes. */
|
|
32
|
+
create: (body: In<"one_createWakeup">["body"]) => Promise<{
|
|
33
|
+
id: string;
|
|
34
|
+
source: "schedule" | "callback";
|
|
35
|
+
words: string;
|
|
36
|
+
dueAt: string;
|
|
37
|
+
status: import("./index.js").components["schemas"]["One.WakeStatus"];
|
|
38
|
+
outcome: string | null;
|
|
39
|
+
replyId: string | null;
|
|
40
|
+
doneAt: string | null;
|
|
41
|
+
}>;
|
|
42
|
+
/** Cancel a wake (wk_…) that has not run. */
|
|
43
|
+
cancel: (id: string) => Promise<void>;
|
|
44
|
+
};
|
|
45
|
+
};
|
package/dist/one.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** One: your own One instance, through the gateway's One relay (dark until ONE_RELAY_ENABLED).
|
|
2
|
+
* Only a person signed in with `genesis login` reaches their own One; an org API key, an M2M token or an agent
|
|
3
|
+
* gets 403 FORBIDDEN `person_required`. GET needs one:read, stop, resume and wakes one:write.
|
|
4
|
+
* Stop works even when you are signed out of One; everything else needs your live One sign-in. */
|
|
5
|
+
export function oneModule(client) {
|
|
6
|
+
return {
|
|
7
|
+
instance: {
|
|
8
|
+
/** Your One's state, goals, bound connections, heartbeat and newest checkpoint; `instance` is null before it exists. */
|
|
9
|
+
get: () => client.request('one_getInstance'),
|
|
10
|
+
/** Stop One: halts it, stops the reply being written and cancels its runs. Only you can. */
|
|
11
|
+
stop: () => client.request('one_stopInstance'),
|
|
12
|
+
/** Resume your halted One. Only you can. */
|
|
13
|
+
resume: () => client.request('one_resumeInstance'),
|
|
14
|
+
},
|
|
15
|
+
wakeups: {
|
|
16
|
+
/** What is still to come, then what each wake did. */
|
|
17
|
+
list: () => client.request('one_listWakeups'),
|
|
18
|
+
/** Set a wake: at `at` (ISO time with offset) One runs with your words. Only you set wakes. */
|
|
19
|
+
create: (body) => client.request('one_createWakeup', { body }),
|
|
20
|
+
/** Cancel a wake (wk_…) that has not run. */
|
|
21
|
+
cancel: (id) => client.request('one_cancelWakeup', { id }),
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}
|
package/dist/redact.js
CHANGED
|
@@ -186,7 +186,7 @@ const SECRET_TEXT = [
|
|
|
186
186
|
// JWT (3 parts) and JWE (5 parts).
|
|
187
187
|
[/eyJ[A-Za-z0-9_-]{4,}(?:\.[A-Za-z0-9_-]*){2,4}/g, REDACTED],
|
|
188
188
|
// Known key and token forms, also when glued to a word by `_` or `-`.
|
|
189
|
-
[/(?<![A-Za-z0-9])(?:sk|rk|mek|whsec|ghp|gho|ghs|ghu|ghr|github_pat|glpat|xox[abposre]|shpat|shpss|dop_v1|sq0atp|sq0csp)[_-][A-Za-z0-9_-]{8,}/g, REDACTED],
|
|
189
|
+
[/(?<![A-Za-z0-9])(?:sk|rk|mek|whsec|ghp|gho|ghs|ghu|ghr|github_pat|glpat|xox[abposre]|shpat|shpss|dop_v1|sq0atp|sq0csp|hcs)[_-][A-Za-z0-9_-]{8,}/g, REDACTED],
|
|
190
190
|
[/(?<![A-Z0-9])(?:AKIA|ASIA|AGPA|AIDA|AROA|ANPA|ANVA|AIPA)[A-Z0-9]{16}(?![A-Z0-9])/g, REDACTED],
|
|
191
191
|
[/(?<![A-Za-z0-9])AIza[A-Za-z0-9_-]{20,}/g, REDACTED],
|
|
192
192
|
[/(?<![A-Za-z0-9])ya29\.[A-Za-z0-9_-]{16,}/g, REDACTED],
|
package/dist/scopes.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export declare function scopesModule(client: GenesisClient): {
|
|
|
25
25
|
status: import("./index.js").components["schemas"]["Scopes.ProjectStatus"];
|
|
26
26
|
auto_org_id: string | null;
|
|
27
27
|
lead: string | null;
|
|
28
|
+
readonly owner: string | null;
|
|
29
|
+
readonly origin: "one" | null;
|
|
28
30
|
target_on: string | null;
|
|
29
31
|
task_count: number;
|
|
30
32
|
open_count: number;
|
|
@@ -41,6 +43,8 @@ export declare function scopesModule(client: GenesisClient): {
|
|
|
41
43
|
status: import("./index.js").components["schemas"]["Scopes.ProjectStatus"];
|
|
42
44
|
auto_org_id: string | null;
|
|
43
45
|
lead: string | null;
|
|
46
|
+
readonly owner: string | null;
|
|
47
|
+
readonly origin: "one" | null;
|
|
44
48
|
target_on: string | null;
|
|
45
49
|
task_count: number;
|
|
46
50
|
open_count: number;
|
|
@@ -57,6 +61,8 @@ export declare function scopesModule(client: GenesisClient): {
|
|
|
57
61
|
status: import("./index.js").components["schemas"]["Scopes.ProjectStatus"];
|
|
58
62
|
auto_org_id: string | null;
|
|
59
63
|
lead: string | null;
|
|
64
|
+
readonly owner: string | null;
|
|
65
|
+
readonly origin: "one" | null;
|
|
60
66
|
target_on: string | null;
|
|
61
67
|
task_count: number;
|
|
62
68
|
open_count: number;
|
|
@@ -73,6 +79,8 @@ export declare function scopesModule(client: GenesisClient): {
|
|
|
73
79
|
status: import("./index.js").components["schemas"]["Scopes.ProjectStatus"];
|
|
74
80
|
auto_org_id: string | null;
|
|
75
81
|
lead: string | null;
|
|
82
|
+
readonly owner: string | null;
|
|
83
|
+
readonly origin: "one" | null;
|
|
76
84
|
target_on: string | null;
|
|
77
85
|
task_count: number;
|
|
78
86
|
open_count: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onesi/genesis",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/l1felabs/genesis-api.git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"ai-agents",
|
|
32
32
|
"api"
|
|
33
33
|
],
|
|
34
|
-
"author": "
|
|
34
|
+
"author": "L1fe AI Inc.",
|
|
35
35
|
"homepage": "https://os.one.ml/docs",
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=20.19"
|