@runtypelabs/sdk 11.12.0 → 11.13.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
@@ -14718,7 +14718,7 @@ function transformQueryParams(params) {
14718
14718
  return result;
14719
14719
  }
14720
14720
  // src/version.ts
14721
- const SDK_VERSION = "11.12.0";
14721
+ const SDK_VERSION = "11.13.0";
14722
14722
  /**
14723
14723
  * Canonical client identity the API uses for attribution
14724
14724
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
package/dist/index.d.cts CHANGED
@@ -1020,14 +1020,33 @@ interface paths {
1020
1020
  };
1021
1021
  model?: string;
1022
1022
  output?: {
1023
- validators?: {
1023
+ validators?: ({
1024
1024
  maxBounces?: number;
1025
1025
  schema?: {
1026
1026
  [key: string]: unknown;
1027
1027
  };
1028
1028
  /** @enum {string} */
1029
1029
  type: "candidate-question" | "requested-json" | "no-action" | "json-schema";
1030
- }[];
1030
+ } | {
1031
+ maxBounces?: number;
1032
+ name: string;
1033
+ timeoutMs?: number;
1034
+ /** @enum {string} */
1035
+ type: "custom";
1036
+ } | {
1037
+ flowId: string;
1038
+ maxBounces?: number;
1039
+ outputVariable?: string;
1040
+ timeoutMs?: number;
1041
+ /** @enum {string} */
1042
+ type: "flow";
1043
+ } | {
1044
+ maxBounces?: number;
1045
+ timeoutMs?: number;
1046
+ toolId: string;
1047
+ /** @enum {string} */
1048
+ type: "tool";
1049
+ })[];
1031
1050
  };
1032
1051
  /** @enum {string} */
1033
1052
  piiRedaction?: "default" | "off" | "redact";
@@ -1586,14 +1605,33 @@ interface paths {
1586
1605
  };
1587
1606
  model?: string;
1588
1607
  output?: {
1589
- validators?: {
1608
+ validators?: ({
1590
1609
  maxBounces?: number;
1591
1610
  schema?: {
1592
1611
  [key: string]: unknown;
1593
1612
  };
1594
1613
  /** @enum {string} */
1595
1614
  type: "candidate-question" | "requested-json" | "no-action" | "json-schema";
1596
- }[];
1615
+ } | {
1616
+ maxBounces?: number;
1617
+ name: string;
1618
+ timeoutMs?: number;
1619
+ /** @enum {string} */
1620
+ type: "custom";
1621
+ } | {
1622
+ flowId: string;
1623
+ maxBounces?: number;
1624
+ outputVariable?: string;
1625
+ timeoutMs?: number;
1626
+ /** @enum {string} */
1627
+ type: "flow";
1628
+ } | {
1629
+ maxBounces?: number;
1630
+ timeoutMs?: number;
1631
+ toolId: string;
1632
+ /** @enum {string} */
1633
+ type: "tool";
1634
+ })[];
1597
1635
  };
1598
1636
  /** @enum {string} */
1599
1637
  piiRedaction?: "default" | "off" | "redact";
@@ -2442,14 +2480,33 @@ interface paths {
2442
2480
  };
2443
2481
  model?: string;
2444
2482
  output?: {
2445
- validators?: {
2483
+ validators?: ({
2446
2484
  maxBounces?: number;
2447
2485
  schema?: {
2448
2486
  [key: string]: unknown;
2449
2487
  };
2450
2488
  /** @enum {string} */
2451
2489
  type: "candidate-question" | "requested-json" | "no-action" | "json-schema";
2452
- }[];
2490
+ } | {
2491
+ maxBounces?: number;
2492
+ name: string;
2493
+ timeoutMs?: number;
2494
+ /** @enum {string} */
2495
+ type: "custom";
2496
+ } | {
2497
+ flowId: string;
2498
+ maxBounces?: number;
2499
+ outputVariable?: string;
2500
+ timeoutMs?: number;
2501
+ /** @enum {string} */
2502
+ type: "flow";
2503
+ } | {
2504
+ maxBounces?: number;
2505
+ timeoutMs?: number;
2506
+ toolId: string;
2507
+ /** @enum {string} */
2508
+ type: "tool";
2509
+ })[];
2453
2510
  };
