@salesforce/lds-adapters-service-einstein-copilot-bot 0.1.0-dev1

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.
Files changed (61) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/service-einstein-copilot-bot.js +4895 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getAgents.d.ts +28 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getBotId.d.ts +27 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getCopilotObjects.d.ts +28 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getFollowUpActions.d.ts +29 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getRecommendedActions.d.ts +34 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getRecommendedPlanTemplates.d.ts +28 -0
  10. package/dist/es/es2018/types/src/generated/adapters/getRecommendedUtterances.d.ts +28 -0
  11. package/dist/es/es2018/types/src/generated/adapters/getWelcomeUtterances.d.ts +27 -0
  12. package/dist/es/es2018/types/src/generated/adapters/sendMessage.d.ts +30 -0
  13. package/dist/es/es2018/types/src/generated/adapters/submitFeedback.d.ts +21 -0
  14. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +10 -0
  15. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +19 -0
  16. package/dist/es/es2018/types/src/generated/resources/getConnectAgentforceAgentInfo.d.ts +16 -0
  17. package/dist/es/es2018/types/src/generated/resources/getConnectConversationRuntimeProxy.d.ts +15 -0
  18. package/dist/es/es2018/types/src/generated/resources/getConnectCopilotObjects.d.ts +16 -0
  19. package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedActions.d.ts +22 -0
  20. package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedPlanTemplatesByPageTypeAndObjectType.d.ts +16 -0
  21. package/dist/es/es2018/types/src/generated/resources/getConnectRecommendedUtterances.d.ts +16 -0
  22. package/dist/es/es2018/types/src/generated/resources/getConnectWelcomeUtterances.d.ts +15 -0
  23. package/dist/es/es2018/types/src/generated/resources/postConnectConversationRuntimeProxy.d.ts +29 -0
  24. package/dist/es/es2018/types/src/generated/resources/postConnectCopilotFeedback.d.ts +18 -0
  25. package/dist/es/es2018/types/src/generated/resources/postConnectFollowUpActions.d.ts +17 -0
  26. package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoListRepresentation.d.ts +51 -0
  27. package/dist/es/es2018/types/src/generated/types/AgentforceAgentBotInfoRepresentation.d.ts +52 -0
  28. package/dist/es/es2018/types/src/generated/types/CollectMessageRepresentation.d.ts +35 -0
  29. package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyChoiceRepresentation.d.ts +32 -0
  30. package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyInputRepresentation.d.ts +57 -0
  31. package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyMessageRepresentation.d.ts +83 -0
  32. package/dist/es/es2018/types/src/generated/types/ConversationRuntimeProxyRepresentation.d.ts +63 -0
  33. package/dist/es/es2018/types/src/generated/types/CopilotBotInfoRepresentation.d.ts +44 -0
  34. package/dist/es/es2018/types/src/generated/types/CopilotFollowUpActionsRepresentation.d.ts +36 -0
  35. package/dist/es/es2018/types/src/generated/types/CopilotLLMFeedbackInputRepresentation.d.ts +44 -0
  36. package/dist/es/es2018/types/src/generated/types/CopilotLLMFeedbackOutputRepresentation.d.ts +38 -0
  37. package/dist/es/es2018/types/src/generated/types/CopilotObjectInfoRepresentation.d.ts +31 -0
  38. package/dist/es/es2018/types/src/generated/types/CopilotObjectListRepresentation.d.ts +30 -0
  39. package/dist/es/es2018/types/src/generated/types/CopilotQuickActionRepresentation.d.ts +75 -0
  40. package/dist/es/es2018/types/src/generated/types/EsTypeMessageRepresentation.d.ts +35 -0
  41. package/dist/es/es2018/types/src/generated/types/FollowUpActionsDesignConfigRepresentation.d.ts +29 -0
  42. package/dist/es/es2018/types/src/generated/types/FollowUpActionsFilterConfigRepresentation.d.ts +28 -0
  43. package/dist/es/es2018/types/src/generated/types/FollowUpActionsInputRepresentation.d.ts +40 -0
  44. package/dist/es/es2018/types/src/generated/types/FollowUpActionsListInputRepresentation.d.ts +32 -0
  45. package/dist/es/es2018/types/src/generated/types/FollowUpActionsRenditionConfigRepresentation.d.ts +29 -0
  46. package/dist/es/es2018/types/src/generated/types/FollowUpActionsRepresentation.d.ts +31 -0
  47. package/dist/es/es2018/types/src/generated/types/FollowUpActionsSchemaConfigRepresentation.d.ts +31 -0
  48. package/dist/es/es2018/types/src/generated/types/FollowUpActionsSourceDescriptorRepresentation.d.ts +29 -0
  49. package/dist/es/es2018/types/src/generated/types/PlanTemplateRepresentation.d.ts +45 -0
  50. package/dist/es/es2018/types/src/generated/types/RecommendedActionsRepresentation.d.ts +36 -0
  51. package/dist/es/es2018/types/src/generated/types/RecommendedPlanTemplatesRepresentation.d.ts +36 -0
  52. package/dist/es/es2018/types/src/generated/types/RecommendedUtterancesRepresentation.d.ts +35 -0
  53. package/dist/es/es2018/types/src/generated/types/VariableRepresentation.d.ts +35 -0
  54. package/dist/es/es2018/types/src/generated/types/WelcomeTopicSuggestedUtterancesRepresentation.d.ts +30 -0
  55. package/dist/es/es2018/types/src/generated/types/WelcomeUtterancesRepresentation.d.ts +36 -0
  56. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  57. package/package.json +66 -0
  58. package/sfdc/index.d.ts +1 -0
  59. package/sfdc/index.js +5019 -0
  60. package/src/raml/api.raml +873 -0
  61. package/src/raml/luvio.raml +92 -0
