@dynamic-labs/sdk-api 0.0.327 → 0.0.329

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.327",
3
+ "version": "0.0.329",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -36,6 +36,7 @@ function JwtVerifiedCredentialFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'oauthAccountId': !runtime.exists(json, 'oauth_account_id') ? undefined : json['oauth_account_id'],
37
37
  'oauthAccountPhotos': !runtime.exists(json, 'oauth_account_photos') ? undefined : json['oauth_account_photos'],
38
38
  'oauthEmails': !runtime.exists(json, 'oauth_emails') ? undefined : json['oauth_emails'],
39
+ 'oauthMetadata': !runtime.exists(json, 'oauth_metadata') ? undefined : json['oauth_metadata'],
39
40
  'previousUsers': !runtime.exists(json, 'previous_users') ? undefined : json['previous_users'],
40
41
  'embeddedWalletId': !runtime.exists(json, 'embedded_wallet_id') ? undefined : json['embedded_wallet_id'],
41
42
  };
@@ -66,6 +67,7 @@ function JwtVerifiedCredentialToJSON(value) {
66
67
  'oauth_account_id': value.oauthAccountId,
67
68
  'oauth_account_photos': value.oauthAccountPhotos,
68
69
  'oauth_emails': value.oauthEmails,
70
+ 'oauth_metadata': value.oauthMetadata,
69
71
  'previous_users': value.previousUsers,
70
72
  'embedded_wallet_id': value.embeddedWalletId,
71
73
  };
