@runtypelabs/sdk 9.13.0 → 9.14.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
@@ -2502,6 +2502,48 @@ var AgentAliasesNamespace = class {
2502
2502
  )
2503
2503
  );
2504
2504
  }
2505
+ /** The per-alias secret binding NAMES this pointer carries. Values are write-only. */
2506
+ async getBindings(agentId, alias) {
2507
+ return this.run(
2508
+ agentId,
2509
+ alias,
2510
+ () => this.getTransport().get(
2511
+ `/agents/${encode(agentId)}/aliases/${encode(alias)}/bindings`
2512
+ )
2513
+ );
2514
+ }
2515
+ /**
2516
+ * Replace the complete set of `{{secret:NAME}}` values executions resolve
2517
+ * when they reach this agent through this pointer, ahead of the organization
2518
+ * secret of the same name. A name you stop sending stops resolving.
2519
+ */
2520
+ async setBindings(agentId, alias, input) {
2521
+ const body = {
2522
+ bindings: input.bindings,
2523
+ ...input.reason ? { reason: input.reason } : {}
2524
+ };
2525
+ return this.run(
2526
+ agentId,
2527
+ alias,
2528
+ () => this.getTransport().put(
2529
+ `/agents/${encode(agentId)}/aliases/${encode(alias)}/bindings`,
2530
+ body,
2531
+ writeHeaders(input)
2532
+ )
2533
+ );
2534
+ }
2535
+ /** Drop every binding, so this pointer's executions fall back to organization secrets. */
2536
+ async clearBindings(agentId, alias, input = {}) {
2537
+ return this.run(
2538
+ agentId,
2539
+ alias,
2540
+ () => this.getTransport().delete(
2541
+ `/agents/${encode(agentId)}/aliases/${encode(alias)}/bindings`,
2542
+ void 0,
2543
+ writeHeaders(input)
2544
+ )
2545
+ );
2546
+ }
2505
2547
  async run(agentId, alias, call) {
2506
2548
  try {
2507
2549
  return await call();
@@ -14047,7 +14089,7 @@ function transformQueryParams(params) {
14047
14089
 
14048
14090
  // src/version.ts
14049
14091
  var FALLBACK_VERSION = "0.0.0";
14050
- var SDK_VERSION = "9.13.0".length > 0 ? "9.13.0" : FALLBACK_VERSION;
14092
+ var SDK_VERSION = "9.14.0".length > 0 ? "9.14.0" : FALLBACK_VERSION;
14051
14093
  var RUNTYPE_CLIENT_KIND = "sdk";
14052
14094
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
14053
14095