@dakota-xyz/ts-sdk 2.2.0 → 2.2.1

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
@@ -3462,19 +3462,18 @@ var InsightsResource = class extends BaseResource {
3462
3462
  // src/client/resources/agentic-policy.ts
3463
3463
  var AgenticPolicyResource = class extends BaseResource {
3464
3464
  /**
3465
- * Get the policy registered for this client.
3465
+ * Get the policy registered for the client behind your API key.
3466
3466
  *
3467
3467
  * A 404 here is the DEFAULT, not an error condition: with no registration
3468
3468
  * and no per-request policy the agent drafts on platform defaults, exactly
3469
3469
  * as it did before registration existed.
3470
3470
  *
3471
- * @param clientId - Your client ID
3472
3471
  * @returns The normalized registered policy + its timestamps
3473
3472
  *
3474
3473
  * @example
3475
3474
  * ```typescript
3476
3475
  * try {
3477
- * const { policy } = await client.agenticPolicy.get(clientId);
3476
+ * const { policy } = await client.agenticPolicy.get();
3478
3477
  * console.log(policy.labels);
3479
3478
  * } catch (e) {
3480
3479
  * if (e instanceof APIError && e.statusCode === 404) {
@@ -3483,10 +3482,10 @@ var AgenticPolicyResource = class extends BaseResource {
3483
3482
  * }
3484
3483
  * ```
3485
3484
  */
3486
- async get(clientId) {
3485
+ async get() {
3487
3486
  return this.transport.request({
3488
3487
  method: "GET",
3489
- path: `/clients/${clientId}/agentic-policy`
3488
+ path: "/agentic-policy"
3490
3489
  });
3491
3490
  }
3492
3491
  /**
@@ -3506,14 +3505,15 @@ var AgenticPolicyResource = class extends BaseResource {
3506
3505
  * unsupported value, or a label for an unimplemented concept is a 400 HERE,
3507
3506
  * at registration — not a surprise on a customer's first conversation.
3508
3507
  *
3509
- * @param clientId - Your client ID
3508
+ * The client comes from your API key; there is no id to pass.
3509
+ *
3510
3510
  * @param policy - The complete policy (`{}` clears it)
3511
3511
  * @param options - Request options (e.g., custom idempotency key)
3512
3512
  * @returns The normalized stored policy + its timestamps
3513
3513
  *
3514
3514
  * @example
3515
3515
  * ```typescript
3516
- * await client.agenticPolicy.set(clientId, {
3516
+ * await client.agenticPolicy.set({
3517
3517
  * payee_model: 'flat',
3518
3518
  * payout_assets: ['USDC', 'USDT'],
3519
3519
  * labels: { limit: 'spending limit', payee: 'recipient', limit_unit: 'USD' },
@@ -3522,10 +3522,10 @@ var AgenticPolicyResource = class extends BaseResource {
3522
3522
  * });
3523
3523
  * ```
3524
3524
  */
3525
- async set(clientId, policy, options) {
3525
+ async set(policy, options) {
3526
3526
  return this.transport.request({
3527
3527
  method: "PUT",
3528
- path: `/clients/${clientId}/agentic-policy`,
3528
+ path: "/agentic-policy",
3529
3529
  body: policy,
3530
3530
  idempotencyKey: options?.idempotencyKey,
3531
3531
  timeout: options?.timeout