@salesforce/lds-adapters-cdp-document-processing 1.354.0-dev10

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 (46) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/cdp-document-processing.js +2049 -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/createIdpConfiguration.d.ts +26 -0
  5. package/dist/es/es2018/types/src/generated/adapters/deleteIdpConfiguration.d.ts +14 -0
  6. package/dist/es/es2018/types/src/generated/adapters/extractDataUsingIdpConfiguration.d.ts +31 -0
  7. package/dist/es/es2018/types/src/generated/adapters/generateIdpConfigurationSchema.d.ts +17 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getIdpConfiguration.d.ts +28 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getIdpConfigurations.d.ts +31 -0
  10. package/dist/es/es2018/types/src/generated/adapters/getIdpGlobalConfig.d.ts +26 -0
  11. package/dist/es/es2018/types/src/generated/adapters/updateIdpConfiguration.d.ts +18 -0
  12. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +8 -0
  13. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +14 -0
  14. package/dist/es/es2018/types/src/generated/resources/deleteSsotDocumentProcessingConfigurationsByIdOrApiName.d.ts +12 -0
  15. package/dist/es/es2018/types/src/generated/resources/getSsotDocumentProcessingConfigurations.d.ts +19 -0
  16. package/dist/es/es2018/types/src/generated/resources/getSsotDocumentProcessingConfigurationsByIdOrApiName.d.ts +16 -0
  17. package/dist/es/es2018/types/src/generated/resources/getSsotDocumentProcessingGlobalConfig.d.ts +12 -0
  18. package/dist/es/es2018/types/src/generated/resources/patchSsotDocumentProcessingConfigurationsByIdOrApiName.d.ts +17 -0
  19. package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingActionsExtractData.d.ts +19 -0
  20. package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingActionsGenerateSchema.d.ts +14 -0
  21. package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingConfigurations.d.ts +23 -0
  22. package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +49 -0
  23. package/dist/es/es2018/types/src/generated/types/CdpPaginatedResponseBaseRepresentation.d.ts +35 -0
  24. package/dist/es/es2018/types/src/generated/types/CdpUserRepresentation.d.ts +34 -0
  25. package/dist/es/es2018/types/src/generated/types/IdpConfigurationBaseRepresentation.d.ts +47 -0
  26. package/dist/es/es2018/types/src/generated/types/IdpConfigurationDetailsRepresentation.d.ts +68 -0
  27. package/dist/es/es2018/types/src/generated/types/IdpConfigurationInputRepresentation.d.ts +60 -0
  28. package/dist/es/es2018/types/src/generated/types/IdpConfigurationPatchInputRepresentation.d.ts +35 -0
  29. package/dist/es/es2018/types/src/generated/types/IdpConfigurationRepresentation.d.ts +26 -0
  30. package/dist/es/es2018/types/src/generated/types/IdpConfigurationsCollectionRepresentation.d.ts +31 -0
  31. package/dist/es/es2018/types/src/generated/types/IdpContentTypeRepresentation.d.ts +38 -0
  32. package/dist/es/es2018/types/src/generated/types/IdpExtractDataInputRepresentation.d.ts +40 -0
  33. package/dist/es/es2018/types/src/generated/types/IdpExtractedDataRepresentation.d.ts +39 -0
  34. package/dist/es/es2018/types/src/generated/types/IdpExtractedFileDataRepresenation.d.ts +31 -0
  35. package/dist/es/es2018/types/src/generated/types/IdpFileConfigRepresentation.d.ts +29 -0
  36. package/dist/es/es2018/types/src/generated/types/IdpGenerateSchemaFileInputRepresentation.d.ts +28 -0
  37. package/dist/es/es2018/types/src/generated/types/IdpGenerateSchemaInputRepresentation.d.ts +33 -0
  38. package/dist/es/es2018/types/src/generated/types/IdpGeneratedSchemaRepresentation.d.ts +41 -0
  39. package/dist/es/es2018/types/src/generated/types/IdpGlobalConfigRepresentation.d.ts +37 -0
  40. package/dist/es/es2018/types/src/generated/types/IdpSupportedModelRepresentation.d.ts +41 -0
  41. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  42. package/package.json +68 -0
  43. package/sfdc/index.d.ts +1 -0
  44. package/sfdc/index.js +2182 -0
  45. package/src/raml/api.raml +484 -0
  46. package/src/raml/luvio.raml +116 -0
