@effect-aws/client-opensearch-serverless 1.1.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 (69) hide show
  1. package/Errors/package.json +6 -0
  2. package/LICENSE +1 -1
  3. package/OpenSearchServerlessClientInstance/package.json +6 -0
  4. package/OpenSearchServerlessService/package.json +6 -0
  5. package/OpenSearchServerlessServiceConfig/package.json +6 -0
  6. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  7. package/dist/cjs/Errors.d.ts.map +1 -0
  8. package/dist/cjs/Errors.js +14 -0
  9. package/dist/cjs/Errors.js.map +1 -0
  10. package/dist/cjs/OpenSearchServerlessClientInstance.d.ts +24 -0
  11. package/dist/cjs/OpenSearchServerlessClientInstance.d.ts.map +1 -0
  12. package/dist/cjs/OpenSearchServerlessClientInstance.js +50 -0
  13. package/dist/cjs/OpenSearchServerlessClientInstance.js.map +1 -0
  14. package/{lib → dist/cjs}/OpenSearchServerlessService.d.ts +16 -38
  15. package/dist/cjs/OpenSearchServerlessService.d.ts.map +1 -0
  16. package/dist/cjs/OpenSearchServerlessService.js +93 -0
  17. package/dist/cjs/OpenSearchServerlessService.js.map +1 -0
  18. package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts +25 -0
  19. package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts.map +1 -0
  20. package/dist/cjs/OpenSearchServerlessServiceConfig.js +35 -0
  21. package/dist/cjs/OpenSearchServerlessServiceConfig.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/Errors.d.ts +13 -0
  27. package/dist/dts/Errors.d.ts.map +1 -0
  28. package/dist/dts/OpenSearchServerlessClientInstance.d.ts +24 -0
  29. package/dist/dts/OpenSearchServerlessClientInstance.d.ts.map +1 -0
  30. package/dist/dts/OpenSearchServerlessService.d.ts +228 -0
  31. package/dist/dts/OpenSearchServerlessService.d.ts.map +1 -0
  32. package/dist/dts/OpenSearchServerlessServiceConfig.d.ts +25 -0
  33. package/dist/dts/OpenSearchServerlessServiceConfig.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/Errors.js +11 -0
  37. package/dist/esm/Errors.js.map +1 -0
  38. package/dist/esm/OpenSearchServerlessClientInstance.js +23 -0
  39. package/dist/esm/OpenSearchServerlessClientInstance.js.map +1 -0
  40. package/dist/esm/OpenSearchServerlessService.js +66 -0
  41. package/dist/esm/OpenSearchServerlessService.js.map +1 -0
  42. package/dist/esm/OpenSearchServerlessServiceConfig.js +31 -0
  43. package/dist/esm/OpenSearchServerlessServiceConfig.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/Errors.ts +29 -0
  49. package/src/OpenSearchServerlessClientInstance.ts +33 -0
  50. package/src/OpenSearchServerlessService.ts +636 -0
  51. package/src/OpenSearchServerlessServiceConfig.ts +54 -0
  52. package/src/index.ts +44 -0
  53. package/CHANGELOG.md +0 -19
  54. package/docgen.json +0 -8
  55. package/lib/Errors.js +0 -14
  56. package/lib/OpenSearchServerlessClientInstance.d.ts +0 -31
  57. package/lib/OpenSearchServerlessClientInstance.js +0 -57
  58. package/lib/OpenSearchServerlessClientInstanceConfig.d.ts +0 -23
  59. package/lib/OpenSearchServerlessClientInstanceConfig.js +0 -44
  60. package/lib/OpenSearchServerlessService.js +0 -125
  61. package/lib/esm/Errors.js +0 -11
  62. package/lib/esm/OpenSearchServerlessClientInstance.js +0 -30
  63. package/lib/esm/OpenSearchServerlessClientInstanceConfig.js +0 -40
  64. package/lib/esm/OpenSearchServerlessService.js +0 -121
  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
