@dynamic-labs/sdk-api 0.0.847 → 0.0.848

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.847",
3
+ "version": "0.0.848",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -87,6 +87,7 @@ require('../models/NextViewEnum.cjs');
87
87
  require('../models/OauthResultStatus.cjs');
88
88
  require('../models/WhenToImplementEnum.cjs');
89
89
  require('../models/PublishEventsEvents.cjs');
90
+ var SessionsResponse = require('../models/SessionsResponse.cjs');
90
91
  require('../models/SsoProviderEnum.cjs');
91
92
  require('../models/SsoProviderCheckResponse.cjs');
92
93
  require('../models/SubscriptionAdvancedScopeEnum.cjs');
@@ -420,6 +421,50 @@ class UsersApi extends runtime.BaseAPI {
420
421
  return yield response.value();
421
422
  });
422
423
  }
424
+ /**
425
+ * Get all sessions for a user by user ID
426
+ */
427
+ getUserSessionsRaw(requestParameters, initOverrides) {
428
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
429
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
430
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserSessions.');
431
+ }
432
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
433
+ throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling getUserSessions.');
434
+ }
435
+ const queryParameters = {};
436
+ if (requestParameters.limit !== undefined) {
437
+ queryParameters['limit'] = requestParameters.limit;
438
+ }
439
+ if (requestParameters.offset !== undefined) {
440
+ queryParameters['offset'] = requestParameters.offset;
441
+ }
442
+ const headerParameters = {};
443
+ if (this.configuration && this.configuration.accessToken) {
444
+ const token = this.configuration.accessToken;
445
+ const tokenString = yield token("bearerAuth", []);
446
+ if (tokenString) {
447
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
448
+ }
449
+ }
450
+ const response = yield this.request({
451
+ path: `/environments/{environmentId}/users/{userId}/sessions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
452
+ method: 'GET',
453
+ headers: headerParameters,
454
+ query: queryParameters,
455
+ }, initOverrides);
456
+ return new runtime.JSONApiResponse(response, (jsonValue) => SessionsResponse.SessionsResponseFromJSON(jsonValue));
457
+ });
458
+ }
459
+ /**
460
+ * Get all sessions for a user by user ID
461
+ */
462
+ getUserSessions(requestParameters, initOverrides) {
463
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
464
+ const response = yield this.getUserSessionsRaw(requestParameters, initOverrides);
465
+ return yield response.value();
466
+ });
467
+ }
423
468
  /**
424
469
  * Revoke sessions by user ID
425
470
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { BulkUserCreateResponse, InternalBulkUpdateUserFields, InternalUpdatableUserFields, InternalUserFields, UserOauthAccessTokenResponse, UserResponse, UserSearchFilterParams, UsersResponse } from '../models';
13
+ import { BulkUserCreateResponse, InternalBulkUpdateUserFields, InternalUpdatableUserFields, InternalUserFields, SessionsResponse, UserOauthAccessTokenResponse, UserResponse, UserSearchFilterParams, UsersResponse } from '../models';
14
14
  export interface BulkCreateUserRequest {
15
15
  environmentId: string;
16
16
  internalUserFields: Array<InternalUserFields>;
@@ -45,6 +45,12 @@ export interface GetUserLegacyRequest {
45
45
  export interface GetUserOauthAccessTokenRequest {
46
46
  oauthAccountId: string;
47
47
  }
48
+ export interface GetUserSessionsRequest {
49
+ environmentId: string;
50
+ userId: string;
51
+ limit?: number;
52
+ offset?: number;
53
+ }
48
54
  export interface RevokeUserSessionsRequest {
49
55
  environmentId: string;
50
56
  userId: string;
@@ -129,6 +135,14 @@ export declare class UsersApi extends runtime.BaseAPI {
129
135
  * Get the access token for a user OAuth account
130
136
  */
131
137
  getUserOauthAccessToken(requestParameters: GetUserOauthAccessTokenRequest, initOverrides?: RequestInit): Promise<UserOauthAccessTokenResponse>;
138
+ /**
139
+ * Get all sessions for a user by user ID
140
+ */
141
+ getUserSessionsRaw(requestParameters: GetUserSessionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<SessionsResponse>>;
142
+ /**
143
+ * Get all sessions for a user by user ID
144
+ */
145
+ getUserSessions(requestParameters: GetUserSessionsRequest, initOverrides?: RequestInit): Promise<SessionsResponse>;
132
146
  /**
133
147
  * Revoke sessions by user ID
134
148
  */
@@ -83,6 +83,7 @@ import '../models/NextViewEnum.js';
83
83
  import '../models/OauthResultStatus.js';
84
84
  import '../models/WhenToImplementEnum.js';
85
85
  import '../models/PublishEventsEvents.js';
86
+ import { SessionsResponseFromJSON } from '../models/SessionsResponse.js';
86
87
  import '../models/SsoProviderEnum.js';
87
88
  import '../models/SsoProviderCheckResponse.js';
88
89
  import '../models/SubscriptionAdvancedScopeEnum.js';
@@ -416,6 +417,50 @@ class UsersApi extends BaseAPI {
416
417
  return yield response.value();
417
418
  });
418
419
  }
420
+ /**
421
+ * Get all sessions for a user by user ID
422
+ */
423
+ getUserSessionsRaw(requestParameters, initOverrides) {
424
+ return __awaiter(this, void 0, void 0, function* () {
425
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
426
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserSessions.');
427
+ }
428
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
429
+ throw new RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling getUserSessions.');
430
+ }
431
+ const queryParameters = {};
432
+ if (requestParameters.limit !== undefined) {
433
+ queryParameters['limit'] = requestParameters.limit;
434
+ }
435
+ if (requestParameters.offset !== undefined) {
436
+ queryParameters['offset'] = requestParameters.offset;
437
+ }
438
+ const headerParameters = {};
439
+ if (this.configuration && this.configuration.accessToken) {
440
+ const token = this.configuration.accessToken;
441
+ const tokenString = yield token("bearerAuth", []);
442
+ if (tokenString) {
443
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
444
+ }
445
+ }
446
+ const response = yield this.request({
447
+ path: `/environments/{environmentId}/users/{userId}/sessions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
448
+ method: 'GET',
449
+ headers: headerParameters,
450
+ query: queryParameters,
451
+ }, initOverrides);
452
+ return new JSONApiResponse(response, (jsonValue) => SessionsResponseFromJSON(jsonValue));
453
+ });
454
+ }
455
+ /**
456
+ * Get all sessions for a user by user ID
457
+ */
458
+ getUserSessions(requestParameters, initOverrides) {
459
+ return __awaiter(this, void 0, void 0, function* () {
460
+ const response = yield this.getUserSessionsRaw(requestParameters, initOverrides);
461
+ return yield response.value();
462
+ });
463
+ }
419
464
  /**
420
465
  * Revoke sessions by user ID
421
466
  */
