1 | import { Protocol } from './protocol';
|
2 | import { Destination } from './destination/destination-service-types';
|
3 | import { JwtPair } from './jwt';
|
4 | /**
|
5 | * Given a destination and a JWT (required for subscriber destinations), this function will add a proxy configuration to a destination.
|
6 | * See also [[ProxyConfiguration]].
|
7 | *
|
8 | * This function will reject if no connectivity service is bound, no XSUAA service with plan application is bound or the client credentials grant with the XSUAA service fails.
|
9 | *
|
10 | * @Deprecated Since v1.16.0. Use [[addProxyConfigurationOnPrem]] instead.
|
11 | * @param destination - The destination to which the proxy configuration should be added.
|
12 | * @param jwt - The JWT of the current user.
|
13 | * @returns A promise resolving to the destination with the added proxy configuration.
|
14 | */
|
15 | export declare function addProxyConfiguration(destination: Destination, jwt?: string): Promise<Destination>;
|
16 | export declare function addProxyConfigurationOnPrem(destination: Destination, jwt: string | JwtPair | undefined): Promise<Destination>;
|
17 | interface HostAndPort {
|
18 | host: string;
|
19 | port: number;
|
20 | protocol: Protocol.HTTP;
|
21 | }
|
22 | export declare function proxyHostAndPort(): HostAndPort;
|
23 | export {};
|
24 | //# sourceMappingURL=connectivity-service.d.ts.map |
\ | No newline at end of file |