@equisoft/account-service-sdk-typescript 3.4.0 → 3.4.1-snapshot.20220504183726
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/README.md +2 -2
- package/dist/apis/OAuthApi.d.ts +1 -1
- package/dist/apis/OAuthApi.js +9 -1
- package/dist/apis/OrganizationApi.d.ts +1 -4
- package/dist/apis/OrganizationApi.js +70 -7
- package/dist/apis/PermissionApi.d.ts +1 -1
- package/dist/apis/PermissionApi.js +5 -1
- package/dist/apis/RoleApi.d.ts +1 -1
- package/dist/apis/RoleApi.js +5 -1
- package/dist/apis/ServiceAccountApi.d.ts +1 -1
- package/dist/apis/ServiceAccountApi.js +29 -1
- package/dist/apis/SessionApi.d.ts +1 -1
- package/dist/apis/SessionApi.js +49 -1
- package/dist/apis/UserApi.d.ts +1 -3
- package/dist/apis/UserApi.js +63 -5
- package/dist/models/ApplyPermissionsPayload.d.ts +1 -1
- package/dist/models/ApplyPermissionsPayload.js +1 -1
- package/dist/models/CreateOrUpdateOAuthClientPayload.d.ts +1 -1
- package/dist/models/CreateOrUpdateOAuthClientPayload.js +1 -1
- package/dist/models/CreateOrUpdateOrganizationPayload.d.ts +1 -1
- package/dist/models/CreateOrUpdateOrganizationPayload.js +1 -1
- package/dist/models/CreateOrUpdatePermissionPayload.d.ts +1 -1
- package/dist/models/CreateOrUpdatePermissionPayload.js +1 -1
- package/dist/models/CreateOrganizationPayload.d.ts +1 -1
- package/dist/models/CreateOrganizationPayload.js +1 -1
- package/dist/models/CreateOrganizationUserServiceOptionPayload.d.ts +1 -1
- package/dist/models/CreateOrganizationUserServiceOptionPayload.js +1 -1
- package/dist/models/CreateOrganizationUserServicePayload.d.ts +1 -1
- package/dist/models/CreateOrganizationUserServicePayload.js +1 -1
- package/dist/models/CreateRole.d.ts +1 -1
- package/dist/models/CreateRole.js +1 -1
- package/dist/models/DatabaseState.d.ts +1 -1
- package/dist/models/DatabaseState.js +1 -1
- package/dist/models/EnableEquisoftConnectPayloadSchema.d.ts +1 -1
- package/dist/models/EnableEquisoftConnectPayloadSchema.js +1 -1
- package/dist/models/ErrorMessage.d.ts +1 -1
- package/dist/models/ErrorMessage.js +1 -1
- package/dist/models/ErrorPayload.d.ts +1 -1
- package/dist/models/ErrorPayload.js +1 -1
- package/dist/models/Id.d.ts +1 -1
- package/dist/models/Id.js +1 -1
- package/dist/models/ImpersonatePayload.d.ts +1 -1
- package/dist/models/ImpersonatePayload.js +1 -1
- package/dist/models/LegacyRoleSchema.d.ts +1 -1
- package/dist/models/LegacyRoleSchema.js +1 -1
- package/dist/models/ListOrganizationElement.d.ts +1 -1
- package/dist/models/ListOrganizationElement.js +1 -1
- package/dist/models/ListUserOrganizations.d.ts +1 -1
- package/dist/models/ListUserOrganizations.js +1 -1
- package/dist/models/LocalizedString.d.ts +1 -1
- package/dist/models/LocalizedString.js +1 -1
- package/dist/models/OAuthClient.d.ts +1 -1
- package/dist/models/OAuthClient.js +1 -1
- package/dist/models/OAuthClientCreated.d.ts +1 -1
- package/dist/models/OAuthClientCreated.js +1 -1
- package/dist/models/OAuthClientPublicKey.d.ts +1 -1
- package/dist/models/OAuthClientPublicKey.js +1 -1
- package/dist/models/Organization.d.ts +1 -1
- package/dist/models/Organization.js +1 -1
- package/dist/models/OrganizationCreated.d.ts +1 -1
- package/dist/models/OrganizationCreated.js +1 -1
- package/dist/models/OrganizationPathElement.d.ts +1 -1
- package/dist/models/OrganizationPathElement.js +1 -1
- package/dist/models/OrganizationRoleAttribution.d.ts +1 -1
- package/dist/models/OrganizationRoleAttribution.js +1 -1
- package/dist/models/OrganizationRoleAttributionPermission.d.ts +1 -1
- package/dist/models/OrganizationRoleAttributionPermission.js +1 -1
- package/dist/models/OrganizationRoleAttributionRole.d.ts +1 -1
- package/dist/models/OrganizationRoleAttributionRole.js +1 -1
- package/dist/models/OrganizationRoleAttributions.d.ts +1 -1
- package/dist/models/OrganizationRoleAttributions.js +1 -1
- package/dist/models/OrganizationServicesElement.d.ts +1 -1
- package/dist/models/OrganizationServicesElement.js +1 -1
- package/dist/models/PermissionCode.d.ts +1 -1
- package/dist/models/PermissionCode.js +1 -1
- package/dist/models/PermissionCreated.d.ts +1 -1
- package/dist/models/PermissionCreated.js +1 -1
- package/dist/models/PermissionList.d.ts +1 -1
- package/dist/models/PermissionList.js +1 -1
- package/dist/models/PermissionResourceType.d.ts +1 -1
- package/dist/models/PermissionResourceType.js +1 -1
- package/dist/models/Role.d.ts +1 -1
- package/dist/models/Role.js +1 -1
- package/dist/models/RoleCreated.d.ts +1 -1
- package/dist/models/RoleCreated.js +1 -1
- package/dist/models/RolesOnOrganization.d.ts +1 -1
- package/dist/models/RolesOnOrganization.js +1 -1
- package/dist/models/ServiceAccess.d.ts +1 -1
- package/dist/models/ServiceAccess.js +1 -1
- package/dist/models/ServiceAccountCreationSchema.d.ts +1 -1
- package/dist/models/ServiceAccountCreationSchema.js +1 -1
- package/dist/models/ServiceAccountSchema.d.ts +1 -1
- package/dist/models/ServiceAccountSchema.js +1 -1
- package/dist/models/ServiceAccountStatus.d.ts +1 -1
- package/dist/models/ServiceAccountStatus.js +1 -1
- package/dist/models/ServiceAccountUpdateSchema.d.ts +1 -1
- package/dist/models/ServiceAccountUpdateSchema.js +1 -1
- package/dist/models/ServiceAccountUuidSchema.d.ts +1 -1
- package/dist/models/ServiceAccountUuidSchema.js +1 -1
- package/dist/models/ServiceName.d.ts +1 -1
- package/dist/models/ServiceName.js +1 -1
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/Session.js +1 -1
- package/dist/models/SessionPayload.d.ts +1 -1
- package/dist/models/SessionPayload.js +1 -1
- package/dist/models/SessionState.d.ts +1 -1
- package/dist/models/SessionState.js +1 -1
- package/dist/models/SsoProvider.d.ts +1 -1
- package/dist/models/SsoProvider.js +1 -1
- package/dist/models/SsoToken.d.ts +1 -1
- package/dist/models/SsoToken.js +1 -1
- package/dist/models/UpdateParentOrganizationPayload.d.ts +1 -1
- package/dist/models/UpdateParentOrganizationPayload.js +1 -1
- package/dist/models/UpdateUserAccountPayload.d.ts +1 -1
- package/dist/models/UpdateUserAccountPayload.js +1 -1
- package/dist/models/UpdateUserAccountSsoPayload.d.ts +1 -1
- package/dist/models/UpdateUserAccountSsoPayload.js +1 -1
- package/dist/models/UpsertServicePayload.d.ts +1 -1
- package/dist/models/UpsertServicePayload.js +1 -1
- package/dist/models/User.d.ts +1 -1
- package/dist/models/User.js +1 -1
- package/dist/models/UserAccountOrganizationRoles.d.ts +1 -1
- package/dist/models/UserAccountOrganizationRoles.js +1 -1
- package/dist/models/UserAccountPermission.d.ts +1 -1
- package/dist/models/UserAccountPermission.js +1 -1
- package/dist/models/UserAccountRole.d.ts +1 -1
- package/dist/models/UserAccountRole.js +1 -1
- package/dist/models/UserAccountRoleAttributions.d.ts +1 -1
- package/dist/models/UserAccountRoleAttributions.js +1 -1
- package/dist/models/UserAccountSearchResult.d.ts +1 -1
- package/dist/models/UserAccountSearchResult.js +1 -1
- package/dist/models/UserAgreement.d.ts +1 -1
- package/dist/models/UserAgreement.js +1 -1
- package/dist/models/UserAgreementState.d.ts +1 -1
- package/dist/models/UserAgreementState.js +1 -1
- package/dist/models/UserPermissions.d.ts +1 -1
- package/dist/models/UserPermissions.js +1 -1
- package/dist/models/UserServiceAssociation.d.ts +1 -1
- package/dist/models/UserServiceAssociation.js +1 -1
- package/dist/models/UserSsoProvider.d.ts +1 -1
- package/dist/models/UserSsoProvider.js +1 -1
- package/dist/models/UserState.d.ts +1 -1
- package/dist/models/UserState.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/OAuthApi.ts +11 -1
- package/src/apis/OrganizationApi.ts +85 -10
- package/src/apis/PermissionApi.ts +6 -1
- package/src/apis/RoleApi.ts +6 -1
- package/src/apis/ServiceAccountApi.ts +36 -1
- package/src/apis/SessionApi.ts +61 -1
- package/src/apis/UserApi.ts +77 -7
- package/src/models/ApplyPermissionsPayload.ts +1 -1
- package/src/models/CreateOrUpdateOAuthClientPayload.ts +1 -1
- package/src/models/CreateOrUpdateOrganizationPayload.ts +1 -1
- package/src/models/CreateOrUpdatePermissionPayload.ts +1 -1
- package/src/models/CreateOrganizationPayload.ts +1 -1
- package/src/models/CreateOrganizationUserServiceOptionPayload.ts +1 -1
- package/src/models/CreateOrganizationUserServicePayload.ts +1 -1
- package/src/models/CreateRole.ts +1 -1
- package/src/models/DatabaseState.ts +1 -1
- package/src/models/EnableEquisoftConnectPayloadSchema.ts +1 -1
- package/src/models/ErrorMessage.ts +1 -1
- package/src/models/ErrorPayload.ts +1 -1
- package/src/models/Id.ts +1 -1
- package/src/models/ImpersonatePayload.ts +1 -1
- package/src/models/LegacyRoleSchema.ts +1 -1
- package/src/models/ListOrganizationElement.ts +1 -1
- package/src/models/ListUserOrganizations.ts +1 -1
- package/src/models/LocalizedString.ts +1 -1
- package/src/models/OAuthClient.ts +1 -1
- package/src/models/OAuthClientCreated.ts +1 -1
- package/src/models/OAuthClientPublicKey.ts +1 -1
- package/src/models/Organization.ts +1 -1
- package/src/models/OrganizationCreated.ts +1 -1
- package/src/models/OrganizationPathElement.ts +1 -1
- package/src/models/OrganizationRoleAttribution.ts +1 -1
- package/src/models/OrganizationRoleAttributionPermission.ts +1 -1
- package/src/models/OrganizationRoleAttributionRole.ts +1 -1
- package/src/models/OrganizationRoleAttributions.ts +1 -1
- package/src/models/OrganizationServicesElement.ts +1 -1
- package/src/models/PermissionCode.ts +1 -1
- package/src/models/PermissionCreated.ts +1 -1
- package/src/models/PermissionList.ts +1 -1
- package/src/models/PermissionResourceType.ts +1 -1
- package/src/models/Role.ts +1 -1
- package/src/models/RoleCreated.ts +1 -1
- package/src/models/RolesOnOrganization.ts +1 -1
- package/src/models/ServiceAccess.ts +1 -1
- package/src/models/ServiceAccountCreationSchema.ts +1 -1
- package/src/models/ServiceAccountSchema.ts +1 -1
- package/src/models/ServiceAccountStatus.ts +1 -1
- package/src/models/ServiceAccountUpdateSchema.ts +1 -1
- package/src/models/ServiceAccountUuidSchema.ts +1 -1
- package/src/models/ServiceName.ts +1 -1
- package/src/models/Session.ts +1 -1
- package/src/models/SessionPayload.ts +1 -1
- package/src/models/SessionState.ts +1 -1
- package/src/models/SsoProvider.ts +1 -1
- package/src/models/SsoToken.ts +1 -1
- package/src/models/UpdateParentOrganizationPayload.ts +1 -1
- package/src/models/UpdateUserAccountPayload.ts +1 -1
- package/src/models/UpdateUserAccountSsoPayload.ts +1 -1
- package/src/models/UpsertServicePayload.ts +1 -1
- package/src/models/User.ts +1 -1
- package/src/models/UserAccountOrganizationRoles.ts +1 -1
- package/src/models/UserAccountPermission.ts +1 -1
- package/src/models/UserAccountRole.ts +1 -1
- package/src/models/UserAccountRoleAttributions.ts +1 -1
- package/src/models/UserAccountSearchResult.ts +1 -1
- package/src/models/UserAgreement.ts +1 -1
- package/src/models/UserAgreementState.ts +1 -1
- package/src/models/UserPermissions.ts +1 -1
- package/src/models/UserServiceAssociation.ts +1 -1
- package/src/models/UserSsoProvider.ts +1 -1
- package/src/models/UserState.ts +1 -1
- package/src/runtime.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @equisoft/account-service-sdk-typescript@3.4.
|
|
1
|
+
## @equisoft/account-service-sdk-typescript@3.4.1-SNAPSHOT
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @equisoft/account-service-sdk-typescript@3.4.
|
|
39
|
+
npm install @equisoft/account-service-sdk-typescript@3.4.1-SNAPSHOT --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/OAuthApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* User account and session management
|
|
3
3
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.4.
|
|
5
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/OAuthApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* User account and session management
|
|
6
6
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.4.
|
|
8
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,6 +43,10 @@ class OAuthApi extends runtime.BaseAPI {
|
|
|
43
43
|
const queryParameters = {};
|
|
44
44
|
const headerParameters = {};
|
|
45
45
|
headerParameters['Content-Type'] = 'application/json';
|
|
46
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
47
|
+
// oauth required
|
|
48
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:oauthClient"]);
|
|
49
|
+
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters.clientId))),
|
|
48
52
|
method: 'PUT',
|
|
@@ -72,6 +76,10 @@ class OAuthApi extends runtime.BaseAPI {
|
|
|
72
76
|
}
|
|
73
77
|
const queryParameters = {};
|
|
74
78
|
const headerParameters = {};
|
|
79
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
80
|
+
// oauth required
|
|
81
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:oauthClient"]);
|
|
82
|
+
}
|
|
75
83
|
const response = yield this.request({
|
|
76
84
|
path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters.clientId))),
|
|
77
85
|
method: 'GET',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* User account and session management
|
|
3
3
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.4.
|
|
5
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -46,11 +46,9 @@ export interface CreateServiceForUserRequest {
|
|
|
46
46
|
}
|
|
47
47
|
export interface DeleteOrganizationRequest {
|
|
48
48
|
uuid: string;
|
|
49
|
-
xUserUuid?: string;
|
|
50
49
|
}
|
|
51
50
|
export interface GetOrganizationRequest {
|
|
52
51
|
uuid: string;
|
|
53
|
-
xUserUuid?: string;
|
|
54
52
|
}
|
|
55
53
|
export interface GetServiceAccountPermissionsRequest {
|
|
56
54
|
uuid: string;
|
|
@@ -64,7 +62,6 @@ export interface ListOrganizationRequest {
|
|
|
64
62
|
pageToken?: string;
|
|
65
63
|
parent?: string;
|
|
66
64
|
query?: string;
|
|
67
|
-
xUserUuid?: string;
|
|
68
65
|
}
|
|
69
66
|
export interface ListOrganizationUsersRequest {
|
|
70
67
|
uuid: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* User account and session management
|
|
6
6
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.4.
|
|
8
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -46,6 +46,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
46
46
|
const queryParameters = {};
|
|
47
47
|
const headerParameters = {};
|
|
48
48
|
headerParameters['Content-Type'] = 'application/json';
|
|
49
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
50
|
+
// oauth required
|
|
51
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:service"]);
|
|
52
|
+
}
|
|
49
53
|
const response = yield this.request({
|
|
50
54
|
path: `/organizations/{uuid}/services/{serviceCode}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))),
|
|
51
55
|
method: 'PUT',
|
|
@@ -84,6 +88,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
84
88
|
const queryParameters = {};
|
|
85
89
|
const headerParameters = {};
|
|
86
90
|
headerParameters['Content-Type'] = 'application/json';
|
|
91
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
92
|
+
// oauth required
|
|
93
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:service"]);
|
|
94
|
+
}
|
|
87
95
|
const response = yield this.request({
|
|
88
96
|
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))),
|
|
89
97
|
method: 'PUT',
|
|
@@ -116,6 +124,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
116
124
|
const queryParameters = {};
|
|
117
125
|
const headerParameters = {};
|
|
118
126
|
headerParameters['Content-Type'] = 'application/json';
|
|
127
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
128
|
+
// oauth required
|
|
129
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization"]);
|
|
130
|
+
}
|
|
119
131
|
const response = yield this.request({
|
|
120
132
|
path: `/organizations/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
121
133
|
method: 'PUT',
|
|
@@ -152,6 +164,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
152
164
|
const queryParameters = {};
|
|
153
165
|
const headerParameters = {};
|
|
154
166
|
headerParameters['Content-Type'] = 'application/json';
|
|
167
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
168
|
+
// oauth required
|
|
169
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:role"]);
|
|
170
|
+
}
|
|
155
171
|
const response = yield this.request({
|
|
156
172
|
path: `/organizations/{uuid}/roles/{roleId}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
|
157
173
|
method: 'PUT',
|
|
@@ -182,6 +198,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
182
198
|
const queryParameters = {};
|
|
183
199
|
const headerParameters = {};
|
|
184
200
|
headerParameters['Content-Type'] = 'application/json';
|
|
201
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
202
|
+
// oauth required
|
|
203
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization"]);
|
|
204
|
+
}
|
|
185
205
|
const response = yield this.request({
|
|
186
206
|
path: `/organizations`,
|
|
187
207
|
method: 'POST',
|
|
@@ -215,6 +235,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
215
235
|
const queryParameters = {};
|
|
216
236
|
const headerParameters = {};
|
|
217
237
|
headerParameters['Content-Type'] = 'application/json';
|
|
238
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
239
|
+
// oauth required
|
|
240
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:role"]);
|
|
241
|
+
}
|
|
218
242
|
const response = yield this.request({
|
|
219
243
|
path: `/organizations/{uuid}/roles`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
220
244
|
method: 'POST',
|
|
@@ -254,6 +278,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
254
278
|
const queryParameters = {};
|
|
255
279
|
const headerParameters = {};
|
|
256
280
|
headerParameters['Content-Type'] = 'application/json';
|
|
281
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
282
|
+
// oauth required
|
|
283
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:service"]);
|
|
284
|
+
}
|
|
257
285
|
const response = yield this.request({
|
|
258
286
|
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))),
|
|
259
287
|
method: 'POST',
|
|
@@ -282,8 +310,9 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
282
310
|
}
|
|
283
311
|
const queryParameters = {};
|
|
284
312
|
const headerParameters = {};
|
|
285
|
-
if (
|
|
286
|
-
|
|
313
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
314
|
+
// oauth required
|
|
315
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization"]);
|
|
287
316
|
}
|
|
288
317
|
const response = yield this.request({
|
|
289
318
|
path: `/organizations/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -312,8 +341,9 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
312
341
|
}
|
|
313
342
|
const queryParameters = {};
|
|
314
343
|
const headerParameters = {};
|
|
315
|
-
if (
|
|
316
|
-
|
|
344
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
345
|
+
// oauth required
|
|
346
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization"]);
|
|
317
347
|
}
|
|
318
348
|
const response = yield this.request({
|
|
319
349
|
path: `/organizations/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -346,6 +376,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
346
376
|
}
|
|
347
377
|
const queryParameters = {};
|
|
348
378
|
const headerParameters = {};
|
|
379
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
380
|
+
// oauth required
|
|
381
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization"]);
|
|
382
|
+
}
|
|
349
383
|
const response = yield this.request({
|
|
350
384
|
path: `/organizations/{uuid}/serviceAccounts/{serviceAccountUuid}/permissions`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"serviceAccountUuid"}}`, encodeURIComponent(String(requestParameters.serviceAccountUuid))),
|
|
351
385
|
method: 'GET',
|
|
@@ -374,6 +408,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
374
408
|
}
|
|
375
409
|
const queryParameters = {};
|
|
376
410
|
const headerParameters = {};
|
|
411
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
412
|
+
// oauth required
|
|
413
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:roleAttribution"]);
|
|
414
|
+
}
|
|
377
415
|
const response = yield this.request({
|
|
378
416
|
path: `/organizations/{uuid}/roleAttributions`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
379
417
|
method: 'GET',
|
|
@@ -414,8 +452,9 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
414
452
|
queryParameters['query'] = requestParameters.query;
|
|
415
453
|
}
|
|
416
454
|
const headerParameters = {};
|
|
417
|
-
if (
|
|
418
|
-
|
|
455
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
456
|
+
// oauth required
|
|
457
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization"]);
|
|
419
458
|
}
|
|
420
459
|
const response = yield this.request({
|
|
421
460
|
path: `/organizations`,
|
|
@@ -445,6 +484,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
445
484
|
}
|
|
446
485
|
const queryParameters = {};
|
|
447
486
|
const headerParameters = {};
|
|
487
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
488
|
+
// oauth required
|
|
489
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:user"]);
|
|
490
|
+
}
|
|
448
491
|
const response = yield this.request({
|
|
449
492
|
path: `/organizations/{uuid}/users`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
450
493
|
method: 'GET',
|
|
@@ -476,6 +519,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
476
519
|
}
|
|
477
520
|
const queryParameters = {};
|
|
478
521
|
const headerParameters = {};
|
|
522
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
523
|
+
// oauth required
|
|
524
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:service"]);
|
|
525
|
+
}
|
|
479
526
|
const response = yield this.request({
|
|
480
527
|
path: `/organizations/{uuid}/services/{serviceCode}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))),
|
|
481
528
|
method: 'DELETE',
|
|
@@ -509,6 +556,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
509
556
|
}
|
|
510
557
|
const queryParameters = {};
|
|
511
558
|
const headerParameters = {};
|
|
559
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
560
|
+
// oauth required
|
|
561
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:service"]);
|
|
562
|
+
}
|
|
512
563
|
const response = yield this.request({
|
|
513
564
|
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))),
|
|
514
565
|
method: 'DELETE',
|
|
@@ -545,6 +596,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
545
596
|
}
|
|
546
597
|
const queryParameters = {};
|
|
547
598
|
const headerParameters = {};
|
|
599
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
600
|
+
// oauth required
|
|
601
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:service"]);
|
|
602
|
+
}
|
|
548
603
|
const response = yield this.request({
|
|
549
604
|
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}/options/{optionName}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))).replace(`{${"optionName"}}`, encodeURIComponent(String(requestParameters.optionName))),
|
|
550
605
|
method: 'DELETE',
|
|
@@ -585,6 +640,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
585
640
|
const queryParameters = {};
|
|
586
641
|
const headerParameters = {};
|
|
587
642
|
headerParameters['Content-Type'] = 'application/json';
|
|
643
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
644
|
+
// oauth required
|
|
645
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization", "account:service"]);
|
|
646
|
+
}
|
|
588
647
|
const response = yield this.request({
|
|
589
648
|
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}/options/{optionName}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))).replace(`{${"optionName"}}`, encodeURIComponent(String(requestParameters.optionName))),
|
|
590
649
|
method: 'PUT',
|
|
@@ -617,6 +676,10 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
617
676
|
const queryParameters = {};
|
|
618
677
|
const headerParameters = {};
|
|
619
678
|
headerParameters['Content-Type'] = 'application/json';
|
|
679
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
680
|
+
// oauth required
|
|
681
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:organization"]);
|
|
682
|
+
}
|
|
620
683
|
const response = yield this.request({
|
|
621
684
|
path: `/organizations/{uuid}/move`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
622
685
|
method: 'POST',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* User account and session management
|
|
3
3
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.4.
|
|
5
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* User account and session management
|
|
6
6
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.4.
|
|
8
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,6 +43,10 @@ class PermissionApi extends runtime.BaseAPI {
|
|
|
43
43
|
const queryParameters = {};
|
|
44
44
|
const headerParameters = {};
|
|
45
45
|
headerParameters['Content-Type'] = 'application/json';
|
|
46
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
47
|
+
// oauth required
|
|
48
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:permission"]);
|
|
49
|
+
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/permissions/{code}`.replace(`{${"code"}}`, encodeURIComponent(String(requestParameters.code))),
|
|
48
52
|
method: 'PUT',
|
package/dist/apis/RoleApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* User account and session management
|
|
3
3
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.4.
|
|
5
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/RoleApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* User account and session management
|
|
6
6
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.4.
|
|
8
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -39,6 +39,10 @@ class RoleApi extends runtime.BaseAPI {
|
|
|
39
39
|
}
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
+
// oauth required
|
|
44
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:role"]);
|
|
45
|
+
}
|
|
42
46
|
const response = yield this.request({
|
|
43
47
|
path: `/roles/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
44
48
|
method: 'GET',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* User account and session management
|
|
3
3
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.4.
|
|
5
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* User account and session management
|
|
6
6
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.4.
|
|
8
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,6 +45,10 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
45
45
|
}
|
|
46
46
|
const queryParameters = {};
|
|
47
47
|
const headerParameters = {};
|
|
48
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
49
|
+
// oauth required
|
|
50
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:serviceAccount", "account:roleAttribution"]);
|
|
51
|
+
}
|
|
48
52
|
const response = yield this.request({
|
|
49
53
|
path: `/serviceAccounts/{uuid}/roleAttributions/organization/{organizationUuid}/role/{roleUuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"organizationUuid"}}`, encodeURIComponent(String(requestParameters.organizationUuid))).replace(`{${"roleUuid"}}`, encodeURIComponent(String(requestParameters.roleUuid))),
|
|
50
54
|
method: 'PUT',
|
|
@@ -73,6 +77,10 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
73
77
|
const queryParameters = {};
|
|
74
78
|
const headerParameters = {};
|
|
75
79
|
headerParameters['Content-Type'] = 'application/json';
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
// oauth required
|
|
82
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:serviceAccount"]);
|
|
83
|
+
}
|
|
76
84
|
const response = yield this.request({
|
|
77
85
|
path: `/serviceAccounts`,
|
|
78
86
|
method: 'POST',
|
|
@@ -108,6 +116,10 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
108
116
|
}
|
|
109
117
|
const queryParameters = {};
|
|
110
118
|
const headerParameters = {};
|
|
119
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
120
|
+
// oauth required
|
|
121
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:serviceAccount", "account:roleAttribution"]);
|
|
122
|
+
}
|
|
111
123
|
const response = yield this.request({
|
|
112
124
|
path: `/serviceAccounts/{uuid}/roleAttributions/organization/{organizationUuid}/role/{roleUuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"organizationUuid"}}`, encodeURIComponent(String(requestParameters.organizationUuid))).replace(`{${"roleUuid"}}`, encodeURIComponent(String(requestParameters.roleUuid))),
|
|
113
125
|
method: 'DELETE',
|
|
@@ -135,6 +147,10 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
135
147
|
}
|
|
136
148
|
const queryParameters = {};
|
|
137
149
|
const headerParameters = {};
|
|
150
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
151
|
+
// oauth required
|
|
152
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:serviceAccount"]);
|
|
153
|
+
}
|
|
138
154
|
const response = yield this.request({
|
|
139
155
|
path: `/serviceAccounts/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
140
156
|
method: 'GET',
|
|
@@ -163,6 +179,10 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
163
179
|
}
|
|
164
180
|
const queryParameters = {};
|
|
165
181
|
const headerParameters = {};
|
|
182
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
183
|
+
// oauth required
|
|
184
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:serviceAccount", "account:roleAttribution"]);
|
|
185
|
+
}
|
|
166
186
|
const response = yield this.request({
|
|
167
187
|
path: `/serviceAccounts/{uuid}/roleAttributions`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
168
188
|
method: 'GET',
|
|
@@ -191,6 +211,10 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
191
211
|
queryParameters['name'] = requestParameters.name;
|
|
192
212
|
}
|
|
193
213
|
const headerParameters = {};
|
|
214
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
215
|
+
// oauth required
|
|
216
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:serviceAccount"]);
|
|
217
|
+
}
|
|
194
218
|
const response = yield this.request({
|
|
195
219
|
path: `/serviceAccounts`,
|
|
196
220
|
method: 'GET',
|
|
@@ -223,6 +247,10 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
223
247
|
const queryParameters = {};
|
|
224
248
|
const headerParameters = {};
|
|
225
249
|
headerParameters['Content-Type'] = 'application/json';
|
|
250
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
251
|
+
// oauth required
|
|
252
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:serviceAccount"]);
|
|
253
|
+
}
|
|
226
254
|
const response = yield this.request({
|
|
227
255
|
path: `/serviceAccounts/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
228
256
|
method: 'PATCH',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* User account and session management
|
|
3
3
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.4.
|
|
5
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/SessionApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* User account and session management
|
|
6
6
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.4.
|
|
8
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -40,6 +40,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
// oauth required
|
|
45
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
46
|
+
}
|
|
43
47
|
const response = yield this.request({
|
|
44
48
|
path: `/sessions`,
|
|
45
49
|
method: 'POST',
|
|
@@ -66,6 +70,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
66
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
71
|
const queryParameters = {};
|
|
68
72
|
const headerParameters = {};
|
|
73
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
74
|
+
// oauth required
|
|
75
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
76
|
+
}
|
|
69
77
|
const response = yield this.request({
|
|
70
78
|
path: `/sessions`,
|
|
71
79
|
method: 'DELETE',
|
|
@@ -90,6 +98,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
90
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
91
99
|
const queryParameters = {};
|
|
92
100
|
const headerParameters = {};
|
|
101
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
102
|
+
// oauth required
|
|
103
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
104
|
+
}
|
|
93
105
|
const response = yield this.request({
|
|
94
106
|
path: `/sessions/expired`,
|
|
95
107
|
method: 'DELETE',
|
|
@@ -117,6 +129,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
117
129
|
}
|
|
118
130
|
const queryParameters = {};
|
|
119
131
|
const headerParameters = {};
|
|
132
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
133
|
+
// oauth required
|
|
134
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
135
|
+
}
|
|
120
136
|
const response = yield this.request({
|
|
121
137
|
path: `/sessions/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
122
138
|
method: 'DELETE',
|
|
@@ -147,6 +163,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
147
163
|
}
|
|
148
164
|
const queryParameters = {};
|
|
149
165
|
const headerParameters = {};
|
|
166
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
167
|
+
// oauth required
|
|
168
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
169
|
+
}
|
|
150
170
|
const response = yield this.request({
|
|
151
171
|
path: `/sessions/{uuid}/tokens/{tokenId}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"tokenId"}}`, encodeURIComponent(String(requestParameters.tokenId))),
|
|
152
172
|
method: 'DELETE',
|
|
@@ -175,6 +195,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
175
195
|
const queryParameters = {};
|
|
176
196
|
const headerParameters = {};
|
|
177
197
|
headerParameters['Content-Type'] = 'text/plain';
|
|
198
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
199
|
+
// oauth required
|
|
200
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
201
|
+
}
|
|
178
202
|
const response = yield this.request({
|
|
179
203
|
path: `/sessions/{uuid}/enable`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
180
204
|
method: 'POST',
|
|
@@ -204,6 +228,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
204
228
|
const queryParameters = {};
|
|
205
229
|
const headerParameters = {};
|
|
206
230
|
headerParameters['Content-Type'] = 'application/json';
|
|
231
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
232
|
+
// oauth required
|
|
233
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
234
|
+
}
|
|
207
235
|
const response = yield this.request({
|
|
208
236
|
path: `/sessions/{uuid}/enable/EQUISOFT_CONNECT`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
209
237
|
method: 'POST',
|
|
@@ -235,6 +263,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
235
263
|
queryParameters['keepAlive'] = requestParameters.keepAlive;
|
|
236
264
|
}
|
|
237
265
|
const headerParameters = {};
|
|
266
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
267
|
+
// oauth required
|
|
268
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
269
|
+
}
|
|
238
270
|
const response = yield this.request({
|
|
239
271
|
path: `/sessions/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
240
272
|
method: 'GET',
|
|
@@ -266,6 +298,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
266
298
|
}
|
|
267
299
|
const queryParameters = {};
|
|
268
300
|
const headerParameters = {};
|
|
301
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
302
|
+
// oauth required
|
|
303
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
304
|
+
}
|
|
269
305
|
const response = yield this.request({
|
|
270
306
|
path: `/sessions/{uuid}/tokens/{tokenId}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"tokenId"}}`, encodeURIComponent(String(requestParameters.tokenId))),
|
|
271
307
|
method: 'GET',
|
|
@@ -299,6 +335,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
299
335
|
const queryParameters = {};
|
|
300
336
|
const headerParameters = {};
|
|
301
337
|
headerParameters['Content-Type'] = 'application/json';
|
|
338
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
339
|
+
// oauth required
|
|
340
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
341
|
+
}
|
|
302
342
|
const response = yield this.request({
|
|
303
343
|
path: `/sessions/{uuid}/impersonate`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
304
344
|
method: 'POST',
|
|
@@ -329,6 +369,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
329
369
|
}
|
|
330
370
|
const queryParameters = {};
|
|
331
371
|
const headerParameters = {};
|
|
372
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
373
|
+
// oauth required
|
|
374
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
375
|
+
}
|
|
332
376
|
const response = yield this.request({
|
|
333
377
|
path: `/sessions/{uuid}/revertIdentity`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
334
378
|
method: 'POST',
|
|
@@ -364,6 +408,10 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
364
408
|
const queryParameters = {};
|
|
365
409
|
const headerParameters = {};
|
|
366
410
|
headerParameters['Content-Type'] = 'text/plain';
|
|
411
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
412
|
+
// oauth required
|
|
413
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["account:session"]);
|
|
414
|
+
}
|
|
367
415
|
const response = yield this.request({
|
|
368
416
|
path: `/sessions/{uuid}/tokens/{tokenId}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"tokenId"}}`, encodeURIComponent(String(requestParameters.tokenId))),
|
|
369
417
|
method: 'PUT',
|
package/dist/apis/UserApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* User account and session management
|
|
3
3
|
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 3.4.
|
|
5
|
+
* The version of the OpenAPI document: 3.4.1-SNAPSHOT
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,7 +43,6 @@ export interface DeleteUserSessionsRequest {
|
|
|
43
43
|
}
|
|
44
44
|
export interface GetOwnerOrganizationRequest {
|
|
45
45
|
uuid: string;
|
|
46
|
-
xUserUuid?: string;
|
|
47
46
|
}
|
|
48
47
|
export interface GetUserRequest {
|
|
49
48
|
uuid: string;
|
|
@@ -53,7 +52,6 @@ export interface GetUserAccountRoleAttributionsRequest {
|
|
|
53
52
|
}
|
|
54
53
|
export interface GetUserPermissionsRequest {
|
|
55
54
|
uuid: string;
|
|
56
|
-
xUserUuid?: string;
|
|
57
55
|
}
|
|
58
56
|
export interface GetUuidByIdRequest {
|
|
59
57
|
id: number;
|