2454
2511
  /** @enum {string} */
2455
2512
  piiRedaction?: "default" | "off" | "redact";
@@ -14017,6 +14074,13 @@ interface paths {
14017
14074
  /** @enum {string} */
14018
14075
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14019
14076
  summary: string | null;
14077
+ /**
14078
+ * @description Who works the task; `operator` when absent.
14079
+ * @enum {string}
14080
+ */
14081
+ target?: "operator" | "otto";
14082
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14083
+ targetExecutionId?: string | null;
14020
14084
  toolCallCount: number;
14021
14085
  totalCost: number | null;
14022
14086
  touchedEntities: {
@@ -14106,6 +14170,11 @@ interface paths {
14106
14170
  * @enum {string}
14107
14171
  */
14108
14172
  priority?: "standard" | "fast";
14173
+ /**
14174
+ * @description Who works the task. Defaults to `operator`; `otto` hands it to Otto, the account's saved product-engineer agent, and needs the `delegate-to-otto` account flag.
14175
+ * @enum {string}
14176
+ */
14177
+ target?: "operator" | "otto";
14109
14178
  waitSeconds?: number;
14110
14179
  };
14111
14180
  };
@@ -14158,6 +14227,13 @@ interface paths {
14158
14227
  /** @enum {string} */
14159
14228
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14160
14229
  summary: string | null;
14230
+ /**
14231
+ * @description Who works the task; `operator` when absent.
14232
+ * @enum {string}
14233
+ */
14234
+ target?: "operator" | "otto";
14235
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14236
+ targetExecutionId?: string | null;
14161
14237
  toolCallCount: number;
14162
14238
  totalCost: number | null;
14163
14239
  touchedEntities: {
@@ -14219,6 +14295,13 @@ interface paths {
14219
14295
  /** @enum {string} */
14220
14296
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14221
14297
  summary: string | null;
14298
+ /**
14299
+ * @description Who works the task; `operator` when absent.
14300
+ * @enum {string}
14301
+ */
14302
+ target?: "operator" | "otto";
14303
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14304
+ targetExecutionId?: string | null;
14222
14305
  toolCallCount: number;
14223
14306
  totalCost: number | null;
14224
14307
  touchedEntities: {
@@ -14465,6 +14548,13 @@ interface paths {
14465
14548
  /** @enum {string} */
14466
14549
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14467
14550
  summary: string | null;
14551
+ /**
14552
+ * @description Who works the task; `operator` when absent.
14553
+ * @enum {string}
14554
+ */
14555
+ target?: "operator" | "otto";
14556
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14557
+ targetExecutionId?: string | null;
14468
14558
  toolCallCount: number;
14469
14559
  totalCost: number | null;
14470
14560
  touchedEntities: {
@@ -14599,6 +14689,13 @@ interface paths {
14599
14689
  /** @enum {string} */
14600
14690
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14601
14691
  summary: string | null;
14692
+ /**
14693
+ * @description Who works the task; `operator` when absent.
14694
+ * @enum {string}
14695
+ */
14696
+ target?: "operator" | "otto";
14697
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14698
+ targetExecutionId?: string | null;
14602
14699
  toolCallCount: number;
14603
14700
  totalCost: number | null;
14604
14701
  touchedEntities: {
@@ -14839,6 +14936,13 @@ interface paths {
14839
14936
  /** @enum {string} */
14840
14937
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14841
14938
  summary: string | null;
14939
+ /**
14940
+ * @description Who works the task; `operator` when absent.
14941
+ * @enum {string}
14942
+ */
14943
+ target?: "operator" | "otto";
14944
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14945
+ targetExecutionId?: string | null;
14842
14946
  toolCallCount: number;
14843
14947
  totalCost: number | null;
14844
14948
  touchedEntities: {
@@ -14881,7 +14985,7 @@ interface paths {
14881
14985
  "application/json": components["schemas"]["Error"];
14882
14986
  };
14883
14987
  };
14884
- /** @description The task has already settled (`DELEGATE_TASK_SETTLED`), or no longer waits on the question named by `answersQuestionSeq` (`DELEGATE_TASK_QUESTION_ANSWERED`) */
14988
+ /** @description The task has already settled (`DELEGATE_TASK_SETTLED`), no longer waits on the question named by `answersQuestionSeq` (`DELEGATE_TASK_QUESTION_ANSWERED`), or is an `otto` task mid-turn, which takes no message until it settles or asks (`DELEGATE_TASK_BUSY`) */
14885
14989
  409: {
14886
14990
  headers: {
14887
14991
  [name: string]: unknown;
@@ -59399,6 +59503,7 @@ interface paths {
59399
59503
  enableChromeSurface: boolean;
59400
59504
  enableDashboardAssistant: boolean;
59401
59505
  enableDecisionModelsDashboard: boolean;
59506
+ enableDelegateToOtto?: boolean;
59402
59507
  enableDelegateToRuntype?: boolean;
59403
59508
  enableEndUserUsageAnalytics: boolean;
59404
59509
  enableMassiveWebRender: boolean;
@@ -60239,14 +60344,33 @@ interface components {
60239
60344
  };
60240
60345
  model?: string;
60241
60346
  output?: {
60242
- validators?: {
60347
+ validators?: ({
60243
60348
  maxBounces?: number;
60244
60349
  schema?: {
60245
60350
  [key: string]: unknown;
60246
60351
  };
60247
60352
  /** @enum {string} */
60248
60353
  type: "candidate-question" | "requested-json" | "no-action" | "json-schema";
60249
- }[];
60354
+ } | {
60355
+ maxBounces?: number;
60356
+ name: string;
60357
+ timeoutMs?: number;
60358
+ /** @enum {string} */
60359
+ type: "custom";
60360
+ } | {
60361
+ flowId: string;
60362
+ maxBounces?: number;
60363
+ outputVariable?: string;
60364
+ timeoutMs?: number;
60365
+ /** @enum {string} */
60366
+ type: "flow";
60367
+ } | {
60368
+ maxBounces?: number;
60369
+ timeoutMs?: number;
60370
+ toolId: string;
60371
+ /** @enum {string} */
60372
+ type: "tool";
60373
+ })[];
60250
60374
  };
60251
60375
  /** @enum {string} */
60252
60376
  piiRedaction?: "default" | "off" | "redact";
@@ -61087,14 +61211,33 @@ interface components {
61087
61211
  };
61088
61212
  model?: string;
61089
61213
  output?: {
61090
- validators?: {
61214
+ validators?: ({
61091
61215
  maxBounces?: number;
61092
61216
  schema?: {
61093
61217
  [key: string]: unknown;
61094
61218
  };
61095
61219
  /** @enum {string} */
61096
61220
  type: "candidate-question" | "requested-json" | "no-action" | "json-schema";
61097
- }[];
61221
+ } | {
61222
+ maxBounces?: number;
61223
+ name: string;
61224
+ timeoutMs?: number;
61225
+ /** @enum {string} */
61226
+ type: "custom";
61227
+ } | {
61228
+ flowId: string;
61229
+ maxBounces?: number;
61230
+ outputVariable?: string;
61231
+ timeoutMs?: number;
61232
+ /** @enum {string} */
61233
+ type: "flow";
61234
+ } | {
61235
+ maxBounces?: number;
61236
+ timeoutMs?: number;
61237
+ toolId: string;
61238
+ /** @enum {string} */
61239
+ type: "tool";
61240
+ })[];
61098
61241
  };
61099
61242
  /** @enum {string} */
61100
61243
  piiRedaction?: "default" | "off" | "redact";
@@ -62301,7 +62444,8 @@ interface components {
62301
62444
  outcome?: "completed" | "error" | "aborted";
62302
62445
  output?: {
62303
62446
  validation?: {
62304
- failed: string[];
62447
+ errored?: string[];
62448
+ failed?: string[];
62305
62449
  };
62306
62450
  };
62307
62451
  seq: number;
@@ -62777,6 +62921,7 @@ interface components {
62777
62921
  /** @enum {string} */
62778
62922
  type: "tool_output_delta";
62779
62923
  } | {
62924
+ completedAt?: string;
62780
62925
  error?: string;
62781
62926
  executionId: string;
62782
62927
  executionTime?: number;
@@ -76241,6 +76386,22 @@ interface AgentDefinitionConfig {
76241
76386
  maxBounces?: number;
76242
76387
  /** Required on a `json-schema` validator, rejected on the others. */
76243
76388
  schema?: Record<string, unknown>;
76389
+ } | {
76390
+ type: 'custom';
76391
+ name: string;
76392
+ maxBounces?: number;
76393
+ timeoutMs?: number;
76394
+ } | {
76395
+ type: 'flow';
76396
+ flowId: string;
76397
+ outputVariable?: string;
76398
+ maxBounces?: number;
76399
+ timeoutMs?: number;
76400
+ } | {
76401
+ type: 'tool';
76402
+ toolId: string;
76403
+ maxBounces?: number;
76404
+ timeoutMs?: number;
76244
76405
  }>;
76245
76406
  };
76246
76407
  }
package/dist/index.d.ts CHANGED
@@ -1020,14 +1020,33 @@ interface paths {
1020
1020
  };
1021
1021
  model?: string;
1022
1022
  output?: {
1023
- validators?: {
1023
+ validators?: ({
1024
1024
  maxBounces?: number;
1025
1025
  schema?: {
1026
1026
  [key: string]: unknown;
1027
1027
  };
1028
1028
  /** @enum {string} */
1029
1029
  type: "candidate-question" | "requested-json" | "no-action" | "json-schema";
1030
- }[];
1030
+ } | {
1031
+ maxBounces?: number;
1032
+ name: string;
1033
+ timeoutMs?: number;
1034
+ /** @enum {string} */
1035
+ type: "custom";
1036
+ } | {
1037
+ flowId: string;
1038
+ maxBounces?: number;
1039
+ outputVariable?: string;
1040
+ timeoutMs?: number;
1041
+ /** @enum {string} */
1042
+ type: "flow";
1043
+ } | {
1044
+ maxBounces?: number;
1045
+ timeoutMs?: number;
1046
+ toolId: string;
1047
+ /** @enum {string} */
1048
+ type: "tool";
1049
+ })[];
1031
1050
  };
1032
1051
  /** @enum {string} */
1033
1052
  piiRedaction?: "default" | "off" | "redact";
@@ -1586,14 +1605,33 @@ interface paths {
1586
1605
  };
1587
1606
  model?: string;
1588
1607
  output?: {
1589
- validators?: {
1608
+ validators?: ({
1590
1609
  maxBounces?: number;
1591
1610
  schema?: {
1592
1611
  [key: string]: unknown;
1593
1612
  };
1594
1613
  /** @enum {string} */
1595
1614
  type: "candidate-question" | "requested-json" | "no-action" | "json-schema";
1596
- }[];
1615
+ } | {
1616
+ maxBounces?: number;
1617
+ name: string;
1618
+ timeoutMs?: number;
1619
+ /** @enum {string} */
1620
+ type: "custom";
1621
+ } | {
1622
+ flowId: string;
1623
+ maxBounces?: number;
1624
+ outputVariable?: string;
1625
+ timeoutMs?: number;
1626
+ /** @enum {string} */
1627
+ type: "flow";
1628
+ } | {
1629
+ maxBounces?: number;
1630
+ timeoutMs?: number;
1631
+ toolId: string;
1632
+ /** @enum {string} */
1633
+ type: "tool";
1634
+ })[];
1597
1635
  };
1598
1636
  /** @enum {string} */
1599
1637
  piiRedaction?: "default" | "off" | "redact";
@@ -2442,14 +2480,33 @@ interface paths {
2442
2480
  };
2443
2481
  model?: string;
2444
2482
  output?: {
2445
- validators?: {
2483
+ validators?: ({
2446
2484
  maxBounces?: number;
2447
2485
  schema?: {
2448
2486
  [key: string]: unknown;
2449
2487
  };
2450
2488
  /** @enum {string} */
2451
2489
  type: "candidate-question" | "requested-json" | "no-action" | "json-schema";
2452
- }[];
2490
+ } | {
2491
+ maxBounces?: number;
2492
+ name: string;
2493
+ timeoutMs?: number;
2494
+ /** @enum {string} */
2495
+ type: "custom";
2496
+ } | {
2497
+ flowId: string;
2498
+ maxBounces?: number;
2499
+ outputVariable?: string;
2500
+ timeoutMs?: number;
2501
+ /** @enum {string} */
2502
+ type: "flow";
2503
+ } | {
2504
+ maxBounces?: number;
2505
+ timeoutMs?: number;
2506
+ toolId: string;
2507
+ /** @enum {string} */
2508
+ type: "tool";
2509
+ })[];
2453
2510
  };
2454
2511
  /** @enum {string} */
2455
2512
  piiRedaction?: "default" | "off" | "redact";
@@ -14017,6 +14074,13 @@ interface paths {
14017
14074
  /** @enum {string} */
14018
14075
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14019
14076
  summary: string | null;
14077
+ /**
14078
+ * @description Who works the task; `operator` when absent.
14079
+ * @enum {string}
14080
+ */
14081
+ target?: "operator" | "otto";
14082
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14083
+ targetExecutionId?: string | null;
14020
14084
  toolCallCount: number;
14021
14085
  totalCost: number | null;
14022
14086
  touchedEntities: {
@@ -14106,6 +14170,11 @@ interface paths {
14106
14170
  * @enum {string}
14107
14171
  */
14108
14172
  priority?: "standard" | "fast";
14173
+ /**
14174
+ * @description Who works the task. Defaults to `operator`; `otto` hands it to Otto, the account's saved product-engineer agent, and needs the `delegate-to-otto` account flag.
14175
+ * @enum {string}
14176
+ */
14177
+ target?: "operator" | "otto";
14109
14178
  waitSeconds?: number;
14110
14179
  };
14111
14180
  };
@@ -14158,6 +14227,13 @@ interface paths {
14158
14227
  /** @enum {string} */
14159
14228
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14160
14229
  summary: string | null;
14230
+ /**
14231
+ * @description Who works the task; `operator` when absent.
14232
+ * @enum {string}
14233
+ */
14234
+ target?: "operator" | "otto";
14235
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14236
+ targetExecutionId?: string | null;
14161
14237
  toolCallCount: number;
14162
14238
  totalCost: number | null;
14163
14239
  touchedEntities: {
@@ -14219,6 +14295,13 @@ interface paths {
14219
14295
  /** @enum {string} */
14220
14296
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14221
14297
  summary: string | null;
14298
+ /**
14299
+ * @description Who works the task; `operator` when absent.
14300
+ * @enum {string}
14301
+ */
14302
+ target?: "operator" | "otto";
14303
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14304
+ targetExecutionId?: string | null;
14222
14305
  toolCallCount: number;
14223
14306
  totalCost: number | null;
14224
14307
  touchedEntities: {
@@ -14465,6 +14548,13 @@ interface paths {
14465
14548
  /** @enum {string} */
14466
14549
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14467
14550
  summary: string | null;
14551
+ /**
14552
+ * @description Who works the task; `operator` when absent.
14553
+ * @enum {string}
14554
+ */
14555
+ target?: "operator" | "otto";
14556
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14557
+ targetExecutionId?: string | null;
14468
14558
  toolCallCount: number;
14469
14559
  totalCost: number | null;
14470
14560
  touchedEntities: {
@@ -14599,6 +14689,13 @@ interface paths {
14599
14689
  /** @enum {string} */
14600
14690
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14601
14691
  summary: string | null;
14692
+ /**
14693
+ * @description Who works the task; `operator` when absent.
14694
+ * @enum {string}
14695
+ */
14696
+ target?: "operator" | "otto";
14697
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14698
+ targetExecutionId?: string | null;
14602
14699
  toolCallCount: number;
14603
14700
  totalCost: number | null;
14604
14701
  touchedEntities: {
@@ -14839,6 +14936,13 @@ interface paths {
14839
14936
  /** @enum {string} */
14840
14937
  status: "queued" | "running" | "input_required" | "completed" | "failed" | "cancelled";
14841
14938
  summary: string | null;
14939
+ /**
14940
+ * @description Who works the task; `operator` when absent.
14941
+ * @enum {string}
14942
+ */
14943
+ target?: "operator" | "otto";
14944
+ /** @description The worker's execution for the latest turn, when it has its own: an Otto run. */
14945
+ targetExecutionId?: string | null;
14842
14946
  toolCallCount: number;
14843
14947
  totalCost: number | null;
14844
14948
  touchedEntities: {
@@ -14881,7 +14985,7 @@ interface paths {
14881
14985
  "application/json": components["schemas"]["Error"];
14882
14986
  };
14883
14987
  };
14884
- /** @description The task has already settled (`DELEGATE_TASK_SETTLED`), or no longer waits on the question named by `answersQuestionSeq` (`DELEGATE_TASK_QUESTION_ANSWERED`) */
14988
+ /** @description The task has already settled (`DELEGATE_TASK_SETTLED`), no longer waits on the question named by `answersQuestionSeq` (`DELEGATE_TASK_QUESTION_ANSWERED`), or is an `otto` task mid-turn, which takes no message until it settles or asks (`DELEGATE_TASK_BUSY`) */
14885
14989
  409: {
14886
14990
  headers: {
14887
14991
  [name: string]: unknown;
@@ -59399,6 +59503,7 @@ interface paths {
59399
59503
  enableChromeSurface: boolean;
59400
59504
  enableDashboardAssistant: boolean;
59401
59505
  enableDecisionModelsDashboard: boolean;
59506
+ enableDelegateToOtto?: boolean;
59402
59507
  enableDelegateToRuntype?: boolean;
59403
59508
  enableEndUserUsageAnalytics: boolean;
59404
59509
  enableMassiveWebRender: boolean;
@@ -60239,14 +60344,33 @@ interface components {
60239
60344
  };
60240
60345
  model?: string;
60241
60346
  output?: {
60242
- validators?: {
60347
+ validators?: ({
60243
60348
  maxBounces?: number;
60244
60349
  schema?: {
60245
60350
  [key: string]: unknown;
60246
60351
  };
60247
60352
  /** @enum {string} */
60248
60353
  type: "candidate-question" | "requested-json" | "no-action" | "json-schema";
60249
- }[];
60354
+ } | {
60355
+ maxBounces?: number;
60356
+ name: string;
60357
+ timeoutMs?: number;
60358
+ /** @enum {string} */
60359
+ type: "custom";
60360
+ } | {
60361
+ flowId: string;
60362
+ maxBounces?: number;
60363
+ outputVariable?: string;
60364
+ timeoutMs?: number;
60365
+ /** @enum {string} */
60366
+ type: "flow";
60367
+ } | {
60368
+ maxBounces?: number;
60369
+ timeoutMs?: number;
60370
+ toolId: string;
60371
+ /** @enum {string} */
60372
+ type: "tool";
60373
+ })[];
60250
60374
  };
60251
60375
  /** @enum {string} */
60252
60376
  piiRedaction?: "default" | "off" | "redact";
@@ -61087,14 +61211,33 @@ interface components {
61087
61211
  };
61088
61212
  model?: string;
61089
61213
  output?: {
61090
- validators?: {
61214
+ validators?: ({
61091
61215
  maxBounces?: number;
61092
61216
  schema?: {
61093
61217
  [key: string]: unknown;
61094
61218
  };
61095
61219
  /** @enum {string} */
61096
61220
  type: "candidate-question" | "requested-json" | "no-action" | "json-schema";
61097
- }[];
61221
+ } | {
61222
+ maxBounces?: number;
61223
+ name: string;
61224
+ timeoutMs?: number;
61225
+ /** @enum {string} */
61226
+ type: "custom";
61227
+ } | {
61228
+ flowId: string;
61229
+ maxBounces?: number;
61230
+ outputVariable?: string;
61231
+ timeoutMs?: number;
61232
+ /** @enum {string} */
61233
+ type: "flow";
61234
+ } | {
61235
+ maxBounces?: number;
61236
+ timeoutMs?: number;
61237
+ toolId: string;
61238
+ /** @enum {string} */
61239
+ type: "tool";
61240
+ })[];
61098
61241
  };
61099
61242
  /** @enum {string} */
61100
61243
  piiRedaction?: "default" | "off" | "redact";
@@ -62301,7 +62444,8 @@ interface components {
62301
62444
  outcome?: "completed" | "error" | "aborted";
62302
62445
  output?: {
62303
62446
  validation?: {
62304
- failed: string[];
62447
+ errored?: string[];
62448
+ failed?: string[];
62305
62449
  };
62306
62450
  };
62307
62451
  seq: number;
@@ -62777,6 +62921,7 @@ interface components {
62777
62921
  /** @enum {string} */
62778
62922
  type: "tool_output_delta";
62779
62923
  } | {
62924
+ completedAt?: string;
62780
62925
  error?: string;
62781
62926
  executionId: string;
62782
62927
  executionTime?: number;
@@ -76241,6 +76386,22 @@ interface AgentDefinitionConfig {
76241
76386
  maxBounces?: number;
76242
76387
  /** Required on a `json-schema` validator, rejected on the others. */
76243
76388
  schema?: Record<string, unknown>;
76389
+ } | {
76390
+ type: 'custom';
76391
+ name: string;
76392
+ maxBounces?: number;
76393
+ timeoutMs?: number;
76394
+ } | {
76395
+ type: 'flow';
76396
+ flowId: string;
76397
+ outputVariable?: string;
76398
+ maxBounces?: number;
76399
+ timeoutMs?: number;
76400
+ } | {
76401
+ type: 'tool';
76402
+ toolId: string;
76403
+ maxBounces?: number;
76404
+ timeoutMs?: number;
76244
76405
  }>;
76245
76406
  };
76246
76407
  }
package/dist/index.mjs CHANGED
@@ -14717,7 +14717,7 @@ function transformQueryParams(params) {
14717
14717
  return result;
14718
14718
  }
14719
14719
  // src/version.ts
14720
- const SDK_VERSION = "11.12.0";
14720
+ const SDK_VERSION = "11.13.0";
14721
14721
  /**
14722
14722
  * Canonical client identity the API uses for attribution
14723
14723
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "11.12.0",
3
+ "version": "11.13.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",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {},
26
26
  "devDependencies": {
27
- "@runtypelabs/shared": "3.103.0",
27
+ "@runtypelabs/shared": "3.104.1",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsdown": "^0.23.2",
30
30
  "typescript": "^6.0.3",