@effect-aws/client-sns 1.6.0 → 1.9.3

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 (69) hide show
  1. package/Errors/package.json +6 -0
  2. package/SNSClientInstance/package.json +6 -0
  3. package/SNSService/package.json +6 -0
  4. package/SNSServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +42 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/SNSClientInstance.d.ts +24 -0
  10. package/dist/cjs/SNSClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/SNSClientInstance.js +50 -0
  12. package/dist/cjs/SNSClientInstance.js.map +1 -0
  13. package/dist/cjs/SNSService.d.ts +209 -0
  14. package/dist/cjs/SNSService.d.ts.map +1 -0
  15. package/dist/cjs/SNSService.js +101 -0
  16. package/dist/cjs/SNSService.js.map +1 -0
  17. package/dist/cjs/SNSServiceConfig.d.ts +25 -0
  18. package/dist/cjs/SNSServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/SNSServiceConfig.js +35 -0
  20. package/dist/cjs/SNSServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +41 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/SNSClientInstance.d.ts +24 -0
  28. package/dist/dts/SNSClientInstance.d.ts.map +1 -0
  29. package/dist/dts/SNSService.d.ts +209 -0
  30. package/dist/dts/SNSService.d.ts.map +1 -0
  31. package/dist/dts/SNSServiceConfig.d.ts +25 -0
  32. package/dist/dts/SNSServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +39 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/SNSClientInstance.js +23 -0
  38. package/dist/esm/SNSClientInstance.js.map +1 -0
  39. package/dist/esm/SNSService.js +74 -0
  40. package/dist/esm/SNSService.js.map +1 -0
  41. package/dist/esm/SNSServiceConfig.js +31 -0
  42. package/dist/esm/SNSServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +113 -0
  48. package/src/SNSClientInstance.ts +33 -0
  49. package/src/SNSService.ts +846 -0
  50. package/src/SNSServiceConfig.ts +51 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -113
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -42
  55. package/lib/SNSClientInstance.d.ts +0 -31
  56. package/lib/SNSClientInstance.js +0 -57
  57. package/lib/SNSClientInstanceConfig.d.ts +0 -23
  58. package/lib/SNSClientInstanceConfig.js +0 -44
  59. package/lib/SNSService.d.ts +0 -275
  60. package/lib/SNSService.js +0 -130
  61. package/lib/esm/Errors.js +0 -39
  62. package/lib/esm/SNSClientInstance.js +0 -30
  63. package/lib/esm/SNSClientInstanceConfig.js +0 -40
  64. package/lib/esm/SNSService.js +0 -126
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/Errors.js",
3
+ "module": "../dist/esm/Errors.js",
4
+ "types": "../dist/dts/Errors.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/SNSClientInstance.js",
3
+ "module": "../dist/esm/SNSClientInstance.js",
4
+ "types": "../dist/dts/SNSClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/SNSService.js",
3
+ "module": "../dist/esm/SNSService.js",
4
+ "types": "../dist/dts/SNSService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/SNSServiceConfig.js",
3
+ "module": "../dist/esm/SNSServiceConfig.js",
4
+ "types": "../dist/dts/SNSServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -1,11 +1,7 @@
1
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 { Data } from "effect";
3
- export declare const AllServiceErrors: string[];
4
- export type TaggedException<T extends {
5
- name: string;
6
- }> = T & {
7
- readonly _tag: T["name"];
8
- };
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ 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"];
9
5
  export type AuthorizationError = TaggedException<AuthorizationErrorException>;
10
6
  export type BatchEntryIdsNotDistinctError = TaggedException<BatchEntryIdsNotDistinctException>;
11
7
  export type BatchRequestTooLongError = TaggedException<BatchRequestTooLongException>;
@@ -40,7 +36,6 @@ export type TopicLimitExceededError = TaggedException<TopicLimitExceededExceptio
40
36
  export type UserError = TaggedException<UserErrorException>;
41
37
  export type ValidationError = TaggedException<ValidationException>;
42
38
  export type VerificationError = TaggedException<VerificationException>;
