@equisoft/account-service-sdk-typescript 9.6.1-snapshot.20250610182740 → 9.6.1-snapshot.20250612170000

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.
@@ -56,6 +56,8 @@ src/models/PermissionResourceType.ts
56
56
  src/models/Role.ts
57
57
  src/models/RoleCreated.ts
58
58
  src/models/RolesOnOrganization.ts
59
+ src/models/SearchSessionResult.ts
60
+ src/models/SearchSessionResults.ts
59
61
  src/models/SendResetPasswordLinkPayload.ts
60
62
  src/models/SendSignupInvitationPayload.ts
61
63
  src/models/ServiceAccountCreationSchema.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { EnableEquisoftConnectPayload, ImpersonatePayload, Session, SessionPayload, SsoToken } from '../models/index';
13
+ import type { EnableEquisoftConnectPayload, ImpersonatePayload, SearchSessionResults, Session, SessionPayload, SsoToken } from '../models/index';
14
14
  export interface CreateSessionRequest {
15
15
  sessionPayload: SessionPayload;
16
16
  }
@@ -41,9 +41,15 @@ export interface ImpersonateRequest {
41
41
  uuid: string;
42
42
  impersonatePayload: ImpersonatePayload;
43
43
  }
44
+ export interface KeepAliveRequest {
45
+ uuid: string;
46
+ }
44
47
  export interface RevertIdentityRequest {
45
48
  uuid: string;
46
49
  }