package/src/index.cjs CHANGED
@@ -472,6 +472,7 @@ var SdkViewUpdateRequest = require('./models/SdkViewUpdateRequest.cjs');
472
472
  var SdkViewsResponse = require('./models/SdkViewsResponse.cjs');
473
473
  var Session = require('./models/Session.cjs');
474
474
  var SessionsHeatmapResult = require('./models/SessionsHeatmapResult.cjs');
475
+ var SessionsResponse = require('./models/SessionsResponse.cjs');
475
476
  var SessionsTrendResult = require('./models/SessionsTrendResult.cjs');
476
477
  var SignInProviderEnum = require('./models/SignInProviderEnum.cjs');
477
478
  var SignMessageAuthorizationSignature = require('./models/SignMessageAuthorizationSignature.cjs');
@@ -2250,6 +2251,9 @@ exports.SessionToJSON = Session.SessionToJSON;
2250
2251
  exports.SessionsHeatmapResultFromJSON = SessionsHeatmapResult.SessionsHeatmapResultFromJSON;
2251
2252
  exports.SessionsHeatmapResultFromJSONTyped = SessionsHeatmapResult.SessionsHeatmapResultFromJSONTyped;
2252
2253
  exports.SessionsHeatmapResultToJSON = SessionsHeatmapResult.SessionsHeatmapResultToJSON;
2254
+ exports.SessionsResponseFromJSON = SessionsResponse.SessionsResponseFromJSON;
2255
+ exports.SessionsResponseFromJSONTyped = SessionsResponse.SessionsResponseFromJSONTyped;
2256
+ exports.SessionsResponseToJSON = SessionsResponse.SessionsResponseToJSON;
2253
2257
  exports.SessionsTrendResultFromJSON = SessionsTrendResult.SessionsTrendResultFromJSON;
2254
2258
  exports.SessionsTrendResultFromJSONTyped = SessionsTrendResult.SessionsTrendResultFromJSONTyped;
2255
2259
  exports.SessionsTrendResultToJSON = SessionsTrendResult.SessionsTrendResultToJSON;
