@runtypelabs/sdk 4.7.0 → 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;
@@ -32685,6 +32708,7 @@ interface components {
32685
32708
  iteration: number;
32686
32709
  reflection?: string;
32687
32710
  seq: number;
32711
+ timestamp?: string;
32688
32712
  /** @enum {string} */
32689
32713
  type: "agent_reflection";
32690
32714
  } | {
@@ -32693,6 +32717,7 @@ interface components {
32693
32717
  iteration: number;
32694
32718
  seq: number;
32695
32719
  skill: string;
32720
+ timestamp?: string;
32696
32721
  toolCallId: string;
32697
32722
  /** @enum {string} */
32698
32723
  type: "agent_skill_loaded";
@@ -32704,6 +32729,7 @@ interface components {
32704
32729
  proposalId?: string;
32705
32730
  seq: number;
32706
32731
  skill: string;
32732
+ timestamp?: string;
32707
32733
  toolCallId: string;
32708
32734
  /** @enum {string} */
32709
32735
  type: "agent_skill_proposed";
@@ -32742,6 +32768,7 @@ interface components {
32742
32768
  iteration?: number;
32743
32769
  recoverable: boolean;
32744
32770
  seq: number;
32771
+ timestamp?: string;
32745
32772
  /** @enum {string} */
32746
32773
  type: "agent_error";
32747
32774
  } | {
@@ -32962,6 +32989,7 @@ interface components {
32962
32989
  parameters?: {
32963
32990
  [key: string]: unknown;
32964
32991
  };
32992
+ reason?: string;
32965
32993
  seq: number;
32966
32994
  startedAt: string;
32967
32995
  timeout: number;
@@ -33029,6 +33057,7 @@ interface components {
33029
33057
  iteration: number;
33030
33058
  reflection?: string;
33031
33059
  seq: number;
33060
+ timestamp?: string;
33032
33061
  /** @enum {string} */
33033
33062
  type: "agent_reflection";
33034
33063
  } | {
@@ -33037,6 +33066,7 @@ interface components {
33037
33066
  iteration: number;
33038
33067
  seq: number;
33039
33068
  skill: string;
33069
+ timestamp?: string;
33040
33070
  toolCallId: string;
33041
33071
  /** @enum {string} */
33042
33072
  type: "agent_skill_loaded";
@@ -33048,6 +33078,7 @@ interface components {
33048
33078
  proposalId?: string;
33049
33079
  seq: number;
33050
33080
  skill: string;
33081
+ timestamp?: string;
33051
33082
  toolCallId: string;
33052
33083
  /** @enum {string} */
33053
33084
  type: "agent_skill_proposed";
@@ -33086,6 +33117,7 @@ interface components {
33086
33117
  iteration?: number;
33087
33118
  recoverable: boolean;
33088
33119
  seq: number;
33120
+ timestamp?: string;
33089
33121
  /** @enum {string} */
33090
33122
  type: "agent_error";
33091
33123
  } | {
@@ -33125,6 +33157,7 @@ interface components {
33125
33157
  failedSteps?: number;
33126
33158
  finalOutput?: string;
33127
33159
  flowId?: string;
33160
+ flowName?: string;
33128
33161
  output?: unknown;
33129
33162
  seq?: number;
33130
33163
  source?: string;
@@ -33182,6 +33215,7 @@ interface components {
33182
33215
  id?: string;
33183
33216
  index?: number;
33184
33217
  name?: string;
33218
+ outputVariable?: string;
33185
33219
  seq?: number;
33186
33220
  startedAt: string;
33187
33221
  stepId?: string;
@@ -33264,6 +33298,7 @@ interface components {
33264
33298
  when: string;
33265
33299
  } | ({
33266
33300
  executionId?: string;
33301
+ reason?: string;
33267
33302
  seq?: number;
33268
33303
  /** @enum {string} */
33269
33304
  type: "step_await";
@@ -33519,6 +33554,7 @@ interface components {
33519
33554
  failedSteps?: number;
33520
33555
  finalOutput?: string;
33521
33556
  flowId?: string;
33557
+ flowName?: string;
33522
33558
  output?: unknown;
33523
33559
  seq?: number;
33524
33560
  source?: string;
@@ -33576,6 +33612,7 @@ interface components {
33576
33612
  id?: string;
33577
33613
  index?: number;
33578
33614
  name?: string;
33615
+ outputVariable?: string;
33579
33616
  seq?: number;
33580
33617
  startedAt: string;
33581
33618
  stepId?: string;
@@ -33658,6 +33695,7 @@ interface components {
33658
33695
  when: string;
33659
33696
  } | ({
33660
33697
  executionId?: string;
33698
+ reason?: string;
33661
33699
  seq?: number;
33662
33700
  /** @enum {string} */
33663
33701
  type: "step_await";
@@ -38833,6 +38871,13 @@ interface AgentApprovalStartEvent extends BaseAgentEvent {
38833
38871
  toolName: string;
38834
38872
  toolType: string;
38835
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;
38836
38881
  parameters?: Record<string, unknown>;
38837
38882
  timeout: number;
38838
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;
@@ -32685,6 +32708,7 @@ interface components {
32685
32708
  iteration: number;
32686
32709
  reflection?: string;
32687
32710
  seq: number;
32711
+ timestamp?: string;
32688
32712
  /** @enum {string} */
32689
32713
  type: "agent_reflection";
32690
32714
  } | {
@@ -32693,6 +32717,7 @@ interface components {
32693
32717
  iteration: number;
32694
32718
  seq: number;
32695
32719
  skill: string;
32720
+ timestamp?: string;
32696
32721
  toolCallId: string;
32697
32722
  /** @enum {string} */
32698
32723
  type: "agent_skill_loaded";
@@ -32704,6 +32729,7 @@ interface components {
32704
32729
  proposalId?: string;
32705
32730
  seq: number;
32706
32731
  skill: string;
32732
+ timestamp?: string;
32707
32733
  toolCallId: string;
32708
32734
  /** @enum {string} */
32709
32735
  type: "agent_skill_proposed";
@@ -32742,6 +32768,7 @@ interface components {
32742
32768
  iteration?: number;
32743
32769
  recoverable: boolean;
32744
32770
  seq: number;
32771
+ timestamp?: string;
32745
32772
  /** @enum {string} */
32746
32773
  type: "agent_error";
32747
32774
  } | {
@@ -32962,6 +32989,7 @@ interface components {
32962
32989
  parameters?: {
32963
32990
  [key: string]: unknown;
32964
32991
  };
32992
+ reason?: string;
32965
32993
  seq: number;
32966
32994
  startedAt: string;
32967
32995
  timeout: number;
@@ -33029,6 +33057,7 @@ interface components {
33029
33057
  iteration: number;
33030
33058
  reflection?: string;
33031
33059
  seq: number;
33060
+ timestamp?: string;
33032
33061
  /** @enum {string} */
33033
33062
  type: "agent_reflection";
33034
33063
  } | {
@@ -33037,6 +33066,7 @@ interface components {
33037
33066
  iteration: number;
33038
33067
  seq: number;
33039
33068
  skill: string;
33069
+ timestamp?: string;
33040
33070
  toolCallId: string;
33041
33071
  /** @enum {string} */
33042
33072
  type: "agent_skill_loaded";
@@ -33048,6 +33078,7 @@ interface components {
33048
33078
  proposalId?: string;
33049
33079
  seq: number;
33050
33080
  skill: string;
33081
+ timestamp?: string;
33051
33082
  toolCallId: string;
33052
33083
  /** @enum {string} */
33053
33084
  type: "agent_skill_proposed";
@@ -33086,6 +33117,7 @@ interface components {
33086
33117
  iteration?: number;
33087
33118
  recoverable: boolean;
33088
33119
  seq: number;
33120
+ timestamp?: string;
33089
33121
  /** @enum {string} */
33090
33122
  type: "agent_error";
33091
33123
  } | {
@@ -33125,6 +33157,7 @@ interface components {
33125
33157
  failedSteps?: number;
33126
33158
  finalOutput?: string;
33127
33159
  flowId?: string;
33160
+ flowName?: string;
33128
33161
  output?: unknown;
33129
33162
  seq?: number;
33130
33163
  source?: string;
@@ -33182,6 +33215,7 @@ interface components {
33182
33215
  id?: string;
33183
33216
  index?: number;
33184
33217
  name?: string;
33218
+ outputVariable?: string;
33185
33219
  seq?: number;
33186
33220
  startedAt: string;
33187
33221
  stepId?: string;
@@ -33264,6 +33298,7 @@ interface components {
33264
33298
  when: string;
33265
33299
  } | ({
33266
33300
  executionId?: string;
33301
+ reason?: string;
33267
33302
  seq?: number;
33268
33303
  /** @enum {string} */
33269
33304
  type: "step_await";
@@ -33519,6 +33554,7 @@ interface components {
33519
33554
  failedSteps?: number;
33520
33555
  finalOutput?: string;
33521
33556
  flowId?: string;
33557
+ flowName?: string;
33522
33558
  output?: unknown;
33523
33559
  seq?: number;
33524
33560
  source?: string;
@@ -33576,6 +33612,7 @@ interface components {
33576
33612
  id?: string;
33577
33613
  index?: number;
33578
33614
  name?: string;
33615
+ outputVariable?: string;
33579
33616
  seq?: number;
33580
33617
  startedAt: string;
33581
33618
  stepId?: string;
@@ -33658,6 +33695,7 @@ interface components {
33658
33695
  when: string;
33659
33696
  } | ({
33660
33697
  executionId?: string;
33698
+ reason?: string;
33661
33699
  seq?: number;
33662
33700
  /** @enum {string} */
33663
33701
  type: "step_await";
@@ -38833,6 +38871,13 @@ interface AgentApprovalStartEvent extends BaseAgentEvent {
38833
38871
  toolName: string;
38834
38872
  toolType: string;
38835
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;
38836
38881
  parameters?: Record<string, unknown>;
38837
38882
  timeout: number;
38838
38883
  startedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "4.7.0",
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",