@dynamic-labs/sdk-api 0.0.328 → 0.0.330

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.328",
3
+ "version": "0.0.330",
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
  };