@tapis/tapis-typescript-sk 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/.openapi-generator/FILES +16 -6
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -4
  4. package/dist/apis/AdminApi.d.ts +26 -0
  5. package/dist/apis/AdminApi.js +128 -0
  6. package/dist/apis/GeneralApi.d.ts +25 -16
  7. package/dist/apis/GeneralApi.js +72 -23
  8. package/dist/apis/RoleApi.d.ts +99 -76
  9. package/dist/apis/RoleApi.js +540 -340
  10. package/dist/apis/ShareApi.d.ts +110 -0
  11. package/dist/apis/ShareApi.js +469 -0
  12. package/dist/apis/UserApi.d.ts +84 -126
  13. package/dist/apis/UserApi.js +467 -538
  14. package/dist/apis/VaultApi.d.ts +52 -49
  15. package/dist/apis/VaultApi.js +413 -341
  16. package/dist/apis/index.d.ts +2 -0
  17. package/dist/apis/index.js +20 -7
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +17 -6
  20. package/dist/models/Options.d.ts +8 -3
  21. package/dist/models/Options.js +23 -15
  22. package/dist/models/ReqAddChildRole.d.ts +11 -6
  23. package/dist/models/ReqAddChildRole.js +33 -19
  24. package/dist/models/ReqAddRolePermission.d.ts +18 -6
  25. package/dist/models/ReqAddRolePermission.js +36 -19
  26. package/dist/models/ReqCreateRole.d.ts +18 -6
  27. package/dist/models/ReqCreateRole.js +36 -19
  28. package/dist/models/ReqGrantRole.d.ts +51 -0
  29. package/dist/models/ReqGrantRole.js +62 -0
  30. package/dist/models/ReqGrantRoleWithPermission.d.ts +57 -0
  31. package/dist/models/ReqGrantRoleWithPermission.js +66 -0
  32. package/dist/models/ReqGrantUserPermission.d.ts +11 -6
  33. package/dist/models/ReqGrantUserPermission.js +33 -19
  34. package/dist/models/ReqPreviewPathPrefix.d.ts +19 -7
  35. package/dist/models/ReqPreviewPathPrefix.js +46 -27
  36. package/dist/models/ReqRemoveChildRole.d.ts +11 -6
  37. package/dist/models/ReqRemoveChildRole.js +33 -19
  38. package/dist/models/ReqRemovePermissionFromAllRoles.d.ts +38 -0
  39. package/dist/models/ReqRemovePermissionFromAllRoles.js +55 -0
  40. package/dist/models/ReqRemoveRolePermission.d.ts +18 -6
  41. package/dist/models/ReqRemoveRolePermission.js +36 -19
  42. package/dist/models/ReqReplacePathPrefix.d.ts +19 -7
  43. package/dist/models/ReqReplacePathPrefix.js +46 -27
  44. package/dist/models/ReqRevokeRole.d.ts +51 -0
  45. package/dist/models/ReqRevokeRole.js +62 -0
  46. package/dist/models/ReqRevokeUserPermission.d.ts +11 -6
  47. package/dist/models/ReqRevokeUserPermission.js +33 -19
  48. package/dist/models/ReqRolePermits.d.ts +45 -0
  49. package/dist/models/ReqRolePermits.js +60 -0
  50. package/dist/models/ReqShareResource.d.ts +68 -0
  51. package/dist/models/ReqShareResource.js +73 -0
  52. package/dist/models/ReqUpdateRoleDescription.d.ts +17 -5
  53. package/dist/models/ReqUpdateRoleDescription.js +32 -17
  54. package/dist/models/ReqUpdateRoleName.d.ts +17 -5
  55. package/dist/models/ReqUpdateRoleName.js +32 -17
  56. package/dist/models/ReqUpdateRoleOwner.d.ts +17 -5
  57. package/dist/models/ReqUpdateRoleOwner.js +34 -19
  58. package/dist/models/ReqUserHasRole.d.ts +18 -6
  59. package/dist/models/ReqUserHasRole.js +38 -21
  60. package/dist/models/ReqUserHasRoleMulti.d.ts +11 -6
  61. package/dist/models/ReqUserHasRoleMulti.js +35 -21
  62. package/dist/models/ReqUserIsAdmin.d.ts +10 -5
  63. package/dist/models/ReqUserIsAdmin.js +29 -17
  64. package/dist/models/ReqUserIsPermitted.d.ts +11 -6
  65. package/dist/models/ReqUserIsPermitted.js +35 -21
  66. package/dist/models/ReqUserIsPermittedMulti.d.ts +11 -6
  67. package/dist/models/ReqUserIsPermittedMulti.js +35 -21
  68. package/dist/models/ReqValidatePwd.d.ts +44 -0
  69. package/dist/models/ReqValidatePwd.js +59 -0
  70. package/dist/models/ReqVersions.d.ts +11 -6
  71. package/dist/models/ReqVersions.js +33 -19
  72. package/dist/models/ReqWriteSecret.d.ts +12 -7
  73. package/dist/models/ReqWriteSecret.js +36 -22
  74. package/dist/models/RespAuthorized.d.ts +27 -4
  75. package/dist/models/RespAuthorized.js +36 -22
  76. package/dist/models/RespBasic.d.ts +26 -3
  77. package/dist/models/RespBasic.js +35 -21
  78. package/dist/models/RespBoolean.d.ts +69 -0
  79. package/dist/models/RespBoolean.js +62 -0
  80. package/dist/models/RespChangeCount.d.ts +27 -4
  81. package/dist/models/RespChangeCount.js +36 -22
  82. package/dist/models/RespName.d.ts +27 -4
  83. package/dist/models/RespName.js +36 -22
  84. package/dist/models/RespNameArray.d.ts +27 -4
  85. package/dist/models/RespNameArray.js +36 -22
  86. package/dist/models/RespPathPrefixes.d.ts +27 -4
  87. package/dist/models/RespPathPrefixes.js +36 -22
  88. package/dist/models/RespProbe.d.ts +27 -4
  89. package/dist/models/RespProbe.js +36 -22
  90. package/dist/models/RespResourceUrl.d.ts +27 -4
  91. package/dist/models/RespResourceUrl.js +36 -22
  92. package/dist/models/RespRole.d.ts +27 -4
  93. package/dist/models/RespRole.js +36 -22
  94. package/dist/models/RespSecret.d.ts +27 -4
  95. package/dist/models/RespSecret.js +36 -22
  96. package/dist/models/RespSecretList.d.ts +27 -4
  97. package/dist/models/RespSecretList.js +36 -22
  98. package/dist/models/RespSecretMeta.d.ts +27 -4
  99. package/dist/models/RespSecretMeta.js +36 -22
  100. package/dist/models/RespSecretVersionMetadata.d.ts +27 -4
  101. package/dist/models/RespSecretVersionMetadata.js +36 -22
  102. package/dist/models/RespShare.d.ts +69 -0
  103. package/dist/models/RespShare.js +62 -0
  104. package/dist/models/RespShareList.d.ts +69 -0
  105. package/dist/models/RespShareList.js +62 -0
  106. package/dist/models/RespVersions.d.ts +26 -3
  107. package/dist/models/RespVersions.js +35 -21
  108. package/dist/models/ResultAuthorized.d.ts +8 -3
  109. package/dist/models/ResultAuthorized.js +23 -15
  110. package/dist/models/ResultBoolean.d.ts +32 -0
  111. package/dist/models/ResultBoolean.js +49 -0
  112. package/dist/models/ResultChangeCount.d.ts +8 -3
  113. package/dist/models/ResultChangeCount.js +23 -15
  114. package/dist/models/ResultName.d.ts +8 -3
  115. package/dist/models/ResultName.js +23 -15
  116. package/dist/models/ResultNameArray.d.ts +8 -3
  117. package/dist/models/ResultNameArray.js +23 -15
  118. package/dist/models/ResultResourceUrl.d.ts +8 -3
  119. package/dist/models/ResultResourceUrl.js +23 -15
  120. package/dist/models/RoleTypeEnum.d.ts +28 -0
  121. package/dist/models/RoleTypeEnum.js +54 -0
  122. package/dist/models/SkProbe.d.ts +8 -21
  123. package/dist/models/SkProbe.js +23 -21
  124. package/dist/models/SkRole.d.ts +19 -7
  125. package/dist/models/SkRole.js +48 -37
  126. package/dist/models/SkSecret.d.ts +9 -4
  127. package/dist/models/SkSecret.js +26 -18
  128. package/dist/models/SkSecretList.d.ts +8 -3
  129. package/dist/models/SkSecretList.js +25 -17
  130. package/dist/models/SkSecretMetadata.d.ts +8 -3
  131. package/dist/models/SkSecretMetadata.js +29 -21
  132. package/dist/models/SkSecretVersion.d.ts +8 -3
  133. package/dist/models/SkSecretVersion.js +29 -21
  134. package/dist/models/SkSecretVersionMetadata.d.ts +9 -4
  135. package/dist/models/SkSecretVersionMetadata.js +34 -26
  136. package/dist/models/SkShare.d.ts +92 -0
  137. package/dist/models/SkShare.js +69 -0
  138. package/dist/models/SkShareList.d.ts +33 -0
  139. package/dist/models/SkShareList.js +50 -0
  140. package/dist/models/Transformation.d.ts +8 -3
  141. package/dist/models/Transformation.js +27 -19
  142. package/dist/models/index.d.ts +14 -6
  143. package/dist/models/index.js +75 -56
  144. package/dist/runtime.d.ts +80 -38
  145. package/dist/runtime.js +313 -171
  146. package/package.json +6 -2
  147. package/src/apis/AdminApi.ts +63 -0
  148. package/src/apis/GeneralApi.ts +48 -24
  149. package/src/apis/RoleApi.ts +374 -220
  150. package/src/apis/ShareApi.ts +418 -0
  151. package/src/apis/UserApi.ts +258 -383
  152. package/src/apis/VaultApi.ts +347 -275
  153. package/src/apis/index.ts +2 -0
  154. package/src/index.ts +2 -2
  155. package/src/models/Options.ts +21 -12
  156. package/src/models/ReqAddChildRole.ts +31 -19
  157. package/src/models/ReqAddRolePermission.ts +49 -19
  158. package/src/models/ReqCreateRole.ts +49 -19
  159. package/src/models/ReqGrantRole.ts +102 -0
  160. package/src/models/ReqGrantRoleWithPermission.ts +111 -0
  161. package/src/models/ReqGrantUserPermission.ts +31 -19
  162. package/src/models/ReqPreviewPathPrefix.ts +59 -28
  163. package/src/models/ReqRemoveChildRole.ts +31 -19
  164. package/src/models/ReqRemovePermissionFromAllRoles.ts +75 -0
  165. package/src/models/ReqRemoveRolePermission.ts +49 -19
  166. package/src/models/ReqReplacePathPrefix.ts +59 -28
  167. package/src/models/ReqRevokeRole.ts +102 -0
  168. package/src/models/ReqRevokeUserPermission.ts +31 -19
  169. package/src/models/ReqRolePermits.ts +94 -0
  170. package/src/models/ReqShareResource.ts +119 -0
  171. package/src/models/ReqUpdateRoleDescription.ts +45 -16
  172. package/src/models/ReqUpdateRoleName.ts +45 -16
  173. package/src/models/ReqUpdateRoleOwner.ts +47 -18
  174. package/src/models/ReqUserHasRole.ts +51 -21
  175. package/src/models/ReqUserHasRoleMulti.ts +33 -21
  176. package/src/models/ReqUserIsAdmin.ts +27 -16
  177. package/src/models/ReqUserIsPermitted.ts +33 -21
  178. package/src/models/ReqUserIsPermittedMulti.ts +33 -21
  179. package/src/models/ReqValidatePwd.ts +84 -0
  180. package/src/models/ReqVersions.ts +31 -19
  181. package/src/models/ReqWriteSecret.ts +36 -23
  182. package/src/models/RespAuthorized.ts +54 -20
  183. package/src/models/RespBasic.ts +51 -18
  184. package/src/models/RespBoolean.ts +121 -0
  185. package/src/models/RespChangeCount.ts +54 -20
  186. package/src/models/RespName.ts +54 -20
  187. package/src/models/RespNameArray.ts +54 -20
  188. package/src/models/RespPathPrefixes.ts +54 -20
  189. package/src/models/RespProbe.ts +54 -20
  190. package/src/models/RespResourceUrl.ts +54 -20
  191. package/src/models/RespRole.ts +54 -20
  192. package/src/models/RespSecret.ts +54 -20
  193. package/src/models/RespSecretList.ts +54 -20
  194. package/src/models/RespSecretMeta.ts +54 -20
  195. package/src/models/RespSecretVersionMetadata.ts +54 -20
  196. package/src/models/RespShare.ts +121 -0
  197. package/src/models/RespShareList.ts +121 -0
  198. package/src/models/RespVersions.ts +51 -18
  199. package/src/models/ResultAuthorized.ts +21 -12
  200. package/src/models/ResultBoolean.ts +65 -0
  201. package/src/models/ResultChangeCount.ts +21 -12
  202. package/src/models/ResultName.ts +21 -12
  203. package/src/models/ResultNameArray.ts +21 -12
  204. package/src/models/ResultResourceUrl.ts +21 -12
  205. package/src/models/RoleTypeEnum.ts +56 -0
  206. package/src/models/SkProbe.ts +21 -36
  207. package/src/models/SkRole.ts +65 -38
  208. package/src/models/SkSecret.ts +26 -16
  209. package/src/models/SkSecretList.ts +23 -14
  210. package/src/models/SkSecretMetadata.ts +27 -18
  211. package/src/models/SkSecretVersion.ts +27 -18
  212. package/src/models/SkSecretVersionMetadata.ts +34 -24
  213. package/src/models/SkShare.ts +145 -0
  214. package/src/models/SkShareList.ts +73 -0
  215. package/src/models/Transformation.ts +25 -16
  216. package/src/models/index.ts +14 -6
  217. package/src/runtime.ts +219 -108
  218. package/dist/models/ReqGrantAdminRole.d.ts +0 -33
  219. package/dist/models/ReqGrantAdminRole.js +0 -43
  220. package/dist/models/ReqGrantUserRole.d.ts +0 -39
  221. package/dist/models/ReqGrantUserRole.js +0 -45
  222. package/dist/models/ReqGrantUserRoleWithPermission.d.ts +0 -45
  223. package/dist/models/ReqGrantUserRoleWithPermission.js +0 -47
  224. package/dist/models/ReqRevokeAdminRole.d.ts +0 -33
  225. package/dist/models/ReqRevokeAdminRole.js +0 -43
  226. package/dist/models/ReqRevokeUserRole.d.ts +0 -39
  227. package/dist/models/ReqRevokeUserRole.js +0 -45
  228. package/dist/models/ReqValidateServicePwd.d.ts +0 -39
  229. package/dist/models/ReqValidateServicePwd.js +0 -45
  230. package/src/models/ReqGrantAdminRole.ts +0 -64
  231. package/src/models/ReqGrantUserRole.ts +0 -72
  232. package/src/models/ReqGrantUserRoleWithPermission.ts +0 -80
  233. package/src/models/ReqRevokeAdminRole.ts +0 -64
  234. package/src/models/ReqRevokeUserRole.ts +0 -72
  235. package/src/models/ReqValidateServicePwd.ts +0 -72
