palbase 0.64.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/{UAD4XPIB.js → 2HJQSGOO.js} +2 -2
- package/dist/chunks/{HWDOVTN4.js → 3TXOVBZP.js} +2 -2
- package/dist/chunks/{AUCNHNPD.js → 4NHRUBEF.js} +2 -2
- package/dist/chunks/{MVHF5I2L.js → 5HMDOBEH.js} +2 -2
- package/dist/chunks/{QDAQJXBR.js → 63TUW6P7.js} +2 -2
- package/dist/chunks/{7WLAMFND.js → 6GRY63N6.js} +2 -2
- package/dist/chunks/{ZZLCBUNM.js → ARRJICH3.js} +2 -2
- package/dist/chunks/{73CKSYD7.js → BYXX373R.js} +2 -2
- package/dist/chunks/{B6FEEB5R.js → CTWUVLVE.js} +1 -1
- package/dist/chunks/{2FPPZ3A3.js → CZGZTOK7.js} +2 -2
- package/dist/chunks/{RCV4YOM6.js → DFX37NU3.js} +1 -1
- package/dist/chunks/{KRYGPGVB.js → DLMWZYLL.js} +2 -2
- package/dist/chunks/{ZO7BWXF3.js → G2JBUBZO.js} +2 -2
- package/dist/chunks/{SKPSBDXT.js → GFG7WVN2.js} +2 -2
- package/dist/chunks/{XDGXREXS.js → JHM7GTPD.js} +1 -1
- package/dist/chunks/KU6B2OXP.js +2 -0
- package/dist/chunks/{D2Z5R7ZP.js → KZZ3Y3DC.js} +1 -1
- package/dist/chunks/{TTDCC4FL.js → TEF7WS37.js} +1 -1
- package/dist/chunks/{U6S2T2FE.js → X6JMSZBD.js} +2 -2
- package/dist/chunks/{XIHO4HVO.js → XSOQNHZ5.js} +1 -1
- package/dist/chunks/{MUHCCKSS.js → YP3QTS4L.js} +1 -1
- package/dist/chunks/{TNY6UGJZ.js → ZF3WKPVM.js} +2 -2
- package/dist/chunks/ZZRRJOEP.js +2 -0
- package/dist/cli.js +202 -202
- 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/cloud/src/generated/project.d.ts +1 -0
- package/types/internal/src/modules/ai.d.ts +36 -22
- 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/47YRZOKH.js +0 -2
- package/dist/chunks/K4E27V7K.js +0 -2
|
@@ -90,7 +90,7 @@ export type AgentDefinition = {
|
|
|
90
90
|
*/
|
|
91
91
|
effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
92
92
|
/**
|
|
93
|
-
* The agent's own variables (names: upper-case letters, digits and _, not
|
|
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
96
|
[key: string]: AgentEnvValue | AgentEnvEntry;
|
|
@@ -854,7 +854,7 @@ export type EnvRequest = {
|
|
|
854
854
|
*/
|
|
855
855
|
export type EnvVar = {
|
|
856
856
|
/**
|
|
857
|
-
* The hosts it may go to ([]: none
|
|
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
858
|
*/
|
|
859
859
|
hosts: string[];
|
|
860
860
|
/**
|
|
@@ -1603,7 +1603,7 @@ export type PoolKey = {
|
|
|
1603
1603
|
created_at?: string;
|
|
1604
1604
|
enroll?: PoolKeyEnroll;
|
|
1605
1605
|
/**
|
|
1606
|
-
* 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`.
|
|
1607
1607
|
*/
|
|
1608
1608
|
enroll_url?: string;
|
|
1609
1609
|
/**
|
|
@@ -1615,7 +1615,7 @@ export type PoolKey = {
|
|
|
1615
1615
|
*/
|
|
1616
1616
|
id: string;
|
|
1617
1617
|
/**
|
|
1618
|
-
* 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>`.
|
|
1619
1619
|
*/
|
|
1620
1620
|
key?: string;
|
|
1621
1621
|
/**
|
|
@@ -1632,19 +1632,19 @@ export type PoolKey = {
|
|
|
1632
1632
|
revoked_at?: string;
|
|
1633
1633
|
};
|
|
1634
1634
|
/**
|
|
1635
|
-
* 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.
|
|
1636
1636
|
*/
|
|
1637
1637
|
export type PoolKeyEnroll = {
|
|
1638
1638
|
/**
|
|
1639
|
-
* 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`.
|
|
1640
1640
|
*/
|
|
1641
1641
|
ca_certificate?: string;
|
|
1642
1642
|
/**
|
|
1643
|
-
* 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`.
|
|
1644
1644
|
*/
|
|
1645
1645
|
server_name?: string;
|
|
1646
1646
|
/**
|
|
1647
|
-
* The enrolment address: `
|
|
1647
|
+
* The enrolment address: `palbase-agent enroll --url`.
|
|
1648
1648
|
*/
|
|
1649
1649
|
url: string;
|
|
1650
1650
|
};
|
|
@@ -1675,6 +1675,19 @@ export type PoolList = {
|
|
|
1675
1675
|
*/
|
|
1676
1676
|
pools: Pool[];
|
|
1677
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;
|
|
1678
1691
|
/**
|
|
1679
1692
|
* A machine of a pool.
|
|
1680
1693
|
*/
|
|
@@ -1711,6 +1724,7 @@ export type PoolMachine = {
|
|
|
1711
1724
|
* When it enrolled.
|
|
1712
1725
|
*/
|
|
1713
1726
|
registered_at?: string | null;
|
|
1727
|
+
seal_key?: MachineSealKey;
|
|
1714
1728
|
/**
|
|
1715
1729
|
* online, offline, or cordoned (it takes no new session).
|
|
1716
1730
|
*/
|
|
@@ -3404,11 +3418,11 @@ export type WorkspaceTokenMinted = {
|
|
|
3404
3418
|
*/
|
|
3405
3419
|
label?: string;
|
|
3406
3420
|
/**
|
|
3407
|
-
* 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>`.
|
|
3408
3422
|
*/
|
|
3409
3423
|
sync_url: string;
|
|
3410
3424
|
/**
|
|
3411
|
-
* 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.
|
|
3412
3426
|
*/
|
|
3413
3427
|
token: string;
|
|
3414
3428
|
/**
|
|
@@ -4076,7 +4090,7 @@ export declare function client(t: Transport): {
|
|
|
4076
4090
|
/**
|
|
4077
4091
|
* A turn's artifacts
|
|
4078
4092
|
*
|
|
4079
|
-
* 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.
|
|
4080
4094
|
*/
|
|
4081
4095
|
listChatTurnArtifacts(input: {
|
|
4082
4096
|
path: {
|
|
@@ -4236,7 +4250,7 @@ export declare function client(t: Transport): {
|
|
|
4236
4250
|
/**
|
|
4237
4251
|
* Mint a workspace token
|
|
4238
4252
|
*
|
|
4239
|
-
* 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.
|
|
4240
4254
|
*/
|
|
4241
4255
|
createChatWorkspaceToken(input: {
|
|
4242
4256
|
path: {
|
|
@@ -4308,7 +4322,7 @@ export declare function client(t: Transport): {
|
|
|
4308
4322
|
/**
|
|
4309
4323
|
* Set a variable
|
|
4310
4324
|
*
|
|
4311
|
-
* 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).
|
|
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.
|
|
4312
4326
|
*/
|
|
4313
4327
|
putEnv(input: {
|
|
4314
4328
|
path: {
|
|
@@ -4366,7 +4380,7 @@ export declare function client(t: Transport): {
|
|
|
4366
4380
|
/**
|
|
4367
4381
|
* Delete a machine
|
|
4368
4382
|
*
|
|
4369
|
-
* 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.
|
|
4370
4384
|
*/
|
|
4371
4385
|
deleteMachine(input: {
|
|
4372
4386
|
path: {
|
|
@@ -4426,7 +4440,7 @@ export declare function client(t: Transport): {
|
|
|
4426
4440
|
/**
|
|
4427
4441
|
* Make a runner pool
|
|
4428
4442
|
*
|
|
4429
|
-
* 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.
|
|
4430
4444
|
*/
|
|
4431
4445
|
createPool(input: {
|
|
4432
4446
|
body: PoolRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -4457,7 +4471,7 @@ export declare function client(t: Transport): {
|
|
|
4457
4471
|
/**
|
|
4458
4472
|
* Mint an enrolment key
|
|
4459
4473
|
*
|
|
4460
|
-
* 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.
|
|
4461
4475
|
*/
|
|
4462
4476
|
createPoolKey(input: {
|
|
4463
4477
|
path: {
|
|
@@ -4650,7 +4664,7 @@ export declare function client(t: Transport): {
|
|
|
4650
4664
|
/**
|
|
4651
4665
|
* What changed since a sequence
|
|
4652
4666
|
*
|
|
4653
|
-
* 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.
|
|
4654
4668
|
*/
|
|
4655
4669
|
getWorkspaceSyncChanges(input?: {
|
|
4656
4670
|
query?: {
|
|
@@ -4661,7 +4675,7 @@ export declare function client(t: Transport): {
|
|
|
4661
4675
|
/**
|
|
4662
4676
|
* Publish the writer's changes
|
|
4663
4677
|
*
|
|
4664
|
-
* 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.
|
|
4665
4679
|
*/
|
|
4666
4680
|
createWorkspaceSyncChangeSet(input: {
|
|
4667
4681
|
body: SyncChangeSet; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -4670,7 +4684,7 @@ export declare function client(t: Transport): {
|
|
|
4670
4684
|
/**
|
|
4671
4685
|
* A conflict, and the version that lost
|
|
4672
4686
|
*
|
|
4673
|
-
* 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.
|
|
4674
4688
|
*/
|
|
4675
4689
|
getWorkspaceSyncConflict(input: {
|
|
4676
4690
|
path: {
|
|
@@ -4681,7 +4695,7 @@ export declare function client(t: Transport): {
|
|
|
4681
4695
|
/**
|
|
4682
4696
|
* The workspace's events, as they happen
|
|
4683
4697
|
*
|
|
4684
|
-
* 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.
|
|
4685
4699
|
*/
|
|
4686
4700
|
getWorkspaceSyncEvents(input?: {
|
|
4687
4701
|
signal?: AbortSignal;
|
|
@@ -4689,7 +4703,7 @@ export declare function client(t: Transport): {
|
|
|
4689
4703
|
/**
|
|
4690
4704
|
* Signed transfers of the workspace's blobs
|
|
4691
4705
|
*
|
|
4692
|
-
* 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.
|
|
4693
4707
|
*/
|
|
4694
4708
|
createWorkspaceSyncGrants(input: {
|
|
4695
4709
|
body: SyncGrantRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
|
|
@@ -4698,7 +4712,7 @@ export declare function client(t: Transport): {
|
|
|
4698
4712
|
/**
|
|
4699
4713
|
* Where the workspace's head is
|
|
4700
4714
|
*
|
|
4701
|
-
* 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.
|
|
4702
4716
|
*/
|
|
4703
4717
|
getWorkspaceSyncHead(input?: {
|
|
4704
4718
|
signal?: AbortSignal;
|
|
@@ -10,17 +10,18 @@ import type { Events as NotifyEvents } from './notify.js';
|
|
|
10
10
|
import type { Events as PurchasesEvents } from './purchases.js';
|
|
11
11
|
import type { Events as StorageEvents } from './storage.js';
|
|
12
12
|
import type { Events as StoresEvents } from './stores.js';
|
|
13
|
+
import type { Events as WorkspacesEvents } from './workspaces.js';
|
|
13
14
|
/** Every event the modules' contracts say they send the project's webhooks (x-palbase-events), by type: its payload, the event's data. */
|
|
14
|
-
export interface PlatformEvents extends AiEvents, AnalyticsEvents, AuthEvents, CallsEvents, FlagsEvents, JourneysEvents, MessagingEvents, NotifyEvents, PurchasesEvents, StorageEvents, StoresEvents {
|
|
15
|
+
export interface PlatformEvents extends AiEvents, AnalyticsEvents, AuthEvents, CallsEvents, FlagsEvents, JourneysEvents, MessagingEvents, NotifyEvents, PurchasesEvents, StorageEvents, StoresEvents, WorkspacesEvents {
|
|
15
16
|
}
|
|
16
17
|
/** A platform event's type: one a module's contract declares. */
|
|
17
18
|
export type EventType = keyof PlatformEvents;
|
|
18
19
|
/** Every platform event's type, as the contracts declare them. */
|
|
19
|
-
export declare const EVENT_TYPES: readonly ["ai.goal.updated", "ai.response.completed", "ai.response.failed", "ai.response.started", "ai.secret_host_requested", "ai.voice.closed", "ai.voice.delegated", "ai.voice.started", "ai.workspace.conflict", "ai.workspace.published", "ai.workspace.pushed", "audience.entered", "audience.exited", "calls.call.ended", "calls.call.started", "calls.participant.joined", "calls.participant.left", "consent.changed", "device.revoked", "file.deleted", "file.moved", "file.uploaded", "flag.changed", "flag.override_changed", "journey.converted", "journey.ended", "journey.entered", "journey.event", "journey.step", "messaging.conversation.created", "messaging.conversation.deleted", "messaging.conversation.read", "messaging.message.created", "messaging.report.created", "notification.action", "notification.bounced", "notification.complained", "notification.delivered", "notification.dismissed", "notification.expired", "notification.failed", "notification.not_shown", "notification.opened", "notification.push_failing", "notification.read", "notification.received", "notification.rejected", "notification.sent", "notification.shared_paused", "notification.unconfirmed", "notification.undelivered", "notification.uninstalled", "purchases.catalog.applied", "purchases.catalog.changed", "purchases.coupon.redeemed", "purchases.credits.depleted", "purchases.credits.low", "purchases.customer.changed", "purchases.customer.erased", "purchases.customer.merged", "purchases.entitlement.changed", "purchases.offer.redeemed", "purchases.ownership.transferred", "purchases.paywall.published", "purchases.purchase.completed", "purchases.quota.exhausted", "purchases.quota.threshold", "purchases.refund.changed", "purchases.store.changed", "purchases.subscription.changed", "session.ended", "stores.action.changed", "stores.app.changed", "stores.apple.changed", "stores.apple.key.made", "stores.apple.key.revoked", "stores.apple.session.changed", "stores.apple.session.ended", "stores.apple.session.expired", "stores.beta_review.changed", "stores.build.changed", "stores.delivery.changed", "stores.delivery.requested", "stores.device.changed", "stores.feedback.received", "stores.google.changed", "stores.group.changed", "stores.invitation.changed", "stores.package.changed", "stores.play_release.changed", "stores.product.changed", "stores.review.message", "stores.version.changed", "stores.version.reviewed", "stores.vitals.changed", "stores.webhook.changed", "user.converted", "user.deleted", "user.locale_changed", "user.password_changed", "user.permissions_changed"];
|
|
20
|
+
export declare const EVENT_TYPES: readonly ["ai.goal.updated", "ai.response.completed", "ai.response.failed", "ai.response.started", "ai.secret_host_requested", "ai.voice.closed", "ai.voice.delegated", "ai.voice.started", "ai.workspace.conflict", "ai.workspace.published", "ai.workspace.pushed", "audience.entered", "audience.exited", "calls.call.ended", "calls.call.started", "calls.participant.joined", "calls.participant.left", "consent.changed", "device.revoked", "file.deleted", "file.moved", "file.uploaded", "flag.changed", "flag.override_changed", "journey.converted", "journey.ended", "journey.entered", "journey.event", "journey.step", "messaging.conversation.created", "messaging.conversation.deleted", "messaging.conversation.read", "messaging.message.created", "messaging.report.created", "notification.action", "notification.bounced", "notification.complained", "notification.delivered", "notification.dismissed", "notification.expired", "notification.failed", "notification.not_shown", "notification.opened", "notification.push_failing", "notification.read", "notification.received", "notification.rejected", "notification.sent", "notification.shared_paused", "notification.unconfirmed", "notification.undelivered", "notification.uninstalled", "purchases.catalog.applied", "purchases.catalog.changed", "purchases.coupon.redeemed", "purchases.credits.depleted", "purchases.credits.low", "purchases.customer.changed", "purchases.customer.erased", "purchases.customer.merged", "purchases.entitlement.changed", "purchases.offer.redeemed", "purchases.ownership.transferred", "purchases.paywall.published", "purchases.purchase.completed", "purchases.quota.exhausted", "purchases.quota.threshold", "purchases.refund.changed", "purchases.store.changed", "purchases.subscription.changed", "session.ended", "stores.action.changed", "stores.app.changed", "stores.apple.changed", "stores.apple.key.made", "stores.apple.key.revoked", "stores.apple.session.changed", "stores.apple.session.ended", "stores.apple.session.expired", "stores.beta_review.changed", "stores.build.changed", "stores.delivery.changed", "stores.delivery.requested", "stores.device.changed", "stores.feedback.received", "stores.google.changed", "stores.group.changed", "stores.invitation.changed", "stores.package.changed", "stores.play_release.changed", "stores.product.changed", "stores.review.message", "stores.version.changed", "stores.version.reviewed", "stores.vitals.changed", "stores.webhook.changed", "user.converted", "user.deleted", "user.locale_changed", "user.password_changed", "user.permissions_changed", "workspace.conflict", "workspace.deleted", "workspace.published"];
|
|
20
21
|
/**
|
|
21
22
|
* A platform event as delivered: one member per type the contracts declare,
|
|
22
23
|
* its data that type's payload, so a switch on its type narrows it. An
|
|
23
24
|
* event of a type none of them declares (one a newer platform sends) is no
|
|
24
25
|
* member: at run time it reaches the switch's default, which takes it.
|
|
25
26
|
*/
|
|
26
|
-
export type PalbaseEvent = WebhookEvent<PlatformEvents["ai.goal.updated"], "ai.goal.updated"> | WebhookEvent<PlatformEvents["ai.response.completed"], "ai.response.completed"> | WebhookEvent<PlatformEvents["ai.response.failed"], "ai.response.failed"> | WebhookEvent<PlatformEvents["ai.response.started"], "ai.response.started"> | WebhookEvent<PlatformEvents["ai.secret_host_requested"], "ai.secret_host_requested"> | WebhookEvent<PlatformEvents["ai.voice.closed"], "ai.voice.closed"> | WebhookEvent<PlatformEvents["ai.voice.delegated"], "ai.voice.delegated"> | WebhookEvent<PlatformEvents["ai.voice.started"], "ai.voice.started"> | WebhookEvent<PlatformEvents["ai.workspace.conflict"], "ai.workspace.conflict"> | WebhookEvent<PlatformEvents["ai.workspace.published"], "ai.workspace.published"> | WebhookEvent<PlatformEvents["ai.workspace.pushed"], "ai.workspace.pushed"> | WebhookEvent<PlatformEvents["audience.entered"], "audience.entered"> | WebhookEvent<PlatformEvents["audience.exited"], "audience.exited"> | WebhookEvent<PlatformEvents["calls.call.ended"], "calls.call.ended"> | WebhookEvent<PlatformEvents["calls.call.started"], "calls.call.started"> | WebhookEvent<PlatformEvents["calls.participant.joined"], "calls.participant.joined"> | WebhookEvent<PlatformEvents["calls.participant.left"], "calls.participant.left"> | WebhookEvent<PlatformEvents["consent.changed"], "consent.changed"> | WebhookEvent<PlatformEvents["device.revoked"], "device.revoked"> | WebhookEvent<PlatformEvents["file.deleted"], "file.deleted"> | WebhookEvent<PlatformEvents["file.moved"], "file.moved"> | WebhookEvent<PlatformEvents["file.uploaded"], "file.uploaded"> | WebhookEvent<PlatformEvents["flag.changed"], "flag.changed"> | WebhookEvent<PlatformEvents["flag.override_changed"], "flag.override_changed"> | WebhookEvent<PlatformEvents["journey.converted"], "journey.converted"> | WebhookEvent<PlatformEvents["journey.ended"], "journey.ended"> | WebhookEvent<PlatformEvents["journey.entered"], "journey.entered"> | WebhookEvent<PlatformEvents["journey.event"], "journey.event"> | WebhookEvent<PlatformEvents["journey.step"], "journey.step"> | WebhookEvent<PlatformEvents["messaging.conversation.created"], "messaging.conversation.created"> | WebhookEvent<PlatformEvents["messaging.conversation.deleted"], "messaging.conversation.deleted"> | WebhookEvent<PlatformEvents["messaging.conversation.read"], "messaging.conversation.read"> | WebhookEvent<PlatformEvents["messaging.message.created"], "messaging.message.created"> | WebhookEvent<PlatformEvents["messaging.report.created"], "messaging.report.created"> | WebhookEvent<PlatformEvents["notification.action"], "notification.action"> | WebhookEvent<PlatformEvents["notification.bounced"], "notification.bounced"> | WebhookEvent<PlatformEvents["notification.complained"], "notification.complained"> | WebhookEvent<PlatformEvents["notification.delivered"], "notification.delivered"> | WebhookEvent<PlatformEvents["notification.dismissed"], "notification.dismissed"> | WebhookEvent<PlatformEvents["notification.expired"], "notification.expired"> | WebhookEvent<PlatformEvents["notification.failed"], "notification.failed"> | WebhookEvent<PlatformEvents["notification.not_shown"], "notification.not_shown"> | WebhookEvent<PlatformEvents["notification.opened"], "notification.opened"> | WebhookEvent<PlatformEvents["notification.push_failing"], "notification.push_failing"> | WebhookEvent<PlatformEvents["notification.read"], "notification.read"> | WebhookEvent<PlatformEvents["notification.received"], "notification.received"> | WebhookEvent<PlatformEvents["notification.rejected"], "notification.rejected"> | WebhookEvent<PlatformEvents["notification.sent"], "notification.sent"> | WebhookEvent<PlatformEvents["notification.shared_paused"], "notification.shared_paused"> | WebhookEvent<PlatformEvents["notification.unconfirmed"], "notification.unconfirmed"> | WebhookEvent<PlatformEvents["notification.undelivered"], "notification.undelivered"> | WebhookEvent<PlatformEvents["notification.uninstalled"], "notification.uninstalled"> | WebhookEvent<PlatformEvents["purchases.catalog.applied"], "purchases.catalog.applied"> | WebhookEvent<PlatformEvents["purchases.catalog.changed"], "purchases.catalog.changed"> | WebhookEvent<PlatformEvents["purchases.coupon.redeemed"], "purchases.coupon.redeemed"> | WebhookEvent<PlatformEvents["purchases.credits.depleted"], "purchases.credits.depleted"> | WebhookEvent<PlatformEvents["purchases.credits.low"], "purchases.credits.low"> | WebhookEvent<PlatformEvents["purchases.customer.changed"], "purchases.customer.changed"> | WebhookEvent<PlatformEvents["purchases.customer.erased"], "purchases.customer.erased"> | WebhookEvent<PlatformEvents["purchases.customer.merged"], "purchases.customer.merged"> | WebhookEvent<PlatformEvents["purchases.entitlement.changed"], "purchases.entitlement.changed"> | WebhookEvent<PlatformEvents["purchases.offer.redeemed"], "purchases.offer.redeemed"> | WebhookEvent<PlatformEvents["purchases.ownership.transferred"], "purchases.ownership.transferred"> | WebhookEvent<PlatformEvents["purchases.paywall.published"], "purchases.paywall.published"> | WebhookEvent<PlatformEvents["purchases.purchase.completed"], "purchases.purchase.completed"> | WebhookEvent<PlatformEvents["purchases.quota.exhausted"], "purchases.quota.exhausted"> | WebhookEvent<PlatformEvents["purchases.quota.threshold"], "purchases.quota.threshold"> | WebhookEvent<PlatformEvents["purchases.refund.changed"], "purchases.refund.changed"> | WebhookEvent<PlatformEvents["purchases.store.changed"], "purchases.store.changed"> | WebhookEvent<PlatformEvents["purchases.subscription.changed"], "purchases.subscription.changed"> | WebhookEvent<PlatformEvents["session.ended"], "session.ended"> | WebhookEvent<PlatformEvents["stores.action.changed"], "stores.action.changed"> | WebhookEvent<PlatformEvents["stores.app.changed"], "stores.app.changed"> | WebhookEvent<PlatformEvents["stores.apple.changed"], "stores.apple.changed"> | WebhookEvent<PlatformEvents["stores.apple.key.made"], "stores.apple.key.made"> | WebhookEvent<PlatformEvents["stores.apple.key.revoked"], "stores.apple.key.revoked"> | WebhookEvent<PlatformEvents["stores.apple.session.changed"], "stores.apple.session.changed"> | WebhookEvent<PlatformEvents["stores.apple.session.ended"], "stores.apple.session.ended"> | WebhookEvent<PlatformEvents["stores.apple.session.expired"], "stores.apple.session.expired"> | WebhookEvent<PlatformEvents["stores.beta_review.changed"], "stores.beta_review.changed"> | WebhookEvent<PlatformEvents["stores.build.changed"], "stores.build.changed"> | WebhookEvent<PlatformEvents["stores.delivery.changed"], "stores.delivery.changed"> | WebhookEvent<PlatformEvents["stores.delivery.requested"], "stores.delivery.requested"> | WebhookEvent<PlatformEvents["stores.device.changed"], "stores.device.changed"> | WebhookEvent<PlatformEvents["stores.feedback.received"], "stores.feedback.received"> | WebhookEvent<PlatformEvents["stores.google.changed"], "stores.google.changed"> | WebhookEvent<PlatformEvents["stores.group.changed"], "stores.group.changed"> | WebhookEvent<PlatformEvents["stores.invitation.changed"], "stores.invitation.changed"> | WebhookEvent<PlatformEvents["stores.package.changed"], "stores.package.changed"> | WebhookEvent<PlatformEvents["stores.play_release.changed"], "stores.play_release.changed"> | WebhookEvent<PlatformEvents["stores.product.changed"], "stores.product.changed"> | WebhookEvent<PlatformEvents["stores.review.message"], "stores.review.message"> | WebhookEvent<PlatformEvents["stores.version.changed"], "stores.version.changed"> | WebhookEvent<PlatformEvents["stores.version.reviewed"], "stores.version.reviewed"> | WebhookEvent<PlatformEvents["stores.vitals.changed"], "stores.vitals.changed"> | WebhookEvent<PlatformEvents["stores.webhook.changed"], "stores.webhook.changed"> | WebhookEvent<PlatformEvents["user.converted"], "user.converted"> | WebhookEvent<PlatformEvents["user.deleted"], "user.deleted"> | WebhookEvent<PlatformEvents["user.locale_changed"], "user.locale_changed"> | WebhookEvent<PlatformEvents["user.password_changed"], "user.password_changed"> | WebhookEvent<PlatformEvents["user.permissions_changed"], "user.permissions_changed">;
|
|
27
|
+
export type PalbaseEvent = WebhookEvent<PlatformEvents["ai.goal.updated"], "ai.goal.updated"> | WebhookEvent<PlatformEvents["ai.response.completed"], "ai.response.completed"> | WebhookEvent<PlatformEvents["ai.response.failed"], "ai.response.failed"> | WebhookEvent<PlatformEvents["ai.response.started"], "ai.response.started"> | WebhookEvent<PlatformEvents["ai.secret_host_requested"], "ai.secret_host_requested"> | WebhookEvent<PlatformEvents["ai.voice.closed"], "ai.voice.closed"> | WebhookEvent<PlatformEvents["ai.voice.delegated"], "ai.voice.delegated"> | WebhookEvent<PlatformEvents["ai.voice.started"], "ai.voice.started"> | WebhookEvent<PlatformEvents["ai.workspace.conflict"], "ai.workspace.conflict"> | WebhookEvent<PlatformEvents["ai.workspace.published"], "ai.workspace.published"> | WebhookEvent<PlatformEvents["ai.workspace.pushed"], "ai.workspace.pushed"> | WebhookEvent<PlatformEvents["audience.entered"], "audience.entered"> | WebhookEvent<PlatformEvents["audience.exited"], "audience.exited"> | WebhookEvent<PlatformEvents["calls.call.ended"], "calls.call.ended"> | WebhookEvent<PlatformEvents["calls.call.started"], "calls.call.started"> | WebhookEvent<PlatformEvents["calls.participant.joined"], "calls.participant.joined"> | WebhookEvent<PlatformEvents["calls.participant.left"], "calls.participant.left"> | WebhookEvent<PlatformEvents["consent.changed"], "consent.changed"> | WebhookEvent<PlatformEvents["device.revoked"], "device.revoked"> | WebhookEvent<PlatformEvents["file.deleted"], "file.deleted"> | WebhookEvent<PlatformEvents["file.moved"], "file.moved"> | WebhookEvent<PlatformEvents["file.uploaded"], "file.uploaded"> | WebhookEvent<PlatformEvents["flag.changed"], "flag.changed"> | WebhookEvent<PlatformEvents["flag.override_changed"], "flag.override_changed"> | WebhookEvent<PlatformEvents["journey.converted"], "journey.converted"> | WebhookEvent<PlatformEvents["journey.ended"], "journey.ended"> | WebhookEvent<PlatformEvents["journey.entered"], "journey.entered"> | WebhookEvent<PlatformEvents["journey.event"], "journey.event"> | WebhookEvent<PlatformEvents["journey.step"], "journey.step"> | WebhookEvent<PlatformEvents["messaging.conversation.created"], "messaging.conversation.created"> | WebhookEvent<PlatformEvents["messaging.conversation.deleted"], "messaging.conversation.deleted"> | WebhookEvent<PlatformEvents["messaging.conversation.read"], "messaging.conversation.read"> | WebhookEvent<PlatformEvents["messaging.message.created"], "messaging.message.created"> | WebhookEvent<PlatformEvents["messaging.report.created"], "messaging.report.created"> | WebhookEvent<PlatformEvents["notification.action"], "notification.action"> | WebhookEvent<PlatformEvents["notification.bounced"], "notification.bounced"> | WebhookEvent<PlatformEvents["notification.complained"], "notification.complained"> | WebhookEvent<PlatformEvents["notification.delivered"], "notification.delivered"> | WebhookEvent<PlatformEvents["notification.dismissed"], "notification.dismissed"> | WebhookEvent<PlatformEvents["notification.expired"], "notification.expired"> | WebhookEvent<PlatformEvents["notification.failed"], "notification.failed"> | WebhookEvent<PlatformEvents["notification.not_shown"], "notification.not_shown"> | WebhookEvent<PlatformEvents["notification.opened"], "notification.opened"> | WebhookEvent<PlatformEvents["notification.push_failing"], "notification.push_failing"> | WebhookEvent<PlatformEvents["notification.read"], "notification.read"> | WebhookEvent<PlatformEvents["notification.received"], "notification.received"> | WebhookEvent<PlatformEvents["notification.rejected"], "notification.rejected"> | WebhookEvent<PlatformEvents["notification.sent"], "notification.sent"> | WebhookEvent<PlatformEvents["notification.shared_paused"], "notification.shared_paused"> | WebhookEvent<PlatformEvents["notification.unconfirmed"], "notification.unconfirmed"> | WebhookEvent<PlatformEvents["notification.undelivered"], "notification.undelivered"> | WebhookEvent<PlatformEvents["notification.uninstalled"], "notification.uninstalled"> | WebhookEvent<PlatformEvents["purchases.catalog.applied"], "purchases.catalog.applied"> | WebhookEvent<PlatformEvents["purchases.catalog.changed"], "purchases.catalog.changed"> | WebhookEvent<PlatformEvents["purchases.coupon.redeemed"], "purchases.coupon.redeemed"> | WebhookEvent<PlatformEvents["purchases.credits.depleted"], "purchases.credits.depleted"> | WebhookEvent<PlatformEvents["purchases.credits.low"], "purchases.credits.low"> | WebhookEvent<PlatformEvents["purchases.customer.changed"], "purchases.customer.changed"> | WebhookEvent<PlatformEvents["purchases.customer.erased"], "purchases.customer.erased"> | WebhookEvent<PlatformEvents["purchases.customer.merged"], "purchases.customer.merged"> | WebhookEvent<PlatformEvents["purchases.entitlement.changed"], "purchases.entitlement.changed"> | WebhookEvent<PlatformEvents["purchases.offer.redeemed"], "purchases.offer.redeemed"> | WebhookEvent<PlatformEvents["purchases.ownership.transferred"], "purchases.ownership.transferred"> | WebhookEvent<PlatformEvents["purchases.paywall.published"], "purchases.paywall.published"> | WebhookEvent<PlatformEvents["purchases.purchase.completed"], "purchases.purchase.completed"> | WebhookEvent<PlatformEvents["purchases.quota.exhausted"], "purchases.quota.exhausted"> | WebhookEvent<PlatformEvents["purchases.quota.threshold"], "purchases.quota.threshold"> | WebhookEvent<PlatformEvents["purchases.refund.changed"], "purchases.refund.changed"> | WebhookEvent<PlatformEvents["purchases.store.changed"], "purchases.store.changed"> | WebhookEvent<PlatformEvents["purchases.subscription.changed"], "purchases.subscription.changed"> | WebhookEvent<PlatformEvents["session.ended"], "session.ended"> | WebhookEvent<PlatformEvents["stores.action.changed"], "stores.action.changed"> | WebhookEvent<PlatformEvents["stores.app.changed"], "stores.app.changed"> | WebhookEvent<PlatformEvents["stores.apple.changed"], "stores.apple.changed"> | WebhookEvent<PlatformEvents["stores.apple.key.made"], "stores.apple.key.made"> | WebhookEvent<PlatformEvents["stores.apple.key.revoked"], "stores.apple.key.revoked"> | WebhookEvent<PlatformEvents["stores.apple.session.changed"], "stores.apple.session.changed"> | WebhookEvent<PlatformEvents["stores.apple.session.ended"], "stores.apple.session.ended"> | WebhookEvent<PlatformEvents["stores.apple.session.expired"], "stores.apple.session.expired"> | WebhookEvent<PlatformEvents["stores.beta_review.changed"], "stores.beta_review.changed"> | WebhookEvent<PlatformEvents["stores.build.changed"], "stores.build.changed"> | WebhookEvent<PlatformEvents["stores.delivery.changed"], "stores.delivery.changed"> | WebhookEvent<PlatformEvents["stores.delivery.requested"], "stores.delivery.requested"> | WebhookEvent<PlatformEvents["stores.device.changed"], "stores.device.changed"> | WebhookEvent<PlatformEvents["stores.feedback.received"], "stores.feedback.received"> | WebhookEvent<PlatformEvents["stores.google.changed"], "stores.google.changed"> | WebhookEvent<PlatformEvents["stores.group.changed"], "stores.group.changed"> | WebhookEvent<PlatformEvents["stores.invitation.changed"], "stores.invitation.changed"> | WebhookEvent<PlatformEvents["stores.package.changed"], "stores.package.changed"> | WebhookEvent<PlatformEvents["stores.play_release.changed"], "stores.play_release.changed"> | WebhookEvent<PlatformEvents["stores.product.changed"], "stores.product.changed"> | WebhookEvent<PlatformEvents["stores.review.message"], "stores.review.message"> | WebhookEvent<PlatformEvents["stores.version.changed"], "stores.version.changed"> | WebhookEvent<PlatformEvents["stores.version.reviewed"], "stores.version.reviewed"> | WebhookEvent<PlatformEvents["stores.vitals.changed"], "stores.vitals.changed"> | WebhookEvent<PlatformEvents["stores.webhook.changed"], "stores.webhook.changed"> | WebhookEvent<PlatformEvents["user.converted"], "user.converted"> | WebhookEvent<PlatformEvents["user.deleted"], "user.deleted"> | WebhookEvent<PlatformEvents["user.locale_changed"], "user.locale_changed"> | WebhookEvent<PlatformEvents["user.password_changed"], "user.password_changed"> | WebhookEvent<PlatformEvents["user.permissions_changed"], "user.permissions_changed"> | WebhookEvent<PlatformEvents["workspace.conflict"], "workspace.conflict"> | WebhookEvent<PlatformEvents["workspace.deleted"], "workspace.deleted"> | WebhookEvent<PlatformEvents["workspace.published"], "workspace.published">;
|
|
@@ -291,7 +291,7 @@ export type StorageObject = {
|
|
|
291
291
|
*/
|
|
292
292
|
export type StorageStats = {
|
|
293
293
|
/**
|
|
294
|
-
* Every bucket of the project, by name; an empty one with zeros. A platform module's own bucket is listed with its share too, though the project does not reach it otherwise: _ai holds the pictures its agents' tools returned and, under
|
|
294
|
+
* Every bucket of the project, by name; an empty one with zeros. A platform module's own bucket is listed with its share too, though the project does not reach it otherwise: _ai holds the pictures its agents' tools returned and, under the engine/, its chats' workspaces — their files, their runs' checkpoints and the artifacts their agents published — each deleted with its chat (or once a one-shot answer is answered); counted in the project's storage as its other files are.
|
|
295
295
|
*/
|
|
296
296
|
buckets: StorageStatsBucket[];
|
|
297
297
|
/**
|