@aws-sdk/client-appflow 3.319.0 → 3.323.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-cjs/models/models_0.js +2 -0
- package/dist-es/models/models_0.js +2 -0
- package/dist-types/commands/CreateConnectorProfileCommand.d.ts +3 -1
- package/dist-types/commands/UpdateConnectorProfileCommand.d.ts +3 -1
- package/dist-types/models/models_0.d.ts +78 -15
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/package.json +4 -4
|
@@ -31,6 +31,7 @@ exports.OAuth2CustomPropType = {
|
|
|
31
31
|
exports.OAuth2GrantType = {
|
|
32
32
|
AUTHORIZATION_CODE: "AUTHORIZATION_CODE",
|
|
33
33
|
CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS",
|
|
34
|
+
JWT_BEARER: "JWT_BEARER",
|
|
34
35
|
};
|
|
35
36
|
exports.AuthenticationType = {
|
|
36
37
|
APIKEY: "APIKEY",
|
|
@@ -696,6 +697,7 @@ const SalesforceConnectorProfileCredentialsFilterSensitiveLog = (obj) => ({
|
|
|
696
697
|
...obj,
|
|
697
698
|
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
698
699
|
...(obj.clientCredentialsArn && { clientCredentialsArn: smithy_client_1.SENSITIVE_STRING }),
|
|
700
|
+
...(obj.jwtToken && { jwtToken: smithy_client_1.SENSITIVE_STRING }),
|
|
699
701
|
});
|
|
700
702
|
exports.SalesforceConnectorProfileCredentialsFilterSensitiveLog = SalesforceConnectorProfileCredentialsFilterSensitiveLog;
|
|
701
703
|
const OAuthCredentialsFilterSensitiveLog = (obj) => ({
|
|
@@ -26,6 +26,7 @@ export const OAuth2CustomPropType = {
|
|
|
26
26
|
export const OAuth2GrantType = {
|
|
27
27
|
AUTHORIZATION_CODE: "AUTHORIZATION_CODE",
|
|
28
28
|
CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS",
|
|
29
|
+
JWT_BEARER: "JWT_BEARER",
|
|
29
30
|
};
|
|
30
31
|
export const AuthenticationType = {
|
|
31
32
|
APIKEY: "APIKEY",
|
|
@@ -669,6 +670,7 @@ export const SalesforceConnectorProfileCredentialsFilterSensitiveLog = (obj) =>
|
|
|
669
670
|
...obj,
|
|
670
671
|
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
671
672
|
...(obj.clientCredentialsArn && { clientCredentialsArn: SENSITIVE_STRING }),
|
|
673
|
+
...(obj.jwtToken && { jwtToken: SENSITIVE_STRING }),
|
|
672
674
|
});
|
|
673
675
|
export const OAuthCredentialsFilterSensitiveLog = (obj) => ({
|
|
674
676
|
...obj,
|
|
@@ -113,7 +113,7 @@ export interface CreateConnectorProfileCommandOutput extends CreateConnectorProf
|
|
|
113
113
|
* },
|
|
114
114
|
* oAuth2Properties: { // OAuth2Properties
|
|
115
115
|
* tokenUrl: "STRING_VALUE", // required
|
|
116
|
-
* oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE", // required
|
|
116
|
+
* oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE" || "JWT_BEARER", // required
|
|
117
117
|
* tokenUrlCustomProperties: { // TokenUrlCustomProperties
|
|
118
118
|
* "<keys>": "STRING_VALUE",
|
|
119
119
|
* },
|
|
@@ -182,6 +182,8 @@ export interface CreateConnectorProfileCommandOutput extends CreateConnectorProf
|
|
|
182
182
|
* redirectUri: "STRING_VALUE",
|
|
183
183
|
* },
|
|
184
184
|
* clientCredentialsArn: "STRING_VALUE",
|
|
185
|
+
* oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE" || "JWT_BEARER",
|
|
186
|
+
* jwtToken: "STRING_VALUE",
|
|
185
187
|
* },
|
|
186
188
|
* ServiceNow: { // ServiceNowConnectorProfileCredentials
|
|
187
189
|
* username: "STRING_VALUE", // required
|
|
@@ -106,7 +106,7 @@ export interface UpdateConnectorProfileCommandOutput extends UpdateConnectorProf
|
|
|
106
106
|
* },
|
|
107
107
|
* oAuth2Properties: { // OAuth2Properties
|
|
108
108
|
* tokenUrl: "STRING_VALUE", // required
|
|
109
|
-
* oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE", // required
|
|
109
|
+
* oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE" || "JWT_BEARER", // required
|
|
110
110
|
* tokenUrlCustomProperties: { // TokenUrlCustomProperties
|
|
111
111
|
* "<keys>": "STRING_VALUE",
|
|
112
112
|
* },
|
|
@@ -175,6 +175,8 @@ export interface UpdateConnectorProfileCommandOutput extends UpdateConnectorProf
|
|
|
175
175
|
* redirectUri: "STRING_VALUE",
|
|
176
176
|
* },
|
|
177
177
|
* clientCredentialsArn: "STRING_VALUE",
|
|
178
|
+
* oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE" || "JWT_BEARER",
|
|
179
|
+
* jwtToken: "STRING_VALUE",
|
|
178
180
|
* },
|
|
179
181
|
* ServiceNow: { // ServiceNowConnectorProfileCredentials
|
|
180
182
|
* username: "STRING_VALUE", // required
|
|
@@ -204,6 +204,7 @@ export interface OAuth2CustomParameter {
|
|
|
204
204
|
export declare const OAuth2GrantType: {
|
|
205
205
|
readonly AUTHORIZATION_CODE: "AUTHORIZATION_CODE";
|
|
206
206
|
readonly CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
|
|
207
|
+
readonly JWT_BEARER: "JWT_BEARER";
|
|
207
208
|
};
|
|
208
209
|
/**
|
|
209
210
|
* @public
|
|
@@ -442,6 +443,34 @@ export interface SalesforceMetadata {
|
|
|
442
443
|
* data to or from Salesforce.</p>
|
|
443
444
|
*/
|
|
444
445
|
dataTransferApis?: (SalesforceDataTransferApi | string)[];
|
|
446
|
+
/**
|
|
447
|
+
* <p>The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access
|
|
448
|
+
* token from Salesforce. Amazon AppFlow requires an access token each time it
|
|
449
|
+
* attempts to access your Salesforce records.</p>
|
|
450
|
+
* <dl>
|
|
451
|
+
* <dt>AUTHORIZATION_CODE</dt>
|
|
452
|
+
* <dd>
|
|
453
|
+
* <p>Amazon AppFlow passes an authorization code when it requests the access token
|
|
454
|
+
* from Salesforce. Amazon AppFlow receives the authorization code from Salesforce
|
|
455
|
+
* after you log in to your Salesforce account and authorize Amazon AppFlow to access
|
|
456
|
+
* your records.</p>
|
|
457
|
+
* </dd>
|
|
458
|
+
* <dt>CLIENT_CREDENTIALS</dt>
|
|
459
|
+
* <dd>
|
|
460
|
+
* <p>Amazon AppFlow passes client credentials (a client ID and client secret) when
|
|
461
|
+
* it requests the access token from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce account.</p>
|
|
462
|
+
* </dd>
|
|
463
|
+
* <dt>JWT_BEARER</dt>
|
|
464
|
+
* <dd>
|
|
465
|
+
* <p>Amazon AppFlow passes a JSON web token (JWT) when it requests the access token
|
|
466
|
+
* from Salesforce. You provide the JWT to Amazon AppFlow when you define the
|
|
467
|
+
* connection to your Salesforce account. When you use this grant type, you don't need to
|
|
468
|
+
* log in to your Salesforce account to authorize Amazon AppFlow to access your
|
|
469
|
+
* records.</p>
|
|
470
|
+
* </dd>
|
|
471
|
+
* </dl>
|
|
472
|
+
*/
|
|
473
|
+
oauth2GrantTypesSupported?: (OAuth2GrantType | string)[];
|
|
445
474
|
}
|
|
446
475
|
/**
|
|
447
476
|
* @public
|
|
@@ -2443,6 +2472,40 @@ export interface SalesforceConnectorProfileCredentials {
|
|
|
2443
2472
|
* app. </p>
|
|
2444
2473
|
*/
|
|
2445
2474
|
clientCredentialsArn?: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* <p>Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an
|
|
2477
|
+
* access token from Salesforce. Amazon AppFlow requires an access token each time it
|
|
2478
|
+
* attempts to access your Salesforce records.</p>
|
|
2479
|
+
* <p>You can specify one of the following values:</p>
|
|
2480
|
+
* <dl>
|
|
2481
|
+
* <dt>AUTHORIZATION_CODE</dt>
|
|
2482
|
+
* <dd>
|
|
2483
|
+
* <p>Amazon AppFlow passes an authorization code when it requests the access token
|
|
2484
|
+
* from Salesforce. Amazon AppFlow receives the authorization code from Salesforce
|
|
2485
|
+
* after you log in to your Salesforce account and authorize Amazon AppFlow to access
|
|
2486
|
+
* your records.</p>
|
|
2487
|
+
* </dd>
|
|
2488
|
+
* <dt>CLIENT_CREDENTIALS</dt>
|
|
2489
|
+
* <dd>
|
|
2490
|
+
* <p>Amazon AppFlow passes client credentials (a client ID and client secret) when
|
|
2491
|
+
* it requests the access token from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce account.</p>
|
|
2492
|
+
* </dd>
|
|
2493
|
+
* <dt>JWT_BEARER</dt>
|
|
2494
|
+
* <dd>
|
|
2495
|
+
* <p>Amazon AppFlow passes a JSON web token (JWT) when it requests the access token
|
|
2496
|
+
* from Salesforce. You provide the JWT to Amazon AppFlow when you define the
|
|
2497
|
+
* connection to your Salesforce account. When you use this grant type, you don't need to
|
|
2498
|
+
* log in to your Salesforce account to authorize Amazon AppFlow to access your
|
|
2499
|
+
* records.</p>
|
|
2500
|
+
* </dd>
|
|
2501
|
+
* </dl>
|
|
2502
|
+
*/
|
|
2503
|
+
oAuth2GrantType?: OAuth2GrantType | string;
|
|
2504
|
+
/**
|
|
2505
|
+
* <p>A JSON web token (JWT) that authorizes Amazon AppFlow to access your Salesforce
|
|
2506
|
+
* records.</p>
|
|
2507
|
+
*/
|
|
2508
|
+
jwtToken?: string;
|
|
2446
2509
|
}
|
|
2447
2510
|
/**
|
|
2448
2511
|
* @public
|
|
@@ -4070,9 +4133,9 @@ export interface CreateFlowRequest {
|
|
|
4070
4133
|
metadataCatalogConfig?: MetadataCatalogConfig;
|
|
4071
4134
|
/**
|
|
4072
4135
|
* <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
|
|
4073
|
-
*
|
|
4074
|
-
*
|
|
4075
|
-
*
|
|
4136
|
+
* <code>CreateFlow</code> request completes only once. You choose the value to pass. For
|
|
4137
|
+
* example, if you don't receive a response from your request, you can safely retry the request
|
|
4138
|
+
* with the same <code>clientToken</code> parameter value.</p>
|
|
4076
4139
|
* <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
|
|
4077
4140
|
* using inserts a value for you. This way, the SDK can safely retry requests multiple times
|
|
4078
4141
|
* after a network error. You must provide your own value for other use cases.</p>
|
|
@@ -4838,8 +4901,8 @@ export interface RegisterConnectorRequest {
|
|
|
4838
4901
|
connectorProvisioningConfig?: ConnectorProvisioningConfig;
|
|
4839
4902
|
/**
|
|
4840
4903
|
* <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
|
|
4841
|
-
*
|
|
4842
|
-
*
|
|
4904
|
+
* <code>RegisterConnector</code> request completes only once. You choose the value to pass.
|
|
4905
|
+
* For example, if you don't receive a response from your request, you can safely retry the
|
|
4843
4906
|
* request with the same <code>clientToken</code> parameter value.</p>
|
|
4844
4907
|
* <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
|
|
4845
4908
|
* using inserts a value for you. This way, the SDK can safely retry requests multiple times
|
|
@@ -4883,9 +4946,9 @@ export interface StartFlowRequest {
|
|
|
4883
4946
|
flowName: string | undefined;
|
|
4884
4947
|
/**
|
|
4885
4948
|
* <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
|
|
4886
|
-
*
|
|
4887
|
-
*
|
|
4888
|
-
*
|
|
4949
|
+
* <code>StartFlow</code> request completes only once. You choose the value to pass. For
|
|
4950
|
+
* example, if you don't receive a response from your request, you can safely retry the request
|
|
4951
|
+
* with the same <code>clientToken</code> parameter value.</p>
|
|
4889
4952
|
* <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
|
|
4890
4953
|
* using inserts a value for you. This way, the SDK can safely retry requests multiple times
|
|
4891
4954
|
* after a network error. You must provide your own value for other use cases.</p>
|
|
@@ -5026,7 +5089,7 @@ export interface UpdateConnectorProfileRequest {
|
|
|
5026
5089
|
connectorProfileConfig: ConnectorProfileConfig | undefined;
|
|
5027
5090
|
/**
|
|
5028
5091
|
* <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
|
|
5029
|
-
*
|
|
5092
|
+
* <code>UpdateConnectorProfile</code> request completes only once. You choose the value to
|
|
5030
5093
|
* pass. For example, if you don't receive a response from your request, you can safely retry the
|
|
5031
5094
|
* request with the same <code>clientToken</code> parameter value.</p>
|
|
5032
5095
|
* <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
|
|
@@ -5066,9 +5129,9 @@ export interface UpdateConnectorRegistrationRequest {
|
|
|
5066
5129
|
connectorProvisioningConfig?: ConnectorProvisioningConfig;
|
|
5067
5130
|
/**
|
|
5068
5131
|
* <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
|
|
5069
|
-
*
|
|
5070
|
-
* pass. For example, if you don't receive a response from your request, you can safely retry
|
|
5071
|
-
* request with the same <code>clientToken</code> parameter value.</p>
|
|
5132
|
+
* <code>UpdateConnectorRegistration</code> request completes only once. You choose the value
|
|
5133
|
+
* to pass. For example, if you don't receive a response from your request, you can safely retry
|
|
5134
|
+
* the request with the same <code>clientToken</code> parameter value.</p>
|
|
5072
5135
|
* <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
|
|
5073
5136
|
* using inserts a value for you. This way, the SDK can safely retry requests multiple times
|
|
5074
5137
|
* after a network error. You must provide your own value for other use cases.</p>
|
|
@@ -5127,9 +5190,9 @@ export interface UpdateFlowRequest {
|
|
|
5127
5190
|
metadataCatalogConfig?: MetadataCatalogConfig;
|
|
5128
5191
|
/**
|
|
5129
5192
|
* <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
|
|
5130
|
-
*
|
|
5131
|
-
*
|
|
5132
|
-
*
|
|
5193
|
+
* <code>UpdateFlow</code> request completes only once. You choose the value to pass. For
|
|
5194
|
+
* example, if you don't receive a response from your request, you can safely retry the request
|
|
5195
|
+
* with the same <code>clientToken</code> parameter value.</p>
|
|
5133
5196
|
* <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
|
|
5134
5197
|
* using inserts a value for you. This way, the SDK can safely retry requests multiple times
|
|
5135
5198
|
* after a network error. You must provide your own value for other use cases.</p>
|
|
@@ -65,6 +65,7 @@ export interface OAuth2CustomParameter {
|
|
|
65
65
|
export declare const OAuth2GrantType: {
|
|
66
66
|
readonly AUTHORIZATION_CODE: "AUTHORIZATION_CODE";
|
|
67
67
|
readonly CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
|
|
68
|
+
readonly JWT_BEARER: "JWT_BEARER";
|
|
68
69
|
};
|
|
69
70
|
export type OAuth2GrantType =
|
|
70
71
|
(typeof OAuth2GrantType)[keyof typeof OAuth2GrantType];
|
|
@@ -145,6 +146,7 @@ export type SalesforceDataTransferApi =
|
|
|
145
146
|
export interface SalesforceMetadata {
|
|
146
147
|
oAuthScopes?: string[];
|
|
147
148
|
dataTransferApis?: (SalesforceDataTransferApi | string)[];
|
|
149
|
+
oauth2GrantTypesSupported?: (OAuth2GrantType | string)[];
|
|
148
150
|
}
|
|
149
151
|
export interface SAPODataMetadata {}
|
|
150
152
|
export interface ServiceNowMetadata {}
|
|
@@ -916,6 +918,8 @@ export interface SalesforceConnectorProfileCredentials {
|
|
|
916
918
|
refreshToken?: string;
|
|
917
919
|
oAuthRequest?: ConnectorOAuthRequest;
|
|
918
920
|
clientCredentialsArn?: string;
|
|
921
|
+
oAuth2GrantType?: OAuth2GrantType | string;
|
|
922
|
+
jwtToken?: string;
|
|
919
923
|
}
|
|
920
924
|
export interface OAuthCredentials {
|
|
921
925
|
clientId: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appflow",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appflow Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.323.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.321.1",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.321.1",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.321.1",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
43
|
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|