50
+ export interface SearchSessionsRequest {
51
+ uuid: string;
52
+ }
47
53
  export interface SetSessionSsoTokenRequest {
48
54
  uuid: string;
49
55
  tokenId: string;
@@ -135,6 +141,14 @@ export declare class SessionApi extends runtime.BaseAPI {
135
141
  * Impersonate the given user context.
136
142
  */
137
143
  impersonate(requestParameters: ImpersonateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Session>;
144
+ /**
145
+ * Keep a session from expiring from inactivity.
146
+ */
147
+ keepAliveRaw(requestParameters: KeepAliveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
148
+ /**
149
+ * Keep a session from expiring from inactivity.
150
+ */
151
+ keepAlive(requestParameters: KeepAliveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
138
152
  /**
139
153
  * Revert an impersonated session to the context of the \"admin\" user who initiated the impersonation.
140
154
  */
@@ -143,6 +157,14 @@ export declare class SessionApi extends runtime.BaseAPI {
143
157
  * Revert an impersonated session to the context of the \"admin\" user who initiated the impersonation.
144
158
  */
145
159
  revertIdentity(requestParameters: RevertIdentityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Session>;
160
+ /**
161
+ * Search for sessions corresponding to given criteria.
162
+ */
163
+ searchSessionsRaw(requestParameters: SearchSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchSessionResults>>;
164
+ /**
165
+ * Search for sessions corresponding to given criteria.
166
+ */
167
+ searchSessions(requestParameters: SearchSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchSessionResults>;
146
168
  /**
147
169
  * Store a sso token for the session for a given id/name/type
148
170
  */
@@ -402,6 +402,41 @@ class SessionApi extends runtime.BaseAPI {
402
402
  return yield response.value();
403
403
  });
404
404
  }
405
+ /**
406
+ * Keep a session from expiring from inactivity.
407
+ */
408
+ keepAliveRaw(requestParameters, initOverrides) {
409
+ return __awaiter(this, void 0, void 0, function* () {
410
+ if (requestParameters['uuid'] == null) {
411
+ throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling keepAlive().');
412
+ }
413
+ const queryParameters = {};
414
+ const headerParameters = {};
415
+ if (this.configuration && this.configuration.accessToken) {
416
+ // oauth required
417
+ const token = this.configuration.accessToken;
418
+ const tokenString = yield token("OAuth2", ["account:session"]);
419
+ if (tokenString) {
420
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
421
+ }
422
+ }
423
+ const response = yield this.request({
424
+ path: `/sessions/{uuid}/keepAlive`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid']))),
425
+ method: 'POST',
426
+ headers: headerParameters,
427
+ query: queryParameters,
428
+ }, initOverrides);
429
+ return new runtime.VoidApiResponse(response);
430
+ });
431
+ }
432
+ /**
433
+ * Keep a session from expiring from inactivity.
434
+ */
435
+ keepAlive(requestParameters, initOverrides) {
436
+ return __awaiter(this, void 0, void 0, function* () {
437
+ yield this.keepAliveRaw(requestParameters, initOverrides);
438
+ });
439
+ }
405
440
  /**
406
441
  * Revert an impersonated session to the context of the \"admin\" user who initiated the impersonation.
407
442
  */
@@ -438,6 +473,45 @@ class SessionApi extends runtime.BaseAPI {
438
473
  return yield response.value();
439
474
  });
440
475
  }
476
+ /**
477
+ * Search for sessions corresponding to given criteria.
478
+ */
479
+ searchSessionsRaw(requestParameters, initOverrides) {
480
+ return __awaiter(this, void 0, void 0, function* () {
481
+ if (requestParameters['uuid'] == null) {
482
+ throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling searchSessions().');
483
+ }
484
+ const queryParameters = {};
485
+ if (requestParameters['uuid'] != null) {
486
+ queryParameters['uuid'] = requestParameters['uuid'];
487
+ }
488
+ const headerParameters = {};
489
+ if (this.configuration && this.configuration.accessToken) {
490
+ // oauth required
491
+ const token = this.configuration.accessToken;
492
+ const tokenString = yield token("OAuth2", []);
493
+ if (tokenString) {
494
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
495
+ }
496
+ }
497
+ const response = yield this.request({
498
+ path: `/sessions`,
499
+ method: 'GET',
500
+ headers: headerParameters,
501
+ query: queryParameters,
502
+ }, initOverrides);
503
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SearchSessionResultsFromJSON)(jsonValue));
504
+ });
505
+ }
506
+ /**
507
+ * Search for sessions corresponding to given criteria.
508
+ */
509
+ searchSessions(requestParameters, initOverrides) {
510
+ return __awaiter(this, void 0, void 0, function* () {
511
+ const response = yield this.searchSessionsRaw(requestParameters, initOverrides);
512
+ return yield response.value();
513
+ });
514
+ }
441
515
  /**
442
516
  * Store a sso token for the session for a given id/name/type
443
517
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { EnableEquisoftConnectPayload, ImpersonatePayload, Session, SessionPayload, SsoToken } from '../models/index';
13
+ import type { EnableEquisoftConnectPayload, ImpersonatePayload, SearchSessionResults, Session, SessionPayload, SsoToken } from '../models/index';
14
14
  export interface CreateSessionRequest {
15
15
  sessionPayload: SessionPayload;
16
16
  }
@@ -41,9 +41,15 @@ export interface ImpersonateRequest {
41
41
  uuid: string;
42
42
  impersonatePayload: ImpersonatePayload;
43
43
  }
44
+ export interface KeepAliveRequest {
45
+ uuid: string;
46
+ }
44
47
  export interface RevertIdentityRequest {
45
48
  uuid: string;
46
49
  }
50
+ export interface SearchSessionsRequest {
51
+ uuid: string;
52
+ }
47
53
  export interface SetSessionSsoTokenRequest {
48
54
  uuid: string;
49
55
  tokenId: string;
@@ -135,6 +141,14 @@ export declare class SessionApi extends runtime.BaseAPI {
135
141
  * Impersonate the given user context.
136
142
  */
137
143
  impersonate(requestParameters: ImpersonateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Session>;
144
+ /**
145
+ * Keep a session from expiring from inactivity.
146
+ */
147
+ keepAliveRaw(requestParameters: KeepAliveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
148
+ /**
149
+ * Keep a session from expiring from inactivity.
150
+ */
151
+ keepAlive(requestParameters: KeepAliveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
138
152
  /**
139
153
  * Revert an impersonated session to the context of the \"admin\" user who initiated the impersonation.
140
154
  */
@@ -143,6 +157,14 @@ export declare class SessionApi extends runtime.BaseAPI {
143
157
  * Revert an impersonated session to the context of the \"admin\" user who initiated the impersonation.
144
158
  */
145
159
  revertIdentity(requestParameters: RevertIdentityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Session>;
160
+ /**
161
+ * Search for sessions corresponding to given criteria.
162
+ */
163
+ searchSessionsRaw(requestParameters: SearchSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchSessionResults>>;
164
+ /**
165
+ * Search for sessions corresponding to given criteria.
166
+ */
167
+ searchSessions(requestParameters: SearchSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchSessionResults>;
146
168
  /**
147
169
  * Store a sso token for the session for a given id/name/type
148
170
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { EnableEquisoftConnectPayloadToJSON, ImpersonatePayloadToJSON, SessionFromJSON, SessionPayloadToJSON, SsoTokenFromJSON, } from '../models/index';
24
+ import { EnableEquisoftConnectPayloadToJSON, ImpersonatePayloadToJSON, SearchSessionResultsFromJSON, SessionFromJSON, SessionPayloadToJSON, SsoTokenFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -399,6 +399,41 @@ export class SessionApi extends runtime.BaseAPI {
399
399
  return yield response.value();
400
400
  });
401
401
  }
402
+ /**
403
+ * Keep a session from expiring from inactivity.
404
+ */
405
+ keepAliveRaw(requestParameters, initOverrides) {
406
+ return __awaiter(this, void 0, void 0, function* () {
407
+ if (requestParameters['uuid'] == null) {
408
+ throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling keepAlive().');
409
+ }
410
+ const queryParameters = {};
411
+ const headerParameters = {};
412
+ if (this.configuration && this.configuration.accessToken) {
413
+ // oauth required
414
+ const token = this.configuration.accessToken;
415
+ const tokenString = yield token("OAuth2", ["account:session"]);
416
+ if (tokenString) {
417
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
418
+ }
419
+ }
420
+ const response = yield this.request({
421
+ path: `/sessions/{uuid}/keepAlive`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid']))),
422
+ method: 'POST',
423
+ headers: headerParameters,
424
+ query: queryParameters,
425
+ }, initOverrides);
426
+ return new runtime.VoidApiResponse(response);
427
+ });
428
+ }
429
+ /**
430
+ * Keep a session from expiring from inactivity.
431
+ */
432
+ keepAlive(requestParameters, initOverrides) {
433
+ return __awaiter(this, void 0, void 0, function* () {
434
+ yield this.keepAliveRaw(requestParameters, initOverrides);
435
+ });
436
+ }
402
437
  /**
403
438
  * Revert an impersonated session to the context of the \"admin\" user who initiated the impersonation.
404
439
  */
@@ -435,6 +470,45 @@ export class SessionApi extends runtime.BaseAPI {
435
470
  return yield response.value();
436
471
  });
437
472
  }
473
+ /**
474
+ * Search for sessions corresponding to given criteria.
475
+ */
476
+ searchSessionsRaw(requestParameters, initOverrides) {
477
+ return __awaiter(this, void 0, void 0, function* () {
478
+ if (requestParameters['uuid'] == null) {
479
+ throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling searchSessions().');
480
+ }
481
+ const queryParameters = {};
482
+ if (requestParameters['uuid'] != null) {
483
+ queryParameters['uuid'] = requestParameters['uuid'];
484
+ }
485
+ const headerParameters = {};
486
+ if (this.configuration && this.configuration.accessToken) {
487
+ // oauth required
488
+ const token = this.configuration.accessToken;
489
+ const tokenString = yield token("OAuth2", []);
490
+ if (tokenString) {
491
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
492
+ }
493
+ }
494
+ const response = yield this.request({
495
+ path: `/sessions`,
496
+ method: 'GET',
497
+ headers: headerParameters,
498
+ query: queryParameters,
499
+ }, initOverrides);
500
+ return new runtime.JSONApiResponse(response, (jsonValue) => SearchSessionResultsFromJSON(jsonValue));
501
+ });
502
+ }
503
+ /**
504
+ * Search for sessions corresponding to given criteria.
505
+ */
506
+ searchSessions(requestParameters, initOverrides) {
507
+ return __awaiter(this, void 0, void 0, function* () {
508
+ const response = yield this.searchSessionsRaw(requestParameters, initOverrides);
509
+ return yield response.value();
510
+ });
511
+ }
438
512
  /**
439
513
  * Store a sso token for the session for a given id/name/type
440
514
  */
@@ -0,0 +1,103 @@
1
+ /**
2
+ * User account and session management
3
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
4
+ *
5
+ * The version of the OpenAPI document: 9.6.1-SNAPSHOT
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 type { SessionState } from './SessionState';
13
+ import type { User } from './User';
14
+ import type { SsoProvider } from './SsoProvider';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface SearchSessionResult
19
+ */
20
+ export interface SearchSessionResult {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof SearchSessionResult
25
+ */
26
+ uuid: string;
27
+ /**
28
+ *
29
+ * @type {SessionState}
30
+ * @memberof SearchSessionResult
31
+ */
32
+ state: SessionState;
33
+ /**
34
+ *
35
+ * @type {Date}
36
+ * @memberof SearchSessionResult
37
+ */
38
+ created: Date;
39
+ /**
40
+ *
41
+ * @type {Date}
42
+ * @memberof SearchSessionResult
43
+ */
44
+ suspend: Date;
45
+ /**
46
+ *
47
+ * @type {Date}
48
+ * @memberof SearchSessionResult
49
+ */
50
+ expire: Date;
51
+ /**
52
+ * Indicate the domain name the session cookie was emitted for.
53
+ * @type {string}
54
+ * @memberof SearchSessionResult
55
+ */
56
+ cookieDomain: string;
57
+ /**
58
+ *
59
+ * @type {User}
60
+ * @memberof SearchSessionResult
61
+ */
62
+ user: User;
63
+ /**
64
+ *
65
+ * @type {User}
66
+ * @memberof SearchSessionResult
67
+ */
68
+ actor?: User | null;
69
+ /**
70
+ *
71
+ * @type {SsoProvider}
72
+ * @memberof SearchSessionResult
73
+ */
74
+ sso?: SsoProvider | null;
75
+ /**
76
+ * Session is enabled for Equisoft/Connect and is accounted for concurrent access.
77
+ * @type {boolean}
78
+ * @memberof SearchSessionResult
79
+ */
80
+ enabledForEquisoftConnect: boolean;
81
+ /**
82
+ * Indicate that the session is initiated from a mobile device.
83
+ * @type {boolean}
84
+ * @memberof SearchSessionResult
85
+ */
86
+ mobile: boolean;
87
+ /**
88
+ * Claims and assertions received from an external source (SSO).
89
+ * @type {{ [key: string]: string; }}
90
+ * @memberof SearchSessionResult
91
+ */
92
+ externalClaims?: {
93
+ [key: string]: string;
94
+ } | null;
95
+ }
96
+ /**
97
+ * Check if a given object implements the SearchSessionResult interface.
98
+ */
99
+ export declare function instanceOfSearchSessionResult(value: object): value is SearchSessionResult;
100
+ export declare function SearchSessionResultFromJSON(json: any): SearchSessionResult;
101
+ export declare function SearchSessionResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSessionResult;
102
+ export declare function SearchSessionResultToJSON(json: any): SearchSessionResult;
103
+ export declare function SearchSessionResultToJSONTyped(value?: SearchSessionResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * User account and session management
5
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
+ *
7
+ * The version of the OpenAPI document: 9.6.1-SNAPSHOT
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SessionStateFromJSON, SessionStateToJSON, } from './SessionState';
15
+ import { UserFromJSON, UserToJSON, } from './User';
16
+ import { SsoProviderFromJSON, SsoProviderToJSON, } from './SsoProvider';
17
+ /**
18
+ * Check if a given object implements the SearchSessionResult interface.
19
+ */
20
+ export function instanceOfSearchSessionResult(value) {
21
+ if (!('uuid' in value) || value['uuid'] === undefined)
22
+ return false;
23
+ if (!('state' in value) || value['state'] === undefined)
24
+ return false;
25
+ if (!('created' in value) || value['created'] === undefined)
26
+ return false;
27
+ if (!('suspend' in value) || value['suspend'] === undefined)
28
+ return false;
29
+ if (!('expire' in value) || value['expire'] === undefined)
30
+ return false;
31
+ if (!('cookieDomain' in value) || value['cookieDomain'] === undefined)
32
+ return false;
33
+ if (!('user' in value) || value['user'] === undefined)
34
+ return false;
35
+ if (!('enabledForEquisoftConnect' in value) || value['enabledForEquisoftConnect'] === undefined)
36
+ return false;
37
+ if (!('mobile' in value) || value['mobile'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function SearchSessionResultFromJSON(json) {
42
+ return SearchSessionResultFromJSONTyped(json, false);
43
+ }
44
+ export function SearchSessionResultFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'uuid': json['uuid'],
50
+ 'state': SessionStateFromJSON(json['state']),
51
+ 'created': (new Date(json['created'])),
52
+ 'suspend': (new Date(json['suspend'])),
53
+ 'expire': (new Date(json['expire'])),
54
+ 'cookieDomain': json['cookieDomain'],
55
+ 'user': UserFromJSON(json['user']),
56
+ 'actor': json['actor'] == null ? undefined : UserFromJSON(json['actor']),
57
+ 'sso': json['sso'] == null ? undefined : SsoProviderFromJSON(json['sso']),
58
+ 'enabledForEquisoftConnect': json['enabledForEquisoftConnect'],
59
+ 'mobile': json['mobile'],
60
+ 'externalClaims': json['externalClaims'] == null ? undefined : json['externalClaims'],
61
+ };
62
+ }
63
+ export function SearchSessionResultToJSON(json) {
64
+ return SearchSessionResultToJSONTyped(json, false);
65
+ }
66
+ export function SearchSessionResultToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'uuid': value['uuid'],
72
+ 'state': SessionStateToJSON(value['state']),
73
+ 'created': ((value['created']).toISOString()),
74
+ 'suspend': ((value['suspend']).toISOString()),
75
+ 'expire': ((value['expire']).toISOString()),
76
+ 'cookieDomain': value['cookieDomain'],
77
+ 'user': UserToJSON(value['user']),
78
+ 'actor': UserToJSON(value['actor']),
79
+ 'sso': SsoProviderToJSON(value['sso']),
80
+ 'enabledForEquisoftConnect': value['enabledForEquisoftConnect'],
81
+ 'mobile': value['mobile'],
82
+ 'externalClaims': value['externalClaims'],
83
+ };
84
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * User account and session management
3
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
4
+ *
5
+ * The version of the OpenAPI document: 9.6.1-SNAPSHOT
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 type { SearchSessionResult } from './SearchSessionResult';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SearchSessionResults
17
+ */
18
+ export interface SearchSessionResults {
19
+ /**
20
+ *
21
+ * @type {Array<SearchSessionResult>}
22
+ * @memberof SearchSessionResults
23
+ */
24
+ sessions: Array<SearchSessionResult>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the SearchSessionResults interface.
28
+ */
29
+ export declare function instanceOfSearchSessionResults(value: object): value is SearchSessionResults;
30
+ export declare function SearchSessionResultsFromJSON(json: any): SearchSessionResults;
31
+ export declare function SearchSessionResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSessionResults;
32
+ export declare function SearchSessionResultsToJSON(json: any): SearchSessionResults;
33
+ export declare function SearchSessionResultsToJSONTyped(value?: SearchSessionResults | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * User account and session management
5
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
+ *
7
+ * The version of the OpenAPI document: 9.6.1-SNAPSHOT
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SearchSessionResultFromJSON, SearchSessionResultToJSON, } from './SearchSessionResult';
15
+ /**
16
+ * Check if a given object implements the SearchSessionResults interface.
17
+ */
18
+ export function instanceOfSearchSessionResults(value) {
19
+ if (!('sessions' in value) || value['sessions'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function SearchSessionResultsFromJSON(json) {
24
+ return SearchSessionResultsFromJSONTyped(json, false);
25
+ }
26
+ export function SearchSessionResultsFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'sessions': (json['sessions'].map(SearchSessionResultFromJSON)),
32
+ };
33
+ }
34
+ export function SearchSessionResultsToJSON(json) {
35
+ return SearchSessionResultsToJSONTyped(json, false);
36
+ }
37
+ export function SearchSessionResultsToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'sessions': (value['sessions'].map(SearchSessionResultToJSON)),
43
+ };
44
+ }
@@ -47,11 +47,11 @@ export interface SessionPayload {
47
47
  */
48
48
  mobileDevice?: boolean | null;
49
49
  /**
50
- * Indicate the domain name the session cookie was emitted for. If null, the cookie is assumed to be on the current hostname.
50
+ * Indicate the domain name the session cookie was emitted for.
51
51
  * @type {string}
52
52
  * @memberof SessionPayload
53
53
  */
54
- cookieDomain?: string | null;
54
+ cookieDomain: string;
55
55
  /**
56
56
  * Claims and assertions received from an external source (SSO).
57
57
  * @type {{ [key: string]: string; }}
@@ -20,6 +20,8 @@ export function instanceOfSessionPayload(value) {
20
20
  return false;
21
21
  if (!('enable' in value) || value['enable'] === undefined)
22
22
  return false;
23
+ if (!('cookieDomain' in value) || value['cookieDomain'] === undefined)
24
+ return false;
23
25
  return true;
24
26
  }
25
27
  export function SessionPayloadFromJSON(json) {
@@ -35,7 +37,7 @@ export function SessionPayloadFromJSONTyped(json, ignoreDiscriminator) {
35
37
  'sso': json['sso'] == null ? undefined : SsoProviderFromJSON(json['sso']),
36
38
  'publicComputer': json['publicComputer'] == null ? undefined : json['publicComputer'],
37
39
  'mobileDevice': json['mobileDevice'] == null ? undefined : json['mobileDevice'],
38
- 'cookieDomain': json['cookieDomain'] == null ? undefined : json['cookieDomain'],
40
+ 'cookieDomain': json['cookieDomain'],
39
41
  'externalClaims': json['externalClaims'] == null ? undefined : json['externalClaims'],
40
42
  };
41
43
  }
@@ -43,6 +43,8 @@ export * from './PermissionResourceType';
43
43
  export * from './Role';
44
44
  export * from './RoleCreated';
45
45
  export * from './RolesOnOrganization';
46
+ export * from './SearchSessionResult';
47
+ export * from './SearchSessionResults';
46
48
  export * from './SendResetPasswordLinkPayload';
47
49
  export * from './SendSignupInvitationPayload';
48
50
  export * from './ServiceAccountCreationSchema';
@@ -45,6 +45,8 @@ export * from './PermissionResourceType';
45
45
  export * from './Role';
46
46
  export * from './RoleCreated';
47
47
  export * from './RolesOnOrganization';
48
+ export * from './SearchSessionResult';
49
+ export * from './SearchSessionResults';
48
50
  export * from './SendResetPasswordLinkPayload';
49
51
  export * from './SendSignupInvitationPayload';
50
52
  export * from './ServiceAccountCreationSchema';