@salesforce/lds-adapters-platform-named-credential 1.247.0 → 1.248.0
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/dist/es/es2018/platform-named-credential.js +612 -26
- package/dist/es/es2018/types/src/generated/adapters/createCredential.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/getCredential.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/updateCredential.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/postNamedCredentialsCredential.d.ts +5 -7
- package/dist/es/es2018/types/src/generated/resources/putNamedCredentialsCredential.d.ts +2 -7
- package/dist/es/es2018/types/src/generated/types/CredentialInputRepresentation.d.ts +10 -7
- package/dist/es/es2018/types/src/generated/types/CredentialInputRepresentationWrapper.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CredentialMapRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CredentialRepresentation.d.ts +12 -7
- package/dist/es/es2018/types/src/generated/types/CredentialValueRepresentation.d.ts +34 -0
- package/package.json +5 -3
- package/sfdc/index.js +674 -74
- package/src/raml/api.raml +83 -11
- package/src/raml/luvio.raml +15 -0
package/src/raml/api.raml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
securedBy:
|
|
3
3
|
- OAuth2
|
|
4
4
|
title: Salesforce Connect API
|
|
5
|
-
version: '
|
|
5
|
+
version: '60.0'
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
@@ -30,17 +30,37 @@ types:
|
|
|
30
30
|
type: object
|
|
31
31
|
properties:
|
|
32
32
|
authenticationProtocol:
|
|
33
|
-
description: Authentication protocol of the external credential
|
|
33
|
+
description: Authentication protocol of the external credential. This field
|
|
34
|
+
is optional. However if present it must match the actual protocol of the
|
|
35
|
+
External Credential.
|
|
34
36
|
type: string
|
|
37
|
+
required: false
|
|
35
38
|
enum:
|
|
36
39
|
- AwsSv4
|
|
40
|
+
- Basic
|
|
41
|
+
- Custom
|
|
42
|
+
- Jwt
|
|
37
43
|
- OAuth
|
|
44
|
+
authenticationProtocolVariant:
|
|
45
|
+
description: Authentication protocol variant of the external credential. This
|
|
46
|
+
field is optional. However if present it must match the actual protocol
|
|
47
|
+
variant of the External Credential.
|
|
48
|
+
type: string
|
|
49
|
+
required: false
|
|
50
|
+
enum:
|
|
51
|
+
- AwsSv4_STS
|
|
52
|
+
- ClientCredentialsClientSecret
|
|
53
|
+
- ClientCredentialsClientSecretBasic
|
|
54
|
+
- ClientCredentialsJwtAssertion
|
|
55
|
+
- JwtBearer
|
|
56
|
+
- NoAuthentication
|
|
57
|
+
- RolesAnywhere
|
|
38
58
|
credentials:
|
|
39
59
|
description: Protocol specific credentials
|
|
40
60
|
type: object
|
|
41
61
|
properties:
|
|
42
62
|
//:
|
|
43
|
-
type:
|
|
63
|
+
type: object
|
|
44
64
|
externalCredential:
|
|
45
65
|
description: External Credential DeveloperName
|
|
46
66
|
type: string
|
|
@@ -48,10 +68,11 @@ types:
|
|
|
48
68
|
description: Principal Name of principals
|
|
49
69
|
type: string
|
|
50
70
|
principalType:
|
|
51
|
-
description: Principal Type of principals. Allowed values are NamedPrincipal
|
|
52
|
-
or
|
|
71
|
+
description: Principal Type of principals. Allowed values are NamedPrincipal,
|
|
72
|
+
PerUserPrincipal, or AwsStsPrincipal
|
|
53
73
|
type: string
|
|
54
74
|
enum:
|
|
75
|
+
- AwsStsPrincipal
|
|
55
76
|
- NamedPrincipal
|
|
56
77
|
- PerUserPrincipal
|
|
57
78
|
CredentialMapRepresentation:
|
|
@@ -63,7 +84,7 @@ types:
|
|
|
63
84
|
type: object
|
|
64
85
|
properties:
|
|
65
86
|
//:
|
|
66
|
-
type:
|
|
87
|
+
type: object
|
|
67
88
|
CredentialRepresentation:
|
|
68
89
|
description: Output representation for Credential
|
|
69
90
|
type: object
|
|
@@ -71,22 +92,39 @@ types:
|
|
|
71
92
|
authenticationProtocol:
|
|
72
93
|
description: Authentication protocol of the external credential
|
|
73
94
|
type: string
|
|
95
|
+
required: false
|
|
74
96
|
enum:
|
|
75
97
|
- AwsSv4
|
|
98
|
+
- Basic
|
|
99
|
+
- Custom
|
|
100
|
+
- Jwt
|
|
76
101
|
- OAuth
|
|
102
|
+
authenticationProtocolVariant:
|
|
103
|
+
description: Authentication protocol variant of the external credential
|
|
104
|
+
type: string
|
|
105
|
+
required: false
|
|
106
|
+
enum:
|
|
107
|
+
- AwsSv4_STS
|
|
108
|
+
- ClientCredentialsClientSecret
|
|
109
|
+
- ClientCredentialsClientSecretBasic
|
|
110
|
+
- ClientCredentialsJwtAssertion
|
|
111
|
+
- JwtBearer
|
|
112
|
+
- NoAuthentication
|
|
113
|
+
- RolesAnywhere
|
|
77
114
|
authenticationStatus:
|
|
78
115
|
description: Authentication Status. It's authenticated if external credential
|
|
79
116
|
has all required credentials for this principal
|
|
80
117
|
type: string
|
|
81
118
|
enum:
|
|
82
|
-
-
|
|
83
|
-
-
|
|
119
|
+
- Configured
|
|
120
|
+
- NotConfigured
|
|
121
|
+
- Unknown
|
|
84
122
|
credentials:
|
|
85
123
|
description: Protocol specific credentials
|
|
86
124
|
type: object
|
|
87
125
|
properties:
|
|
88
126
|
//:
|
|
89
|
-
type:
|
|
127
|
+
type: CredentialValueRepresentation
|
|
90
128
|
externalCredential:
|
|
91
129
|
description: External credential developer name
|
|
92
130
|
type: string
|
|
@@ -97,8 +135,32 @@ types:
|
|
|
97
135
|
description: Principal Type. It's either NamedPrincipal or PerUserPrincipal
|
|
98
136
|
type: string
|
|
99
137
|
enum:
|
|
138
|
+
- AwsStsPrincipal
|
|
100
139
|
- NamedPrincipal
|
|
101
140
|
- PerUserPrincipal
|
|
141
|
+
# TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
142
|
+
CredentialInputRepresentationWrapper:
|
|
143
|
+
description: Wrapper for CredentialInputRepresentation
|
|
144
|
+
type: object
|
|
145
|
+
properties:
|
|
146
|
+
requestBody:
|
|
147
|
+
type: CredentialInputRepresentation
|
|
148
|
+
description: Input representation to create or update credential
|
|
149
|
+
CredentialValueRepresentation:
|
|
150
|
+
description: Credential Value output representation for Credential
|
|
151
|
+
type: object
|
|
152
|
+
properties:
|
|
153
|
+
encrypted:
|
|
154
|
+
description: Credential value is encrypted
|
|
155
|
+
type: boolean
|
|
156
|
+
revision:
|
|
157
|
+
description: Revision number of the credential
|
|
158
|
+
type: integer | nil
|
|
159
|
+
required: false
|
|
160
|
+
value:
|
|
161
|
+
description: Value of the credential if not encrypted
|
|
162
|
+
type: string | nil
|
|
163
|
+
required: false
|
|
102
164
|
ExternalCredentialListRepresentation:
|
|
103
165
|
description: Output representation for External Credential List
|
|
104
166
|
type: object
|
|
@@ -260,6 +322,7 @@ types:
|
|
|
260
322
|
- NamedPrincipal
|
|
261
323
|
- PerUserPrincipal
|
|
262
324
|
post:
|
|
325
|
+
displayName: postCredential
|
|
263
326
|
description: POST method to create a Credential
|
|
264
327
|
responses:
|
|
265
328
|
'200':
|
|
@@ -267,13 +330,21 @@ types:
|
|
|
267
330
|
body:
|
|
268
331
|
application/json:
|
|
269
332
|
type: CredentialRepresentation
|
|
333
|
+
queryParameters:
|
|
334
|
+
action:
|
|
335
|
+
type: string
|
|
336
|
+
required: false
|
|
337
|
+
enum:
|
|
338
|
+
- Refresh
|
|
270
339
|
body:
|
|
271
340
|
application/json:
|
|
272
|
-
type:
|
|
341
|
+
type: CredentialInputRepresentationWrapper
|
|
342
|
+
# TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
273
343
|
# TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
274
344
|
# required: false
|
|
275
345
|
(oas-body-name): requestBody
|
|
276
346
|
put:
|
|
347
|
+
displayName: putCredential
|
|
277
348
|
description: PUT method to replace a Credential
|
|
278
349
|
responses:
|
|
279
350
|
'200':
|
|
@@ -283,7 +354,8 @@ types:
|
|
|
283
354
|
type: CredentialRepresentation
|
|
284
355
|
body:
|
|
285
356
|
application/json:
|
|
286
|
-
type:
|
|
357
|
+
type: CredentialInputRepresentationWrapper
|
|
358
|
+
# TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
287
359
|
# TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
288
360
|
# required: false
|
|
289
361
|
(oas-body-name): requestBody
|
package/src/raml/luvio.raml
CHANGED
|
@@ -15,6 +15,8 @@ types:
|
|
|
15
15
|
(luvio.key):
|
|
16
16
|
authenticationUrl: authenticationUrl
|
|
17
17
|
CredentialRepresentation:
|
|
18
|
+
(luvio.ttl): 100
|
|
19
|
+
(luvio.opaque): true
|
|
18
20
|
(luvio.key):
|
|
19
21
|
externalCredential: externalCredential
|
|
20
22
|
principalType: principalType
|
|
@@ -28,6 +30,19 @@ types:
|
|
|
28
30
|
externalCredential: queryParams.externalCredential || ''
|
|
29
31
|
principalType: queryParams.principalType || ''
|
|
30
32
|
principalName: queryParams.principalName || ''
|
|
33
|
+
get:
|
|
34
|
+
(luvio.adapter):
|
|
35
|
+
name: getCredential
|
|
36
|
+
(luvio.key):
|
|
37
|
+
externalCredential: queryParams.externalCredential || ''
|
|
38
|
+
principalType: queryParams.principalType || ''
|
|
39
|
+
principalName: queryParams.principalName || ''
|
|
40
|
+
post:
|
|
41
|
+
(luvio.adapter):
|
|
42
|
+
name: createCredential
|
|
43
|
+
put:
|
|
44
|
+
(luvio.adapter):
|
|
45
|
+
name: updateCredential
|
|
31
46
|
/named-credentials/credential/auth-url/o-auth:
|
|
32
47
|
post:
|
|
33
48
|
(luvio.adapter):
|