@salesforce/lds-adapters-service-einsteinllm 1.404.0-dev6 → 1.404.0-dev8
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/dist/es/es2018/service-einsteinllm.js +911 -587
- package/dist/es/es2018/types/src/generated/adapters/putEinsteinPromptTemplateStatus.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/putEinsteinPromptTemplatesStatusByPromptTemplateDevName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateStatusRepresentation.d.ts +59 -0
- package/package.json +4 -4
- package/sfdc/index.js +1229 -902
- package/src/raml/api.raml +52 -0
- package/src/raml/luvio.raml +9 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$b, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$b, StoreKeyMap, createResourceParams as createResourceParams$j, typeCheckConfig as typeCheckConfig$j } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -178,7 +178,7 @@ function createLink(ref) {
|
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
function validate$
|
|
181
|
+
function validate$F(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
|
|
182
182
|
const v_error = (() => {
|
|
183
183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
184
184
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -222,7 +222,7 @@ function validate$E(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
|
|
|
222
222
|
return v_error === undefined ? null : v_error;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
function validate$
|
|
225
|
+
function validate$E(obj, path = 'WrappedListString') {
|
|
226
226
|
const v_error = (() => {
|
|
227
227
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
228
228
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -243,14 +243,14 @@ function validate$D(obj, path = 'WrappedListString') {
|
|
|
243
243
|
return v_error === undefined ? null : v_error;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
function validate$
|
|
246
|
+
function validate$D(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
|
|
247
247
|
const v_error = (() => {
|
|
248
248
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
249
249
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
250
250
|
}
|
|
251
251
|
const obj_additionalConfig = obj.additionalConfig;
|
|
252
252
|
const path_additionalConfig = path + '.additionalConfig';
|
|
253
|
-
const referencepath_additionalConfigValidationError = validate$
|
|
253
|
+
const referencepath_additionalConfigValidationError = validate$F(obj_additionalConfig, path_additionalConfig);
|
|
254
254
|
if (referencepath_additionalConfigValidationError !== null) {
|
|
255
255
|
let message = 'Object doesn\'t match EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
|
|
256
256
|
message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -258,7 +258,7 @@ function validate$C(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
|
|
|
258
258
|
}
|
|
259
259
|
const obj_prompts = obj.prompts;
|
|
260
260
|
const path_prompts = path + '.prompts';
|
|
261
|
-
const referencepath_promptsValidationError = validate$
|
|
261
|
+
const referencepath_promptsValidationError = validate$E(obj_prompts, path_prompts);
|
|
262
262
|
if (referencepath_promptsValidationError !== null) {
|
|
263
263
|
let message = 'Object doesn\'t match WrappedListString (at "' + path_prompts + '")\n';
|
|
264
264
|
message += referencepath_promptsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -275,8 +275,8 @@ function validate$C(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
|
|
|
275
275
|
return v_error === undefined ? null : v_error;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
const VERSION$
|
|
279
|
-
function validate$
|
|
278
|
+
const VERSION$t = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
|
|
279
|
+
function validate$C(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
|
|
280
280
|
const v_error = (() => {
|
|
281
281
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
282
282
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -297,10 +297,10 @@ function validate$B(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
|
|
|
297
297
|
})();
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
|
-
const select$
|
|
300
|
+
const select$M = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
301
301
|
return {
|
|
302
302
|
kind: 'Fragment',
|
|
303
|
-
version: VERSION$
|
|
303
|
+
version: VERSION$t,
|
|
304
304
|
private: [],
|
|
305
305
|
selections: [
|
|
306
306
|
{
|
|
@@ -315,7 +315,7 @@ const select$K = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
|
315
315
|
]
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
|
-
function equals$
|
|
318
|
+
function equals$t(existing, incoming) {
|
|
319
319
|
const existing_index = existing.index;
|
|
320
320
|
const incoming_index = incoming.index;
|
|
321
321
|
if (!(existing_index === incoming_index)) {
|
|
@@ -334,9 +334,9 @@ function equals$s(existing, incoming) {
|
|
|
334
334
|
return true;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
const TTL$
|
|
338
|
-
const VERSION$
|
|
339
|
-
function validate$
|
|
337
|
+
const TTL$c = 100;
|
|
338
|
+
const VERSION$s = "d9873651f09d29764ef4d4231eb653d7";
|
|
339
|
+
function validate$B(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
|
|
340
340
|
const v_error = (() => {
|
|
341
341
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
342
342
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -349,7 +349,7 @@ function validate$A(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
|
|
|
349
349
|
for (let i = 0; i < obj_embeddings.length; i++) {
|
|
350
350
|
const obj_embeddings_item = obj_embeddings[i];
|
|
351
351
|
const path_embeddings_item = path_embeddings + '[' + i + ']';
|
|
352
|
-
const referencepath_embeddings_itemValidationError = validate$
|
|
352
|
+
const referencepath_embeddings_itemValidationError = validate$C(obj_embeddings_item, path_embeddings_item);
|
|
353
353
|
if (referencepath_embeddings_itemValidationError !== null) {
|
|
354
354
|
let message = 'Object doesn\'t match EinsteinLlmEmbeddingItemRepresentation (at "' + path_embeddings_item + '")\n';
|
|
355
355
|
message += referencepath_embeddings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -373,15 +373,15 @@ function validate$A(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
|
|
|
373
373
|
})();
|
|
374
374
|
return v_error === undefined ? null : v_error;
|
|
375
375
|
}
|
|
376
|
-
const RepresentationType$
|
|
377
|
-
function normalize$
|
|
376
|
+
const RepresentationType$c = 'EinsteinLlmEmbeddingsRepresentation';
|
|
377
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
378
378
|
return input;
|
|
379
379
|
}
|
|
380
|
-
const select$
|
|
381
|
-
const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$
|
|
380
|
+
const select$L = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
381
|
+
const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$M();
|
|
382
382
|
return {
|
|
383
383
|
kind: 'Fragment',
|
|
384
|
-
version: VERSION$
|
|
384
|
+
version: VERSION$s,
|
|
385
385
|
private: [],
|
|
386
386
|
selections: [
|
|
387
387
|
{
|
|
@@ -398,11 +398,11 @@ const select$J = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
|
398
398
|
]
|
|
399
399
|
};
|
|
400
400
|
};
|
|
401
|
-
function equals$
|
|
401
|
+
function equals$s(existing, incoming) {
|
|
402
402
|
const existing_embeddings = existing.embeddings;
|
|
403
403
|
const incoming_embeddings = incoming.embeddings;
|
|
404
404
|
const equals_embeddings_items = equalsArray(existing_embeddings, incoming_embeddings, (existing_embeddings_item, incoming_embeddings_item) => {
|
|
405
|
-
if (!(equals$
|
|
405
|
+
if (!(equals$t(existing_embeddings_item, incoming_embeddings_item))) {
|
|
406
406
|
return false;
|
|
407
407
|
}
|
|
408
408
|
});
|
|
@@ -421,44 +421,44 @@ function equals$r(existing, incoming) {
|
|
|
421
421
|
}
|
|
422
422
|
return true;
|
|
423
423
|
}
|
|
424
|
-
const ingest$
|
|
424
|
+
const ingest$c = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
425
425
|
if (process.env.NODE_ENV !== 'production') {
|
|
426
|
-
const validateError = validate$
|
|
426
|
+
const validateError = validate$B(input);
|
|
427
427
|
if (validateError !== null) {
|
|
428
428
|
throw validateError;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
const key = path.fullPath;
|
|
432
|
-
const ttlToUse = TTL$
|
|
433
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
432
|
+
const ttlToUse = TTL$c;
|
|
433
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$s, RepresentationType$c, equals$s);
|
|
434
434
|
return createLink(key);
|
|
435
435
|
};
|
|
436
|
-
function getTypeCacheKeys$
|
|
436
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
437
437
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
438
438
|
const rootKey = fullPathFactory();
|
|
439
439
|
rootKeySet.set(rootKey, {
|
|
440
440
|
namespace: keyPrefix,
|
|
441
|
-
representationName: RepresentationType$
|
|
441
|
+
representationName: RepresentationType$c,
|
|
442
442
|
mergeable: false
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
function select$
|
|
447
|
-
return select$
|
|
446
|
+
function select$K(luvio, params) {
|
|
447
|
+
return select$L();
|
|
448
448
|
}
|
|
449
|
-
function keyBuilder$
|
|
449
|
+
function keyBuilder$q(luvio, params) {
|
|
450
450
|
return keyPrefix + '::EinsteinLlmEmbeddingsRepresentation:(' + stableJSONStringify(params.body.embeddingsInput.additionalConfig.additionalParameters) + '::' + 'embeddingsInput.additionalConfig.applicationName:' + params.body.embeddingsInput.additionalConfig.applicationName + '::' + (params.body.embeddingsInput.additionalConfig.enablePiiMasking === undefined ? 'embeddingsInput.additionalConfig.enablePiiMasking' : 'embeddingsInput.additionalConfig.enablePiiMasking:' + params.body.embeddingsInput.additionalConfig.enablePiiMasking) + '::' + (params.body.embeddingsInput.additionalConfig.model === undefined ? 'embeddingsInput.additionalConfig.model' : 'embeddingsInput.additionalConfig.model:' + params.body.embeddingsInput.additionalConfig.model) + '::' + 'embeddingsInput.prompts.wrappedListString:' + params.body.embeddingsInput.prompts.wrappedListString + '::' + (params.body.embeddingsInput.provider === undefined ? 'embeddingsInput.provider' : 'embeddingsInput.provider:' + params.body.embeddingsInput.provider) + ')';
|
|
451
451
|
}
|
|
452
|
-
function getResponseCacheKeys$
|
|
453
|
-
getTypeCacheKeys$
|
|
452
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
453
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$q(luvio, resourceParams));
|
|
454
454
|
}
|
|
455
|
-
function ingestSuccess$
|
|
455
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
456
456
|
const { body } = response;
|
|
457
|
-
const key = keyBuilder$
|
|
458
|
-
luvio.storeIngest(key, ingest$
|
|
457
|
+
const key = keyBuilder$q(luvio, resourceParams);
|
|
458
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
459
459
|
const snapshot = luvio.storeLookup({
|
|
460
460
|
recordId: key,
|
|
461
|
-
node: select$
|
|
461
|
+
node: select$K(),
|
|
462
462
|
variables: {},
|
|
463
463
|
}, snapshotRefresh);
|
|
464
464
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -470,18 +470,18 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
470
470
|
return snapshot;
|
|
471
471
|
}
|
|
472
472
|
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
473
|
-
const key = keyBuilder$
|
|
473
|
+
const key = keyBuilder$q(luvio, params);
|
|
474
474
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
475
475
|
const storeMetadataParams = {
|
|
476
|
-
ttl: TTL$
|
|
476
|
+
ttl: TTL$c,
|
|
477
477
|
namespace: keyPrefix,
|
|
478
|
-
version: VERSION$
|
|
479
|
-
representationName: RepresentationType$
|
|
478
|
+
version: VERSION$s,
|
|
479
|
+
representationName: RepresentationType$c
|
|
480
480
|
};
|
|
481
481
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
482
482
|
return errorSnapshot;
|
|
483
483
|
}
|
|
484
|
-
function createResourceRequest$
|
|
484
|
+
function createResourceRequest$i(config) {
|
|
485
485
|
const headers = {};
|
|
486
486
|
return {
|
|
487
487
|
baseUri: '/services/data/v66.0',
|
|
@@ -495,64 +495,64 @@ function createResourceRequest$h(config) {
|
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
const adapterName$
|
|
498
|
+
const adapterName$i = 'createEmbeddings';
|
|
499
499
|
const createEmbeddings_ConfigPropertyMetadata = [
|
|
500
500
|
generateParamConfigMetadata('embeddingsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
501
501
|
];
|
|
502
|
-
const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
503
|
-
const createResourceParams$
|
|
504
|
-
function keyBuilder$
|
|
505
|
-
const resourceParams = createResourceParams$
|
|
506
|
-
return keyBuilder$
|
|
502
|
+
const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, createEmbeddings_ConfigPropertyMetadata);
|
|
503
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$j(createEmbeddings_ConfigPropertyMetadata);
|
|
504
|
+
function keyBuilder$p(luvio, config) {
|
|
505
|
+
const resourceParams = createResourceParams$i(config);
|
|
506
|
+
return keyBuilder$q(luvio, resourceParams);
|
|
507
507
|
}
|
|
508
|
-
function typeCheckConfig$
|
|
508
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
509
509
|
const config = {};
|
|
510
510
|
const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
|
|
511
|
-
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$
|
|
511
|
+
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$D(untrustedConfig_embeddingsInput);
|
|
512
512
|
if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
|
|
513
513
|
config.embeddingsInput = untrustedConfig_embeddingsInput;
|
|
514
514
|
}
|
|
515
515
|
return config;
|
|
516
516
|
}
|
|
517
|
-
function validateAdapterConfig$
|
|
517
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
518
518
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
519
519
|
return null;
|
|
520
520
|
}
|
|
521
521
|
if (process.env.NODE_ENV !== 'production') {
|
|
522
522
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
523
523
|
}
|
|
524
|
-
const config = typeCheckConfig$
|
|
524
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
525
525
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
526
526
|
return null;
|
|
527
527
|
}
|
|
528
528
|
return config;
|
|
529
529
|
}
|
|
530
530
|
function adapterFragment$a(luvio, config) {
|
|
531
|
-
createResourceParams$
|
|
532
|
-
return select$
|
|
531
|
+
createResourceParams$i(config);
|
|
532
|
+
return select$K();
|
|
533
533
|
}
|
|
534
534
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
535
|
-
const snapshot = ingestSuccess$
|
|
535
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
536
536
|
config,
|
|
537
|
-
resolve: () => buildNetworkSnapshot$
|
|
537
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
538
538
|
});
|
|
539
539
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
540
540
|
}
|
|
541
541
|
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
542
542
|
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
543
543
|
config,
|
|
544
|
-
resolve: () => buildNetworkSnapshot$
|
|
544
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
545
545
|
});
|
|
546
546
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
547
547
|
}
|
|
548
|
-
function buildNetworkSnapshot$
|
|
549
|
-
const resourceParams = createResourceParams$
|
|
550
|
-
const request = createResourceRequest$
|
|
548
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
549
|
+
const resourceParams = createResourceParams$i(config);
|
|
550
|
+
const request = createResourceRequest$i(resourceParams);
|
|
551
551
|
return luvio.dispatchResourceRequest(request, options)
|
|
552
552
|
.then((response) => {
|
|
553
553
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
554
554
|
const cache = new StoreKeyMap();
|
|
555
|
-
getResponseCacheKeys$
|
|
555
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
556
556
|
return cache;
|
|
557
557
|
});
|
|
558
558
|
}, (response) => {
|
|
@@ -560,23 +560,23 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
562
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
563
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
563
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, 'get', false);
|
|
564
564
|
}
|
|
565
565
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
566
566
|
const { luvio, config } = context;
|
|
567
567
|
const selector = {
|
|
568
|
-
recordId: keyBuilder$
|
|
568
|
+
recordId: keyBuilder$p(luvio, config),
|
|
569
569
|
node: adapterFragment$a(luvio, config),
|
|
570
570
|
variables: {},
|
|
571
571
|
};
|
|
572
572
|
const cacheSnapshot = storeLookup(selector, {
|
|
573
573
|
config,
|
|
574
|
-
resolve: () => buildNetworkSnapshot$
|
|
574
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
575
575
|
});
|
|
576
576
|
return cacheSnapshot;
|
|
577
577
|
}
|
|
578
578
|
const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEmbeddings(untrustedConfig, requestContext) {
|
|
579
|
-
const config = validateAdapterConfig$
|
|
579
|
+
const config = validateAdapterConfig$i(untrustedConfig, createEmbeddings_ConfigPropertyNames);
|
|
580
580
|
// Invalid or incomplete config
|
|
581
581
|
if (config === null) {
|
|
582
582
|
return null;
|
|
@@ -585,7 +585,7 @@ const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEm
|
|
|
585
585
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
586
586
|
};
|
|
587
587
|
|
|
588
|
-
function validate$
|
|
588
|
+
function validate$A(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
|
|
589
589
|
const v_error = (() => {
|
|
590
590
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
591
591
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -632,9 +632,9 @@ function validate$z(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
|
|
|
632
632
|
return v_error === undefined ? null : v_error;
|
|
633
633
|
}
|
|
634
634
|
|
|
635
|
-
const TTL$
|
|
636
|
-
const VERSION$
|
|
637
|
-
function validate$
|
|
635
|
+
const TTL$b = 100;
|
|
636
|
+
const VERSION$r = "4033328f65865dd5d80c68a7573a4522";
|
|
637
|
+
function validate$z(obj, path = 'EinsteinLlmFeedbackRepresentation') {
|
|
638
638
|
const v_error = (() => {
|
|
639
639
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
640
640
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -647,23 +647,23 @@ function validate$y(obj, path = 'EinsteinLlmFeedbackRepresentation') {
|
|
|
647
647
|
})();
|
|
648
648
|
return v_error === undefined ? null : v_error;
|
|
649
649
|
}
|
|
650
|
-
const RepresentationType$
|
|
651
|
-
function keyBuilder$
|
|
652
|
-
return keyPrefix + '::' + RepresentationType$
|
|
650
|
+
const RepresentationType$b = 'EinsteinLlmFeedbackRepresentation';
|
|
651
|
+
function keyBuilder$o(luvio, config) {
|
|
652
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.message;
|
|
653
653
|
}
|
|
654
|
-
function keyBuilderFromType$
|
|
654
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
655
655
|
const keyParams = {
|
|
656
656
|
message: object.message
|
|
657
657
|
};
|
|
658
|
-
return keyBuilder$
|
|
658
|
+
return keyBuilder$o(luvio, keyParams);
|
|
659
659
|
}
|
|
660
|
-
function normalize$
|
|
660
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
661
661
|
return input;
|
|
662
662
|
}
|
|
663
|
-
const select$
|
|
663
|
+
const select$J = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
664
664
|
return {
|
|
665
665
|
kind: 'Fragment',
|
|
666
|
-
version: VERSION$
|
|
666
|
+
version: VERSION$r,
|
|
667
667
|
private: [],
|
|
668
668
|
selections: [
|
|
669
669
|
{
|
|
@@ -673,7 +673,7 @@ const select$H = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
|
673
673
|
]
|
|
674
674
|
};
|
|
675
675
|
};
|
|
676
|
-
function equals$
|
|
676
|
+
function equals$r(existing, incoming) {
|
|
677
677
|
const existing_message = existing.message;
|
|
678
678
|
const incoming_message = incoming.message;
|
|
679
679
|
if (!(existing_message === incoming_message)) {
|
|
@@ -681,41 +681,41 @@ function equals$q(existing, incoming) {
|
|
|
681
681
|
}
|
|
682
682
|
return true;
|
|
683
683
|
}
|
|
684
|
-
const ingest$
|
|
684
|
+
const ingest$b = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
685
685
|
if (process.env.NODE_ENV !== 'production') {
|
|
686
|
-
const validateError = validate$
|
|
686
|
+
const validateError = validate$z(input);
|
|
687
687
|
if (validateError !== null) {
|
|
688
688
|
throw validateError;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
const key = keyBuilderFromType$
|
|
692
|
-
const ttlToUse = TTL$
|
|
693
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
691
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
692
|
+
const ttlToUse = TTL$b;
|
|
693
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$r, RepresentationType$b, equals$r);
|
|
694
694
|
return createLink(key);
|
|
695
695
|
};
|
|
696
|
-
function getTypeCacheKeys$
|
|
696
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
697
697
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
698
|
-
const rootKey = keyBuilderFromType$
|
|
698
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
699
699
|
rootKeySet.set(rootKey, {
|
|
700
700
|
namespace: keyPrefix,
|
|
701
|
-
representationName: RepresentationType$
|
|
701
|
+
representationName: RepresentationType$b,
|
|
702
702
|
mergeable: false
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
function select$
|
|
707
|
-
return select$
|
|
706
|
+
function select$I(luvio, params) {
|
|
707
|
+
return select$J();
|
|
708
708
|
}
|
|
709
|
-
function getResponseCacheKeys$
|
|
710
|
-
getTypeCacheKeys$
|
|
709
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
710
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
711
711
|
}
|
|
712
|
-
function ingestSuccess$
|
|
712
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
713
713
|
const { body } = response;
|
|
714
|
-
const key = keyBuilderFromType$
|
|
715
|
-
luvio.storeIngest(key, ingest$
|
|
714
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
715
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
716
716
|
const snapshot = luvio.storeLookup({
|
|
717
717
|
recordId: key,
|
|
718
|
-
node: select$
|
|
718
|
+
node: select$I(),
|
|
719
719
|
variables: {},
|
|
720
720
|
});
|
|
721
721
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -726,7 +726,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
726
726
|
deepFreeze(snapshot.data);
|
|
727
727
|
return snapshot;
|
|
728
728
|
}
|
|
729
|
-
function createResourceRequest$
|
|
729
|
+
function createResourceRequest$h(config) {
|
|
730
730
|
const headers = {};
|
|
731
731
|
return {
|
|
732
732
|
baseUri: '/services/data/v66.0',
|
|
@@ -740,45 +740,45 @@ function createResourceRequest$g(config) {
|
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
-
const adapterName$
|
|
743
|
+
const adapterName$h = 'createFeedback';
|
|
744
744
|
const createFeedback_ConfigPropertyMetadata = [
|
|
745
745
|
generateParamConfigMetadata('feedbackInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
746
746
|
];
|
|
747
|
-
const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
748
|
-
const createResourceParams$
|
|
749
|
-
function typeCheckConfig$
|
|
747
|
+
const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createFeedback_ConfigPropertyMetadata);
|
|
748
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(createFeedback_ConfigPropertyMetadata);
|
|
749
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
750
750
|
const config = {};
|
|
751
751
|
const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
|
|
752
|
-
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$
|
|
752
|
+
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$A(untrustedConfig_feedbackInput);
|
|
753
753
|
if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
|
|
754
754
|
config.feedbackInput = untrustedConfig_feedbackInput;
|
|
755
755
|
}
|
|
756
756
|
return config;
|
|
757
757
|
}
|
|
758
|
-
function validateAdapterConfig$
|
|
758
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
759
759
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
760
760
|
return null;
|
|
761
761
|
}
|
|
762
762
|
if (process.env.NODE_ENV !== 'production') {
|
|
763
763
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
764
764
|
}
|
|
765
|
-
const config = typeCheckConfig$
|
|
765
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
766
766
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
767
767
|
return null;
|
|
768
768
|
}
|
|
769
769
|
return config;
|
|
770
770
|
}
|
|
771
|
-
function buildNetworkSnapshot$
|
|
772
|
-
const resourceParams = createResourceParams$
|
|
773
|
-
const request = createResourceRequest$
|
|
771
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
772
|
+
const resourceParams = createResourceParams$h(config);
|
|
773
|
+
const request = createResourceRequest$h(resourceParams);
|
|
774
774
|
return luvio.dispatchResourceRequest(request, options)
|
|
775
775
|
.then((response) => {
|
|
776
776
|
return luvio.handleSuccessResponse(() => {
|
|
777
|
-
const snapshot = ingestSuccess$
|
|
777
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
778
778
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
779
779
|
}, () => {
|
|
780
780
|
const cache = new StoreKeyMap();
|
|
781
|
-
getResponseCacheKeys$
|
|
781
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
782
782
|
return cache;
|
|
783
783
|
});
|
|
784
784
|
}, (response) => {
|
|
@@ -788,16 +788,16 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
788
788
|
}
|
|
789
789
|
const createFeedbackAdapterFactory = (luvio) => {
|
|
790
790
|
return function createFeedback(untrustedConfig) {
|
|
791
|
-
const config = validateAdapterConfig$
|
|
791
|
+
const config = validateAdapterConfig$h(untrustedConfig, createFeedback_ConfigPropertyNames);
|
|
792
792
|
// Invalid or incomplete config
|
|
793
793
|
if (config === null) {
|
|
794
794
|
throw new Error('Invalid config for "createFeedback"');
|
|
795
795
|
}
|
|
796
|
-
return buildNetworkSnapshot$
|
|
796
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
797
797
|
};
|
|
798
798
|
};
|
|
799
799
|
|
|
800
|
-
function validate$
|
|
800
|
+
function validate$y(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
|
|
801
801
|
const v_error = (() => {
|
|
802
802
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
803
803
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -880,7 +880,7 @@ function validate$x(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
|
|
|
880
880
|
return v_error === undefined ? null : v_error;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
function validate$
|
|
883
|
+
function validate$x(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
884
884
|
const v_error = (() => {
|
|
885
885
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
886
886
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -888,7 +888,7 @@ function validate$w(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
|
888
888
|
if (obj.additionalConfig !== undefined) {
|
|
889
889
|
const obj_additionalConfig = obj.additionalConfig;
|
|
890
890
|
const path_additionalConfig = path + '.additionalConfig';
|
|
891
|
-
const referencepath_additionalConfigValidationError = validate$
|
|
891
|
+
const referencepath_additionalConfigValidationError = validate$y(obj_additionalConfig, path_additionalConfig);
|
|
892
892
|
if (referencepath_additionalConfigValidationError !== null) {
|
|
893
893
|
let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
|
|
894
894
|
message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -911,8 +911,8 @@ function validate$w(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
|
911
911
|
return v_error === undefined ? null : v_error;
|
|
912
912
|
}
|
|
913
913
|
|
|
914
|
-
const VERSION$
|
|
915
|
-
function validate$
|
|
914
|
+
const VERSION$q = "9ebac74e6f964c363d5fd1913df363af";
|
|
915
|
+
function validate$w(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
|
|
916
916
|
const v_error = (() => {
|
|
917
917
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
918
918
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -948,10 +948,10 @@ function validate$v(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
|
|
|
948
948
|
})();
|
|
949
949
|
return v_error === undefined ? null : v_error;
|
|
950
950
|
}
|
|
951
|
-
const select$
|
|
951
|
+
const select$H = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
|
|
952
952
|
return {
|
|
953
953
|
kind: 'Fragment',
|
|
954
|
-
version: VERSION$
|
|
954
|
+
version: VERSION$q,
|
|
955
955
|
private: [],
|
|
956
956
|
selections: [
|
|
957
957
|
{
|
|
@@ -962,7 +962,7 @@ const select$F = function EinsteinLlmGenerationsContentQualityRepresentationSele
|
|
|
962
962
|
]
|
|
963
963
|
};
|
|
964
964
|
};
|
|
965
|
-
function equals$
|
|
965
|
+
function equals$q(existing, incoming) {
|
|
966
966
|
const existing_isToxicityDetected = existing.isToxicityDetected;
|
|
967
967
|
const incoming_isToxicityDetected = incoming.isToxicityDetected;
|
|
968
968
|
// if at least one of these optionals is defined
|
|
@@ -979,8 +979,8 @@ function equals$p(existing, incoming) {
|
|
|
979
979
|
return true;
|
|
980
980
|
}
|
|
981
981
|
|
|
982
|
-
const VERSION$
|
|
983
|
-
function validate$
|
|
982
|
+
const VERSION$p = "77af44a252cb5b45b4d9a8101368d2aa";
|
|
983
|
+
function validate$v(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
|
|
984
984
|
const v_error = (() => {
|
|
985
985
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
986
986
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1184,10 +1184,10 @@ function validate$u(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
|
|
|
1184
1184
|
})();
|
|
1185
1185
|
return v_error === undefined ? null : v_error;
|
|
1186
1186
|
}
|
|
1187
|
-
const select$
|
|
1187
|
+
const select$G = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
|
|
1188
1188
|
return {
|
|
1189
1189
|
kind: 'Fragment',
|
|
1190
|
-
version: VERSION$
|
|
1190
|
+
version: VERSION$p,
|
|
1191
1191
|
private: [],
|
|
1192
1192
|
selections: [
|
|
1193
1193
|
{
|
|
@@ -1228,7 +1228,7 @@ const select$E = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
|
|
|
1228
1228
|
]
|
|
1229
1229
|
};
|
|
1230
1230
|
};
|
|
1231
|
-
function equals$
|
|
1231
|
+
function equals$p(existing, incoming) {
|
|
1232
1232
|
const existing_hateScore = existing.hateScore;
|
|
1233
1233
|
const incoming_hateScore = incoming.hateScore;
|
|
1234
1234
|
// if at least one of these optionals is defined
|
|
@@ -1323,8 +1323,8 @@ function equals$o(existing, incoming) {
|
|
|
1323
1323
|
return true;
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
|
-
const VERSION$
|
|
1327
|
-
function validate$
|
|
1326
|
+
const VERSION$o = "4a07778ff6c595d91c575188146647a1";
|
|
1327
|
+
function validate$u(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
1328
1328
|
const v_error = (() => {
|
|
1329
1329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1330
1330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1334,7 +1334,7 @@ function validate$t(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
1334
1334
|
const path_contentQualityRepresentation = path + '.contentQualityRepresentation';
|
|
1335
1335
|
let obj_contentQualityRepresentation_union0 = null;
|
|
1336
1336
|
const obj_contentQualityRepresentation_union0_error = (() => {
|
|
1337
|
-
const referencepath_contentQualityRepresentationValidationError = validate$
|
|
1337
|
+
const referencepath_contentQualityRepresentationValidationError = validate$w(obj_contentQualityRepresentation, path_contentQualityRepresentation);
|
|
1338
1338
|
if (referencepath_contentQualityRepresentationValidationError !== null) {
|
|
1339
1339
|
let message = 'Object doesn\'t match EinsteinLlmGenerationsContentQualityRepresentation (at "' + path_contentQualityRepresentation + '")\n';
|
|
1340
1340
|
message += referencepath_contentQualityRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1382,7 +1382,7 @@ function validate$t(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
1382
1382
|
const path_safetyScoreRepresentation = path + '.safetyScoreRepresentation';
|
|
1383
1383
|
let obj_safetyScoreRepresentation_union0 = null;
|
|
1384
1384
|
const obj_safetyScoreRepresentation_union0_error = (() => {
|
|
1385
|
-
const referencepath_safetyScoreRepresentationValidationError = validate$
|
|
1385
|
+
const referencepath_safetyScoreRepresentationValidationError = validate$v(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
|
|
1386
1386
|
if (referencepath_safetyScoreRepresentationValidationError !== null) {
|
|
1387
1387
|
let message = 'Object doesn\'t match EinsteinLlmGenerationsSafetyScoreRepresentation (at "' + path_safetyScoreRepresentation + '")\n';
|
|
1388
1388
|
message += referencepath_safetyScoreRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1416,12 +1416,12 @@ function validate$t(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
1416
1416
|
})();
|
|
1417
1417
|
return v_error === undefined ? null : v_error;
|
|
1418
1418
|
}
|
|
1419
|
-
const select$
|
|
1420
|
-
const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$
|
|
1421
|
-
const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$
|
|
1419
|
+
const select$F = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
1420
|
+
const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$H();
|
|
1421
|
+
const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$G();
|
|
1422
1422
|
return {
|
|
1423
1423
|
kind: 'Fragment',
|
|
1424
|
-
version: VERSION$
|
|
1424
|
+
version: VERSION$o,
|
|
1425
1425
|
private: [],
|
|
1426
1426
|
selections: [
|
|
1427
1427
|
{
|
|
@@ -1458,7 +1458,7 @@ const select$D = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
|
1458
1458
|
]
|
|
1459
1459
|
};
|
|
1460
1460
|
};
|
|
1461
|
-
function equals$
|
|
1461
|
+
function equals$o(existing, incoming) {
|
|
1462
1462
|
const existing_isSummarized = existing.isSummarized;
|
|
1463
1463
|
const incoming_isSummarized = incoming.isSummarized;
|
|
1464
1464
|
// if at least one of these optionals is defined
|
|
@@ -1499,7 +1499,7 @@ function equals$n(existing, incoming) {
|
|
|
1499
1499
|
if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
|
|
1500
1500
|
|| (existing_contentQualityRepresentation != null &&
|
|
1501
1501
|
incoming_contentQualityRepresentation != null &&
|
|
1502
|
-
equals$
|
|
1502
|
+
equals$q(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
|
|
1503
1503
|
return false;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
@@ -1515,15 +1515,15 @@ function equals$n(existing, incoming) {
|
|
|
1515
1515
|
if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
|
|
1516
1516
|
|| (existing_safetyScoreRepresentation != null &&
|
|
1517
1517
|
incoming_safetyScoreRepresentation != null &&
|
|
1518
|
-
equals$
|
|
1518
|
+
equals$p(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
|
|
1519
1519
|
return false;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
1522
|
return true;
|
|
1523
1523
|
}
|
|
1524
1524
|
|
|
1525
|
-
const VERSION$
|
|
1526
|
-
function validate$
|
|
1525
|
+
const VERSION$n = "379fd960d1a0118f506f458ab2c8dd7e";
|
|
1526
|
+
function validate$t(obj, path = 'WrappedMap') {
|
|
1527
1527
|
const v_error = (() => {
|
|
1528
1528
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1529
1529
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1545,10 +1545,10 @@ function validate$s(obj, path = 'WrappedMap') {
|
|
|
1545
1545
|
})();
|
|
1546
1546
|
return v_error === undefined ? null : v_error;
|
|
1547
1547
|
}
|
|
1548
|
-
const select$
|
|
1548
|
+
const select$E = function WrappedMapSelect() {
|
|
1549
1549
|
return {
|
|
1550
1550
|
kind: 'Fragment',
|
|
1551
|
-
version: VERSION$
|
|
1551
|
+
version: VERSION$n,
|
|
1552
1552
|
private: [],
|
|
1553
1553
|
selections: [
|
|
1554
1554
|
{
|
|
@@ -1559,7 +1559,7 @@ const select$C = function WrappedMapSelect() {
|
|
|
1559
1559
|
]
|
|
1560
1560
|
};
|
|
1561
1561
|
};
|
|
1562
|
-
function equals$
|
|
1562
|
+
function equals$n(existing, incoming) {
|
|
1563
1563
|
const existing_wrappedMap = existing.wrappedMap;
|
|
1564
1564
|
const incoming_wrappedMap = incoming.wrappedMap;
|
|
1565
1565
|
const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
|
|
@@ -1573,9 +1573,9 @@ function equals$m(existing, incoming) {
|
|
|
1573
1573
|
return true;
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
|
-
const TTL$
|
|
1577
|
-
const VERSION$
|
|
1578
|
-
function validate$
|
|
1576
|
+
const TTL$a = 100;
|
|
1577
|
+
const VERSION$m = "d8abd72a42e842b253da1c38954dafbc";
|
|
1578
|
+
function validate$s(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
1579
1579
|
const v_error = (() => {
|
|
1580
1580
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1581
1581
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1588,7 +1588,7 @@ function validate$r(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1588
1588
|
for (let i = 0; i < obj_generations.length; i++) {
|
|
1589
1589
|
const obj_generations_item = obj_generations[i];
|
|
1590
1590
|
const path_generations_item = path_generations + '[' + i + ']';
|
|
1591
|
-
const referencepath_generations_itemValidationError = validate$
|
|
1591
|
+
const referencepath_generations_itemValidationError = validate$u(obj_generations_item, path_generations_item);
|
|
1592
1592
|
if (referencepath_generations_itemValidationError !== null) {
|
|
1593
1593
|
let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
|
|
1594
1594
|
message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1599,7 +1599,7 @@ function validate$r(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1599
1599
|
const path_parameters = path + '.parameters';
|
|
1600
1600
|
let obj_parameters_union0 = null;
|
|
1601
1601
|
const obj_parameters_union0_error = (() => {
|
|
1602
|
-
const referencepath_parametersValidationError = validate$
|
|
1602
|
+
const referencepath_parametersValidationError = validate$t(obj_parameters, path_parameters);
|
|
1603
1603
|
if (referencepath_parametersValidationError !== null) {
|
|
1604
1604
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
|
|
1605
1605
|
message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1658,25 +1658,25 @@ function validate$r(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1658
1658
|
})();
|
|
1659
1659
|
return v_error === undefined ? null : v_error;
|
|
1660
1660
|
}
|
|
1661
|
-
const RepresentationType$
|
|
1662
|
-
function keyBuilder$
|
|
1663
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1661
|
+
const RepresentationType$a = 'EinsteinLlmGenerationsRepresentation';
|
|
1662
|
+
function keyBuilder$n(luvio, config) {
|
|
1663
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.requestId;
|
|
1664
1664
|
}
|
|
1665
|
-
function keyBuilderFromType$
|
|
1665
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
1666
1666
|
const keyParams = {
|
|
1667
1667
|
requestId: object.requestId
|
|
1668
1668
|
};
|
|
1669
|
-
return keyBuilder$
|
|
1669
|
+
return keyBuilder$n(luvio, keyParams);
|
|
1670
1670
|
}
|
|
1671
|
-
function normalize$
|
|
1671
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
1672
1672
|
return input;
|
|
1673
1673
|
}
|
|
1674
|
-
const select$
|
|
1675
|
-
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$
|
|
1676
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
1674
|
+
const select$D = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
1675
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$F();
|
|
1676
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$E();
|
|
1677
1677
|
return {
|
|
1678
1678
|
kind: 'Fragment',
|
|
1679
|
-
version: VERSION$
|
|
1679
|
+
version: VERSION$m,
|
|
1680
1680
|
private: [],
|
|
1681
1681
|
selections: [
|
|
1682
1682
|
{
|
|
@@ -1702,7 +1702,7 @@ const select$B = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
|
1702
1702
|
]
|
|
1703
1703
|
};
|
|
1704
1704
|
};
|
|
1705
|
-
function equals$
|
|
1705
|
+
function equals$m(existing, incoming) {
|
|
1706
1706
|
const existing_requestId = existing.requestId;
|
|
1707
1707
|
const incoming_requestId = incoming.requestId;
|
|
1708
1708
|
if (!(existing_requestId === incoming_requestId)) {
|
|
@@ -1711,7 +1711,7 @@ function equals$l(existing, incoming) {
|
|
|
1711
1711
|
const existing_generations = existing.generations;
|
|
1712
1712
|
const incoming_generations = incoming.generations;
|
|
1713
1713
|
const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
|
|
1714
|
-
if (!(equals$
|
|
1714
|
+
if (!(equals$o(existing_generations_item, incoming_generations_item))) {
|
|
1715
1715
|
return false;
|
|
1716
1716
|
}
|
|
1717
1717
|
});
|
|
@@ -1723,7 +1723,7 @@ function equals$l(existing, incoming) {
|
|
|
1723
1723
|
if (!(existing_parameters === incoming_parameters
|
|
1724
1724
|
|| (existing_parameters != null &&
|
|
1725
1725
|
incoming_parameters != null &&
|
|
1726
|
-
equals$
|
|
1726
|
+
equals$n(existing_parameters, incoming_parameters)))) {
|
|
1727
1727
|
return false;
|
|
1728
1728
|
}
|
|
1729
1729
|
const existing_prompt = existing.prompt;
|
|
@@ -1733,41 +1733,41 @@ function equals$l(existing, incoming) {
|
|
|
1733
1733
|
}
|
|
1734
1734
|
return true;
|
|
1735
1735
|
}
|
|
1736
|
-
const ingest$
|
|
1736
|
+
const ingest$a = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1737
1737
|
if (process.env.NODE_ENV !== 'production') {
|
|
1738
|
-
const validateError = validate$
|
|
1738
|
+
const validateError = validate$s(input);
|
|
1739
1739
|
if (validateError !== null) {
|
|
1740
1740
|
throw validateError;
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
|
-
const key = keyBuilderFromType$
|
|
1744
|
-
const ttlToUse = TTL$
|
|
1745
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1743
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
1744
|
+
const ttlToUse = TTL$a;
|
|
1745
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$m, RepresentationType$a, equals$m);
|
|
1746
1746
|
return createLink(key);
|
|
1747
1747
|
};
|
|
1748
|
-
function getTypeCacheKeys$
|
|
1748
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
1749
1749
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1750
|
-
const rootKey = keyBuilderFromType$
|
|
1750
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1751
1751
|
rootKeySet.set(rootKey, {
|
|
1752
1752
|
namespace: keyPrefix,
|
|
1753
|
-
representationName: RepresentationType$
|
|
1753
|
+
representationName: RepresentationType$a,
|
|
1754
1754
|
mergeable: false
|
|
1755
1755
|
});
|
|
1756
1756
|
}
|
|
1757
1757
|
|
|
1758
|
-
function select$
|
|
1759
|
-
return select$
|
|
1758
|
+
function select$C(luvio, params) {
|
|
1759
|
+
return select$D();
|
|
1760
1760
|
}
|
|
1761
|
-
function getResponseCacheKeys$
|
|
1762
|
-
getTypeCacheKeys$
|
|
1761
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
1762
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1763
1763
|
}
|
|
1764
|
-
function ingestSuccess$
|
|
1764
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
1765
1765
|
const { body } = response;
|
|
1766
|
-
const key = keyBuilderFromType$
|
|
1767
|
-
luvio.storeIngest(key, ingest$
|
|
1766
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
1767
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1768
1768
|
const snapshot = luvio.storeLookup({
|
|
1769
1769
|
recordId: key,
|
|
1770
|
-
node: select$
|
|
1770
|
+
node: select$C(),
|
|
1771
1771
|
variables: {},
|
|
1772
1772
|
});
|
|
1773
1773
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1778,7 +1778,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
1778
1778
|
deepFreeze(snapshot.data);
|
|
1779
1779
|
return snapshot;
|
|
1780
1780
|
}
|
|
1781
|
-
function createResourceRequest$
|
|
1781
|
+
function createResourceRequest$g(config) {
|
|
1782
1782
|
const headers = {};
|
|
1783
1783
|
return {
|
|
1784
1784
|
baseUri: '/services/data/v66.0',
|
|
@@ -1792,45 +1792,45 @@ function createResourceRequest$f(config) {
|
|
|
1792
1792
|
};
|
|
1793
1793
|
}
|
|
1794
1794
|
|
|
1795
|
-
const adapterName$
|
|
1795
|
+
const adapterName$g = 'createGenerations';
|
|
1796
1796
|
const createGenerations_ConfigPropertyMetadata = [
|
|
1797
1797
|
generateParamConfigMetadata('generationsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1798
1798
|
];
|
|
1799
|
-
const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1800
|
-
const createResourceParams$
|
|
1801
|
-
function typeCheckConfig$
|
|
1799
|
+
const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createGenerations_ConfigPropertyMetadata);
|
|
1800
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(createGenerations_ConfigPropertyMetadata);
|
|
1801
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
1802
1802
|
const config = {};
|
|
1803
1803
|
const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
|
|
1804
|
-
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$
|
|
1804
|
+
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$x(untrustedConfig_generationsInput);
|
|
1805
1805
|
if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
|
|
1806
1806
|
config.generationsInput = untrustedConfig_generationsInput;
|
|
1807
1807
|
}
|
|
1808
1808
|
return config;
|
|
1809
1809
|
}
|
|
1810
|
-
function validateAdapterConfig$
|
|
1810
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
1811
1811
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1812
1812
|
return null;
|
|
1813
1813
|
}
|
|
1814
1814
|
if (process.env.NODE_ENV !== 'production') {
|
|
1815
1815
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1816
1816
|
}
|
|
1817
|
-
const config = typeCheckConfig$
|
|
1817
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
1818
1818
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1819
1819
|
return null;
|
|
1820
1820
|
}
|
|
1821
1821
|
return config;
|
|
1822
1822
|
}
|
|
1823
|
-
function buildNetworkSnapshot$
|
|
1824
|
-
const resourceParams = createResourceParams$
|
|
1825
|
-
const request = createResourceRequest$
|
|
1823
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
1824
|
+
const resourceParams = createResourceParams$g(config);
|
|
1825
|
+
const request = createResourceRequest$g(resourceParams);
|
|
1826
1826
|
return luvio.dispatchResourceRequest(request, options)
|
|
1827
1827
|
.then((response) => {
|
|
1828
1828
|
return luvio.handleSuccessResponse(() => {
|
|
1829
|
-
const snapshot = ingestSuccess$
|
|
1829
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
1830
1830
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1831
1831
|
}, () => {
|
|
1832
1832
|
const cache = new StoreKeyMap();
|
|
1833
|
-
getResponseCacheKeys$
|
|
1833
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
1834
1834
|
return cache;
|
|
1835
1835
|
});
|
|
1836
1836
|
}, (response) => {
|
|
@@ -1840,16 +1840,16 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
const createGenerationsAdapterFactory = (luvio) => {
|
|
1842
1842
|
return function createGenerations(untrustedConfig) {
|
|
1843
|
-
const config = validateAdapterConfig$
|
|
1843
|
+
const config = validateAdapterConfig$g(untrustedConfig, createGenerations_ConfigPropertyNames);
|
|
1844
1844
|
// Invalid or incomplete config
|
|
1845
1845
|
if (config === null) {
|
|
1846
1846
|
throw new Error('Invalid config for "createGenerations"');
|
|
1847
1847
|
}
|
|
1848
|
-
return buildNetworkSnapshot$
|
|
1848
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
1849
1849
|
};
|
|
1850
1850
|
};
|
|
1851
1851
|
|
|
1852
|
-
function validate$
|
|
1852
|
+
function validate$r(obj, path = 'WrappedValueMap') {
|
|
1853
1853
|
const v_error = (() => {
|
|
1854
1854
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1855
1855
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1872,7 +1872,7 @@ function validate$q(obj, path = 'WrappedValueMap') {
|
|
|
1872
1872
|
return v_error === undefined ? null : v_error;
|
|
1873
1873
|
}
|
|
1874
1874
|
|
|
1875
|
-
function validate$
|
|
1875
|
+
function validate$q(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
|
|
1876
1876
|
const v_error = (() => {
|
|
1877
1877
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1878
1878
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1880,7 +1880,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1880
1880
|
if (obj.additionalConfig !== undefined) {
|
|
1881
1881
|
const obj_additionalConfig = obj.additionalConfig;
|
|
1882
1882
|
const path_additionalConfig = path + '.additionalConfig';
|
|
1883
|
-
const referencepath_additionalConfigValidationError = validate$
|
|
1883
|
+
const referencepath_additionalConfigValidationError = validate$y(obj_additionalConfig, path_additionalConfig);
|
|
1884
1884
|
if (referencepath_additionalConfigValidationError !== null) {
|
|
1885
1885
|
let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
|
|
1886
1886
|
message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1889,7 +1889,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1889
1889
|
}
|
|
1890
1890
|
const obj_inputParams = obj.inputParams;
|
|
1891
1891
|
const path_inputParams = path + '.inputParams';
|
|
1892
|
-
const referencepath_inputParamsValidationError = validate$
|
|
1892
|
+
const referencepath_inputParamsValidationError = validate$r(obj_inputParams, path_inputParams);
|
|
1893
1893
|
if (referencepath_inputParamsValidationError !== null) {
|
|
1894
1894
|
let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
|
|
1895
1895
|
message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1925,8 +1925,8 @@ function validate$p(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1925
1925
|
return v_error === undefined ? null : v_error;
|
|
1926
1926
|
}
|
|
1927
1927
|
|
|
1928
|
-
const VERSION$
|
|
1929
|
-
function validate$
|
|
1928
|
+
const VERSION$l = "6a209d0b32d59e6e04155812fdf5c985";
|
|
1929
|
+
function validate$p(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
|
|
1930
1930
|
const v_error = (() => {
|
|
1931
1931
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1932
1932
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1990,10 +1990,10 @@ function validate$o(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceReprese
|
|
|
1990
1990
|
})();
|
|
1991
1991
|
return v_error === undefined ? null : v_error;
|
|
1992
1992
|
}
|
|
1993
|
-
const select$
|
|
1993
|
+
const select$B = function EinsteinLlmGenerationGenAiCitedReferenceRepresentationSelect() {
|
|
1994
1994
|
return {
|
|
1995
1995
|
kind: 'Fragment',
|
|
1996
|
-
version: VERSION$
|
|
1996
|
+
version: VERSION$l,
|
|
1997
1997
|
private: [],
|
|
1998
1998
|
selections: [
|
|
1999
1999
|
{
|
|
@@ -2031,7 +2031,7 @@ const select$z = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
|
2031
2031
|
]
|
|
2032
2032
|
};
|
|
2033
2033
|
};
|
|
2034
|
-
function equals$
|
|
2034
|
+
function equals$l(existing, incoming) {
|
|
2035
2035
|
const existing_label = existing.label;
|
|
2036
2036
|
const incoming_label = incoming.label;
|
|
2037
2037
|
// if at least one of these optionals is defined
|
|
@@ -2123,8 +2123,8 @@ function equals$k(existing, incoming) {
|
|
|
2123
2123
|
return true;
|
|
2124
2124
|
}
|
|
2125
2125
|
|
|
2126
|
-
const VERSION$
|
|
2127
|
-
function validate$
|
|
2126
|
+
const VERSION$k = "bcc0ea08323732f4187dd2b9f70fea6c";
|
|
2127
|
+
function validate$o(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
2128
2128
|
const v_error = (() => {
|
|
2129
2129
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2130
2130
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2138,7 +2138,7 @@ function validate$n(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
|
2138
2138
|
for (let i = 0; i < obj_citedReferences.length; i++) {
|
|
2139
2139
|
const obj_citedReferences_item = obj_citedReferences[i];
|
|
2140
2140
|
const path_citedReferences_item = path_citedReferences + '[' + i + ']';
|
|
2141
|
-
const referencepath_citedReferences_itemValidationError = validate$
|
|
2141
|
+
const referencepath_citedReferences_itemValidationError = validate$p(obj_citedReferences_item, path_citedReferences_item);
|
|
2142
2142
|
if (referencepath_citedReferences_itemValidationError !== null) {
|
|
2143
2143
|
let message = 'Object doesn\'t match EinsteinLlmGenerationGenAiCitedReferenceRepresentation (at "' + path_citedReferences_item + '")\n';
|
|
2144
2144
|
message += referencepath_citedReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2149,11 +2149,11 @@ function validate$n(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
|
2149
2149
|
})();
|
|
2150
2150
|
return v_error === undefined ? null : v_error;
|
|
2151
2151
|
}
|
|
2152
|
-
const select$
|
|
2153
|
-
const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$
|
|
2152
|
+
const select$A = function EinsteinLlmGenerationCitationRepresentationSelect() {
|
|
2153
|
+
const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$B();
|
|
2154
2154
|
return {
|
|
2155
2155
|
kind: 'Fragment',
|
|
2156
|
-
version: VERSION$
|
|
2156
|
+
version: VERSION$k,
|
|
2157
2157
|
private: [],
|
|
2158
2158
|
selections: [
|
|
2159
2159
|
{
|
|
@@ -2166,7 +2166,7 @@ const select$y = function EinsteinLlmGenerationCitationRepresentationSelect() {
|
|
|
2166
2166
|
]
|
|
2167
2167
|
};
|
|
2168
2168
|
};
|
|
2169
|
-
function equals$
|
|
2169
|
+
function equals$k(existing, incoming) {
|
|
2170
2170
|
const existing_citedReferences = existing.citedReferences;
|
|
2171
2171
|
const incoming_citedReferences = incoming.citedReferences;
|
|
2172
2172
|
// if at least one of these optionals is defined
|
|
@@ -2177,7 +2177,7 @@ function equals$j(existing, incoming) {
|
|
|
2177
2177
|
return false;
|
|
2178
2178
|
}
|
|
2179
2179
|
const equals_citedReferences_items = equalsArray(existing_citedReferences, incoming_citedReferences, (existing_citedReferences_item, incoming_citedReferences_item) => {
|
|
2180
|
-
if (!(equals$
|
|
2180
|
+
if (!(equals$l(existing_citedReferences_item, incoming_citedReferences_item))) {
|
|
2181
2181
|
return false;
|
|
2182
2182
|
}
|
|
2183
2183
|
});
|
|
@@ -2188,8 +2188,8 @@ function equals$j(existing, incoming) {
|
|
|
2188
2188
|
return true;
|
|
2189
2189
|
}
|
|
2190
2190
|
|
|
2191
|
-
const VERSION$
|
|
2192
|
-
function validate$
|
|
2191
|
+
const VERSION$j = "f62ac44b024b123f079b57f349e05230";
|
|
2192
|
+
function validate$n(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
|
|
2193
2193
|
const v_error = (() => {
|
|
2194
2194
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2195
2195
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2207,10 +2207,10 @@ function validate$m(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRe
|
|
|
2207
2207
|
})();
|
|
2208
2208
|
return v_error === undefined ? null : v_error;
|
|
2209
2209
|
}
|
|
2210
|
-
const select$
|
|
2210
|
+
const select$z = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
|
|
2211
2211
|
return {
|
|
2212
2212
|
kind: 'Fragment',
|
|
2213
|
-
version: VERSION$
|
|
2213
|
+
version: VERSION$j,
|
|
2214
2214
|
private: [],
|
|
2215
2215
|
selections: [
|
|
2216
2216
|
{
|
|
@@ -2224,7 +2224,7 @@ const select$x = function EinsteinPromptTemplateAttachmentExclusionInfoRepresent
|
|
|
2224
2224
|
]
|
|
2225
2225
|
};
|
|
2226
2226
|
};
|
|
2227
|
-
function equals$
|
|
2227
|
+
function equals$j(existing, incoming) {
|
|
2228
2228
|
const existing_isExcluded = existing.isExcluded;
|
|
2229
2229
|
const incoming_isExcluded = incoming.isExcluded;
|
|
2230
2230
|
if (!(existing_isExcluded === incoming_isExcluded)) {
|
|
@@ -2238,8 +2238,8 @@ function equals$i(existing, incoming) {
|
|
|
2238
2238
|
return true;
|
|
2239
2239
|
}
|
|
2240
2240
|
|
|
2241
|
-
const VERSION$
|
|
2242
|
-
function validate$
|
|
2241
|
+
const VERSION$i = "b85a5621c60125d9f1644af130f67680";
|
|
2242
|
+
function validate$m(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
|
|
2243
2243
|
const v_error = (() => {
|
|
2244
2244
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2245
2245
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2247,7 +2247,7 @@ function validate$l(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2247
2247
|
if (obj.exclusionInfo !== undefined) {
|
|
2248
2248
|
const obj_exclusionInfo = obj.exclusionInfo;
|
|
2249
2249
|
const path_exclusionInfo = path + '.exclusionInfo';
|
|
2250
|
-
const referencepath_exclusionInfoValidationError = validate$
|
|
2250
|
+
const referencepath_exclusionInfoValidationError = validate$n(obj_exclusionInfo, path_exclusionInfo);
|
|
2251
2251
|
if (referencepath_exclusionInfoValidationError !== null) {
|
|
2252
2252
|
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentExclusionInfoRepresentation (at "' + path_exclusionInfo + '")\n';
|
|
2253
2253
|
message += referencepath_exclusionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2284,11 +2284,11 @@ function validate$l(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2284
2284
|
})();
|
|
2285
2285
|
return v_error === undefined ? null : v_error;
|
|
2286
2286
|
}
|
|
2287
|
-
const select$
|
|
2288
|
-
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$
|
|
2287
|
+
const select$y = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
|
|
2288
|
+
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$z();
|
|
2289
2289
|
return {
|
|
2290
2290
|
kind: 'Fragment',
|
|
2291
|
-
version: VERSION$
|
|
2291
|
+
version: VERSION$i,
|
|
2292
2292
|
private: [],
|
|
2293
2293
|
selections: [
|
|
2294
2294
|
{
|
|
@@ -2321,7 +2321,7 @@ const select$w = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
2321
2321
|
]
|
|
2322
2322
|
};
|
|
2323
2323
|
};
|
|
2324
|
-
function equals$
|
|
2324
|
+
function equals$i(existing, incoming) {
|
|
2325
2325
|
const existing_fileExtension = existing.fileExtension;
|
|
2326
2326
|
const incoming_fileExtension = incoming.fileExtension;
|
|
2327
2327
|
if (!(existing_fileExtension === incoming_fileExtension)) {
|
|
@@ -2364,15 +2364,15 @@ function equals$h(existing, incoming) {
|
|
|
2364
2364
|
if (existing_exclusionInfo === undefined || incoming_exclusionInfo === undefined) {
|
|
2365
2365
|
return false;
|
|
2366
2366
|
}
|
|
2367
|
-
if (!(equals$
|
|
2367
|
+
if (!(equals$j(existing_exclusionInfo, incoming_exclusionInfo))) {
|
|
2368
2368
|
return false;
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
return true;
|
|
2372
2372
|
}
|
|
2373
2373
|
|
|
2374
|
-
const VERSION$
|
|
2375
|
-
function validate$
|
|
2374
|
+
const VERSION$h = "6458d624e5a1691821c764b6de0badb3";
|
|
2375
|
+
function validate$l(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
|
|
2376
2376
|
const v_error = (() => {
|
|
2377
2377
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2378
2378
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2402,10 +2402,10 @@ function validate$k(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
|
|
|
2402
2402
|
})();
|
|
2403
2403
|
return v_error === undefined ? null : v_error;
|
|
2404
2404
|
}
|
|
2405
|
-
const select$
|
|
2405
|
+
const select$x = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
|
|
2406
2406
|
return {
|
|
2407
2407
|
kind: 'Fragment',
|
|
2408
|
-
version: VERSION$
|
|
2408
|
+
version: VERSION$h,
|
|
2409
2409
|
private: [],
|
|
2410
2410
|
selections: [
|
|
2411
2411
|
{
|
|
@@ -2428,7 +2428,7 @@ const select$v = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
|
|
|
2428
2428
|
]
|
|
2429
2429
|
};
|
|
2430
2430
|
};
|
|
2431
|
-
function equals$
|
|
2431
|
+
function equals$h(existing, incoming) {
|
|
2432
2432
|
const existing_errorMessage = existing.errorMessage;
|
|
2433
2433
|
const incoming_errorMessage = incoming.errorMessage;
|
|
2434
2434
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -2460,8 +2460,8 @@ function equals$g(existing, incoming) {
|
|
|
2460
2460
|
return true;
|
|
2461
2461
|
}
|
|
2462
2462
|
|
|
2463
|
-
const VERSION$
|
|
2464
|
-
function validate$
|
|
2463
|
+
const VERSION$g = "7c417ce44e4bc05dfcc454e6825590e8";
|
|
2464
|
+
function validate$k(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
|
|
2465
2465
|
const v_error = (() => {
|
|
2466
2466
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2467
2467
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2474,10 +2474,10 @@ function validate$j(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentatio
|
|
|
2474
2474
|
})();
|
|
2475
2475
|
return v_error === undefined ? null : v_error;
|
|
2476
2476
|
}
|
|
2477
|
-
const select$
|
|
2477
|
+
const select$w = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
|
|
2478
2478
|
return {
|
|
2479
2479
|
kind: 'Fragment',
|
|
2480
|
-
version: VERSION$
|
|
2480
|
+
version: VERSION$g,
|
|
2481
2481
|
private: [],
|
|
2482
2482
|
selections: [
|
|
2483
2483
|
{
|
|
@@ -2487,7 +2487,7 @@ const select$u = function EinsteinPromptTemplateMaskSettingsRepresentationSelect
|
|
|
2487
2487
|
]
|
|
2488
2488
|
};
|
|
2489
2489
|
};
|
|
2490
|
-
function equals$
|
|
2490
|
+
function equals$g(existing, incoming) {
|
|
2491
2491
|
const existing_enableModeration = existing.enableModeration;
|
|
2492
2492
|
const incoming_enableModeration = incoming.enableModeration;
|
|
2493
2493
|
if (!(existing_enableModeration === incoming_enableModeration)) {
|
|
@@ -2496,8 +2496,8 @@ function equals$f(existing, incoming) {
|
|
|
2496
2496
|
return true;
|
|
2497
2497
|
}
|
|
2498
2498
|
|
|
2499
|
-
const VERSION$
|
|
2500
|
-
function validate$
|
|
2499
|
+
const VERSION$f = "92ad1abd0e2a60bc36941409cadda7e2";
|
|
2500
|
+
function validate$j(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
|
|
2501
2501
|
const v_error = (() => {
|
|
2502
2502
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2503
2503
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2512,7 +2512,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
|
|
|
2512
2512
|
const path_moderationSettings = path + '.moderationSettings';
|
|
2513
2513
|
let obj_moderationSettings_union0 = null;
|
|
2514
2514
|
const obj_moderationSettings_union0_error = (() => {
|
|
2515
|
-
const referencepath_moderationSettingsValidationError = validate$
|
|
2515
|
+
const referencepath_moderationSettingsValidationError = validate$k(obj_moderationSettings, path_moderationSettings);
|
|
2516
2516
|
if (referencepath_moderationSettingsValidationError !== null) {
|
|
2517
2517
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
|
|
2518
2518
|
message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2548,11 +2548,11 @@ function validate$i(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
|
|
|
2548
2548
|
})();
|
|
2549
2549
|
return v_error === undefined ? null : v_error;
|
|
2550
2550
|
}
|
|
2551
|
-
const select$
|
|
2552
|
-
const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$
|
|
2551
|
+
const select$v = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
|
|
2552
|
+
const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$w();
|
|
2553
2553
|
return {
|
|
2554
2554
|
kind: 'Fragment',
|
|
2555
|
-
version: VERSION$
|
|
2555
|
+
version: VERSION$f,
|
|
2556
2556
|
private: [],
|
|
2557
2557
|
selections: [
|
|
2558
2558
|
{
|
|
@@ -2574,7 +2574,7 @@ const select$t = function EinsteinPromptTemplateMaskContentRepresentationSelect(
|
|
|
2574
2574
|
]
|
|
2575
2575
|
};
|
|
2576
2576
|
};
|
|
2577
|
-
function equals$
|
|
2577
|
+
function equals$f(existing, incoming) {
|
|
2578
2578
|
const existing_content = existing.content;
|
|
2579
2579
|
const incoming_content = incoming.content;
|
|
2580
2580
|
if (!(existing_content === incoming_content)) {
|
|
@@ -2605,15 +2605,15 @@ function equals$e(existing, incoming) {
|
|
|
2605
2605
|
if (!(existing_moderationSettings === incoming_moderationSettings
|
|
2606
2606
|
|| (existing_moderationSettings != null &&
|
|
2607
2607
|
incoming_moderationSettings != null &&
|
|
2608
|
-
equals$
|
|
2608
|
+
equals$g(existing_moderationSettings, incoming_moderationSettings)))) {
|
|
2609
2609
|
return false;
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
2612
|
return true;
|
|
2613
2613
|
}
|
|
2614
2614
|
|
|
2615
|
-
const VERSION$
|
|
2616
|
-
function validate$
|
|
2615
|
+
const VERSION$e = "507a815605f8d30ae9b52b0ec513d25e";
|
|
2616
|
+
function validate$i(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
|
|
2617
2617
|
const v_error = (() => {
|
|
2618
2618
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2619
2619
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2643,10 +2643,10 @@ function validate$h(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation')
|
|
|
2643
2643
|
})();
|
|
2644
2644
|
return v_error === undefined ? null : v_error;
|
|
2645
2645
|
}
|
|
2646
|
-
const select$
|
|
2646
|
+
const select$u = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
|
|
2647
2647
|
return {
|
|
2648
2648
|
kind: 'Fragment',
|
|
2649
|
-
version: VERSION$
|
|
2649
|
+
version: VERSION$e,
|
|
2650
2650
|
private: [],
|
|
2651
2651
|
selections: [
|
|
2652
2652
|
{
|
|
@@ -2665,7 +2665,7 @@ const select$s = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
|
|
|
2665
2665
|
]
|
|
2666
2666
|
};
|
|
2667
2667
|
};
|
|
2668
|
-
function equals$
|
|
2668
|
+
function equals$e(existing, incoming) {
|
|
2669
2669
|
const existing_originalValue = existing.originalValue;
|
|
2670
2670
|
const incoming_originalValue = incoming.originalValue;
|
|
2671
2671
|
if (!(existing_originalValue === incoming_originalValue)) {
|
|
@@ -2689,9 +2689,9 @@ function equals$d(existing, incoming) {
|
|
|
2689
2689
|
return true;
|
|
2690
2690
|
}
|
|
2691
2691
|
|
|
2692
|
-
const TTL$
|
|
2693
|
-
const VERSION$
|
|
2694
|
-
function validate$
|
|
2692
|
+
const TTL$9 = 100;
|
|
2693
|
+
const VERSION$d = "4f8799314eebcd45e3fca72dcdf7722d";
|
|
2694
|
+
function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
|
|
2695
2695
|
const v_error = (() => {
|
|
2696
2696
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2697
2697
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2699,7 +2699,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2699
2699
|
if (obj.citations !== undefined) {
|
|
2700
2700
|
const obj_citations = obj.citations;
|
|
2701
2701
|
const path_citations = path + '.citations';
|
|
2702
|
-
const referencepath_citationsValidationError = validate$
|
|
2702
|
+
const referencepath_citationsValidationError = validate$o(obj_citations, path_citations);
|
|
2703
2703
|
if (referencepath_citationsValidationError !== null) {
|
|
2704
2704
|
let message = 'Object doesn\'t match EinsteinLlmGenerationCitationRepresentation (at "' + path_citations + '")\n';
|
|
2705
2705
|
message += referencepath_citationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2715,7 +2715,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2715
2715
|
for (let i = 0; i < obj_fileData.length; i++) {
|
|
2716
2716
|
const obj_fileData_item = obj_fileData[i];
|
|
2717
2717
|
const path_fileData_item = path_fileData + '[' + i + ']';
|
|
2718
|
-
const referencepath_fileData_itemValidationError = validate$
|
|
2718
|
+
const referencepath_fileData_itemValidationError = validate$m(obj_fileData_item, path_fileData_item);
|
|
2719
2719
|
if (referencepath_fileData_itemValidationError !== null) {
|
|
2720
2720
|
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentRepresentation (at "' + path_fileData_item + '")\n';
|
|
2721
2721
|
message += referencepath_fileData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2732,7 +2732,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2732
2732
|
for (let i = 0; i < obj_generationErrors.length; i++) {
|
|
2733
2733
|
const obj_generationErrors_item = obj_generationErrors[i];
|
|
2734
2734
|
const path_generationErrors_item = path_generationErrors + '[' + i + ']';
|
|
2735
|
-
const referencepath_generationErrors_itemValidationError = validate$
|
|
2735
|
+
const referencepath_generationErrors_itemValidationError = validate$l(obj_generationErrors_item, path_generationErrors_item);
|
|
2736
2736
|
if (referencepath_generationErrors_itemValidationError !== null) {
|
|
2737
2737
|
let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
|
|
2738
2738
|
message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2748,7 +2748,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2748
2748
|
for (let i = 0; i < obj_generations.length; i++) {
|
|
2749
2749
|
const obj_generations_item = obj_generations[i];
|
|
2750
2750
|
const path_generations_item = path_generations + '[' + i + ']';
|
|
2751
|
-
const referencepath_generations_itemValidationError = validate$
|
|
2751
|
+
const referencepath_generations_itemValidationError = validate$u(obj_generations_item, path_generations_item);
|
|
2752
2752
|
if (referencepath_generations_itemValidationError !== null) {
|
|
2753
2753
|
let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
|
|
2754
2754
|
message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2775,7 +2775,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2775
2775
|
const path_parameters = path + '.parameters';
|
|
2776
2776
|
let obj_parameters_union0 = null;
|
|
2777
2777
|
const obj_parameters_union0_error = (() => {
|
|
2778
|
-
const referencepath_parametersValidationError = validate$
|
|
2778
|
+
const referencepath_parametersValidationError = validate$t(obj_parameters, path_parameters);
|
|
2779
2779
|
if (referencepath_parametersValidationError !== null) {
|
|
2780
2780
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
|
|
2781
2781
|
message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2871,7 +2871,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2871
2871
|
for (let i = 0; i < obj_requestMessages.length; i++) {
|
|
2872
2872
|
const obj_requestMessages_item = obj_requestMessages[i];
|
|
2873
2873
|
const path_requestMessages_item = path_requestMessages + '[' + i + ']';
|
|
2874
|
-
const referencepath_requestMessages_itemValidationError = validate$
|
|
2874
|
+
const referencepath_requestMessages_itemValidationError = validate$j(obj_requestMessages_item, path_requestMessages_item);
|
|
2875
2875
|
if (referencepath_requestMessages_itemValidationError !== null) {
|
|
2876
2876
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
|
|
2877
2877
|
message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2888,7 +2888,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2888
2888
|
for (let i = 0; i < obj_responseMessages.length; i++) {
|
|
2889
2889
|
const obj_responseMessages_item = obj_responseMessages[i];
|
|
2890
2890
|
const path_responseMessages_item = path_responseMessages + '[' + i + ']';
|
|
2891
|
-
const referencepath_responseMessages_itemValidationError = validate$
|
|
2891
|
+
const referencepath_responseMessages_itemValidationError = validate$j(obj_responseMessages_item, path_responseMessages_item);
|
|
2892
2892
|
if (referencepath_responseMessages_itemValidationError !== null) {
|
|
2893
2893
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
|
|
2894
2894
|
message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2905,7 +2905,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2905
2905
|
for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
|
|
2906
2906
|
const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
|
|
2907
2907
|
const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
|
|
2908
|
-
const referencepath_slotsMaskingInformation_itemValidationError = validate$
|
|
2908
|
+
const referencepath_slotsMaskingInformation_itemValidationError = validate$i(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
|
|
2909
2909
|
if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
|
|
2910
2910
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
|
|
2911
2911
|
message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2916,30 +2916,30 @@ function validate$g(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2916
2916
|
})();
|
|
2917
2917
|
return v_error === undefined ? null : v_error;
|
|
2918
2918
|
}
|
|
2919
|
-
const RepresentationType$
|
|
2920
|
-
function keyBuilder$
|
|
2921
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2919
|
+
const RepresentationType$9 = 'EinsteinPromptTemplateGenerationsRepresentation';
|
|
2920
|
+
function keyBuilder$m(luvio, config) {
|
|
2921
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.requestId;
|
|
2922
2922
|
}
|
|
2923
|
-
function keyBuilderFromType$
|
|
2923
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
2924
2924
|
const keyParams = {
|
|
2925
2925
|
requestId: object.requestId
|
|
2926
2926
|
};
|
|
2927
|
-
return keyBuilder$
|
|
2927
|
+
return keyBuilder$m(luvio, keyParams);
|
|
2928
2928
|
}
|
|
2929
|
-
function normalize$
|
|
2929
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
2930
2930
|
return input;
|
|
2931
2931
|
}
|
|
2932
|
-
const select$
|
|
2933
|
-
const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$
|
|
2934
|
-
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$
|
|
2935
|
-
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$
|
|
2936
|
-
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$
|
|
2937
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
2938
|
-
const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$
|
|
2939
|
-
const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$
|
|
2932
|
+
const select$t = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
|
|
2933
|
+
const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$A();
|
|
2934
|
+
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$y();
|
|
2935
|
+
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$x();
|
|
2936
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$F();
|
|
2937
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$E();
|
|
2938
|
+
const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$v();
|
|
2939
|
+
const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$u();
|
|
2940
2940
|
return {
|
|
2941
2941
|
kind: 'Fragment',
|
|
2942
|
-
version: VERSION$
|
|
2942
|
+
version: VERSION$d,
|
|
2943
2943
|
private: [],
|
|
2944
2944
|
selections: [
|
|
2945
2945
|
{
|
|
@@ -3019,7 +3019,7 @@ const select$r = function EinsteinPromptTemplateGenerationsRepresentationSelect(
|
|
|
3019
3019
|
]
|
|
3020
3020
|
};
|
|
3021
3021
|
};
|
|
3022
|
-
function equals$
|
|
3022
|
+
function equals$d(existing, incoming) {
|
|
3023
3023
|
const existing_promptTemplateDevName = existing.promptTemplateDevName;
|
|
3024
3024
|
const incoming_promptTemplateDevName = incoming.promptTemplateDevName;
|
|
3025
3025
|
if (!(existing_promptTemplateDevName === incoming_promptTemplateDevName)) {
|
|
@@ -3039,7 +3039,7 @@ function equals$c(existing, incoming) {
|
|
|
3039
3039
|
if (existing_citations === undefined || incoming_citations === undefined) {
|
|
3040
3040
|
return false;
|
|
3041
3041
|
}
|
|
3042
|
-
if (!(equals$
|
|
3042
|
+
if (!(equals$k(existing_citations, incoming_citations))) {
|
|
3043
3043
|
return false;
|
|
3044
3044
|
}
|
|
3045
3045
|
}
|
|
@@ -3053,7 +3053,7 @@ function equals$c(existing, incoming) {
|
|
|
3053
3053
|
return false;
|
|
3054
3054
|
}
|
|
3055
3055
|
const equals_fileData_items = equalsArray(existing_fileData, incoming_fileData, (existing_fileData_item, incoming_fileData_item) => {
|
|
3056
|
-
if (!(equals$
|
|
3056
|
+
if (!(equals$i(existing_fileData_item, incoming_fileData_item))) {
|
|
3057
3057
|
return false;
|
|
3058
3058
|
}
|
|
3059
3059
|
});
|
|
@@ -3071,7 +3071,7 @@ function equals$c(existing, incoming) {
|
|
|
3071
3071
|
return false;
|
|
3072
3072
|
}
|
|
3073
3073
|
const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
|
|
3074
|
-
if (!(equals$
|
|
3074
|
+
if (!(equals$h(existing_generationErrors_item, incoming_generationErrors_item))) {
|
|
3075
3075
|
return false;
|
|
3076
3076
|
}
|
|
3077
3077
|
});
|
|
@@ -3082,7 +3082,7 @@ function equals$c(existing, incoming) {
|
|
|
3082
3082
|
const existing_generations = existing.generations;
|
|
3083
3083
|
const incoming_generations = incoming.generations;
|
|
3084
3084
|
const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
|
|
3085
|
-
if (!(equals$
|
|
3085
|
+
if (!(equals$o(existing_generations_item, incoming_generations_item))) {
|
|
3086
3086
|
return false;
|
|
3087
3087
|
}
|
|
3088
3088
|
});
|
|
@@ -3112,7 +3112,7 @@ function equals$c(existing, incoming) {
|
|
|
3112
3112
|
if (!(existing_parameters === incoming_parameters
|
|
3113
3113
|
|| (existing_parameters != null &&
|
|
3114
3114
|
incoming_parameters != null &&
|
|
3115
|
-
equals$
|
|
3115
|
+
equals$n(existing_parameters, incoming_parameters)))) {
|
|
3116
3116
|
return false;
|
|
3117
3117
|
}
|
|
3118
3118
|
const existing_prompt = existing.prompt;
|
|
@@ -3135,7 +3135,7 @@ function equals$c(existing, incoming) {
|
|
|
3135
3135
|
return false;
|
|
3136
3136
|
}
|
|
3137
3137
|
const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
|
|
3138
|
-
if (!(equals$
|
|
3138
|
+
if (!(equals$f(existing_requestMessages_item, incoming_requestMessages_item))) {
|
|
3139
3139
|
return false;
|
|
3140
3140
|
}
|
|
3141
3141
|
});
|
|
@@ -3153,7 +3153,7 @@ function equals$c(existing, incoming) {
|
|
|
3153
3153
|
return false;
|
|
3154
3154
|
}
|
|
3155
3155
|
const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
|
|
3156
|
-
if (!(equals$
|
|
3156
|
+
if (!(equals$f(existing_responseMessages_item, incoming_responseMessages_item))) {
|
|
3157
3157
|
return false;
|
|
3158
3158
|
}
|
|
3159
3159
|
});
|
|
@@ -3171,7 +3171,7 @@ function equals$c(existing, incoming) {
|
|
|
3171
3171
|
return false;
|
|
3172
3172
|
}
|
|
3173
3173
|
const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
|
|
3174
|
-
if (!(equals$
|
|
3174
|
+
if (!(equals$e(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
|
|
3175
3175
|
return false;
|
|
3176
3176
|
}
|
|
3177
3177
|
});
|
|
@@ -3181,41 +3181,41 @@ function equals$c(existing, incoming) {
|
|
|
3181
3181
|
}
|
|
3182
3182
|
return true;
|
|
3183
3183
|
}
|
|
3184
|
-
const ingest$
|
|
3184
|
+
const ingest$9 = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3185
3185
|
if (process.env.NODE_ENV !== 'production') {
|
|
3186
|
-
const validateError = validate$
|
|
3186
|
+
const validateError = validate$h(input);
|
|
3187
3187
|
if (validateError !== null) {
|
|
3188
3188
|
throw validateError;
|
|
3189
3189
|
}
|
|
3190
3190
|
}
|
|
3191
|
-
const key = keyBuilderFromType$
|
|
3192
|
-
const ttlToUse = TTL$
|
|
3193
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3191
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
3192
|
+
const ttlToUse = TTL$9;
|
|
3193
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$d, RepresentationType$9, equals$d);
|
|
3194
3194
|
return createLink(key);
|
|
3195
3195
|
};
|
|
3196
|
-
function getTypeCacheKeys$
|
|
3196
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
3197
3197
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3198
|
-
const rootKey = keyBuilderFromType$
|
|
3198
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
3199
3199
|
rootKeySet.set(rootKey, {
|
|
3200
3200
|
namespace: keyPrefix,
|
|
3201
|
-
representationName: RepresentationType$
|
|
3201
|
+
representationName: RepresentationType$9,
|
|
3202
3202
|
mergeable: false
|
|
3203
3203
|
});
|
|
3204
3204
|
}
|
|
3205
3205
|
|
|
3206
|
-
function select$
|
|
3207
|
-
return select$
|
|
3206
|
+
function select$s(luvio, params) {
|
|
3207
|
+
return select$t();
|
|
3208
3208
|
}
|
|
3209
|
-
function getResponseCacheKeys$
|
|
3210
|
-
getTypeCacheKeys$
|
|
3209
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
3210
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
3211
3211
|
}
|
|
3212
|
-
function ingestSuccess$
|
|
3212
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
3213
3213
|
const { body } = response;
|
|
3214
|
-
const key = keyBuilderFromType$
|
|
3215
|
-
luvio.storeIngest(key, ingest$
|
|
3214
|
+
const key = keyBuilderFromType$2(luvio, body);
|
|
3215
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
3216
3216
|
const snapshot = luvio.storeLookup({
|
|
3217
3217
|
recordId: key,
|
|
3218
|
-
node: select$
|
|
3218
|
+
node: select$s(),
|
|
3219
3219
|
variables: {},
|
|
3220
3220
|
});
|
|
3221
3221
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3226,7 +3226,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
3226
3226
|
deepFreeze(snapshot.data);
|
|
3227
3227
|
return snapshot;
|
|
3228
3228
|
}
|
|
3229
|
-
function createResourceRequest$
|
|
3229
|
+
function createResourceRequest$f(config) {
|
|
3230
3230
|
const headers = {};
|
|
3231
3231
|
return {
|
|
3232
3232
|
baseUri: '/services/data/v66.0',
|
|
@@ -3240,48 +3240,48 @@ function createResourceRequest$e(config) {
|
|
|
3240
3240
|
};
|
|
3241
3241
|
}
|
|
3242
3242
|
|
|
3243
|
-
const adapterName$
|
|
3243
|
+
const adapterName$f = 'createGenerationsForPromptTemplate';
|
|
3244
3244
|
const createGenerationsForPromptTemplate_ConfigPropertyMetadata = [
|
|
3245
3245
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3246
3246
|
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3247
3247
|
generateParamConfigMetadata('promptTemplateGenerationsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3248
3248
|
];
|
|
3249
|
-
const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3250
|
-
const createResourceParams$
|
|
3251
|
-
function typeCheckConfig$
|
|
3249
|
+
const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3250
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3251
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
3252
3252
|
const config = {};
|
|
3253
|
-
typeCheckConfig$
|
|
3253
|
+
typeCheckConfig$j(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3254
3254
|
const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
|
|
3255
|
-
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$
|
|
3255
|
+
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$q(untrustedConfig_promptTemplateGenerationsInput);
|
|
3256
3256
|
if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
|
|
3257
3257
|
config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
|
|
3258
3258
|
}
|
|
3259
3259
|
return config;
|
|
3260
3260
|
}
|
|
3261
|
-
function validateAdapterConfig$
|
|
3261
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
3262
3262
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3263
3263
|
return null;
|
|
3264
3264
|
}
|
|
3265
3265
|
if (process.env.NODE_ENV !== 'production') {
|
|
3266
3266
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3267
3267
|
}
|
|
3268
|
-
const config = typeCheckConfig$
|
|
3268
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
3269
3269
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3270
3270
|
return null;
|
|
3271
3271
|
}
|
|
3272
3272
|
return config;
|
|
3273
3273
|
}
|
|
3274
|
-
function buildNetworkSnapshot$
|
|
3275
|
-
const resourceParams = createResourceParams$
|
|
3276
|
-
const request = createResourceRequest$
|
|
3274
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
3275
|
+
const resourceParams = createResourceParams$f(config);
|
|
3276
|
+
const request = createResourceRequest$f(resourceParams);
|
|
3277
3277
|
return luvio.dispatchResourceRequest(request, options)
|
|
3278
3278
|
.then((response) => {
|
|
3279
3279
|
return luvio.handleSuccessResponse(() => {
|
|
3280
|
-
const snapshot = ingestSuccess$
|
|
3280
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
3281
3281
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3282
3282
|
}, () => {
|
|
3283
3283
|
const cache = new StoreKeyMap();
|
|
3284
|
-
getResponseCacheKeys$
|
|
3284
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
3285
3285
|
return cache;
|
|
3286
3286
|
});
|
|
3287
3287
|
}, (response) => {
|
|
@@ -3291,18 +3291,18 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
3291
3291
|
}
|
|
3292
3292
|
const createGenerationsForPromptTemplateAdapterFactory = (luvio) => {
|
|
3293
3293
|
return function createGenerationsForPromptTemplate(untrustedConfig) {
|
|
3294
|
-
const config = validateAdapterConfig$
|
|
3294
|
+
const config = validateAdapterConfig$f(untrustedConfig, createGenerationsForPromptTemplate_ConfigPropertyNames);
|
|
3295
3295
|
// Invalid or incomplete config
|
|
3296
3296
|
if (config === null) {
|
|
3297
3297
|
throw new Error('Invalid config for "createGenerationsForPromptTemplate"');
|
|
3298
3298
|
}
|
|
3299
|
-
return buildNetworkSnapshot$
|
|
3299
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
3300
3300
|
};
|
|
3301
3301
|
};
|
|
3302
3302
|
|
|
3303
|
-
const TTL$
|
|
3304
|
-
const VERSION$
|
|
3305
|
-
function validate$
|
|
3303
|
+
const TTL$8 = 100;
|
|
3304
|
+
const VERSION$c = "a90a51578e2fdd7a9741d310bed22b1d";
|
|
3305
|
+
function validate$g(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
3306
3306
|
const v_error = (() => {
|
|
3307
3307
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3308
3308
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3310,7 +3310,7 @@ function validate$f(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
|
3310
3310
|
if (obj.additionalData !== undefined) {
|
|
3311
3311
|
const obj_additionalData = obj.additionalData;
|
|
3312
3312
|
const path_additionalData = path + '.additionalData';
|
|
3313
|
-
const referencepath_additionalDataValidationError = validate$
|
|
3313
|
+
const referencepath_additionalDataValidationError = validate$t(obj_additionalData, path_additionalData);
|
|
3314
3314
|
if (referencepath_additionalDataValidationError !== null) {
|
|
3315
3315
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
3316
3316
|
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3378,24 +3378,24 @@ function validate$f(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
|
3378
3378
|
})();
|
|
3379
3379
|
return v_error === undefined ? null : v_error;
|
|
3380
3380
|
}
|
|
3381
|
-
const RepresentationType$
|
|
3382
|
-
function keyBuilder$
|
|
3383
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3381
|
+
const RepresentationType$8 = 'EinsteinPromptTemplateRepresentation';
|
|
3382
|
+
function keyBuilder$l(luvio, config) {
|
|
3383
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.versionId;
|
|
3384
3384
|
}
|
|
3385
|
-
function keyBuilderFromType(luvio, object) {
|
|
3385
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
3386
3386
|
const keyParams = {
|
|
3387
3387
|
versionId: object.versionId
|
|
3388
3388
|
};
|
|
3389
|
-
return keyBuilder$
|
|
3389
|
+
return keyBuilder$l(luvio, keyParams);
|
|
3390
3390
|
}
|
|
3391
|
-
function normalize$
|
|
3391
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
3392
3392
|
return input;
|
|
3393
3393
|
}
|
|
3394
|
-
const select$
|
|
3395
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
3394
|
+
const select$r = function EinsteinPromptTemplateRepresentationSelect() {
|
|
3395
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$E();
|
|
3396
3396
|
return {
|
|
3397
3397
|
kind: 'Fragment',
|
|
3398
|
-
version: VERSION$
|
|
3398
|
+
version: VERSION$c,
|
|
3399
3399
|
private: [],
|
|
3400
3400
|
selections: [
|
|
3401
3401
|
{
|
|
@@ -3443,7 +3443,7 @@ const select$p = function EinsteinPromptTemplateRepresentationSelect() {
|
|
|
3443
3443
|
]
|
|
3444
3444
|
};
|
|
3445
3445
|
};
|
|
3446
|
-
function equals$
|
|
3446
|
+
function equals$c(existing, incoming) {
|
|
3447
3447
|
const existing_hasWarning = existing.hasWarning;
|
|
3448
3448
|
const incoming_hasWarning = incoming.hasWarning;
|
|
3449
3449
|
if (!(existing_hasWarning === incoming_hasWarning)) {
|
|
@@ -3499,7 +3499,7 @@ function equals$b(existing, incoming) {
|
|
|
3499
3499
|
if (existing_additionalData === undefined || incoming_additionalData === undefined) {
|
|
3500
3500
|
return false;
|
|
3501
3501
|
}
|
|
3502
|
-
if (!(equals$
|
|
3502
|
+
if (!(equals$n(existing_additionalData, incoming_additionalData))) {
|
|
3503
3503
|
return false;
|
|
3504
3504
|
}
|
|
3505
3505
|
}
|
|
@@ -3525,41 +3525,41 @@ function equals$b(existing, incoming) {
|
|
|
3525
3525
|
}
|
|
3526
3526
|
return true;
|
|
3527
3527
|
}
|
|
3528
|
-
const ingest$
|
|
3528
|
+
const ingest$8 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3529
3529
|
if (process.env.NODE_ENV !== 'production') {
|
|
3530
|
-
const validateError = validate$
|
|
3530
|
+
const validateError = validate$g(input);
|
|
3531
3531
|
if (validateError !== null) {
|
|
3532
3532
|
throw validateError;
|
|
3533
3533
|
}
|
|
3534
3534
|
}
|
|
3535
|
-
const key = keyBuilderFromType(luvio, input);
|
|
3536
|
-
const ttlToUse = TTL$
|
|
3537
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3535
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
3536
|
+
const ttlToUse = TTL$8;
|
|
3537
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$c, RepresentationType$8, equals$c);
|
|
3538
3538
|
return createLink(key);
|
|
3539
3539
|
};
|
|
3540
|
-
function getTypeCacheKeys$
|
|
3540
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
3541
3541
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3542
|
-
const rootKey = keyBuilderFromType(luvio, input);
|
|
3542
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
3543
3543
|
rootKeySet.set(rootKey, {
|
|
3544
3544
|
namespace: keyPrefix,
|
|
3545
|
-
representationName: RepresentationType$
|
|
3545
|
+
representationName: RepresentationType$8,
|
|
3546
3546
|
mergeable: false
|
|
3547
3547
|
});
|
|
3548
3548
|
}
|
|
3549
3549
|
|
|
3550
|
-
function select$
|
|
3551
|
-
return select$
|
|
3550
|
+
function select$q(luvio, params) {
|
|
3551
|
+
return select$r();
|
|
3552
3552
|
}
|
|
3553
|
-
function getResponseCacheKeys$
|
|
3554
|
-
getTypeCacheKeys$
|
|
3553
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
3554
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
3555
3555
|
}
|
|
3556
|
-
function ingestSuccess$
|
|
3556
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
3557
3557
|
const { body } = response;
|
|
3558
|
-
const key = keyBuilderFromType(luvio, body);
|
|
3559
|
-
luvio.storeIngest(key, ingest$
|
|
3558
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
3559
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3560
3560
|
const snapshot = luvio.storeLookup({
|
|
3561
3561
|
recordId: key,
|
|
3562
|
-
node: select$
|
|
3562
|
+
node: select$q(),
|
|
3563
3563
|
variables: {},
|
|
3564
3564
|
});
|
|
3565
3565
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3570,7 +3570,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
3570
3570
|
deepFreeze(snapshot.data);
|
|
3571
3571
|
return snapshot;
|
|
3572
3572
|
}
|
|
3573
|
-
function createResourceRequest$
|
|
3573
|
+
function createResourceRequest$e(config) {
|
|
3574
3574
|
const headers = {};
|
|
3575
3575
|
return {
|
|
3576
3576
|
baseUri: '/services/data/v66.0',
|
|
@@ -3584,18 +3584,18 @@ function createResourceRequest$d(config) {
|
|
|
3584
3584
|
};
|
|
3585
3585
|
}
|
|
3586
3586
|
|
|
3587
|
-
const adapterName$
|
|
3587
|
+
const adapterName$e = 'createPromptTemplate';
|
|
3588
3588
|
const createPromptTemplate_ConfigPropertyMetadata = [
|
|
3589
3589
|
generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
|
|
3590
3590
|
generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3591
3591
|
generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3592
3592
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
3593
3593
|
];
|
|
3594
|
-
const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3595
|
-
const createResourceParams$
|
|
3596
|
-
function typeCheckConfig$
|
|
3594
|
+
const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createPromptTemplate_ConfigPropertyMetadata);
|
|
3595
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(createPromptTemplate_ConfigPropertyMetadata);
|
|
3596
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
3597
3597
|
const config = {};
|
|
3598
|
-
typeCheckConfig$
|
|
3598
|
+
typeCheckConfig$j(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
|
|
3599
3599
|
const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
|
|
3600
3600
|
if (untrustedIsObject(untrustedConfig_childRelationships)) {
|
|
3601
3601
|
const untrustedConfig_childRelationships_object = {};
|
|
@@ -3628,30 +3628,30 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
3628
3628
|
}
|
|
3629
3629
|
return config;
|
|
3630
3630
|
}
|
|
3631
|
-
function validateAdapterConfig$
|
|
3631
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
3632
3632
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3633
3633
|
return null;
|
|
3634
3634
|
}
|
|
3635
3635
|
if (process.env.NODE_ENV !== 'production') {
|
|
3636
3636
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3637
3637
|
}
|
|
3638
|
-
const config = typeCheckConfig$
|
|
3638
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
3639
3639
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3640
3640
|
return null;
|
|
3641
3641
|
}
|
|
3642
3642
|
return config;
|
|
3643
3643
|
}
|
|
3644
|
-
function buildNetworkSnapshot$
|
|
3645
|
-
const resourceParams = createResourceParams$
|
|
3646
|
-
const request = createResourceRequest$
|
|
3644
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
3645
|
+
const resourceParams = createResourceParams$e(config);
|
|
3646
|
+
const request = createResourceRequest$e(resourceParams);
|
|
3647
3647
|
return luvio.dispatchResourceRequest(request, options)
|
|
3648
3648
|
.then((response) => {
|
|
3649
3649
|
return luvio.handleSuccessResponse(() => {
|
|
3650
|
-
const snapshot = ingestSuccess$
|
|
3650
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
3651
3651
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3652
3652
|
}, () => {
|
|
3653
3653
|
const cache = new StoreKeyMap();
|
|
3654
|
-
getResponseCacheKeys$
|
|
3654
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
3655
3655
|
return cache;
|
|
3656
3656
|
});
|
|
3657
3657
|
}, (response) => {
|
|
@@ -3661,28 +3661,28 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
3661
3661
|
}
|
|
3662
3662
|
const createPromptTemplateAdapterFactory = (luvio) => {
|
|
3663
3663
|
return function createPromptTemplate(untrustedConfig) {
|
|
3664
|
-
const config = validateAdapterConfig$
|
|
3664
|
+
const config = validateAdapterConfig$e(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
|
|
3665
3665
|
// Invalid or incomplete config
|
|
3666
3666
|
if (config === null) {
|
|
3667
3667
|
throw new Error('Invalid config for "createPromptTemplate"');
|
|
3668
3668
|
}
|
|
3669
|
-
return buildNetworkSnapshot$
|
|
3669
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
3670
3670
|
};
|
|
3671
3671
|
};
|
|
3672
3672
|
|
|
3673
|
-
function select$
|
|
3674
|
-
return select$
|
|
3673
|
+
function select$p(luvio, params) {
|
|
3674
|
+
return select$r();
|
|
3675
3675
|
}
|
|
3676
|
-
function getResponseCacheKeys$
|
|
3677
|
-
getTypeCacheKeys$
|
|
3676
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
3677
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
3678
3678
|
}
|
|
3679
|
-
function ingestSuccess$
|
|
3679
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
3680
3680
|
const { body } = response;
|
|
3681
|
-
const key = keyBuilderFromType(luvio, body);
|
|
3682
|
-
luvio.storeIngest(key, ingest$
|
|
3681
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
3682
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3683
3683
|
const snapshot = luvio.storeLookup({
|
|
3684
3684
|
recordId: key,
|
|
3685
|
-
node: select$
|
|
3685
|
+
node: select$p(),
|
|
3686
3686
|
variables: {},
|
|
3687
3687
|
});
|
|
3688
3688
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3693,7 +3693,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
3693
3693
|
deepFreeze(snapshot.data);
|
|
3694
3694
|
return snapshot;
|
|
3695
3695
|
}
|
|
3696
|
-
function createResourceRequest$
|
|
3696
|
+
function createResourceRequest$d(config) {
|
|
3697
3697
|
const headers = {};
|
|
3698
3698
|
return {
|
|
3699
3699
|
baseUri: '/services/data/v66.0',
|
|
@@ -3707,7 +3707,7 @@ function createResourceRequest$c(config) {
|
|
|
3707
3707
|
};
|
|
3708
3708
|
}
|
|
3709
3709
|
|
|
3710
|
-
const adapterName$
|
|
3710
|
+
const adapterName$d = 'createPromptTemplateVersion';
|
|
3711
3711
|
const createPromptTemplateVersion_ConfigPropertyMetadata = [
|
|
3712
3712
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3713
3713
|
generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
|
|
@@ -3715,11 +3715,11 @@ const createPromptTemplateVersion_ConfigPropertyMetadata = [
|
|
|
3715
3715
|
generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3716
3716
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
3717
3717
|
];
|
|
3718
|
-
const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3719
|
-
const createResourceParams$
|
|
3720
|
-
function typeCheckConfig$
|
|
3718
|
+
const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createPromptTemplateVersion_ConfigPropertyMetadata);
|
|
3719
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(createPromptTemplateVersion_ConfigPropertyMetadata);
|
|
3720
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
3721
3721
|
const config = {};
|
|
3722
|
-
typeCheckConfig$
|
|
3722
|
+
typeCheckConfig$j(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
|
|
3723
3723
|
const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
|
|
3724
3724
|
if (untrustedIsObject(untrustedConfig_childRelationships)) {
|
|
3725
3725
|
const untrustedConfig_childRelationships_object = {};
|
|
@@ -3752,30 +3752,30 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
3752
3752
|
}
|
|
3753
3753
|
return config;
|
|
3754
3754
|
}
|
|
3755
|
-
function validateAdapterConfig$
|
|
3755
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
3756
3756
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3757
3757
|
return null;
|
|
3758
3758
|
}
|
|
3759
3759
|
if (process.env.NODE_ENV !== 'production') {
|
|
3760
3760
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3761
3761
|
}
|
|
3762
|
-
const config = typeCheckConfig$
|
|
3762
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
3763
3763
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3764
3764
|
return null;
|
|
3765
3765
|
}
|
|
3766
3766
|
return config;
|
|
3767
3767
|
}
|
|
3768
|
-
function buildNetworkSnapshot$
|
|
3769
|
-
const resourceParams = createResourceParams$
|
|
3770
|
-
const request = createResourceRequest$
|
|
3768
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
3769
|
+
const resourceParams = createResourceParams$d(config);
|
|
3770
|
+
const request = createResourceRequest$d(resourceParams);
|
|
3771
3771
|
return luvio.dispatchResourceRequest(request, options)
|
|
3772
3772
|
.then((response) => {
|
|
3773
3773
|
return luvio.handleSuccessResponse(() => {
|
|
3774
|
-
const snapshot = ingestSuccess$
|
|
3774
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
3775
3775
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3776
3776
|
}, () => {
|
|
3777
3777
|
const cache = new StoreKeyMap();
|
|
3778
|
-
getResponseCacheKeys$
|
|
3778
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
3779
3779
|
return cache;
|
|
3780
3780
|
});
|
|
3781
3781
|
}, (response) => {
|
|
@@ -3785,16 +3785,16 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
3785
3785
|
}
|
|
3786
3786
|
const createPromptTemplateVersionAdapterFactory = (luvio) => {
|
|
3787
3787
|
return function createPromptTemplateVersion(untrustedConfig) {
|
|
3788
|
-
const config = validateAdapterConfig$
|
|
3788
|
+
const config = validateAdapterConfig$d(untrustedConfig, createPromptTemplateVersion_ConfigPropertyNames);
|
|
3789
3789
|
// Invalid or incomplete config
|
|
3790
3790
|
if (config === null) {
|
|
3791
3791
|
throw new Error('Invalid config for "createPromptTemplateVersion"');
|
|
3792
3792
|
}
|
|
3793
|
-
return buildNetworkSnapshot$
|
|
3793
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
3794
3794
|
};
|
|
3795
3795
|
};
|
|
3796
3796
|
|
|
3797
|
-
function validate$
|
|
3797
|
+
function validate$f(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
|
|
3798
3798
|
const v_error = (() => {
|
|
3799
3799
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3800
3800
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3820,7 +3820,7 @@ function validate$e(obj, path = 'PromptTemplateDataProviderOutputParamRepresenta
|
|
|
3820
3820
|
return v_error === undefined ? null : v_error;
|
|
3821
3821
|
}
|
|
3822
3822
|
|
|
3823
|
-
function validate$
|
|
3823
|
+
function validate$e(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
|
|
3824
3824
|
const v_error = (() => {
|
|
3825
3825
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3826
3826
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3849,9 +3849,9 @@ function validate$d(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
|
|
|
3849
3849
|
return v_error === undefined ? null : v_error;
|
|
3850
3850
|
}
|
|
3851
3851
|
|
|
3852
|
-
const TTL$
|
|
3853
|
-
const VERSION$
|
|
3854
|
-
function validate$
|
|
3852
|
+
const TTL$7 = 300;
|
|
3853
|
+
const VERSION$b = "d4824d8c6e7848df0de89295e6d9d434";
|
|
3854
|
+
function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
|
|
3855
3855
|
const v_error = (() => {
|
|
3856
3856
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3857
3857
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3880,7 +3880,7 @@ function validate$c(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
3880
3880
|
if (obj.defaultOutputParam !== undefined) {
|
|
3881
3881
|
const obj_defaultOutputParam = obj.defaultOutputParam;
|
|
3882
3882
|
const path_defaultOutputParam = path + '.defaultOutputParam';
|
|
3883
|
-
const referencepath_defaultOutputParamValidationError = validate$
|
|
3883
|
+
const referencepath_defaultOutputParamValidationError = validate$f(obj_defaultOutputParam, path_defaultOutputParam);
|
|
3884
3884
|
if (referencepath_defaultOutputParamValidationError !== null) {
|
|
3885
3885
|
let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_defaultOutputParam + '")\n';
|
|
3886
3886
|
message += referencepath_defaultOutputParamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3934,7 +3934,7 @@ function validate$c(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
3934
3934
|
for (let i = 0; i < obj_inputParams.length; i++) {
|
|
3935
3935
|
const obj_inputParams_item = obj_inputParams[i];
|
|
3936
3936
|
const path_inputParams_item = path_inputParams + '[' + i + ']';
|
|
3937
|
-
const referencepath_inputParams_itemValidationError = validate$
|
|
3937
|
+
const referencepath_inputParams_itemValidationError = validate$e(obj_inputParams_item, path_inputParams_item);
|
|
3938
3938
|
if (referencepath_inputParams_itemValidationError !== null) {
|
|
3939
3939
|
let message = 'Object doesn\'t match PromptTemplateDataProviderInputParamRepresentation (at "' + path_inputParams_item + '")\n';
|
|
3940
3940
|
message += referencepath_inputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4000,7 +4000,7 @@ function validate$c(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
4000
4000
|
for (let i = 0; i < obj_outputParams.length; i++) {
|
|
4001
4001
|
const obj_outputParams_item = obj_outputParams[i];
|
|
4002
4002
|
const path_outputParams_item = path_outputParams + '[' + i + ']';
|
|
4003
|
-
const referencepath_outputParams_itemValidationError = validate$
|
|
4003
|
+
const referencepath_outputParams_itemValidationError = validate$f(obj_outputParams_item, path_outputParams_item);
|
|
4004
4004
|
if (referencepath_outputParams_itemValidationError !== null) {
|
|
4005
4005
|
let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_outputParams_item + '")\n';
|
|
4006
4006
|
message += referencepath_outputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4072,62 +4072,62 @@ function validate$c(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
4072
4072
|
})();
|
|
4073
4073
|
return v_error === undefined ? null : v_error;
|
|
4074
4074
|
}
|
|
4075
|
-
const RepresentationType$
|
|
4076
|
-
function normalize$
|
|
4075
|
+
const RepresentationType$7 = 'PromptTemplateDataProviderInstanceConfigRepresentation';
|
|
4076
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
4077
4077
|
return input;
|
|
4078
4078
|
}
|
|
4079
|
-
const select$
|
|
4079
|
+
const select$o = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
|
|
4080
4080
|
return {
|
|
4081
4081
|
kind: 'Fragment',
|
|
4082
|
-
version: VERSION$
|
|
4082
|
+
version: VERSION$b,
|
|
4083
4083
|
private: [],
|
|
4084
4084
|
opaque: true
|
|
4085
4085
|
};
|
|
4086
4086
|
};
|
|
4087
|
-
function equals$
|
|
4087
|
+
function equals$b(existing, incoming) {
|
|
4088
4088
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4089
4089
|
return false;
|
|
4090
4090
|
}
|
|
4091
4091
|
return true;
|
|
4092
4092
|
}
|
|
4093
|
-
const ingest$
|
|
4093
|
+
const ingest$7 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4094
4094
|
if (process.env.NODE_ENV !== 'production') {
|
|
4095
|
-
const validateError = validate$
|
|
4095
|
+
const validateError = validate$d(input);
|
|
4096
4096
|
if (validateError !== null) {
|
|
4097
4097
|
throw validateError;
|
|
4098
4098
|
}
|
|
4099
4099
|
}
|
|
4100
4100
|
const key = path.fullPath;
|
|
4101
|
-
const ttlToUse = TTL$
|
|
4102
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4101
|
+
const ttlToUse = TTL$7;
|
|
4102
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$b, RepresentationType$7, equals$b);
|
|
4103
4103
|
return createLink(key);
|
|
4104
4104
|
};
|
|
4105
|
-
function getTypeCacheKeys$
|
|
4105
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
4106
4106
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4107
4107
|
const rootKey = fullPathFactory();
|
|
4108
4108
|
rootKeySet.set(rootKey, {
|
|
4109
4109
|
namespace: keyPrefix,
|
|
4110
|
-
representationName: RepresentationType$
|
|
4110
|
+
representationName: RepresentationType$7,
|
|
4111
4111
|
mergeable: false
|
|
4112
4112
|
});
|
|
4113
4113
|
}
|
|
4114
4114
|
|
|
4115
|
-
function select$
|
|
4116
|
-
return select$
|
|
4115
|
+
function select$n(luvio, params) {
|
|
4116
|
+
return select$o();
|
|
4117
4117
|
}
|
|
4118
|
-
function keyBuilder$
|
|
4118
|
+
function keyBuilder$k(luvio, params) {
|
|
4119
4119
|
return keyPrefix + '::PromptTemplateDataProviderInstanceConfigRepresentation:(' + stableJSONStringify(params.body.additionalParam) + '::' + 'definition:' + params.body.definition + '::' + 'groupName:' + params.body.groupName + ')';
|
|
4120
4120
|
}
|
|
4121
|
-
function getResponseCacheKeys$
|
|
4122
|
-
getTypeCacheKeys$
|
|
4121
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
4122
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$k(luvio, resourceParams));
|
|
4123
4123
|
}
|
|
4124
|
-
function ingestSuccess$
|
|
4124
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
4125
4125
|
const { body } = response;
|
|
4126
|
-
const key = keyBuilder$
|
|
4127
|
-
luvio.storeIngest(key, ingest$
|
|
4126
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
4127
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
4128
4128
|
const snapshot = luvio.storeLookup({
|
|
4129
4129
|
recordId: key,
|
|
4130
|
-
node: select$
|
|
4130
|
+
node: select$n(),
|
|
4131
4131
|
variables: {},
|
|
4132
4132
|
}, snapshotRefresh);
|
|
4133
4133
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4139,18 +4139,18 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4139
4139
|
return snapshot;
|
|
4140
4140
|
}
|
|
4141
4141
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4142
|
-
const key = keyBuilder$
|
|
4142
|
+
const key = keyBuilder$k(luvio, params);
|
|
4143
4143
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4144
4144
|
const storeMetadataParams = {
|
|
4145
|
-
ttl: TTL$
|
|
4145
|
+
ttl: TTL$7,
|
|
4146
4146
|
namespace: keyPrefix,
|
|
4147
|
-
version: VERSION$
|
|
4148
|
-
representationName: RepresentationType$
|
|
4147
|
+
version: VERSION$b,
|
|
4148
|
+
representationName: RepresentationType$7
|
|
4149
4149
|
};
|
|
4150
4150
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4151
4151
|
return errorSnapshot;
|
|
4152
4152
|
}
|
|
4153
|
-
function createResourceRequest$
|
|
4153
|
+
function createResourceRequest$c(config) {
|
|
4154
4154
|
const headers = {};
|
|
4155
4155
|
return {
|
|
4156
4156
|
baseUri: '/services/data/v66.0',
|
|
@@ -4164,21 +4164,21 @@ function createResourceRequest$b(config) {
|
|
|
4164
4164
|
};
|
|
4165
4165
|
}
|
|
4166
4166
|
|
|
4167
|
-
const adapterName$
|
|
4167
|
+
const adapterName$c = 'getDataProviderInstanceConfig';
|
|
4168
4168
|
const getDataProviderInstanceConfig_ConfigPropertyMetadata = [
|
|
4169
4169
|
generateParamConfigMetadata('additionalParam', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4170
4170
|
generateParamConfigMetadata('definition', true, 2 /* Body */, 0 /* String */),
|
|
4171
4171
|
generateParamConfigMetadata('groupName', true, 2 /* Body */, 0 /* String */),
|
|
4172
4172
|
];
|
|
4173
|
-
const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4174
|
-
const createResourceParams$
|
|
4175
|
-
function keyBuilder$
|
|
4176
|
-
const resourceParams = createResourceParams$
|
|
4177
|
-
return keyBuilder$
|
|
4173
|
+
const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getDataProviderInstanceConfig_ConfigPropertyMetadata);
|
|
4174
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(getDataProviderInstanceConfig_ConfigPropertyMetadata);
|
|
4175
|
+
function keyBuilder$j(luvio, config) {
|
|
4176
|
+
const resourceParams = createResourceParams$c(config);
|
|
4177
|
+
return keyBuilder$k(luvio, resourceParams);
|
|
4178
4178
|
}
|
|
4179
|
-
function typeCheckConfig$
|
|
4179
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
4180
4180
|
const config = {};
|
|
4181
|
-
typeCheckConfig$
|
|
4181
|
+
typeCheckConfig$j(untrustedConfig, config, getDataProviderInstanceConfig_ConfigPropertyMetadata);
|
|
4182
4182
|
const untrustedConfig_additionalParam = untrustedConfig.additionalParam;
|
|
4183
4183
|
if (untrustedIsObject(untrustedConfig_additionalParam)) {
|
|
4184
4184
|
const untrustedConfig_additionalParam_object = {};
|
|
@@ -4196,45 +4196,45 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
4196
4196
|
}
|
|
4197
4197
|
return config;
|
|
4198
4198
|
}
|
|
4199
|
-
function validateAdapterConfig$
|
|
4199
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
4200
4200
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4201
4201
|
return null;
|
|
4202
4202
|
}
|
|
4203
4203
|
if (process.env.NODE_ENV !== 'production') {
|
|
4204
4204
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4205
4205
|
}
|
|
4206
|
-
const config = typeCheckConfig$
|
|
4206
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
4207
4207
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4208
4208
|
return null;
|
|
4209
4209
|
}
|
|
4210
4210
|
return config;
|
|
4211
4211
|
}
|
|
4212
4212
|
function adapterFragment$9(luvio, config) {
|
|
4213
|
-
createResourceParams$
|
|
4214
|
-
return select$
|
|
4213
|
+
createResourceParams$c(config);
|
|
4214
|
+
return select$n();
|
|
4215
4215
|
}
|
|
4216
4216
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4217
|
-
const snapshot = ingestSuccess$
|
|
4217
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
4218
4218
|
config,
|
|
4219
|
-
resolve: () => buildNetworkSnapshot$
|
|
4219
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
4220
4220
|
});
|
|
4221
4221
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4222
4222
|
}
|
|
4223
4223
|
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
4224
4224
|
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
4225
4225
|
config,
|
|
4226
|
-
resolve: () => buildNetworkSnapshot$
|
|
4226
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
4227
4227
|
});
|
|
4228
4228
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4229
4229
|
}
|
|
4230
|
-
function buildNetworkSnapshot$
|
|
4231
|
-
const resourceParams = createResourceParams$
|
|
4232
|
-
const request = createResourceRequest$
|
|
4230
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
4231
|
+
const resourceParams = createResourceParams$c(config);
|
|
4232
|
+
const request = createResourceRequest$c(resourceParams);
|
|
4233
4233
|
return luvio.dispatchResourceRequest(request, options)
|
|
4234
4234
|
.then((response) => {
|
|
4235
4235
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
4236
4236
|
const cache = new StoreKeyMap();
|
|
4237
|
-
getResponseCacheKeys$
|
|
4237
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
4238
4238
|
return cache;
|
|
4239
4239
|
});
|
|
4240
4240
|
}, (response) => {
|
|
@@ -4242,23 +4242,23 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
4242
4242
|
});
|
|
4243
4243
|
}
|
|
4244
4244
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4245
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
4245
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, 'get', false);
|
|
4246
4246
|
}
|
|
4247
4247
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4248
4248
|
const { luvio, config } = context;
|
|
4249
4249
|
const selector = {
|
|
4250
|
-
recordId: keyBuilder$
|
|
4250
|
+
recordId: keyBuilder$j(luvio, config),
|
|
4251
4251
|
node: adapterFragment$9(luvio, config),
|
|
4252
4252
|
variables: {},
|
|
4253
4253
|
};
|
|
4254
4254
|
const cacheSnapshot = storeLookup(selector, {
|
|
4255
4255
|
config,
|
|
4256
|
-
resolve: () => buildNetworkSnapshot$
|
|
4256
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
4257
4257
|
});
|
|
4258
4258
|
return cacheSnapshot;
|
|
4259
4259
|
}
|
|
4260
4260
|
const getDataProviderInstanceConfigAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderInstanceConfig(untrustedConfig, requestContext) {
|
|
4261
|
-
const config = validateAdapterConfig$
|
|
4261
|
+
const config = validateAdapterConfig$c(untrustedConfig, getDataProviderInstanceConfig_ConfigPropertyNames);
|
|
4262
4262
|
// Invalid or incomplete config
|
|
4263
4263
|
if (config === null) {
|
|
4264
4264
|
return null;
|
|
@@ -4267,7 +4267,7 @@ const getDataProviderInstanceConfigAdapterFactory = (luvio) => function Einstein
|
|
|
4267
4267
|
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4268
4268
|
};
|
|
4269
4269
|
|
|
4270
|
-
function validate$
|
|
4270
|
+
function validate$c(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
|
|
4271
4271
|
const v_error = (() => {
|
|
4272
4272
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4273
4273
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4317,9 +4317,9 @@ function validate$b(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentat
|
|
|
4317
4317
|
return v_error === undefined ? null : v_error;
|
|
4318
4318
|
}
|
|
4319
4319
|
|
|
4320
|
-
const TTL$
|
|
4321
|
-
const VERSION$
|
|
4322
|
-
function validate$
|
|
4320
|
+
const TTL$6 = 300;
|
|
4321
|
+
const VERSION$a = "212332dac1decc071b476742df3440fb";
|
|
4322
|
+
function validate$b(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
|
|
4323
4323
|
const v_error = (() => {
|
|
4324
4324
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4325
4325
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4332,7 +4332,7 @@ function validate$a(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionR
|
|
|
4332
4332
|
for (let i = 0; i < obj_dataProviderTypeConfigs.length; i++) {
|
|
4333
4333
|
const obj_dataProviderTypeConfigs_item = obj_dataProviderTypeConfigs[i];
|
|
4334
4334
|
const path_dataProviderTypeConfigs_item = path_dataProviderTypeConfigs + '[' + i + ']';
|
|
4335
|
-
const referencepath_dataProviderTypeConfigs_itemValidationError = validate$
|
|
4335
|
+
const referencepath_dataProviderTypeConfigs_itemValidationError = validate$c(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
|
|
4336
4336
|
if (referencepath_dataProviderTypeConfigs_itemValidationError !== null) {
|
|
4337
4337
|
let message = 'Object doesn\'t match PromptTemplateDataProviderTypeConfigRepresentation (at "' + path_dataProviderTypeConfigs_item + '")\n';
|
|
4338
4338
|
message += referencepath_dataProviderTypeConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4342,62 +4342,62 @@ function validate$a(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionR
|
|
|
4342
4342
|
})();
|
|
4343
4343
|
return v_error === undefined ? null : v_error;
|
|
4344
4344
|
}
|
|
4345
|
-
const RepresentationType$
|
|
4346
|
-
function normalize$
|
|
4345
|
+
const RepresentationType$6 = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation';
|
|
4346
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
4347
4347
|
return input;
|
|
4348
4348
|
}
|
|
4349
|
-
const select$
|
|
4349
|
+
const select$m = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
|
|
4350
4350
|
return {
|
|
4351
4351
|
kind: 'Fragment',
|
|
4352
|
-
version: VERSION$
|
|
4352
|
+
version: VERSION$a,
|
|
4353
4353
|
private: [],
|
|
4354
4354
|
opaque: true
|
|
4355
4355
|
};
|
|
4356
4356
|
};
|
|
4357
|
-
function equals$
|
|
4357
|
+
function equals$a(existing, incoming) {
|
|
4358
4358
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4359
4359
|
return false;
|
|
4360
4360
|
}
|
|
4361
4361
|
return true;
|
|
4362
4362
|
}
|
|
4363
|
-
const ingest$
|
|
4363
|
+
const ingest$6 = function PromptTemplateDataProviderTypeConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4364
4364
|
if (process.env.NODE_ENV !== 'production') {
|
|
4365
|
-
const validateError = validate$
|
|
4365
|
+
const validateError = validate$b(input);
|
|
4366
4366
|
if (validateError !== null) {
|
|
4367
4367
|
throw validateError;
|
|
4368
4368
|
}
|
|
4369
4369
|
}
|
|
4370
4370
|
const key = path.fullPath;
|
|
4371
|
-
const ttlToUse = TTL$
|
|
4372
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4371
|
+
const ttlToUse = TTL$6;
|
|
4372
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$a, RepresentationType$6, equals$a);
|
|
4373
4373
|
return createLink(key);
|
|
4374
4374
|
};
|
|
4375
|
-
function getTypeCacheKeys$
|
|
4375
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
4376
4376
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4377
4377
|
const rootKey = fullPathFactory();
|
|
4378
4378
|
rootKeySet.set(rootKey, {
|
|
4379
4379
|
namespace: keyPrefix,
|
|
4380
|
-
representationName: RepresentationType$
|
|
4380
|
+
representationName: RepresentationType$6,
|
|
4381
4381
|
mergeable: false
|
|
4382
4382
|
});
|
|
4383
4383
|
}
|
|
4384
4384
|
|
|
4385
|
-
function select$
|
|
4386
|
-
return select$
|
|
4385
|
+
function select$l(luvio, params) {
|
|
4386
|
+
return select$m();
|
|
4387
4387
|
}
|
|
4388
|
-
function keyBuilder$
|
|
4388
|
+
function keyBuilder$i(luvio, params) {
|
|
4389
4389
|
return keyPrefix + '::PromptTemplateDataProviderTypeConfigCollectionRepresentation:(' + 'templateType:' + params.urlParams.templateType + ')';
|
|
4390
4390
|
}
|
|
4391
|
-
function getResponseCacheKeys$
|
|
4392
|
-
getTypeCacheKeys$
|
|
4391
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
4392
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$i(luvio, resourceParams));
|
|
4393
4393
|
}
|
|
4394
|
-
function ingestSuccess$
|
|
4394
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
4395
4395
|
const { body } = response;
|
|
4396
|
-
const key = keyBuilder$
|
|
4397
|
-
luvio.storeIngest(key, ingest$
|
|
4396
|
+
const key = keyBuilder$i(luvio, resourceParams);
|
|
4397
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
4398
4398
|
const snapshot = luvio.storeLookup({
|
|
4399
4399
|
recordId: key,
|
|
4400
|
-
node: select$
|
|
4400
|
+
node: select$l(),
|
|
4401
4401
|
variables: {},
|
|
4402
4402
|
}, snapshotRefresh);
|
|
4403
4403
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4409,18 +4409,18 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4409
4409
|
return snapshot;
|
|
4410
4410
|
}
|
|
4411
4411
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
4412
|
-
const key = keyBuilder$
|
|
4412
|
+
const key = keyBuilder$i(luvio, params);
|
|
4413
4413
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4414
4414
|
const storeMetadataParams = {
|
|
4415
|
-
ttl: TTL$
|
|
4415
|
+
ttl: TTL$6,
|
|
4416
4416
|
namespace: keyPrefix,
|
|
4417
|
-
version: VERSION$
|
|
4418
|
-
representationName: RepresentationType$
|
|
4417
|
+
version: VERSION$a,
|
|
4418
|
+
representationName: RepresentationType$6
|
|
4419
4419
|
};
|
|
4420
4420
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4421
4421
|
return errorSnapshot;
|
|
4422
4422
|
}
|
|
4423
|
-
function createResourceRequest$
|
|
4423
|
+
function createResourceRequest$b(config) {
|
|
4424
4424
|
const headers = {};
|
|
4425
4425
|
return {
|
|
4426
4426
|
baseUri: '/services/data/v66.0',
|
|
@@ -4434,60 +4434,60 @@ function createResourceRequest$a(config) {
|
|
|
4434
4434
|
};
|
|
4435
4435
|
}
|
|
4436
4436
|
|
|
4437
|
-
const adapterName$
|
|
4437
|
+
const adapterName$b = 'getDataProviderTypeConfigs';
|
|
4438
4438
|
const getDataProviderTypeConfigs_ConfigPropertyMetadata = [
|
|
4439
4439
|
generateParamConfigMetadata('templateType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4440
4440
|
];
|
|
4441
|
-
const getDataProviderTypeConfigs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4442
|
-
const createResourceParams$
|
|
4443
|
-
function keyBuilder$
|
|
4444
|
-
const resourceParams = createResourceParams$
|
|
4445
|
-
return keyBuilder$
|
|
4441
|
+
const getDataProviderTypeConfigs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getDataProviderTypeConfigs_ConfigPropertyMetadata);
|
|
4442
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(getDataProviderTypeConfigs_ConfigPropertyMetadata);
|
|
4443
|
+
function keyBuilder$h(luvio, config) {
|
|
4444
|
+
const resourceParams = createResourceParams$b(config);
|
|
4445
|
+
return keyBuilder$i(luvio, resourceParams);
|
|
4446
4446
|
}
|
|
4447
|
-
function typeCheckConfig$
|
|
4447
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
4448
4448
|
const config = {};
|
|
4449
|
-
typeCheckConfig$
|
|
4449
|
+
typeCheckConfig$j(untrustedConfig, config, getDataProviderTypeConfigs_ConfigPropertyMetadata);
|
|
4450
4450
|
return config;
|
|
4451
4451
|
}
|
|
4452
|
-
function validateAdapterConfig$
|
|
4452
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
4453
4453
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4454
4454
|
return null;
|
|
4455
4455
|
}
|
|
4456
4456
|
if (process.env.NODE_ENV !== 'production') {
|
|
4457
4457
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4458
4458
|
}
|
|
4459
|
-
const config = typeCheckConfig$
|
|
4459
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
4460
4460
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4461
4461
|
return null;
|
|
4462
4462
|
}
|
|
4463
4463
|
return config;
|
|
4464
4464
|
}
|
|
4465
4465
|
function adapterFragment$8(luvio, config) {
|
|
4466
|
-
createResourceParams$
|
|
4467
|
-
return select$
|
|
4466
|
+
createResourceParams$b(config);
|
|
4467
|
+
return select$l();
|
|
4468
4468
|
}
|
|
4469
4469
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
4470
|
-
const snapshot = ingestSuccess$
|
|
4470
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
4471
4471
|
config,
|
|
4472
|
-
resolve: () => buildNetworkSnapshot$
|
|
4472
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4473
4473
|
});
|
|
4474
4474
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4475
4475
|
}
|
|
4476
4476
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
4477
4477
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
4478
4478
|
config,
|
|
4479
|
-
resolve: () => buildNetworkSnapshot$
|
|
4479
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4480
4480
|
});
|
|
4481
4481
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4482
4482
|
}
|
|
4483
|
-
function buildNetworkSnapshot$
|
|
4484
|
-
const resourceParams = createResourceParams$
|
|
4485
|
-
const request = createResourceRequest$
|
|
4483
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
4484
|
+
const resourceParams = createResourceParams$b(config);
|
|
4485
|
+
const request = createResourceRequest$b(resourceParams);
|
|
4486
4486
|
return luvio.dispatchResourceRequest(request, options)
|
|
4487
4487
|
.then((response) => {
|
|
4488
4488
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
4489
4489
|
const cache = new StoreKeyMap();
|
|
4490
|
-
getResponseCacheKeys$
|
|
4490
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
4491
4491
|
return cache;
|
|
4492
4492
|
});
|
|
4493
4493
|
}, (response) => {
|
|
@@ -4495,23 +4495,23 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
4495
4495
|
});
|
|
4496
4496
|
}
|
|
4497
4497
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4498
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
4498
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
4499
4499
|
}
|
|
4500
4500
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
4501
4501
|
const { luvio, config } = context;
|
|
4502
4502
|
const selector = {
|
|
4503
|
-
recordId: keyBuilder$
|
|
4503
|
+
recordId: keyBuilder$h(luvio, config),
|
|
4504
4504
|
node: adapterFragment$8(luvio, config),
|
|
4505
4505
|
variables: {},
|
|
4506
4506
|
};
|
|
4507
4507
|
const cacheSnapshot = storeLookup(selector, {
|
|
4508
4508
|
config,
|
|
4509
|
-
resolve: () => buildNetworkSnapshot$
|
|
4509
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4510
4510
|
});
|
|
4511
4511
|
return cacheSnapshot;
|
|
4512
4512
|
}
|
|
4513
4513
|
const getDataProviderTypeConfigsAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderTypeConfigs(untrustedConfig, requestContext) {
|
|
4514
|
-
const config = validateAdapterConfig$
|
|
4514
|
+
const config = validateAdapterConfig$b(untrustedConfig, getDataProviderTypeConfigs_ConfigPropertyNames);
|
|
4515
4515
|
// Invalid or incomplete config
|
|
4516
4516
|
if (config === null) {
|
|
4517
4517
|
return null;
|
|
@@ -4520,9 +4520,9 @@ const getDataProviderTypeConfigsAdapterFactory = (luvio) => function EinsteinLLM
|
|
|
4520
4520
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
4521
4521
|
};
|
|
4522
4522
|
|
|
4523
|
-
const TTL$
|
|
4524
|
-
const VERSION$
|
|
4525
|
-
function validate$
|
|
4523
|
+
const TTL$5 = 300;
|
|
4524
|
+
const VERSION$9 = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
|
|
4525
|
+
function validate$a(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
|
|
4526
4526
|
const v_error = (() => {
|
|
4527
4527
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4528
4528
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4535,7 +4535,7 @@ function validate$9(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
|
|
|
4535
4535
|
for (let i = 0; i < obj_dataProviderInstanceConfigs.length; i++) {
|
|
4536
4536
|
const obj_dataProviderInstanceConfigs_item = obj_dataProviderInstanceConfigs[i];
|
|
4537
4537
|
const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
|
|
4538
|
-
const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$
|
|
4538
|
+
const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$d(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
|
|
4539
4539
|
if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
|
|
4540
4540
|
let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
|
|
4541
4541
|
message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4545,62 +4545,62 @@ function validate$9(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
|
|
|
4545
4545
|
})();
|
|
4546
4546
|
return v_error === undefined ? null : v_error;
|
|
4547
4547
|
}
|
|
4548
|
-
const RepresentationType$
|
|
4549
|
-
function normalize$
|
|
4548
|
+
const RepresentationType$5 = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation';
|
|
4549
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
4550
4550
|
return input;
|
|
4551
4551
|
}
|
|
4552
|
-
const select$
|
|
4552
|
+
const select$k = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
|
|
4553
4553
|
return {
|
|
4554
4554
|
kind: 'Fragment',
|
|
4555
|
-
version: VERSION$
|
|
4555
|
+
version: VERSION$9,
|
|
4556
4556
|
private: [],
|
|
4557
4557
|
opaque: true
|
|
4558
4558
|
};
|
|
4559
4559
|
};
|
|
4560
|
-
function equals$
|
|
4560
|
+
function equals$9(existing, incoming) {
|
|
4561
4561
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4562
4562
|
return false;
|
|
4563
4563
|
}
|
|
4564
4564
|
return true;
|
|
4565
4565
|
}
|
|
4566
|
-
const ingest$
|
|
4566
|
+
const ingest$5 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4567
4567
|
if (process.env.NODE_ENV !== 'production') {
|
|
4568
|
-
const validateError = validate$
|
|
4568
|
+
const validateError = validate$a(input);
|
|
4569
4569
|
if (validateError !== null) {
|
|
4570
4570
|
throw validateError;
|
|
4571
4571
|
}
|
|
4572
4572
|
}
|
|
4573
4573
|
const key = path.fullPath;
|
|
4574
|
-
const ttlToUse = TTL$
|
|
4575
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4574
|
+
const ttlToUse = TTL$5;
|
|
4575
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$9, RepresentationType$5, equals$9);
|
|
4576
4576
|
return createLink(key);
|
|
4577
4577
|
};
|
|
4578
|
-
function getTypeCacheKeys$
|
|
4578
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
4579
4579
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4580
4580
|
const rootKey = fullPathFactory();
|
|
4581
4581
|
rootKeySet.set(rootKey, {
|
|
4582
4582
|
namespace: keyPrefix,
|
|
4583
|
-
representationName: RepresentationType$
|
|
4583
|
+
representationName: RepresentationType$5,
|
|
4584
4584
|
mergeable: false
|
|
4585
4585
|
});
|
|
4586
4586
|
}
|
|
4587
4587
|
|
|
4588
|
-
function select$
|
|
4589
|
-
return select$
|
|
4588
|
+
function select$j(luvio, params) {
|
|
4589
|
+
return select$k();
|
|
4590
4590
|
}
|
|
4591
|
-
function keyBuilder$
|
|
4591
|
+
function keyBuilder$g(luvio, params) {
|
|
4592
4592
|
return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + 'groupNames:' + params.queryParams.groupNames + ',' + 'targets:' + params.queryParams.targets + ',' + 'templateType:' + params.urlParams.templateType + ')';
|
|
4593
4593
|
}
|
|
4594
|
-
function getResponseCacheKeys$
|
|
4595
|
-
getTypeCacheKeys$
|
|
4594
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
4595
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
4596
4596
|
}
|
|
4597
|
-
function ingestSuccess$
|
|
4597
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
4598
4598
|
const { body } = response;
|
|
4599
|
-
const key = keyBuilder$
|
|
4600
|
-
luvio.storeIngest(key, ingest$
|
|
4599
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
4600
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
4601
4601
|
const snapshot = luvio.storeLookup({
|
|
4602
4602
|
recordId: key,
|
|
4603
|
-
node: select$
|
|
4603
|
+
node: select$j(),
|
|
4604
4604
|
variables: {},
|
|
4605
4605
|
}, snapshotRefresh);
|
|
4606
4606
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4612,18 +4612,18 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4612
4612
|
return snapshot;
|
|
4613
4613
|
}
|
|
4614
4614
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
4615
|
-
const key = keyBuilder$
|
|
4615
|
+
const key = keyBuilder$g(luvio, params);
|
|
4616
4616
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4617
4617
|
const storeMetadataParams = {
|
|
4618
|
-
ttl: TTL$
|
|
4618
|
+
ttl: TTL$5,
|
|
4619
4619
|
namespace: keyPrefix,
|
|
4620
|
-
version: VERSION$
|
|
4621
|
-
representationName: RepresentationType$
|
|
4620
|
+
version: VERSION$9,
|
|
4621
|
+
representationName: RepresentationType$5
|
|
4622
4622
|
};
|
|
4623
4623
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4624
4624
|
return errorSnapshot;
|
|
4625
4625
|
}
|
|
4626
|
-
function createResourceRequest$
|
|
4626
|
+
function createResourceRequest$a(config) {
|
|
4627
4627
|
const headers = {};
|
|
4628
4628
|
return {
|
|
4629
4629
|
baseUri: '/services/data/v66.0',
|
|
@@ -4637,62 +4637,62 @@ function createResourceRequest$9(config) {
|
|
|
4637
4637
|
};
|
|
4638
4638
|
}
|
|
4639
4639
|
|
|
4640
|
-
const adapterName$
|
|
4640
|
+
const adapterName$a = 'getDataProviders';
|
|
4641
4641
|
const getDataProviders_ConfigPropertyMetadata = [
|
|
4642
4642
|
generateParamConfigMetadata('templateType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4643
4643
|
generateParamConfigMetadata('groupNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
4644
4644
|
generateParamConfigMetadata('targets', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
4645
4645
|
];
|
|
4646
|
-
const getDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4647
|
-
const createResourceParams$
|
|
4648
|
-
function keyBuilder$
|
|
4649
|
-
const resourceParams = createResourceParams$
|
|
4650
|
-
return keyBuilder$
|
|
4646
|
+
const getDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getDataProviders_ConfigPropertyMetadata);
|
|
4647
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(getDataProviders_ConfigPropertyMetadata);
|
|
4648
|
+
function keyBuilder$f(luvio, config) {
|
|
4649
|
+
const resourceParams = createResourceParams$a(config);
|
|
4650
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
4651
4651
|
}
|
|
4652
|
-
function typeCheckConfig$
|
|
4652
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
4653
4653
|
const config = {};
|
|
4654
|
-
typeCheckConfig$
|
|
4654
|
+
typeCheckConfig$j(untrustedConfig, config, getDataProviders_ConfigPropertyMetadata);
|
|
4655
4655
|
return config;
|
|
4656
4656
|
}
|
|
4657
|
-
function validateAdapterConfig$
|
|
4657
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
4658
4658
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4659
4659
|
return null;
|
|
4660
4660
|
}
|
|
4661
4661
|
if (process.env.NODE_ENV !== 'production') {
|
|
4662
4662
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4663
4663
|
}
|
|
4664
|
-
const config = typeCheckConfig$
|
|
4664
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
4665
4665
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4666
4666
|
return null;
|
|
4667
4667
|
}
|
|
4668
4668
|
return config;
|
|
4669
4669
|
}
|
|
4670
4670
|
function adapterFragment$7(luvio, config) {
|
|
4671
|
-
createResourceParams$
|
|
4672
|
-
return select$
|
|
4671
|
+
createResourceParams$a(config);
|
|
4672
|
+
return select$j();
|
|
4673
4673
|
}
|
|
4674
4674
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
4675
|
-
const snapshot = ingestSuccess$
|
|
4675
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
4676
4676
|
config,
|
|
4677
|
-
resolve: () => buildNetworkSnapshot$
|
|
4677
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
4678
4678
|
});
|
|
4679
4679
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4680
4680
|
}
|
|
4681
4681
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
4682
4682
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
4683
4683
|
config,
|
|
4684
|
-
resolve: () => buildNetworkSnapshot$
|
|
4684
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
4685
4685
|
});
|
|
4686
4686
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4687
4687
|
}
|
|
4688
|
-
function buildNetworkSnapshot$
|
|
4689
|
-
const resourceParams = createResourceParams$
|
|
4690
|
-
const request = createResourceRequest$
|
|
4688
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
4689
|
+
const resourceParams = createResourceParams$a(config);
|
|
4690
|
+
const request = createResourceRequest$a(resourceParams);
|
|
4691
4691
|
return luvio.dispatchResourceRequest(request, options)
|
|
4692
4692
|
.then((response) => {
|
|
4693
4693
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
4694
4694
|
const cache = new StoreKeyMap();
|
|
4695
|
-
getResponseCacheKeys$
|
|
4695
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
4696
4696
|
return cache;
|
|
4697
4697
|
});
|
|
4698
4698
|
}, (response) => {
|
|
@@ -4700,23 +4700,23 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
4700
4700
|
});
|
|
4701
4701
|
}
|
|
4702
4702
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
4703
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
4703
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
4704
4704
|
}
|
|
4705
4705
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
4706
4706
|
const { luvio, config } = context;
|
|
4707
4707
|
const selector = {
|
|
4708
|
-
recordId: keyBuilder$
|
|
4708
|
+
recordId: keyBuilder$f(luvio, config),
|
|
4709
4709
|
node: adapterFragment$7(luvio, config),
|
|
4710
4710
|
variables: {},
|
|
4711
4711
|
};
|
|
4712
4712
|
const cacheSnapshot = storeLookup(selector, {
|
|
4713
4713
|
config,
|
|
4714
|
-
resolve: () => buildNetworkSnapshot$
|
|
4714
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
4715
4715
|
});
|
|
4716
4716
|
return cacheSnapshot;
|
|
4717
4717
|
}
|
|
4718
4718
|
const getDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getDataProviders(untrustedConfig, requestContext) {
|
|
4719
|
-
const config = validateAdapterConfig$
|
|
4719
|
+
const config = validateAdapterConfig$a(untrustedConfig, getDataProviders_ConfigPropertyNames);
|
|
4720
4720
|
// Invalid or incomplete config
|
|
4721
4721
|
if (config === null) {
|
|
4722
4722
|
return null;
|
|
@@ -4725,22 +4725,22 @@ const getDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getDataP
|
|
|
4725
4725
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
4726
4726
|
};
|
|
4727
4727
|
|
|
4728
|
-
function select$
|
|
4729
|
-
return select$
|
|
4728
|
+
function select$i(luvio, params) {
|
|
4729
|
+
return select$k();
|
|
4730
4730
|
}
|
|
4731
|
-
function keyBuilder$
|
|
4731
|
+
function keyBuilder$e(luvio, params) {
|
|
4732
4732
|
return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + (params.body.groupName === undefined ? 'groupName' : 'groupName:' + params.body.groupName) + '::' + (params.body.target === undefined ? 'target' : 'target:' + params.body.target) + '::' + 'templateInputs:' + params.body.templateInputs + '::' + 'templateTypeName:' + params.body.templateTypeName + ')';
|
|
4733
4733
|
}
|
|
4734
|
-
function getResponseCacheKeys$
|
|
4735
|
-
getTypeCacheKeys$
|
|
4734
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
4735
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
|
|
4736
4736
|
}
|
|
4737
|
-
function ingestSuccess$
|
|
4737
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
4738
4738
|
const { body } = response;
|
|
4739
|
-
const key = keyBuilder$
|
|
4740
|
-
luvio.storeIngest(key, ingest$
|
|
4739
|
+
const key = keyBuilder$e(luvio, resourceParams);
|
|
4740
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
4741
4741
|
const snapshot = luvio.storeLookup({
|
|
4742
4742
|
recordId: key,
|
|
4743
|
-
node: select$
|
|
4743
|
+
node: select$i(),
|
|
4744
4744
|
variables: {},
|
|
4745
4745
|
}, snapshotRefresh);
|
|
4746
4746
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4752,18 +4752,18 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4752
4752
|
return snapshot;
|
|
4753
4753
|
}
|
|
4754
4754
|
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
4755
|
-
const key = keyBuilder$
|
|
4755
|
+
const key = keyBuilder$e(luvio, params);
|
|
4756
4756
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4757
4757
|
const storeMetadataParams = {
|
|
4758
|
-
ttl: TTL$
|
|
4758
|
+
ttl: TTL$5,
|
|
4759
4759
|
namespace: keyPrefix,
|
|
4760
|
-
version: VERSION$
|
|
4761
|
-
representationName: RepresentationType$
|
|
4760
|
+
version: VERSION$9,
|
|
4761
|
+
representationName: RepresentationType$5
|
|
4762
4762
|
};
|
|
4763
4763
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4764
4764
|
return errorSnapshot;
|
|
4765
4765
|
}
|
|
4766
|
-
function createResourceRequest$
|
|
4766
|
+
function createResourceRequest$9(config) {
|
|
4767
4767
|
const headers = {};
|
|
4768
4768
|
return {
|
|
4769
4769
|
baseUri: '/services/data/v66.0',
|
|
@@ -4777,22 +4777,22 @@ function createResourceRequest$8(config) {
|
|
|
4777
4777
|
};
|
|
4778
4778
|
}
|
|
4779
4779
|
|
|
4780
|
-
const adapterName$
|
|
4780
|
+
const adapterName$9 = 'getInputMappedDataProviders';
|
|
4781
4781
|
const getInputMappedDataProviders_ConfigPropertyMetadata = [
|
|
4782
4782
|
generateParamConfigMetadata('groupName', false, 2 /* Body */, 0 /* String */),
|
|
4783
4783
|
generateParamConfigMetadata('target', false, 2 /* Body */, 0 /* String */),
|
|
4784
4784
|
generateParamConfigMetadata('templateInputs', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4785
4785
|
generateParamConfigMetadata('templateTypeName', true, 2 /* Body */, 0 /* String */),
|
|
4786
4786
|
];
|
|
4787
|
-
const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4788
|
-
const createResourceParams$
|
|
4789
|
-
function keyBuilder$
|
|
4790
|
-
const resourceParams = createResourceParams$
|
|
4791
|
-
return keyBuilder$
|
|
4787
|
+
const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getInputMappedDataProviders_ConfigPropertyMetadata);
|
|
4788
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(getInputMappedDataProviders_ConfigPropertyMetadata);
|
|
4789
|
+
function keyBuilder$d(luvio, config) {
|
|
4790
|
+
const resourceParams = createResourceParams$9(config);
|
|
4791
|
+
return keyBuilder$e(luvio, resourceParams);
|
|
4792
4792
|
}
|
|
4793
|
-
function typeCheckConfig$
|
|
4793
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
4794
4794
|
const config = {};
|
|
4795
|
-
typeCheckConfig$
|
|
4795
|
+
typeCheckConfig$j(untrustedConfig, config, getInputMappedDataProviders_ConfigPropertyMetadata);
|
|
4796
4796
|
const untrustedConfig_templateInputs = untrustedConfig.templateInputs;
|
|
4797
4797
|
if (ArrayIsArray$1(untrustedConfig_templateInputs)) {
|
|
4798
4798
|
const untrustedConfig_templateInputs_array = [];
|
|
@@ -4804,45 +4804,45 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
4804
4804
|
}
|
|
4805
4805
|
return config;
|
|
4806
4806
|
}
|
|
4807
|
-
function validateAdapterConfig$
|
|
4807
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
4808
4808
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4809
4809
|
return null;
|
|
4810
4810
|
}
|
|
4811
4811
|
if (process.env.NODE_ENV !== 'production') {
|
|
4812
4812
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4813
4813
|
}
|
|
4814
|
-
const config = typeCheckConfig$
|
|
4814
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
4815
4815
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4816
4816
|
return null;
|
|
4817
4817
|
}
|
|
4818
4818
|
return config;
|
|
4819
4819
|
}
|
|
4820
4820
|
function adapterFragment$6(luvio, config) {
|
|
4821
|
-
createResourceParams$
|
|
4822
|
-
return select$
|
|
4821
|
+
createResourceParams$9(config);
|
|
4822
|
+
return select$i();
|
|
4823
4823
|
}
|
|
4824
4824
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
4825
|
-
const snapshot = ingestSuccess$
|
|
4825
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
4826
4826
|
config,
|
|
4827
|
-
resolve: () => buildNetworkSnapshot$
|
|
4827
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
4828
4828
|
});
|
|
4829
4829
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4830
4830
|
}
|
|
4831
4831
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
4832
4832
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
4833
4833
|
config,
|
|
4834
|
-
resolve: () => buildNetworkSnapshot$
|
|
4834
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
4835
4835
|
});
|
|
4836
4836
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4837
4837
|
}
|
|
4838
|
-
function buildNetworkSnapshot$
|
|
4839
|
-
const resourceParams = createResourceParams$
|
|
4840
|
-
const request = createResourceRequest$
|
|
4838
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
4839
|
+
const resourceParams = createResourceParams$9(config);
|
|
4840
|
+
const request = createResourceRequest$9(resourceParams);
|
|
4841
4841
|
return luvio.dispatchResourceRequest(request, options)
|
|
4842
4842
|
.then((response) => {
|
|
4843
4843
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
4844
4844
|
const cache = new StoreKeyMap();
|
|
4845
|
-
getResponseCacheKeys$
|
|
4845
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
4846
4846
|
return cache;
|
|
4847
4847
|
});
|
|
4848
4848
|
}, (response) => {
|
|
@@ -4850,23 +4850,23 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
4850
4850
|
});
|
|
4851
4851
|
}
|
|
4852
4852
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
4853
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
4853
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, 'get', false);
|
|
4854
4854
|
}
|
|
4855
4855
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
4856
4856
|
const { luvio, config } = context;
|
|
4857
4857
|
const selector = {
|
|
4858
|
-
recordId: keyBuilder$
|
|
4858
|
+
recordId: keyBuilder$d(luvio, config),
|
|
4859
4859
|
node: adapterFragment$6(luvio, config),
|
|
4860
4860
|
variables: {},
|
|
4861
4861
|
};
|
|
4862
4862
|
const cacheSnapshot = storeLookup(selector, {
|
|
4863
4863
|
config,
|
|
4864
|
-
resolve: () => buildNetworkSnapshot$
|
|
4864
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
4865
4865
|
});
|
|
4866
4866
|
return cacheSnapshot;
|
|
4867
4867
|
}
|
|
4868
4868
|
const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getInputMappedDataProviders(untrustedConfig, requestContext) {
|
|
4869
|
-
const config = validateAdapterConfig$
|
|
4869
|
+
const config = validateAdapterConfig$9(untrustedConfig, getInputMappedDataProviders_ConfigPropertyNames);
|
|
4870
4870
|
// Invalid or incomplete config
|
|
4871
4871
|
if (config === null) {
|
|
4872
4872
|
return null;
|
|
@@ -4875,8 +4875,8 @@ const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLL
|
|
|
4875
4875
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
4876
4876
|
};
|
|
4877
4877
|
|
|
4878
|
-
const VERSION$
|
|
4879
|
-
function validate$
|
|
4878
|
+
const VERSION$8 = "b513bbac1672327d8eaaf120660e94b5";
|
|
4879
|
+
function validate$9(obj, path = 'EinsteinPromptTemplateSupportedLanguageErrorRepresentation') {
|
|
4880
4880
|
const v_error = (() => {
|
|
4881
4881
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4882
4882
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4894,10 +4894,10 @@ function validate$8(obj, path = 'EinsteinPromptTemplateSupportedLanguageErrorRep
|
|
|
4894
4894
|
})();
|
|
4895
4895
|
return v_error === undefined ? null : v_error;
|
|
4896
4896
|
}
|
|
4897
|
-
const select$
|
|
4897
|
+
const select$h = function EinsteinPromptTemplateSupportedLanguageErrorRepresentationSelect() {
|
|
4898
4898
|
return {
|
|
4899
4899
|
kind: 'Fragment',
|
|
4900
|
-
version: VERSION$
|
|
4900
|
+
version: VERSION$8,
|
|
4901
4901
|
private: [],
|
|
4902
4902
|
selections: [
|
|
4903
4903
|
{
|
|
@@ -4911,7 +4911,7 @@ const select$f = function EinsteinPromptTemplateSupportedLanguageErrorRepresenta
|
|
|
4911
4911
|
]
|
|
4912
4912
|
};
|
|
4913
4913
|
};
|
|
4914
|
-
function equals$
|
|
4914
|
+
function equals$8(existing, incoming) {
|
|
4915
4915
|
const existing_errorMessage = existing.errorMessage;
|
|
4916
4916
|
const incoming_errorMessage = incoming.errorMessage;
|
|
4917
4917
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -4925,8 +4925,8 @@ function equals$7(existing, incoming) {
|
|
|
4925
4925
|
return true;
|
|
4926
4926
|
}
|
|
4927
4927
|
|
|
4928
|
-
const VERSION$
|
|
4929
|
-
function validate$
|
|
4928
|
+
const VERSION$7 = "65a17d345c28eeca91872a73d8ffe9fd";
|
|
4929
|
+
function validate$8(obj, path = 'EinsteinPromptTemplateSupportedLanguageRepresentation') {
|
|
4930
4930
|
const v_error = (() => {
|
|
4931
4931
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4932
4932
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4944,10 +4944,10 @@ function validate$7(obj, path = 'EinsteinPromptTemplateSupportedLanguageRepresen
|
|
|
4944
4944
|
})();
|
|
4945
4945
|
return v_error === undefined ? null : v_error;
|
|
4946
4946
|
}
|
|
4947
|
-
const select$
|
|
4947
|
+
const select$g = function EinsteinPromptTemplateSupportedLanguageRepresentationSelect() {
|
|
4948
4948
|
return {
|
|
4949
4949
|
kind: 'Fragment',
|
|
4950
|
-
version: VERSION$
|
|
4950
|
+
version: VERSION$7,
|
|
4951
4951
|
private: [],
|
|
4952
4952
|
selections: [
|
|
4953
4953
|
{
|
|
@@ -4961,7 +4961,7 @@ const select$e = function EinsteinPromptTemplateSupportedLanguageRepresentationS
|
|
|
4961
4961
|
]
|
|
4962
4962
|
};
|
|
4963
4963
|
};
|
|
4964
|
-
function equals$
|
|
4964
|
+
function equals$7(existing, incoming) {
|
|
4965
4965
|
const existing_languageCode = existing.languageCode;
|
|
4966
4966
|
const incoming_languageCode = incoming.languageCode;
|
|
4967
4967
|
if (!(existing_languageCode === incoming_languageCode)) {
|
|
@@ -4975,9 +4975,9 @@ function equals$6(existing, incoming) {
|
|
|
4975
4975
|
return true;
|
|
4976
4976
|
}
|
|
4977
4977
|
|
|
4978
|
-
const TTL$
|
|
4979
|
-
const VERSION$
|
|
4980
|
-
function validate$
|
|
4978
|
+
const TTL$4 = 100;
|
|
4979
|
+
const VERSION$6 = "c635f260bce9a11f7c3bf31d60f42b53";
|
|
4980
|
+
function validate$7(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRepresentation') {
|
|
4981
4981
|
const v_error = (() => {
|
|
4982
4982
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4983
4983
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4990,7 +4990,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRep
|
|
|
4990
4990
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
4991
4991
|
const obj_errors_item = obj_errors[i];
|
|
4992
4992
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
4993
|
-
const referencepath_errors_itemValidationError = validate$
|
|
4993
|
+
const referencepath_errors_itemValidationError = validate$9(obj_errors_item, path_errors_item);
|
|
4994
4994
|
if (referencepath_errors_itemValidationError !== null) {
|
|
4995
4995
|
let message = 'Object doesn\'t match EinsteinPromptTemplateSupportedLanguageErrorRepresentation (at "' + path_errors_item + '")\n';
|
|
4996
4996
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5015,7 +5015,7 @@ function validate$6(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRep
|
|
|
5015
5015
|
for (let i = 0; i < obj_supportedLanguages.length; i++) {
|
|
5016
5016
|
const obj_supportedLanguages_item = obj_supportedLanguages[i];
|
|
5017
5017
|
const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
|
|
5018
|
-
const referencepath_supportedLanguages_itemValidationError = validate$
|
|
5018
|
+
const referencepath_supportedLanguages_itemValidationError = validate$8(obj_supportedLanguages_item, path_supportedLanguages_item);
|
|
5019
5019
|
if (referencepath_supportedLanguages_itemValidationError !== null) {
|
|
5020
5020
|
let message = 'Object doesn\'t match EinsteinPromptTemplateSupportedLanguageRepresentation (at "' + path_supportedLanguages_item + '")\n';
|
|
5021
5021
|
message += referencepath_supportedLanguages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5030,16 +5030,16 @@ function validate$6(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRep
|
|
|
5030
5030
|
})();
|
|
5031
5031
|
return v_error === undefined ? null : v_error;
|
|
5032
5032
|
}
|
|
5033
|
-
const RepresentationType$
|
|
5034
|
-
function normalize$
|
|
5033
|
+
const RepresentationType$4 = 'EinsteinPromptTemplateVersionOutputLanguagesRepresentation';
|
|
5034
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
5035
5035
|
return input;
|
|
5036
5036
|
}
|
|
5037
|
-
const select$
|
|
5038
|
-
const { selections: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__opaque, } = select$
|
|
5039
|
-
const { selections: EinsteinPromptTemplateSupportedLanguageRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageRepresentation__opaque, } = select$
|
|
5037
|
+
const select$f = function EinsteinPromptTemplateVersionOutputLanguagesRepresentationSelect() {
|
|
5038
|
+
const { selections: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__opaque, } = select$h();
|
|
5039
|
+
const { selections: EinsteinPromptTemplateSupportedLanguageRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageRepresentation__opaque, } = select$g();
|
|
5040
5040
|
return {
|
|
5041
5041
|
kind: 'Fragment',
|
|
5042
|
-
version: VERSION$
|
|
5042
|
+
version: VERSION$6,
|
|
5043
5043
|
private: [],
|
|
5044
5044
|
selections: [
|
|
5045
5045
|
{
|
|
@@ -5069,7 +5069,7 @@ const select$d = function EinsteinPromptTemplateVersionOutputLanguagesRepresenta
|
|
|
5069
5069
|
]
|
|
5070
5070
|
};
|
|
5071
5071
|
};
|
|
5072
|
-
function equals$
|
|
5072
|
+
function equals$6(existing, incoming) {
|
|
5073
5073
|
const existing_isSuccess = existing.isSuccess;
|
|
5074
5074
|
const incoming_isSuccess = incoming.isSuccess;
|
|
5075
5075
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -5088,7 +5088,7 @@ function equals$5(existing, incoming) {
|
|
|
5088
5088
|
const existing_errors = existing.errors;
|
|
5089
5089
|
const incoming_errors = incoming.errors;
|
|
5090
5090
|
const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
|
|
5091
|
-
if (!(equals$
|
|
5091
|
+
if (!(equals$8(existing_errors_item, incoming_errors_item))) {
|
|
5092
5092
|
return false;
|
|
5093
5093
|
}
|
|
5094
5094
|
});
|
|
@@ -5098,7 +5098,7 @@ function equals$5(existing, incoming) {
|
|
|
5098
5098
|
const existing_supportedLanguages = existing.supportedLanguages;
|
|
5099
5099
|
const incoming_supportedLanguages = incoming.supportedLanguages;
|
|
5100
5100
|
const equals_supportedLanguages_items = equalsArray(existing_supportedLanguages, incoming_supportedLanguages, (existing_supportedLanguages_item, incoming_supportedLanguages_item) => {
|
|
5101
|
-
if (!(equals$
|
|
5101
|
+
if (!(equals$7(existing_supportedLanguages_item, incoming_supportedLanguages_item))) {
|
|
5102
5102
|
return false;
|
|
5103
5103
|
}
|
|
5104
5104
|
});
|
|
@@ -5107,44 +5107,44 @@ function equals$5(existing, incoming) {
|
|
|
5107
5107
|
}
|
|
5108
5108
|
return true;
|
|
5109
5109
|
}
|
|
5110
|
-
const ingest$
|
|
5110
|
+
const ingest$4 = function EinsteinPromptTemplateVersionOutputLanguagesRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5111
5111
|
if (process.env.NODE_ENV !== 'production') {
|
|
5112
|
-
const validateError = validate$
|
|
5112
|
+
const validateError = validate$7(input);
|
|
5113
5113
|
if (validateError !== null) {
|
|
5114
5114
|
throw validateError;
|
|
5115
5115
|
}
|
|
5116
5116
|
}
|
|
5117
5117
|
const key = path.fullPath;
|
|
5118
|
-
const ttlToUse = TTL$
|
|
5119
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5118
|
+
const ttlToUse = TTL$4;
|
|
5119
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$6, RepresentationType$4, equals$6);
|
|
5120
5120
|
return createLink(key);
|
|
5121
5121
|
};
|
|
5122
|
-
function getTypeCacheKeys$
|
|
5122
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
5123
5123
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5124
5124
|
const rootKey = fullPathFactory();
|
|
5125
5125
|
rootKeySet.set(rootKey, {
|
|
5126
5126
|
namespace: keyPrefix,
|
|
5127
|
-
representationName: RepresentationType$
|
|
5127
|
+
representationName: RepresentationType$4,
|
|
5128
5128
|
mergeable: false
|
|
5129
5129
|
});
|
|
5130
5130
|
}
|
|
5131
5131
|
|
|
5132
|
-
function select$
|
|
5133
|
-
return select$
|
|
5132
|
+
function select$e(luvio, params) {
|
|
5133
|
+
return select$f();
|
|
5134
5134
|
}
|
|
5135
|
-
function keyBuilder$
|
|
5135
|
+
function keyBuilder$c(luvio, params) {
|
|
5136
5136
|
return keyPrefix + '::EinsteinPromptTemplateVersionOutputLanguagesRepresentation:(' + 'useStandardVersion:' + params.queryParams.useStandardVersion + ',' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
|
|
5137
5137
|
}
|
|
5138
|
-
function getResponseCacheKeys$
|
|
5139
|
-
getTypeCacheKeys$
|
|
5138
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
5139
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
|
|
5140
5140
|
}
|
|
5141
|
-
function ingestSuccess$
|
|
5141
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
5142
5142
|
const { body } = response;
|
|
5143
|
-
const key = keyBuilder$
|
|
5144
|
-
luvio.storeIngest(key, ingest$
|
|
5143
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
5144
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5145
5145
|
const snapshot = luvio.storeLookup({
|
|
5146
5146
|
recordId: key,
|
|
5147
|
-
node: select$
|
|
5147
|
+
node: select$e(),
|
|
5148
5148
|
variables: {},
|
|
5149
5149
|
}, snapshotRefresh);
|
|
5150
5150
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5156,18 +5156,18 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5156
5156
|
return snapshot;
|
|
5157
5157
|
}
|
|
5158
5158
|
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
5159
|
-
const key = keyBuilder$
|
|
5159
|
+
const key = keyBuilder$c(luvio, params);
|
|
5160
5160
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5161
5161
|
const storeMetadataParams = {
|
|
5162
|
-
ttl: TTL$
|
|
5162
|
+
ttl: TTL$4,
|
|
5163
5163
|
namespace: keyPrefix,
|
|
5164
|
-
version: VERSION$
|
|
5165
|
-
representationName: RepresentationType$
|
|
5164
|
+
version: VERSION$6,
|
|
5165
|
+
representationName: RepresentationType$4
|
|
5166
5166
|
};
|
|
5167
5167
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5168
5168
|
return errorSnapshot;
|
|
5169
5169
|
}
|
|
5170
|
-
function createResourceRequest$
|
|
5170
|
+
function createResourceRequest$8(config) {
|
|
5171
5171
|
const headers = {};
|
|
5172
5172
|
return {
|
|
5173
5173
|
baseUri: '/services/data/v66.0',
|
|
@@ -5181,62 +5181,62 @@ function createResourceRequest$7(config) {
|
|
|
5181
5181
|
};
|
|
5182
5182
|
}
|
|
5183
5183
|
|
|
5184
|
-
const adapterName$
|
|
5184
|
+
const adapterName$8 = 'getOutputLanguages';
|
|
5185
5185
|
const getOutputLanguages_ConfigPropertyMetadata = [
|
|
5186
5186
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5187
5187
|
generateParamConfigMetadata('useStandardVersion', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5188
5188
|
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5189
5189
|
];
|
|
5190
|
-
const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5191
|
-
const createResourceParams$
|
|
5192
|
-
function keyBuilder$
|
|
5193
|
-
const resourceParams = createResourceParams$
|
|
5194
|
-
return keyBuilder$
|
|
5190
|
+
const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getOutputLanguages_ConfigPropertyMetadata);
|
|
5191
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(getOutputLanguages_ConfigPropertyMetadata);
|
|
5192
|
+
function keyBuilder$b(luvio, config) {
|
|
5193
|
+
const resourceParams = createResourceParams$8(config);
|
|
5194
|
+
return keyBuilder$c(luvio, resourceParams);
|
|
5195
5195
|
}
|
|
5196
|
-
function typeCheckConfig$
|
|
5196
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
5197
5197
|
const config = {};
|
|
5198
|
-
typeCheckConfig$
|
|
5198
|
+
typeCheckConfig$j(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
|
|
5199
5199
|
return config;
|
|
5200
5200
|
}
|
|
5201
|
-
function validateAdapterConfig$
|
|
5201
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
5202
5202
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5203
5203
|
return null;
|
|
5204
5204
|
}
|
|
5205
5205
|
if (process.env.NODE_ENV !== 'production') {
|
|
5206
5206
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5207
5207
|
}
|
|
5208
|
-
const config = typeCheckConfig$
|
|
5208
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
5209
5209
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5210
5210
|
return null;
|
|
5211
5211
|
}
|
|
5212
5212
|
return config;
|
|
5213
5213
|
}
|
|
5214
5214
|
function adapterFragment$5(luvio, config) {
|
|
5215
|
-
createResourceParams$
|
|
5216
|
-
return select$
|
|
5215
|
+
createResourceParams$8(config);
|
|
5216
|
+
return select$e();
|
|
5217
5217
|
}
|
|
5218
5218
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
5219
|
-
const snapshot = ingestSuccess$
|
|
5219
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
5220
5220
|
config,
|
|
5221
|
-
resolve: () => buildNetworkSnapshot$
|
|
5221
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
5222
5222
|
});
|
|
5223
5223
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5224
5224
|
}
|
|
5225
5225
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
5226
5226
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
5227
5227
|
config,
|
|
5228
|
-
resolve: () => buildNetworkSnapshot$
|
|
5228
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
5229
5229
|
});
|
|
5230
5230
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5231
5231
|
}
|
|
5232
|
-
function buildNetworkSnapshot$
|
|
5233
|
-
const resourceParams = createResourceParams$
|
|
5234
|
-
const request = createResourceRequest$
|
|
5232
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
5233
|
+
const resourceParams = createResourceParams$8(config);
|
|
5234
|
+
const request = createResourceRequest$8(resourceParams);
|
|
5235
5235
|
return luvio.dispatchResourceRequest(request, options)
|
|
5236
5236
|
.then((response) => {
|
|
5237
5237
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
5238
5238
|
const cache = new StoreKeyMap();
|
|
5239
|
-
getResponseCacheKeys$
|
|
5239
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
5240
5240
|
return cache;
|
|
5241
5241
|
});
|
|
5242
5242
|
}, (response) => {
|
|
@@ -5244,23 +5244,23 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
5244
5244
|
});
|
|
5245
5245
|
}
|
|
5246
5246
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
5247
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5247
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
5248
5248
|
}
|
|
5249
5249
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
5250
5250
|
const { luvio, config } = context;
|
|
5251
5251
|
const selector = {
|
|
5252
|
-
recordId: keyBuilder$
|
|
5252
|
+
recordId: keyBuilder$b(luvio, config),
|
|
5253
5253
|
node: adapterFragment$5(luvio, config),
|
|
5254
5254
|
variables: {},
|
|
5255
5255
|
};
|
|
5256
5256
|
const cacheSnapshot = storeLookup(selector, {
|
|
5257
5257
|
config,
|
|
5258
|
-
resolve: () => buildNetworkSnapshot$
|
|
5258
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
5259
5259
|
});
|
|
5260
5260
|
return cacheSnapshot;
|
|
5261
5261
|
}
|
|
5262
5262
|
const getOutputLanguagesAdapterFactory = (luvio) => function EinsteinLLM__getOutputLanguages(untrustedConfig, requestContext) {
|
|
5263
|
-
const config = validateAdapterConfig$
|
|
5263
|
+
const config = validateAdapterConfig$8(untrustedConfig, getOutputLanguages_ConfigPropertyNames);
|
|
5264
5264
|
// Invalid or incomplete config
|
|
5265
5265
|
if (config === null) {
|
|
5266
5266
|
return null;
|
|
@@ -5269,7 +5269,7 @@ const getOutputLanguagesAdapterFactory = (luvio) => function EinsteinLLM__getOut
|
|
|
5269
5269
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
5270
5270
|
};
|
|
5271
5271
|
|
|
5272
|
-
function validate$
|
|
5272
|
+
function validate$6(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
|
|
5273
5273
|
const v_error = (() => {
|
|
5274
5274
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5275
5275
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5346,9 +5346,9 @@ function validate$5(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
|
|
|
5346
5346
|
return v_error === undefined ? null : v_error;
|
|
5347
5347
|
}
|
|
5348
5348
|
|
|
5349
|
-
const TTL$
|
|
5350
|
-
const VERSION$
|
|
5351
|
-
function validate$
|
|
5349
|
+
const TTL$3 = 100;
|
|
5350
|
+
const VERSION$5 = "2d1628544b54fc1701aa9b4eff05127b";
|
|
5351
|
+
function validate$5(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
5352
5352
|
const v_error = (() => {
|
|
5353
5353
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5354
5354
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5377,7 +5377,7 @@ function validate$4(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
|
5377
5377
|
for (let i = 0; i < obj_childRelationships_prop.length; i++) {
|
|
5378
5378
|
const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
|
|
5379
5379
|
const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
|
|
5380
|
-
const referencepath_childRelationships_prop_itemValidationError = validate$
|
|
5380
|
+
const referencepath_childRelationships_prop_itemValidationError = validate$5(obj_childRelationships_prop_item, path_childRelationships_prop_item);
|
|
5381
5381
|
if (referencepath_childRelationships_prop_itemValidationError !== null) {
|
|
5382
5382
|
let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
|
|
5383
5383
|
message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5397,7 +5397,7 @@ function validate$4(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
|
5397
5397
|
const key = obj_fields_keys[i];
|
|
5398
5398
|
const obj_fields_prop = obj_fields[key];
|
|
5399
5399
|
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
5400
|
-
const referencepath_fields_propValidationError = validate$
|
|
5400
|
+
const referencepath_fields_propValidationError = validate$6(obj_fields_prop, path_fields_prop);
|
|
5401
5401
|
if (referencepath_fields_propValidationError !== null) {
|
|
5402
5402
|
let message = 'Object doesn\'t match EinsteinPromptRecordFieldRepresentation (at "' + path_fields_prop + '")\n';
|
|
5403
5403
|
message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5415,62 +5415,62 @@ function validate$4(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
|
5415
5415
|
})();
|
|
5416
5416
|
return v_error === undefined ? null : v_error;
|
|
5417
5417
|
}
|
|
5418
|
-
const RepresentationType$
|
|
5419
|
-
function normalize$
|
|
5418
|
+
const RepresentationType$3 = 'EinsteinPromptRecordRepresentation';
|
|
5419
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
5420
5420
|
return input;
|
|
5421
5421
|
}
|
|
5422
|
-
const select$
|
|
5422
|
+
const select$d = function EinsteinPromptRecordRepresentationSelect() {
|
|
5423
5423
|
return {
|
|
5424
5424
|
kind: 'Fragment',
|
|
5425
|
-
version: VERSION$
|
|
5425
|
+
version: VERSION$5,
|
|
5426
5426
|
private: [],
|
|
5427
5427
|
opaque: true
|
|
5428
5428
|
};
|
|
5429
5429
|
};
|
|
5430
|
-
function equals$
|
|
5430
|
+
function equals$5(existing, incoming) {
|
|
5431
5431
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5432
5432
|
return false;
|
|
5433
5433
|
}
|
|
5434
5434
|
return true;
|
|
5435
5435
|
}
|
|
5436
|
-
const ingest$
|
|
5436
|
+
const ingest$3 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5437
5437
|
if (process.env.NODE_ENV !== 'production') {
|
|
5438
|
-
const validateError = validate$
|
|
5438
|
+
const validateError = validate$5(input);
|
|
5439
5439
|
if (validateError !== null) {
|
|
5440
5440
|
throw validateError;
|
|
5441
5441
|
}
|
|
5442
5442
|
}
|
|
5443
5443
|
const key = path.fullPath;
|
|
5444
|
-
const ttlToUse = TTL$
|
|
5445
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5444
|
+
const ttlToUse = TTL$3;
|
|
5445
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$5, RepresentationType$3, equals$5);
|
|
5446
5446
|
return createLink(key);
|
|
5447
5447
|
};
|
|
5448
|
-
function getTypeCacheKeys$
|
|
5448
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
5449
5449
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5450
5450
|
const rootKey = fullPathFactory();
|
|
5451
5451
|
rootKeySet.set(rootKey, {
|
|
5452
5452
|
namespace: keyPrefix,
|
|
5453
|
-
representationName: RepresentationType$
|
|
5453
|
+
representationName: RepresentationType$3,
|
|
5454
5454
|
mergeable: false
|
|
5455
5455
|
});
|
|
5456
5456
|
}
|
|
5457
5457
|
|
|
5458
|
-
function select$
|
|
5459
|
-
return select$
|
|
5458
|
+
function select$c(luvio, params) {
|
|
5459
|
+
return select$d();
|
|
5460
5460
|
}
|
|
5461
|
-
function keyBuilder$
|
|
5461
|
+
function keyBuilder$a(luvio, params) {
|
|
5462
5462
|
return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
|
|
5463
5463
|
}
|
|
5464
|
-
function getResponseCacheKeys$
|
|
5465
|
-
getTypeCacheKeys$
|
|
5464
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
5465
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
5466
5466
|
}
|
|
5467
|
-
function ingestSuccess$
|
|
5467
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
5468
5468
|
const { body } = response;
|
|
5469
|
-
const key = keyBuilder$
|
|
5470
|
-
luvio.storeIngest(key, ingest$
|
|
5469
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
5470
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
5471
5471
|
const snapshot = luvio.storeLookup({
|
|
5472
5472
|
recordId: key,
|
|
5473
|
-
node: select$
|
|
5473
|
+
node: select$c(),
|
|
5474
5474
|
variables: {},
|
|
5475
5475
|
}, snapshotRefresh);
|
|
5476
5476
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5482,18 +5482,18 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5482
5482
|
return snapshot;
|
|
5483
5483
|
}
|
|
5484
5484
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
5485
|
-
const key = keyBuilder$
|
|
5485
|
+
const key = keyBuilder$a(luvio, params);
|
|
5486
5486
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5487
5487
|
const storeMetadataParams = {
|
|
5488
|
-
ttl: TTL$
|
|
5488
|
+
ttl: TTL$3,
|
|
5489
5489
|
namespace: keyPrefix,
|
|
5490
|
-
version: VERSION$
|
|
5491
|
-
representationName: RepresentationType$
|
|
5490
|
+
version: VERSION$5,
|
|
5491
|
+
representationName: RepresentationType$3
|
|
5492
5492
|
};
|
|
5493
5493
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5494
5494
|
return errorSnapshot;
|
|
5495
5495
|
}
|
|
5496
|
-
function createResourceRequest$
|
|
5496
|
+
function createResourceRequest$7(config) {
|
|
5497
5497
|
const headers = {};
|
|
5498
5498
|
return {
|
|
5499
5499
|
baseUri: '/services/data/v66.0',
|
|
@@ -5507,61 +5507,61 @@ function createResourceRequest$6(config) {
|
|
|
5507
5507
|
};
|
|
5508
5508
|
}
|
|
5509
5509
|
|
|
5510
|
-
const adapterName$
|
|
5510
|
+
const adapterName$7 = 'getPromptTemplate';
|
|
5511
5511
|
const getPromptTemplate_ConfigPropertyMetadata = [
|
|
5512
5512
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5513
5513
|
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5514
5514
|
];
|
|
5515
|
-
const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5516
|
-
const createResourceParams$
|
|
5517
|
-
function keyBuilder$
|
|
5518
|
-
const resourceParams = createResourceParams$
|
|
5519
|
-
return keyBuilder$
|
|
5515
|
+
const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getPromptTemplate_ConfigPropertyMetadata);
|
|
5516
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(getPromptTemplate_ConfigPropertyMetadata);
|
|
5517
|
+
function keyBuilder$9(luvio, config) {
|
|
5518
|
+
const resourceParams = createResourceParams$7(config);
|
|
5519
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
5520
5520
|
}
|
|
5521
|
-
function typeCheckConfig$
|
|
5521
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
5522
5522
|
const config = {};
|
|
5523
|
-
typeCheckConfig$
|
|
5523
|
+
typeCheckConfig$j(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
|
|
5524
5524
|
return config;
|
|
5525
5525
|
}
|
|
5526
|
-
function validateAdapterConfig$
|
|
5526
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
5527
5527
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5528
5528
|
return null;
|
|
5529
5529
|
}
|
|
5530
5530
|
if (process.env.NODE_ENV !== 'production') {
|
|
5531
5531
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5532
5532
|
}
|
|
5533
|
-
const config = typeCheckConfig$
|
|
5533
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
5534
5534
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5535
5535
|
return null;
|
|
5536
5536
|
}
|
|
5537
5537
|
return config;
|
|
5538
5538
|
}
|
|
5539
5539
|
function adapterFragment$4(luvio, config) {
|
|
5540
|
-
createResourceParams$
|
|
5541
|
-
return select$
|
|
5540
|
+
createResourceParams$7(config);
|
|
5541
|
+
return select$c();
|
|
5542
5542
|
}
|
|
5543
5543
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
5544
|
-
const snapshot = ingestSuccess$
|
|
5544
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
5545
5545
|
config,
|
|
5546
|
-
resolve: () => buildNetworkSnapshot$
|
|
5546
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
5547
5547
|
});
|
|
5548
5548
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5549
5549
|
}
|
|
5550
5550
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
5551
5551
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
5552
5552
|
config,
|
|
5553
|
-
resolve: () => buildNetworkSnapshot$
|
|
5553
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
5554
5554
|
});
|
|
5555
5555
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5556
5556
|
}
|
|
5557
|
-
function buildNetworkSnapshot$
|
|
5558
|
-
const resourceParams = createResourceParams$
|
|
5559
|
-
const request = createResourceRequest$
|
|
5557
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
5558
|
+
const resourceParams = createResourceParams$7(config);
|
|
5559
|
+
const request = createResourceRequest$7(resourceParams);
|
|
5560
5560
|
return luvio.dispatchResourceRequest(request, options)
|
|
5561
5561
|
.then((response) => {
|
|
5562
5562
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
5563
5563
|
const cache = new StoreKeyMap();
|
|
5564
|
-
getResponseCacheKeys$
|
|
5564
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
5565
5565
|
return cache;
|
|
5566
5566
|
});
|
|
5567
5567
|
}, (response) => {
|
|
@@ -5569,23 +5569,23 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
5569
5569
|
});
|
|
5570
5570
|
}
|
|
5571
5571
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
5572
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5572
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
5573
5573
|
}
|
|
5574
5574
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
5575
5575
|
const { luvio, config } = context;
|
|
5576
5576
|
const selector = {
|
|
5577
|
-
recordId: keyBuilder$
|
|
5577
|
+
recordId: keyBuilder$9(luvio, config),
|
|
5578
5578
|
node: adapterFragment$4(luvio, config),
|
|
5579
5579
|
variables: {},
|
|
5580
5580
|
};
|
|
5581
5581
|
const cacheSnapshot = storeLookup(selector, {
|
|
5582
5582
|
config,
|
|
5583
|
-
resolve: () => buildNetworkSnapshot$
|
|
5583
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
5584
5584
|
});
|
|
5585
5585
|
return cacheSnapshot;
|
|
5586
5586
|
}
|
|
5587
5587
|
const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplate(untrustedConfig, requestContext) {
|
|
5588
|
-
const config = validateAdapterConfig$
|
|
5588
|
+
const config = validateAdapterConfig$7(untrustedConfig, getPromptTemplate_ConfigPropertyNames);
|
|
5589
5589
|
// Invalid or incomplete config
|
|
5590
5590
|
if (config === null) {
|
|
5591
5591
|
return null;
|
|
@@ -5594,22 +5594,22 @@ const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getProm
|
|
|
5594
5594
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
5595
5595
|
};
|
|
5596
5596
|
|
|
5597
|
-
function select$
|
|
5598
|
-
return select$
|
|
5597
|
+
function select$b(luvio, params) {
|
|
5598
|
+
return select$d();
|
|
5599
5599
|
}
|
|
5600
|
-
function keyBuilder$
|
|
5600
|
+
function keyBuilder$8(luvio, params) {
|
|
5601
5601
|
return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'includingContent:' + params.queryParams.includingContent + ',' + 'includingVersionDetail:' + params.queryParams.includingVersionDetail + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ',' + 'versionId:' + params.urlParams.versionId + ')';
|
|
5602
5602
|
}
|
|
5603
|
-
function getResponseCacheKeys$
|
|
5604
|
-
getTypeCacheKeys$
|
|
5603
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
5604
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
5605
5605
|
}
|
|
5606
|
-
function ingestSuccess$
|
|
5606
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
5607
5607
|
const { body } = response;
|
|
5608
|
-
const key = keyBuilder$
|
|
5609
|
-
luvio.storeIngest(key, ingest$
|
|
5608
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
5609
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
5610
5610
|
const snapshot = luvio.storeLookup({
|
|
5611
5611
|
recordId: key,
|
|
5612
|
-
node: select$
|
|
5612
|
+
node: select$b(),
|
|
5613
5613
|
variables: {},
|
|
5614
5614
|
}, snapshotRefresh);
|
|
5615
5615
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5621,18 +5621,18 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5621
5621
|
return snapshot;
|
|
5622
5622
|
}
|
|
5623
5623
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
5624
|
-
const key = keyBuilder$
|
|
5624
|
+
const key = keyBuilder$8(luvio, params);
|
|
5625
5625
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5626
5626
|
const storeMetadataParams = {
|
|
5627
|
-
ttl: TTL$
|
|
5627
|
+
ttl: TTL$3,
|
|
5628
5628
|
namespace: keyPrefix,
|
|
5629
|
-
version: VERSION$
|
|
5630
|
-
representationName: RepresentationType$
|
|
5629
|
+
version: VERSION$5,
|
|
5630
|
+
representationName: RepresentationType$3
|
|
5631
5631
|
};
|
|
5632
5632
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5633
5633
|
return errorSnapshot;
|
|
5634
5634
|
}
|
|
5635
|
-
function createResourceRequest$
|
|
5635
|
+
function createResourceRequest$6(config) {
|
|
5636
5636
|
const headers = {};
|
|
5637
5637
|
return {
|
|
5638
5638
|
baseUri: '/services/data/v66.0',
|
|
@@ -5646,63 +5646,63 @@ function createResourceRequest$5(config) {
|
|
|
5646
5646
|
};
|
|
5647
5647
|
}
|
|
5648
5648
|
|
|
5649
|
-
const adapterName$
|
|
5649
|
+
const adapterName$6 = 'getPromptTemplateVersion';
|
|
5650
5650
|
const getPromptTemplateVersion_ConfigPropertyMetadata = [
|
|
5651
5651
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5652
5652
|
generateParamConfigMetadata('versionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5653
5653
|
generateParamConfigMetadata('includingContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5654
5654
|
generateParamConfigMetadata('includingVersionDetail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5655
5655
|
];
|
|
5656
|
-
const getPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5657
|
-
const createResourceParams$
|
|
5658
|
-
function keyBuilder$
|
|
5659
|
-
const resourceParams = createResourceParams$
|
|
5660
|
-
return keyBuilder$
|
|
5656
|
+
const getPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getPromptTemplateVersion_ConfigPropertyMetadata);
|
|
5657
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(getPromptTemplateVersion_ConfigPropertyMetadata);
|
|
5658
|
+
function keyBuilder$7(luvio, config) {
|
|
5659
|
+
const resourceParams = createResourceParams$6(config);
|
|
5660
|
+
return keyBuilder$8(luvio, resourceParams);
|
|
5661
5661
|
}
|
|
5662
|
-
function typeCheckConfig$
|
|
5662
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
5663
5663
|
const config = {};
|
|
5664
|
-
typeCheckConfig$
|
|
5664
|
+
typeCheckConfig$j(untrustedConfig, config, getPromptTemplateVersion_ConfigPropertyMetadata);
|
|
5665
5665
|
return config;
|
|
5666
5666
|
}
|
|
5667
|
-
function validateAdapterConfig$
|
|
5667
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
5668
5668
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5669
5669
|
return null;
|
|
5670
5670
|
}
|
|
5671
5671
|
if (process.env.NODE_ENV !== 'production') {
|
|
5672
5672
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5673
5673
|
}
|
|
5674
|
-
const config = typeCheckConfig$
|
|
5674
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
5675
5675
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5676
5676
|
return null;
|
|
5677
5677
|
}
|
|
5678
5678
|
return config;
|
|
5679
5679
|
}
|
|
5680
5680
|
function adapterFragment$3(luvio, config) {
|
|
5681
|
-
createResourceParams$
|
|
5682
|
-
return select$
|
|
5681
|
+
createResourceParams$6(config);
|
|
5682
|
+
return select$b();
|
|
5683
5683
|
}
|
|
5684
5684
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
5685
|
-
const snapshot = ingestSuccess$
|
|
5685
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
5686
5686
|
config,
|
|
5687
|
-
resolve: () => buildNetworkSnapshot$
|
|
5687
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
5688
5688
|
});
|
|
5689
5689
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5690
5690
|
}
|
|
5691
5691
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
5692
5692
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
5693
5693
|
config,
|
|
5694
|
-
resolve: () => buildNetworkSnapshot$
|
|
5694
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
5695
5695
|
});
|
|
5696
5696
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5697
5697
|
}
|
|
5698
|
-
function buildNetworkSnapshot$
|
|
5699
|
-
const resourceParams = createResourceParams$
|
|
5700
|
-
const request = createResourceRequest$
|
|
5698
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
5699
|
+
const resourceParams = createResourceParams$6(config);
|
|
5700
|
+
const request = createResourceRequest$6(resourceParams);
|
|
5701
5701
|
return luvio.dispatchResourceRequest(request, options)
|
|
5702
5702
|
.then((response) => {
|
|
5703
5703
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
5704
5704
|
const cache = new StoreKeyMap();
|
|
5705
|
-
getResponseCacheKeys$
|
|
5705
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
5706
5706
|
return cache;
|
|
5707
5707
|
});
|
|
5708
5708
|
}, (response) => {
|
|
@@ -5710,23 +5710,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
5710
5710
|
});
|
|
5711
5711
|
}
|
|
5712
5712
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
5713
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5713
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
5714
5714
|
}
|
|
5715
5715
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
5716
5716
|
const { luvio, config } = context;
|
|
5717
5717
|
const selector = {
|
|
5718
|
-
recordId: keyBuilder$
|
|
5718
|
+
recordId: keyBuilder$7(luvio, config),
|
|
5719
5719
|
node: adapterFragment$3(luvio, config),
|
|
5720
5720
|
variables: {},
|
|
5721
5721
|
};
|
|
5722
5722
|
const cacheSnapshot = storeLookup(selector, {
|
|
5723
5723
|
config,
|
|
5724
|
-
resolve: () => buildNetworkSnapshot$
|
|
5724
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
5725
5725
|
});
|
|
5726
5726
|
return cacheSnapshot;
|
|
5727
5727
|
}
|
|
5728
5728
|
const getPromptTemplateVersionAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplateVersion(untrustedConfig, requestContext) {
|
|
5729
|
-
const config = validateAdapterConfig$
|
|
5729
|
+
const config = validateAdapterConfig$6(untrustedConfig, getPromptTemplateVersion_ConfigPropertyNames);
|
|
5730
5730
|
// Invalid or incomplete config
|
|
5731
5731
|
if (config === null) {
|
|
5732
5732
|
return null;
|
|
@@ -5735,22 +5735,22 @@ const getPromptTemplateVersionAdapterFactory = (luvio) => function EinsteinLLM__
|
|
|
5735
5735
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
5736
5736
|
};
|
|
5737
5737
|
|
|
5738
|
-
function select$
|
|
5739
|
-
return select$
|
|
5738
|
+
function select$a(luvio, params) {
|
|
5739
|
+
return select$d();
|
|
5740
5740
|
}
|
|
5741
|
-
function keyBuilder$
|
|
5741
|
+
function keyBuilder$6(luvio, params) {
|
|
5742
5742
|
return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'includingContent:' + params.queryParams.includingContent + ',' + 'includingVersionDetail:' + params.queryParams.includingVersionDetail + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
|
|
5743
5743
|
}
|
|
5744
|
-
function getResponseCacheKeys$
|
|
5745
|
-
getTypeCacheKeys$
|
|
5744
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
5745
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
5746
5746
|
}
|
|
5747
|
-
function ingestSuccess$
|
|
5747
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
5748
5748
|
const { body } = response;
|
|
5749
|
-
const key = keyBuilder$
|
|
5750
|
-
luvio.storeIngest(key, ingest$
|
|
5749
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
5750
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
5751
5751
|
const snapshot = luvio.storeLookup({
|
|
5752
5752
|
recordId: key,
|
|
5753
|
-
node: select$
|
|
5753
|
+
node: select$a(),
|
|
5754
5754
|
variables: {},
|
|
5755
5755
|
}, snapshotRefresh);
|
|
5756
5756
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5762,18 +5762,18 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5762
5762
|
return snapshot;
|
|
5763
5763
|
}
|
|
5764
5764
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
5765
|
-
const key = keyBuilder$
|
|
5765
|
+
const key = keyBuilder$6(luvio, params);
|
|
5766
5766
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5767
5767
|
const storeMetadataParams = {
|
|
5768
|
-
ttl: TTL$
|
|
5768
|
+
ttl: TTL$3,
|
|
5769
5769
|
namespace: keyPrefix,
|
|
5770
|
-
version: VERSION$
|
|
5771
|
-
representationName: RepresentationType$
|
|
5770
|
+
version: VERSION$5,
|
|
5771
|
+
representationName: RepresentationType$3
|
|
5772
5772
|
};
|
|
5773
5773
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5774
5774
|
return errorSnapshot;
|
|
5775
5775
|
}
|
|
5776
|
-
function createResourceRequest$
|
|
5776
|
+
function createResourceRequest$5(config) {
|
|
5777
5777
|
const headers = {};
|
|
5778
5778
|
return {
|
|
5779
5779
|
baseUri: '/services/data/v66.0',
|
|
@@ -5787,62 +5787,62 @@ function createResourceRequest$4(config) {
|
|
|
5787
5787
|
};
|
|
5788
5788
|
}
|
|
5789
5789
|
|
|
5790
|
-
const adapterName$
|
|
5790
|
+
const adapterName$5 = 'getPromptTemplateVersions';
|
|
5791
5791
|
const getPromptTemplateVersions_ConfigPropertyMetadata = [
|
|
5792
5792
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5793
5793
|
generateParamConfigMetadata('includingContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5794
5794
|
generateParamConfigMetadata('includingVersionDetail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5795
5795
|
];
|
|
5796
|
-
const getPromptTemplateVersions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5797
|
-
const createResourceParams$
|
|
5798
|
-
function keyBuilder$
|
|
5799
|
-
const resourceParams = createResourceParams$
|
|
5800
|
-
return keyBuilder$
|
|
5796
|
+
const getPromptTemplateVersions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPromptTemplateVersions_ConfigPropertyMetadata);
|
|
5797
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(getPromptTemplateVersions_ConfigPropertyMetadata);
|
|
5798
|
+
function keyBuilder$5(luvio, config) {
|
|
5799
|
+
const resourceParams = createResourceParams$5(config);
|
|
5800
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
5801
5801
|
}
|
|
5802
|
-
function typeCheckConfig$
|
|
5802
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
5803
5803
|
const config = {};
|
|
5804
|
-
typeCheckConfig$
|
|
5804
|
+
typeCheckConfig$j(untrustedConfig, config, getPromptTemplateVersions_ConfigPropertyMetadata);
|
|
5805
5805
|
return config;
|
|
5806
5806
|
}
|
|
5807
|
-
function validateAdapterConfig$
|
|
5807
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
5808
5808
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5809
5809
|
return null;
|
|
5810
5810
|
}
|
|
5811
5811
|
if (process.env.NODE_ENV !== 'production') {
|
|
5812
5812
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5813
5813
|
}
|
|
5814
|
-
const config = typeCheckConfig$
|
|
5814
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
5815
5815
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5816
5816
|
return null;
|
|
5817
5817
|
}
|
|
5818
5818
|
return config;
|
|
5819
5819
|
}
|
|
5820
5820
|
function adapterFragment$2(luvio, config) {
|
|
5821
|
-
createResourceParams$
|
|
5822
|
-
return select$
|
|
5821
|
+
createResourceParams$5(config);
|
|
5822
|
+
return select$a();
|
|
5823
5823
|
}
|
|
5824
5824
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
5825
|
-
const snapshot = ingestSuccess$
|
|
5825
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
5826
5826
|
config,
|
|
5827
|
-
resolve: () => buildNetworkSnapshot$
|
|
5827
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
5828
5828
|
});
|
|
5829
5829
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5830
5830
|
}
|
|
5831
5831
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
5832
5832
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
5833
5833
|
config,
|
|
5834
|
-
resolve: () => buildNetworkSnapshot$
|
|
5834
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
5835
5835
|
});
|
|
5836
5836
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5837
5837
|
}
|
|
5838
|
-
function buildNetworkSnapshot$
|
|
5839
|
-
const resourceParams = createResourceParams$
|
|
5840
|
-
const request = createResourceRequest$
|
|
5838
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
5839
|
+
const resourceParams = createResourceParams$5(config);
|
|
5840
|
+
const request = createResourceRequest$5(resourceParams);
|
|
5841
5841
|
return luvio.dispatchResourceRequest(request, options)
|
|
5842
5842
|
.then((response) => {
|
|
5843
5843
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
5844
5844
|
const cache = new StoreKeyMap();
|
|
5845
|
-
getResponseCacheKeys$
|
|
5845
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
5846
5846
|
return cache;
|
|
5847
5847
|
});
|
|
5848
5848
|
}, (response) => {
|
|
@@ -5850,23 +5850,23 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
5850
5850
|
});
|
|
5851
5851
|
}
|
|
5852
5852
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
5853
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5853
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
5854
5854
|
}
|
|
5855
5855
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
5856
5856
|
const { luvio, config } = context;
|
|
5857
5857
|
const selector = {
|
|
5858
|
-
recordId: keyBuilder$
|
|
5858
|
+
recordId: keyBuilder$5(luvio, config),
|
|
5859
5859
|
node: adapterFragment$2(luvio, config),
|
|
5860
5860
|
variables: {},
|
|
5861
5861
|
};
|
|
5862
5862
|
const cacheSnapshot = storeLookup(selector, {
|
|
5863
5863
|
config,
|
|
5864
|
-
resolve: () => buildNetworkSnapshot$
|
|
5864
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
5865
5865
|
});
|
|
5866
5866
|
return cacheSnapshot;
|
|
5867
5867
|
}
|
|
5868
5868
|
const getPromptTemplateVersionsAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplateVersions(untrustedConfig, requestContext) {
|
|
5869
|
-
const config = validateAdapterConfig$
|
|
5869
|
+
const config = validateAdapterConfig$5(untrustedConfig, getPromptTemplateVersions_ConfigPropertyNames);
|
|
5870
5870
|
// Invalid or incomplete config
|
|
5871
5871
|
if (config === null) {
|
|
5872
5872
|
return null;
|
|
@@ -5875,9 +5875,9 @@ const getPromptTemplateVersionsAdapterFactory = (luvio) => function EinsteinLLM_
|
|
|
5875
5875
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
5876
5876
|
};
|
|
5877
5877
|
|
|
5878
|
-
const TTL$
|
|
5879
|
-
const VERSION$
|
|
5880
|
-
function validate$
|
|
5878
|
+
const TTL$2 = 100;
|
|
5879
|
+
const VERSION$4 = "5fd7b8a03d155ba601bcb4ee725e0893";
|
|
5880
|
+
function validate$4(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
|
|
5881
5881
|
const v_error = (() => {
|
|
5882
5882
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5883
5883
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5896,7 +5896,7 @@ function validate$3(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
|
|
|
5896
5896
|
for (let i = 0; i < obj_promptRecords.length; i++) {
|
|
5897
5897
|
const obj_promptRecords_item = obj_promptRecords[i];
|
|
5898
5898
|
const path_promptRecords_item = path_promptRecords + '[' + i + ']';
|
|
5899
|
-
const referencepath_promptRecords_itemValidationError = validate$
|
|
5899
|
+
const referencepath_promptRecords_itemValidationError = validate$5(obj_promptRecords_item, path_promptRecords_item);
|
|
5900
5900
|
if (referencepath_promptRecords_itemValidationError !== null) {
|
|
5901
5901
|
let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_promptRecords_item + '")\n';
|
|
5902
5902
|
message += referencepath_promptRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5912,62 +5912,62 @@ function validate$3(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
|
|
|
5912
5912
|
})();
|
|
5913
5913
|
return v_error === undefined ? null : v_error;
|
|
5914
5914
|
}
|
|
5915
|
-
const RepresentationType$
|
|
5916
|
-
function normalize$
|
|
5915
|
+
const RepresentationType$2 = 'EinsteinPromptRecordCollectionOutputRepresentation';
|
|
5916
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
5917
5917
|
return input;
|
|
5918
5918
|
}
|
|
5919
|
-
const select$
|
|
5919
|
+
const select$9 = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
|
|
5920
5920
|
return {
|
|
5921
5921
|
kind: 'Fragment',
|
|
5922
|
-
version: VERSION$
|
|
5922
|
+
version: VERSION$4,
|
|
5923
5923
|
private: [],
|
|
5924
5924
|
opaque: true
|
|
5925
5925
|
};
|
|
5926
5926
|
};
|
|
5927
|
-
function equals$
|
|
5927
|
+
function equals$4(existing, incoming) {
|
|
5928
5928
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5929
5929
|
return false;
|
|
5930
5930
|
}
|
|
5931
5931
|
return true;
|
|
5932
5932
|
}
|
|
5933
|
-
const ingest$
|
|
5933
|
+
const ingest$2 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5934
5934
|
if (process.env.NODE_ENV !== 'production') {
|
|
5935
|
-
const validateError = validate$
|
|
5935
|
+
const validateError = validate$4(input);
|
|
5936
5936
|
if (validateError !== null) {
|
|
5937
5937
|
throw validateError;
|
|
5938
5938
|
}
|
|
5939
5939
|
}
|
|
5940
5940
|
const key = path.fullPath;
|
|
5941
|
-
const ttlToUse = TTL$
|
|
5942
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5941
|
+
const ttlToUse = TTL$2;
|
|
5942
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$4, RepresentationType$2, equals$4);
|
|
5943
5943
|
return createLink(key);
|
|
5944
5944
|
};
|
|
5945
|
-
function getTypeCacheKeys$
|
|
5945
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
5946
5946
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5947
5947
|
const rootKey = fullPathFactory();
|
|
5948
5948
|
rootKeySet.set(rootKey, {
|
|
5949
5949
|
namespace: keyPrefix,
|
|
5950
|
-
representationName: RepresentationType$
|
|
5950
|
+
representationName: RepresentationType$2,
|
|
5951
5951
|
mergeable: false
|
|
5952
5952
|
});
|
|
5953
5953
|
}
|
|
5954
5954
|
|
|
5955
|
-
function select$
|
|
5956
|
-
return select$
|
|
5955
|
+
function select$8(luvio, params) {
|
|
5956
|
+
return select$9();
|
|
5957
5957
|
}
|
|
5958
|
-
function keyBuilder$
|
|
5958
|
+
function keyBuilder$4(luvio, params) {
|
|
5959
5959
|
return keyPrefix + '::EinsteinPromptRecordCollectionOutputRepresentation:(' + 'isActive:' + params.queryParams.isActive + ',' + 'fields:' + params.queryParams.fields + ',' + 'relatedEntity:' + params.queryParams.relatedEntity + ',' + 'offset:' + params.queryParams.offset + ',' + 'pageLimit:' + params.queryParams.pageLimit + ',' + 'type:' + params.queryParams.type + ',' + 'query:' + params.queryParams.query + ',' + 'sortBy:' + params.queryParams.sortBy + ')';
|
|
5960
5960
|
}
|
|
5961
|
-
function getResponseCacheKeys$
|
|
5962
|
-
getTypeCacheKeys$
|
|
5961
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
5962
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
|
|
5963
5963
|
}
|
|
5964
|
-
function ingestSuccess$
|
|
5964
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
5965
5965
|
const { body } = response;
|
|
5966
|
-
const key = keyBuilder$
|
|
5967
|
-
luvio.storeIngest(key, ingest$
|
|
5966
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
5967
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
5968
5968
|
const snapshot = luvio.storeLookup({
|
|
5969
5969
|
recordId: key,
|
|
5970
|
-
node: select$
|
|
5970
|
+
node: select$8(),
|
|
5971
5971
|
variables: {},
|
|
5972
5972
|
}, snapshotRefresh);
|
|
5973
5973
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5979,18 +5979,18 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5979
5979
|
return snapshot;
|
|
5980
5980
|
}
|
|
5981
5981
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
5982
|
-
const key = keyBuilder$
|
|
5982
|
+
const key = keyBuilder$4(luvio, params);
|
|
5983
5983
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5984
5984
|
const storeMetadataParams = {
|
|
5985
|
-
ttl: TTL$
|
|
5985
|
+
ttl: TTL$2,
|
|
5986
5986
|
namespace: keyPrefix,
|
|
5987
|
-
version: VERSION$
|
|
5988
|
-
representationName: RepresentationType$
|
|
5987
|
+
version: VERSION$4,
|
|
5988
|
+
representationName: RepresentationType$2
|
|
5989
5989
|
};
|
|
5990
5990
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5991
5991
|
return errorSnapshot;
|
|
5992
5992
|
}
|
|
5993
|
-
function createResourceRequest$
|
|
5993
|
+
function createResourceRequest$4(config) {
|
|
5994
5994
|
const headers = {};
|
|
5995
5995
|
return {
|
|
5996
5996
|
baseUri: '/services/data/v66.0',
|
|
@@ -6004,7 +6004,7 @@ function createResourceRequest$3(config) {
|
|
|
6004
6004
|
};
|
|
6005
6005
|
}
|
|
6006
6006
|
|
|
6007
|
-
const adapterName$
|
|
6007
|
+
const adapterName$4 = 'getPromptTemplates';
|
|
6008
6008
|
const getPromptTemplates_ConfigPropertyMetadata = [
|
|
6009
6009
|
generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6010
6010
|
generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
@@ -6015,56 +6015,56 @@ const getPromptTemplates_ConfigPropertyMetadata = [
|
|
|
6015
6015
|
generateParamConfigMetadata('query', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6016
6016
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6017
6017
|
];
|
|
6018
|
-
const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6019
|
-
const createResourceParams$
|
|
6020
|
-
function keyBuilder$
|
|
6021
|
-
const resourceParams = createResourceParams$
|
|
6022
|
-
return keyBuilder$
|
|
6018
|
+
const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getPromptTemplates_ConfigPropertyMetadata);
|
|
6019
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(getPromptTemplates_ConfigPropertyMetadata);
|
|
6020
|
+
function keyBuilder$3(luvio, config) {
|
|
6021
|
+
const resourceParams = createResourceParams$4(config);
|
|
6022
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
6023
6023
|
}
|
|
6024
|
-
function typeCheckConfig$
|
|
6024
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
6025
6025
|
const config = {};
|
|
6026
|
-
typeCheckConfig$
|
|
6026
|
+
typeCheckConfig$j(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
|
|
6027
6027
|
return config;
|
|
6028
6028
|
}
|
|
6029
|
-
function validateAdapterConfig$
|
|
6029
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
6030
6030
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6031
6031
|
return null;
|
|
6032
6032
|
}
|
|
6033
6033
|
if (process.env.NODE_ENV !== 'production') {
|
|
6034
6034
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6035
6035
|
}
|
|
6036
|
-
const config = typeCheckConfig$
|
|
6036
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
6037
6037
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6038
6038
|
return null;
|
|
6039
6039
|
}
|
|
6040
6040
|
return config;
|
|
6041
6041
|
}
|
|
6042
6042
|
function adapterFragment$1(luvio, config) {
|
|
6043
|
-
createResourceParams$
|
|
6044
|
-
return select$
|
|
6043
|
+
createResourceParams$4(config);
|
|
6044
|
+
return select$8();
|
|
6045
6045
|
}
|
|
6046
6046
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
6047
|
-
const snapshot = ingestSuccess$
|
|
6047
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
6048
6048
|
config,
|
|
6049
|
-
resolve: () => buildNetworkSnapshot$
|
|
6049
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
6050
6050
|
});
|
|
6051
6051
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6052
6052
|
}
|
|
6053
6053
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
6054
6054
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
6055
6055
|
config,
|
|
6056
|
-
resolve: () => buildNetworkSnapshot$
|
|
6056
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
6057
6057
|
});
|
|
6058
6058
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6059
6059
|
}
|
|
6060
|
-
function buildNetworkSnapshot$
|
|
6061
|
-
const resourceParams = createResourceParams$
|
|
6062
|
-
const request = createResourceRequest$
|
|
6060
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
6061
|
+
const resourceParams = createResourceParams$4(config);
|
|
6062
|
+
const request = createResourceRequest$4(resourceParams);
|
|
6063
6063
|
return luvio.dispatchResourceRequest(request, options)
|
|
6064
6064
|
.then((response) => {
|
|
6065
6065
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
6066
6066
|
const cache = new StoreKeyMap();
|
|
6067
|
-
getResponseCacheKeys$
|
|
6067
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
6068
6068
|
return cache;
|
|
6069
6069
|
});
|
|
6070
6070
|
}, (response) => {
|
|
@@ -6072,23 +6072,23 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
6072
6072
|
});
|
|
6073
6073
|
}
|
|
6074
6074
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6075
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
6075
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
6076
6076
|
}
|
|
6077
6077
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6078
6078
|
const { luvio, config } = context;
|
|
6079
6079
|
const selector = {
|
|
6080
|
-
recordId: keyBuilder$
|
|
6080
|
+
recordId: keyBuilder$3(luvio, config),
|
|
6081
6081
|
node: adapterFragment$1(luvio, config),
|
|
6082
6082
|
variables: {},
|
|
6083
6083
|
};
|
|
6084
6084
|
const cacheSnapshot = storeLookup(selector, {
|
|
6085
6085
|
config,
|
|
6086
|
-
resolve: () => buildNetworkSnapshot$
|
|
6086
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
6087
6087
|
});
|
|
6088
6088
|
return cacheSnapshot;
|
|
6089
6089
|
}
|
|
6090
6090
|
const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplates(untrustedConfig, requestContext) {
|
|
6091
|
-
const config = validateAdapterConfig$
|
|
6091
|
+
const config = validateAdapterConfig$4(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
|
|
6092
6092
|
// Invalid or incomplete config
|
|
6093
6093
|
if (config === null) {
|
|
6094
6094
|
return null;
|
|
@@ -6097,8 +6097,8 @@ const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPro
|
|
|
6097
6097
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
6098
6098
|
};
|
|
6099
6099
|
|
|
6100
|
-
const VERSION$
|
|
6101
|
-
function validate$
|
|
6100
|
+
const VERSION$3 = "f08355bdc491f090c787309a8a476caa";
|
|
6101
|
+
function validate$3(obj, path = 'EinsteinPromptTypeSchemaInputFieldRepresentation') {
|
|
6102
6102
|
const v_error = (() => {
|
|
6103
6103
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6104
6104
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6132,10 +6132,10 @@ function validate$2(obj, path = 'EinsteinPromptTypeSchemaInputFieldRepresentatio
|
|
|
6132
6132
|
})();
|
|
6133
6133
|
return v_error === undefined ? null : v_error;
|
|
6134
6134
|
}
|
|
6135
|
-
const select$
|
|
6135
|
+
const select$7 = function EinsteinPromptTypeSchemaInputFieldRepresentationSelect() {
|
|
6136
6136
|
return {
|
|
6137
6137
|
kind: 'Fragment',
|
|
6138
|
-
version: VERSION$
|
|
6138
|
+
version: VERSION$3,
|
|
6139
6139
|
private: [],
|
|
6140
6140
|
selections: [
|
|
6141
6141
|
{
|
|
@@ -6160,7 +6160,7 @@ const select$5 = function EinsteinPromptTypeSchemaInputFieldRepresentationSelect
|
|
|
6160
6160
|
]
|
|
6161
6161
|
};
|
|
6162
6162
|
};
|
|
6163
|
-
function equals$
|
|
6163
|
+
function equals$3(existing, incoming) {
|
|
6164
6164
|
const existing_apiName = existing.apiName;
|
|
6165
6165
|
const incoming_apiName = incoming.apiName;
|
|
6166
6166
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -6208,8 +6208,8 @@ function equals$2(existing, incoming) {
|
|
|
6208
6208
|
return true;
|
|
6209
6209
|
}
|
|
6210
6210
|
|
|
6211
|
-
const VERSION$
|
|
6212
|
-
function validate$
|
|
6211
|
+
const VERSION$2 = "a0cab6d022a5571ceb94328166f1db95";
|
|
6212
|
+
function validate$2(obj, path = 'EinsteinPromptTypeSchemaRepresentation') {
|
|
6213
6213
|
const v_error = (() => {
|
|
6214
6214
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6215
6215
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6227,7 +6227,7 @@ function validate$1(obj, path = 'EinsteinPromptTypeSchemaRepresentation') {
|
|
|
6227
6227
|
for (let i = 0; i < obj_inputs.length; i++) {
|
|
6228
6228
|
const obj_inputs_item = obj_inputs[i];
|
|
6229
6229
|
const path_inputs_item = path_inputs + '[' + i + ']';
|
|
6230
|
-
const referencepath_inputs_itemValidationError = validate$
|
|
6230
|
+
const referencepath_inputs_itemValidationError = validate$3(obj_inputs_item, path_inputs_item);
|
|
6231
6231
|
if (referencepath_inputs_itemValidationError !== null) {
|
|
6232
6232
|
let message = 'Object doesn\'t match EinsteinPromptTypeSchemaInputFieldRepresentation (at "' + path_inputs_item + '")\n';
|
|
6233
6233
|
message += referencepath_inputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6244,11 +6244,11 @@ function validate$1(obj, path = 'EinsteinPromptTypeSchemaRepresentation') {
|
|
|
6244
6244
|
})();
|
|
6245
6245
|
return v_error === undefined ? null : v_error;
|
|
6246
6246
|
}
|
|
6247
|
-
const select$
|
|
6248
|
-
const { selections: EinsteinPromptTypeSchemaInputFieldRepresentation__selections, opaque: EinsteinPromptTypeSchemaInputFieldRepresentation__opaque, } = select$
|
|
6247
|
+
const select$6 = function EinsteinPromptTypeSchemaRepresentationSelect() {
|
|
6248
|
+
const { selections: EinsteinPromptTypeSchemaInputFieldRepresentation__selections, opaque: EinsteinPromptTypeSchemaInputFieldRepresentation__opaque, } = select$7();
|
|
6249
6249
|
return {
|
|
6250
6250
|
kind: 'Fragment',
|
|
6251
|
-
version: VERSION$
|
|
6251
|
+
version: VERSION$2,
|
|
6252
6252
|
private: [],
|
|
6253
6253
|
selections: [
|
|
6254
6254
|
{
|
|
@@ -6269,7 +6269,7 @@ const select$4 = function EinsteinPromptTypeSchemaRepresentationSelect() {
|
|
|
6269
6269
|
]
|
|
6270
6270
|
};
|
|
6271
6271
|
};
|
|
6272
|
-
function equals$
|
|
6272
|
+
function equals$2(existing, incoming) {
|
|
6273
6273
|
const existing_allowInputExtension = existing.allowInputExtension;
|
|
6274
6274
|
const incoming_allowInputExtension = incoming.allowInputExtension;
|
|
6275
6275
|
if (!(existing_allowInputExtension === incoming_allowInputExtension)) {
|
|
@@ -6291,7 +6291,7 @@ function equals$1(existing, incoming) {
|
|
|
6291
6291
|
const existing_inputs = existing.inputs;
|
|
6292
6292
|
const incoming_inputs = incoming.inputs;
|
|
6293
6293
|
const equals_inputs_items = equalsArray(existing_inputs, incoming_inputs, (existing_inputs_item, incoming_inputs_item) => {
|
|
6294
|
-
if (!(equals$
|
|
6294
|
+
if (!(equals$3(existing_inputs_item, incoming_inputs_item))) {
|
|
6295
6295
|
return false;
|
|
6296
6296
|
}
|
|
6297
6297
|
});
|
|
@@ -6301,9 +6301,9 @@ function equals$1(existing, incoming) {
|
|
|
6301
6301
|
return true;
|
|
6302
6302
|
}
|
|
6303
6303
|
|
|
6304
|
-
const TTL = 300;
|
|
6305
|
-
const VERSION = "bb627c12e7041da02926d6b2affc98a1";
|
|
6306
|
-
function validate(obj, path = 'EinsteinPromptTypeRecordRepresentation') {
|
|
6304
|
+
const TTL$1 = 300;
|
|
6305
|
+
const VERSION$1 = "bb627c12e7041da02926d6b2affc98a1";
|
|
6306
|
+
function validate$1(obj, path = 'EinsteinPromptTypeRecordRepresentation') {
|
|
6307
6307
|
const v_error = (() => {
|
|
6308
6308
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6309
6309
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6322,7 +6322,7 @@ function validate(obj, path = 'EinsteinPromptTypeRecordRepresentation') {
|
|
|
6322
6322
|
}
|
|
6323
6323
|
const obj_schema = obj.schema;
|
|
6324
6324
|
const path_schema = path + '.schema';
|
|
6325
|
-
const referencepath_schemaValidationError = validate$
|
|
6325
|
+
const referencepath_schemaValidationError = validate$2(obj_schema, path_schema);
|
|
6326
6326
|
if (referencepath_schemaValidationError !== null) {
|
|
6327
6327
|
let message = 'Object doesn\'t match EinsteinPromptTypeSchemaRepresentation (at "' + path_schema + '")\n';
|
|
6328
6328
|
message += referencepath_schemaValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6336,15 +6336,15 @@ function validate(obj, path = 'EinsteinPromptTypeRecordRepresentation') {
|
|
|
6336
6336
|
})();
|
|
6337
6337
|
return v_error === undefined ? null : v_error;
|
|
6338
6338
|
}
|
|
6339
|
-
const RepresentationType = 'EinsteinPromptTypeRecordRepresentation';
|
|
6340
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
6339
|
+
const RepresentationType$1 = 'EinsteinPromptTypeRecordRepresentation';
|
|
6340
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6341
6341
|
return input;
|
|
6342
6342
|
}
|
|
6343
|
-
const select$
|
|
6344
|
-
const { selections: EinsteinPromptTypeSchemaRepresentation__selections, opaque: EinsteinPromptTypeSchemaRepresentation__opaque, } = select$
|
|
6343
|
+
const select$5 = function EinsteinPromptTypeRecordRepresentationSelect() {
|
|
6344
|
+
const { selections: EinsteinPromptTypeSchemaRepresentation__selections, opaque: EinsteinPromptTypeSchemaRepresentation__opaque, } = select$6();
|
|
6345
6345
|
return {
|
|
6346
6346
|
kind: 'Fragment',
|
|
6347
|
-
version: VERSION,
|
|
6347
|
+
version: VERSION$1,
|
|
6348
6348
|
private: [],
|
|
6349
6349
|
selections: [
|
|
6350
6350
|
{
|
|
@@ -6364,7 +6364,7 @@ const select$3 = function EinsteinPromptTypeRecordRepresentationSelect() {
|
|
|
6364
6364
|
]
|
|
6365
6365
|
};
|
|
6366
6366
|
};
|
|
6367
|
-
function equals(existing, incoming) {
|
|
6367
|
+
function equals$1(existing, incoming) {
|
|
6368
6368
|
const existing_templateTypeName = existing.templateTypeName;
|
|
6369
6369
|
const incoming_templateTypeName = incoming.templateTypeName;
|
|
6370
6370
|
if (!(existing_templateTypeName === incoming_templateTypeName)) {
|
|
@@ -6382,49 +6382,49 @@ function equals(existing, incoming) {
|
|
|
6382
6382
|
}
|
|
6383
6383
|
const existing_schema = existing.schema;
|
|
6384
6384
|
const incoming_schema = incoming.schema;
|
|
6385
|
-
if (!(equals$
|
|
6385
|
+
if (!(equals$2(existing_schema, incoming_schema))) {
|
|
6386
6386
|
return false;
|
|
6387
6387
|
}
|
|
6388
6388
|
return true;
|
|
6389
6389
|
}
|
|
6390
|
-
const ingest = function EinsteinPromptTypeRecordRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6390
|
+
const ingest$1 = function EinsteinPromptTypeRecordRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6391
6391
|
if (process.env.NODE_ENV !== 'production') {
|
|
6392
|
-
const validateError = validate(input);
|
|
6392
|
+
const validateError = validate$1(input);
|
|
6393
6393
|
if (validateError !== null) {
|
|
6394
6394
|
throw validateError;
|
|
6395
6395
|
}
|
|
6396
6396
|
}
|
|
6397
6397
|
const key = path.fullPath;
|
|
6398
|
-
const ttlToUse = TTL;
|
|
6399
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "EinsteinLLM", VERSION, RepresentationType, equals);
|
|
6398
|
+
const ttlToUse = TTL$1;
|
|
6399
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$1, RepresentationType$1, equals$1);
|
|
6400
6400
|
return createLink(key);
|
|
6401
6401
|
};
|
|
6402
|
-
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
6402
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
6403
6403
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6404
6404
|
const rootKey = fullPathFactory();
|
|
6405
6405
|
rootKeySet.set(rootKey, {
|
|
6406
6406
|
namespace: keyPrefix,
|
|
6407
|
-
representationName: RepresentationType,
|
|
6407
|
+
representationName: RepresentationType$1,
|
|
6408
6408
|
mergeable: false
|
|
6409
6409
|
});
|
|
6410
6410
|
}
|
|
6411
6411
|
|
|
6412
|
-
function select$
|
|
6413
|
-
return select$
|
|
6412
|
+
function select$4(luvio, params) {
|
|
6413
|
+
return select$5();
|
|
6414
6414
|
}
|
|
6415
|
-
function keyBuilder$
|
|
6415
|
+
function keyBuilder$2(luvio, params) {
|
|
6416
6416
|
return keyPrefix + '::EinsteinPromptTypeRecordRepresentation:(' + 'templateTypeName:' + params.urlParams.templateTypeName + ')';
|
|
6417
6417
|
}
|
|
6418
|
-
function getResponseCacheKeys$
|
|
6419
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$
|
|
6418
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
6419
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
6420
6420
|
}
|
|
6421
|
-
function ingestSuccess$
|
|
6421
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
6422
6422
|
const { body } = response;
|
|
6423
|
-
const key = keyBuilder$
|
|
6424
|
-
luvio.storeIngest(key, ingest, body);
|
|
6423
|
+
const key = keyBuilder$2(luvio, resourceParams);
|
|
6424
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
6425
6425
|
const snapshot = luvio.storeLookup({
|
|
6426
6426
|
recordId: key,
|
|
6427
|
-
node: select$
|
|
6427
|
+
node: select$4(),
|
|
6428
6428
|
variables: {},
|
|
6429
6429
|
}, snapshotRefresh);
|
|
6430
6430
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6436,18 +6436,18 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6436
6436
|
return snapshot;
|
|
6437
6437
|
}
|
|
6438
6438
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
6439
|
-
const key = keyBuilder$
|
|
6439
|
+
const key = keyBuilder$2(luvio, params);
|
|
6440
6440
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6441
6441
|
const storeMetadataParams = {
|
|
6442
|
-
ttl: TTL,
|
|
6442
|
+
ttl: TTL$1,
|
|
6443
6443
|
namespace: keyPrefix,
|
|
6444
|
-
version: VERSION,
|
|
6445
|
-
representationName: RepresentationType
|
|
6444
|
+
version: VERSION$1,
|
|
6445
|
+
representationName: RepresentationType$1
|
|
6446
6446
|
};
|
|
6447
6447
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6448
6448
|
return errorSnapshot;
|
|
6449
6449
|
}
|
|
6450
|
-
function createResourceRequest$
|
|
6450
|
+
function createResourceRequest$3(config) {
|
|
6451
6451
|
const headers = {};
|
|
6452
6452
|
return {
|
|
6453
6453
|
baseUri: '/services/data/v66.0',
|
|
@@ -6461,60 +6461,60 @@ function createResourceRequest$2(config) {
|
|
|
6461
6461
|
};
|
|
6462
6462
|
}
|
|
6463
6463
|
|
|
6464
|
-
const adapterName$
|
|
6464
|
+
const adapterName$3 = 'getTemplateType';
|
|
6465
6465
|
const getTemplateType_ConfigPropertyMetadata = [
|
|
6466
6466
|
generateParamConfigMetadata('templateTypeName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6467
6467
|
];
|
|
6468
|
-
const getTemplateType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6469
|
-
const createResourceParams$
|
|
6470
|
-
function keyBuilder(luvio, config) {
|
|
6471
|
-
const resourceParams = createResourceParams$
|
|
6472
|
-
return keyBuilder$
|
|
6468
|
+
const getTemplateType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getTemplateType_ConfigPropertyMetadata);
|
|
6469
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(getTemplateType_ConfigPropertyMetadata);
|
|
6470
|
+
function keyBuilder$1(luvio, config) {
|
|
6471
|
+
const resourceParams = createResourceParams$3(config);
|
|
6472
|
+
return keyBuilder$2(luvio, resourceParams);
|
|
6473
6473
|
}
|
|
6474
|
-
function typeCheckConfig$
|
|
6474
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
6475
6475
|
const config = {};
|
|
6476
|
-
typeCheckConfig$
|
|
6476
|
+
typeCheckConfig$j(untrustedConfig, config, getTemplateType_ConfigPropertyMetadata);
|
|
6477
6477
|
return config;
|
|
6478
6478
|
}
|
|
6479
|
-
function validateAdapterConfig$
|
|
6479
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
6480
6480
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6481
6481
|
return null;
|
|
6482
6482
|
}
|
|
6483
6483
|
if (process.env.NODE_ENV !== 'production') {
|
|
6484
6484
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6485
6485
|
}
|
|
6486
|
-
const config = typeCheckConfig$
|
|
6486
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
6487
6487
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6488
6488
|
return null;
|
|
6489
6489
|
}
|
|
6490
6490
|
return config;
|
|
6491
6491
|
}
|
|
6492
6492
|
function adapterFragment(luvio, config) {
|
|
6493
|
-
createResourceParams$
|
|
6494
|
-
return select$
|
|
6493
|
+
createResourceParams$3(config);
|
|
6494
|
+
return select$4();
|
|
6495
6495
|
}
|
|
6496
6496
|
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
6497
|
-
const snapshot = ingestSuccess$
|
|
6497
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
6498
6498
|
config,
|
|
6499
|
-
resolve: () => buildNetworkSnapshot$
|
|
6499
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
6500
6500
|
});
|
|
6501
6501
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6502
6502
|
}
|
|
6503
6503
|
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
6504
6504
|
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
6505
6505
|
config,
|
|
6506
|
-
resolve: () => buildNetworkSnapshot$
|
|
6506
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
6507
6507
|
});
|
|
6508
6508
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6509
6509
|
}
|
|
6510
|
-
function buildNetworkSnapshot$
|
|
6511
|
-
const resourceParams = createResourceParams$
|
|
6512
|
-
const request = createResourceRequest$
|
|
6510
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
6511
|
+
const resourceParams = createResourceParams$3(config);
|
|
6512
|
+
const request = createResourceRequest$3(resourceParams);
|
|
6513
6513
|
return luvio.dispatchResourceRequest(request, options)
|
|
6514
6514
|
.then((response) => {
|
|
6515
6515
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
6516
6516
|
const cache = new StoreKeyMap();
|
|
6517
|
-
getResponseCacheKeys$
|
|
6517
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
6518
6518
|
return cache;
|
|
6519
6519
|
});
|
|
6520
6520
|
}, (response) => {
|
|
@@ -6522,23 +6522,23 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
6522
6522
|
});
|
|
6523
6523
|
}
|
|
6524
6524
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
6525
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
6525
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
6526
6526
|
}
|
|
6527
6527
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6528
6528
|
const { luvio, config } = context;
|
|
6529
6529
|
const selector = {
|
|
6530
|
-
recordId: keyBuilder(luvio, config),
|
|
6530
|
+
recordId: keyBuilder$1(luvio, config),
|
|
6531
6531
|
node: adapterFragment(luvio, config),
|
|
6532
6532
|
variables: {},
|
|
6533
6533
|
};
|
|
6534
6534
|
const cacheSnapshot = storeLookup(selector, {
|
|
6535
6535
|
config,
|
|
6536
|
-
resolve: () => buildNetworkSnapshot$
|
|
6536
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
6537
6537
|
});
|
|
6538
6538
|
return cacheSnapshot;
|
|
6539
6539
|
}
|
|
6540
6540
|
const getTemplateTypeAdapterFactory = (luvio) => function EinsteinLLM__getTemplateType(untrustedConfig, requestContext) {
|
|
6541
|
-
const config = validateAdapterConfig$
|
|
6541
|
+
const config = validateAdapterConfig$3(untrustedConfig, getTemplateType_ConfigPropertyNames);
|
|
6542
6542
|
// Invalid or incomplete config
|
|
6543
6543
|
if (config === null) {
|
|
6544
6544
|
return null;
|
|
@@ -6547,16 +6547,340 @@ const getTemplateTypeAdapterFactory = (luvio) => function EinsteinLLM__getTempla
|
|
|
6547
6547
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
6548
6548
|
};
|
|
6549
6549
|
|
|
6550
|
+
const TTL = 100;
|
|
6551
|
+
const VERSION = "ecde90304d12947c5205ddc7c99d747b";
|
|
6552
|
+
function validate(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
|
|
6553
|
+
const v_error = (() => {
|
|
6554
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6555
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6556
|
+
}
|
|
6557
|
+
if (obj.additionalData !== undefined) {
|
|
6558
|
+
const obj_additionalData = obj.additionalData;
|
|
6559
|
+
const path_additionalData = path + '.additionalData';
|
|
6560
|
+
const referencepath_additionalDataValidationError = validate$t(obj_additionalData, path_additionalData);
|
|
6561
|
+
if (referencepath_additionalDataValidationError !== null) {
|
|
6562
|
+
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
6563
|
+
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6564
|
+
return new TypeError(message);
|
|
6565
|
+
}
|
|
6566
|
+
}
|
|
6567
|
+
const obj_errorMessages = obj.errorMessages;
|
|
6568
|
+
const path_errorMessages = path + '.errorMessages';
|
|
6569
|
+
if (!ArrayIsArray(obj_errorMessages)) {
|
|
6570
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errorMessages + '" (at "' + path_errorMessages + '")');
|
|
6571
|
+
}
|
|
6572
|
+
for (let i = 0; i < obj_errorMessages.length; i++) {
|
|
6573
|
+
const obj_errorMessages_item = obj_errorMessages[i];
|
|
6574
|
+
const path_errorMessages_item = path_errorMessages + '[' + i + ']';
|
|
6575
|
+
if (typeof obj_errorMessages_item !== 'string') {
|
|
6576
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessages_item + '" (at "' + path_errorMessages_item + '")');
|
|
6577
|
+
}
|
|
6578
|
+
}
|
|
6579
|
+
const obj_hasWarning = obj.hasWarning;
|
|
6580
|
+
const path_hasWarning = path + '.hasWarning';
|
|
6581
|
+
if (typeof obj_hasWarning !== 'boolean') {
|
|
6582
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasWarning + '" (at "' + path_hasWarning + '")');
|
|
6583
|
+
}
|
|
6584
|
+
const obj_isSuccessful = obj.isSuccessful;
|
|
6585
|
+
const path_isSuccessful = path + '.isSuccessful';
|
|
6586
|
+
if (typeof obj_isSuccessful !== 'boolean') {
|
|
6587
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccessful + '" (at "' + path_isSuccessful + '")');
|
|
6588
|
+
}
|
|
6589
|
+
if (obj.statusCode !== undefined) {
|
|
6590
|
+
const obj_statusCode = obj.statusCode;
|
|
6591
|
+
const path_statusCode = path + '.statusCode';
|
|
6592
|
+
if (typeof obj_statusCode !== 'string') {
|
|
6593
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
|
|
6594
|
+
}
|
|
6595
|
+
}
|
|
6596
|
+
const obj_templateId = obj.templateId;
|
|
6597
|
+
const path_templateId = path + '.templateId';
|
|
6598
|
+
if (typeof obj_templateId !== 'string') {
|
|
6599
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateId + '" (at "' + path_templateId + '")');
|
|
6600
|
+
}
|
|
6601
|
+
if (obj.templateType !== undefined) {
|
|
6602
|
+
const obj_templateType = obj.templateType;
|
|
6603
|
+
const path_templateType = path + '.templateType';
|
|
6604
|
+
if (typeof obj_templateType !== 'string') {
|
|
6605
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
|
|
6606
|
+
}
|
|
6607
|
+
}
|
|
6608
|
+
const obj_warningMessages = obj.warningMessages;
|
|
6609
|
+
const path_warningMessages = path + '.warningMessages';
|
|
6610
|
+
if (!ArrayIsArray(obj_warningMessages)) {
|
|
6611
|
+
return new TypeError('Expected "array" but received "' + typeof obj_warningMessages + '" (at "' + path_warningMessages + '")');
|
|
6612
|
+
}
|
|
6613
|
+
for (let i = 0; i < obj_warningMessages.length; i++) {
|
|
6614
|
+
const obj_warningMessages_item = obj_warningMessages[i];
|
|
6615
|
+
const path_warningMessages_item = path_warningMessages + '[' + i + ']';
|
|
6616
|
+
if (typeof obj_warningMessages_item !== 'string') {
|
|
6617
|
+
return new TypeError('Expected "string" but received "' + typeof obj_warningMessages_item + '" (at "' + path_warningMessages_item + '")');
|
|
6618
|
+
}
|
|
6619
|
+
}
|
|
6620
|
+
})();
|
|
6621
|
+
return v_error === undefined ? null : v_error;
|
|
6622
|
+
}
|
|
6623
|
+
const RepresentationType = 'EinsteinPromptTemplateStatusRepresentation';
|
|
6624
|
+
function keyBuilder(luvio, config) {
|
|
6625
|
+
return keyPrefix + '::' + RepresentationType + ':' + config.templateId;
|
|
6626
|
+
}
|
|
6627
|
+
function keyBuilderFromType(luvio, object) {
|
|
6628
|
+
const keyParams = {
|
|
6629
|
+
templateId: object.templateId
|
|
6630
|
+
};
|
|
6631
|
+
return keyBuilder(luvio, keyParams);
|
|
6632
|
+
}
|
|
6633
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
6634
|
+
return input;
|
|
6635
|
+
}
|
|
6636
|
+
const select$3 = function EinsteinPromptTemplateStatusRepresentationSelect() {
|
|
6637
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$E();
|
|
6638
|
+
return {
|
|
6639
|
+
kind: 'Fragment',
|
|
6640
|
+
version: VERSION,
|
|
6641
|
+
private: [],
|
|
6642
|
+
selections: [
|
|
6643
|
+
{
|
|
6644
|
+
name: 'additionalData',
|
|
6645
|
+
kind: 'Object',
|
|
6646
|
+
selections: WrappedMap__selections,
|
|
6647
|
+
required: false
|
|
6648
|
+
},
|
|
6649
|
+
{
|
|
6650
|
+
name: 'errorMessages',
|
|
6651
|
+
kind: 'Scalar',
|
|
6652
|
+
plural: true
|
|
6653
|
+
},
|
|
6654
|
+
{
|
|
6655
|
+
name: 'hasWarning',
|
|
6656
|
+
kind: 'Scalar'
|
|
6657
|
+
},
|
|
6658
|
+
{
|
|
6659
|
+
name: 'isSuccessful',
|
|
6660
|
+
kind: 'Scalar'
|
|
6661
|
+
},
|
|
6662
|
+
{
|
|
6663
|
+
name: 'statusCode',
|
|
6664
|
+
kind: 'Scalar',
|
|
6665
|
+
required: false
|
|
6666
|
+
},
|
|
6667
|
+
{
|
|
6668
|
+
name: 'templateId',
|
|
6669
|
+
kind: 'Scalar'
|
|
6670
|
+
},
|
|
6671
|
+
{
|
|
6672
|
+
name: 'templateType',
|
|
6673
|
+
kind: 'Scalar',
|
|
6674
|
+
required: false
|
|
6675
|
+
},
|
|
6676
|
+
{
|
|
6677
|
+
name: 'warningMessages',
|
|
6678
|
+
kind: 'Scalar',
|
|
6679
|
+
plural: true
|
|
6680
|
+
}
|
|
6681
|
+
]
|
|
6682
|
+
};
|
|
6683
|
+
};
|
|
6684
|
+
function equals(existing, incoming) {
|
|
6685
|
+
const existing_hasWarning = existing.hasWarning;
|
|
6686
|
+
const incoming_hasWarning = incoming.hasWarning;
|
|
6687
|
+
if (!(existing_hasWarning === incoming_hasWarning)) {
|
|
6688
|
+
return false;
|
|
6689
|
+
}
|
|
6690
|
+
const existing_isSuccessful = existing.isSuccessful;
|
|
6691
|
+
const incoming_isSuccessful = incoming.isSuccessful;
|
|
6692
|
+
if (!(existing_isSuccessful === incoming_isSuccessful)) {
|
|
6693
|
+
return false;
|
|
6694
|
+
}
|
|
6695
|
+
const existing_statusCode = existing.statusCode;
|
|
6696
|
+
const incoming_statusCode = incoming.statusCode;
|
|
6697
|
+
// if at least one of these optionals is defined
|
|
6698
|
+
if (existing_statusCode !== undefined || incoming_statusCode !== undefined) {
|
|
6699
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6700
|
+
// not equal
|
|
6701
|
+
if (existing_statusCode === undefined || incoming_statusCode === undefined) {
|
|
6702
|
+
return false;
|
|
6703
|
+
}
|
|
6704
|
+
if (!(existing_statusCode === incoming_statusCode)) {
|
|
6705
|
+
return false;
|
|
6706
|
+
}
|
|
6707
|
+
}
|
|
6708
|
+
const existing_templateId = existing.templateId;
|
|
6709
|
+
const incoming_templateId = incoming.templateId;
|
|
6710
|
+
if (!(existing_templateId === incoming_templateId)) {
|
|
6711
|
+
return false;
|
|
6712
|
+
}
|
|
6713
|
+
const existing_templateType = existing.templateType;
|
|
6714
|
+
const incoming_templateType = incoming.templateType;
|
|
6715
|
+
// if at least one of these optionals is defined
|
|
6716
|
+
if (existing_templateType !== undefined || incoming_templateType !== undefined) {
|
|
6717
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6718
|
+
// not equal
|
|
6719
|
+
if (existing_templateType === undefined || incoming_templateType === undefined) {
|
|
6720
|
+
return false;
|
|
6721
|
+
}
|
|
6722
|
+
if (!(existing_templateType === incoming_templateType)) {
|
|
6723
|
+
return false;
|
|
6724
|
+
}
|
|
6725
|
+
}
|
|
6726
|
+
const existing_additionalData = existing.additionalData;
|
|
6727
|
+
const incoming_additionalData = incoming.additionalData;
|
|
6728
|
+
// if at least one of these optionals is defined
|
|
6729
|
+
if (existing_additionalData !== undefined || incoming_additionalData !== undefined) {
|
|
6730
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6731
|
+
// not equal
|
|
6732
|
+
if (existing_additionalData === undefined || incoming_additionalData === undefined) {
|
|
6733
|
+
return false;
|
|
6734
|
+
}
|
|
6735
|
+
if (!(equals$n(existing_additionalData, incoming_additionalData))) {
|
|
6736
|
+
return false;
|
|
6737
|
+
}
|
|
6738
|
+
}
|
|
6739
|
+
const existing_errorMessages = existing.errorMessages;
|
|
6740
|
+
const incoming_errorMessages = incoming.errorMessages;
|
|
6741
|
+
const equals_errorMessages_items = equalsArray(existing_errorMessages, incoming_errorMessages, (existing_errorMessages_item, incoming_errorMessages_item) => {
|
|
6742
|
+
if (!(existing_errorMessages_item === incoming_errorMessages_item)) {
|
|
6743
|
+
return false;
|
|
6744
|
+
}
|
|
6745
|
+
});
|
|
6746
|
+
if (equals_errorMessages_items === false) {
|
|
6747
|
+
return false;
|
|
6748
|
+
}
|
|
6749
|
+
const existing_warningMessages = existing.warningMessages;
|
|
6750
|
+
const incoming_warningMessages = incoming.warningMessages;
|
|
6751
|
+
const equals_warningMessages_items = equalsArray(existing_warningMessages, incoming_warningMessages, (existing_warningMessages_item, incoming_warningMessages_item) => {
|
|
6752
|
+
if (!(existing_warningMessages_item === incoming_warningMessages_item)) {
|
|
6753
|
+
return false;
|
|
6754
|
+
}
|
|
6755
|
+
});
|
|
6756
|
+
if (equals_warningMessages_items === false) {
|
|
6757
|
+
return false;
|
|
6758
|
+
}
|
|
6759
|
+
return true;
|
|
6760
|
+
}
|
|
6761
|
+
const ingest = function EinsteinPromptTemplateStatusRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6762
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6763
|
+
const validateError = validate(input);
|
|
6764
|
+
if (validateError !== null) {
|
|
6765
|
+
throw validateError;
|
|
6766
|
+
}
|
|
6767
|
+
}
|
|
6768
|
+
const key = keyBuilderFromType(luvio, input);
|
|
6769
|
+
const ttlToUse = TTL;
|
|
6770
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "EinsteinLLM", VERSION, RepresentationType, equals);
|
|
6771
|
+
return createLink(key);
|
|
6772
|
+
};
|
|
6773
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
6774
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6775
|
+
const rootKey = keyBuilderFromType(luvio, input);
|
|
6776
|
+
rootKeySet.set(rootKey, {
|
|
6777
|
+
namespace: keyPrefix,
|
|
6778
|
+
representationName: RepresentationType,
|
|
6779
|
+
mergeable: false
|
|
6780
|
+
});
|
|
6781
|
+
}
|
|
6782
|
+
|
|
6783
|
+
function select$2(luvio, params) {
|
|
6784
|
+
return select$3();
|
|
6785
|
+
}
|
|
6786
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
6787
|
+
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
6788
|
+
}
|
|
6789
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
6790
|
+
const { body } = response;
|
|
6791
|
+
const key = keyBuilderFromType(luvio, body);
|
|
6792
|
+
luvio.storeIngest(key, ingest, body);
|
|
6793
|
+
const snapshot = luvio.storeLookup({
|
|
6794
|
+
recordId: key,
|
|
6795
|
+
node: select$2(),
|
|
6796
|
+
variables: {},
|
|
6797
|
+
});
|
|
6798
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6799
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6800
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6801
|
+
}
|
|
6802
|
+
}
|
|
6803
|
+
deepFreeze(snapshot.data);
|
|
6804
|
+
return snapshot;
|
|
6805
|
+
}
|
|
6806
|
+
function createResourceRequest$2(config) {
|
|
6807
|
+
const headers = {};
|
|
6808
|
+
return {
|
|
6809
|
+
baseUri: '/services/data/v66.0',
|
|
6810
|
+
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/status',
|
|
6811
|
+
method: 'put',
|
|
6812
|
+
body: null,
|
|
6813
|
+
urlParams: config.urlParams,
|
|
6814
|
+
queryParams: config.queryParams,
|
|
6815
|
+
headers,
|
|
6816
|
+
priority: 'normal',
|
|
6817
|
+
};
|
|
6818
|
+
}
|
|
6819
|
+
|
|
6820
|
+
const adapterName$2 = 'putEinsteinPromptTemplateStatus';
|
|
6821
|
+
const putEinsteinPromptTemplateStatus_ConfigPropertyMetadata = [
|
|
6822
|
+
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6823
|
+
generateParamConfigMetadata('action', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6824
|
+
];
|
|
6825
|
+
const putEinsteinPromptTemplateStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
|
|
6826
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
|
|
6827
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
6828
|
+
const config = {};
|
|
6829
|
+
typeCheckConfig$j(untrustedConfig, config, putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
|
|
6830
|
+
return config;
|
|
6831
|
+
}
|
|
6832
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
6833
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6834
|
+
return null;
|
|
6835
|
+
}
|
|
6836
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6837
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6838
|
+
}
|
|
6839
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
6840
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6841
|
+
return null;
|
|
6842
|
+
}
|
|
6843
|
+
return config;
|
|
6844
|
+
}
|
|
6845
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
6846
|
+
const resourceParams = createResourceParams$2(config);
|
|
6847
|
+
const request = createResourceRequest$2(resourceParams);
|
|
6848
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6849
|
+
.then((response) => {
|
|
6850
|
+
return luvio.handleSuccessResponse(() => {
|
|
6851
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
6852
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6853
|
+
}, () => {
|
|
6854
|
+
const cache = new StoreKeyMap();
|
|
6855
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
6856
|
+
return cache;
|
|
6857
|
+
});
|
|
6858
|
+
}, (response) => {
|
|
6859
|
+
deepFreeze(response);
|
|
6860
|
+
throw response;
|
|
6861
|
+
});
|
|
6862
|
+
}
|
|
6863
|
+
const putEinsteinPromptTemplateStatusAdapterFactory = (luvio) => {
|
|
6864
|
+
return function putEinsteinPromptTemplateStatus(untrustedConfig) {
|
|
6865
|
+
const config = validateAdapterConfig$2(untrustedConfig, putEinsteinPromptTemplateStatus_ConfigPropertyNames);
|
|
6866
|
+
// Invalid or incomplete config
|
|
6867
|
+
if (config === null) {
|
|
6868
|
+
throw new Error('Invalid config for "putEinsteinPromptTemplateStatus"');
|
|
6869
|
+
}
|
|
6870
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
6871
|
+
};
|
|
6872
|
+
};
|
|
6873
|
+
|
|
6550
6874
|
function select$1(luvio, params) {
|
|
6551
|
-
return select$
|
|
6875
|
+
return select$r();
|
|
6552
6876
|
}
|
|
6553
6877
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
6554
|
-
getTypeCacheKeys$
|
|
6878
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
6555
6879
|
}
|
|
6556
6880
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
6557
6881
|
const { body } = response;
|
|
6558
|
-
const key = keyBuilderFromType(luvio, body);
|
|
6559
|
-
luvio.storeIngest(key, ingest$
|
|
6882
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
6883
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
6560
6884
|
const snapshot = luvio.storeLookup({
|
|
6561
6885
|
recordId: key,
|
|
6562
6886
|
node: select$1(),
|
|
@@ -6592,10 +6916,10 @@ const putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata = [
|
|
|
6592
6916
|
generateParamConfigMetadata('ignoreWarnings', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6593
6917
|
];
|
|
6594
6918
|
const putEinsteinPromptTemplateVersionStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
|
|
6595
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
6919
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
|
|
6596
6920
|
function typeCheckConfig$1(untrustedConfig) {
|
|
6597
6921
|
const config = {};
|
|
6598
|
-
typeCheckConfig$
|
|
6922
|
+
typeCheckConfig$j(untrustedConfig, config, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
|
|
6599
6923
|
return config;
|
|
6600
6924
|
}
|
|
6601
6925
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -6641,15 +6965,15 @@ const putEinsteinPromptTemplateVersionStatusAdapterFactory = (luvio) => {
|
|
|
6641
6965
|
};
|
|
6642
6966
|
|
|
6643
6967
|
function select(luvio, params) {
|
|
6644
|
-
return select$
|
|
6968
|
+
return select$r();
|
|
6645
6969
|
}
|
|
6646
6970
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
6647
|
-
getTypeCacheKeys$
|
|
6971
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
6648
6972
|
}
|
|
6649
6973
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
6650
6974
|
const { body } = response;
|
|
6651
|
-
const key = keyBuilderFromType(luvio, body);
|
|
6652
|
-
luvio.storeIngest(key, ingest$
|
|
6975
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
6976
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
6653
6977
|
const snapshot = luvio.storeLookup({
|
|
6654
6978
|
recordId: key,
|
|
6655
6979
|
node: select(),
|
|
@@ -6687,10 +7011,10 @@ const updatePromptTemplateVersion_ConfigPropertyMetadata = [
|
|
|
6687
7011
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
6688
7012
|
];
|
|
6689
7013
|
const updatePromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updatePromptTemplateVersion_ConfigPropertyMetadata);
|
|
6690
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7014
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$j(updatePromptTemplateVersion_ConfigPropertyMetadata);
|
|
6691
7015
|
function typeCheckConfig(untrustedConfig) {
|
|
6692
7016
|
const config = {};
|
|
6693
|
-
typeCheckConfig$
|
|
7017
|
+
typeCheckConfig$j(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
|
|
6694
7018
|
const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
|
|
6695
7019
|
if (untrustedIsObject(untrustedConfig_childRelationships)) {
|
|
6696
7020
|
const untrustedConfig_childRelationships_object = {};
|
|
@@ -6781,6 +7105,7 @@ let getPromptTemplateVersion;
|
|
|
6781
7105
|
let getPromptTemplateVersions;
|
|
6782
7106
|
let getPromptTemplates;
|
|
6783
7107
|
let getTemplateType;
|
|
7108
|
+
let putEinsteinPromptTemplateStatus;
|
|
6784
7109
|
let putEinsteinPromptTemplateVersionStatus;
|
|
6785
7110
|
let updatePromptTemplateVersion;
|
|
6786
7111
|
// Imperative GET Adapters
|
|
@@ -6870,6 +7195,7 @@ function bindExportsTo(luvio) {
|
|
|
6870
7195
|
getPromptTemplateVersions: createWireAdapterConstructor(luvio, getPromptTemplateVersions_ldsAdapter, getPromptTemplateVersionsMetadata),
|
|
6871
7196
|
getPromptTemplates: createWireAdapterConstructor(luvio, getPromptTemplates_ldsAdapter, getPromptTemplatesMetadata),
|
|
6872
7197
|
getTemplateType: createWireAdapterConstructor(luvio, getTemplateType_ldsAdapter, getTemplateTypeMetadata),
|
|
7198
|
+
putEinsteinPromptTemplateStatus: unwrapSnapshotData(putEinsteinPromptTemplateStatusAdapterFactory),
|
|
6873
7199
|
putEinsteinPromptTemplateVersionStatus: unwrapSnapshotData(putEinsteinPromptTemplateVersionStatusAdapterFactory),
|
|
6874
7200
|
updatePromptTemplateVersion: unwrapSnapshotData(updatePromptTemplateVersionAdapterFactory),
|
|
6875
7201
|
// Imperative GET Adapters
|
|
@@ -6905,6 +7231,7 @@ withDefaultLuvio((luvio) => {
|
|
|
6905
7231
|
getPromptTemplateVersions,
|
|
6906
7232
|
getPromptTemplates,
|
|
6907
7233
|
getTemplateType,
|
|
7234
|
+
putEinsteinPromptTemplateStatus,
|
|
6908
7235
|
putEinsteinPromptTemplateVersionStatus,
|
|
6909
7236
|
updatePromptTemplateVersion,
|
|
6910
7237
|
createEmbeddings_imperative,
|
|
@@ -6921,5 +7248,5 @@ withDefaultLuvio((luvio) => {
|
|
|
6921
7248
|
} = bindExportsTo(luvio));
|
|
6922
7249
|
});
|
|
6923
7250
|
|
|
6924
|
-
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, getTemplateType, getTemplateType_imperative, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
|
|
6925
|
-
// version: 1.404.0-
|
|
7251
|
+
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, getTemplateType, getTemplateType_imperative, putEinsteinPromptTemplateStatus, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
|
|
7252
|
+
// version: 1.404.0-dev8-0d1fa821a7
|