@@ -128,6 +128,12 @@ export interface JwtVerifiedCredential {
128
128
  * @memberof JwtVerifiedCredential
129
129
  */
130
130
  oauthEmails?: Array<string>;
131
+ /**
132
+ * This object contains JSON metadata for a social-based verified credential. It may contain data about the user that does not fit into the other structured fields, and could include arbitrary fields about the user from the oauth provider's API.
133
+ * @type {object}
134
+ * @memberof JwtVerifiedCredential
135
+ */
136
+ oauthMetadata?: object;
131
137
  /**
132
138
  * This will only be provided in the responses for GET /users/{userId}.Previous user IDs that owned this verified credential and was tranfered to the current user ID.
133
139
  * @type {Array<string>}
@@ -32,6 +32,7 @@ function JwtVerifiedCredentialFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'oauthAccountId': !exists(json, 'oauth_account_id') ? undefined : json['oauth_account_id'],
33
33
  'oauthAccountPhotos': !exists(json, 'oauth_account_photos') ? undefined : json['oauth_account_photos'],
34
34
  'oauthEmails': !exists(json, 'oauth_emails') ? undefined : json['oauth_emails'],
35
+ 'oauthMetadata': !exists(json, 'oauth_metadata') ? undefined : json['oauth_metadata'],
35
36
  'previousUsers': !exists(json, 'previous_users') ? undefined : json['previous_users'],
36
37
  'embeddedWalletId': !exists(json, 'embedded_wallet_id') ? undefined : json['embedded_wallet_id'],
37
38
  };
@@ -62,6 +63,7 @@ function JwtVerifiedCredentialToJSON(value) {
62
63
  'oauth_account_id': value.oauthAccountId,
63
64
  'oauth_account_photos': value.oauthAccountPhotos,
64
65
  'oauth_emails': value.oauthEmails,
66
+ 'oauth_metadata': value.oauthMetadata,
65
67
  'previous_users': value.previousUsers,
66
68
  'embedded_wallet_id': value.embeddedWalletId,
67
69
  };
@@ -24,6 +24,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
24
24
  'authorizationUrl': !runtime.exists(json, 'authorizationUrl') ? undefined : json['authorizationUrl'],
25
25
  'redirectUrl': !runtime.exists(json, 'redirectUrl') ? undefined : json['redirectUrl'],
26
26
  'defaultChainId': !runtime.exists(json, 'defaultChainId') ? undefined : json['defaultChainId'],
27
+ 'defaultChain': !runtime.exists(json, 'defaultChain') ? undefined : json['defaultChain'],
27
28
  'keyExportUrl': !runtime.exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
28
29
  'termsAcceptedByUser': !runtime.exists(json, 'termsAcceptedByUser') ? undefined : ProviderAgreement.ProviderAgreementFromJSON(json['termsAcceptedByUser']),
29
30
  'appleKeyId': !runtime.exists(json, 'appleKeyId') ? undefined : json['appleKeyId'],
@@ -47,6 +48,7 @@ function ProviderToJSON(value) {
47
48
  'authorizationUrl': value.authorizationUrl,
48
49
  'redirectUrl': value.redirectUrl,
49
50
  'defaultChainId': value.defaultChainId,
51
+ 'defaultChain': value.defaultChain,
50
52
  'keyExportUrl': value.keyExportUrl,
51
53
  'termsAcceptedByUser': ProviderAgreement.ProviderAgreementToJSON(value.termsAcceptedByUser),
52
54
  'appleKeyId': value.appleKeyId,
@@ -66,11 +66,17 @@ export interface Provider {
66
66
  */
67
67
  redirectUrl?: string;
68
68
  /**
69
- * The default chain id the SDK should use
69
+ * DEPRECATED: Use defaultChain. The default chain id the SDK should use
70
70
  * @type {number}
71
71
  * @memberof Provider
72
72
  */
73
73
  defaultChainId?: number;
74
+ /**
75
+ * CAIP-2 Chain ID (https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md)
76
+ * @type {string}
77
+ * @memberof Provider
78
+ */
79
+ defaultChain?: string;
74
80
  /**
75
81
  * The url of the site to go to export wallets private keys
76
82
  * @type {string}
@@ -20,6 +20,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
20
20
  'authorizationUrl': !exists(json, 'authorizationUrl') ? undefined : json['authorizationUrl'],
21
21
  'redirectUrl': !exists(json, 'redirectUrl') ? undefined : json['redirectUrl'],
22
22
  'defaultChainId': !exists(json, 'defaultChainId') ? undefined : json['defaultChainId'],
23
+ 'defaultChain': !exists(json, 'defaultChain') ? undefined : json['defaultChain'],
23
24
  'keyExportUrl': !exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
24
25
  'termsAcceptedByUser': !exists(json, 'termsAcceptedByUser') ? undefined : ProviderAgreementFromJSON(json['termsAcceptedByUser']),
25
26
  'appleKeyId': !exists(json, 'appleKeyId') ? undefined : json['appleKeyId'],
@@ -43,6 +44,7 @@ function ProviderToJSON(value) {
43
44
  'authorizationUrl': value.authorizationUrl,
44
45
  'redirectUrl': value.redirectUrl,
45
46
  'defaultChainId': value.defaultChainId,
47
+ 'defaultChain': value.defaultChain,
46
48
  'keyExportUrl': value.keyExportUrl,
47
49
  'termsAcceptedByUser': ProviderAgreementToJSON(value.termsAcceptedByUser),
48
50
  'appleKeyId': value.appleKeyId,
@@ -19,6 +19,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
19
19
  'clientSecret': !runtime.exists(json, 'clientSecret') ? undefined : json['clientSecret'],
20
20
  'providerProjectId': !runtime.exists(json, 'providerProjectId') ? undefined : json['providerProjectId'],
21
21
  'defaultChainId': !runtime.exists(json, 'defaultChainId') ? undefined : json['defaultChainId'],
22
+ 'defaultChain': !runtime.exists(json, 'defaultChain') ? undefined : json['defaultChain'],
22
23
  'keyExportUrl': !runtime.exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
23
24
  'termsUrl': !runtime.exists(json, 'termsUrl') ? undefined : json['termsUrl'],
24
25
  'useDynamicCredentials': !runtime.exists(json, 'useDynamicCredentials') ? undefined : json['useDynamicCredentials'],
@@ -39,6 +40,7 @@ function ProviderCreateRequestToJSON(value) {
39
40
  'clientSecret': value.clientSecret,
40
41
  'providerProjectId': value.providerProjectId,
41
42
  'defaultChainId': value.defaultChainId,
43
+ 'defaultChain': value.defaultChain,
42
44
  'keyExportUrl': value.keyExportUrl,
43
45
  'termsUrl': value.termsUrl,
44
46
  'useDynamicCredentials': value.useDynamicCredentials,
@@ -46,6 +46,12 @@ export interface ProviderCreateRequest {
46
46
  * @memberof ProviderCreateRequest
47
47
  */
48
48
  defaultChainId?: number;
49
+ /**
50
+ * CAIP-2 Chain ID (https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md)
51
+ * @type {string}
52
+ * @memberof ProviderCreateRequest
53
+ */
54
+ defaultChain?: string;
49
55
  /**
50
56
  * The url of the site to go to export wallets private keys
51
57
  * @type {string}
@@ -15,6 +15,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
15
15
  'clientSecret': !exists(json, 'clientSecret') ? undefined : json['clientSecret'],
16
16
  'providerProjectId': !exists(json, 'providerProjectId') ? undefined : json['providerProjectId'],
17
17
  'defaultChainId': !exists(json, 'defaultChainId') ? undefined : json['defaultChainId'],
18
+ 'defaultChain': !exists(json, 'defaultChain') ? undefined : json['defaultChain'],
18
19
  'keyExportUrl': !exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
19
20
  'termsUrl': !exists(json, 'termsUrl') ? undefined : json['termsUrl'],
20
21
  'useDynamicCredentials': !exists(json, 'useDynamicCredentials') ? undefined : json['useDynamicCredentials'],
@@ -35,6 +36,7 @@ function ProviderCreateRequestToJSON(value) {
35
36
  'clientSecret': value.clientSecret,
36
37
  'providerProjectId': value.providerProjectId,
37
38
  'defaultChainId': value.defaultChainId,
39
+ 'defaultChain': value.defaultChain,
38
40
  'keyExportUrl': value.keyExportUrl,
39
41
  'termsUrl': value.termsUrl,
40
42
  'useDynamicCredentials': value.useDynamicCredentials,
@@ -17,6 +17,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
17
17
  'clientSecret': !runtime.exists(json, 'clientSecret') ? undefined : json['clientSecret'],
18
18
  'providerProjectId': !runtime.exists(json, 'providerProjectId') ? undefined : json['providerProjectId'],
19
19
  'defaultChainId': !runtime.exists(json, 'defaultChainId') ? undefined : json['defaultChainId'],
20
+ 'defaultChain': !runtime.exists(json, 'defaultChain') ? undefined : json['defaultChain'],
20
21
  'keyExportUrl': !runtime.exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
21
22
  'useDynamicCredentials': !runtime.exists(json, 'useDynamicCredentials') ? undefined : json['useDynamicCredentials'],
22
23
  'appleKeyId': !runtime.exists(json, 'appleKeyId') ? undefined : json['appleKeyId'],
@@ -35,6 +36,7 @@ function ProviderUpdateRequestToJSON(value) {
35
36
  'clientSecret': value.clientSecret,
36
37
  'providerProjectId': value.providerProjectId,
37
38
  'defaultChainId': value.defaultChainId,
39
+ 'defaultChain': value.defaultChain,
38
40
  'keyExportUrl': value.keyExportUrl,
39
41
  'useDynamicCredentials': value.useDynamicCredentials,
40
42
  'appleKeyId': value.appleKeyId,
@@ -39,6 +39,12 @@ export interface ProviderUpdateRequest {
39
39
  * @memberof ProviderUpdateRequest
40
40
  */
41
41
  defaultChainId?: number;
42
+ /**
43
+ * CAIP-2 Chain ID (https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md)
44
+ * @type {string}
45
+ * @memberof ProviderUpdateRequest
46
+ */
47
+ defaultChain?: string;
42
48
  /**
43
49
  * The url of the site to go to export wallets private keys
44
50
  * @type {string}
@@ -13,6 +13,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
13
13
  'clientSecret': !exists(json, 'clientSecret') ? undefined : json['clientSecret'],
14
14
  'providerProjectId': !exists(json, 'providerProjectId') ? undefined : json['providerProjectId'],
15
15
  'defaultChainId': !exists(json, 'defaultChainId') ? undefined : json['defaultChainId'],
16
+ 'defaultChain': !exists(json, 'defaultChain') ? undefined : json['defaultChain'],
16
17
  'keyExportUrl': !exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
17
18
  'useDynamicCredentials': !exists(json, 'useDynamicCredentials') ? undefined : json['useDynamicCredentials'],
18
19
  'appleKeyId': !exists(json, 'appleKeyId') ? undefined : json['appleKeyId'],
@@ -31,6 +32,7 @@ function ProviderUpdateRequestToJSON(value) {
31
32
  'clientSecret': value.clientSecret,
32
33
  'providerProjectId': value.providerProjectId,
33
34
  'defaultChainId': value.defaultChainId,
35
+ 'defaultChain': value.defaultChain,
34
36
  'keyExportUrl': value.keyExportUrl,
35
37
  'useDynamicCredentials': value.useDynamicCredentials,
36
38
  'appleKeyId': value.appleKeyId,