@@ -3,8 +3,10 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  package.json
6
+ src/apis/AdminApi.ts
6
7
  src/apis/GeneralApi.ts
7
8
  src/apis/RoleApi.ts
9
+ src/apis/ShareApi.ts
8
10
  src/apis/UserApi.ts
9
11
  src/apis/VaultApi.ts
10
12
  src/apis/index.ts
@@ -13,17 +15,18 @@ src/models/Options.ts
13
15
  src/models/ReqAddChildRole.ts
14
16
  src/models/ReqAddRolePermission.ts
15
17
  src/models/ReqCreateRole.ts
16
- src/models/ReqGrantAdminRole.ts
18
+ src/models/ReqGrantRole.ts
19
+ src/models/ReqGrantRoleWithPermission.ts
17
20
  src/models/ReqGrantUserPermission.ts
18
- src/models/ReqGrantUserRole.ts
19
- src/models/ReqGrantUserRoleWithPermission.ts
20
21
  src/models/ReqPreviewPathPrefix.ts
21
22
  src/models/ReqRemoveChildRole.ts
23
+ src/models/ReqRemovePermissionFromAllRoles.ts
22
24
  src/models/ReqRemoveRolePermission.ts
23
25
  src/models/ReqReplacePathPrefix.ts
24
- src/models/ReqRevokeAdminRole.ts
26
+ src/models/ReqRevokeRole.ts
25
27
  src/models/ReqRevokeUserPermission.ts
