@dynamic-labs/sdk-api 0.0.906 → 0.0.908

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": "@dynamic-labs/sdk-api",
3
- "version": "0.0.906",
3
+ "version": "0.0.908",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var TokenScope = require('./TokenScope.cjs');
6
7
 
7
8
  /* tslint:disable */
8
9
  function OauthRequestFromJSON(json) {
@@ -19,6 +20,7 @@ function OauthRequestFromJSONTyped(json, ignoreDiscriminator) {
19
20
  'captchaToken': !runtime.exists(json, 'captchaToken') ? undefined : json['captchaToken'],
20
21
  'sessionPublicKey': !runtime.exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
21
22
  'ssoProviderId': !runtime.exists(json, 'ssoProviderId') ? undefined : json['ssoProviderId'],
23
+ 'requestedScopes': !runtime.exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScope.TokenScopeFromJSON)),
22
24
  };
23
25
  }
24
26
  function OauthRequestToJSON(value) {
@@ -35,6 +37,7 @@ function OauthRequestToJSON(value) {
35
37
  'captchaToken': value.captchaToken,
36
38
  'sessionPublicKey': value.sessionPublicKey,
37
39
  'ssoProviderId': value.ssoProviderId,
40
+ 'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScope.TokenScopeToJSON)),
38
41
  };
39
42
  }
40
43
 
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { TokenScope } from './TokenScope';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -51,6 +52,12 @@ export interface OauthRequest {
51
52
  * @memberof OauthRequest
52
53
  */
53
54
  ssoProviderId?: string;
55
+ /**
56
+ * Optional list of scopes to include in the elevated access token.
57
+ * @type {Array<TokenScope>}
58
+ * @memberof OauthRequest
59
+ */
60
+ requestedScopes?: Array<TokenScope>;
54
61
  }
55
62
  export declare function OauthRequestFromJSON(json: any): OauthRequest;
56
63
  export declare function OauthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OauthRequest;
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { TokenScopeFromJSON, TokenScopeToJSON } from './TokenScope.js';
2
3
 
3
4
  /* tslint:disable */
4
5
  function OauthRequestFromJSON(json) {
@@ -15,6 +16,7 @@ function OauthRequestFromJSONTyped(json, ignoreDiscriminator) {
15
16
  'captchaToken': !exists(json, 'captchaToken') ? undefined : json['captchaToken'],
16
17
  'sessionPublicKey': !exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
17
18
  'ssoProviderId': !exists(json, 'ssoProviderId') ? undefined : json['ssoProviderId'],
19
+ 'requestedScopes': !exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScopeFromJSON)),
18
20
  };
19
21
  }
20
22
  function OauthRequestToJSON(value) {
@@ -31,6 +33,7 @@ function OauthRequestToJSON(value) {
31
33
  'captchaToken': value.captchaToken,
32
34
  'sessionPublicKey': value.sessionPublicKey,
33
35
  'ssoProviderId': value.ssoProviderId,
36
+ 'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScopeToJSON)),
34
37
  };
35
38
  }
36
39
 
@@ -22,7 +22,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
22
22
  */
23
23
  exports.TokenScope = void 0;
24
24
  (function (TokenScope) {
25
+ TokenScope["Credentiallink"] = "credential:link";
26
+ TokenScope["Credentialupdate"] = "credential:update";
27
+ TokenScope["Credentialunlink"] = "credential:unlink";
28
+ TokenScope["Userupdate"] = "user:update";
29
+ TokenScope["Userdelete"] = "user:delete";
25
30
  TokenScope["Walletexport"] = "wallet:export";
31
+ TokenScope["Walletdelete"] = "wallet:delete";
32
+ TokenScope["Walletdelegate"] = "wallet:delegate";
33
+ TokenScope["Walletsign"] = "wallet:sign";
34
+ TokenScope["Walletrestore"] = "wallet:restore";
26
35
  })(exports.TokenScope || (exports.TokenScope = {}));
27
36
  function TokenScopeFromJSON(json) {
28
37
  return TokenScopeFromJSONTyped(json);
@@ -15,7 +15,16 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum TokenScope {
18
- Walletexport = "wallet:export"
18
+ Credentiallink = "credential:link",
19
+ Credentialupdate = "credential:update",
20
+ Credentialunlink = "credential:unlink",
21
+ Userupdate = "user:update",
22
+ Userdelete = "user:delete",
23
+ Walletexport = "wallet:export",
24
+ Walletdelete = "wallet:delete",
25
+ Walletdelegate = "wallet:delegate",
26
+ Walletsign = "wallet:sign",
27
+ Walletrestore = "wallet:restore"
19
28
  }
20
29
  export declare function TokenScopeFromJSON(json: any): TokenScope;
21
30
  export declare function TokenScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenScope;
@@ -18,7 +18,16 @@
18
18
  */
19
19
  var TokenScope;
20
20
  (function (TokenScope) {
21
+ TokenScope["Credentiallink"] = "credential:link";
22
+ TokenScope["Credentialupdate"] = "credential:update";
23
+ TokenScope["Credentialunlink"] = "credential:unlink";
24
+ TokenScope["Userupdate"] = "user:update";
25
+ TokenScope["Userdelete"] = "user:delete";
21
26
  TokenScope["Walletexport"] = "wallet:export";
27
+ TokenScope["Walletdelete"] = "wallet:delete";
28
+ TokenScope["Walletdelegate"] = "wallet:delegate";
29
+ TokenScope["Walletsign"] = "wallet:sign";
30
+ TokenScope["Walletrestore"] = "wallet:restore";
22
31
  })(TokenScope || (TokenScope = {}));
23
32
  function TokenScopeFromJSON(json) {
24
33
  return TokenScopeFromJSONTyped(json);