@@ -0,0 +1,484 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '64.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v64.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
+ CdpUserRepresentation:
29
+ description: Represents a user
30
+ type: object
31
+ properties:
32
+ id:
33
+ description: The 18 character user ID
34
+ type: string
35
+ name:
36
+ description: The name of the user
37
+ type: string
38
+ profilePhotoUrl:
39
+ description: The Chatter profile photo of the user
40
+ type: string
41
+ CdpAssetBaseRepresentation:
42
+ description: Represents a base Asset
43
+ type: object
44
+ discriminator: id
45
+ properties:
46
+ createdBy:
47
+ description: Created by
48
+ type: any
49
+ createdDate:
50
+ description: Created date
51
+ type: string
52
+ id:
53
+ description: The 18 character ID of the asset
54
+ type: string
55
+ label:
56
+ description: Label of the asset
57
+ type: string
58
+ lastModifiedBy:
59
+ description: Last modified by
60
+ type: any
61
+ lastModifiedDate:
62
+ description: Last modified date
63
+ type: string
64
+ name:
65
+ description: Name of the asset
66
+ type: string
67
+ url:
68
+ description: Url
69
+ type: any
70
+ CdpPaginatedResponseBaseRepresentation:
71
+ description: Base paginated response representation
72
+ type: object
73
+ discriminator: totalSize
74
+ properties:
75
+ currentPageUrl:
76
+ description: Current page url
77
+ type: string | nil
78
+ nextPageUrl:
79
+ description: Next page url if it exists
80
+ type: string | nil
81
+ totalSize:
82
+ description: Total size of collection
83
+ type: integer
84
+ IdpConfigurationBaseRepresentation:
85
+ description: Idp Configuration Base Representation
86
+ type: CdpAssetBaseRepresentation
87
+ discriminator: version
88
+ properties:
89
+ activationStatus:
90
+ description: IDP Configuration Activation Status (Activated - Deactivated)
91
+ type: string
92
+ enum:
93
+ - Activated
94
+ - Deactivated
95
+ dataspace:
96
+ description: IDP Configuration Data Space
97
+ type: any
98
+ description:
99
+ description: IDP Configuration Description
100
+ type: string | nil
101
+ mlModel:
102
+ description: The ML model used to extract the unstructured data
103
+ type: string
104
+ runtimeStatus:
105
+ description: 'What is the status of the last off-core unstructured data-extraction
106
+ job run. Possible values: Success - Failed - InProgress - Aborted - NotStarted
107
+ - Pending - Submitted - Ready'
108
+ type: string
109
+ enum:
110
+ - Aborted
111
+ - Failed
112
+ - InProgress
113
+ - NotStarted
114
+ - Pending
115
+ - Ready
116
+ - Submitted
117
+ - Success
118
+ status:
119
+ description: 'Whether the latest version of this IDP configuration has been
120
+ synced to off-core. Possible values: Syncing - Synced - NotSynced - Error'
121
+ type: string
122
+ enum:
123
+ - Error
124
+ - NotSynced
125
+ - Synced
126
+ - Syncing
127
+ version:
128
+ description: The current version of the IDP configuration, this is incremented
129
+ automatically with every edit
130
+ type: string
131
+ IdpConfigurationDetailsRepresentation:
132
+ description: Idp Configuration Details Representation
133
+ type: object
134
+ properties:
135
+ schemaConfig:
136
+ description: The schema of the data to be extracted
137
+ type: string
138
+ createdBy:
139
+ description: Created by
140
+ type: any
141
+ createdDate:
142
+ description: Created date
143
+ type: string
144
+ id:
145
+ description: The 18 character ID of the asset
146
+ type: string
147
+ label:
148
+ description: Label of the asset
149
+ type: string
150
+ lastModifiedBy:
151
+ description: Last modified by
152
+ type: any
153
+ lastModifiedDate:
154
+ description: Last modified date
155
+ type: string
156
+ name:
157
+ description: Name of the asset
158
+ type: string
159
+ description:
160
+ description: description of config
161
+ type: any
162
+ mlModel:
163
+ description: fileConfig
164
+ type: string | nil
165
+ runtimeStatus:
166
+ description: fileConfig
167
+ type: string | nil
168
+ IdpConfigurationInputRepresentation:
169
+ description: The input representation for Idp Configuration
170
+ type: object
171
+ properties:
172
+ activationStatus:
173
+ description: Activated/Deactivated
174
+ type: string
175
+ enum:
176
+ - Activated
177
+ - Deactivated
178
+ description:
179
+ description: The description of the IDP configuration to be created
180
+ type: string
181
+ fileConfig:
182
+ description: The specs for the file types supported by the IDP process to
183
+ be created
184
+ type: object
185
+ properties:
186
+ fileTypes:
187
+ description: List of file formats that are supported by the IDP process to be created
188
+ type: array
189
+ items:
190
+ type: string
191
+ label:
192
+ description: The label of the IDP configuration to be created
193
+ type: string
194
+ mlModel:
195
+ description: The ML model used to extract the unstructured data
196
+ type: string
197
+ name:
198
+ description: The API name of the IDP configuration to be created
199
+ type: string
200
+ configMetadata:
201
+ description: A map of custom key-value pairs serialized as JSON
202
+ type: object
203
+ properties:
204
+ builderType:
205
+ description: Source of idp config creation
206
+ type: string
207
+ schemaConfig:
208
+ description: The schema of the data to be extracted
209
+ type: string
210
+ IdpConfigurationPatchInputRepresentation:
211
+ description: The update input representation for Idp Configuration
212
+ type: object
213
+ properties:
214
+ activationStatus:
215
+ description: The updated activation status - Activated/Deactivated
216
+ type: string
217
+ enum:
218
+ - Activated
219
+ - Deactivated
220
+ description:
221
+ description: The updated description of the IDP configuration to be created
222
+ type: string
223
+ label:
224
+ description: The updated label of the IDP configuration to be created
225
+ type: string
226
+ IdpConfigurationRepresentation:
227
+ description: Idp Configuration Representation
228
+ type: IdpConfigurationBaseRepresentation
229
+ properties: {}
230
+ IdpConfigurationsCollectionRepresentation:
231
+ description: Idp Configuration Collection Representation
232
+ type: CdpPaginatedResponseBaseRepresentation
233
+ properties:
234
+ configurations:
235
+ description: The IDP configuration records in the current page
236
+ type: array
237
+ items:
238
+ type: IdpConfigurationRepresentation
239
+ IdpContentTypeRepresentation:
240
+ description: Idp Content Type Representation
241
+ type: object
242
+ properties:
243
+ isDefault:
244
+ description: If this value by default
245
+ type: boolean
246
+ label:
247
+ description: The display name of the file type
248
+ type: string
249
+ maxFileSizeInMB:
250
+ description: Max size of the file in mega bytes
251
+ type: integer
252
+ type:
253
+ description: The file type
254
+ type: string
255
+ IdpFileConfigRepresentation:
256
+ description: The representation of the specs for the file types supported by the
257
+ IDP process
258
+ type: object
259
+ properties:
260
+ fileTypes:
261
+ description: List of file formats that are supported by the IDP process to
262
+ be created
263
+ type: array
264
+ items:
265
+ type: string
266
+ IdpGlobalConfigRepresentation:
267
+ description: Idp Global Config Representation
268
+ type: object
269
+ properties:
270
+ supportedContentTypes:
271
+ description: All content types currently supported for unstructured data extraction
272
+ type: array
273
+ items:
274
+ type: IdpContentTypeRepresentation
275
+ supportedModels:
276
+ description: Models currently supported for unstructured data extraction
277
+ type: array
278
+ items:
279
+ type: IdpSupportedModelRepresentation
280
+ version:
281
+ description: The version of the config schema
282
+ type: string
283
+ IdpSupportedModelRepresentation:
284
+ description: Idp Supported Model Representation
285
+ type: object
286
+ properties:
287
+ id:
288
+ description: The ID of the model
289
+ type: string
290
+ isDefault:
291
+ description: If it is default
292
+ type: boolean
293
+ label:
294
+ description: The display name of the model
295
+ type: string
296
+ provider:
297
+ description: E.g. Open AI
298
+ type: string
299
+ status:
300
+ description: E.g. ENABLED, DISABLED
301
+ type: string
302
+ IdpGenerateSchemaFileInputRepresentation:
303
+ description: The generate schema file input representation for Idp Configuration
304
+ type: object
305
+ properties:
306
+ fileId:
307
+ description: Either a Salesforce file Id or a URI to SF Drive
308
+ type: string
309
+ IdpGenerateSchemaInputRepresentation:
310
+ description: The generate schema input representation for Idp Configuration
311
+ type: object
312
+ properties:
313
+ files:
314
+ description: The list of unstructured source files to extract the schema from
315
+ type: array
316
+ items:
317
+ type: IdpGenerateSchemaFileInputRepresentation
318
+ mlModel:
319
+ description: The ID of the ML model to use for schema extraction
320
+ type: string
321
+ IdpGeneratedSchemaRepresentation:
322
+ description: Idp Generated Schema Representation
323
+ type: object
324
+ properties:
325
+ error:
326
+ description: Error message if schema generation fails
327
+ type: string | nil
328
+ schema:
329
+ description: The generated schema in JSON format
330
+ type: string
331
+ IdpExtractDataInputRepresentation:
332
+ description: The extract data input representation for Idp Configuration
333
+ type: object
334
+ properties:
335
+ files:
336
+ description: The list of unstructured source files to extract the schema from
337
+ type: array
338
+ items:
339
+ type: object
340
+ properties:
341
+ fileId:
342
+ description: documentVersionId of the selected file
343
+ type: string
344
+ mlModel:
345
+ description: The ID of the ML model to use for schema extraction
346
+ type: string
347
+ schemaConfig:
348
+ description: The schema of the data to be extracted
349
+ type: string
350
+ IdpExtractedDataRepresentation:
351
+ description: Idp Extracted Data Representation
352
+ type: object
353
+ properties:
354
+ data:
355
+ description: 'List of extraction result for every file '
356
+ type: array
357
+ items:
358
+ type: IdpExtractedFileDataRepresenation
359
+ IdpExtractedFileDataRepresenation:
360
+ description: Idp Extracted Data Representation for a specific file
361
+ type: object
362
+ properties:
363
+ data:
364
+ description: Extracted JSON data
365
+ type: string
366
+ error:
367
+ description: Error message if data extraction fails
368
+ type: string | nil
369
+ /ssot/document-processing:
370
+ /configurations:
371
+ get:
372
+ displayName: getIdpConfigurations
373
+ description: Get all intelligent document processing configurations
374
+ responses:
375
+ '200':
376
+ description: Success
377
+ body:
378
+ application/json:
379
+ type: IdpConfigurationsCollectionRepresentation
380
+ queryParameters:
381
+ activationStatus:
382
+ type: string
383
+ required: false
384
+ enum:
385
+ - Activated
386
+ - Deactivated
387
+ limit:
388
+ type: integer
389
+ required: false
390
+ offset:
391
+ type: integer
392
+ required: false
393
+ orderBy:
394
+ description: eg. Label DESC
395
+ type: string
396
+ required: false
397
+ search:
398
+ type: string
399
+ required: false
400
+ post:
401
+ displayName: createIdpConfiguration
402
+ description: Create idp configuration
403
+ responses:
404
+ '200':
405
+ description: Success
406
+ body:
407
+ application/json:
408
+ type: IdpConfigurationDetailsRepresentation
409
+ body:
410
+ application/json:
411
+ type: IdpConfigurationInputRepresentation
412
+ (oas-body-name): createIdpConfigurationRecord
413
+ /configurations/{idOrApiName}:
414
+ delete:
415
+ displayName: deleteIdpConfiguration
416
+ description: delete an idp configuration record
417
+ responses:
418
+ '200':
419
+ description: Success
420
+ get:
421
+ displayName: getIdpConfiguration
422
+ description: get the details of a specific idp configuration record
423
+ responses:
424
+ '200':
425
+ description: Success
426
+ body:
427
+ application/json:
428
+ type: IdpConfigurationDetailsRepresentation
429
+ patch:
430
+ displayName: updateIdpConfiguration
431
+ description: updates the details of a specific idp configuration record
432
+ responses:
433
+ '200':
434
+ description: Success
435
+ body:
436
+ application/json:
437
+ type: IdpConfigurationDetailsRepresentation
438
+ body:
439
+ application/json:
440
+ type: IdpConfigurationPatchInputRepresentation
441
+ (oas-body-name): patchIdpConfigurationRecord
442
+ uriParameters:
443
+ idOrApiName:
444
+ description: Document processing Config ID
445
+ type: string
446
+ required: true
447
+ /global-config:
448
+ get:
449
+ displayName: getIdpGlobalConfig
450
+ description: get the details of idp global config
451
+ responses:
452
+ '200':
453
+ description: Success
454
+ body:
455
+ application/json:
456
+ type: IdpGlobalConfigRepresentation
457
+ /actions/generate-schema:
458
+ post:
459
+ displayName: generateIdpConfigurationSchema
460
+ description: generate schema for idp configuration
461
+ responses:
462
+ '200':
463
+ description: Success
464
+ body:
465
+ application/json:
466
+ type: IdpGeneratedSchemaRepresentation
467
+ body:
468
+ application/json:
469
+ type: IdpGenerateSchemaInputRepresentation
470
+ (oas-body-name): generateIdpConfigurationSchema
471
+ /actions/extract-data:
472
+ post:
473
+ displayName: extractDataUsingIdpConfiguration
474
+ description: extract data from idp configuration
475
+ responses:
476
+ '200':
477
+ description: Success
478
+ body:
479
+ application/json:
480
+ type: IdpExtractedDataRepresentation
481
+ body:
482
+ application/json:
483
+ type: IdpExtractDataInputRepresentation
484
+ (oas-body-name): extractDataUsingIdpConfiguration
@@ -0,0 +1,116 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'document-processing'
8
+
9
+ types:
10
+ IdpSupportedModelRepresentation:
11
+ (luvio.ttl): 500
12
+ (luvio.opaque): true
13
+
14
+ IdpConfigurationRepresentation:
15
+ (luvio.opaque): true
16
+
17
+ IdpConfigurationBaseRepresentation:
18
+ (luvio.opaque): true
19
+
20
+ IdpFileConfigRepresentation:
21
+ (luvio.ttl): 500
22
+ (luvio.opaque): true
23
+
24
+ IdpContentTypeRepresentation:
25
+ (luvio.ttl): 500
26
+ (luvio.opaque): true
27
+
28
+ IdpGlobalConfigRepresentation:
29
+ (luvio.ttl): 500
30
+ (luvio.opaque): true
31
+
32
+ CdpPaginatedResponseBaseRepresentation:
33
+ (luvio.ttl): 500
34
+ (luvio.opaque): true
35
+
36
+ IdpConfigurationsCollectionRepresentation:
37
+ (luvio.opaque): true
38
+
39
+ IdpConfigurationInputRepresentation:
40
+ (luvio.ttl): 500
41
+ (luvio.opaque): true
42
+
43
+ IdpConfigurationDetailsRepresentation:
44
+ (luvio.ttl): 500
45
+ (luvio.opaque): true
46
+ (luvio.key):
47
+ id: id
48
+
49
+ IdpConfigurationPatchInputRepresentation:
50
+ (luvio.ttl): 500
51
+ (luvio.opaque): true
52
+
53
+ IdpGenerateSchemaFileInputRepresentation:
54
+ (luvio.opaque): true
55
+
56
+ IdpGenerateSchemaInputRepresentation:
57
+ (luvio.ttl): 500
58
+ (luvio.opaque): true
59
+
60
+ IdpGeneratedSchemaRepresentation:
61
+ (luvio.ttl): 1200000
62
+ (luvio.key):
63
+ schema: schema
64
+
65
+ IdpExtractDataInputRepresentation:
66
+ (luvio.ttl): 500
67
+ (luvio.opaque): true
68
+
69
+ IdpExtractedDataRepresentation:
70
+ (luvio.ttl): 1200000
71
+
72
+ IdpExtractedFileDataRepresenation:
73
+ (luvio.opaque): true
74
+
75
+ /ssot/document-processing:
76
+ /configurations:
77
+ get:
78
+ (luvio.adapter):
79
+ name: getIdpConfigurations
80
+
81
+ post:
82
+ (luvio.adapter):
83
+ name: createIdpConfiguration
84
+
85
+ /configurations/{idOrApiName}:
86
+ delete:
87
+ (luvio.adapter):
88
+ name: deleteIdpConfiguration
89
+ (luvio.key):
90
+ id: urlParams.idOrApiName
91
+
92
+ get:
93
+ (luvio.adapter):
94
+ name: getIdpConfiguration
95
+ (luvio.key):
96
+ id: urlParams.idOrApiName
97
+
98
+ patch:
99
+ (luvio.adapter):
100
+ name: updateIdpConfiguration
101
+
102
+ /global-config:
103
+ get:
104
+ (luvio.adapter):
105
+ name: getIdpGlobalConfig
106
+
107
+ /actions/generate-schema:
108
+ post:
109
+ (luvio.adapter):
110
+ name: generateIdpConfigurationSchema
111
+
112
+ /actions/extract-data:
113
+ post:
114
+ (luvio.adapter):
115
+ name: extractDataUsingIdpConfiguration
116
+ (luvio.method): get