@runtypelabs/sdk 9.13.0 → 9.15.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.mjs CHANGED
@@ -2288,6 +2288,48 @@ var AgentAliasesNamespace = class {
2288
2288
  )
2289
2289
  );
2290
2290
  }
2291
+ /** The per-alias secret binding NAMES this pointer carries. Values are write-only. */
2292
+ async getBindings(agentId, alias) {
2293
+ return this.run(
2294
+ agentId,
2295
+ alias,
2296
+ () => this.getTransport().get(
2297
+ `/agents/${encode(agentId)}/aliases/${encode(alias)}/bindings`
2298
+ )
2299
+ );
2300
+ }
2301
+ /**
2302
+ * Replace the complete set of `{{secret:NAME}}` values executions resolve
2303
+ * when they reach this agent through this pointer, ahead of the organization
2304
+ * secret of the same name. A name you stop sending stops resolving.
2305
+ */
2306
+ async setBindings(agentId, alias, input) {
2307
+ const body = {
2308
+ bindings: input.bindings,
2309
+ ...input.reason ? { reason: input.reason } : {}
2310
+ };
2311
+ return this.run(
2312
+ agentId,
2313
+ alias,
2314
+ () => this.getTransport().put(
2315
+ `/agents/${encode(agentId)}/aliases/${encode(alias)}/bindings`,
2316
+ body,
2317
+ writeHeaders(input)
2318
+ )
2319
+ );
2320
+ }
2321
+ /** Drop every binding, so this pointer's executions fall back to organization secrets. */
2322
+ async clearBindings(agentId, alias, input = {}) {
2323
+ return this.run(
2324
+ agentId,
2325
+ alias,
2326
+ () => this.getTransport().delete(
2327
+ `/agents/${encode(agentId)}/aliases/${encode(alias)}/bindings`,
2328
+ void 0,
2329
+ writeHeaders(input)
2330
+ )
2331
+ );
2332
+ }
2291
2333
  async run(agentId, alias, call) {
2292
2334
  try {
2293
2335
  return await call();
@@ -13833,7 +13875,7 @@ function transformQueryParams(params) {
13833
13875
 
13834
13876
  // src/version.ts
13835
13877
  var FALLBACK_VERSION = "0.0.0";
13836
- var SDK_VERSION = "9.13.0".length > 0 ? "9.13.0" : FALLBACK_VERSION;
13878
+ var SDK_VERSION = "9.15.0".length > 0 ? "9.15.0" : FALLBACK_VERSION;
13837
13879
  var RUNTYPE_CLIENT_KIND = "sdk";
13838
13880
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
13839
13881
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "9.13.0",
3
+ "version": "9.15.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.48.0",
27
+ "@runtypelabs/shared": "3.50.0",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsup": "^8.0.2",
30
30
  "typescript": "^6.0.3",