@salesforce/lds-adapters-service-einsteinllm 1.455.0 → 1.457.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -474,7 +474,7 @@ function ingestError$b(luvio, params, error, snapshotRefresh) {
474
474
  function createResourceRequest$j(config) {
475
475
  const headers = {};
476
476
  return {
477
- baseUri: '/services/data/v68.0',
477
+ baseUri: '/services/data/v69.0',
478
478
  basePath: '/einstein/llm/embeddings',
479
479
  method: 'post',
480
480
  body: config.body,
@@ -719,7 +719,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
719
719
  function createResourceRequest$i(config) {
720
720
  const headers = {};
721
721
  return {
722
- baseUri: '/services/data/v68.0',
722
+ baseUri: '/services/data/v69.0',
723
723
  basePath: '/einstein/llm/feedback',
724
724
  method: 'post',
725
725
  body: config.body,
@@ -1771,7 +1771,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
1771
1771
  function createResourceRequest$h(config) {
1772
1772
  const headers = {};
1773
1773
  return {
1774
- baseUri: '/services/data/v68.0',
1774
+ baseUri: '/services/data/v69.0',
1775
1775
  basePath: '/einstein/llm/prompt/generations',
1776
1776
  method: 'post',
1777
1777
  body: config.body,
@@ -2143,7 +2143,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
2143
2143
  function createResourceRequest$g(config) {
2144
2144
  const headers = {};
2145
2145
  return {
2146
- baseUri: '/services/data/v68.0',
2146
+ baseUri: '/services/data/v69.0',
2147
2147
  basePath: '/einstein/prompt-templates',
2148
2148
  method: 'get',
2149
2149
  body: null,
@@ -2520,7 +2520,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
2520
2520
  function createResourceRequest$f(config) {
2521
2521
  const headers = {};
2522
2522
  return {
2523
- baseUri: '/services/data/v68.0',
2523
+ baseUri: '/services/data/v69.0',
2524
2524
  basePath: '/einstein/prompt-templates',
2525
2525
  method: 'post',
2526
2526
  body: config.body,
@@ -3048,7 +3048,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
3048
3048
  function createResourceRequest$e(config) {
3049
3049
  const headers = {};
3050
3050
  return {
3051
- baseUri: '/services/data/v68.0',
3051
+ baseUri: '/services/data/v69.0',
3052
3052
  basePath: '/einstein/prompt-templates/data-providers/mapped',
3053
3053
  method: 'post',
3054
3054
  body: config.body,
@@ -3198,7 +3198,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
3198
3198
  function createResourceRequest$d(config) {
3199
3199
  const headers = {};
3200
3200
  return {
3201
- baseUri: '/services/data/v68.0',
3201
+ baseUri: '/services/data/v69.0',
3202
3202
  basePath: '/einstein/prompt-templates/data-providers/' + config.urlParams.templateType + '',
3203
3203
  method: 'get',
3204
3204
  body: null,
@@ -3338,7 +3338,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
3338
3338
  function createResourceRequest$c(config) {
3339
3339
  const headers = {};
3340
3340
  return {
3341
- baseUri: '/services/data/v68.0',
3341
+ baseUri: '/services/data/v69.0',
3342
3342
  basePath: '/einstein/prompt-templates/data-provider/describe',
3343
3343
  method: 'post',
3344
3344
  body: config.body,
@@ -3608,7 +3608,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
3608
3608
  function createResourceRequest$b(config) {
3609
3609
  const headers = {};
3610
3610
  return {
3611
- baseUri: '/services/data/v68.0',
3611
+ baseUri: '/services/data/v69.0',
3612
3612
  basePath: '/einstein/prompt-templates/data-provider-types/' + config.urlParams.templateType + '',
3613
3613
  method: 'get',
3614
3614
  body: null,
@@ -3746,7 +3746,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
3746
3746
  function createResourceRequest$a(config) {
3747
3747
  const headers = {};
3748
3748
  return {
3749
- baseUri: '/services/data/v68.0',
3749
+ baseUri: '/services/data/v69.0',
3750
3750
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '',
3751
3751
  method: 'get',
3752
3752
  body: null,
@@ -4103,7 +4103,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
4103
4103
  function createResourceRequest$9(config) {
4104
4104
  const headers = {};
4105
4105
  return {
4106
- baseUri: '/services/data/v68.0',
4106
+ baseUri: '/services/data/v69.0',
4107
4107
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/status',
4108
4108
  method: 'put',
4109
4109
  body: null,
@@ -4322,7 +4322,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
4322
4322
  function createResourceRequest$8(config) {
4323
4323
  const headers = {};
4324
4324
  return {
4325
- baseUri: '/services/data/v68.0',
4325
+ baseUri: '/services/data/v69.0',
4326
4326
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/references',
4327
4327
  method: 'get',
4328
4328
  body: null,
@@ -4460,7 +4460,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
4460
4460
  function createResourceRequest$7(config) {
4461
4461
  const headers = {};
4462
4462
  return {
4463
- baseUri: '/services/data/v68.0',
4463
+ baseUri: '/services/data/v69.0',
4464
4464
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
4465
4465
  method: 'get',
4466
4466
  body: null,
@@ -4585,7 +4585,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
4585
4585
  function createResourceRequest$6(config) {
4586
4586
  const headers = {};
4587
4587
  return {
4588
- baseUri: '/services/data/v68.0',
4588
+ baseUri: '/services/data/v69.0',
4589
4589
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
4590
4590
  method: 'post',
4591
4591
  body: config.body,
@@ -4724,7 +4724,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
4724
4724
  function createResourceRequest$5(config) {
4725
4725
  const headers = {};
4726
4726
  return {
4727
- baseUri: '/services/data/v68.0',
4727
+ baseUri: '/services/data/v69.0',
4728
4728
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
4729
4729
  method: 'get',
4730
4730
  body: null,
@@ -4850,7 +4850,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
4850
4850
  function createResourceRequest$4(config) {
4851
4851
  const headers = {};
4852
4852
  return {
4853
- baseUri: '/services/data/v68.0',
4853
+ baseUri: '/services/data/v69.0',
4854
4854
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
4855
4855
  method: 'put',
4856
4856
  body: config.body,
@@ -4975,7 +4975,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
4975
4975
  function createResourceRequest$3(config) {
4976
4976
  const headers = {};
4977
4977
  return {
4978
- baseUri: '/services/data/v68.0',
4978
+ baseUri: '/services/data/v69.0',
4979
4979
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '/status',
4980
4980
  method: 'put',
4981
4981
  body: null,
@@ -6575,12 +6575,26 @@ function equals$9(existing, incoming) {
6575
6575
  return true;
6576
6576
  }
6577
6577
 
6578
- const VERSION$8 = "20ed3f8bf15ce2c8910245591e27fae5";
6578
+ const VERSION$8 = "f27af32e86a9a76c9625ede41c99c08e";
6579
6579
  function validate$8(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation') {
6580
6580
  const v_error = (() => {
6581
6581
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6582
6582
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6583
6583
  }
6584
+ if (obj.cacheReadTokens !== undefined) {
6585
+ const obj_cacheReadTokens = obj.cacheReadTokens;
6586
+ const path_cacheReadTokens = path + '.cacheReadTokens';
6587
+ if (typeof obj_cacheReadTokens !== 'number' || (typeof obj_cacheReadTokens === 'number' && Math.floor(obj_cacheReadTokens) !== obj_cacheReadTokens)) {
6588
+ return new TypeError('Expected "integer" but received "' + typeof obj_cacheReadTokens + '" (at "' + path_cacheReadTokens + '")');
6589
+ }
6590
+ }
6591
+ if (obj.cacheWriteTokens !== undefined) {
6592
+ const obj_cacheWriteTokens = obj.cacheWriteTokens;
6593
+ const path_cacheWriteTokens = path + '.cacheWriteTokens';
6594
+ if (typeof obj_cacheWriteTokens !== 'number' || (typeof obj_cacheWriteTokens === 'number' && Math.floor(obj_cacheWriteTokens) !== obj_cacheWriteTokens)) {
6595
+ return new TypeError('Expected "integer" but received "' + typeof obj_cacheWriteTokens + '" (at "' + path_cacheWriteTokens + '")');
6596
+ }
6597
+ }
6584
6598
  const obj_completion = obj.completion;
6585
6599
  const path_completion = path + '.completion';
6586
6600
  if (typeof obj_completion !== 'number' || (typeof obj_completion === 'number' && Math.floor(obj_completion) !== obj_completion)) {
@@ -6609,6 +6623,16 @@ const select$b = function EinsteinPromptTemplateTokenUsageRepresentationSelect()
6609
6623
  version: VERSION$8,
6610
6624
  private: [],
6611
6625
  selections: [
6626
+ {
6627
+ name: 'cacheReadTokens',
6628
+ kind: 'Scalar',
6629
+ required: false
6630
+ },
6631
+ {
6632
+ name: 'cacheWriteTokens',
6633
+ kind: 'Scalar',
6634
+ required: false
6635
+ },
6612
6636
  {
6613
6637
  name: 'completion',
6614
6638
  kind: 'Scalar'
@@ -6626,6 +6650,32 @@ const select$b = function EinsteinPromptTemplateTokenUsageRepresentationSelect()
6626
6650
  };
6627
6651
  };
6628
6652
  function equals$8(existing, incoming) {
6653
+ const existing_cacheReadTokens = existing.cacheReadTokens;
6654
+ const incoming_cacheReadTokens = incoming.cacheReadTokens;
6655
+ // if at least one of these optionals is defined
6656
+ if (existing_cacheReadTokens !== undefined || incoming_cacheReadTokens !== undefined) {
6657
+ // if one of these is not defined we know the other is defined and therefore
6658
+ // not equal
6659
+ if (existing_cacheReadTokens === undefined || incoming_cacheReadTokens === undefined) {
6660
+ return false;
6661
+ }
6662
+ if (!(existing_cacheReadTokens === incoming_cacheReadTokens)) {
6663
+ return false;
6664
+ }
6665
+ }
6666
+ const existing_cacheWriteTokens = existing.cacheWriteTokens;
6667
+ const incoming_cacheWriteTokens = incoming.cacheWriteTokens;
6668
+ // if at least one of these optionals is defined
6669
+ if (existing_cacheWriteTokens !== undefined || incoming_cacheWriteTokens !== undefined) {
6670
+ // if one of these is not defined we know the other is defined and therefore
6671
+ // not equal
6672
+ if (existing_cacheWriteTokens === undefined || incoming_cacheWriteTokens === undefined) {
6673
+ return false;
6674
+ }
6675
+ if (!(existing_cacheWriteTokens === incoming_cacheWriteTokens)) {
6676
+ return false;
6677
+ }
6678
+ }
6629
6679
  const existing_completion = existing.completion;
6630
6680
  const incoming_completion = incoming.completion;
6631
6681
  if (!(existing_completion === incoming_completion)) {
@@ -7244,7 +7294,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
7244
7294
  function createResourceRequest$2(config) {
7245
7295
  const headers = {};
7246
7296
  return {
7247
- baseUri: '/services/data/v68.0',
7297
+ baseUri: '/services/data/v69.0',
7248
7298
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/generations',
7249
7299
  method: 'post',
7250
7300
  body: config.body,
@@ -7859,7 +7909,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
7859
7909
  function createResourceRequest$1(config) {
7860
7910
  const headers = {};
7861
7911
  return {
7862
- baseUri: '/services/data/v68.0',
7912
+ baseUri: '/services/data/v69.0',
7863
7913
  basePath: '/einstein/prompt-template-types/' + config.urlParams.templateTypeName + '',
7864
7914
  method: 'get',
7865
7915
  body: null,
@@ -8251,7 +8301,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
8251
8301
  function createResourceRequest(config) {
8252
8302
  const headers = {};
8253
8303
  return {
8254
- baseUri: '/services/data/v68.0',
8304
+ baseUri: '/services/data/v69.0',
8255
8305
  basePath: '/einstein/prompt-template/' + config.urlParams.promptTemplateDevName + '/output-languages',
8256
8306
  method: 'get',
8257
8307
  body: null,
@@ -1,6 +1,6 @@
1
1
  import { EinsteinPromptTemplatePromptTokenUsageRepresentation as EinsteinPromptTemplatePromptTokenUsageRepresentation_EinsteinPromptTemplatePromptTokenUsageRepresentation } from './EinsteinPromptTemplatePromptTokenUsageRepresentation';
2
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
- export declare const VERSION = "20ed3f8bf15ce2c8910245591e27fae5";
3
+ export declare const VERSION = "f27af32e86a9a76c9625ede41c99c08e";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: EinsteinPromptTemplateTokenUsageRepresentation, existing: EinsteinPromptTemplateTokenUsageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateTokenUsageRepresentationNormalized;
@@ -15,6 +15,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  * (none)
16
16
  */
17
17
  export interface EinsteinPromptTemplateTokenUsageRepresentationNormalized {
18
+ /** Number of tokens read from the cache (Bedrock/Anthropic prompt caching) */
19
+ cacheReadTokens?: number;
20
+ /** Number of tokens written to the cache (Bedrock/Anthropic prompt caching) */
21
+ cacheWriteTokens?: number;
18
22
  /** Number of tokens used for completion */
19
23
  completion: number;
20
24
  /** Prompt token usage details including breakdown by source */
@@ -29,6 +33,8 @@ export interface EinsteinPromptTemplateTokenUsageRepresentationNormalized {
29
33
  * (none)
30
34
  */
31
35
  export interface EinsteinPromptTemplateTokenUsageRepresentation {
36
+ cacheReadTokens?: number;
37
+ cacheWriteTokens?: number;
32
38
  completion: number;
33
39
  prompt: EinsteinPromptTemplatePromptTokenUsageRepresentation_EinsteinPromptTemplatePromptTokenUsageRepresentation;
34
40
  total: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.455.0",
3
+ "version": "1.457.0",
4
4
  "description": "Connect family for Einstein LLM generations",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-einsteinllm.js",
@@ -41,10 +41,10 @@
41
41
  "test:unit": "jest --config=./jest.config.js"
42
42
  },
43
43
  "dependencies": {
44
- "@salesforce/lds-bindings": "^1.455.0"
44
+ "@salesforce/lds-bindings": "^1.457.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.455.0"
47
+ "@salesforce/lds-compiler-plugins": "^1.457.0"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -484,7 +484,7 @@ function ingestError$b(luvio, params, error, snapshotRefresh) {
484
484
  function createResourceRequest$j(config) {
485
485
  const headers = {};
486
486
  return {
487
- baseUri: '/services/data/v68.0',
487
+ baseUri: '/services/data/v69.0',
488
488
  basePath: '/einstein/llm/embeddings',
489
489
  method: 'post',
490
490
  body: config.body,
@@ -729,7 +729,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
729
729
  function createResourceRequest$i(config) {
730
730
  const headers = {};
731
731
  return {
732
- baseUri: '/services/data/v68.0',
732
+ baseUri: '/services/data/v69.0',
733
733
  basePath: '/einstein/llm/feedback',
734
734
  method: 'post',
735
735
  body: config.body,
@@ -1781,7 +1781,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
1781
1781
  function createResourceRequest$h(config) {
1782
1782
  const headers = {};
1783
1783
  return {
1784
- baseUri: '/services/data/v68.0',
1784
+ baseUri: '/services/data/v69.0',
1785
1785
  basePath: '/einstein/llm/prompt/generations',
1786
1786
  method: 'post',
1787
1787
  body: config.body,
@@ -3382,12 +3382,26 @@ function equals$h(existing, incoming) {
3382
3382
  return true;
3383
3383
  }
3384
3384
 
3385
- const VERSION$g = "20ed3f8bf15ce2c8910245591e27fae5";
3385
+ const VERSION$g = "f27af32e86a9a76c9625ede41c99c08e";
3386
3386
  function validate$k(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation') {
3387
3387
  const v_error = (() => {
3388
3388
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3389
3389
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3390
3390
  }
3391
+ if (obj.cacheReadTokens !== undefined) {
3392
+ const obj_cacheReadTokens = obj.cacheReadTokens;
3393
+ const path_cacheReadTokens = path + '.cacheReadTokens';
3394
+ if (typeof obj_cacheReadTokens !== 'number' || (typeof obj_cacheReadTokens === 'number' && Math.floor(obj_cacheReadTokens) !== obj_cacheReadTokens)) {
3395
+ return new TypeError('Expected "integer" but received "' + typeof obj_cacheReadTokens + '" (at "' + path_cacheReadTokens + '")');
3396
+ }
3397
+ }
3398
+ if (obj.cacheWriteTokens !== undefined) {
3399
+ const obj_cacheWriteTokens = obj.cacheWriteTokens;
3400
+ const path_cacheWriteTokens = path + '.cacheWriteTokens';
3401
+ if (typeof obj_cacheWriteTokens !== 'number' || (typeof obj_cacheWriteTokens === 'number' && Math.floor(obj_cacheWriteTokens) !== obj_cacheWriteTokens)) {
3402
+ return new TypeError('Expected "integer" but received "' + typeof obj_cacheWriteTokens + '" (at "' + path_cacheWriteTokens + '")');
3403
+ }
3404
+ }
3391
3405
  const obj_completion = obj.completion;
3392
3406
  const path_completion = path + '.completion';
3393
3407
  if (typeof obj_completion !== 'number' || (typeof obj_completion === 'number' && Math.floor(obj_completion) !== obj_completion)) {
@@ -3416,6 +3430,16 @@ const select$x = function EinsteinPromptTemplateTokenUsageRepresentationSelect()
3416
3430
  version: VERSION$g,
3417
3431
  private: [],
3418
3432
  selections: [
3433
+ {
3434
+ name: 'cacheReadTokens',
3435
+ kind: 'Scalar',
3436
+ required: false
3437
+ },
3438
+ {
3439
+ name: 'cacheWriteTokens',
3440
+ kind: 'Scalar',
3441
+ required: false
3442
+ },
3419
3443
  {
3420
3444
  name: 'completion',
3421
3445
  kind: 'Scalar'
@@ -3433,6 +3457,32 @@ const select$x = function EinsteinPromptTemplateTokenUsageRepresentationSelect()
3433
3457
  };
3434
3458
  };
3435
3459
  function equals$g(existing, incoming) {
3460
+ const existing_cacheReadTokens = existing.cacheReadTokens;
3461
+ const incoming_cacheReadTokens = incoming.cacheReadTokens;
3462
+ // if at least one of these optionals is defined
3463
+ if (existing_cacheReadTokens !== undefined || incoming_cacheReadTokens !== undefined) {
3464
+ // if one of these is not defined we know the other is defined and therefore
3465
+ // not equal
3466
+ if (existing_cacheReadTokens === undefined || incoming_cacheReadTokens === undefined) {
3467
+ return false;
3468
+ }
3469
+ if (!(existing_cacheReadTokens === incoming_cacheReadTokens)) {
3470
+ return false;
3471
+ }
3472
+ }
3473
+ const existing_cacheWriteTokens = existing.cacheWriteTokens;
3474
+ const incoming_cacheWriteTokens = incoming.cacheWriteTokens;
3475
+ // if at least one of these optionals is defined
3476
+ if (existing_cacheWriteTokens !== undefined || incoming_cacheWriteTokens !== undefined) {
3477
+ // if one of these is not defined we know the other is defined and therefore
3478
+ // not equal
3479
+ if (existing_cacheWriteTokens === undefined || incoming_cacheWriteTokens === undefined) {
3480
+ return false;
3481
+ }
3482
+ if (!(existing_cacheWriteTokens === incoming_cacheWriteTokens)) {
3483
+ return false;
3484
+ }
3485
+ }
3436
3486
  const existing_completion = existing.completion;
3437
3487
  const incoming_completion = incoming.completion;
3438
3488
  if (!(existing_completion === incoming_completion)) {
@@ -4051,7 +4101,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
4051
4101
  function createResourceRequest$g(config) {
4052
4102
  const headers = {};
4053
4103
  return {
4054
- baseUri: '/services/data/v68.0',
4104
+ baseUri: '/services/data/v69.0',
4055
4105
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/generations',
4056
4106
  method: 'post',
4057
4107
  body: config.body,
@@ -4395,7 +4445,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
4395
4445
  function createResourceRequest$f(config) {
4396
4446
  const headers = {};
4397
4447
  return {
4398
- baseUri: '/services/data/v68.0',
4448
+ baseUri: '/services/data/v69.0',
4399
4449
  basePath: '/einstein/prompt-templates',
4400
4450
  method: 'post',
4401
4451
  body: config.body,
@@ -4518,7 +4568,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
4518
4568
  function createResourceRequest$e(config) {
4519
4569
  const headers = {};
4520
4570
  return {
4521
- baseUri: '/services/data/v68.0',
4571
+ baseUri: '/services/data/v69.0',
4522
4572
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
4523
4573
  method: 'post',
4524
4574
  body: config.body,
@@ -4982,7 +5032,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
4982
5032
  function createResourceRequest$d(config) {
4983
5033
  const headers = {};
4984
5034
  return {
4985
- baseUri: '/services/data/v68.0',
5035
+ baseUri: '/services/data/v69.0',
4986
5036
  basePath: '/einstein/prompt-templates/data-provider/describe',
4987
5037
  method: 'post',
4988
5038
  body: config.body,
@@ -5252,7 +5302,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
5252
5302
  function createResourceRequest$c(config) {
5253
5303
  const headers = {};
5254
5304
  return {
5255
- baseUri: '/services/data/v68.0',
5305
+ baseUri: '/services/data/v69.0',
5256
5306
  basePath: '/einstein/prompt-templates/data-provider-types/' + config.urlParams.templateType + '',
5257
5307
  method: 'get',
5258
5308
  body: null,
@@ -5455,7 +5505,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
5455
5505
  function createResourceRequest$b(config) {
5456
5506
  const headers = {};
5457
5507
  return {
5458
- baseUri: '/services/data/v68.0',
5508
+ baseUri: '/services/data/v69.0',
5459
5509
  basePath: '/einstein/prompt-templates/data-providers/' + config.urlParams.templateType + '',
5460
5510
  method: 'get',
5461
5511
  body: null,
@@ -5708,7 +5758,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
5708
5758
  function createResourceRequest$a(config) {
5709
5759
  const headers = {};
5710
5760
  return {
5711
- baseUri: '/services/data/v68.0',
5761
+ baseUri: '/services/data/v69.0',
5712
5762
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/references',
5713
5763
  method: 'get',
5714
5764
  body: null,
@@ -5846,7 +5896,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
5846
5896
  function createResourceRequest$9(config) {
5847
5897
  const headers = {};
5848
5898
  return {
5849
- baseUri: '/services/data/v68.0',
5899
+ baseUri: '/services/data/v69.0',
5850
5900
  basePath: '/einstein/prompt-templates/data-providers/mapped',
5851
5901
  method: 'post',
5852
5902
  body: config.body,
@@ -6250,7 +6300,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
6250
6300
  function createResourceRequest$8(config) {
6251
6301
  const headers = {};
6252
6302
  return {
6253
- baseUri: '/services/data/v68.0',
6303
+ baseUri: '/services/data/v69.0',
6254
6304
  basePath: '/einstein/prompt-template/' + config.urlParams.promptTemplateDevName + '/output-languages',
6255
6305
  method: 'get',
6256
6306
  body: null,
@@ -6576,7 +6626,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
6576
6626
  function createResourceRequest$7(config) {
6577
6627
  const headers = {};
6578
6628
  return {
6579
- baseUri: '/services/data/v68.0',
6629
+ baseUri: '/services/data/v69.0',
6580
6630
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '',
6581
6631
  method: 'get',
6582
6632
  body: null,
@@ -6715,7 +6765,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
6715
6765
  function createResourceRequest$6(config) {
6716
6766
  const headers = {};
6717
6767
  return {
6718
- baseUri: '/services/data/v68.0',
6768
+ baseUri: '/services/data/v69.0',
6719
6769
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
6720
6770
  method: 'get',
6721
6771
  body: null,
@@ -6856,7 +6906,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
6856
6906
  function createResourceRequest$5(config) {
6857
6907
  const headers = {};
6858
6908
  return {
6859
- baseUri: '/services/data/v68.0',
6909
+ baseUri: '/services/data/v69.0',
6860
6910
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
6861
6911
  method: 'get',
6862
6912
  body: null,
@@ -7073,7 +7123,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
7073
7123
  function createResourceRequest$4(config) {
7074
7124
  const headers = {};
7075
7125
  return {
7076
- baseUri: '/services/data/v68.0',
7126
+ baseUri: '/services/data/v69.0',
7077
7127
  basePath: '/einstein/prompt-templates',
7078
7128
  method: 'get',
7079
7129
  body: null,
@@ -7721,7 +7771,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
7721
7771
  function createResourceRequest$3(config) {
7722
7772
  const headers = {};
7723
7773
  return {
7724
- baseUri: '/services/data/v68.0',
7774
+ baseUri: '/services/data/v69.0',
7725
7775
  basePath: '/einstein/prompt-template-types/' + config.urlParams.templateTypeName + '',
7726
7776
  method: 'get',
7727
7777
  body: null,
@@ -8077,7 +8127,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
8077
8127
  function createResourceRequest$2(config) {
8078
8128
  const headers = {};
8079
8129
  return {
8080
- baseUri: '/services/data/v68.0',
8130
+ baseUri: '/services/data/v69.0',
8081
8131
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/status',
8082
8132
  method: 'put',
8083
8133
  body: null,
@@ -8168,7 +8218,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
8168
8218
  function createResourceRequest$1(config) {
8169
8219
  const headers = {};
8170
8220
  return {
8171
- baseUri: '/services/data/v68.0',
8221
+ baseUri: '/services/data/v69.0',
8172
8222
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '/status',
8173
8223
  method: 'put',
8174
8224
  body: null,
@@ -8261,7 +8311,7 @@ function ingestSuccess(luvio, resourceParams, response) {
8261
8311
  function createResourceRequest(config) {
8262
8312
  const headers = {};
8263
8313
  return {
8264
- baseUri: '/services/data/v68.0',
8314
+ baseUri: '/services/data/v69.0',
8265
8315
  basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
8266
8316
  method: 'put',
8267
8317
  body: config.body,
@@ -8532,4 +8582,4 @@ withDefaultLuvio((luvio) => {
8532
8582
  });
8533
8583
 
8534
8584
  export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getEinsteinPromptTemplateReferences, getEinsteinPromptTemplateReferences_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 };
8535
- // version: 1.455.0-96e9b41a18
8585
+ // version: 1.457.0-5118f3b372
package/src/raml/api.raml CHANGED
@@ -6,7 +6,7 @@ version: '62.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
9
- baseUri: /services/data/v68.0
9
+ baseUri: /services/data/v69.0
10
10
  securitySchemes:
11
11
  OAuth2:
12
12
  type: OAuth 2.0
@@ -1173,6 +1173,16 @@ types:
1173
1173
  description: Output representation for token usage and its breakdown
1174
1174
  type: object
1175
1175
  properties:
1176
+ cacheReadTokens:
1177
+ description: Number of tokens read from the cache (Bedrock/Anthropic prompt
1178
+ caching)
1179
+ required: false
1180
+ type: integer
1181
+ cacheWriteTokens:
1182
+ description: Number of tokens written to the cache (Bedrock/Anthropic prompt
1183
+ caching)
1184
+ required: false
1185
+ type: integer
1176
1186
  completion:
1177
1187
  description: Number of tokens used for completion
1178
1188
  type: integer