@eluvio/elv-client-js 4.0.102 → 4.0.104

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-client-js",
3
- "version": "4.0.102",
3
+ "version": "4.0.104",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -73,7 +73,7 @@ class RemoteSigner extends Ethers.Signer {
73
73
  this.signer = this.provider.getSigner(this.address);
74
74
  }
75
75
 
76
- async RetrieveCSAT({email, nonce, force=false}) {
76
+ async RetrieveCSAT({email, nonce, tenantId, force=false}) {
77
77
  nonce = nonce || Utils.B58(UUID.parse(UUID.v4()));
78
78
 
79
79
  let response = await Utils.ResponseToJson(
@@ -82,7 +82,8 @@ class RemoteSigner extends Ethers.Signer {
82
82
  body: {
83
83
  email,
84
84
  nonce,
85
- force
85
+ force,
86
+ tid: tenantId
86
87
  },
87
88
  path: UrlJoin("as", "wlt", "sign", "csat"),
88
89
  headers: {
@@ -1911,6 +1911,7 @@ exports.MakeFileServiceRequest = async function({
1911
1911
  body,
1912
1912
  bodyType="JSON",
1913
1913
  format="json",
1914
+ encryption,
1914
1915
  headers={},
1915
1916
  authorizationToken
1916
1917
  }) {
@@ -1930,7 +1931,7 @@ exports.MakeFileServiceRequest = async function({
1930
1931
 
1931
1932
  let authorization = [
1932
1933
  authorizationToken,
1933
- await this.authClient.AuthorizationToken({objectId})
1934
+ await this.authClient.AuthorizationToken({libraryId, objectId, versionHash, encryption, makeAccessRequest: encryption === "cgck"})
1934
1935
  ]
1935
1936
  .flat()
1936
1937
  .filter(token => token);
@@ -487,7 +487,7 @@ class ElvWalletClient {
487
487
  let fabricToken, expiresAt;
488
488
  if(createRemoteToken && this.client.signer.remoteSigner) {
489
489
  expiresAt = Date.now() + 24 * 60 * 60 * 1000;
490
- const tokenResponse = await this.client.signer.RetrieveCSAT({email, nonce, force});
490
+ const tokenResponse = await this.client.signer.RetrieveCSAT({email, nonce, tenantId, force});
491
491
  fabricToken = tokenResponse.token;
492
492
  nonce = tokenResponse.nonce;
493
493
  } else {
@@ -763,17 +763,13 @@ class ElvWalletClient {
763
763
  select: [
764
764
  "info/marketplace_order",
765
765
  "tenants/*/.",
766
- "tenants/*/info/branding",
766
+ "tenants/*/info/branding/show",
767
+ "tenants/*/info/branding/name",
767
768
  "tenants/*/marketplaces/*/.",
768
769
  "tenants/*/marketplaces/*/info/tenant_id",
769
770
  "tenants/*/marketplaces/*/info/tenant_name",
770
- "tenants/*/marketplaces/*/info/branding",
771
- "tenants/*/marketplaces/*/info/storefront/background",
772
- "tenants/*/marketplaces/*/info/storefront/background_mobile"
773
- ],
774
- remove: [
775
- "tenants/*/info/branding/wallet_css",
776
- "tenants/*/marketplaces/*/info/branding/custom_css"
771
+ "tenants/*/marketplaces/*/info/branding/show",
772
+ "tenants/*/marketplaces/*/info/branding/name"
777
773
  ]
778
774
  });
779
775