26
- src/models/ReqRevokeUserRole.ts
28
+ src/models/ReqRolePermits.ts
29
+ src/models/ReqShareResource.ts
27
30
  src/models/ReqUpdateRoleDescription.ts
28
31
  src/models/ReqUpdateRoleName.ts
29
32
  src/models/ReqUpdateRoleOwner.ts
@@ -32,11 +35,12 @@ src/models/ReqUserHasRoleMulti.ts
32
35
  src/models/ReqUserIsAdmin.ts
33
36
  src/models/ReqUserIsPermitted.ts
34
37
  src/models/ReqUserIsPermittedMulti.ts
35
- src/models/ReqValidateServicePwd.ts
38
+ src/models/ReqValidatePwd.ts
36
39
  src/models/ReqVersions.ts
37
40
  src/models/ReqWriteSecret.ts
38
41
  src/models/RespAuthorized.ts
39
42
  src/models/RespBasic.ts
43
+ src/models/RespBoolean.ts
40
44
  src/models/RespChangeCount.ts
41
45
  src/models/RespName.ts
42
46
  src/models/RespNameArray.ts
@@ -48,12 +52,16 @@ src/models/RespSecret.ts
48
52
  src/models/RespSecretList.ts
49
53
  src/models/RespSecretMeta.ts
