@aws-sdk/client-verifiedpermissions 3.451.0 → 3.458.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,5 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@smithy/types";
3
+ import { BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput } from "../commands/BatchIsAuthorizedCommand";
3
4
  import { CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput } from "../commands/CreateIdentitySourceCommand";
4
5
  import { CreatePolicyCommandInput, CreatePolicyCommandOutput } from "../commands/CreatePolicyCommand";
5
6
  import { CreatePolicyStoreCommandInput, CreatePolicyStoreCommandOutput } from "../commands/CreatePolicyStoreCommand";
@@ -24,6 +25,10 @@ import { UpdateIdentitySourceCommandInput, UpdateIdentitySourceCommandOutput } f
24
25
  import { UpdatePolicyCommandInput, UpdatePolicyCommandOutput } from "../commands/UpdatePolicyCommand";
25
26
  import { UpdatePolicyStoreCommandInput, UpdatePolicyStoreCommandOutput } from "../commands/UpdatePolicyStoreCommand";
26
27
  import { UpdatePolicyTemplateCommandInput, UpdatePolicyTemplateCommandOutput } from "../commands/UpdatePolicyTemplateCommand";
28
+ /**
29
+ * serializeAws_json1_0BatchIsAuthorizedCommand
30
+ */
31
+ export declare const se_BatchIsAuthorizedCommand: (input: BatchIsAuthorizedCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
27
32
  /**
28
33
  * serializeAws_json1_0CreateIdentitySourceCommand
29
34
  */
@@ -120,6 +125,10 @@ export declare const se_UpdatePolicyStoreCommand: (input: UpdatePolicyStoreComma
120
125
  * serializeAws_json1_0UpdatePolicyTemplateCommand
121
126
  */
122
127
  export declare const se_UpdatePolicyTemplateCommand: (input: UpdatePolicyTemplateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
128
+ /**
129
+ * deserializeAws_json1_0BatchIsAuthorizedCommand
130
+ */
131
+ export declare const de_BatchIsAuthorizedCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchIsAuthorizedCommandOutput>;
123
132
  /**
124
133
  * deserializeAws_json1_0CreateIdentitySourceCommand
125
134
  */
@@ -1,4 +1,8 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ BatchIsAuthorizedCommandInput,
4
+ BatchIsAuthorizedCommandOutput,
5
+ } from "./commands/BatchIsAuthorizedCommand";
2
6
  import {
3
7
  CreateIdentitySourceCommandInput,
4
8
  CreateIdentitySourceCommandOutput,
@@ -97,6 +101,19 @@ import {
97
101
  } from "./commands/UpdatePolicyTemplateCommand";
98
102
  import { VerifiedPermissionsClient } from "./VerifiedPermissionsClient";
99
103
  export interface VerifiedPermissions {
104
+ batchIsAuthorized(
105
+ args: BatchIsAuthorizedCommandInput,
106
+ options?: __HttpHandlerOptions
107
+ ): Promise<BatchIsAuthorizedCommandOutput>;
108
+ batchIsAuthorized(
109
+ args: BatchIsAuthorizedCommandInput,
110
+ cb: (err: any, data?: BatchIsAuthorizedCommandOutput) => void
111
+ ): void;
112
+ batchIsAuthorized(
113
+ args: BatchIsAuthorizedCommandInput,
114
+ options: __HttpHandlerOptions,
115
+ cb: (err: any, data?: BatchIsAuthorizedCommandOutput) => void
116
+ ): void;
100
117
  createIdentitySource(
101
118
  args: CreateIdentitySourceCommandInput,
102
119
  options?: __HttpHandlerOptions
@@ -45,6 +45,10 @@ import {
45
45
  UrlParser as __UrlParser,
46
46
  UserAgent as __UserAgent,
47
47
  } from "@smithy/types";
48
+ import {
49
+ BatchIsAuthorizedCommandInput,
50
+ BatchIsAuthorizedCommandOutput,
51
+ } from "./commands/BatchIsAuthorizedCommand";
48
52
  import {
49
53
  CreateIdentitySourceCommandInput,
50
54
  CreateIdentitySourceCommandOutput,
@@ -149,6 +153,7 @@ import {
149
153
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
150
154
  export { __Client };
151
155
  export type ServiceInputTypes =
156
+ | BatchIsAuthorizedCommandInput
152
157
  | CreateIdentitySourceCommandInput
153
158
  | CreatePolicyCommandInput
154
159
  | CreatePolicyStoreCommandInput
@@ -174,6 +179,7 @@ export type ServiceInputTypes =
174
179
  | UpdatePolicyStoreCommandInput
175
180
  | UpdatePolicyTemplateCommandInput;
176
181
  export type ServiceOutputTypes =
182
+ | BatchIsAuthorizedCommandOutput
177
183
  | CreateIdentitySourceCommandOutput
178
184
  | CreatePolicyCommandOutput
179
185
  | CreatePolicyStoreCommandOutput
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ BatchIsAuthorizedInput,
11
+ BatchIsAuthorizedOutput,
12
+ } from "../models/models_0";
13
+ import {
14
+ ServiceInputTypes,
15
+ ServiceOutputTypes,
16
+ VerifiedPermissionsClientResolvedConfig,
17
+ } from "../VerifiedPermissionsClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface BatchIsAuthorizedCommandInput extends BatchIsAuthorizedInput {}
20
+ export interface BatchIsAuthorizedCommandOutput
21
+ extends BatchIsAuthorizedOutput,
22
+ __MetadataBearer {}
23
+ export declare class BatchIsAuthorizedCommand extends $Command<
24
+ BatchIsAuthorizedCommandInput,
25
+ BatchIsAuthorizedCommandOutput,
26
+ VerifiedPermissionsClientResolvedConfig
27
+ > {
28
+ readonly input: BatchIsAuthorizedCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: BatchIsAuthorizedCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: VerifiedPermissionsClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./BatchIsAuthorizedCommand";
1
2
  export * from "./CreateIdentitySourceCommand";
2
3
  export * from "./CreatePolicyCommand";
3
4
  export * from "./CreatePolicyStoreCommand";
@@ -15,6 +15,66 @@ export interface EntityIdentifier {
15
15
  entityType: string | undefined;
16
16
  entityId: string | undefined;
17
17
  }
18
+ export declare const Decision: {
19
+ readonly ALLOW: "ALLOW";
20
+ readonly DENY: "DENY";
21
+ };
22
+ export type Decision = (typeof Decision)[keyof typeof Decision];
23
+ export interface DeterminingPolicyItem {
24
+ policyId: string | undefined;
25
+ }
26
+ export interface EvaluationErrorItem {
27
+ errorDescription: string | undefined;
28
+ }
29
+ export declare class InternalServerException extends __BaseException {
30
+ readonly name: "InternalServerException";
31
+ readonly $fault: "server";
32
+ $retryable: {};
33
+ constructor(
34
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
35
+ );
36
+ }
37
+ export declare const ResourceType: {
38
+ readonly IDENTITY_SOURCE: "IDENTITY_SOURCE";
39
+ readonly POLICY: "POLICY";
40
+ readonly POLICY_STORE: "POLICY_STORE";
41
+ readonly POLICY_TEMPLATE: "POLICY_TEMPLATE";
42
+ readonly SCHEMA: "SCHEMA";
43
+ };
44
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
45
+ export declare class ResourceNotFoundException extends __BaseException {
46
+ readonly name: "ResourceNotFoundException";
47
+ readonly $fault: "client";
48
+ resourceId: string | undefined;
49
+ resourceType: ResourceType | undefined;
50
+ constructor(
51
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
52
+ );
53
+ }
54
+ export declare class ThrottlingException extends __BaseException {
55
+ readonly name: "ThrottlingException";
56
+ readonly $fault: "client";
57
+ $retryable: {
58
+ throttling: boolean;
59
+ };
60
+ serviceCode?: string;
61
+ quotaCode?: string;
62
+ constructor(
63
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
64
+ );
65
+ }
66
+ export interface ValidationExceptionField {
67
+ path: string | undefined;
68
+ message: string | undefined;
69
+ }
70
+ export declare class ValidationException extends __BaseException {
71
+ readonly name: "ValidationException";
72
+ readonly $fault: "client";
73
+ fieldList?: ValidationExceptionField[];
74
+ constructor(
75
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
76
+ );
77
+ }
18
78
  export interface CognitoUserPoolConfiguration {
19
79
  userPoolArn: string | undefined;
20
80
  clientIds?: string[];
@@ -37,14 +97,6 @@ export declare namespace Configuration {
37
97
  }
38
98
  const visit: <T>(value: Configuration, visitor: Visitor<T>) => T;
39
99
  }
40
- export declare const ResourceType: {
41
- readonly IDENTITY_SOURCE: "IDENTITY_SOURCE";
42
- readonly POLICY: "POLICY";
43
- readonly POLICY_STORE: "POLICY_STORE";
44
- readonly POLICY_TEMPLATE: "POLICY_TEMPLATE";
45
- readonly SCHEMA: "SCHEMA";
46
- };
47
- export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
48
100
  export interface ResourceConflict {
49
101
  resourceId: string | undefined;
50
102
  resourceType: ResourceType | undefined;
@@ -67,23 +119,6 @@ export interface CreateIdentitySourceOutput {
67
119
  lastUpdatedDate: Date | undefined;
68
120
  policyStoreId: string | undefined;
69
121
  }
70
- export declare class InternalServerException extends __BaseException {
71
- readonly name: "InternalServerException";
72
- readonly $fault: "server";
73
- $retryable: {};
74
- constructor(
75
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
76
- );
77
- }
78
- export declare class ResourceNotFoundException extends __BaseException {
79
- readonly name: "ResourceNotFoundException";
80
- readonly $fault: "client";
81
- resourceId: string | undefined;
82
- resourceType: ResourceType | undefined;
83
- constructor(
84
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
85
- );
86
- }
87
122
  export declare class ServiceQuotaExceededException extends __BaseException {
88
123
  readonly name: "ServiceQuotaExceededException";
89
124
  readonly $fault: "client";
@@ -95,30 +130,6 @@ export declare class ServiceQuotaExceededException extends __BaseException {
95
130
  opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
96
131
  );
97
132
  }
98
- export declare class ThrottlingException extends __BaseException {
99
- readonly name: "ThrottlingException";
100
- readonly $fault: "client";
101
- $retryable: {
102
- throttling: boolean;
103
- };
104
- serviceCode?: string;
105
- quotaCode?: string;
106
- constructor(
107
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
108
- );
109
- }
110
- export interface ValidationExceptionField {
111
- path: string | undefined;
112
- message: string | undefined;
113
- }
114
- export declare class ValidationException extends __BaseException {
115
- readonly name: "ValidationException";
116
- readonly $fault: "client";
117
- fieldList?: ValidationExceptionField[];
118
- constructor(
119
- opts: __ExceptionOptionType<ValidationException, __BaseException>
120
- );
121
- }
122
133
  export interface StaticPolicyDefinition {
123
134
  description?: string;
124
135
  statement: string | undefined;
@@ -205,11 +216,6 @@ export interface CreatePolicyTemplateOutput {
205
216
  createdDate: Date | undefined;
206
217
  lastUpdatedDate: Date | undefined;
207
218
  }
208
- export declare const Decision: {
209
- readonly ALLOW: "ALLOW";
210
- readonly DENY: "DENY";
211
- };
212
- export type Decision = (typeof Decision)[keyof typeof Decision];
213
219
  export interface DeleteIdentitySourceInput {
214
220
  policyStoreId: string | undefined;
215
221
  identitySourceId: string | undefined;
@@ -229,9 +235,6 @@ export interface DeletePolicyTemplateInput {
229
235
  policyTemplateId: string | undefined;
230
236
  }
231
237
  export interface DeletePolicyTemplateOutput {}
232
- export interface DeterminingPolicyItem {
233
- policyId: string | undefined;
234
- }
235
238
  export type EntityReference =
236
239
  | EntityReference.IdentifierMember
237
240
  | EntityReference.UnspecifiedMember
@@ -259,9 +262,6 @@ export declare namespace EntityReference {
259
262
  }
260
263
  const visit: <T>(value: EntityReference, visitor: Visitor<T>) => T;
261
264
  }
262
- export interface EvaluationErrorItem {
263
- errorDescription: string | undefined;
264
- }
265
265
  export interface GetIdentitySourceInput {
266
266
  policyStoreId: string | undefined;
267
267
  identitySourceId: string | undefined;
@@ -720,6 +720,18 @@ export interface EntityItem {
720
720
  attributes?: Record<string, AttributeValue>;
721
721
  parents?: EntityIdentifier[];
722
722
  }
723
+ export interface BatchIsAuthorizedInputItem {
724
+ principal?: EntityIdentifier;
725
+ action?: ActionIdentifier;
726
+ resource?: EntityIdentifier;
727
+ context?: ContextDefinition;
728
+ }
729
+ export interface BatchIsAuthorizedOutputItem {
730
+ request: BatchIsAuthorizedInputItem | undefined;
731
+ decision: Decision | undefined;
732
+ determiningPolicies: DeterminingPolicyItem[] | undefined;
733
+ errors: EvaluationErrorItem[] | undefined;
734
+ }
723
735
  export type EntitiesDefinition =
724
736
  | EntitiesDefinition.EntityListMember
725
737
  | EntitiesDefinition.$UnknownMember;
@@ -738,6 +750,9 @@ export declare namespace EntitiesDefinition {
738
750
  }
739
751
  const visit: <T>(value: EntitiesDefinition, visitor: Visitor<T>) => T;
740
752
  }
753
+ export interface BatchIsAuthorizedOutput {
754
+ results: BatchIsAuthorizedOutputItem[] | undefined;
755
+ }
741
756
  export interface IsAuthorizedInput {
742
757
  policyStoreId: string | undefined;
743
758
  principal?: EntityIdentifier;
@@ -755,12 +770,20 @@ export interface IsAuthorizedWithTokenInput {
755
770
  context?: ContextDefinition;
756
771
  entities?: EntitiesDefinition;
757
772
  }
773
+ export interface BatchIsAuthorizedInput {
774
+ policyStoreId: string | undefined;
775
+ entities?: EntitiesDefinition;
776
+ requests: BatchIsAuthorizedInputItem[] | undefined;
777
+ }
758
778
  export declare const ActionIdentifierFilterSensitiveLog: (
759
779
  obj: ActionIdentifier
760
780
  ) => any;
761
781
  export declare const EntityIdentifierFilterSensitiveLog: (
762
782
  obj: EntityIdentifier
763
783
  ) => any;
784
+ export declare const EvaluationErrorItemFilterSensitiveLog: (
785
+ obj: EvaluationErrorItem
786
+ ) => any;
764
787
  export declare const CognitoUserPoolConfigurationFilterSensitiveLog: (
765
788
  obj: CognitoUserPoolConfiguration
766
789
  ) => any;
@@ -791,9 +814,6 @@ export declare const CreatePolicyTemplateInputFilterSensitiveLog: (
791
814
  export declare const EntityReferenceFilterSensitiveLog: (
792
815
  obj: EntityReference
793
816
  ) => any;
794
- export declare const EvaluationErrorItemFilterSensitiveLog: (
795
- obj: EvaluationErrorItem
796
- ) => any;
797
817
  export declare const IdentitySourceDetailsFilterSensitiveLog: (
798
818
  obj: IdentitySourceDetails
799
819
  ) => any;
@@ -902,12 +922,24 @@ export declare const ContextDefinitionFilterSensitiveLog: (
902
922
  obj: ContextDefinition
903
923
  ) => any;
904
924
  export declare const EntityItemFilterSensitiveLog: (obj: EntityItem) => any;
925
+ export declare const BatchIsAuthorizedInputItemFilterSensitiveLog: (
926
+ obj: BatchIsAuthorizedInputItem
927
+ ) => any;
928
+ export declare const BatchIsAuthorizedOutputItemFilterSensitiveLog: (
929
+ obj: BatchIsAuthorizedOutputItem
930
+ ) => any;
905
931
  export declare const EntitiesDefinitionFilterSensitiveLog: (
906
932
  obj: EntitiesDefinition
907
933
  ) => any;
934
+ export declare const BatchIsAuthorizedOutputFilterSensitiveLog: (
935
+ obj: BatchIsAuthorizedOutput
936
+ ) => any;
908
937
  export declare const IsAuthorizedInputFilterSensitiveLog: (
909
938
  obj: IsAuthorizedInput
910
939
  ) => any;
911
940
  export declare const IsAuthorizedWithTokenInputFilterSensitiveLog: (
912
941
  obj: IsAuthorizedWithTokenInput
913
942
  ) => any;
943
+ export declare const BatchIsAuthorizedInputFilterSensitiveLog: (
944
+ obj: BatchIsAuthorizedInput
945
+ ) => any;
@@ -3,6 +3,10 @@ import {
3
3
  HttpResponse as __HttpResponse,
4
4
  } from "@smithy/protocol-http";
5
5
  import { SerdeContext as __SerdeContext } from "@smithy/types";
6
+ import {
7
+ BatchIsAuthorizedCommandInput,
8
+ BatchIsAuthorizedCommandOutput,
9
+ } from "../commands/BatchIsAuthorizedCommand";
6
10
  import {
7
11
  CreateIdentitySourceCommandInput,
8
12
  CreateIdentitySourceCommandOutput,
@@ -99,6 +103,10 @@ import {
99
103
  UpdatePolicyTemplateCommandInput,
100
104
  UpdatePolicyTemplateCommandOutput,
101
105
  } from "../commands/UpdatePolicyTemplateCommand";
106
+ export declare const se_BatchIsAuthorizedCommand: (
107
+ input: BatchIsAuthorizedCommandInput,
108
+ context: __SerdeContext
109
+ ) => Promise<__HttpRequest>;
102
110
  export declare const se_CreateIdentitySourceCommand: (
103
111
  input: CreateIdentitySourceCommandInput,
104
112
  context: __SerdeContext
@@ -195,6 +203,10 @@ export declare const se_UpdatePolicyTemplateCommand: (
195
203
  input: UpdatePolicyTemplateCommandInput,
196
204
  context: __SerdeContext
197
205
  ) => Promise<__HttpRequest>;
206
+ export declare const de_BatchIsAuthorizedCommand: (
207
+ output: __HttpResponse,
208
+ context: __SerdeContext
209
+ ) => Promise<BatchIsAuthorizedCommandOutput>;
198
210
  export declare const de_CreateIdentitySourceCommand: (
199
211
  output: __HttpResponse,
200
212
  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.451.0",
4
+ "version": "3.458.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.451.0",
24
+ "@aws-sdk/client-sts": "3.458.0",
25
25
  "@aws-sdk/core": "3.451.0",
26
- "@aws-sdk/credential-provider-node": "3.451.0",
26
+ "@aws-sdk/credential-provider-node": "3.458.0",
27
27
  "@aws-sdk/middleware-host-header": "3.451.0",
28
28
  "@aws-sdk/middleware-logger": "3.451.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.451.0",