palbase 0.63.0 → 0.65.0
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/ai/index.js +2 -2
- package/dist/backend/engine.js +2 -2
- package/dist/backend/env.js +1 -1
- package/dist/backend/index.js +3 -3
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/{XHTUT6AV.js → 2HJQSGOO.js} +2 -2
- package/dist/chunks/{WXOQLEUW.js → 3TXOVBZP.js} +2 -2
- package/dist/chunks/{XPKA7LAF.js → 4NHRUBEF.js} +2 -2
- package/dist/chunks/{IX4TWJ7J.js → 5HMDOBEH.js} +2 -2
- package/dist/chunks/63TUW6P7.js +18 -0
- package/dist/chunks/{T74PPGHJ.js → 6GRY63N6.js} +2 -2
- package/dist/chunks/{WUQWOSEI.js → ARRJICH3.js} +2 -2
- package/dist/chunks/{VHTT6VB5.js → BYXX373R.js} +2 -2
- package/dist/chunks/{G4UNJNUL.js → CTWUVLVE.js} +1 -1
- package/dist/chunks/{COXA3LDU.js → CZGZTOK7.js} +2 -2
- package/dist/chunks/{UDS4W77D.js → DFX37NU3.js} +1 -1
- package/dist/chunks/{LGGBVI33.js → DLMWZYLL.js} +2 -2
- package/dist/chunks/{KGP3V3IA.js → G2JBUBZO.js} +2 -2
- package/dist/chunks/{SWB2U22R.js → GFG7WVN2.js} +2 -2
- package/dist/chunks/{RFRPB2IR.js → JHM7GTPD.js} +1 -1
- package/dist/chunks/KU6B2OXP.js +2 -0
- package/dist/chunks/{BVR7H5RY.js → KZZ3Y3DC.js} +1 -1
- package/dist/chunks/{ZG2LQB5B.js → TEF7WS37.js} +1 -1
- package/dist/chunks/{7YRDXDVI.js → X6JMSZBD.js} +2 -2
- package/dist/chunks/{YWG7F44Q.js → XSOQNHZ5.js} +1 -1
- package/dist/chunks/{EJ7YD4YY.js → YP3QTS4L.js} +1 -1
- package/dist/chunks/{IXFSQYJA.js → ZF3WKPVM.js} +2 -2
- package/dist/chunks/ZZRRJOEP.js +2 -0
- package/dist/cli.js +10804 -351
- package/dist/cloud/index.js +2 -2
- package/dist/refuse/ai.js +1 -1
- package/dist/refuse/backend.js +1 -1
- package/dist/refuse/cloud.js +1 -1
- package/dist/refuse/server.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/testing.js +2 -2
- package/dist/web/index.js +2 -2
- package/dist/web/message.js +2 -2
- package/dist/web/palbe.js +2 -2
- package/dist/web/paywall.js +2 -2
- package/dist/web/push-sw.js +1 -1
- package/dist/web/ssr.js +2 -2
- package/dist/web/vite.js +2 -2
- package/package.json +2 -2
- package/types/ai/src/chats.d.ts +20 -2
- package/types/ai/src/index.d.ts +2 -2
- package/types/ai/src/pools.d.ts +158 -9
- package/types/ai/src/tools.d.ts +83 -2
- package/types/cloud/src/generated/project.d.ts +2 -1
- package/types/internal/src/modules/ai.d.ts +338 -29
- package/types/internal/src/modules/events.d.ts +4 -3
- package/types/internal/src/modules/index.d.ts +1 -0
- package/types/internal/src/modules/storage.d.ts +1 -1
- package/types/internal/src/modules/workspaces.d.ts +604 -0
- package/types/server/src/server.d.ts +5 -0
- package/dist/chunks/5KIV2VHK.js +0 -2
- package/dist/chunks/5TXSFJYI.js +0 -18
- package/dist/chunks/BP35TQMR.js +0 -2
|
@@ -90,10 +90,10 @@ export type AgentDefinition = {
|
|
|
90
90
|
*/
|
|
91
91
|
effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
92
92
|
/**
|
|
93
|
-
* The agent's own variables
|
|
93
|
+
* The agent's own variables (names: upper-case letters, digits and _, not PALBASE_AI_…; 64 at most; a value 32 KiB at most): every command of its sessions has them, on every pool, beside the project's (PUT /ai/env/{key}), masked in a transcript. Each is its value, or {value, hosts, inject, open, secret, acknowledge_open, acknowledge_guessable}: what the secret says of itself, as PUT /ai/env/{key} takes it. A value is never answered again: a definition read back says each name with an empty value (an object where it says more than its value), and a name written with an empty value keeps the value it has — written as a bare string, what it says of itself too.
|
|
94
94
|
*/
|
|
95
95
|
env?: {
|
|
96
|
-
[key: string]:
|
|
96
|
+
[key: string]: AgentEnvValue | AgentEnvEntry;
|
|
97
97
|
};
|
|
98
98
|
/**
|
|
99
99
|
* Its instructions.
|
|
@@ -817,26 +817,58 @@ export type EnvList = {
|
|
|
817
817
|
variables: EnvVar[];
|
|
818
818
|
};
|
|
819
819
|
/**
|
|
820
|
-
* A variable's value.
|
|
820
|
+
* A variable's value, and what it says of itself; a field left out keeps what the variable has.
|
|
821
821
|
*/
|
|
822
822
|
export type EnvRequest = {
|
|
823
823
|
/**
|
|
824
|
-
*
|
|
824
|
+
* Said with open: true, and to make a secret no secret (secret: false): you read that the agent then reads it as it is, so anyone who can drive the project's agents (an app's user where the project lets them, a prompt the agent reads) can get its value.
|
|
825
|
+
*/
|
|
826
|
+
acknowledge_open?: boolean;
|
|
827
|
+
/**
|
|
828
|
+
* The hosts a request may carry the secret to (32 at most): an exact DNS name (api.stripe.com) or *. and one (*.stripe.com: one label more). Lower-case ASCII, punycode for another script; no IP address, port, single-label name, public suffix (com, co.uk, github.io) or wildcard over one, and no wildcard over palbase.studio. Given, the secret is sealed. [] takes them all away.
|
|
829
|
+
*/
|
|
830
|
+
hosts?: string[];
|
|
831
|
+
/**
|
|
832
|
+
* Where in a request to one of its hosts the secret may be put: header (the default), query, body — at least one. Never over plain http.
|
|
833
|
+
*/
|
|
834
|
+
inject?: ("header" | "query" | "body")[];
|
|
835
|
+
/**
|
|
836
|
+
* true: the agent reads it as it is (no hosts, no inject), set with acknowledge_open; false: sealed, a placeholder the proxy swaps for the value only on a request to one of its hosts. Work an app's user starts gets an open secret only where the project lets it (settings.open_secrets_for_app_users).
|
|
837
|
+
*/
|
|
838
|
+
open?: boolean;
|
|
839
|
+
/**
|
|
840
|
+
* Whether it is a secret (the default on a write of its value). One that is not (false) is given to the agent as it is, with no hosts and no class; a secret made none needs acknowledge_open. Every value is masked in a transcript either way.
|
|
825
841
|
*/
|
|
826
842
|
secret?: boolean;
|
|
827
843
|
/**
|
|
828
|
-
* Its value: 1 byte to 32 KiB, no NUL. Sealed, never answered, never logged.
|
|
844
|
+
* Its value: 1 byte to 32 KiB, no NUL (a sealed one: 8 bytes or more, no line break). Sealed, never answered, never logged. Required to set a new variable; left out, a variable set before keeps it.
|
|
829
845
|
*/
|
|
830
|
-
value
|
|
846
|
+
value?: string;
|
|
847
|
+
/**
|
|
848
|
+
* Said with a sealed value a person may have chosen (fewer than 16 characters, or one kind of character only): you read that the proxy hides a value an allowed host echoes back, which lets an agent confirm a guess there.
|
|
849
|
+
*/
|
|
850
|
+
acknowledge_guessable?: boolean;
|
|
831
851
|
};
|
|
832
852
|
/**
|
|
833
|
-
* One of the project's variables: its name, never its value.
|
|
853
|
+
* One of the project's variables: its name and what it says of itself, never its value.
|
|
834
854
|
*/
|
|
835
855
|
export type EnvVar = {
|
|
856
|
+
/**
|
|
857
|
+
* The hosts it may go to ([]: none — it goes to no host: a request carries its placeholder, and the host is asked about; always [] for an open secret or one that is no secret).
|
|
858
|
+
*/
|
|
859
|
+
hosts: string[];
|
|
860
|
+
/**
|
|
861
|
+
* Where in a request it may be put: header, query, body.
|
|
862
|
+
*/
|
|
863
|
+
inject: string[];
|
|
836
864
|
/**
|
|
837
865
|
* Its name.
|
|
838
866
|
*/
|
|
839
867
|
key: string;
|
|
868
|
+
/**
|
|
869
|
+
* Whether the agent reads it as it is (an open secret).
|
|
870
|
+
*/
|
|
871
|
+
open: boolean;
|
|
840
872
|
/**
|
|
841
873
|
* Whether it is a secret.
|
|
842
874
|
*/
|
|
@@ -1571,7 +1603,7 @@ export type PoolKey = {
|
|
|
1571
1603
|
created_at?: string;
|
|
1572
1604
|
enroll?: PoolKeyEnroll;
|
|
1573
1605
|
/**
|
|
1574
|
-
* The enrolment address (enroll.url), said with the key as it is minted: `
|
|
1606
|
+
* The enrolment address (enroll.url), said with the key as it is minted: `palbase-agent enroll --url`.
|
|
1575
1607
|
*/
|
|
1576
1608
|
enroll_url?: string;
|
|
1577
1609
|
/**
|
|
@@ -1583,7 +1615,7 @@ export type PoolKey = {
|
|
|
1583
1615
|
*/
|
|
1584
1616
|
id: string;
|
|
1585
1617
|
/**
|
|
1586
|
-
* The key, said once — as it is minted, never again: saved to a file on the machine, `
|
|
1618
|
+
* The key, said once — as it is minted, never again: saved to a file on the machine, `palbase-agent enroll --url <enroll_url> --key-file <file> --capacity <n>`.
|
|
1587
1619
|
*/
|
|
1588
1620
|
key?: string;
|
|
1589
1621
|
/**
|
|
@@ -1600,19 +1632,19 @@ export type PoolKey = {
|
|
|
1600
1632
|
revoked_at?: string;
|
|
1601
1633
|
};
|
|
1602
1634
|
/**
|
|
1603
|
-
* Where a machine enrols with it, said with the key as it is minted (never in a list): `
|
|
1635
|
+
* Where a machine enrols with it, said with the key as it is minted (never in a list): `palbase-agent enroll --url <url> --key-file <file>`, with `--server-name <server_name>` when the door's certificate names another host, and `--ca-file <file>` holding ca_certificate when the door's certificate is not publicly trusted.
|
|
1604
1636
|
*/
|
|
1605
1637
|
export type PoolKeyEnroll = {
|
|
1606
1638
|
/**
|
|
1607
|
-
* The CA the door's certificate is signed by (PEM), when it is not publicly trusted: saved to a file, `
|
|
1639
|
+
* The CA the door's certificate is signed by (PEM), when it is not publicly trusted: saved to a file, `palbase-agent enroll --ca-file`.
|
|
1608
1640
|
*/
|
|
1609
1641
|
ca_certificate?: string;
|
|
1610
1642
|
/**
|
|
1611
|
-
* The name the door's certificate carries, when it differs from the address's host: `
|
|
1643
|
+
* The name the door's certificate carries, when it differs from the address's host: `palbase-agent enroll --server-name`.
|
|
1612
1644
|
*/
|
|
1613
1645
|
server_name?: string;
|
|
1614
1646
|
/**
|
|
1615
|
-
* The enrolment address: `
|
|
1647
|
+
* The enrolment address: `palbase-agent enroll --url`.
|
|
1616
1648
|
*/
|
|
1617
1649
|
url: string;
|
|
1618
1650
|
};
|
|
@@ -1643,6 +1675,19 @@ export type PoolList = {
|
|
|
1643
1675
|
*/
|
|
1644
1676
|
pools: Pool[];
|
|
1645
1677
|
};
|
|
1678
|
+
/**
|
|
1679
|
+
* A machine's seal key, as the engine keeps it: the key a secret is sealed to on this machine (null: it never stated one — an agent before seal keys, or a key Palbase did not mint). A machine re-states at its certificate renewal while it is not registered, with no restart.
|
|
1680
|
+
*/
|
|
1681
|
+
export type MachineSealKey = ({
|
|
1682
|
+
/**
|
|
1683
|
+
* Why it is not registered: the module's closed reason for refused (refused_stale, refused_future, refused_retired, refused_elsewhere, refused_pinned, refused_statement, refused_shape), what failed for pending.
|
|
1684
|
+
*/
|
|
1685
|
+
reason?: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* registered (secrets may be sealed to it), pending (being registered; retried), refused (see reason), stale (a statement too old to register: the machine states again at its next renewal), or held (a hosted machine's, waiting for its first lease).
|
|
1688
|
+
*/
|
|
1689
|
+
state: "registered" | "pending" | "refused" | "stale" | "held";
|
|
1690
|
+
}) | null;
|
|
1646
1691
|
/**
|
|
1647
1692
|
* A machine of a pool.
|
|
1648
1693
|
*/
|
|
@@ -1679,6 +1724,7 @@ export type PoolMachine = {
|
|
|
1679
1724
|
* When it enrolled.
|
|
1680
1725
|
*/
|
|
1681
1726
|
registered_at?: string | null;
|
|
1727
|
+
seal_key?: MachineSealKey;
|
|
1682
1728
|
/**
|
|
1683
1729
|
* online, offline, or cordoned (it takes no new session).
|
|
1684
1730
|
*/
|
|
@@ -2131,6 +2177,10 @@ export type Settings = {
|
|
|
2131
2177
|
* How many messages one user sends a minute (default 20).
|
|
2132
2178
|
*/
|
|
2133
2179
|
user_messages_per_minute: number;
|
|
2180
|
+
/**
|
|
2181
|
+
* Whether the work an app's user starts (a member's message, goal or voice) has the project's open secrets. Off (the default), only the work the project's developers and its server start does.
|
|
2182
|
+
*/
|
|
2183
|
+
open_secrets_for_app_users: boolean;
|
|
2134
2184
|
};
|
|
2135
2185
|
/**
|
|
2136
2186
|
* A change of what the project allows its chats; a field left out is left as it is.
|
|
@@ -2152,6 +2202,10 @@ export type SettingsRequest = {
|
|
|
2152
2202
|
* 1 to 600.
|
|
2153
2203
|
*/
|
|
2154
2204
|
user_messages_per_minute?: number;
|
|
2205
|
+
/**
|
|
2206
|
+
* Let the work an app's user starts have the project's open secrets: anyone who signs in to the app can then drive an agent to read them. A person's alone: an owner or an admin of the organization signed in, never a key or a token, the secret key included (403 person_required; an environment's token, token_out_of_scope).
|
|
2207
|
+
*/
|
|
2208
|
+
open_secrets_for_app_users?: boolean;
|
|
2155
2209
|
};
|
|
2156
2210
|
/**
|
|
2157
2211
|
* What the project's use of Palbase's models (the platform's provider keys) has cost this month, and what it may still spend. A month brings every project a dollar of it free. Past it a Free project uses its own provider keys; a Pay as you go one is charged for it, at the provider's price and 10%.
|
|
@@ -2292,6 +2346,10 @@ export type SyncChangeSetResult = {
|
|
|
2292
2346
|
* The changes that lost.
|
|
2293
2347
|
*/
|
|
2294
2348
|
conflicts?: SyncConflict[];
|
|
2349
|
+
/**
|
|
2350
|
+
* The head the history holds at known_seq, which catch_up (or its absence) starts from. Absent only when catch_up is the whole tree (catch_up_full), or from a plane of a release before it. A writer whose own head at known_seq is another one has a history the store no longer has (restored from a backup): it takes neither and syncs again from scratch.
|
|
2351
|
+
*/
|
|
2352
|
+
known_manifest_id?: string;
|
|
2295
2353
|
/**
|
|
2296
2354
|
* The head's tree now.
|
|
2297
2355
|
*/
|
|
@@ -2329,6 +2387,10 @@ export type SyncChanges = {
|
|
|
2329
2387
|
* The sequence asked from.
|
|
2330
2388
|
*/
|
|
2331
2389
|
since?: number;
|
|
2390
|
+
/**
|
|
2391
|
+
* The head the history holds at since, which changes starts from. Absent only with full, or from a plane of a release before it. A writer whose own head at since is another one has a history the store no longer has (restored from a backup): it syncs again from scratch instead of taking changes.
|
|
2392
|
+
*/
|
|
2393
|
+
since_manifest_id?: string;
|
|
2332
2394
|
/**
|
|
2333
2395
|
* The head's tree's checksum.
|
|
2334
2396
|
*/
|
|
@@ -3356,11 +3418,11 @@ export type WorkspaceTokenMinted = {
|
|
|
3356
3418
|
*/
|
|
3357
3419
|
label?: string;
|
|
3358
3420
|
/**
|
|
3359
|
-
* Where the workspace's token routes are, at the project's own address: `
|
|
3421
|
+
* Where the workspace's token routes are, at the project's own address: `palbase-agent workspace sync --url <sync_url> <dir>`.
|
|
3360
3422
|
*/
|
|
3361
3423
|
sync_url: string;
|
|
3362
3424
|
/**
|
|
3363
|
-
* The token, said once: given `
|
|
3425
|
+
* The token, said once: given `palbase-agent workspace sync` in its environment (PALBASE_WORKSPACE_TOKEN) or on its standard input (--token-file -), never on its command line.
|
|
3364
3426
|
*/
|
|
3365
3427
|
token: string;
|
|
3366
3428
|
/**
|
|
@@ -3398,6 +3460,185 @@ export type WorkspaceTree = {
|
|
|
3398
3460
|
*/
|
|
3399
3461
|
seq?: number;
|
|
3400
3462
|
};
|
|
3463
|
+
/**
|
|
3464
|
+
* A host the secret may go to: the owner's Allow.
|
|
3465
|
+
*/
|
|
3466
|
+
export type EnvHostRequest = {
|
|
3467
|
+
/**
|
|
3468
|
+
* An exact DNS name or *. and one, as hosts takes them.
|
|
3469
|
+
*/
|
|
3470
|
+
host: string;
|
|
3471
|
+
};
|
|
3472
|
+
/**
|
|
3473
|
+
* A sealed secret an agent sent to a host it is not allowed for: the placeholder went as it is, and its owner is asked.
|
|
3474
|
+
*/
|
|
3475
|
+
export type SecretHostRequest = {
|
|
3476
|
+
/**
|
|
3477
|
+
* The agent whose own secret it is (its definition's env); null: one of the project's variables.
|
|
3478
|
+
*/
|
|
3479
|
+
agent: string | null;
|
|
3480
|
+
/**
|
|
3481
|
+
* How many times it was sent there.
|
|
3482
|
+
*/
|
|
3483
|
+
asks: number;
|
|
3484
|
+
/**
|
|
3485
|
+
* When it was allowed or dismissed; null: not yet.
|
|
3486
|
+
*/
|
|
3487
|
+
decided_at: string | null;
|
|
3488
|
+
/**
|
|
3489
|
+
* The registrable domain the host is under — its public suffix and one label more (evil.io for api.stripe.com.evil.io); under palbase.studio or palbase.app, the name itself. What an Allow hands over: whoever holds the domain runs every name under it.
|
|
3490
|
+
*/
|
|
3491
|
+
domain: string;
|
|
3492
|
+
/**
|
|
3493
|
+
* When it was first sent there.
|
|
3494
|
+
*/
|
|
3495
|
+
first_asked_at: string;
|
|
3496
|
+
/**
|
|
3497
|
+
* The host it was sent to. Nobody has checked who runs it.
|
|
3498
|
+
*/
|
|
3499
|
+
host: string;
|
|
3500
|
+
/**
|
|
3501
|
+
* The secret's name.
|
|
3502
|
+
*/
|
|
3503
|
+
key: string;
|
|
3504
|
+
/**
|
|
3505
|
+
* When it was last sent there.
|
|
3506
|
+
*/
|
|
3507
|
+
last_asked_at: string;
|
|
3508
|
+
/**
|
|
3509
|
+
* Whose definition the agent's is: kept (an agent the project keeps), chat (a chat's own definition), backend (its backend's, at each turn). An ask and an Allow are the agent's of that origin alone: a chat's own definition under a kept agent's name is another's. Null: one of the project's variables.
|
|
3510
|
+
*/
|
|
3511
|
+
origin: string | null;
|
|
3512
|
+
/**
|
|
3513
|
+
* The ask (shr_…).
|
|
3514
|
+
*/
|
|
3515
|
+
request_id: string;
|
|
3516
|
+
/**
|
|
3517
|
+
* asked, allowed or dismissed.
|
|
3518
|
+
*/
|
|
3519
|
+
status: string;
|
|
3520
|
+
};
|
|
3521
|
+
/**
|
|
3522
|
+
* The asks of one status, newest first (500 at most: all a project keeps of it).
|
|
3523
|
+
*/
|
|
3524
|
+
export type SecretHostRequestList = {
|
|
3525
|
+
/**
|
|
3526
|
+
* The asks.
|
|
3527
|
+
*/
|
|
3528
|
+
requests: SecretHostRequest[];
|
|
3529
|
+
};
|
|
3530
|
+
/**
|
|
3531
|
+
* ai.secret_host_requested: an agent sent a sealed secret to a host it is not allowed for.
|
|
3532
|
+
*/
|
|
3533
|
+
export type SecretHostRequested = {
|
|
3534
|
+
/**
|
|
3535
|
+
* The agent whose own secret it is; null: one of the project's variables.
|
|
3536
|
+
*/
|
|
3537
|
+
agent: string | null;
|
|
3538
|
+
/**
|
|
3539
|
+
* When it was sent there.
|
|
3540
|
+
*/
|
|
3541
|
+
asked_at: string;
|
|
3542
|
+
/**
|
|
3543
|
+
* The host it was sent to. Nobody has checked who runs it.
|
|
3544
|
+
*/
|
|
3545
|
+
host: string;
|
|
3546
|
+
/**
|
|
3547
|
+
* The secret's name.
|
|
3548
|
+
*/
|
|
3549
|
+
key: string;
|
|
3550
|
+
/**
|
|
3551
|
+
* The project whose secret it is: Palbase's own copy names the customer's.
|
|
3552
|
+
*/
|
|
3553
|
+
project_id: string;
|
|
3554
|
+
/**
|
|
3555
|
+
* The ask: allow or dismiss it (GET /ai/env/host-requests).
|
|
3556
|
+
*/
|
|
3557
|
+
request_id: string;
|
|
3558
|
+
};
|
|
3559
|
+
/**
|
|
3560
|
+
* A variable's value alone ("" read back, and written to keep the value it has).
|
|
3561
|
+
*/
|
|
3562
|
+
export type AgentEnvValue = string;
|
|
3563
|
+
/**
|
|
3564
|
+
* A variable's value and what the secret says of itself. A value kept from the definition written over ("") keeps what it said there unless a person changes it (403 person_required); a sealed value given is held to the value rules of PUT /ai/env/{key}, and a kept value made sealed (open or no secret before) is given with it (400 value_required). A write that gives any value is a change: the draft's revision moves.
|
|
3565
|
+
*/
|
|
3566
|
+
export type AgentEnvEntry = {
|
|
3567
|
+
/**
|
|
3568
|
+
* Said with open: true where the secret becomes open, and with secret: false where a secret becomes none (it was not so in the definition written over): you read that the agent reads it as it is.
|
|
3569
|
+
*/
|
|
3570
|
+
acknowledge_open?: boolean;
|
|
3571
|
+
/**
|
|
3572
|
+
* The hosts a request may carry it to, as PUT /ai/env/{key} takes them.
|
|
3573
|
+
*/
|
|
3574
|
+
hosts?: string[];
|
|
3575
|
+
/**
|
|
3576
|
+
* Where in such a request it may be put: header (the default), query, body.
|
|
3577
|
+
*/
|
|
3578
|
+
inject?: ("header" | "query" | "body")[];
|
|
3579
|
+
/**
|
|
3580
|
+
* The agent reads it as it is: no hosts, no inject.
|
|
3581
|
+
*/
|
|
3582
|
+
open?: boolean;
|
|
3583
|
+
/**
|
|
3584
|
+
* Its value ("": keep the value it has).
|
|
3585
|
+
*/
|
|
3586
|
+
value?: string;
|
|
3587
|
+
/**
|
|
3588
|
+
* Said with a sealed value a person may have chosen (fewer than 16 characters, or one kind of character only).
|
|
3589
|
+
*/
|
|
3590
|
+
acknowledge_guessable?: boolean;
|
|
3591
|
+
/**
|
|
3592
|
+
* Whether it is a secret (the default); false: a plain variable the agent reads as it is, with no hosts and no class.
|
|
3593
|
+
*/
|
|
3594
|
+
secret?: boolean;
|
|
3595
|
+
};
|
|
3596
|
+
/**
|
|
3597
|
+
* A host an agent's own secret may go to beside its definition's: an owner's Allow.
|
|
3598
|
+
*/
|
|
3599
|
+
export type SecretHostAllowance = {
|
|
3600
|
+
/**
|
|
3601
|
+
* The agent whose own secret it is.
|
|
3602
|
+
*/
|
|
3603
|
+
agent: string;
|
|
3604
|
+
/**
|
|
3605
|
+
* The allowance (sha_…).
|
|
3606
|
+
*/
|
|
3607
|
+
allowance_id: string;
|
|
3608
|
+
/**
|
|
3609
|
+
* When it was allowed.
|
|
3610
|
+
*/
|
|
3611
|
+
allowed_at: string;
|
|
3612
|
+
/**
|
|
3613
|
+
* The person who allowed it (their user id).
|
|
3614
|
+
*/
|
|
3615
|
+
allowed_by: string;
|
|
3616
|
+
/**
|
|
3617
|
+
* The registrable domain the host is under — its public suffix and one label more (evil.io for api.stripe.com.evil.io); under palbase.studio or palbase.app, the name itself. What an Allow hands over: whoever holds the domain runs every name under it.
|
|
3618
|
+
*/
|
|
3619
|
+
domain: string;
|
|
3620
|
+
/**
|
|
3621
|
+
* The host.
|
|
3622
|
+
*/
|
|
3623
|
+
host: string;
|
|
3624
|
+
/**
|
|
3625
|
+
* The secret's name.
|
|
3626
|
+
*/
|
|
3627
|
+
key: string;
|
|
3628
|
+
/**
|
|
3629
|
+
* Whose definition the agent's is: kept (an agent the project keeps), chat (a chat's own definition), backend (its backend's, at each turn). An ask and an Allow are the agent's of that origin alone: a chat's own definition under a kept agent's name is another's.
|
|
3630
|
+
*/
|
|
3631
|
+
origin: "kept" | "chat" | "backend";
|
|
3632
|
+
};
|
|
3633
|
+
/**
|
|
3634
|
+
* The project's allowances, newest first.
|
|
3635
|
+
*/
|
|
3636
|
+
export type SecretHostAllowanceList = {
|
|
3637
|
+
/**
|
|
3638
|
+
* The allowances.
|
|
3639
|
+
*/
|
|
3640
|
+
allowances: SecretHostAllowance[];
|
|
3641
|
+
};
|
|
3401
3642
|
/** The events this module sends the project's webhooks (x-palbase-events), by type: each one's payload, the event's data. */
|
|
3402
3643
|
export interface Events {
|
|
3403
3644
|
/**
|
|
@@ -3440,6 +3681,10 @@ export interface Events {
|
|
|
3440
3681
|
* ai.workspace.pushed: a chat's agent pushed its work to the chat's branch, with the commits it brought.
|
|
3441
3682
|
*/
|
|
3442
3683
|
"ai.workspace.pushed": WorkspacePushedEvent;
|
|
3684
|
+
/**
|
|
3685
|
+
* ai.secret_host_requested: an agent sent a sealed secret to a host it is not allowed for — the placeholder went as it is, and the owners are asked to allow or dismiss it. Told to the project and to Palbase's own (whose Studio emails the organization's owners), at most once a day a secret and host, and at most 10 a project a day.
|
|
3686
|
+
*/
|
|
3687
|
+
"ai.secret_host_requested": SecretHostRequested;
|
|
3443
3688
|
}
|
|
3444
3689
|
/** Palbase ai */
|
|
3445
3690
|
export declare function client(t: Transport): {
|
|
@@ -3845,7 +4090,7 @@ export declare function client(t: Transport): {
|
|
|
3845
4090
|
/**
|
|
3846
4091
|
* A turn's artifacts
|
|
3847
4092
|
*
|
|
3848
|
-
* What the turn's agent published as its output (
|
|
4093
|
+
* What the turn's agent published as its output (palbase.artifact.publish) — a build's product, a screenshot, a report — kept in the project's own storage. The chat's members and the project's server read it, as they read the chat.
|
|
3849
4094
|
*/
|
|
3850
4095
|
listChatTurnArtifacts(input: {
|
|
3851
4096
|
path: {
|
|
@@ -4005,7 +4250,7 @@ export declare function client(t: Transport): {
|
|
|
4005
4250
|
/**
|
|
4006
4251
|
* Mint a workspace token
|
|
4007
4252
|
*
|
|
4008
|
-
* A token of the chat's workspace for a machine of the customer's to sync it with — `
|
|
4253
|
+
* A token of the chat's workspace for a machine of the customer's to sync it with — `PALBASE_WORKSPACE_TOKEN=<token> palbase-agent workspace sync --url <sync_url> <dir>` (or the token on standard input: `--token-file -`; never on the command line): live and always both ways (write), or followed (read) — said once, here. It lives ttl_seconds (an hour when none, 7 days at most) — no longer than an environment's token it is minted with — and answers at the project's own address alone (sync_url, the workspace's token routes). While one lives the chat's workspace events are told (ai.workspace.published, ai.workspace.conflict). A chat whose first turn has not opened its workspace has it opened now. The project's server's, and a member's who may write the chat: a member's token lives an hour at most, is theirs alone to list and revoke, and answers only while they are in the chat and the project lets its users talk to its agents (settings.clients) — taking them out, or turning clients off, revokes it. A chat that works in no workspace: 409 no_workspace.
|
|
4009
4254
|
*/
|
|
4010
4255
|
createChatWorkspaceToken(input: {
|
|
4011
4256
|
path: {
|
|
@@ -4069,7 +4314,7 @@ export declare function client(t: Transport): {
|
|
|
4069
4314
|
/**
|
|
4070
4315
|
* The project's variables
|
|
4071
4316
|
*
|
|
4072
|
-
* Their names, whether each is a secret, and when each was set: never a value.
|
|
4317
|
+
* Their names, whether each is a secret, the hosts a secret may go to, where it may be put, whether it is open, and when each was set: never a value.
|
|
4073
4318
|
*/
|
|
4074
4319
|
listEnv(input?: {
|
|
4075
4320
|
signal?: AbortSignal;
|
|
@@ -4077,7 +4322,7 @@ export declare function client(t: Transport): {
|
|
|
4077
4322
|
/**
|
|
4078
4323
|
* Set a variable
|
|
4079
4324
|
*
|
|
4080
|
-
* One of the project's variables or secrets, set or set anew: every command of every session of its agents begun from now has it — on the platform's Linux machines and on the project's own pools, Linux and Mac — beside the agent's own (its definition's env), masked wherever a transcript would show it. The value is sealed where the sessions run and never answered, nor logged; a refusal never repeats it.
|
|
4325
|
+
* One of the project's variables or secrets, set or set anew: every command of every session of its agents begun from now has it — on the platform's Linux machines and on the project's own pools, Linux and Mac — beside the agent's own (its definition's env), masked wherever a transcript would show it. The value is sealed where the sessions run and never answered, nor logged; a refusal never repeats it. A secret also says where it may go (hosts), where in a request it may be put (inject) and whether the agent reads it as it is (open); a field left out keeps what the variable has. A write that carries the value says them as its caller's role allows. A variable set before may leave out its value to change them alone (404 for one never set): a person's change only — an owner or an admin of the organization signed in, never a key or a token, the secret key included (403 person_required). open: true, and a secret made no secret, need acknowledge_open: true (400 open_not_acknowledged); a variable that stays no secret is refused hosts, inject and open (409 not_a_secret). A sealed value is at least 8 bytes with no line break or NUL (400 secret_unusable), and one a person may have chosen (fewer than 16 characters, or one kind of character only) needs acknowledge_guessable: true (400 secret_guessable) — the request's own value is judged, never one kept: an open secret or a variable that is no secret made sealed takes its value in the same request (400 value_required). A sealed secret is a placeholder in a session: the proxy beside the machine puts the value in only on a request to one of its hosts, and a machine with no proxy beside it (a Mac, or a Linux machine whose agent does not run it) gets no sealed secret.
|
|
4081
4326
|
*/
|
|
4082
4327
|
putEnv(input: {
|
|
4083
4328
|
path: {
|
|
@@ -4135,7 +4380,7 @@ export declare function client(t: Transport): {
|
|
|
4135
4380
|
/**
|
|
4136
4381
|
* Delete a machine
|
|
4137
4382
|
*
|
|
4138
|
-
* A cordoned machine that holds no session leaves its pool; its `
|
|
4383
|
+
* A cordoned machine that holds no session leaves its pool; its agent (`palbase-agent`) is refused from then. One not cordoned: 409 machine_not_cordoned; one that holds a session: 409 machine_busy.
|
|
4139
4384
|
*/
|
|
4140
4385
|
deleteMachine(input: {
|
|
4141
4386
|
path: {
|
|
@@ -4195,7 +4440,7 @@ export declare function client(t: Transport): {
|
|
|
4195
4440
|
/**
|
|
4196
4441
|
* Make a runner pool
|
|
4197
4442
|
*
|
|
4198
|
-
* A pool of one type — its machines' operating system (linux or macos) and architecture (amd64 or arm64) — that the project's own machines enrol into with
|
|
4443
|
+
* A pool of one type — its machines' operating system (linux or macos) and architecture (amd64 or arm64) — that the project's own machines enrol into with `palbase-agent` and a single-use key (POST /ai/pools/{pool}/keys). A chat that names it (POST /ai/chats {pool}) runs its workspace's sessions there. Managed through the API, the SDK and the CLI (palbase ai pools): the project scales it itself, reading its state (GET /ai/pools/{pool}/state). A name taken already: 409 pool_exists.
|
|
4199
4444
|
*/
|
|
4200
4445
|
createPool(input: {
|
|
4201
4446
|
body: PoolRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -4226,7 +4471,7 @@ export declare function client(t: Transport): {
|
|
|
4226
4471
|
/**
|
|
4227
4472
|
* Mint an enrolment key
|
|
4228
4473
|
*
|
|
4229
|
-
* A single-use key a machine of the project's enrols into the pool with (saved to a file on the machine: `
|
|
4474
|
+
* A single-use key a machine of the project's enrols into the pool with (saved to a file on the machine: `palbase-agent enroll --key-file <file> --capacity <n>` — never on a command line), said once, here. A machine enrolled with it serves the project's sessions once whoever minted it is gone: never minted for an environment's token.
|
|
4230
4475
|
*/
|
|
4231
4476
|
createPoolKey(input: {
|
|
4232
4477
|
path: {
|
|
@@ -4363,7 +4608,7 @@ export declare function client(t: Transport): {
|
|
|
4363
4608
|
/**
|
|
4364
4609
|
* What the project allows its chats
|
|
4365
4610
|
*
|
|
4366
|
-
* Whether its app's users talk to its agents themselves, how many messages one sends a minute,
|
|
4611
|
+
* Whether its app's users talk to its agents themselves, how many messages one sends a minute, how much history it keeps, its monthly budget, and whether its app's users' work has its open secrets.
|
|
4367
4612
|
*/
|
|
4368
4613
|
getSettings(input?: {
|
|
4369
4614
|
signal?: AbortSignal;
|
|
@@ -4419,7 +4664,7 @@ export declare function client(t: Transport): {
|
|
|
4419
4664
|
/**
|
|
4420
4665
|
* What changed since a sequence
|
|
4421
4666
|
*
|
|
4422
|
-
* Every path whose state at the head differs from its state at since, as it is at the head (since 0, or older than the kept history: the whole tree, full). Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `
|
|
4667
|
+
* Every path whose state at the head differs from its state at since, as it is at the head (since 0, or older than the kept history: the whole tree, full). Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `palbase-agent workspace sync` speaks: its shapes are the store's.
|
|
4423
4668
|
*/
|
|
4424
4669
|
getWorkspaceSyncChanges(input?: {
|
|
4425
4670
|
query?: {
|
|
@@ -4430,7 +4675,7 @@ export declare function client(t: Transport): {
|
|
|
4430
4675
|
/**
|
|
4431
4676
|
* Publish the writer's changes
|
|
4432
4677
|
*
|
|
4433
|
-
* The writer's changes, each with what it last knew of its path (previous): applied only while the path still is that — the first to reach the store wins; a change that lost is kept aside as a conflict, in the workspace's history for 30 days (ai.workspace.conflict) — answered with the head, what was applied, what lost, and what changed since known_seq that the writer has not seen (catch_up). A write token's alone. Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `
|
|
4678
|
+
* The writer's changes, each with what it last knew of its path (previous): applied only while the path still is that — the first to reach the store wins; a change that lost is kept aside as a conflict, in the workspace's history for 30 days (ai.workspace.conflict) — answered with the head, what was applied, what lost, and what changed since known_seq that the writer has not seen (catch_up). A write token's alone. Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `palbase-agent workspace sync` speaks: its shapes are the store's.
|
|
4434
4679
|
*/
|
|
4435
4680
|
createWorkspaceSyncChangeSet(input: {
|
|
4436
4681
|
body: SyncChangeSet; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -4439,7 +4684,7 @@ export declare function client(t: Transport): {
|
|
|
4439
4684
|
/**
|
|
4440
4685
|
* A conflict, and the version that lost
|
|
4441
4686
|
*
|
|
4442
|
-
* A conflict as the workspace's history keeps it (30 days): the path, the version that lost with a signed request to read its bytes (read), the one that won, the tree and the writer. Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `
|
|
4687
|
+
* A conflict as the workspace's history keeps it (30 days): the path, the version that lost with a signed request to read its bytes (read), the one that won, the tree and the writer. Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `palbase-agent workspace sync` speaks: its shapes are the store's.
|
|
4443
4688
|
*/
|
|
4444
4689
|
getWorkspaceSyncConflict(input: {
|
|
4445
4690
|
path: {
|
|
@@ -4450,7 +4695,7 @@ export declare function client(t: Transport): {
|
|
|
4450
4695
|
/**
|
|
4451
4696
|
* The workspace's events, as they happen
|
|
4452
4697
|
*
|
|
4453
|
-
* An event stream (text/event-stream), passed on unbuffered: `event: head` when the head moves ({workspace_id, manifest_id, seq}) and `event: conflict` when a writer's change lost ({id, path, lost, winner}), with a comment line every 15 seconds. Each of the module's servers that answer the project's address holds 4 streams of a token open at once, 16 of a workspace, 64 of a project's tokens together — apart from the project's response streams (429 too_many_streams): the bounds are a server's, not the project's whole; a stream ends when its token is revoked, expires, or is a member's whose member left the chat. Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `
|
|
4698
|
+
* An event stream (text/event-stream), passed on unbuffered: `event: head` when the head moves ({workspace_id, manifest_id, seq}) and `event: conflict` when a writer's change lost ({id, path, lost, winner}), with a comment line every 15 seconds. Each of the module's servers that answer the project's address holds 4 streams of a token open at once, 16 of a workspace, 64 of a project's tokens together — apart from the project's response streams (429 too_many_streams): the bounds are a server's, not the project's whole; a stream ends when its token is revoked, expires, or is a member's whose member left the chat. Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `palbase-agent workspace sync` speaks: its shapes are the store's.
|
|
4454
4699
|
*/
|
|
4455
4700
|
getWorkspaceSyncEvents(input?: {
|
|
4456
4701
|
signal?: AbortSignal;
|
|
@@ -4458,7 +4703,7 @@ export declare function client(t: Transport): {
|
|
|
4458
4703
|
/**
|
|
4459
4704
|
* Signed transfers of the workspace's blobs
|
|
4460
4705
|
*
|
|
4461
|
-
* Presigned requests for the blobs the writer will upload (put) and read (get), by their digests: a blob the store holds already is not in put — nothing to upload. Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `
|
|
4706
|
+
* Presigned requests for the blobs the writer will upload (put) and read (get), by their digests: a blob the store holds already is not in put — nothing to upload. Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `palbase-agent workspace sync` speaks: its shapes are the store's.
|
|
4462
4707
|
*/
|
|
4463
4708
|
createWorkspaceSyncGrants(input: {
|
|
4464
4709
|
body: SyncGrantRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -4467,10 +4712,74 @@ export declare function client(t: Transport): {
|
|
|
4467
4712
|
/**
|
|
4468
4713
|
* Where the workspace's head is
|
|
4469
4714
|
*
|
|
4470
|
-
* The tree the workspace is at: its manifest, its sequence and its checksum. Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `
|
|
4715
|
+
* The tree the workspace is at: its manifest, its sequence and its checksum. Called with the workspace token alone (Authorization: Bearer), at the project's own address — forwarded as it came to the workspace's store, whose answer it is (its refusals are its own problem documents, application/problem+json); a token this project did not mint, revoked or expired is refused here (401 invalid_token). This is the wire `palbase-agent workspace sync` speaks: its shapes are the store's.
|
|
4471
4716
|
*/
|
|
4472
4717
|
getWorkspaceSyncHead(input?: {
|
|
4473
4718
|
signal?: AbortSignal;
|
|
4474
4719
|
}): Promise<Reply<200, SyncChanges>>;
|
|
4720
|
+
/**
|
|
4721
|
+
* Allow a secret a host
|
|
4722
|
+
*
|
|
4723
|
+
* The owner's Allow, for one of the project's variables: the host is added to a sealed secret's hosts (32 at most), and the asks it now allows are marked allowed. A sealed secret sent to it from the proxy's next renewal carries the value. Allow only a host you know the secret belongs to: an agent can be led to send a secret anywhere. A person's alone: an owner or an admin of the organization signed in, never a key or a token, the secret key included (403 person_required; an environment's token, token_out_of_scope).
|
|
4724
|
+
*/
|
|
4725
|
+
allowEnvHost(input: {
|
|
4726
|
+
path: {
|
|
4727
|
+
key: string;
|
|
4728
|
+
};
|
|
4729
|
+
body: EnvHostRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
4730
|
+
signal?: AbortSignal;
|
|
4731
|
+
}): Promise<Reply<200, EnvVar>>;
|
|
4732
|
+
/**
|
|
4733
|
+
* The hosts the project's secrets asked for
|
|
4734
|
+
*
|
|
4735
|
+
* The hosts the project's sealed secrets were sent to that they are not allowed for: each secret and host once, with how many times, newest first — its host and the registrable domain it is under (an Allow hands the secret to whoever holds that domain), and whose secret it is (a project variable, or an agent's own of an origin). The project's owners are emailed a link at most once a day for each, at most 3 a day for one secret and 10 a project a day, counted where no ask lowers the count. A project keeps 500 asked, 50 of them a secret and 100 an agent's own secrets: an ask past one forgets an asked one alone — the secret's own oldest, else the oldest of the secret that holds the most, the one asked last among equals — never a dismissed or an allowed one; it keeps 500 dismissed and 500 allowed, a decision past them forgetting the oldest of its kind. A variable removed takes its asks with it, and a key that leaves an agent its own.
|
|
4736
|
+
*/
|
|
4737
|
+
listEnvHostRequests(input?: {
|
|
4738
|
+
query?: {
|
|
4739
|
+
status?: "asked" | "allowed" | "dismissed";
|
|
4740
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
4741
|
+
signal?: AbortSignal;
|
|
4742
|
+
}): Promise<Reply<200, SecretHostRequestList>>;
|
|
4743
|
+
/**
|
|
4744
|
+
* Dismiss an ask
|
|
4745
|
+
*
|
|
4746
|
+
* The owner's Dismiss: the ask is never told again (it is still counted). One allowed is not undone here: its host is the secret's (PUT /ai/env/{key} with hosts, or DELETE /ai/env/allowances/{allowance_id}, takes it away) — 409 already_allowed. A person's alone: an owner or an admin of the organization signed in, never a key or a token, the secret key included (403 person_required; an environment's token, token_out_of_scope).
|
|
4747
|
+
*/
|
|
4748
|
+
dismissEnvHostRequest(input: {
|
|
4749
|
+
path: {
|
|
4750
|
+
request_id: string;
|
|
4751
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
4752
|
+
signal?: AbortSignal;
|
|
4753
|
+
}): Promise<Reply<200, SecretHostRequest>>;
|
|
4754
|
+
/**
|
|
4755
|
+
* Allow an ask
|
|
4756
|
+
*
|
|
4757
|
+
* The owner's Allow, for any ask: its host is added to the variable's hosts (one of the project's), or to the agent's allowances (an agent's own secret: GET /ai/env/allowances), and the asks it now allows are marked allowed. A person's alone: an owner or an admin of the organization signed in, never a key or a token, the secret key included (403 person_required; an environment's token, token_out_of_scope).
|
|
4758
|
+
*/
|
|
4759
|
+
allowEnvHostRequest(input: {
|
|
4760
|
+
path: {
|
|
4761
|
+
request_id: string;
|
|
4762
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
4763
|
+
signal?: AbortSignal;
|
|
4764
|
+
}): Promise<Reply<200, SecretHostRequest>>;
|
|
4765
|
+
/**
|
|
4766
|
+
* The agents' secrets' allowances
|
|
4767
|
+
*
|
|
4768
|
+
* The hosts the project's agents' own secrets are allowed beside their definitions': each an owner's Allow of an ask, newest first (500 at most), with whose agent (origin) and the host's registrable domain. A new value keeps them. One goes with its key: an agent the project keeps, once neither its draft nor its version published has the key (deleted, every one); a chat's own definition, with the last chat whose definition has it; a backend's agent, after 30 days with no turn.
|
|
4769
|
+
*/
|
|
4770
|
+
listEnvAllowances(input?: {
|
|
4771
|
+
signal?: AbortSignal;
|
|
4772
|
+
}): Promise<Reply<200, SecretHostAllowanceList>>;
|
|
4773
|
+
/**
|
|
4774
|
+
* Take an allowance away
|
|
4775
|
+
*
|
|
4776
|
+
* The host taken away from the agent's secret: an ask for it is asked again. A person's alone: an owner or an admin of the organization signed in, never a key or a token, the secret key included (403 person_required; an environment's token, token_out_of_scope).
|
|
4777
|
+
*/
|
|
4778
|
+
deleteEnvAllowance(input: {
|
|
4779
|
+
path: {
|
|
4780
|
+
allowance_id: string;
|
|
4781
|
+
}; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
4782
|
+
signal?: AbortSignal;
|
|
4783
|
+
}): Promise<Reply<204, undefined>>;
|
|
4475
4784
|
};
|
|
4476
4785
|
export type Client = ReturnType<typeof client>;
|