50
54
  src/models/RespSecretVersionMetadata.ts
55
+ src/models/RespShare.ts
56
+ src/models/RespShareList.ts
51
57
  src/models/RespVersions.ts
52
58
  src/models/ResultAuthorized.ts
59
+ src/models/ResultBoolean.ts
53
60
  src/models/ResultChangeCount.ts
54
61
  src/models/ResultName.ts
55
62
  src/models/ResultNameArray.ts
56
63
  src/models/ResultResourceUrl.ts
64
+ src/models/RoleTypeEnum.ts
57
65
  src/models/SkProbe.ts
58
66
  src/models/SkRole.ts
59
67
  src/models/SkSecret.ts
@@ -61,6 +69,8 @@ src/models/SkSecretList.ts
61
69
  src/models/SkSecretMetadata.ts
62
70
  src/models/SkSecretVersion.ts
63
71
  src/models/SkSecretVersionMetadata.ts
72
+ src/models/SkShare.ts
73
+ src/models/SkShareList.ts
64
74
  src/models/Transformation.ts
65
75
  src/models/index.ts
66
76
  src/runtime.ts
@@ -1 +1 @@
1
- 5.3.0
1
+ 7.10.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @tapis/tapis-typescript-sk@0.0.2
1
+ ## @tapis/tapis-typescript-sk@0.0.3
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
 
