@tapis/tapis-typescript-sk 0.0.2

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 (189) hide show
  1. package/.openapi-generator/FILES +67 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/GeneralApi.d.ts +45 -0
  6. package/dist/apis/GeneralApi.js +199 -0
  7. package/dist/apis/RoleApi.d.ts +205 -0
  8. package/dist/apis/RoleApi.js +861 -0
  9. package/dist/apis/UserApi.d.ts +276 -0
  10. package/dist/apis/UserApi.js +1166 -0
  11. package/dist/apis/VaultApi.d.ts +195 -0
  12. package/dist/apis/VaultApi.js +740 -0
  13. package/dist/apis/index.d.ts +4 -0
  14. package/dist/apis/index.js +11 -0
  15. package/dist/index.d.ts +3 -0
  16. package/dist/index.js +10 -0
  17. package/dist/models/Options.d.ts +27 -0
  18. package/dist/models/Options.js +41 -0
  19. package/dist/models/ReqAddChildRole.d.ts +39 -0
  20. package/dist/models/ReqAddChildRole.js +45 -0
  21. package/dist/models/ReqAddRolePermission.d.ts +39 -0
  22. package/dist/models/ReqAddRolePermission.js +45 -0
  23. package/dist/models/ReqCreateRole.d.ts +39 -0
  24. package/dist/models/ReqCreateRole.js +45 -0
  25. package/dist/models/ReqGrantAdminRole.d.ts +33 -0
  26. package/dist/models/ReqGrantAdminRole.js +43 -0
  27. package/dist/models/ReqGrantUserPermission.d.ts +39 -0
  28. package/dist/models/ReqGrantUserPermission.js +45 -0
  29. package/dist/models/ReqGrantUserRole.d.ts +39 -0
  30. package/dist/models/ReqGrantUserRole.js +45 -0
  31. package/dist/models/ReqGrantUserRoleWithPermission.d.ts +45 -0
  32. package/dist/models/ReqGrantUserRoleWithPermission.js +47 -0
  33. package/dist/models/ReqPreviewPathPrefix.d.ts +63 -0
  34. package/dist/models/ReqPreviewPathPrefix.js +53 -0
  35. package/dist/models/ReqRemoveChildRole.d.ts +39 -0
  36. package/dist/models/ReqRemoveChildRole.js +45 -0
  37. package/dist/models/ReqRemoveRolePermission.d.ts +39 -0
  38. package/dist/models/ReqRemoveRolePermission.js +45 -0
  39. package/dist/models/ReqReplacePathPrefix.d.ts +63 -0
  40. package/dist/models/ReqReplacePathPrefix.js +53 -0
  41. package/dist/models/ReqRevokeAdminRole.d.ts +33 -0
  42. package/dist/models/ReqRevokeAdminRole.js +43 -0
  43. package/dist/models/ReqRevokeUserPermission.d.ts +39 -0
  44. package/dist/models/ReqRevokeUserPermission.js +45 -0
  45. package/dist/models/ReqRevokeUserRole.d.ts +39 -0
  46. package/dist/models/ReqRevokeUserRole.js +45 -0
  47. package/dist/models/ReqUpdateRoleDescription.d.ts +33 -0
  48. package/dist/models/ReqUpdateRoleDescription.js +43 -0
  49. package/dist/models/ReqUpdateRoleName.d.ts +33 -0
  50. package/dist/models/ReqUpdateRoleName.js +43 -0
  51. package/dist/models/ReqUpdateRoleOwner.d.ts +39 -0
  52. package/dist/models/ReqUpdateRoleOwner.js +45 -0
  53. package/dist/models/ReqUserHasRole.d.ts +45 -0
  54. package/dist/models/ReqUserHasRole.js +47 -0
  55. package/dist/models/ReqUserHasRoleMulti.d.ts +45 -0
  56. package/dist/models/ReqUserHasRoleMulti.js +47 -0
  57. package/dist/models/ReqUserIsAdmin.d.ts +33 -0
  58. package/dist/models/ReqUserIsAdmin.js +43 -0
  59. package/dist/models/ReqUserIsPermitted.d.ts +45 -0
  60. package/dist/models/ReqUserIsPermitted.js +47 -0
  61. package/dist/models/ReqUserIsPermittedMulti.d.ts +45 -0
  62. package/dist/models/ReqUserIsPermittedMulti.js +47 -0
  63. package/dist/models/ReqValidateServicePwd.d.ts +39 -0
  64. package/dist/models/ReqValidateServicePwd.js +45 -0
  65. package/dist/models/ReqVersions.d.ts +39 -0
  66. package/dist/models/ReqVersions.js +45 -0
  67. package/dist/models/ReqWriteSecret.d.ts +48 -0
  68. package/dist/models/ReqWriteSecret.js +48 -0
  69. package/dist/models/RespAuthorized.d.ts +46 -0
  70. package/dist/models/RespAuthorized.js +48 -0
  71. package/dist/models/RespBasic.d.ts +45 -0
  72. package/dist/models/RespBasic.js +47 -0
  73. package/dist/models/RespChangeCount.d.ts +46 -0
  74. package/dist/models/RespChangeCount.js +48 -0
  75. package/dist/models/RespName.d.ts +46 -0
  76. package/dist/models/RespName.js +48 -0
  77. package/dist/models/RespNameArray.d.ts +46 -0
  78. package/dist/models/RespNameArray.js +48 -0
  79. package/dist/models/RespPathPrefixes.d.ts +46 -0
  80. package/dist/models/RespPathPrefixes.js +48 -0
  81. package/dist/models/RespProbe.d.ts +46 -0
  82. package/dist/models/RespProbe.js +48 -0
  83. package/dist/models/RespResourceUrl.d.ts +46 -0
  84. package/dist/models/RespResourceUrl.js +48 -0
  85. package/dist/models/RespRole.d.ts +46 -0
  86. package/dist/models/RespRole.js +48 -0
  87. package/dist/models/RespSecret.d.ts +46 -0
  88. package/dist/models/RespSecret.js +48 -0
  89. package/dist/models/RespSecretList.d.ts +46 -0
  90. package/dist/models/RespSecretList.js +48 -0
  91. package/dist/models/RespSecretMeta.d.ts +46 -0
  92. package/dist/models/RespSecretMeta.js +48 -0
  93. package/dist/models/RespSecretVersionMetadata.d.ts +46 -0
  94. package/dist/models/RespSecretVersionMetadata.js +48 -0
  95. package/dist/models/RespVersions.d.ts +45 -0
  96. package/dist/models/RespVersions.js +47 -0
  97. package/dist/models/ResultAuthorized.d.ts +27 -0
  98. package/dist/models/ResultAuthorized.js +41 -0
  99. package/dist/models/ResultChangeCount.d.ts +27 -0
  100. package/dist/models/ResultChangeCount.js +41 -0
  101. package/dist/models/ResultName.d.ts +27 -0
  102. package/dist/models/ResultName.js +41 -0
  103. package/dist/models/ResultNameArray.d.ts +27 -0
  104. package/dist/models/ResultNameArray.js +41 -0
  105. package/dist/models/ResultResourceUrl.d.ts +27 -0
  106. package/dist/models/ResultResourceUrl.js +41 -0
  107. package/dist/models/SkProbe.d.ts +45 -0
  108. package/dist/models/SkProbe.js +47 -0
  109. package/dist/models/SkRole.d.ts +93 -0
  110. package/dist/models/SkRole.js +63 -0
  111. package/dist/models/SkSecret.d.ts +36 -0
  112. package/dist/models/SkSecret.js +44 -0
  113. package/dist/models/SkSecretList.d.ts +33 -0
  114. package/dist/models/SkSecretList.js +43 -0
  115. package/dist/models/SkSecretMetadata.d.ts +45 -0
  116. package/dist/models/SkSecretMetadata.js +47 -0
  117. package/dist/models/SkSecretVersion.d.ts +45 -0
  118. package/dist/models/SkSecretVersion.js +47 -0
  119. package/dist/models/SkSecretVersionMetadata.d.ts +58 -0
  120. package/dist/models/SkSecretVersionMetadata.js +52 -0
  121. package/dist/models/Transformation.d.ts +39 -0
  122. package/dist/models/Transformation.js +45 -0
  123. package/dist/models/index.d.ts +53 -0
  124. package/dist/models/index.js +60 -0
  125. package/dist/runtime.d.ts +140 -0
  126. package/dist/runtime.js +420 -0
  127. package/package.json +15 -0
  128. package/src/apis/GeneralApi.ts +117 -0
  129. package/src/apis/RoleApi.ts +782 -0
  130. package/src/apis/UserApi.ts +1047 -0
  131. package/src/apis/VaultApi.ts +802 -0
  132. package/src/apis/index.ts +6 -0
  133. package/src/index.ts +5 -0
  134. package/src/models/Options.ts +56 -0
  135. package/src/models/ReqAddChildRole.ts +72 -0
  136. package/src/models/ReqAddRolePermission.ts +72 -0
  137. package/src/models/ReqCreateRole.ts +72 -0
  138. package/src/models/ReqGrantAdminRole.ts +64 -0
  139. package/src/models/ReqGrantUserPermission.ts +72 -0
  140. package/src/models/ReqGrantUserRole.ts +72 -0
  141. package/src/models/ReqGrantUserRoleWithPermission.ts +80 -0
  142. package/src/models/ReqPreviewPathPrefix.ts +104 -0
  143. package/src/models/ReqRemoveChildRole.ts +72 -0
  144. package/src/models/ReqRemoveRolePermission.ts +72 -0
  145. package/src/models/ReqReplacePathPrefix.ts +104 -0
  146. package/src/models/ReqRevokeAdminRole.ts +64 -0
  147. package/src/models/ReqRevokeUserPermission.ts +72 -0
  148. package/src/models/ReqRevokeUserRole.ts +72 -0
  149. package/src/models/ReqUpdateRoleDescription.ts +64 -0
  150. package/src/models/ReqUpdateRoleName.ts +64 -0
  151. package/src/models/ReqUpdateRoleOwner.ts +72 -0
  152. package/src/models/ReqUserHasRole.ts +80 -0
  153. package/src/models/ReqUserHasRoleMulti.ts +80 -0
  154. package/src/models/ReqUserIsAdmin.ts +64 -0
  155. package/src/models/ReqUserIsPermitted.ts +80 -0
  156. package/src/models/ReqUserIsPermittedMulti.ts +80 -0
  157. package/src/models/ReqValidateServicePwd.ts +72 -0
  158. package/src/models/ReqVersions.ts +72 -0
  159. package/src/models/ReqWriteSecret.ts +87 -0
  160. package/src/models/RespAuthorized.ts +87 -0
  161. package/src/models/RespBasic.ts +80 -0
  162. package/src/models/RespChangeCount.ts +87 -0
  163. package/src/models/RespName.ts +87 -0
  164. package/src/models/RespNameArray.ts +87 -0
  165. package/src/models/RespPathPrefixes.ts +87 -0
  166. package/src/models/RespProbe.ts +87 -0
  167. package/src/models/RespResourceUrl.ts +87 -0
  168. package/src/models/RespRole.ts +87 -0
  169. package/src/models/RespSecret.ts +87 -0
  170. package/src/models/RespSecretList.ts +87 -0
  171. package/src/models/RespSecretMeta.ts +87 -0
  172. package/src/models/RespSecretVersionMetadata.ts +87 -0
  173. package/src/models/RespVersions.ts +80 -0
  174. package/src/models/ResultAuthorized.ts +56 -0
  175. package/src/models/ResultChangeCount.ts +56 -0
  176. package/src/models/ResultName.ts +56 -0
  177. package/src/models/ResultNameArray.ts +56 -0
  178. package/src/models/ResultResourceUrl.ts +56 -0
  179. package/src/models/SkProbe.ts +80 -0
  180. package/src/models/SkRole.ts +144 -0
  181. package/src/models/SkSecret.ts +71 -0
  182. package/src/models/SkSecretList.ts +64 -0
  183. package/src/models/SkSecretMetadata.ts +80 -0
  184. package/src/models/SkSecretVersion.ts +80 -0
  185. package/src/models/SkSecretVersionMetadata.ts +103 -0
  186. package/src/models/Transformation.ts +72 -0
  187. package/src/models/index.ts +55 -0
  188. package/src/runtime.ts +320 -0
  189. package/tsconfig.json +20 -0
