@equisoft/account-service-sdk-typescript 9.6.1-snapshot.20250609131042 → 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.
@@ -0,0 +1,186 @@
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
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SessionState } from './SessionState';
17
+ import {
18
+ SessionStateFromJSON,
19
+ SessionStateFromJSONTyped,
20
+ SessionStateToJSON,
21
+ SessionStateToJSONTyped,
22
+ } from './SessionState';
23
+ import type { User } from './User';
24
+ import {
25
+ UserFromJSON,
26
+ UserFromJSONTyped,
27
+ UserToJSON,
28
+ UserToJSONTyped,
29
+ } from './User';
30
+ import type { SsoProvider } from './SsoProvider';
31
+ import {
32
+ SsoProviderFromJSON,
33
+ SsoProviderFromJSONTyped,
34
+ SsoProviderToJSON,
35
+ SsoProviderToJSONTyped,
36
+ } from './SsoProvider';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface SearchSessionResult
42
+ */
43
+ export interface SearchSessionResult {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof SearchSessionResult
48
+ */
49
+ uuid: string;
50
+ /**
51
+ *
52
+ * @type {SessionState}
53
+ * @memberof SearchSessionResult
54
+ */
55
+ state: SessionState;
56
+ /**
57
+ *
58
+ * @type {Date}
59
+ * @memberof SearchSessionResult
60
+ */
61
+ created: Date;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof SearchSessionResult
66
+ */
67
+ suspend: Date;
68
+ /**
69
+ *
70
+ * @type {Date}
71
+ * @memberof SearchSessionResult
72
+ */
73
+ expire: Date;
74
+ /**
75
+ * Indicate the domain name the session cookie was emitted for.
76
+ * @type {string}
77
+ * @memberof SearchSessionResult
78
+ */
79
+ cookieDomain: string;
80
+ /**
81
+ *
82
+ * @type {User}
83
+ * @memberof SearchSessionResult
84
+ */
85
+ user: User;
86
+ /**
87
+ *
88
+ * @type {User}
89
+ * @memberof SearchSessionResult
90
+ */
91
+ actor?: User | null;
92
+ /**
93
+ *
94
+ * @type {SsoProvider}
95
+ * @memberof SearchSessionResult
96
+ */
97
+ sso?: SsoProvider | null;
98
+ /**
99
+ * Session is enabled for Equisoft/Connect and is accounted for concurrent access.
100
+ * @type {boolean}
101
+ * @memberof SearchSessionResult
102
+ */
103
+ enabledForEquisoftConnect: boolean;
104
+ /**
105
+ * Indicate that the session is initiated from a mobile device.
106
+ * @type {boolean}
107
+ * @memberof SearchSessionResult
108
+ */
109
+ mobile: boolean;
110
+ /**
111
+ * Claims and assertions received from an external source (SSO).
112
+ * @type {{ [key: string]: string; }}
113
+ * @memberof SearchSessionResult
114
+ */
115
+ externalClaims?: { [key: string]: string; } | null;
116
+ }
117
+
118
+
119
+
120
+ /**
121
+ * Check if a given object implements the SearchSessionResult interface.
122
+ */
123
+ export function instanceOfSearchSessionResult(value: object): value is SearchSessionResult {
124
+ if (!('uuid' in value) || value['uuid'] === undefined) return false;
125
+ if (!('state' in value) || value['state'] === undefined) return false;
126
+ if (!('created' in value) || value['created'] === undefined) return false;
127
+ if (!('suspend' in value) || value['suspend'] === undefined) return false;
128
+ if (!('expire' in value) || value['expire'] === undefined) return false;
129
+ if (!('cookieDomain' in value) || value['cookieDomain'] === undefined) return false;
130
+ if (!('user' in value) || value['user'] === undefined) return false;
131
+ if (!('enabledForEquisoftConnect' in value) || value['enabledForEquisoftConnect'] === undefined) return false;
132
+ if (!('mobile' in value) || value['mobile'] === undefined) return false;
133
+ return true;
134
+ }
135
+
136
+ export function SearchSessionResultFromJSON(json: any): SearchSessionResult {
137
+ return SearchSessionResultFromJSONTyped(json, false);
138
+ }
139
+
140
+ export function SearchSessionResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSessionResult {
141
+ if (json == null) {
142
+ return json;
143
+ }
144
+ return {
145
+
146
+ 'uuid': json['uuid'],
147
+ 'state': SessionStateFromJSON(json['state']),
148
+ 'created': (new Date(json['created'])),
149
+ 'suspend': (new Date(json['suspend'])),
150
+ 'expire': (new Date(json['expire'])),
151
+ 'cookieDomain': json['cookieDomain'],
152
+ 'user': UserFromJSON(json['user']),
153
+ 'actor': json['actor'] == null ? undefined : UserFromJSON(json['actor']),
154
+ 'sso': json['sso'] == null ? undefined : SsoProviderFromJSON(json['sso']),
155
+ 'enabledForEquisoftConnect': json['enabledForEquisoftConnect'],
156
+ 'mobile': json['mobile'],
157
+ 'externalClaims': json['externalClaims'] == null ? undefined : json['externalClaims'],
158
+ };
159
+ }
160
+
161
+ export function SearchSessionResultToJSON(json: any): SearchSessionResult {
162
+ return SearchSessionResultToJSONTyped(json, false);
163
+ }
164
+
165
+ export function SearchSessionResultToJSONTyped(value?: SearchSessionResult | null, ignoreDiscriminator: boolean = false): any {
166
+ if (value == null) {
167
+ return value;
168
+ }
169
+
170
+ return {
171
+
172
+ 'uuid': value['uuid'],
173
+ 'state': SessionStateToJSON(value['state']),
174
+ 'created': ((value['created']).toISOString()),
175
+ 'suspend': ((value['suspend']).toISOString()),
176
+ 'expire': ((value['expire']).toISOString()),
177
+ 'cookieDomain': value['cookieDomain'],
178
+ 'user': UserToJSON(value['user']),
179
+ 'actor': UserToJSON(value['actor']),
180
+ 'sso': SsoProviderToJSON(value['sso']),
181
+ 'enabledForEquisoftConnect': value['enabledForEquisoftConnect'],
182
+ 'mobile': value['mobile'],
183
+ 'externalClaims': value['externalClaims'],
184
+ };
185
+ }
186
+
@@ -0,0 +1,74 @@
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
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SearchSessionResult } from './SearchSessionResult';
17
+ import {
18
+ SearchSessionResultFromJSON,
19
+ SearchSessionResultFromJSONTyped,
20
+ SearchSessionResultToJSON,
21
+ SearchSessionResultToJSONTyped,
22
+ } from './SearchSessionResult';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SearchSessionResults
28
+ */
29
+ export interface SearchSessionResults {
30
+ /**
31
+ *
32
+ * @type {Array<SearchSessionResult>}
33
+ * @memberof SearchSessionResults
34
+ */
35
+ sessions: Array<SearchSessionResult>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SearchSessionResults interface.
40
+ */
41
+ export function instanceOfSearchSessionResults(value: object): value is SearchSessionResults {
42
+ if (!('sessions' in value) || value['sessions'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function SearchSessionResultsFromJSON(json: any): SearchSessionResults {
47
+ return SearchSessionResultsFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function SearchSessionResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSessionResults {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'sessions': ((json['sessions'] as Array<any>).map(SearchSessionResultFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function SearchSessionResultsToJSON(json: any): SearchSessionResults {
61
+ return SearchSessionResultsToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SearchSessionResultsToJSONTyped(value?: SearchSessionResults | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'sessions': ((value['sessions'] as Array<any>).map(SearchSessionResultToJSON)),
72
+ };
73
+ }
74
+
@@ -47,6 +47,12 @@ export interface Session {
47
47
  * @memberof Session
48
48
  */
49
49
  sessionId: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof Session
54
+ */
55
+ uuid: string;
50
56
  /**
51
57
  *
52
58
  * @type {SessionState}
@@ -122,6 +128,7 @@ export interface Session {
122
128
  */
123
129
  export function instanceOfSession(value: object): value is Session {
124
130
  if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
131
+ if (!('uuid' in value) || value['uuid'] === undefined) return false;
125
132
  if (!('state' in value) || value['state'] === undefined) return false;
126
133
  if (!('created' in value) || value['created'] === undefined) return false;
127
134
  if (!('suspend' in value) || value['suspend'] === undefined) return false;
@@ -143,6 +150,7 @@ export function SessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): S
143
150
  return {
144
151
 
145
152
  'sessionId': json['sessionId'],
153
+ 'uuid': json['uuid'],
146
154
  'state': SessionStateFromJSON(json['state']),
147
155
  'created': (new Date(json['created'])),
148
156
  'suspend': (new Date(json['suspend'])),
@@ -169,6 +177,7 @@ export function SessionToJSONTyped(value?: Session | null, ignoreDiscriminator:
169
177
  return {
170
178
 
171
179
  'sessionId': value['sessionId'],
180
+ 'uuid': value['uuid'],
172
181
  'state': SessionStateToJSON(value['state']),
173
182
  'created': ((value['created']).toISOString()),
174
183
  'suspend': ((value['suspend']).toISOString()),
@@ -58,11 +58,11 @@ export interface SessionPayload {
58
58
  */
59
59
  mobileDevice?: boolean | null;
60
60
  /**
61
- * Indicate the domain name the session cookie was emitted for. If null, the cookie is assumed to be on the current hostname.
61
+ * Indicate the domain name the session cookie was emitted for.
62
62
  * @type {string}
63
63
  * @memberof SessionPayload
64
64
  */
65
- cookieDomain?: string | null;
65
+ cookieDomain: string;
66
66
  /**
67
67
  * Claims and assertions received from an external source (SSO).
68
68
  * @type {{ [key: string]: string; }}
@@ -77,6 +77,7 @@ export interface SessionPayload {
77
77
  export function instanceOfSessionPayload(value: object): value is SessionPayload {
78
78
  if (!('userUuid' in value) || value['userUuid'] === undefined) return false;
79
79
  if (!('enable' in value) || value['enable'] === undefined) return false;
80
+ if (!('cookieDomain' in value) || value['cookieDomain'] === undefined) return false;
80
81
  return true;
81
82
  }
82
83
 
@@ -95,7 +96,7 @@ export function SessionPayloadFromJSONTyped(json: any, ignoreDiscriminator: bool
95
96
  'sso': json['sso'] == null ? undefined : SsoProviderFromJSON(json['sso']),
96
97
  'publicComputer': json['publicComputer'] == null ? undefined : json['publicComputer'],
97
98
  'mobileDevice': json['mobileDevice'] == null ? undefined : json['mobileDevice'],
98
- 'cookieDomain': json['cookieDomain'] == null ? undefined : json['cookieDomain'],
99
+ 'cookieDomain': json['cookieDomain'],
99
100
  'externalClaims': json['externalClaims'] == null ? undefined : json['externalClaims'],
100
101
  };
101
102
  }
@@ -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';