@@ -0,0 +1,873 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '60.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v66.0
10
+ securitySchemes:
11
+ OAuth2:
12
+ type: OAuth 2.0
13
+ settings:
14
+ authorizationUri: https://example.com/oauth/authorize
15
+ accessTokenUri: ''
16
+ authorizationGrants:
17
+ - implicit
18
+ annotationTypes:
19
+ oas-readOnly:
20
+ type: boolean
21
+ allowedTargets: TypeDeclaration
22
+ oas-collectionFormat:
23
+ type: string
24
+ oas-body-name:
25
+ type: string
26
+ allowedTargets: TypeDeclaration
27
+ types:
28
+ CollectMessageRepresentation:
29
+ description: Represents a collect message
30
+ type: object
31
+ properties:
32
+ data:
33
+ description: Data for the collect message.
34
+ type: EsTypeMessageRepresentation
35
+ required: false
36
+ targetProperty:
37
+ description: Target property for the collect message.
38
+ type: string | nil
39
+ required: false
40
+ targetType:
41
+ description: Target type for the collect message.
42
+ type: string
43
+ ConversationRuntimeProxyChoiceRepresentation:
44
+ description: Represents a choice from the bot
45
+ type: object
46
+ properties:
47
+ alias:
48
+ description: Alias to be used if menu/button ui elements cannot be used.
49
+ type: string
50
+ label:
51
+ description: Label for the choice menu/button text.
52
+ type: string
53
+ ConversationRuntimeProxyInputRepresentation:
54
+ description: Bot conversation input
55
+ type: object
56
+ properties:
57
+ inReplyToMessageId:
58
+ description: Message ID that this message is replying to
59
+ type: string
60
+ required: false
61
+ intent:
62
+ description: Intent
63
+ type: string
64
+ required: false
65
+ messageType:
66
+ description: Message type
67
+ type: string
68
+ required: false
69
+ enum:
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
79
+ reply:
80
+ description: Reply
81
+ type: array
82
+ required: false
83
+ items:
84
+ type: EsTypeMessageRepresentation
85
+ text:
86
+ description: Text
87
+ type: string
88
+ required: false
89
+ type:
90
+ description: Type
91
+ type: string
92
+ required: false
93
+ enum:
94
+ - Cancel
95
+ - EsMessage
96
+ - PlanTemplate
97
+ - SetVariables
98
+ - Text
99
+ variables:
100
+ description: Variables
101
+ type: array
102
+ required: false
103
+ items:
104
+ type: VariableRepresentation
105
+ userUtterance:
106
+ description: UserUtterance
107
+ type: string
108
+ required: false
109
+ ConversationRuntimeProxyMessageRepresentation:
110
+ description: Represents a message from the bot
111
+ type: object
112
+ properties:
113
+ choices:
114
+ description: The choices for this message, if applicable for the type.
115
+ type: array
116
+ required: false
117
+ items:
118
+ type: ConversationRuntimeProxyChoiceRepresentation
119
+ collect:
120
+ description: The collect response for an Inquire message.
121
+ type: array
122
+ required: false
123
+ items:
124
+ type: CollectMessageRepresentation
125
+ confirm:
126
+ description: The confirm response for a Confirm message.
127
+ type: array
128
+ required: false
129
+ items:
130
+ type: EsTypeMessageRepresentation
131
+ errors:
132
+ description: The errors for a Failure message.
133
+ type: array
134
+ required: false
135
+ items:
136
+ type: string
137
+ failureCode:
138
+ description: The failure code for a Failure message.
139
+ type: string | nil
140
+ required: false
141
+ feedbackId:
142
+ description: Feedback ID for this generated message.
143
+ type: string | nil
144
+ required: false
145
+ id:
146
+ description: Unique id of this message
147
+ type: string
148
+ message:
149
+ description: The message for an ES Type message.
150
+ type: string | nil
151
+ required: false
152
+ messageType:
153
+ description: The message type for an ES Type message.
154
+ type: string | nil
155
+ required: false
156
+ planId:
157
+ description: Plan ID for the generated plan.
158
+ type: string | nil
159
+ required: false
160
+ result:
161
+ description: The result response for an Inform message.
162
+ type: array
163
+ required: false
164
+ items:
165
+ type: EsTypeMessageRepresentation
166
+ text:
167
+ description: The message text, if applicable for the type.
168
+ type: string | nil
169
+ required: false
170
+ type:
171
+ description: Type of the message
172
+ type: string
173
+ required: false
174
+ enum:
175
+ - Choices
176
+ - EsType
177
+ - Escalate
178
+ - MessageDefinition
179
+ - SessionEnded
180
+ - Text
181
+ widget:
182
+ description: Which widget, if the type is a choice.
183
+ type: string | nil
184
+ required: false
185
+ enum:
186
+ - Buttons
187
+ - Menu
188
+ isContentSafe:
189
+ description: Flag to indicate if content is safe
190
+ type: boolean
191
+ required: false
192
+ ConversationRuntimeProxyRepresentation:
193
+ description: Represents the results of a conversation runtime proxy message request
194
+ type: object
195
+ properties:
196
+ botId:
197
+ description: BotId of the bot the runtime is using for this conversation.
198
+ type: string
199
+ botVersion:
200
+ description: BotVersion id of the bot version the runtime is using for this
201
+ conversation.
202
+ type: string
203
+ messages:
204
+ description: Messages returned by the bot for this request.
205
+ type: array
206
+ items:
207
+ type: ConversationRuntimeProxyMessageRepresentation
208
+ processedSequenceIds:
209
+ description: SequenceIds that were processed in this transaction.
210
+ type: array
211
+ items:
212
+ type: string
213
+ requestId:
214
+ description: Request ID for this request.
215
+ type: string
216
+ sessionId:
217
+ description: SessionId to be used in future messages sent to the runtime engine.
218
+ Allows continuing a conversation.
219
+ type: string
220
+ CopilotBotInfoRepresentation:
221
+ description: Represents the results of a get internal copilot bot id request
222
+ type: object
223
+ properties:
224
+ botId:
225
+ description: ID of the internal Copilot bot ID - used in the URL when starting agent sessions
226
+ type: string
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
240
+ errorMessage:
241
+ description: Error message for the failed get operation.
242
+ type: string
243
+ required: false
244
+ isSuccess:
245
+ description: Success indicator of the get operation.
246
+ type: boolean
247
+ CopilotFollowUpActionsRepresentation:
248
+ description: Copilot FollowUp Actions resource output
249
+ type: object
250
+ properties:
251
+ actions:
252
+ description: list of actions. position in this list matches position of query in input FollowUpActionsListInputRepresentation. nil unless isSuccess = true.
253
+ type: array
254
+ items: FollowUpActionsRepresentation
255
+ isSuccess:
256
+ type: boolean
257
+ description: indicates success or failure
258
+ errorMessage:
259
+ type: string
260
+ required: false
261
+ description: optional error message. present only if isSuccess = false.
262
+ CopilotLLMFeedbackInputRepresentation:
263
+ description: Copilot LLM feedback input
264
+ type: object
265
+ properties:
266
+ details:
267
+ description: details
268
+ type: object
269
+ properties:
270
+ //:
271
+ type: any # TODO Hand-rolled W-886340
272
+ feedback:
273
+ description: Structured feedback enum, thumbs up/down, good/bad
274
+ type: string
275
+ enum:
276
+ - Bad
277
+ - Good
278
+ feedbackId:
279
+ description: Feedback ID
280
+ type: string
281
+ sessionId:
282
+ description: Session ID
283
+ type: string
284
+ text:
285
+ description: User provided long-form feedback
286
+ type: string
287
+ CopilotLLMFeedbackOutputRepresentation:
288
+ description: CopilotLLMFeedback
289
+ type: object
290
+ properties:
291
+ submitFeedbackStatus:
292
+ description: Bot Runtime feedback response
293
+ type: string
294
+ CopilotObjectInfoRepresentation:
295
+ description: Object information, includes object api name and label
296
+ type: object
297
+ properties:
298
+ apiName:
299
+ description: The object API name
300
+ type: string
301
+ label:
302
+ description: The object label
303
+ type: string
304
+ CopilotObjectListRepresentation:
305
+ description: List of objects that can be used within UI API end-points
306
+ type: object
307
+ properties:
308
+ objects:
309
+ description: List of objects
310
+ type: array
311
+ items:
312
+ type: CopilotObjectInfoRepresentation
313
+ CopilotQuickActionRepresentation:
314
+ description: Represents a Copilot QuickAction which can be executed by a Copilot client.
315
+ type: object
316
+ properties:
317
+ type:
318
+ description: Type of Copilot QuickAction.
319
+ type: string
320
+ required: false
321
+ label:
322
+ description: Label to display when rendering Copilot QuickAction.
323
+ type: string
324
+ required: false
325
+ icon:
326
+ description: Icon name for the Recommended Action to be used by the client when rendering the QuickAction in the UI.
327
+ type: string
328
+ required: false
329
+ description:
330
+ description: Description of Copilot QuickAction.
331
+ type: string
332
+ required: false
333
+ planTemplateId:
334
+ description: Plan TemplateId associated to the Copilot QuickAction.
335
+ type: string
336
+ required: false
337
+ intent:
338
+ description: Intent associated to the Copilot QuickAction which is used by the planner.
339
+ type: string
340
+ required: false
341
+ userUtterance:
342
+ description: User utterance to be recorded in conversation history by Planner when executing this Copilot Quick Action.
343
+ type: string
344
+ required: false
345
+ actionApiName:
346
+ description: Api name of Copilot QuickAction.
347
+ type: string
348
+ required: false
349
+ createdDate:
350
+ description: Creation date of Copilot QuickAction.
351
+ type: string
352
+ required: false
353
+ lastModifiedDate:
354
+ description: Last Modified date of Copilot QuickAction
355
+ type: string
356
+ required: false
357
+ isGlobal:
358
+ description: Is the copilot QuickAction global or not.
359
+ type: boolean
360
+ required: false
361
+ planTemplateInput:
362
+ description: Input Variables for executing this plan template.
363
+ type: object
364
+ required: false
365
+ properties:
366
+ //:
367
+ type: string
368
+ isStandard:
369
+ description: Is the Copilot QuickAction a standard Action.
370
+ type: boolean
371
+ required: false
372
+ orgAccess:
373
+ description: Level of Org access required for this QuickAction to be visible for the org.
374
+ type: string
375
+ required: false
376
+ namespace:
377
+ description: Namespace of the Copilot QuickAction
378
+ type: string
379
+ required: false
380
+ FollowUpActionsRepresentation:
381
+ description: basic output item type of /connect/follow-up-actions endpoint
382
+ type: object
383
+ properties:
384
+ descriptor:
385
+ type: string
386
+ required: false
387
+ actions:
388
+ type: any
389
+ blockRenderers:
390
+ type: any
391
+ FollowUpActionsListInputRepresentation:
392
+ description: top-level input type to FollowUp Actions endpoint
393
+ type: object
394
+ properties:
395
+ language:
396
+ required: false
397
+ type: string
398
+ description: human language to localize to
399
+ followUpActionsInputs:
400
+ required: true
401
+ type: array
402
+ items: FollowUpActionsInputRepresentation
403
+ description: list of queries for actions
404
+ FollowUpActionsInputRepresentation:
405
+ description: a query to EM getType for follow-up actions
406
+ type: object
407
+ properties:
408
+ descriptor:
409
+ type: string
410
+ required: true
411
+ description: query descriptor for EM getType call
412
+ sourceDescriptor:
413
+ type: FollowUpActionsSourceDescriptorRepresentation
414
+ required: false
415
+ description: similar to ExperienceModelSourceDescriptorRepresentation
416
+ schemaConfig:
417
+ type: FollowUpActionsSchemaConfigRepresentation
418
+ required: false
419
+ description: similar to ExperienceModelSchemaConfigRepresentation
420
+ designConfig:
421
+ type: FollowUpActionsDesignConfigRepresentation
422
+ required: false
423
+ description: mutually exclusive with renditionConfig. only one can be present and one or the other must be present. similar to ExperienceModelDesignConfigRepresentation.
424
+ renditionConfig:
425
+ type: FollowUpActionsRenditionConfigRepresentation
426
+ required: false
427
+ description: mutually exclusive with designConfig. only one can be present and one or the other must be present. similar to ExperienceModelRenditionConfigRepresentation.
428
+ FollowUpActionsFilterConfigRepresentation:
429
+ description: similar to ExperienceModelFilterConfigRepresentation.
430
+ type: object
431
+ properties:
432
+ propertyNames:
433
+ type: array
434
+ required: false
435
+ items: string
436
+ description: list of fields
437
+ FollowUpActionsSchemaConfigRepresentation:
438
+ description: similar to ExperienceModelSchemaConfig
439
+ type: object
440
+ properties:
441
+ subSchemaDefinitions:
442
+ type: boolean
443
+ required: false
444
+ description: whether to include sub-schema definitions or not
445
+ filterConfig:
446
+ type: FollowUpActionsFilterConfigRepresentation
447
+ required: false
448
+ FollowUpActionsSourceDescriptorRepresentation:
449
+ description: similar to ExperienceModelSourceDescriptorRepresentation
450
+ type: object
451
+ properties:
452
+ descriptor:
453
+ type: string
454
+ required: false
455
+ propertyName:
456
+ type: string
457
+ required: false
458
+ FollowUpActionsDesignConfigRepresentation:
459
+ description: similar to ExperienceModelDesignConfigRendition
460
+ type: object
461
+ properties:
462
+ target:
463
+ type: string
464
+ required: false
465
+ subViewDefinitions:
466
+ type: boolean
467
+ required: false
468
+ FollowUpActionsRenditionConfigRepresentation:
469
+ description: similar to ExperienceModelRenditiionConfigRendition
470
+ type: object
471
+ properties:
472
+ target:
473
+ type: string
474
+ required: false
475
+ subViewDefinitions:
476
+ type: boolean
477
+ required: false
478
+ RecommendedActionsRepresentation:
479
+ description: Represents the result of a get recommended actions request.
480
+ type: object
481
+ properties:
482
+ copilotQuickActions:
483
+ description: Recommended copilot Quick Actions.
484
+ type: array
485
+ items:
486
+ type: CopilotQuickActionRepresentation
487
+ isSuccess:
488
+ description: Success indicator of the get operation.
489
+ type: boolean
490
+ errorMessage:
491
+ description: Error message for the failed get operation
492
+ type: string
493
+ required: false
494
+ RecommendedUtterancesRepresentation:
495
+ description: Represents the result of a get recommended utterances request.
496
+ type: object
497
+ properties:
498
+ utterances:
499
+ description: Recommended utterances.
500
+ type: array
501
+ items:
502
+ type: string
503
+ isSuccess:
504
+ description: Success indicator of the get operation.
505
+ type: boolean
506
+ errorMessage:
507
+ description: Error message for the failed get operation
508
+ type: string
509
+ required: false
510
+ WelcomeTopicSuggestedUtterancesRepresentation:
511
+ description: A single topic and utterances suggested for that topic.
512
+ properties:
513
+ topicApiName:
514
+ type: string
515
+ description: The API Name of the Topic
516
+ utterances:
517
+ type: array
518
+ items:
519
+ type: string
520
+ WelcomeUtterancesRepresentation:
521
+ description: Represents the result of a get welcome-utterances request.
522
+ type: object
523
+ properties:
524
+ topicsAndSuggestedUtterances:
525
+ description: List of topics and their corresponding suggested utterances.
526
+ type: array
527
+ items:
528
+ type: WelcomeTopicSuggestedUtterancesRepresentation
529
+ isSuccess:
530
+ description: Success indicator of the get operation.
531
+ type: boolean
532
+ errorMessage:
533
+ description: Error message for the failed get operation
534
+ type: string
535
+ required: false
536
+ EsTypeMessageRepresentation:
537
+ description: Represents a ES type message
538
+ type: object
539
+ properties:
540
+ property:
541
+ description: Property for the ES type message.
542
+ type: string | nil
543
+ required: false
544
+ type:
545
+ description: Type for the ES type message.
546
+ type: string
547
+ value:
548
+ description: Value for the ES type message.
549
+ type: any
550
+ VariableRepresentation:
551
+ description: Represents a single variable for an operation to set variables
552
+ type: object
553
+ properties:
554
+ name:
555
+ description: Name of the variable
556
+ type: string
557
+ type:
558
+ description: Type of the variable
559
+ type: string
560
+ value:
561
+ description: Value of the variable
562
+ type: any
563
+ required: false
564
+ PlanTemplateRepresentation:
565
+ description: Represents a plan template which can be executed by a Copilot client.
566
+ type: object
567
+ properties:
568
+ intent:
569
+ description: Intent used by Planner when executing this plan template.
570
+ type: string
571
+ label:
572
+ description: Label to display when rendering this plan template in a Copilot
573
+ client.
574
+ type: string
575
+ planTemplateId:
576
+ description: ID of a plan template.
577
+ type: string
578
+ userUtterance:
579
+ description: User utterance to be recorded in conversation history by Planner
580
+ when executing this plan template.
581
+ type: string
582
+ variables:
583
+ description: Variables for executing this plan template.
584
+ type: object
585
+ properties:
586
+ //:
587
+ type: string
588
+ RecommendedPlanTemplatesRepresentation:
589
+ description: Represents the result of a get recommended plan templates request.
590
+ type: object
591
+ properties:
592
+ errorMessage:
593
+ description: Error message for the failed get operation.
594
+ type: string
595
+ required: false
596
+ isSuccess:
597
+ description: Success indicator of the get operation.
598
+ type: boolean
599
+ planTemplates:
600
+ description: Recommended plan templates.
601
+ type: array
602
+ items:
603
+ type: PlanTemplateRepresentation
604
+ AgentforceAgentBotInfoRepresentation:
605
+ description: User defined Agent metadata per agent type
606
+ type: object
607
+ properties:
608
+ errorMessage:
609
+ description: Error message for the failed get operation.
610
+ type: string
611
+ required: false
612
+ isSuccess:
613
+ description: Success indicator of the get operation.
614
+ type: boolean
615
+ botId:
616
+ description: ID of the internal Copilot bot ID - used in the URL when starting agent sessions
617
+ type: string
618
+ required: false
619
+ label:
620
+ description: display label of the agent
621
+ type: string
622
+ required: false
623
+ description:
624
+ description: display description of the agent
625
+ type: string
626
+ required: false
627
+ agentType:
628
+ description: internal agent type api name
629
+ type: string
630
+ required: false
631
+ isDefault:
632
+ description: Indicates weather the Agent is default
633
+ type: boolean
634
+ required: false
635
+ stopRecPrompts:
636
+ description: Indicates whether the Agent will show Recommended prompts
637
+ type: boolean
638
+ required: false
639
+ stopWelcomePrompts:
640
+ description: Indicates whether the Agent will show Welcome prompts
641
+ type: boolean
642
+ required: false
643
+ AgentforceAgentBotInfoListRepresentation:
644
+ description: Represents the resultant list with agents per agent type including bot metadata
645
+ type: object
646
+ properties:
647
+ tenantGuid:
648
+ description: Core C2C tenant GUID - pass through x-sfdc-tenant-id header for SFAP
649
+ type: string
650
+ required: false
651
+ targetRegion:
652
+ description: Target runtime region - pass through x-salesforce-region header for SFAP
653
+ type: string
654
+ required: false
655
+ apiEndpoint:
656
+ description: Target runtime API endpoint - send traffic here. can be a targeted MESH endpoint, or an SFAP URL
657
+ type: string
658
+ required: false
659
+ errorMessage:
660
+ description: Error message for the failed get operation.
661
+ type: string
662
+ required: false
663
+ isSuccess:
664
+ description: Success indicator of the get operation.
665
+ type: boolean
666
+ required: true
667
+ falconInstance:
668
+ description: Indicates the falcon instance region code
669
+ type: string
670
+ required: false
671
+ sfapUrl:
672
+ description: Indicates the SFAP Url
673
+ type: string
674
+ required: false
675
+ agents:
676
+ description: List of agents
677
+ type: array
678
+ items:
679
+ type: AgentforceAgentBotInfoRepresentation
680
+
681
+ /connect:
682
+ /conversation-runtime-proxy:
683
+ get:
684
+ displayName: getBotId
685
+ description: Get internal Copilot bot ID.
686
+ responses:
687
+ '200':
688
+ description: Success
689
+ body:
690
+ application/json:
691
+ type: CopilotBotInfoRepresentation
692
+ queryParameters:
693
+ agentType:
694
+ description: agent type of the bot
695
+ type: string
696
+ required: false
697
+ post:
698
+ displayName: sendMessage
699
+ description: Send messages to the chatbot runtime.
700
+ responses:
701
+ '200':
702
+ description: Success
703
+ body:
704
+ application/json:
705
+ type: ConversationRuntimeProxyRepresentation
706
+ queryParameters:
707
+ botId:
708
+ type: string
709
+ required: false
710
+ botVersionId:
711
+ type: string
712
+ required: false
713
+ message:
714
+ type: string
715
+ required: false
716
+ sessionId:
717
+ type: string
718
+ required: false
719
+ body:
720
+ application/json:
721
+ type: ConversationRuntimeProxyInputRepresentation
722
+ (oas-body-name): postBody
723
+ /recommended-plan-templates/{pageType}/{objectType}:
724
+ get:
725
+ displayName: getRecommendedPlanTemplates
726
+ description: Gets a list of recommended plan templates based on the page/app
727
+ responses:
728
+ '200':
729
+ description: Success
730
+ body:
731
+ application/json:
732
+ type: RecommendedPlanTemplatesRepresentation
733
+ uriParameters:
734
+ pageType:
735
+ type: string
736
+ required: true
737
+ objectType:
738
+ type: string
739
+ required: true
740
+ /copilot:
741
+ /feedback:
742
+ post:
743
+ displayName: postConversationLLMFeedback
744
+ description: Submit feedback to the chatbot runtime.
745
+ responses:
746
+ '200':
747
+ description: Success
748
+ body:
749
+ application/json:
750
+ type: CopilotLLMFeedbackOutputRepresentation
751
+ body:
752
+ application/json:
753
+ type: CopilotLLMFeedbackInputRepresentation
754
+ (oas-body-name): submitFeedback
755
+ /objects:
756
+ get:
757
+ displayName: getCopilotObjects
758
+ description: Provides the list of ui-api objects to be used in record picker
759
+ in copilot
760
+ responses:
761
+ '200':
762
+ description: Success
763
+ body:
764
+ application/json:
765
+ type: CopilotObjectListRepresentation
766
+ queryParameters:
767
+ limit:
768
+ type: integer
769
+ required: false
770
+ searchTerm:
771
+ type: string
772
+ required: false
773
+ /follow-up-actions:
774
+ post:
775
+ displayName: getFollowUpActions
776
+ description: Provides a list of FollowUp Actions based on the EM getType() calls for criteria passed in.
777
+ responses:
778
+ '200':
779
+ description: Success
780
+ body:
781
+ application/json:
782
+ type: CopilotFollowUpActionsRepresentation
783
+ body:
784
+ application/json:
785
+ type: FollowUpActionsListInputRepresentation
786
+ (oas-body-name): postBody
787
+ /recommended-utterances:
788
+ get:
789
+ displayName: getRecommendedUtterances
790
+ description: Provide a list of recommended utterances based on the criteria passed in.
791
+ responses:
792
+ '200':
793
+ description: Success
794
+ body:
795
+ application/json:
796
+ type: RecommendedUtterancesRepresentation
797
+ queryParameters:
798
+ agentId:
799
+ type: string
800
+ required: false
801
+ sessionId:
802
+ type: string
803
+ required: true
804
+ /recommended-actions:
805
+ get:
806
+ displayName: getRecommendedActions
807
+ description: Provides a list of recommended actions based on the criteria passed in.
808
+ responses:
809
+ '200':
810
+ description: Success
811
+ body:
812
+ application/json:
813
+ type: RecommendedActionsRepresentation
814
+ queryParameters:
815
+ agentId:
816
+ type: string
817
+ required: false
818
+ pageName:
819
+ type: string
820
+ required: false
821
+ pageType:
822
+ type: string
823
+ required: true
824
+ actionName:
825
+ type: string
826
+ required: false
827
+ objectApiName:
828
+ type: string
829
+ required: false
830
+ customApplicationName:
831
+ type: string
832
+ required: true
833
+ sessionId:
834
+ type: string
835
+ required: true
836
+ formFactor:
837
+ type: string
838
+ required: true
839
+ enum:
840
+ - Large
841
+ - Medium
842
+ - Small
843
+ /welcome-utterances:
844
+ get:
845
+ displayName: getWelcomeUtterances
846
+ description: Provides a list of recommended utterances for users to try out copilot capabilities from the welcome screen.
847
+ responses:
848
+ '200':
849
+ description: Success
850
+ body:
851
+ application/json:
852
+ type: WelcomeUtterancesRepresentation
853
+ queryParameters:
854
+ sessionId:
855
+ type: string
856
+ required: false
857
+ /agentforce-agent-info:
858
+ get:
859
+ displayName: getAgents
860
+ description: Provides a list of Agentforce agents using the given list of agent types.
861
+ responses:
862
+ '200':
863
+ description: Success
864
+ body:
865
+ application/json:
866
+ type: AgentforceAgentBotInfoListRepresentation
867
+ queryParameters:
868
+ agentType:
869
+ type: string
870
+ required: true
871
+ appName:
872
+ type: string
873
+ required: false