@salesforce/lds-adapters-marketing-ai4m 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/marketing-ai4m.js +791 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createContent.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/adapters/modifyContent.d.ts +34 -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 +3 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectAi4mEinsteinContent.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectAi4mEinsteinContentModification.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/AudienceRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CampaignBriefRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/CreateContentInputRepresentation.d.ts +77 -0
- package/dist/es/es2018/types/src/generated/types/CreateContentResponseRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/GenerativeContentInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/GenerativeContentRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ModifyContentInputRepresentation.d.ts +80 -0
- package/dist/es/es2018/types/src/generated/types/ModifyContentResponseRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/SampleAssetsRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +67 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +821 -0
- package/src/raml/api.raml +300 -0
- package/src/raml/luvio.raml +26 -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 = "marketing-ai4m";
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { AudienceRepresentation as types_AudienceRepresentation_AudienceRepresentation } from '../types/AudienceRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_postConnectAi4mEinsteinContent_ResourceRequestConfig } from '../resources/postConnectAi4mEinsteinContent';
|
|
5
|
+
import { CreateContentResponseRepresentation as types_CreateContentResponseRepresentation_CreateContentResponseRepresentation } from '../types/CreateContentResponseRepresentation';
|
|
6
|
+
export declare const adapterName = "createContent";
|
|
7
|
+
export declare const createContent_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const createContent_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface CreateContentConfig {
|
|
10
|
+
brief: {
|
|
11
|
+
audience: Array<types_AudienceRepresentation_AudienceRepresentation>;
|
|
12
|
+
campaignGoals: Array<string>;
|
|
13
|
+
campaignName: string;
|
|
14
|
+
campaignObjective: string;
|
|
15
|
+
channels: Array<string>;
|
|
16
|
+
keyMessage: string;
|
|
17
|
+
sampleAssets: {
|
|
18
|
+
email: {
|
|
19
|
+
paragraph: Array<string>;
|
|
20
|
+
preheader: Array<string>;
|
|
21
|
+
subjectLine: Array<string>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
tone: string;
|
|
25
|
+
};
|
|
26
|
+
contentTypes: Array<string>;
|
|
27
|
+
result: number;
|
|
28
|
+
}
|
|
29
|
+
export declare const createResourceParams: (config: CreateContentConfig) => resources_postConnectAi4mEinsteinContent_ResourceRequestConfig;
|
|
30
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateContentConfig>): adapter$45$utils_Untrusted<CreateContentConfig>;
|
|
31
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateContentConfig | null;
|
|
32
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateContentConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CreateContentResponseRepresentation_CreateContentResponseRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CreateContentResponseRepresentation_CreateContentResponseRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CreateContentResponseRepresentation_CreateContentResponseRepresentation, any>>;
|
|
33
|
+
export declare const createContentAdapterFactory: $64$luvio_engine_AdapterFactory<CreateContentConfig, types_CreateContentResponseRepresentation_CreateContentResponseRepresentation>;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { AudienceRepresentation as types_AudienceRepresentation_AudienceRepresentation } from '../types/AudienceRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_postConnectAi4mEinsteinContentModification_ResourceRequestConfig } from '../resources/postConnectAi4mEinsteinContentModification';
|
|
5
|
+
import { ModifyContentResponseRepresentation as types_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation } from '../types/ModifyContentResponseRepresentation';
|
|
6
|
+
export declare const adapterName = "modifyContent";
|
|
7
|
+
export declare const modifyContent_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const modifyContent_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface ModifyContentConfig {
|
|
10
|
+
brief: {
|
|
11
|
+
audience: Array<types_AudienceRepresentation_AudienceRepresentation>;
|
|
12
|
+
campaignGoals: Array<string>;
|
|
13
|
+
campaignName: string;
|
|
14
|
+
campaignObjective: string;
|
|
15
|
+
channels: Array<string>;
|
|
16
|
+
keyMessage: string;
|
|
17
|
+
sampleAssets: {
|
|
18
|
+
email: {
|
|
19
|
+
paragraph: Array<string>;
|
|
20
|
+
preheader: Array<string>;
|
|
21
|
+
subjectLine: Array<string>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
tone: string;
|
|
25
|
+
};
|
|
26
|
+
content: string;
|
|
27
|
+
contentType: string;
|
|
28
|
+
instructions: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const createResourceParams: (config: ModifyContentConfig) => resources_postConnectAi4mEinsteinContentModification_ResourceRequestConfig;
|
|
31
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ModifyContentConfig>): adapter$45$utils_Untrusted<ModifyContentConfig>;
|
|
32
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): ModifyContentConfig | null;
|
|
33
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: ModifyContentConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation, any>>;
|
|
34
|
+
export declare const modifyContentAdapterFactory: $64$luvio_engine_AdapterFactory<ModifyContentConfig, types_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AudienceRepresentation as types_AudienceRepresentation_AudienceRepresentation } from '../types/AudienceRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { CreateContentResponseRepresentation as types_CreateContentResponseRepresentation_CreateContentResponseRepresentation } from '../types/CreateContentResponseRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
brief: {
|
|
7
|
+
audience: Array<types_AudienceRepresentation_AudienceRepresentation>;
|
|
8
|
+
campaignGoals: Array<string>;
|
|
9
|
+
campaignName: string;
|
|
10
|
+
campaignObjective: string;
|
|
11
|
+
channels: Array<string>;
|
|
12
|
+
keyMessage: string;
|
|
13
|
+
sampleAssets: {
|
|
14
|
+
email: {
|
|
15
|
+
paragraph: Array<string>;
|
|
16
|
+
preheader: Array<string>;
|
|
17
|
+
subjectLine: Array<string>;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
tone: string;
|
|
21
|
+
};
|
|
22
|
+
contentTypes: Array<string>;
|
|
23
|
+
result: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
27
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CreateContentResponseRepresentation_CreateContentResponseRepresentation): void;
|
|
28
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CreateContentResponseRepresentation_CreateContentResponseRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CreateContentResponseRepresentation_CreateContentResponseRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CreateContentResponseRepresentation_CreateContentResponseRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CreateContentResponseRepresentation_CreateContentResponseRepresentation, any>;
|
|
29
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
30
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/postConnectAi4mEinsteinContentModification.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AudienceRepresentation as types_AudienceRepresentation_AudienceRepresentation } from '../types/AudienceRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { ModifyContentResponseRepresentation as types_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation } from '../types/ModifyContentResponseRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
brief: {
|
|
7
|
+
audience: Array<types_AudienceRepresentation_AudienceRepresentation>;
|
|
8
|
+
campaignGoals: Array<string>;
|
|
9
|
+
campaignName: string;
|
|
10
|
+
campaignObjective: string;
|
|
11
|
+
channels: Array<string>;
|
|
12
|
+
keyMessage: string;
|
|
13
|
+
sampleAssets: {
|
|
14
|
+
email: {
|
|
15
|
+
paragraph: Array<string>;
|
|
16
|
+
preheader: Array<string>;
|
|
17
|
+
subjectLine: Array<string>;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
tone: string;
|
|
21
|
+
};
|
|
22
|
+
content: string;
|
|
23
|
+
contentType: string;
|
|
24
|
+
instructions: 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_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation): void;
|
|
29
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ModifyContentResponseRepresentation_ModifyContentResponseRepresentation, any>;
|
|
30
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
31
|
+
export default createResourceRequest;
|
|
@@ -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 = "98755b4ea08a0bde92ede3bb74fcd888";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: AudienceRepresentation, existing: AudienceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AudienceRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: AudienceRepresentationNormalized, incoming: AudienceRepresentationNormalized): 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: AudienceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* The representation for Audience
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface AudienceRepresentationNormalized {
|
|
17
|
+
/** Audience description */
|
|
18
|
+
description: string;
|
|
19
|
+
/** Audience name */
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The representation for Audience
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface AudienceRepresentation {
|
|
29
|
+
description: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 = "a1f7626bbf2be6a17b50e6f7a4de10e3";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CampaignBriefRepresentation, existing: CampaignBriefRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CampaignBriefRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CampaignBriefRepresentationNormalized, incoming: CampaignBriefRepresentationNormalized): 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: CampaignBriefRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* The representation for CampaignBrief
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CampaignBriefRepresentationNormalized {
|
|
17
|
+
/** Audience in campaign brief */
|
|
18
|
+
audience: Array<unknown>;
|
|
19
|
+
/** Campaign Goals in campaign brief */
|
|
20
|
+
campaignGoals: Array<string>;
|
|
21
|
+
/** Campaign Name in campaign brief */
|
|
22
|
+
campaignName: string;
|
|
23
|
+
/** Campaign Objective in campaign brief */
|
|
24
|
+
campaignObjective: string;
|
|
25
|
+
/** Channels in campaign brief */
|
|
26
|
+
channels: Array<string>;
|
|
27
|
+
/** Key Message in campaign brief */
|
|
28
|
+
keyMessage: string;
|
|
29
|
+
/** Sample assets in campaign brief */
|
|
30
|
+
sampleAssets: unknown;
|
|
31
|
+
/** Tone in campaign brief */
|
|
32
|
+
tone: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The representation for CampaignBrief
|
|
36
|
+
*
|
|
37
|
+
* Keys:
|
|
38
|
+
* (none)
|
|
39
|
+
*/
|
|
40
|
+
export interface CampaignBriefRepresentation {
|
|
41
|
+
audience: Array<unknown>;
|
|
42
|
+
campaignGoals: Array<string>;
|
|
43
|
+
campaignName: string;
|
|
44
|
+
campaignObjective: string;
|
|
45
|
+
channels: Array<string>;
|
|
46
|
+
keyMessage: string;
|
|
47
|
+
sampleAssets: unknown;
|
|
48
|
+
tone: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { AudienceRepresentation as AudienceRepresentation_AudienceRepresentation } from './AudienceRepresentation';
|
|
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 = "bed3db5a2934d62375a96e04d13132aa";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CreateContentInputRepresentation, existing: CreateContentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CreateContentInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CreateContentInputRepresentationNormalized, incoming: CreateContentInputRepresentationNormalized): 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: CreateContentInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* The input representation for creating a content
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateContentInputRepresentationNormalized {
|
|
18
|
+
/** Campaign Brief to create content */
|
|
19
|
+
brief: {
|
|
20
|
+
/** Audience in campaign brief */
|
|
21
|
+
audience: Array<AudienceRepresentation_AudienceRepresentation>;
|
|
22
|
+
/** Campaign Goals in campaign brief */
|
|
23
|
+
campaignGoals: Array<string>;
|
|
24
|
+
/** Campaign Name in campaign brief */
|
|
25
|
+
campaignName: string;
|
|
26
|
+
/** Campaign Objective in campaign brief */
|
|
27
|
+
campaignObjective: string;
|
|
28
|
+
/** Channels in campaign brief */
|
|
29
|
+
channels: Array<string>;
|
|
30
|
+
/** Key Message in campaign brief */
|
|
31
|
+
keyMessage: string;
|
|
32
|
+
/** Sample assets in campaign brief */
|
|
33
|
+
sampleAssets: {
|
|
34
|
+
/** Email Asset */
|
|
35
|
+
email: {
|
|
36
|
+
/** List of paragraph */
|
|
37
|
+
paragraph: Array<string>;
|
|
38
|
+
/** List of preheader */
|
|
39
|
+
preheader: Array<string>;
|
|
40
|
+
/** List of subjectLine */
|
|
41
|
+
subjectLine: Array<string>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
/** Tone in campaign brief */
|
|
45
|
+
tone: string;
|
|
46
|
+
};
|
|
47
|
+
/** ContentTypes for content */
|
|
48
|
+
contentTypes: Array<string>;
|
|
49
|
+
/** Number of output results for content */
|
|
50
|
+
result: number;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The input representation for creating a content
|
|
54
|
+
*
|
|
55
|
+
* Keys:
|
|
56
|
+
* (none)
|
|
57
|
+
*/
|
|
58
|
+
export interface CreateContentInputRepresentation {
|
|
59
|
+
brief: {
|
|
60
|
+
audience: Array<AudienceRepresentation_AudienceRepresentation>;
|
|
61
|
+
campaignGoals: Array<string>;
|
|
62
|
+
campaignName: string;
|
|
63
|
+
campaignObjective: string;
|
|
64
|
+
channels: Array<string>;
|
|
65
|
+
keyMessage: string;
|
|
66
|
+
sampleAssets: {
|
|
67
|
+
email: {
|
|
68
|
+
paragraph: Array<string>;
|
|
69
|
+
preheader: Array<string>;
|
|
70
|
+
subjectLine: Array<string>;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
tone: string;
|
|
74
|
+
};
|
|
75
|
+
contentTypes: Array<string>;
|
|
76
|
+
result: number;
|
|
77
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { GenerativeContentRepresentation as GenerativeContentRepresentation_GenerativeContentRepresentation } from './GenerativeContentRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
export declare const TTL = 300;
|
|
4
|
+
export declare const VERSION = "94da8161f671000cc0bd34c8e37cb065";
|
|
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
|
+
generationId: string;
|
|
9
|
+
}
|
|
10
|
+
export type CreateContentResponseRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export type PartialCreateContentResponseRepresentationNormalizedKeyMetadata = 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): CreateContentResponseRepresentationNormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CreateContentResponseRepresentation): string;
|
|
15
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CreateContentResponseRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function normalize(input: CreateContentResponseRepresentation, existing: CreateContentResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CreateContentResponseRepresentationNormalized;
|
|
17
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
|
+
export declare function equals(existing: CreateContentResponseRepresentationNormalized, incoming: CreateContentResponseRepresentationNormalized): boolean;
|
|
19
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CreateContentResponseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
21
|
+
/**
|
|
22
|
+
* Create Content Response
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* generationId (string): generationId
|
|
26
|
+
*/
|
|
27
|
+
export interface CreateContentResponseRepresentationNormalized {
|
|
28
|
+
content: GenerativeContentRepresentation_GenerativeContentRepresentation;
|
|
29
|
+
/** Generation ID of response from open ai */
|
|
30
|
+
generationId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create Content Response
|
|
34
|
+
*
|
|
35
|
+
* Keys:
|
|
36
|
+
* generationId (string): generationId
|
|
37
|
+
*/
|
|
38
|
+
export interface CreateContentResponseRepresentation {
|
|
39
|
+
content: GenerativeContentRepresentation_GenerativeContentRepresentation;
|
|
40
|
+
generationId: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = "9f2e6b99a1add1db34a370ee067c5bda";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: GenerativeContentInputRepresentation, existing: GenerativeContentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GenerativeContentInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: GenerativeContentInputRepresentationNormalized, incoming: GenerativeContentInputRepresentationNormalized): 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: GenerativeContentInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* The input representation for creating a GenerativeContent
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface GenerativeContentInputRepresentationNormalized {
|
|
17
|
+
/** List of paragraph */
|
|
18
|
+
paragraph: Array<string>;
|
|
19
|
+
/** List of preheader */
|
|
20
|
+
preheader: Array<string>;
|
|
21
|
+
/** List of subjectLine */
|
|
22
|
+
subjectLine: Array<string>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The input representation for creating a GenerativeContent
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface GenerativeContentInputRepresentation {
|
|
31
|
+
paragraph: Array<string>;
|
|
32
|
+
preheader: Array<string>;
|
|
33
|
+
subjectLine: Array<string>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = "1232dcab606e55292ad273ab0803544a";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: GenerativeContentRepresentation, existing: GenerativeContentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GenerativeContentRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: GenerativeContentRepresentationNormalized, incoming: GenerativeContentRepresentationNormalized): 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: GenerativeContentRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Generative Content representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface GenerativeContentRepresentationNormalized {
|
|
17
|
+
/** List of paragraph */
|
|
18
|
+
paragraph: Array<string>;
|
|
19
|
+
/** List of preheader */
|
|
20
|
+
preheader: Array<string>;
|
|
21
|
+
/** List of subjectLine */
|
|
22
|
+
subjectLine: Array<string>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Generative Content representation
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface GenerativeContentRepresentation {
|
|
31
|
+
paragraph: Array<string>;
|
|
32
|
+
preheader: Array<string>;
|
|
33
|
+
subjectLine: Array<string>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { AudienceRepresentation as AudienceRepresentation_AudienceRepresentation } from './AudienceRepresentation';
|
|
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 = "4414e5fd9ad5ad21cc0cb2a6f99355b7";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: ModifyContentInputRepresentation, existing: ModifyContentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ModifyContentInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: ModifyContentInputRepresentationNormalized, incoming: ModifyContentInputRepresentationNormalized): 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: ModifyContentInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* The input representation for modifying a content
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface ModifyContentInputRepresentationNormalized {
|
|
18
|
+
/** Campaign Brief to create content */
|
|
19
|
+
brief: {
|
|
20
|
+
/** Audience in campaign brief */
|
|
21
|
+
audience: Array<AudienceRepresentation_AudienceRepresentation>;
|
|
22
|
+
/** Campaign Goals in campaign brief */
|
|
23
|
+
campaignGoals: Array<string>;
|
|
24
|
+
/** Campaign Name in campaign brief */
|
|
25
|
+
campaignName: string;
|
|
26
|
+
/** Campaign Objective in campaign brief */
|
|
27
|
+
campaignObjective: string;
|
|
28
|
+
/** Channels in campaign brief */
|
|
29
|
+
channels: Array<string>;
|
|
30
|
+
/** Key Message in campaign brief */
|
|
31
|
+
keyMessage: string;
|
|
32
|
+
/** Sample assets in campaign brief */
|
|
33
|
+
sampleAssets: {
|
|
34
|
+
/** Email Asset */
|
|
35
|
+
email: {
|
|
36
|
+
/** List of paragraph */
|
|
37
|
+
paragraph: Array<string>;
|
|
38
|
+
/** List of preheader */
|
|
39
|
+
preheader: Array<string>;
|
|
40
|
+
/** List of subjectLine */
|
|
41
|
+
subjectLine: Array<string>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
/** Tone in campaign brief */
|
|
45
|
+
tone: string;
|
|
46
|
+
};
|
|
47
|
+
/** Content which is to be modified */
|
|
48
|
+
content: string;
|
|
49
|
+
/** ContentTypes for content */
|
|
50
|
+
contentType: string;
|
|
51
|
+
/** Instructions for modification */
|
|
52
|
+
instructions: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The input representation for modifying a content
|
|
56
|
+
*
|
|
57
|
+
* Keys:
|
|
58
|
+
* (none)
|
|
59
|
+
*/
|
|
60
|
+
export interface ModifyContentInputRepresentation {
|
|
61
|
+
brief: {
|
|
62
|
+
audience: Array<AudienceRepresentation_AudienceRepresentation>;
|
|
63
|
+
campaignGoals: Array<string>;
|
|
64
|
+
campaignName: string;
|
|
65
|
+
campaignObjective: string;
|
|
66
|
+
channels: Array<string>;
|
|
67
|
+
keyMessage: string;
|
|
68
|
+
sampleAssets: {
|
|
69
|
+
email: {
|
|
70
|
+
paragraph: Array<string>;
|
|
71
|
+
preheader: Array<string>;
|
|
72
|
+
subjectLine: Array<string>;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
tone: string;
|
|
76
|
+
};
|
|
77
|
+
content: string;
|
|
78
|
+
contentType: string;
|
|
79
|
+
instructions: string;
|
|
80
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 TTL = 300;
|
|
3
|
+
export declare const VERSION = "0fbe4ed1fc1fed1bd5374cde5902260b";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
+
generationId: string;
|
|
8
|
+
}
|
|
9
|
+
export type ModifyContentResponseRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialModifyContentResponseRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ModifyContentResponseRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ModifyContentResponseRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ModifyContentResponseRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: ModifyContentResponseRepresentation, existing: ModifyContentResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ModifyContentResponseRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: ModifyContentResponseRepresentationNormalized, incoming: ModifyContentResponseRepresentationNormalized): boolean;
|
|
18
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ModifyContentResponseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* Modify Content Response
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* generationId (string): generationId
|
|
25
|
+
*/
|
|
26
|
+
export interface ModifyContentResponseRepresentationNormalized {
|
|
27
|
+
/** Modified content */
|
|
28
|
+
content: string;
|
|
29
|
+
/** Content Type of modified content */
|
|
30
|
+
contentType: string;
|
|
31
|
+
/** Generation ID of response from open ai */
|
|
32
|
+
generationId: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Modify Content Response
|
|
36
|
+
*
|
|
37
|
+
* Keys:
|
|
38
|
+
* generationId (string): generationId
|
|
39
|
+
*/
|
|
40
|
+
export interface ModifyContentResponseRepresentation {
|
|
41
|
+
content: string;
|
|
42
|
+
contentType: string;
|
|
43
|
+
generationId: string;
|
|
44
|
+
}
|
|
@@ -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 = "8354f4694ed72aff25358e4b81087db1";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SampleAssetsRepresentation, existing: SampleAssetsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SampleAssetsRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SampleAssetsRepresentationNormalized, incoming: SampleAssetsRepresentationNormalized): 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: SampleAssetsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* The input representation for Sample Assets
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SampleAssetsRepresentationNormalized {
|
|
17
|
+
/** Email Asset */
|
|
18
|
+
email: unknown;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The input representation for Sample Assets
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface SampleAssetsRepresentation {
|
|
27
|
+
email: unknown;
|
|
28
|
+
}
|