@salesforce/lds-adapters-service-einstein-copilot-bot 1.308.0 → 1.309.0-dev11

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.
@@ -113,12 +113,19 @@ function createLink(ref) {
113
113
  }
114
114
 
115
115
  const TTL$7 = 30000;
116
- const VERSION$e = "ab85410a28124cfed3d8eae7b8236853";
116
+ const VERSION$e = "c27669d0d0ba84ade6d5a4c97336c0ef";
117
117
  function validate$l(obj, path = 'CopilotBotInfoRepresentation') {
118
118
  const v_error = (() => {
119
119
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
120
120
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
121
121
  }
122
+ if (obj.apiEndpoint !== undefined) {
123
+ const obj_apiEndpoint = obj.apiEndpoint;
124
+ const path_apiEndpoint = path + '.apiEndpoint';
125
+ if (typeof obj_apiEndpoint !== 'string') {
126
+ return new TypeError('Expected "string" but received "' + typeof obj_apiEndpoint + '" (at "' + path_apiEndpoint + '")');
127
+ }
128
+ }
122
129
  if (obj.botId !== undefined) {
123
130
  const obj_botId = obj.botId;
124
131
  const path_botId = path + '.botId';
@@ -138,6 +145,20 @@ function validate$l(obj, path = 'CopilotBotInfoRepresentation') {
138
145
  if (typeof obj_isSuccess !== 'boolean') {
139
146
  return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
140
147
  }
148
+ if (obj.targetRegion !== undefined) {
149
+ const obj_targetRegion = obj.targetRegion;
150
+ const path_targetRegion = path + '.targetRegion';
151
+ if (typeof obj_targetRegion !== 'string') {
152
+ return new TypeError('Expected "string" but received "' + typeof obj_targetRegion + '" (at "' + path_targetRegion + '")');
153
+ }
154
+ }
155
+ if (obj.tenantGuid !== undefined) {
156
+ const obj_tenantGuid = obj.tenantGuid;
157
+ const path_tenantGuid = path + '.tenantGuid';
158
+ if (typeof obj_tenantGuid !== 'string') {
159
+ return new TypeError('Expected "string" but received "' + typeof obj_tenantGuid + '" (at "' + path_tenantGuid + '")');
160
+ }
161
+ }
141
162
  })();
142
163
  return v_error === undefined ? null : v_error;
143
164
  }
@@ -151,6 +172,11 @@ const select$l = function CopilotBotInfoRepresentationSelect() {
151
172
  version: VERSION$e,
152
173
  private: [],
153
174
  selections: [
175
+ {
176
+ name: 'apiEndpoint',
177
+ kind: 'Scalar',
178
+ required: false
179
+ },
154
180
  {
155
181
  name: 'botId',
156
182
  kind: 'Scalar',
@@ -164,6 +190,16 @@ const select$l = function CopilotBotInfoRepresentationSelect() {
164
190
  {
165
191
  name: 'isSuccess',
166
192
  kind: 'Scalar'
193
+ },
194
+ {
195
+ name: 'targetRegion',
196
+ kind: 'Scalar',
197
+ required: false
198
+ },
199
+ {
200
+ name: 'tenantGuid',
201
+ kind: 'Scalar',
202
+ required: false
167
203
  }
168
204
  ]
169
205
  };
@@ -174,6 +210,19 @@ function equals$e(existing, incoming) {
174
210
  if (!(existing_isSuccess === incoming_isSuccess)) {
175
211
  return false;
176
212
  }
213
+ const existing_apiEndpoint = existing.apiEndpoint;
214
+ const incoming_apiEndpoint = incoming.apiEndpoint;
215
+ // if at least one of these optionals is defined
216
+ if (existing_apiEndpoint !== undefined || incoming_apiEndpoint !== undefined) {
217
+ // if one of these is not defined we know the other is defined and therefore
218
+ // not equal
219
+ if (existing_apiEndpoint === undefined || incoming_apiEndpoint === undefined) {
220
+ return false;
221
+ }
222
+ if (!(existing_apiEndpoint === incoming_apiEndpoint)) {
223
+ return false;
224
+ }
225
+ }
177
226
  const existing_botId = existing.botId;
178
227
  const incoming_botId = incoming.botId;
179
228
  // if at least one of these optionals is defined
@@ -200,6 +249,32 @@ function equals$e(existing, incoming) {
200
249
  return false;
201
250
  }
202
251
  }
252
+ const existing_targetRegion = existing.targetRegion;
253
+ const incoming_targetRegion = incoming.targetRegion;
254
+ // if at least one of these optionals is defined
255
+ if (existing_targetRegion !== undefined || incoming_targetRegion !== undefined) {
256
+ // if one of these is not defined we know the other is defined and therefore
257
+ // not equal
258
+ if (existing_targetRegion === undefined || incoming_targetRegion === undefined) {
259
+ return false;
260
+ }
261
+ if (!(existing_targetRegion === incoming_targetRegion)) {
262
+ return false;
263
+ }
264
+ }
265
+ const existing_tenantGuid = existing.tenantGuid;
266
+ const incoming_tenantGuid = incoming.tenantGuid;
267
+ // if at least one of these optionals is defined
268
+ if (existing_tenantGuid !== undefined || incoming_tenantGuid !== undefined) {
269
+ // if one of these is not defined we know the other is defined and therefore
270
+ // not equal
271
+ if (existing_tenantGuid === undefined || incoming_tenantGuid === undefined) {
272
+ return false;
273
+ }
274
+ if (!(existing_tenantGuid === incoming_tenantGuid)) {
275
+ return false;
276
+ }
277
+ }
203
278
  return true;
204
279
  }
205
280
  const ingest$7 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -2599,7 +2674,7 @@ function validate$4(obj, path = 'FollowUpActionsInputRepresentation') {
2599
2674
  return v_error === undefined ? null : v_error;
2600
2675
  }
2601
2676
 
2602
- const VERSION$3 = "38e904794d03177700e02a0dbd234d01";
2677
+ const VERSION$3 = "f3b8da658dda1468e0357f1fad159c79";
2603
2678
  function validate$3(obj, path = 'FollowUpActionsRepresentation') {
2604
2679
  const v_error = (() => {
2605
2680
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2615,13 +2690,6 @@ function validate$3(obj, path = 'FollowUpActionsRepresentation') {
2615
2690
  if (obj_blockRenderers === undefined) {
2616
2691
  return new TypeError('Expected "defined" but received "' + typeof obj_blockRenderers + '" (at "' + path_blockRenderers + '")');
2617
2692
  }
2618
- if (obj.descriptor !== undefined) {
2619
- const obj_descriptor = obj.descriptor;
2620
- const path_descriptor = path + '.descriptor';
2621
- if (typeof obj_descriptor !== 'string') {
2622
- return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
2623
- }
2624
- }
2625
2693
  })();
2626
2694
  return v_error === undefined ? null : v_error;
2627
2695
  }
@@ -2640,29 +2708,11 @@ const select$5 = function FollowUpActionsRepresentationSelect() {
2640
2708
  name: 'blockRenderers',
2641
2709
  kind: 'Object',
2642
2710
  // any
2643
- },
2644
- {
2645
- name: 'descriptor',
2646
- kind: 'Scalar',
2647
- required: false
2648
2711
  }
2649
2712
  ]
2650
2713
  };
2651
2714
  };
