@wildix/stream-client 4.0.3 → 4.0.4

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.
@@ -38,6 +38,10 @@ class StreamServiceClient extends client_2.Client {
38
38
  httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultStreamServiceHttpAuthSchemeParametersProvider,
39
39
  identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
40
40
  "smithy.api#httpBearerAuth": config.token,
41
+ "wildix.auth#apiKeys": config.token,
42
+ "wildix.auth#pbx": config.token,
43
+ "wildix.auth#s2s": config.token,
44
+ "wildix.auth#xbs": config.token,
41
45
  }),
42
46
  }));
43
47
  this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
@@ -24,6 +24,26 @@ const getRuntimeConfig = (config) => {
24
24
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
25
25
  signer: new core_1.HttpBearerAuthSigner(),
26
26
  },
27
+ {
28
+ schemeId: "wildix.auth#apiKeys",
29
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#apiKeys"),
30
+ signer: new core_1.HttpBearerAuthSigner(),
31
+ },
32
+ {
33
+ schemeId: "wildix.auth#pbx",
34
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#pbx"),
35
+ signer: new core_1.HttpBearerAuthSigner(),
36
+ },
37
+ {
38
+ schemeId: "wildix.auth#s2s",
39
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#s2s"),
40
+ signer: new core_1.HttpBearerAuthSigner(),
41
+ },
42
+ {
43
+ schemeId: "wildix.auth#xbs",
44
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#xbs"),
45
+ signer: new core_1.HttpBearerAuthSigner(),
46
+ },
27
47
  ],
28
48
  logger: config?.logger ?? new client_1.NoOpLogger(),
29
49
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
@@ -35,6 +35,10 @@ export class StreamServiceClient extends __Client {
35
35
  httpAuthSchemeParametersProvider: defaultStreamServiceHttpAuthSchemeParametersProvider,
36
36
  identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
37
37
  "smithy.api#httpBearerAuth": config.token,
38
+ "wildix.auth#apiKeys": config.token,
39
+ "wildix.auth#pbx": config.token,
40
+ "wildix.auth#s2s": config.token,
41
+ "wildix.auth#xbs": config.token,
38
42
  }),
39
43
  }));
40
44
  this.middlewareStack.use(getHttpSigningPlugin(this.config));
@@ -21,6 +21,26 @@ export const getRuntimeConfig = (config) => {
21
21
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
22
22
  signer: new HttpBearerAuthSigner(),
23
23
  },
24
+ {
25
+ schemeId: "wildix.auth#apiKeys",
26
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#apiKeys"),
27
+ signer: new HttpBearerAuthSigner(),
28
+ },
29
+ {
30
+ schemeId: "wildix.auth#pbx",
31
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#pbx"),
32
+ signer: new HttpBearerAuthSigner(),
33
+ },
34
+ {
35
+ schemeId: "wildix.auth#s2s",
36
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#s2s"),
37
+ signer: new HttpBearerAuthSigner(),
38
+ },
39
+ {
40
+ schemeId: "wildix.auth#xbs",
41
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#xbs"),
42
+ signer: new HttpBearerAuthSigner(),
43
+ },
24
44
  ],
25
45
  logger: config?.logger ?? new NoOpLogger(),
26
46
  protocol: config?.protocol ?? AwsRestJsonProtocol,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/stream-client",
3
3
  "description": "@wildix/stream-client client",
4
- "version": "4.0.3",
4
+ "version": "4.0.4",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -54,4 +54,4 @@
54
54
  "react-native": {
55
55
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
56
56
  }
57
- }
57
+ }