@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
package/dist/genesis.d.ts
CHANGED
|
@@ -1228,6 +1228,26 @@ export declare class Genesis extends GenesisClient {
|
|
|
1228
1228
|
} & {
|
|
1229
1229
|
[key: string]: unknown;
|
|
1230
1230
|
}>;
|
|
1231
|
+
profiles: (options?: import("./minds.js").MindsRequestOptions) => Promise<{
|
|
1232
|
+
profiles: components["schemas"]["Minds.MindsProfile"][];
|
|
1233
|
+
}>;
|
|
1234
|
+
scaling: {
|
|
1235
|
+
get: (mind_id: string, options?: import("./minds.js").MindsRequestOptions) => Promise<{
|
|
1236
|
+
policy: components["schemas"]["Minds.ScalingPolicy"];
|
|
1237
|
+
state: components["schemas"]["Minds.ScalingState"];
|
|
1238
|
+
}>;
|
|
1239
|
+
set: (mind_id: string, input: {
|
|
1240
|
+
generation: number;
|
|
1241
|
+
policy: import("./minds.js").MindsScalingPolicyInput;
|
|
1242
|
+
}, options?: import("./minds.js").MindsScalingSetOptions) => Promise<{
|
|
1243
|
+
policy: components["schemas"]["Minds.ScalingPolicy"];
|
|
1244
|
+
state: components["schemas"]["Minds.ScalingState"];
|
|
1245
|
+
}>;
|
|
1246
|
+
events: (mind_id: string, query?: import("./minds.js").MindsScalingEventsQuery, options?: import("./minds.js").MindsRequestOptions) => Promise<{
|
|
1247
|
+
items: components["schemas"]["Minds.ScalingDecision"][];
|
|
1248
|
+
next_cursor: string | null;
|
|
1249
|
+
}>;
|
|
1250
|
+
};
|
|
1231
1251
|
webhookDeliveries: {
|
|
1232
1252
|
create: (mind_id: string, delivery: import("./minds.js").MindsWebhookDelivery, options?: import("./minds.js").MindsRequestOptions) => Promise<{
|
|
1233
1253
|
schema_version: "minds.webhook-delivery.v1";
|
|
@@ -1763,6 +1783,35 @@ export declare class Genesis extends GenesisClient {
|
|
|
1763
1783
|
next: "workflow_deleted";
|
|
1764
1784
|
}>;
|
|
1765
1785
|
};
|
|
1786
|
+
oneNumbers: {
|
|
1787
|
+
suggestions: (body?: In<"dials_listOneNumberSuggestions">["body"]) => Promise<{
|
|
1788
|
+
state: "suggestions" | "none_found";
|
|
1789
|
+
source: "verified_phone" | "ip_city" | "device" | "search";
|
|
1790
|
+
areaCode?: string | null;
|
|
1791
|
+
city?: string | null;
|
|
1792
|
+
numbers: components["schemas"]["Dials.OneNumberCandidate"][];
|
|
1793
|
+
}>;
|
|
1794
|
+
choose: (body: In<"dials_chooseOneNumber">["body"]) => Promise<{
|
|
1795
|
+
state: "chosen" | "reserved_intent";
|
|
1796
|
+
number?: components["schemas"]["Dials.OneNumber"];
|
|
1797
|
+
} & {
|
|
1798
|
+
[key: string]: unknown;
|
|
1799
|
+
}>;
|
|
1800
|
+
mine: () => Promise<{
|
|
1801
|
+
number: components["schemas"]["Dials.OneNumber"] | null;
|
|
1802
|
+
plan?: string;
|
|
1803
|
+
idleDays?: number | null;
|
|
1804
|
+
releaseAt?: string | null;
|
|
1805
|
+
} & {
|
|
1806
|
+
[key: string]: unknown;
|
|
1807
|
+
}>;
|
|
1808
|
+
release: () => Promise<{
|
|
1809
|
+
state: "releasing" | "released";
|
|
1810
|
+
number?: components["schemas"]["Dials.OneNumber"] | null;
|
|
1811
|
+
} & {
|
|
1812
|
+
[key: string]: unknown;
|
|
1813
|
+
}>;
|
|
1814
|
+
};
|
|
1766
1815
|
overview: {
|
|
1767
1816
|
summary: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
1768
1817
|
ok: boolean;
|
|
@@ -1833,6 +1882,15 @@ export declare class Genesis extends GenesisClient {
|
|
|
1833
1882
|
auditId: string;
|
|
1834
1883
|
next: string;
|
|
1835
1884
|
}>;
|
|
1885
|
+
setVoiceHandler: (body: In<"dials_setNumberVoiceHandler">["body"]) => Promise<{
|
|
1886
|
+
ok: true;
|
|
1887
|
+
phoneNumberId: string;
|
|
1888
|
+
handler: "one_phone" | "default";
|
|
1889
|
+
auditId?: string;
|
|
1890
|
+
next?: string;
|
|
1891
|
+
} & {
|
|
1892
|
+
[key: string]: unknown;
|
|
1893
|
+
}>;
|
|
1836
1894
|
reconcile: (body: In<"dials_reconcileNumberInventory">["body"]) => Promise<{
|
|
1837
1895
|
ok: boolean;
|
|
1838
1896
|
reconciliations: components["schemas"]["Dials.InventoryReconciliation"][];
|
|
@@ -2684,6 +2742,23 @@ export declare class Genesis extends GenesisClient {
|
|
|
2684
2742
|
updated_at?: number;
|
|
2685
2743
|
}>;
|
|
2686
2744
|
};
|
|
2745
|
+
webConnection: {
|
|
2746
|
+
get: () => Promise<{
|
|
2747
|
+
connected: boolean;
|
|
2748
|
+
updated_at?: number;
|
|
2749
|
+
scopes?: "traces:read"[];
|
|
2750
|
+
}>;
|
|
2751
|
+
set: (api_key: string) => Promise<{
|
|
2752
|
+
connected: boolean;
|
|
2753
|
+
updated_at?: number;
|
|
2754
|
+
scopes?: "traces:read"[];
|
|
2755
|
+
}>;
|
|
2756
|
+
delete: () => Promise<{
|
|
2757
|
+
connected: boolean;
|
|
2758
|
+
updated_at?: number;
|
|
2759
|
+
scopes?: "traces:read"[];
|
|
2760
|
+
}>;
|
|
2761
|
+
};
|
|
2687
2762
|
usage: {
|
|
2688
2763
|
events: (query?: In<"fleets_listUsageEvents">) => Promise<{
|
|
2689
2764
|
events: components["schemas"]["Fleets.UsageEvent"][];
|
|
@@ -3616,6 +3691,74 @@ export declare class Genesis extends GenesisClient {
|
|
|
3616
3691
|
durationMs: number;
|
|
3617
3692
|
};
|
|
3618
3693
|
}>;
|
|
3694
|
+
egress: (id: string) => Promise<{
|
|
3695
|
+
ok: boolean;
|
|
3696
|
+
product: string;
|
|
3697
|
+
id: string;
|
|
3698
|
+
egress: {
|
|
3699
|
+
[key: string]: unknown;
|
|
3700
|
+
} | null;
|
|
3701
|
+
} & {
|
|
3702
|
+
[key: string]: unknown;
|
|
3703
|
+
}>;
|
|
3704
|
+
egressLog: (id: string, options?: {
|
|
3705
|
+
limit?: number;
|
|
3706
|
+
}) => Promise<{
|
|
3707
|
+
ok: boolean;
|
|
3708
|
+
product: string;
|
|
3709
|
+
id: string;
|
|
3710
|
+
log: {
|
|
3711
|
+
[key: string]: unknown;
|
|
3712
|
+
} | unknown[] | null;
|
|
3713
|
+
} & {
|
|
3714
|
+
[key: string]: unknown;
|
|
3715
|
+
}>;
|
|
3716
|
+
requestEgress: (id: string, body: NonNullable<In<"shells_requestShellEgress">["body"]>, idempotencyKey: string) => Promise<{
|
|
3717
|
+
ok: boolean;
|
|
3718
|
+
product: string;
|
|
3719
|
+
request: {
|
|
3720
|
+
request_id: string;
|
|
3721
|
+
status: "pending";
|
|
3722
|
+
shell_id: string;
|
|
3723
|
+
hosts: string[];
|
|
3724
|
+
expires_at: string;
|
|
3725
|
+
expires_at_epoch?: number;
|
|
3726
|
+
reason?: string;
|
|
3727
|
+
digest: string;
|
|
3728
|
+
sentence: string;
|
|
3729
|
+
} & {
|
|
3730
|
+
[key: string]: unknown;
|
|
3731
|
+
};
|
|
3732
|
+
} & {
|
|
3733
|
+
[key: string]: unknown;
|
|
3734
|
+
}>;
|
|
3735
|
+
egressRequest: (id: string, requestId: string) => Promise<{
|
|
3736
|
+
ok: boolean;
|
|
3737
|
+
product: string;
|
|
3738
|
+
request: {
|
|
3739
|
+
request_id: string;
|
|
3740
|
+
shell_id: string;
|
|
3741
|
+
hosts: string[];
|
|
3742
|
+
expires_at: string;
|
|
3743
|
+
digest: string;
|
|
3744
|
+
status: "pending" | "approved" | "declined" | "expired" | "applied";
|
|
3745
|
+
applied_at?: string | null;
|
|
3746
|
+
} & {
|
|
3747
|
+
[key: string]: unknown;
|
|
3748
|
+
};
|
|
3749
|
+
} & {
|
|
3750
|
+
[key: string]: unknown;
|
|
3751
|
+
}>;
|
|
3752
|
+
revokeEgress: (id: string, idempotencyKey: string) => Promise<{
|
|
3753
|
+
ok: boolean;
|
|
3754
|
+
product: string;
|
|
3755
|
+
id: string;
|
|
3756
|
+
result?: {
|
|
3757
|
+
[key: string]: unknown;
|
|
3758
|
+
} | null;
|
|
3759
|
+
} & {
|
|
3760
|
+
[key: string]: unknown;
|
|
3761
|
+
}>;
|
|
3619
3762
|
};
|
|
3620
3763
|
readonly gears: {
|
|
3621
3764
|
workflows: {
|
|
@@ -4857,6 +5000,8 @@ export declare class Genesis extends GenesisClient {
|
|
|
4857
5000
|
status: components["schemas"]["Scopes.ProjectStatus"];
|
|
4858
5001
|
auto_org_id: string | null;
|
|
4859
5002
|
lead: string | null;
|
|
5003
|
+
readonly owner: string | null;
|
|
5004
|
+
readonly origin: "one" | null;
|
|
4860
5005
|
target_on: string | null;
|
|
4861
5006
|
task_count: number;
|
|
4862
5007
|
open_count: number;
|
|
@@ -4873,6 +5018,8 @@ export declare class Genesis extends GenesisClient {
|
|
|
4873
5018
|
status: components["schemas"]["Scopes.ProjectStatus"];
|
|
4874
5019
|
auto_org_id: string | null;
|
|
4875
5020
|
lead: string | null;
|
|
5021
|
+
readonly owner: string | null;
|
|
5022
|
+
readonly origin: "one" | null;
|
|
4876
5023
|
target_on: string | null;
|
|
4877
5024
|
task_count: number;
|
|
4878
5025
|
open_count: number;
|
|
@@ -4889,6 +5036,8 @@ export declare class Genesis extends GenesisClient {
|
|
|
4889
5036
|
status: components["schemas"]["Scopes.ProjectStatus"];
|
|
4890
5037
|
auto_org_id: string | null;
|
|
4891
5038
|
lead: string | null;
|
|
5039
|
+
readonly owner: string | null;
|
|
5040
|
+
readonly origin: "one" | null;
|
|
4892
5041
|
target_on: string | null;
|
|
4893
5042
|
task_count: number;
|
|
4894
5043
|
open_count: number;
|
|
@@ -4905,6 +5054,8 @@ export declare class Genesis extends GenesisClient {
|
|
|
4905
5054
|
status: components["schemas"]["Scopes.ProjectStatus"];
|
|
4906
5055
|
auto_org_id: string | null;
|
|
4907
5056
|
lead: string | null;
|
|
5057
|
+
readonly owner: string | null;
|
|
5058
|
+
readonly origin: "one" | null;
|
|
4908
5059
|
target_on: string | null;
|
|
4909
5060
|
task_count: number;
|
|
4910
5061
|
open_count: number;
|
|
@@ -5247,7 +5398,7 @@ export declare class Genesis extends GenesisClient {
|
|
|
5247
5398
|
updated_at: string;
|
|
5248
5399
|
}>;
|
|
5249
5400
|
counterparties: (books: string, filter?: {
|
|
5250
|
-
kind
|
|
5401
|
+
kind?: "customer" | "vendor";
|
|
5251
5402
|
include_archived?: boolean;
|
|
5252
5403
|
}) => Promise<{
|
|
5253
5404
|
data: components["schemas"]["Garden.Counterparty"][];
|
|
@@ -6882,7 +7033,7 @@ export declare class Genesis extends GenesisClient {
|
|
|
6882
7033
|
memo?: string | null;
|
|
6883
7034
|
};
|
|
6884
7035
|
stripe?: {
|
|
6885
|
-
account_id?: string;
|
|
7036
|
+
account_id?: string | null;
|
|
6886
7037
|
customer_id?: string | null;
|
|
6887
7038
|
livemode?: boolean;
|
|
6888
7039
|
};
|
|
@@ -6904,7 +7055,7 @@ export declare class Genesis extends GenesisClient {
|
|
|
6904
7055
|
memo?: string | null;
|
|
6905
7056
|
};
|
|
6906
7057
|
stripe?: {
|
|
6907
|
-
account_id?: string;
|
|
7058
|
+
account_id?: string | null;
|
|
6908
7059
|
customer_id?: string | null;
|
|
6909
7060
|
livemode?: boolean;
|
|
6910
7061
|
};
|
|
@@ -6967,6 +7118,83 @@ export declare class Genesis extends GenesisClient {
|
|
|
6967
7118
|
deleted: true;
|
|
6968
7119
|
}>;
|
|
6969
7120
|
};
|
|
7121
|
+
card: {
|
|
7122
|
+
setup: (org: string, body: In<"gateway_createBillingCardSetupSession">["body"], idempotencyKey: string) => Promise<{
|
|
7123
|
+
object: "billing_setup_session";
|
|
7124
|
+
url: string;
|
|
7125
|
+
expires_at: string;
|
|
7126
|
+
}>;
|
|
7127
|
+
setDefault: (org: string, body: In<"gateway_setBillingDefaultPaymentMethod">["body"], idempotencyKey: string) => Promise<{
|
|
7128
|
+
object: "billing_payment_method";
|
|
7129
|
+
brand?: string | null;
|
|
7130
|
+
last4?: string | null;
|
|
7131
|
+
exp_month?: number | null;
|
|
7132
|
+
exp_year?: number | null;
|
|
7133
|
+
default: true;
|
|
7134
|
+
}>;
|
|
7135
|
+
};
|
|
7136
|
+
subscription: {
|
|
7137
|
+
get: (org: string) => Promise<{
|
|
7138
|
+
object: "genesis_pro_subscription";
|
|
7139
|
+
org_id: string;
|
|
7140
|
+
environment: "sandbox" | "live";
|
|
7141
|
+
plan: "genesis_pro";
|
|
7142
|
+
created?: boolean;
|
|
7143
|
+
enabled?: boolean;
|
|
7144
|
+
stripe?: {
|
|
7145
|
+
account_id?: string | null;
|
|
7146
|
+
mode?: string;
|
|
7147
|
+
livemode?: boolean;
|
|
7148
|
+
test_mode?: boolean;
|
|
7149
|
+
};
|
|
7150
|
+
subscription: {
|
|
7151
|
+
id: string | null;
|
|
7152
|
+
status: string;
|
|
7153
|
+
prices: string[];
|
|
7154
|
+
current_period_start?: string | null;
|
|
7155
|
+
current_period_end?: string | null;
|
|
7156
|
+
latest_invoice?: {
|
|
7157
|
+
id?: string | null;
|
|
7158
|
+
status?: string | null;
|
|
7159
|
+
hosted_invoice_url?: string | null;
|
|
7160
|
+
amount_due?: number | null;
|
|
7161
|
+
} | null;
|
|
7162
|
+
} | null;
|
|
7163
|
+
entitlement: {
|
|
7164
|
+
[key: string]: unknown;
|
|
7165
|
+
};
|
|
7166
|
+
}>;
|
|
7167
|
+
create: (org: string, body: In<"gateway_createGenesisProSubscription">["body"], idempotencyKey: string) => Promise<{
|
|
7168
|
+
object: "genesis_pro_subscription";
|
|
7169
|
+
org_id: string;
|
|
7170
|
+
environment: "sandbox" | "live";
|
|
7171
|
+
plan: "genesis_pro";
|
|
7172
|
+
created?: boolean;
|
|
7173
|
+
enabled?: boolean;
|
|
7174
|
+
stripe?: {
|
|
7175
|
+
account_id?: string | null;
|
|
7176
|
+
mode?: string;
|
|
7177
|
+
livemode?: boolean;
|
|
7178
|
+
test_mode?: boolean;
|
|
7179
|
+
};
|
|
7180
|
+
subscription: {
|
|
7181
|
+
id: string | null;
|
|
7182
|
+
status: string;
|
|
7183
|
+
prices: string[];
|
|
7184
|
+
current_period_start?: string | null;
|
|
7185
|
+
current_period_end?: string | null;
|
|
7186
|
+
latest_invoice?: {
|
|
7187
|
+
id?: string | null;
|
|
7188
|
+
status?: string | null;
|
|
7189
|
+
hosted_invoice_url?: string | null;
|
|
7190
|
+
amount_due?: number | null;
|
|
7191
|
+
} | null;
|
|
7192
|
+
} | null;
|
|
7193
|
+
entitlement: {
|
|
7194
|
+
[key: string]: unknown;
|
|
7195
|
+
};
|
|
7196
|
+
}>;
|
|
7197
|
+
};
|
|
6970
7198
|
quotas: {
|
|
6971
7199
|
get: (org: string) => Promise<{
|
|
6972
7200
|
object: "org_quotas";
|
|
@@ -7110,6 +7338,64 @@ export declare class Genesis extends GenesisClient {
|
|
|
7110
7338
|
}[];
|
|
7111
7339
|
}[];
|
|
7112
7340
|
}>;
|
|
7341
|
+
pricing: () => Promise<{
|
|
7342
|
+
object: "billing_pricing";
|
|
7343
|
+
version: string;
|
|
7344
|
+
generated_at: string;
|
|
7345
|
+
source: {
|
|
7346
|
+
service: string;
|
|
7347
|
+
commit: string | null;
|
|
7348
|
+
stripe_mode: "live" | "test" | "off";
|
|
7349
|
+
};
|
|
7350
|
+
currency: "usd";
|
|
7351
|
+
plans: {
|
|
7352
|
+
id: "hobby" | "genesis_pro" | "enterprise";
|
|
7353
|
+
name: string;
|
|
7354
|
+
price_usd_month: string | null;
|
|
7355
|
+
included_usage_usd?: string;
|
|
7356
|
+
card_required?: boolean;
|
|
7357
|
+
stripe_lookup_key?: string;
|
|
7358
|
+
live_priced?: boolean;
|
|
7359
|
+
annual?: {
|
|
7360
|
+
price_usd_year?: string;
|
|
7361
|
+
stripe_lookup_key?: string;
|
|
7362
|
+
live_priced?: boolean;
|
|
7363
|
+
};
|
|
7364
|
+
limits?: {
|
|
7365
|
+
[key: string]: unknown;
|
|
7366
|
+
};
|
|
7367
|
+
contact?: string;
|
|
7368
|
+
}[];
|
|
7369
|
+
rates: {
|
|
7370
|
+
service: string;
|
|
7371
|
+
service_name: string;
|
|
7372
|
+
category?: string | null;
|
|
7373
|
+
meters: string[];
|
|
7374
|
+
label: string;
|
|
7375
|
+
unit?: string | null;
|
|
7376
|
+
granularity?: string | null;
|
|
7377
|
+
rate: {
|
|
7378
|
+
kind?: "fixed" | "list_plus_bps";
|
|
7379
|
+
currency?: "usd";
|
|
7380
|
+
usd_per_unit?: string;
|
|
7381
|
+
per?: string;
|
|
7382
|
+
bps?: number;
|
|
7383
|
+
base?: string;
|
|
7384
|
+
} | null;
|
|
7385
|
+
included?: {
|
|
7386
|
+
[key: string]: unknown;
|
|
7387
|
+
};
|
|
7388
|
+
allowance?: {
|
|
7389
|
+
[key: string]: unknown;
|
|
7390
|
+
};
|
|
7391
|
+
stripe_lookup_key?: string | null;
|
|
7392
|
+
stripe_unit_amount_decimal?: string | null;
|
|
7393
|
+
live_metered: boolean;
|
|
7394
|
+
example?: {
|
|
7395
|
+
[key: string]: unknown;
|
|
7396
|
+
} | null;
|
|
7397
|
+
}[];
|
|
7398
|
+
}>;
|
|
7113
7399
|
};
|
|
7114
7400
|
/** Your One credits: balance, ledger, usage, settings, checkout and subscription (login session, or an org API key with genesis.billing.read / .manage). */
|
|
7115
7401
|
readonly credits: {
|
|
@@ -7145,6 +7431,7 @@ export declare class Genesis extends GenesisClient {
|
|
|
7145
7431
|
status: string;
|
|
7146
7432
|
granted_micro_usd: number;
|
|
7147
7433
|
};
|
|
7434
|
+
one_plan?: components["schemas"]["Gateway.CreditOnePlan"];
|
|
7148
7435
|
}>;
|
|
7149
7436
|
catalog: () => Promise<{
|
|
7150
7437
|
object: "credits_catalog";
|
|
@@ -7192,6 +7479,7 @@ export declare class Genesis extends GenesisClient {
|
|
|
7192
7479
|
org: string;
|
|
7193
7480
|
borrow: components["schemas"]["Gateway.CreditBorrow"];
|
|
7194
7481
|
auto_refill: components["schemas"]["Gateway.CreditAutoRefill"];
|
|
7482
|
+
one_plan?: components["schemas"]["Gateway.CreditOnePlan"];
|
|
7195
7483
|
}>;
|
|
7196
7484
|
checkout: (body: In<"gateway_createCreditCheckout">["body"], idempotencyKey: string) => Promise<{
|
|
7197
7485
|
url: string;
|
|
@@ -7831,6 +8119,40 @@ export declare class Genesis extends GenesisClient {
|
|
|
7831
8119
|
};
|
|
7832
8120
|
};
|
|
7833
8121
|
};
|
|
8122
|
+
/** Your own One: read, stop and resume it, and manage its wakes (`genesis login` only; the person's own One). */
|
|
8123
|
+
readonly one: {
|
|
8124
|
+
instance: {
|
|
8125
|
+
get: () => Promise<{
|
|
8126
|
+
instance: components["schemas"]["One.Instance"] | null;
|
|
8127
|
+
}>;
|
|
8128
|
+
stop: () => Promise<{
|
|
8129
|
+
state: "halted";
|
|
8130
|
+
replyStopped: boolean;
|
|
8131
|
+
runsCancelled: number;
|
|
8132
|
+
runsUnconfirmed: number;
|
|
8133
|
+
}>;
|
|
8134
|
+
resume: () => Promise<{
|
|
8135
|
+
state: "asleep" | null;
|
|
8136
|
+
resumed: boolean;
|
|
8137
|
+
}>;
|
|
8138
|
+
};
|
|
8139
|
+
wakeups: {
|
|
8140
|
+
list: () => Promise<{
|
|
8141
|
+
wakeups: components["schemas"]["One.Wake"][];
|
|
8142
|
+
}>;
|
|
8143
|
+
create: (body: In<"one_createWakeup">["body"]) => Promise<{
|
|
8144
|
+
id: string;
|
|
8145
|
+
source: "schedule" | "callback";
|
|
8146
|
+
words: string;
|
|
8147
|
+
dueAt: string;
|
|
8148
|
+
status: components["schemas"]["One.WakeStatus"];
|
|
8149
|
+
outcome: string | null;
|
|
8150
|
+
replyId: string | null;
|
|
8151
|
+
doneAt: string | null;
|
|
8152
|
+
}>;
|
|
8153
|
+
cancel: (id: string) => Promise<void>;
|
|
8154
|
+
};
|
|
8155
|
+
};
|
|
7834
8156
|
readonly boxes: {
|
|
7835
8157
|
mail: {
|
|
7836
8158
|
addresses: {
|
|
@@ -10001,6 +10323,84 @@ export declare class Genesis extends GenesisClient {
|
|
|
10001
10323
|
artifact: string;
|
|
10002
10324
|
}, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntimeSelection>;
|
|
10003
10325
|
};
|
|
10326
|
+
timers: {
|
|
10327
|
+
create: (project_id: string, body: In<"hives_createTimer">["body"]) => Promise<{
|
|
10328
|
+
id: string;
|
|
10329
|
+
project_id: string;
|
|
10330
|
+
environment: "sandbox" | "live";
|
|
10331
|
+
target_id: string;
|
|
10332
|
+
at: string;
|
|
10333
|
+
state: "scheduled" | "firing" | "fired" | "failed" | "cancelled";
|
|
10334
|
+
attempts: number;
|
|
10335
|
+
last_status?: number | null;
|
|
10336
|
+
fired_at?: string | null;
|
|
10337
|
+
cancelled_at?: string | null;
|
|
10338
|
+
created_at: string;
|
|
10339
|
+
idempotency_key: string;
|
|
10340
|
+
payload?: Record<string, never>;
|
|
10341
|
+
}>;
|
|
10342
|
+
get: (project_id: string, timer_id: string) => Promise<{
|
|
10343
|
+
id: string;
|
|
10344
|
+
project_id: string;
|
|
10345
|
+
environment: "sandbox" | "live";
|
|
10346
|
+
target_id: string;
|
|
10347
|
+
at: string;
|
|
10348
|
+
state: "scheduled" | "firing" | "fired" | "failed" | "cancelled";
|
|
10349
|
+
attempts: number;
|
|
10350
|
+
last_status?: number | null;
|
|
10351
|
+
fired_at?: string | null;
|
|
10352
|
+
cancelled_at?: string | null;
|
|
10353
|
+
created_at: string;
|
|
10354
|
+
idempotency_key: string;
|
|
10355
|
+
payload?: Record<string, never>;
|
|
10356
|
+
}>;
|
|
10357
|
+
list: (project_id: string, q?: Omit<In<"hives_listTimers">, "project_id">) => Promise<{
|
|
10358
|
+
timers: components["schemas"]["Hives.Timer"][];
|
|
10359
|
+
next_cursor?: string | null;
|
|
10360
|
+
}>;
|
|
10361
|
+
cancel: (project_id: string, timer_id: string) => Promise<{
|
|
10362
|
+
id: string;
|
|
10363
|
+
project_id: string;
|
|
10364
|
+
environment: "sandbox" | "live";
|
|
10365
|
+
target_id: string;
|
|
10366
|
+
at: string;
|
|
10367
|
+
state: "scheduled" | "firing" | "fired" | "failed" | "cancelled";
|
|
10368
|
+
attempts: number;
|
|
10369
|
+
last_status?: number | null;
|
|
10370
|
+
fired_at?: string | null;
|
|
10371
|
+
cancelled_at?: string | null;
|
|
10372
|
+
created_at: string;
|
|
10373
|
+
idempotency_key: string;
|
|
10374
|
+
payload?: Record<string, never>;
|
|
10375
|
+
}>;
|
|
10376
|
+
targets: {
|
|
10377
|
+
create: (project_id: string, body: In<"hives_createTimerTarget">["body"]) => Promise<{
|
|
10378
|
+
target_id: string;
|
|
10379
|
+
url: string;
|
|
10380
|
+
name?: string | null;
|
|
10381
|
+
created_at: string;
|
|
10382
|
+
signing_secret: string;
|
|
10383
|
+
}>;
|
|
10384
|
+
list: (project_id: string) => Promise<{
|
|
10385
|
+
targets: components["schemas"]["Hives.TimerTarget"][];
|
|
10386
|
+
}>;
|
|
10387
|
+
get: (project_id: string, target_id: string) => Promise<{
|
|
10388
|
+
id: string;
|
|
10389
|
+
project_id: string;
|
|
10390
|
+
environment: "sandbox" | "live";
|
|
10391
|
+
url: string;
|
|
10392
|
+
name?: string | null;
|
|
10393
|
+
created_at: string;
|
|
10394
|
+
rotated_at?: string | null;
|
|
10395
|
+
}>;
|
|
10396
|
+
rotate: (project_id: string, target_id: string) => Promise<{
|
|
10397
|
+
target_id: string;
|
|
10398
|
+
signing_secret: string;
|
|
10399
|
+
previous_valid_until: string;
|
|
10400
|
+
}>;
|
|
10401
|
+
delete: (project_id: string, target_id: string) => Promise<void>;
|
|
10402
|
+
};
|
|
10403
|
+
};
|
|
10004
10404
|
settings: {
|
|
10005
10405
|
get: (project_id: string) => Promise<{
|
|
10006
10406
|
autoDeployEnabled: boolean;
|
package/dist/genesis.js
CHANGED
|
@@ -17,6 +17,7 @@ import { autoModule } from './auto.js';
|
|
|
17
17
|
import { scopesModule } from './scopes.js';
|
|
18
18
|
import { gardenModule } from './garden.js';
|
|
19
19
|
import { tapsModule } from './taps.js';
|
|
20
|
+
import { oneModule } from './one.js';
|
|
20
21
|
import { lanesModule } from './lanes.js';
|
|
21
22
|
import { flaresModule } from './flares.js';
|
|
22
23
|
import { tracesModule } from './traces.js';
|
|
@@ -72,6 +73,8 @@ export class Genesis extends GenesisClient {
|
|
|
72
73
|
/** IAM v4: organizations, fleets, agents, roles, grants, capabilities and checks (login or org API key with iam:read / iam:write). */
|
|
73
74
|
iam = iamModule(this);
|
|
74
75
|
taps = tapsModule(this);
|
|
76
|
+
/** Your own One: read, stop and resume it, and manage its wakes (`genesis login` only; the person's own One). */
|
|
77
|
+
one = oneModule(this);
|
|
75
78
|
boxes = boxesModule(this);
|
|
76
79
|
foundry = {
|
|
77
80
|
...foundryModule(this),
|