@pymthouse/builder-sdk 0.4.1 → 0.4.2-rc.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.cjs CHANGED
@@ -324,11 +324,10 @@ function parseMintUserSignerTokenResponse(body, ttlRefreshRatio = DEFAULT_TTL_RE
324
324
  lifetimeGrantedUsdMicros
325
325
  };
326
326
  }
327
- var LIVEPEER_REMOTE_SIGNER_AUDIENCE, DEFAULT_TTL_REFRESH_RATIO, TOKEN_RESPONSE_ERROR;
327
+ var DEFAULT_TTL_REFRESH_RATIO, TOKEN_RESPONSE_ERROR;
328
328
  var init_mint_token = __esm({
329
329
  "src/signer/mint-token.ts"() {
330
330
  init_json_fields();
331
- LIVEPEER_REMOTE_SIGNER_AUDIENCE = "livepeer-remote-signer";
332
331
  DEFAULT_TTL_REFRESH_RATIO = 0.8;
333
332
  TOKEN_RESPONSE_ERROR = "invalid_token_response";
334
333
  }
@@ -395,7 +394,7 @@ async function mintSignerTokenFromDeviceToken(options) {
395
394
  code: "oidc_discovery_invalid"
396
395
  });
397
396
  }
398
- const audience = options.audience?.trim() || LIVEPEER_REMOTE_SIGNER_AUDIENCE;
397
+ const audience = options.audience?.trim() || issuerUrl;
399
398
  const params = new URLSearchParams({
400
399
  grant_type: TOKEN_EXCHANGE_GRANT,
401
400
  subject_token: options.deviceToken,
@@ -1628,7 +1627,8 @@ var PmtHouseClient = class {
1628
1627
  const usageByUser = await this.getUsage({
1629
1628
  startDate: input.startDate,
1630
1629
  endDate: input.endDate,
1631
- groupBy: "user"
1630
+ groupBy: "user",
1631
+ includeRetail: input.includeRetail
1632
1632
  });
1633
1633
  const userIds = getEndUserIdsForExternalUser(usageByUser, input.externalUserId);
1634
1634
  const cap = input.maxEndUserIds ?? DEFAULT_MAX_END_USER_IDS;
@@ -1639,7 +1639,8 @@ var PmtHouseClient = class {
1639
1639
  startDate: input.startDate,
1640
1640
  endDate: input.endDate,
1641
1641
  groupBy: "pipeline_model",
1642
- userId
1642
+ userId,
1643
+ includeRetail: input.includeRetail
1643
1644
  })
1644
1645
  )
1645
1646
  );