2652
2715
  function equals$3(existing, incoming) {
2653
- const existing_descriptor = existing.descriptor;
2654
- const incoming_descriptor = incoming.descriptor;
2655
- // if at least one of these optionals is defined
2656
- if (existing_descriptor !== undefined || incoming_descriptor !== undefined) {
2657
- // if one of these is not defined we know the other is defined and therefore
2658
- // not equal
2659
- if (existing_descriptor === undefined || incoming_descriptor === undefined) {
2660
- return false;
2661
- }
2662
- if (!(existing_descriptor === incoming_descriptor)) {
2663
- return false;
2664
- }
2665
- }
2666
2716
  const existing_actions = existing.actions;
2667
2717
  const incoming_actions = incoming.actions;
2668
2718
  if (JSONStringify(incoming_actions) !== JSONStringify(existing_actions)) {
@@ -1,6 +1,6 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const TTL = 30000;
3
- export declare const VERSION = "ab85410a28124cfed3d8eae7b8236853";
3
+ export declare const VERSION = "c27669d0d0ba84ade6d5a4c97336c0ef";
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: CopilotBotInfoRepresentation, existing: CopilotBotInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CopilotBotInfoRepresentationNormalized;
@@ -15,12 +15,18 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  * (none)
16
16
  */
17
17
  export interface CopilotBotInfoRepresentationNormalized {
18
+ /** Target runtime API endpoint - send traffic here. can be a targeted MESH endpoint, or an SFAP URL */
19
+ apiEndpoint?: string;
18
20
  /** ID of the internal Copilot Bot. */
19
21
  botId?: string;
20
22
  /** Error message for the failed get operation. */
21
23
  errorMessage?: string;
22
24
  /** Success indicator of the get operation. */
23
25
  isSuccess: boolean;
26
+ /** Target runtime region - pass through x-salesforce-region header for SFAP */
27
+ targetRegion?: string;
28
+ /** Core C2C tenant GUID - pass through x-sfdc-tenant-id header for SFAP */
29
+ tenantGuid?: string;
24
30
  }
25
31
  /**
26
32
  * Represents the results of a get internal copilot bot id request
@@ -29,7 +35,10 @@ export interface CopilotBotInfoRepresentationNormalized {
29
35
  * (none)
30
36
  */
31
37
  export interface CopilotBotInfoRepresentation {
38
+ apiEndpoint?: string;
32
39
  botId?: string;
33
40
  errorMessage?: string;
34
41
  isSuccess: boolean;
42
+ targetRegion?: string;
43
+ tenantGuid?: string;
35
44
  }
@@ -1,5 +1,5 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "38e904794d03177700e02a0dbd234d01";
2
+ export declare const VERSION = "f3b8da658dda1468e0357f1fad159c79";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: FollowUpActionsRepresentation, existing: FollowUpActionsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FollowUpActionsRepresentationNormalized;
@@ -16,7 +16,6 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  export interface FollowUpActionsRepresentationNormalized {
17
17
  actions: unknown;
18
18
  blockRenderers: unknown;
19
- descriptor?: string;
20
19
  }
21
20
  /**
22
21
  * basic output item type of /connect/follow-up-actions endpoint
@@ -27,5 +26,4 @@ export interface FollowUpActionsRepresentationNormalized {
27
26
  export interface FollowUpActionsRepresentation {
28
27
  actions: unknown;
29
28
  blockRenderers: unknown;
30
- descriptor?: string;
31
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.308.0",
3
+ "version": "1.309.0-dev11",
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.308.0"
43
+ "@salesforce/lds-bindings": "^1.309.0-dev11"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.308.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.309.0-dev11"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -123,12 +123,19 @@ function createLink(ref) {
123
123
  }
124
124
 
125
125
  const TTL$7 = 30000;
126
- const VERSION$e = "ab85410a28124cfed3d8eae7b8236853";
126
+ const VERSION$e = "c27669d0d0ba84ade6d5a4c97336c0ef";
127
127
  function validate$l(obj, path = 'CopilotBotInfoRepresentation') {
128
128
  const v_error = (() => {
129
129
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
130
130
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
131
131
  }
132
+ if (obj.apiEndpoint !== undefined) {
133
+ const obj_apiEndpoint = obj.apiEndpoint;
134
+ const path_apiEndpoint = path + '.apiEndpoint';
135
+ if (typeof obj_apiEndpoint !== 'string') {
136
+ return new TypeError('Expected "string" but received "' + typeof obj_apiEndpoint + '" (at "' + path_apiEndpoint + '")');
137
+ }
138
+ }
132
139
  if (obj.botId !== undefined) {
133
140
  const obj_botId = obj.botId;
134
141
  const path_botId = path + '.botId';
@@ -148,6 +155,20 @@ function validate$l(obj, path = 'CopilotBotInfoRepresentation') {
148
155
  if (typeof obj_isSuccess !== 'boolean') {
149
156
  return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
150
157
  }
158
+ if (obj.targetRegion !== undefined) {
159
+ const obj_targetRegion = obj.targetRegion;
160
+ const path_targetRegion = path + '.targetRegion';
161
+ if (typeof obj_targetRegion !== 'string') {
162
+ return new TypeError('Expected "string" but received "' + typeof obj_targetRegion + '" (at "' + path_targetRegion + '")');
163
+ }
164
+ }
165
+ if (obj.tenantGuid !== undefined) {
166
+ const obj_tenantGuid = obj.tenantGuid;
167
+ const path_tenantGuid = path + '.tenantGuid';
168
+ if (typeof obj_tenantGuid !== 'string') {
169
+ return new TypeError('Expected "string" but received "' + typeof obj_tenantGuid + '" (at "' + path_tenantGuid + '")');
170
+ }
171
+ }
151
172
  })();
152
173
  return v_error === undefined ? null : v_error;
153
174
  }
@@ -161,6 +182,11 @@ const select$l = function CopilotBotInfoRepresentationSelect() {
161
182
  version: VERSION$e,
162
183
  private: [],
163
184
  selections: [
185
+ {
186
+ name: 'apiEndpoint',
187
+ kind: 'Scalar',
188
+ required: false
189
+ },
164
190
  {
165
191
  name: 'botId',
166
192
  kind: 'Scalar',
@@ -174,6 +200,16 @@ const select$l = function CopilotBotInfoRepresentationSelect() {
174
200
  {
175
201
  name: 'isSuccess',
176
202
  kind: 'Scalar'
203
+ },
204
+ {
205
+ name: 'targetRegion',
206
+ kind: 'Scalar',
207
+ required: false
208
+ },
209
+ {
210
+ name: 'tenantGuid',
211
+ kind: 'Scalar',
212
+ required: false
177
213
  }
178
214
  ]
179
215
  };
@@ -184,6 +220,19 @@ function equals$e(existing, incoming) {
184
220
  if (!(existing_isSuccess === incoming_isSuccess)) {
185
221
  return false;
186
222
  }
223
+ const existing_apiEndpoint = existing.apiEndpoint;
224
+ const incoming_apiEndpoint = incoming.apiEndpoint;
225
+ // if at least one of these optionals is defined
226
+ if (existing_apiEndpoint !== undefined || incoming_apiEndpoint !== undefined) {
227
+ // if one of these is not defined we know the other is defined and therefore
228
+ // not equal
229
+ if (existing_apiEndpoint === undefined || incoming_apiEndpoint === undefined) {
230
+ return false;
231
+ }
232
+ if (!(existing_apiEndpoint === incoming_apiEndpoint)) {
233
+ return false;
234
+ }
235
+ }
187
236
  const existing_botId = existing.botId;
188
237
  const incoming_botId = incoming.botId;
189
238
  // if at least one of these optionals is defined
@@ -210,6 +259,32 @@ function equals$e(existing, incoming) {
210
259
  return false;
211
260
  }
212
261
  }
262
+ const existing_targetRegion = existing.targetRegion;
263
+ const incoming_targetRegion = incoming.targetRegion;
264
+ // if at least one of these optionals is defined
265
+ if (existing_targetRegion !== undefined || incoming_targetRegion !== undefined) {
266
+ // if one of these is not defined we know the other is defined and therefore
267
+ // not equal
268
+ if (existing_targetRegion === undefined || incoming_targetRegion === undefined) {
269
+ return false;
270
+ }
271
+ if (!(existing_targetRegion === incoming_targetRegion)) {
272
+ return false;
273
+ }
274
+ }
275
+ const existing_tenantGuid = existing.tenantGuid;
276
+ const incoming_tenantGuid = incoming.tenantGuid;
277
+ // if at least one of these optionals is defined
278
+ if (existing_tenantGuid !== undefined || incoming_tenantGuid !== undefined) {
279
+ // if one of these is not defined we know the other is defined and therefore
280
+ // not equal
281
+ if (existing_tenantGuid === undefined || incoming_tenantGuid === undefined) {
282
+ return false;
283
+ }
284
+ if (!(existing_tenantGuid === incoming_tenantGuid)) {
285
+ return false;
286
+ }
287
+ }
213
288
  return true;
214
289
  }
215
290
  const ingest$7 = function CopilotBotInfoRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -810,7 +885,7 @@ function validate$d(obj, path = 'FollowUpActionsInputRepresentation') {
810
885
  return v_error === undefined ? null : v_error;
811
886
  }
812
887
 
813
- const VERSION$b = "38e904794d03177700e02a0dbd234d01";
888
+ const VERSION$b = "f3b8da658dda1468e0357f1fad159c79";
814
889
  function validate$c(obj, path = 'FollowUpActionsRepresentation') {
815
890
  const v_error = (() => {
816
891
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -826,13 +901,6 @@ function validate$c(obj, path = 'FollowUpActionsRepresentation') {
826
901
  if (obj_blockRenderers === undefined) {
827
902
  return new TypeError('Expected "defined" but received "' + typeof obj_blockRenderers + '" (at "' + path_blockRenderers + '")');
828
903
  }
829
- if (obj.descriptor !== undefined) {
830
- const obj_descriptor = obj.descriptor;
831
- const path_descriptor = path + '.descriptor';
832
- if (typeof obj_descriptor !== 'string') {
833
- return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
834
- }
835
- }
836
904
  })();
837
905
  return v_error === undefined ? null : v_error;
838
906
  }
@@ -851,29 +919,11 @@ const select$g = function FollowUpActionsRepresentationSelect() {
851
919
  name: 'blockRenderers',
852
920
  kind: 'Object',
853
921
  // any
854
- },
855
- {
856
- name: 'descriptor',
857
- kind: 'Scalar',
858
- required: false
859
922
  }
860
923
  ]
861
924
  };
862
925
  };
863
926
  function equals$b(existing, incoming) {
864
- const existing_descriptor = existing.descriptor;
865
- const incoming_descriptor = incoming.descriptor;
866
- // if at least one of these optionals is defined
867
- if (existing_descriptor !== undefined || incoming_descriptor !== undefined) {
868
- // if one of these is not defined we know the other is defined and therefore
869
- // not equal
870
- if (existing_descriptor === undefined || incoming_descriptor === undefined) {
871
- return false;
872
- }
873
- if (!(existing_descriptor === incoming_descriptor)) {
874
- return false;
875
- }
876
- }
877
927
  const existing_actions = existing.actions;
878
928
  const incoming_actions = incoming.actions;
879
929
  if (JSONStringify(incoming_actions) !== JSONStringify(existing_actions)) {
@@ -3713,4 +3763,4 @@ withDefaultLuvio((luvio) => {
3713
3763
  });
3714
3764
 
3715
3765
  export { getBotId, getBotId_imperative, getCopilotObjects, getCopilotObjects_imperative, getFollowUpActions, getFollowUpActions_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, sendMessage, submitFeedback };
3716
- // version: 1.308.0-e148a73d6a
3766
+ // version: 1.309.0-dev11-e18434ec95
package/src/raml/api.raml CHANGED
@@ -225,6 +225,18 @@ types:
225
225
  description: ID of the internal Copilot Bot.
226
226
  type: string
227
227
  required: false
228
+ tenantGuid:
229
+ description: Core C2C tenant GUID - pass through x-sfdc-tenant-id header for SFAP
230
+ type: string
231
+ required: false
232
+ targetRegion:
233
+ description: Target runtime region - pass through x-salesforce-region header for SFAP
234
+ type: string
235
+ required: false
236
+ apiEndpoint:
237
+ description: Target runtime API endpoint - send traffic here. can be a targeted MESH endpoint, or an SFAP URL
238
+ type: string
239
+ required: false
228
240
  errorMessage:
229
241
  description: Error message for the failed get operation.
230
242
  type: string
@@ -369,9 +381,6 @@ types:
369
381
  description: basic output item type of /connect/follow-up-actions endpoint
370
382
  type: object
371
383
  properties:
372
- descriptor:
373
- type: string
374
- required: false
375
384
  actions:
376
385
  type: any
377
386
  blockRenderers: