@thunderid/javascript 1.11.0 → 1.13.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.
Files changed (208) hide show
  1. package/dist/ThunderIDJavaScriptClient.d.ts +86 -1
  2. package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -1
  3. package/dist/api/account/getAccessibleOrganizationUnits.d.ts +38 -0
  4. package/dist/api/account/getAccessibleOrganizationUnits.d.ts.map +1 -0
  5. package/dist/api/auth/executeEmbeddedDeviceGrantFlow.d.ts +11 -2
  6. package/dist/api/auth/executeEmbeddedDeviceGrantFlow.d.ts.map +1 -1
  7. package/dist/api/auth/executeEmbeddedSelfFlow.d.ts +57 -0
  8. package/dist/api/auth/executeEmbeddedSelfFlow.d.ts.map +1 -0
  9. package/dist/api/auth/executeEmbeddedSignInFlow.d.ts.map +1 -1
  10. package/dist/api/auth/getSupportedAuthorizationDetailsType.d.ts +29 -0
  11. package/dist/api/auth/getSupportedAuthorizationDetailsType.d.ts.map +1 -0
  12. package/dist/api/auth/getSupportedAuthorizationDetailsTypes.d.ts +24 -0
  13. package/dist/api/auth/getSupportedAuthorizationDetailsTypes.d.ts.map +1 -0
  14. package/dist/api/management/agents/getAgents.d.ts +8 -2
  15. package/dist/api/management/agents/getAgents.d.ts.map +1 -1
  16. package/dist/api/management/applications/getApplications.d.ts +8 -2
  17. package/dist/api/management/applications/getApplications.d.ts.map +1 -1
  18. package/dist/api/management/authorization-detail-types/createAuthorizationDetailType.d.ts +28 -0
  19. package/dist/api/management/authorization-detail-types/createAuthorizationDetailType.d.ts.map +1 -0
  20. package/dist/api/management/authorization-detail-types/deleteAuthorizationDetailType.d.ts +24 -0
  21. package/dist/api/management/authorization-detail-types/deleteAuthorizationDetailType.d.ts.map +1 -0
  22. package/dist/api/management/authorization-detail-types/getAuthorizationDetailType.d.ts +25 -0
  23. package/dist/api/management/authorization-detail-types/getAuthorizationDetailType.d.ts.map +1 -0
  24. package/dist/api/management/authorization-detail-types/getAuthorizationDetailTypes.d.ts +20 -0
  25. package/dist/api/management/authorization-detail-types/getAuthorizationDetailTypes.d.ts.map +1 -0
  26. package/dist/api/management/authorization-detail-types/updateAuthorizationDetailType.d.ts +33 -0
  27. package/dist/api/management/authorization-detail-types/updateAuthorizationDetailType.d.ts.map +1 -0
  28. package/dist/api/management/client-registrations/deleteClientRegistration.d.ts +24 -0
  29. package/dist/api/management/client-registrations/deleteClientRegistration.d.ts.map +1 -0
  30. package/dist/api/management/client-registrations/getClientRegistration.d.ts +26 -0
  31. package/dist/api/management/client-registrations/getClientRegistration.d.ts.map +1 -0
  32. package/dist/api/management/client-registrations/mapClientRegistration.d.ts +11 -0
  33. package/dist/api/management/client-registrations/mapClientRegistration.d.ts.map +1 -0
  34. package/dist/api/management/client-registrations/registerClient.d.ts +31 -0
  35. package/dist/api/management/client-registrations/registerClient.d.ts.map +1 -0
  36. package/dist/api/management/client-registrations/updateClientRegistration.d.ts +34 -0
  37. package/dist/api/management/client-registrations/updateClientRegistration.d.ts.map +1 -0
  38. package/dist/api/management/credential-configurations/createCredentialConfiguration.d.ts +25 -0
  39. package/dist/api/management/credential-configurations/createCredentialConfiguration.d.ts.map +1 -0
  40. package/dist/api/management/credential-configurations/deleteCredentialConfiguration.d.ts +24 -0
  41. package/dist/api/management/credential-configurations/deleteCredentialConfiguration.d.ts.map +1 -0
  42. package/dist/api/management/credential-configurations/getCredentialConfiguration.d.ts +25 -0
  43. package/dist/api/management/credential-configurations/getCredentialConfiguration.d.ts.map +1 -0
  44. package/dist/api/management/credential-configurations/getCredentialConfigurations.d.ts +20 -0
  45. package/dist/api/management/credential-configurations/getCredentialConfigurations.d.ts.map +1 -0
  46. package/dist/api/management/credential-configurations/updateCredentialConfiguration.d.ts +29 -0
  47. package/dist/api/management/credential-configurations/updateCredentialConfiguration.d.ts.map +1 -0
  48. package/dist/api/management/flows/createFlowSharingPolicy.d.ts +33 -0
  49. package/dist/api/management/flows/createFlowSharingPolicy.d.ts.map +1 -0
  50. package/dist/api/management/flows/deleteFlowSharingPolicy.d.ts +28 -0
  51. package/dist/api/management/flows/deleteFlowSharingPolicy.d.ts.map +1 -0
  52. package/dist/api/management/flows/getFlowOverlayRules.d.ts +31 -0
  53. package/dist/api/management/flows/getFlowOverlayRules.d.ts.map +1 -0
  54. package/dist/api/management/flows/getFlowSharingPolicies.d.ts +25 -0
  55. package/dist/api/management/flows/getFlowSharingPolicies.d.ts.map +1 -0
  56. package/dist/api/management/flows/getFlowSharingPolicy.d.ts +29 -0
  57. package/dist/api/management/flows/getFlowSharingPolicy.d.ts.map +1 -0
  58. package/dist/api/management/flows/getFlowVariables.d.ts +31 -0
  59. package/dist/api/management/flows/getFlowVariables.d.ts.map +1 -0
  60. package/dist/api/management/flows/updateFlowSharingPolicy.d.ts +39 -0
  61. package/dist/api/management/flows/updateFlowSharingPolicy.d.ts.map +1 -0
  62. package/dist/api/management/flows/updateFlowVariables.d.ts +41 -0
  63. package/dist/api/management/flows/updateFlowVariables.d.ts.map +1 -0
  64. package/dist/api/management/gateways/getGatewayMaster.d.ts +25 -0
  65. package/dist/api/management/gateways/getGatewayMaster.d.ts.map +1 -0
  66. package/dist/api/management/gateways/getGatewayMasterHistory.d.ts +26 -0
  67. package/dist/api/management/gateways/getGatewayMasterHistory.d.ts.map +1 -0
  68. package/dist/api/management/gateways/getGatewayMasterResource.d.ts +39 -0
  69. package/dist/api/management/gateways/getGatewayMasterResource.d.ts.map +1 -0
  70. package/dist/api/management/groups/createGroupByPath.d.ts +34 -0
  71. package/dist/api/management/groups/createGroupByPath.d.ts.map +1 -0
  72. package/dist/api/management/groups/getGroupsByPath.d.ts +26 -0
  73. package/dist/api/management/groups/getGroupsByPath.d.ts.map +1 -0
  74. package/dist/api/management/presentation-definitions/createPresentationDefinition.d.ts +25 -0
  75. package/dist/api/management/presentation-definitions/createPresentationDefinition.d.ts.map +1 -0
  76. package/dist/api/management/presentation-definitions/deletePresentationDefinition.d.ts +24 -0
  77. package/dist/api/management/presentation-definitions/deletePresentationDefinition.d.ts.map +1 -0
  78. package/dist/api/management/presentation-definitions/getPresentationDefinition.d.ts +25 -0
  79. package/dist/api/management/presentation-definitions/getPresentationDefinition.d.ts.map +1 -0
  80. package/dist/api/management/presentation-definitions/getPresentationDefinitions.d.ts +20 -0
  81. package/dist/api/management/presentation-definitions/getPresentationDefinitions.d.ts.map +1 -0
  82. package/dist/api/management/presentation-definitions/updatePresentationDefinition.d.ts +29 -0
  83. package/dist/api/management/presentation-definitions/updatePresentationDefinition.d.ts.map +1 -0
  84. package/dist/api/management/projects/createProject.d.ts +28 -0
  85. package/dist/api/management/projects/createProject.d.ts.map +1 -0
  86. package/dist/api/management/projects/deleteProject.d.ts +24 -0
  87. package/dist/api/management/projects/deleteProject.d.ts.map +1 -0
  88. package/dist/api/management/projects/getProject.d.ts +25 -0
  89. package/dist/api/management/projects/getProject.d.ts.map +1 -0
  90. package/dist/api/management/projects/getProjects.d.ts +20 -0
  91. package/dist/api/management/projects/getProjects.d.ts.map +1 -0
  92. package/dist/api/management/projects/updateProject.d.ts +33 -0
  93. package/dist/api/management/projects/updateProject.d.ts.map +1 -0
  94. package/dist/api/management/resource-servers/getResourceServerPermissions.d.ts +32 -0
  95. package/dist/api/management/resource-servers/getResourceServerPermissions.d.ts.map +1 -0
  96. package/dist/api/management/roles/createRoleSharingPolicy.d.ts +33 -0
  97. package/dist/api/management/roles/createRoleSharingPolicy.d.ts.map +1 -0
  98. package/dist/api/management/roles/deleteRoleSharingPolicy.d.ts +28 -0
  99. package/dist/api/management/roles/deleteRoleSharingPolicy.d.ts.map +1 -0
  100. package/dist/api/management/roles/getRoleOverlayRules.d.ts +30 -0
  101. package/dist/api/management/roles/getRoleOverlayRules.d.ts.map +1 -0
  102. package/dist/api/management/roles/getRoleSharingPolicies.d.ts +25 -0
  103. package/dist/api/management/roles/getRoleSharingPolicies.d.ts.map +1 -0
  104. package/dist/api/management/roles/getRoleSharingPolicy.d.ts +29 -0
  105. package/dist/api/management/roles/getRoleSharingPolicy.d.ts.map +1 -0
  106. package/dist/api/management/roles/updateRoleSharingPolicy.d.ts +39 -0
  107. package/dist/api/management/roles/updateRoleSharingPolicy.d.ts.map +1 -0
  108. package/dist/cjs/index.cjs +4787 -1135
  109. package/dist/constants/AttributeVerificationConstants.d.ts +13 -0
  110. package/dist/constants/AttributeVerificationConstants.d.ts.map +1 -0
  111. package/dist/constants/ManagementErrorKeys.d.ts +17 -0
  112. package/dist/constants/ManagementErrorKeys.d.ts.map +1 -0
  113. package/dist/constants/OrganizationUnitQueryKeys.d.ts +14 -0
  114. package/dist/constants/OrganizationUnitQueryKeys.d.ts.map +1 -0
  115. package/dist/constants/ProjectQueryKeys.d.ts +10 -0
  116. package/dist/constants/ProjectQueryKeys.d.ts.map +1 -0
  117. package/dist/constants/RoleQueryKeys.d.ts +1 -0
  118. package/dist/constants/RoleQueryKeys.d.ts.map +1 -1
  119. package/dist/constants/SharingPolicyQueryKeys.d.ts +11 -0
  120. package/dist/constants/SharingPolicyQueryKeys.d.ts.map +1 -0
  121. package/dist/edge/index.js +4716 -1136
  122. package/dist/i18n/models/i18n.d.ts +158 -0
  123. package/dist/i18n/models/i18n.d.ts.map +1 -1
  124. package/dist/i18n/translations/en-US.d.ts.map +1 -1
  125. package/dist/i18n/translations/fr-FR.d.ts.map +1 -1
  126. package/dist/i18n/translations/hi-IN.d.ts.map +1 -1
  127. package/dist/i18n/translations/ja-JP.d.ts.map +1 -1
  128. package/dist/i18n/translations/pt-BR.d.ts.map +1 -1
  129. package/dist/i18n/translations/pt-PT.d.ts.map +1 -1
  130. package/dist/i18n/translations/si-LK.d.ts.map +1 -1
  131. package/dist/i18n/translations/ta-IN.d.ts.map +1 -1
  132. package/dist/i18n/translations/te-IN.d.ts.map +1 -1
  133. package/dist/index.d.ts +130 -9
  134. package/dist/index.d.ts.map +1 -1
  135. package/dist/index.js +4716 -1136
  136. package/dist/models/accessible-organization-unit.d.ts +93 -0
  137. package/dist/models/accessible-organization-unit.d.ts.map +1 -0
  138. package/dist/models/agent-resource.d.ts +8 -1
  139. package/dist/models/agent-resource.d.ts.map +1 -1
  140. package/dist/models/application.d.ts +8 -2
  141. package/dist/models/application.d.ts.map +1 -1
  142. package/dist/models/authorization-detail-type.d.ts +101 -0
  143. package/dist/models/authorization-detail-type.d.ts.map +1 -0
  144. package/dist/models/client-registration.d.ts +71 -0
  145. package/dist/models/client-registration.d.ts.map +1 -0
  146. package/dist/models/client.d.ts +14 -0
  147. package/dist/models/client.d.ts.map +1 -1
  148. package/dist/models/config.d.ts +49 -1
  149. package/dist/models/config.d.ts.map +1 -1
  150. package/dist/models/credential-configuration.d.ts +56 -0
  151. package/dist/models/credential-configuration.d.ts.map +1 -0
  152. package/dist/models/device-authorization.d.ts +56 -0
  153. package/dist/models/device-authorization.d.ts.map +1 -0
  154. package/dist/models/embedded-flow.d.ts +3 -0
  155. package/dist/models/embedded-flow.d.ts.map +1 -1
  156. package/dist/models/embedded-self-flow.d.ts +75 -0
  157. package/dist/models/embedded-self-flow.d.ts.map +1 -0
  158. package/dist/models/embedded-signin-flow.d.ts +10 -0
  159. package/dist/models/embedded-signin-flow.d.ts.map +1 -1
  160. package/dist/models/extensions/components.d.ts +1 -1
  161. package/dist/models/extensions/components.d.ts.map +1 -1
  162. package/dist/models/gateway.d.ts +70 -0
  163. package/dist/models/gateway.d.ts.map +1 -1
  164. package/dist/models/group.d.ts +5 -0
  165. package/dist/models/group.d.ts.map +1 -1
  166. package/dist/models/managed-flow.d.ts +11 -0
  167. package/dist/models/managed-flow.d.ts.map +1 -1
  168. package/dist/models/oauth-request.d.ts +5 -0
  169. package/dist/models/oauth-request.d.ts.map +1 -1
  170. package/dist/models/oidc-discovery.d.ts +13 -0
  171. package/dist/models/oidc-discovery.d.ts.map +1 -1
  172. package/dist/models/presentation-definition.d.ts +48 -0
  173. package/dist/models/presentation-definition.d.ts.map +1 -0
  174. package/dist/models/project.d.ts +50 -0
  175. package/dist/models/project.d.ts.map +1 -0
  176. package/dist/models/resource-server.d.ts +14 -0
  177. package/dist/models/resource-server.d.ts.map +1 -1
  178. package/dist/models/session.d.ts +16 -0
  179. package/dist/models/session.d.ts.map +1 -1
  180. package/dist/models/sharing-policy.d.ts +39 -2
  181. package/dist/models/sharing-policy.d.ts.map +1 -1
  182. package/dist/models/token.d.ts +12 -0
  183. package/dist/models/token.d.ts.map +1 -1
  184. package/dist/models/user.d.ts +9 -0
  185. package/dist/models/user.d.ts.map +1 -1
  186. package/dist/utils/AuthenticationHelper.d.ts +4 -1
  187. package/dist/utils/AuthenticationHelper.d.ts.map +1 -1
  188. package/dist/utils/getCurrentOrganizationUnitFromClaims.d.ts +14 -0
  189. package/dist/utils/getCurrentOrganizationUnitFromClaims.d.ts.map +1 -0
  190. package/dist/utils/getFlowStepComponents.d.ts +26 -0
  191. package/dist/utils/getFlowStepComponents.d.ts.map +1 -0
  192. package/dist/utils/getVerifiedAttributes.d.ts +14 -0
  193. package/dist/utils/getVerifiedAttributes.d.ts.map +1 -0
  194. package/dist/utils/isVerifiableAttribute.d.ts +22 -0
  195. package/dist/utils/isVerifiableAttribute.d.ts.map +1 -0
  196. package/dist/utils/parseSelfFlowRequest.d.ts +24 -0
  197. package/dist/utils/parseSelfFlowRequest.d.ts.map +1 -0
  198. package/dist/utils/requestManagementResource.d.ts +2 -1
  199. package/dist/utils/requestManagementResource.d.ts.map +1 -1
  200. package/dist/utils/resolveOrganizationUnitEndpoint.d.ts +20 -0
  201. package/dist/utils/resolveOrganizationUnitEndpoint.d.ts.map +1 -0
  202. package/dist/utils/resolveResourceEndpoint.d.ts +1 -1
  203. package/dist/utils/resolveResourceEndpoint.d.ts.map +1 -1
  204. package/dist/utils/sharingPolicies.d.ts +126 -0
  205. package/dist/utils/sharingPolicies.d.ts.map +1 -0
  206. package/dist/utils/toManagementErrorMessage.d.ts +5 -3
  207. package/dist/utils/toManagementErrorMessage.d.ts.map +1 -1
  208. package/package.json +1 -1