@@ -15,7 +15,7 @@ Module system
15
15
  * CommonJS
16
16
  * ES6 module system
17
17
 
18
- It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
19
 
20
20
  ### Building
21
21
 
@@ -27,7 +27,7 @@ npm run build
27
27
 
28
28
  ### Publishing
29
29
 
30
- First build the package then run ```npm publish```
30
+ First build the package then run `npm publish`
31
31
 
32
32
  ### Consuming
33
33
 
@@ -36,10 +36,11 @@ 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 @tapis/tapis-typescript-sk@0.0.2 --save
39
+ npm install @tapis/tapis-typescript-sk@0.0.3 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
43
43
 
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Tapis Security API
3
+ * The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
4
+ *
5
+ * The version of the OpenAPI document: 1.8.2
6
+ * Contact: cicsupport@tacc.utexas.edu
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { RespAuthorized } from '../models/index';
14
+ /**
15
+ *
16
+ */
17
+ export declare class AdminApi extends runtime.BaseAPI {
18
+ /**
19
+ * Request to reinitialize tenants for the site. This should be called if tenants are added to the site. When called any site initialization will be run again. At present this is mainly just asking for a fresh list of the tenants from the tenant service, and reprocessing each tenant (this might include role creation or assignment for tenant admins). There is code that prevents running this \"too frequently\". The current default value is 10 minutes, meaning that if you make this request and try to do it again before 10 minutes elapses, the request is ignored. Only site admins can make this request.
20
+ */
21
+ reinitializeSiteRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespAuthorized>>;
22
+ /**
23
+ * Request to reinitialize tenants for the site. This should be called if tenants are added to the site. When called any site initialization will be run again. At present this is mainly just asking for a fresh list of the tenants from the tenant service, and reprocessing each tenant (this might include role creation or assignment for tenant admins). There is code that prevents running this \"too frequently\". The current default value is 10 minutes, meaning that if you make this request and try to do it again before 10 minutes elapses, the request is ignored. Only site admins can make this request.
24
+ */
25
+ reinitializeSite(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespAuthorized>;
26
+ }
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tapis Security API
6
+ * The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
7
+ *
8
+ * The version of the OpenAPI document: 1.8.2
9
+ * Contact: cicsupport@tacc.utexas.edu
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.AdminApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var AdminApi = /** @class */ (function (_super) {
74
+ __extends(AdminApi, _super);
75
+ function AdminApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Request to reinitialize tenants for the site. This should be called if tenants are added to the site. When called any site initialization will be run again. At present this is mainly just asking for a fresh list of the tenants from the tenant service, and reprocessing each tenant (this might include role creation or assignment for tenant admins). There is code that prevents running this \"too frequently\". The current default value is 10 minutes, meaning that if you make this request and try to do it again before 10 minutes elapses, the request is ignored. Only site admins can make this request.
80
+ */
81
+ AdminApi.prototype.reinitializeSiteRaw = function (initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, _a, _b, response;
84
+ return __generator(this, function (_c) {
85
+ switch (_c.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ headerParameters = {};
89
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
90
+ _a = headerParameters;
91
+ _b = "X-Tapis-Token";
92
+ return [4 /*yield*/, this.configuration.apiKey("X-Tapis-Token")];
93
+ case 1:
94
+ _a[_b] = _c.sent(); // TapisJWT authentication
95
+ _c.label = 2;
96
+ case 2: return [4 /*yield*/, this.request({
97
+ path: "/security/admin/reinitialize",
98
+ method: 'GET',
99
+ headers: headerParameters,
100
+ query: queryParameters,
101
+ }, initOverrides)];
102
+ case 3:
103
+ response = _c.sent();
104
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RespAuthorizedFromJSON)(jsonValue); })];
105
+ }
106
+ });
107
+ });
108
+ };
109
+ /**
110
+ * Request to reinitialize tenants for the site. This should be called if tenants are added to the site. When called any site initialization will be run again. At present this is mainly just asking for a fresh list of the tenants from the tenant service, and reprocessing each tenant (this might include role creation or assignment for tenant admins). There is code that prevents running this \"too frequently\". The current default value is 10 minutes, meaning that if you make this request and try to do it again before 10 minutes elapses, the request is ignored. Only site admins can make this request.
111
+ */
112
+ AdminApi.prototype.reinitializeSite = function (initOverrides) {
113
+ return __awaiter(this, void 0, void 0, function () {
114
+ var response;
115
+ return __generator(this, function (_a) {
116
+ switch (_a.label) {
117
+ case 0: return [4 /*yield*/, this.reinitializeSiteRaw(initOverrides)];
118
+ case 1:
119
+ response = _a.sent();
120
+ return [4 /*yield*/, response.value()];
121
+ case 2: return [2 /*return*/, _a.sent()];
122
+ }
123
+ });
124
+ });
125
+ };
126
+ return AdminApi;
127
+ }(runtime.BaseAPI));
128
+ exports.AdminApi = AdminApi;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Tapis Security API
3
- * The Tapis Security API provides access to the Tapis Security Kernel authorization and secrets facilities.
3
+ * The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
4
4
  *
