@effect-aws/client-api-gateway-v2 1.10.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 (53) hide show
  1. package/ApiGatewayV2ClientInstance/package.json +6 -0
  2. package/ApiGatewayV2Service/package.json +6 -0
  3. package/ApiGatewayV2ServiceConfig/package.json +6 -0
  4. package/Errors/package.json +6 -0
  5. package/LICENSE +19 -0
  6. package/README.md +58 -0
  7. package/dist/cjs/ApiGatewayV2ClientInstance.d.ts +24 -0
  8. package/dist/cjs/ApiGatewayV2ClientInstance.d.ts.map +1 -0
  9. package/dist/cjs/ApiGatewayV2ClientInstance.js +50 -0
  10. package/dist/cjs/ApiGatewayV2ClientInstance.js.map +1 -0
  11. package/dist/cjs/ApiGatewayV2Service.d.ts +330 -0
  12. package/dist/cjs/ApiGatewayV2Service.d.ts.map +1 -0
  13. package/dist/cjs/ApiGatewayV2Service.js +131 -0
  14. package/dist/cjs/ApiGatewayV2Service.js.map +1 -0
  15. package/dist/cjs/ApiGatewayV2ServiceConfig.d.ts +25 -0
  16. package/dist/cjs/ApiGatewayV2ServiceConfig.d.ts.map +1 -0
  17. package/dist/cjs/ApiGatewayV2ServiceConfig.js +35 -0
  18. package/dist/cjs/ApiGatewayV2ServiceConfig.js.map +1 -0
  19. package/dist/cjs/Errors.d.ts +12 -0
  20. package/dist/cjs/Errors.d.ts.map +1 -0
  21. package/dist/cjs/Errors.js +13 -0
  22. package/dist/cjs/Errors.js.map +1 -0
  23. package/dist/cjs/index.d.ts +39 -0
  24. package/dist/cjs/index.d.ts.map +1 -0
  25. package/dist/cjs/index.js +56 -0
  26. package/dist/cjs/index.js.map +1 -0
  27. package/dist/dts/ApiGatewayV2ClientInstance.d.ts +24 -0
  28. package/dist/dts/ApiGatewayV2ClientInstance.d.ts.map +1 -0
  29. package/dist/dts/ApiGatewayV2Service.d.ts +330 -0
  30. package/dist/dts/ApiGatewayV2Service.d.ts.map +1 -0
  31. package/dist/dts/ApiGatewayV2ServiceConfig.d.ts +25 -0
  32. package/dist/dts/ApiGatewayV2ServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/Errors.d.ts +12 -0
  34. package/dist/dts/Errors.d.ts.map +1 -0
  35. package/dist/dts/index.d.ts +39 -0
  36. package/dist/dts/index.d.ts.map +1 -0
  37. package/dist/esm/ApiGatewayV2ClientInstance.js +23 -0
  38. package/dist/esm/ApiGatewayV2ClientInstance.js.map +1 -0
  39. package/dist/esm/ApiGatewayV2Service.js +104 -0
  40. package/dist/esm/ApiGatewayV2Service.js.map +1 -0
  41. package/dist/esm/ApiGatewayV2ServiceConfig.js +31 -0
  42. package/dist/esm/ApiGatewayV2ServiceConfig.js.map +1 -0
  43. package/dist/esm/Errors.js +10 -0
  44. package/dist/esm/Errors.js.map +1 -0
  45. package/dist/esm/index.js +27 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/package.json +4 -0
  48. package/package.json +71 -0
  49. package/src/ApiGatewayV2ClientInstance.ts +33 -0
  50. package/src/ApiGatewayV2Service.ts +1170 -0
  51. package/src/ApiGatewayV2ServiceConfig.ts +52 -0
  52. package/src/Errors.ts +26 -0
  53. package/src/index.ts +44 -0
