@drttix/drt-sdk 0.6.15 → 0.7.1

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '',
6
- VERSION: '20260324.1',
6
+ VERSION: '20260327.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -49,4 +49,12 @@ export declare class AccountService {
49
49
  * @throws ApiError
50
50
  */
51
51
  static renewPolicy(xStudioId: string, policyId: string): CancelablePromise<SuccessResponse>;
52
+ /**
53
+ * Clear user permissions cache
54
+ * To clear the cached permissions for a specific studio login
55
+ * @param studioLoginId The studio login ID to clear cache for
56
+ * @returns SuccessResponse Cache cleared successfully
57
+ * @throws ApiError
58
+ */
59
+ static clearPermissionsCache(studioLoginId: string): CancelablePromise<SuccessResponse>;
52
60
  }
@@ -98,5 +98,21 @@ class AccountService {
98
98
  },
99
99
  });
100
100
  }
101
+ /**
102
+ * Clear user permissions cache
103
+ * To clear the cached permissions for a specific studio login
104
+ * @param studioLoginId The studio login ID to clear cache for
105
+ * @returns SuccessResponse Cache cleared successfully
106
+ * @throws ApiError
107
+ */
108
+ static clearPermissionsCache(studioLoginId) {
109
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
110
+ method: 'POST',
111
+ url: '/account/cache',
112
+ query: {
113
+ 'studio_login_id': studioLoginId,
114
+ },
115
+ });
116
+ }
101
117
  }
102
118
  exports.AccountService = AccountService;
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: '',
3
- VERSION: '20260324.1',
3
+ VERSION: '20260327.1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -49,4 +49,12 @@ export declare class AccountService {
49
49
  * @throws ApiError
50
50
  */
51
51
  static renewPolicy(xStudioId: string, policyId: string): CancelablePromise<SuccessResponse>;
52
+ /**
53
+ * Clear user permissions cache
54
+ * To clear the cached permissions for a specific studio login
55
+ * @param studioLoginId The studio login ID to clear cache for
56
+ * @returns SuccessResponse Cache cleared successfully
57
+ * @throws ApiError
58
+ */
59
+ static clearPermissionsCache(studioLoginId: string): CancelablePromise<SuccessResponse>;
52
60
  }
@@ -95,4 +95,20 @@ export class AccountService {
95
95
  },
96
96
  });
97
97
  }
98
+ /**
99
+ * Clear user permissions cache
100
+ * To clear the cached permissions for a specific studio login
101
+ * @param studioLoginId The studio login ID to clear cache for
102
+ * @returns SuccessResponse Cache cleared successfully
103
+ * @throws ApiError
104
+ */
105
+ static clearPermissionsCache(studioLoginId) {
106
+ return __request(OpenAPI, {
107
+ method: 'POST',
108
+ url: '/account/cache',
109
+ query: {
110
+ 'studio_login_id': studioLoginId,
111
+ },
112
+ });
113
+ }
98
114
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@drttix/drt-sdk",
3
3
  "description": "DRT SDK",
4
- "version": "0.6.15",
4
+ "version": "0.7.1",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: '',
24
- VERSION: '20260324.1',
24
+ VERSION: '20260327.1',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -119,4 +119,22 @@ export class AccountService {
119
119
  },
120
120
  });
121
121
  }
122
+ /**
123
+ * Clear user permissions cache
124
+ * To clear the cached permissions for a specific studio login
125
+ * @param studioLoginId The studio login ID to clear cache for
126
+ * @returns SuccessResponse Cache cleared successfully
127
+ * @throws ApiError
128
+ */
129
+ public static clearPermissionsCache(
130
+ studioLoginId: string,
131
+ ): CancelablePromise<SuccessResponse> {
132
+ return __request(OpenAPI, {
133
+ method: 'POST',
134
+ url: '/account/cache',
135
+ query: {
136
+ 'studio_login_id': studioLoginId,
137
+ },
138
+ });
139
+ }
122
140
  }