@runtypelabs/sdk 11.7.0 → 11.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.cjs CHANGED
@@ -12760,6 +12760,10 @@ var SignalsNamespace = class {
12760
12760
  async updateSet(id, input) {
12761
12761
  return this.getClient().patch(`/signal-sets/${pathId(id)}`, input);
12762
12762
  }
12763
+ /** Delete a set. Refused with `SIGNAL_SET_BOUND` while any binding is enabled; results already written keep naming it. */
12764
+ async deleteSet(id) {
12765
+ return this.getClient().delete(`/signal-sets/${pathId(id)}`);
12766
+ }
12763
12767
  /** Publish a new immutable version and make it current. Existing bindings keep theirs. */
12764
12768
  async publishVersion(id, definition) {
12765
12769
  return this.getClient().post(`/signal-sets/${pathId(id)}/versions`, { definition });
@@ -14701,7 +14705,7 @@ function transformQueryParams(params) {
14701
14705
  }
14702
14706
  //#endregion
14703
14707
  //#region src/version.ts
14704
- const SDK_VERSION = "11.7.0";
14708
+ const SDK_VERSION = "11.8.0";
14705
14709
  /**
14706
14710
  * Canonical client identity the API uses for attribution
14707
14711
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
package/dist/index.d.cts CHANGED
@@ -21034,6 +21034,8 @@ interface paths {
21034
21034
  scheduleId?: string;
21035
21035
  /** @description Only events for this eval suite */
21036
21036
  suiteId?: string;
21037
+ /** @description Only events for this simulation */
21038
+ simulationId?: string;
21037
21039
  /** @description Only events for this delegated task */
21038
21040
  taskId?: string;
21039
21041
  /** @description Signal events only: keep occurrences for this signal key */
@@ -53927,7 +53929,79 @@ interface paths {
53927
53929
  };
53928
53930
  put?: never;
53929
53931
  post?: never;
53930
- delete?: never;
53932
+ /**
53933
+ * Delete a signal set
53934
+ * @description Remove a set from every list and read and free its name. Results and stats already written keep naming it. Refused with SIGNAL_SET_BOUND (details.bindingIds) while any binding is enabled: unbind each first. Built-in sets cannot be deleted.
53935
+ */
53936
+ delete: {
53937
+ parameters: {
53938
+ query?: never;
53939
+ header?: never;
53940
+ path: {
53941
+ id: string;
53942
+ };
53943
+ cookie?: never;
53944
+ };
53945
+ requestBody?: never;
53946
+ responses: {
53947
+ /** @description Deleted */
53948
+ 200: {
53949
+ headers: {
53950
+ [name: string]: unknown;
53951
+ };
53952
+ content: {
53953
+ "application/json": {
53954
+ success: boolean;
53955
+ };
53956
+ };
53957
+ };
53958
+ /** @description Invalid request */
53959
+ 400: {
53960
+ headers: {
53961
+ [name: string]: unknown;
53962
+ };
53963
+ content: {
53964
+ "application/json": components["schemas"]["SignalError"];
53965
+ };
53966
+ };
53967
+ /** @description Unauthorized */
53968
+ 401: {
53969
+ headers: {
53970
+ [name: string]: unknown;
53971
+ };
53972
+ content: {
53973
+ "application/json": components["schemas"]["Error"];
53974
+ };
53975
+ };
53976
+ /** @description Insufficient permissions, or no organization context */
53977
+ 403: {
53978
+ headers: {
53979
+ [name: string]: unknown;
53980
+ };
53981
+ content: {
53982
+ "application/json": components["schemas"]["SignalError"];
53983
+ };
53984
+ };
53985
+ /** @description Not found */
53986
+ 404: {
53987
+ headers: {
53988
+ [name: string]: unknown;
53989
+ };
53990
+ content: {
53991
+ "application/json": components["schemas"]["SignalError"];
53992
+ };
53993
+ };
53994
+ /** @description Still bound, or a built-in set */
53995
+ 409: {
53996
+ headers: {
53997
+ [name: string]: unknown;
53998
+ };
53999
+ content: {
54000
+ "application/json": components["schemas"]["SignalError"];
54001
+ };
54002
+ };
54003
+ };
54004
+ };
53931
54005
  options?: never;
53932
54006
  head?: never;
53933
54007
  /**
@@ -58023,7 +58097,7 @@ interface paths {
58023
58097
  "application/json": components["schemas"]["ToolExecuteError"];
58024
58098
  };
58025
58099
  };
58026
- /** @description A judgment the gateway cannot serve: an unlisted model or no gateway credential */
58100
+ /** @description A judgment the gateway cannot serve (an unlisted model or no gateway credential), or a tool that templates `{{_identity.token}}`, which a management-API execute has no admitted end user to mint */
58027
58101
  422: {
58028
58102
  headers: {
58029
58103
  [name: string]: unknown;
@@ -58131,7 +58205,7 @@ interface paths {
58131
58205
  "application/json": components["schemas"]["ToolExecuteError"];
58132
58206
  };
58133
58207
  };
58134
- /** @description A judgment the gateway cannot serve: an unlisted model or no gateway credential */
58208
+ /** @description A judgment the gateway cannot serve (an unlisted model or no gateway credential), or a tool that templates `{{_identity.token}}`, which a management-API execute has no admitted end user to mint */
58135
58209
  422: {
58136
58210
  headers: {
58137
58211
  [name: string]: unknown;
@@ -62432,7 +62506,7 @@ interface components {
62432
62506
  [key: string]: unknown;
62433
62507
  };
62434
62508
  /** @enum {string} */
62435
- name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
62509
+ name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
62436
62510
  /** @description JSON Schema for the occurrence `data` */
62437
62511
  payloadSchema: {
62438
62512
  [key: string]: unknown;
@@ -62457,7 +62531,7 @@ interface components {
62457
62531
  /** @description Occurrence id (typeid, `pev_` prefix) */
62458
62532
  eventId: string;
62459
62533
  /** @enum {string} */
62460
- name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
62534
+ name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
62461
62535
  /** @description When it happened (ISO 8601) */
62462
62536
  timestamp: string;
62463
62537
  };
@@ -75662,6 +75736,10 @@ export declare class SignalsNamespace {
75662
75736
  }): Promise<{
75663
75737
  signalSet: SignalSet;
75664
75738
  }>;
75739
+ /** Delete a set. Refused with `SIGNAL_SET_BOUND` while any binding is enabled; results already written keep naming it. */
75740
+ deleteSet(id: string): Promise<{
75741
+ success: boolean;
75742
+ }>;
75665
75743
  /** Publish a new immutable version and make it current. Existing bindings keep theirs. */
75666
75744
  publishVersion(id: string, definition: SignalSetDefinitionInput): Promise<{
75667
75745
  signalSet: SignalSet;
@@ -77300,6 +77378,8 @@ interface SimulationToolCallFacts {
77300
77378
  designedBy?: 'shape' | 'paginate' | 'error_design' | 'accept_identifier' | 'add_tool';
77301
77379
  /** The synthesizer's answer failed its contract twice, so the call was answered with a stub. */
77302
77380
  synthesisFailed?: boolean;
77381
+ /** A recorded read answer that shows the values of the episode's own earlier accepted recorded writes. */
77382
+ writeOverlay?: boolean;
77303
77383
  /** No rung could answer the call under its policy, so it got a stub; a policy stub of a write never sets it. */
77304
77384
  unanswered?: boolean;
77305
77385
  /** Why the synthesizer answered as it did, on a synthesized call. */
package/dist/index.d.ts CHANGED
@@ -21034,6 +21034,8 @@ interface paths {
21034
21034
  scheduleId?: string;
21035
21035
  /** @description Only events for this eval suite */
21036
21036
  suiteId?: string;
21037
+ /** @description Only events for this simulation */
21038
+ simulationId?: string;
21037
21039
  /** @description Only events for this delegated task */
21038
21040
  taskId?: string;
21039
21041
  /** @description Signal events only: keep occurrences for this signal key */
@@ -53927,7 +53929,79 @@ interface paths {
53927
53929
  };
53928
53930
  put?: never;
53929
53931
  post?: never;
53930
- delete?: never;
53932
+ /**
53933
+ * Delete a signal set
53934
+ * @description Remove a set from every list and read and free its name. Results and stats already written keep naming it. Refused with SIGNAL_SET_BOUND (details.bindingIds) while any binding is enabled: unbind each first. Built-in sets cannot be deleted.
53935
+ */
53936
+ delete: {
53937
+ parameters: {
53938
+ query?: never;
53939
+ header?: never;
53940
+ path: {
53941
+ id: string;
53942
+ };
53943
+ cookie?: never;
53944
+ };
53945
+ requestBody?: never;
53946
+ responses: {
53947
+ /** @description Deleted */
53948
+ 200: {
53949
+ headers: {
53950
+ [name: string]: unknown;
53951
+ };
53952
+ content: {
53953
+ "application/json": {
53954
+ success: boolean;
53955
+ };
53956
+ };
53957
+ };
53958
+ /** @description Invalid request */
53959
+ 400: {
53960
+ headers: {
53961
+ [name: string]: unknown;
53962
+ };
53963
+ content: {
53964
+ "application/json": components["schemas"]["SignalError"];
53965
+ };
53966
+ };
53967
+ /** @description Unauthorized */
53968
+ 401: {
53969
+ headers: {
53970
+ [name: string]: unknown;
53971
+ };
53972
+ content: {
53973
+ "application/json": components["schemas"]["Error"];
53974
+ };
53975
+ };
53976
+ /** @description Insufficient permissions, or no organization context */
53977
+ 403: {
53978
+ headers: {
53979
+ [name: string]: unknown;
53980
+ };
53981
+ content: {
53982
+ "application/json": components["schemas"]["SignalError"];
53983
+ };
53984
+ };
53985
+ /** @description Not found */
53986
+ 404: {
53987
+ headers: {
53988
+ [name: string]: unknown;
53989
+ };
53990
+ content: {
53991
+ "application/json": components["schemas"]["SignalError"];
53992
+ };
53993
+ };
53994
+ /** @description Still bound, or a built-in set */
53995
+ 409: {
53996
+ headers: {
53997
+ [name: string]: unknown;
53998
+ };
53999
+ content: {
54000
+ "application/json": components["schemas"]["SignalError"];
54001
+ };
54002
+ };
54003
+ };
54004
+ };
53931
54005
  options?: never;
53932
54006
  head?: never;
53933
54007
  /**
@@ -58023,7 +58097,7 @@ interface paths {
58023
58097
  "application/json": components["schemas"]["ToolExecuteError"];
58024
58098
  };
58025
58099
  };
58026
- /** @description A judgment the gateway cannot serve: an unlisted model or no gateway credential */
58100
+ /** @description A judgment the gateway cannot serve (an unlisted model or no gateway credential), or a tool that templates `{{_identity.token}}`, which a management-API execute has no admitted end user to mint */
58027
58101
  422: {
58028
58102
  headers: {
58029
58103
  [name: string]: unknown;
@@ -58131,7 +58205,7 @@ interface paths {
58131
58205
  "application/json": components["schemas"]["ToolExecuteError"];
58132
58206
  };
58133
58207
  };
58134
- /** @description A judgment the gateway cannot serve: an unlisted model or no gateway credential */
58208
+ /** @description A judgment the gateway cannot serve (an unlisted model or no gateway credential), or a tool that templates `{{_identity.token}}`, which a management-API execute has no admitted end user to mint */
58135
58209
  422: {
58136
58210
  headers: {
58137
58211
  [name: string]: unknown;
@@ -62432,7 +62506,7 @@ interface components {
62432
62506
  [key: string]: unknown;
62433
62507
  };
62434
62508
  /** @enum {string} */
62435
- name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
62509
+ name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
62436
62510
  /** @description JSON Schema for the occurrence `data` */
62437
62511
  payloadSchema: {
62438
62512
  [key: string]: unknown;
@@ -62457,7 +62531,7 @@ interface components {
62457
62531
  /** @description Occurrence id (typeid, `pev_` prefix) */
62458
62532
  eventId: string;
62459
62533
  /** @enum {string} */
62460
- name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
62534
+ name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
62461
62535
  /** @description When it happened (ISO 8601) */
62462
62536
  timestamp: string;
62463
62537
  };
@@ -75662,6 +75736,10 @@ export declare class SignalsNamespace {
75662
75736
  }): Promise<{
75663
75737
  signalSet: SignalSet;
75664
75738
  }>;
75739
+ /** Delete a set. Refused with `SIGNAL_SET_BOUND` while any binding is enabled; results already written keep naming it. */
75740
+ deleteSet(id: string): Promise<{
75741
+ success: boolean;
75742
+ }>;
75665
75743
  /** Publish a new immutable version and make it current. Existing bindings keep theirs. */
75666
75744
  publishVersion(id: string, definition: SignalSetDefinitionInput): Promise<{
75667
75745
  signalSet: SignalSet;
@@ -77300,6 +77378,8 @@ interface SimulationToolCallFacts {
77300
77378
  designedBy?: 'shape' | 'paginate' | 'error_design' | 'accept_identifier' | 'add_tool';
77301
77379
  /** The synthesizer's answer failed its contract twice, so the call was answered with a stub. */
77302
77380
  synthesisFailed?: boolean;
77381
+ /** A recorded read answer that shows the values of the episode's own earlier accepted recorded writes. */
77382
+ writeOverlay?: boolean;
77303
77383
  /** No rung could answer the call under its policy, so it got a stub; a policy stub of a write never sets it. */
77304
77384
  unanswered?: boolean;
77305
77385
  /** Why the synthesizer answered as it did, on a synthesized call. */
package/dist/index.mjs CHANGED
@@ -12759,6 +12759,10 @@ var SignalsNamespace = class {
12759
12759
  async updateSet(id, input) {
12760
12760
  return this.getClient().patch(`/signal-sets/${pathId(id)}`, input);
12761
12761
  }
12762
+ /** Delete a set. Refused with `SIGNAL_SET_BOUND` while any binding is enabled; results already written keep naming it. */
12763
+ async deleteSet(id) {
12764
+ return this.getClient().delete(`/signal-sets/${pathId(id)}`);
12765
+ }
12762
12766
  /** Publish a new immutable version and make it current. Existing bindings keep theirs. */
12763
12767
  async publishVersion(id, definition) {
12764
12768
  return this.getClient().post(`/signal-sets/${pathId(id)}/versions`, { definition });
@@ -14700,7 +14704,7 @@ function transformQueryParams(params) {
14700
14704
  }
14701
14705
  //#endregion
14702
14706
  //#region src/version.ts
14703
- const SDK_VERSION = "11.7.0";
14707
+ const SDK_VERSION = "11.8.0";
14704
14708
  /**
14705
14709
  * Canonical client identity the API uses for attribution
14706
14710
  * (`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.7.0",
3
+ "version": "11.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",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {},
26
26
  "devDependencies": {
27
- "@runtypelabs/shared": "3.95.0",
27
+ "@runtypelabs/shared": "3.97.0",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsdown": "^0.23.0",
30
30
  "typescript": "^6.0.3",