reach-api-sdk 1.0.141 → 1.0.142

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.
@@ -43327,6 +43327,12 @@ declare class UsersService {
43327
43327
  * @throws ApiError
43328
43328
  */
43329
43329
  getUser(): CancelablePromise<User>;
43330
+ /**
43331
+ * Gets the authenticated user permissions.
43332
+ * @returns UserPermission Success
43333
+ * @throws ApiError
43334
+ */
43335
+ getAuthenticatedUserPermissions(): CancelablePromise<UserPermission>;
43330
43336
  /**
43331
43337
  * Gets the users permissions.
43332
43338
  * @returns UserPermission Success
package/dist/reach-sdk.js CHANGED
@@ -32152,6 +32152,22 @@ const request = (config, options, axiosClient = axios) => {
32152
32152
  }
32153
32153
  });
32154
32154
  }
32155
+ /**
32156
+ * Gets the authenticated user permissions.
32157
+ * @returns UserPermission Success
32158
+ * @throws ApiError
32159
+ */
32160
+ getAuthenticatedUserPermissions() {
32161
+ return this.httpRequest.request({
32162
+ method: "GET",
32163
+ url: "/api/users/permissions",
32164
+ errors: {
32165
+ 400: `Bad Request`,
32166
+ 422: `Client Error`,
32167
+ 500: `Server Error`
32168
+ }
32169
+ });
32170
+ }
32155
32171
  /**
32156
32172
  * Gets the users permissions.
32157
32173
  * @returns UserPermission Success
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.141",
3
+ "version": "1.0.142",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -94460,6 +94460,61 @@ paths:
94460
94460
  text/json:
94461
94461
  schema:
94462
94462
  $ref: '#/components/schemas/ValidationResultModel'
94463
+ /api/users/permissions:
94464
+ get:
94465
+ tags:
94466
+ - Users
94467
+ summary: Gets the authenticated user permissions.
94468
+ operationId: GetAuthenticatedUserPermissions
94469
+ responses:
94470
+ '200':
94471
+ description: Success
94472
+ content:
94473
+ text/plain:
94474
+ schema:
94475
+ $ref: '#/components/schemas/UserPermission'
94476
+ application/json:
94477
+ schema:
94478
+ $ref: '#/components/schemas/UserPermission'
94479
+ text/json:
94480
+ schema:
94481
+ $ref: '#/components/schemas/UserPermission'
94482
+ '400':
94483
+ description: Bad Request
94484
+ content:
94485
+ text/plain:
94486
+ schema:
94487
+ $ref: '#/components/schemas/ReachError'
94488
+ application/json:
94489
+ schema:
94490
+ $ref: '#/components/schemas/ReachError'
94491
+ text/json:
94492
+ schema:
94493
+ $ref: '#/components/schemas/ReachError'
94494
+ '500':
94495
+ description: Server Error
94496
+ content:
94497
+ text/plain:
94498
+ schema:
94499
+ $ref: '#/components/schemas/ReachError'
94500
+ application/json:
94501
+ schema:
94502
+ $ref: '#/components/schemas/ReachError'
94503
+ text/json:
94504
+ schema:
94505
+ $ref: '#/components/schemas/ReachError'
94506
+ '422':
94507
+ description: Client Error
94508
+ content:
94509
+ text/plain:
94510
+ schema:
94511
+ $ref: '#/components/schemas/ValidationResultModel'
94512
+ application/json:
94513
+ schema:
94514
+ $ref: '#/components/schemas/ValidationResultModel'
94515
+ text/json:
94516
+ schema:
94517
+ $ref: '#/components/schemas/ValidationResultModel'
94463
94518
  '/api/users/{userId}/permissions':
94464
94519
  get:
94465
94520
  tags:
@@ -34,6 +34,23 @@ export class UsersService {
34
34
  });
35
35
  }
36
36
 
37
+ /**
38
+ * Gets the authenticated user permissions.
39
+ * @returns UserPermission Success
40
+ * @throws ApiError
41
+ */
42
+ public getAuthenticatedUserPermissions(): CancelablePromise<UserPermission> {
43
+ return this.httpRequest.request({
44
+ method: 'GET',
45
+ url: '/api/users/permissions',
46
+ errors: {
47
+ 400: `Bad Request`,
48
+ 422: `Client Error`,
49
+ 500: `Server Error`,
50
+ },
51
+ });
52
+ }
53
+
37
54
  /**
38
55
  * Gets the users permissions.
39
56
  * @returns UserPermission Success