@dynamic-labs/sdk-api 0.0.238 → 0.0.240

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.238",
3
+ "version": "0.0.240",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -549,6 +549,9 @@ class SDKApi extends runtime.BaseAPI {
549
549
  if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
550
550
  throw new runtime.RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling oauthRedirectCode.');
551
551
  }
552
+ if (requestParameters.code === null || requestParameters.code === undefined) {
553
+ throw new runtime.RequiredError('code', 'Required parameter requestParameters.code was null or undefined when calling oauthRedirectCode.');
554
+ }
552
555
  const queryParameters = {};
553
556
  if (requestParameters.code !== undefined) {
554
557
  queryParameters['code'] = requestParameters.code;
@@ -71,7 +71,7 @@ export interface OauthLoginOptionsRequest {
71
71
  export interface OauthRedirectCodeRequest {
72
72
  environmentId: string;
73
73
  providerType: ProviderEnum;
74
- code?: string;
74
+ code: string;
75
75
  scope?: string;
76
76
  authuser?: string;
77
77
  prompt?: string;
@@ -545,6 +545,9 @@ class SDKApi extends BaseAPI {
545
545
  if (requestParameters.providerType === null || requestParameters.providerType === undefined) {
546
546
  throw new RequiredError('providerType', 'Required parameter requestParameters.providerType was null or undefined when calling oauthRedirectCode.');
547
547
  }
548
+ if (requestParameters.code === null || requestParameters.code === undefined) {
549
+ throw new RequiredError('code', 'Required parameter requestParameters.code was null or undefined when calling oauthRedirectCode.');
550
+ }
548
551
  const queryParameters = {};
549
552
  if (requestParameters.code !== undefined) {
550
553
  queryParameters['code'] = requestParameters.code;
@@ -51,6 +51,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'kdaWallet': !runtime.exists(json, 'kda_wallet') ? undefined : json['kda_wallet'],
52
52
  'ltcWallet': !runtime.exists(json, 'ltc_wallet') ? undefined : json['ltc_wallet'],
53
53
  'ckbWallet': !runtime.exists(json, 'ckb_wallet') ? undefined : json['ckb_wallet'],
54
+ 'kasWallet': !runtime.exists(json, 'kas_wallet') ? undefined : json['kas_wallet'],
54
55
  'emailNotification': !runtime.exists(json, 'email_notification') ? undefined : json['email_notification'],
55
56
  'discordNotification': !runtime.exists(json, 'discord_notification') ? undefined : json['discord_notification'],
56
57
  'newsletterNotification': !runtime.exists(json, 'newsletter_notification') ? undefined : json['newsletter_notification'],
@@ -99,6 +100,7 @@ function DynamicJwtToJSON(value) {
99
100
  'kda_wallet': value.kdaWallet,
100
101
  'ltc_wallet': value.ltcWallet,
101
102
  'ckb_wallet': value.ckbWallet,
103
+ 'kas_wallet': value.kasWallet,
102
104
  'email_notification': value.emailNotification,
103
105
  'discord_notification': value.discordNotification,
104
106
  'newsletter_notification': value.newsletterNotification,
@@ -223,6 +223,12 @@ export interface DynamicJwt {
223
223
  * @memberof DynamicJwt
224
224
  */
225
225
  ckbWallet?: string;
226
+ /**
227
+ *
228
+ * @type {string}
229
+ * @memberof DynamicJwt
230
+ */
231
+ kasWallet?: string;
226
232
  /**
227
233
  *
228
234
  * @type {boolean}
@@ -47,6 +47,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'kdaWallet': !exists(json, 'kda_wallet') ? undefined : json['kda_wallet'],
48
48
  'ltcWallet': !exists(json, 'ltc_wallet') ? undefined : json['ltc_wallet'],
49
49
  'ckbWallet': !exists(json, 'ckb_wallet') ? undefined : json['ckb_wallet'],
50
+ 'kasWallet': !exists(json, 'kas_wallet') ? undefined : json['kas_wallet'],
50
51
  'emailNotification': !exists(json, 'email_notification') ? undefined : json['email_notification'],
51
52
  'discordNotification': !exists(json, 'discord_notification') ? undefined : json['discord_notification'],
52
53
  'newsletterNotification': !exists(json, 'newsletter_notification') ? undefined : json['newsletter_notification'],
@@ -95,6 +96,7 @@ function DynamicJwtToJSON(value) {
95
96
  'kda_wallet': value.kdaWallet,
96
97
  'ltc_wallet': value.ltcWallet,
97
98
  'ckb_wallet': value.ckbWallet,
99
+ 'kas_wallet': value.kasWallet,
98
100
  'email_notification': value.emailNotification,
99
101
  'discord_notification': value.discordNotification,
100
102
  'newsletter_notification': value.newsletterNotification,
@@ -28,6 +28,7 @@ function InternalUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'kdaWallet': !runtime.exists(json, 'kdaWallet') ? undefined : json['kdaWallet'],
29
29
  'ltcWallet': !runtime.exists(json, 'ltcWallet') ? undefined : json['ltcWallet'],
30
30
  'ckbWallet': !runtime.exists(json, 'ckbWallet') ? undefined : json['ckbWallet'],
31
+ 'kasWallet': !runtime.exists(json, 'kasWallet') ? undefined : json['kasWallet'],
31
32
  'emailNotification': !runtime.exists(json, 'emailNotification') ? undefined : json['emailNotification'],
32
33
  'discordNotification': !runtime.exists(json, 'discordNotification') ? undefined : json['discordNotification'],
33
34
  'newsletterNotification': !runtime.exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
@@ -56,6 +57,7 @@ function InternalUserFieldsToJSON(value) {
56
57
  'kdaWallet': value.kdaWallet,
57
58
  'ltcWallet': value.ltcWallet,
58
59
  'ckbWallet': value.ckbWallet,
60
+ 'kasWallet': value.kasWallet,
59
61
  'emailNotification': value.emailNotification,
60
62
  'discordNotification': value.discordNotification,
61
63
  'newsletterNotification': value.newsletterNotification,
@@ -105,6 +105,12 @@ export interface InternalUserFields {
105
105
  * @memberof InternalUserFields
106
106
  */
107
107
  ckbWallet?: string;
108
+ /**
109
+ *
110
+ * @type {string}
111
+ * @memberof InternalUserFields
112
+ */
113
+ kasWallet?: string;
108
114
  /**
109
115
  *
110
116
  * @type {boolean}
@@ -24,6 +24,7 @@ function InternalUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
24
24
  'kdaWallet': !exists(json, 'kdaWallet') ? undefined : json['kdaWallet'],
25
25
  'ltcWallet': !exists(json, 'ltcWallet') ? undefined : json['ltcWallet'],
26
26
  'ckbWallet': !exists(json, 'ckbWallet') ? undefined : json['ckbWallet'],
27
+ 'kasWallet': !exists(json, 'kasWallet') ? undefined : json['kasWallet'],
27
28
  'emailNotification': !exists(json, 'emailNotification') ? undefined : json['emailNotification'],
28
29
  'discordNotification': !exists(json, 'discordNotification') ? undefined : json['discordNotification'],
29
30
  'newsletterNotification': !exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
@@ -52,6 +53,7 @@ function InternalUserFieldsToJSON(value) {
52
53
  'kdaWallet': value.kdaWallet,
53
54
  'ltcWallet': value.ltcWallet,
54
55
  'ckbWallet': value.ckbWallet,
56
+ 'kasWallet': value.kasWallet,
55
57
  'emailNotification': value.emailNotification,
56
58
  'discordNotification': value.discordNotification,
57
59
  'newsletterNotification': value.newsletterNotification,
@@ -36,6 +36,7 @@ function SdkUserFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'kdaWallet': !runtime.exists(json, 'kdaWallet') ? undefined : json['kdaWallet'],
37
37
  'ltcWallet': !runtime.exists(json, 'ltcWallet') ? undefined : json['ltcWallet'],
38
38
  'ckbWallet': !runtime.exists(json, 'ckbWallet') ? undefined : json['ckbWallet'],
39
+ 'kasWallet': !runtime.exists(json, 'kasWallet') ? undefined : json['kasWallet'],
39
40
  'emailNotification': !runtime.exists(json, 'emailNotification') ? undefined : json['emailNotification'],
40
41
  'discordNotification': !runtime.exists(json, 'discordNotification') ? undefined : json['discordNotification'],
41
42
  'newsletterNotification': !runtime.exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
@@ -71,6 +72,7 @@ function SdkUserToJSON(value) {
71
72
  'kdaWallet': value.kdaWallet,
72
73
  'ltcWallet': value.ltcWallet,
73
74
  'ckbWallet': value.ckbWallet,
75
+ 'kasWallet': value.kasWallet,
74
76
  'emailNotification': value.emailNotification,
75
77
  'discordNotification': value.discordNotification,
76
78
  'newsletterNotification': value.newsletterNotification,
@@ -148,6 +148,12 @@ export interface SdkUser {
148
148
  * @memberof SdkUser
149
149
  */
150
150
  ckbWallet?: string | null;
151
+ /**
152
+ *
153
+ * @type {string}
154
+ * @memberof SdkUser
155
+ */
156
+ kasWallet?: string | null;
151
157
  /**
152
158
  *
153
159
  * @type {boolean}
@@ -32,6 +32,7 @@ function SdkUserFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'kdaWallet': !exists(json, 'kdaWallet') ? undefined : json['kdaWallet'],
33
33
  'ltcWallet': !exists(json, 'ltcWallet') ? undefined : json['ltcWallet'],
34
34
  'ckbWallet': !exists(json, 'ckbWallet') ? undefined : json['ckbWallet'],
35
+ 'kasWallet': !exists(json, 'kasWallet') ? undefined : json['kasWallet'],
35
36
  'emailNotification': !exists(json, 'emailNotification') ? undefined : json['emailNotification'],
36
37
  'discordNotification': !exists(json, 'discordNotification') ? undefined : json['discordNotification'],
37
38
  'newsletterNotification': !exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
@@ -67,6 +68,7 @@ function SdkUserToJSON(value) {
67
68
  'kdaWallet': value.kdaWallet,
68
69
  'ltcWallet': value.ltcWallet,
69
70
  'ckbWallet': value.ckbWallet,
71
+ 'kasWallet': value.kasWallet,
70
72
  'emailNotification': value.emailNotification,
71
73
  'discordNotification': value.discordNotification,
72
74
  'newsletterNotification': value.newsletterNotification,
@@ -40,6 +40,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'kdaWallet': !runtime.exists(json, 'kdaWallet') ? undefined : json['kdaWallet'],
41
41
  'ltcWallet': !runtime.exists(json, 'ltcWallet') ? undefined : json['ltcWallet'],
42
42
  'ckbWallet': !runtime.exists(json, 'ckbWallet') ? undefined : json['ckbWallet'],
43
+ 'kasWallet': !runtime.exists(json, 'kasWallet') ? undefined : json['kasWallet'],
43
44
  'emailNotification': !runtime.exists(json, 'emailNotification') ? undefined : json['emailNotification'],
44
45
  'discordNotification': !runtime.exists(json, 'discordNotification') ? undefined : json['discordNotification'],
45
46
  'newsletterNotification': !runtime.exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
@@ -83,6 +84,7 @@ function UserToJSON(value) {
83
84
  'kdaWallet': value.kdaWallet,
84
85
  'ltcWallet': value.ltcWallet,
85
86
  'ckbWallet': value.ckbWallet,
87
+ 'kasWallet': value.kasWallet,
86
88
  'emailNotification': value.emailNotification,
87
89
  'discordNotification': value.discordNotification,
88
90
  'newsletterNotification': value.newsletterNotification,
@@ -152,6 +152,12 @@ export interface User {
152
152
  * @memberof User
153
153
  */
154
154
  ckbWallet?: string | null;
155
+ /**
156
+ *
157
+ * @type {string}
158
+ * @memberof User
159
+ */
160
+ kasWallet?: string | null;
155
161
  /**
156
162
  *
157
163
  * @type {boolean}
@@ -36,6 +36,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'kdaWallet': !exists(json, 'kdaWallet') ? undefined : json['kdaWallet'],
37
37
  'ltcWallet': !exists(json, 'ltcWallet') ? undefined : json['ltcWallet'],
38
38
  'ckbWallet': !exists(json, 'ckbWallet') ? undefined : json['ckbWallet'],
39
+ 'kasWallet': !exists(json, 'kasWallet') ? undefined : json['kasWallet'],
39
40
  'emailNotification': !exists(json, 'emailNotification') ? undefined : json['emailNotification'],
40
41
  'discordNotification': !exists(json, 'discordNotification') ? undefined : json['discordNotification'],
41
42
  'newsletterNotification': !exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
@@ -79,6 +80,7 @@ function UserToJSON(value) {
79
80
  'kdaWallet': value.kdaWallet,
80
81
  'ltcWallet': value.ltcWallet,
81
82
  'ckbWallet': value.ckbWallet,
83
+ 'kasWallet': value.kasWallet,
82
84
  'emailNotification': value.emailNotification,
83
85
  'discordNotification': value.discordNotification,
84
86
  'newsletterNotification': value.newsletterNotification,
@@ -30,6 +30,7 @@ function UserFieldsFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'kdaWallet': !runtime.exists(json, 'kdaWallet') ? undefined : json['kdaWallet'],
31
31
  'ltcWallet': !runtime.exists(json, 'ltcWallet') ? undefined : json['ltcWallet'],
32
32
  'ckbWallet': !runtime.exists(json, 'ckbWallet') ? undefined : json['ckbWallet'],
33
+ 'kasWallet': !runtime.exists(json, 'kasWallet') ? undefined : json['kasWallet'],
33
34
  'emailNotification': !runtime.exists(json, 'emailNotification') ? undefined : json['emailNotification'],
34
35
  'discordNotification': !runtime.exists(json, 'discordNotification') ? undefined : json['discordNotification'],
35
36
  'newsletterNotification': !runtime.exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
@@ -60,6 +61,7 @@ function UserFieldsToJSON(value) {
60
61
  'kdaWallet': value.kdaWallet,
61
62
  'ltcWallet': value.ltcWallet,
62
63
  'ckbWallet': value.ckbWallet,
64
+ 'kasWallet': value.kasWallet,
63
65
  'emailNotification': value.emailNotification,
64
66
  'discordNotification': value.discordNotification,
65
67
  'newsletterNotification': value.newsletterNotification,
@@ -117,6 +117,12 @@ export interface UserFields {
117
117
  * @memberof UserFields
118
118
  */
119
119
  ckbWallet?: string;
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof UserFields
124
+ */
125
+ kasWallet?: string;
120
126
  /**
121
127
  *
122
128
  * @type {boolean}
@@ -26,6 +26,7 @@ function UserFieldsFromJSONTyped(json, ignoreDiscriminator) {
26
26
  'kdaWallet': !exists(json, 'kdaWallet') ? undefined : json['kdaWallet'],
27
27
  'ltcWallet': !exists(json, 'ltcWallet') ? undefined : json['ltcWallet'],
28
28
  'ckbWallet': !exists(json, 'ckbWallet') ? undefined : json['ckbWallet'],
29
+ 'kasWallet': !exists(json, 'kasWallet') ? undefined : json['kasWallet'],
29
30
  'emailNotification': !exists(json, 'emailNotification') ? undefined : json['emailNotification'],
30
31
  'discordNotification': !exists(json, 'discordNotification') ? undefined : json['discordNotification'],
31
32
  'newsletterNotification': !exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
@@ -56,6 +57,7 @@ function UserFieldsToJSON(value) {
56
57
  'kdaWallet': value.kdaWallet,
57
58
  'ltcWallet': value.ltcWallet,
58
59
  'ckbWallet': value.ckbWallet,
60
+ 'kasWallet': value.kasWallet,
59
61
  'emailNotification': value.emailNotification,
60
62
  'discordNotification': value.discordNotification,
61
63
  'newsletterNotification': value.newsletterNotification,