@salesforce/lds-adapters-platform-named-credential 0.131.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/LICENSE.txt +82 -0
- package/dist/es/es2018/platform-named-credential.js +1029 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +66 -0
- package/dist/es/es2018/types/src/generated/adapters/deleteCredential.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getExternalCredentials.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/adapters/getOAuthCredentialAuthUrl.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/resources/deleteNamedCredentialsCredential.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/resources/getNamedCredentialsCredential.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getNamedCredentialsExternalCredentials.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getNamedCredentialsExternalCredentialsByDeveloperName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postNamedCredentialsCredential.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postNamedCredentialsCredentialAuthUrlOAuth.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/putNamedCredentialsCredential.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/CredentialInputRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/CredentialMapRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/CredentialRepresentation.d.ts +63 -0
- package/dist/es/es2018/types/src/generated/types/ExternalCredentialListRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/ExternalCredentialPrincipalRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/ExternalCredentialRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/NamedCredentialRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/OAuthCredentialAuthUrlInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/OAuthCredentialAuthUrlInputRepresentationWrapper.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/OAuthCredentialAuthUrlRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
- package/package.json +67 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1070 -0
- package/src/raml/api.raml +330 -0
- package/src/raml/luvio.raml +38 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
|
+
declare const ObjectKeys: {
|
|
4
|
+
(o: object): string[];
|
|
5
|
+
(o: {}): string[];
|
|
6
|
+
}, ObjectFreeze: {
|
|
7
|
+
<T extends Function>(f: T): T;
|
|
8
|
+
<T_1 extends {
|
|
9
|
+
[idx: string]: object | U | null | undefined;
|
|
10
|
+
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
11
|
+
<T_2>(o: T_2): Readonly<T_2>;
|
|
12
|
+
}, ObjectCreate: {
|
|
13
|
+
(o: object | null): any;
|
|
14
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
15
|
+
};
|
|
16
|
+
export { ObjectFreeze, ObjectCreate, ObjectKeys };
|
|
17
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
18
|
+
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
19
|
+
export interface AdapterValidationConfig {
|
|
20
|
+
displayName: string;
|
|
21
|
+
parameters: {
|
|
22
|
+
required: string[];
|
|
23
|
+
optional: string[];
|
|
24
|
+
unsupported?: string[];
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Validates an adapter config is well-formed.
|
|
29
|
+
* @param config The config to validate.
|
|
30
|
+
* @param adapter The adapter validation configuration.
|
|
31
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
32
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
33
|
+
*/
|
|
34
|
+
export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
|
|
35
|
+
export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
|
|
36
|
+
export type UncoercedConfiguration<Base, Options extends {
|
|
37
|
+
[key in keyof Base]?: any;
|
|
38
|
+
}> = {
|
|
39
|
+
[Key in keyof Base]?: Base[Key] | Options[Key];
|
|
40
|
+
};
|
|
41
|
+
export type Untrusted<Base> = Partial<Base>;
|
|
42
|
+
export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
|
|
43
|
+
export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
|
|
44
|
+
export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
|
|
45
|
+
export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
|
|
46
|
+
export declare const snapshotRefreshOptions: {
|
|
47
|
+
overrides: {
|
|
48
|
+
headers: {
|
|
49
|
+
'Cache-Control': string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
|
|
55
|
+
* This is needed because insertion order for JSON.stringify(object) affects output:
|
|
56
|
+
* JSON.stringify({a: 1, b: 2})
|
|
57
|
+
* "{"a":1,"b":2}"
|
|
58
|
+
* JSON.stringify({b: 2, a: 1})
|
|
59
|
+
* "{"b":2,"a":1}"
|
|
60
|
+
* @param data Data to be JSON-stringified.
|
|
61
|
+
* @returns JSON.stringified value with consistent ordering of keys.
|
|
62
|
+
*/
|
|
63
|
+
export declare function stableJSONStringify(node: any): string | undefined;
|
|
64
|
+
export declare function getFetchResponseStatusText(status: number): string;
|
|
65
|
+
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
66
|
+
export declare const keyPrefix = "named-credential";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
|
|
2
|
+
import { ResourceRequestConfig as resources_deleteNamedCredentialsCredential_ResourceRequestConfig } from '../resources/deleteNamedCredentialsCredential';
|
|
3
|
+
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, DeleteAdapterFactory as $64$luvio_engine_DeleteAdapterFactory } from '@luvio/engine';
|
|
4
|
+
export declare const adapterName = "deleteCredential";
|
|
5
|
+
export declare const deleteCredential_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
6
|
+
export interface DeleteCredentialConfig {
|
|
7
|
+
externalCredential?: string;
|
|
8
|
+
principalName?: string;
|
|
9
|
+
principalType?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function createResourceParams(config: DeleteCredentialConfig): resources_deleteNamedCredentialsCredential_ResourceRequestConfig;
|
|
12
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<DeleteCredentialConfig>): adapter$45$utils_Untrusted<DeleteCredentialConfig>;
|
|
13
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): DeleteCredentialConfig | null;
|
|
14
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: DeleteCredentialConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<void>;
|
|
15
|
+
export declare const deleteCredentialAdapterFactory: $64$luvio_engine_DeleteAdapterFactory<DeleteCredentialConfig>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
|
|
2
|
+
import { ResourceRequestConfig as resources_getNamedCredentialsExternalCredentials_ResourceRequestConfig } from '../resources/getNamedCredentialsExternalCredentials';
|
|
3
|
+
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
|
+
import { ExternalCredentialListRepresentation as types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation } from '../types/ExternalCredentialListRepresentation';
|
|
5
|
+
export declare const adapterName = "getExternalCredentials";
|
|
6
|
+
export declare const getExternalCredentials_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
|
+
export interface GetExternalCredentialsConfig {
|
|
8
|
+
}
|
|
9
|
+
export declare function createResourceParams(config: GetExternalCredentialsConfig): resources_getNamedCredentialsExternalCredentials_ResourceRequestConfig;
|
|
10
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetExternalCredentialsConfig): string;
|
|
11
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetExternalCredentialsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetExternalCredentialsConfig>): adapter$45$utils_Untrusted<GetExternalCredentialsConfig>;
|
|
13
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetExternalCredentialsConfig | null;
|
|
14
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetExternalCredentialsConfig): $64$luvio_engine_Fragment;
|
|
15
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetExternalCredentialsConfig): $64$luvio_engine_Snapshot<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation, any>;
|
|
16
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetExternalCredentialsConfig, resourceParams: resources_getNamedCredentialsExternalCredentials_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation, any>>;
|
|
17
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetExternalCredentialsConfig, resourceParams: resources_getNamedCredentialsExternalCredentials_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
18
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetExternalCredentialsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation, any>>;
|
|
19
|
+
export type BuildSnapshotContext = {
|
|
20
|
+
luvio: $64$luvio_engine_Luvio;
|
|
21
|
+
config: GetExternalCredentialsConfig;
|
|
22
|
+
};
|
|
23
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation, any>>;
|
|
24
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation>): $64$luvio_engine_Snapshot<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation, any>;
|
|
25
|
+
export declare const getExternalCredentialsAdapterFactory: $64$luvio_engine_AdapterFactory<GetExternalCredentialsConfig, types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
|
|
2
|
+
import { OAuthCredentialAuthUrlInputRepresentation as types_OAuthCredentialAuthUrlInputRepresentation_OAuthCredentialAuthUrlInputRepresentation } from '../types/OAuthCredentialAuthUrlInputRepresentation';
|
|
3
|
+
import { ResourceRequestConfig as resources_postNamedCredentialsCredentialAuthUrlOAuth_ResourceRequestConfig } from '../resources/postNamedCredentialsCredentialAuthUrlOAuth';
|
|
4
|
+
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
5
|
+
import { OAuthCredentialAuthUrlRepresentation as types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation } from '../types/OAuthCredentialAuthUrlRepresentation';
|
|
6
|
+
export declare const adapterName = "getOAuthCredentialAuthUrl";
|
|
7
|
+
export declare const getOAuthCredentialAuthUrl_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetOAuthCredentialAuthUrlConfig {
|
|
9
|
+
requestBody: types_OAuthCredentialAuthUrlInputRepresentation_OAuthCredentialAuthUrlInputRepresentation;
|
|
10
|
+
}
|
|
11
|
+
export declare function createResourceParams(config: GetOAuthCredentialAuthUrlConfig): resources_postNamedCredentialsCredentialAuthUrlOAuth_ResourceRequestConfig;
|
|
12
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetOAuthCredentialAuthUrlConfig>): adapter$45$utils_Untrusted<GetOAuthCredentialAuthUrlConfig>;
|
|
13
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetOAuthCredentialAuthUrlConfig | null;
|
|
14
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetOAuthCredentialAuthUrlConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation, any>>;
|
|
15
|
+
export declare const getOAuthCredentialAuthUrlAdapterFactory: $64$luvio_engine_AdapterFactory<GetOAuthCredentialAuthUrlConfig, types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare let deleteCredential: any;
|
|
2
|
+
declare let getExternalCredentials: any;
|
|
3
|
+
declare let getOAuthCredentialAuthUrl: any;
|
|
4
|
+
declare let getExternalCredentials_imperative: any;
|
|
5
|
+
export { deleteCredential, getExternalCredentials, getOAuthCredentialAuthUrl, getExternalCredentials_imperative };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
export interface ResourceRequestConfig {
|
|
3
|
+
queryParams: {
|
|
4
|
+
externalCredential?: string;
|
|
5
|
+
principalName?: string;
|
|
6
|
+
principalType?: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
|
+
export declare function evictSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): void;
|
|
13
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
14
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { CredentialRepresentation as types_CredentialRepresentation_CredentialRepresentation } from '../types/CredentialRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
externalCredential?: string;
|
|
6
|
+
principalName?: string;
|
|
7
|
+
principalType?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CredentialRepresentation_CredentialRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
14
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CredentialRepresentation_CredentialRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CredentialRepresentation_CredentialRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CredentialRepresentation_CredentialRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CredentialRepresentation_CredentialRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CredentialRepresentation_CredentialRepresentation, any>;
|
|
15
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CredentialRepresentation_CredentialRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
16
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
17
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/getNamedCredentialsExternalCredentials.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { ExternalCredentialListRepresentation as types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation } from '../types/ExternalCredentialListRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
}
|
|
5
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
6
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
7
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
8
|
+
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
9
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation, any>;
|
|
10
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ExternalCredentialListRepresentation_ExternalCredentialListRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
11
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
12
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { ExternalCredentialRepresentation as types_ExternalCredentialRepresentation_ExternalCredentialRepresentation } from '../types/ExternalCredentialRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
developerName: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ExternalCredentialRepresentation_ExternalCredentialRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ExternalCredentialRepresentation_ExternalCredentialRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ExternalCredentialRepresentation_ExternalCredentialRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ExternalCredentialRepresentation_ExternalCredentialRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ExternalCredentialRepresentation_ExternalCredentialRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ExternalCredentialRepresentation_ExternalCredentialRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ExternalCredentialRepresentation_ExternalCredentialRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { CredentialRepresentation as types_CredentialRepresentation_CredentialRepresentation } from '../types/CredentialRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
authenticationProtocol: string;
|
|
6
|
+
credentials: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
externalCredential: string;
|
|
10
|
+
principalName: string;
|
|
11
|
+
principalType: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
15
|
+
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CredentialRepresentation_CredentialRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
16
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CredentialRepresentation_CredentialRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CredentialRepresentation_CredentialRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CredentialRepresentation_CredentialRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CredentialRepresentation_CredentialRepresentation, any>;
|
|
17
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/postNamedCredentialsCredentialAuthUrlOAuth.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OAuthCredentialAuthUrlInputRepresentation as types_OAuthCredentialAuthUrlInputRepresentation_OAuthCredentialAuthUrlInputRepresentation } from '../types/OAuthCredentialAuthUrlInputRepresentation';
|
|
2
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
3
|
+
import { OAuthCredentialAuthUrlRepresentation as types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation } from '../types/OAuthCredentialAuthUrlRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
requestBody: types_OAuthCredentialAuthUrlInputRepresentation_OAuthCredentialAuthUrlInputRepresentation;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_OAuthCredentialAuthUrlRepresentation_OAuthCredentialAuthUrlRepresentation, any>;
|
|
12
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
13
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { CredentialRepresentation as types_CredentialRepresentation_CredentialRepresentation } from '../types/CredentialRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
authenticationProtocol: string;
|
|
6
|
+
credentials: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
externalCredential: string;
|
|
10
|
+
principalName: string;
|
|
11
|
+
principalType: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
15
|
+
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CredentialRepresentation_CredentialRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
16
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CredentialRepresentation_CredentialRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CredentialRepresentation_CredentialRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CredentialRepresentation_CredentialRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CredentialRepresentation_CredentialRepresentation, any>;
|
|
17
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "954bf557ea2c26a3166c652906d6cd91";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CredentialInputRepresentation, existing: CredentialInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CredentialInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CredentialInputRepresentationNormalized, incoming: CredentialInputRepresentationNormalized): boolean;
|
|
8
|
+
export declare function deepFreeze(input: CredentialInputRepresentation): void;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: CredentialInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
|
+
/**
|
|
12
|
+
* Credential input representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CredentialInputRepresentationNormalized {
|
|
18
|
+
/** Authentication protocol of the external credential */
|
|
19
|
+
authenticationProtocol: string;
|
|
20
|
+
/** Protocol specific credentials */
|
|
21
|
+
credentials: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
/** External Credential DeveloperName */
|
|
25
|
+
externalCredential: string;
|
|
26
|
+
/** Principal Name of principals */
|
|
27
|
+
principalName: string;
|
|
28
|
+
/** Principal Type of principals. Allowed values are NamedPrincipal or PerUserPrincipal */
|
|
29
|
+
principalType: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Credential input representation
|
|
33
|
+
*
|
|
34
|
+
* Keys:
|
|
35
|
+
* (none)
|
|
36
|
+
*/
|
|
37
|
+
export interface CredentialInputRepresentation {
|
|
38
|
+
authenticationProtocol: string;
|
|
39
|
+
credentials: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
42
|
+
externalCredential: string;
|
|
43
|
+
principalName: string;
|
|
44
|
+
principalType: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "3ef906c711ac375edb6b96a9e61f73d8";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CredentialMapRepresentation, existing: CredentialMapRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CredentialMapRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CredentialMapRepresentationNormalized, incoming: CredentialMapRepresentationNormalized): boolean;
|
|
8
|
+
export declare function deepFreeze(input: CredentialMapRepresentation): void;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: CredentialMapRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
|
+
/**
|
|
12
|
+
* credentials map wrapper used in CredentialInputRepresentation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CredentialMapRepresentationNormalized {
|
|
18
|
+
/** wrapped credentials map */
|
|
19
|
+
map: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* credentials map wrapper used in CredentialInputRepresentation
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface CredentialMapRepresentation {
|
|
30
|
+
map: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "ec83d5fbf9eda3a00e329c792f6bc5a0";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
6
|
+
externalCredential: string;
|
|
7
|
+
principalType: string;
|
|
8
|
+
principalName: string | null;
|
|
9
|
+
}
|
|
10
|
+
export type CredentialRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export type PartialCredentialRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): CredentialRepresentationNormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CredentialRepresentation): string;
|
|
15
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CredentialRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function normalize(input: CredentialRepresentation, existing: CredentialRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CredentialRepresentationNormalized;
|
|
17
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
|
+
export declare function equals(existing: CredentialRepresentationNormalized, incoming: CredentialRepresentationNormalized): boolean;
|
|
19
|
+
export declare function deepFreeze(input: CredentialRepresentation): void;
|
|
20
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
21
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: CredentialRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
22
|
+
/**
|
|
23
|
+
* Output representation for Credential
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* externalCredential (string): externalCredential
|
|
27
|
+
* principalType (string): principalType
|
|
28
|
+
* principalName (string | null): principalName
|
|
29
|
+
*/
|
|
30
|
+
export interface CredentialRepresentationNormalized {
|
|
31
|
+
/** Authentication protocol of the external credential */
|
|
32
|
+
authenticationProtocol: string;
|
|
33
|
+
/** Authentication Status. It's authenticated if external credential has all required credentials for this principal */
|
|
34
|
+
authenticationStatus: string;
|
|
35
|
+
/** Protocol specific credentials */
|
|
36
|
+
credentials: {
|
|
37
|
+
[key: string]: string;
|
|
38
|
+
};
|
|
39
|
+
/** External credential developer name */
|
|
40
|
+
externalCredential: string;
|
|
41
|
+
/** Principal parameter name associated with these credentials */
|
|
42
|
+
principalName: string | null;
|
|
43
|
+
/** Principal Type. It's either NamedPrincipal or PerUserPrincipal */
|
|
44
|
+
principalType: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Output representation for Credential
|
|
48
|
+
*
|
|
49
|
+
* Keys:
|
|
50
|
+
* externalCredential (string): externalCredential
|
|
51
|
+
* principalType (string): principalType
|
|
52
|
+
* principalName (string | null): principalName
|
|
53
|
+
*/
|
|
54
|
+
export interface CredentialRepresentation {
|
|
55
|
+
authenticationProtocol: string;
|
|
56
|
+
authenticationStatus: string;
|
|
57
|
+
credentials: {
|
|
58
|
+
[key: string]: string;
|
|
59
|
+
};
|
|
60
|
+
externalCredential: string;
|
|
61
|
+
principalName: string | null;
|
|
62
|
+
principalType: string;
|
|
63
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
import { ExternalCredentialRepresentation as ExternalCredentialRepresentation_ExternalCredentialRepresentation } from './ExternalCredentialRepresentation';
|
|
3
|
+
export declare const VERSION = "81417919a5a3d6b3e4fc26ab05d87aea";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: ExternalCredentialListRepresentation, existing: ExternalCredentialListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalCredentialListRepresentationNormalized;
|
|
7
|
+
export interface DynamicIngestParams {
|
|
8
|
+
externalCredentials: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
}
|
|
10
|
+
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ExternalCredentialListRepresentation, existing: ExternalCredentialListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ExternalCredentialListRepresentationNormalized;
|
|
11
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
12
|
+
export interface DynamicSelectParams {
|
|
13
|
+
externalCredentials?: $64$luvio_engine_LinkSelection;
|
|
14
|
+
}
|
|
15
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
|
+
export declare function equals(existing: ExternalCredentialListRepresentationNormalized, incoming: ExternalCredentialListRepresentationNormalized): boolean;
|
|
17
|
+
export declare function deepFreeze(input: ExternalCredentialListRepresentation): void;
|
|
18
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalCredentialListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
20
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
21
|
+
/**
|
|
22
|
+
* Output representation for External Credential List
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface ExternalCredentialListRepresentationNormalized {
|
|
28
|
+
/** List of external credentials */
|
|
29
|
+
externalCredentials: Array<$64$luvio_engine_StoreLink>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Output representation for External Credential List
|
|
33
|
+
*
|
|
34
|
+
* Keys:
|
|
35
|
+
* (none)
|
|
36
|
+
*/
|
|
37
|
+
export interface ExternalCredentialListRepresentation {
|
|
38
|
+
externalCredentials: Array<ExternalCredentialRepresentation_ExternalCredentialRepresentation>;
|
|
39
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ExternalCredentialPrincipalRepresentation.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "0874099e8f2a31ddf81f3ce490386603";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ExternalCredentialPrincipalRepresentation, existing: ExternalCredentialPrincipalRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalCredentialPrincipalRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ExternalCredentialPrincipalRepresentationNormalized, incoming: ExternalCredentialPrincipalRepresentationNormalized): boolean;
|
|
8
|
+
export declare function deepFreeze(input: ExternalCredentialPrincipalRepresentation): void;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalCredentialPrincipalRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
|
+
/**
|
|
12
|
+
* Output representation for an External Credential principal
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface ExternalCredentialPrincipalRepresentationNormalized {
|
|
18
|
+
/** Authentication Status for credentials */
|
|
19
|
+
authenticationStatus: string;
|
|
20
|
+
/** Principal name */
|
|
21
|
+
principalName: string;
|
|
22
|
+
/** Principal Type. It's either NamedPrincipal or PerUser */
|
|
23
|
+
principalType: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Output representation for an External Credential principal
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface ExternalCredentialPrincipalRepresentation {
|
|
32
|
+
authenticationStatus: string;
|
|
33
|
+
principalName: string;
|
|
34
|
+
principalType: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ExternalCredentialPrincipalRepresentation as ExternalCredentialPrincipalRepresentation_ExternalCredentialPrincipalRepresentation } from './ExternalCredentialPrincipalRepresentation';
|
|
2
|
+
import { NamedCredentialRepresentation as NamedCredentialRepresentation_NamedCredentialRepresentation } from './NamedCredentialRepresentation';
|
|
3
|
+
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
4
|
+
export declare const VERSION = "fd37a032d72e3491fe4d211486a3fea1";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
+
developerName: string;
|
|
9
|
+
}
|
|
10
|
+
export type ExternalCredentialRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export type PartialExternalCredentialRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ExternalCredentialRepresentationNormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ExternalCredentialRepresentation): string;
|
|
15
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ExternalCredentialRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function normalize(input: ExternalCredentialRepresentation, existing: ExternalCredentialRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalCredentialRepresentationNormalized;
|
|
17
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
|
+
export declare function equals(existing: ExternalCredentialRepresentationNormalized, incoming: ExternalCredentialRepresentationNormalized): boolean;
|
|
19
|
+
export declare function deepFreeze(input: ExternalCredentialRepresentation): void;
|
|
20
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
21
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalCredentialRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
22
|
+
/**
|
|
23
|
+
* Output representation for External Credential
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* developerName (string): developerName
|
|
27
|
+
*/
|
|
28
|
+
export interface ExternalCredentialRepresentationNormalized {
|
|
29
|
+
/** Authentication protocol of the external credential */
|
|
30
|
+
authenticationProtocol: string;
|
|
31
|
+
/** Authentication Status. It's authenticated if external credential has all required credentials for at least one principal */
|
|
32
|
+
authenticationStatus: string;
|
|
33
|
+
/** External Credential developer name */
|
|
34
|
+
developerName: string;
|
|
35
|
+
/** External Credential master label */
|
|
36
|
+
masterLabel: string;
|
|
37
|
+
/** List of principals the credential has */
|
|
38
|
+
principals: Array<ExternalCredentialPrincipalRepresentation_ExternalCredentialPrincipalRepresentation>;
|
|
39
|
+
/** List of named credentials associated to the external credential */
|
|
40
|
+
relatedNamedCredentials: Array<NamedCredentialRepresentation_NamedCredentialRepresentation>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Output representation for External Credential
|
|
44
|
+
*
|
|
45
|
+
* Keys:
|
|
46
|
+
* developerName (string): developerName
|
|
47
|
+
*/
|
|
48
|
+
export interface ExternalCredentialRepresentation {
|
|
49
|
+
authenticationProtocol: string;
|
|
50
|
+
authenticationStatus: string;
|
|
51
|
+
developerName: string;
|
|
52
|
+
masterLabel: string;
|
|
53
|
+
principals: Array<ExternalCredentialPrincipalRepresentation_ExternalCredentialPrincipalRepresentation>;
|
|
54
|
+
relatedNamedCredentials: Array<NamedCredentialRepresentation_NamedCredentialRepresentation>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "95db03e0e8990cc8f51f006ccf355bf9";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: NamedCredentialRepresentation, existing: NamedCredentialRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NamedCredentialRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: NamedCredentialRepresentationNormalized, incoming: NamedCredentialRepresentationNormalized): boolean;
|
|
8
|
+
export declare function deepFreeze(input: NamedCredentialRepresentation): void;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: NamedCredentialRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
|
+
/**
|
|
12
|
+
* Output representation for a named credential associated to an external credential
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface NamedCredentialRepresentationNormalized {
|
|
18
|
+
/** NamedCredential developer name */
|
|
19
|
+
developerName: string;
|
|
20
|
+
/** NamedCredential master label */
|
|
21
|
+
masterLabel: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Output representation for a named credential associated to an external credential
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface NamedCredentialRepresentation {
|
|
30
|
+
developerName: string;
|
|
31
|
+
masterLabel: string;
|
|
32
|
+
}
|