@runtypelabs/sdk 4.7.1 → 4.8.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.cts CHANGED
@@ -722,6 +722,7 @@ interface paths {
722
722
  };
723
723
  tools?: {
724
724
  approval?: {
725
+ requestReason?: boolean;
725
726
  require: string[] | boolean;
726
727
  timeout?: number;
727
728
  };
@@ -1377,6 +1378,7 @@ interface paths {
1377
1378
  };
1378
1379
  tools?: {
1379
1380
  approval?: {
1381
+ requestReason?: boolean;
1380
1382
  require: string[] | boolean;
1381
1383
  timeout?: number;
1382
1384
  };
@@ -17846,6 +17848,16 @@ interface paths {
17846
17848
  sourceId?: string;
17847
17849
  syncEnabled?: boolean;
17848
17850
  };
17851
+ internalDocs?: {
17852
+ content?: string;
17853
+ resources?: {
17854
+ content?: string;
17855
+ title: string;
17856
+ type: string;
17857
+ url?: string;
17858
+ }[];
17859
+ tags?: string[];
17860
+ } | null;
17849
17861
  preferredModels?: string[];
17850
17862
  productGoal?: string;
17851
17863
  /** @enum {string} */
@@ -18800,6 +18812,16 @@ interface paths {
18800
18812
  sourceId?: string;
18801
18813
  syncEnabled?: boolean;
18802
18814
  };
18815
+ internalDocs?: {
18816
+ content?: string;
18817
+ resources?: {
18818
+ content?: string;
18819
+ title: string;
18820
+ type: string;
18821
+ url?: string;
18822
+ }[];
18823
+ tags?: string[];
18824
+ } | null;
18803
18825
  preferredModels?: string[];
18804
18826
  productGoal?: string;
18805
18827
  /** @enum {string} */
@@ -32618,6 +32640,7 @@ interface components {
32618
32640
  parameters?: {
32619
32641
  [key: string]: unknown;
32620
32642
  };
32643
+ reason?: string;
32621
32644
  seq: number;
32622
32645
  startedAt: string;
32623
32646
  timeout: number;
@@ -32966,6 +32989,7 @@ interface components {
32966
32989
  parameters?: {
32967
32990
  [key: string]: unknown;
32968
32991
  };
32992
+ reason?: string;
32969
32993
  seq: number;
32970
32994
  startedAt: string;
32971
32995
  timeout: number;
@@ -33274,6 +33298,7 @@ interface components {
33274
33298
  when: string;
33275
33299
  } | ({
33276
33300
  executionId?: string;
33301
+ reason?: string;
33277
33302
  seq?: number;
33278
33303
  /** @enum {string} */
33279
33304
  type: "step_await";
@@ -33670,6 +33695,7 @@ interface components {
33670
33695
  when: string;
33671
33696
  } | ({
33672
33697
  executionId?: string;
33698
+ reason?: string;
33673
33699
  seq?: number;
33674
33700
  /** @enum {string} */
33675
33701
  type: "step_await";
@@ -38845,6 +38871,13 @@ interface AgentApprovalStartEvent extends BaseAgentEvent {
38845
38871
  toolName: string;
38846
38872
  toolType: string;
38847
38873
  description: string;
38874
+ /**
38875
+ * Agent-authored justification for this specific call, extracted from the
38876
+ * reserved `_approvalReason` parameter. The agent's claim about its intent
38877
+ * — attribute it to the agent and render it as plain text. Mirrors
38878
+ * `agentApprovalStartEventSchema` in `@runtypelabs/shared`.
38879
+ */
38880
+ reason?: string;
38848
38881
  parameters?: Record<string, unknown>;
38849
38882
  timeout: number;
38850
38883
  startedAt: string;
package/dist/index.d.ts CHANGED
@@ -722,6 +722,7 @@ interface paths {
722
722
  };
723
723
  tools?: {
724
724
  approval?: {
725
+ requestReason?: boolean;
725
726
  require: string[] | boolean;
726
727
  timeout?: number;
727
728
  };
@@ -1377,6 +1378,7 @@ interface paths {
1377
1378
  };
1378
1379
  tools?: {
1379
1380
  approval?: {
1381
+ requestReason?: boolean;
1380
1382
  require: string[] | boolean;
1381
1383
  timeout?: number;
1382
1384
  };
@@ -17846,6 +17848,16 @@ interface paths {
17846
17848
  sourceId?: string;
17847
17849
  syncEnabled?: boolean;
17848
17850
  };
17851
+ internalDocs?: {
17852
+ content?: string;
17853
+ resources?: {
17854
+ content?: string;
17855
+ title: string;
17856
+ type: string;
17857
+ url?: string;
17858
+ }[];
17859
+ tags?: string[];
17860
+ } | null;
17849
17861
  preferredModels?: string[];
17850
17862
  productGoal?: string;
17851
17863
  /** @enum {string} */
@@ -18800,6 +18812,16 @@ interface paths {
18800
18812
  sourceId?: string;
18801
18813
  syncEnabled?: boolean;
18802
18814
  };
18815
+ internalDocs?: {
18816
+ content?: string;
18817
+ resources?: {
18818
+ content?: string;
18819
+ title: string;
18820
+ type: string;
18821
+ url?: string;
18822
+ }[];
18823
+ tags?: string[];
18824
+ } | null;
18803
18825
  preferredModels?: string[];
18804
18826
  productGoal?: string;
18805
18827
  /** @enum {string} */
@@ -32618,6 +32640,7 @@ interface components {
32618
32640
  parameters?: {
32619
32641
  [key: string]: unknown;
32620
32642
  };
32643
+ reason?: string;
32621
32644
  seq: number;
32622
32645
  startedAt: string;
32623
32646
  timeout: number;
@@ -32966,6 +32989,7 @@ interface components {
32966
32989
  parameters?: {
32967
32990
  [key: string]: unknown;
32968
32991
  };
32992
+ reason?: string;
32969
32993
  seq: number;
32970
32994
  startedAt: string;
32971
32995
  timeout: number;
@@ -33274,6 +33298,7 @@ interface components {
33274
33298
  when: string;
33275
33299
  } | ({
33276
33300
  executionId?: string;
33301
+ reason?: string;
33277
33302
  seq?: number;
33278
33303
  /** @enum {string} */
33279
33304
  type: "step_await";
@@ -33670,6 +33695,7 @@ interface components {
33670
33695
  when: string;
33671
33696
  } | ({
33672
33697
  executionId?: string;
33698
+ reason?: string;
33673
33699
  seq?: number;
33674
33700
  /** @enum {string} */
33675
33701
  type: "step_await";
@@ -38845,6 +38871,13 @@ interface AgentApprovalStartEvent extends BaseAgentEvent {
38845
38871
  toolName: string;
38846
38872
  toolType: string;
38847
38873
  description: string;
38874
+ /**
38875
+ * Agent-authored justification for this specific call, extracted from the
38876
+ * reserved `_approvalReason` parameter. The agent's claim about its intent
38877
+ * — attribute it to the agent and render it as plain text. Mirrors
38878
+ * `agentApprovalStartEventSchema` in `@runtypelabs/shared`.
38879
+ */
38880
+ reason?: string;
38848
38881
  parameters?: Record<string, unknown>;
38849
38882
  timeout: number;
38850
38883
  startedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "4.7.1",
3
+ "version": "4.8.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
6
6
  "main": "dist/index.cjs",