@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/env.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PmtHouseClient } from './client-D1Xz-xlx.cjs';
1
+ import { P as PmtHouseClient } from './client-C0HgAugK.cjs';
2
2
  import './tokens.cjs';
3
3
  import './types-BORaHW_x.cjs';
4
4
 
package/dist/env.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PmtHouseClient } from './client-CauCfGa7.js';
1
+ import { P as PmtHouseClient } from './client-zCskUJag.js';
2
2
  import './tokens.js';
3
3
  import './types-BORaHW_x.js';
4
4
 
package/dist/env.js CHANGED
@@ -291,11 +291,10 @@ function parseMintUserSignerTokenResponse(body, ttlRefreshRatio = DEFAULT_TTL_RE
291
291
  lifetimeGrantedUsdMicros
292
292
  };
293
293
  }
294
- var LIVEPEER_REMOTE_SIGNER_AUDIENCE, DEFAULT_TTL_REFRESH_RATIO, TOKEN_RESPONSE_ERROR;
294
+ var DEFAULT_TTL_REFRESH_RATIO, TOKEN_RESPONSE_ERROR;
295
295
  var init_mint_token = __esm({
296
296
  "src/signer/mint-token.ts"() {
297
297
  init_json_fields();
298
- LIVEPEER_REMOTE_SIGNER_AUDIENCE = "livepeer-remote-signer";
299
298
  DEFAULT_TTL_REFRESH_RATIO = 0.8;
300
299
  TOKEN_RESPONSE_ERROR = "invalid_token_response";
301
300
  }
@@ -362,7 +361,7 @@ async function mintSignerTokenFromDeviceToken(options) {
362
361
  code: "oidc_discovery_invalid"
363
362
  });
364
363
  }
365
- const audience = options.audience?.trim() || LIVEPEER_REMOTE_SIGNER_AUDIENCE;
364
+ const audience = options.audience?.trim() || issuerUrl;
366
365
  const params = new URLSearchParams({
367
366
  grant_type: TOKEN_EXCHANGE_GRANT,
368
367
  subject_token: options.deviceToken,
@@ -1383,7 +1382,8 @@ var PmtHouseClient = class {
1383
1382
  const usageByUser = await this.getUsage({
1384
1383
  startDate: input.startDate,
1385
1384
  endDate: input.endDate,
1386
- groupBy: "user"
1385
+ groupBy: "user",
1386
+ includeRetail: input.includeRetail
1387
1387
  });
1388
1388
  const userIds = getEndUserIdsForExternalUser(usageByUser, input.externalUserId);
1389
1389
  const cap = input.maxEndUserIds ?? DEFAULT_MAX_END_USER_IDS;
@@ -1394,7 +1394,8 @@ var PmtHouseClient = class {
1394
1394
  startDate: input.startDate,
1395
1395
  endDate: input.endDate,
1396
1396
  groupBy: "pipeline_model",
1397
- userId
1397
+ userId,
1398
+ includeRetail: input.includeRetail
1398
1399
  })
1399
1400
  )
1400
1401
  );