@naturali/sdk 0.240.1 → 0.241.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.cjs CHANGED
@@ -5328,7 +5328,7 @@ var Policies = class {
5328
5328
  /**
5329
5329
  * Delete a policy
5330
5330
  *
5331
- * Deletes a policy. A project policy needs `policies:DeletePolicy` in its project; a global one, the unrestricted admin. Refused with `409 POLICY_HAS_DEPENDENTS` while a trigger, agent or webhook names it in its `policy_ids`.
5331
+ * Deletes a policy. A project policy needs `policies:DeletePolicy` in its project; a global one, the unrestricted admin. Refused with `409 POLICY_HAS_DEPENDENTS` while a trigger, agent, webhook, user or API key names it in its `policy_ids`.
5332
5332
  */
5333
5333
  static deletePolicy(options) {
5334
5334
  return (options.client ?? client).delete({
package/dist/index.d.cts CHANGED
@@ -6918,6 +6918,10 @@ type McpServerKeyCreate = {
6918
6918
  type Memory = {
6919
6919
  id?: string;
6920
6920
  memory_store_id?: string;
6921
+ /**
6922
+ * The end user the memory belongs to; null for none. Set on create and never changed; a replacement written by a supersede belongs to the same actor.
6923
+ */
6924
+ actor_id?: string | null;
6921
6925
  /**
6922
6926
  * The text this memory currently holds. Stored once per distinct text per store and shared with every assertion that stated it, so a memory carries no copy of its own.
6923
6927
  */
@@ -7355,6 +7359,12 @@ type OrchestrationNode = {
7355
7359
  * For loop and sub_orchestration nodes — allowlist of the run's `tool_context` keys the child run inherits. When `null` (the default), the child inherits the parent's whole bag. When set, only the listed keys are handed down, so a run holding a broad credential can delegate one step to a shared sub-graph without passing on what that sub-graph does not need; `[]` hands down nothing. Matching is case-insensitive, since an entry names a key that becomes an HTTP header name; an entry outside that grammar is rejected at write time with `INVALID_TOOL_CONTEXT_KEY`. The server-derived identity keys (`session_id`, `actor_id`, `actor_external_id`) are unaffected — they are re-derived per generation in the child regardless of this list. Ignored for other node types.
7356
7360
  */
7357
7361
  context_keys?: Array<string> | null;
7362
+ /**
7363
+ * For loop nodes — per-item `tool_context` keys for each child run. Each key is a `tool_context` key; each value is JSON Logic evaluated against `{ <item_variable>: <item>, "state": <run state> }`. A child's bag is the inherited one (after `context_keys`) with these keys laid over it, matched case-insensitively. A value evaluating to `null` drops the key, the inherited value included. A value that evaluates to anything else but a string, or throws, fails that item: under `on_item_error: fail` the node fails before any child starts; under `collect` the item's entry in `results` is `{ "error": { "code", "message" } }` and no child runs for it. A key outside the header-name grammar, two keys differing only in case, or a server-reserved key (`session_id`, `actor_id`, `actor_external_id`, `calling_project_id`) is rejected at write time with `INVALID_TOOL_CONTEXT_KEY`. Ignored for other node types.
7364
+ */
7365
+ item_tool_context?: {
7366
+ [key: string]: unknown;
7367
+ };
7358
7368
  /**
7359
7369
  * For poll nodes — wait between attempts. Accepts a friendly suffix form (`5s`, `30s`, `5m`, `2h`, `500ms`) or ISO 8601 (e.g. PT5S).
7360
7370
  *
@@ -7749,7 +7759,7 @@ type NodeExecution = {
7749
7759
  */
7750
7760
  type RequiredAction = {
7751
7761
  /**
7752
- * Discriminator identifying the kind of pause. Open enum — new pause kinds may be added in minor releases; clients must tolerate unknown values. `child_run` is a `loop` or `sub_orchestration` node whose child runs, listed in `context.orchestration_run_ids`, have not settled; their settle resumes it, and it accepts no human input.
7762
+ * Discriminator identifying the kind of pause. Open enum — new pause kinds may be added in minor releases; clients must tolerate unknown values. `child_run` is a `loop` or `sub_orchestration` node whose child runs, listed in `context.orchestration_run_ids`, have not settled; their settle resumes it, and it accepts no human input. A `loop` collecting item errors also lists, in `context.item_errors` (`[{ index, code, message }]`), the items whose `item_tool_context` failed and started no child.
7753
7763
  */
7754
7764
  type: 'human_input' | 'webhook_receive' | 'approval' | 'paused' | 'child_run';
7755
7765
  /**
@@ -10841,6 +10851,10 @@ type McpServerKeyId = string;
10841
10851
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
10842
10852
  */
10843
10853
  type MemoryStorePin = string;
10854
+ /**
10855
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
10856
+ */
10857
+ type ActorPin = string;
10844
10858
  /**
10845
10859
  * The model's name, as `GET /v1/models` returns it.
10846
10860
  */
@@ -10861,10 +10875,6 @@ type PlaybookId = string;
10861
10875
  * The case ID
10862
10876
  */
10863
10877
  type CaseId = string;
10864
- /**
10865
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
10866
- */
10867
- type ActorPin = string;
10868
10878
  /**
10869
10879
  * The ID of a node of the case's playbook version
10870
10880
  */
@@ -23322,6 +23332,10 @@ type SearchKnowledgeData = {
23322
23332
  * Search memories within these specific memory stores
23323
23333
  */
23324
23334
  memory_store_ids?: Array<string>;
23335
+ /**
23336
+ * Searches only the memories that belong to this actor; documents are not narrowed. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent searches the memories of the end user it serves only.
23337
+ */
23338
+ actor_id?: string;
23325
23339
  /**
23326
23340
  * Filter results to documents whose file path starts with one of these prefixes
23327
23341
  */
@@ -24232,6 +24246,10 @@ type ListMemoriesData = {
24232
24246
  * Memory store to list memories from (mstore_...)
24233
24247
  */
24234
24248
  memory_store_id: string;
24249
+ /**
24250
+ * Only the memories that belong to this actor. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent lists the memories of the end user it serves only.
24251
+ */
24252
+ actor_id?: string;
24235
24253
  /**
24236
24254
  * Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.
24237
24255
  *
@@ -24298,6 +24316,10 @@ type CreateMemoryData = {
24298
24316
  * The text content of the memory
24299
24317
  */
24300
24318
  content: string;
24319
+ /**
24320
+ * The end user the memory belongs to, an actor of the memory store's project; an unknown one is `400 ACTOR_NOT_FOUND`. The write compares, supersedes and creates among that actor's memories only. Omitted, the memory belongs to no actor and is compared with the other memories of no actor.
24321
+ */
24322
+ actor_id?: string;
24301
24323
  /**
24302
24324
  * Whether there is a source to point at. `conversation` requires `source_id`; `manual` rejects it.
24303
24325
  */
@@ -24396,6 +24418,10 @@ type DeleteMemoryData = {
24396
24418
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24397
24419
  */
24398
24420
  memory_store_id?: string;
24421
+ /**
24422
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24423
+ */
24424
+ actor_id?: string;
24399
24425
  };
24400
24426
  url: '/v1/projects/{project_id}/memories/{memory_id}';
24401
24427
  };
@@ -24447,6 +24473,10 @@ type GetMemoryData = {
24447
24473
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24448
24474
  */
24449
24475
  memory_store_id?: string;
24476
+ /**
24477
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24478
+ */
24479
+ actor_id?: string;
24450
24480
  };
24451
24481
  url: '/v1/projects/{project_id}/memories/{memory_id}';
24452
24482
  };
@@ -24521,6 +24551,10 @@ type UpdateMemoryData = {
24521
24551
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24522
24552
  */
24523
24553
  memory_store_id?: string;
24554
+ /**
24555
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24556
+ */
24557
+ actor_id?: string;
24524
24558
  };
24525
24559
  url: '/v1/projects/{project_id}/memories/{memory_id}';
24526
24560
  };
@@ -24591,6 +24625,10 @@ type RetractMemoryData = {
24591
24625
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24592
24626
  */
24593
24627
  memory_store_id?: string;
24628
+ /**
24629
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24630
+ */
24631
+ actor_id?: string;
24594
24632
  };
24595
24633
  url: '/v1/projects/{project_id}/memories/{memory_id}/retract';
24596
24634
  };
@@ -24650,6 +24688,10 @@ type ListMemoryAssertionsData = {
24650
24688
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24651
24689
  */
24652
24690
  memory_store_id?: string;
24691
+ /**
24692
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24693
+ */
24694
+ actor_id?: string;
24653
24695
  /**
24654
24696
  * Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.
24655
24697
  */
@@ -24714,6 +24756,10 @@ type GetMemoryTagsData = {
24714
24756
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24715
24757
  */
24716
24758
  memory_store_id?: string;
24759
+ /**
24760
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24761
+ */
24762
+ actor_id?: string;
24717
24763
  };
24718
24764
  url: '/v1/projects/{project_id}/memories/{memory_id}/tags';
24719
24765
  };
@@ -24768,6 +24814,10 @@ type MergeMemoryTagsData = {
24768
24814
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24769
24815
  */
24770
24816
  memory_store_id?: string;
24817
+ /**
24818
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24819
+ */
24820
+ actor_id?: string;
24771
24821
  };
24772
24822
  url: '/v1/projects/{project_id}/memories/{memory_id}/tags';
24773
24823
  };
@@ -24826,6 +24876,10 @@ type ReplaceMemoryTagsData = {
24826
24876
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24827
24877
  */
24828
24878
  memory_store_id?: string;
24879
+ /**
24880
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24881
+ */
24882
+ actor_id?: string;
24829
24883
  };
24830
24884
  url: '/v1/projects/{project_id}/memories/{memory_id}/tags';
24831
24885
  };
@@ -25491,6 +25545,10 @@ type ListMemoryStoreAssertionsData = {
25491
25545
  memory_store_id: string;
25492
25546
  };
25493
25547
  query?: {
25548
+ /**
25549
+ * Only the writes that resolved into this actor's memories. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` to confine it to the end user an agent serves.
25550
+ */
25551
+ actor_id?: string;
25494
25552
  /**
25495
25553
  * Only assertions that came through this door.
25496
25554
  */
@@ -25571,6 +25629,10 @@ type ExportMemoriesData = {
25571
25629
  memory_store_id: string;
25572
25630
  };
25573
25631
  query?: {
25632
+ /**
25633
+ * Only the memories that belong to this actor.
25634
+ */
25635
+ actor_id?: string;
25574
25636
  /**
25575
25637
  * Include memories that were retracted or superseded
25576
25638
  */
@@ -28699,7 +28761,7 @@ type DeletePlaybookCaseData = {
28699
28761
  };
28700
28762
  query?: {
28701
28763
  /**
28702
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
28764
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28703
28765
  */
28704
28766
  actor_id?: string;
28705
28767
  };
@@ -28757,7 +28819,7 @@ type GetPlaybookCaseData = {
28757
28819
  };
28758
28820
  query?: {
28759
28821
  /**
28760
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
28822
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28761
28823
  */
28762
28824
  actor_id?: string;
28763
28825
  };
@@ -28811,7 +28873,7 @@ type WritePlaybookCaseInputsData = {
28811
28873
  };
28812
28874
  query?: {
28813
28875
  /**
28814
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
28876
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28815
28877
  */
28816
28878
  actor_id?: string;
28817
28879
  };
@@ -28873,7 +28935,7 @@ type GetPlaybookCaseMissingData = {
28873
28935
  };
28874
28936
  query: {
28875
28937
  /**
28876
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
28938
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28877
28939
  */
28878
28940
  actor_id?: string;
28879
28941
  /**
@@ -28927,7 +28989,7 @@ type ListPlaybookCaseEntriesData = {
28927
28989
  };
28928
28990
  query?: {
28929
28991
  /**
28930
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
28992
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28931
28993
  */
28932
28994
  actor_id?: string;
28933
28995
  /**
@@ -28995,7 +29057,7 @@ type RunPlaybookCaseNodeData = {
28995
29057
  };
28996
29058
  query?: {
28997
29059
  /**
28998
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29060
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28999
29061
  */
29000
29062
  actor_id?: string;
29001
29063
  };
@@ -29057,7 +29119,7 @@ type ListPlaybookCaseExecutionsData = {
29057
29119
  };
29058
29120
  query?: {
29059
29121
  /**
29060
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29122
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29061
29123
  */
29062
29124
  actor_id?: string;
29063
29125
  /**
@@ -29125,7 +29187,7 @@ type GetPlaybookCaseExecutionData = {
29125
29187
  };
29126
29188
  query?: {
29127
29189
  /**
29128
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29190
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29129
29191
  */
29130
29192
  actor_id?: string;
29131
29193
  };
@@ -29179,7 +29241,7 @@ type ExportPlaybookCaseNodeData = {
29179
29241
  };
29180
29242
  query?: {
29181
29243
  /**
29182
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29244
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29183
29245
  */
29184
29246
  actor_id?: string;
29185
29247
  };
@@ -29243,7 +29305,7 @@ type ListPlaybookCaseExportsData = {
29243
29305
  };
29244
29306
  query?: {
29245
29307
  /**
29246
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29308
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29247
29309
  */
29248
29310
  actor_id?: string;
29249
29311
  /**
@@ -29315,7 +29377,7 @@ type GetPlaybookCaseExportData = {
29315
29377
  };
29316
29378
  query?: {
29317
29379
  /**
29318
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29380
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29319
29381
  */
29320
29382
  actor_id?: string;
29321
29383
  };
@@ -29365,7 +29427,7 @@ type UpgradePlaybookCaseData = {
29365
29427
  };
29366
29428
  query?: {
29367
29429
  /**
29368
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29430
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29369
29431
  */
29370
29432
  actor_id?: string;
29371
29433
  };
@@ -29427,7 +29489,7 @@ type ListPlaybookCaseUpgradesData = {
29427
29489
  };
29428
29490
  query?: {
29429
29491
  /**
29430
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29492
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29431
29493
  */
29432
29494
  actor_id?: string;
29433
29495
  /**
@@ -29487,7 +29549,7 @@ type PausePlaybookCaseData = {
29487
29549
  };
29488
29550
  query?: {
29489
29551
  /**
29490
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29552
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29491
29553
  */
29492
29554
  actor_id?: string;
29493
29555
  };
@@ -29541,7 +29603,7 @@ type ResumePlaybookCaseData = {
29541
29603
  };
29542
29604
  query?: {
29543
29605
  /**
29544
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29606
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29545
29607
  */
29546
29608
  actor_id?: string;
29547
29609
  };
@@ -29603,7 +29665,7 @@ type ConfirmPlaybookCaseNodeData = {
29603
29665
  };
29604
29666
  query?: {
29605
29667
  /**
29606
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29668
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29607
29669
  */
29608
29670
  actor_id?: string;
29609
29671
  };
@@ -29797,7 +29859,7 @@ type DeletePolicyErrors = {
29797
29859
  */
29798
29860
  404: ErrorResponse;
29799
29861
  /**
29800
- * `POLICY_HAS_DEPENDENTS`: a trigger, agent or webhook still names the policy in its `policy_ids`. Detach it or delete them first.
29862
+ * `POLICY_HAS_DEPENDENTS`: a trigger, agent, webhook, user or API key still names the policy in its `policy_ids`. Detach it or delete them first.
29801
29863
  */
29802
29864
  409: ErrorResponse;
29803
29865
  /**
@@ -38003,7 +38065,7 @@ export declare class Policies {
38003
38065
  /**
38004
38066
  * Delete a policy
38005
38067
  *
38006
- * Deletes a policy. A project policy needs `policies:DeletePolicy` in its project; a global one, the unrestricted admin. Refused with `409 POLICY_HAS_DEPENDENTS` while a trigger, agent or webhook names it in its `policy_ids`.
38068
+ * Deletes a policy. A project policy needs `policies:DeletePolicy` in its project; a global one, the unrestricted admin. Refused with `409 POLICY_HAS_DEPENDENTS` while a trigger, agent, webhook, user or API key names it in its `policy_ids`.
38007
38069
  */
38008
38070
  static deletePolicy<ThrowOnError extends boolean = false>(options: Options<DeletePolicyData, ThrowOnError>): RequestResult<DeletePolicyResponses, DeletePolicyErrors, ThrowOnError>;
38009
38071
  /**
package/dist/index.d.mts CHANGED
@@ -6918,6 +6918,10 @@ type McpServerKeyCreate = {
6918
6918
  type Memory = {
6919
6919
  id?: string;
6920
6920
  memory_store_id?: string;
6921
+ /**
6922
+ * The end user the memory belongs to; null for none. Set on create and never changed; a replacement written by a supersede belongs to the same actor.
6923
+ */
6924
+ actor_id?: string | null;
6921
6925
  /**
6922
6926
  * The text this memory currently holds. Stored once per distinct text per store and shared with every assertion that stated it, so a memory carries no copy of its own.
6923
6927
  */
@@ -7355,6 +7359,12 @@ type OrchestrationNode = {
7355
7359
  * For loop and sub_orchestration nodes — allowlist of the run's `tool_context` keys the child run inherits. When `null` (the default), the child inherits the parent's whole bag. When set, only the listed keys are handed down, so a run holding a broad credential can delegate one step to a shared sub-graph without passing on what that sub-graph does not need; `[]` hands down nothing. Matching is case-insensitive, since an entry names a key that becomes an HTTP header name; an entry outside that grammar is rejected at write time with `INVALID_TOOL_CONTEXT_KEY`. The server-derived identity keys (`session_id`, `actor_id`, `actor_external_id`) are unaffected — they are re-derived per generation in the child regardless of this list. Ignored for other node types.
7356
7360
  */
7357
7361
  context_keys?: Array<string> | null;
7362
+ /**
7363
+ * For loop nodes — per-item `tool_context` keys for each child run. Each key is a `tool_context` key; each value is JSON Logic evaluated against `{ <item_variable>: <item>, "state": <run state> }`. A child's bag is the inherited one (after `context_keys`) with these keys laid over it, matched case-insensitively. A value evaluating to `null` drops the key, the inherited value included. A value that evaluates to anything else but a string, or throws, fails that item: under `on_item_error: fail` the node fails before any child starts; under `collect` the item's entry in `results` is `{ "error": { "code", "message" } }` and no child runs for it. A key outside the header-name grammar, two keys differing only in case, or a server-reserved key (`session_id`, `actor_id`, `actor_external_id`, `calling_project_id`) is rejected at write time with `INVALID_TOOL_CONTEXT_KEY`. Ignored for other node types.
7364
+ */
7365
+ item_tool_context?: {
7366
+ [key: string]: unknown;
7367
+ };
7358
7368
  /**
7359
7369
  * For poll nodes — wait between attempts. Accepts a friendly suffix form (`5s`, `30s`, `5m`, `2h`, `500ms`) or ISO 8601 (e.g. PT5S).
7360
7370
  *
@@ -7749,7 +7759,7 @@ type NodeExecution = {
7749
7759
  */
7750
7760
  type RequiredAction = {
7751
7761
  /**
7752
- * Discriminator identifying the kind of pause. Open enum — new pause kinds may be added in minor releases; clients must tolerate unknown values. `child_run` is a `loop` or `sub_orchestration` node whose child runs, listed in `context.orchestration_run_ids`, have not settled; their settle resumes it, and it accepts no human input.
7762
+ * Discriminator identifying the kind of pause. Open enum — new pause kinds may be added in minor releases; clients must tolerate unknown values. `child_run` is a `loop` or `sub_orchestration` node whose child runs, listed in `context.orchestration_run_ids`, have not settled; their settle resumes it, and it accepts no human input. A `loop` collecting item errors also lists, in `context.item_errors` (`[{ index, code, message }]`), the items whose `item_tool_context` failed and started no child.
7753
7763
  */
7754
7764
  type: 'human_input' | 'webhook_receive' | 'approval' | 'paused' | 'child_run';
7755
7765
  /**
@@ -10841,6 +10851,10 @@ type McpServerKeyId = string;
10841
10851
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
10842
10852
  */
10843
10853
  type MemoryStorePin = string;
10854
+ /**
10855
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
10856
+ */
10857
+ type ActorPin = string;
10844
10858
  /**
10845
10859
  * The model's name, as `GET /v1/models` returns it.
10846
10860
  */
@@ -10861,10 +10875,6 @@ type PlaybookId = string;
10861
10875
  * The case ID
10862
10876
  */
10863
10877
  type CaseId = string;
10864
- /**
10865
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
10866
- */
10867
- type ActorPin = string;
10868
10878
  /**
10869
10879
  * The ID of a node of the case's playbook version
10870
10880
  */
@@ -23322,6 +23332,10 @@ type SearchKnowledgeData = {
23322
23332
  * Search memories within these specific memory stores
23323
23333
  */
23324
23334
  memory_store_ids?: Array<string>;
23335
+ /**
23336
+ * Searches only the memories that belong to this actor; documents are not narrowed. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent searches the memories of the end user it serves only.
23337
+ */
23338
+ actor_id?: string;
23325
23339
  /**
23326
23340
  * Filter results to documents whose file path starts with one of these prefixes
23327
23341
  */
@@ -24232,6 +24246,10 @@ type ListMemoriesData = {
24232
24246
  * Memory store to list memories from (mstore_...)
24233
24247
  */
24234
24248
  memory_store_id: string;
24249
+ /**
24250
+ * Only the memories that belong to this actor. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent lists the memories of the end user it serves only.
24251
+ */
24252
+ actor_id?: string;
24235
24253
  /**
24236
24254
  * Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.
24237
24255
  *
@@ -24298,6 +24316,10 @@ type CreateMemoryData = {
24298
24316
  * The text content of the memory
24299
24317
  */
24300
24318
  content: string;
24319
+ /**
24320
+ * The end user the memory belongs to, an actor of the memory store's project; an unknown one is `400 ACTOR_NOT_FOUND`. The write compares, supersedes and creates among that actor's memories only. Omitted, the memory belongs to no actor and is compared with the other memories of no actor.
24321
+ */
24322
+ actor_id?: string;
24301
24323
  /**
24302
24324
  * Whether there is a source to point at. `conversation` requires `source_id`; `manual` rejects it.
24303
24325
  */
@@ -24396,6 +24418,10 @@ type DeleteMemoryData = {
24396
24418
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24397
24419
  */
24398
24420
  memory_store_id?: string;
24421
+ /**
24422
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24423
+ */
24424
+ actor_id?: string;
24399
24425
  };
24400
24426
  url: '/v1/projects/{project_id}/memories/{memory_id}';
24401
24427
  };
@@ -24447,6 +24473,10 @@ type GetMemoryData = {
24447
24473
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24448
24474
  */
24449
24475
  memory_store_id?: string;
24476
+ /**
24477
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24478
+ */
24479
+ actor_id?: string;
24450
24480
  };
24451
24481
  url: '/v1/projects/{project_id}/memories/{memory_id}';
24452
24482
  };
@@ -24521,6 +24551,10 @@ type UpdateMemoryData = {
24521
24551
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24522
24552
  */
24523
24553
  memory_store_id?: string;
24554
+ /**
24555
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24556
+ */
24557
+ actor_id?: string;
24524
24558
  };
24525
24559
  url: '/v1/projects/{project_id}/memories/{memory_id}';
24526
24560
  };
@@ -24591,6 +24625,10 @@ type RetractMemoryData = {
24591
24625
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24592
24626
  */
24593
24627
  memory_store_id?: string;
24628
+ /**
24629
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24630
+ */
24631
+ actor_id?: string;
24594
24632
  };
24595
24633
  url: '/v1/projects/{project_id}/memories/{memory_id}/retract';
24596
24634
  };
@@ -24650,6 +24688,10 @@ type ListMemoryAssertionsData = {
24650
24688
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24651
24689
  */
24652
24690
  memory_store_id?: string;
24691
+ /**
24692
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24693
+ */
24694
+ actor_id?: string;
24653
24695
  /**
24654
24696
  * Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.
24655
24697
  */
@@ -24714,6 +24756,10 @@ type GetMemoryTagsData = {
24714
24756
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24715
24757
  */
24716
24758
  memory_store_id?: string;
24759
+ /**
24760
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24761
+ */
24762
+ actor_id?: string;
24717
24763
  };
24718
24764
  url: '/v1/projects/{project_id}/memories/{memory_id}/tags';
24719
24765
  };
@@ -24768,6 +24814,10 @@ type MergeMemoryTagsData = {
24768
24814
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24769
24815
  */
24770
24816
  memory_store_id?: string;
24817
+ /**
24818
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24819
+ */
24820
+ actor_id?: string;
24771
24821
  };
24772
24822
  url: '/v1/projects/{project_id}/memories/{memory_id}/tags';
24773
24823
  };
@@ -24826,6 +24876,10 @@ type ReplaceMemoryTagsData = {
24826
24876
  * Pins the call to memories of this store, the same parameter that scopes the listing. A memory of another store is `404`, as if it did not exist.
24827
24877
  */
24828
24878
  memory_store_id?: string;
24879
+ /**
24880
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
24881
+ */
24882
+ actor_id?: string;
24829
24883
  };
24830
24884
  url: '/v1/projects/{project_id}/memories/{memory_id}/tags';
24831
24885
  };
@@ -25491,6 +25545,10 @@ type ListMemoryStoreAssertionsData = {
25491
25545
  memory_store_id: string;
25492
25546
  };
25493
25547
  query?: {
25548
+ /**
25549
+ * Only the writes that resolved into this actor's memories. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` to confine it to the end user an agent serves.
25550
+ */
25551
+ actor_id?: string;
25494
25552
  /**
25495
25553
  * Only assertions that came through this door.
25496
25554
  */
@@ -25571,6 +25629,10 @@ type ExportMemoriesData = {
25571
25629
  memory_store_id: string;
25572
25630
  };
25573
25631
  query?: {
25632
+ /**
25633
+ * Only the memories that belong to this actor.
25634
+ */
25635
+ actor_id?: string;
25574
25636
  /**
25575
25637
  * Include memories that were retracted or superseded
25576
25638
  */
@@ -28699,7 +28761,7 @@ type DeletePlaybookCaseData = {
28699
28761
  };
28700
28762
  query?: {
28701
28763
  /**
28702
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
28764
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28703
28765
  */
28704
28766
  actor_id?: string;
28705
28767
  };
@@ -28757,7 +28819,7 @@ type GetPlaybookCaseData = {
28757
28819
  };
28758
28820
  query?: {
28759
28821
  /**
28760
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
28822
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28761
28823
  */
28762
28824
  actor_id?: string;
28763
28825
  };
@@ -28811,7 +28873,7 @@ type WritePlaybookCaseInputsData = {
28811
28873
  };
28812
28874
  query?: {
28813
28875
  /**
28814
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
28876
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28815
28877
  */
28816
28878
  actor_id?: string;
28817
28879
  };
@@ -28873,7 +28935,7 @@ type GetPlaybookCaseMissingData = {
28873
28935
  };
28874
28936
  query: {
28875
28937
  /**
28876
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
28938
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28877
28939
  */
28878
28940
  actor_id?: string;
28879
28941
  /**
@@ -28927,7 +28989,7 @@ type ListPlaybookCaseEntriesData = {
28927
28989
  };
28928
28990
  query?: {
28929
28991
  /**
28930
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
28992
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28931
28993
  */
28932
28994
  actor_id?: string;
28933
28995
  /**
@@ -28995,7 +29057,7 @@ type RunPlaybookCaseNodeData = {
28995
29057
  };
28996
29058
  query?: {
28997
29059
  /**
28998
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29060
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
28999
29061
  */
29000
29062
  actor_id?: string;
29001
29063
  };
@@ -29057,7 +29119,7 @@ type ListPlaybookCaseExecutionsData = {
29057
29119
  };
29058
29120
  query?: {
29059
29121
  /**
29060
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29122
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29061
29123
  */
29062
29124
  actor_id?: string;
29063
29125
  /**
@@ -29125,7 +29187,7 @@ type GetPlaybookCaseExecutionData = {
29125
29187
  };
29126
29188
  query?: {
29127
29189
  /**
29128
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29190
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29129
29191
  */
29130
29192
  actor_id?: string;
29131
29193
  };
@@ -29179,7 +29241,7 @@ type ExportPlaybookCaseNodeData = {
29179
29241
  };
29180
29242
  query?: {
29181
29243
  /**
29182
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29244
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29183
29245
  */
29184
29246
  actor_id?: string;
29185
29247
  };
@@ -29243,7 +29305,7 @@ type ListPlaybookCaseExportsData = {
29243
29305
  };
29244
29306
  query?: {
29245
29307
  /**
29246
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29308
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29247
29309
  */
29248
29310
  actor_id?: string;
29249
29311
  /**
@@ -29315,7 +29377,7 @@ type GetPlaybookCaseExportData = {
29315
29377
  };
29316
29378
  query?: {
29317
29379
  /**
29318
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29380
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29319
29381
  */
29320
29382
  actor_id?: string;
29321
29383
  };
@@ -29365,7 +29427,7 @@ type UpgradePlaybookCaseData = {
29365
29427
  };
29366
29428
  query?: {
29367
29429
  /**
29368
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29430
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29369
29431
  */
29370
29432
  actor_id?: string;
29371
29433
  };
@@ -29427,7 +29489,7 @@ type ListPlaybookCaseUpgradesData = {
29427
29489
  };
29428
29490
  query?: {
29429
29491
  /**
29430
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29492
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29431
29493
  */
29432
29494
  actor_id?: string;
29433
29495
  /**
@@ -29487,7 +29549,7 @@ type PausePlaybookCaseData = {
29487
29549
  };
29488
29550
  query?: {
29489
29551
  /**
29490
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29552
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29491
29553
  */
29492
29554
  actor_id?: string;
29493
29555
  };
@@ -29541,7 +29603,7 @@ type ResumePlaybookCaseData = {
29541
29603
  };
29542
29604
  query?: {
29543
29605
  /**
29544
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29606
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29545
29607
  */
29546
29608
  actor_id?: string;
29547
29609
  };
@@ -29603,7 +29665,7 @@ type ConfirmPlaybookCaseNodeData = {
29603
29665
  };
29604
29666
  query?: {
29605
29667
  /**
29606
- * Acts only on a case that belongs to this actor: any other case, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's cases only.
29668
+ * Acts only on an item that belongs to this actor: any other item, one that belongs to no actor included, is `404` as if it did not exist. Pin it in a tool's `preset_parameters` as `{{context:actor_id}}` so an agent serving an end user reaches that user's items only.
29607
29669
  */
29608
29670
  actor_id?: string;
29609
29671
  };
@@ -29797,7 +29859,7 @@ type DeletePolicyErrors = {
29797
29859
  */
29798
29860
  404: ErrorResponse;
29799
29861
  /**
29800
- * `POLICY_HAS_DEPENDENTS`: a trigger, agent or webhook still names the policy in its `policy_ids`. Detach it or delete them first.
29862
+ * `POLICY_HAS_DEPENDENTS`: a trigger, agent, webhook, user or API key still names the policy in its `policy_ids`. Detach it or delete them first.
29801
29863
  */
29802
29864
  409: ErrorResponse;
29803
29865
  /**
@@ -38003,7 +38065,7 @@ export declare class Policies {
38003
38065
  /**
38004
38066
  * Delete a policy
38005
38067
  *
38006
- * Deletes a policy. A project policy needs `policies:DeletePolicy` in its project; a global one, the unrestricted admin. Refused with `409 POLICY_HAS_DEPENDENTS` while a trigger, agent or webhook names it in its `policy_ids`.
38068
+ * Deletes a policy. A project policy needs `policies:DeletePolicy` in its project; a global one, the unrestricted admin. Refused with `409 POLICY_HAS_DEPENDENTS` while a trigger, agent, webhook, user or API key names it in its `policy_ids`.
38007
38069
  */
38008
38070
  static deletePolicy<ThrowOnError extends boolean = false>(options: Options<DeletePolicyData, ThrowOnError>): RequestResult<DeletePolicyResponses, DeletePolicyErrors, ThrowOnError>;
38009
38071
  /**
package/dist/index.mjs CHANGED
@@ -5327,7 +5327,7 @@ var Policies = class {
5327
5327
  /**
5328
5328
  * Delete a policy
5329
5329
  *
5330
- * Deletes a policy. A project policy needs `policies:DeletePolicy` in its project; a global one, the unrestricted admin. Refused with `409 POLICY_HAS_DEPENDENTS` while a trigger, agent or webhook names it in its `policy_ids`.
5330
+ * Deletes a policy. A project policy needs `policies:DeletePolicy` in its project; a global one, the unrestricted admin. Refused with `409 POLICY_HAS_DEPENDENTS` while a trigger, agent, webhook, user or API key names it in its `policy_ids`.
5331
5331
  */
5332
5332
  static deletePolicy(options) {
5333
5333
  return (options.client ?? client).delete({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.240.1",
3
+ "version": "0.241.0",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.240.1",
41
+ "@naturali/api": "0.241.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",