@salesforce/lds-adapters-marketing-ai4m 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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/marketing-ai4m.js +791 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createContent.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/adapters/modifyContent.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectAi4mEinsteinContent.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectAi4mEinsteinContentModification.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/AudienceRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CampaignBriefRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/CreateContentInputRepresentation.d.ts +77 -0
- package/dist/es/es2018/types/src/generated/types/CreateContentResponseRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/GenerativeContentInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/GenerativeContentRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ModifyContentInputRepresentation.d.ts +80 -0
- package/dist/es/es2018/types/src/generated/types/ModifyContentResponseRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/SampleAssetsRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +67 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +821 -0
- package/src/raml/api.raml +300 -0
- package/src/raml/luvio.raml +26 -0
|
@@ -0,0 +1,300 @@
|
|
|
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
|
+
AudienceRepresentation:
|
|
29
|
+
description: The representation for Audience
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
description:
|
|
33
|
+
description: Audience description
|
|
34
|
+
type: string
|
|
35
|
+
name:
|
|
36
|
+
description: Audience name
|
|
37
|
+
type: string
|
|
38
|
+
CampaignBriefRepresentation:
|
|
39
|
+
description: The representation for CampaignBrief
|
|
40
|
+
type: object
|
|
41
|
+
properties:
|
|
42
|
+
audience:
|
|
43
|
+
description: Audience in campaign brief
|
|
44
|
+
type: array
|
|
45
|
+
items:
|
|
46
|
+
type: any
|
|
47
|
+
campaignGoals:
|
|
48
|
+
description: Campaign Goals in campaign brief
|
|
49
|
+
type: array
|
|
50
|
+
items:
|
|
51
|
+
type: string
|
|
52
|
+
campaignName:
|
|
53
|
+
description: Campaign Name in campaign brief
|
|
54
|
+
type: string
|
|
55
|
+
campaignObjective:
|
|
56
|
+
description: Campaign Objective in campaign brief
|
|
57
|
+
type: string
|
|
58
|
+
channels:
|
|
59
|
+
description: Channels in campaign brief
|
|
60
|
+
type: array
|
|
61
|
+
items:
|
|
62
|
+
type: string
|
|
63
|
+
keyMessage:
|
|
64
|
+
description: Key Message in campaign brief
|
|
65
|
+
type: string
|
|
66
|
+
sampleAssets:
|
|
67
|
+
description: Sample assets in campaign brief
|
|
68
|
+
type: any
|
|
69
|
+
tone:
|
|
70
|
+
description: Tone in campaign brief
|
|
71
|
+
type: string
|
|
72
|
+
CreateContentInputRepresentation:
|
|
73
|
+
description: The input representation for creating a content
|
|
74
|
+
type: object
|
|
75
|
+
properties:
|
|
76
|
+
brief:
|
|
77
|
+
description: Campaign Brief to create content
|
|
78
|
+
type: object
|
|
79
|
+
properties:
|
|
80
|
+
audience:
|
|
81
|
+
description: Audience in campaign brief
|
|
82
|
+
type: array
|
|
83
|
+
items:
|
|
84
|
+
type: AudienceRepresentation
|
|
85
|
+
campaignGoals:
|
|
86
|
+
description: Campaign Goals in campaign brief
|
|
87
|
+
type: array
|
|
88
|
+
items:
|
|
89
|
+
type: string
|
|
90
|
+
campaignName:
|
|
91
|
+
description: Campaign Name in campaign brief
|
|
92
|
+
type: string
|
|
93
|
+
campaignObjective:
|
|
94
|
+
description: Campaign Objective in campaign brief
|
|
95
|
+
type: string
|
|
96
|
+
channels:
|
|
97
|
+
description: Channels in campaign brief
|
|
98
|
+
type: array
|
|
99
|
+
items:
|
|
100
|
+
type: string
|
|
101
|
+
keyMessage:
|
|
102
|
+
description: Key Message in campaign brief
|
|
103
|
+
type: string
|
|
104
|
+
sampleAssets:
|
|
105
|
+
description: Sample assets in campaign brief
|
|
106
|
+
type: object
|
|
107
|
+
properties:
|
|
108
|
+
email:
|
|
109
|
+
description: Email Asset
|
|
110
|
+
type: object
|
|
111
|
+
properties:
|
|
112
|
+
paragraph:
|
|
113
|
+
description: List of paragraph
|
|
114
|
+
type: array
|
|
115
|
+
items:
|
|
116
|
+
type: string
|
|
117
|
+
preheader:
|
|
118
|
+
description: List of preheader
|
|
119
|
+
type: array
|
|
120
|
+
items:
|
|
121
|
+
type: string
|
|
122
|
+
subjectLine:
|
|
123
|
+
description: List of subjectLine
|
|
124
|
+
type: array
|
|
125
|
+
items:
|
|
126
|
+
type: string
|
|
127
|
+
tone:
|
|
128
|
+
description: Tone in campaign brief
|
|
129
|
+
type: string
|
|
130
|
+
contentTypes:
|
|
131
|
+
description: ContentTypes for content
|
|
132
|
+
type: array
|
|
133
|
+
items:
|
|
134
|
+
type: string
|
|
135
|
+
result:
|
|
136
|
+
description: Number of output results for content
|
|
137
|
+
type: integer
|
|
138
|
+
CreateContentResponseRepresentation:
|
|
139
|
+
description: Create Content Response
|
|
140
|
+
type: object
|
|
141
|
+
properties:
|
|
142
|
+
content:
|
|
143
|
+
description: Content Response Data
|
|
144
|
+
type: GenerativeContentRepresentation
|
|
145
|
+
generationId:
|
|
146
|
+
description: Generation ID of response from open ai
|
|
147
|
+
type: string
|
|
148
|
+
GenerativeContentInputRepresentation:
|
|
149
|
+
description: The input representation for creating a GenerativeContent
|
|
150
|
+
type: object
|
|
151
|
+
properties:
|
|
152
|
+
paragraph:
|
|
153
|
+
description: List of paragraph
|
|
154
|
+
type: array
|
|
155
|
+
items:
|
|
156
|
+
type: string
|
|
157
|
+
preheader:
|
|
158
|
+
description: List of preheader
|
|
159
|
+
type: array
|
|
160
|
+
items:
|
|
161
|
+
type: string
|
|
162
|
+
subjectLine:
|
|
163
|
+
description: List of subjectLine
|
|
164
|
+
type: array
|
|
165
|
+
items:
|
|
166
|
+
type: string
|
|
167
|
+
GenerativeContentRepresentation:
|
|
168
|
+
description: Generative Content representation
|
|
169
|
+
type: object
|
|
170
|
+
properties:
|
|
171
|
+
paragraph:
|
|
172
|
+
description: List of paragraph
|
|
173
|
+
type: array
|
|
174
|
+
items:
|
|
175
|
+
type: string
|
|
176
|
+
preheader:
|
|
177
|
+
description: List of preheader
|
|
178
|
+
type: array
|
|
179
|
+
items:
|
|
180
|
+
type: string
|
|
181
|
+
subjectLine:
|
|
182
|
+
description: List of subjectLine
|
|
183
|
+
type: array
|
|
184
|
+
items:
|
|
185
|
+
type: string
|
|
186
|
+
ModifyContentInputRepresentation:
|
|
187
|
+
description: The input representation for modifying a content
|
|
188
|
+
type: object
|
|
189
|
+
properties:
|
|
190
|
+
brief:
|
|
191
|
+
description: Campaign Brief to create content
|
|
192
|
+
type: object
|
|
193
|
+
properties:
|
|
194
|
+
audience:
|
|
195
|
+
description: Audience in campaign brief
|
|
196
|
+
type: array
|
|
197
|
+
items:
|
|
198
|
+
type: AudienceRepresentation
|
|
199
|
+
campaignGoals:
|
|
200
|
+
description: Campaign Goals in campaign brief
|
|
201
|
+
type: array
|
|
202
|
+
items:
|
|
203
|
+
type: string
|
|
204
|
+
campaignName:
|
|
205
|
+
description: Campaign Name in campaign brief
|
|
206
|
+
type: string
|
|
207
|
+
campaignObjective:
|
|
208
|
+
description: Campaign Objective in campaign brief
|
|
209
|
+
type: string
|
|
210
|
+
channels:
|
|
211
|
+
description: Channels in campaign brief
|
|
212
|
+
type: array
|
|
213
|
+
items:
|
|
214
|
+
type: string
|
|
215
|
+
keyMessage:
|
|
216
|
+
description: Key Message in campaign brief
|
|
217
|
+
type: string
|
|
218
|
+
sampleAssets:
|
|
219
|
+
description: Sample assets in campaign brief
|
|
220
|
+
type: object
|
|
221
|
+
properties:
|
|
222
|
+
email:
|
|
223
|
+
description: Email Asset
|
|
224
|
+
type: object
|
|
225
|
+
properties:
|
|
226
|
+
paragraph:
|
|
227
|
+
description: List of paragraph
|
|
228
|
+
type: array
|
|
229
|
+
items:
|
|
230
|
+
type: string
|
|
231
|
+
preheader:
|
|
232
|
+
description: List of preheader
|
|
233
|
+
type: array
|
|
234
|
+
items:
|
|
235
|
+
type: string
|
|
236
|
+
subjectLine:
|
|
237
|
+
description: List of subjectLine
|
|
238
|
+
type: array
|
|
239
|
+
items:
|
|
240
|
+
type: string
|
|
241
|
+
tone:
|
|
242
|
+
description: Tone in campaign brief
|
|
243
|
+
type: string
|
|
244
|
+
content:
|
|
245
|
+
description: Content which is to be modified
|
|
246
|
+
type: string
|
|
247
|
+
contentType:
|
|
248
|
+
description: ContentTypes for content
|
|
249
|
+
type: string
|
|
250
|
+
instructions:
|
|
251
|
+
description: Instructions for modification
|
|
252
|
+
type: string
|
|
253
|
+
ModifyContentResponseRepresentation:
|
|
254
|
+
description: Modify Content Response
|
|
255
|
+
type: object
|
|
256
|
+
properties:
|
|
257
|
+
content:
|
|
258
|
+
description: Modified content
|
|
259
|
+
type: string
|
|
260
|
+
contentType:
|
|
261
|
+
description: Content Type of modified content
|
|
262
|
+
type: string
|
|
263
|
+
generationId:
|
|
264
|
+
description: Generation ID of response from open ai
|
|
265
|
+
type: string
|
|
266
|
+
SampleAssetsRepresentation:
|
|
267
|
+
description: The input representation for Sample Assets
|
|
268
|
+
type: object
|
|
269
|
+
properties:
|
|
270
|
+
email:
|
|
271
|
+
description: Email Asset
|
|
272
|
+
type: any
|
|
273
|
+
/connect/ai4m/einstein/content:
|
|
274
|
+
post:
|
|
275
|
+
displayName: postCreateContent
|
|
276
|
+
description: Creates content using Einstein GPT
|
|
277
|
+
responses:
|
|
278
|
+
'200':
|
|
279
|
+
description: Success
|
|
280
|
+
body:
|
|
281
|
+
application/json:
|
|
282
|
+
type: CreateContentResponseRepresentation
|
|
283
|
+
body:
|
|
284
|
+
application/json:
|
|
285
|
+
type: CreateContentInputRepresentation
|
|
286
|
+
(oas-body-name): ContentCreateInput
|
|
287
|
+
/connect/ai4m/einstein/content/modification:
|
|
288
|
+
post:
|
|
289
|
+
displayName: postModifyContent
|
|
290
|
+
description: Modify content using Einstein GPT
|
|
291
|
+
responses:
|
|
292
|
+
'200':
|
|
293
|
+
description: Success
|
|
294
|
+
body:
|
|
295
|
+
application/json:
|
|
296
|
+
type: ModifyContentResponseRepresentation
|
|
297
|
+
body:
|
|
298
|
+
application/json:
|
|
299
|
+
type: ModifyContentInputRepresentation
|
|
300
|
+
(oas-body-name): ContentModifyInput
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'marketing-ai4m'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
CreateContentResponseRepresentation:
|
|
11
|
+
(luvio.ttl): 300
|
|
12
|
+
(luvio.key):
|
|
13
|
+
generationId: generationId
|
|
14
|
+
ModifyContentResponseRepresentation:
|
|
15
|
+
(luvio.ttl): 300
|
|
16
|
+
(luvio.key):
|
|
17
|
+
generationId: generationId
|
|
18
|
+
|
|
19
|
+
/connect/ai4m/einstein/content:
|
|
20
|
+
post:
|
|
21
|
+
(luvio.adapter):
|
|
22
|
+
name: createContent
|
|
23
|
+
/connect/ai4m/einstein/content/modification:
|
|
24
|
+
post:
|
|
25
|
+
(luvio.adapter):
|
|
26
|
+
name: modifyContent
|