@equisoft/account-service-sdk-typescript 3.6.1 → 3.7.0
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 +11 -3
- package/dist/apis/OrganizationApi.d.ts +1 -1
- package/dist/apis/OrganizationApi.js +91 -19
- package/dist/apis/PermissionApi.d.ts +1 -1
- package/dist/apis/PermissionApi.js +6 -2
- package/dist/apis/RoleApi.d.ts +1 -1
- package/dist/apis/RoleApi.js +6 -2
- package/dist/apis/ServiceAccountApi.d.ts +1 -1
- package/dist/apis/ServiceAccountApi.js +41 -9
- package/dist/apis/SessionApi.d.ts +1 -1
- package/dist/apis/SessionApi.js +61 -13
- package/dist/apis/UserApi.d.ts +1 -1
- package/dist/apis/UserApi.js +81 -17
- 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/OrganizationUserServiceAssociation.d.ts +1 -1
- package/dist/models/OrganizationUserServiceAssociation.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 +13 -3
- package/src/apis/OrganizationApi.ts +109 -19
- package/src/apis/PermissionApi.ts +7 -2
- package/src/apis/RoleApi.ts +7 -2
- package/src/apis/ServiceAccountApi.ts +49 -9
- package/src/apis/SessionApi.ts +73 -13
- package/src/apis/UserApi.ts +97 -17
- 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/OrganizationUserServiceAssociation.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.
|
|
1
|
+
## @equisoft/account-service-sdk-typescript@3.7.0
|
|
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.
|
|
39
|
+
npm install @equisoft/account-service-sdk-typescript@3.7.0 --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.
|
|
5
|
+
* The version of the OpenAPI document: 3.7.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 3.7.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,7 +45,11 @@ class OAuthApi extends runtime.BaseAPI {
|
|
|
45
45
|
headerParameters['Content-Type'] = 'application/json';
|
|
46
46
|
if (this.configuration && this.configuration.accessToken) {
|
|
47
47
|
// oauth required
|
|
48
|
-
|
|
48
|
+
const token = this.configuration.accessToken;
|
|
49
|
+
const tokenString = yield token("OAuth2", ["account:oauthClient"]);
|
|
50
|
+
if (tokenString) {
|
|
51
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
const response = yield this.request({
|
|
51
55
|
path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters.clientId))),
|
|
@@ -78,7 +82,11 @@ class OAuthApi extends runtime.BaseAPI {
|
|
|
78
82
|
const headerParameters = {};
|
|
79
83
|
if (this.configuration && this.configuration.accessToken) {
|
|
80
84
|
// oauth required
|
|
81
|
-
|
|
85
|
+
const token = this.configuration.accessToken;
|
|
86
|
+
const tokenString = yield token("OAuth2", ["account:oauthClient"]);
|
|
87
|
+
if (tokenString) {
|
|
88
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
89
|
+
}
|
|
82
90
|
}
|
|
83
91
|
const response = yield this.request({
|
|
84
92
|
path: `/oauthClients/{clientId}`.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters.clientId))),
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 3.7.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 3.7.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,7 +48,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
48
48
|
headerParameters['Content-Type'] = 'application/json';
|
|
49
49
|
if (this.configuration && this.configuration.accessToken) {
|
|
50
50
|
// oauth required
|
|
51
|
-
|
|
51
|
+
const token = this.configuration.accessToken;
|
|
52
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]);
|
|
53
|
+
if (tokenString) {
|
|
54
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
55
|
+
}
|
|
52
56
|
}
|
|
53
57
|
const response = yield this.request({
|
|
54
58
|
path: `/organizations/{uuid}/services/{serviceCode}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))),
|
|
@@ -90,7 +94,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
90
94
|
headerParameters['Content-Type'] = 'application/json';
|
|
91
95
|
if (this.configuration && this.configuration.accessToken) {
|
|
92
96
|
// oauth required
|
|
93
|
-
|
|
97
|
+
const token = this.configuration.accessToken;
|
|
98
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]);
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
101
|
+
}
|
|
94
102
|
}
|
|
95
103
|
const response = yield this.request({
|
|
96
104
|
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))),
|
|
@@ -126,7 +134,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
126
134
|
headerParameters['Content-Type'] = 'application/json';
|
|
127
135
|
if (this.configuration && this.configuration.accessToken) {
|
|
128
136
|
// oauth required
|
|
129
|
-
|
|
137
|
+
const token = this.configuration.accessToken;
|
|
138
|
+
const tokenString = yield token("OAuth2", ["account:organization"]);
|
|
139
|
+
if (tokenString) {
|
|
140
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
141
|
+
}
|
|
130
142
|
}
|
|
131
143
|
const response = yield this.request({
|
|
132
144
|
path: `/organizations/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -166,7 +178,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
166
178
|
headerParameters['Content-Type'] = 'application/json';
|
|
167
179
|
if (this.configuration && this.configuration.accessToken) {
|
|
168
180
|
// oauth required
|
|
169
|
-
|
|
181
|
+
const token = this.configuration.accessToken;
|
|
182
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:role"]);
|
|
183
|
+
if (tokenString) {
|
|
184
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
185
|
+
}
|
|
170
186
|
}
|
|
171
187
|
const response = yield this.request({
|
|
172
188
|
path: `/organizations/{uuid}/roles/{roleId}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
|
@@ -200,7 +216,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
200
216
|
headerParameters['Content-Type'] = 'application/json';
|
|
201
217
|
if (this.configuration && this.configuration.accessToken) {
|
|
202
218
|
// oauth required
|
|
203
|
-
|
|
219
|
+
const token = this.configuration.accessToken;
|
|
220
|
+
const tokenString = yield token("OAuth2", ["account:organization"]);
|
|
221
|
+
if (tokenString) {
|
|
222
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
223
|
+
}
|
|
204
224
|
}
|
|
205
225
|
const response = yield this.request({
|
|
206
226
|
path: `/organizations`,
|
|
@@ -237,7 +257,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
237
257
|
headerParameters['Content-Type'] = 'application/json';
|
|
238
258
|
if (this.configuration && this.configuration.accessToken) {
|
|
239
259
|
// oauth required
|
|
240
|
-
|
|
260
|
+
const token = this.configuration.accessToken;
|
|
261
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:role"]);
|
|
262
|
+
if (tokenString) {
|
|
263
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
264
|
+
}
|
|
241
265
|
}
|
|
242
266
|
const response = yield this.request({
|
|
243
267
|
path: `/organizations/{uuid}/roles`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -280,7 +304,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
280
304
|
headerParameters['Content-Type'] = 'application/json';
|
|
281
305
|
if (this.configuration && this.configuration.accessToken) {
|
|
282
306
|
// oauth required
|
|
283
|
-
|
|
307
|
+
const token = this.configuration.accessToken;
|
|
308
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]);
|
|
309
|
+
if (tokenString) {
|
|
310
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
311
|
+
}
|
|
284
312
|
}
|
|
285
313
|
const response = yield this.request({
|
|
286
314
|
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))),
|
|
@@ -312,7 +340,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
312
340
|
const headerParameters = {};
|
|
313
341
|
if (this.configuration && this.configuration.accessToken) {
|
|
314
342
|
// oauth required
|
|
315
|
-
|
|
343
|
+
const token = this.configuration.accessToken;
|
|
344
|
+
const tokenString = yield token("OAuth2", ["account:organization"]);
|
|
345
|
+
if (tokenString) {
|
|
346
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
347
|
+
}
|
|
316
348
|
}
|
|
317
349
|
const response = yield this.request({
|
|
318
350
|
path: `/organizations/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -343,7 +375,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
343
375
|
const headerParameters = {};
|
|
344
376
|
if (this.configuration && this.configuration.accessToken) {
|
|
345
377
|
// oauth required
|
|
346
|
-
|
|
378
|
+
const token = this.configuration.accessToken;
|
|
379
|
+
const tokenString = yield token("OAuth2", ["account:organization"]);
|
|
380
|
+
if (tokenString) {
|
|
381
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
382
|
+
}
|
|
347
383
|
}
|
|
348
384
|
const response = yield this.request({
|
|
349
385
|
path: `/organizations/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -381,7 +417,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
381
417
|
const headerParameters = {};
|
|
382
418
|
if (this.configuration && this.configuration.accessToken) {
|
|
383
419
|
// oauth required
|
|
384
|
-
|
|
420
|
+
const token = this.configuration.accessToken;
|
|
421
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]);
|
|
422
|
+
if (tokenString) {
|
|
423
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
424
|
+
}
|
|
385
425
|
}
|
|
386
426
|
const response = yield this.request({
|
|
387
427
|
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))),
|
|
@@ -413,7 +453,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
413
453
|
const headerParameters = {};
|
|
414
454
|
if (this.configuration && this.configuration.accessToken) {
|
|
415
455
|
// oauth required
|
|
416
|
-
|
|
456
|
+
const token = this.configuration.accessToken;
|
|
457
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:roleAttribution"]);
|
|
458
|
+
if (tokenString) {
|
|
459
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
460
|
+
}
|
|
417
461
|
}
|
|
418
462
|
const response = yield this.request({
|
|
419
463
|
path: `/organizations/{uuid}/roleAttributions`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -457,7 +501,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
457
501
|
const headerParameters = {};
|
|
458
502
|
if (this.configuration && this.configuration.accessToken) {
|
|
459
503
|
// oauth required
|
|
460
|
-
|
|
504
|
+
const token = this.configuration.accessToken;
|
|
505
|
+
const tokenString = yield token("OAuth2", ["account:organization"]);
|
|
506
|
+
if (tokenString) {
|
|
507
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
508
|
+
}
|
|
461
509
|
}
|
|
462
510
|
const response = yield this.request({
|
|
463
511
|
path: `/organizations`,
|
|
@@ -489,7 +537,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
489
537
|
const headerParameters = {};
|
|
490
538
|
if (this.configuration && this.configuration.accessToken) {
|
|
491
539
|
// oauth required
|
|
492
|
-
|
|
540
|
+
const token = this.configuration.accessToken;
|
|
541
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:user"]);
|
|
542
|
+
if (tokenString) {
|
|
543
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
544
|
+
}
|
|
493
545
|
}
|
|
494
546
|
const response = yield this.request({
|
|
495
547
|
path: `/organizations/{uuid}/users`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -524,7 +576,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
524
576
|
const headerParameters = {};
|
|
525
577
|
if (this.configuration && this.configuration.accessToken) {
|
|
526
578
|
// oauth required
|
|
527
|
-
|
|
579
|
+
const token = this.configuration.accessToken;
|
|
580
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]);
|
|
581
|
+
if (tokenString) {
|
|
582
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
583
|
+
}
|
|
528
584
|
}
|
|
529
585
|
const response = yield this.request({
|
|
530
586
|
path: `/organizations/{uuid}/services/{serviceCode}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))),
|
|
@@ -561,7 +617,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
561
617
|
const headerParameters = {};
|
|
562
618
|
if (this.configuration && this.configuration.accessToken) {
|
|
563
619
|
// oauth required
|
|
564
|
-
|
|
620
|
+
const token = this.configuration.accessToken;
|
|
621
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]);
|
|
622
|
+
if (tokenString) {
|
|
623
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
624
|
+
}
|
|
565
625
|
}
|
|
566
626
|
const response = yield this.request({
|
|
567
627
|
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))),
|
|
@@ -601,7 +661,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
601
661
|
const headerParameters = {};
|
|
602
662
|
if (this.configuration && this.configuration.accessToken) {
|
|
603
663
|
// oauth required
|
|
604
|
-
|
|
664
|
+
const token = this.configuration.accessToken;
|
|
665
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]);
|
|
666
|
+
if (tokenString) {
|
|
667
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
668
|
+
}
|
|
605
669
|
}
|
|
606
670
|
const response = yield this.request({
|
|
607
671
|
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))),
|
|
@@ -645,7 +709,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
645
709
|
headerParameters['Content-Type'] = 'application/json';
|
|
646
710
|
if (this.configuration && this.configuration.accessToken) {
|
|
647
711
|
// oauth required
|
|
648
|
-
|
|
712
|
+
const token = this.configuration.accessToken;
|
|
713
|
+
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]);
|
|
714
|
+
if (tokenString) {
|
|
715
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
716
|
+
}
|
|
649
717
|
}
|
|
650
718
|
const response = yield this.request({
|
|
651
719
|
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))),
|
|
@@ -681,7 +749,11 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
681
749
|
headerParameters['Content-Type'] = 'application/json';
|
|
682
750
|
if (this.configuration && this.configuration.accessToken) {
|
|
683
751
|
// oauth required
|
|
684
|
-
|
|
752
|
+
const token = this.configuration.accessToken;
|
|
753
|
+
const tokenString = yield token("OAuth2", ["account:organization"]);
|
|
754
|
+
if (tokenString) {
|
|
755
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
756
|
+
}
|
|
685
757
|
}
|
|
686
758
|
const response = yield this.request({
|
|
687
759
|
path: `/organizations/{uuid}/move`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 3.7.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 3.7.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,7 +45,11 @@ class PermissionApi extends runtime.BaseAPI {
|
|
|
45
45
|
headerParameters['Content-Type'] = 'application/json';
|
|
46
46
|
if (this.configuration && this.configuration.accessToken) {
|
|
47
47
|
// oauth required
|
|
48
|
-
|
|
48
|
+
const token = this.configuration.accessToken;
|
|
49
|
+
const tokenString = yield token("OAuth2", ["account:permission"]);
|
|
50
|
+
if (tokenString) {
|
|
51
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
const response = yield this.request({
|
|
51
55
|
path: `/permissions/{code}`.replace(`{${"code"}}`, encodeURIComponent(String(requestParameters.code))),
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 3.7.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 3.7.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,7 +41,11 @@ class RoleApi extends runtime.BaseAPI {
|
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
if (this.configuration && this.configuration.accessToken) {
|
|
43
43
|
// oauth required
|
|
44
|
-
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("OAuth2", ["account:role"]);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/roles/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 3.7.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 3.7.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -47,7 +47,11 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
47
47
|
const headerParameters = {};
|
|
48
48
|
if (this.configuration && this.configuration.accessToken) {
|
|
49
49
|
// oauth required
|
|
50
|
-
|
|
50
|
+
const token = this.configuration.accessToken;
|
|
51
|
+
const tokenString = yield token("OAuth2", ["account:serviceAccount", "account:roleAttribution"]);
|
|
52
|
+
if (tokenString) {
|
|
53
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
54
|
+
}
|
|
51
55
|
}
|
|
52
56
|
const response = yield this.request({
|
|
53
57
|
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))),
|
|
@@ -82,7 +86,11 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
82
86
|
headerParameters['Content-Type'] = 'application/json';
|
|
83
87
|
if (this.configuration && this.configuration.accessToken) {
|
|
84
88
|
// oauth required
|
|
85
|
-
|
|
89
|
+
const token = this.configuration.accessToken;
|
|
90
|
+
const tokenString = yield token("OAuth2", ["account:serviceAccount"]);
|
|
91
|
+
if (tokenString) {
|
|
92
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
93
|
+
}
|
|
86
94
|
}
|
|
87
95
|
const response = yield this.request({
|
|
88
96
|
path: `/serviceAccounts/{uuid}/permissions/apply`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -116,7 +124,11 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
116
124
|
headerParameters['Content-Type'] = 'application/json';
|
|
117
125
|
if (this.configuration && this.configuration.accessToken) {
|
|
118
126
|
// oauth required
|
|
119
|
-
|
|
127
|
+
const token = this.configuration.accessToken;
|
|
128
|
+
const tokenString = yield token("OAuth2", ["account:serviceAccount"]);
|
|
129
|
+
if (tokenString) {
|
|
130
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
131
|
+
}
|
|
120
132
|
}
|
|
121
133
|
const response = yield this.request({
|
|
122
134
|
path: `/serviceAccounts`,
|
|
@@ -155,7 +167,11 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
155
167
|
const headerParameters = {};
|
|
156
168
|
if (this.configuration && this.configuration.accessToken) {
|
|
157
169
|
// oauth required
|
|
158
|
-
|
|
170
|
+
const token = this.configuration.accessToken;
|
|
171
|
+
const tokenString = yield token("OAuth2", ["account:serviceAccount", "account:roleAttribution"]);
|
|
172
|
+
if (tokenString) {
|
|
173
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
174
|
+
}
|
|
159
175
|
}
|
|
160
176
|
const response = yield this.request({
|
|
161
177
|
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))),
|
|
@@ -186,7 +202,11 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
186
202
|
const headerParameters = {};
|
|
187
203
|
if (this.configuration && this.configuration.accessToken) {
|
|
188
204
|
// oauth required
|
|
189
|
-
|
|
205
|
+
const token = this.configuration.accessToken;
|
|
206
|
+
const tokenString = yield token("OAuth2", ["account:serviceAccount"]);
|
|
207
|
+
if (tokenString) {
|
|
208
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
209
|
+
}
|
|
190
210
|
}
|
|
191
211
|
const response = yield this.request({
|
|
192
212
|
path: `/serviceAccounts/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -218,7 +238,11 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
218
238
|
const headerParameters = {};
|
|
219
239
|
if (this.configuration && this.configuration.accessToken) {
|
|
220
240
|
// oauth required
|
|
221
|
-
|
|
241
|
+
const token = this.configuration.accessToken;
|
|
242
|
+
const tokenString = yield token("OAuth2", ["account:serviceAccount", "account:roleAttribution"]);
|
|
243
|
+
if (tokenString) {
|
|
244
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
245
|
+
}
|
|
222
246
|
}
|
|
223
247
|
const response = yield this.request({
|
|
224
248
|
path: `/serviceAccounts/{uuid}/roleAttributions`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -250,7 +274,11 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
250
274
|
const headerParameters = {};
|
|
251
275
|
if (this.configuration && this.configuration.accessToken) {
|
|
252
276
|
// oauth required
|
|
253
|
-
|
|
277
|
+
const token = this.configuration.accessToken;
|
|
278
|
+
const tokenString = yield token("OAuth2", ["account:serviceAccount"]);
|
|
279
|
+
if (tokenString) {
|
|
280
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
281
|
+
}
|
|
254
282
|
}
|
|
255
283
|
const response = yield this.request({
|
|
256
284
|
path: `/serviceAccounts`,
|
|
@@ -286,7 +314,11 @@ class ServiceAccountApi extends runtime.BaseAPI {
|
|
|
286
314
|
headerParameters['Content-Type'] = 'application/json';
|
|
287
315
|
if (this.configuration && this.configuration.accessToken) {
|
|
288
316
|
// oauth required
|
|
289
|
-
|
|
317
|
+
const token = this.configuration.accessToken;
|
|
318
|
+
const tokenString = yield token("OAuth2", ["account:serviceAccount"]);
|
|
319
|
+
if (tokenString) {
|
|
320
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
321
|
+
}
|
|
290
322
|
}
|
|
291
323
|
const response = yield this.request({
|
|
292
324
|
path: `/serviceAccounts/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 3.7.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|