@salesforce/lds-adapters-service-einstein-copilot-bot 1.456.0 → 1.458.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.
@@ -340,7 +340,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
340
340
  function createResourceRequest$9(config) {
341
341
  const headers = {};
342
342
  return {
343
- baseUri: '/services/data/v68.0',
343
+ baseUri: '/services/data/v69.0',
344
344
  basePath: '/connect/conversation-runtime-proxy',
345
345
  method: 'get',
346
346
  body: null,
@@ -1588,7 +1588,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
1588
1588
  function createResourceRequest$8(config) {
1589
1589
  const headers = {};
1590
1590
  return {
1591
- baseUri: '/services/data/v68.0',
1591
+ baseUri: '/services/data/v69.0',
1592
1592
  basePath: '/connect/conversation-runtime-proxy',
1593
1593
  method: 'post',
1594
1594
  body: config.body,
@@ -1958,7 +1958,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
1958
1958
  function createResourceRequest$7(config) {
1959
1959
  const headers = {};
1960
1960
  return {
1961
- baseUri: '/services/data/v68.0',
1961
+ baseUri: '/services/data/v69.0',
1962
1962
  basePath: '/connect/recommended-plan-templates/' + config.urlParams.pageType + '/' + config.urlParams.objectType + '',
1963
1963
  method: 'get',
1964
1964
  body: null,
@@ -2153,7 +2153,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
2153
2153
  function createResourceRequest$6(config) {
2154
2154
  const headers = {};
2155
2155
  return {
2156
- baseUri: '/services/data/v68.0',
2156
+ baseUri: '/services/data/v69.0',
2157
2157
  basePath: '/connect/copilot/feedback',
2158
2158
  method: 'post',
2159
2159
  body: config.body,
@@ -2407,7 +2407,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
2407
2407
  function createResourceRequest$5(config) {
2408
2408
  const headers = {};
2409
2409
  return {
2410
- baseUri: '/services/data/v68.0',
2410
+ baseUri: '/services/data/v69.0',
2411
2411
  basePath: '/connect/copilot/objects',
2412
2412
  method: 'get',
2413
2413
  body: null,
@@ -2914,7 +2914,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
2914
2914
  function createResourceRequest$4(config) {
2915
2915
  const headers = {};
2916
2916
  return {
2917
- baseUri: '/services/data/v68.0',
2917
+ baseUri: '/services/data/v69.0',
2918
2918
  basePath: '/connect/follow-up-actions',
2919
2919
  method: 'post',
2920
2920
  body: config.body,
@@ -3179,7 +3179,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
3179
3179
  function createResourceRequest$3(config) {
3180
3180
  const headers = {};
3181
3181
  return {
3182
- baseUri: '/services/data/v68.0',
3182
+ baseUri: '/services/data/v69.0',
3183
3183
  basePath: '/connect/recommended-utterances',
3184
3184
  method: 'get',
3185
3185
  body: null,
@@ -3849,7 +3849,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
3849
3849
  function createResourceRequest$2(config) {
3850
3850
  const headers = {};
3851
3851
  return {
3852
- baseUri: '/services/data/v68.0',
3852
+ baseUri: '/services/data/v69.0',
3853
3853
  basePath: '/connect/recommended-actions',
3854
3854
  method: 'get',
3855
3855
  body: null,
@@ -4176,7 +4176,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
4176
4176
  function createResourceRequest$1(config) {
4177
4177
  const headers = {};
4178
4178
  return {
4179
- baseUri: '/services/data/v68.0',
4179
+ baseUri: '/services/data/v69.0',
4180
4180
  basePath: '/connect/welcome-utterances',
4181
4181
  method: 'get',
4182
4182
  body: null,
@@ -4510,7 +4510,7 @@ function equals$2(existing, incoming) {
4510
4510
  return true;
4511
4511
  }
4512
4512
 
4513
- const VERSION$1 = "cf68a6675dbf94d7cf47a934ca7a85d3";
4513
+ const VERSION$1 = "2d4ada37263c79110685209e1033f411";
4514
4514
  function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
4515
4515
  const v_error = (() => {
4516
4516
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4556,6 +4556,13 @@ function validate$1(obj, path = 'AgentforceAgentBotInfoRepresentation') {
4556
4556
  if (typeof obj_isSuccess !== 'boolean') {
4557
4557
  return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
4558
4558
  }
4559
+ if (obj.isUserSkillsEnabled !== undefined) {
4560
+ const obj_isUserSkillsEnabled = obj.isUserSkillsEnabled;
4561
+ const path_isUserSkillsEnabled = path + '.isUserSkillsEnabled';
4562
+ if (typeof obj_isUserSkillsEnabled !== 'boolean') {
4563
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isUserSkillsEnabled + '" (at "' + path_isUserSkillsEnabled + '")');
4564
+ }
4565
+ }
4559
4566
  if (obj.isVoiceEnabled !== undefined) {
4560
4567
  const obj_isVoiceEnabled = obj.isVoiceEnabled;
4561
4568
  const path_isVoiceEnabled = path + '.isVoiceEnabled';
@@ -4640,6 +4647,11 @@ const select$2 = function AgentforceAgentBotInfoRepresentationSelect() {
4640
4647
  name: 'isSuccess',
4641
4648
  kind: 'Scalar'
4642
4649
  },
4650
+ {
4651
+ name: 'isUserSkillsEnabled',
4652
+ kind: 'Scalar',
4653
+ required: false
4654
+ },
4643
4655
  {
4644
4656
  name: 'isVoiceEnabled',
4645
4657
  kind: 'Scalar',
@@ -4689,6 +4701,19 @@ function equals$1(existing, incoming) {
4689
4701
  if (!(existing_isSuccess === incoming_isSuccess)) {
4690
4702
  return false;
4691
4703
  }
4704
+ const existing_isUserSkillsEnabled = existing.isUserSkillsEnabled;
4705
+ const incoming_isUserSkillsEnabled = incoming.isUserSkillsEnabled;
4706
+ // if at least one of these optionals is defined
4707
+ if (existing_isUserSkillsEnabled !== undefined || incoming_isUserSkillsEnabled !== undefined) {
4708
+ // if one of these is not defined we know the other is defined and therefore
4709
+ // not equal
4710
+ if (existing_isUserSkillsEnabled === undefined || incoming_isUserSkillsEnabled === undefined) {
4711
+ return false;
4712
+ }
4713
+ if (!(existing_isUserSkillsEnabled === incoming_isUserSkillsEnabled)) {
4714
+ return false;
4715
+ }
4716
+ }
4692
4717
  const existing_isVoiceEnabled = existing.isVoiceEnabled;
4693
4718
  const incoming_isVoiceEnabled = incoming.isVoiceEnabled;
4694
4719
  // if at least one of these optionals is defined
@@ -5124,7 +5149,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
5124
5149
  function createResourceRequest(config) {
5125
5150
  const headers = {};
5126
5151
  return {
5127
- baseUri: '/services/data/v68.0',
5152
+ baseUri: '/services/data/v69.0',
5128
5153
  basePath: '/connect/agentforce-agent-info',
5129
5154
  method: 'get',
5130
5155
  body: null,
@@ -1,6 +1,6 @@
1
1
  import { MessagingChannelInfoRepresentation as MessagingChannelInfoRepresentation_MessagingChannelInfoRepresentation } from './MessagingChannelInfoRepresentation';
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 = "cf68a6675dbf94d7cf47a934ca7a85d3";
3
+ export declare const VERSION = "2d4ada37263c79110685209e1033f411";
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: AgentforceAgentBotInfoRepresentation, existing: AgentforceAgentBotInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentforceAgentBotInfoRepresentationNormalized;
@@ -27,6 +27,8 @@ export interface AgentforceAgentBotInfoRepresentationNormalized {
27
27
  isDefault?: boolean;
28
28
  /** Success indicator of the get operation. */
29
29
  isSuccess: boolean;
30
+ /** Indicates whether the agent has skills authored (per-agent). */
31
+ isUserSkillsEnabled?: boolean;
30
32
  /** Indicates whether the Agent is voice enabled for ACC and mobile */
31
33
  isVoiceEnabled?: boolean;
32
34
  /** display label of the agent */
@@ -51,6 +53,7 @@ export interface AgentforceAgentBotInfoRepresentation {
51
53
  errorMessage?: string;
52
54
  isDefault?: boolean;
53
55
  isSuccess: boolean;
56
+ isUserSkillsEnabled?: boolean;
54
57
  isVoiceEnabled?: boolean;
55
58
  label?: string;
56
59
  messagingChannels?: Array<MessagingChannelInfoRepresentation_MessagingChannelInfoRepresentation>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.456.0",
3
+ "version": "1.458.0",
4
4
  "description": "Einstein Copilot Bot API Family",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-einstein-copilot-bot.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.456.0"
43
+ "@salesforce/lds-bindings": "^1.458.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.456.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.458.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -359,7 +359,7 @@ function equals$k(existing, incoming) {
359
359
  return true;
360
360
  }
361
361
 
362
- const VERSION$j = "cf68a6675dbf94d7cf47a934ca7a85d3";
362
+ const VERSION$j = "2d4ada37263c79110685209e1033f411";
363
363
  function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
364
364
  const v_error = (() => {
365
365
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -405,6 +405,13 @@ function validate$q(obj, path = 'AgentforceAgentBotInfoRepresentation') {
405
405
  if (typeof obj_isSuccess !== 'boolean') {
406
406
  return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
407
407
  }
408
+ if (obj.isUserSkillsEnabled !== undefined) {
409
+ const obj_isUserSkillsEnabled = obj.isUserSkillsEnabled;
410
+ const path_isUserSkillsEnabled = path + '.isUserSkillsEnabled';
411
+ if (typeof obj_isUserSkillsEnabled !== 'boolean') {
412
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isUserSkillsEnabled + '" (at "' + path_isUserSkillsEnabled + '")');
413
+ }
414
+ }
408
415
  if (obj.isVoiceEnabled !== undefined) {
409
416
  const obj_isVoiceEnabled = obj.isVoiceEnabled;
410
417
  const path_isVoiceEnabled = path + '.isVoiceEnabled';
@@ -489,6 +496,11 @@ const select$t = function AgentforceAgentBotInfoRepresentationSelect() {
489
496
  name: 'isSuccess',
490
497
  kind: 'Scalar'
491
498
  },
499
+ {
500
+ name: 'isUserSkillsEnabled',
501
+ kind: 'Scalar',
502
+ required: false
503
+ },
492
504
  {
493
505
  name: 'isVoiceEnabled',
494
506
  kind: 'Scalar',
@@ -538,6 +550,19 @@ function equals$j(existing, incoming) {
538
550
  if (!(existing_isSuccess === incoming_isSuccess)) {
539
551
  return false;
540
552
  }
553
+ const existing_isUserSkillsEnabled = existing.isUserSkillsEnabled;
554
+ const incoming_isUserSkillsEnabled = incoming.isUserSkillsEnabled;
555
+ // if at least one of these optionals is defined
556
+ if (existing_isUserSkillsEnabled !== undefined || incoming_isUserSkillsEnabled !== undefined) {
557
+ // if one of these is not defined we know the other is defined and therefore
558
+ // not equal
559
+ if (existing_isUserSkillsEnabled === undefined || incoming_isUserSkillsEnabled === undefined) {
560
+ return false;
561
+ }
562
+ if (!(existing_isUserSkillsEnabled === incoming_isUserSkillsEnabled)) {
563
+ return false;
564
+ }
565
+ }
541
566
  const existing_isVoiceEnabled = existing.isVoiceEnabled;
542
567
  const incoming_isVoiceEnabled = incoming.isVoiceEnabled;
543
568
  // if at least one of these optionals is defined
@@ -973,7 +998,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
973
998
  function createResourceRequest$9(config) {
974
999
  const headers = {};
975
1000
  return {
976
- baseUri: '/services/data/v68.0',
1001
+ baseUri: '/services/data/v69.0',
977
1002
  basePath: '/connect/agentforce-agent-info',
978
1003
  method: 'get',
979
1004
  body: null,
@@ -1299,7 +1324,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
1299
1324
  function createResourceRequest$8(config) {
1300
1325
  const headers = {};
1301
1326
  return {
1302
- baseUri: '/services/data/v68.0',
1327
+ baseUri: '/services/data/v69.0',
1303
1328
  basePath: '/connect/conversation-runtime-proxy',
1304
1329
  method: 'get',
1305
1330
  body: null,
@@ -1567,7 +1592,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
1567
1592
  function createResourceRequest$7(config) {
1568
1593
  const headers = {};
1569
1594
  return {
1570
- baseUri: '/services/data/v68.0',
1595
+ baseUri: '/services/data/v69.0',
1571
1596
  basePath: '/connect/copilot/objects',
1572
1597
  method: 'get',
1573
1598
  body: null,
@@ -2074,7 +2099,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
2074
2099
  function createResourceRequest$6(config) {
2075
2100
  const headers = {};
2076
2101
  return {
2077
- baseUri: '/services/data/v68.0',
2102
+ baseUri: '/services/data/v69.0',
2078
2103
  basePath: '/connect/follow-up-actions',
2079
2104
  method: 'post',
2080
2105
  body: config.body,
@@ -2756,7 +2781,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
2756
2781
  function createResourceRequest$5(config) {
2757
2782
  const headers = {};
2758
2783
  return {
2759
- baseUri: '/services/data/v68.0',
2784
+ baseUri: '/services/data/v69.0',
2760
2785
  basePath: '/connect/recommended-actions',
2761
2786
  method: 'get',
2762
2787
  body: null,
@@ -3127,7 +3152,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
3127
3152
  function createResourceRequest$4(config) {
3128
3153
  const headers = {};
3129
3154
  return {
3130
- baseUri: '/services/data/v68.0',
3155
+ baseUri: '/services/data/v69.0',
3131
3156
  basePath: '/connect/recommended-plan-templates/' + config.urlParams.pageType + '/' + config.urlParams.objectType + '',
3132
3157
  method: 'get',
3133
3158
  body: null,
@@ -3380,7 +3405,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
3380
3405
  function createResourceRequest$3(config) {
3381
3406
  const headers = {};
3382
3407
  return {
3383
- baseUri: '/services/data/v68.0',
3408
+ baseUri: '/services/data/v69.0',
3384
3409
  basePath: '/connect/recommended-utterances',
3385
3410
  method: 'get',
3386
3411
  body: null,
@@ -3701,7 +3726,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
3701
3726
  function createResourceRequest$2(config) {
3702
3727
  const headers = {};
3703
3728
  return {
3704
- baseUri: '/services/data/v68.0',
3729
+ baseUri: '/services/data/v69.0',
3705
3730
  basePath: '/connect/welcome-utterances',
3706
3731
  method: 'get',
3707
3732
  body: null,
@@ -4949,7 +4974,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
4949
4974
  function createResourceRequest$1(config) {
4950
4975
  const headers = {};
4951
4976
  return {
4952
- baseUri: '/services/data/v68.0',
4977
+ baseUri: '/services/data/v69.0',
4953
4978
  basePath: '/connect/conversation-runtime-proxy',
4954
4979
  method: 'post',
4955
4980
  body: config.body,
@@ -5149,7 +5174,7 @@ function ingestSuccess(luvio, resourceParams, response) {
5149
5174
  function createResourceRequest(config) {
5150
5175
  const headers = {};
5151
5176
  return {
5152
- baseUri: '/services/data/v68.0',
5177
+ baseUri: '/services/data/v69.0',
5153
5178
  basePath: '/connect/copilot/feedback',
5154
5179
  method: 'post',
5155
5180
  body: config.body,
@@ -5346,4 +5371,4 @@ withDefaultLuvio((luvio) => {
5346
5371
  });
5347
5372
 
5348
5373
  export { getAgents, getAgents_imperative, getBotId, getBotId_imperative, getCopilotObjects, getCopilotObjects_imperative, getFollowUpActions, getFollowUpActions_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, getRecommendedUtterances, getRecommendedUtterances_imperative, getWelcomeUtterances, getWelcomeUtterances_imperative, sendMessage, submitFeedback };
5349
- // version: 1.456.0-6ed480b93c
5374
+ // version: 1.458.0-6d15707ed2
package/src/raml/api.raml CHANGED
@@ -6,7 +6,7 @@ version: '60.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
@@ -644,6 +644,10 @@ types:
644
644
  description: Indicates whether the Agent is voice enabled for ACC and mobile
645
645
  type: boolean
646
646
  required: false
647
+ isUserSkillsEnabled:
648
+ description: Indicates whether the agent has skills authored (per-agent).
649
+ type: boolean
650
+ required: false
647
651
  messagingChannels:
648
652
  description: List of EmbeddedMessaging channels provisioned for this Agent.
649
653
  type: array