@effect-aws/client-secrets-manager 1.10.3 → 2.0.0-beta.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.
Files changed (37) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/SecretsManagerClientInstance.d.ts +2 -2
  4. package/dist/dts/SecretsManagerClientInstance.d.ts.map +1 -1
  5. package/dist/dts/SecretsManagerService.d.ts +25 -27
  6. package/dist/dts/SecretsManagerService.d.ts.map +1 -1
  7. package/dist/dts/SecretsManagerServiceConfig.d.ts.map +1 -1
  8. package/dist/esm/SecretsManagerClientInstance.js +3 -3
  9. package/dist/esm/SecretsManagerClientInstance.js.map +1 -1
  10. package/dist/esm/SecretsManagerService.js +2 -2
  11. package/dist/esm/SecretsManagerService.js.map +1 -1
  12. package/dist/esm/SecretsManagerServiceConfig.js +5 -6
  13. package/dist/esm/SecretsManagerServiceConfig.js.map +1 -1
  14. package/package.json +8 -14
  15. package/src/SecretsManagerClientInstance.ts +7 -5
  16. package/src/SecretsManagerService.ts +26 -26
  17. package/src/SecretsManagerServiceConfig.ts +6 -7
  18. package/dist/cjs/Errors.d.ts +0 -19
  19. package/dist/cjs/Errors.d.ts.map +0 -1
  20. package/dist/cjs/Errors.js +0 -18
  21. package/dist/cjs/Errors.js.map +0 -1
  22. package/dist/cjs/SecretsManagerClientInstance.d.ts +0 -24
  23. package/dist/cjs/SecretsManagerClientInstance.d.ts.map +0 -1
  24. package/dist/cjs/SecretsManagerClientInstance.js +0 -50
  25. package/dist/cjs/SecretsManagerClientInstance.js.map +0 -1
  26. package/dist/cjs/SecretsManagerService.d.ts +0 -138
  27. package/dist/cjs/SecretsManagerService.d.ts.map +0 -1
  28. package/dist/cjs/SecretsManagerService.js +0 -82
  29. package/dist/cjs/SecretsManagerService.js.map +0 -1
  30. package/dist/cjs/SecretsManagerServiceConfig.d.ts +0 -25
  31. package/dist/cjs/SecretsManagerServiceConfig.d.ts.map +0 -1
  32. package/dist/cjs/SecretsManagerServiceConfig.js +0 -35
  33. package/dist/cjs/SecretsManagerServiceConfig.js.map +0 -1
  34. package/dist/cjs/index.d.ts +0 -44
  35. package/dist/cjs/index.d.ts.map +0 -1
  36. package/dist/cjs/index.js +0 -56
  37. package/dist/cjs/index.js.map +0 -1
