@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.
- package/dist/ThunderIDJavaScriptClient.d.ts +86 -1
- package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -1
- package/dist/api/account/getAccessibleOrganizationUnits.d.ts +38 -0
- package/dist/api/account/getAccessibleOrganizationUnits.d.ts.map +1 -0
- package/dist/api/auth/executeEmbeddedDeviceGrantFlow.d.ts +11 -2
- package/dist/api/auth/executeEmbeddedDeviceGrantFlow.d.ts.map +1 -1
- package/dist/api/auth/executeEmbeddedSelfFlow.d.ts +57 -0
- package/dist/api/auth/executeEmbeddedSelfFlow.d.ts.map +1 -0
- package/dist/api/auth/executeEmbeddedSignInFlow.d.ts.map +1 -1
- package/dist/api/auth/getSupportedAuthorizationDetailsType.d.ts +29 -0
- package/dist/api/auth/getSupportedAuthorizationDetailsType.d.ts.map +1 -0
- package/dist/api/auth/getSupportedAuthorizationDetailsTypes.d.ts +24 -0
- package/dist/api/auth/getSupportedAuthorizationDetailsTypes.d.ts.map +1 -0
- package/dist/api/management/agents/getAgents.d.ts +8 -2
- package/dist/api/management/agents/getAgents.d.ts.map +1 -1
- package/dist/api/management/applications/getApplications.d.ts +8 -2
- package/dist/api/management/applications/getApplications.d.ts.map +1 -1
- package/dist/api/management/authorization-detail-types/createAuthorizationDetailType.d.ts +28 -0
- package/dist/api/management/authorization-detail-types/createAuthorizationDetailType.d.ts.map +1 -0
- package/dist/api/management/authorization-detail-types/deleteAuthorizationDetailType.d.ts +24 -0
- package/dist/api/management/authorization-detail-types/deleteAuthorizationDetailType.d.ts.map +1 -0
- package/dist/api/management/authorization-detail-types/getAuthorizationDetailType.d.ts +25 -0
- package/dist/api/management/authorization-detail-types/getAuthorizationDetailType.d.ts.map +1 -0
- package/dist/api/management/authorization-detail-types/getAuthorizationDetailTypes.d.ts +20 -0
- package/dist/api/management/authorization-detail-types/getAuthorizationDetailTypes.d.ts.map +1 -0
- package/dist/api/management/authorization-detail-types/updateAuthorizationDetailType.d.ts +33 -0
- package/dist/api/management/authorization-detail-types/updateAuthorizationDetailType.d.ts.map +1 -0
- package/dist/api/management/client-registrations/deleteClientRegistration.d.ts +24 -0
- package/dist/api/management/client-registrations/deleteClientRegistration.d.ts.map +1 -0
- package/dist/api/management/client-registrations/getClientRegistration.d.ts +26 -0
- package/dist/api/management/client-registrations/getClientRegistration.d.ts.map +1 -0
- package/dist/api/management/client-registrations/mapClientRegistration.d.ts +11 -0
- package/dist/api/management/client-registrations/mapClientRegistration.d.ts.map +1 -0
- package/dist/api/management/client-registrations/registerClient.d.ts +31 -0
- package/dist/api/management/client-registrations/registerClient.d.ts.map +1 -0
- package/dist/api/management/client-registrations/updateClientRegistration.d.ts +34 -0
- package/dist/api/management/client-registrations/updateClientRegistration.d.ts.map +1 -0
- package/dist/api/management/credential-configurations/createCredentialConfiguration.d.ts +25 -0
- package/dist/api/management/credential-configurations/createCredentialConfiguration.d.ts.map +1 -0
- package/dist/api/management/credential-configurations/deleteCredentialConfiguration.d.ts +24 -0
- package/dist/api/management/credential-configurations/deleteCredentialConfiguration.d.ts.map +1 -0
- package/dist/api/management/credential-configurations/getCredentialConfiguration.d.ts +25 -0
- package/dist/api/management/credential-configurations/getCredentialConfiguration.d.ts.map +1 -0
- package/dist/api/management/credential-configurations/getCredentialConfigurations.d.ts +20 -0
- package/dist/api/management/credential-configurations/getCredentialConfigurations.d.ts.map +1 -0
- package/dist/api/management/credential-configurations/updateCredentialConfiguration.d.ts +29 -0
- package/dist/api/management/credential-configurations/updateCredentialConfiguration.d.ts.map +1 -0
- package/dist/api/management/flows/createFlowSharingPolicy.d.ts +33 -0
- package/dist/api/management/flows/createFlowSharingPolicy.d.ts.map +1 -0
- package/dist/api/management/flows/deleteFlowSharingPolicy.d.ts +28 -0
- package/dist/api/management/flows/deleteFlowSharingPolicy.d.ts.map +1 -0
- package/dist/api/management/flows/getFlowOverlayRules.d.ts +31 -0
- package/dist/api/management/flows/getFlowOverlayRules.d.ts.map +1 -0
- package/dist/api/management/flows/getFlowSharingPolicies.d.ts +25 -0
- package/dist/api/management/flows/getFlowSharingPolicies.d.ts.map +1 -0
- package/dist/api/management/flows/getFlowSharingPolicy.d.ts +29 -0
- package/dist/api/management/flows/getFlowSharingPolicy.d.ts.map +1 -0
- package/dist/api/management/flows/getFlowVariables.d.ts +31 -0
- package/dist/api/management/flows/getFlowVariables.d.ts.map +1 -0
- package/dist/api/management/flows/updateFlowSharingPolicy.d.ts +39 -0
- package/dist/api/management/flows/updateFlowSharingPolicy.d.ts.map +1 -0
- package/dist/api/management/flows/updateFlowVariables.d.ts +41 -0
- package/dist/api/management/flows/updateFlowVariables.d.ts.map +1 -0
- package/dist/api/management/gateways/getGatewayMaster.d.ts +25 -0
- package/dist/api/management/gateways/getGatewayMaster.d.ts.map +1 -0
- package/dist/api/management/gateways/getGatewayMasterHistory.d.ts +26 -0
- package/dist/api/management/gateways/getGatewayMasterHistory.d.ts.map +1 -0
- package/dist/api/management/gateways/getGatewayMasterResource.d.ts +39 -0
- package/dist/api/management/gateways/getGatewayMasterResource.d.ts.map +1 -0
- package/dist/api/management/groups/createGroupByPath.d.ts +34 -0
- package/dist/api/management/groups/createGroupByPath.d.ts.map +1 -0
- package/dist/api/management/groups/getGroupsByPath.d.ts +26 -0
- package/dist/api/management/groups/getGroupsByPath.d.ts.map +1 -0
- package/dist/api/management/presentation-definitions/createPresentationDefinition.d.ts +25 -0
- package/dist/api/management/presentation-definitions/createPresentationDefinition.d.ts.map +1 -0
- package/dist/api/management/presentation-definitions/deletePresentationDefinition.d.ts +24 -0
- package/dist/api/management/presentation-definitions/deletePresentationDefinition.d.ts.map +1 -0
- package/dist/api/management/presentation-definitions/getPresentationDefinition.d.ts +25 -0
- package/dist/api/management/presentation-definitions/getPresentationDefinition.d.ts.map +1 -0
- package/dist/api/management/presentation-definitions/getPresentationDefinitions.d.ts +20 -0
- package/dist/api/management/presentation-definitions/getPresentationDefinitions.d.ts.map +1 -0
- package/dist/api/management/presentation-definitions/updatePresentationDefinition.d.ts +29 -0
- package/dist/api/management/presentation-definitions/updatePresentationDefinition.d.ts.map +1 -0
- package/dist/api/management/projects/createProject.d.ts +28 -0
- package/dist/api/management/projects/createProject.d.ts.map +1 -0
- package/dist/api/management/projects/deleteProject.d.ts +24 -0
- package/dist/api/management/projects/deleteProject.d.ts.map +1 -0
- package/dist/api/management/projects/getProject.d.ts +25 -0
- package/dist/api/management/projects/getProject.d.ts.map +1 -0
- package/dist/api/management/projects/getProjects.d.ts +20 -0
- package/dist/api/management/projects/getProjects.d.ts.map +1 -0
- package/dist/api/management/projects/updateProject.d.ts +33 -0
- package/dist/api/management/projects/updateProject.d.ts.map +1 -0
- package/dist/api/management/resource-servers/getResourceServerPermissions.d.ts +32 -0
- package/dist/api/management/resource-servers/getResourceServerPermissions.d.ts.map +1 -0
- package/dist/api/management/roles/createRoleSharingPolicy.d.ts +33 -0
- package/dist/api/management/roles/createRoleSharingPolicy.d.ts.map +1 -0
- package/dist/api/management/roles/deleteRoleSharingPolicy.d.ts +28 -0
- package/dist/api/management/roles/deleteRoleSharingPolicy.d.ts.map +1 -0
- package/dist/api/management/roles/getRoleOverlayRules.d.ts +30 -0
- package/dist/api/management/roles/getRoleOverlayRules.d.ts.map +1 -0
- package/dist/api/management/roles/getRoleSharingPolicies.d.ts +25 -0
- package/dist/api/management/roles/getRoleSharingPolicies.d.ts.map +1 -0
- package/dist/api/management/roles/getRoleSharingPolicy.d.ts +29 -0
- package/dist/api/management/roles/getRoleSharingPolicy.d.ts.map +1 -0
- package/dist/api/management/roles/updateRoleSharingPolicy.d.ts +39 -0
- package/dist/api/management/roles/updateRoleSharingPolicy.d.ts.map +1 -0
- package/dist/cjs/index.cjs +4787 -1135
- package/dist/constants/AttributeVerificationConstants.d.ts +13 -0
- package/dist/constants/AttributeVerificationConstants.d.ts.map +1 -0
- package/dist/constants/ManagementErrorKeys.d.ts +17 -0
- package/dist/constants/ManagementErrorKeys.d.ts.map +1 -0
- package/dist/constants/OrganizationUnitQueryKeys.d.ts +14 -0
- package/dist/constants/OrganizationUnitQueryKeys.d.ts.map +1 -0
- package/dist/constants/ProjectQueryKeys.d.ts +10 -0
- package/dist/constants/ProjectQueryKeys.d.ts.map +1 -0
- package/dist/constants/RoleQueryKeys.d.ts +1 -0
- package/dist/constants/RoleQueryKeys.d.ts.map +1 -1
- package/dist/constants/SharingPolicyQueryKeys.d.ts +11 -0
- package/dist/constants/SharingPolicyQueryKeys.d.ts.map +1 -0
- package/dist/edge/index.js +4716 -1136
- package/dist/i18n/models/i18n.d.ts +158 -0
- package/dist/i18n/models/i18n.d.ts.map +1 -1
- package/dist/i18n/translations/en-US.d.ts.map +1 -1
- package/dist/i18n/translations/fr-FR.d.ts.map +1 -1
- package/dist/i18n/translations/hi-IN.d.ts.map +1 -1
- package/dist/i18n/translations/ja-JP.d.ts.map +1 -1
- package/dist/i18n/translations/pt-BR.d.ts.map +1 -1
- package/dist/i18n/translations/pt-PT.d.ts.map +1 -1
- package/dist/i18n/translations/si-LK.d.ts.map +1 -1
- package/dist/i18n/translations/ta-IN.d.ts.map +1 -1
- package/dist/i18n/translations/te-IN.d.ts.map +1 -1
- package/dist/index.d.ts +130 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4716 -1136
- package/dist/models/accessible-organization-unit.d.ts +93 -0
- package/dist/models/accessible-organization-unit.d.ts.map +1 -0
- package/dist/models/agent-resource.d.ts +8 -1
- package/dist/models/agent-resource.d.ts.map +1 -1
- package/dist/models/application.d.ts +8 -2
- package/dist/models/application.d.ts.map +1 -1
- package/dist/models/authorization-detail-type.d.ts +101 -0
- package/dist/models/authorization-detail-type.d.ts.map +1 -0
- package/dist/models/client-registration.d.ts +71 -0
- package/dist/models/client-registration.d.ts.map +1 -0
- package/dist/models/client.d.ts +14 -0
- package/dist/models/client.d.ts.map +1 -1
- package/dist/models/config.d.ts +49 -1
- package/dist/models/config.d.ts.map +1 -1
- package/dist/models/credential-configuration.d.ts +56 -0
- package/dist/models/credential-configuration.d.ts.map +1 -0
- package/dist/models/device-authorization.d.ts +56 -0
- package/dist/models/device-authorization.d.ts.map +1 -0
- package/dist/models/embedded-flow.d.ts +3 -0
- package/dist/models/embedded-flow.d.ts.map +1 -1
- package/dist/models/embedded-self-flow.d.ts +75 -0
- package/dist/models/embedded-self-flow.d.ts.map +1 -0
- package/dist/models/embedded-signin-flow.d.ts +10 -0
- package/dist/models/embedded-signin-flow.d.ts.map +1 -1
- package/dist/models/extensions/components.d.ts +1 -1
- package/dist/models/extensions/components.d.ts.map +1 -1
- package/dist/models/gateway.d.ts +70 -0
- package/dist/models/gateway.d.ts.map +1 -1
- package/dist/models/group.d.ts +5 -0
- package/dist/models/group.d.ts.map +1 -1
- package/dist/models/managed-flow.d.ts +11 -0
- package/dist/models/managed-flow.d.ts.map +1 -1
- package/dist/models/oauth-request.d.ts +5 -0
- package/dist/models/oauth-request.d.ts.map +1 -1
- package/dist/models/oidc-discovery.d.ts +13 -0
- package/dist/models/oidc-discovery.d.ts.map +1 -1
- package/dist/models/presentation-definition.d.ts +48 -0
- package/dist/models/presentation-definition.d.ts.map +1 -0
- package/dist/models/project.d.ts +50 -0
- package/dist/models/project.d.ts.map +1 -0
- package/dist/models/resource-server.d.ts +14 -0
- package/dist/models/resource-server.d.ts.map +1 -1
- package/dist/models/session.d.ts +16 -0
- package/dist/models/session.d.ts.map +1 -1
- package/dist/models/sharing-policy.d.ts +39 -2
- package/dist/models/sharing-policy.d.ts.map +1 -1
- package/dist/models/token.d.ts +12 -0
- package/dist/models/token.d.ts.map +1 -1
- package/dist/models/user.d.ts +9 -0
- package/dist/models/user.d.ts.map +1 -1
- package/dist/utils/AuthenticationHelper.d.ts +4 -1
- package/dist/utils/AuthenticationHelper.d.ts.map +1 -1
- package/dist/utils/getCurrentOrganizationUnitFromClaims.d.ts +14 -0
- package/dist/utils/getCurrentOrganizationUnitFromClaims.d.ts.map +1 -0
- package/dist/utils/getFlowStepComponents.d.ts +26 -0
- package/dist/utils/getFlowStepComponents.d.ts.map +1 -0
- package/dist/utils/getVerifiedAttributes.d.ts +14 -0
- package/dist/utils/getVerifiedAttributes.d.ts.map +1 -0
- package/dist/utils/isVerifiableAttribute.d.ts +22 -0
- package/dist/utils/isVerifiableAttribute.d.ts.map +1 -0
- package/dist/utils/parseSelfFlowRequest.d.ts +24 -0
- package/dist/utils/parseSelfFlowRequest.d.ts.map +1 -0
- package/dist/utils/requestManagementResource.d.ts +2 -1
- package/dist/utils/requestManagementResource.d.ts.map +1 -1
- package/dist/utils/resolveOrganizationUnitEndpoint.d.ts +20 -0
- package/dist/utils/resolveOrganizationUnitEndpoint.d.ts.map +1 -0
- package/dist/utils/resolveResourceEndpoint.d.ts +1 -1
- package/dist/utils/resolveResourceEndpoint.d.ts.map +1 -1
- package/dist/utils/sharingPolicies.d.ts +126 -0
- package/dist/utils/sharingPolicies.d.ts.map +1 -0
- package/dist/utils/toManagementErrorMessage.d.ts +5 -3
- package/dist/utils/toManagementErrorMessage.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { ClientRegistration } from '../../../models/client-registration';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the getClientRegistration request.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetClientRegistrationConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the registered client.
|
|
9
|
+
*/
|
|
10
|
+
clientId: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves the registration of a dynamically registered client (RFC 7592). The client secret is
|
|
14
|
+
* not returned.
|
|
15
|
+
*
|
|
16
|
+
* @param config - Request configuration object.
|
|
17
|
+
* @returns A promise that resolves with the registration.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const registration = await getClientRegistration({baseUrl: 'https://localhost:8090', clientId});
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare const getClientRegistration: ({ clientId, ...config }: GetClientRegistrationConfig) => Promise<ClientRegistration>;
|
|
25
|
+
export default getClientRegistration;
|
|
26
|
+
//# sourceMappingURL=getClientRegistration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getClientRegistration.d.ts","sourceRoot":"","sources":["../../../../src/api/management/client-registrations/getClientRegistration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,kBAAkB,EAAC,MAAM,qCAAqC,CAAC;AAGvE;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,uBAAuB;IAC1E;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,qBAAqB,GAAU,yBAAuB,2BAA2B,KAAG,OAAO,CAAC,kBAAkB,CASjH,CAAC;AAEJ,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientRegistration } from '../../../models/client-registration';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a registration from the SDK's casing to the wire form, leaving out unset fields. Values,
|
|
4
|
+
* such as a `jwks` document, are sent as given.
|
|
5
|
+
*/
|
|
6
|
+
export declare const toClientRegistrationWire: (registration: object) => Record<string, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Converts a registration the server returned from the wire form to the SDK's casing.
|
|
9
|
+
*/
|
|
10
|
+
export declare const fromClientRegistrationWire: (wire: Record<string, unknown>) => ClientRegistration;
|
|
11
|
+
//# sourceMappingURL=mapClientRegistration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapClientRegistration.d.ts","sourceRoot":"","sources":["../../../../src/api/management/client-registrations/mapClientRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAC,MAAM,qCAAqC,CAAC;AAwCvE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,cAAc,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAYrF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,GAAI,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,kBAY1E,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { ClientRegistration, ClientRegistrationRequest } from '../../../models/client-registration';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the registerClient request.
|
|
5
|
+
*/
|
|
6
|
+
export interface RegisterClientConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* The client metadata to register.
|
|
9
|
+
*/
|
|
10
|
+
payload: ClientRegistrationRequest;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Registers an OAuth 2.0 client through dynamic client registration (RFC 7591).
|
|
14
|
+
*
|
|
15
|
+
* The result carries the client secret. This is the only time it is returned: it cannot be read
|
|
16
|
+
* back afterwards, so store it securely and never log it.
|
|
17
|
+
*
|
|
18
|
+
* @param config - Request configuration object.
|
|
19
|
+
* @returns A promise that resolves with the registration, including the client secret.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* const {clientId, clientSecret} = await registerClient({
|
|
24
|
+
* baseUrl: 'https://localhost:8090',
|
|
25
|
+
* payload: {clientName: 'My App', redirectUris: ['https://myapp.example.com/callback']},
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare const registerClient: ({ payload, ...config }: RegisterClientConfig) => Promise<ClientRegistration>;
|
|
30
|
+
export default registerClient;
|
|
31
|
+
//# sourceMappingURL=registerClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerClient.d.ts","sourceRoot":"","sources":["../../../../src/api/management/client-registrations/registerClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,kBAAkB,EAAE,yBAAyB,EAAC,MAAM,qCAAqC,CAAC;AAGlG;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,uBAAuB;IACnE;;OAEG;IACH,OAAO,EAAE,yBAAyB,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,cAAc,GAAU,wBAAsB,oBAAoB,KAAG,OAAO,CAAC,kBAAkB,CASlG,CAAC;AAEJ,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { ClientRegistration, ClientRegistrationUpdateRequest } from '../../../models/client-registration';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the updateClientRegistration request.
|
|
5
|
+
*/
|
|
6
|
+
export interface UpdateClientRegistrationConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the registered client.
|
|
9
|
+
*/
|
|
10
|
+
clientId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The client's new metadata. Replaces the registered metadata in full: omitted fields are not kept.
|
|
13
|
+
*/
|
|
14
|
+
payload: ClientRegistrationUpdateRequest;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Replaces the registration of a dynamically registered client (RFC 7592). The request carries
|
|
18
|
+
* `client_id`, set from `clientId`; the client ID and secret are kept.
|
|
19
|
+
*
|
|
20
|
+
* @param config - Request configuration object.
|
|
21
|
+
* @returns A promise that resolves with the updated registration.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const registration = await updateClientRegistration({
|
|
26
|
+
* baseUrl: 'https://localhost:8090',
|
|
27
|
+
* clientId,
|
|
28
|
+
* payload: {clientName: 'My Renamed App', redirectUris: ['https://myapp.example.com/callback2']},
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const updateClientRegistration: ({ clientId, payload, ...config }: UpdateClientRegistrationConfig) => Promise<ClientRegistration>;
|
|
33
|
+
export default updateClientRegistration;
|
|
34
|
+
//# sourceMappingURL=updateClientRegistration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateClientRegistration.d.ts","sourceRoot":"","sources":["../../../../src/api/management/client-registrations/updateClientRegistration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,kBAAkB,EAAE,+BAA+B,EAAC,MAAM,qCAAqC,CAAC;AAGxG;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,uBAAuB;IAC7E;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,+BAA+B,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,wBAAwB,GAAU,kCAIrC,8BAA8B,KAAG,OAAO,CAAC,kBAAkB,CAU3D,CAAC;AAEJ,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { CredentialConfiguration, CredentialConfigurationRequest } from '../../../models/credential-configuration';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the createCredentialConfiguration request.
|
|
5
|
+
*/
|
|
6
|
+
export interface CreateCredentialConfigurationConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* The credential configuration to create.
|
|
9
|
+
*/
|
|
10
|
+
payload: CredentialConfigurationRequest;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Creates a credential configuration.
|
|
14
|
+
*
|
|
15
|
+
* @param config - Request configuration object.
|
|
16
|
+
* @returns A promise that resolves with the credential configuration as the server stored it.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const item = await createCredentialConfiguration({baseUrl: 'https://localhost:8090', payload: {handle: 'pid', ouId, vct: 'urn:example:pid:1'}});
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const createCredentialConfiguration: ({ payload, ...config }: CreateCredentialConfigurationConfig) => Promise<CredentialConfiguration>;
|
|
24
|
+
export default createCredentialConfiguration;
|
|
25
|
+
//# sourceMappingURL=createCredentialConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCredentialConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/api/management/credential-configurations/createCredentialConfiguration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,uBAAuB,EAAE,8BAA8B,EAAC,MAAM,0CAA0C,CAAC;AAGjH;;GAEG;AACH,MAAM,WAAW,mCAAoC,SAAQ,uBAAuB;IAClF;;OAEG;IACH,OAAO,EAAE,8BAA8B,CAAC;CACzC;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,6BAA6B,GAAU,wBAG1C,mCAAmC,KAAG,OAAO,CAAC,uBAAuB,CAOpE,CAAC;AAEL,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration for the deleteCredentialConfiguration request.
|
|
4
|
+
*/
|
|
5
|
+
export interface DeleteCredentialConfigurationConfig extends ManagementRequestConfig {
|
|
6
|
+
/**
|
|
7
|
+
* Identifier of the credential configuration.
|
|
8
|
+
*/
|
|
9
|
+
configurationId: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Deletes a credential configuration. 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 deleteCredentialConfiguration({baseUrl: 'https://localhost:8090', configurationId});
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare const deleteCredentialConfiguration: ({ configurationId, ...config }: DeleteCredentialConfigurationConfig) => Promise<void>;
|
|
23
|
+
export default deleteCredentialConfiguration;
|
|
24
|
+
//# sourceMappingURL=deleteCredentialConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteCredentialConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/api/management/credential-configurations/deleteCredentialConfiguration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAG5D;;GAEG;AACH,MAAM,WAAW,mCAAoC,SAAQ,uBAAuB;IAClF;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,6BAA6B,GAAU,gCAG1C,mCAAmC,KAAG,OAAO,CAAC,IAAI,CAQpD,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { CredentialConfiguration } from '../../../models/credential-configuration';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the getCredentialConfiguration request.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetCredentialConfigurationConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the credential configuration.
|
|
9
|
+
*/
|
|
10
|
+
configurationId: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a credential configuration.
|
|
14
|
+
*
|
|
15
|
+
* @param config - Request configuration object.
|
|
16
|
+
* @returns A promise that resolves with the credential configuration.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const item = await getCredentialConfiguration({baseUrl: 'https://localhost:8090', configurationId});
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const getCredentialConfiguration: ({ configurationId, ...config }: GetCredentialConfigurationConfig) => Promise<CredentialConfiguration>;
|
|
24
|
+
export default getCredentialConfiguration;
|
|
25
|
+
//# sourceMappingURL=getCredentialConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCredentialConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/api/management/credential-configurations/getCredentialConfiguration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AAGjF;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,uBAAuB;IAC/E;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,0BAA0B,GAAU,gCAGvC,gCAAgC,KAAG,OAAO,CAAC,uBAAuB,CAOjE,CAAC;AAEL,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { CredentialConfigurationSummary } from '../../../models/credential-configuration';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the getCredentialConfigurations request.
|
|
5
|
+
*/
|
|
6
|
+
export type GetCredentialConfigurationsConfig = ManagementRequestConfig;
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the credential configurations.
|
|
9
|
+
*
|
|
10
|
+
* @param config - Request configuration object.
|
|
11
|
+
* @returns A promise that resolves with the credential configurations.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const configurations = await getCredentialConfigurations({baseUrl: 'https://localhost:8090'});
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare const getCredentialConfigurations: (config: GetCredentialConfigurationsConfig) => Promise<CredentialConfigurationSummary[]>;
|
|
19
|
+
export default getCredentialConfigurations;
|
|
20
|
+
//# sourceMappingURL=getCredentialConfigurations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCredentialConfigurations.d.ts","sourceRoot":"","sources":["../../../../src/api/management/credential-configurations/getCredentialConfigurations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,8BAA8B,EAAC,MAAM,0CAA0C,CAAC;AAGxF;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,uBAAuB,CAAC;AAExE;;;;;;;;;;GAUG;AACH,QAAA,MAAM,2BAA2B,GAC/B,QAAQ,iCAAiC,KACxC,OAAO,CAAC,8BAA8B,EAAE,CAMvC,CAAC;AAEL,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { CredentialConfiguration, CredentialConfigurationRequest } from '../../../models/credential-configuration';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the updateCredentialConfiguration request.
|
|
5
|
+
*/
|
|
6
|
+
export interface UpdateCredentialConfigurationConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the credential configuration.
|
|
9
|
+
*/
|
|
10
|
+
configurationId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The credential configuration's new content. Replaces the stored one.
|
|
13
|
+
*/
|
|
14
|
+
payload: CredentialConfigurationRequest;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Replaces a credential configuration.
|
|
18
|
+
*
|
|
19
|
+
* @param config - Request configuration object.
|
|
20
|
+
* @returns A promise that resolves with the credential configuration as the server stored it.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const item = await updateCredentialConfiguration({baseUrl: 'https://localhost:8090', configurationId, payload});
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
declare const updateCredentialConfiguration: ({ configurationId, payload, ...config }: UpdateCredentialConfigurationConfig) => Promise<CredentialConfiguration>;
|
|
28
|
+
export default updateCredentialConfiguration;
|
|
29
|
+
//# sourceMappingURL=updateCredentialConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateCredentialConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/api/management/credential-configurations/updateCredentialConfiguration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,uBAAuB,EAAE,8BAA8B,EAAC,MAAM,0CAA0C,CAAC;AAGjH;;GAEG;AACH,MAAM,WAAW,mCAAoC,SAAQ,uBAAuB;IAClF;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,OAAO,EAAE,8BAA8B,CAAC;CACzC;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,6BAA6B,GAAU,yCAI1C,mCAAmC,KAAG,OAAO,CAAC,uBAAuB,CAQpE,CAAC;AAEL,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { SharingPolicy, SharingPolicyRequest } from '../../../models/sharing-policy';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the createFlowSharingPolicy request.
|
|
5
|
+
*/
|
|
6
|
+
export interface CreateFlowSharingPolicyConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the flow.
|
|
9
|
+
*/
|
|
10
|
+
flowId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The policy to create.
|
|
13
|
+
*/
|
|
14
|
+
payload: SharingPolicyRequest;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Creates a sharing policy for a flow: 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 createFlowSharingPolicy({
|
|
25
|
+
* baseUrl: 'https://localhost:8090',
|
|
26
|
+
* flowId,
|
|
27
|
+
* payload: {childUnits: {mode: 'all'}},
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const createFlowSharingPolicy: ({ flowId, payload, ...config }: CreateFlowSharingPolicyConfig) => Promise<SharingPolicy>;
|
|
32
|
+
export default createFlowSharingPolicy;
|
|
33
|
+
//# sourceMappingURL=createFlowSharingPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFlowSharingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/api/management/flows/createFlowSharingPolicy.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 deleteFlowSharingPolicy request.
|
|
4
|
+
*/
|
|
5
|
+
export interface DeleteFlowSharingPolicyConfig extends ManagementRequestConfig {
|
|
6
|
+
/**
|
|
7
|
+
* Identifier of the flow.
|
|
8
|
+
*/
|
|
9
|
+
flowId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Identifier of the sharing policy.
|
|
12
|
+
*/
|
|
13
|
+
policyId: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Deletes a sharing policy of a flow.
|
|
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 deleteFlowSharingPolicy({baseUrl: 'https://localhost:8090', flowId, policyId});
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare const deleteFlowSharingPolicy: ({ flowId, policyId, ...config }: DeleteFlowSharingPolicyConfig) => Promise<void>;
|
|
27
|
+
export default deleteFlowSharingPolicy;
|
|
28
|
+
//# sourceMappingURL=deleteFlowSharingPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteFlowSharingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/api/management/flows/deleteFlowSharingPolicy.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,31 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { FlowResolvedOverlay } from '../../../models/sharing-policy';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the getFlowOverlayRules request.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetFlowOverlayRulesConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the flow.
|
|
9
|
+
*/
|
|
10
|
+
flowId: 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 flow: whether it owns or can see it, and the effective
|
|
18
|
+
* rule for each variable, keyed `variables.<identifier>`. An organization unit no policy reaches gets a
|
|
19
|
+
* not-found error.
|
|
20
|
+
*
|
|
21
|
+
* @param config - Request configuration object.
|
|
22
|
+
* @returns A promise that resolves with the resolved overlay.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const {rules} = await getFlowOverlayRules({baseUrl: 'https://localhost:8090', flowId, ouId});
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare const getFlowOverlayRules: ({ flowId, ouId, ...config }: GetFlowOverlayRulesConfig) => Promise<FlowResolvedOverlay>;
|
|
30
|
+
export default getFlowOverlayRules;
|
|
31
|
+
//# sourceMappingURL=getFlowOverlayRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFlowOverlayRules.d.ts","sourceRoot":"","sources":["../../../../src/api/management/flows/getFlowOverlayRules.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;;;;;;;;;;;;GAYG;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 getFlowSharingPolicies request.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetFlowSharingPoliciesConfig extends ManagementRequestConfig, Pick<ApiFilteringParams, 'limit' | 'offset'> {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the flow.
|
|
9
|
+
*/
|
|
10
|
+
flowId: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a page of the sharing policies of a flow.
|
|
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 getFlowSharingPolicies({baseUrl: 'https://localhost:8090', flowId});
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const getFlowSharingPolicies: ({ flowId, limit, offset, ...config }: GetFlowSharingPoliciesConfig) => Promise<SharingPolicyListResponse>;
|
|
24
|
+
export default getFlowSharingPolicies;
|
|
25
|
+
//# sourceMappingURL=getFlowSharingPolicies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFlowSharingPolicies.d.ts","sourceRoot":"","sources":["../../../../src/api/management/flows/getFlowSharingPolicies.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 getFlowSharingPolicy request.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetFlowSharingPolicyConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the flow.
|
|
9
|
+
*/
|
|
10
|
+
flowId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Identifier of the sharing policy.
|
|
13
|
+
*/
|
|
14
|
+
policyId: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a sharing policy of a flow.
|
|
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 getFlowSharingPolicy({baseUrl: 'https://localhost:8090', flowId, policyId});
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
declare const getFlowSharingPolicy: ({ flowId, policyId, ...config }: GetFlowSharingPolicyConfig) => Promise<SharingPolicy>;
|
|
28
|
+
export default getFlowSharingPolicy;
|
|
29
|
+
//# sourceMappingURL=getFlowSharingPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFlowSharingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/api/management/flows/getFlowSharingPolicy.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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { FlowVariables } from '../../../models/managed-flow';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the getFlowVariables request.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetFlowVariablesConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the flow.
|
|
9
|
+
*/
|
|
10
|
+
flowId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Identifier of the organization unit whose values are read. The flow has to be owned by, or shared
|
|
13
|
+
* with, it.
|
|
14
|
+
*/
|
|
15
|
+
ouId: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the values an organization unit has set for a flow's variables. The value in force for a
|
|
19
|
+
* variable is this override, or else its `defaultValue` from `getFlow`.
|
|
20
|
+
*
|
|
21
|
+
* @param config - Request configuration object.
|
|
22
|
+
* @returns A promise that resolves with the unit's values, keyed by variable identifier.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const {values} = await getFlowVariables({baseUrl: 'https://localhost:8090', flowId, ouId});
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare const getFlowVariables: ({ flowId, ouId, ...config }: GetFlowVariablesConfig) => Promise<FlowVariables>;
|
|
30
|
+
export default getFlowVariables;
|
|
31
|
+
//# sourceMappingURL=getFlowVariables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFlowVariables.d.ts","sourceRoot":"","sources":["../../../../src/api/management/flows/getFlowVariables.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,8BAA8B,CAAC;AAG3D;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,gBAAgB,GAAU,6BAA2B,sBAAsB,KAAG,OAAO,CAAC,aAAa,CASrG,CAAC;AAEL,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { SharingPolicy, SharingPolicyUpdateRequest } from '../../../models/sharing-policy';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the updateFlowSharingPolicy request.
|
|
5
|
+
*/
|
|
6
|
+
export interface UpdateFlowSharingPolicyConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the flow.
|
|
9
|
+
*/
|
|
10
|
+
flowId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The policy's new sections and the version being edited.
|
|
13
|
+
*/
|
|
14
|
+
payload: SharingPolicyUpdateRequest;
|
|
15
|
+
/**
|
|
16
|
+
* Identifier of the sharing policy.
|
|
17
|
+
*/
|
|
18
|
+
policyId: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Replaces the sections of a sharing policy of a flow. The payload names the version it edits, and
|
|
22
|
+
* an edit against any other version is refused.
|
|
23
|
+
*
|
|
24
|
+
* @param config - Request configuration object.
|
|
25
|
+
* @returns A promise that resolves with the policy as the server stored it.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```typescript
|
|
29
|
+
* const policy = await updateFlowSharingPolicy({
|
|
30
|
+
* baseUrl: 'https://localhost:8090',
|
|
31
|
+
* flowId,
|
|
32
|
+
* policyId,
|
|
33
|
+
* payload: {childUnits: {mode: 'all', excludedOuIds: [ouId]}, version: 1},
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
declare const updateFlowSharingPolicy: ({ flowId, payload, policyId, ...config }: UpdateFlowSharingPolicyConfig) => Promise<SharingPolicy>;
|
|
38
|
+
export default updateFlowSharingPolicy;
|
|
39
|
+
//# sourceMappingURL=updateFlowSharingPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateFlowSharingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/api/management/flows/updateFlowSharingPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAE,0BAA0B,EAAC,MAAM,gCAAgC,CAAC;AAIzF;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;IAC5E;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,0BAA0B,CAAC;IACpC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,uBAAuB,GAAU,0CAKpC,6BAA6B,KAAG,OAAO,CAAC,aAAa,CASpD,CAAC;AAEL,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { FlowVariableValue, FlowVariables } from '../../../models/managed-flow';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the updateFlowVariables request.
|
|
5
|
+
*/
|
|
6
|
+
export interface UpdateFlowVariablesConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the flow.
|
|
9
|
+
*/
|
|
10
|
+
flowId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Identifier of the organization unit whose values are set. The flow has to be owned by, or shared
|
|
13
|
+
* with, it.
|
|
14
|
+
*/
|
|
15
|
+
ouId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The value of each variable to set, keyed by identifier. The set replaces what the unit held, so a
|
|
18
|
+
* variable left out returns to its default.
|
|
19
|
+
*/
|
|
20
|
+
variables: Record<string, FlowVariableValue>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Replaces the values an organization unit holds for a flow's variables. Every value is validated before
|
|
24
|
+
* any is written.
|
|
25
|
+
*
|
|
26
|
+
* @param config - Request configuration object.
|
|
27
|
+
* @returns A promise that resolves with the unit's values after the change.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* const {values} = await updateFlowVariables({
|
|
32
|
+
* baseUrl: 'https://localhost:8090',
|
|
33
|
+
* flowId,
|
|
34
|
+
* ouId,
|
|
35
|
+
* variables: {supportEmail: 'help@example.com', showRegistrationLink: true},
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
declare const updateFlowVariables: ({ flowId, ouId, variables, ...config }: UpdateFlowVariablesConfig) => Promise<FlowVariables>;
|
|
40
|
+
export default updateFlowVariables;
|
|
41
|
+
//# sourceMappingURL=updateFlowVariables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateFlowVariables.d.ts","sourceRoot":"","sources":["../../../../src/api/management/flows/updateFlowVariables.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,iBAAiB,EAAE,aAAa,EAAC,MAAM,8BAA8B,CAAC;AAG9E;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,uBAAuB;IACxE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,mBAAmB,GAAU,wCAKhC,yBAAyB,KAAG,OAAO,CAAC,aAAa,CAShD,CAAC;AAEL,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { GatewayMaster } from '../../../models/gateway';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the getGatewayMaster request.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetGatewayMasterConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the gateway.
|
|
9
|
+
*/
|
|
10
|
+
gatewayId: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a gateway's latest master: every resource deployed to it, as the gateway last accepted it.
|
|
14
|
+
*
|
|
15
|
+
* @param config - Request configuration object.
|
|
16
|
+
* @returns A promise that resolves with the master.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const {entries} = await getGatewayMaster({baseUrl: 'https://localhost:8090', gatewayId});
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const getGatewayMaster: ({ gatewayId, ...config }: GetGatewayMasterConfig) => Promise<GatewayMaster>;
|
|
24
|
+
export default getGatewayMaster;
|
|
25
|
+
//# sourceMappingURL=getGatewayMaster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGatewayMaster.d.ts","sourceRoot":"","sources":["../../../../src/api/management/gateways/getGatewayMaster.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAGtD;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,gBAAgB,GAAU,0BAAwB,sBAAsB,KAAG,OAAO,CAAC,aAAa,CAQlG,CAAC;AAEL,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ManagementRequestConfig } from '../../../models/api';
|
|
2
|
+
import { GatewayMaster } from '../../../models/gateway';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the getGatewayMasterHistory request.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetGatewayMasterHistoryConfig extends ManagementRequestConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier of the gateway.
|
|
9
|
+
*/
|
|
10
|
+
gatewayId: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves the masters kept for a gateway, newest first, each with its summary but without its
|
|
14
|
+
* entries or resources.
|
|
15
|
+
*
|
|
16
|
+
* @param config - Request configuration object.
|
|
17
|
+
* @returns A promise that resolves with the masters.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const masters = await getGatewayMasterHistory({baseUrl: 'https://localhost:8090', gatewayId});
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare const getGatewayMasterHistory: ({ gatewayId, ...config }: GetGatewayMasterHistoryConfig) => Promise<GatewayMaster[]>;
|
|
25
|
+
export default getGatewayMasterHistory;
|
|
26
|
+
//# sourceMappingURL=getGatewayMasterHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGatewayMasterHistory.d.ts","sourceRoot":"","sources":["../../../../src/api/management/gateways/getGatewayMasterHistory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAGtD;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;IAC5E;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,uBAAuB,GAAU,0BAGpC,6BAA6B,KAAG,OAAO,CAAC,aAAa,EAAE,CAQtD,CAAC;AAEL,eAAe,uBAAuB,CAAC"}
|