5
- * The version of the OpenAPI document: 0.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  * Contact: cicsupport@tacc.utexas.edu
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,36 +10,45 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { RespBasic, RespProbe } from '../models';
14
- export interface SayHelloRequest {
15
- pretty?: boolean;
16
- }
13
+ import type { RespBasic, RespProbe } from '../models/index';
17
14
  /**
18
15
  *
19
16
  */
20
17
  export declare class GeneralApi extends runtime.BaseAPI {
21
18
  /**
22
- * Lightwieght health check for liveness. No authorization required.
19
+ * Lightweight health check for liveness. No authorization required.
20
+ */
21
+ checkHealthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespProbe>>;
22
+ /**
23
+ * Lightweight health check for liveness. No authorization required.
24
+ */
25
+ checkHealth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespProbe>;
26
+ /**
27
+ * Lightweight readiness check. No authorization required.
28
+ * @deprecated
23
29
  */
24
- checkHealthRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespProbe>>;
30
+ readyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespProbe>>;
25
31
  /**
26
- * Lightwieght health check for liveness. No authorization required.
32
+ * Lightweight readiness check. No authorization required.
33
+ * @deprecated
27
34
  */
28
- checkHealth(initOverrides?: RequestInit): Promise<RespProbe>;
35
+ ready(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespProbe>;
29
36
  /**
30
- * Lightwieght readiness check. No authorization required.
37
+ * Lightweight readiness check. No authorization required.
31
38
  */
32
- readyRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespProbe>>;
39
+ readycheckRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespProbe>>;
33
40
  /**
34
- * Lightwieght readiness check. No authorization required.
41
+ * Lightweight readiness check. No authorization required.
35
42
  */
36
- ready(initOverrides?: RequestInit): Promise<RespProbe>;
43
+ readycheck(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespProbe>;
37
44
  /**
38
45
  * Logged connectivity test. No authorization required.
46
+ * @deprecated
39
47
  */
40
- sayHelloRaw(requestParameters: SayHelloRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>>;
48
+ sayHelloRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespBasic>>;
41
49
  /**
42
50
  * Logged connectivity test. No authorization required.
51
+ * @deprecated
43
52
  */
44
- sayHello(requestParameters: SayHelloRequest, initOverrides?: RequestInit): Promise<RespBasic>;
53
+ sayHello(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBasic>;
45
54
  }
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Tapis Security API
6
- * The Tapis Security API provides access to the Tapis Security Kernel authorization and secrets facilities.
6
+ * The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
7
7
  *
8
- * The version of the OpenAPI document: 0.1
8
+ * The version of the OpenAPI document: 1.8.2
9
9
  * Contact: cicsupport@tacc.utexas.edu
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,30 +13,36 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = Object.setPrototypeOf ||
17
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
19
22
  return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
20
25
  extendStatics(d, b);
21
26
  function __() { this.constructor = d; }
22
27
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23
28
  };
24
29
  })();
25
30
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26
32
  return new (P || (P = Promise))(function (resolve, reject) {
27
33
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
34
  function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30
36
  step((generator = generator.apply(thisArg, _arguments || [])).next());
31
37
  });
32
38
  };
