UNPKG

1.54 kBTypeScriptView Raw
1import Authentication from '@bearer/types/lib/authentications';
2export declare type BearerEnv = 'dev' | 'staging' | 'production';
3export declare type BaseConfig = {
4 DeploymentUrl: string;
5 IntegrationServiceHost: string;
6 IntegrationServiceUrl: string;
7 BearerEnv: string;
8 DeveloperPortalAPIUrl: string;
9 DeveloperPortalUrl: string;
10 CdnHost: string;
11 LoginDomain: string;
12};
13export declare type BearerConfig = {
14 OrgId: string;
15 Username: string;
16 ExpiresAt: number;
17 authorization: {
18 AuthenticationResult?: {
19 IdToken: string;
20 RefreshToken: string;
21 TokenType: string;
22 ExpiresIn: number;
23 AccessToken: string;
24 };
25 };
26 open: false;
27 configs: string[];
28 config: string;
29};
30export declare type IntegrationConfig = {
31 integrationId: string;
32 integrationUuid: string | null;
33 orgId: string;
34 integrationTitle: string;
35 open: boolean;
36 configs: string[];
37 rootPathRc: string | null;
38 config: string;
39};
40export declare type AuthConfig = {
41 authType: Authentication;
42};
43export declare type IntegrationBuildEnv = {
44 BEARER_INTEGRATION_ID: string;
45 BEARER_INTEGRATION_TAG_NAME: string;
46 BEARER_INTEGRATION_HOST: string;
47 BEARER_AUTHORIZATION_HOST: string;
48 CDN_HOST: string;
49};
50export declare type TAccessToken = {
51 access_token: string;
52 id_token: string;
53 refresh_token: string;
54 scope: string;
55 expires_in: number;
56 expires_at: number;
57 token_type: string;
58};