@runtypelabs/sdk 9.10.1 → 9.11.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
@@ -13553,7 +13553,7 @@ function transformQueryParams(params) {
13553
13553
 
13554
13554
  // src/version.ts
13555
13555
  var FALLBACK_VERSION = "0.0.0";
13556
- var SDK_VERSION = "9.10.1".length > 0 ? "9.10.1" : FALLBACK_VERSION;
13556
+ var SDK_VERSION = "9.11.0".length > 0 ? "9.11.0" : FALLBACK_VERSION;
13557
13557
  var RUNTYPE_CLIENT_KIND = "sdk";
13558
13558
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
13559
13559
 
package/dist/index.d.cts CHANGED
@@ -774,6 +774,8 @@ interface paths {
774
774
  memory?: {
775
775
  enabled: boolean;
776
776
  injectSummary?: boolean;
777
+ /** @enum {string} */
778
+ pointerScope?: "shared" | "alias" | "version";
777
779
  profileTemplate?: string;
778
780
  };
779
781
  model?: string;
@@ -1285,6 +1287,8 @@ interface paths {
1285
1287
  memory?: {
1286
1288
  enabled: boolean;
1287
1289
  injectSummary?: boolean;
1290
+ /** @enum {string} */
1291
+ pointerScope?: "shared" | "alias" | "version";
1288
1292
  profileTemplate?: string;
1289
1293
  };
1290
1294
  model?: string;
@@ -2061,6 +2065,8 @@ interface paths {
2061
2065
  memory?: {
2062
2066
  enabled: boolean;
2063
2067
  injectSummary?: boolean;
2068
+ /** @enum {string} */
2069
+ pointerScope?: "shared" | "alias" | "version";
2064
2070
  profileTemplate?: string;
2065
2071
  };
2066
2072
  model?: string;
@@ -7030,6 +7036,10 @@ interface paths {
7030
7036
  rateLimitPerHour: number | null;
7031
7037
  rateLimitPerMinute: number | null;
7032
7038
  sessionIdleTimeoutMinutes: number | null;
7039
+ /** @description Release alias this token follows, re-resolved on every admission. Null when the token follows no pointer. */
7040
+ targetAlias: string | null;
7041
+ /** @description Exact agent version this token runs. Null when the token pins no version. */
7042
+ targetVersionId: string | null;
7033
7043
  tokenHint: string | null;
7034
7044
  tokenPrefix: string;
7035
7045
  tokenValue: string | null;
@@ -7115,7 +7125,10 @@ interface paths {
7115
7125
  /** @default 100 */
7116
7126
  maxMessagesPerSession?: number;
7117
7127
  name: string;
7118
- /** @default latest */
7128
+ /**
7129
+ * @description Legacy widget-version mode: 'latest' or 'published'. It has never selected an agent version and still does not. An agent version id (agentver_...) is rejected on create; use targetVersionId to pin a version or targetAlias to follow a release alias. An update may echo back the value already stored.
7130
+ * @default latest
7131
+ */
7119
7132
  pinToVersion?: string;
7120
7133
  productSurfaceId?: string;
7121
7134
  /** @default 100 */
@@ -7124,6 +7137,10 @@ interface paths {
7124
7137
  rateLimitPerMinute?: number;
7125
7138
  /** @default 30 */
7126
7139
  sessionIdleTimeoutMinutes?: number;
7140
+ /** @description Release alias this token follows. Re-resolved on every admission, so a deploy at that alias changes what the token runs. Mutually exclusive with targetVersionId. */
7141
+ targetAlias?: string | null;
7142
+ /** @description Exact agent version this token runs. Never re-resolved. Mutually exclusive with targetAlias, and the token must carry exactly one agent id. */
7143
+ targetVersionId?: string | null;
7127
7144
  };
7128
7145
  };
7129
7146
  };
@@ -7157,6 +7174,10 @@ interface paths {
7157
7174
  rateLimitPerHour: number | null;
7158
7175
  rateLimitPerMinute: number | null;
7159
7176
  sessionIdleTimeoutMinutes: number | null;
7177
+ /** @description Release alias this token follows, re-resolved on every admission. Null when the token follows no pointer. */
7178
+ targetAlias: string | null;
7179
+ /** @description Exact agent version this token runs. Null when the token pins no version. */
7180
+ targetVersionId: string | null;
7160
7181
  tokenHint: string | null;
7161
7182
  tokenPrefix: string;
7162
7183
  tokenValue: string | null;
@@ -7274,6 +7295,10 @@ interface paths {
7274
7295
  rateLimitPerHour: number | null;
7275
7296
  rateLimitPerMinute: number | null;
7276
7297
  sessionIdleTimeoutMinutes: number | null;
7298
+ /** @description Release alias this token follows, re-resolved on every admission. Null when the token follows no pointer. */
7299
+ targetAlias: string | null;
7300
+ /** @description Exact agent version this token runs. Null when the token pins no version. */
7301
+ targetVersionId: string | null;
7277
7302
  tokenHint: string | null;
7278
7303
  tokenPrefix: string;
7279
7304
  tokenValue: string | null;
@@ -7356,10 +7381,13 @@ interface paths {
7356
7381
  isActive?: boolean;
7357
7382
  maxMessagesPerSession?: number;
7358
7383
  name?: string;
7384
+ /** @description Legacy widget-version mode: 'latest' or 'published'. A NEW agent version id (agentver_...) is rejected; echoing back the value already stored is accepted and ignored, so a read-modify-write client can save unrelated fields. Use targetVersionId to pin a version. */
7359
7385
  pinToVersion?: string;
7360
7386
  rateLimitPerHour?: number;
7361
7387
  rateLimitPerMinute?: number;
7362
7388
  sessionIdleTimeoutMinutes?: number;
7389
+ targetAlias?: string | null;
7390
+ targetVersionId?: string | null;
7363
7391
  };
7364
7392
  };
7365
7393
  };
@@ -7393,6 +7421,10 @@ interface paths {
7393
7421
  rateLimitPerHour: number | null;
7394
7422
  rateLimitPerMinute: number | null;
7395
7423
  sessionIdleTimeoutMinutes: number | null;
7424
+ /** @description Release alias this token follows, re-resolved on every admission. Null when the token follows no pointer. */
7425
+ targetAlias: string | null;
7426
+ /** @description Exact agent version this token runs. Null when the token pins no version. */
7427
+ targetVersionId: string | null;
7396
7428
  tokenHint: string | null;
7397
7429
  tokenPrefix: string;
7398
7430
  tokenValue: string | null;
@@ -7681,6 +7713,8 @@ interface paths {
7681
7713
  isActive: boolean;
7682
7714
  name: string | null;
7683
7715
  pinToVersion: string | null;
7716
+ targetAlias: string | null;
7717
+ targetVersionId: string | null;
7684
7718
  tokenHint: string | null;
7685
7719
  tokenPrefix: string;
7686
7720
  tokenValue: string | null;
@@ -11998,6 +12032,8 @@ interface paths {
11998
12032
  memory?: {
11999
12033
  enabled: boolean;
12000
12034
  injectSummary?: boolean;
12035
+ /** @enum {string} */
12036
+ pointerScope?: "shared" | "alias" | "version";
12001
12037
  profileTemplate?: string;
12002
12038
  };
12003
12039
  model?: string;
@@ -12415,6 +12451,8 @@ interface paths {
12415
12451
  memory?: {
12416
12452
  enabled: boolean;
12417
12453
  injectSummary?: boolean;
12454
+ /** @enum {string} */
12455
+ pointerScope?: "shared" | "alias" | "version";
12418
12456
  profileTemplate?: string;
12419
12457
  };
12420
12458
  model?: string;
@@ -46785,6 +46823,8 @@ interface components {
46785
46823
  memory?: {
46786
46824
  enabled: boolean;
46787
46825
  injectSummary?: boolean;
46826
+ /** @enum {string} */
46827
+ pointerScope?: "shared" | "alias" | "version";
46788
46828
  profileTemplate?: string;
46789
46829
  };
46790
46830
  model?: string;
@@ -56022,6 +56062,10 @@ interface ClientToken {
56022
56062
  allowedOrigins: string[];
56023
56063
  environment: ClientTokenEnvironment;
56024
56064
  pinToVersion: ClientTokenVersionPin | null;
56065
+ /** Release alias this token follows, re-resolved on every admission (ADR 0025). */
56066
+ targetAlias: string | null;
56067
+ /** Exact agent version this token is pinned to (ADR 0025). */
56068
+ targetVersionId: string | null;
56025
56069
  rateLimitPerMinute: number | null;
56026
56070
  rateLimitPerHour: number | null;
56027
56071
  maxMessagesPerSession: number | null;
@@ -56050,6 +56094,10 @@ interface CreateClientTokenRequest {
56050
56094
  allowedOrigins: string[];
56051
56095
  environment?: ClientTokenEnvironment;
56052
56096
  pinToVersion?: ClientTokenVersionPin;
56097
+ /** Release alias this token follows. Mutually exclusive with `targetVersionId`. */
56098
+ targetAlias?: string | null;
56099
+ /** Exact agent version this token pins. Mutually exclusive with `targetAlias`. */
56100
+ targetVersionId?: string | null;
56053
56101
  rateLimitPerMinute?: number;
56054
56102
  rateLimitPerHour?: number;
56055
56103
  maxMessagesPerSession?: number;
@@ -56067,6 +56115,10 @@ interface UpdateClientTokenRequest {
56067
56115
  agentIds?: string[];
56068
56116
  allowedOrigins?: string[];
56069
56117
  pinToVersion?: ClientTokenVersionPin;
56118
+ /** Release alias this token follows. Mutually exclusive with `targetVersionId`. */
56119
+ targetAlias?: string | null;
56120
+ /** Exact agent version this token pins. Mutually exclusive with `targetAlias`. */
56121
+ targetVersionId?: string | null;
56070
56122
  rateLimitPerMinute?: number;
56071
56123
  rateLimitPerHour?: number;
56072
56124
  maxMessagesPerSession?: number;
package/dist/index.d.ts CHANGED
@@ -774,6 +774,8 @@ interface paths {
774
774
  memory?: {
775
775
  enabled: boolean;
776
776
  injectSummary?: boolean;
777
+ /** @enum {string} */
778
+ pointerScope?: "shared" | "alias" | "version";
777
779
  profileTemplate?: string;
778
780
  };
779
781
  model?: string;
@@ -1285,6 +1287,8 @@ interface paths {
1285
1287
  memory?: {
1286
1288
  enabled: boolean;
1287
1289
  injectSummary?: boolean;
1290
+ /** @enum {string} */
1291
+ pointerScope?: "shared" | "alias" | "version";
1288
1292
  profileTemplate?: string;
1289
1293
  };
1290
1294
  model?: string;
@@ -2061,6 +2065,8 @@ interface paths {
2061
2065
  memory?: {
2062
2066
  enabled: boolean;
2063
2067
  injectSummary?: boolean;
2068
+ /** @enum {string} */
2069
+ pointerScope?: "shared" | "alias" | "version";
2064
2070
  profileTemplate?: string;
2065
2071
  };
2066
2072
  model?: string;
@@ -7030,6 +7036,10 @@ interface paths {
7030
7036
  rateLimitPerHour: number | null;
7031
7037
  rateLimitPerMinute: number | null;
7032
7038
  sessionIdleTimeoutMinutes: number | null;
7039
+ /** @description Release alias this token follows, re-resolved on every admission. Null when the token follows no pointer. */
7040
+ targetAlias: string | null;
7041
+ /** @description Exact agent version this token runs. Null when the token pins no version. */
7042
+ targetVersionId: string | null;
7033
7043
  tokenHint: string | null;
7034
7044
  tokenPrefix: string;
7035
7045
  tokenValue: string | null;
@@ -7115,7 +7125,10 @@ interface paths {
7115
7125
  /** @default 100 */
7116
7126
  maxMessagesPerSession?: number;
7117
7127
  name: string;
7118
- /** @default latest */
7128
+ /**
7129
+ * @description Legacy widget-version mode: 'latest' or 'published'. It has never selected an agent version and still does not. An agent version id (agentver_...) is rejected on create; use targetVersionId to pin a version or targetAlias to follow a release alias. An update may echo back the value already stored.
7130
+ * @default latest
7131
+ */
7119
7132
  pinToVersion?: string;
7120
7133
  productSurfaceId?: string;
7121
7134
  /** @default 100 */
@@ -7124,6 +7137,10 @@ interface paths {
7124
7137
  rateLimitPerMinute?: number;
7125
7138
  /** @default 30 */
7126
7139
  sessionIdleTimeoutMinutes?: number;
7140
+ /** @description Release alias this token follows. Re-resolved on every admission, so a deploy at that alias changes what the token runs. Mutually exclusive with targetVersionId. */
7141
+ targetAlias?: string | null;
7142
+ /** @description Exact agent version this token runs. Never re-resolved. Mutually exclusive with targetAlias, and the token must carry exactly one agent id. */
7143
+ targetVersionId?: string | null;
7127
7144
  };
7128
7145
  };
7129
7146
  };
@@ -7157,6 +7174,10 @@ interface paths {
7157
7174
  rateLimitPerHour: number | null;
7158
7175
  rateLimitPerMinute: number | null;
7159
7176
  sessionIdleTimeoutMinutes: number | null;
7177
+ /** @description Release alias this token follows, re-resolved on every admission. Null when the token follows no pointer. */
7178
+ targetAlias: string | null;
7179
+ /** @description Exact agent version this token runs. Null when the token pins no version. */
7180
+ targetVersionId: string | null;
7160
7181
  tokenHint: string | null;
7161
7182
  tokenPrefix: string;
7162
7183
  tokenValue: string | null;
@@ -7274,6 +7295,10 @@ interface paths {
7274
7295
  rateLimitPerHour: number | null;
7275
7296
  rateLimitPerMinute: number | null;
7276
7297
  sessionIdleTimeoutMinutes: number | null;
7298
+ /** @description Release alias this token follows, re-resolved on every admission. Null when the token follows no pointer. */
7299
+ targetAlias: string | null;
7300
+ /** @description Exact agent version this token runs. Null when the token pins no version. */
7301
+ targetVersionId: string | null;
7277
7302
  tokenHint: string | null;
7278
7303
  tokenPrefix: string;
7279
7304
  tokenValue: string | null;
@@ -7356,10 +7381,13 @@ interface paths {
7356
7381
  isActive?: boolean;
7357
7382
  maxMessagesPerSession?: number;
7358
7383
  name?: string;
7384
+ /** @description Legacy widget-version mode: 'latest' or 'published'. A NEW agent version id (agentver_...) is rejected; echoing back the value already stored is accepted and ignored, so a read-modify-write client can save unrelated fields. Use targetVersionId to pin a version. */
7359
7385
  pinToVersion?: string;
7360
7386
  rateLimitPerHour?: number;
7361
7387
  rateLimitPerMinute?: number;
7362
7388
  sessionIdleTimeoutMinutes?: number;
7389
+ targetAlias?: string | null;
7390
+ targetVersionId?: string | null;
7363
7391
  };
7364
7392
  };
7365
7393
  };
@@ -7393,6 +7421,10 @@ interface paths {
7393
7421
  rateLimitPerHour: number | null;
7394
7422
  rateLimitPerMinute: number | null;
7395
7423
  sessionIdleTimeoutMinutes: number | null;
7424
+ /** @description Release alias this token follows, re-resolved on every admission. Null when the token follows no pointer. */
7425
+ targetAlias: string | null;
7426
+ /** @description Exact agent version this token runs. Null when the token pins no version. */
7427
+ targetVersionId: string | null;
7396
7428
  tokenHint: string | null;
7397
7429
  tokenPrefix: string;
7398
7430
  tokenValue: string | null;
@@ -7681,6 +7713,8 @@ interface paths {
7681
7713
  isActive: boolean;
7682
7714
  name: string | null;
7683
7715
  pinToVersion: string | null;
7716
+ targetAlias: string | null;
7717
+ targetVersionId: string | null;
7684
7718
  tokenHint: string | null;
7685
7719
  tokenPrefix: string;
7686
7720
  tokenValue: string | null;
@@ -11998,6 +12032,8 @@ interface paths {
11998
12032
  memory?: {
11999
12033
  enabled: boolean;
12000
12034
  injectSummary?: boolean;
12035
+ /** @enum {string} */
12036
+ pointerScope?: "shared" | "alias" | "version";
12001
12037
  profileTemplate?: string;
12002
12038
  };
12003
12039
  model?: string;
@@ -12415,6 +12451,8 @@ interface paths {
12415
12451
  memory?: {
12416
12452
  enabled: boolean;
12417
12453
  injectSummary?: boolean;
12454
+ /** @enum {string} */
12455
+ pointerScope?: "shared" | "alias" | "version";
12418
12456
  profileTemplate?: string;
12419
12457
  };
12420
12458
  model?: string;
@@ -46785,6 +46823,8 @@ interface components {
46785
46823
  memory?: {
46786
46824
  enabled: boolean;
46787
46825
  injectSummary?: boolean;
46826
+ /** @enum {string} */
46827
+ pointerScope?: "shared" | "alias" | "version";
46788
46828
  profileTemplate?: string;
46789
46829
  };
46790
46830
  model?: string;
@@ -56022,6 +56062,10 @@ interface ClientToken {
56022
56062
  allowedOrigins: string[];
56023
56063
  environment: ClientTokenEnvironment;
56024
56064
  pinToVersion: ClientTokenVersionPin | null;
56065
+ /** Release alias this token follows, re-resolved on every admission (ADR 0025). */
56066
+ targetAlias: string | null;
56067
+ /** Exact agent version this token is pinned to (ADR 0025). */
56068
+ targetVersionId: string | null;
56025
56069
  rateLimitPerMinute: number | null;
56026
56070
  rateLimitPerHour: number | null;
56027
56071
  maxMessagesPerSession: number | null;
@@ -56050,6 +56094,10 @@ interface CreateClientTokenRequest {
56050
56094
  allowedOrigins: string[];
56051
56095
  environment?: ClientTokenEnvironment;
56052
56096
  pinToVersion?: ClientTokenVersionPin;
56097
+ /** Release alias this token follows. Mutually exclusive with `targetVersionId`. */
56098
+ targetAlias?: string | null;
56099
+ /** Exact agent version this token pins. Mutually exclusive with `targetAlias`. */
56100
+ targetVersionId?: string | null;
56053
56101
  rateLimitPerMinute?: number;
56054
56102
  rateLimitPerHour?: number;
56055
56103
  maxMessagesPerSession?: number;
@@ -56067,6 +56115,10 @@ interface UpdateClientTokenRequest {
56067
56115
  agentIds?: string[];
56068
56116
  allowedOrigins?: string[];
56069
56117
  pinToVersion?: ClientTokenVersionPin;
56118
+ /** Release alias this token follows. Mutually exclusive with `targetVersionId`. */
56119
+ targetAlias?: string | null;
56120
+ /** Exact agent version this token pins. Mutually exclusive with `targetAlias`. */
56121
+ targetVersionId?: string | null;
56070
56122
  rateLimitPerMinute?: number;
56071
56123
  rateLimitPerHour?: number;
56072
56124
  maxMessagesPerSession?: number;
package/dist/index.mjs CHANGED
@@ -13355,7 +13355,7 @@ function transformQueryParams(params) {
13355
13355
 
13356
13356
  // src/version.ts
13357
13357
  var FALLBACK_VERSION = "0.0.0";
13358
- var SDK_VERSION = "9.10.1".length > 0 ? "9.10.1" : FALLBACK_VERSION;
13358
+ var SDK_VERSION = "9.11.0".length > 0 ? "9.11.0" : FALLBACK_VERSION;
13359
13359
  var RUNTYPE_CLIENT_KIND = "sdk";
13360
13360
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
13361
13361
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "9.10.1",
3
+ "version": "9.11.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.45.1",
27
+ "@runtypelabs/shared": "3.46.0",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsup": "^8.0.2",
30
30
  "typescript": "^6.0.3",