@onesi/genesis 0.2.13 → 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/agents.d.ts +39 -0
- package/dist/agents.js +23 -0
- package/dist/client.js +1 -1
- package/dist/dials.d.ts +59 -0
- package/dist/dials.js +14 -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 +1998 -264
- package/dist/generated/schema.d.ts +3831 -361
- package/dist/genesis.d.ts +425 -3
- package/dist/genesis.js +6 -0
- package/dist/genesis.openapi.json +5509 -355
- 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 +4 -2
- package/dist/index.js +3 -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";
|
|
@@ -1418,7 +1438,7 @@ export declare class Genesis extends GenesisClient {
|
|
|
1418
1438
|
offset: number;
|
|
1419
1439
|
}>;
|
|
1420
1440
|
get: (slug: string, init?: {
|
|
1421
|
-
signal
|
|
1441
|
+
signal?: AbortSignal;
|
|
1422
1442
|
}) => Promise<{
|
|
1423
1443
|
provider: components["schemas"]["Blinds.ProviderSummary"];
|
|
1424
1444
|
oauth2?: {
|
|
@@ -1754,6 +1774,43 @@ export declare class Genesis extends GenesisClient {
|
|
|
1754
1774
|
next: string;
|
|
1755
1775
|
route: components["schemas"]["Dials.RoutingRule"];
|
|
1756
1776
|
}>;
|
|
1777
|
+
delete: (workflowId: string, body: In<"dials_deleteWorkflow">["body"]) => Promise<{
|
|
1778
|
+
ok: true;
|
|
1779
|
+
deleted: true;
|
|
1780
|
+
workflow: components["schemas"]["Dials.WorkflowDocument"];
|
|
1781
|
+
routeIds: string[];
|
|
1782
|
+
auditId: string;
|
|
1783
|
+
next: "workflow_deleted";
|
|
1784
|
+
}>;
|
|
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
|
+
}>;
|
|
1757
1814
|
};
|
|
1758
1815
|
overview: {
|
|
1759
1816
|
summary: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
@@ -1825,6 +1882,15 @@ export declare class Genesis extends GenesisClient {
|
|
|
1825
1882
|
auditId: string;
|
|
1826
1883
|
next: string;
|
|
1827
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
|
+
}>;
|
|
1828
1894
|
reconcile: (body: In<"dials_reconcileNumberInventory">["body"]) => Promise<{
|
|
1829
1895
|
ok: boolean;
|
|
1830
1896
|
reconciliations: components["schemas"]["Dials.InventoryReconciliation"][];
|
|
@@ -2676,6 +2742,23 @@ export declare class Genesis extends GenesisClient {
|
|
|
2676
2742
|
updated_at?: number;
|
|
2677
2743
|
}>;
|
|
2678
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
|
+
};
|
|
2679
2762
|
usage: {
|
|
2680
2763
|
events: (query?: In<"fleets_listUsageEvents">) => Promise<{
|
|
2681
2764
|
events: components["schemas"]["Fleets.UsageEvent"][];
|
|
@@ -3608,6 +3691,74 @@ export declare class Genesis extends GenesisClient {
|
|
|
3608
3691
|
durationMs: number;
|
|
3609
3692
|
};
|
|
3610
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
|
+
}>;
|
|
3611
3762
|
};
|
|
3612
3763
|
readonly gears: {
|
|
3613
3764
|
workflows: {
|
|
@@ -4849,6 +5000,8 @@ export declare class Genesis extends GenesisClient {
|
|
|
4849
5000
|
status: components["schemas"]["Scopes.ProjectStatus"];
|
|
4850
5001
|
auto_org_id: string | null;
|
|
4851
5002
|
lead: string | null;
|
|
5003
|
+
readonly owner: string | null;
|
|
5004
|
+
readonly origin: "one" | null;
|
|
4852
5005
|
target_on: string | null;
|
|
4853
5006
|
task_count: number;
|
|
4854
5007
|
open_count: number;
|
|
@@ -4865,6 +5018,8 @@ export declare class Genesis extends GenesisClient {
|
|
|
4865
5018
|
status: components["schemas"]["Scopes.ProjectStatus"];
|
|
4866
5019
|
auto_org_id: string | null;
|
|
4867
5020
|
lead: string | null;
|
|
5021
|
+
readonly owner: string | null;
|
|
5022
|
+
readonly origin: "one" | null;
|
|
4868
5023
|
target_on: string | null;
|
|
4869
5024
|
task_count: number;
|
|
4870
5025
|
open_count: number;
|
|
@@ -4881,6 +5036,8 @@ export declare class Genesis extends GenesisClient {
|
|
|
4881
5036
|
status: components["schemas"]["Scopes.ProjectStatus"];
|
|
4882
5037
|
auto_org_id: string | null;
|
|
4883
5038
|
lead: string | null;
|
|
5039
|
+
readonly owner: string | null;
|
|
5040
|
+
readonly origin: "one" | null;
|
|
4884
5041
|
target_on: string | null;
|
|
4885
5042
|
task_count: number;
|
|
4886
5043
|
open_count: number;
|
|
@@ -4897,6 +5054,8 @@ export declare class Genesis extends GenesisClient {
|
|
|
4897
5054
|
status: components["schemas"]["Scopes.ProjectStatus"];
|
|
4898
5055
|
auto_org_id: string | null;
|
|
4899
5056
|
lead: string | null;
|
|
5057
|
+
readonly owner: string | null;
|
|
5058
|
+
readonly origin: "one" | null;
|
|
4900
5059
|
target_on: string | null;
|
|
4901
5060
|
task_count: number;
|
|
4902
5061
|
open_count: number;
|
|
@@ -6415,6 +6574,20 @@ export declare class Genesis extends GenesisClient {
|
|
|
6415
6574
|
}>;
|
|
6416
6575
|
};
|
|
6417
6576
|
};
|
|
6577
|
+
/** Public agent search and the crawler sitemap: Live agents their owners made public. No credential, never metered. */
|
|
6578
|
+
readonly agents: {
|
|
6579
|
+
search: (q: string, options?: {
|
|
6580
|
+
limit?: number;
|
|
6581
|
+
signal?: AbortSignal;
|
|
6582
|
+
}) => Promise<{
|
|
6583
|
+
results: import("./agents.js").AgentSearchHit[];
|
|
6584
|
+
}>;
|
|
6585
|
+
sitemap: (options?: {
|
|
6586
|
+
signal?: AbortSignal;
|
|
6587
|
+
}) => Promise<{
|
|
6588
|
+
agents: import("./agents.js").AgentSitemapEntry[];
|
|
6589
|
+
}>;
|
|
6590
|
+
};
|
|
6418
6591
|
/** Your organization's usage and billing reads, and Orgs: legal entities, seats, resolutions, documents, filings, formation and the record. */
|
|
6419
6592
|
readonly orgs: {
|
|
6420
6593
|
whoami: () => Promise<{
|
|
@@ -6860,7 +7033,7 @@ export declare class Genesis extends GenesisClient {
|
|
|
6860
7033
|
memo?: string | null;
|
|
6861
7034
|
};
|
|
6862
7035
|
stripe?: {
|
|
6863
|
-
account_id?: string;
|
|
7036
|
+
account_id?: string | null;
|
|
6864
7037
|
customer_id?: string | null;
|
|
6865
7038
|
livemode?: boolean;
|
|
6866
7039
|
};
|
|
@@ -6882,7 +7055,7 @@ export declare class Genesis extends GenesisClient {
|
|
|
6882
7055
|
memo?: string | null;
|
|
6883
7056
|
};
|
|
6884
7057
|
stripe?: {
|
|
6885
|
-
account_id?: string;
|
|
7058
|
+
account_id?: string | null;
|
|
6886
7059
|
customer_id?: string | null;
|
|
6887
7060
|
livemode?: boolean;
|
|
6888
7061
|
};
|
|
@@ -6945,6 +7118,83 @@ export declare class Genesis extends GenesisClient {
|
|
|
6945
7118
|
deleted: true;
|
|
6946
7119
|
}>;
|
|
6947
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
|
+
};
|
|
6948
7198
|
quotas: {
|
|
6949
7199
|
get: (org: string) => Promise<{
|
|
6950
7200
|
object: "org_quotas";
|
|
@@ -7088,6 +7338,64 @@ export declare class Genesis extends GenesisClient {
|
|
|
7088
7338
|
}[];
|
|
7089
7339
|
}[];
|
|
7090
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
|
+
}>;
|
|
7091
7399
|
};
|
|
7092
7400
|
/** Your One credits: balance, ledger, usage, settings, checkout and subscription (login session, or an org API key with genesis.billing.read / .manage). */
|
|
7093
7401
|
readonly credits: {
|
|
@@ -7123,6 +7431,7 @@ export declare class Genesis extends GenesisClient {
|
|
|
7123
7431
|
status: string;
|
|
7124
7432
|
granted_micro_usd: number;
|
|
7125
7433
|
};
|
|
7434
|
+
one_plan?: components["schemas"]["Gateway.CreditOnePlan"];
|
|
7126
7435
|
}>;
|
|
7127
7436
|
catalog: () => Promise<{
|
|
7128
7437
|
object: "credits_catalog";
|
|
@@ -7170,6 +7479,7 @@ export declare class Genesis extends GenesisClient {
|
|
|
7170
7479
|
org: string;
|
|
7171
7480
|
borrow: components["schemas"]["Gateway.CreditBorrow"];
|
|
7172
7481
|
auto_refill: components["schemas"]["Gateway.CreditAutoRefill"];
|
|
7482
|
+
one_plan?: components["schemas"]["Gateway.CreditOnePlan"];
|
|
7173
7483
|
}>;
|
|
7174
7484
|
checkout: (body: In<"gateway_createCreditCheckout">["body"], idempotencyKey: string) => Promise<{
|
|
7175
7485
|
url: string;
|
|
@@ -7809,6 +8119,40 @@ export declare class Genesis extends GenesisClient {
|
|
|
7809
8119
|
};
|
|
7810
8120
|
};
|
|
7811
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
|
+
};
|
|
7812
8156
|
readonly boxes: {
|
|
7813
8157
|
mail: {
|
|
7814
8158
|
addresses: {
|
|
@@ -9979,6 +10323,84 @@ export declare class Genesis extends GenesisClient {
|
|
|
9979
10323
|
artifact: string;
|
|
9980
10324
|
}, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntimeSelection>;
|
|
9981
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
|
+
};
|
|
9982
10404
|
settings: {
|
|
9983
10405
|
get: (project_id: string) => Promise<{
|
|
9984
10406
|
autoDeployEnabled: boolean;
|
package/dist/genesis.js
CHANGED
|
@@ -17,10 +17,12 @@ 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';
|
|
23
24
|
import { billingModule, creditsModule, gatewayModule, orgsModule } from './gateway.js';
|
|
25
|
+
import { agentsModule } from './agents.js';
|
|
24
26
|
import { orgsEntitiesModule } from './orgs.js';
|
|
25
27
|
import { iamModule } from './iam.js';
|
|
26
28
|
import { boxesModule } from './boxes.js';
|
|
@@ -61,6 +63,8 @@ export class Genesis extends GenesisClient {
|
|
|
61
63
|
lanes = lanesModule(this);
|
|
62
64
|
flares = flaresModule(this);
|
|
63
65
|
gateway = gatewayModule(this);
|
|
66
|
+
/** Public agent search and the crawler sitemap: Live agents their owners made public. No credential, never metered. */
|
|
67
|
+
agents = agentsModule(this);
|
|
64
68
|
/** Your organization's usage and billing reads, and Orgs: legal entities, seats, resolutions, documents, filings, formation and the record. */
|
|
65
69
|
orgs = { ...orgsModule(this), ...orgsEntitiesModule(this) };
|
|
66
70
|
billing = billingModule(this);
|
|
@@ -69,6 +73,8 @@ export class Genesis extends GenesisClient {
|
|
|
69
73
|
/** IAM v4: organizations, fleets, agents, roles, grants, capabilities and checks (login or org API key with iam:read / iam:write). */
|
|
70
74
|
iam = iamModule(this);
|
|
71
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);
|
|
72
78
|
boxes = boxesModule(this);
|
|
73
79
|
foundry = {
|
|
74
80
|
...foundryModule(this),
|