@@ -0,0 +1,39 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { GatewayResourceHistory } from '../../../models/gateway';
3
+ /**
4
+ * Configuration for the getGatewayMasterResource request.
5
+ */
6
+ export interface GetGatewayMasterResourceConfig extends ManagementRequestConfig {
7
+ /**
8
+ * Identifier of the gateway.
9
+ */
10
+ gatewayId: string;
11
+ /**
12
+ * The resource's id, the part of a master entry's `key` after the slash.
13
+ */
14
+ resourceId: string;
15
+ /**
16
+ * The resource type, the part of a master entry's `key` before the slash.
17
+ */
18
+ resourceType: string;
19
+ }
20
+ /**
21
+ * Retrieves one resource's history on a gateway: its entry in each kept master that records it,
22
+ * newest first.
23
+ *
24
+ * @param config - Request configuration object.
25
+ * @returns A promise that resolves with the resource's history.
26
+ *
27
+ * @example
28
+ * ```typescript
29
+ * const {history} = await getGatewayMasterResource({
30
+ * baseUrl: 'https://localhost:8090',
31
+ * gatewayId,
32
+ * resourceId: 'app-1',
33
+ * resourceType: 'application',
34
+ * });
35
+ * ```
36
+ */
37
+ declare const getGatewayMasterResource: ({ gatewayId, resourceId, resourceType, ...config }: GetGatewayMasterResourceConfig) => Promise<GatewayResourceHistory>;
38
+ export default getGatewayMasterResource;
39
+ //# sourceMappingURL=getGatewayMasterResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGatewayMasterResource.d.ts","sourceRoot":"","sources":["../../../../src/api/management/gateways/getGatewayMasterResource.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,sBAAsB,EAAC,MAAM,yBAAyB,CAAC;AAI/D;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,uBAAuB;IAC7E;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,wBAAwB,GAAU,oDAKrC,8BAA8B,KAAG,OAAO,CAAC,sBAAsB,CAQ9D,CAAC;AAEL,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { CreateGroupByPathRequest, Group } from '../../../models/group';
3
+ /**
4
+ * Configuration for the createGroupByPath request.
5
+ */
6
+ export interface CreateGroupByPathConfig extends ManagementRequestConfig {
7
+ /**
8
+ * Handle path of the organization unit, such as `engineering/platform`. Each handle is encoded and the
9
+ * slashes between them are kept.
10
+ */
11
+ path: string;
12
+ /**
13
+ * The group to create.
14
+ */
15
+ payload: CreateGroupByPathRequest;
16
+ }
17
+ /**
18
+ * Creates a group in the organization unit at a handle path.
19
+ *
20
+ * @param config - Request configuration object.
21
+ * @returns A promise that resolves with the group as the server stored it.
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * const group = await createGroupByPath({
26
+ * baseUrl: 'https://localhost:8090',
27
+ * path: 'engineering/platform',
28
+ * payload: {name: 'Sports'},
29
+ * });
30
+ * ```
31
+ */
32
+ declare const createGroupByPath: ({ path, payload, ...config }: CreateGroupByPathConfig) => Promise<Group>;
33
+ export default createGroupByPath;
34
+ //# sourceMappingURL=createGroupByPath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createGroupByPath.d.ts","sourceRoot":"","sources":["../../../../src/api/management/groups/createGroupByPath.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,wBAAwB,EAAE,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAItE;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;IACtE;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,wBAAwB,CAAC;CACnC;AAED;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB,GAAU,8BAA4B,uBAAuB,KAAG,OAAO,CAAC,KAAK,CAShG,CAAC;AAEL,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { ApiFilteringParams, ManagementRequestConfig } from '../../../models/api';
2
+ import { GroupListResponse } from '../../../models/group';
3
+ /**
4
+ * Configuration for the getGroupsByPath request.
5
+ */
6
+ export interface GetGroupsByPathConfig extends ManagementRequestConfig, Pick<ApiFilteringParams, 'limit' | 'offset'> {
7
+ /**
8
+ * Handle path of the organization unit, such as `engineering/platform`. Each handle is encoded and the
9
+ * slashes between them are kept.
10
+ */
11
+ path: string;
12
+ }
13
+ /**
14
+ * Retrieves a page of the groups in the organization unit at a handle path.
15
+ *
16
+ * @param config - Request configuration object.
17
+ * @returns A promise that resolves with the page the server returned.
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * const {groups} = await getGroupsByPath({baseUrl: 'https://localhost:8090', path: 'engineering/platform', limit: 20});
22
+ * ```
23
+ */
24
+ declare const getGroupsByPath: ({ limit, offset, path, ...config }: GetGroupsByPathConfig) => Promise<GroupListResponse>;
25
+ export default getGroupsByPath;
26
+ //# sourceMappingURL=getGroupsByPath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGroupsByPath.d.ts","sourceRoot":"","sources":["../../../../src/api/management/groups/getGroupsByPath.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AAIxD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,uBAAuB,EAAE,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClH;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,eAAe,GAAU,oCAAkC,qBAAqB,KAAG,OAAO,CAAC,iBAAiB,CAS9G,CAAC;AAEL,eAAe,eAAe,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { PresentationDefinition, PresentationDefinitionRequest } from '../../../models/presentation-definition';
3
+ /**
4
+ * Configuration for the createPresentationDefinition request.
5
+ */
6
+ export interface CreatePresentationDefinitionConfig extends ManagementRequestConfig {
7
+ /**
8
+ * The presentation definition to create.
9
+ */
10
+ payload: PresentationDefinitionRequest;
11
+ }
12
+ /**
13
+ * Creates a presentation definition.
14
+ *
15
+ * @param config - Request configuration object.
16
+ * @returns A promise that resolves with the presentation definition as the server stored it.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const item = await createPresentationDefinition({baseUrl: 'https://localhost:8090', payload: {handle: 'pid', ouId, vct: 'urn:example:pid:1'}});
21
+ * ```
22
+ */
23
+ declare const createPresentationDefinition: ({ payload, ...config }: CreatePresentationDefinitionConfig) => Promise<PresentationDefinition>;
24
+ export default createPresentationDefinition;
25
+ //# sourceMappingURL=createPresentationDefinition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPresentationDefinition.d.ts","sourceRoot":"","sources":["../../../../src/api/management/presentation-definitions/createPresentationDefinition.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,sBAAsB,EAAE,6BAA6B,EAAC,MAAM,yCAAyC,CAAC;AAG9G;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,uBAAuB;IACjF;;OAEG;IACH,OAAO,EAAE,6BAA6B,CAAC;CACxC;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,4BAA4B,GAAU,wBAGzC,kCAAkC,KAAG,OAAO,CAAC,sBAAsB,CAOlE,CAAC;AAEL,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ /**
3
+ * Configuration for the deletePresentationDefinition request.
4
+ */
5
+ export interface DeletePresentationDefinitionConfig extends ManagementRequestConfig {
6
+ /**
7
+ * Identifier of the presentation definition.
8
+ */
9
+ definitionId: string;
10
+ }
11
+ /**
12
+ * Deletes a presentation definition. Deleting one that does not exist succeeds.
13
+ *
14
+ * @param config - Request configuration object.
15
+ * @returns A promise that resolves once the server has made the change.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * await deletePresentationDefinition({baseUrl: 'https://localhost:8090', definitionId});
20
+ * ```
21
+ */
22
+ declare const deletePresentationDefinition: ({ definitionId, ...config }: DeletePresentationDefinitionConfig) => Promise<void>;
23
+ export default deletePresentationDefinition;
24
+ //# sourceMappingURL=deletePresentationDefinition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deletePresentationDefinition.d.ts","sourceRoot":"","sources":["../../../../src/api/management/presentation-definitions/deletePresentationDefinition.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAG5D;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,uBAAuB;IACjF;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,4BAA4B,GAAU,6BAGzC,kCAAkC,KAAG,OAAO,CAAC,IAAI,CAQnD,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { PresentationDefinition } from '../../../models/presentation-definition';
3
+ /**
4
+ * Configuration for the getPresentationDefinition request.
5
+ */
6
+ export interface GetPresentationDefinitionConfig extends ManagementRequestConfig {
7
+ /**
8
+ * Identifier of the presentation definition.
9
+ */
10
+ definitionId: string;
11
+ }
12
+ /**
13
+ * Retrieves a presentation definition.
14
+ *
15
+ * @param config - Request configuration object.
16
+ * @returns A promise that resolves with the presentation definition.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const item = await getPresentationDefinition({baseUrl: 'https://localhost:8090', definitionId});
21
+ * ```
22
+ */
23
+ declare const getPresentationDefinition: ({ definitionId, ...config }: GetPresentationDefinitionConfig) => Promise<PresentationDefinition>;
24
+ export default getPresentationDefinition;
25
+ //# sourceMappingURL=getPresentationDefinition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPresentationDefinition.d.ts","sourceRoot":"","sources":["../../../../src/api/management/presentation-definitions/getPresentationDefinition.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,sBAAsB,EAAC,MAAM,yCAAyC,CAAC;AAG/E;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,uBAAuB;IAC9E;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,yBAAyB,GAAU,6BAGtC,+BAA+B,KAAG,OAAO,CAAC,sBAAsB,CAO/D,CAAC;AAEL,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { PresentationDefinitionSummary } from '../../../models/presentation-definition';
3
+ /**
4
+ * Configuration for the getPresentationDefinitions request.
5
+ */
6
+ export type GetPresentationDefinitionsConfig = ManagementRequestConfig;
7
+ /**
8
+ * Retrieves the presentation definitions.
9
+ *
10
+ * @param config - Request configuration object.
11
+ * @returns A promise that resolves with the presentation definitions.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * const definitions = await getPresentationDefinitions({baseUrl: 'https://localhost:8090'});
16
+ * ```
17
+ */
18
+ declare const getPresentationDefinitions: (config: GetPresentationDefinitionsConfig) => Promise<PresentationDefinitionSummary[]>;
19
+ export default getPresentationDefinitions;
20
+ //# sourceMappingURL=getPresentationDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPresentationDefinitions.d.ts","sourceRoot":"","sources":["../../../../src/api/management/presentation-definitions/getPresentationDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,6BAA6B,EAAC,MAAM,yCAAyC,CAAC;AAGtF;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,uBAAuB,CAAC;AAEvE;;;;;;;;;;GAUG;AACH,QAAA,MAAM,0BAA0B,GAC9B,QAAQ,gCAAgC,KACvC,OAAO,CAAC,6BAA6B,EAAE,CAMtC,CAAC;AAEL,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { PresentationDefinition, PresentationDefinitionRequest } from '../../../models/presentation-definition';
3
+ /**
4
+ * Configuration for the updatePresentationDefinition request.
5
+ */
6
+ export interface UpdatePresentationDefinitionConfig extends ManagementRequestConfig {
7
+ /**
8
+ * Identifier of the presentation definition.
9
+ */
10
+ definitionId: string;
11
+ /**
12
+ * The presentation definition's new content. Replaces the stored one.
13
+ */
14
+ payload: PresentationDefinitionRequest;
15
+ }
16
+ /**
17
+ * Replaces a presentation definition.
18
+ *
19
+ * @param config - Request configuration object.
20
+ * @returns A promise that resolves with the presentation definition as the server stored it.
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * const item = await updatePresentationDefinition({baseUrl: 'https://localhost:8090', definitionId, payload});
25
+ * ```
26
+ */
27
+ declare const updatePresentationDefinition: ({ definitionId, payload, ...config }: UpdatePresentationDefinitionConfig) => Promise<PresentationDefinition>;
28
+ export default updatePresentationDefinition;
29
+ //# sourceMappingURL=updatePresentationDefinition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updatePresentationDefinition.d.ts","sourceRoot":"","sources":["../../../../src/api/management/presentation-definitions/updatePresentationDefinition.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,sBAAsB,EAAE,6BAA6B,EAAC,MAAM,yCAAyC,CAAC;AAG9G;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,uBAAuB;IACjF;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,EAAE,6BAA6B,CAAC;CACxC;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,4BAA4B,GAAU,sCAIzC,kCAAkC,KAAG,OAAO,CAAC,sBAAsB,CAQlE,CAAC;AAEL,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { CreateProjectRequest, Project } from '../../../models/project';
3
+ /**
4
+ * Configuration for the createProject request.
5
+ */
6
+ export interface CreateProjectConfig extends ManagementRequestConfig {
7
+ /**
8
+ * The project to create.
9
+ */
10
+ payload: CreateProjectRequest;
11
+ }
12
+ /**
13
+ * Creates a project.
14
+ *
15
+ * @param config - Request configuration object.
16
+ * @returns A promise that resolves with the project as the server stored it.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const item = await createProject({
21
+ * baseUrl: 'https://localhost:8090',
22
+ * payload: {handle: 'shop', displayName: 'Shop'},
23
+ * });
24
+ * ```
25
+ */
26
+ declare const createProject: ({ payload, ...config }: CreateProjectConfig) => Promise<Project>;
27
+ export default createProject;
28
+ //# sourceMappingURL=createProject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createProject.d.ts","sourceRoot":"","sources":["../../../../src/api/management/projects/createProject.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,oBAAoB,EAAE,OAAO,EAAC,MAAM,yBAAyB,CAAC;AAGtE;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB;IAClE;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAAC;CAC/B;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,aAAa,GAAU,wBAAsB,mBAAmB,KAAG,OAAO,CAAC,OAAO,CAOpF,CAAC;AAEL,eAAe,aAAa,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ /**
3
+ * Configuration for the deleteProject request.
4
+ */
5
+ export interface DeleteProjectConfig extends ManagementRequestConfig {
6
+ /**
7
+ * Identifier of the project.
8
+ */
9
+ projectId: string;
10
+ }
11
+ /**
12
+ * Deletes a project.
13
+ *
14
+ * @param config - Request configuration object.
15
+ * @returns A promise that resolves once the server has made the change.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * await deleteProject({baseUrl: 'https://localhost:8090', projectId});
20
+ * ```
21
+ */
22
+ declare const deleteProject: ({ projectId, ...config }: DeleteProjectConfig) => Promise<void>;
23
+ export default deleteProject;
24
+ //# sourceMappingURL=deleteProject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteProject.d.ts","sourceRoot":"","sources":["../../../../src/api/management/projects/deleteProject.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAG5D;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB;IAClE;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,aAAa,GAAU,0BAAwB,mBAAmB,KAAG,OAAO,CAAC,IAAI,CAQtF,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { Project } from '../../../models/project';
3
+ /**
4
+ * Configuration for the getProject request.
5
+ */
6
+ export interface GetProjectConfig extends ManagementRequestConfig {
7
+ /**
8
+ * Identifier of the project.
9
+ */
10
+ projectId: string;
11
+ }
12
+ /**
13
+ * Retrieves a project.
14
+ *
15
+ * @param config - Request configuration object.
16
+ * @returns A promise that resolves with the project.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const item = await getProject({baseUrl: 'https://localhost:8090', projectId});
21
+ * ```
22
+ */
23
+ declare const getProject: ({ projectId, ...config }: GetProjectConfig) => Promise<Project>;
24
+ export default getProject;
25
+ //# sourceMappingURL=getProject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProject.d.ts","sourceRoot":"","sources":["../../../../src/api/management/projects/getProject.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,OAAO,EAAC,MAAM,yBAAyB,CAAC;AAGhD;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,uBAAuB;IAC/D;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,UAAU,GAAU,0BAAwB,gBAAgB,KAAG,OAAO,CAAC,OAAO,CAOhF,CAAC;AAEL,eAAe,UAAU,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { ApiFilteringParams, ManagementRequestConfig } from '../../../models/api';
2
+ import { ProjectListResponse } from '../../../models/project';
3
+ /**
4
+ * Configuration for the getProjects request.
5
+ */
6
+ export type GetProjectsConfig = ManagementRequestConfig & Pick<ApiFilteringParams, 'limit' | 'offset'>;
7
+ /**
8
+ * Retrieves a page of projects.
9
+ *
10
+ * @param config - Request configuration object.
11
+ * @returns A promise that resolves with the page the server returned.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * const {projects} = await getProjects({baseUrl: 'https://localhost:8090', limit: 20});
16
+ * ```
17
+ */
18
+ declare const getProjects: ({ limit, offset, ...config }: GetProjectsConfig) => Promise<ProjectListResponse>;
19
+ export default getProjects;
20
+ //# sourceMappingURL=getProjects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProjects.d.ts","sourceRoot":"","sources":["../../../../src/api/management/projects/getProjects.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAG5D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;AAEvG;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,GAAU,8BAA4B,iBAAiB,KAAG,OAAO,CAAC,mBAAmB,CAOlG,CAAC;AAEL,eAAe,WAAW,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { Project, UpdateProjectRequest } from '../../../models/project';
3
+ /**
4
+ * Configuration for the updateProject request.
5
+ */
6
+ export interface UpdateProjectConfig extends ManagementRequestConfig {
7
+ /**
8
+ * Identifier of the project.
9
+ */
10
+ projectId: string;
11
+ /**
12
+ * The project's new state.
13
+ */
14
+ payload: UpdateProjectRequest;
15
+ }
16
+ /**
17
+ * Updates a project.
18
+ *
19
+ * @param config - Request configuration object.
20
+ * @returns A promise that resolves with the project as the server stored it.
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * const item = await updateProject({
25
+ * baseUrl: 'https://localhost:8090',
26
+ * projectId,
27
+ * payload: {displayName: 'Online shop'},
28
+ * });
29
+ * ```
30
+ */
31
+ declare const updateProject: ({ projectId, payload, ...config }: UpdateProjectConfig) => Promise<Project>;
32
+ export default updateProject;
33
+ //# sourceMappingURL=updateProject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateProject.d.ts","sourceRoot":"","sources":["../../../../src/api/management/projects/updateProject.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,OAAO,EAAE,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAGtE;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB;IAClE;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAAC;CAC/B;AAED;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,aAAa,GAAU,mCAAiC,mBAAmB,KAAG,OAAO,CAAC,OAAO,CAQ/F,CAAC;AAEL,eAAe,aAAa,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { ResourceServerPermission } from '../../../models/resource-server';
3
+ /**
4
+ * Configuration for the getResourceServerPermissions request.
5
+ */
6
+ export interface GetResourceServerPermissionsConfig extends ManagementRequestConfig {
7
+ /**
8
+ * Largest number of resources, and of actions per resource, to read.
9
+ * @default 100
10
+ */
11
+ limit?: number;
12
+ /**
13
+ * Identifier of the resource server.
14
+ */
15
+ resourceServerId: string;
16
+ }
17
+ /**
18
+ * Lists the permissions a role can be granted on a resource server: the actions on the resource server
19
+ * itself and on each of its top-level resources, as `getActions` and `getResources` return them. It is
20
+ * what a permission picker offers, such as the one `RolePermissions` shows when it is editable.
21
+ *
22
+ * @param config - Request configuration object.
23
+ * @returns A promise that resolves with the permissions, each once, in the order the server listed them.
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const permissions = await getResourceServerPermissions({baseUrl: 'https://localhost:8090', resourceServerId});
28
+ * ```
29
+ */
30
+ declare const getResourceServerPermissions: ({ limit, resourceServerId, ...config }: GetResourceServerPermissionsConfig) => Promise<ResourceServerPermission[]>;
31
+ export default getResourceServerPermissions;
32
+ //# sourceMappingURL=getResourceServerPermissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getResourceServerPermissions.d.ts","sourceRoot":"","sources":["../../../../src/api/management/resource-servers/getResourceServerPermissions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAiC,wBAAwB,EAAC,MAAM,iCAAiC,CAAC;AAEzG;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,uBAAuB;IACjF;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,4BAA4B,GAAU,wCAIzC,kCAAkC,KAAG,OAAO,CAAC,wBAAwB,EAAE,CA6BzE,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { SharingPolicy, SharingPolicyRequest } from '../../../models/sharing-policy';
3
+ /**
4
+ * Configuration for the createRoleSharingPolicy request.
5
+ */
6
+ export interface CreateRoleSharingPolicyConfig extends ManagementRequestConfig {
7
+ /**
8
+ * Identifier of the role.
9
+ */
10
+ roleId: string;
11
+ /**
12
+ * The policy to create.
13
+ */
14
+ payload: SharingPolicyRequest;
15
+ }
16
+ /**
17
+ * Creates a sharing policy for a role: the organization units it reaches beyond its owner.
18
+ *
19
+ * @param config - Request configuration object.
20
+ * @returns A promise that resolves with the policy as the server stored it.
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * const policy = await createRoleSharingPolicy({
25
+ * baseUrl: 'https://localhost:8090',
26
+ * roleId,
27
+ * payload: {childUnits: {mode: 'all'}},
28
+ * });
29
+ * ```
30
+ */
31
+ declare const createRoleSharingPolicy: ({ roleId, payload, ...config }: CreateRoleSharingPolicyConfig) => Promise<SharingPolicy>;
32
+ export default createRoleSharingPolicy;
33
+ //# sourceMappingURL=createRoleSharingPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRoleSharingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/api/management/roles/createRoleSharingPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAE,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAGnF;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;IAC5E;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAAC;CAC/B;AAED;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,uBAAuB,GAAU,gCAIpC,6BAA6B,KAAG,OAAO,CAAC,aAAa,CASpD,CAAC;AAEL,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ /**
3
+ * Configuration for the deleteRoleSharingPolicy request.
4
+ */
5
+ export interface DeleteRoleSharingPolicyConfig extends ManagementRequestConfig {
6
+ /**
7
+ * Identifier of the role.
8
+ */
9
+ roleId: string;
10
+ /**
11
+ * Identifier of the sharing policy.
12
+ */
13
+ policyId: string;
14
+ }
15
+ /**
16
+ * Deletes a sharing policy of a role.
17
+ *
18
+ * @param config - Request configuration object.
19
+ * @returns A promise that resolves once the server has made the change.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * await deleteRoleSharingPolicy({baseUrl: 'https://localhost:8090', roleId, policyId});
24
+ * ```
25
+ */
26
+ declare const deleteRoleSharingPolicy: ({ roleId, policyId, ...config }: DeleteRoleSharingPolicyConfig) => Promise<void>;
27
+ export default deleteRoleSharingPolicy;
28
+ //# sourceMappingURL=deleteRoleSharingPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteRoleSharingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/api/management/roles/deleteRoleSharingPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAI5D;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;IAC5E;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,uBAAuB,GAAU,iCAA+B,6BAA6B,KAAG,OAAO,CAAC,IAAI,CASjH,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { RoleResolvedOverlay } from '../../../models/sharing-policy';
3
+ /**
4
+ * Configuration for the getRoleOverlayRules request.
5
+ */
6
+ export interface GetRoleOverlayRulesConfig extends ManagementRequestConfig {
7
+ /**
8
+ * Identifier of the role.
9
+ */
10
+ roleId: string;
11
+ /**
12
+ * Identifier of the organization unit to resolve the rules for.
13
+ */
14
+ ouId: string;
15
+ }
16
+ /**
17
+ * Retrieves what an organization unit may do with a role: whether it owns it, which policies reached it,
18
+ * and whether it may assign the role. An organization unit no policy reaches gets a not-found error.
19
+ *
20
+ * @param config - Request configuration object.
21
+ * @returns A promise that resolves with the resolved overlay.
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * const {rules} = await getRoleOverlayRules({baseUrl: 'https://localhost:8090', roleId, ouId});
26
+ * ```
27
+ */
28
+ declare const getRoleOverlayRules: ({ roleId, ouId, ...config }: GetRoleOverlayRulesConfig) => Promise<RoleResolvedOverlay>;
29
+ export default getRoleOverlayRules;
30
+ //# sourceMappingURL=getRoleOverlayRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRoleOverlayRules.d.ts","sourceRoot":"","sources":["../../../../src/api/management/roles/getRoleOverlayRules.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AAGnE;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,uBAAuB;IACxE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,mBAAmB,GAAU,6BAIhC,yBAAyB,KAAG,OAAO,CAAC,mBAAmB,CAStD,CAAC;AAEL,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { ApiFilteringParams, ManagementRequestConfig } from '../../../models/api';
2
+ import { SharingPolicyListResponse } from '../../../models/sharing-policy';
3
+ /**
4
+ * Configuration for the getRoleSharingPolicies request.
5
+ */
6
+ export interface GetRoleSharingPoliciesConfig extends ManagementRequestConfig, Pick<ApiFilteringParams, 'limit' | 'offset'> {
7
+ /**
8
+ * Identifier of the role.
9
+ */
10
+ roleId: string;
11
+ }
12
+ /**
13
+ * Retrieves a page of the sharing policies of a role.
14
+ *
15
+ * @param config - Request configuration object.
16
+ * @returns A promise that resolves with the page the server returned.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const {policies} = await getRoleSharingPolicies({baseUrl: 'https://localhost:8090', roleId});
21
+ * ```
22
+ */
23
+ declare const getRoleSharingPolicies: ({ roleId, limit, offset, ...config }: GetRoleSharingPoliciesConfig) => Promise<SharingPolicyListResponse>;
24
+ export default getRoleSharingPolicies;
25
+ //# sourceMappingURL=getRoleSharingPolicies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRoleSharingPolicies.d.ts","sourceRoot":"","sources":["../../../../src/api/management/roles/getRoleSharingPolicies.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAC;AAGzE;;GAEG;AACH,MAAM,WAAW,4BACf,SAAQ,uBAAuB,EAC7B,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC9C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,sBAAsB,GAAU,sCAKnC,4BAA4B,KAAG,OAAO,CAAC,yBAAyB,CAS/D,CAAC;AAEL,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { ManagementRequestConfig } from '../../../models/api';
2
+ import { SharingPolicy } from '../../../models/sharing-policy';
3
+ /**
4
+ * Configuration for the getRoleSharingPolicy request.
5
+ */
6
+ export interface GetRoleSharingPolicyConfig extends ManagementRequestConfig {
7
+ /**
8
+ * Identifier of the role.
9
+ */
10
+ roleId: string;
11
+ /**
12
+ * Identifier of the sharing policy.
13
+ */
14
+ policyId: string;
15
+ }
16
+ /**
17
+ * Retrieves a sharing policy of a role.
18
+ *
19
+ * @param config - Request configuration object.
20
+ * @returns A promise that resolves with the policy.
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * const policy = await getRoleSharingPolicy({baseUrl: 'https://localhost:8090', roleId, policyId});
25
+ * ```
26
+ */
27
+ declare const getRoleSharingPolicy: ({ roleId, policyId, ...config }: GetRoleSharingPolicyConfig) => Promise<SharingPolicy>;
28
+ export default getRoleSharingPolicy;
29
+ //# sourceMappingURL=getRoleSharingPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRoleSharingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/api/management/roles/getRoleSharingPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAI7D;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,oBAAoB,GAAU,iCAIjC,0BAA0B,KAAG,OAAO,CAAC,aAAa,CAQjD,CAAC;AAEL,eAAe,oBAAoB,CAAC"}