package/src/index.js CHANGED
@@ -468,6 +468,7 @@ export { SdkViewUpdateRequestFromJSON, SdkViewUpdateRequestFromJSONTyped, SdkVie
468
468
  export { SdkViewsResponseFromJSON, SdkViewsResponseFromJSONTyped, SdkViewsResponseToJSON } from './models/SdkViewsResponse.js';
469
469
  export { SessionFromJSON, SessionFromJSONTyped, SessionToJSON } from './models/Session.js';
470
470
  export { SessionsHeatmapResultFromJSON, SessionsHeatmapResultFromJSONTyped, SessionsHeatmapResultToJSON } from './models/SessionsHeatmapResult.js';
471
+ export { SessionsResponseFromJSON, SessionsResponseFromJSONTyped, SessionsResponseToJSON } from './models/SessionsResponse.js';
471
472
  export { SessionsTrendResultFromJSON, SessionsTrendResultFromJSONTyped, SessionsTrendResultToJSON } from './models/SessionsTrendResult.js';
472
473
  export { SignInProviderEnum, SignInProviderEnumFromJSON, SignInProviderEnumFromJSONTyped, SignInProviderEnumToJSON } from './models/SignInProviderEnum.js';
473
474
  export { SignMessageAuthorizationSignatureFromJSON, SignMessageAuthorizationSignatureFromJSONTyped, SignMessageAuthorizationSignatureToJSON } from './models/SignMessageAuthorizationSignature.js';
@@ -41,6 +41,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'domain': !runtime.exists(json, 'domain') ? undefined : json['domain'],
42
42
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
43
43
  'twilioNumber': !runtime.exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
44
+ 'twilioVerifyServiceSid': !runtime.exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
44
45
  'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
45
46
  'sendgridIpPoolName': !runtime.exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
46
47
  'entryPointVersion': !runtime.exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
@@ -91,6 +92,7 @@ function ProviderToJSON(value) {
91
92
  'domain': value.domain,
92
93
  'accountSid': value.accountSid,
93
94
  'twilioNumber': value.twilioNumber,
95
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
94
96
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
95
97
  'sendgridIpPoolName': value.sendgridIpPoolName,
96
98
  'entryPointVersion': ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
@@ -143,6 +143,12 @@ export interface Provider {
143
143
  * @memberof Provider
144
144
  */
145
145
  twilioNumber?: string;
146
+ /**
147
+ * Twilio Verify Service SID for SMS verification.
148
+ * @type {string}
149
+ * @memberof Provider
150
+ */
151
+ twilioVerifyServiceSid?: string;
146
152
  /**
147
153
  *
148
154
  * @type {Array<SmsCountryCode>}
@@ -37,6 +37,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'domain': !exists(json, 'domain') ? undefined : json['domain'],
38
38
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
39
39
  'twilioNumber': !exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
40
+ 'twilioVerifyServiceSid': !exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
40
41
  'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
41
42
  'sendgridIpPoolName': !exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
42
43
  'entryPointVersion': !exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
@@ -87,6 +88,7 @@ function ProviderToJSON(value) {
87
88
  'domain': value.domain,
88
89
  'accountSid': value.accountSid,
89
90
  'twilioNumber': value.twilioNumber,
91
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
90
92
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
91
93
  'sendgridIpPoolName': value.sendgridIpPoolName,
92
94
  'entryPointVersion': ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
@@ -35,6 +35,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'shopifyStore': !runtime.exists(json, 'shopifyStore') ? undefined : json['shopifyStore'],
36
36
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
37
37
  'twilioNumber': !runtime.exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
38
+ 'twilioVerifyServiceSid': !runtime.exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
38
39
  'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
39
40
  'sendgridIpPoolName': !runtime.exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
40
41
  'multichainAccountAbstractionProviders': !runtime.exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
@@ -79,6 +80,7 @@ function ProviderCreateRequestToJSON(value) {
79
80
  'shopifyStore': value.shopifyStore,
80
81
  'accountSid': value.accountSid,
81
82
  'twilioNumber': value.twilioNumber,
83
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
82
84
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
83
85
  'sendgridIpPoolName': value.sendgridIpPoolName,
84
86
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
@@ -112,6 +112,12 @@ export interface ProviderCreateRequest {
112
112
  * @memberof ProviderCreateRequest
113
113
  */
114
114
  twilioNumber?: string;
115
+ /**
116
+ * Twilio Verify Service SID for SMS verification.
117
+ * @type {string}
118
+ * @memberof ProviderCreateRequest
119
+ */
120
+ twilioVerifyServiceSid?: string;
115
121
  /**
116
122
  *
117
123
  * @type {Array<SmsCountryCode>}
@@ -31,6 +31,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'shopifyStore': !exists(json, 'shopifyStore') ? undefined : json['shopifyStore'],
32
32
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
33
33
  'twilioNumber': !exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
34
+ 'twilioVerifyServiceSid': !exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
34
35
  'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
35
36
  'sendgridIpPoolName': !exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
36
37
  'multichainAccountAbstractionProviders': !exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
@@ -75,6 +76,7 @@ function ProviderCreateRequestToJSON(value) {
75
76
  'shopifyStore': value.shopifyStore,
76
77
  'accountSid': value.accountSid,
77
78
  'twilioNumber': value.twilioNumber,
79
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
78
80
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
79
81
  'sendgridIpPoolName': value.sendgridIpPoolName,
80
82
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
@@ -33,6 +33,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'domain': !runtime.exists(json, 'domain') ? undefined : json['domain'],
34
34
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
35
35
  'twilioNumber': !runtime.exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
36
+ 'twilioVerifyServiceSid': !runtime.exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
36
37
  'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
37
38
  'sendgridIpPoolName': !runtime.exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
38
39
  'multichainAccountAbstractionProviders': !runtime.exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
@@ -75,6 +76,7 @@ function ProviderUpdateRequestToJSON(value) {
75
76
  'domain': value.domain,
76
77
  'accountSid': value.accountSid,
77
78
  'twilioNumber': value.twilioNumber,
79
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
78
80
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
79
81
  'sendgridIpPoolName': value.sendgridIpPoolName,
80
82
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
@@ -105,6 +105,12 @@ export interface ProviderUpdateRequest {
105
105
  * @memberof ProviderUpdateRequest
106
106
  */
107
107
  twilioNumber?: string;
108
+ /**
109
+ * Twilio Verify Service SID for SMS verification.
110
+ * @type {string}
111
+ * @memberof ProviderUpdateRequest
112
+ */
113
+ twilioVerifyServiceSid?: string;
108
114
  /**
109
115
  *
110
116
  * @type {Array<SmsCountryCode>}
@@ -29,6 +29,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'domain': !exists(json, 'domain') ? undefined : json['domain'],
30
30
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
31
31
  'twilioNumber': !exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
32
+ 'twilioVerifyServiceSid': !exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
32
33
  'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
33
34
  'sendgridIpPoolName': !exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
34
35
  'multichainAccountAbstractionProviders': !exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
@@ -71,6 +72,7 @@ function ProviderUpdateRequestToJSON(value) {
71
72
  'domain': value.domain,
72
73
  'accountSid': value.accountSid,
73
74
  'twilioNumber': value.twilioNumber,
75
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
74
76
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
75
77
  'sendgridIpPoolName': value.sendgridIpPoolName,
76
78
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Session = require('./Session.cjs');
6
+
7
+ /* tslint:disable */
8
+ function SessionsResponseFromJSON(json) {
9
+ return SessionsResponseFromJSONTyped(json);
10
+ }
11
+ function SessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'sessions': (json['sessions'].map(Session.SessionFromJSON)),
17
+ };
18
+ }
19
+ function SessionsResponseToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'sessions': (value.sessions.map(Session.SessionToJSON)),
28
+ };
29
+ }
30
+
31
+ exports.SessionsResponseFromJSON = SessionsResponseFromJSON;
32
+ exports.SessionsResponseFromJSONTyped = SessionsResponseFromJSONTyped;
33
+ exports.SessionsResponseToJSON = SessionsResponseToJSON;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Session } from './Session';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SessionsResponse
17
+ */
18
+ export interface SessionsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<Session>}
22
+ * @memberof SessionsResponse
23
+ */
24
+ sessions: Array<Session>;
25
+ }
26
+ export declare function SessionsResponseFromJSON(json: any): SessionsResponse;
27
+ export declare function SessionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionsResponse;
28
+ export declare function SessionsResponseToJSON(value?: SessionsResponse | null): any;
@@ -0,0 +1,27 @@
1
+ import { SessionFromJSON, SessionToJSON } from './Session.js';
2
+
3
+ /* tslint:disable */
4
+ function SessionsResponseFromJSON(json) {
5
+ return SessionsResponseFromJSONTyped(json);
6
+ }
7
+ function SessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'sessions': (json['sessions'].map(SessionFromJSON)),
13
+ };
14
+ }
15
+ function SessionsResponseToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'sessions': (value.sessions.map(SessionToJSON)),
24
+ };
25
+ }
26
+
27
+ export { SessionsResponseFromJSON, SessionsResponseFromJSONTyped, SessionsResponseToJSON };
@@ -25,6 +25,8 @@ function SsoProviderFromJSONTyped(json, ignoreDiscriminator) {
25
25
  'enforceOnlySSO': json['enforceOnlySSO'],
26
26
  'createdAt': (new Date(json['createdAt'])),
27
27
  'updatedAt': (new Date(json['updatedAt'])),
28
+ 'ssoDomainVerifiedAt': !runtime.exists(json, 'ssoDomainVerifiedAt') ? undefined : (new Date(json['ssoDomainVerifiedAt'])),
29
+ 'ssoDomainVerificationChallenge': !runtime.exists(json, 'ssoDomainVerificationChallenge') ? undefined : json['ssoDomainVerificationChallenge'],
28
30
  };
