@effect-aws/client-sns 1.10.9 → 2.0.0-beta.1

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 (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/SNSClientInstance.d.ts +4 -2
  4. package/dist/dts/SNSClientInstance.d.ts.map +1 -1
  5. package/dist/dts/SNSService.d.ts +47 -47
  6. package/dist/dts/SNSService.d.ts.map +1 -1
  7. package/dist/dts/SNSServiceConfig.d.ts +2 -1
  8. package/dist/dts/SNSServiceConfig.d.ts.map +1 -1
  9. package/dist/esm/SNSClientInstance.js +5 -3
  10. package/dist/esm/SNSClientInstance.js.map +1 -1
  11. package/dist/esm/SNSService.js +4 -2
  12. package/dist/esm/SNSService.js.map +1 -1
  13. package/dist/esm/SNSServiceConfig.js +7 -6
  14. package/dist/esm/SNSServiceConfig.js.map +1 -1
  15. package/package.json +8 -14
  16. package/src/SNSClientInstance.ts +6 -4
  17. package/src/SNSService.ts +48 -46
  18. package/src/SNSServiceConfig.ts +8 -7
  19. package/dist/cjs/Errors.d.ts +0 -41
  20. package/dist/cjs/Errors.d.ts.map +0 -1
  21. package/dist/cjs/Errors.js +0 -40
  22. package/dist/cjs/Errors.js.map +0 -1
  23. package/dist/cjs/SNSClientInstance.d.ts +0 -24
  24. package/dist/cjs/SNSClientInstance.d.ts.map +0 -1
  25. package/dist/cjs/SNSClientInstance.js +0 -50
  26. package/dist/cjs/SNSClientInstance.js.map +0 -1
  27. package/dist/cjs/SNSService.d.ts +0 -214
  28. package/dist/cjs/SNSService.d.ts.map +0 -1
  29. package/dist/cjs/SNSService.js +0 -101
  30. package/dist/cjs/SNSService.js.map +0 -1
  31. package/dist/cjs/SNSServiceConfig.d.ts +0 -25
  32. package/dist/cjs/SNSServiceConfig.d.ts.map +0 -1
  33. package/dist/cjs/SNSServiceConfig.js +0 -35
  34. package/dist/cjs/SNSServiceConfig.js.map +0 -1
  35. package/dist/cjs/index.d.ts +0 -44
  36. package/dist/cjs/index.d.ts.map +0 -1
  37. package/dist/cjs/index.js +0 -56
  38. package/dist/cjs/index.js.map +0 -1
package/src/SNSService.ts CHANGED
@@ -133,8 +133,10 @@ import {
133
133
  } from "@aws-sdk/client-sns";
134
134
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
135
135
  import { Service } from "@effect-aws/commons";
136
- import type { Cause } from "effect";
137
- import { Effect, Layer } from "effect";
136
+ import type * as Cause from "effect/Cause";
137
+ import * as Effect from "effect/Effect";
138
+ import * as Layer from "effect/Layer";
139
+ import * as ServiceMap from "effect/ServiceMap";
138
140
  import type {
139
141
  AuthorizationError,
140
142
  BatchEntryIdsNotDistinctError,
@@ -232,7 +234,7 @@ interface SNSService$ {
232
234
  options?: HttpHandlerOptions,
233
235
  ): Effect.Effect<
234
236
  AddPermissionCommandOutput,
235
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
237
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
236
238
  >;
237
239
 
238
240
  /**
@@ -243,7 +245,7 @@ interface SNSService$ {
243
245
  options?: HttpHandlerOptions,
244
246
  ): Effect.Effect<
245
247
  CheckIfPhoneNumberIsOptedOutCommandOutput,
246
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
248
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
247
249
  >;
248
250
 
249
251
  /**
@@ -254,7 +256,7 @@ interface SNSService$ {
254
256
  options?: HttpHandlerOptions,
255
257
  ): Effect.Effect<
256
258
  ConfirmSubscriptionCommandOutput,
257
- | Cause.TimeoutException
259
+ | Cause.TimeoutError
258
260
  | SdkError
259
261
  | AuthorizationError
260
262
  | FilterPolicyLimitExceededError
@@ -273,7 +275,7 @@ interface SNSService$ {
273
275
  options?: HttpHandlerOptions,
274
276
  ): Effect.Effect<
275
277
  CreatePlatformApplicationCommandOutput,
276
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
278
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
277
279
  >;
278
280
 
279
281
  /**
@@ -284,7 +286,7 @@ interface SNSService$ {
284
286
  options?: HttpHandlerOptions,
285
287
  ): Effect.Effect<
286
288
  CreatePlatformEndpointCommandOutput,
287
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
289
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
288
290
  >;
289
291
 
290
292
  /**
@@ -295,7 +297,7 @@ interface SNSService$ {
295
297
  options?: HttpHandlerOptions,
296
298
  ): Effect.Effect<
297
299
  CreateSMSSandboxPhoneNumberCommandOutput,
298
- | Cause.TimeoutException
300
+ | Cause.TimeoutError
299
301
  | SdkError
300
302
  | AuthorizationError
301
303
  | InternalError
@@ -313,7 +315,7 @@ interface SNSService$ {
313
315
  options?: HttpHandlerOptions,
314
316
  ): Effect.Effect<
315
317
  CreateTopicCommandOutput,
316
- | Cause.TimeoutException
318
+ | Cause.TimeoutError
317
319
  | SdkError
318
320
  | AuthorizationError
319
321
  | ConcurrentAccessError
@@ -334,7 +336,7 @@ interface SNSService$ {
334
336
  options?: HttpHandlerOptions,
335
337
  ): Effect.Effect<
336
338
  DeleteEndpointCommandOutput,
337
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
339
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
338
340
  >;
339
341
 
340
342
  /**
@@ -345,7 +347,7 @@ interface SNSService$ {
345
347
  options?: HttpHandlerOptions,
346
348
  ): Effect.Effect<
347
349
  DeletePlatformApplicationCommandOutput,
348
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
350
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
349
351
  >;
350
352
 
351
353
  /**
@@ -356,7 +358,7 @@ interface SNSService$ {
356
358
  options?: HttpHandlerOptions,
357
359
  ): Effect.Effect<
358
360
  DeleteSMSSandboxPhoneNumberCommandOutput,
359
- | Cause.TimeoutException
361
+ | Cause.TimeoutError
360
362
  | SdkError
361
363
  | AuthorizationError
362
364
  | InternalError
@@ -374,7 +376,7 @@ interface SNSService$ {
374
376
  options?: HttpHandlerOptions,
375
377
  ): Effect.Effect<
376
378
  DeleteTopicCommandOutput,
377
- | Cause.TimeoutException
379
+ | Cause.TimeoutError
378
380
  | SdkError
379
381
  | AuthorizationError
380
382
  | ConcurrentAccessError
@@ -394,7 +396,7 @@ interface SNSService$ {
394
396
  options?: HttpHandlerOptions,
395
397
  ): Effect.Effect<
396
398
  GetDataProtectionPolicyCommandOutput,
397
- | Cause.TimeoutException
399
+ | Cause.TimeoutError
398
400
  | SdkError
399
401
  | AuthorizationError
400
402
  | InternalError
@@ -411,7 +413,7 @@ interface SNSService$ {
411
413
  options?: HttpHandlerOptions,
412
414
  ): Effect.Effect<
413
415
  GetEndpointAttributesCommandOutput,
414
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
416
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
415
417
  >;
416
418
 
417
419
  /**
@@ -422,7 +424,7 @@ interface SNSService$ {
422
424
  options?: HttpHandlerOptions,
423
425
  ): Effect.Effect<
424
426
  GetPlatformApplicationAttributesCommandOutput,
425
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
427
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
426
428
  >;
427
429
 
428
430
  /**
@@ -433,7 +435,7 @@ interface SNSService$ {
433
435
  options?: HttpHandlerOptions,
434
436
  ): Effect.Effect<
435
437
  GetSMSAttributesCommandOutput,
436
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
438
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
437
439
  >;
438
440
 
439
441
  /**
@@ -444,7 +446,7 @@ interface SNSService$ {
444
446
  options?: HttpHandlerOptions,
445
447
  ): Effect.Effect<
446
448
  GetSMSSandboxAccountStatusCommandOutput,
447
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | ThrottledError
449
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | ThrottledError
448
450
  >;
449
451
 
450
452
  /**
@@ -455,7 +457,7 @@ interface SNSService$ {
455
457
  options?: HttpHandlerOptions,
456
458
  ): Effect.Effect<
457
459
  GetSubscriptionAttributesCommandOutput,
458
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
460
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
459
461
  >;
460
462
 
461
463
  /**
@@ -466,7 +468,7 @@ interface SNSService$ {
466
468
  options?: HttpHandlerOptions,
467
469
  ): Effect.Effect<
468
470
  GetTopicAttributesCommandOutput,
469
- | Cause.TimeoutException
471
+ | Cause.TimeoutError
470
472
  | SdkError
471
473
  | AuthorizationError
472
474
  | InternalError
@@ -483,7 +485,7 @@ interface SNSService$ {
483
485
  options?: HttpHandlerOptions,
484
486
  ): Effect.Effect<
485
487
  ListEndpointsByPlatformApplicationCommandOutput,
486
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
488
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
487
489
  >;
488
490
 
489
491
  /**
@@ -494,7 +496,7 @@ interface SNSService$ {
494
496
  options?: HttpHandlerOptions,
495
497
  ): Effect.Effect<
496
498
  ListOriginationNumbersCommandOutput,
497
- | Cause.TimeoutException
499
+ | Cause.TimeoutError
498
500
  | SdkError
499
501
  | AuthorizationError
500
502
  | InternalError
@@ -511,7 +513,7 @@ interface SNSService$ {
511
513
  options?: HttpHandlerOptions,
512
514
  ): Effect.Effect<
513
515
  ListPhoneNumbersOptedOutCommandOutput,
514
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
516
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
515
517
  >;
516
518
 
517
519
  /**
@@ -522,7 +524,7 @@ interface SNSService$ {
522
524
  options?: HttpHandlerOptions,
523
525
  ): Effect.Effect<
524
526
  ListPlatformApplicationsCommandOutput,
525
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
527
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
526
528
  >;
527
529
 
528
530
  /**
@@ -533,7 +535,7 @@ interface SNSService$ {
533
535
  options?: HttpHandlerOptions,
534
536
  ): Effect.Effect<
535
537
  ListSMSSandboxPhoneNumbersCommandOutput,
536
- | Cause.TimeoutException
538
+ | Cause.TimeoutError
537
539
  | SdkError
538
540
  | AuthorizationError
539
541
  | InternalError
@@ -550,7 +552,7 @@ interface SNSService$ {
550
552
  options?: HttpHandlerOptions,
551
553
  ): Effect.Effect<
552
554
  ListSubscriptionsCommandOutput,
553
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
555
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
554
556
  >;
555
557
 
556
558
  /**
@@ -561,7 +563,7 @@ interface SNSService$ {
561
563
  options?: HttpHandlerOptions,
562
564
  ): Effect.Effect<
563
565
  ListSubscriptionsByTopicCommandOutput,
564
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
566
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
565
567
  >;
566
568
 
567
569
  /**
@@ -572,7 +574,7 @@ interface SNSService$ {
572
574
  options?: HttpHandlerOptions,
573
575
  ): Effect.Effect<
574
576
  ListTagsForResourceCommandOutput,
575
- | Cause.TimeoutException
577
+ | Cause.TimeoutError
576
578
  | SdkError
577
579
  | AuthorizationError
578
580
  | ConcurrentAccessError
@@ -589,7 +591,7 @@ interface SNSService$ {
589
591
  options?: HttpHandlerOptions,
590
592
  ): Effect.Effect<
591
593
  ListTopicsCommandOutput,
592
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
594
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
593
595
  >;
594
596
 
595
597
  /**
@@ -600,7 +602,7 @@ interface SNSService$ {
600
602
  options?: HttpHandlerOptions,
601
603
  ): Effect.Effect<
602
604
  OptInPhoneNumberCommandOutput,
603
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
605
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
604
606
  >;
605
607
 
606
608
  /**
@@ -611,7 +613,7 @@ interface SNSService$ {
611
613
  options?: HttpHandlerOptions,
612
614
  ): Effect.Effect<
613
615
  PublishCommandOutput,
614
- | Cause.TimeoutException
616
+ | Cause.TimeoutError
615
617
  | SdkError
616
618
  | AuthorizationError
617
619
  | EndpointDisabledError
@@ -638,7 +640,7 @@ interface SNSService$ {
638
640
  options?: HttpHandlerOptions,
639
641
  ): Effect.Effect<
640
642
  PublishBatchCommandOutput,
641
- | Cause.TimeoutException
643
+ | Cause.TimeoutError
642
644
  | SdkError
643
645
  | AuthorizationError
644
646
  | BatchEntryIdsNotDistinctError
@@ -670,7 +672,7 @@ interface SNSService$ {
670
672
  options?: HttpHandlerOptions,
671
673
  ): Effect.Effect<
672
674
  PutDataProtectionPolicyCommandOutput,
673
- | Cause.TimeoutException
675
+ | Cause.TimeoutError
674
676
  | SdkError
675
677
  | AuthorizationError
676
678
  | InternalError
@@ -687,7 +689,7 @@ interface SNSService$ {
687
689
  options?: HttpHandlerOptions,
688
690
  ): Effect.Effect<
689
691
  RemovePermissionCommandOutput,
690
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
692
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
691
693
  >;
692
694
 
693
695
  /**
@@ -698,7 +700,7 @@ interface SNSService$ {
698
700
  options?: HttpHandlerOptions,
699
701
  ): Effect.Effect<
700
702
  SetEndpointAttributesCommandOutput,
701
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
703
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
702
704
  >;
703
705
 
704
706
  /**
@@ -709,7 +711,7 @@ interface SNSService$ {
709
711
  options?: HttpHandlerOptions,
710
712
  ): Effect.Effect<
711
713
  SetPlatformApplicationAttributesCommandOutput,
712
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
714
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
713
715
  >;
714
716
 
715
717
  /**
@@ -720,7 +722,7 @@ interface SNSService$ {
720
722
  options?: HttpHandlerOptions,
721
723
  ): Effect.Effect<
722
724
  SetSMSAttributesCommandOutput,
723
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
725
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
724
726
  >;
725
727
 
726
728
  /**
@@ -731,7 +733,7 @@ interface SNSService$ {
731
733
  options?: HttpHandlerOptions,
732
734
  ): Effect.Effect<
733
735
  SetSubscriptionAttributesCommandOutput,
734
- | Cause.TimeoutException
736
+ | Cause.TimeoutError
735
737
  | SdkError
736
738
  | AuthorizationError
737
739
  | FilterPolicyLimitExceededError
@@ -749,7 +751,7 @@ interface SNSService$ {
749
751
  options?: HttpHandlerOptions,
750
752
  ): Effect.Effect<
751
753
  SetTopicAttributesCommandOutput,
752
- | Cause.TimeoutException
754
+ | Cause.TimeoutError
753
755
  | SdkError
754
756
  | AuthorizationError
755
757
  | InternalError
@@ -766,7 +768,7 @@ interface SNSService$ {
766
768
  options?: HttpHandlerOptions,
767
769
  ): Effect.Effect<
768
770
  SubscribeCommandOutput,
769
- | Cause.TimeoutException
771
+ | Cause.TimeoutError
770
772
  | SdkError
771
773
  | AuthorizationError
772
774
  | FilterPolicyLimitExceededError
@@ -786,7 +788,7 @@ interface SNSService$ {
786
788
  options?: HttpHandlerOptions,
787
789
  ): Effect.Effect<
788
790
  TagResourceCommandOutput,
789
- | Cause.TimeoutException
791
+ | Cause.TimeoutError
790
792
  | SdkError
791
793
  | AuthorizationError
792
794
  | ConcurrentAccessError
@@ -805,7 +807,7 @@ interface SNSService$ {
805
807
  options?: HttpHandlerOptions,
806
808
  ): Effect.Effect<
807
809
  UnsubscribeCommandOutput,
808
- | Cause.TimeoutException
810
+ | Cause.TimeoutError
809
811
  | SdkError
810
812
  | AuthorizationError
811
813
  | InternalError
@@ -822,7 +824,7 @@ interface SNSService$ {
822
824
  options?: HttpHandlerOptions,
823
825
  ): Effect.Effect<
824
826
  UntagResourceCommandOutput,
825
- | Cause.TimeoutException
827
+ | Cause.TimeoutError
826
828
  | SdkError
827
829
  | AuthorizationError
828
830
  | ConcurrentAccessError
@@ -841,7 +843,7 @@ interface SNSService$ {
841
843
  options?: HttpHandlerOptions,
842
844
  ): Effect.Effect<
843
845
  VerifySMSSandboxPhoneNumberCommandOutput,
844
- | Cause.TimeoutException
846
+ | Cause.TimeoutError
845
847
  | SdkError
846
848
  | AuthorizationError
847
849
  | InternalError
@@ -873,10 +875,10 @@ export const makeSNSService = Effect.gen(function*() {
873
875
  * @since 1.0.0
874
876
  * @category models
875
877
  */
876
- export class SNSService extends Effect.Tag("@effect-aws/client-sns/SNSService")<
878
+ export class SNSService extends ServiceMap.Service<
877
879
  SNSService,
878
880
  SNSService$
879
- >() {
881
+ >()("@effect-aws/client-sns/SNSService") {
880
882
  static readonly defaultLayer = Layer.effect(this, makeSNSService).pipe(Layer.provide(Instance.layer));
881
883
  static readonly layer = (config: SNSService.Config) =>
882
884
  Layer.effect(this, makeSNSService).pipe(
@@ -3,18 +3,19 @@
3
3
  */
4
4
  import type { SNSClientConfig } from "@aws-sdk/client-sns";
5
5
  import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "effect";
6
+ import * as Effect from "effect/Effect";
7
7
  import { dual } from "effect/Function";
8
- import { globalValue } from "effect/GlobalValue";
8
+ import * as Layer from "effect/Layer";
9
+ import * as ServiceMap from "effect/ServiceMap";
9
10
  import type { SNSService } from "./SNSService.js";
10
11
 
11
12
  /**
12
13
  * @since 1.0.0
13
14
  * @category sns service config
14
15
  */
15
- const currentSNSServiceConfig = globalValue(
16
+ const currentSNSServiceConfig = ServiceMap.Reference<SNSService.Config>(
16
17
  "@effect-aws/client-sns/currentSNSServiceConfig",
17
- () => FiberRef.unsafeMake<SNSService.Config>({}),
18
+ { defaultValue: () => ({}) },
18
19
  );
19
20
 
20
21
  /**
@@ -27,21 +28,21 @@ export const withSNSServiceConfig: {
27
28
  } = dual(
28
29
  2,
29
30
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: SNSService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentSNSServiceConfig, config),
31
+ Effect.provideService(effect, currentSNSServiceConfig, config),
31
32
  );
32
33
 
33
34
  /**
34
35
  * @since 1.0.0
35
36
  * @category sns service config
36
37
  */
37
- export const setSNSServiceConfig = (config: SNSService.Config) => Layer.locallyScoped(currentSNSServiceConfig, config);
38
+ export const setSNSServiceConfig = (config: SNSService.Config) => Layer.succeed(currentSNSServiceConfig, config);
38
39
 
39
40
  /**
40
41
  * @since 1.0.0
41
42
  * @category adapters
42
43
  */
43
44
  export const toSNSClientConfig: Effect.Effect<SNSClientConfig> = Effect.gen(function*() {
44
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSNSServiceConfig);
45
+ const { logger: serviceLogger, ...config } = yield* currentSNSServiceConfig;
45
46
 
46
47
  const logger = serviceLogger === true
47
48
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
@@ -1,41 +0,0 @@
1
- import type { AuthorizationErrorException, BatchEntryIdsNotDistinctException, BatchRequestTooLongException, ConcurrentAccessException, EmptyBatchRequestException, EndpointDisabledException, FilterPolicyLimitExceededException, InternalErrorException, InvalidBatchEntryIdException, InvalidParameterException, InvalidParameterValueException, InvalidSecurityException, InvalidStateException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, NotFoundException, OptedOutException, PlatformApplicationDisabledException, ReplayLimitExceededException, ResourceNotFoundException, StaleTagException, SubscriptionLimitExceededException, TagLimitExceededException, TagPolicyException, ThrottledException, TooManyEntriesInBatchRequestException, TopicLimitExceededException, UserErrorException, ValidationException, VerificationException } from "@aws-sdk/client-sns";
2
- import type { TaggedException } from "@effect-aws/commons";
3
- export declare const AllServiceErrors: readonly ["AuthorizationErrorException", "BatchEntryIdsNotDistinctException", "BatchRequestTooLongException", "ConcurrentAccessException", "EmptyBatchRequestException", "EndpointDisabledException", "FilterPolicyLimitExceededException", "InternalErrorException", "InvalidBatchEntryIdException", "InvalidParameterException", "InvalidParameterValueException", "InvalidSecurityException", "InvalidStateException", "KMSAccessDeniedException", "KMSDisabledException", "KMSInvalidStateException", "KMSNotFoundException", "KMSOptInRequired", "KMSThrottlingException", "NotFoundException", "OptedOutException", "PlatformApplicationDisabledException", "ReplayLimitExceededException", "ResourceNotFoundException", "StaleTagException", "SubscriptionLimitExceededException", "TagLimitExceededException", "TagPolicyException", "ThrottledException", "TooManyEntriesInBatchRequestException", "TopicLimitExceededException", "UserErrorException", "ValidationException", "VerificationException"];
4
- export type AuthorizationError = TaggedException<AuthorizationErrorException>;
5
- export type BatchEntryIdsNotDistinctError = TaggedException<BatchEntryIdsNotDistinctException>;
6
- export type BatchRequestTooLongError = TaggedException<BatchRequestTooLongException>;
7
- export type ConcurrentAccessError = TaggedException<ConcurrentAccessException>;
8
- export type EmptyBatchRequestError = TaggedException<EmptyBatchRequestException>;
9
- export type EndpointDisabledError = TaggedException<EndpointDisabledException>;
10
- export type FilterPolicyLimitExceededError = TaggedException<FilterPolicyLimitExceededException>;
11
- export type InternalError = TaggedException<InternalErrorException>;
12
- export type InvalidBatchEntryIdError = TaggedException<InvalidBatchEntryIdException>;
13
- export type InvalidParameterError = TaggedException<InvalidParameterException>;
14
- export type InvalidParameterValueError = TaggedException<InvalidParameterValueException>;
15
- export type InvalidSecurityError = TaggedException<InvalidSecurityException>;
16
- export type InvalidStateError = TaggedException<InvalidStateException>;
17
- export type KMSAccessDeniedError = TaggedException<KMSAccessDeniedException>;
18
- export type KMSDisabledError = TaggedException<KMSDisabledException>;
19
- export type KMSInvalidStateError = TaggedException<KMSInvalidStateException>;
20
- export type KMSNotFoundError = TaggedException<KMSNotFoundException>;
21
- export type KMSOptInRequiredError = TaggedException<KMSOptInRequired>;
22
- export type KMSThrottlingError = TaggedException<KMSThrottlingException>;
23
- export type NotFoundError = TaggedException<NotFoundException>;
24
- export type OptedOutError = TaggedException<OptedOutException>;
25
- export type PlatformApplicationDisabledError = TaggedException<PlatformApplicationDisabledException>;
26
- export type ReplayLimitExceededError = TaggedException<ReplayLimitExceededException>;
27
- export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
28
- export type StaleTagError = TaggedException<StaleTagException>;
29
- export type SubscriptionLimitExceededError = TaggedException<SubscriptionLimitExceededException>;
30
- export type TagLimitExceededError = TaggedException<TagLimitExceededException>;
31
- export type TagPolicyError = TaggedException<TagPolicyException>;
32
- export type ThrottledError = TaggedException<ThrottledException>;
33
- export type TooManyEntriesInBatchRequestError = TaggedException<TooManyEntriesInBatchRequestException>;
34
- export type TopicLimitExceededError = TaggedException<TopicLimitExceededException>;
35
- export type UserError = TaggedException<UserErrorException>;
36
- export type ValidationError = TaggedException<ValidationException>;
37
- export type VerificationError = TaggedException<VerificationException>;
38
- export type SdkError = TaggedException<Error & {
39
- name: "SdkError";
40
- }>;
41
- //# sourceMappingURL=Errors.d.ts.map
@@ -1 +0,0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B,CAAC,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAAC,qCAAqC,CAAC,CAAC;AACvG,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AllServiceErrors = void 0;
4
- exports.AllServiceErrors = [
5
- "AuthorizationErrorException",
6
- "BatchEntryIdsNotDistinctException",
7
- "BatchRequestTooLongException",
8
- "ConcurrentAccessException",
9
- "EmptyBatchRequestException",
10
- "EndpointDisabledException",
11
- "FilterPolicyLimitExceededException",
12
- "InternalErrorException",
13
- "InvalidBatchEntryIdException",
14
- "InvalidParameterException",
15
- "InvalidParameterValueException",
16
- "InvalidSecurityException",
17
- "InvalidStateException",
18
- "KMSAccessDeniedException",
19
- "KMSDisabledException",
20
- "KMSInvalidStateException",
21
- "KMSNotFoundException",
22
- "KMSOptInRequired",
23
- "KMSThrottlingException",
24
- "NotFoundException",
25
- "OptedOutException",
26
- "PlatformApplicationDisabledException",
27
- "ReplayLimitExceededException",
28
- "ResourceNotFoundException",
29
- "StaleTagException",
30
- "SubscriptionLimitExceededException",
31
- "TagLimitExceededException",
32
- "TagPolicyException",
33
- "ThrottledException",
34
- "TooManyEntriesInBatchRequestException",
35
- "TopicLimitExceededException",
36
- "UserErrorException",
37
- "ValidationException",
38
- "VerificationException",
39
- ];
40
- //# sourceMappingURL=Errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAsCa,QAAA,gBAAgB,GAAG;IAC9B,6BAA6B;IAC7B,mCAAmC;IACnC,8BAA8B;IAC9B,2BAA2B;IAC3B,4BAA4B;IAC5B,2BAA2B;IAC3B,oCAAoC;IACpC,wBAAwB;IACxB,8BAA8B;IAC9B,2BAA2B;IAC3B,gCAAgC;IAChC,0BAA0B;IAC1B,uBAAuB;IACvB,0BAA0B;IAC1B,sBAAsB;IACtB,0BAA0B;IAC1B,sBAAsB;IACtB,kBAAkB;IAClB,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;IACnB,sCAAsC;IACtC,8BAA8B;IAC9B,2BAA2B;IAC3B,mBAAmB;IACnB,oCAAoC;IACpC,2BAA2B;IAC3B,oBAAoB;IACpB,oBAAoB;IACpB,uCAAuC;IACvC,6BAA6B;IAC7B,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;CACf,CAAC"}
@@ -1,24 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { SNSClient } from "@aws-sdk/client-sns";
5
- import { Context, Effect, Layer } from "effect";
6
- declare const SNSClientInstance_base: Context.TagClass<SNSClientInstance, "@effect-aws/client-sns/SNSClientInstance", SNSClient>;
7
- /**
8
- * @since 1.0.0
9
- * @category tags
10
- */
11
- export declare class SNSClientInstance extends SNSClientInstance_base {
12
- }
13
- /**
14
- * @since 1.0.0
15
- * @category constructors
16
- */
17
- export declare const make: Effect.Effect<SNSClient, never, import("effect/Scope").Scope>;
18
- /**
19
- * @since 1.0.0
20
- * @category layers
21
- */
22
- export declare const layer: Layer.Layer<SNSClientInstance, never, never>;
23
- export {};
24
- //# sourceMappingURL=SNSClientInstance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SNSClientInstance.d.ts","sourceRoot":"","sources":["../../src/SNSClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAEN;CAAG;AAEpC;;;GAGG;AACH,eAAO,MAAM,IAAI,+DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,8CAAwC,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.SNSClientInstance = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_sns_1 = require("@aws-sdk/client-sns");
31
- const effect_1 = require("effect");
32
- const SNSServiceConfig = __importStar(require("./SNSServiceConfig.js"));
33
- /**
34
- * @since 1.0.0
35
- * @category tags
36
- */
37
- class SNSClientInstance extends effect_1.Context.Tag("@effect-aws/client-sns/SNSClientInstance")() {
38
- }
39
- exports.SNSClientInstance = SNSClientInstance;
40
- /**
41
- * @since 1.0.0
42
- * @category constructors
43
- */
44
- exports.make = effect_1.Effect.flatMap(SNSServiceConfig.toSNSClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_sns_1.SNSClient(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(SNSClientInstance, exports.make);
50
- //# sourceMappingURL=SNSClientInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SNSClientInstance.js","sourceRoot":"","sources":["../../src/SNSClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAAgD;AAChD,mCAAgD;AAChD,wEAA0D;AAE1D;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,gBAAO,CAAC,GAAG,CAChD,0CAA0C,CAC3C,EAAgC;CAAG;AAFpC,8CAEoC;AAEpC;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,gBAAgB,CAAC,iBAAiB,EAClC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,sBAAS,CAAC,MAAM,CAAC,CAAC,EACxC,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,iBAAiB,EAAE,YAAI,CAAC,CAAC"}