33
39
  var __generator = (this && this.__generator) || function (thisArg, body) {
34
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
35
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
42
  function verb(n) { return function (v) { return step([n, v]); }; }
37
43
  function step(op) {
38
44
  if (f) throw new TypeError("Generator is already executing.");
39
- while (_) try {
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
40
46
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
41
47
  if (y = 0, t) op = [op[0] & 2, t.value];
42
48
  switch (op[0]) {
@@ -58,8 +64,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
58
64
  }
59
65
  };
60
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.GeneralApi = void 0;
61
68
  var runtime = require("../runtime");
62
- var models_1 = require("../models");
69
+ var index_1 = require("../models/index");
63
70
  /**
64
71
  *
65
72
  */
@@ -69,7 +76,7 @@ var GeneralApi = /** @class */ (function (_super) {
69
76
  return _super !== null && _super.apply(this, arguments) || this;
70
77
  }
71
78
  /**
72
- * Lightwieght health check for liveness. No authorization required.
79
+ * Lightweight health check for liveness. No authorization required.
73
80
  */
74
81
  GeneralApi.prototype.checkHealthRaw = function (initOverrides) {
75
82
  return __awaiter(this, void 0, void 0, function () {
@@ -87,13 +94,13 @@ var GeneralApi = /** @class */ (function (_super) {
87
94
  }, initOverrides)];
88
95
  case 1:
89
96
  response = _a.sent();
90
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.RespProbeFromJSON(jsonValue); })];
97
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RespProbeFromJSON)(jsonValue); })];
91
98
  }
92
99
  });
93
100
  });
94
101
  };
95
102
  /**
96
- * Lightwieght health check for liveness. No authorization required.
103
+ * Lightweight health check for liveness. No authorization required.
97
104
  */
98
105
  GeneralApi.prototype.checkHealth = function (initOverrides) {
99
106
  return __awaiter(this, void 0, void 0, function () {
@@ -110,7 +117,8 @@ var GeneralApi = /** @class */ (function (_super) {
110
117
  });
111
118
  };
112
119
  /**
113
- * Lightwieght readiness check. No authorization required.
120
+ * Lightweight readiness check. No authorization required.
121
+ * @deprecated
114
122
  */
115
123
  GeneralApi.prototype.readyRaw = function (initOverrides) {
116
124
  return __awaiter(this, void 0, void 0, function () {
@@ -128,13 +136,14 @@ var GeneralApi = /** @class */ (function (_super) {
128
136
  }, initOverrides)];
129
137
  case 1:
130
138
  response = _a.sent();
131
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.RespProbeFromJSON(jsonValue); })];
139
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RespProbeFromJSON)(jsonValue); })];
132
140
  }
