@effect-aws/client-api-gateway-management-api 1.5.0 → 1.9.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 (70) hide show
  1. package/ApiGatewayManagementApiClientInstance/package.json +6 -0
  2. package/ApiGatewayManagementApiService/package.json +6 -0
  3. package/ApiGatewayManagementApiServiceConfig/package.json +6 -0
  4. package/Errors/package.json +6 -0
  5. package/LICENSE +1 -1
  6. package/dist/cjs/ApiGatewayManagementApiClientInstance.d.ts +24 -0
  7. package/dist/cjs/ApiGatewayManagementApiClientInstance.d.ts.map +1 -0
  8. package/dist/cjs/ApiGatewayManagementApiClientInstance.js +50 -0
  9. package/dist/cjs/ApiGatewayManagementApiClientInstance.js.map +1 -0
  10. package/{lib → dist/cjs}/ApiGatewayManagementApiService.d.ts +15 -37
  11. package/dist/cjs/ApiGatewayManagementApiService.d.ts.map +1 -0
  12. package/dist/cjs/ApiGatewayManagementApiService.js +59 -0
  13. package/dist/cjs/ApiGatewayManagementApiService.js.map +1 -0
  14. package/dist/cjs/ApiGatewayManagementApiServiceConfig.d.ts +25 -0
  15. package/dist/cjs/ApiGatewayManagementApiServiceConfig.d.ts.map +1 -0
  16. package/dist/cjs/ApiGatewayManagementApiServiceConfig.js +35 -0
  17. package/dist/cjs/ApiGatewayManagementApiServiceConfig.js.map +1 -0
  18. package/dist/cjs/Errors.d.ts +11 -0
  19. package/dist/cjs/Errors.d.ts.map +1 -0
  20. package/dist/cjs/Errors.js +12 -0
  21. package/dist/cjs/Errors.js.map +1 -0
  22. package/dist/cjs/index.d.ts +39 -0
  23. package/dist/cjs/index.d.ts.map +1 -0
  24. package/dist/cjs/index.js +56 -0
  25. package/dist/cjs/index.js.map +1 -0
  26. package/dist/dts/ApiGatewayManagementApiClientInstance.d.ts +24 -0
  27. package/dist/dts/ApiGatewayManagementApiClientInstance.d.ts.map +1 -0
  28. package/dist/dts/ApiGatewayManagementApiService.d.ts +58 -0
  29. package/dist/dts/ApiGatewayManagementApiService.d.ts.map +1 -0
  30. package/dist/dts/ApiGatewayManagementApiServiceConfig.d.ts +25 -0
  31. package/dist/dts/ApiGatewayManagementApiServiceConfig.d.ts.map +1 -0
  32. package/dist/dts/Errors.d.ts +11 -0
  33. package/dist/dts/Errors.d.ts.map +1 -0
  34. package/dist/dts/index.d.ts +39 -0
  35. package/dist/dts/index.d.ts.map +1 -0
  36. package/dist/esm/ApiGatewayManagementApiClientInstance.js +23 -0
  37. package/dist/esm/ApiGatewayManagementApiClientInstance.js.map +1 -0
  38. package/dist/esm/ApiGatewayManagementApiService.js +32 -0
  39. package/dist/esm/ApiGatewayManagementApiService.js.map +1 -0
  40. package/dist/esm/ApiGatewayManagementApiServiceConfig.js +31 -0
  41. package/dist/esm/ApiGatewayManagementApiServiceConfig.js.map +1 -0
  42. package/dist/esm/Errors.js +9 -0
  43. package/dist/esm/Errors.js.map +1 -0
  44. package/dist/esm/index.js +27 -0
  45. package/dist/esm/index.js.map +1 -0
  46. package/dist/esm/package.json +4 -0
  47. package/package.json +60 -43
  48. package/src/ApiGatewayManagementApiClientInstance.ts +33 -0
  49. package/src/ApiGatewayManagementApiService.ts +119 -0
  50. package/src/ApiGatewayManagementApiServiceConfig.ts +54 -0
  51. package/src/Errors.ts +23 -0
  52. package/src/index.ts +44 -0
  53. package/CHANGELOG.md +0 -109
  54. package/docgen.json +0 -8
  55. package/lib/ApiGatewayManagementApiClientInstance.d.ts +0 -31
  56. package/lib/ApiGatewayManagementApiClientInstance.js +0 -57
  57. package/lib/ApiGatewayManagementApiClientInstanceConfig.d.ts +0 -23
  58. package/lib/ApiGatewayManagementApiClientInstanceConfig.js +0 -44
  59. package/lib/ApiGatewayManagementApiService.js +0 -91
  60. package/lib/Errors.d.ts +0 -16
  61. package/lib/Errors.js +0 -12
  62. package/lib/esm/ApiGatewayManagementApiClientInstance.js +0 -30
  63. package/lib/esm/ApiGatewayManagementApiClientInstanceConfig.js +0 -40
  64. package/lib/esm/ApiGatewayManagementApiService.js +0 -87
  65. package/lib/esm/Errors.js +0 -9
  66. package/lib/esm/index.js +0 -5
  67. package/lib/index.d.ts +0 -4
  68. package/lib/index.js +0 -21
  69. package/project.json +0 -77
  70. package/vitest.config.ts +0 -3
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/ApiGatewayManagementApiClientInstance.js",
3
+ "module": "../dist/esm/ApiGatewayManagementApiClientInstance.js",
4
+ "types": "../dist/dts/ApiGatewayManagementApiClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/ApiGatewayManagementApiService.js",
3
+ "module": "../dist/esm/ApiGatewayManagementApiService.js",
4
+ "types": "../dist/dts/ApiGatewayManagementApiService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/ApiGatewayManagementApiServiceConfig.js",
3
+ "module": "../dist/esm/ApiGatewayManagementApiServiceConfig.js",
4
+ "types": "../dist/dts/ApiGatewayManagementApiServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -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
+ }
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2024 Victor Korzunin
1
+ Copyright (c) 2025 Victor Korzunin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { ApiGatewayManagementApiClient } from "@aws-sdk/client-apigatewaymanagementapi";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const ApiGatewayManagementApiClientInstance_base: Context.TagClass<ApiGatewayManagementApiClientInstance, "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiClientInstance", ApiGatewayManagementApiClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class ApiGatewayManagementApiClientInstance extends ApiGatewayManagementApiClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<ApiGatewayManagementApiClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<ApiGatewayManagementApiClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=ApiGatewayManagementApiClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayManagementApiClientInstance.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,qCAAsC,SAAQ,0CAEc;CAAG;AAE5E;;;GAGG;AACH,eAAO,MAAM,IAAI,mFAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,kEAA4D,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.ApiGatewayManagementApiClientInstance = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_apigatewaymanagementapi_1 = require("@aws-sdk/client-apigatewaymanagementapi");
31
+ const effect_1 = require("effect");
32
+ const ApiGatewayManagementApiServiceConfig = __importStar(require("./ApiGatewayManagementApiServiceConfig.js"));
33
+ /**
34
+ * @since 1.0.0
35
+ * @category tags
36
+ */
37
+ class ApiGatewayManagementApiClientInstance extends effect_1.Context.Tag("@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiClientInstance")() {
38
+ }
39
+ exports.ApiGatewayManagementApiClientInstance = ApiGatewayManagementApiClientInstance;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category constructors
43
+ */
44
+ exports.make = effect_1.Effect.flatMap(ApiGatewayManagementApiServiceConfig.toApiGatewayManagementApiClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_apigatewaymanagementapi_1.ApiGatewayManagementApiClient(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(ApiGatewayManagementApiClientInstance, exports.make);
50
+ //# sourceMappingURL=ApiGatewayManagementApiClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayManagementApiClientInstance.js","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4FAAwF;AACxF,mCAAgD;AAChD,gHAAkG;AAElG;;;GAGG;AACH,MAAa,qCAAsC,SAAQ,gBAAO,CAAC,GAAG,CACpE,qFAAqF,CACtF,EAAwE;CAAG;AAF5E,sFAE4E;AAE5E;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,oCAAoC,CAAC,qCAAqC,EAC1E,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,8DAA6B,CAAC,MAAM,CAAC,CAAC,EAC5D,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,qCAAqC,EAAE,YAAI,CAAC,CAAC"}
@@ -2,20 +2,10 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
  import { type ApiGatewayManagementApiClient, type ApiGatewayManagementApiClientConfig, type DeleteConnectionCommandInput, type DeleteConnectionCommandOutput, type GetConnectionCommandInput, type GetConnectionCommandOutput, type PostToConnectionCommandInput, type PostToConnectionCommandOutput } from "@aws-sdk/client-apigatewaymanagementapi";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
5
6
  import { Effect, Layer } from "effect";
6
- import { ApiGatewayManagementApiClientInstance } from "./ApiGatewayManagementApiClientInstance";
7
- import { ApiGatewayManagementApiClientInstanceConfig } from "./ApiGatewayManagementApiClientInstanceConfig";
8
- import { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError, SdkError } from "./Errors";
9
- /**
10
- * @since 1.0.0
11
- */
12
- export interface HttpHandlerOptions {
13
- /**
14
- * The maximum time in milliseconds that the connection phase of a request
15
- * may take before the connection attempt is abandoned.
16
- */
17
- requestTimeout?: number;
18
- }
7
+ import * as Instance from "./ApiGatewayManagementApiClientInstance.js";
8
+ import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError } from "./Errors.js";
19
9
  interface ApiGatewayManagementApiService$ {
20
10
  readonly _: unique symbol;
21
11
  /**
@@ -35,14 +25,14 @@ interface ApiGatewayManagementApiService$ {
35
25
  * @since 1.0.0
36
26
  * @category constructors
37
27
  */
38
- export declare const makeApiGatewayManagementApiService: Effect.Effect<ApiGatewayManagementApiService$, never, ApiGatewayManagementApiClientInstance>;
28
+ export declare const makeApiGatewayManagementApiService: Effect.Effect<ApiGatewayManagementApiService$, never, Instance.ApiGatewayManagementApiClientInstance>;
39
29
  declare const ApiGatewayManagementApiService_base: import("effect/Context").TagClass<ApiGatewayManagementApiService, "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiService", ApiGatewayManagementApiService$> & {
40
30
  readonly _: Effect.Effect<ApiGatewayManagementApiService$["_"], never, ApiGatewayManagementApiService>;
41
31
  deleteConnection: (args: DeleteConnectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteConnectionCommandOutput, ForbiddenError | GoneError | LimitExceededError | SdkError, ApiGatewayManagementApiService>;
42
32
  getConnection: (args: GetConnectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetConnectionCommandOutput, ForbiddenError | GoneError | LimitExceededError | SdkError, ApiGatewayManagementApiService>;
43
33
  postToConnection: (args: PostToConnectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PostToConnectionCommandOutput, ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError | SdkError, ApiGatewayManagementApiService>;
44
34
  } & {
45
- use: <X>(body: (_: ApiGatewayManagementApiService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | ApiGatewayManagementApiService> : Effect.Effect<X, never, ApiGatewayManagementApiService>;
35
+ use: <X>(body: (_: ApiGatewayManagementApiService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, ApiGatewayManagementApiService | R> : Effect.Effect<X, never, ApiGatewayManagementApiService>;
46
36
  };
47
37
  /**
48
38
  * @since 1.0.0
@@ -50,31 +40,19 @@ declare const ApiGatewayManagementApiService_base: import("effect/Context").TagC
50
40
  */
51
41
  export declare class ApiGatewayManagementApiService extends ApiGatewayManagementApiService_base {
52
42
  static readonly defaultLayer: Layer.Layer<ApiGatewayManagementApiService, never, never>;
53
- static readonly layer: (config: ApiGatewayManagementApiClientConfig) => Layer.Layer<ApiGatewayManagementApiService, never, never>;
43
+ static readonly layer: (config: ApiGatewayManagementApiService.Config) => Layer.Layer<ApiGatewayManagementApiService, never, never>;
54
44
  static readonly baseLayer: (evaluate: (defaultConfig: ApiGatewayManagementApiClientConfig) => ApiGatewayManagementApiClient) => Layer.Layer<ApiGatewayManagementApiService, never, never>;
55
45
  }
56
46
  /**
57
47
  * @since 1.0.0
58
- * @category models
59
- * @alias ApiGatewayManagementApiService
60
- */
61
- export declare const ApiGatewayManagementApi: typeof ApiGatewayManagementApiService;
62
- /**
63
- * @since 1.0.0
64
- * @category layers
65
- * @deprecated use ApiGatewayManagementApi.baseLayer instead
66
48
  */
67
- export declare const BaseApiGatewayManagementApiServiceLayer: Layer.Layer<ApiGatewayManagementApiService, never, ApiGatewayManagementApiClientInstance>;
68
- /**
69
- * @since 1.0.0
70
- * @category layers
71
- * @deprecated use ApiGatewayManagementApi.layer instead
72
- */
73
- export declare const ApiGatewayManagementApiServiceLayer: Layer.Layer<ApiGatewayManagementApiService, never, ApiGatewayManagementApiClientInstanceConfig>;
74
- /**
75
- * @since 1.0.0
76
- * @category layers
77
- * @deprecated use ApiGatewayManagementApi.defaultLayer instead
78
- */
79
- export declare const DefaultApiGatewayManagementApiServiceLayer: Layer.Layer<ApiGatewayManagementApiService, never, never>;
49
+ export declare namespace ApiGatewayManagementApiService {
50
+ /**
51
+ * @since 1.0.0
52
+ */
53
+ interface Config extends Omit<ApiGatewayManagementApiClientConfig, "logger"> {
54
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
55
+ }
56
+ }
80
57
  export {};
58
+ //# sourceMappingURL=ApiGatewayManagementApiService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayManagementApiService.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EAExC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEvF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,4CAA4C,CAAC;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AASvG,UAAU,+BAA+B;IACvC,QAAQ,CAAC,CAAC,EAAE,OAAO,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,CACd,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,6BAA6B,EAC7B,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,CAC3D,CAAC;IAEF;;OAEG;IACH,aAAa,CACX,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,0BAA0B,EAC1B,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,CAC3D,CAAC;IAEF;;OAEG;IACH,gBAAgB,CACd,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,6BAA6B,EAC7B,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,GAAG,oBAAoB,CAClF,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,kCAAkC,uGAI7C,CAAC;;;;;;;;;AAEH;;;GAGG;AACH,qBAAa,8BACX,SAAQ,mCAGL;IAEH,MAAM,CAAC,QAAQ,CAAC,YAAY,4DAE1B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,+BAA+B,MAAM,+DAIlE;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,mCAAmC,KAAK,6BAA6B,+DAS7F;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,8BAA8B,CAAC;IACtD;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,mCAAmC,EAAE,QAAQ,CAAC;QACjF,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,59 @@
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.ApiGatewayManagementApiService = exports.makeApiGatewayManagementApiService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_apigatewaymanagementapi_1 = require("@aws-sdk/client-apigatewaymanagementapi");
31
+ const commons_1 = require("@effect-aws/commons");
32
+ const effect_1 = require("effect");
33
+ const Instance = __importStar(require("./ApiGatewayManagementApiClientInstance.js"));
34
+ const ApiGatewayManagementApiServiceConfig = __importStar(require("./ApiGatewayManagementApiServiceConfig.js"));
35
+ const Errors_js_1 = require("./Errors.js");
36
+ const commands = {
37
+ DeleteConnectionCommand: client_apigatewaymanagementapi_1.DeleteConnectionCommand,
38
+ GetConnectionCommand: client_apigatewaymanagementapi_1.GetConnectionCommand,
39
+ PostToConnectionCommand: client_apigatewaymanagementapi_1.PostToConnectionCommand,
40
+ };
41
+ /**
42
+ * @since 1.0.0
43
+ * @category constructors
44
+ */
45
+ exports.makeApiGatewayManagementApiService = effect_1.Effect.gen(function* () {
46
+ const client = yield* Instance.ApiGatewayManagementApiClientInstance;
47
+ return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
48
+ });
49
+ /**
50
+ * @since 1.0.0
51
+ * @category models
52
+ */
53
+ class ApiGatewayManagementApiService extends effect_1.Effect.Tag("@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiService")() {
54
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeApiGatewayManagementApiService).pipe(effect_1.Layer.provide(Instance.layer));
55
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeApiGatewayManagementApiService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(ApiGatewayManagementApiServiceConfig.setApiGatewayManagementApiServiceConfig(config)));
56
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeApiGatewayManagementApiService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.ApiGatewayManagementApiClientInstance, effect_1.Effect.map(ApiGatewayManagementApiServiceConfig.toApiGatewayManagementApiClientConfig, evaluate))));
57
+ }
58
+ exports.ApiGatewayManagementApiService = ApiGatewayManagementApiService;
59
+ //# sourceMappingURL=ApiGatewayManagementApiService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayManagementApiService.js","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4FAYiD;AAEjD,iDAA8C;AAC9C,mCAAuC;AACvC,qFAAuE;AACvE,gHAAkG;AAElG,2CAA+C;AAE/C,MAAM,QAAQ,GAAG;IACf,uBAAuB,EAAvB,wDAAuB;IACvB,oBAAoB,EAApB,qDAAoB;IACpB,uBAAuB,EAAvB,wDAAuB;CACxB,CAAC;AAuCF;;;GAGG;AACU,QAAA,kCAAkC,GAAG,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACpE,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAErE,OAAO,iBAAO,CAAC,qBAAqB,CAAkC,MAAM,EAAE,QAAQ,EAAE,4BAAgB,CAAC,CAAC;AAC5G,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,8BACX,SAAQ,eAAM,CAAC,GAAG,CAAC,8EAA8E,CAAC,EAG/F;IAEH,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0CAAkC,CAAC,CAAC,IAAI,CACxF,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAC9B,CAAC;IACF,MAAM,CAAU,KAAK,GAAG,CAAC,MAA6C,EAAE,EAAE,CACxE,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0CAAkC,CAAC,CAAC,IAAI,CACzD,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,oCAAoC,CAAC,uCAAuC,CAAC,MAAM,CAAC,CAAC,CACpG,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAA+F,EAC/F,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0CAAkC,CAAC,CAAC,IAAI,CACzD,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,qCAAqC,EAC9C,eAAM,CAAC,GAAG,CAAC,oCAAoC,CAAC,qCAAqC,EAAE,QAAQ,CAAC,CACjG,CACF,CACF,CAAC;;AAxBN,wEAyBC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { ApiGatewayManagementApiClientConfig } from "@aws-sdk/client-apigatewaymanagementapi";
5
+ import { Effect, Layer } from "effect";
6
+ import type { ApiGatewayManagementApiService } from "./ApiGatewayManagementApiService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category api-gateway-management-api service config
10
+ */
11
+ export declare const withApiGatewayManagementApiServiceConfig: {
12
+ (config: ApiGatewayManagementApiService.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: ApiGatewayManagementApiService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category api-gateway-management-api service config
18
+ */
19
+ export declare const setApiGatewayManagementApiServiceConfig: (config: ApiGatewayManagementApiService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toApiGatewayManagementApiClientConfig: Effect.Effect<ApiGatewayManagementApiClientConfig>;
25
+ //# sourceMappingURL=ApiGatewayManagementApiServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayManagementApiServiceConfig.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,yCAAyC,CAAC;AAEnG,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAW1F;;;GAGG;AACH,eAAO,MAAM,wCAAwC,EAAE;IACrD,CAAC,MAAM,EAAE,8BAA8B,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;IACrH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,8BAA8B,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKlH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uCAAuC,WAAY,+BAA+B,MAAM,qCAC3B,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAmC,CAUpG,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toApiGatewayManagementApiClientConfig = exports.setApiGatewayManagementApiServiceConfig = exports.withApiGatewayManagementApiServiceConfig = 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-management-api service config
11
+ */
12
+ const currentApiGatewayManagementApiServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-api-gateway-management-api/currentApiGatewayManagementApiServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category api-gateway-management-api service config
16
+ */
17
+ exports.withApiGatewayManagementApiServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentApiGatewayManagementApiServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category api-gateway-management-api service config
21
+ */
22
+ const setApiGatewayManagementApiServiceConfig = (config) => effect_1.Layer.locallyScoped(currentApiGatewayManagementApiServiceConfig, config);
23
+ exports.setApiGatewayManagementApiServiceConfig = setApiGatewayManagementApiServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toApiGatewayManagementApiClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentApiGatewayManagementApiServiceConfig);
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=ApiGatewayManagementApiServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayManagementApiServiceConfig.js","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,2CAA2C,GAAG,IAAA,yBAAW,EAC7D,2FAA2F,EAC3F,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAwC,EAAE,CAAC,CACrE,CAAC;AAEF;;;GAGG;AACU,QAAA,wCAAwC,GAGjD,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA6C,EAA0B,EAAE,CACjH,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,2CAA2C,EAAE,MAAM,CAAC,CAC9E,CAAC;AAEF;;;GAGG;AACI,MAAM,uCAAuC,GAAG,CAAC,MAA6C,EAAE,EAAE,CACvG,cAAK,CAAC,aAAa,CAAC,2CAA2C,EAAE,MAAM,CAAC,CAAC;AAD9D,QAAA,uCAAuC,2CACuB;AAE3E;;;GAGG;AACU,QAAA,qCAAqC,GAAuD,eAAM,CAAC,GAAG,CACjH,QAAQ,CAAC;IACP,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;IAE9G,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,CACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { ForbiddenException, GoneException, LimitExceededException, PayloadTooLargeException } from "@aws-sdk/client-apigatewaymanagementapi";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["ForbiddenException", "GoneException", "LimitExceededException", "PayloadTooLargeException"];
5
+ export type ForbiddenError = TaggedException<ForbiddenException>;
6
+ export type GoneError = TaggedException<GoneException>;
7
+ export type LimitExceededError = TaggedException<LimitExceededException>;
8
+ export type PayloadTooLargeError = TaggedException<PayloadTooLargeException>;
9
+ export type SdkError = CommonSdkError;
10
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
11
+ //# 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,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,wGAKnB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,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,12 @@
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
+ "ForbiddenException",
7
+ "GoneException",
8
+ "LimitExceededException",
9
+ "PayloadTooLargeException",
10
+ ];
11
+ exports.SdkError = commons_1.SdkError;
12
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAOA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,oBAAoB;IACpB,eAAe;IACf,wBAAwB;IACxB,0BAA0B;CAClB,CAAC;AAQE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { ApiGatewayManagementApiService } from "./ApiGatewayManagementApiService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as ApiGatewayManagementApiClientInstance from "./ApiGatewayManagementApiClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as ApiGatewayManagementApiServiceConfig from "./ApiGatewayManagementApiServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./ApiGatewayManagementApiService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias ApiGatewayManagementApiService
25
+ */
26
+ export declare namespace ApiGatewayManagementApi {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias ApiGatewayManagementApiService.Config
30
+ */
31
+ type Config = ApiGatewayManagementApiService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias ApiGatewayManagementApiService
37
+ */
38
+ export declare const ApiGatewayManagementApi: typeof ApiGatewayManagementApiService;
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,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,qCAAqC,MAAM,4CAA4C,CAAC;AAEpG;;GAEG;AACH,OAAO,KAAK,oCAAoC,MAAM,2CAA2C,CAAC;AAElG;;GAEG;AACH,cAAc,qCAAqC,CAAC;AAEpD;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C;;;OAGG;IACH,KAAY,MAAM,GAAG,8BAA8B,CAAC,MAAM,CAAC;CAC5D;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,uCAAiC,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.ApiGatewayManagementApi = exports.ApiGatewayManagementApiServiceConfig = exports.ApiGatewayManagementApiClientInstance = void 0;
30
+ /**
31
+ * @since 1.0.0
32
+ */
33
+ const ApiGatewayManagementApiService_js_1 = require("./ApiGatewayManagementApiService.js");
34
+ /**
35
+ * @since 1.0.0
36
+ */
37
+ __exportStar(require("./Errors.js"), exports);
38
+ /**
39
+ * @since 1.0.0
40
+ */
41
+ exports.ApiGatewayManagementApiClientInstance = __importStar(require("./ApiGatewayManagementApiClientInstance.js"));
42
+ /**
43
+ * @since 1.0.0
44
+ */
45
+ exports.ApiGatewayManagementApiServiceConfig = __importStar(require("./ApiGatewayManagementApiServiceConfig.js"));
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ __exportStar(require("./ApiGatewayManagementApiService.js"), exports);
50
+ /**
51
+ * @since 1.0.0
52
+ * @category exports
53
+ * @alias ApiGatewayManagementApiService
54
+ */
55
+ exports.ApiGatewayManagementApi = ApiGatewayManagementApiService_js_1.ApiGatewayManagementApiService;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,2FAAqF;AAErF;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,oHAAoG;AAEpG;;GAEG;AACH,kHAAkG;AAElG;;GAEG;AACH,sEAAoD;AAepD;;;;GAIG;AACU,QAAA,uBAAuB,GAAG,kEAA8B,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { ApiGatewayManagementApiClient } from "@aws-sdk/client-apigatewaymanagementapi";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const ApiGatewayManagementApiClientInstance_base: Context.TagClass<ApiGatewayManagementApiClientInstance, "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiClientInstance", ApiGatewayManagementApiClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class ApiGatewayManagementApiClientInstance extends ApiGatewayManagementApiClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<ApiGatewayManagementApiClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<ApiGatewayManagementApiClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=ApiGatewayManagementApiClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayManagementApiClientInstance.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,qCAAsC,SAAQ,0CAEc;CAAG;AAE5E;;;GAGG;AACH,eAAO,MAAM,IAAI,mFAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,kEAA4D,CAAC"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { type ApiGatewayManagementApiClient, type ApiGatewayManagementApiClientConfig, type DeleteConnectionCommandInput, type DeleteConnectionCommandOutput, type GetConnectionCommandInput, type GetConnectionCommandOutput, type PostToConnectionCommandInput, type PostToConnectionCommandOutput } from "@aws-sdk/client-apigatewaymanagementapi";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import * as Instance from "./ApiGatewayManagementApiClientInstance.js";
8
+ import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError } from "./Errors.js";
9
+ interface ApiGatewayManagementApiService$ {
10
+ readonly _: unique symbol;
11
+ /**
12
+ * @see {@link DeleteConnectionCommand}
13
+ */
14
+ deleteConnection(args: DeleteConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConnectionCommandOutput, SdkError | ForbiddenError | GoneError | LimitExceededError>;
15
+ /**
16
+ * @see {@link GetConnectionCommand}
17
+ */
18
+ getConnection(args: GetConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetConnectionCommandOutput, SdkError | ForbiddenError | GoneError | LimitExceededError>;
19
+ /**
20
+ * @see {@link PostToConnectionCommand}
21
+ */
22
+ postToConnection(args: PostToConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<PostToConnectionCommandOutput, SdkError | ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError>;
23
+ }
24
+ /**
25
+ * @since 1.0.0
26
+ * @category constructors
27
+ */
28
+ export declare const makeApiGatewayManagementApiService: Effect.Effect<ApiGatewayManagementApiService$, never, Instance.ApiGatewayManagementApiClientInstance>;
29
+ declare const ApiGatewayManagementApiService_base: import("effect/Context").TagClass<ApiGatewayManagementApiService, "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiService", ApiGatewayManagementApiService$> & {
30
+ readonly _: Effect.Effect<ApiGatewayManagementApiService$["_"], never, ApiGatewayManagementApiService>;
31
+ deleteConnection: (args: DeleteConnectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteConnectionCommandOutput, ForbiddenError | GoneError | LimitExceededError | SdkError, ApiGatewayManagementApiService>;
32
+ getConnection: (args: GetConnectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetConnectionCommandOutput, ForbiddenError | GoneError | LimitExceededError | SdkError, ApiGatewayManagementApiService>;
33
+ postToConnection: (args: PostToConnectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PostToConnectionCommandOutput, ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError | SdkError, ApiGatewayManagementApiService>;
34
+ } & {
35
+ use: <X>(body: (_: ApiGatewayManagementApiService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, ApiGatewayManagementApiService | R> : Effect.Effect<X, never, ApiGatewayManagementApiService>;
36
+ };
37
+ /**
38
+ * @since 1.0.0
39
+ * @category models
40
+ */
41
+ export declare class ApiGatewayManagementApiService extends ApiGatewayManagementApiService_base {
42
+ static readonly defaultLayer: Layer.Layer<ApiGatewayManagementApiService, never, never>;
43
+ static readonly layer: (config: ApiGatewayManagementApiService.Config) => Layer.Layer<ApiGatewayManagementApiService, never, never>;
44
+ static readonly baseLayer: (evaluate: (defaultConfig: ApiGatewayManagementApiClientConfig) => ApiGatewayManagementApiClient) => Layer.Layer<ApiGatewayManagementApiService, never, never>;
45
+ }
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ export declare namespace ApiGatewayManagementApiService {
50
+ /**
51
+ * @since 1.0.0
52
+ */
53
+ interface Config extends Omit<ApiGatewayManagementApiClientConfig, "logger"> {
54
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
55
+ }
56
+ }
57
+ export {};
58
+ //# sourceMappingURL=ApiGatewayManagementApiService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayManagementApiService.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EAExC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEvF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,4CAA4C,CAAC;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AASvG,UAAU,+BAA+B;IACvC,QAAQ,CAAC,CAAC,EAAE,OAAO,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,CACd,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,6BAA6B,EAC7B,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,CAC3D,CAAC;IAEF;;OAEG;IACH,aAAa,CACX,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,0BAA0B,EAC1B,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,CAC3D,CAAC;IAEF;;OAEG;IACH,gBAAgB,CACd,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,6BAA6B,EAC7B,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,GAAG,oBAAoB,CAClF,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,kCAAkC,uGAI7C,CAAC;;;;;;;;;AAEH;;;GAGG;AACH,qBAAa,8BACX,SAAQ,mCAGL;IAEH,MAAM,CAAC,QAAQ,CAAC,YAAY,4DAE1B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,+BAA+B,MAAM,+DAIlE;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,mCAAmC,KAAK,6BAA6B,+DAS7F;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,8BAA8B,CAAC;IACtD;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,mCAAmC,EAAE,QAAQ,CAAC;QACjF,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { ApiGatewayManagementApiClientConfig } from "@aws-sdk/client-apigatewaymanagementapi";
5
+ import { Effect, Layer } from "effect";
6
+ import type { ApiGatewayManagementApiService } from "./ApiGatewayManagementApiService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category api-gateway-management-api service config
10
+ */
11
+ export declare const withApiGatewayManagementApiServiceConfig: {
12
+ (config: ApiGatewayManagementApiService.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: ApiGatewayManagementApiService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category api-gateway-management-api service config
18
+ */
19
+ export declare const setApiGatewayManagementApiServiceConfig: (config: ApiGatewayManagementApiService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toApiGatewayManagementApiClientConfig: Effect.Effect<ApiGatewayManagementApiClientConfig>;
25
+ //# sourceMappingURL=ApiGatewayManagementApiServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiGatewayManagementApiServiceConfig.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,yCAAyC,CAAC;AAEnG,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAW1F;;;GAGG;AACH,eAAO,MAAM,wCAAwC,EAAE;IACrD,CAAC,MAAM,EAAE,8BAA8B,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;IACrH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,8BAA8B,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKlH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uCAAuC,WAAY,+BAA+B,MAAM,qCAC3B,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAmC,CAUpG,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { ForbiddenException, GoneException, LimitExceededException, PayloadTooLargeException } from "@aws-sdk/client-apigatewaymanagementapi";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["ForbiddenException", "GoneException", "LimitExceededException", "PayloadTooLargeException"];
5
+ export type ForbiddenError = TaggedException<ForbiddenException>;
6
+ export type GoneError = TaggedException<GoneException>;
7
+ export type LimitExceededError = TaggedException<LimitExceededException>;
8
+ export type PayloadTooLargeError = TaggedException<PayloadTooLargeException>;
9
+ export type SdkError = CommonSdkError;
10
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
11
+ //# sourceMappingURL=Errors.d.ts.map