@@ -0,0 +1,276 @@
1
+ /**
2
+ * Tapis Security API
3
+ * The Tapis Security API provides access to the Tapis Security Kernel authorization and secrets facilities.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
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 { ReqGrantAdminRole, ReqGrantUserPermission, ReqGrantUserRole, ReqGrantUserRoleWithPermission, ReqRevokeAdminRole, ReqRevokeUserPermission, ReqRevokeUserRole, ReqUserHasRole, ReqUserHasRoleMulti, ReqUserIsAdmin, ReqUserIsPermitted, ReqUserIsPermittedMulti, RespAuthorized, RespChangeCount, RespName, RespNameArray } from '../models';
14
+ export interface GetAdminsRequest {
15
+ tenant: string;
16
+ pretty?: boolean;
17
+ }
18
+ export interface GetDefaultUserRole1Request {
19
+ user: string;
20
+ pretty?: boolean;
21
+ }
22
+ export interface GetUserNamesRequest {
23
+ tenant?: string;
24
+ pretty?: boolean;
25
+ }
26
+ export interface GetUserPermsRequest {
27
+ user: string;
28
+ tenant?: string;
29
+ implies?: string;
30
+ impliedBy?: string;
31
+ pretty?: boolean;
32
+ }
33
+ export interface GetUserRolesRequest {
34
+ user: string;
35
+ tenant?: string;
36
+ pretty?: boolean;
37
+ }
38
+ export interface GetUsersWithPermissionRequest {
39
+ permSpec: string;
40
+ tenant?: string;
41
+ pretty?: boolean;
42
+ }
43
+ export interface GetUsersWithRoleRequest {
44
+ roleName: string;
45
+ tenant?: string;
46
+ pretty?: boolean;
47
+ }
48
+ export interface GrantAdminRoleRequest {
49
+ reqGrantAdminRole: ReqGrantAdminRole;
50
+ pretty?: boolean;
51
+ }
52
+ export interface GrantRoleRequest {
53
+ reqGrantUserRole: ReqGrantUserRole;
54
+ pretty?: boolean;
55
+ }
56
+ export interface GrantRoleWithPermissionRequest {
57
+ reqGrantUserRoleWithPermission: ReqGrantUserRoleWithPermission;
58
+ pretty?: boolean;
59
+ }
60
+ export interface GrantUserPermissionRequest {
61
+ reqGrantUserPermission: ReqGrantUserPermission;
62
+ pretty?: boolean;
63
+ }
64
+ export interface HasRoleRequest {
65
+ reqUserHasRole: ReqUserHasRole;
66
+ pretty?: boolean;
67
+ }
68
+ export interface HasRoleAllRequest {
69
+ reqUserHasRoleMulti: ReqUserHasRoleMulti;
70
+ pretty?: boolean;
71
+ }
72
+ export interface HasRoleAnyRequest {
73
+ reqUserHasRoleMulti: ReqUserHasRoleMulti;
74
+ pretty?: boolean;
75
+ }
76
+ export interface IsAdminRequest {
77
+ reqUserIsAdmin: ReqUserIsAdmin;
78
+ pretty?: boolean;
79
+ }
80
+ export interface IsPermittedRequest {
81
+ reqUserIsPermitted: ReqUserIsPermitted;
82
+ pretty?: boolean;
83
+ }
84
+ export interface IsPermittedAllRequest {
85
+ reqUserIsPermittedMulti: ReqUserIsPermittedMulti;
86
+ pretty?: boolean;
87
+ }
88
+ export interface IsPermittedAnyRequest {
89
+ reqUserIsPermittedMulti: ReqUserIsPermittedMulti;
90
+ pretty?: boolean;
91
+ }
92
+ export interface RevokeAdminRoleRequest {
93
+ reqRevokeAdminRole: ReqRevokeAdminRole;
94
+ pretty?: boolean;
95
+ }
96
+ export interface RevokeUserPermissionRequest {
97
+ reqRevokeUserPermission: ReqRevokeUserPermission;
98
+ pretty?: boolean;
99
+ }
100
+ export interface RevokeUserRoleRequest {
101
+ reqRevokeUserRole: ReqRevokeUserRole;
102
+ pretty?: boolean;
103
+ }
104
+ /**
105
+ *
106
+ */
107
+ export declare class UserApi extends runtime.BaseAPI {
108
+ /**
109
+ * Get all users assigned the tenant administrator role ($!tenant_admin). This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
110
+ */
111
+ getAdminsRaw(requestParameters: GetAdminsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespNameArray>>;
112
+ /**
113
+ * Get all users assigned the tenant administrator role ($!tenant_admin). This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
114
+ */
115
+ getAdmins(requestParameters: GetAdminsRequest, initOverrides?: RequestInit): Promise<RespNameArray>;
116
+ /**
117
+ * Get a user\'s default role. The default role is implicitly created by the system when needed if it doesn\'t already exist. No authorization required. A user\'s default role is constructed by prepending \'$$\' to the user\'s name. This implies the maximum length of a user name is 58 since role names are limited to 60 characters.
118
+ */
119
+ getDefaultUserRole1Raw(requestParameters: GetDefaultUserRole1Request, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespName>>;
120
+ /**
121
+ * Get a user\'s default role. The default role is implicitly created by the system when needed if it doesn\'t already exist. No authorization required. A user\'s default role is constructed by prepending \'$$\' to the user\'s name. This implies the maximum length of a user name is 58 since role names are limited to 60 characters.
122
+ */
123
+ getDefaultUserRole1(requestParameters: GetDefaultUserRole1Request, initOverrides?: RequestInit): Promise<RespName>;
124
+ /**
125
+ * Get the names of all users in the tenant that have been granted a role or permission. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
126
+ */
127
+ getUserNamesRaw(requestParameters: GetUserNamesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespNameArray>>;
128
+ /**
129
+ * Get the names of all users in the tenant that have been granted a role or permission. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
130
+ */
131
+ getUserNames(requestParameters: GetUserNamesRequest, initOverrides?: RequestInit): Promise<RespNameArray>;
132
+ /**
133
+ * Get the permissions assigned to a user in a tenant, including those assigned transively. The result list can be optionally filtered by the one or both of the query parameters: implies and impliedBy. The implied parameter removes permissions from the result list that the specified permission do not imply. The impliedBy parameter removes permissions from the result list that the specified permission are not implied by. Below are some examples.Consider a user that is assigned these permissions: stream:dev:read:project1 stream:dev:read,write:project1 stream:dev:read,write,exec:project1 **Using the *implies* Query Parameter** When _implies=stream:dev:*:project1_, this endpoint returns: stream:dev:read:project1 stream:dev:read,write:project1 stream:dev:read,write,exec:project1 When _implies=stream:dev:write:project1_, this endpoint returns an empty list. **Using the *impliedBy* Query Parameter** When _impliedBy=stream:dev:*:project1_, this endpoint returns an empty list. When _impliedBy=stream:dev:write:project1_, this endpoint returns: stream:dev:read,write:project1 stream:dev:read,write,exec:project1 This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
134
+ */
135
+ getUserPermsRaw(requestParameters: GetUserPermsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespNameArray>>;
136
+ /**
137
+ * Get the permissions assigned to a user in a tenant, including those assigned transively. The result list can be optionally filtered by the one or both of the query parameters: implies and impliedBy. The implied parameter removes permissions from the result list that the specified permission do not imply. The impliedBy parameter removes permissions from the result list that the specified permission are not implied by. Below are some examples.Consider a user that is assigned these permissions: stream:dev:read:project1 stream:dev:read,write:project1 stream:dev:read,write,exec:project1 **Using the *implies* Query Parameter** When _implies=stream:dev:*:project1_, this endpoint returns: stream:dev:read:project1 stream:dev:read,write:project1 stream:dev:read,write,exec:project1 When _implies=stream:dev:write:project1_, this endpoint returns an empty list. **Using the *impliedBy* Query Parameter** When _impliedBy=stream:dev:*:project1_, this endpoint returns an empty list. When _impliedBy=stream:dev:write:project1_, this endpoint returns: stream:dev:read,write:project1 stream:dev:read,write,exec:project1 This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
138
+ */
139
+ getUserPerms(requestParameters: GetUserPermsRequest, initOverrides?: RequestInit): Promise<RespNameArray>;
140
+ /**
141
+ * Get the roles assigned to a user in the specified tenant, including those assigned transively. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
142
+ */
143
+ getUserRolesRaw(requestParameters: GetUserRolesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespNameArray>>;
144
+ /**
145
+ * Get the roles assigned to a user in the specified tenant, including those assigned transively. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
146
+ */
147
+ getUserRoles(requestParameters: GetUserRolesRequest, initOverrides?: RequestInit): Promise<RespNameArray>;
148
+ /**
149
+ * Get all users in a tenant assigned a permission. The permSpec parameter is a permission specification that uses colons as separators, the asterisk as a wildcard character and commas to define lists. Here are examples of permission specifications: system:mytenant:read:mysystem system:mytenant:*:mysystem system:mytenant files:mytenant:read,write:mysystems This method recognizes the percent sign (%) as a string wildcard only in the context of database searching. If a percent sign (%) appears in the permSpec it is interpreted as a zero or more character wildcard. For example, the following specification would match the first three of the above example specifications but not the fourth: system:mytenant:% The wildcard character cannot appear as the first character in the permSpec. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
150
+ */
151
+ getUsersWithPermissionRaw(requestParameters: GetUsersWithPermissionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespNameArray>>;
152
+ /**
153
+ * Get all users in a tenant assigned a permission. The permSpec parameter is a permission specification that uses colons as separators, the asterisk as a wildcard character and commas to define lists. Here are examples of permission specifications: system:mytenant:read:mysystem system:mytenant:*:mysystem system:mytenant files:mytenant:read,write:mysystems This method recognizes the percent sign (%) as a string wildcard only in the context of database searching. If a percent sign (%) appears in the permSpec it is interpreted as a zero or more character wildcard. For example, the following specification would match the first three of the above example specifications but not the fourth: system:mytenant:% The wildcard character cannot appear as the first character in the permSpec. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
154
+ */
155
+ getUsersWithPermission(requestParameters: GetUsersWithPermissionRequest, initOverrides?: RequestInit): Promise<RespNameArray>;
156
+ /**
157
+ * Get all users assigned a role. The role must exist in the tenant. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
158
+ */
159
+ getUsersWithRoleRaw(requestParameters: GetUsersWithRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespNameArray>>;
160
+ /**
161
+ * Get all users assigned a role. The role must exist in the tenant. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
162
+ */
163
+ getUsersWithRole(requestParameters: GetUsersWithRoleRequest, initOverrides?: RequestInit): Promise<RespNameArray>;
164
+ /**
165
+ * Grant a user the tenant administrator role. A valid tenant and user must be specified in the request body. The user specified in the JWT must be an administrator in the tenant specified in the request body.
166
+ */
167
+ grantAdminRoleRaw(requestParameters: GrantAdminRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespChangeCount>>;
168
+ /**
169
+ * Grant a user the tenant administrator role. A valid tenant and user must be specified in the request body. The user specified in the JWT must be an administrator in the tenant specified in the request body.
170
+ */
171
+ grantAdminRole(requestParameters: GrantAdminRoleRequest, initOverrides?: RequestInit): Promise<RespChangeCount>;
172
+ /**
173
+ * Grant a user the specified role. A valid tenant and user must be specified in the request body. This request is authorized only if the requestor is the role owner or an administrator. The user and the role must be in the same tenant.
174
+ */
175
+ grantRoleRaw(requestParameters: GrantRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespChangeCount>>;
176
+ /**
177
+ * Grant a user the specified role. A valid tenant and user must be specified in the request body. This request is authorized only if the requestor is the role owner or an administrator. The user and the role must be in the same tenant.
178
+ */
179
+ grantRole(requestParameters: GrantRoleRequest, initOverrides?: RequestInit): Promise<RespChangeCount>;
180
+ /**
181
+ * Grant a user the specified role containing the specified permission. This compound request first adds the permission to the role if it is not already a member of the role and then assigns the role to the user. The change count returned can range from zero to two depending on how many insertions were actually required. Only the role owner or an administrator is authorized to make this request. The user and the role must be in the same tenant.
182
+ */
183
+ grantRoleWithPermissionRaw(requestParameters: GrantRoleWithPermissionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespChangeCount>>;
184
+ /**
185
+ * Grant a user the specified role containing the specified permission. This compound request first adds the permission to the role if it is not already a member of the role and then assigns the role to the user. The change count returned can range from zero to two depending on how many insertions were actually required. Only the role owner or an administrator is authorized to make this request. The user and the role must be in the same tenant.
186
+ */
187
+ grantRoleWithPermission(requestParameters: GrantRoleWithPermissionRequest, initOverrides?: RequestInit): Promise<RespChangeCount>;
188
+ /**
189
+ * Grant a user the specified permission by assigning that permission to to the user\'s default role. If the user\'s default role does not exist,this request will create that role and grant it to the user before assigning the permission to the role. A user\'s default role name is discoverable by calling either of the user/defaultRole or role/defaultRole endpoints. The change count returned can range from zero to three depending on how many insertions and updates were actually required The caller must be an administrator or service allowed to perform updates in the user\'s tenant.
190
+ */
191
+ grantUserPermissionRaw(requestParameters: GrantUserPermissionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespChangeCount>>;
192
+ /**
193
+ * Grant a user the specified permission by assigning that permission to to the user\'s default role. If the user\'s default role does not exist,this request will create that role and grant it to the user before assigning the permission to the role. A user\'s default role name is discoverable by calling either of the user/defaultRole or role/defaultRole endpoints. The change count returned can range from zero to three depending on how many insertions and updates were actually required The caller must be an administrator or service allowed to perform updates in the user\'s tenant.
194
+ */
195
+ grantUserPermission(requestParameters: GrantUserPermissionRequest, initOverrides?: RequestInit): Promise<RespChangeCount>;
196
+ /**
197
+ * Check whether a user in a tenant has been assigned the specified role, either directly or transitively. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
198
+ */
199
+ hasRoleRaw(requestParameters: HasRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespAuthorized>>;
200
+ /**
201
+ * Check whether a user in a tenant has been assigned the specified role, either directly or transitively. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
202
+ */
203
+ hasRole(requestParameters: HasRoleRequest, initOverrides?: RequestInit): Promise<RespAuthorized>;
204
+ /**
205
+ * Check whether a user in a tenant has been assigned all of the roles specified in the request body. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
206
+ */
207
+ hasRoleAllRaw(requestParameters: HasRoleAllRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespAuthorized>>;
208
+ /**
209
+ * Check whether a user in a tenant has been assigned all of the roles specified in the request body. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
210
+ */
211
+ hasRoleAll(requestParameters: HasRoleAllRequest, initOverrides?: RequestInit): Promise<RespAuthorized>;
212
+ /**
213
+ * Check whether a user in a tenant has been assigned any of the roles specified in the request body. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
214
+ */
215
+ hasRoleAnyRaw(requestParameters: HasRoleAnyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespAuthorized>>;
216
+ /**
217
+ * Check whether a user in a tenant has been assigned any of the roles specified in the request body. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
218
+ */
219
+ hasRoleAny(requestParameters: HasRoleAnyRequest, initOverrides?: RequestInit): Promise<RespAuthorized>;
220
+ /**
221
+ * Check whether a user in a tenant has been assigned the tenant administrator role, either directly or transitively. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
222
+ */
223
+ isAdminRaw(requestParameters: IsAdminRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespAuthorized>>;
224
+ /**
225
+ * Check whether a user in a tenant has been assigned the tenant administrator role, either directly or transitively. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
226
+ */
227
+ isAdmin(requestParameters: IsAdminRequest, initOverrides?: RequestInit): Promise<RespAuthorized>;
228
+ /**
229
+ * Check whether specified permission matches a permission assigned to the user, either directly or transitively. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
230
+ */
231
+ isPermittedRaw(requestParameters: IsPermittedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespAuthorized>>;
232
+ /**
233
+ * Check whether specified permission matches a permission assigned to the user, either directly or transitively. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
234
+ */
235
+ isPermitted(requestParameters: IsPermittedRequest, initOverrides?: RequestInit): Promise<RespAuthorized>;
236
+ /**
237
+ * Check whether a user\'s permissions satisfy all of the permission specifications contained in the request body. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
238
+ */
239
+ isPermittedAllRaw(requestParameters: IsPermittedAllRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespAuthorized>>;
240
+ /**
241
+ * Check whether a user\'s permissions satisfy all of the permission specifications contained in the request body. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
242
+ */
243
+ isPermittedAll(requestParameters: IsPermittedAllRequest, initOverrides?: RequestInit): Promise<RespAuthorized>;
244
+ /**
245
+ * Check whether a user\'s permissions satisfy any of the permission specifications contained in the request body. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
246
+ */
247
+ isPermittedAnyRaw(requestParameters: IsPermittedAnyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespAuthorized>>;
248
+ /**
249
+ * Check whether a user\'s permissions satisfy any of the permission specifications contained in the request body. This request is authorized if the requestor is a user that has access to the specified tenant or if the requestor is a service.
250
+ */
251
+ isPermittedAny(requestParameters: IsPermittedAnyRequest, initOverrides?: RequestInit): Promise<RespAuthorized>;
252
+ /**
253
+ * Revoke the previously granted tenant administrator role from a user. No action is taken if the user is not currently assigned the role (the request is idempotent). The request will not be honored if revoking the role would leave the tenant with no administrator. The user specified in the JWT must themselves be an administrator and a valid tenant and user must be specified in the request body.
254
+ */
255
+ revokeAdminRoleRaw(requestParameters: RevokeAdminRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespChangeCount>>;
256
+ /**
257
+ * Revoke the previously granted tenant administrator role from a user. No action is taken if the user is not currently assigned the role (the request is idempotent). The request will not be honored if revoking the role would leave the tenant with no administrator. The user specified in the JWT must themselves be an administrator and a valid tenant and user must be specified in the request body.
258
+ */
259
+ revokeAdminRole(requestParameters: RevokeAdminRoleRequest, initOverrides?: RequestInit): Promise<RespChangeCount>;
260
+ /**
261
+ * Revoke the specified permission from the user\'s default role. A user\'s default role is constructed by prepending \'$$\' to the user\'s name. Default roles are created on demand. If the role does not exist when this method is called no error is reported and no changes occur. The change count returned can be zero or one depending on how many permissions were revoked. A valid tenant and user must be specified in the request body. The caller must be an administrator, a service or the user themselves.
262
+ */
263
+ revokeUserPermissionRaw(requestParameters: RevokeUserPermissionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespChangeCount>>;
264
+ /**
265
+ * Revoke the specified permission from the user\'s default role. A user\'s default role is constructed by prepending \'$$\' to the user\'s name. Default roles are created on demand. If the role does not exist when this method is called no error is reported and no changes occur. The change count returned can be zero or one depending on how many permissions were revoked. A valid tenant and user must be specified in the request body. The caller must be an administrator, a service or the user themselves.
266
+ */
267
+ revokeUserPermission(requestParameters: RevokeUserPermissionRequest, initOverrides?: RequestInit): Promise<RespChangeCount>;
268
+ /**
269
+ * Revoke a previously granted role from a user. No action is taken if the user is not currently assigned the role. This request is idempotent. This request is authorized only if the requestor is the role owner or an administrator.
270
+ */
271
+ revokeUserRoleRaw(requestParameters: RevokeUserRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespChangeCount>>;
272
+ /**
273
+ * Revoke a previously granted role from a user. No action is taken if the user is not currently assigned the role. This request is idempotent. This request is authorized only if the requestor is the role owner or an administrator.
274
+ */
275
+ revokeUserRole(requestParameters: RevokeUserRoleRequest, initOverrides?: RequestInit): Promise<RespChangeCount>;
276
+ }