133
141
  });
134
142
  });
135
143
  };
136
144
  /**
137
- * Lightwieght readiness check. No authorization required.
145
+ * Lightweight readiness check. No authorization required.
146
+ * @deprecated
138
147
  */
139
148
  GeneralApi.prototype.ready = function (initOverrides) {
140
149
  return __awaiter(this, void 0, void 0, function () {
@@ -150,19 +159,58 @@ var GeneralApi = /** @class */ (function (_super) {
150
159
  });
151
160
  });
152
161
  };
162
+ /**
163
+ * Lightweight readiness check. No authorization required.
164
+ */
165
+ GeneralApi.prototype.readycheckRaw = function (initOverrides) {
166
+ return __awaiter(this, void 0, void 0, function () {
167
+ var queryParameters, headerParameters, response;
168
+ return __generator(this, function (_a) {
169
+ switch (_a.label) {
170
+ case 0:
171
+ queryParameters = {};
172
+ headerParameters = {};
173
+ return [4 /*yield*/, this.request({
174
+ path: "/security/readycheck",
175
+ method: 'GET',
176
+ headers: headerParameters,
177
+ query: queryParameters,
178
+ }, initOverrides)];
179
+ case 1:
180
+ response = _a.sent();
181
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RespProbeFromJSON)(jsonValue); })];
182
+ }
183
+ });
184
+ });
185
+ };
186
+ /**
187
+ * Lightweight readiness check. No authorization required.
188
+ */
189
+ GeneralApi.prototype.readycheck = function (initOverrides) {
190
+ return __awaiter(this, void 0, void 0, function () {
191
+ var response;
192
+ return __generator(this, function (_a) {
193
+ switch (_a.label) {
194
+ case 0: return [4 /*yield*/, this.readycheckRaw(initOverrides)];
195
+ case 1:
196
+ response = _a.sent();
197
+ return [4 /*yield*/, response.value()];
198
+ case 2: return [2 /*return*/, _a.sent()];
199
+ }
200
+ });
201
+ });
202
+ };
153
203
  /**
154
204
  * Logged connectivity test. No authorization required.
205
+ * @deprecated
155
206
  */
156
- GeneralApi.prototype.sayHelloRaw = function (requestParameters, initOverrides) {
207
+ GeneralApi.prototype.sayHelloRaw = function (initOverrides) {
157
208
  return __awaiter(this, void 0, void 0, function () {
158
209
  var queryParameters, headerParameters, response;
159
210
  return __generator(this, function (_a) {
160
211
  switch (_a.label) {
161
212
  case 0:
162
213
  queryParameters = {};
163
- if (requestParameters.pretty !== undefined) {
164
- queryParameters['pretty'] = requestParameters.pretty;
165
- }
166
214
  headerParameters = {};
167
215
  return [4 /*yield*/, this.request({
168
216
  path: "/security/hello",
@@ -172,20 +220,21 @@ var GeneralApi = /** @class */ (function (_super) {
172
220
  }, initOverrides)];
173
221
  case 1:
174
222
  response = _a.sent();
175
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.RespBasicFromJSON(jsonValue); })];
223
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RespBasicFromJSON)(jsonValue); })];
176
224
  }
177
225
  });
178
226
  });
179
227
  };
180
228
  /**
181
229
  * Logged connectivity test. No authorization required.
230
+ * @deprecated
182
231
  */
183
- GeneralApi.prototype.sayHello = function (requestParameters, initOverrides) {
232
+ GeneralApi.prototype.sayHello = function (initOverrides) {
184
233
  return __awaiter(this, void 0, void 0, function () {
185
234
  var response;
186
235
  return __generator(this, function (_a) {
187
236
  switch (_a.label) {
188
- case 0: return [4 /*yield*/, this.sayHelloRaw(requestParameters, initOverrides)];
237
+ case 0: return [4 /*yield*/, this.sayHelloRaw(initOverrides)];
189
238
  case 1:
190
239
  response = _a.sent();
191
240
  return [4 /*yield*/, response.value()];