codai-sdk 0.65.0 → 0.67.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/index.d.ts +834 -11
- package/dist/index.js +122 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2549,7 +2549,7 @@ type paths$1 = {
|
|
|
2549
2549
|
};
|
|
2550
2550
|
/**
|
|
2551
2551
|
* List pending prompts
|
|
2552
|
-
* @description Your prompts, soonest `not_before` first (prompts without one lead), then newest. `status=due` returns open prompts whose `not_before` is empty or already passed; `all` returns every status.
|
|
2552
|
+
* @description Your prompts, soonest `not_before` first (prompts without one lead), then newest. `status=due` returns open prompts whose `not_before` is empty or already passed; `all` returns every status. Optional filters, combined with AND, are `tag`, `priority_min`, `q` and `templates` (templates are hidden by default); `sort` + `order` change the order.
|
|
2553
2553
|
*/
|
|
2554
2554
|
readonly get: operations$1['listPrompts'];
|
|
2555
2555
|
readonly put?: never;
|
|
@@ -2592,6 +2592,49 @@ type paths$1 = {
|
|
|
2592
2592
|
readonly patch: operations$1['updatePrompt'];
|
|
2593
2593
|
readonly trace?: never;
|
|
2594
2594
|
};
|
|
2595
|
+
readonly '/v1/prompts/{id}/events': {
|
|
2596
|
+
readonly parameters: {
|
|
2597
|
+
readonly query?: never;
|
|
2598
|
+
readonly header?: never;
|
|
2599
|
+
readonly path?: never;
|
|
2600
|
+
readonly cookie?: never;
|
|
2601
|
+
};
|
|
2602
|
+
/**
|
|
2603
|
+
* Prompt history
|
|
2604
|
+
* @description What happened to the prompt, newest first (at most 200 events): created, edited (with the changed keys),
|
|
2605
|
+
* status changes, launches, recurrences, chain steps and verifications.
|
|
2606
|
+
*/
|
|
2607
|
+
readonly get: operations$1['listPromptEvents'];
|
|
2608
|
+
readonly put?: never;
|
|
2609
|
+
readonly post?: never;
|
|
2610
|
+
readonly delete?: never;
|
|
2611
|
+
readonly options?: never;
|
|
2612
|
+
readonly head?: never;
|
|
2613
|
+
readonly patch?: never;
|
|
2614
|
+
readonly trace?: never;
|
|
2615
|
+
};
|
|
2616
|
+
readonly '/v1/prompts/{id}/instantiate': {
|
|
2617
|
+
readonly parameters: {
|
|
2618
|
+
readonly query?: never;
|
|
2619
|
+
readonly header?: never;
|
|
2620
|
+
readonly path?: never;
|
|
2621
|
+
readonly cookie?: never;
|
|
2622
|
+
};
|
|
2623
|
+
readonly get?: never;
|
|
2624
|
+
readonly put?: never;
|
|
2625
|
+
/**
|
|
2626
|
+
* Create a prompt from a template
|
|
2627
|
+
* @description Creates a new `open` copy of the prompt (usually a template, `is_template: true`) with the same text, tags,
|
|
2628
|
+
* priority, recurrence, chain and launch preset; the copy is never a template and records the source in
|
|
2629
|
+
* `origin.template_id`. Works on any of your prompts.
|
|
2630
|
+
*/
|
|
2631
|
+
readonly post: operations$1['instantiatePrompt'];
|
|
2632
|
+
readonly delete?: never;
|
|
2633
|
+
readonly options?: never;
|
|
2634
|
+
readonly head?: never;
|
|
2635
|
+
readonly patch?: never;
|
|
2636
|
+
readonly trace?: never;
|
|
2637
|
+
};
|
|
2595
2638
|
readonly '/v1/prompts/{id}/launch': {
|
|
2596
2639
|
readonly parameters: {
|
|
2597
2640
|
readonly query?: never;
|
|
@@ -2657,6 +2700,53 @@ type paths$1 = {
|
|
|
2657
2700
|
readonly patch?: never;
|
|
2658
2701
|
readonly trace?: never;
|
|
2659
2702
|
};
|
|
2703
|
+
readonly '/v1/prompts/bulk': {
|
|
2704
|
+
readonly parameters: {
|
|
2705
|
+
readonly query?: never;
|
|
2706
|
+
readonly header?: never;
|
|
2707
|
+
readonly path?: never;
|
|
2708
|
+
readonly cookie?: never;
|
|
2709
|
+
};
|
|
2710
|
+
readonly get?: never;
|
|
2711
|
+
readonly put?: never;
|
|
2712
|
+
/**
|
|
2713
|
+
* Apply one action to many prompts
|
|
2714
|
+
* @description Applies `action` to up to 200 of your prompts: `done` / `dismiss` close them (stamping `done_at`),
|
|
2715
|
+
* `delete` removes them, `snooze` sets `not_before` and re-arms the due reminder, `tag` / `untag` add or
|
|
2716
|
+
* remove `tags`, `priority` sets `priority`. Ids that are not yours are ignored. `done` also advances each
|
|
2717
|
+
* prompt's `next_prompt_id` chain. Every change is published on the prompt stream and logged in the history.
|
|
2718
|
+
*/
|
|
2719
|
+
readonly post: operations$1['bulkPrompts'];
|
|
2720
|
+
readonly delete?: never;
|
|
2721
|
+
readonly options?: never;
|
|
2722
|
+
readonly head?: never;
|
|
2723
|
+
readonly patch?: never;
|
|
2724
|
+
readonly trace?: never;
|
|
2725
|
+
};
|
|
2726
|
+
readonly '/v1/prompts/export': {
|
|
2727
|
+
readonly parameters: {
|
|
2728
|
+
readonly query?: never;
|
|
2729
|
+
readonly header?: never;
|
|
2730
|
+
readonly path?: never;
|
|
2731
|
+
readonly cookie?: never;
|
|
2732
|
+
};
|
|
2733
|
+
/**
|
|
2734
|
+
* Export prompts as CSV or Markdown
|
|
2735
|
+
* @description Downloads your prompts with the same filters as `GET /v1/prompts` (but `status` defaults to `all`, up to
|
|
2736
|
+
* 5 000 rows). `format=csv` is RFC 4180 CSV (CRLF line breaks) with the columns `title, status, priority, tags,
|
|
2737
|
+
* source, repo, created_at, not_before, prompt` (tags space-separated); `format=md` is one Markdown section per
|
|
2738
|
+
* prompt with its metadata and the prompt text in a code fence. Sent as an attachment
|
|
2739
|
+
* (`prompts-YYYY-MM-DD.csv` / `.md`).
|
|
2740
|
+
*/
|
|
2741
|
+
readonly get: operations$1['exportPrompts'];
|
|
2742
|
+
readonly put?: never;
|
|
2743
|
+
readonly post?: never;
|
|
2744
|
+
readonly delete?: never;
|
|
2745
|
+
readonly options?: never;
|
|
2746
|
+
readonly head?: never;
|
|
2747
|
+
readonly patch?: never;
|
|
2748
|
+
readonly trace?: never;
|
|
2749
|
+
};
|
|
2660
2750
|
readonly '/v1/prompts/stream': {
|
|
2661
2751
|
readonly parameters: {
|
|
2662
2752
|
readonly query?: never;
|
|
@@ -3725,6 +3815,8 @@ type paths$1 = {
|
|
|
3725
3815
|
* only knows the server id, opens the session. Set `e2e: true` when payloads are
|
|
3726
3816
|
* end-to-end encrypted client-side (`payload: { hide: base64 }`); the server never
|
|
3727
3817
|
* inspects payloads either way.
|
|
3818
|
+
* With `stub: true` the session is a title-only mirror (listed, but no events yet) until the executor
|
|
3819
|
+
* appends its first events; viewers ask for the transcript with a `hydrate` control.
|
|
3728
3820
|
*/
|
|
3729
3821
|
readonly post: operations$1['createSession'];
|
|
3730
3822
|
readonly delete?: never;
|
|
@@ -3795,6 +3887,7 @@ type paths$1 = {
|
|
|
3795
3887
|
* (`payload: { control: {...}, applied: false }`, `client_event_id: control:<id>`) and
|
|
3796
3888
|
* pushed to subscribers as a `control` frame, then answered `202`. This endpoint has
|
|
3797
3889
|
* no device target — use `POST …/dispatch` to aim a `send` at one device and wake it.
|
|
3890
|
+
* `send`, `hydrate`, `answer`, `approve` and `deny` are accepted only from the session owner.
|
|
3798
3891
|
*/
|
|
3799
3892
|
readonly post: operations$1['submitSessionControl'];
|
|
3800
3893
|
readonly delete?: never;
|
|
@@ -7199,6 +7292,26 @@ type paths$1 = {
|
|
|
7199
7292
|
readonly patch?: never;
|
|
7200
7293
|
readonly trace?: never;
|
|
7201
7294
|
};
|
|
7295
|
+
readonly '/v1/vault/grants/revoke-task': {
|
|
7296
|
+
readonly parameters: {
|
|
7297
|
+
readonly query?: never;
|
|
7298
|
+
readonly header?: never;
|
|
7299
|
+
readonly path?: never;
|
|
7300
|
+
readonly cookie?: never;
|
|
7301
|
+
};
|
|
7302
|
+
readonly get?: never;
|
|
7303
|
+
readonly put?: never;
|
|
7304
|
+
/**
|
|
7305
|
+
* Revoke the grants of a task
|
|
7306
|
+
* @description Revokes every live grant whose `task` matches (task id, client task id or session key sent as `task` on `/v1/vault/use`). The gateway also does this on task confirm, session delete and every 5 minutes for closed tasks.
|
|
7307
|
+
*/
|
|
7308
|
+
readonly post: operations$1['revokeVaultTaskGrants'];
|
|
7309
|
+
readonly delete?: never;
|
|
7310
|
+
readonly options?: never;
|
|
7311
|
+
readonly head?: never;
|
|
7312
|
+
readonly patch?: never;
|
|
7313
|
+
readonly trace?: never;
|
|
7314
|
+
};
|
|
7202
7315
|
readonly '/v1/vault/http': {
|
|
7203
7316
|
readonly parameters: {
|
|
7204
7317
|
readonly query?: never;
|
|
@@ -7283,6 +7396,66 @@ type paths$1 = {
|
|
|
7283
7396
|
readonly patch?: never;
|
|
7284
7397
|
readonly trace?: never;
|
|
7285
7398
|
};
|
|
7399
|
+
readonly '/v1/vault/items/{id}/limits': {
|
|
7400
|
+
readonly parameters: {
|
|
7401
|
+
readonly query?: never;
|
|
7402
|
+
readonly header?: never;
|
|
7403
|
+
readonly path?: never;
|
|
7404
|
+
readonly cookie?: never;
|
|
7405
|
+
};
|
|
7406
|
+
readonly get?: never;
|
|
7407
|
+
/**
|
|
7408
|
+
* Set per-handle limits
|
|
7409
|
+
* @description Editor or above on the item's vault. Send all three keys; null removes a cap, all null removes the limits. Over a cap `/v1/vault/use`, `/v1/vault/http` and `/v1/vault/resolve` answer 429 `vault_rate_limited` with `Retry-After`.
|
|
7410
|
+
*/
|
|
7411
|
+
readonly put: operations$1['setVaultItemLimits'];
|
|
7412
|
+
readonly post?: never;
|
|
7413
|
+
readonly delete?: never;
|
|
7414
|
+
readonly options?: never;
|
|
7415
|
+
readonly head?: never;
|
|
7416
|
+
readonly patch?: never;
|
|
7417
|
+
readonly trace?: never;
|
|
7418
|
+
};
|
|
7419
|
+
readonly '/v1/vault/limits': {
|
|
7420
|
+
readonly parameters: {
|
|
7421
|
+
readonly query?: never;
|
|
7422
|
+
readonly header?: never;
|
|
7423
|
+
readonly path?: never;
|
|
7424
|
+
readonly cookie?: never;
|
|
7425
|
+
};
|
|
7426
|
+
/**
|
|
7427
|
+
* List per-handle limits
|
|
7428
|
+
* @description Usage caps set on your items. Only allowed uses count; an `http` use costs 2 units, other modes 1.
|
|
7429
|
+
*/
|
|
7430
|
+
readonly get: operations$1['listVaultLimits'];
|
|
7431
|
+
readonly put?: never;
|
|
7432
|
+
readonly post?: never;
|
|
7433
|
+
readonly delete?: never;
|
|
7434
|
+
readonly options?: never;
|
|
7435
|
+
readonly head?: never;
|
|
7436
|
+
readonly patch?: never;
|
|
7437
|
+
readonly trace?: never;
|
|
7438
|
+
};
|
|
7439
|
+
readonly '/v1/vault/lock': {
|
|
7440
|
+
readonly parameters: {
|
|
7441
|
+
readonly query?: never;
|
|
7442
|
+
readonly header?: never;
|
|
7443
|
+
readonly path?: never;
|
|
7444
|
+
readonly cookie?: never;
|
|
7445
|
+
};
|
|
7446
|
+
readonly get?: never;
|
|
7447
|
+
readonly put?: never;
|
|
7448
|
+
/**
|
|
7449
|
+
* Panic lock
|
|
7450
|
+
* @description Revokes every live grant, denies every pending approval and locks the vault: from then on every agent use is denied with reason `vault_locked` (`/v1/vault/http` and `/v1/vault/resolve` answer 403 `vault_denied`). Device keys stay enrolled. The body is optional; idempotent (a second call keeps the first lock time).
|
|
7451
|
+
*/
|
|
7452
|
+
readonly post: operations$1['lockVault'];
|
|
7453
|
+
readonly delete?: never;
|
|
7454
|
+
readonly options?: never;
|
|
7455
|
+
readonly head?: never;
|
|
7456
|
+
readonly patch?: never;
|
|
7457
|
+
readonly trace?: never;
|
|
7458
|
+
};
|
|
7286
7459
|
readonly '/v1/vault/resolve': {
|
|
7287
7460
|
readonly parameters: {
|
|
7288
7461
|
readonly query?: never;
|
|
@@ -7361,12 +7534,52 @@ type paths$1 = {
|
|
|
7361
7534
|
readonly options?: never;
|
|
7362
7535
|
readonly head?: never;
|
|
7363
7536
|
/**
|
|
7364
|
-
* Change the default
|
|
7365
|
-
* @description
|
|
7537
|
+
* Change the default tier and anomaly guards
|
|
7538
|
+
* @description Send `default_tier` (approval tier for items without a matching rule; t3 = explicit approval), `guards` (partial anomaly settings, merged over the current ones) or both. A use on a new host, in a burst or outside the allowed hours is forced to t4 with reason `anomaly:new_host`, `anomaly:burst` or `anomaly:hour`. Answers the effective settings.
|
|
7366
7539
|
*/
|
|
7367
7540
|
readonly patch: operations$1['patchVaultSettings'];
|
|
7368
7541
|
readonly trace?: never;
|
|
7369
7542
|
};
|
|
7543
|
+
readonly '/v1/vault/unlock': {
|
|
7544
|
+
readonly parameters: {
|
|
7545
|
+
readonly query?: never;
|
|
7546
|
+
readonly header?: never;
|
|
7547
|
+
readonly path?: never;
|
|
7548
|
+
readonly cookie?: never;
|
|
7549
|
+
};
|
|
7550
|
+
readonly get?: never;
|
|
7551
|
+
readonly put?: never;
|
|
7552
|
+
/**
|
|
7553
|
+
* Unlock the vault
|
|
7554
|
+
* @description Ends a panic or honeytoken lock with a device key (phone, desktop) or passkey proof over the unlock challenge. Watch keys are refused (`wear_t3_only`). Errors (403): `challenge_invalid`, `unknown_device`, `device_revoked`, `wear_t3_only`, `invalid_signature`, `passkey_invalid`.
|
|
7555
|
+
*/
|
|
7556
|
+
readonly post: operations$1['unlockVault'];
|
|
7557
|
+
readonly delete?: never;
|
|
7558
|
+
readonly options?: never;
|
|
7559
|
+
readonly head?: never;
|
|
7560
|
+
readonly patch?: never;
|
|
7561
|
+
readonly trace?: never;
|
|
7562
|
+
};
|
|
7563
|
+
readonly '/v1/vault/unlock/challenge': {
|
|
7564
|
+
readonly parameters: {
|
|
7565
|
+
readonly query?: never;
|
|
7566
|
+
readonly header?: never;
|
|
7567
|
+
readonly path?: never;
|
|
7568
|
+
readonly cookie?: never;
|
|
7569
|
+
};
|
|
7570
|
+
readonly get?: never;
|
|
7571
|
+
readonly put?: never;
|
|
7572
|
+
/**
|
|
7573
|
+
* Get an unlock challenge
|
|
7574
|
+
* @description Single-use challenge valid for 5 minutes. Sign `codai-vault/unlock/v1|<challenge>|<device_id>` with a device key, or use base64url(SHA-256(`codai-vault/unlock/v1|<challenge>|passkey`)) as the WebAuthn challenge.
|
|
7575
|
+
*/
|
|
7576
|
+
readonly post: operations$1['createVaultUnlockChallenge'];
|
|
7577
|
+
readonly delete?: never;
|
|
7578
|
+
readonly options?: never;
|
|
7579
|
+
readonly head?: never;
|
|
7580
|
+
readonly patch?: never;
|
|
7581
|
+
readonly trace?: never;
|
|
7582
|
+
};
|
|
7370
7583
|
readonly '/v1/vault/use': {
|
|
7371
7584
|
readonly parameters: {
|
|
7372
7585
|
readonly query?: never;
|
|
@@ -12952,6 +13165,10 @@ type components$1 = {
|
|
|
12952
13165
|
readonly head_sha: string | null;
|
|
12953
13166
|
/** Format: uuid */
|
|
12954
13167
|
readonly id: string;
|
|
13168
|
+
/** @description Template prompts are hidden from the default list and never notified or auto-run. */
|
|
13169
|
+
readonly is_template: boolean;
|
|
13170
|
+
/** @description Launch preset, or `null`. */
|
|
13171
|
+
readonly launch: components$1['schemas']['PromptLaunchConfig'] | null;
|
|
12955
13172
|
/** Format: date-time */
|
|
12956
13173
|
readonly launched_at: string | null;
|
|
12957
13174
|
/** @description Session id or key the prompt was sent in. */
|
|
@@ -12960,6 +13177,11 @@ type components$1 = {
|
|
|
12960
13177
|
readonly match_score: number | null;
|
|
12961
13178
|
/** @description Turn id of that chat turn. */
|
|
12962
13179
|
readonly match_turn_id: string | null;
|
|
13180
|
+
/**
|
|
13181
|
+
* Format: uuid
|
|
13182
|
+
* @description Prompt opened when this one becomes `done`.
|
|
13183
|
+
*/
|
|
13184
|
+
readonly next_prompt_id: string | null;
|
|
12963
13185
|
/**
|
|
12964
13186
|
* Format: date-time
|
|
12965
13187
|
* @description The prompt is due from this moment on.
|
|
@@ -12973,7 +13195,11 @@ type components$1 = {
|
|
|
12973
13195
|
readonly origin: {
|
|
12974
13196
|
readonly [key: string]: unknown;
|
|
12975
13197
|
};
|
|
13198
|
+
/** @description 0 none, 1 low, 2 normal, 3 high. */
|
|
13199
|
+
readonly priority: number;
|
|
12976
13200
|
readonly prompt: string;
|
|
13201
|
+
/** @description Repeat rule, or `null`. */
|
|
13202
|
+
readonly recurrence: components$1['schemas']['PromptRecurrence'] | null;
|
|
12977
13203
|
readonly repo: string | null;
|
|
12978
13204
|
/** @description Last verification report, or `null`. */
|
|
12979
13205
|
readonly report: components$1['schemas']['PromptReport'] | null;
|
|
@@ -12991,6 +13217,8 @@ type components$1 = {
|
|
|
12991
13217
|
readonly sent_at: string | null;
|
|
12992
13218
|
readonly source: components$1['schemas']['PromptSource'];
|
|
12993
13219
|
readonly status: components$1['schemas']['PromptStatus'];
|
|
13220
|
+
/** @description Lowercased, deduplicated tags (max 20). */
|
|
13221
|
+
readonly tags: readonly string[];
|
|
12994
13222
|
/** Format: uuid */
|
|
12995
13223
|
readonly target_device_id: string | null;
|
|
12996
13224
|
/** @description Defaults to the first line of the prompt (max 120 chars). */
|
|
@@ -13004,6 +13232,17 @@ type components$1 = {
|
|
|
13004
13232
|
*/
|
|
13005
13233
|
readonly verified_at: string | null;
|
|
13006
13234
|
};
|
|
13235
|
+
readonly PromptBulkRequest: {
|
|
13236
|
+
/** @enum {string} */
|
|
13237
|
+
readonly action: 'done' | 'dismiss' | 'delete' | 'snooze' | 'tag' | 'untag' | 'priority';
|
|
13238
|
+
readonly ids: readonly string[];
|
|
13239
|
+
/** @description Required for `snooze`: ISO datetime with offset, or `YYYY-MM-DD` (07:00 UTC). */
|
|
13240
|
+
readonly not_before?: string;
|
|
13241
|
+
/** @description Required for `priority`. */
|
|
13242
|
+
readonly priority?: number;
|
|
13243
|
+
/** @description Required (non-empty) for `tag` / `untag`. */
|
|
13244
|
+
readonly tags?: readonly string[];
|
|
13245
|
+
};
|
|
13007
13246
|
readonly PromptCreate: {
|
|
13008
13247
|
/**
|
|
13009
13248
|
* @description Launch automatically when due.
|
|
@@ -13012,15 +13251,30 @@ type components$1 = {
|
|
|
13012
13251
|
readonly auto_run?: boolean;
|
|
13013
13252
|
/** @description Stable key of the goal; a new prompt supersedes older open ones with the same key. */
|
|
13014
13253
|
readonly goal_key?: string;
|
|
13254
|
+
/** @description A template is hidden from the default list, never notified or auto-run; use `POST /v1/prompts/{id}/instantiate`. */
|
|
13255
|
+
readonly is_template?: boolean;
|
|
13256
|
+
/** @description Launch preset, or `null`. */
|
|
13257
|
+
readonly launch?: components$1['schemas']['PromptLaunchConfig'] | null;
|
|
13258
|
+
/**
|
|
13259
|
+
* Format: uuid
|
|
13260
|
+
* @description One of your prompts to open when this one becomes `done` (a template is instantiated instead). Cannot be the prompt itself.
|
|
13261
|
+
*/
|
|
13262
|
+
readonly next_prompt_id?: string | null;
|
|
13015
13263
|
/** @description ISO datetime with offset, or `YYYY-MM-DD` (07:00 UTC). `null` = due immediately. */
|
|
13016
13264
|
readonly not_before?: string | null;
|
|
13017
13265
|
/** @description Free-form capture metadata (session, transcript, host). */
|
|
13018
13266
|
readonly origin?: {
|
|
13019
13267
|
readonly [key: string]: unknown;
|
|
13020
13268
|
};
|
|
13269
|
+
/** @description 0 none, 1 low, 2 normal, 3 high. */
|
|
13270
|
+
readonly priority?: number;
|
|
13021
13271
|
readonly prompt: string;
|
|
13272
|
+
/** @description Repeat rule, or `null` for none. */
|
|
13273
|
+
readonly recurrence?: components$1['schemas']['PromptRecurrence'] | null;
|
|
13022
13274
|
readonly repo?: string;
|
|
13023
13275
|
readonly source?: components$1['schemas']['PromptSource'];
|
|
13276
|
+
/** @description Tags; trimmed, lowercased and deduplicated. */
|
|
13277
|
+
readonly tags?: readonly string[];
|
|
13024
13278
|
/** Format: uuid */
|
|
13025
13279
|
readonly target_device_id?: string | null;
|
|
13026
13280
|
readonly title?: string;
|
|
@@ -13032,17 +13286,66 @@ type components$1 = {
|
|
|
13032
13286
|
/** @description Older open prompts with the same `goal_key` now `superseded`. */
|
|
13033
13287
|
readonly superseded: number;
|
|
13034
13288
|
};
|
|
13289
|
+
/** @description One history entry of a prompt. */
|
|
13290
|
+
readonly PromptEvent: {
|
|
13291
|
+
/** Format: date-time */
|
|
13292
|
+
readonly created_at: string;
|
|
13293
|
+
/** @description Kind-specific details (e.g. `from` / `to` for status, `keys` for edits). */
|
|
13294
|
+
readonly detail: {
|
|
13295
|
+
readonly [key: string]: unknown;
|
|
13296
|
+
};
|
|
13297
|
+
/** @enum {string} */
|
|
13298
|
+
readonly kind: 'created' | 'edited' | 'status' | 'launched' | 'recurred' | 'chained' | 'verified';
|
|
13299
|
+
};
|
|
13300
|
+
/** @description Preset used when the prompt is launched. */
|
|
13301
|
+
readonly PromptLaunchConfig: {
|
|
13302
|
+
/** @description Agent to run it with. */
|
|
13303
|
+
readonly agent?: string;
|
|
13304
|
+
/** @description Working folder. */
|
|
13305
|
+
readonly folder?: string;
|
|
13306
|
+
/** @description Model to use. */
|
|
13307
|
+
readonly model?: string;
|
|
13308
|
+
};
|
|
13035
13309
|
readonly PromptPatch: {
|
|
13036
13310
|
readonly auto_run?: boolean;
|
|
13311
|
+
/** @description A template is hidden from the default list, never notified or auto-run; use `POST /v1/prompts/{id}/instantiate`. */
|
|
13312
|
+
readonly is_template?: boolean;
|
|
13313
|
+
/** @description Launch preset, or `null`. */
|
|
13314
|
+
readonly launch?: components$1['schemas']['PromptLaunchConfig'] | null;
|
|
13315
|
+
/**
|
|
13316
|
+
* Format: uuid
|
|
13317
|
+
* @description One of your prompts to open when this one becomes `done` (a template is instantiated instead). Cannot be the prompt itself.
|
|
13318
|
+
*/
|
|
13319
|
+
readonly next_prompt_id?: string | null;
|
|
13037
13320
|
/** @description ISO datetime with offset, or `YYYY-MM-DD` (07:00 UTC). `null` = due immediately. */
|
|
13038
13321
|
readonly not_before?: string | null;
|
|
13322
|
+
/** @description 0 none, 1 low, 2 normal, 3 high. */
|
|
13323
|
+
readonly priority?: number;
|
|
13039
13324
|
readonly prompt?: string;
|
|
13325
|
+
/** @description Repeat rule, or `null` for none. */
|
|
13326
|
+
readonly recurrence?: components$1['schemas']['PromptRecurrence'] | null;
|
|
13040
13327
|
readonly status?: components$1['schemas']['PromptStatus'];
|
|
13328
|
+
/** @description Tags; trimmed, lowercased and deduplicated. */
|
|
13329
|
+
readonly tags?: readonly string[];
|
|
13041
13330
|
/** Format: uuid */
|
|
13042
13331
|
readonly target_device_id?: string | null;
|
|
13043
13332
|
readonly title?: string;
|
|
13044
13333
|
readonly tracker?: string | null;
|
|
13045
13334
|
};
|
|
13335
|
+
/**
|
|
13336
|
+
* @description `{ every: day | week | month, at?: HH:MM }` (UTC): once the prompt left `open`, its next occurrence is created
|
|
13337
|
+
* as a new `open` prompt due at the next slot (months keep the day, clamped to the month end).
|
|
13338
|
+
* `{ on: session_end }`: the prompt is reopened when the session it ran in (or was captured from) ends a turn.
|
|
13339
|
+
*/
|
|
13340
|
+
readonly PromptRecurrence: {
|
|
13341
|
+
/** @description Time of day, HH:MM UTC. */
|
|
13342
|
+
readonly at?: string;
|
|
13343
|
+
/** @enum {string} */
|
|
13344
|
+
readonly every: 'day' | 'week' | 'month';
|
|
13345
|
+
} | {
|
|
13346
|
+
/** @enum {string} */
|
|
13347
|
+
readonly on: 'session_end';
|
|
13348
|
+
};
|
|
13046
13349
|
/** @description LLM verification report of a prompt. */
|
|
13047
13350
|
readonly PromptReport: {
|
|
13048
13351
|
/** Format: date-time */
|
|
@@ -13921,6 +14224,8 @@ type components$1 = {
|
|
|
13921
14224
|
* @example desktop-2026-09-23-main
|
|
13922
14225
|
*/
|
|
13923
14226
|
readonly session_key: string;
|
|
14227
|
+
/** @description Title-only mirror without events yet; cleared by the first appended event batch. */
|
|
14228
|
+
readonly stub: boolean;
|
|
13924
14229
|
readonly title: string | null;
|
|
13925
14230
|
};
|
|
13926
14231
|
/** SessionControl */
|
|
@@ -13957,10 +14262,10 @@ type components$1 = {
|
|
|
13957
14262
|
readonly seq: number | null;
|
|
13958
14263
|
};
|
|
13959
14264
|
/**
|
|
13960
|
-
* @description Kind of control a non-executor can send to the executor.
|
|
14265
|
+
* @description Kind of control a non-executor can send to the executor. `hydrate` asks the executor to upload the transcript of a stub session (session owner only, like `send`).
|
|
13961
14266
|
* @enum {string}
|
|
13962
14267
|
*/
|
|
13963
|
-
readonly SessionControlKind: 'send' | 'answer' | 'approve' | 'deny' | 'cancel' | 'steer' | 'inject' | 'pause' | 'resume';
|
|
14268
|
+
readonly SessionControlKind: 'send' | 'answer' | 'approve' | 'deny' | 'cancel' | 'steer' | 'inject' | 'pause' | 'resume' | 'hydrate';
|
|
13964
14269
|
readonly SessionControlRequest: {
|
|
13965
14270
|
/** @description Id of the question being answered / approved / denied. */
|
|
13966
14271
|
readonly ask_id?: string;
|
|
@@ -13985,6 +14290,11 @@ type components$1 = {
|
|
|
13985
14290
|
* @example desktop-2026-09-23-main
|
|
13986
14291
|
*/
|
|
13987
14292
|
readonly session_key?: string;
|
|
14293
|
+
/**
|
|
14294
|
+
* @description Create a title-only stub (no events yet); viewers request the transcript with a `hydrate` control.
|
|
14295
|
+
* @default false
|
|
14296
|
+
*/
|
|
14297
|
+
readonly stub?: boolean;
|
|
13988
14298
|
readonly title?: string;
|
|
13989
14299
|
};
|
|
13990
14300
|
readonly SessionDetail: components$1['schemas']['Session'] & {
|
|
@@ -16760,6 +17070,17 @@ type components$1 = {
|
|
|
16760
17070
|
readonly default_tier: 't1' | 't2' | 't3' | 't4';
|
|
16761
17071
|
/** @description Public key fingerprint to compare between devices. */
|
|
16762
17072
|
readonly fingerprint: string;
|
|
17073
|
+
readonly guards?: components$1['schemas']['VaultGuards'];
|
|
17074
|
+
/**
|
|
17075
|
+
* @description Why the vault is locked.
|
|
17076
|
+
* @enum {string|null}
|
|
17077
|
+
*/
|
|
17078
|
+
readonly lock_reason?: 'panic' | 'honeytoken' | null;
|
|
17079
|
+
/**
|
|
17080
|
+
* Format: date-time
|
|
17081
|
+
* @description When the vault was locked (panic or honeytoken); null when unlocked. While locked every agent use is denied with reason `vault_locked`.
|
|
17082
|
+
*/
|
|
17083
|
+
readonly locked_at?: string | null;
|
|
16763
17084
|
readonly revision: number;
|
|
16764
17085
|
};
|
|
16765
17086
|
/** @description Proven step-up for a decision. `device`: an enrolled device key signs `codai-vault/approve/v2|<approval_id>|<action_hash>|<decision>|<scope>|<device_id>`. `passkey`: a WebAuthn assertion whose challenge is base64url(SHA-256(the same message with device id `passkey`)). With `match_number` the message is v3: `codai-vault/approve/v3|<approval_id>|<action_hash>|<decision>|<scope>|<device_id>|<preview_digest>|<match_number>`, where `preview_digest` = base64url(SHA-256(the canonical text of `request.preview`)). */
|
|
@@ -16836,6 +17157,20 @@ type components$1 = {
|
|
|
16836
17157
|
/** @enum {string} */
|
|
16837
17158
|
readonly surface: 'phone' | 'wear' | 'desktop';
|
|
16838
17159
|
};
|
|
17160
|
+
readonly VaultGuards: {
|
|
17161
|
+
/** @description Agent requests for one item within `burst_window_s` that count as a burst (`anomaly:burst`); 0 = off. */
|
|
17162
|
+
readonly burst_max: number;
|
|
17163
|
+
/** @description Burst window in seconds. */
|
|
17164
|
+
readonly burst_window_s: number;
|
|
17165
|
+
/** @description End of the allowed hours (exclusive) in `tz`; a use outside [hour_start, hour_end) is `anomaly:hour`. */
|
|
17166
|
+
readonly hour_end: number | null;
|
|
17167
|
+
/** @description Start of the allowed hours (inclusive) in `tz`; null together with `hour_end` turns the hours check off. */
|
|
17168
|
+
readonly hour_start: number | null;
|
|
17169
|
+
/** @description Flag a use on a host with no allowed use or grant for that item in the last 30 days (`anomaly:new_host`). */
|
|
17170
|
+
readonly new_host: boolean;
|
|
17171
|
+
/** @description IANA time zone for the hours check, e.g. `Europe/Bucharest`. */
|
|
17172
|
+
readonly tz: string;
|
|
17173
|
+
};
|
|
16839
17174
|
readonly VaultItemEnvelope: {
|
|
16840
17175
|
/** @description Public catalogue entry for agents (title, sensitivity, hosts, env var). Never secret values. */
|
|
16841
17176
|
readonly agent_meta?: {
|
|
@@ -16856,6 +17191,35 @@ type components$1 = {
|
|
|
16856
17191
|
/** @description Per-item key wrapped under the vault key (`v1.<nonce>.<ciphertext>`). */
|
|
16857
17192
|
readonly wrapped_key: string;
|
|
16858
17193
|
};
|
|
17194
|
+
readonly VaultItemLimits: {
|
|
17195
|
+
/** Format: uuid */
|
|
17196
|
+
readonly item_id: string;
|
|
17197
|
+
/** @description Allowed uses per 24 hours; null = no cap. */
|
|
17198
|
+
readonly per_day: number | null;
|
|
17199
|
+
/** @description Allowed uses per minute; null = no cap. */
|
|
17200
|
+
readonly per_minute: number | null;
|
|
17201
|
+
/** @description Units per 24 hours (an `http` use costs 2, other modes 1); null = no cap. */
|
|
17202
|
+
readonly units_per_day: number | null;
|
|
17203
|
+
};
|
|
17204
|
+
readonly VaultLockResult: {
|
|
17205
|
+
/** @description Pending approvals denied by this lock. */
|
|
17206
|
+
readonly approvals_denied: number;
|
|
17207
|
+
/** @description Live grants revoked by this lock. */
|
|
17208
|
+
readonly grants_revoked: number;
|
|
17209
|
+
/** Format: date-time */
|
|
17210
|
+
readonly locked_at: string;
|
|
17211
|
+
};
|
|
17212
|
+
readonly VaultUnlockChallenge: {
|
|
17213
|
+
/** @description 32 random bytes, base64url. Single use. */
|
|
17214
|
+
readonly challenge: string;
|
|
17215
|
+
/**
|
|
17216
|
+
* Format: date-time
|
|
17217
|
+
* @description 5 minutes after issue.
|
|
17218
|
+
*/
|
|
17219
|
+
readonly expires_at: string;
|
|
17220
|
+
/** @description `codai-vault/unlock/v1|<challenge>|<device_id or passkey>`: the UTF-8 message the proof covers. */
|
|
17221
|
+
readonly message_template: string;
|
|
17222
|
+
};
|
|
16859
17223
|
readonly VaultUseDecision: {
|
|
16860
17224
|
/** @description Hash of the exact request the approver signs. */
|
|
16861
17225
|
readonly action_hash?: string;
|
|
@@ -16865,6 +17229,7 @@ type components$1 = {
|
|
|
16865
17229
|
readonly cloud_usable?: boolean;
|
|
16866
17230
|
/** @description Two digits to show the user with the approval request; they tap the same number on the approving device (number matching). Null when no approval is needed. */
|
|
16867
17231
|
readonly match_number?: string | null;
|
|
17232
|
+
/** @description Why this tier. Guard reasons: `vault_locked` (the vault is locked, tier `deny`), `anomaly:new_host`, `anomaly:burst`, `anomaly:hour` (tier forced to t4; grants not approved at t4 are ignored). */
|
|
16868
17233
|
readonly reasons: readonly string[];
|
|
16869
17234
|
/** @enum {string} */
|
|
16870
17235
|
readonly tier: 't0' | 't1' | 't2' | 't3' | 't4' | 'deny';
|
|
@@ -22518,8 +22883,20 @@ interface operations$1 {
|
|
|
22518
22883
|
readonly query?: {
|
|
22519
22884
|
/** @description Maximum rows (1–200). */
|
|
22520
22885
|
readonly limit?: number;
|
|
22886
|
+
/** @description Sort direction. Default `desc`, except `asc` for `sort=not_before` (empty dates last). */
|
|
22887
|
+
readonly order?: 'asc' | 'desc';
|
|
22888
|
+
/** @description Only prompts with `priority` at least this value (0–3). */
|
|
22889
|
+
readonly priority_min?: number;
|
|
22890
|
+
/** @description Case-insensitive text search in the title, the prompt text and `origin.session_title`. */
|
|
22891
|
+
readonly q?: string;
|
|
22892
|
+
/** @description Sort key. Without it: soonest `not_before` first (prompts without one lead), then newest. */
|
|
22893
|
+
readonly sort?: 'created' | 'updated' | 'priority' | 'not_before';
|
|
22521
22894
|
/** @description Filter: a prompt status, `active` (open, launched, sent or answered), `due` or `all`. */
|
|
22522
22895
|
readonly status?: 'open' | 'due' | 'all' | 'launched' | 'done' | 'dismissed' | 'superseded' | 'active' | 'sent' | 'answered' | 'verified';
|
|
22896
|
+
/** @description Tag filter, repeatable or a comma list; every tag must be present (AND). Matched lowercased. */
|
|
22897
|
+
readonly tag?: readonly string[];
|
|
22898
|
+
/** @description `exclude` (default) hides templates, `only` returns just templates. */
|
|
22899
|
+
readonly templates?: 'only' | 'exclude';
|
|
22523
22900
|
};
|
|
22524
22901
|
readonly header?: {
|
|
22525
22902
|
/** @description Client correlation id; echoed back as `x-codai-trace-id` and persisted on the usage row. */
|
|
@@ -22678,6 +23055,66 @@ interface operations$1 {
|
|
|
22678
23055
|
readonly 404: components$1['responses']['NotFound'];
|
|
22679
23056
|
};
|
|
22680
23057
|
};
|
|
23058
|
+
readonly listPromptEvents: {
|
|
23059
|
+
readonly parameters: {
|
|
23060
|
+
readonly query?: never;
|
|
23061
|
+
readonly header?: {
|
|
23062
|
+
/** @description Client correlation id; echoed back as `x-codai-trace-id` and persisted on the usage row. */
|
|
23063
|
+
readonly 'x-request-id'?: components$1['parameters']['RequestId'];
|
|
23064
|
+
};
|
|
23065
|
+
readonly path: {
|
|
23066
|
+
/** @description Pending prompt id (uuid). A foreign or malformed id is 404. */
|
|
23067
|
+
readonly id: string;
|
|
23068
|
+
};
|
|
23069
|
+
readonly cookie?: never;
|
|
23070
|
+
};
|
|
23071
|
+
readonly requestBody?: never;
|
|
23072
|
+
readonly responses: {
|
|
23073
|
+
/** @description The history events. */
|
|
23074
|
+
readonly 200: {
|
|
23075
|
+
headers: {
|
|
23076
|
+
readonly [name: string]: unknown;
|
|
23077
|
+
};
|
|
23078
|
+
content: {
|
|
23079
|
+
readonly 'application/json': {
|
|
23080
|
+
readonly events: readonly components$1['schemas']['PromptEvent'][];
|
|
23081
|
+
};
|
|
23082
|
+
};
|
|
23083
|
+
};
|
|
23084
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
23085
|
+
readonly 402: components$1['responses']['PaymentRequired'];
|
|
23086
|
+
readonly 404: components$1['responses']['NotFound'];
|
|
23087
|
+
};
|
|
23088
|
+
};
|
|
23089
|
+
readonly instantiatePrompt: {
|
|
23090
|
+
readonly parameters: {
|
|
23091
|
+
readonly query?: never;
|
|
23092
|
+
readonly header?: {
|
|
23093
|
+
/** @description Client correlation id; echoed back as `x-codai-trace-id` and persisted on the usage row. */
|
|
23094
|
+
readonly 'x-request-id'?: components$1['parameters']['RequestId'];
|
|
23095
|
+
};
|
|
23096
|
+
readonly path: {
|
|
23097
|
+
/** @description Pending prompt id (uuid). A foreign or malformed id is 404. */
|
|
23098
|
+
readonly id: string;
|
|
23099
|
+
};
|
|
23100
|
+
readonly cookie?: never;
|
|
23101
|
+
};
|
|
23102
|
+
readonly requestBody?: never;
|
|
23103
|
+
readonly responses: {
|
|
23104
|
+
/** @description The new prompt. */
|
|
23105
|
+
readonly 201: {
|
|
23106
|
+
headers: {
|
|
23107
|
+
readonly [name: string]: unknown;
|
|
23108
|
+
};
|
|
23109
|
+
content: {
|
|
23110
|
+
readonly 'application/json': components$1['schemas']['Prompt'];
|
|
23111
|
+
};
|
|
23112
|
+
};
|
|
23113
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
23114
|
+
readonly 402: components$1['responses']['PaymentRequired'];
|
|
23115
|
+
readonly 404: components$1['responses']['NotFound'];
|
|
23116
|
+
};
|
|
23117
|
+
};
|
|
22681
23118
|
readonly launchPrompt: {
|
|
22682
23119
|
readonly parameters: {
|
|
22683
23120
|
readonly query?: never;
|
|
@@ -22834,6 +23271,84 @@ interface operations$1 {
|
|
|
22834
23271
|
};
|
|
22835
23272
|
};
|
|
22836
23273
|
};
|
|
23274
|
+
readonly bulkPrompts: {
|
|
23275
|
+
readonly parameters: {
|
|
23276
|
+
readonly query?: never;
|
|
23277
|
+
readonly header?: {
|
|
23278
|
+
/** @description Client correlation id; echoed back as `x-codai-trace-id` and persisted on the usage row. */
|
|
23279
|
+
readonly 'x-request-id'?: components$1['parameters']['RequestId'];
|
|
23280
|
+
};
|
|
23281
|
+
readonly path?: never;
|
|
23282
|
+
readonly cookie?: never;
|
|
23283
|
+
};
|
|
23284
|
+
readonly requestBody: {
|
|
23285
|
+
readonly content: {
|
|
23286
|
+
readonly 'application/json': components$1['schemas']['PromptBulkRequest'];
|
|
23287
|
+
};
|
|
23288
|
+
};
|
|
23289
|
+
readonly responses: {
|
|
23290
|
+
/** @description How many prompts were changed (or deleted). */
|
|
23291
|
+
readonly 200: {
|
|
23292
|
+
headers: {
|
|
23293
|
+
readonly [name: string]: unknown;
|
|
23294
|
+
};
|
|
23295
|
+
content: {
|
|
23296
|
+
readonly 'application/json': {
|
|
23297
|
+
readonly updated: number;
|
|
23298
|
+
};
|
|
23299
|
+
};
|
|
23300
|
+
};
|
|
23301
|
+
readonly 400: components$1['responses']['BadRequest'];
|
|
23302
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
23303
|
+
readonly 402: components$1['responses']['PaymentRequired'];
|
|
23304
|
+
};
|
|
23305
|
+
};
|
|
23306
|
+
readonly exportPrompts: {
|
|
23307
|
+
readonly parameters: {
|
|
23308
|
+
readonly query?: {
|
|
23309
|
+
/** @description Output format. */
|
|
23310
|
+
readonly format?: 'csv' | 'md';
|
|
23311
|
+
/** @description Maximum rows (1–5000). */
|
|
23312
|
+
readonly limit?: number;
|
|
23313
|
+
/** @description Sort direction. Default `desc`, except `asc` for `sort=not_before` (empty dates last). */
|
|
23314
|
+
readonly order?: 'asc' | 'desc';
|
|
23315
|
+
/** @description Only prompts with `priority` at least this value (0–3). */
|
|
23316
|
+
readonly priority_min?: number;
|
|
23317
|
+
/** @description Case-insensitive text search in the title, the prompt text and `origin.session_title`. */
|
|
23318
|
+
readonly q?: string;
|
|
23319
|
+
/** @description Sort key. Without it: soonest `not_before` first (prompts without one lead), then newest. */
|
|
23320
|
+
readonly sort?: 'created' | 'updated' | 'priority' | 'not_before';
|
|
23321
|
+
/** @description Same values as for the list; default `all`. */
|
|
23322
|
+
readonly status?: 'open' | 'due' | 'all' | 'launched' | 'done' | 'dismissed' | 'superseded' | 'active' | 'sent' | 'answered' | 'verified';
|
|
23323
|
+
/** @description Tag filter, repeatable or a comma list; every tag must be present (AND). Matched lowercased. */
|
|
23324
|
+
readonly tag?: readonly string[];
|
|
23325
|
+
/** @description `exclude` (default) hides templates, `only` returns just templates. */
|
|
23326
|
+
readonly templates?: 'only' | 'exclude';
|
|
23327
|
+
};
|
|
23328
|
+
readonly header?: {
|
|
23329
|
+
/** @description Client correlation id; echoed back as `x-codai-trace-id` and persisted on the usage row. */
|
|
23330
|
+
readonly 'x-request-id'?: components$1['parameters']['RequestId'];
|
|
23331
|
+
};
|
|
23332
|
+
readonly path?: never;
|
|
23333
|
+
readonly cookie?: never;
|
|
23334
|
+
};
|
|
23335
|
+
readonly requestBody?: never;
|
|
23336
|
+
readonly responses: {
|
|
23337
|
+
/** @description The export file. */
|
|
23338
|
+
readonly 200: {
|
|
23339
|
+
headers: {
|
|
23340
|
+
readonly [name: string]: unknown;
|
|
23341
|
+
};
|
|
23342
|
+
content: {
|
|
23343
|
+
readonly 'text/csv': string;
|
|
23344
|
+
readonly 'text/markdown': string;
|
|
23345
|
+
};
|
|
23346
|
+
};
|
|
23347
|
+
readonly 400: components$1['responses']['BadRequest'];
|
|
23348
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
23349
|
+
readonly 402: components$1['responses']['PaymentRequired'];
|
|
23350
|
+
};
|
|
23351
|
+
};
|
|
22837
23352
|
readonly streamPrompts: {
|
|
22838
23353
|
readonly parameters: {
|
|
22839
23354
|
readonly query?: never;
|
|
@@ -31925,6 +32440,36 @@ interface operations$1 {
|
|
|
31925
32440
|
readonly 404: components$1['responses']['NotFound'];
|
|
31926
32441
|
};
|
|
31927
32442
|
};
|
|
32443
|
+
readonly revokeVaultTaskGrants: {
|
|
32444
|
+
readonly parameters: {
|
|
32445
|
+
readonly query?: never;
|
|
32446
|
+
readonly header?: never;
|
|
32447
|
+
readonly path?: never;
|
|
32448
|
+
readonly cookie?: never;
|
|
32449
|
+
};
|
|
32450
|
+
readonly requestBody: {
|
|
32451
|
+
readonly content: {
|
|
32452
|
+
readonly 'application/json': {
|
|
32453
|
+
readonly task: string;
|
|
32454
|
+
};
|
|
32455
|
+
};
|
|
32456
|
+
};
|
|
32457
|
+
readonly responses: {
|
|
32458
|
+
/** @description OK. */
|
|
32459
|
+
readonly 200: {
|
|
32460
|
+
headers: {
|
|
32461
|
+
readonly [name: string]: unknown;
|
|
32462
|
+
};
|
|
32463
|
+
content: {
|
|
32464
|
+
readonly 'application/json': {
|
|
32465
|
+
readonly revoked: number;
|
|
32466
|
+
};
|
|
32467
|
+
};
|
|
32468
|
+
};
|
|
32469
|
+
readonly 400: components$1['responses']['BadRequest'];
|
|
32470
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
32471
|
+
};
|
|
32472
|
+
};
|
|
31928
32473
|
readonly vaultHttp: {
|
|
31929
32474
|
readonly parameters: {
|
|
31930
32475
|
readonly query?: never;
|
|
@@ -31977,7 +32522,7 @@ interface operations$1 {
|
|
|
31977
32522
|
};
|
|
31978
32523
|
readonly 400: components$1['responses']['BadRequest'];
|
|
31979
32524
|
readonly 401: components$1['responses']['Unauthorized'];
|
|
31980
|
-
/** @description Denied by policy. */
|
|
32525
|
+
/** @description Denied by policy (`vault_denied`; reasons include `vault_locked` while the vault is locked). */
|
|
31981
32526
|
readonly 403: {
|
|
31982
32527
|
headers: {
|
|
31983
32528
|
readonly [name: string]: unknown;
|
|
@@ -31989,6 +32534,17 @@ interface operations$1 {
|
|
|
31989
32534
|
};
|
|
31990
32535
|
};
|
|
31991
32536
|
readonly 404: components$1['responses']['NotFound'];
|
|
32537
|
+
/** @description `vault_rate_limited`: a per-handle limit is reached (`PUT /v1/vault/items/{id}/limits`). Read `Retry-After` (60 s for the per-minute cap, 3600 s for the daily caps). */
|
|
32538
|
+
readonly 429: {
|
|
32539
|
+
headers: {
|
|
32540
|
+
/** @description Seconds to wait before retrying. */
|
|
32541
|
+
readonly 'Retry-After'?: number;
|
|
32542
|
+
readonly [name: string]: unknown;
|
|
32543
|
+
};
|
|
32544
|
+
content: {
|
|
32545
|
+
readonly 'application/json': components$1['schemas']['Error'];
|
|
32546
|
+
};
|
|
32547
|
+
};
|
|
31992
32548
|
};
|
|
31993
32549
|
};
|
|
31994
32550
|
readonly listVaultItems: {
|
|
@@ -32136,6 +32692,96 @@ interface operations$1 {
|
|
|
32136
32692
|
readonly 404: components$1['responses']['NotFound'];
|
|
32137
32693
|
};
|
|
32138
32694
|
};
|
|
32695
|
+
readonly setVaultItemLimits: {
|
|
32696
|
+
readonly parameters: {
|
|
32697
|
+
readonly query?: never;
|
|
32698
|
+
readonly header?: never;
|
|
32699
|
+
readonly path: {
|
|
32700
|
+
/** @description Resource id (uuid). */
|
|
32701
|
+
readonly id: string;
|
|
32702
|
+
};
|
|
32703
|
+
readonly cookie?: never;
|
|
32704
|
+
};
|
|
32705
|
+
readonly requestBody: {
|
|
32706
|
+
readonly content: {
|
|
32707
|
+
readonly 'application/json': {
|
|
32708
|
+
readonly per_day: number | null;
|
|
32709
|
+
readonly per_minute: number | null;
|
|
32710
|
+
readonly units_per_day: number | null;
|
|
32711
|
+
};
|
|
32712
|
+
};
|
|
32713
|
+
};
|
|
32714
|
+
readonly responses: {
|
|
32715
|
+
/** @description OK; `limits` is null when removed. */
|
|
32716
|
+
readonly 200: {
|
|
32717
|
+
headers: {
|
|
32718
|
+
readonly [name: string]: unknown;
|
|
32719
|
+
};
|
|
32720
|
+
content: {
|
|
32721
|
+
readonly 'application/json': {
|
|
32722
|
+
readonly limits: components$1['schemas']['VaultItemLimits'];
|
|
32723
|
+
};
|
|
32724
|
+
};
|
|
32725
|
+
};
|
|
32726
|
+
readonly 400: components$1['responses']['BadRequest'];
|
|
32727
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
32728
|
+
readonly 404: components$1['responses']['NotFound'];
|
|
32729
|
+
};
|
|
32730
|
+
};
|
|
32731
|
+
readonly listVaultLimits: {
|
|
32732
|
+
readonly parameters: {
|
|
32733
|
+
readonly query?: never;
|
|
32734
|
+
readonly header?: never;
|
|
32735
|
+
readonly path?: never;
|
|
32736
|
+
readonly cookie?: never;
|
|
32737
|
+
};
|
|
32738
|
+
readonly requestBody?: never;
|
|
32739
|
+
readonly responses: {
|
|
32740
|
+
/** @description OK. */
|
|
32741
|
+
readonly 200: {
|
|
32742
|
+
headers: {
|
|
32743
|
+
readonly [name: string]: unknown;
|
|
32744
|
+
};
|
|
32745
|
+
content: {
|
|
32746
|
+
readonly 'application/json': {
|
|
32747
|
+
readonly limits: readonly components$1['schemas']['VaultItemLimits'][];
|
|
32748
|
+
};
|
|
32749
|
+
};
|
|
32750
|
+
};
|
|
32751
|
+
readonly 400: components$1['responses']['BadRequest'];
|
|
32752
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
32753
|
+
};
|
|
32754
|
+
};
|
|
32755
|
+
readonly lockVault: {
|
|
32756
|
+
readonly parameters: {
|
|
32757
|
+
readonly query?: never;
|
|
32758
|
+
readonly header?: never;
|
|
32759
|
+
readonly path?: never;
|
|
32760
|
+
readonly cookie?: never;
|
|
32761
|
+
};
|
|
32762
|
+
readonly requestBody?: {
|
|
32763
|
+
readonly content: {
|
|
32764
|
+
readonly 'application/json': {
|
|
32765
|
+
/** @enum {string} */
|
|
32766
|
+
readonly via?: 'hub' | 'desktop' | 'phone' | 'wear' | 'extension';
|
|
32767
|
+
};
|
|
32768
|
+
};
|
|
32769
|
+
};
|
|
32770
|
+
readonly responses: {
|
|
32771
|
+
/** @description Locked. */
|
|
32772
|
+
readonly 200: {
|
|
32773
|
+
headers: {
|
|
32774
|
+
readonly [name: string]: unknown;
|
|
32775
|
+
};
|
|
32776
|
+
content: {
|
|
32777
|
+
readonly 'application/json': components$1['schemas']['VaultLockResult'];
|
|
32778
|
+
};
|
|
32779
|
+
};
|
|
32780
|
+
readonly 400: components$1['responses']['BadRequest'];
|
|
32781
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
32782
|
+
readonly 404: components$1['responses']['NotFound'];
|
|
32783
|
+
};
|
|
32784
|
+
};
|
|
32139
32785
|
readonly vaultResolve: {
|
|
32140
32786
|
readonly parameters: {
|
|
32141
32787
|
readonly query?: never;
|
|
@@ -32204,6 +32850,17 @@ interface operations$1 {
|
|
|
32204
32850
|
};
|
|
32205
32851
|
};
|
|
32206
32852
|
};
|
|
32853
|
+
/** @description `vault_rate_limited`: a per-handle limit is reached (`PUT /v1/vault/items/{id}/limits`). Read `Retry-After` (60 s for the per-minute cap, 3600 s for the daily caps). */
|
|
32854
|
+
readonly 429: {
|
|
32855
|
+
headers: {
|
|
32856
|
+
/** @description Seconds to wait before retrying. */
|
|
32857
|
+
readonly 'Retry-After'?: number;
|
|
32858
|
+
readonly [name: string]: unknown;
|
|
32859
|
+
};
|
|
32860
|
+
content: {
|
|
32861
|
+
readonly 'application/json': components$1['schemas']['Error'];
|
|
32862
|
+
};
|
|
32863
|
+
};
|
|
32207
32864
|
};
|
|
32208
32865
|
};
|
|
32209
32866
|
readonly listVaultRules: {
|
|
@@ -32306,19 +32963,36 @@ interface operations$1 {
|
|
|
32306
32963
|
readonly content: {
|
|
32307
32964
|
readonly 'application/json': {
|
|
32308
32965
|
/** @enum {string} */
|
|
32309
|
-
readonly default_tier
|
|
32966
|
+
readonly default_tier?: 't1' | 't2' | 't3' | 't4';
|
|
32967
|
+
/** @description Any subset of `VaultGuards`; `hour_start` and `hour_end` are both null (off) or both set. */
|
|
32968
|
+
readonly guards?: {
|
|
32969
|
+
/** @description Agent requests for one item within `burst_window_s` that count as a burst (`anomaly:burst`); 0 = off. */
|
|
32970
|
+
readonly burst_max?: number;
|
|
32971
|
+
/** @description Burst window in seconds. */
|
|
32972
|
+
readonly burst_window_s?: number;
|
|
32973
|
+
/** @description End of the allowed hours (exclusive) in `tz`; a use outside [hour_start, hour_end) is `anomaly:hour`. */
|
|
32974
|
+
readonly hour_end?: number | null;
|
|
32975
|
+
/** @description Start of the allowed hours (inclusive) in `tz`; null together with `hour_end` turns the hours check off. */
|
|
32976
|
+
readonly hour_start?: number | null;
|
|
32977
|
+
/** @description Flag a use on a host with no allowed use or grant for that item in the last 30 days (`anomaly:new_host`). */
|
|
32978
|
+
readonly new_host?: boolean;
|
|
32979
|
+
/** @description IANA time zone for the hours check, e.g. `Europe/Bucharest`. */
|
|
32980
|
+
readonly tz?: string;
|
|
32981
|
+
};
|
|
32310
32982
|
};
|
|
32311
32983
|
};
|
|
32312
32984
|
};
|
|
32313
32985
|
readonly responses: {
|
|
32314
|
-
/** @description
|
|
32986
|
+
/** @description Effective settings. */
|
|
32315
32987
|
readonly 200: {
|
|
32316
32988
|
headers: {
|
|
32317
32989
|
readonly [name: string]: unknown;
|
|
32318
32990
|
};
|
|
32319
32991
|
content: {
|
|
32320
32992
|
readonly 'application/json': {
|
|
32321
|
-
|
|
32993
|
+
/** @enum {string} */
|
|
32994
|
+
readonly default_tier: 't1' | 't2' | 't3' | 't4';
|
|
32995
|
+
readonly guards: components$1['schemas']['VaultGuards'];
|
|
32322
32996
|
};
|
|
32323
32997
|
};
|
|
32324
32998
|
};
|
|
@@ -32327,6 +33001,74 @@ interface operations$1 {
|
|
|
32327
33001
|
readonly 404: components$1['responses']['NotFound'];
|
|
32328
33002
|
};
|
|
32329
33003
|
};
|
|
33004
|
+
readonly unlockVault: {
|
|
33005
|
+
readonly parameters: {
|
|
33006
|
+
readonly query?: never;
|
|
33007
|
+
readonly header?: never;
|
|
33008
|
+
readonly path?: never;
|
|
33009
|
+
readonly cookie?: never;
|
|
33010
|
+
};
|
|
33011
|
+
readonly requestBody: {
|
|
33012
|
+
readonly content: {
|
|
33013
|
+
readonly 'application/json': {
|
|
33014
|
+
/** @description Challenge from `POST /v1/vault/unlock/challenge`. */
|
|
33015
|
+
readonly challenge: string;
|
|
33016
|
+
readonly proof: components$1['schemas']['VaultApprovalProof'];
|
|
33017
|
+
/** @enum {string} */
|
|
33018
|
+
readonly via?: 'hub' | 'desktop' | 'phone' | 'wear' | 'extension';
|
|
33019
|
+
};
|
|
33020
|
+
};
|
|
33021
|
+
};
|
|
33022
|
+
readonly responses: {
|
|
33023
|
+
/** @description Unlocked. */
|
|
33024
|
+
readonly 200: {
|
|
33025
|
+
headers: {
|
|
33026
|
+
readonly [name: string]: unknown;
|
|
33027
|
+
};
|
|
33028
|
+
content: {
|
|
33029
|
+
readonly 'application/json': {
|
|
33030
|
+
readonly unlocked: boolean;
|
|
33031
|
+
};
|
|
33032
|
+
};
|
|
33033
|
+
};
|
|
33034
|
+
readonly 400: components$1['responses']['BadRequest'];
|
|
33035
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
33036
|
+
/** @description `challenge_invalid`, `unknown_device`, `device_revoked`, `wear_t3_only`, `invalid_signature` or `passkey_invalid`. */
|
|
33037
|
+
readonly 403: {
|
|
33038
|
+
headers: {
|
|
33039
|
+
readonly [name: string]: unknown;
|
|
33040
|
+
};
|
|
33041
|
+
content: {
|
|
33042
|
+
readonly 'application/json': {
|
|
33043
|
+
readonly [key: string]: unknown;
|
|
33044
|
+
};
|
|
33045
|
+
};
|
|
33046
|
+
};
|
|
33047
|
+
readonly 404: components$1['responses']['NotFound'];
|
|
33048
|
+
};
|
|
33049
|
+
};
|
|
33050
|
+
readonly createVaultUnlockChallenge: {
|
|
33051
|
+
readonly parameters: {
|
|
33052
|
+
readonly query?: never;
|
|
33053
|
+
readonly header?: never;
|
|
33054
|
+
readonly path?: never;
|
|
33055
|
+
readonly cookie?: never;
|
|
33056
|
+
};
|
|
33057
|
+
readonly requestBody?: never;
|
|
33058
|
+
readonly responses: {
|
|
33059
|
+
/** @description OK. */
|
|
33060
|
+
readonly 200: {
|
|
33061
|
+
headers: {
|
|
33062
|
+
readonly [name: string]: unknown;
|
|
33063
|
+
};
|
|
33064
|
+
content: {
|
|
33065
|
+
readonly 'application/json': components$1['schemas']['VaultUnlockChallenge'];
|
|
33066
|
+
};
|
|
33067
|
+
};
|
|
33068
|
+
readonly 400: components$1['responses']['BadRequest'];
|
|
33069
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
33070
|
+
};
|
|
33071
|
+
};
|
|
32330
33072
|
readonly vaultUse: {
|
|
32331
33073
|
readonly parameters: {
|
|
32332
33074
|
readonly query?: never;
|
|
@@ -32363,6 +33105,17 @@ interface operations$1 {
|
|
|
32363
33105
|
readonly 400: components$1['responses']['BadRequest'];
|
|
32364
33106
|
readonly 401: components$1['responses']['Unauthorized'];
|
|
32365
33107
|
readonly 404: components$1['responses']['NotFound'];
|
|
33108
|
+
/** @description `vault_rate_limited`: a per-handle limit is reached (`PUT /v1/vault/items/{id}/limits`). Read `Retry-After` (60 s for the per-minute cap, 3600 s for the daily caps). */
|
|
33109
|
+
readonly 429: {
|
|
33110
|
+
headers: {
|
|
33111
|
+
/** @description Seconds to wait before retrying. */
|
|
33112
|
+
readonly 'Retry-After'?: number;
|
|
33113
|
+
readonly [name: string]: unknown;
|
|
33114
|
+
};
|
|
33115
|
+
content: {
|
|
33116
|
+
readonly 'application/json': components$1['schemas']['Error'];
|
|
33117
|
+
};
|
|
33118
|
+
};
|
|
32366
33119
|
};
|
|
32367
33120
|
};
|
|
32368
33121
|
readonly listVaults: {
|
|
@@ -34906,6 +35659,20 @@ export type VaultUseRequest = Mutable<Body<'vaultUse'>>;
|
|
|
34906
35659
|
export type VaultHttpRequest = Mutable<Body<'vaultHttp'>>;
|
|
34907
35660
|
export type VaultResolveRequest = Mutable<Body<'vaultResolve'>>;
|
|
34908
35661
|
export type VaultTier = VaultAccount['default_tier'];
|
|
35662
|
+
/** Anomaly guards (V-32): new host, burst, allowed hours. An anomaly forces t4. */
|
|
35663
|
+
export type VaultGuards = Schema<'VaultGuards'>;
|
|
35664
|
+
export type VaultSettingsPatch = Mutable<Body<'patchVaultSettings'>>;
|
|
35665
|
+
export type VaultSettings = Reply<'patchVaultSettings'>;
|
|
35666
|
+
export type VaultLockResult = Schema<'VaultLockResult'>;
|
|
35667
|
+
export type VaultUnlockChallenge = Schema<'VaultUnlockChallenge'>;
|
|
35668
|
+
export type VaultUnlockRequest = Mutable<Body<'unlockVault'>>;
|
|
35669
|
+
/** Per-handle limits (V-21); an `http` use costs 2 units, other modes 1. */
|
|
35670
|
+
export type VaultItemLimits = Schema<'VaultItemLimits'>;
|
|
35671
|
+
export type VaultItemLimitsInput = Mutable<Body<'setVaultItemLimits'>>;
|
|
35672
|
+
/** Where a lock/unlock was triggered from. */
|
|
35673
|
+
export type VaultVia = 'hub' | 'desktop' | 'phone' | 'wear' | 'extension';
|
|
35674
|
+
/** The UTF-8 message an unlock proof covers: `codai-vault/unlock/v1|<challenge>|<device_id or "passkey">`. */
|
|
35675
|
+
export declare function vaultUnlockMessage(challenge: string, deviceIdOrPasskey: string): string;
|
|
34909
35676
|
/** Loose JSON object answers (lists, acks) as documented in the OpenAPI spec. */
|
|
34910
35677
|
export type VaultObject = Record<string, unknown>;
|
|
34911
35678
|
type CallOpts$21 = {
|
|
@@ -34939,6 +35706,32 @@ export declare class Vault {
|
|
|
34939
35706
|
putAccount(body: VaultAccountPut, opts?: CallOpts$21): Promise<VaultObject>;
|
|
34940
35707
|
/** `PATCH /v1/vault/settings` — default approval tier for items without a matching rule. */
|
|
34941
35708
|
setDefaultTier(defaultTier: VaultTier, opts?: CallOpts$21): Promise<VaultObject>;
|
|
35709
|
+
/**
|
|
35710
|
+
* `PATCH /v1/vault/settings` — `default_tier` and/or partial anomaly `guards` (merged over the current ones).
|
|
35711
|
+
* Answers the effective `{ default_tier, guards }`.
|
|
35712
|
+
*/
|
|
35713
|
+
updateSettings(body: VaultSettingsPatch, opts?: CallOpts$21): Promise<VaultSettings>;
|
|
35714
|
+
/**
|
|
35715
|
+
* `POST /v1/vault/lock` — panic: revoke every live grant, deny every pending approval, lock the vault (agent uses
|
|
35716
|
+
* then answer `vault_locked`). Device keys stay enrolled. Idempotent.
|
|
35717
|
+
*/
|
|
35718
|
+
lock(params?: {
|
|
35719
|
+
via?: VaultVia;
|
|
35720
|
+
}, opts?: CallOpts$21): Promise<VaultLockResult>;
|
|
35721
|
+
/** `POST /v1/vault/unlock/challenge` — single-use unlock challenge, valid 5 minutes. */
|
|
35722
|
+
unlockChallenge(opts?: CallOpts$21): Promise<VaultUnlockChallenge>;
|
|
35723
|
+
/**
|
|
35724
|
+
* `POST /v1/vault/unlock` — end a lock with a device-key proof over {@link vaultUnlockMessage} or a passkey whose
|
|
35725
|
+
* challenge is base64url(SHA-256(that message with `passkey`)). 403 `challenge_invalid`, `wear_t3_only`, …
|
|
35726
|
+
*/
|
|
35727
|
+
unlock(body: VaultUnlockRequest, opts?: CallOpts$21): Promise<Reply<'unlockVault'>>;
|
|
35728
|
+
/** `GET /v1/vault/limits` — per-handle usage caps on your items. */
|
|
35729
|
+
limits(opts?: CallOpts$21): Promise<VaultItemLimits[]>;
|
|
35730
|
+
/**
|
|
35731
|
+
* `PUT /v1/vault/items/{id}/limits` — all three keys required; `null` removes a cap, all `null` removes the limits
|
|
35732
|
+
* (answers `null`). Over a cap the broker calls answer 429 `vault_rate_limited` with `Retry-After`.
|
|
35733
|
+
*/
|
|
35734
|
+
setLimits(id: string, limits: VaultItemLimitsInput, opts?: CallOpts$21): Promise<VaultItemLimits | null>;
|
|
34942
35735
|
/** `GET /v1/vault/vaults` — vaults you belong to, with your role and sealed vault key. */
|
|
34943
35736
|
vaults(opts?: CallOpts$21): Promise<VaultObject>;
|
|
34944
35737
|
/** `POST /v1/vault/vaults` — register a vault created client-side (HTTP 201). */
|
|
@@ -34961,6 +35754,8 @@ export declare class Vault {
|
|
|
34961
35754
|
grants(opts?: CallOpts$21): Promise<VaultObject>;
|
|
34962
35755
|
/** `DELETE /v1/vault/grants/{id}` — revoke a grant immediately. */
|
|
34963
35756
|
revokeGrant(id: string, opts?: CallOpts$21): Promise<VaultObject>;
|
|
35757
|
+
/** `POST /v1/vault/grants/revoke-task` — revoke every live grant of a task / session; answers `{ revoked }`. */
|
|
35758
|
+
revokeTaskGrants(task: string, opts?: CallOpts$21): Promise<Reply<'revokeVaultTaskGrants'>>;
|
|
34964
35759
|
/** `GET /v1/vault/events` — append-only audit log (never contains secret values). */
|
|
34965
35760
|
events(params?: QueryOf<'listVaultEvents'>, opts?: CallOpts$21): Promise<VaultObject>;
|
|
34966
35761
|
/** `GET /v1/vault/approvals` — agent requests waiting for your decision. */
|
|
@@ -36857,11 +37652,21 @@ export declare class Notifications {
|
|
|
36857
37652
|
}
|
|
36858
37653
|
//#endregion
|
|
36859
37654
|
//#region src/resources/prompts.d.ts
|
|
37655
|
+
/** PR-07 recurrence: repeat every day/week/month (at HH:MM UTC), or reopen when the run session ends. */
|
|
37656
|
+
export type PromptRecurrence = Mutable<Schema<'PromptRecurrence'>>;
|
|
37657
|
+
/** PR-07 launch preset applied when the prompt is started. */
|
|
37658
|
+
export type PromptLaunchConfig = Mutable<Schema<'PromptLaunchConfig'>>;
|
|
36860
37659
|
export type Prompt = Schema<'Prompt'>;
|
|
37660
|
+
/** PR-04 / PR-07 organise fields (present on every prompt row). */
|
|
37661
|
+
export type PromptOrganizeFields = Pick<Prompt, 'tags' | 'priority' | 'recurrence' | 'next_prompt_id' | 'launch' | 'is_template'>;
|
|
36861
37662
|
export type PromptStatus = Schema<'PromptStatus'>;
|
|
36862
37663
|
export type PromptSource = Schema<'PromptSource'>;
|
|
36863
37664
|
export type PromptList = Reply<'listPrompts'>;
|
|
36864
|
-
export
|
|
37665
|
+
/** PR-04 list / export filters; `tag` also accepts one string (a single tag or a comma list). AND semantics. */
|
|
37666
|
+
export type PromptListFilters = Omit<Mutable<QueryOf<'listPrompts'>>, 'tag' | 'status' | 'limit'> & {
|
|
37667
|
+
tag?: string | string[];
|
|
37668
|
+
};
|
|
37669
|
+
export type PromptListQuery = Omit<Mutable<QueryOf<'listPrompts'>>, 'tag'> & PromptListFilters;
|
|
36865
37670
|
export type PromptCreateRequest = Mutable<Body<'createPrompt'>>;
|
|
36866
37671
|
export type PromptCreated = Reply<'createPrompt'>;
|
|
36867
37672
|
export type PromptPatch = Mutable<Body<'updatePrompt'>>;
|
|
@@ -36874,6 +37679,13 @@ export type PromptVerifyRequest = Mutable<Body<'verifyPrompt'>>;
|
|
|
36874
37679
|
export type PromptVerified = Reply<'verifyPrompt'>;
|
|
36875
37680
|
export type PromptVerifyManyRequest = Mutable<Body<'verifyPrompts'>>;
|
|
36876
37681
|
export type PromptVerifyManyResult = Reply<'verifyPrompts'>;
|
|
37682
|
+
/** PR-05 `POST /v1/prompts/bulk`. */
|
|
37683
|
+
export type PromptBulkRequest = Mutable<Body<'bulkPrompts'>>;
|
|
37684
|
+
export type PromptBulkResult = Reply<'bulkPrompts'>;
|
|
37685
|
+
export type PromptHistoryEvent = Schema<'PromptEvent'>;
|
|
37686
|
+
export type PromptEventKind = PromptHistoryEvent['kind'];
|
|
37687
|
+
export type PromptEventList = Reply<'listPromptEvents'>;
|
|
37688
|
+
export type PromptExportQuery = Omit<Mutable<QueryOf<'exportPrompts'>>, 'tag'> & PromptListFilters;
|
|
36877
37689
|
/** One `event: prompt` frame of `GET /v1/prompts/stream`. */
|
|
36878
37690
|
export interface PromptStreamEvent {
|
|
36879
37691
|
op: 'upsert' | 'delete';
|
|
@@ -36889,7 +37701,10 @@ type CallOpts$10 = {
|
|
|
36889
37701
|
export declare class Prompts {
|
|
36890
37702
|
private readonly http;
|
|
36891
37703
|
constructor(http: HttpClient);
|
|
36892
|
-
/**
|
|
37704
|
+
/**
|
|
37705
|
+
* `GET /v1/prompts?status=&limit=&tag=&priority_min=&q=&templates=&sort=&order=` — default `open`, templates
|
|
37706
|
+
* excluded; `due` = open and `not_before` empty or passed; several tags = AND.
|
|
37707
|
+
*/
|
|
36893
37708
|
list(query?: PromptListQuery, opts?: CallOpts$10): Promise<PromptList>;
|
|
36894
37709
|
/** `POST /v1/prompts` — idempotent on the text (`created: false` for a duplicate); `goal_key` supersedes older open ones. */
|
|
36895
37710
|
create(body: PromptCreateRequest, opts?: CallOpts$10): Promise<PromptCreated>;
|
|
@@ -36910,6 +37725,14 @@ export declare class Prompts {
|
|
|
36910
37725
|
verify(id: string, body?: PromptVerifyRequest, opts?: CallOpts$10): Promise<PromptVerified>;
|
|
36911
37726
|
/** `POST /v1/prompts/verify` — transcript-only verification of up to 20 prompts, sequentially. */
|
|
36912
37727
|
verifyMany(body: PromptVerifyManyRequest, opts?: CallOpts$10): Promise<PromptVerifyManyResult>;
|
|
37728
|
+
/** `POST /v1/prompts/bulk` — one action over up to 200 of your prompts → `{ updated }`. */
|
|
37729
|
+
bulk(body: PromptBulkRequest, opts?: CallOpts$10): Promise<PromptBulkResult>;
|
|
37730
|
+
/** `GET /v1/prompts/{id}/events` — history, newest first (max 200). */
|
|
37731
|
+
events(id: string, opts?: CallOpts$10): Promise<PromptEventList>;
|
|
37732
|
+
/** `POST /v1/prompts/{id}/instantiate` — open copy of a template (201). */
|
|
37733
|
+
instantiate(id: string, opts?: CallOpts$10): Promise<Prompt>;
|
|
37734
|
+
/** `GET /v1/prompts/export?format=csv|md` — list filters apply (status defaults to `all`); returns the document text. */
|
|
37735
|
+
exportPrompts(query?: PromptExportQuery, opts?: CallOpts$10): Promise<string>;
|
|
36913
37736
|
/** `GET /v1/prompts/stream` — live `prompt` events (keepalive comments are skipped). Closed by the server after 6 h. */
|
|
36914
37737
|
stream(opts?: CallOpts$10): AsyncGenerator<PromptStreamEvent, void, undefined>;
|
|
36915
37738
|
}
|