@@ -77,7 +77,7 @@ import {
77
77
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
78
78
  import { Service } from "@effect-aws/commons";
79
79
  import type { Cause } from "effect";
80
- import { Effect, Layer } from "effect";
80
+ import { Effect, Layer, ServiceMap } from "effect";
81
81
  import type {
82
82
  DecryptionError,
83
83
  EncryptionError,
@@ -134,7 +134,7 @@ interface SecretsManagerService$ {
134
134
  options?: HttpHandlerOptions,
135
135
  ): Effect.Effect<
136
136
  BatchGetSecretValueCommandOutput,
137
- | Cause.TimeoutException
137
+ | Cause.TimeoutError
138
138
  | SdkError
139
139
  | DecryptionError
140
140
  | InternalServiceError
@@ -152,7 +152,7 @@ interface SecretsManagerService$ {
152
152
  options?: HttpHandlerOptions,
153
153
  ): Effect.Effect<
154
154
  CancelRotateSecretCommandOutput,
155
- | Cause.TimeoutException
155
+ | Cause.TimeoutError
156
156
  | SdkError
157
157
  | InternalServiceError
158
158
  | InvalidParameterError
@@ -168,7 +168,7 @@ interface SecretsManagerService$ {
168
168
  options?: HttpHandlerOptions,
169
169
  ): Effect.Effect<
170
170
  CreateSecretCommandOutput,
171
- | Cause.TimeoutException
171
+ | Cause.TimeoutError
172
172
  | SdkError
173
173
  | DecryptionError
174
174
  | EncryptionError
@@ -190,7 +190,7 @@ interface SecretsManagerService$ {
190
190
  options?: HttpHandlerOptions,
191
191
  ): Effect.Effect<
192
192
  DeleteResourcePolicyCommandOutput,
193
- | Cause.TimeoutException
193
+ | Cause.TimeoutError
194
194
  | SdkError
195
195
  | InternalServiceError
196
196
  | InvalidParameterError
@@ -206,7 +206,7 @@ interface SecretsManagerService$ {
206
206
  options?: HttpHandlerOptions,
207
207
  ): Effect.Effect<
208
208
  DeleteSecretCommandOutput,
209
- | Cause.TimeoutException
209
+ | Cause.TimeoutError
210
210
  | SdkError
211
211
  | InternalServiceError
212
212
  | InvalidParameterError
@@ -222,7 +222,7 @@ interface SecretsManagerService$ {
222
222
  options?: HttpHandlerOptions,
223
223
  ): Effect.Effect<
224
224
  DescribeSecretCommandOutput,
225
- Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | ResourceNotFoundError
225
+ Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError | ResourceNotFoundError
226
226
  >;
227
227
 
228
228
  /**
@@ -233,7 +233,7 @@ interface SecretsManagerService$ {
233
233
  options?: HttpHandlerOptions,
234
234
  ): Effect.Effect<
235
235
  GetRandomPasswordCommandOutput,
236
- Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError
236
+ Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError
237
237
  >;
238
238
 
239
239
  /**
@@ -244,7 +244,7 @@ interface SecretsManagerService$ {
244
244
  options?: HttpHandlerOptions,
245
245
  ): Effect.Effect<
246
246
  GetResourcePolicyCommandOutput,
247
- | Cause.TimeoutException
247
+ | Cause.TimeoutError
248
248
  | SdkError
249
249
  | InternalServiceError
250
250
  | InvalidParameterError
@@ -260,7 +260,7 @@ interface SecretsManagerService$ {
260
260
  options?: HttpHandlerOptions,
261
261
  ): Effect.Effect<
262
262
  GetSecretValueCommandOutput,
263
- | Cause.TimeoutException
263
+ | Cause.TimeoutError
264
264
  | SdkError
265
265
  | DecryptionError
266
266
  | InternalServiceError
@@ -277,7 +277,7 @@ interface SecretsManagerService$ {
277
277
  options?: HttpHandlerOptions,
278
278
  ): Effect.Effect<
279
279
  ListSecretVersionIdsCommandOutput,
280
- | Cause.TimeoutException
280
+ | Cause.TimeoutError
281
281
  | SdkError
282
282
  | InternalServiceError
283
283
  | InvalidNextTokenError
@@ -293,7 +293,7 @@ interface SecretsManagerService$ {
293
293
  options?: HttpHandlerOptions,
294
294
  ): Effect.Effect<
295
295
  ListSecretsCommandOutput,
296
- | Cause.TimeoutException
296
+ | Cause.TimeoutError
297
297
  | SdkError
298
298
  | InternalServiceError
299
299
  | InvalidNextTokenError
@@ -309,7 +309,7 @@ interface SecretsManagerService$ {
309
309
  options?: HttpHandlerOptions,
310
310
  ): Effect.Effect<
311
311
  PutResourcePolicyCommandOutput,
312
- | Cause.TimeoutException
312
+ | Cause.TimeoutError
313
313
  | SdkError
314
314
  | InternalServiceError
315
315
  | InvalidParameterError
@@ -327,7 +327,7 @@ interface SecretsManagerService$ {
327
327
  options?: HttpHandlerOptions,
328
328
  ): Effect.Effect<
329
329
  PutSecretValueCommandOutput,
330
- | Cause.TimeoutException
330
+ | Cause.TimeoutError
331
331
  | SdkError
332
332
  | DecryptionError
333
333
  | EncryptionError
@@ -347,7 +347,7 @@ interface SecretsManagerService$ {
347
347
  options?: HttpHandlerOptions,
348
348
  ): Effect.Effect<
349
349
  RemoveRegionsFromReplicationCommandOutput,
350
- | Cause.TimeoutException
350
+ | Cause.TimeoutError
351
351
  | SdkError
352
352
  | InternalServiceError
353
353
  | InvalidParameterError
@@ -363,7 +363,7 @@ interface SecretsManagerService$ {
363
363
  options?: HttpHandlerOptions,
364
364
  ): Effect.Effect<
365
365
  ReplicateSecretToRegionsCommandOutput,
366
- | Cause.TimeoutException
366
+ | Cause.TimeoutError
367
367
  | SdkError
368
368
  | InternalServiceError
369
369
  | InvalidParameterError
@@ -379,7 +379,7 @@ interface SecretsManagerService$ {
379
379
  options?: HttpHandlerOptions,
380
380
  ): Effect.Effect<
381
381
  RestoreSecretCommandOutput,
382
- | Cause.TimeoutException
382
+ | Cause.TimeoutError
383
383
  | SdkError
384
384
  | InternalServiceError
385
385
  | InvalidParameterError
@@ -395,7 +395,7 @@ interface SecretsManagerService$ {
395
395
  options?: HttpHandlerOptions,
396
396
  ): Effect.Effect<
397
397
  RotateSecretCommandOutput,
398
- | Cause.TimeoutException
398
+ | Cause.TimeoutError
399
399
  | SdkError
400
400
  | InternalServiceError
401
401
  | InvalidParameterError
@@ -411,7 +411,7 @@ interface SecretsManagerService$ {
411
411
  options?: HttpHandlerOptions,
412
412
  ): Effect.Effect<
413
413
  StopReplicationToReplicaCommandOutput,
414
- | Cause.TimeoutException
414
+ | Cause.TimeoutError
415
415
  | SdkError
416
416
  | InternalServiceError
417
417
  | InvalidParameterError
@@ -427,7 +427,7 @@ interface SecretsManagerService$ {
427
427
  options?: HttpHandlerOptions,
428
428
  ): Effect.Effect<
429
429
  TagResourceCommandOutput,
430
- | Cause.TimeoutException
430
+ | Cause.TimeoutError
431
431
  | SdkError
432
432
  | InternalServiceError
433
433
  | InvalidParameterError
@@ -443,7 +443,7 @@ interface SecretsManagerService$ {
443
443
  options?: HttpHandlerOptions,
444
444
  ): Effect.Effect<
445
445
  UntagResourceCommandOutput,
446
- | Cause.TimeoutException
446
+ | Cause.TimeoutError
447
447
  | SdkError
448
448
  | InternalServiceError
449
449
  | InvalidParameterError
@@ -459,7 +459,7 @@ interface SecretsManagerService$ {
459
459
  options?: HttpHandlerOptions,
460
460
  ): Effect.Effect<
461
461
  UpdateSecretCommandOutput,
462
- | Cause.TimeoutException
462
+ | Cause.TimeoutError
463
463
  | SdkError
464
464
  | DecryptionError
465
465
  | EncryptionError
@@ -481,7 +481,7 @@ interface SecretsManagerService$ {
481
481
  options?: HttpHandlerOptions,
482
482
  ): Effect.Effect<
483
483
  UpdateSecretVersionStageCommandOutput,
484
- | Cause.TimeoutException
484
+ | Cause.TimeoutError
485
485
  | SdkError
486
486
  | InternalServiceError
487
487
  | InvalidParameterError
@@ -498,7 +498,7 @@ interface SecretsManagerService$ {
498
498
  options?: HttpHandlerOptions,
499
499
  ): Effect.Effect<
500
500
  ValidateResourcePolicyCommandOutput,
501
- | Cause.TimeoutException
501
+ | Cause.TimeoutError
502
502
  | SdkError
503
503
  | InternalServiceError
504
504
  | InvalidParameterError
@@ -529,10 +529,10 @@ export const makeSecretsManagerService = Effect.gen(function*() {
529
529
  * @since 1.0.0
530
530
  * @category models
531
531
  */
532
- export class SecretsManagerService extends Effect.Tag("@effect-aws/client-secrets-manager/SecretsManagerService")<
532
+ export class SecretsManagerService extends ServiceMap.Service<
533
533
  SecretsManagerService,
534
534
  SecretsManagerService$
535
- >() {
535
+ >()("@effect-aws/client-secrets-manager/SecretsManagerService") {
536
536
  static readonly defaultLayer = Layer.effect(this, makeSecretsManagerService).pipe(Layer.provide(Instance.layer));
537
537
  static readonly layer = (config: SecretsManagerService.Config) =>
538
538
  Layer.effect(this, makeSecretsManagerService).pipe(
@@ -3,18 +3,17 @@
3
3
  */
4
4
  import type { SecretsManagerClientConfig } from "@aws-sdk/client-secrets-manager";
5
5
  import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "effect";
6
+ import { Effect, Layer, ServiceMap } from "effect";
7
7
  import { dual } from "effect/Function";
8
- import { globalValue } from "effect/GlobalValue";
9
8
  import type { SecretsManagerService } from "./SecretsManagerService.js";
10
9
 
11
10
  /**
12
11
  * @since 1.0.0
13
12
  * @category secrets-manager service config
14
13
  */
15
- const currentSecretsManagerServiceConfig = globalValue(
14
+ const currentSecretsManagerServiceConfig = ServiceMap.Reference<SecretsManagerService.Config>(
16
15
  "@effect-aws/client-secrets-manager/currentSecretsManagerServiceConfig",
17
- () => FiberRef.unsafeMake<SecretsManagerService.Config>({}),
16
+ { defaultValue: () => ({}) },
18
17
  );
19
18
 
20
19
  /**
@@ -27,7 +26,7 @@ export const withSecretsManagerServiceConfig: {
27
26
  } = dual(
28
27
  2,
29
28
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: SecretsManagerService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentSecretsManagerServiceConfig, config),
29
+ Effect.provideService(effect, currentSecretsManagerServiceConfig, config),
31
30
  );
32
31
 
33
32
  /**
@@ -35,14 +34,14 @@ export const withSecretsManagerServiceConfig: {
35
34
  * @category secrets-manager service config
36
35
  */
37
36
  export const setSecretsManagerServiceConfig = (config: SecretsManagerService.Config) =>
38
- Layer.locallyScoped(currentSecretsManagerServiceConfig, config);
37
+ Layer.succeed(currentSecretsManagerServiceConfig, config);
39
38
 
40
39
  /**
41
40
  * @since 1.0.0
42
41
  * @category adapters
43
42
  */
44
43
  export const toSecretsManagerClientConfig: Effect.Effect<SecretsManagerClientConfig> = Effect.gen(function*() {
45
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSecretsManagerServiceConfig);
44
+ const { logger: serviceLogger, ...config } = yield* currentSecretsManagerServiceConfig;
46
45
 
47
46
  const logger = serviceLogger === true
48
47
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
@@ -1,19 +0,0 @@
1
- import type { DecryptionFailure, EncryptionFailure, InternalServiceError as InternalServiceException, InvalidNextTokenException, InvalidParameterException, InvalidRequestException, LimitExceededException, MalformedPolicyDocumentException, PreconditionNotMetException, PublicPolicyException, ResourceExistsException, ResourceNotFoundException } from "@aws-sdk/client-secrets-manager";
2
- import type { TaggedException } from "@effect-aws/commons";
3
- export declare const AllServiceErrors: readonly ["DecryptionFailure", "EncryptionFailure", "InternalServiceError", "InvalidNextTokenException", "InvalidParameterException", "InvalidRequestException", "LimitExceededException", "MalformedPolicyDocumentException", "PreconditionNotMetException", "PublicPolicyException", "ResourceExistsException", "ResourceNotFoundException"];
4
- export type DecryptionError = TaggedException<DecryptionFailure>;
5
- export type EncryptionError = TaggedException<EncryptionFailure>;
6
- export type InternalServiceError = TaggedException<InternalServiceException>;
7
- export type InvalidNextTokenError = TaggedException<InvalidNextTokenException>;
8
- export type InvalidParameterError = TaggedException<InvalidParameterException>;
9
- export type InvalidRequestError = TaggedException<InvalidRequestException>;
10
- export type LimitExceededError = TaggedException<LimitExceededException>;
11
- export type MalformedPolicyDocumentError = TaggedException<MalformedPolicyDocumentException>;
12
- export type PreconditionNotMetError = TaggedException<PreconditionNotMetException>;
13
- export type PublicPolicyError = TaggedException<PublicPolicyException>;
14
- export type ResourceExistsError = TaggedException<ResourceExistsException>;
15
- export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
16
- export type SdkError = TaggedException<Error & {
17
- name: "SdkError";
18
- }>;
19
- //# sourceMappingURL=Errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,IAAI,wBAAwB,EAChD,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,gCAAgC,EAChC,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,gVAanB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,4BAA4B,GAAG,eAAe,CAAC,gCAAgC,CAAC,CAAC;AAC7F,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AllServiceErrors = void 0;
4
- exports.AllServiceErrors = [
5
- "DecryptionFailure",
6
- "EncryptionFailure",
7
- "InternalServiceError",
8
- "InvalidNextTokenException",
9
- "InvalidParameterException",
10
- "InvalidRequestException",
11
- "LimitExceededException",
12
- "MalformedPolicyDocumentException",
13
- "PreconditionNotMetException",
14
- "PublicPolicyException",
15
- "ResourceExistsException",
16
- "ResourceNotFoundException",
17
- ];
18
- //# sourceMappingURL=Errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAgBa,QAAA,gBAAgB,GAAG;IAC9B,mBAAmB;IACnB,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,2BAA2B;IAC3B,yBAAyB;IACzB,wBAAwB;IACxB,kCAAkC;IAClC,6BAA6B;IAC7B,uBAAuB;IACvB,yBAAyB;IACzB,2BAA2B;CACnB,CAAC"}
@@ -1,24 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { SecretsManagerClient } from "@aws-sdk/client-secrets-manager";
5
- import { Context, Effect, Layer } from "effect";
6
- declare const SecretsManagerClientInstance_base: Context.TagClass<SecretsManagerClientInstance, "@effect-aws/client-secrets-manager/SecretsManagerClientInstance", SecretsManagerClient>;
7
- /**
8
- * @since 1.0.0
9
- * @category tags
10
- */
11
- export declare class SecretsManagerClientInstance extends SecretsManagerClientInstance_base {
12
- }
13
- /**
14
- * @since 1.0.0
15
- * @category constructors
16
- */
17
- export declare const make: Effect.Effect<SecretsManagerClient, never, import("effect/Scope").Scope>;
18
- /**
19
- * @since 1.0.0
20
- * @category layers
21
- */
22
- export declare const layer: Layer.Layer<SecretsManagerClientInstance, never, never>;
23
- export {};
24
- //# sourceMappingURL=SecretsManagerClientInstance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SecretsManagerClientInstance.d.ts","sourceRoot":"","sources":["../../src/SecretsManagerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,4BAA6B,SAAQ,iCAEK;CAAG;AAE1D;;;GAGG;AACH,eAAO,MAAM,IAAI,0EAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,yDAAmD,CAAC"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.layer = exports.make = exports.SecretsManagerClientInstance = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_secrets_manager_1 = require("@aws-sdk/client-secrets-manager");
31
- const effect_1 = require("effect");
32
- const SecretsManagerServiceConfig = __importStar(require("./SecretsManagerServiceConfig.js"));
33
- /**
34
- * @since 1.0.0
35
- * @category tags
36
- */
37
- class SecretsManagerClientInstance extends effect_1.Context.Tag("@effect-aws/client-secrets-manager/SecretsManagerClientInstance")() {
38
- }
39
- exports.SecretsManagerClientInstance = SecretsManagerClientInstance;
40
- /**
41
- * @since 1.0.0
42
- * @category constructors
43
- */
44
- exports.make = effect_1.Effect.flatMap(SecretsManagerServiceConfig.toSecretsManagerClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_secrets_manager_1.SecretsManagerClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
45
- /**
46
- * @since 1.0.0
47
- * @category layers
48
- */
49
- exports.layer = effect_1.Layer.scoped(SecretsManagerClientInstance, exports.make);
50
- //# sourceMappingURL=SecretsManagerClientInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SecretsManagerClientInstance.js","sourceRoot":"","sources":["../../src/SecretsManagerClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4EAAuE;AACvE,mCAAgD;AAChD,8FAAgF;AAEhF;;;GAGG;AACH,MAAa,4BAA6B,SAAQ,gBAAO,CAAC,GAAG,CAC3D,iEAAiE,CAClE,EAAsD;CAAG;AAF1D,oEAE0D;AAE1D;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,2BAA2B,CAAC,4BAA4B,EACxD,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,6CAAoB,CAAC,MAAM,CAAC,CAAC,EACnD,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,4BAA4B,EAAE,YAAI,CAAC,CAAC"}
@@ -1,138 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { type BatchGetSecretValueCommandInput, type BatchGetSecretValueCommandOutput, type CancelRotateSecretCommandInput, type CancelRotateSecretCommandOutput, type CreateSecretCommandInput, type CreateSecretCommandOutput, type DeleteResourcePolicyCommandInput, type DeleteResourcePolicyCommandOutput, type DeleteSecretCommandInput, type DeleteSecretCommandOutput, type DescribeSecretCommandInput, type DescribeSecretCommandOutput, type GetRandomPasswordCommandInput, type GetRandomPasswordCommandOutput, type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput, type GetSecretValueCommandInput, type GetSecretValueCommandOutput, type ListSecretsCommandInput, type ListSecretsCommandOutput, type ListSecretVersionIdsCommandInput, type ListSecretVersionIdsCommandOutput, type PutResourcePolicyCommandInput, type PutResourcePolicyCommandOutput, type PutSecretValueCommandInput, type PutSecretValueCommandOutput, type RemoveRegionsFromReplicationCommandInput, type RemoveRegionsFromReplicationCommandOutput, type ReplicateSecretToRegionsCommandInput, type ReplicateSecretToRegionsCommandOutput, type RestoreSecretCommandInput, type RestoreSecretCommandOutput, type RotateSecretCommandInput, type RotateSecretCommandOutput, type SecretsManagerClient, type SecretsManagerClientConfig, type StopReplicationToReplicaCommandInput, type StopReplicationToReplicaCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateSecretCommandInput, type UpdateSecretCommandOutput, type UpdateSecretVersionStageCommandInput, type UpdateSecretVersionStageCommandOutput, type ValidateResourcePolicyCommandInput, type ValidateResourcePolicyCommandOutput } from "@aws-sdk/client-secrets-manager";
5
- import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
6
- import type { Cause } from "effect";
7
- import { Effect, Layer } from "effect";
8
- import type { DecryptionError, EncryptionError, InternalServiceError, InvalidNextTokenError, InvalidParameterError, InvalidRequestError, LimitExceededError, MalformedPolicyDocumentError, PreconditionNotMetError, PublicPolicyError, ResourceExistsError, ResourceNotFoundError, SdkError } from "./Errors.js";
9
- import * as Instance from "./SecretsManagerClientInstance.js";
10
- interface SecretsManagerService$ {
11
- readonly _: unique symbol;
12
- /**
13
- * @see {@link BatchGetSecretValueCommand}
14
- */
15
- batchGetSecretValue(args: BatchGetSecretValueCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetSecretValueCommandOutput, Cause.TimeoutException | SdkError | DecryptionError | InternalServiceError | InvalidNextTokenError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
16
- /**
17
- * @see {@link CancelRotateSecretCommand}
18
- */
19
- cancelRotateSecret(args: CancelRotateSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelRotateSecretCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
20
- /**
21
- * @see {@link CreateSecretCommand}
22
- */
23
- createSecret(args: CreateSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateSecretCommandOutput, Cause.TimeoutException | SdkError | DecryptionError | EncryptionError | InternalServiceError | InvalidParameterError | InvalidRequestError | LimitExceededError | MalformedPolicyDocumentError | PreconditionNotMetError | ResourceExistsError | ResourceNotFoundError>;
24
- /**
25
- * @see {@link DeleteResourcePolicyCommand}
26
- */
27
- deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteResourcePolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
28
- /**
29
- * @see {@link DeleteSecretCommand}
30
- */
31
- deleteSecret(args: DeleteSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSecretCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
32
- /**
33
- * @see {@link DescribeSecretCommand}
34
- */
35
- describeSecret(args: DescribeSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeSecretCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | ResourceNotFoundError>;
36
- /**
37
- * @see {@link GetRandomPasswordCommand}
38
- */
39
- getRandomPassword(args: GetRandomPasswordCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRandomPasswordCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError>;
40
- /**
41
- * @see {@link GetResourcePolicyCommand}
42
- */
43
- getResourcePolicy(args: GetResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetResourcePolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
44
- /**
45
- * @see {@link GetSecretValueCommand}
46
- */
47
- getSecretValue(args: GetSecretValueCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSecretValueCommandOutput, Cause.TimeoutException | SdkError | DecryptionError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
48
- /**
49
- * @see {@link ListSecretVersionIdsCommand}
50
- */
51
- listSecretVersionIds(args: ListSecretVersionIdsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSecretVersionIdsCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidNextTokenError | InvalidParameterError | ResourceNotFoundError>;
52
- /**
53
- * @see {@link ListSecretsCommand}
54
- */
55
- listSecrets(args: ListSecretsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSecretsCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidNextTokenError | InvalidParameterError | InvalidRequestError>;
56
- /**
57
- * @see {@link PutResourcePolicyCommand}
58
- */
59
- putResourcePolicy(args: PutResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutResourcePolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | MalformedPolicyDocumentError | PublicPolicyError | ResourceNotFoundError>;
60
- /**
61
- * @see {@link PutSecretValueCommand}
62
- */
63
- putSecretValue(args: PutSecretValueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutSecretValueCommandOutput, Cause.TimeoutException | SdkError | DecryptionError | EncryptionError | InternalServiceError | InvalidParameterError | InvalidRequestError | LimitExceededError | ResourceExistsError | ResourceNotFoundError>;
64
- /**
65
- * @see {@link RemoveRegionsFromReplicationCommand}
66
- */
67
- removeRegionsFromReplication(args: RemoveRegionsFromReplicationCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemoveRegionsFromReplicationCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
68
- /**
69
- * @see {@link ReplicateSecretToRegionsCommand}
70
- */
71
- replicateSecretToRegions(args: ReplicateSecretToRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReplicateSecretToRegionsCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
72
- /**
73
- * @see {@link RestoreSecretCommand}
74
- */
75
- restoreSecret(args: RestoreSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<RestoreSecretCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
76
- /**
77
- * @see {@link RotateSecretCommand}
78
- */
79
- rotateSecret(args: RotateSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<RotateSecretCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
80
- /**
81
- * @see {@link StopReplicationToReplicaCommand}
82
- */
83
- stopReplicationToReplica(args: StopReplicationToReplicaCommandInput, options?: HttpHandlerOptions): Effect.Effect<StopReplicationToReplicaCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
84
- /**
85
- * @see {@link TagResourceCommand}
86
- */
87
- tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
88
- /**
89
- * @see {@link UntagResourceCommand}
90
- */
91
- untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
92
- /**
93
- * @see {@link UpdateSecretCommand}
94
- */
95
- updateSecret(args: UpdateSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateSecretCommandOutput, Cause.TimeoutException | SdkError | DecryptionError | EncryptionError | InternalServiceError | InvalidParameterError | InvalidRequestError | LimitExceededError | MalformedPolicyDocumentError | PreconditionNotMetError | ResourceExistsError | ResourceNotFoundError>;
96
- /**
97
- * @see {@link UpdateSecretVersionStageCommand}
98
- */
99
- updateSecretVersionStage(args: UpdateSecretVersionStageCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateSecretVersionStageCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | LimitExceededError | ResourceNotFoundError>;
100
- /**
101
- * @see {@link ValidateResourcePolicyCommand}
102
- */
103
- validateResourcePolicy(args: ValidateResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<ValidateResourcePolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | MalformedPolicyDocumentError | ResourceNotFoundError>;
104
- }
105
- /**
106
- * @since 1.0.0
107
- * @category constructors
108
- */
109
- export declare const makeSecretsManagerService: Effect.Effect<SecretsManagerService$, never, Instance.SecretsManagerClientInstance>;
110
- declare const SecretsManagerService_base: import("effect/Context").TagClass<SecretsManagerService, "@effect-aws/client-secrets-manager/SecretsManagerService", SecretsManagerService$> & Effect.Tag.Proxy<SecretsManagerService, SecretsManagerService$> & {
111
- use: <X>(body: (_: SecretsManagerService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SecretsManagerService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, SecretsManagerService> : Effect.Effect<X, never, SecretsManagerService>;
112
- };
113
- /**
114
- * @since 1.0.0
115
- * @category models
116
- */
117
- export declare class SecretsManagerService extends SecretsManagerService_base {
118
- static readonly defaultLayer: Layer.Layer<SecretsManagerService, never, never>;
119
- static readonly layer: (config: SecretsManagerService.Config) => Layer.Layer<SecretsManagerService, never, never>;
120
- static readonly baseLayer: (evaluate: (defaultConfig: SecretsManagerClientConfig) => SecretsManagerClient) => Layer.Layer<SecretsManagerService, never, never>;
121
- }
122
- /**
123
- * @since 1.0.0
124
- */
125
- export declare namespace SecretsManagerService {
126
- /**
127
- * @since 1.0.0
128
- */
129
- interface Config extends Omit<SecretsManagerClientConfig, "logger"> {
130
- readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
131
- }
132
- /**
133
- * @since 1.0.0
134
- */
135
- type Type = SecretsManagerService$;
136
- }
137
- export {};
138
- //# sourceMappingURL=SecretsManagerService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SecretsManagerService.d.ts","sourceRoot":"","sources":["../../src/SecretsManagerService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,wBAAwB,EA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iB,MAAO,SAAQ,IAAI,CAAC,0BAA0B,EAAE,QAAQ,CAAC;QACxE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,sBAAsB,CAAC;CAC3C"}
@@ -1,82 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.SecretsManagerService = exports.makeSecretsManagerService = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_secrets_manager_1 = require("@aws-sdk/client-secrets-manager");
31
- const commons_1 = require("@effect-aws/commons");
32
- const effect_1 = require("effect");
33
- const Errors_js_1 = require("./Errors.js");
34
- const Instance = __importStar(require("./SecretsManagerClientInstance.js"));
35
- const SecretsManagerServiceConfig = __importStar(require("./SecretsManagerServiceConfig.js"));
36
- const commands = {
37
- BatchGetSecretValueCommand: client_secrets_manager_1.BatchGetSecretValueCommand,
38
- CancelRotateSecretCommand: client_secrets_manager_1.CancelRotateSecretCommand,
39
- CreateSecretCommand: client_secrets_manager_1.CreateSecretCommand,
40
- DeleteResourcePolicyCommand: client_secrets_manager_1.DeleteResourcePolicyCommand,
41
- DeleteSecretCommand: client_secrets_manager_1.DeleteSecretCommand,
42
- DescribeSecretCommand: client_secrets_manager_1.DescribeSecretCommand,
43
- GetRandomPasswordCommand: client_secrets_manager_1.GetRandomPasswordCommand,
44
- GetResourcePolicyCommand: client_secrets_manager_1.GetResourcePolicyCommand,
45
- GetSecretValueCommand: client_secrets_manager_1.GetSecretValueCommand,
46
- ListSecretVersionIdsCommand: client_secrets_manager_1.ListSecretVersionIdsCommand,
47
- ListSecretsCommand: client_secrets_manager_1.ListSecretsCommand,
48
- PutResourcePolicyCommand: client_secrets_manager_1.PutResourcePolicyCommand,
49
- PutSecretValueCommand: client_secrets_manager_1.PutSecretValueCommand,
50
- RemoveRegionsFromReplicationCommand: client_secrets_manager_1.RemoveRegionsFromReplicationCommand,
51
- ReplicateSecretToRegionsCommand: client_secrets_manager_1.ReplicateSecretToRegionsCommand,
52
- RestoreSecretCommand: client_secrets_manager_1.RestoreSecretCommand,
53
- RotateSecretCommand: client_secrets_manager_1.RotateSecretCommand,
54
- StopReplicationToReplicaCommand: client_secrets_manager_1.StopReplicationToReplicaCommand,
55
- TagResourceCommand: client_secrets_manager_1.TagResourceCommand,
56
- UntagResourceCommand: client_secrets_manager_1.UntagResourceCommand,
57
- UpdateSecretCommand: client_secrets_manager_1.UpdateSecretCommand,
58
- UpdateSecretVersionStageCommand: client_secrets_manager_1.UpdateSecretVersionStageCommand,
59
- ValidateResourcePolicyCommand: client_secrets_manager_1.ValidateResourcePolicyCommand,
60
- };
61
- /**
62
- * @since 1.0.0
63
- * @category constructors
64
- */
65
- exports.makeSecretsManagerService = effect_1.Effect.gen(function* () {
66
- const client = yield* Instance.SecretsManagerClientInstance;
67
- return yield* commons_1.Service.fromClientAndCommands(client, commands, {
68
- errorTags: Errors_js_1.AllServiceErrors,
69
- resolveClientConfig: SecretsManagerServiceConfig.toSecretsManagerClientConfig,
70
- });
71
- });
72
- /**
73
- * @since 1.0.0
74
- * @category models
75
- */
76
- class SecretsManagerService extends effect_1.Effect.Tag("@effect-aws/client-secrets-manager/SecretsManagerService")() {
77
- static defaultLayer = effect_1.Layer.effect(this, exports.makeSecretsManagerService).pipe(effect_1.Layer.provide(Instance.layer));
78
- static layer = (config) => effect_1.Layer.effect(this, exports.makeSecretsManagerService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(SecretsManagerServiceConfig.setSecretsManagerServiceConfig(config)));
79
- static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeSecretsManagerService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.SecretsManagerClientInstance, effect_1.Effect.map(SecretsManagerServiceConfig.toSecretsManagerClientConfig, evaluate))));
80
- }
81
- exports.SecretsManagerService = SecretsManagerService;
82
- //# sourceMappingURL=SecretsManagerService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SecretsManagerService.js","sourceRoot":"","sources":["../../src/SecretsManagerService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4EAwEyC;AAEzC,iDAA8C;AAE9C,mCAAuC;AAgBvC,2CAA+C;AAC/C,4EAA8D;AAC9D,8FAAgF;AAEhF,MAAM,QAAQ,GAAG;IACf,0BAA0B,EAA1B,mDAA0B;IAC1B,yBAAyB,EAAzB,kDAAyB;IACzB,mBAAmB,EAAnB,4CAAmB;IACnB,2BAA2B,EAA3B,oDAA2B;IAC3B,mBAAmB,EAAnB,4CAAmB;IACnB,qBAAqB,EAArB,8CAAqB;IACrB,wBAAwB,EAAxB,iDAAwB;IACxB,wBAAwB,EAAxB,iDAAwB;IACxB,qBAAqB,EAArB,8CAAqB;IACrB,2BAA2B,EAA3B,oDAA2B;IAC3B,kBAAkB,EAAlB,2CAAkB;IAClB,wBAAwB,EAAxB,iDAAwB;IACxB,q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