43
- export type SdkError = TaggedException<Error & {
44
- name: "SdkError";
45
- }>;
46
- export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
39
+ export type SdkError = CommonSdkError;
40
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
41
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,iCAAiC,EACjC,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,EACzB,kCAAkC,EAClC,sBAAsB,EACtB,4BAA4B,EAC5B,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,oCAAoC,EACpC,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,kCAAkC,EAClC,yBAAyB,EACzB,kBAAkB,EAClB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BAAqB,CAAC,CAAC;AAEvE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdkError = exports.AllServiceErrors = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ exports.AllServiceErrors = [
6
+ "AuthorizationErrorException",
7
+ "BatchEntryIdsNotDistinctException",
8
+ "BatchRequestTooLongException",
9
+ "ConcurrentAccessException",
10
+ "EmptyBatchRequestException",
11
+ "EndpointDisabledException",
12
+ "FilterPolicyLimitExceededException",
13
+ "InternalErrorException",
14
+ "InvalidBatchEntryIdException",
15
+ "InvalidParameterException",
16
+ "InvalidParameterValueException",
17
+ "InvalidSecurityException",
18
+ "InvalidStateException",
19
+ "KMSAccessDeniedException",
20
+ "KMSDisabledException",
21
+ "KMSInvalidStateException",
22
+ "KMSNotFoundException",
23
+ "KMSOptInRequired",
24
+ "KMSThrottlingException",
25
+ "NotFoundException",
26
+ "OptedOutException",
27
+ "PlatformApplicationDisabledException",
28
+ "ReplayLimitExceededException",
29
+ "ResourceNotFoundException",
30
+ "StaleTagException",
31
+ "SubscriptionLimitExceededException",
32
+ "TagLimitExceededException",
33
+ "TagPolicyException",
34
+ "ThrottledException",
35
+ "TooManyEntriesInBatchRequestException",
36
+ "TopicLimitExceededException",
37
+ "UserErrorException",
38
+ "ValidationException",
39
+ "VerificationException",
40
+ ];
41
+ exports.SdkError = commons_1.SdkError;
42
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAqCA,iDAAiE;AAEpD,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;AAsCE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,24 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,50 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,209 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { type AddPermissionCommandInput, type AddPermissionCommandOutput, type CheckIfPhoneNumberIsOptedOutCommandInput, type CheckIfPhoneNumberIsOptedOutCommandOutput, type ConfirmSubscriptionCommandInput, type ConfirmSubscriptionCommandOutput, type CreatePlatformApplicationCommandInput, type CreatePlatformApplicationCommandOutput, type CreatePlatformEndpointCommandInput, type CreatePlatformEndpointCommandOutput, type CreateSMSSandboxPhoneNumberCommandInput, type CreateSMSSandboxPhoneNumberCommandOutput, type CreateTopicCommandInput, type CreateTopicCommandOutput, type DeleteEndpointCommandInput, type DeleteEndpointCommandOutput, type DeletePlatformApplicationCommandInput, type DeletePlatformApplicationCommandOutput, type DeleteSMSSandboxPhoneNumberCommandInput, type DeleteSMSSandboxPhoneNumberCommandOutput, type DeleteTopicCommandInput, type DeleteTopicCommandOutput, type GetDataProtectionPolicyCommandInput, type GetDataProtectionPolicyCommandOutput, type GetEndpointAttributesCommandInput, type GetEndpointAttributesCommandOutput, type GetPlatformApplicationAttributesCommandInput, type GetPlatformApplicationAttributesCommandOutput, type GetSMSAttributesCommandInput, type GetSMSAttributesCommandOutput, type GetSMSSandboxAccountStatusCommandInput, type GetSMSSandboxAccountStatusCommandOutput, type GetSubscriptionAttributesCommandInput, type GetSubscriptionAttributesCommandOutput, type GetTopicAttributesCommandInput, type GetTopicAttributesCommandOutput, type ListEndpointsByPlatformApplicationCommandInput, type ListEndpointsByPlatformApplicationCommandOutput, type ListOriginationNumbersCommandInput, type ListOriginationNumbersCommandOutput, type ListPhoneNumbersOptedOutCommandInput, type ListPhoneNumbersOptedOutCommandOutput, type ListPlatformApplicationsCommandInput, type ListPlatformApplicationsCommandOutput, type ListSMSSandboxPhoneNumbersCommandInput, type ListSMSSandboxPhoneNumbersCommandOutput, type ListSubscriptionsByTopicCommandInput, type ListSubscriptionsByTopicCommandOutput, type ListSubscriptionsCommandInput, type ListSubscriptionsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type ListTopicsCommandInput, type ListTopicsCommandOutput, type OptInPhoneNumberCommandInput, type OptInPhoneNumberCommandOutput, type PublishBatchCommandInput, type PublishBatchCommandOutput, type PublishCommandInput, type PublishCommandOutput, type PutDataProtectionPolicyCommandInput, type PutDataProtectionPolicyCommandOutput, type RemovePermissionCommandInput, type RemovePermissionCommandOutput, type SetEndpointAttributesCommandInput, type SetEndpointAttributesCommandOutput, type SetPlatformApplicationAttributesCommandInput, type SetPlatformApplicationAttributesCommandOutput, type SetSMSAttributesCommandInput, type SetSMSAttributesCommandOutput, type SetSubscriptionAttributesCommandInput, type SetSubscriptionAttributesCommandOutput, type SetTopicAttributesCommandInput, type SetTopicAttributesCommandOutput, type SNSClient, type SNSClientConfig, type SubscribeCommandInput, type SubscribeCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UnsubscribeCommandInput, type UnsubscribeCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type VerifySMSSandboxPhoneNumberCommandInput, type VerifySMSSandboxPhoneNumberCommandOutput } from "@aws-sdk/client-sns";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import type { AuthorizationError, BatchEntryIdsNotDistinctError, BatchRequestTooLongError, ConcurrentAccessError, EmptyBatchRequestError, EndpointDisabledError, FilterPolicyLimitExceededError, InternalError, InvalidBatchEntryIdError, InvalidParameterError, InvalidParameterValueError, InvalidSecurityError, InvalidStateError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, KMSOptInRequiredError, KMSThrottlingError, NotFoundError, OptedOutError, PlatformApplicationDisabledError, ReplayLimitExceededError, ResourceNotFoundError, StaleTagError, SubscriptionLimitExceededError, TagLimitExceededError, TagPolicyError, ThrottledError, TooManyEntriesInBatchRequestError, TopicLimitExceededError, UserError, ValidationError, VerificationError } from "./Errors.js";
8
+ import * as Instance from "./SNSClientInstance.js";
9
+ interface SNSService$ {
10
+ readonly _: unique symbol;
11
+ /**
12
+ * @see {@link AddPermissionCommand}
13
+ */
14
+ addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
15
+ /**
16
+ * @see {@link CheckIfPhoneNumberIsOptedOutCommand}
17
+ */
18
+ checkIfPhoneNumberIsOptedOut(args: CheckIfPhoneNumberIsOptedOutCommandInput, options?: HttpHandlerOptions): Effect.Effect<CheckIfPhoneNumberIsOptedOutCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError>;
19
+ /**
20
+ * @see {@link ConfirmSubscriptionCommand}
21
+ */
22
+ confirmSubscription(args: ConfirmSubscriptionCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConfirmSubscriptionCommandOutput, SdkError | AuthorizationError | FilterPolicyLimitExceededError | InternalError | InvalidParameterError | NotFoundError | ReplayLimitExceededError | SubscriptionLimitExceededError>;
23
+ /**
24
+ * @see {@link CreatePlatformApplicationCommand}
25
+ */
26
+ createPlatformApplication(args: CreatePlatformApplicationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreatePlatformApplicationCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
27
+ /**
28
+ * @see {@link CreatePlatformEndpointCommand}
29
+ */
30
+ createPlatformEndpoint(args: CreatePlatformEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreatePlatformEndpointCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
31
+ /**
32
+ * @see {@link CreateSMSSandboxPhoneNumberCommand}
33
+ */
34
+ createSMSSandboxPhoneNumber(args: CreateSMSSandboxPhoneNumberCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateSMSSandboxPhoneNumberCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | OptedOutError | ThrottledError | UserError>;
35
+ /**
36
+ * @see {@link CreateTopicCommand}
37
+ */
38
+ createTopic(args: CreateTopicCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTopicCommandOutput, SdkError | AuthorizationError | ConcurrentAccessError | InternalError | InvalidParameterError | InvalidSecurityError | StaleTagError | TagLimitExceededError | TagPolicyError | TopicLimitExceededError>;
39
+ /**
40
+ * @see {@link DeleteEndpointCommand}
41
+ */
42
+ deleteEndpoint(args: DeleteEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteEndpointCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
43
+ /**
44
+ * @see {@link DeletePlatformApplicationCommand}
45
+ */
46
+ deletePlatformApplication(args: DeletePlatformApplicationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeletePlatformApplicationCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
47
+ /**
48
+ * @see {@link DeleteSMSSandboxPhoneNumberCommand}
49
+ */
50
+ deleteSMSSandboxPhoneNumber(args: DeleteSMSSandboxPhoneNumberCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSMSSandboxPhoneNumberCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ResourceNotFoundError | ThrottledError | UserError>;
51
+ /**
52
+ * @see {@link DeleteTopicCommand}
53
+ */
54
+ deleteTopic(args: DeleteTopicCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTopicCommandOutput, SdkError | AuthorizationError | ConcurrentAccessError | InternalError | InvalidParameterError | InvalidStateError | NotFoundError | StaleTagError | TagPolicyError>;
55
+ /**
56
+ * @see {@link GetDataProtectionPolicyCommand}
57
+ */
58
+ getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetDataProtectionPolicyCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError>;
59
+ /**
60
+ * @see {@link GetEndpointAttributesCommand}
61
+ */
62
+ getEndpointAttributes(args: GetEndpointAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetEndpointAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
63
+ /**
64
+ * @see {@link GetPlatformApplicationAttributesCommand}
65
+ */
66
+ getPlatformApplicationAttributes(args: GetPlatformApplicationAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPlatformApplicationAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
67
+ /**
68
+ * @see {@link GetSMSAttributesCommand}
69
+ */
70
+ getSMSAttributes(args: GetSMSAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSMSAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError>;
71
+ /**
72
+ * @see {@link GetSMSSandboxAccountStatusCommand}
73
+ */
74
+ getSMSSandboxAccountStatus(args: GetSMSSandboxAccountStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSMSSandboxAccountStatusCommandOutput, SdkError | AuthorizationError | InternalError | ThrottledError>;
75
+ /**
76
+ * @see {@link GetSubscriptionAttributesCommand}
77
+ */
78
+ getSubscriptionAttributes(args: GetSubscriptionAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSubscriptionAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
79
+ /**
80
+ * @see {@link GetTopicAttributesCommand}
81
+ */
82
+ getTopicAttributes(args: GetTopicAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetTopicAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError>;
83
+ /**
84
+ * @see {@link ListEndpointsByPlatformApplicationCommand}
85
+ */
86
+ listEndpointsByPlatformApplication(args: ListEndpointsByPlatformApplicationCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListEndpointsByPlatformApplicationCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
87
+ /**
88
+ * @see {@link ListOriginationNumbersCommand}
89
+ */
90
+ listOriginationNumbers(args: ListOriginationNumbersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListOriginationNumbersCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError | ValidationError>;
91
+ /**
92
+ * @see {@link ListPhoneNumbersOptedOutCommand}
93
+ */
94
+ listPhoneNumbersOptedOut(args: ListPhoneNumbersOptedOutCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListPhoneNumbersOptedOutCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError>;
95
+ /**
96
+ * @see {@link ListPlatformApplicationsCommand}
97
+ */
98
+ listPlatformApplications(args: ListPlatformApplicationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListPlatformApplicationsCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
99
+ /**
100
+ * @see {@link ListSMSSandboxPhoneNumbersCommand}
101
+ */
102
+ listSMSSandboxPhoneNumbers(args: ListSMSSandboxPhoneNumbersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSMSSandboxPhoneNumbersCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ResourceNotFoundError | ThrottledError>;
103
+ /**
104
+ * @see {@link ListSubscriptionsCommand}
105
+ */
106
+ listSubscriptions(args: ListSubscriptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSubscriptionsCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
107
+ /**
108
+ * @see {@link ListSubscriptionsByTopicCommand}
109
+ */
110
+ listSubscriptionsByTopic(args: ListSubscriptionsByTopicCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSubscriptionsByTopicCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
111
+ /**
112
+ * @see {@link ListTagsForResourceCommand}
113
+ */
114
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | AuthorizationError | ConcurrentAccessError | InvalidParameterError | ResourceNotFoundError | TagPolicyError>;
115
+ /**
116
+ * @see {@link ListTopicsCommand}
117
+ */
118
+ listTopics(args: ListTopicsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTopicsCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError>;
119
+ /**
120
+ * @see {@link OptInPhoneNumberCommand}
121
+ */
122
+ optInPhoneNumber(args: OptInPhoneNumberCommandInput, options?: HttpHandlerOptions): Effect.Effect<OptInPhoneNumberCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError>;
123
+ /**
124
+ * @see {@link PublishCommand}
125
+ */
126
+ publish(args: PublishCommandInput, options?: HttpHandlerOptions): Effect.Effect<PublishCommandOutput, SdkError | AuthorizationError | EndpointDisabledError | InternalError | InvalidParameterError | InvalidParameterValueError | InvalidSecurityError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | NotFoundError | PlatformApplicationDisabledError | ValidationError>;
127
+ /**
128
+ * @see {@link PublishBatchCommand}
129
+ */
130
+ publishBatch(args: PublishBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<PublishBatchCommandOutput, SdkError | AuthorizationError | BatchEntryIdsNotDistinctError | BatchRequestTooLongError | EmptyBatchRequestError | EndpointDisabledError | InternalError | InvalidBatchEntryIdError | InvalidParameterError | InvalidParameterValueError | InvalidSecurityError | KMSAccessDeniedError | KMSDisabledError | KMSInvalidStateError | KMSNotFoundError | KMSOptInRequiredError | KMSThrottlingError | NotFoundError | PlatformApplicationDisabledError | TooManyEntriesInBatchRequestError | ValidationError>;
131
+ /**
132
+ * @see {@link PutDataProtectionPolicyCommand}
133
+ */
134
+ putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutDataProtectionPolicyCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError>;
135
+ /**
136
+ * @see {@link RemovePermissionCommand}
137
+ */
138
+ removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
139
+ /**
140
+ * @see {@link SetEndpointAttributesCommand}
141
+ */
142
+ setEndpointAttributes(args: SetEndpointAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetEndpointAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
143
+ /**
144
+ * @see {@link SetPlatformApplicationAttributesCommand}
145
+ */
146
+ setPlatformApplicationAttributes(args: SetPlatformApplicationAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetPlatformApplicationAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError>;
147
+ /**
148
+ * @see {@link SetSMSAttributesCommand}
149
+ */
150
+ setSMSAttributes(args: SetSMSAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetSMSAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError>;
151
+ /**
152
+ * @see {@link SetSubscriptionAttributesCommand}
153
+ */
154
+ setSubscriptionAttributes(args: SetSubscriptionAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetSubscriptionAttributesCommandOutput, SdkError | AuthorizationError | FilterPolicyLimitExceededError | InternalError | InvalidParameterError | NotFoundError | ReplayLimitExceededError>;
155
+ /**
156
+ * @see {@link SetTopicAttributesCommand}
157
+ */
158
+ setTopicAttributes(args: SetTopicAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetTopicAttributesCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError>;
159
+ /**
160
+ * @see {@link SubscribeCommand}
161
+ */
162
+ subscribe(args: SubscribeCommandInput, options?: HttpHandlerOptions): Effect.Effect<SubscribeCommandOutput, SdkError | AuthorizationError | FilterPolicyLimitExceededError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError | ReplayLimitExceededError | SubscriptionLimitExceededError>;
163
+ /**
164
+ * @see {@link TagResourceCommand}
165
+ */
166
+ tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | AuthorizationError | ConcurrentAccessError | InvalidParameterError | ResourceNotFoundError | StaleTagError | TagLimitExceededError | TagPolicyError>;
167
+ /**
168
+ * @see {@link UnsubscribeCommand}
169
+ */
170
+ unsubscribe(args: UnsubscribeCommandInput, options?: HttpHandlerOptions): Effect.Effect<UnsubscribeCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | InvalidSecurityError | NotFoundError>;
171
+ /**
172
+ * @see {@link UntagResourceCommand}
173
+ */
174
+ untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | AuthorizationError | ConcurrentAccessError | InvalidParameterError | ResourceNotFoundError | StaleTagError | TagLimitExceededError | TagPolicyError>;
175
+ /**
176
+ * @see {@link VerifySMSSandboxPhoneNumberCommand}
177
+ */
178
+ verifySMSSandboxPhoneNumber(args: VerifySMSSandboxPhoneNumberCommandInput, options?: HttpHandlerOptions): Effect.Effect<VerifySMSSandboxPhoneNumberCommandOutput, SdkError | AuthorizationError | InternalError | InvalidParameterError | ResourceNotFoundError | ThrottledError | VerificationError>;
179
+ }
180
+ /**
181
+ * @since 1.0.0
182
+ * @category constructors
183
+ */
184
+ export declare const makeSNSService: Effect.Effect<SNSService$, never, Instance.SNSClientInstance>;
185
+ declare const SNSService_base: import("effect/Context").TagClass<SNSService, "@effect-aws/client-sns/SNSService", SNSService$> & Effect.Tag.Proxy<SNSService, SNSService$> & {
186
+ use: <X>(body: (_: SNSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SNSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, SNSService> : Effect.Effect<X, never, SNSService>;
187
+ };
188
+ /**
189
+ * @since 1.0.0
190
+ * @category models
191
+ */
192
+ export declare class SNSService extends SNSService_base {
193
+ static readonly defaultLayer: Layer.Layer<SNSService, never, never>;
194
+ static readonly layer: (config: SNSService.Config) => Layer.Layer<SNSService, never, never>;
195
+ static readonly baseLayer: (evaluate: (defaultConfig: SNSClientConfig) => SNSClient) => Layer.Layer<SNSService, never, never>;
196
+ }
197
+ /**
198
+ * @since 1.0.0
199
+ */
200
+ export declare namespace SNSService {
201
+ /**
202
+ * @since 1.0.0
203
+ */
204
+ interface Config extends Omit<SNSClientConfig, "logger"> {
205
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
206
+ }
207
+ }
208
+ export {};
209
+ //# sourceMappingURL=SNSService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SNSService.d.ts","sourceRoot":"","sources":["../../src/SNSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,wCAAwC,EAC7C,KAAK,yCAAyC,EAE9C,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,uCAAuC,EAC5C,KAAK,wCAAwC,EAE7C,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,uCAAuC,EAC5C,KAAK,wCAAwC,EAE7C,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,4CAA4C,EACjD,KAAK,6CAA6C,EAElD,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,sCAAsC,EAC3C,KAAK,uCAAuC,EAE5C,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,8CAA8C,EACnD,KAAK,+CAA+C,EAEpD,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAE1C,KA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;AACH,qBAAa,UAAW,SAAQ,eAG7B;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,wCAA0E;IACtG,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,WAAW,MAAM,2CAI9C;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,eAAe,KAAK,SAAS,2CASrD;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;QAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,101 @@
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.SNSService = exports.makeSNSService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_sns_1 = require("@aws-sdk/client-sns");
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("./SNSClientInstance.js"));
35
+ const SNSServiceConfig = __importStar(require("./SNSServiceConfig.js"));
36
+ const commands = {
37
+ AddPermissionCommand: client_sns_1.AddPermissionCommand,
38
+ CheckIfPhoneNumberIsOptedOutCommand: client_sns_1.CheckIfPhoneNumberIsOptedOutCommand,
39
+ ConfirmSubscriptionCommand: client_sns_1.ConfirmSubscriptionCommand,
40
+ CreatePlatformApplicationCommand: client_sns_1.CreatePlatformApplicationCommand,
41
+ CreatePlatformEndpointCommand: client_sns_1.CreatePlatformEndpointCommand,
42
+ CreateSMSSandboxPhoneNumberCommand: client_sns_1.CreateSMSSandboxPhoneNumberCommand,
43
+ CreateTopicCommand: client_sns_1.CreateTopicCommand,
44
+ DeleteEndpointCommand: client_sns_1.DeleteEndpointCommand,
45
+ DeletePlatformApplicationCommand: client_sns_1.DeletePlatformApplicationCommand,
46
+ DeleteSMSSandboxPhoneNumberCommand: client_sns_1.DeleteSMSSandboxPhoneNumberCommand,
47
+ DeleteTopicCommand: client_sns_1.DeleteTopicCommand,
48
+ GetDataProtectionPolicyCommand: client_sns_1.GetDataProtectionPolicyCommand,
49
+ GetEndpointAttributesCommand: client_sns_1.GetEndpointAttributesCommand,
50
+ GetPlatformApplicationAttributesCommand: client_sns_1.GetPlatformApplicationAttributesCommand,
51
+ GetSMSAttributesCommand: client_sns_1.GetSMSAttributesCommand,
52
+ GetSMSSandboxAccountStatusCommand: client_sns_1.GetSMSSandboxAccountStatusCommand,
53
+ GetSubscriptionAttributesCommand: client_sns_1.GetSubscriptionAttributesCommand,
54
+ GetTopicAttributesCommand: client_sns_1.GetTopicAttributesCommand,
55
+ ListEndpointsByPlatformApplicationCommand: client_sns_1.ListEndpointsByPlatformApplicationCommand,
56
+ ListOriginationNumbersCommand: client_sns_1.ListOriginationNumbersCommand,
57
+ ListPhoneNumbersOptedOutCommand: client_sns_1.ListPhoneNumbersOptedOutCommand,
58
+ ListPlatformApplicationsCommand: client_sns_1.ListPlatformApplicationsCommand,
59
+ ListSMSSandboxPhoneNumbersCommand: client_sns_1.ListSMSSandboxPhoneNumbersCommand,
60
+ ListSubscriptionsCommand: client_sns_1.ListSubscriptionsCommand,
61
+ ListSubscriptionsByTopicCommand: client_sns_1.ListSubscriptionsByTopicCommand,
62
+ ListTagsForResourceCommand: client_sns_1.ListTagsForResourceCommand,
63
+ ListTopicsCommand: client_sns_1.ListTopicsCommand,
64
+ OptInPhoneNumberCommand: client_sns_1.OptInPhoneNumberCommand,
65
+ PublishCommand: client_sns_1.PublishCommand,
66
+ PublishBatchCommand: client_sns_1.PublishBatchCommand,
67
+ PutDataProtectionPolicyCommand: client_sns_1.PutDataProtectionPolicyCommand,
68
+ RemovePermissionCommand: client_sns_1.RemovePermissionCommand,
69
+ SetEndpointAttributesCommand: client_sns_1.SetEndpointAttributesCommand,
70
+ SetPlatformApplicationAttributesCommand: client_sns_1.SetPlatformApplicationAttributesCommand,
71
+ SetSMSAttributesCommand: client_sns_1.SetSMSAttributesCommand,
72
+ SetSubscriptionAttributesCommand: client_sns_1.SetSubscriptionAttributesCommand,
73
+ SetTopicAttributesCommand: client_sns_1.SetTopicAttributesCommand,
74
+ SubscribeCommand: client_sns_1.SubscribeCommand,
75
+ TagResourceCommand: client_sns_1.TagResourceCommand,
76
+ UnsubscribeCommand: client_sns_1.UnsubscribeCommand,
77
+ UntagResourceCommand: client_sns_1.UntagResourceCommand,
78
+ VerifySMSSandboxPhoneNumberCommand: client_sns_1.VerifySMSSandboxPhoneNumberCommand,
79
+ };
80
+ /**
81
+ * @since 1.0.0
82
+ * @category constructors
83
+ */
84
+ exports.makeSNSService = effect_1.Effect.gen(function* () {
85
+ const client = yield* Instance.SNSClientInstance;
86
+ return commons_1.Service.fromClientAndCommands(client, commands, {
87
+ errorTags: Errors_js_1.AllServiceErrors,
88
+ resolveClientConfig: SNSServiceConfig.toSNSClientConfig,
89
+ });
90
+ });
91
+ /**
92
+ * @since 1.0.0
93
+ * @category models
94
+ */
95
+ class SNSService extends effect_1.Effect.Tag("@effect-aws/client-sns/SNSService")() {
96
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeSNSService).pipe(effect_1.Layer.provide(Instance.layer));
97
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeSNSService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(SNSServiceConfig.setSNSServiceConfig(config)));
98
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeSNSService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.SNSClientInstance, effect_1.Effect.map(SNSServiceConfig.toSNSClientConfig, evaluate))));
99
+ }
100
+ exports.SNSService = SNSService;
101
+ //# sourceMappingURL=SNSService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SNSService.js","sourceRoot":"","sources":["../../src/SNSService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAiI6B;AAE7B,iDAA8C;AAC9C,mCAAuC;AAqCvC,2CAA+C;AAC/C,iEAAmD;AACnD,wEAA0D;AAE1D,MAAM,QAAQ,GAAG;IACf,oBAAoB,EAApB,iCAAoB;IACpB,mCAAmC,EAAnC,gDAAmC;IACnC,0BAA0B,EAA1B,uCAA0B;IAC1B,gCAAgC,EAAhC,6CAAgC;IAChC,6BAA6B,EAA7B,0CAA6B;IAC7B,kCAAkC,EAAlC,+CAAkC;IAClC,kBAAkB,EAAlB,+BAAkB;IAClB,qBAAqB,EAArB,kCAAqB;IACrB,gCAAgC,EAAhC,6CAAgC;IAChC,kCAAkC,EAAlC,+CAAkC;IAClC,kBAAkB,EAAlB,+BAAkB;IAClB,8BAA8B,EAA9B,2CAA8B;IAC9B,4BAA4B,EAA5B,yCAA4B;IAC5B,uCAAuC,EAAvC,oDAAuC;IACvC,uBAAuB,EAAvB,oCA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5E;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACtG,MAAM,CAAU,KAAK,GAAG,CAAC,MAAyB,EAAE,EAAE,CACpD,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CACrC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAC5D,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAuD,EACvD,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CACrC,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,iBAAiB,EAC1B,eAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC;;AApBN,gCAqBC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { SNSClientConfig } from "@aws-sdk/client-sns";
5
+ import { Effect, Layer } from "effect";
6
+ import type { SNSService } from "./SNSService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category sns service config
10
+ */
11
+ export declare const withSNSServiceConfig: {
12
+ (config: SNSService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
13
+ <A, E, R>(effect: Effect.Effect<A, E, R>, config: SNSService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category sns service config
18
+ */
19
+ export declare const setSNSServiceConfig: (config: SNSService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toSNSClientConfig: Effect.Effect<SNSClientConfig>;
25
+ //# sourceMappingURL=SNSServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SNSServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SNSServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAWlD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE;IACjC,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK9F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,WAAY,WAAW,MAAM,qCAAyD,CAAC;AAEvH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAQ3D,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toSNSClientConfig = exports.setSNSServiceConfig = exports.withSNSServiceConfig = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ const effect_1 = require("effect");
6
+ const Function_1 = require("effect/Function");
7
+ const GlobalValue_1 = require("effect/GlobalValue");
8
+ /**
9
+ * @since 1.0.0
10
+ * @category sns service config
11
+ */
12
+ const currentSNSServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-sns/currentSNSServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category sns service config
16
+ */
17
+ exports.withSNSServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentSNSServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category sns service config
21
+ */
22
+ const setSNSServiceConfig = (config) => effect_1.Layer.locallyScoped(currentSNSServiceConfig, config);
23
+ exports.setSNSServiceConfig = setSNSServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toSNSClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentSNSServiceConfig);
30
+ const logger = serviceLogger === true
31
+ ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.defaultServiceLogger)
32
+ : (serviceLogger ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.make(serviceLogger)) : undefined);
33
+ return { logger, ...config };
34
+ });
35
+ //# sourceMappingURL=SNSServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SNSServiceConfig.js","sourceRoot":"","sources":["../../src/SNSServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,uBAAuB,GAAG,IAAA,yBAAW,EACzC,gDAAgD,EAChD,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAoB,EAAE,CAAC,CACjD,CAAC;AAEF;;;GAGG;AACU,QAAA,oBAAoB,GAG7B,IAAA,eAAI,EACN,CA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