@@ -0,0 +1,131 @@
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.ApiGatewayV2Service = exports.makeApiGatewayV2Service = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_apigatewayv2_1 = require("@aws-sdk/client-apigatewayv2");
31
+ const commons_1 = require("@effect-aws/commons");
32
+ const effect_1 = require("effect");
33
+ const Instance = __importStar(require("./ApiGatewayV2ClientInstance.js"));
34
+ const ApiGatewayV2ServiceConfig = __importStar(require("./ApiGatewayV2ServiceConfig.js"));
35
+ const Errors_js_1 = require("./Errors.js");
36
+ const commands = {
37
+ CreateApiCommand: client_apigatewayv2_1.CreateApiCommand,
38
+ CreateApiMappingCommand: client_apigatewayv2_1.CreateApiMappingCommand,
39
+ CreateAuthorizerCommand: client_apigatewayv2_1.CreateAuthorizerCommand,
40
+ CreateDeploymentCommand: client_apigatewayv2_1.CreateDeploymentCommand,
41
+ CreateDomainNameCommand: client_apigatewayv2_1.CreateDomainNameCommand,
42
+ CreateIntegrationCommand: client_apigatewayv2_1.CreateIntegrationCommand,
43
+ CreateIntegrationResponseCommand: client_apigatewayv2_1.CreateIntegrationResponseCommand,
44
+ CreateModelCommand: client_apigatewayv2_1.CreateModelCommand,
45
+ CreateRouteCommand: client_apigatewayv2_1.CreateRouteCommand,
46
+ CreateRouteResponseCommand: client_apigatewayv2_1.CreateRouteResponseCommand,
47
+ CreateStageCommand: client_apigatewayv2_1.CreateStageCommand,
48
+ CreateVpcLinkCommand: client_apigatewayv2_1.CreateVpcLinkCommand,
49
+ DeleteAccessLogSettingsCommand: client_apigatewayv2_1.DeleteAccessLogSettingsCommand,
50
+ DeleteApiCommand: client_apigatewayv2_1.DeleteApiCommand,
51
+ DeleteApiMappingCommand: client_apigatewayv2_1.DeleteApiMappingCommand,
52
+ DeleteAuthorizerCommand: client_apigatewayv2_1.DeleteAuthorizerCommand,
53
+ DeleteCorsConfigurationCommand: client_apigatewayv2_1.DeleteCorsConfigurationCommand,
54
+ DeleteDeploymentCommand: client_apigatewayv2_1.DeleteDeploymentCommand,
55
+ DeleteDomainNameCommand: client_apigatewayv2_1.DeleteDomainNameCommand,
56
+ DeleteIntegrationCommand: client_apigatewayv2_1.DeleteIntegrationCommand,
57
+ DeleteIntegrationResponseCommand: client_apigatewayv2_1.DeleteIntegrationResponseCommand,
58
+ DeleteModelCommand: client_apigatewayv2_1.DeleteModelCommand,
59
+ DeleteRouteCommand: client_apigatewayv2_1.DeleteRouteCommand,
60
+ DeleteRouteRequestParameterCommand: client_apigatewayv2_1.DeleteRouteRequestParameterCommand,
61
+ DeleteRouteResponseCommand: client_apigatewayv2_1.DeleteRouteResponseCommand,
62
+ DeleteRouteSettingsCommand: client_apigatewayv2_1.DeleteRouteSettingsCommand,
63
+ DeleteStageCommand: client_apigatewayv2_1.DeleteStageCommand,
64
+ DeleteVpcLinkCommand: client_apigatewayv2_1.DeleteVpcLinkCommand,
65
+ ExportApiCommand: client_apigatewayv2_1.ExportApiCommand,
66
+ GetApiCommand: client_apigatewayv2_1.GetApiCommand,
67
+ GetApiMappingCommand: client_apigatewayv2_1.GetApiMappingCommand,
68
+ GetApiMappingsCommand: client_apigatewayv2_1.GetApiMappingsCommand,
69
+ GetApisCommand: client_apigatewayv2_1.GetApisCommand,
70
+ GetAuthorizerCommand: client_apigatewayv2_1.GetAuthorizerCommand,
71
+ GetAuthorizersCommand: client_apigatewayv2_1.GetAuthorizersCommand,
72
+ GetDeploymentCommand: client_apigatewayv2_1.GetDeploymentCommand,
73
+ GetDeploymentsCommand: client_apigatewayv2_1.GetDeploymentsCommand,
74
+ GetDomainNameCommand: client_apigatewayv2_1.GetDomainNameCommand,
75
+ GetDomainNamesCommand: client_apigatewayv2_1.GetDomainNamesCommand,
76
+ GetIntegrationCommand: client_apigatewayv2_1.GetIntegrationCommand,
77
+ GetIntegrationResponseCommand: client_apigatewayv2_1.GetIntegrationResponseCommand,
78
+ GetIntegrationResponsesCommand: client_apigatewayv2_1.GetIntegrationResponsesCommand,
79
+ GetIntegrationsCommand: client_apigatewayv2_1.GetIntegrationsCommand,
80
+ GetModelCommand: client_apigatewayv2_1.GetModelCommand,
81
+ GetModelTemplateCommand: client_apigatewayv2_1.GetModelTemplateCommand,
82
+ GetModelsCommand: client_apigatewayv2_1.GetModelsCommand,
83
+ GetRouteCommand: client_apigatewayv2_1.GetRouteCommand,
84
+ GetRouteResponseCommand: client_apigatewayv2_1.GetRouteResponseCommand,
85
+ GetRouteResponsesCommand: client_apigatewayv2_1.GetRouteResponsesCommand,
86
+ GetRoutesCommand: client_apigatewayv2_1.GetRoutesCommand,
87
+ GetStageCommand: client_apigatewayv2_1.GetStageCommand,
88
+ GetStagesCommand: client_apigatewayv2_1.GetStagesCommand,
89
+ GetTagsCommand: client_apigatewayv2_1.GetTagsCommand,
90
+ GetVpcLinkCommand: client_apigatewayv2_1.GetVpcLinkCommand,
91
+ GetVpcLinksCommand: client_apigatewayv2_1.GetVpcLinksCommand,
92
+ ImportApiCommand: client_apigatewayv2_1.ImportApiCommand,
93
+ ReimportApiCommand: client_apigatewayv2_1.ReimportApiCommand,
94
+ ResetAuthorizersCacheCommand: client_apigatewayv2_1.ResetAuthorizersCacheCommand,
95
+ TagResourceCommand: client_apigatewayv2_1.TagResourceCommand,
96
+ UntagResourceCommand: client_apigatewayv2_1.UntagResourceCommand,
97
+ UpdateApiCommand: client_apigatewayv2_1.UpdateApiCommand,
98
+ UpdateApiMappingCommand: client_apigatewayv2_1.UpdateApiMappingCommand,
99
+ UpdateAuthorizerCommand: client_apigatewayv2_1.UpdateAuthorizerCommand,
100
+ UpdateDeploymentCommand: client_apigatewayv2_1.UpdateDeploymentCommand,
101
+ UpdateDomainNameCommand: client_apigatewayv2_1.UpdateDomainNameCommand,
102
+ UpdateIntegrationCommand: client_apigatewayv2_1.UpdateIntegrationCommand,
103
+ UpdateIntegrationResponseCommand: client_apigatewayv2_1.UpdateIntegrationResponseCommand,
104
+ UpdateModelCommand: client_apigatewayv2_1.UpdateModelCommand,
105
+ UpdateRouteCommand: client_apigatewayv2_1.UpdateRouteCommand,
106
+ UpdateRouteResponseCommand: client_apigatewayv2_1.UpdateRouteResponseCommand,
107
+ UpdateStageCommand: client_apigatewayv2_1.UpdateStageCommand,
108
+ UpdateVpcLinkCommand: client_apigatewayv2_1.UpdateVpcLinkCommand,
109
+ };
110
+ /**
111
+ * @since 1.0.0
112
+ * @category constructors
113
+ */
114
+ exports.makeApiGatewayV2Service = effect_1.Effect.gen(function* () {
115
+ const client = yield* Instance.ApiGatewayV2ClientInstance;
116
+ return yield* commons_1.Service.fromClientAndCommands(client, commands, {
117
+ errorTags: Errors_js_1.AllServiceErrors,
118
+ resolveClientConfig: ApiGatewayV2ServiceConfig.toApiGatewayV2ClientConfig,
119
+ });
120
+ });
121
+ /**
122
+ * @since 1.0.0
123
+ * @category models
124
+ */
125
+ class ApiGatewayV2Service extends effect_1.Effect.Tag("@effect-aws/client-api-gateway-v2/ApiGatewayV2Service")() {
126
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeApiGatewayV2Service).pipe(effect_1.Layer.provide(Instance.layer));
127
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeApiGatewayV2Service).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(ApiGatewayV2ServiceConfig.setApiGatewayV2ServiceConfig(config)));
128
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeApiGatewayV2Service).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.ApiGatewayV2ClientInstance, effect_1.Effect.map(ApiGatewayV2ServiceConfig.toApiGatewayV2ClientConfig, evaluate))));
129
+ }
130
+ exports.ApiGatewayV2Service = ApiGatewayV2Service;
131
+ //# sourceMappingURL=ApiGatewayV2Service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayV2Service.js","sourceRoot":"","sources":["../../src/ApiGatewayV2Service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,sEA2NsC;AAEtC,iDAA8C;AAE9C,mCAAuC;AACvC,0EAA4D;AAC5D,0FAA4E;AAQ5E,2CAA+C;AAE/C,MAAM,QAAQ,GAAG;IACf,gBAAgB,EAAhB,sCAAgB;IAChB,uBAAuB,EAAvB,6CAAuB;IACvB,uBAAuB,EAAvB,6CAAuB;IACvB,uBAAuB,EAAvB,6CAAuB;IACvB,uBAAuB,EAAvB,6CAAuB;IACvB,wBAAwB,EAAxB,8CAAwB;IACxB,gCAAgC,EAAhC,sDAAgC;IAChC,kBAAkB,EAAlB,wCAAkB;IAClB,kBAAkB,EAAlB,wCAAkB;IAClB,0BAA0B,EAA1B,gDAA0B;IAC1B,kBAAkB,EAAlB,wCAAkB;IAClB,oBAAoB,EAApB,0CAAoB;IACpB,8BAA8B,EAA9B,oDAA8B;IAC9B,gBAAgB,EAAhB,sCAAgB;IAChB,uBAAuB,EAAvB,6CAAuB;IACvB,uBAAuB,EAAvB,6CAAuB;IACvB,8BAA8B,EAA9B,oDAA8B;IAC9B,uBAAuB,EAAvB,6CAAuB;IACvB,uBAAuB,EAAvB,6CAAuB;IACvB,wBAAwB,EAAxB,8CAAwB;IACxB,gCAAgC,EAAhC,sDAAgC;IAChC,kBAAkB,EAAlB,wCAAkB;IAClB,kBAAkB,EAAlB,wCAAkB;IAClB,kCAAkC,EAAlC,wDAAkC;IAClC,0BAA0B,EAA1B,gDAA0B;IAC1B,0BAA0B,EAA1B,gDAA0B;IAC1B,kBAAkB,EAAlB,wCAAkB;IAClB,oBAAoB,EAApB,0CAAoB;IACpB,gBAAgB,EAAhB,sCAAgB;IAChB,aAAa,EAAb,mCAAa;IACb,oBAAoB,EAApB,0CAAoB;IACpB,qBAAqB,EAArB,2C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5
+ import { Effect, Layer } from "effect";
6
+ import type { ApiGatewayV2Service } from "./ApiGatewayV2Service.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category api-gateway-v2 service config
10
+ */
11
+ export declare const withApiGatewayV2ServiceConfig: {
12
+ (config: ApiGatewayV2Service.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: ApiGatewayV2Service.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category api-gateway-v2 service config
18
+ */
19
+ export declare const setApiGatewayV2ServiceConfig: (config: ApiGatewayV2Service.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toApiGatewayV2ClientConfig: Effect.Effect<ApiGatewayV2ClientConfig>;
25
+ //# sourceMappingURL=ApiGatewayV2ServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayV2ServiceConfig.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayV2ServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAWpE;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE;IAC1C,CAAC,MAAM,EAAE,mBAAmB,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;IAC1G,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKvG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,WAAY,oBAAoB,MAAM,qCAChB,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAQ7E,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toApiGatewayV2ClientConfig = exports.setApiGatewayV2ServiceConfig = exports.withApiGatewayV2ServiceConfig = 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 api-gateway-v2 service config
11
+ */
12
+ const currentApiGatewayV2ServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-api-gateway-v2/currentApiGatewayV2ServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category api-gateway-v2 service config
16
+ */
17
+ exports.withApiGatewayV2ServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentApiGatewayV2ServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category api-gateway-v2 service config
21
+ */
22
+ const setApiGatewayV2ServiceConfig = (config) => effect_1.Layer.locallyScoped(currentApiGatewayV2ServiceConfig, config);
23
+ exports.setApiGatewayV2ServiceConfig = setApiGatewayV2ServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toApiGatewayV2ClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentApiGatewayV2ServiceConfig);
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=ApiGatewayV2ServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayV2ServiceConfig.js","sourceRoot":"","sources":["../../src/ApiGatewayV2ServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,gCAAgC,GAAG,IAAA,yBAAW,EAClD,oEAAoE,EACpE,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAA6B,EAAE,CAAC,CAC1D,CAAC;AAEF;;;GAGG;AACU,QAAA,6BAA6B,GAGtC,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAkC,EAA0B,EAAE,CACtG,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,gCAAgC,EAAE,MAAM,CAAC,CACnE,CAAC;AAEF;;;GAGG;AACI,MAAM,4BAA4B,GAAG,CAAC,MAAkC,EAAE,EAAE,CACjF,cAAK,CAAC,aAAa,CAAC,gCAAgC,EAAE,MAAM,CAAC,CAAC;AADnD,QAAA,4BAA4B,gCACuB;AAEhE;;;GAGG;AACU,QAAA,0BAA0B,GAA4C,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACrG,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAEnG,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { AccessDeniedException, BadRequestException, ConflictException, NotFoundException, TooManyRequestsException } from "@aws-sdk/client-apigatewayv2";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["AccessDeniedException", "BadRequestException", "ConflictException", "NotFoundException", "TooManyRequestsException"];
5
+ export type AccessDeniedError = TaggedException<AccessDeniedException>;
6
+ export type BadRequestError = TaggedException<BadRequestException>;
7
+ export type ConflictError = TaggedException<ConflictException>;
8
+ export type NotFoundError = TaggedException<NotFoundException>;
9
+ export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
10
+ export type SdkError = CommonSdkError;
11
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
12
+ //# 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,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,iIAMnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAE7E,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,13 @@
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
+ "AccessDeniedException",
7
+ "BadRequestException",
8
+ "ConflictException",
9
+ "NotFoundException",
10
+ "TooManyRequestsException",
11
+ ];
12
+ exports.SdkError = commons_1.SdkError;
13
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAQA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,qBAAqB;IACrB,mBAAmB;IACnB,mBAAmB;IACnB,0BAA0B;CAClB,CAAC;AASE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { ApiGatewayV2Service } from "./ApiGatewayV2Service.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as ApiGatewayV2ClientInstance from "./ApiGatewayV2ClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as ApiGatewayV2ServiceConfig from "./ApiGatewayV2ServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./ApiGatewayV2Service.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias ApiGatewayV2Service
25
+ */
26
+ export declare namespace ApiGatewayV2 {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias ApiGatewayV2Service.Config
30
+ */
31
+ type Config = ApiGatewayV2Service.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias ApiGatewayV2Service
37
+ */
38
+ export declare const ApiGatewayV2: typeof ApiGatewayV2Service;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,0BAA0B,MAAM,iCAAiC,CAAC;AAE9E;;GAEG;AACH,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAE5E;;GAEG;AACH,cAAc,0BAA0B,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC;;;OAGG;IACH,KAAY,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAC;CACjD;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,4BAAsB,CAAC"}
@@ -0,0 +1,56 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ApiGatewayV2 = exports.ApiGatewayV2ServiceConfig = exports.ApiGatewayV2ClientInstance = void 0;
30
+ /**
31
+ * @since 1.0.0
32
+ */
33
+ const ApiGatewayV2Service_js_1 = require("./ApiGatewayV2Service.js");
34
+ /**
35
+ * @since 1.0.0
36
+ */
37
+ __exportStar(require("./Errors.js"), exports);
38
+ /**
39
+ * @since 1.0.0
40
+ */
41
+ exports.ApiGatewayV2ClientInstance = __importStar(require("./ApiGatewayV2ClientInstance.js"));
42
+ /**
43
+ * @since 1.0.0
44
+ */
45
+ exports.ApiGatewayV2ServiceConfig = __importStar(require("./ApiGatewayV2ServiceConfig.js"));
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ __exportStar(require("./ApiGatewayV2Service.js"), exports);
50
+ /**
51
+ * @since 1.0.0
52
+ * @category exports
53
+ * @alias ApiGatewayV2Service
54
+ */
55
+ exports.ApiGatewayV2 = ApiGatewayV2Service_js_1.ApiGatewayV2Service;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,qEAA+D;AAE/D;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,8FAA8E;AAE9E;;GAEG;AACH,4FAA4E;AAE5E;;GAEG;AACH,2DAAyC;AAezC;;;;GAIG;AACU,QAAA,YAAY,GAAG,4CAAmB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { ApiGatewayV2Client } from "@aws-sdk/client-apigatewayv2";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const ApiGatewayV2ClientInstance_base: Context.TagClass<ApiGatewayV2ClientInstance, "@effect-aws/client-api-gateway-v2/ApiGatewayV2ClientInstance", ApiGatewayV2Client>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class ApiGatewayV2ClientInstance extends ApiGatewayV2ClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<ApiGatewayV2Client, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<ApiGatewayV2ClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=ApiGatewayV2ClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayV2ClientInstance.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayV2ClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,+BAEG;CAAG;AAEtD;;;GAGG;AACH,eAAO,MAAM,IAAI,wEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,uDAAiD,CAAC"}