@runtypelabs/sdk 5.2.2 → 5.3.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
@@ -4139,7 +4139,8 @@ var AGENT_CONFIG_KEYS = [
4139
4139
  "loggingPolicy",
4140
4140
  "temporal",
4141
4141
  "memory",
4142
- "sandbox"
4142
+ "sandbox",
4143
+ "tenancyStrategy"
4143
4144
  ];
4144
4145
  var AGENT_CONFIG_KEY_LIST = [...AGENT_CONFIG_KEYS].sort();
4145
4146
  function isPlainObject3(value) {
@@ -5671,7 +5672,7 @@ var Runtype = class {
5671
5672
 
5672
5673
  // src/version.ts
5673
5674
  var FALLBACK_VERSION = "0.0.0";
5674
- var SDK_VERSION = "5.2.2".length > 0 ? "5.2.2" : FALLBACK_VERSION;
5675
+ var SDK_VERSION = "5.3.0".length > 0 ? "5.3.0" : FALLBACK_VERSION;
5675
5676
  var RUNTYPE_CLIENT_KIND = "sdk";
5676
5677
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
5677
5678
 
package/dist/index.d.cts CHANGED
@@ -723,10 +723,10 @@ interface paths {
723
723
  enabled: boolean;
724
724
  /** @enum {string} */
725
725
  instanceType?: "standard-1" | "standard-2" | "standard-3" | "standard-4";
726
- networkAccess?: ("none" | "essentials") | {
726
+ networkAccess?: ("none" | "essentials" | "open") | {
727
727
  allow?: string[];
728
728
  /** @enum {string} */
729
- profile?: "none" | "essentials";
729
+ profile?: "none" | "essentials" | "open";
730
730
  };
731
731
  /** @enum {string} */
732
732
  persistence?: "ephemeral" | "conversation" | "named";
@@ -747,6 +747,16 @@ interface paths {
747
747
  injectElapsed?: boolean;
748
748
  timezone?: string;
749
749
  };
750
+ tenancyStrategy?: {
751
+ assuranceFloor?: {
752
+ /** @enum {string} */
753
+ endUser?: "asserted" | "verified";
754
+ /** @enum {string} */
755
+ tenant?: "asserted" | "verified";
756
+ };
757
+ /** @enum {string} */
758
+ preset: "internal" | "tenant-isolated" | "end-user-isolated";
759
+ };
750
760
  tools?: {
751
761
  approval?: {
752
762
  choices?: {
@@ -1115,10 +1125,10 @@ interface paths {
1115
1125
  enabled: boolean;
1116
1126
  /** @enum {string} */
1117
1127
  instanceType?: "standard-1" | "standard-2" | "standard-3" | "standard-4";
1118
- networkAccess?: ("none" | "essentials") | {
1128
+ networkAccess?: ("none" | "essentials" | "open") | {
1119
1129
  allow?: string[];
1120
1130
  /** @enum {string} */
1121
- profile?: "none" | "essentials";
1131
+ profile?: "none" | "essentials" | "open";
1122
1132
  };
1123
1133
  /** @enum {string} */
1124
1134
  persistence?: "ephemeral" | "conversation" | "named";
@@ -1139,6 +1149,16 @@ interface paths {
1139
1149
  injectElapsed?: boolean;
1140
1150
  timezone?: string;
1141
1151
  };
1152
+ tenancyStrategy?: {
1153
+ assuranceFloor?: {
1154
+ /** @enum {string} */
1155
+ endUser?: "asserted" | "verified";
1156
+ /** @enum {string} */
1157
+ tenant?: "asserted" | "verified";
1158
+ };
1159
+ /** @enum {string} */
1160
+ preset: "internal" | "tenant-isolated" | "end-user-isolated";
1161
+ };
1142
1162
  tools?: {
1143
1163
  approval?: {
1144
1164
  choices?: {
@@ -1775,6 +1795,25 @@ interface paths {
1775
1795
  reasoningSummary?: "auto" | "detailed";
1776
1796
  thinkingBudget?: number;
1777
1797
  };
1798
+ sandbox?: {
1799
+ enabled: boolean;
1800
+ /** @enum {string} */
1801
+ instanceType?: "standard-1" | "standard-2" | "standard-3" | "standard-4";
1802
+ networkAccess?: ("none" | "essentials" | "open") | {
1803
+ allow?: string[];
1804
+ /** @enum {string} */
1805
+ profile?: "none" | "essentials" | "open";
1806
+ };
1807
+ /** @enum {string} */
1808
+ persistence?: "ephemeral" | "conversation" | "named";
1809
+ /** @enum {string} */
1810
+ provider?: "runtype-sandbox" | "daytona";
1811
+ requireApprovalForBash?: boolean;
1812
+ /** @enum {string} */
1813
+ sleepAfter?: "5m" | "15m" | "30m" | "1h";
1814
+ /** @enum {string} */
1815
+ ttl?: "5m" | "1h" | "24h" | "unlimited";
1816
+ };
1778
1817
  seed?: number;
1779
1818
  systemPrompt?: string;
1780
1819
  temperature?: number;
@@ -1784,6 +1823,16 @@ interface paths {
1784
1823
  injectElapsed?: boolean;
1785
1824
  timezone?: string;
1786
1825
  };
1826
+ tenancyStrategy?: {
1827
+ assuranceFloor?: {
1828
+ /** @enum {string} */
1829
+ endUser?: "asserted" | "verified";
1830
+ /** @enum {string} */
1831
+ tenant?: "asserted" | "verified";
1832
+ };
1833
+ /** @enum {string} */
1834
+ preset: "internal" | "tenant-isolated" | "end-user-isolated";
1835
+ };
1787
1836
  tools?: {
1788
1837
  approval?: {
1789
1838
  choices?: {
@@ -35719,10 +35768,10 @@ interface components {
35719
35768
  enabled: boolean;
35720
35769
  /** @enum {string} */
35721
35770
  instanceType?: "standard-1" | "standard-2" | "standard-3" | "standard-4";
35722
- networkAccess?: ("none" | "essentials") | {
35771
+ networkAccess?: ("none" | "essentials" | "open") | {
35723
35772
  allow?: string[];
35724
35773
  /** @enum {string} */
35725
- profile?: "none" | "essentials";
35774
+ profile?: "none" | "essentials" | "open";
35726
35775
  };
35727
35776
  /** @enum {string} */
35728
35777
  persistence?: "ephemeral" | "conversation" | "named";
@@ -35743,6 +35792,16 @@ interface components {
35743
35792
  injectElapsed?: boolean;
35744
35793
  timezone?: string;
35745
35794
  };
35795
+ tenancyStrategy?: {
35796
+ assuranceFloor?: {
35797
+ /** @enum {string} */
35798
+ endUser?: "asserted" | "verified";
35799
+ /** @enum {string} */
35800
+ tenant?: "asserted" | "verified";
35801
+ };
35802
+ /** @enum {string} */
35803
+ preset: "internal" | "tenant-isolated" | "end-user-isolated";
35804
+ };
35746
35805
  tools?: {
35747
35806
  approval?: {
35748
35807
  choices?: {
@@ -38891,6 +38950,17 @@ interface DispatchRequest {
38891
38950
  email?: string;
38892
38951
  [key: string]: unknown;
38893
38952
  };
38953
+ /**
38954
+ * Product Tenant identity — the builder's customer/account/workspace *inside* a
38955
+ * Product (the customer's customer), nested under the Builder Org (`_user`) and
38956
+ * above the End User (`_endUser`). Exposed as `{{_tenant.id}}` (and any
38957
+ * passthrough fields under `_tenant.*`) in template variables. Use it to address
38958
+ * the account-level scope shared by all of a tenant's end-users. Caller-asserted.
38959
+ */
38960
+ tenant?: {
38961
+ id: string;
38962
+ [key: string]: unknown;
38963
+ };
38894
38964
  options?: {
38895
38965
  streamResponse?: boolean;
38896
38966
  modelOverride?: string;
@@ -43959,6 +44029,17 @@ interface AgentExecuteRequest {
43959
44029
  email?: string;
43960
44030
  [key: string]: unknown;
43961
44031
  };
44032
+ /**
44033
+ * Product Tenant identity — the builder's customer/account/workspace *inside* a
44034
+ * Product, nested under the Builder Org (`_user`) and above the End User
44035
+ * (`_endUser`). Exposed as `{{_tenant.id}}` (and passthrough fields under
44036
+ * `_tenant.*`) in template variables. Addresses the account-level scope shared
44037
+ * by all of a tenant's end-users. Caller-asserted.
44038
+ */
44039
+ tenant?: {
44040
+ id: string;
44041
+ [key: string]: unknown;
44042
+ };
43962
44043
  /** Enable streaming response (default: true) */
43963
44044
  streamResponse?: boolean;
43964
44045
  /** Enable debug mode to include all fields in events */
package/dist/index.d.ts CHANGED
@@ -723,10 +723,10 @@ interface paths {
723
723
  enabled: boolean;
724
724
  /** @enum {string} */
725
725
  instanceType?: "standard-1" | "standard-2" | "standard-3" | "standard-4";
726
- networkAccess?: ("none" | "essentials") | {
726
+ networkAccess?: ("none" | "essentials" | "open") | {
727
727
  allow?: string[];
728
728
  /** @enum {string} */
729
- profile?: "none" | "essentials";
729
+ profile?: "none" | "essentials" | "open";
730
730
  };
731
731
  /** @enum {string} */
732
732
  persistence?: "ephemeral" | "conversation" | "named";
@@ -747,6 +747,16 @@ interface paths {
747
747
  injectElapsed?: boolean;
748
748
  timezone?: string;
749
749
  };
750
+ tenancyStrategy?: {
751
+ assuranceFloor?: {
752
+ /** @enum {string} */
753
+ endUser?: "asserted" | "verified";
754
+ /** @enum {string} */
755
+ tenant?: "asserted" | "verified";
756
+ };
757
+ /** @enum {string} */
758
+ preset: "internal" | "tenant-isolated" | "end-user-isolated";
759
+ };
750
760
  tools?: {
751
761
  approval?: {
752
762
  choices?: {
@@ -1115,10 +1125,10 @@ interface paths {
1115
1125
  enabled: boolean;
1116
1126
  /** @enum {string} */
1117
1127
  instanceType?: "standard-1" | "standard-2" | "standard-3" | "standard-4";
1118
- networkAccess?: ("none" | "essentials") | {
1128
+ networkAccess?: ("none" | "essentials" | "open") | {
1119
1129
  allow?: string[];
1120
1130
  /** @enum {string} */
1121
- profile?: "none" | "essentials";
1131
+ profile?: "none" | "essentials" | "open";
1122
1132
  };
1123
1133
  /** @enum {string} */
1124
1134
  persistence?: "ephemeral" | "conversation" | "named";
@@ -1139,6 +1149,16 @@ interface paths {
1139
1149
  injectElapsed?: boolean;
1140
1150
  timezone?: string;
1141
1151
  };
1152
+ tenancyStrategy?: {
1153
+ assuranceFloor?: {
1154
+ /** @enum {string} */
1155
+ endUser?: "asserted" | "verified";
1156
+ /** @enum {string} */
1157
+ tenant?: "asserted" | "verified";
1158
+ };
1159
+ /** @enum {string} */
1160
+ preset: "internal" | "tenant-isolated" | "end-user-isolated";
1161
+ };
1142
1162
  tools?: {
1143
1163
  approval?: {
1144
1164
  choices?: {
@@ -1775,6 +1795,25 @@ interface paths {
1775
1795
  reasoningSummary?: "auto" | "detailed";
1776
1796
  thinkingBudget?: number;
1777
1797
  };
1798
+ sandbox?: {
1799
+ enabled: boolean;
1800
+ /** @enum {string} */
1801
+ instanceType?: "standard-1" | "standard-2" | "standard-3" | "standard-4";
1802
+ networkAccess?: ("none" | "essentials" | "open") | {
1803
+ allow?: string[];
1804
+ /** @enum {string} */
1805
+ profile?: "none" | "essentials" | "open";
1806
+ };
1807
+ /** @enum {string} */
1808
+ persistence?: "ephemeral" | "conversation" | "named";
1809
+ /** @enum {string} */
1810
+ provider?: "runtype-sandbox" | "daytona";
1811
+ requireApprovalForBash?: boolean;
1812
+ /** @enum {string} */
1813
+ sleepAfter?: "5m" | "15m" | "30m" | "1h";
1814
+ /** @enum {string} */
1815
+ ttl?: "5m" | "1h" | "24h" | "unlimited";
1816
+ };
1778
1817
  seed?: number;
1779
1818
  systemPrompt?: string;
1780
1819
  temperature?: number;
@@ -1784,6 +1823,16 @@ interface paths {
1784
1823
  injectElapsed?: boolean;
1785
1824
  timezone?: string;
1786
1825
  };
1826
+ tenancyStrategy?: {
1827
+ assuranceFloor?: {
1828
+ /** @enum {string} */
1829
+ endUser?: "asserted" | "verified";
1830
+ /** @enum {string} */
1831
+ tenant?: "asserted" | "verified";
1832
+ };
1833
+ /** @enum {string} */
1834
+ preset: "internal" | "tenant-isolated" | "end-user-isolated";
1835
+ };
1787
1836
  tools?: {
1788
1837
  approval?: {
1789
1838
  choices?: {
@@ -35719,10 +35768,10 @@ interface components {
35719
35768
  enabled: boolean;
35720
35769
  /** @enum {string} */
35721
35770
  instanceType?: "standard-1" | "standard-2" | "standard-3" | "standard-4";
35722
- networkAccess?: ("none" | "essentials") | {
35771
+ networkAccess?: ("none" | "essentials" | "open") | {
35723
35772
  allow?: string[];
35724
35773
  /** @enum {string} */
35725
- profile?: "none" | "essentials";
35774
+ profile?: "none" | "essentials" | "open";
35726
35775
  };
35727
35776
  /** @enum {string} */
35728
35777
  persistence?: "ephemeral" | "conversation" | "named";
@@ -35743,6 +35792,16 @@ interface components {
35743
35792
  injectElapsed?: boolean;
35744
35793
  timezone?: string;
35745
35794
  };
35795
+ tenancyStrategy?: {
35796
+ assuranceFloor?: {
35797
+ /** @enum {string} */
35798
+ endUser?: "asserted" | "verified";
35799
+ /** @enum {string} */
35800
+ tenant?: "asserted" | "verified";
35801
+ };
35802
+ /** @enum {string} */
35803
+ preset: "internal" | "tenant-isolated" | "end-user-isolated";
35804
+ };
35746
35805
  tools?: {
35747
35806
  approval?: {
35748
35807
  choices?: {
@@ -38891,6 +38950,17 @@ interface DispatchRequest {
38891
38950
  email?: string;
38892
38951
  [key: string]: unknown;
38893
38952
  };
38953
+ /**
38954
+ * Product Tenant identity — the builder's customer/account/workspace *inside* a
38955
+ * Product (the customer's customer), nested under the Builder Org (`_user`) and
38956
+ * above the End User (`_endUser`). Exposed as `{{_tenant.id}}` (and any
38957
+ * passthrough fields under `_tenant.*`) in template variables. Use it to address
38958
+ * the account-level scope shared by all of a tenant's end-users. Caller-asserted.
38959
+ */
38960
+ tenant?: {
38961
+ id: string;
38962
+ [key: string]: unknown;
38963
+ };
38894
38964
  options?: {
38895
38965
  streamResponse?: boolean;
38896
38966
  modelOverride?: string;
@@ -43959,6 +44029,17 @@ interface AgentExecuteRequest {
43959
44029
  email?: string;
43960
44030
  [key: string]: unknown;
43961
44031
  };
44032
+ /**
44033
+ * Product Tenant identity — the builder's customer/account/workspace *inside* a
44034
+ * Product, nested under the Builder Org (`_user`) and above the End User
44035
+ * (`_endUser`). Exposed as `{{_tenant.id}}` (and passthrough fields under
44036
+ * `_tenant.*`) in template variables. Addresses the account-level scope shared
44037
+ * by all of a tenant's end-users. Caller-asserted.
44038
+ */
44039
+ tenant?: {
44040
+ id: string;
44041
+ [key: string]: unknown;
44042
+ };
43962
44043
  /** Enable streaming response (default: true) */
43963
44044
  streamResponse?: boolean;
43964
44045
  /** Enable debug mode to include all fields in events */
package/dist/index.mjs CHANGED
@@ -3978,7 +3978,8 @@ var AGENT_CONFIG_KEYS = [
3978
3978
  "loggingPolicy",
3979
3979
  "temporal",
3980
3980
  "memory",
3981
- "sandbox"
3981
+ "sandbox",
3982
+ "tenancyStrategy"
3982
3983
  ];
3983
3984
  var AGENT_CONFIG_KEY_LIST = [...AGENT_CONFIG_KEYS].sort();
3984
3985
  function isPlainObject3(value) {
@@ -5510,7 +5511,7 @@ var Runtype = class {
5510
5511
 
5511
5512
  // src/version.ts
5512
5513
  var FALLBACK_VERSION = "0.0.0";
5513
- var SDK_VERSION = "5.2.2".length > 0 ? "5.2.2" : FALLBACK_VERSION;
5514
+ var SDK_VERSION = "5.3.0".length > 0 ? "5.3.0" : FALLBACK_VERSION;
5514
5515
  var RUNTYPE_CLIENT_KIND = "sdk";
5515
5516
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
5516
5517
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "5.2.2",
3
+ "version": "5.3.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",
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "openapi-typescript": "^7.13.0",
28
28
  "tsup": "^8.0.2",
29
- "typescript": "^5.3.3",
29
+ "typescript": "^6.0.3",
30
30
  "vitest": "^4.1.0"
31
31
  },
32
32
  "keywords": [
@@ -62,7 +62,7 @@
62
62
  "scripts": {
63
63
  "build": "tsup",
64
64
  "dev": "tsup --watch",
65
- "typecheck": "tsc --noEmit",
65
+ "typecheck": "tsgo --noEmit",
66
66
  "clean": "rm -rf dist",
67
67
  "test": "vitest run",
68
68
  "test:watch": "vitest watch",