29
31
  }
30
32
  function SsoProviderToJSON(value) {
@@ -46,6 +48,8 @@ function SsoProviderToJSON(value) {
46
48
  'enforceOnlySSO': value.enforceOnlySSO,
47
49
  'createdAt': (value.createdAt.toISOString()),
48
50
  'updatedAt': (value.updatedAt.toISOString()),
51
+ 'ssoDomainVerifiedAt': value.ssoDomainVerifiedAt === undefined ? undefined : (value.ssoDomainVerifiedAt.toISOString()),
52
+ 'ssoDomainVerificationChallenge': value.ssoDomainVerificationChallenge,
49
53
  };
50
54
  }
51
55
 
@@ -82,6 +82,18 @@ export interface SsoProvider {
82
82
  * @memberof SsoProvider
83
83
  */
84
84
  updatedAt: Date;
85
+ /**
86
+ * Timestamp when the SSO domain was verified by Dynamic API. This will be present when the SSO domain ownership has been verified by setting a TXT record in DNS.
87
+ * @type {Date}
88
+ * @memberof SsoProvider
89
+ */
90
+ ssoDomainVerifiedAt?: Date;
91
+ /**
92
+ * TXT record challenge string for the SSO domain verification. This will be provided when the SSO provider domain ownership needs to be verified by setting a TXT record in DNS.
93
+ * @type {string}
94
+ * @memberof SsoProvider
95
+ */
96
+ ssoDomainVerificationChallenge?: string;
85
97
  }
