@naturali/sdk 0.219.0 → 0.220.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
@@ -1266,7 +1266,7 @@ var Agents = class {
1266
1266
  /**
1267
1267
  * Create an agent
1268
1268
  *
1269
- * Creates a new agent bound to an AI provider.
1269
+ * Creates a new agent bound to an AI provider. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
1270
1270
  */
1271
1271
  static createAgent(options) {
1272
1272
  return (options.client ?? client).post({
@@ -1305,7 +1305,7 @@ var Agents = class {
1305
1305
  /**
1306
1306
  * Partially update an agent
1307
1307
  *
1308
- * Partially updates an existing agent. Identical to PUT — both perform partial updates.
1308
+ * Partially updates an existing agent. Identical to PUT — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
1309
1309
  */
1310
1310
  static patchAgent(options) {
1311
1311
  return (options.client ?? client).patch({
@@ -1320,7 +1320,7 @@ var Agents = class {
1320
1320
  /**
1321
1321
  * Update an agent
1322
1322
  *
1323
- * Updates an existing agent. Identical to PATCH — both perform partial updates.
1323
+ * Updates an existing agent. Identical to PATCH — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
1324
1324
  */
1325
1325
  static updateAgent(options) {
1326
1326
  return (options.client ?? client).put({
@@ -1477,6 +1477,10 @@ var AiProviders = class {
1477
1477
  * A provider's credential is its linked `secret_id`; `config.apiKey` is
1478
1478
  * refused with `400 VALIDATION_FAILED`.
1479
1479
  *
1480
+ * A record with both `base_url` and `secret_id` sends the secret to that
1481
+ * URL, so creating one also needs `secrets:UseSecret` on the secret, else
1482
+ * `403`.
1483
+ *
1480
1484
  * A `bedrock` or `vertex` record must link one. Without it the provider
1481
1485
  * SDK signs with the server's own credentials (the AWS default credential
1482
1486
  * chain, Google Application Default Credentials), which is refused with
@@ -1521,7 +1525,7 @@ var AiProviders = class {
1521
1525
  /**
1522
1526
  * Update an AI provider
1523
1527
  *
1524
- * Updates an AI provider configuration
1528
+ * Updates an AI provider configuration. Setting `base_url` or `secret_id` so the record holds both also needs `secrets:UseSecret` on the secret, else `403`.
1525
1529
  */
1526
1530
  static updateAiProvider(options) {
1527
1531
  return (options.client ?? client).patch({
@@ -5849,7 +5853,7 @@ var Triggers = class {
5849
5853
  /**
5850
5854
  * Create a trigger
5851
5855
  *
5852
- * Creates a new trigger for a project
5856
+ * Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`.
5853
5857
  */
5854
5858
  static createTrigger(options) {
5855
5859
  return (options.client ?? client).post({
@@ -5897,7 +5901,7 @@ var Triggers = class {
5897
5901
  /**
5898
5902
  * Update a trigger
5899
5903
  *
5900
- * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. A caller who could not start the new target is answered `403` and the trigger keeps the target it had.
5904
+ * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. 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`.
5901
5905
  *
5902
5906
  */
5903
5907
  static updateTrigger(options) {
package/dist/index.d.cts CHANGED
@@ -7149,9 +7149,9 @@ type NodeExecution = {
7149
7149
  */
7150
7150
  type RequiredAction = {
7151
7151
  /**
7152
- * Discriminator identifying the kind of pause. Open enum — new pause kinds may be added in minor releases; clients must tolerate unknown values.
7152
+ * 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.
7153
7153
  */
7154
- type: 'human_input' | 'webhook_receive' | 'approval' | 'paused';
7154
+ type: 'human_input' | 'webhook_receive' | 'approval' | 'paused' | 'child_run';
7155
7155
  /**
7156
7156
  * The node the run is parked at. Absent for a `paused` action, which no node produced.
7157
7157
  */
@@ -32938,7 +32938,7 @@ export declare class Agents {
32938
32938
  /**
32939
32939
  * Create an agent
32940
32940
  *
32941
- * Creates a new agent bound to an AI provider.
32941
+ * Creates a new agent bound to an AI provider. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
32942
32942
  */
32943
32943
  static createAgent<ThrowOnError extends boolean = false>(options: Options<CreateAgentData, ThrowOnError>): RequestResult<CreateAgentResponses, CreateAgentErrors, ThrowOnError>;
32944
32944
  /**
@@ -32958,13 +32958,13 @@ export declare class Agents {
32958
32958
  /**
32959
32959
  * Partially update an agent
32960
32960
  *
32961
- * Partially updates an existing agent. Identical to PUT — both perform partial updates.
32961
+ * Partially updates an existing agent. Identical to PUT — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
32962
32962
  */
32963
32963
  static patchAgent<ThrowOnError extends boolean = false>(options: Options<PatchAgentData, ThrowOnError>): RequestResult<PatchAgentResponses, PatchAgentErrors, ThrowOnError>;
32964
32964
  /**
32965
32965
  * Update an agent
32966
32966
  *
32967
- * Updates an existing agent. Identical to PATCH — both perform partial updates.
32967
+ * Updates an existing agent. Identical to PATCH — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
32968
32968
  */
32969
32969
  static updateAgent<ThrowOnError extends boolean = false>(options: Options<UpdateAgentData, ThrowOnError>): RequestResult<UpdateAgentResponses, UpdateAgentErrors, ThrowOnError>;
32970
32970
  /**
@@ -33051,6 +33051,10 @@ export declare class AiProviders {
33051
33051
  * A provider's credential is its linked `secret_id`; `config.apiKey` is
33052
33052
  * refused with `400 VALIDATION_FAILED`.
33053
33053
  *
33054
+ * A record with both `base_url` and `secret_id` sends the secret to that
33055
+ * URL, so creating one also needs `secrets:UseSecret` on the secret, else
33056
+ * `403`.
33057
+ *
33054
33058
  * A `bedrock` or `vertex` record must link one. Without it the provider
33055
33059
  * SDK signs with the server's own credentials (the AWS default credential
33056
33060
  * chain, Google Application Default Credentials), which is refused with
@@ -33076,7 +33080,7 @@ export declare class AiProviders {
33076
33080
  /**
33077
33081
  * Update an AI provider
33078
33082
  *
33079
- * Updates an AI provider configuration
33083
+ * Updates an AI provider configuration. Setting `base_url` or `secret_id` so the record holds both also needs `secrets:UseSecret` on the secret, else `403`.
33080
33084
  */
33081
33085
  static updateAiProvider<ThrowOnError extends boolean = false>(options: Options<UpdateAiProviderData, ThrowOnError>): RequestResult<UpdateAiProviderResponses, UpdateAiProviderErrors, ThrowOnError>;
33082
33086
  /**
@@ -35320,7 +35324,7 @@ export declare class Triggers {
35320
35324
  /**
35321
35325
  * Create a trigger
35322
35326
  *
35323
- * Creates a new trigger for a project
35327
+ * Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`.
35324
35328
  */
35325
35329
  static createTrigger<ThrowOnError extends boolean = false>(options: Options<CreateTriggerData, ThrowOnError>): RequestResult<CreateTriggerResponses, CreateTriggerErrors, ThrowOnError>;
35326
35330
  /**
@@ -35344,7 +35348,7 @@ export declare class Triggers {
35344
35348
  /**
35345
35349
  * Update a trigger
35346
35350
  *
35347
- * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. A caller who could not start the new target is answered `403` and the trigger keeps the target it had.
35351
+ * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. 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`.
35348
35352
  *
35349
35353
  */
35350
35354
  static updateTrigger<ThrowOnError extends boolean = false>(options: Options<UpdateTriggerData, ThrowOnError>): RequestResult<UpdateTriggerResponses, UpdateTriggerErrors, ThrowOnError>;
package/dist/index.d.mts CHANGED
@@ -7149,9 +7149,9 @@ type NodeExecution = {
7149
7149
  */
7150
7150
  type RequiredAction = {
7151
7151
  /**
7152
- * Discriminator identifying the kind of pause. Open enum — new pause kinds may be added in minor releases; clients must tolerate unknown values.
7152
+ * 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.
7153
7153
  */
7154
- type: 'human_input' | 'webhook_receive' | 'approval' | 'paused';
7154
+ type: 'human_input' | 'webhook_receive' | 'approval' | 'paused' | 'child_run';
7155
7155
  /**
7156
7156
  * The node the run is parked at. Absent for a `paused` action, which no node produced.
7157
7157
  */
@@ -32938,7 +32938,7 @@ export declare class Agents {
32938
32938
  /**
32939
32939
  * Create an agent
32940
32940
  *
32941
- * Creates a new agent bound to an AI provider.
32941
+ * Creates a new agent bound to an AI provider. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
32942
32942
  */
32943
32943
  static createAgent<ThrowOnError extends boolean = false>(options: Options<CreateAgentData, ThrowOnError>): RequestResult<CreateAgentResponses, CreateAgentErrors, ThrowOnError>;
32944
32944
  /**
@@ -32958,13 +32958,13 @@ export declare class Agents {
32958
32958
  /**
32959
32959
  * Partially update an agent
32960
32960
  *
32961
- * Partially updates an existing agent. Identical to PUT — both perform partial updates.
32961
+ * Partially updates an existing agent. Identical to PUT — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
32962
32962
  */
32963
32963
  static patchAgent<ThrowOnError extends boolean = false>(options: Options<PatchAgentData, ThrowOnError>): RequestResult<PatchAgentResponses, PatchAgentErrors, ThrowOnError>;
32964
32964
  /**
32965
32965
  * Update an agent
32966
32966
  *
32967
- * Updates an existing agent. Identical to PATCH — both perform partial updates.
32967
+ * Updates an existing agent. Identical to PATCH — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
32968
32968
  */
32969
32969
  static updateAgent<ThrowOnError extends boolean = false>(options: Options<UpdateAgentData, ThrowOnError>): RequestResult<UpdateAgentResponses, UpdateAgentErrors, ThrowOnError>;
32970
32970
  /**
@@ -33051,6 +33051,10 @@ export declare class AiProviders {
33051
33051
  * A provider's credential is its linked `secret_id`; `config.apiKey` is
33052
33052
  * refused with `400 VALIDATION_FAILED`.
33053
33053
  *
33054
+ * A record with both `base_url` and `secret_id` sends the secret to that
33055
+ * URL, so creating one also needs `secrets:UseSecret` on the secret, else
33056
+ * `403`.
33057
+ *
33054
33058
  * A `bedrock` or `vertex` record must link one. Without it the provider
33055
33059
  * SDK signs with the server's own credentials (the AWS default credential
33056
33060
  * chain, Google Application Default Credentials), which is refused with
@@ -33076,7 +33080,7 @@ export declare class AiProviders {
33076
33080
  /**
33077
33081
  * Update an AI provider
33078
33082
  *
33079
- * Updates an AI provider configuration
33083
+ * Updates an AI provider configuration. Setting `base_url` or `secret_id` so the record holds both also needs `secrets:UseSecret` on the secret, else `403`.
33080
33084
  */
33081
33085
  static updateAiProvider<ThrowOnError extends boolean = false>(options: Options<UpdateAiProviderData, ThrowOnError>): RequestResult<UpdateAiProviderResponses, UpdateAiProviderErrors, ThrowOnError>;
33082
33086
  /**
@@ -35320,7 +35324,7 @@ export declare class Triggers {
35320
35324
  /**
35321
35325
  * Create a trigger
35322
35326
  *
35323
- * Creates a new trigger for a project
35327
+ * Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`.
35324
35328
  */
35325
35329
  static createTrigger<ThrowOnError extends boolean = false>(options: Options<CreateTriggerData, ThrowOnError>): RequestResult<CreateTriggerResponses, CreateTriggerErrors, ThrowOnError>;
35326
35330
  /**
@@ -35344,7 +35348,7 @@ export declare class Triggers {
35344
35348
  /**
35345
35349
  * Update a trigger
35346
35350
  *
35347
- * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. A caller who could not start the new target is answered `403` and the trigger keeps the target it had.
35351
+ * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. 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`.
35348
35352
  *
35349
35353
  */
35350
35354
  static updateTrigger<ThrowOnError extends boolean = false>(options: Options<UpdateTriggerData, ThrowOnError>): RequestResult<UpdateTriggerResponses, UpdateTriggerErrors, ThrowOnError>;
package/dist/index.mjs CHANGED
@@ -1265,7 +1265,7 @@ var Agents = class {
1265
1265
  /**
1266
1266
  * Create an agent
1267
1267
  *
1268
- * Creates a new agent bound to an AI provider.
1268
+ * Creates a new agent bound to an AI provider. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
1269
1269
  */
1270
1270
  static createAgent(options) {
1271
1271
  return (options.client ?? client).post({
@@ -1304,7 +1304,7 @@ var Agents = class {
1304
1304
  /**
1305
1305
  * Partially update an agent
1306
1306
  *
1307
- * Partially updates an existing agent. Identical to PUT — both perform partial updates.
1307
+ * Partially updates an existing agent. Identical to PUT — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
1308
1308
  */
1309
1309
  static patchAgent(options) {
1310
1310
  return (options.client ?? client).patch({
@@ -1319,7 +1319,7 @@ var Agents = class {
1319
1319
  /**
1320
1320
  * Update an agent
1321
1321
  *
1322
- * Updates an existing agent. Identical to PATCH — both perform partial updates.
1322
+ * Updates an existing agent. Identical to PATCH — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
1323
1323
  */
1324
1324
  static updateAgent(options) {
1325
1325
  return (options.client ?? client).put({
@@ -1476,6 +1476,10 @@ var AiProviders = class {
1476
1476
  * A provider's credential is its linked `secret_id`; `config.apiKey` is
1477
1477
  * refused with `400 VALIDATION_FAILED`.
1478
1478
  *
1479
+ * A record with both `base_url` and `secret_id` sends the secret to that
1480
+ * URL, so creating one also needs `secrets:UseSecret` on the secret, else
1481
+ * `403`.
1482
+ *
1479
1483
  * A `bedrock` or `vertex` record must link one. Without it the provider
1480
1484
  * SDK signs with the server's own credentials (the AWS default credential
1481
1485
  * chain, Google Application Default Credentials), which is refused with
@@ -1520,7 +1524,7 @@ var AiProviders = class {
1520
1524
  /**
1521
1525
  * Update an AI provider
1522
1526
  *
1523
- * Updates an AI provider configuration
1527
+ * Updates an AI provider configuration. Setting `base_url` or `secret_id` so the record holds both also needs `secrets:UseSecret` on the secret, else `403`.
1524
1528
  */
1525
1529
  static updateAiProvider(options) {
1526
1530
  return (options.client ?? client).patch({
@@ -5848,7 +5852,7 @@ var Triggers = class {
5848
5852
  /**
5849
5853
  * Create a trigger
5850
5854
  *
5851
- * Creates a new trigger for a project
5855
+ * Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`.
5852
5856
  */
5853
5857
  static createTrigger(options) {
5854
5858
  return (options.client ?? client).post({
@@ -5896,7 +5900,7 @@ var Triggers = class {
5896
5900
  /**
5897
5901
  * Update a trigger
5898
5902
  *
5899
- * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. A caller who could not start the new target is answered `403` and the trigger keeps the target it had.
5903
+ * Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. 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`.
5900
5904
  *
5901
5905
  */
5902
5906
  static updateTrigger(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.219.0",
3
+ "version": "0.220.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.219.0",
41
+ "@naturali/api": "0.220.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.0",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",