@aws-sdk/client-verifiedpermissions 3.549.0 → 3.552.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.
@@ -1,6 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@smithy/types";
3
3
  import { BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput } from "../commands/BatchIsAuthorizedCommand";
4
+ import { BatchIsAuthorizedWithTokenCommandInput, BatchIsAuthorizedWithTokenCommandOutput } from "../commands/BatchIsAuthorizedWithTokenCommand";
4
5
  import { CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput } from "../commands/CreateIdentitySourceCommand";
5
6
  import { CreatePolicyCommandInput, CreatePolicyCommandOutput } from "../commands/CreatePolicyCommand";
6
7
  import { CreatePolicyStoreCommandInput, CreatePolicyStoreCommandOutput } from "../commands/CreatePolicyStoreCommand";
@@ -29,6 +30,10 @@ import { UpdatePolicyTemplateCommandInput, UpdatePolicyTemplateCommandOutput } f
29
30
  * serializeAws_json1_0BatchIsAuthorizedCommand
30
31
  */
31
32
  export declare const se_BatchIsAuthorizedCommand: (input: BatchIsAuthorizedCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
+ /**
34
+ * serializeAws_json1_0BatchIsAuthorizedWithTokenCommand
35
+ */
36
+ export declare const se_BatchIsAuthorizedWithTokenCommand: (input: BatchIsAuthorizedWithTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
32
37
  /**
33
38
  * serializeAws_json1_0CreateIdentitySourceCommand
34
39
  */
@@ -129,6 +134,10 @@ export declare const se_UpdatePolicyTemplateCommand: (input: UpdatePolicyTemplat
129
134
  * deserializeAws_json1_0BatchIsAuthorizedCommand
130
135
  */
131
136
  export declare const de_BatchIsAuthorizedCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchIsAuthorizedCommandOutput>;
137
+ /**
138
+ * deserializeAws_json1_0BatchIsAuthorizedWithTokenCommand
139
+ */
140
+ export declare const de_BatchIsAuthorizedWithTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchIsAuthorizedWithTokenCommandOutput>;
132
141
  /**
133
142
  * deserializeAws_json1_0CreateIdentitySourceCommand
134
143
  */
@@ -3,6 +3,10 @@ import {
3
3
  BatchIsAuthorizedCommandInput,
4
4
  BatchIsAuthorizedCommandOutput,
5
5
  } from "./commands/BatchIsAuthorizedCommand";
6
+ import {
7
+ BatchIsAuthorizedWithTokenCommandInput,
8
+ BatchIsAuthorizedWithTokenCommandOutput,
9
+ } from "./commands/BatchIsAuthorizedWithTokenCommand";
6
10
  import {
7
11
  CreateIdentitySourceCommandInput,
8
12
  CreateIdentitySourceCommandOutput,
@@ -114,6 +118,19 @@ export interface VerifiedPermissions {
114
118
  options: __HttpHandlerOptions,
115
119
  cb: (err: any, data?: BatchIsAuthorizedCommandOutput) => void
116
120
  ): void;
121
+ batchIsAuthorizedWithToken(
122
+ args: BatchIsAuthorizedWithTokenCommandInput,
123
+ options?: __HttpHandlerOptions
124
+ ): Promise<BatchIsAuthorizedWithTokenCommandOutput>;
125
+ batchIsAuthorizedWithToken(
126
+ args: BatchIsAuthorizedWithTokenCommandInput,
127
+ cb: (err: any, data?: BatchIsAuthorizedWithTokenCommandOutput) => void
128
+ ): void;
129
+ batchIsAuthorizedWithToken(
130
+ args: BatchIsAuthorizedWithTokenCommandInput,
131
+ options: __HttpHandlerOptions,
132
+ cb: (err: any, data?: BatchIsAuthorizedWithTokenCommandOutput) => void
133
+ ): void;
117
134
  createIdentitySource(
118
135
  args: CreateIdentitySourceCommandInput,
119
136
  options?: __HttpHandlerOptions
@@ -49,6 +49,10 @@ import {
49
49
  BatchIsAuthorizedCommandInput,
50
50
  BatchIsAuthorizedCommandOutput,
51
51
  } from "./commands/BatchIsAuthorizedCommand";
52
+ import {
53
+ BatchIsAuthorizedWithTokenCommandInput,
54
+ BatchIsAuthorizedWithTokenCommandOutput,
55
+ } from "./commands/BatchIsAuthorizedWithTokenCommand";
52
56
  import {
53
57
  CreateIdentitySourceCommandInput,
54
58
  CreateIdentitySourceCommandOutput,
@@ -154,6 +158,7 @@ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
154
158
  export { __Client };
155
159
  export type ServiceInputTypes =
156
160
  | BatchIsAuthorizedCommandInput
161
+ | BatchIsAuthorizedWithTokenCommandInput
157
162
  | CreateIdentitySourceCommandInput
158
163
  | CreatePolicyCommandInput
159
164
  | CreatePolicyStoreCommandInput
@@ -180,6 +185,7 @@ export type ServiceInputTypes =
180
185
  | UpdatePolicyTemplateCommandInput;
181
186
  export type ServiceOutputTypes =
182
187
  | BatchIsAuthorizedCommandOutput
188
+ | BatchIsAuthorizedWithTokenCommandOutput
183
189
  | CreateIdentitySourceCommandOutput
184
190
  | CreatePolicyCommandOutput
185
191
  | CreatePolicyStoreCommandOutput
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BatchIsAuthorizedWithTokenInput,
5
+ BatchIsAuthorizedWithTokenOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ VerifiedPermissionsClientResolvedConfig,
11
+ } from "../VerifiedPermissionsClient";
12
+ export { __MetadataBearer, $Command };
13
+ export interface BatchIsAuthorizedWithTokenCommandInput
14
+ extends BatchIsAuthorizedWithTokenInput {}
15
+ export interface BatchIsAuthorizedWithTokenCommandOutput
16
+ extends BatchIsAuthorizedWithTokenOutput,
17
+ __MetadataBearer {}
18
+ declare const BatchIsAuthorizedWithTokenCommand_base: {
19
+ new (
20
+ input: BatchIsAuthorizedWithTokenCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ BatchIsAuthorizedWithTokenCommandInput,
23
+ BatchIsAuthorizedWithTokenCommandOutput,
24
+ VerifiedPermissionsClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: BatchIsAuthorizedWithTokenCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ BatchIsAuthorizedWithTokenCommandInput,
32
+ BatchIsAuthorizedWithTokenCommandOutput,
33
+ VerifiedPermissionsClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class BatchIsAuthorizedWithTokenCommand extends BatchIsAuthorizedWithTokenCommand_base {}
@@ -1,4 +1,5 @@
1
1
  export * from "./BatchIsAuthorizedCommand";
2
+ export * from "./BatchIsAuthorizedWithTokenCommand";
2
3
  export * from "./CreateIdentitySourceCommand";
3
4
  export * from "./CreatePolicyCommand";
4
5
  export * from "./CreatePolicyStoreCommand";
@@ -801,12 +801,23 @@ export interface BatchIsAuthorizedInputItem {
801
801
  resource?: EntityIdentifier;
802
802
  context?: ContextDefinition;
803
803
  }
804
+ export interface BatchIsAuthorizedWithTokenInputItem {
805
+ action?: ActionIdentifier;
806
+ resource?: EntityIdentifier;
807
+ context?: ContextDefinition;
808
+ }
804
809
  export interface BatchIsAuthorizedOutputItem {
805
810
  request: BatchIsAuthorizedInputItem | undefined;
806
811
  decision: Decision | undefined;
807
812
  determiningPolicies: DeterminingPolicyItem[] | undefined;
808
813
  errors: EvaluationErrorItem[] | undefined;
809
814
  }
815
+ export interface BatchIsAuthorizedWithTokenOutputItem {
816
+ request: BatchIsAuthorizedWithTokenInputItem | undefined;
817
+ decision: Decision | undefined;
818
+ determiningPolicies: DeterminingPolicyItem[] | undefined;
819
+ errors: EvaluationErrorItem[] | undefined;
820
+ }
810
821
  export type EntitiesDefinition =
811
822
  | EntitiesDefinition.EntityListMember
812
823
  | EntitiesDefinition.$UnknownMember;
@@ -828,6 +839,10 @@ export declare namespace EntitiesDefinition {
828
839
  export interface BatchIsAuthorizedOutput {
829
840
  results: BatchIsAuthorizedOutputItem[] | undefined;
830
841
  }
842
+ export interface BatchIsAuthorizedWithTokenOutput {
843
+ principal?: EntityIdentifier;
844
+ results: BatchIsAuthorizedWithTokenOutputItem[] | undefined;
845
+ }
831
846
  export interface IsAuthorizedInput {
832
847
  policyStoreId: string | undefined;
833
848
  principal?: EntityIdentifier;
@@ -850,6 +865,13 @@ export interface BatchIsAuthorizedInput {
850
865
  entities?: EntitiesDefinition;
851
866
  requests: BatchIsAuthorizedInputItem[] | undefined;
852
867
  }
868
+ export interface BatchIsAuthorizedWithTokenInput {
869
+ policyStoreId: string | undefined;
870
+ identityToken?: string;
871
+ accessToken?: string;
872
+ entities?: EntitiesDefinition;
873
+ requests: BatchIsAuthorizedWithTokenInputItem[] | undefined;
874
+ }
853
875
  export declare const ActionIdentifierFilterSensitiveLog: (
854
876
  obj: ActionIdentifier
855
877
  ) => any;
@@ -1039,15 +1061,24 @@ export declare const EntityItemFilterSensitiveLog: (obj: EntityItem) => any;
1039
1061
  export declare const BatchIsAuthorizedInputItemFilterSensitiveLog: (
1040
1062
  obj: BatchIsAuthorizedInputItem
1041
1063
  ) => any;
1064
+ export declare const BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog: (
1065
+ obj: BatchIsAuthorizedWithTokenInputItem
1066
+ ) => any;
1042
1067
  export declare const BatchIsAuthorizedOutputItemFilterSensitiveLog: (
1043
1068
  obj: BatchIsAuthorizedOutputItem
1044
1069
  ) => any;
1070
+ export declare const BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog: (
1071
+ obj: BatchIsAuthorizedWithTokenOutputItem
1072
+ ) => any;
1045
1073
  export declare const EntitiesDefinitionFilterSensitiveLog: (
1046
1074
  obj: EntitiesDefinition
1047
1075
  ) => any;
1048
1076
  export declare const BatchIsAuthorizedOutputFilterSensitiveLog: (
1049
1077
  obj: BatchIsAuthorizedOutput
1050
1078
  ) => any;
1079
+ export declare const BatchIsAuthorizedWithTokenOutputFilterSensitiveLog: (
1080
+ obj: BatchIsAuthorizedWithTokenOutput
1081
+ ) => any;
1051
1082
  export declare const IsAuthorizedInputFilterSensitiveLog: (
1052
1083
  obj: IsAuthorizedInput
1053
1084
  ) => any;
@@ -1057,3 +1088,6 @@ export declare const IsAuthorizedWithTokenInputFilterSensitiveLog: (
1057
1088
  export declare const BatchIsAuthorizedInputFilterSensitiveLog: (
1058
1089
  obj: BatchIsAuthorizedInput
1059
1090
  ) => any;
1091
+ export declare const BatchIsAuthorizedWithTokenInputFilterSensitiveLog: (
1092
+ obj: BatchIsAuthorizedWithTokenInput
1093
+ ) => any;
@@ -7,6 +7,10 @@ import {
7
7
  BatchIsAuthorizedCommandInput,
8
8
  BatchIsAuthorizedCommandOutput,
9
9
  } from "../commands/BatchIsAuthorizedCommand";
10
+ import {
11
+ BatchIsAuthorizedWithTokenCommandInput,
12
+ BatchIsAuthorizedWithTokenCommandOutput,
13
+ } from "../commands/BatchIsAuthorizedWithTokenCommand";
10
14
  import {
11
15
  CreateIdentitySourceCommandInput,
12
16
  CreateIdentitySourceCommandOutput,
@@ -107,6 +111,10 @@ export declare const se_BatchIsAuthorizedCommand: (
107
111
  input: BatchIsAuthorizedCommandInput,
108
112
  context: __SerdeContext
109
113
  ) => Promise<__HttpRequest>;
114
+ export declare const se_BatchIsAuthorizedWithTokenCommand: (
115
+ input: BatchIsAuthorizedWithTokenCommandInput,
116
+ context: __SerdeContext
117
+ ) => Promise<__HttpRequest>;
110
118
  export declare const se_CreateIdentitySourceCommand: (
111
119
  input: CreateIdentitySourceCommandInput,
112
120
  context: __SerdeContext
@@ -207,6 +215,10 @@ export declare const de_BatchIsAuthorizedCommand: (
207
215
  output: __HttpResponse,
208
216
  context: __SerdeContext
209
217
  ) => Promise<BatchIsAuthorizedCommandOutput>;
218
+ export declare const de_BatchIsAuthorizedWithTokenCommand: (
219
+ output: __HttpResponse,
220
+ context: __SerdeContext
221
+ ) => Promise<BatchIsAuthorizedWithTokenCommandOutput>;
210
222
  export declare const de_CreateIdentitySourceCommand: (
211
223
  output: __HttpResponse,
212
224
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-verifiedpermissions",
3
3
  "description": "AWS SDK for JavaScript Verifiedpermissions Client for Node.js, Browser and React Native",
4
- "version": "3.549.0",
4
+ "version": "3.552.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-verifiedpermissions",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.549.0",
24
- "@aws-sdk/core": "3.549.0",
25
- "@aws-sdk/credential-provider-node": "3.549.0",
23
+ "@aws-sdk/client-sts": "3.552.0",
24
+ "@aws-sdk/core": "3.552.0",
25
+ "@aws-sdk/credential-provider-node": "3.552.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",
@@ -33,26 +33,26 @@
33
33
  "@aws-sdk/util-user-agent-browser": "3.535.0",
34
34
  "@aws-sdk/util-user-agent-node": "3.535.0",
35
35
  "@smithy/config-resolver": "^2.2.0",
36
- "@smithy/core": "^1.4.1",
36
+ "@smithy/core": "^1.4.2",
37
37
  "@smithy/fetch-http-handler": "^2.5.0",
38
38
  "@smithy/hash-node": "^2.2.0",
39
39
  "@smithy/invalid-dependency": "^2.2.0",
40
40
  "@smithy/middleware-content-length": "^2.2.0",
41
- "@smithy/middleware-endpoint": "^2.5.0",
42
- "@smithy/middleware-retry": "^2.3.0",
41
+ "@smithy/middleware-endpoint": "^2.5.1",
42
+ "@smithy/middleware-retry": "^2.3.1",
43
43
  "@smithy/middleware-serde": "^2.3.0",
44
44
  "@smithy/middleware-stack": "^2.2.0",
45
45
  "@smithy/node-config-provider": "^2.3.0",
46
46
  "@smithy/node-http-handler": "^2.5.0",
47
47
  "@smithy/protocol-http": "^3.3.0",
48
- "@smithy/smithy-client": "^2.5.0",
48
+ "@smithy/smithy-client": "^2.5.1",
49
49
  "@smithy/types": "^2.12.0",
50
50
  "@smithy/url-parser": "^2.2.0",
51
51
  "@smithy/util-base64": "^2.3.0",
52
52
  "@smithy/util-body-length-browser": "^2.2.0",
53
53
  "@smithy/util-body-length-node": "^2.3.0",
54
- "@smithy/util-defaults-mode-browser": "^2.2.0",
55
- "@smithy/util-defaults-mode-node": "^2.3.0",
54
+ "@smithy/util-defaults-mode-browser": "^2.2.1",
55
+ "@smithy/util-defaults-mode-node": "^2.3.1",
56
56
  "@smithy/util-endpoints": "^1.2.0",
57
57
  "@smithy/util-middleware": "^2.2.0",
58
58
  "@smithy/util-retry": "^2.2.0",