86
98
  export declare function SsoProviderFromJSON(json: any): SsoProvider;
87
99
  export declare function SsoProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SsoProvider;
@@ -21,6 +21,8 @@ function SsoProviderFromJSONTyped(json, ignoreDiscriminator) {
21
21
  'enforceOnlySSO': json['enforceOnlySSO'],
22
22
  'createdAt': (new Date(json['createdAt'])),
23
23
  'updatedAt': (new Date(json['updatedAt'])),
24
+ 'ssoDomainVerifiedAt': !exists(json, 'ssoDomainVerifiedAt') ? undefined : (new Date(json['ssoDomainVerifiedAt'])),
25
+ 'ssoDomainVerificationChallenge': !exists(json, 'ssoDomainVerificationChallenge') ? undefined : json['ssoDomainVerificationChallenge'],
24
26
  };
25
27
  }
26
28
  function SsoProviderToJSON(value) {
@@ -42,6 +44,8 @@ function SsoProviderToJSON(value) {
42
44
  'enforceOnlySSO': value.enforceOnlySSO,
43
45
  'createdAt': (value.createdAt.toISOString()),
44
46
  'updatedAt': (value.updatedAt.toISOString()),
47
+ 'ssoDomainVerifiedAt': value.ssoDomainVerifiedAt === undefined ? undefined : (value.ssoDomainVerifiedAt.toISOString()),
48
+ 'ssoDomainVerificationChallenge': value.ssoDomainVerificationChallenge,
45
49
  };
46
50
  }
47
51
 
@@ -431,6 +431,7 @@ export * from './SdkViewUpdateRequest';
431
431
  export * from './SdkViewsResponse';
432
432
  export * from './Session';
433
433
  export * from './SessionsHeatmapResult';
434
+ export * from './SessionsResponse';
434
435
  export * from './SessionsTrendResult';
435
436
  export * from './SignInProviderEnum';
436
437
  export * from './SignMessageAuthorizationSignature';