@salesforce/lds-adapters-sfap-einstein-copilot-bot 0.1.0-dev1
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/sfap-einstein-copilot-bot.js +1253 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getStatus.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/adapters/startSession.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinBotsV1Status.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinBotsV1V5.3.0BotsSessionsByBotId.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/Error.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/ForceConfig.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/FormatTypeCapability.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/types/HyperLink.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/InitMessageEnvelope.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/Links.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/MessageTypeCapability.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/NormalizedEntity.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/NormalizedIntent.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/Referrer.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ResponseEnvelope.d.ts +59 -0
- package/dist/es/es2018/types/src/generated/types/ResponseOptions.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/ResponseOptionsVariables.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/RichContentCapability.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/Status.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/TextInitMessage.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1290 -0
- package/src/raml/api.raml +369 -0
- package/src/raml/luvio.raml +25 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
|
+
declare const ObjectKeys: {
|
|
4
|
+
(o: object): string[];
|
|
5
|
+
(o: {}): string[];
|
|
6
|
+
}, ObjectCreate: {
|
|
7
|
+
(o: object | null): any;
|
|
8
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
9
|
+
};
|
|
10
|
+
export { ObjectCreate, ObjectKeys };
|
|
11
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
12
|
+
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
13
|
+
export interface AdapterValidationConfig {
|
|
14
|
+
displayName: string;
|
|
15
|
+
parameters: {
|
|
16
|
+
required: string[];
|
|
17
|
+
optional: string[];
|
|
18
|
+
unsupported?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Validates an adapter config is well-formed.
|
|
23
|
+
* @param config The config to validate.
|
|
24
|
+
* @param adapter The adapter validation configuration.
|
|
25
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
26
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
27
|
+
*/
|
|
28
|
+
export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
|
|
29
|
+
export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
|
|
30
|
+
export type UncoercedConfiguration<Base, Options extends {
|
|
31
|
+
[key in keyof Base]?: any;
|
|
32
|
+
}> = {
|
|
33
|
+
[Key in keyof Base]?: Base[Key] | Options[Key];
|
|
34
|
+
};
|
|
35
|
+
export type Untrusted<Base> = Partial<Base>;
|
|
36
|
+
export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
|
|
37
|
+
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>;
|
|
38
|
+
export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
|
|
39
|
+
export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
|
|
40
|
+
export declare const snapshotRefreshOptions: {
|
|
41
|
+
overrides: {
|
|
42
|
+
headers: {
|
|
43
|
+
'Cache-Control': string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
|
|
49
|
+
* This is needed because insertion order for JSON.stringify(object) affects output:
|
|
50
|
+
* JSON.stringify({a: 1, b: 2})
|
|
51
|
+
* "{"a":1,"b":2}"
|
|
52
|
+
* JSON.stringify({b: 2, a: 1})
|
|
53
|
+
* "{"b":2,"a":1}"
|
|
54
|
+
* @param data Data to be JSON-stringified.
|
|
55
|
+
* @returns JSON.stringified value with consistent ordering of keys.
|
|
56
|
+
*/
|
|
57
|
+
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
|
+
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
|
+
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
|
+
export declare const keyPrefix = "einstein-copilot-bot";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, 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';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getEinsteinBotsV1Status_ResourceRequestConfig } from '../resources/getEinsteinBotsV1Status';
|
|
4
|
+
import { Status as types_Status_Status } from '../types/Status';
|
|
5
|
+
export declare const adapterName = "getStatus";
|
|
6
|
+
export declare const getStatus_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getStatus_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetStatusConfig {
|
|
9
|
+
}
|
|
10
|
+
export declare const createResourceParams: (config: GetStatusConfig) => resources_getEinsteinBotsV1Status_ResourceRequestConfig;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetStatusConfig): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetStatusConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetStatusConfig>): adapter$45$utils_Untrusted<GetStatusConfig>;
|
|
14
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetStatusConfig | null;
|
|
15
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetStatusConfig): $64$luvio_engine_Fragment;
|
|
16
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetStatusConfig): $64$luvio_engine_Snapshot<types_Status_Status, any>;
|
|
17
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetStatusConfig, resourceParams: resources_getEinsteinBotsV1Status_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_Status_Status>): Promise<import("@luvio/engine").FulfilledSnapshot<types_Status_Status, {}> | import("@luvio/engine").StaleSnapshot<types_Status_Status, {}> | import("@luvio/engine").PendingSnapshot<types_Status_Status, any>>;
|
|
18
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetStatusConfig, resourceParams: resources_getEinsteinBotsV1Status_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
19
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetStatusConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_Status_Status, any>>;
|
|
20
|
+
export type BuildSnapshotContext = {
|
|
21
|
+
luvio: $64$luvio_engine_Luvio;
|
|
22
|
+
config: GetStatusConfig;
|
|
23
|
+
};
|
|
24
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_Status_Status, any>>;
|
|
25
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_Status_Status>): $64$luvio_engine_Snapshot<types_Status_Status, any>;
|
|
26
|
+
export declare const getStatusAdapterFactory: $64$luvio_engine_AdapterFactory<GetStatusConfig, types_Status_Status>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { TextInitMessage as types_TextInitMessage_TextInitMessage } from '../types/TextInitMessage';
|
|
4
|
+
import { ForceConfig as types_ForceConfig_ForceConfig } from '../types/ForceConfig';
|
|
5
|
+
import { ResponseOptions as types_ResponseOptions_ResponseOptions } from '../types/ResponseOptions';
|
|
6
|
+
import { RichContentCapability as types_RichContentCapability_RichContentCapability } from '../types/RichContentCapability';
|
|
7
|
+
import { Referrer as types_Referrer_Referrer } from '../types/Referrer';
|
|
8
|
+
import { ResourceRequestConfig as resources_ResourceRequestConfig } from '../resources/postEinsteinBotsV1V5.3.0BotsSessionsByBotId';
|
|
9
|
+
import { ResponseEnvelope as types_ResponseEnvelope_ResponseEnvelope } from '../types/ResponseEnvelope';
|
|
10
|
+
export declare const adapterName = "startSession";
|
|
11
|
+
export declare const startSession_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
12
|
+
export declare const startSession_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
13
|
+
export interface StartSessionConfig {
|
|
14
|
+
botId: string;
|
|
15
|
+
xOrgId: string;
|
|
16
|
+
xRequestID?: string;
|
|
17
|
+
externalSessionKey: string;
|
|
18
|
+
message?: types_TextInitMessage_TextInitMessage;
|
|
19
|
+
forceConfig: types_ForceConfig_ForceConfig;
|
|
20
|
+
responseOptions?: types_ResponseOptions_ResponseOptions;
|
|
21
|
+
tz?: string | null;
|
|
22
|
+
variables?: Array<unknown>;
|
|
23
|
+
richContentCapabilities: types_RichContentCapability_RichContentCapability;
|
|
24
|
+
referrers?: Array<types_Referrer_Referrer>;
|
|
25
|
+
}
|
|
26
|
+
export declare const createResourceParams: (config: StartSessionConfig) => resources_ResourceRequestConfig;
|
|
27
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<StartSessionConfig>): adapter$45$utils_Untrusted<StartSessionConfig>;
|
|
28
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): StartSessionConfig | null;
|
|
29
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: StartSessionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ResponseEnvelope_ResponseEnvelope, {}> | import("@luvio/engine").StaleSnapshot<types_ResponseEnvelope_ResponseEnvelope, {}> | import("@luvio/engine").PendingSnapshot<types_ResponseEnvelope_ResponseEnvelope, any>>;
|
|
30
|
+
export declare const startSessionAdapterFactory: $64$luvio_engine_AdapterFactory<StartSessionConfig, types_ResponseEnvelope_ResponseEnvelope>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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 { Status as types_Status_Status } from '../types/Status';
|
|
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(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_Status_Status): void;
|
|
9
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_Status_Status>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_Status_Status>): $64$luvio_engine_FulfilledSnapshot<types_Status_Status, {}> | $64$luvio_engine_StaleSnapshot<types_Status_Status, {}> | $64$luvio_engine_PendingSnapshot<types_Status_Status, any>;
|
|
10
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_Status_Status>): $64$luvio_engine_ErrorSnapshot;
|
|
11
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
12
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TextInitMessage as types_TextInitMessage_TextInitMessage } from '../types/TextInitMessage';
|
|
2
|
+
import { ForceConfig as types_ForceConfig_ForceConfig } from '../types/ForceConfig';
|
|
3
|
+
import { ResponseOptions as types_ResponseOptions_ResponseOptions } from '../types/ResponseOptions';
|
|
4
|
+
import { RichContentCapability as types_RichContentCapability_RichContentCapability } from '../types/RichContentCapability';
|
|
5
|
+
import { Referrer as types_Referrer_Referrer } from '../types/Referrer';
|
|
6
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, 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';
|
|
7
|
+
import { ResponseEnvelope as types_ResponseEnvelope_ResponseEnvelope } from '../types/ResponseEnvelope';
|
|
8
|
+
export interface ResourceRequestConfig {
|
|
9
|
+
urlParams: {
|
|
10
|
+
botId: string;
|
|
11
|
+
};
|
|
12
|
+
body: {
|
|
13
|
+
externalSessionKey: string;
|
|
14
|
+
message?: types_TextInitMessage_TextInitMessage;
|
|
15
|
+
forceConfig: types_ForceConfig_ForceConfig;
|
|
16
|
+
responseOptions?: types_ResponseOptions_ResponseOptions;
|
|
17
|
+
tz?: string | null;
|
|
18
|
+
variables?: Array<unknown>;
|
|
19
|
+
richContentCapabilities: types_RichContentCapability_RichContentCapability;
|
|
20
|
+
referrers?: Array<types_Referrer_Referrer>;
|
|
21
|
+
};
|
|
22
|
+
headers: {
|
|
23
|
+
xOrgId: string;
|
|
24
|
+
xRequestID?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
28
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ResponseEnvelope_ResponseEnvelope): void;
|
|
29
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ResponseEnvelope_ResponseEnvelope>): $64$luvio_engine_FulfilledSnapshot<types_ResponseEnvelope_ResponseEnvelope, {}> | $64$luvio_engine_StaleSnapshot<types_ResponseEnvelope_ResponseEnvelope, {}> | $64$luvio_engine_PendingSnapshot<types_ResponseEnvelope_ResponseEnvelope, any>;
|
|
30
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
31
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,43 @@
|
|
|
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "e16488ec2f9192d6491f7bcf4546f337";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: Error, existing: ErrorNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ErrorNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ErrorNormalized, incoming: ErrorNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: Error, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ErrorNormalized {
|
|
17
|
+
/** Error class name. */
|
|
18
|
+
error: string;
|
|
19
|
+
/** Exception message. */
|
|
20
|
+
message: string;
|
|
21
|
+
/** Request path. */
|
|
22
|
+
path: string;
|
|
23
|
+
/** Request ID. A UUID in string format to help with request tracking. */
|
|
24
|
+
requestId: string;
|
|
25
|
+
/** HTTP status. */
|
|
26
|
+
status: number;
|
|
27
|
+
/** Unix timestamp. */
|
|
28
|
+
timestamp: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* (none)
|
|
35
|
+
*/
|
|
36
|
+
export interface Error {
|
|
37
|
+
error: string;
|
|
38
|
+
message: string;
|
|
39
|
+
path: string;
|
|
40
|
+
requestId: string;
|
|
41
|
+
status: number;
|
|
42
|
+
timestamp: number;
|
|
43
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "f89f5e8bcaf8bf7daf3ac445e7616130";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ForceConfig, existing: ForceConfigNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ForceConfigNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ForceConfigNormalized, incoming: ForceConfigNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ForceConfig, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* API configuration parameters.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ForceConfigNormalized {
|
|
17
|
+
/** Instance URL of your Salesforce org. You can find the value in the **ForceConfig Endpoint** field of the **Add Connection** dialog when you add the connected app to the bot (see [Get Started with Einstein Bot API](https://developer.salesforce.com/docs/service/einstein-bot-api/guide/prerequisites.html)). */
|
|
18
|
+
endpoint: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* API configuration parameters.
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface ForceConfig {
|
|
27
|
+
endpoint: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "b0d840399c685f89c1b527632e093e2d";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: FormatTypeCapability, existing: FormatTypeCapabilityNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FormatTypeCapabilityNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: FormatTypeCapabilityNormalized, incoming: FormatTypeCapabilityNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FormatTypeCapability, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface FormatTypeCapabilityNormalized {
|
|
17
|
+
formatType: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* Keys:
|
|
23
|
+
* (none)
|
|
24
|
+
*/
|
|
25
|
+
export interface FormatTypeCapability {
|
|
26
|
+
formatType: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "e83b5929e31be375ae27fe73bb3382f9";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: HyperLink, existing: HyperLinkNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): HyperLinkNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: HyperLinkNormalized, incoming: HyperLinkNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: HyperLink, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Hyperlink object included in the Links schema
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface HyperLinkNormalized {
|
|
17
|
+
/** Link to the endpoint */
|
|
18
|
+
href?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Hyperlink object included in the Links schema
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface HyperLink {
|
|
27
|
+
href?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ForceConfig as ForceConfig_ForceConfig } from './ForceConfig';
|
|
2
|
+
import { TextInitMessage as TextInitMessage_TextInitMessage } from './TextInitMessage';
|
|
3
|
+
import { Referrer as Referrer_Referrer } from './Referrer';
|
|
4
|
+
import { ResponseOptions as ResponseOptions_ResponseOptions } from './ResponseOptions';
|
|
5
|
+
import { RichContentCapability as RichContentCapability_RichContentCapability } from './RichContentCapability';
|
|
6
|
+
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
7
|
+
export declare const VERSION = "dc68d9d82a901a75667266d4077a7ffb";
|
|
8
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
9
|
+
export declare const RepresentationType: string;
|
|
10
|
+
export declare function normalize(input: InitMessageEnvelope, existing: InitMessageEnvelopeNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InitMessageEnvelopeNormalized;
|
|
11
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
12
|
+
export declare function equals(existing: InitMessageEnvelopeNormalized, incoming: InitMessageEnvelopeNormalized): boolean;
|
|
13
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
14
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: InitMessageEnvelope, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* Keys:
|
|
19
|
+
* (none)
|
|
20
|
+
*/
|
|
21
|
+
export interface InitMessageEnvelopeNormalized {
|
|
22
|
+
externalSessionKey: string;
|
|
23
|
+
forceConfig: ForceConfig_ForceConfig;
|
|
24
|
+
message?: TextInitMessage_TextInitMessage;
|
|
25
|
+
referrers?: Array<Referrer_Referrer>;
|
|
26
|
+
responseOptions?: ResponseOptions_ResponseOptions;
|
|
27
|
+
richContentCapabilities: RichContentCapability_RichContentCapability;
|
|
28
|
+
tz?: string | null;
|
|
29
|
+
variables?: Array<unknown>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*
|
|
34
|
+
* Keys:
|
|
35
|
+
* (none)
|
|
36
|
+
*/
|
|
37
|
+
export interface InitMessageEnvelope {
|
|
38
|
+
externalSessionKey: string;
|
|
39
|
+
forceConfig: ForceConfig_ForceConfig;
|
|
40
|
+
message?: TextInitMessage_TextInitMessage;
|
|
41
|
+
referrers?: Array<Referrer_Referrer>;
|
|
42
|
+
responseOptions?: ResponseOptions_ResponseOptions;
|
|
43
|
+
richContentCapabilities: RichContentCapability_RichContentCapability;
|
|
44
|
+
tz?: string | null;
|
|
45
|
+
variables?: Array<unknown>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HyperLink as HyperLink_HyperLink } from './HyperLink';
|
|
2
|
+
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "b2628db4df840dd65695e7c0fa116ba0";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: Links, existing: LinksNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LinksNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: LinksNormalized, incoming: LinksNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: Links, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* List of Einstein Bots API endpoints for HATEOS compliancy.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface LinksNormalized {
|
|
18
|
+
feedback?: HyperLink_HyperLink;
|
|
19
|
+
messages?: HyperLink_HyperLink;
|
|
20
|
+
self: HyperLink_HyperLink;
|
|
21
|
+
session?: HyperLink_HyperLink;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List of Einstein Bots API endpoints for HATEOS compliancy.
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface Links {
|
|
30
|
+
feedback?: HyperLink_HyperLink;
|
|
31
|
+
messages?: HyperLink_HyperLink;
|
|
32
|
+
self: HyperLink_HyperLink;
|
|
33
|
+
session?: HyperLink_HyperLink;
|
|
34
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FormatTypeCapability as FormatTypeCapability_FormatTypeCapability } from './FormatTypeCapability';
|
|
2
|
+
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "48befb4ebdfd4840ab9979503a970e3f";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: MessageTypeCapability, existing: MessageTypeCapabilityNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MessageTypeCapabilityNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: MessageTypeCapabilityNormalized, incoming: MessageTypeCapabilityNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: MessageTypeCapability, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface MessageTypeCapabilityNormalized {
|
|
18
|
+
formatTypes: Array<FormatTypeCapability_FormatTypeCapability>;
|
|
19
|
+
messageType: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface MessageTypeCapability {
|
|
28
|
+
formatTypes: Array<FormatTypeCapability_FormatTypeCapability>;
|
|
29
|
+
messageType: string;
|
|
30
|
+
}
|
|
@@ -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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "7c8373d2df008bda97299d299ec1812c";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: NormalizedEntity, existing: NormalizedEntityNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NormalizedEntityNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: NormalizedEntityNormalized, incoming: NormalizedEntityNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: NormalizedEntity, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface NormalizedEntityNormalized {
|
|
17
|
+
/** Probability number that the AI assigns to this entity. */
|
|
18
|
+
confidenceScore: number;
|
|
19
|
+
entitySource?: string;
|
|
20
|
+
type: string;
|
|
21
|
+
/** Value of the entity that the customer enters. */
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface NormalizedEntity {
|
|
31
|
+
confidenceScore: number;
|
|
32
|
+
entitySource?: string;
|
|
33
|
+
type: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}
|
|
@@ -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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "dc0fc09de80bfd4fd35d43e3e123eb83";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: NormalizedIntent, existing: NormalizedIntentNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NormalizedIntentNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: NormalizedIntentNormalized, incoming: NormalizedIntentNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: NormalizedIntent, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface NormalizedIntentNormalized {
|
|
17
|
+
/** Probability number that the AI assigns to this intent. */
|
|
18
|
+
confidenceScore: number;
|
|
19
|
+
intentSource: string;
|
|
20
|
+
/** Name or ID of the intent. */
|
|
21
|
+
label: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface NormalizedIntent {
|
|
30
|
+
confidenceScore: number;
|
|
31
|
+
intentSource: string;
|
|
32
|
+
label: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "26c5bad610fae58c46a13dc7043d8d74";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: Referrer, existing: ReferrerNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ReferrerNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ReferrerNormalized, incoming: ReferrerNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: Referrer, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ReferrerNormalized {
|
|
17
|
+
/** Referrer type. */
|
|
18
|
+
type: string;
|
|
19
|
+
/** ID of referrer. */
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface Referrer {
|
|
29
|
+
type: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Links as Links_Links } from './Links';
|
|
2
|
+
import { NormalizedEntity as NormalizedEntity_NormalizedEntity } from './NormalizedEntity';
|
|
3
|
+
import { NormalizedIntent as NormalizedIntent_NormalizedIntent } from './NormalizedIntent';
|
|
4
|
+
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';
|
|
5
|
+
export declare const TTL = 500;
|
|
6
|
+
export declare const VERSION = "629ac931b0021d4de378c8cafc6a7213";
|
|
7
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
|
+
export declare const RepresentationType: string;
|
|
9
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
10
|
+
id: string;
|
|
11
|
+
}
|
|
12
|
+
export type ResponseEnvelopeNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export type PartialResponseEnvelopeNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
15
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ResponseEnvelopeNormalizedKeyMetadata;
|
|
16
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ResponseEnvelope): string;
|
|
17
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ResponseEnvelope): $64$luvio_engine_NormalizedKeyMetadata;
|
|
18
|
+
export declare function normalize(input: ResponseEnvelope, existing: ResponseEnvelopeNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ResponseEnvelopeNormalized;
|
|
19
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
20
|
+
export declare function equals(existing: ResponseEnvelopeNormalized, incoming: ResponseEnvelopeNormalized): boolean;
|
|
21
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
22
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ResponseEnvelope, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* id (string): sessionId
|
|
28
|
+
*/
|
|
29
|
+
export interface ResponseEnvelopeNormalized {
|
|
30
|
+
_links: Links_Links;
|
|
31
|
+
botVersion: string;
|
|
32
|
+
entities?: Array<NormalizedEntity_NormalizedEntity>;
|
|
33
|
+
intents?: Array<NormalizedIntent_NormalizedIntent>;
|
|
34
|
+
/** Messages from the bot. */
|
|
35
|
+
messages: Array<unknown>;
|
|
36
|
+
/** Session metrics. */
|
|
37
|
+
metrics?: {};
|
|
38
|
+
/** Sequence IDs of messages that the bot processed. Except for the initial request to start the session, all requests require a `sequenceId`. */
|
|
39
|
+
processedSequenceIds: Array<number>;
|
|
40
|
+
sessionId: string;
|
|
41
|
+
variables?: Array<unknown>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*
|
|
46
|
+
* Keys:
|
|
47
|
+
* id (string): sessionId
|
|
48
|
+
*/
|
|
49
|
+
export interface ResponseEnvelope {
|
|
50
|
+
_links: Links_Links;
|
|
51
|
+
botVersion: string;
|
|
52
|
+
entities?: Array<NormalizedEntity_NormalizedEntity>;
|
|
53
|
+
intents?: Array<NormalizedIntent_NormalizedIntent>;
|
|
54
|
+
messages: Array<unknown>;
|
|
55
|
+
metrics?: {};
|
|
56
|
+
processedSequenceIds: Array<number>;
|
|
57
|
+
sessionId: string;
|
|
58
|
+
variables?: Array<unknown>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ResponseOptionsVariables as ResponseOptionsVariables_ResponseOptionsVariables } from './ResponseOptionsVariables';
|
|
2
|
+
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "e006d9c69ddb8d985946f110bde7b512";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: ResponseOptions, existing: ResponseOptionsNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ResponseOptionsNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: ResponseOptionsNormalized, incoming: ResponseOptionsNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ResponseOptions, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Configuration of additional information returned in the response payload.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface ResponseOptionsNormalized {
|
|
18
|
+
/** Indicates whether to include all entities detected when processing the current request. */
|
|
19
|
+
entities?: boolean;
|
|
20
|
+
/** Indicates whether to include all intents detected when processing the current request. */
|
|
21
|
+
intents?: boolean;
|
|
22
|
+
/** Indicates whether to include metrics in the response. */
|
|
23
|
+
metrics?: boolean;
|
|
24
|
+
variables?: ResponseOptionsVariables_ResponseOptionsVariables;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Configuration of additional information returned in the response payload.
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface ResponseOptions {
|
|
33
|
+
entities?: boolean;
|
|
34
|
+
intents?: boolean;
|
|
35
|
+
metrics?: boolean;
|
|
36
|
+
variables?: ResponseOptionsVariables_ResponseOptionsVariables;
|
|
37
|
+
}
|