+ }
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,6 @@
1
+ {
2
+ "main": "../dist/cjs/OpenSearchServerlessClientInstance.js",
3
+ "module": "../dist/esm/OpenSearchServerlessClientInstance.js",
4
+ "types": "../dist/dts/OpenSearchServerlessClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/OpenSearchServerlessService.js",
3
+ "module": "../dist/esm/OpenSearchServerlessService.js",
4
+ "types": "../dist/dts/OpenSearchServerlessService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/OpenSearchServerlessServiceConfig.js",
3
+ "module": "../dist/esm/OpenSearchServerlessServiceConfig.js",
4
+ "types": "../dist/dts/OpenSearchServerlessServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -1,18 +1,13 @@
1
1
  import type { ConflictException, InternalServerException, OcuLimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException } from "@aws-sdk/client-opensearchserverless";
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 ["ConflictException", "InternalServerException", "OcuLimitExceededException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ValidationException"];
9
5
  export type ConflictError = TaggedException<ConflictException>;
10
6
  export type InternalServerError = TaggedException<InternalServerException>;
11
7
  export type OcuLimitExceededError = TaggedException<OcuLimitExceededException>;
12
8
  export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
13
9
  export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
14
10
  export type ValidationError = TaggedException<ValidationException>;
15
- export type SdkError = TaggedException<Error & {
16
- name: "SdkError";
17
- }>;
18
- export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
11
+ export type SdkError = CommonSdkError;
12
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
13
+ //# 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,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,6KAOnB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,14 @@
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
+ "ConflictException",
7
+ "InternalServerException",
8
+ "OcuLimitExceededException",
9
+ "ResourceNotFoundException",
10
+ "ServiceQuotaExceededException",
11
+ "ValidationException",
12
+ ];
13
+ exports.SdkError = commons_1.SdkError;
14
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AASA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,2BAA2B;IAC3B,+BAA+B;IAC/B,qBAAqB;CACb,CAAC;AAUE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { OpenSearchServerlessClient } from "@aws-sdk/client-opensearchserverless";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const OpenSearchServerlessClientInstance_base: Context.TagClass<OpenSearchServerlessClientInstance, "@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance", OpenSearchServerlessClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class OpenSearchServerlessClientInstance extends OpenSearchServerlessClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<OpenSearchServerlessClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<OpenSearchServerlessClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=OpenSearchServerlessClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenSearchServerlessClientInstance.d.ts","sourceRoot":"","sources":["../../src/OpenSearchServerlessClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,kCAAmC,SAAQ,uCAEW;CAAG;AAEtE;;;GAGG;AACH,eAAO,MAAM,IAAI,gFAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,+DAAyD,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.OpenSearchServerlessClientInstance = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_opensearchserverless_1 = require("@aws-sdk/client-opensearchserverless");
31
+ const effect_1 = require("effect");
32
+ const OpenSearchServerlessServiceConfig = __importStar(require("./OpenSearchServerlessServiceConfig.js"));
33
+ /**
34
+ * @since 1.0.0
35
+ * @category tags
36
+ */
37
+ class OpenSearchServerlessClientInstance extends effect_1.Context.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance")() {
38
+ }
39
+ exports.OpenSearchServerlessClientInstance = OpenSearchServerlessClientInstance;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category constructors
43
+ */
44
+ exports.make = effect_1.Effect.flatMap(OpenSearchServerlessServiceConfig.toOpenSearchServerlessClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_opensearchserverless_1.OpenSearchServerlessClient(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(OpenSearchServerlessClientInstance, exports.make);
50
+ //# sourceMappingURL=OpenSearchServerlessClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenSearchServerlessClientInstance.js","sourceRoot":"","sources":["../../src/OpenSearchServerlessClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,sFAAkF;AAClF,mCAAgD;AAChD,0GAA4F;AAE5F;;;GAGG;AACH,MAAa,kCAAmC,SAAQ,gBAAO,CAAC,GAAG,CACjE,6EAA6E,CAC9E,EAAkE;CAAG;AAFtE,gFAEsE;AAEtE;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,iCAAiC,CAAC,kCAAkC,EACpE,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,wDAA0B,CAAC,MAAM,CAAC,CAAC,EACzD,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,kCAAkC,EAAE,YAAI,CAAC,CAAC"}
@@ -1,21 +1,11 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- import { type OpenSearchServerlessClient, type OpenSearchServerlessClientConfig, type BatchGetCollectionCommandInput, type BatchGetCollectionCommandOutput, type BatchGetEffectiveLifecyclePolicyCommandInput, type BatchGetEffectiveLifecyclePolicyCommandOutput, type BatchGetLifecyclePolicyCommandInput, type BatchGetLifecyclePolicyCommandOutput, type BatchGetVpcEndpointCommandInput, type BatchGetVpcEndpointCommandOutput, type CreateAccessPolicyCommandInput, type CreateAccessPolicyCommandOutput, type CreateCollectionCommandInput, type CreateCollectionCommandOutput, type CreateLifecyclePolicyCommandInput, type CreateLifecyclePolicyCommandOutput, type CreateSecurityConfigCommandInput, type CreateSecurityConfigCommandOutput, type CreateSecurityPolicyCommandInput, type CreateSecurityPolicyCommandOutput, type CreateVpcEndpointCommandInput, type CreateVpcEndpointCommandOutput, type DeleteAccessPolicyCommandInput, type DeleteAccessPolicyCommandOutput, type DeleteCollectionCommandInput, type DeleteCollectionCommandOutput, type DeleteLifecyclePolicyCommandInput, type DeleteLifecyclePolicyCommandOutput, type DeleteSecurityConfigCommandInput, type DeleteSecurityConfigCommandOutput, type DeleteSecurityPolicyCommandInput, type DeleteSecurityPolicyCommandOutput, type DeleteVpcEndpointCommandInput, type DeleteVpcEndpointCommandOutput, type GetAccessPolicyCommandInput, type GetAccessPolicyCommandOutput, type GetAccountSettingsCommandInput, type GetAccountSettingsCommandOutput, type GetPoliciesStatsCommandInput, type GetPoliciesStatsCommandOutput, type GetSecurityConfigCommandInput, type GetSecurityConfigCommandOutput, type GetSecurityPolicyCommandInput, type GetSecurityPolicyCommandOutput, type ListAccessPoliciesCommandInput, type ListAccessPoliciesCommandOutput, type ListCollectionsCommandInput, type ListCollectionsCommandOutput, type ListLifecyclePoliciesCommandInput, type ListLifecyclePoliciesCommandOutput, type ListSecurityConfigsCommandInput, type ListSecurityConfigsCommandOutput, type ListSecurityPoliciesCommandInput, type ListSecurityPoliciesCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type ListVpcEndpointsCommandInput, type ListVpcEndpointsCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateAccessPolicyCommandInput, type UpdateAccessPolicyCommandOutput, type UpdateAccountSettingsCommandInput, type UpdateAccountSettingsCommandOutput, type UpdateCollectionCommandInput, type UpdateCollectionCommandOutput, type UpdateLifecyclePolicyCommandInput, type UpdateLifecyclePolicyCommandOutput, type UpdateSecurityConfigCommandInput, type UpdateSecurityConfigCommandOutput, type UpdateSecurityPolicyCommandInput, type UpdateSecurityPolicyCommandOutput, type UpdateVpcEndpointCommandInput, type UpdateVpcEndpointCommandOutput } from "@aws-sdk/client-opensearchserverless";
4
+ import { type BatchGetCollectionCommandInput, type BatchGetCollectionCommandOutput, type BatchGetEffectiveLifecyclePolicyCommandInput, type BatchGetEffectiveLifecyclePolicyCommandOutput, type BatchGetLifecyclePolicyCommandInput, type BatchGetLifecyclePolicyCommandOutput, type BatchGetVpcEndpointCommandInput, type BatchGetVpcEndpointCommandOutput, type CreateAccessPolicyCommandInput, type CreateAccessPolicyCommandOutput, type CreateCollectionCommandInput, type CreateCollectionCommandOutput, type CreateLifecyclePolicyCommandInput, type CreateLifecyclePolicyCommandOutput, type CreateSecurityConfigCommandInput, type CreateSecurityConfigCommandOutput, type CreateSecurityPolicyCommandInput, type CreateSecurityPolicyCommandOutput, type CreateVpcEndpointCommandInput, type CreateVpcEndpointCommandOutput, type DeleteAccessPolicyCommandInput, type DeleteAccessPolicyCommandOutput, type DeleteCollectionCommandInput, type DeleteCollectionCommandOutput, type DeleteLifecyclePolicyCommandInput, type DeleteLifecyclePolicyCommandOutput, type DeleteSecurityConfigCommandInput, type DeleteSecurityConfigCommandOutput, type DeleteSecurityPolicyCommandInput, type DeleteSecurityPolicyCommandOutput, type DeleteVpcEndpointCommandInput, type DeleteVpcEndpointCommandOutput, type GetAccessPolicyCommandInput, type GetAccessPolicyCommandOutput, type GetAccountSettingsCommandInput, type GetAccountSettingsCommandOutput, type GetPoliciesStatsCommandInput, type GetPoliciesStatsCommandOutput, type GetSecurityConfigCommandInput, type GetSecurityConfigCommandOutput, type GetSecurityPolicyCommandInput, type GetSecurityPolicyCommandOutput, type ListAccessPoliciesCommandInput, type ListAccessPoliciesCommandOutput, type ListCollectionsCommandInput, type ListCollectionsCommandOutput, type ListLifecyclePoliciesCommandInput, type ListLifecyclePoliciesCommandOutput, type ListSecurityConfigsCommandInput, type ListSecurityConfigsCommandOutput, type ListSecurityPoliciesCommandInput, type ListSecurityPoliciesCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type ListVpcEndpointsCommandInput, type ListVpcEndpointsCommandOutput, type OpenSearchServerlessClient, type OpenSearchServerlessClientConfig, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateAccessPolicyCommandInput, type UpdateAccessPolicyCommandOutput, type UpdateAccountSettingsCommandInput, type UpdateAccountSettingsCommandOutput, type UpdateCollectionCommandInput, type UpdateCollectionCommandOutput, type UpdateLifecyclePolicyCommandInput, type UpdateLifecyclePolicyCommandOutput, type UpdateSecurityConfigCommandInput, type UpdateSecurityConfigCommandOutput, type UpdateSecurityPolicyCommandInput, type UpdateSecurityPolicyCommandOutput, type UpdateVpcEndpointCommandInput, type UpdateVpcEndpointCommandOutput } from "@aws-sdk/client-opensearchserverless";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
5
6
  import { Effect, Layer } from "effect";
6
- import { ConflictError, InternalServerError, OcuLimitExceededError, ResourceNotFoundError, ServiceQuotaExceededError, ValidationError, SdkError } from "./Errors";
7
- import { OpenSearchServerlessClientInstance } from "./OpenSearchServerlessClientInstance";
8
- import { OpenSearchServerlessClientInstanceConfig } from "./OpenSearchServerlessClientInstanceConfig";
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 type { ConflictError, InternalServerError, OcuLimitExceededError, ResourceNotFoundError, ServiceQuotaExceededError, ValidationError } from "./Errors.js";
8
+ import * as Instance from "./OpenSearchServerlessClientInstance.js";
19
9
  interface OpenSearchServerlessService$ {
20
10
  readonly _: unique symbol;
21
11
  /**
@@ -171,7 +161,7 @@ interface OpenSearchServerlessService$ {
171
161
  * @since 1.0.0
172
162
  * @category constructors
173
163
  */
174
- export declare const makeOpenSearchServerlessService: Effect.Effect<OpenSearchServerlessService$, never, OpenSearchServerlessClientInstance>;
164
+ export declare const makeOpenSearchServerlessService: Effect.Effect<OpenSearchServerlessService$, never, Instance.OpenSearchServerlessClientInstance>;
175
165
  declare const OpenSearchServerlessService_base: import("effect/Context").TagClass<OpenSearchServerlessService, "@effect-aws/client-opensearch-serverless/OpenSearchServerlessService", OpenSearchServerlessService$> & {
176
166
  readonly _: Effect.Effect<OpenSearchServerlessService$["_"], never, OpenSearchServerlessService>;
177
167
  batchGetCollection: (args: BatchGetCollectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchGetCollectionCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
@@ -212,7 +202,7 @@ declare const OpenSearchServerlessService_base: import("effect/Context").TagClas
212
202
  updateSecurityPolicy: (args: UpdateSecurityPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateSecurityPolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
213
203
  updateVpcEndpoint: (args: UpdateVpcEndpointCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateVpcEndpointCommandOutput, ConflictError | InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
214
204
  } & {
215
- use: <X>(body: (_: OpenSearchServerlessService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | OpenSearchServerlessService> : Effect.Effect<X, never, OpenSearchServerlessService>;
205
+ use: <X>(body: (_: OpenSearchServerlessService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, OpenSearchServerlessService | R> : Effect.Effect<X, never, OpenSearchServerlessService>;
216
206
  };
217
207
  /**
218
208
  * @since 1.0.0
@@ -220,31 +210,19 @@ declare const OpenSearchServerlessService_base: import("effect/Context").TagClas
220
210
  */
221
211
  export declare class OpenSearchServerlessService extends OpenSearchServerlessService_base {
222
212
  static readonly defaultLayer: Layer.Layer<OpenSearchServerlessService, never, never>;
223
- static readonly layer: (config: OpenSearchServerlessClientConfig) => Layer.Layer<OpenSearchServerlessService, never, never>;
213
+ static readonly layer: (config: OpenSearchServerlessService.Config) => Layer.Layer<OpenSearchServerlessService, never, never>;
224
214
  static readonly baseLayer: (evaluate: (defaultConfig: OpenSearchServerlessClientConfig) => OpenSearchServerlessClient) => Layer.Layer<OpenSearchServerlessService, never, never>;
225
215
  }
226
216
  /**
227
217
  * @since 1.0.0
228
- * @category models
229
- * @alias OpenSearchServerlessService
230
- */
231
- export declare const OpenSearchServerless: typeof OpenSearchServerlessService;
232
- /**
233
- * @since 1.0.0
234
- * @category layers
235
- * @deprecated use OpenSearchServerless.baseLayer instead
236
218
  */
237
- export declare const BaseOpenSearchServerlessServiceLayer: Layer.Layer<OpenSearchServerlessService, never, OpenSearchServerlessClientInstance>;
238
- /**
239
- * @since 1.0.0
240
- * @category layers
241
- * @deprecated use OpenSearchServerless.layer instead
242
- */
243
- export declare const OpenSearchServerlessServiceLayer: Layer.Layer<OpenSearchServerlessService, never, OpenSearchServerlessClientInstanceConfig>;
244
- /**
245
- * @since 1.0.0
246
- * @category layers
247
- * @deprecated use OpenSearchServerless.defaultLayer instead
248
- */
249
- export declare const DefaultOpenSearchServerlessServiceLayer: Layer.Layer<OpenSearchServerlessService, never, never>;
219
+ export declare namespace OpenSearchServerlessService {
220
+ /**
221
+ * @since 1.0.0
222
+ */
223
+ interface Config extends Omit<OpenSearchServerlessClientConfig, "logger"> {
224
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
225
+ }
226
+ }
250
227
  export {};
228
+ //# sourceMappingURL=OpenSearchServerlessService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenSearchServerlessService.d.ts","sourceRoot":"","sources":["../../src/OpenSearchServerlessService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,4CAA4C,EACjD,KAAK,6CAA6C,EAElD,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B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QAAQ,CAAC,YAAY,yDAE1B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,4BAA4B,MAAM,4DAI/D;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,gCAAgC,KAAK,0BAA0B,4DASvF;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,2BAA2B,CAAC;IACnD;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,gCAAgC,EAAE,QAAQ,CAAC;QAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,93 @@
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.OpenSearchServerlessService = exports.makeOpenSearchServerlessService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_opensearchserverless_1 = require("@aws-sdk/client-opensearchserverless");
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("./OpenSearchServerlessClientInstance.js"));
35
+ const OpenSearchServerlessServiceConfig = __importStar(require("./OpenSearchServerlessServiceConfig.js"));
36
+ const commands = {
37
+ BatchGetCollectionCommand: client_opensearchserverless_1.BatchGetCollectionCommand,
38
+ BatchGetEffectiveLifecyclePolicyCommand: client_opensearchserverless_1.BatchGetEffectiveLifecyclePolicyCommand,
39
+ BatchGetLifecyclePolicyCommand: client_opensearchserverless_1.BatchGetLifecyclePolicyCommand,
40
+ BatchGetVpcEndpointCommand: client_opensearchserverless_1.BatchGetVpcEndpointCommand,
41
+ CreateAccessPolicyCommand: client_opensearchserverless_1.CreateAccessPolicyCommand,
42
+ CreateCollectionCommand: client_opensearchserverless_1.CreateCollectionCommand,
43
+ CreateLifecyclePolicyCommand: client_opensearchserverless_1.CreateLifecyclePolicyCommand,
44
+ CreateSecurityConfigCommand: client_opensearchserverless_1.CreateSecurityConfigCommand,
45
+ CreateSecurityPolicyCommand: client_opensearchserverless_1.CreateSecurityPolicyCommand,
46
+ CreateVpcEndpointCommand: client_opensearchserverless_1.CreateVpcEndpointCommand,
47
+ DeleteAccessPolicyCommand: client_opensearchserverless_1.DeleteAccessPolicyCommand,
48
+ DeleteCollectionCommand: client_opensearchserverless_1.DeleteCollectionCommand,
49
+ DeleteLifecyclePolicyCommand: client_opensearchserverless_1.DeleteLifecyclePolicyCommand,
50
+ DeleteSecurityConfigCommand: client_opensearchserverless_1.DeleteSecurityConfigCommand,
51
+ DeleteSecurityPolicyCommand: client_opensearchserverless_1.DeleteSecurityPolicyCommand,
52
+ DeleteVpcEndpointCommand: client_opensearchserverless_1.DeleteVpcEndpointCommand,
53
+ GetAccessPolicyCommand: client_opensearchserverless_1.GetAccessPolicyCommand,
54
+ GetAccountSettingsCommand: client_opensearchserverless_1.GetAccountSettingsCommand,
55
+ GetPoliciesStatsCommand: client_opensearchserverless_1.GetPoliciesStatsCommand,
56
+ GetSecurityConfigCommand: client_opensearchserverless_1.GetSecurityConfigCommand,
57
+ GetSecurityPolicyCommand: client_opensearchserverless_1.GetSecurityPolicyCommand,
58
+ ListAccessPoliciesCommand: client_opensearchserverless_1.ListAccessPoliciesCommand,
59
+ ListCollectionsCommand: client_opensearchserverless_1.ListCollectionsCommand,
60
+ ListLifecyclePoliciesCommand: client_opensearchserverless_1.ListLifecyclePoliciesCommand,
61
+ ListSecurityConfigsCommand: client_opensearchserverless_1.ListSecurityConfigsCommand,
62
+ ListSecurityPoliciesCommand: client_opensearchserverless_1.ListSecurityPoliciesCommand,
63
+ ListTagsForResourceCommand: client_opensearchserverless_1.ListTagsForResourceCommand,
64
+ ListVpcEndpointsCommand: client_opensearchserverless_1.ListVpcEndpointsCommand,
65
+ TagResourceCommand: client_opensearchserverless_1.TagResourceCommand,
66
+ UntagResourceCommand: client_opensearchserverless_1.UntagResourceCommand,
67
+ UpdateAccessPolicyCommand: client_opensearchserverless_1.UpdateAccessPolicyCommand,
68
+ UpdateAccountSettingsCommand: client_opensearchserverless_1.UpdateAccountSettingsCommand,
69
+ UpdateCollectionCommand: client_opensearchserverless_1.UpdateCollectionCommand,
70
+ UpdateLifecyclePolicyCommand: client_opensearchserverless_1.UpdateLifecyclePolicyCommand,
71
+ UpdateSecurityConfigCommand: client_opensearchserverless_1.UpdateSecurityConfigCommand,
72
+ UpdateSecurityPolicyCommand: client_opensearchserverless_1.UpdateSecurityPolicyCommand,
73
+ UpdateVpcEndpointCommand: client_opensearchserverless_1.UpdateVpcEndpointCommand,
74
+ };
75
+ /**
76
+ * @since 1.0.0
77
+ * @category constructors
78
+ */
79
+ exports.makeOpenSearchServerlessService = effect_1.Effect.gen(function* () {
80
+ const client = yield* Instance.OpenSearchServerlessClientInstance;
81
+ return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
82
+ });
83
+ /**
84
+ * @since 1.0.0
85
+ * @category models
86
+ */
87
+ class OpenSearchServerlessService extends effect_1.Effect.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessService")() {
88
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeOpenSearchServerlessService).pipe(effect_1.Layer.provide(Instance.layer));
89
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeOpenSearchServerlessService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(OpenSearchServerlessServiceConfig.setOpenSearchServerlessServiceConfig(config)));
90
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeOpenSearchServerlessService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.OpenSearchServerlessClientInstance, effect_1.Effect.map(OpenSearchServerlessServiceConfig.toOpenSearchServerlessClientConfig, evaluate))));
91
+ }
92
+ exports.OpenSearchServerlessService = OpenSearchServerlessService;
93
+ //# sourceMappingURL=OpenSearchServerlessService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenSearchServerlessService.js","sourceRoot":"","sources":["../../src/OpenSearchServerlessService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,sFAkH8C;AAE9C,iDAA8C;AAC9C,mCAAuC;AASvC,2CAA+C;AAC/C,kFAAoE;AACpE,0GAA4F;AAE5F,MAAM,QAAQ,GAAG;IACf,yBAAyB,EAAzB,uDAAyB;IACzB,uCAAuC,EAAvC,qEAAuC;IACvC,8BAA8B,EAA9B,4DAA8B;IAC9B,0BAA0B,EAA1B,wDAA0B;IAC1B,yBAAyB,EAAzB,uDAAyB;IACzB,uBAAuB,EAAvB,qDAAuB;IACvB,4BAA4B,EAA5B,0DAA4B;IAC5B,2BAA2B,EAA3B,yDAA2B;IAC3B,2BAA2B,EAA3B,yDAA2B;IAC3B,wBAAwB,EAAxB,sDAAwB;IACxB,yBAAyB,EAAzB,uDAAyB;IACzB,uBAAuB,EAAvB,qDAAuB;IACvB,4BAA4B,EAA5B,0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,KAAK,CAAC,CAC9B,CAAC;IACF,MAAM,CAAU,KAAK,GAAG,CAAC,MAA0C,EAAE,EAAE,CACrE,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,uCAA+B,CAAC,CAAC,IAAI,CACtD,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,iCAAiC,CAAC,oCAAoC,CAAC,MAAM,CAAC,CAAC,CAC9F,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAyF,EACzF,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,uCAA+B,CAAC,CAAC,IAAI,CACtD,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,kCAAkC,EAC3C,eAAM,CAAC,GAAG,CAAC,iCAAiC,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAC3F,CACF,CACF,CAAC;;AAxBN,kEAyBC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless";
5
+ import { Effect, Layer } from "effect";
6
+ import type { OpenSearchServerlessService } from "./OpenSearchServerlessService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category opensearch-serverless service config
10
+ */
11
+ export declare const withOpenSearchServerlessServiceConfig: {
12
+ (config: OpenSearchServerlessService.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: OpenSearchServerlessService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category opensearch-serverless service config
18
+ */
19
+ export declare const setOpenSearchServerlessServiceConfig: (config: OpenSearchServerlessService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toOpenSearchServerlessClientConfig: Effect.Effect<OpenSearchServerlessClientConfig>;
25
+ //# sourceMappingURL=OpenSearchServerlessServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenSearchServerlessServiceConfig.d.ts","sourceRoot":"","sources":["../../src/OpenSearchServerlessServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sCAAsC,CAAC;AAE7F,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAWpF;;;GAGG;AACH,eAAO,MAAM,qCAAqC,EAAE;IAClD,CAAC,MAAM,EAAE,2BAA2B,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;IAClH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,2BAA2B,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK/G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oCAAoC,WAAY,4BAA4B,MAAM,qCACxB,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,MAAM,CAAC,MAAM,CAAC,gCAAgC,CAU9F,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toOpenSearchServerlessClientConfig = exports.setOpenSearchServerlessServiceConfig = exports.withOpenSearchServerlessServiceConfig = 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 opensearch-serverless service config
11
+ */
12
+ const currentOpenSearchServerlessServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-opensearch-serverless/currentOpenSearchServerlessServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category opensearch-serverless service config
16
+ */
17
+ exports.withOpenSearchServerlessServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentOpenSearchServerlessServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category opensearch-serverless service config
21
+ */
22
+ const setOpenSearchServerlessServiceConfig = (config) => effect_1.Layer.locallyScoped(currentOpenSearchServerlessServiceConfig, config);
23
+ exports.setOpenSearchServerlessServiceConfig = setOpenSearchServerlessServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toOpenSearchServerlessClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentOpenSearchServerlessServiceConfig);
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=OpenSearchServerlessServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenSearchServerlessServiceConfig.js","sourceRoot":"","sources":["../../src/OpenSearchServerlessServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,wCAA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 */
12
+ export * as OpenSearchServerlessClientInstance from "./OpenSearchServerlessClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./OpenSearchServerlessService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias OpenSearchServerlessService
25
+ */
26
+ export declare namespace OpenSearchServerless {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias OpenSearchServerlessService.Config
30
+ */
31
+ type Config = OpenSearchServerlessService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias OpenSearchServerlessService
37
+ */
38
+ export declare const OpenSearchServerless: typeof OpenSearchServerlessService;
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,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,kCAAkC,MAAM,yCAAyC,CAAC;AAE9F;;GAEG;AACH,OAAO,KAAK,iCAAiC,MAAM,wCAAwC,CAAC;AAE5F;;GAEG;AACH,cAAc,kCAAkC,CAAC;AAEjD;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C;;;OAGG;IACH,KAAY,MAAM,GAAG,2BAA2B,CAAC,MAAM,CAAC;CACzD;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,oCAA8B,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.OpenSearchServerless = exports.OpenSearchServerlessServiceConfig = exports.OpenSearchServerlessClientInstance = void 0;
30
+ /**
31
+ * @since 1.0.0
32
+ */
33
+ const OpenSearchServerlessService_js_1 = require("./OpenSearchServerlessService.js");
34
+ /**
35
+ * @since 1.0.0
36
+ */
37
+ __exportStar(require("./Errors.js"), exports);
38
+ /**
39
+ * @since 1.0.0
40
+ */
41
+ exports.OpenSearchServerlessClientInstance = __importStar(require("./OpenSearchServerlessClientInstance.js"));
42
+ /**
43
+ * @since 1.0.0
44
+ */
45
+ exports.OpenSearchServerlessServiceConfig = __importStar(require("./OpenSearchServerlessServiceConfig.js"));
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ __exportStar(require("./OpenSearchServerlessService.js"), exports);
50
+ /**
51
+ * @since 1.0.0
52
+ * @category exports
53
+ * @alias OpenSearchServerlessService
54
+ */
55
+ exports.OpenSearchServerless = OpenSearchServerlessService_js_1.OpenSearchServerlessService;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,qFAA+E;AAE/E;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,8GAA8F;AAE9F;;GAEG;AACH,4GAA4F;AAE5F;;GAEG;AACH,mEAAiD;AAejD;;;;GAIG;AACU,QAAA,oBAAoB,GAAG,4DAA2B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ConflictException, InternalServerException, OcuLimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException } from "@aws-sdk/client-opensearchserverless";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["ConflictException", "InternalServerException", "OcuLimitExceededException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ValidationException"];
5
+ export type ConflictError = TaggedException<ConflictException>;
6
+ export type InternalServerError = TaggedException<InternalServerException>;
7
+ export type OcuLimitExceededError = TaggedException<OcuLimitExceededException>;
8
+ export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
9
+ export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
10
+ export type ValidationError = TaggedException<ValidationException>;
11
+ export type SdkError = CommonSdkError;
12
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
13
+ //# 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,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,6KAOnB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { OpenSearchServerlessClient } from "@aws-sdk/client-opensearchserverless";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const OpenSearchServerlessClientInstance_base: Context.TagClass<OpenSearchServerlessClientInstance, "@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance", OpenSearchServerlessClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class OpenSearchServerlessClientInstance extends OpenSearchServerlessClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<OpenSearchServerlessClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<OpenSearchServerlessClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=OpenSearchServerlessClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenSearchServerlessClientInstance.d.ts","sourceRoot":"","sources":["../../src/OpenSearchServerlessClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,kCAAmC,SAAQ,uCAEW;CAAG;AAEtE;;;GAGG;AACH,eAAO,MAAM,IAAI,gFAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,+DAAyD,CAAC"}