@soat/sdk 0.114.0 → 0.116.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
@@ -3067,6 +3067,21 @@ var Iam = class {
3067
3067
  }
3068
3068
  });
3069
3069
  }
3070
+ /**
3071
+ * Revoke a principal
3072
+ *
3073
+ * Revokes, for good, a `principal` the caller's IAM tokens or `On-Behalf-Of` assertions act for in the project. Work started for it (a generation, a session turn, a task dispatch, an orchestration run, a trigger firing) resolves no caller from then on: its next step, a resume included, fails `WORK_AUTHORITY_MISSING`. Revoking a principal already revoked is `204` too.
3074
+ */
3075
+ static revokeIamPrincipal(options) {
3076
+ return (options.client ?? client).post({
3077
+ url: "/api/v1/iam/principal-revocations",
3078
+ ...options,
3079
+ headers: {
3080
+ "Content-Type": "application/json",
3081
+ ...options.headers
3082
+ }
3083
+ });
3084
+ }
3070
3085
  };
3071
3086
  var IngestionRules = class {
3072
3087
  /**
@@ -4229,7 +4244,7 @@ var Playbooks = class {
4229
4244
  /**
4230
4245
  * Run a node of a case
4231
4246
  *
4232
- * Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs under the `policy_ids` of the case's playbook version, which must allow starting it (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`). Only a `ready`, `stale`, `failed` or `done` node with every required input set runs; anything else is `409 PLAYBOOK_NODE_NOT_RUNNABLE`. A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
4247
+ * Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs under the `policy_ids` of the case's playbook version, which must allow starting it: a decider, workflow or orchestration it may not start is `403 PLAYBOOK_EXECUTOR_FORBIDDEN`, and an agent or tool fails the execution (`FORBIDDEN`). Only a `ready`, `stale`, `failed` or `done` node with every required input set runs; anything else is `409 PLAYBOOK_NODE_NOT_RUNNABLE`. A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
4233
4248
  *
4234
4249
  * An `upstream` node has no executor: running it pulls the current output of the node it names in the bound case, which must be `done`. This is the only way to refresh one that an upstream change left `stale`.
4235
4250
  *
@@ -4274,7 +4289,7 @@ var Playbooks = class {
4274
4289
  *
4275
4290
  * Renders one revision of a final node as files, one export per transformation: each transformation's tool is called with the case's `case_id` and `subject`, the `node_id`, the `revision` and that revision's `output`, and must answer a file (`execute.response_mode: base64`) of its `format`'s content type. The file is kept in the project's files under `/.system/playbooks/`. An export never feeds a node.
4276
4291
  *
4277
- * Without `revision` the node's current output is exported, which needs the node `done` (`409 PLAYBOOK_NODE_NOT_EXPORTABLE`); a `revision` names an earlier output or confirmation of the node. Each tool runs under the `policy_ids` of the case's playbook version, which must allow calling it (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`). A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
4292
+ * Without `revision` the node's current output is exported, which needs the node `done` (`409 PLAYBOOK_NODE_NOT_EXPORTABLE`); a `revision` names an earlier output or confirmation of the node. Each tool runs under the `policy_ids` of the case's playbook version: an export whose tool it may not call fails (`FORBIDDEN`). A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
4278
4293
  *
4279
4294
  * Without `wait` every export answers `running` and settles in the background; with `wait: true` it answers once each has its file or its error.
4280
4295
  */
@@ -5372,7 +5387,7 @@ var Triggers = class {
5372
5387
  /**
5373
5388
  * Create a trigger
5374
5389
  *
5375
- * Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`.
5390
+ * Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`. An event trigger whose `policy_ids` cannot read a platform namespace its `events` subscribe to is refused with `400` `TRIGGER_EVENTS_UNREADABLE`.
5376
5391
  */
5377
5392
  static createTrigger(options) {
5378
5393
  return (options.client ?? client).post({
@@ -5420,7 +5435,7 @@ var Triggers = class {
5420
5435
  /**
5421
5436
  * Update a trigger
5422
5437
  *
5423
- * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks the target-start action (`orchestrations:StartRun`, `agents:CreateAgentGeneration` or `tools:CallTool`) against the resulting target, because a firing acts under the trigger's `policy_ids` rather than the updater's grant. A caller who could not start the new target is answered `403` and the trigger keeps the target it had. A `{{secret:...}}` reference in a written `tool_context`, or in the stored one when the target changes, also needs `secrets:UseSecret` on that secret, else `403`.
5438
+ * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks the target-start action (`orchestrations:StartRun`, `agents:CreateAgentGeneration` or `tools:CallTool`) against the resulting target, because a firing acts under the trigger's `policy_ids` rather than the updater's grant. A caller who could not start the new target is answered `403` and the trigger keeps the target it had. A `{{secret:...}}` reference in a written `tool_context`, or in the stored one when the target changes, also needs `secrets:UseSecret` on that secret, else `403`. An update leaving an event trigger's `policy_ids` unable to read a platform namespace its `events` subscribe to is refused with `400` `TRIGGER_EVENTS_UNREADABLE`.
5424
5439
  *
5425
5440
  */
5426
5441
  static updateTrigger(options) {