@salesforce/lds-adapters-service-einstein-copilot-bot 1.266.0-dev17 → 1.266.0-dev19

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/src/raml/api.raml CHANGED
@@ -32,9 +32,11 @@ types:
32
32
  data:
33
33
  description: Data for the collect message.
34
34
  type: EsTypeMessageRepresentation
35
+ required: false
35
36
  targetProperty:
36
37
  description: Target property for the collect message.
37
38
  type: string | nil
39
+ required: false
38
40
  targetType:
39
41
  description: Target type for the collect message.
40
42
  type: string
@@ -56,12 +58,24 @@ types:
56
58
  description: Message ID that this message is replying to
57
59
  type: string
58
60
  required: false
61
+ intent:
62
+ description: Intent
63
+ type: string
64
+ required: false
59
65
  messageType:
60
66
  description: Message type
61
67
  type: string
62
68
  required: false
63
69
  enum:
64
70
  - Reply
71
+ planId:
72
+ description: PlanId
73
+ type: string
74
+ required: false
75
+ planTemplateVariables:
76
+ description: Additional Plan Templates Variables
77
+ type: any
78
+ required: false
65
79
  reply:
66
80
  description: Reply
67
81
  type: array
@@ -79,8 +93,13 @@ types:
79
93
  enum:
80
94
  - Cancel
81
95
  - EsMessage
96
+ - PlanTemplate
82
97
  - SetVariables
83
98
  - Text
99
+ userUtterance:
100
+ description: UserUtterance
101
+ type: string
102
+ required: false
84
103
  variables:
85
104
  description: Variables
86
105
  type: array
@@ -122,6 +141,7 @@ types:
122
141
  feedbackId:
123
142
  description: Feedback ID for this generated message.
124
143
  type: string | nil
144
+ required: false
125
145
  id:
126
146
  description: Unique id of this message
127
147
  type: string
@@ -136,6 +156,7 @@ types:
136
156
  planId:
137
157
  description: Plan ID for the generated plan.
138
158
  type: string | nil
159
+ required: false
139
160
  result:
140
161
  description: The result response for an Inform message.
141
162
  type: array
@@ -214,6 +235,7 @@ types:
214
235
  property:
215
236
  description: Property for the ES type message.
216
237
  type: string | nil
238
+ required: false
217
239
  type:
218
240
  description: Type for the ES type message.
219
241
  type: string
@@ -230,6 +252,48 @@ types:
230
252
  value:
231
253
  description: Value of the variable
232
254
  type: string
255
+ required: false
256
+ PlanTemplateRepresentation:
257
+ description: Represents a plan template which can be executed by a Copilot client.
258
+ type: object
259
+ properties:
260
+ intent:
261
+ description: Intent used by Planner when executing this plan template.
262
+ type: string
263
+ label:
264
+ description: Label to display when rendering this plan template in a Copilot
265
+ client.
266
+ type: string
267
+ planTemplateId:
268
+ description: ID of a plan template.
269
+ type: string
270
+ userUtterance:
271
+ description: User utterance to be recorded in conversation history by Planner
272
+ when executing this plan template.
273
+ type: string
274
+ variables:
275
+ description: Variables for executing this plan template.
276
+ type: object
277
+ properties:
278
+ //:
279
+ type: string
280
+ RecommendedPlanTemplatesRepresentation:
281
+ description: Represents the result of a get recommended plan templates request.
282
+ type: object
283
+ properties:
284
+ errorMessage:
285
+ description: Error message for the failed get operation.
286
+ type: string
287
+ required: false
288
+ isSuccess:
289
+ description: Success indicator of the get operation.
290
+ type: boolean
291
+ planTemplates:
292
+ description: Recommended plan templates.
293
+ type: array
294
+ items:
295
+ type: PlanTemplateRepresentation
296
+
233
297
  /connect:
234
298
  /conversation-runtime-proxy:
235
299
  get:
@@ -267,3 +331,20 @@ types:
267
331
  application/json:
268
332
  type: ConversationRuntimeProxyInputRepresentation
269
333
  (oas-body-name): postBody
334
+ /recommended-plan-templates/{pageType}/{objectType}:
335
+ get:
336
+ displayName: getRecommendedPlanTemplates
337
+ description: Gets a list of recommended plan templates based on the page/app
338
+ responses:
339
+ '200':
340
+ description: Success
341
+ body:
342
+ application/json:
343
+ type: RecommendedPlanTemplatesRepresentation
344
+ uriParameters:
345
+ pageType:
346
+ type: string
347
+ required: true
348
+ objectType:
349
+ type: string
350
+ required: true
@@ -25,6 +25,10 @@ types:
25
25
  (luvio.ttl): 30000
26
26
  VariableRepresentation:
27
27
  (luvio.ttl): 30000
28
+ PlanTemplateRepresentation:
29
+ (luvio.ttl): 900000
30
+ RecommendedPlanTemplatesRepresentation:
31
+ (luvio.ttl): 900000
28
32
 
29
33
  /connect:
30
34
  /conversation-runtime-proxy:
@@ -34,3 +38,7 @@ types:
34
38
  post:
35
39
  (luvio.adapter):
36
40
  name: sendMessage
41
+ /recommended-plan-templates/{pageType}/{objectType}:
42
+ get:
43
+ (luvio.adapter):
44
+ name: getRecommendedPlanTemplates