@equisoft/account-service-sdk-typescript 4.5.1-snapshot.20230203171151 → 4.5.1-snapshot.20230207210529

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.
Files changed (244) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/OAuthApi.d.ts +6 -6
  5. package/dist/apis/OAuthApi.js +1 -1
  6. package/dist/apis/OrganizationApi.d.ts +38 -38
  7. package/dist/apis/OrganizationApi.js +1 -1
  8. package/dist/apis/PermissionApi.d.ts +4 -4
  9. package/dist/apis/PermissionApi.js +1 -1
  10. package/dist/apis/RoleApi.d.ts +4 -4
  11. package/dist/apis/RoleApi.js +1 -1
  12. package/dist/apis/ServiceAccountApi.d.ts +18 -18
  13. package/dist/apis/ServiceAccountApi.js +1 -1
  14. package/dist/apis/SessionApi.d.ts +26 -26
  15. package/dist/apis/SessionApi.js +1 -1
  16. package/dist/apis/UserApi.d.ts +56 -44
  17. package/dist/apis/UserApi.js +41 -1
  18. package/dist/models/ApplyPermissionsPayload.d.ts +6 -2
  19. package/dist/models/ApplyPermissionsPayload.js +12 -2
  20. package/dist/models/AuthenticationUserAccount.d.ts +5 -1
  21. package/dist/models/AuthenticationUserAccount.js +15 -2
  22. package/dist/models/CreateOrUpdateOAuthClientPayload.d.ts +6 -2
  23. package/dist/models/CreateOrUpdateOAuthClientPayload.js +14 -2
  24. package/dist/models/CreateOrUpdateOrganizationPayload.d.ts +6 -2
  25. package/dist/models/CreateOrUpdateOrganizationPayload.js +13 -2
  26. package/dist/models/CreateOrUpdatePermissionPayload.d.ts +6 -2
  27. package/dist/models/CreateOrUpdatePermissionPayload.js +11 -2
  28. package/dist/models/CreateOrganizationPayload.d.ts +6 -2
  29. package/dist/models/CreateOrganizationPayload.js +13 -2
  30. package/dist/models/CreateOrganizationUserServiceOptionPayload.d.ts +5 -1
  31. package/dist/models/CreateOrganizationUserServiceOptionPayload.js +11 -2
  32. package/dist/models/CreateOrganizationUserServicePayload.d.ts +5 -1
  33. package/dist/models/CreateOrganizationUserServicePayload.js +10 -2
  34. package/dist/models/CreateRole.d.ts +6 -2
  35. package/dist/models/CreateRole.js +12 -2
  36. package/dist/models/DatabaseState.d.ts +2 -1
  37. package/dist/models/DatabaseState.js +3 -2
  38. package/dist/models/EnableEquisoftConnectPayloadSchema.d.ts +5 -1
  39. package/dist/models/EnableEquisoftConnectPayloadSchema.js +10 -2
  40. package/dist/models/ErrorMessage.d.ts +2 -1
  41. package/dist/models/ErrorMessage.js +3 -2
  42. package/dist/models/ErrorPayload.d.ts +6 -2
  43. package/dist/models/ErrorPayload.js +11 -2
  44. package/dist/models/Id.d.ts +5 -1
  45. package/dist/models/Id.js +12 -2
  46. package/dist/models/ImpersonatePayload.d.ts +5 -1
  47. package/dist/models/ImpersonatePayload.js +11 -2
  48. package/dist/models/LegacyRoleSchema.d.ts +6 -2
  49. package/dist/models/LegacyRoleSchema.js +12 -2
  50. package/dist/models/ListOrganizationElement.d.ts +8 -4
  51. package/dist/models/ListOrganizationElement.js +14 -2
  52. package/dist/models/ListUserOrganizations.d.ts +6 -2
  53. package/dist/models/ListUserOrganizations.js +11 -2
  54. package/dist/models/LocalizedString.d.ts +5 -1
  55. package/dist/models/LocalizedString.js +12 -2
  56. package/dist/models/LoginPayload.d.ts +5 -1
  57. package/dist/models/LoginPayload.js +12 -2
  58. package/dist/models/OAuthClient.d.ts +6 -2
  59. package/dist/models/OAuthClient.js +20 -2
  60. package/dist/models/OAuthClientCreated.d.ts +5 -1
  61. package/dist/models/OAuthClientCreated.js +11 -2
  62. package/dist/models/OAuthClientPublicKey.d.ts +5 -1
  63. package/dist/models/OAuthClientPublicKey.js +12 -2
  64. package/dist/models/Organization.d.ts +8 -4
  65. package/dist/models/Organization.js +16 -2
  66. package/dist/models/OrganizationCreated.d.ts +5 -1
  67. package/dist/models/OrganizationCreated.js +11 -2
  68. package/dist/models/OrganizationPathElement.d.ts +6 -2
  69. package/dist/models/OrganizationPathElement.js +12 -2
  70. package/dist/models/OrganizationRoleAttribution.d.ts +7 -3
  71. package/dist/models/OrganizationRoleAttribution.js +12 -2
  72. package/dist/models/OrganizationRoleAttributionPermission.d.ts +6 -2
  73. package/dist/models/OrganizationRoleAttributionPermission.js +12 -2
  74. package/dist/models/OrganizationRoleAttributionRole.d.ts +7 -3
  75. package/dist/models/OrganizationRoleAttributionRole.js +13 -2
  76. package/dist/models/OrganizationRoleAttributions.d.ts +6 -2
  77. package/dist/models/OrganizationRoleAttributions.js +11 -2
  78. package/dist/models/OrganizationServicesElement.d.ts +5 -1
  79. package/dist/models/OrganizationServicesElement.js +11 -2
  80. package/dist/models/OrganizationSsoProvider.d.ts +6 -2
  81. package/dist/models/OrganizationSsoProvider.js +12 -2
  82. package/dist/models/OrganizationUserServiceAssociation.d.ts +5 -1
  83. package/dist/models/OrganizationUserServiceAssociation.js +12 -2
  84. package/dist/models/PermissionCode.d.ts +5 -1
  85. package/dist/models/PermissionCode.js +11 -2
  86. package/dist/models/PermissionCreated.d.ts +5 -1
  87. package/dist/models/PermissionCreated.js +11 -2
  88. package/dist/models/PermissionList.d.ts +6 -2
  89. package/dist/models/PermissionList.js +11 -2
  90. package/dist/models/PermissionResourceType.d.ts +2 -1
  91. package/dist/models/PermissionResourceType.js +3 -2
  92. package/dist/models/Role.d.ts +6 -2
  93. package/dist/models/Role.js +13 -2
  94. package/dist/models/RoleCreated.d.ts +6 -2
  95. package/dist/models/RoleCreated.js +13 -2
  96. package/dist/models/RolesOnOrganization.d.ts +9 -5
  97. package/dist/models/RolesOnOrganization.js +15 -2
  98. package/dist/models/SendResetPasswordLinkPayload.d.ts +5 -1
  99. package/dist/models/SendResetPasswordLinkPayload.js +12 -2
  100. package/dist/models/ServiceAccess.d.ts +7 -3
  101. package/dist/models/ServiceAccess.js +11 -2
  102. package/dist/models/ServiceAccountCreationSchema.d.ts +5 -1
  103. package/dist/models/ServiceAccountCreationSchema.js +13 -2
  104. package/dist/models/ServiceAccountSchema.d.ts +6 -2
  105. package/dist/models/ServiceAccountSchema.js +16 -2
  106. package/dist/models/ServiceAccountStatus.d.ts +2 -1
  107. package/dist/models/ServiceAccountStatus.js +3 -2
  108. package/dist/models/ServiceAccountUpdateSchema.d.ts +5 -1
  109. package/dist/models/ServiceAccountUpdateSchema.js +10 -2
  110. package/dist/models/ServiceAccountUuidSchema.d.ts +5 -1
  111. package/dist/models/ServiceAccountUuidSchema.js +11 -2
  112. package/dist/models/ServiceName.d.ts +2 -1
  113. package/dist/models/ServiceName.js +3 -2
  114. package/dist/models/Session.d.ts +8 -4
  115. package/dist/models/Session.js +18 -2
  116. package/dist/models/SessionPayload.d.ts +6 -2
  117. package/dist/models/SessionPayload.js +12 -2
  118. package/dist/models/SessionState.d.ts +2 -1
  119. package/dist/models/SessionState.js +3 -2
  120. package/dist/models/SetPasswordByConfirmationHashPayload.d.ts +31 -0
  121. package/dist/models/SetPasswordByConfirmationHashPayload.js +50 -0
  122. package/dist/models/SetUserAccountPasswordPayload.d.ts +5 -1
  123. package/dist/models/SetUserAccountPasswordPayload.js +12 -2
  124. package/dist/models/SsoProvider.d.ts +5 -1
  125. package/dist/models/SsoProvider.js +12 -2
  126. package/dist/models/SsoToken.d.ts +5 -1
  127. package/dist/models/SsoToken.js +12 -2
  128. package/dist/models/UpdateParentOrganizationPayload.d.ts +5 -1
  129. package/dist/models/UpdateParentOrganizationPayload.js +11 -2
  130. package/dist/models/UpdateUserAccountPayload.d.ts +5 -1
  131. package/dist/models/UpdateUserAccountPayload.js +12 -2
  132. package/dist/models/UpdateUserAccountSsoPayload.d.ts +5 -1
  133. package/dist/models/UpdateUserAccountSsoPayload.js +11 -2
  134. package/dist/models/UpsertServicePayload.d.ts +5 -1
  135. package/dist/models/UpsertServicePayload.js +10 -2
  136. package/dist/models/User.d.ts +10 -6
  137. package/dist/models/User.js +27 -2
  138. package/dist/models/UserAccountOrganizationRoles.d.ts +7 -3
  139. package/dist/models/UserAccountOrganizationRoles.js +13 -2
  140. package/dist/models/UserAccountPermission.d.ts +6 -2
  141. package/dist/models/UserAccountPermission.js +12 -2
  142. package/dist/models/UserAccountRole.d.ts +6 -2
  143. package/dist/models/UserAccountRole.js +12 -2
  144. package/dist/models/UserAccountRoleAttributions.d.ts +6 -2
  145. package/dist/models/UserAccountRoleAttributions.js +11 -2
  146. package/dist/models/UserAccountSearchResult.d.ts +10 -6
  147. package/dist/models/UserAccountSearchResult.js +27 -2
  148. package/dist/models/UserAgreement.d.ts +6 -2
  149. package/dist/models/UserAgreement.js +11 -2
  150. package/dist/models/UserAgreementState.d.ts +2 -1
  151. package/dist/models/UserAgreementState.js +3 -2
  152. package/dist/models/UserPermissions.d.ts +7 -3
  153. package/dist/models/UserPermissions.js +12 -2
  154. package/dist/models/UserServiceAssociation.d.ts +5 -1
  155. package/dist/models/UserServiceAssociation.js +12 -2
  156. package/dist/models/UserSsoProvider.d.ts +5 -1
  157. package/dist/models/UserSsoProvider.js +11 -2
  158. package/dist/models/UserState.d.ts +2 -1
  159. package/dist/models/UserState.js +3 -2
  160. package/dist/models/index.d.ts +1 -0
  161. package/dist/models/index.js +1 -0
  162. package/dist/runtime.d.ts +16 -3
  163. package/dist/runtime.js +30 -3
  164. package/package.json +1 -1
  165. package/src/apis/OAuthApi.ts +11 -9
  166. package/src/apis/OrganizationApi.ts +55 -53
  167. package/src/apis/PermissionApi.ts +8 -6
  168. package/src/apis/RoleApi.ts +7 -5
  169. package/src/apis/ServiceAccountApi.ts +27 -25
  170. package/src/apis/SessionApi.ts +33 -31
  171. package/src/apis/UserApi.ts +114 -58
  172. package/src/models/ApplyPermissionsPayload.ts +13 -2
  173. package/src/models/AuthenticationUserAccount.ts +15 -1
  174. package/src/models/CreateOrUpdateOAuthClientPayload.ts +15 -2
  175. package/src/models/CreateOrUpdateOrganizationPayload.ts +14 -2
  176. package/src/models/CreateOrUpdatePermissionPayload.ts +12 -2
  177. package/src/models/CreateOrganizationPayload.ts +14 -2
  178. package/src/models/CreateOrganizationUserServiceOptionPayload.ts +11 -1
  179. package/src/models/CreateOrganizationUserServicePayload.ts +10 -1
  180. package/src/models/CreateRole.ts +13 -2
  181. package/src/models/DatabaseState.ts +3 -2
  182. package/src/models/EnableEquisoftConnectPayloadSchema.ts +10 -1
  183. package/src/models/ErrorMessage.ts +3 -2
  184. package/src/models/ErrorPayload.ts +12 -2
  185. package/src/models/Id.ts +12 -1
  186. package/src/models/ImpersonatePayload.ts +11 -1
  187. package/src/models/LegacyRoleSchema.ts +13 -2
  188. package/src/models/ListOrganizationElement.ts +17 -4
  189. package/src/models/ListUserOrganizations.ts +12 -2
  190. package/src/models/LocalizedString.ts +12 -1
  191. package/src/models/LoginPayload.ts +12 -1
  192. package/src/models/OAuthClient.ts +21 -2
  193. package/src/models/OAuthClientCreated.ts +11 -1
  194. package/src/models/OAuthClientPublicKey.ts +12 -1
  195. package/src/models/Organization.ts +19 -4
  196. package/src/models/OrganizationCreated.ts +11 -1
  197. package/src/models/OrganizationPathElement.ts +13 -2
  198. package/src/models/OrganizationRoleAttribution.ts +14 -3
  199. package/src/models/OrganizationRoleAttributionPermission.ts +13 -2
  200. package/src/models/OrganizationRoleAttributionRole.ts +15 -3
  201. package/src/models/OrganizationRoleAttributions.ts +12 -2
  202. package/src/models/OrganizationServicesElement.ts +11 -1
  203. package/src/models/OrganizationSsoProvider.ts +13 -2
  204. package/src/models/OrganizationUserServiceAssociation.ts +12 -1
  205. package/src/models/PermissionCode.ts +11 -1
  206. package/src/models/PermissionCreated.ts +11 -1
  207. package/src/models/PermissionList.ts +12 -2
  208. package/src/models/PermissionResourceType.ts +3 -2
  209. package/src/models/Role.ts +14 -2
  210. package/src/models/RoleCreated.ts +14 -2
  211. package/src/models/RolesOnOrganization.ts +19 -5
  212. package/src/models/SendResetPasswordLinkPayload.ts +12 -1
  213. package/src/models/ServiceAccess.ts +13 -3
  214. package/src/models/ServiceAccountCreationSchema.ts +13 -1
  215. package/src/models/ServiceAccountSchema.ts +17 -2
  216. package/src/models/ServiceAccountStatus.ts +3 -2
  217. package/src/models/ServiceAccountUpdateSchema.ts +10 -1
  218. package/src/models/ServiceAccountUuidSchema.ts +11 -1
  219. package/src/models/ServiceName.ts +3 -2
  220. package/src/models/Session.ts +21 -4
  221. package/src/models/SessionPayload.ts +13 -2
  222. package/src/models/SessionState.ts +3 -2
  223. package/src/models/SetPasswordByConfirmationHashPayload.ts +66 -0
  224. package/src/models/SetUserAccountPasswordPayload.ts +12 -1
  225. package/src/models/SsoProvider.ts +12 -1
  226. package/src/models/SsoToken.ts +12 -1
  227. package/src/models/UpdateParentOrganizationPayload.ts +11 -1
  228. package/src/models/UpdateUserAccountPayload.ts +12 -1
  229. package/src/models/UpdateUserAccountSsoPayload.ts +11 -1
  230. package/src/models/UpsertServicePayload.ts +10 -1
  231. package/src/models/User.ts +32 -6
  232. package/src/models/UserAccountOrganizationRoles.ts +15 -3
  233. package/src/models/UserAccountPermission.ts +13 -2
  234. package/src/models/UserAccountRole.ts +13 -2
  235. package/src/models/UserAccountRoleAttributions.ts +12 -2
  236. package/src/models/UserAccountSearchResult.ts +32 -6
  237. package/src/models/UserAgreement.ts +12 -2
  238. package/src/models/UserAgreementState.ts +3 -2
  239. package/src/models/UserPermissions.ts +14 -3
  240. package/src/models/UserServiceAssociation.ts +12 -1
  241. package/src/models/UserSsoProvider.ts +11 -1
  242. package/src/models/UserState.ts +3 -2
  243. package/src/models/index.ts +1 -0
  244. package/src/runtime.ts +40 -6
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,7 +20,8 @@
20
20
  export const ServiceAccountStatus = {
21
21
  ENABLED: 'ENABLED',
22
22
  DISABLED: 'DISABLED',
23
- DELETED: 'DELETED'
23
+ DELETED: 'DELETED',
24
+ unknown_default_open_api: '11184809'
24
25
  } as const;
25
26
  export type ServiceAccountStatus = typeof ServiceAccountStatus[keyof typeof ServiceAccountStatus];
26
27
 
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -33,6 +33,15 @@ export interface ServiceAccountUpdateSchema {
33
33
  displayName?: string | null;
34
34
  }
35
35
 
36
+ /**
37
+ * Check if a given object implements the ServiceAccountUpdateSchema interface.
38
+ */
39
+ export function instanceOfServiceAccountUpdateSchema(value: object): boolean {
40
+ let isInstance = true;
41
+
42
+ return isInstance;
43
+ }
44
+
36
45
  export function ServiceAccountUpdateSchemaFromJSON(json: any): ServiceAccountUpdateSchema {
37
46
  return ServiceAccountUpdateSchemaFromJSONTyped(json, false);
38
47
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,6 +27,16 @@ export interface ServiceAccountUuidSchema {
27
27
  uuid: string;
28
28
  }
29
29
 
30
+ /**
31
+ * Check if a given object implements the ServiceAccountUuidSchema interface.
32
+ */
33
+ export function instanceOfServiceAccountUuidSchema(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "uuid" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
30
40
  export function ServiceAccountUuidSchemaFromJSON(json: any): ServiceAccountUuidSchema {
31
41
  return ServiceAccountUuidSchemaFromJSONTyped(json, false);
32
42
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,8 @@ export const ServiceName = {
22
22
  EQUISOFT_PLAN: 'EQUISOFT_PLAN',
23
23
  EQUISOFT_ANALYZE_FOR_ADVISORS: 'EQUISOFT_ANALYZE_FOR_ADVISORS',
24
24
  CPANEL: 'CPANEL',
25
- CPANEL2: 'CPANEL2'
25
+ CPANEL2: 'CPANEL2',
26
+ unknown_default_open_api: '11184809'
26
27
  } as const;
27
28
  export type ServiceName = typeof ServiceName[keyof typeof ServiceName];
28
29
 
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,20 +13,20 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { SessionState } from './SessionState';
16
17
  import {
17
- SessionState,
18
18
  SessionStateFromJSON,
19
19
  SessionStateFromJSONTyped,
20
20
  SessionStateToJSON,
21
21
  } from './SessionState';
22
+ import type { SsoProvider } from './SsoProvider';
22
23
  import {
23
- SsoProvider,
24
24
  SsoProviderFromJSON,
25
25
  SsoProviderFromJSONTyped,
26
26
  SsoProviderToJSON,
27
27
  } from './SsoProvider';
28
+ import type { User } from './User';
28
29
  import {
29
- User,
30
30
  UserFromJSON,
31
31
  UserFromJSONTyped,
32
32
  UserToJSON,
@@ -106,6 +106,23 @@ export interface Session {
106
106
  mobile: boolean;
107
107
  }
108
108
 
109
+ /**
110
+ * Check if a given object implements the Session interface.
111
+ */
112
+ export function instanceOfSession(value: object): boolean {
113
+ let isInstance = true;
114
+ isInstance = isInstance && "sessionId" in value;
115
+ isInstance = isInstance && "state" in value;
116
+ isInstance = isInstance && "created" in value;
117
+ isInstance = isInstance && "suspend" in value;
118
+ isInstance = isInstance && "expire" in value;
119
+ isInstance = isInstance && "user" in value;
120
+ isInstance = isInstance && "enabledForEquisoftConnect" in value;
121
+ isInstance = isInstance && "mobile" in value;
122
+
123
+ return isInstance;
124
+ }
125
+
109
126
  export function SessionFromJSON(json: any): Session {
110
127
  return SessionFromJSONTyped(json, false);
111
128
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { SsoProvider } from './SsoProvider';
16
17
  import {
17
- SsoProvider,
18
18
  SsoProviderFromJSON,
19
19
  SsoProviderFromJSONTyped,
20
20
  SsoProviderToJSON,
@@ -64,6 +64,17 @@ export interface SessionPayload {
64
64
  cookieDomain?: string | null;
65
65
  }
66
66
 
67
+ /**
68
+ * Check if a given object implements the SessionPayload interface.
69
+ */
70
+ export function instanceOfSessionPayload(value: object): boolean {
71
+ let isInstance = true;
72
+ isInstance = isInstance && "userUuid" in value;
73
+ isInstance = isInstance && "enable" in value;
74
+
75
+ return isInstance;
76
+ }
77
+
67
78
  export function SessionPayloadFromJSON(json: any): SessionPayload {
68
79
  return SessionPayloadFromJSONTyped(json, false);
69
80
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,7 +27,8 @@ export const SessionState = {
27
27
  ENABLED: 'ENABLED',
28
28
  SUSPENDED: 'SUSPENDED',
29
29
  EXPIRED: 'EXPIRED',
30
- DELETED: 'DELETED'
30
+ DELETED: 'DELETED',
31
+ unknown_default_open_api: '11184809'
31
32
  } as const;
32
33
  export type SessionState = typeof SessionState[keyof typeof SessionState];
33
34
 
@@ -0,0 +1,66 @@
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: 4.5.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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SetPasswordByConfirmationHashPayload
20
+ */
21
+ export interface SetPasswordByConfirmationHashPayload {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SetPasswordByConfirmationHashPayload
26
+ */
27
+ newPassword: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SetPasswordByConfirmationHashPayload interface.
32
+ */
33
+ export function instanceOfSetPasswordByConfirmationHashPayload(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "newPassword" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function SetPasswordByConfirmationHashPayloadFromJSON(json: any): SetPasswordByConfirmationHashPayload {
41
+ return SetPasswordByConfirmationHashPayloadFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function SetPasswordByConfirmationHashPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetPasswordByConfirmationHashPayload {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'newPassword': json['newPassword'],
51
+ };
52
+ }
53
+
54
+ export function SetPasswordByConfirmationHashPayloadToJSON(value?: SetPasswordByConfirmationHashPayload | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'newPassword': value.newPassword,
64
+ };
65
+ }
66
+
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -39,6 +39,17 @@ export interface SetUserAccountPasswordPayload {
39
39
  passwordResetRequired: boolean;
40
40
  }
41
41
 
42
+ /**
43
+ * Check if a given object implements the SetUserAccountPasswordPayload interface.
44
+ */
45
+ export function instanceOfSetUserAccountPasswordPayload(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "newPassword" in value;
48
+ isInstance = isInstance && "passwordResetRequired" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
42
53
  export function SetUserAccountPasswordPayloadFromJSON(json: any): SetUserAccountPasswordPayload {
43
54
  return SetUserAccountPasswordPayloadFromJSONTyped(json, false);
44
55
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -33,6 +33,17 @@ export interface SsoProvider {
33
33
  identifier: string;
34
34
  }
35
35
 
36
+ /**
37
+ * Check if a given object implements the SsoProvider interface.
38
+ */
39
+ export function instanceOfSsoProvider(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "provider" in value;
42
+ isInstance = isInstance && "identifier" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
36
47
  export function SsoProviderFromJSON(json: any): SsoProvider {
37
48
  return SsoProviderFromJSONTyped(json, false);
38
49
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -33,6 +33,17 @@ export interface SsoToken {
33
33
  value: string;
34
34
  }
35
35
 
36
+ /**
37
+ * Check if a given object implements the SsoToken interface.
38
+ */
39
+ export function instanceOfSsoToken(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "id" in value;
42
+ isInstance = isInstance && "value" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
36
47
  export function SsoTokenFromJSON(json: any): SsoToken {
37
48
  return SsoTokenFromJSONTyped(json, false);
38
49
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,6 +27,16 @@ export interface UpdateParentOrganizationPayload {
27
27
  parentUuid: string;
28
28
  }
29
29
 
30
+ /**
31
+ * Check if a given object implements the UpdateParentOrganizationPayload interface.
32
+ */
33
+ export function instanceOfUpdateParentOrganizationPayload(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "parentUuid" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
30
40
  export function UpdateParentOrganizationPayloadFromJSON(json: any): UpdateParentOrganizationPayload {
31
41
  return UpdateParentOrganizationPayloadFromJSONTyped(json, false);
32
42
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -51,6 +51,17 @@ export interface UpdateUserAccountPayload {
51
51
  locale: string;
52
52
  }
53
53
 
54
+ /**
55
+ * Check if a given object implements the UpdateUserAccountPayload interface.
56
+ */
57
+ export function instanceOfUpdateUserAccountPayload(value: object): boolean {
58
+ let isInstance = true;
59
+ isInstance = isInstance && "email" in value;
60
+ isInstance = isInstance && "locale" in value;
61
+
62
+ return isInstance;
63
+ }
64
+
54
65
  export function UpdateUserAccountPayloadFromJSON(json: any): UpdateUserAccountPayload {
55
66
  return UpdateUserAccountPayloadFromJSONTyped(json, false);
56
67
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -33,6 +33,16 @@ export interface UpdateUserAccountSsoPayload {
33
33
  identifier?: string | null;
34
34
  }
35
35
 
36
+ /**
37
+ * Check if a given object implements the UpdateUserAccountSsoPayload interface.
38
+ */
39
+ export function instanceOfUpdateUserAccountSsoPayload(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "providerCode" in value;
42
+
43
+ return isInstance;
44
+ }
45
+
36
46
  export function UpdateUserAccountSsoPayloadFromJSON(json: any): UpdateUserAccountSsoPayload {
37
47
  return UpdateUserAccountSsoPayloadFromJSONTyped(json, false);
38
48
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,6 +27,15 @@ export interface UpsertServicePayload {
27
27
  externalId?: string | null;
28
28
  }
29
29
 
30
+ /**
31
+ * Check if a given object implements the UpsertServicePayload interface.
32
+ */
33
+ export function instanceOfUpsertServicePayload(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
30
39
  export function UpsertServicePayloadFromJSON(json: any): UpsertServicePayload {
31
40
  return UpsertServicePayloadFromJSONTyped(json, false);
32
41
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,32 +13,32 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { ServiceAccess } from './ServiceAccess';
16
17
  import {
17
- ServiceAccess,
18
18
  ServiceAccessFromJSON,
19
19
  ServiceAccessFromJSONTyped,
20
20
  ServiceAccessToJSON,
21
21
  } from './ServiceAccess';
22
+ import type { UserAgreement } from './UserAgreement';
22
23
  import {
23
- UserAgreement,
24
24
  UserAgreementFromJSON,
25
25
  UserAgreementFromJSONTyped,
26
26
  UserAgreementToJSON,
27
27
  } from './UserAgreement';
28
+ import type { UserServiceAssociation } from './UserServiceAssociation';
28
29
  import {
29
- UserServiceAssociation,
30
30
  UserServiceAssociationFromJSON,
31
31
  UserServiceAssociationFromJSONTyped,
32
32
  UserServiceAssociationToJSON,
33
33
  } from './UserServiceAssociation';
34
+ import type { UserSsoProvider } from './UserSsoProvider';
34
35
  import {
35
- UserSsoProvider,
36
36
  UserSsoProviderFromJSON,
37
37
  UserSsoProviderFromJSONTyped,
38
38
  UserSsoProviderToJSON,
39
39
  } from './UserSsoProvider';
40
+ import type { UserState } from './UserState';
40
41
  import {
41
- UserState,
42
42
  UserStateFromJSON,
43
43
  UserStateFromJSONTyped,
44
44
  UserStateToJSON,
@@ -190,6 +190,32 @@ export interface User {
190
190
  ssoIdentifier?: string | null;
191
191
  }
192
192
 
193
+ /**
194
+ * Check if a given object implements the User interface.
195
+ */
196
+ export function instanceOfUser(value: object): boolean {
197
+ let isInstance = true;
198
+ isInstance = isInstance && "id" in value;
199
+ isInstance = isInstance && "uuid" in value;
200
+ isInstance = isInstance && "displayName" in value;
201
+ isInstance = isInstance && "sortName" in value;
202
+ isInstance = isInstance && "givenName" in value;
203
+ isInstance = isInstance && "familyName" in value;
204
+ isInstance = isInstance && "email" in value;
205
+ isInstance = isInstance && "locale" in value;
206
+ isInstance = isInstance && "state" in value;
207
+ isInstance = isInstance && "locked" in value;
208
+ isInstance = isInstance && "deletable" in value;
209
+ isInstance = isInstance && "billable" in value;
210
+ isInstance = isInstance && "agreement" in value;
211
+ isInstance = isInstance && "services" in value;
212
+ isInstance = isInstance && "servicesUsers" in value;
213
+ isInstance = isInstance && "legacyServices" in value;
214
+ isInstance = isInstance && "authType" in value;
215
+
216
+ return isInstance;
217
+ }
218
+
193
219
  export function UserFromJSON(json: any): User {
194
220
  return UserFromJSONTyped(json, false);
195
221
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,14 +13,14 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
21
21
  } from './LocalizedString';
22
+ import type { UserAccountRole } from './UserAccountRole';
22
23
  import {
23
- UserAccountRole,
24
24
  UserAccountRoleFromJSON,
25
25
  UserAccountRoleFromJSONTyped,
26
26
  UserAccountRoleToJSON,
@@ -52,6 +52,18 @@ export interface UserAccountOrganizationRoles {
52
52
  roles: Array<UserAccountRole>;
53
53
  }
54
54
 
55
+ /**
56
+ * Check if a given object implements the UserAccountOrganizationRoles interface.
57
+ */
58
+ export function instanceOfUserAccountOrganizationRoles(value: object): boolean {
59
+ let isInstance = true;
60
+ isInstance = isInstance && "uuid" in value;
61
+ isInstance = isInstance && "name" in value;
62
+ isInstance = isInstance && "roles" in value;
63
+
64
+ return isInstance;
65
+ }
66
+
55
67
  export function UserAccountOrganizationRolesFromJSON(json: any): UserAccountOrganizationRoles {
56
68
  return UserAccountOrganizationRolesFromJSONTyped(json, false);
57
69
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
@@ -40,6 +40,17 @@ export interface UserAccountPermission {
40
40
  name: LocalizedString;
41
41
  }
42
42
 
43
+ /**
44
+ * Check if a given object implements the UserAccountPermission interface.
45
+ */
46
+ export function instanceOfUserAccountPermission(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "code" in value;
49
+ isInstance = isInstance && "name" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
43
54
  export function UserAccountPermissionFromJSON(json: any): UserAccountPermission {
44
55
  return UserAccountPermissionFromJSONTyped(json, false);
45
56
  }
@@ -4,7 +4,7 @@
4
4
  * User account and session management
5
5
  * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
6
  *
7
- * The version of the OpenAPI document: 4.5.0
7
+ * The version of the OpenAPI document: 4.5.1-SNAPSHOT
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
@@ -40,6 +40,17 @@ export interface UserAccountRole {
40
40
  name: LocalizedString;
41
41
  }
42
42
 
43
+ /**
44
+ * Check if a given object implements the UserAccountRole interface.
45
+ */
46
+ export function instanceOfUserAccountRole(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "uuid" in value;
49
+ isInstance = isInstance && "name" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
43
54
  export function UserAccountRoleFromJSON(json: any): UserAccountRole {
44
55
  return UserAccountRoleFromJSONTyped(json, false);
45
56
  }