@effect-aws/client-bedrock-runtime 1.9.2

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/BedrockRuntimeClientInstance/package.json +6 -0
  2. package/BedrockRuntimeService/package.json +6 -0
  3. package/BedrockRuntimeServiceConfig/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/BedrockRuntimeClientInstance.d.ts +24 -0
  8. package/dist/cjs/BedrockRuntimeClientInstance.d.ts.map +1 -0
  9. package/dist/cjs/BedrockRuntimeClientInstance.js +50 -0
  10. package/dist/cjs/BedrockRuntimeClientInstance.js.map +1 -0
  11. package/dist/cjs/BedrockRuntimeService.d.ts +73 -0
  12. package/dist/cjs/BedrockRuntimeService.d.ts.map +1 -0
  13. package/dist/cjs/BedrockRuntimeService.js +64 -0
  14. package/dist/cjs/BedrockRuntimeService.js.map +1 -0
  15. package/dist/cjs/BedrockRuntimeServiceConfig.d.ts +25 -0
  16. package/dist/cjs/BedrockRuntimeServiceConfig.d.ts.map +1 -0
  17. package/dist/cjs/BedrockRuntimeServiceConfig.js +35 -0
  18. package/dist/cjs/BedrockRuntimeServiceConfig.js.map +1 -0
  19. package/dist/cjs/Errors.d.ts +19 -0
  20. package/dist/cjs/Errors.d.ts.map +1 -0
  21. package/dist/cjs/Errors.js +20 -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/BedrockRuntimeClientInstance.d.ts +24 -0
  28. package/dist/dts/BedrockRuntimeClientInstance.d.ts.map +1 -0
  29. package/dist/dts/BedrockRuntimeService.d.ts +73 -0
  30. package/dist/dts/BedrockRuntimeService.d.ts.map +1 -0
  31. package/dist/dts/BedrockRuntimeServiceConfig.d.ts +25 -0
  32. package/dist/dts/BedrockRuntimeServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/Errors.d.ts +19 -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/BedrockRuntimeClientInstance.js +23 -0
  38. package/dist/esm/BedrockRuntimeClientInstance.js.map +1 -0
  39. package/dist/esm/BedrockRuntimeService.js +37 -0
  40. package/dist/esm/BedrockRuntimeService.js.map +1 -0
  41. package/dist/esm/BedrockRuntimeServiceConfig.js +31 -0
  42. package/dist/esm/BedrockRuntimeServiceConfig.js.map +1 -0
  43. package/dist/esm/Errors.js +17 -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/BedrockRuntimeClientInstance.ts +33 -0
  50. package/src/BedrockRuntimeService.ts +256 -0
  51. package/src/BedrockRuntimeServiceConfig.ts +52 -0
  52. package/src/Errors.ts +47 -0
  53. package/src/index.ts +44 -0
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/BedrockRuntimeClientInstance.js",
3
+ "module": "../dist/esm/BedrockRuntimeClientInstance.js",
4
+ "types": "../dist/dts/BedrockRuntimeClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/BedrockRuntimeService.js",
3
+ "module": "../dist/esm/BedrockRuntimeService.js",
4
+ "types": "../dist/dts/BedrockRuntimeService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/BedrockRuntimeServiceConfig.js",
3
+ "module": "../dist/esm/BedrockRuntimeServiceConfig.js",
4
+ "types": "../dist/dts/BedrockRuntimeServiceConfig.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 ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2025 Victor Korzunin
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # @effect-aws/client-bedrock-runtime
2
+
3
+ [![npm version](https://img.shields.io/npm/v/%40effect-aws%2Fclient-bedrock-runtime?color=brightgreen&label=npm%20package)](https://www.npmjs.com/package/@effect-aws/client-bedrock-runtime)
4
+ [![npm downloads](https://img.shields.io/npm/dm/%40effect-aws%2Fclient-bedrock-runtime)](https://www.npmjs.com/package/@effect-aws/client-bedrock-runtime)
5
+
6
+ ## Installation
7
+
8
+ ```bash
9
+ npm install --save @effect-aws/client-bedrock-runtime
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ With default BedrockRuntimeClient instance:
15
+
16
+ ```typescript
17
+ import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime";
18
+
19
+ const program = BedrockRuntime.invokeModel(args);
20
+
21
+ const result = pipe(
22
+ program,
23
+ Effect.provide(BedrockRuntime.defaultLayer),
24
+ Effect.runPromise,
25
+ );
26
+ ```
27
+
28
+ With custom BedrockRuntimeClient instance:
29
+
30
+ ```typescript
31
+ import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime";
32
+
33
+ const program = BedrockRuntime.invokeModel(args);
34
+
35
+ const result = await pipe(
36
+ program,
37
+ Effect.provide(
38
+ BedrockRuntime.baseLayer(() => new BedrockRuntimeClient({ region: "eu-central-1" })),
39
+ ),
40
+ Effect.runPromise,
41
+ );
42
+ ```
43
+
44
+ With custom BedrockRuntimeClient configuration:
45
+
46
+ ```typescript
47
+ import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime";
48
+
49
+ const program = BedrockRuntime.invokeModel(args);
50
+
51
+ const result = await pipe(
52
+ program,
53
+ Effect.provide(BedrockRuntime.layer({ region: "eu-central-1" })),
54
+ Effect.runPromiseExit,
55
+ );
56
+ ```
57
+
58
+ or use `BedrockRuntime.baseLayer((default) => new BedrockRuntimeClient({ ...default, region: "eu-central-1" }))`
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { BedrockRuntimeClient } from "@aws-sdk/client-bedrock-runtime";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const BedrockRuntimeClientInstance_base: Context.TagClass<BedrockRuntimeClientInstance, "@effect-aws/client-bedrock-runtime/BedrockRuntimeClientInstance", BedrockRuntimeClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class BedrockRuntimeClientInstance extends BedrockRuntimeClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<BedrockRuntimeClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<BedrockRuntimeClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=BedrockRuntimeClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockRuntimeClientInstance.d.ts","sourceRoot":"","sources":["../../src/BedrockRuntimeClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,4BAA6B,SAAQ,iCAEK;CAAG;AAE1D;;;GAGG;AACH,eAAO,MAAM,IAAI,0EAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,yDAAmD,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.BedrockRuntimeClientInstance = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_bedrock_runtime_1 = require("@aws-sdk/client-bedrock-runtime");
31
+ const effect_1 = require("effect");
32
+ const BedrockRuntimeServiceConfig = __importStar(require("./BedrockRuntimeServiceConfig.js"));
33
+ /**
34
+ * @since 1.0.0
35
+ * @category tags
36
+ */
37
+ class BedrockRuntimeClientInstance extends effect_1.Context.Tag("@effect-aws/client-bedrock-runtime/BedrockRuntimeClientInstance")() {
38
+ }
39
+ exports.BedrockRuntimeClientInstance = BedrockRuntimeClientInstance;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category constructors
43
+ */
44
+ exports.make = effect_1.Effect.flatMap(BedrockRuntimeServiceConfig.toBedrockRuntimeClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_bedrock_runtime_1.BedrockRuntimeClient(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(BedrockRuntimeClientInstance, exports.make);
50
+ //# sourceMappingURL=BedrockRuntimeClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockRuntimeClientInstance.js","sourceRoot":"","sources":["../../src/BedrockRuntimeClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4EAAuE;AACvE,mCAAgD;AAChD,8FAAgF;AAEhF;;;GAGG;AACH,MAAa,4BAA6B,SAAQ,gBAAO,CAAC,GAAG,CAC3D,iEAAiE,CAClE,EAAsD;CAAG;AAF1D,oEAE0D;AAE1D;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,2BAA2B,CAAC,4BAA4B,EACxD,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,6CAAoB,CAAC,MAAM,CAAC,CAAC,EACnD,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,4BAA4B,EAAE,YAAI,CAAC,CAAC"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { type ApplyGuardrailCommandInput, type ApplyGuardrailCommandOutput, type BedrockRuntimeClient, type BedrockRuntimeClientConfig, type ConverseCommandInput, type ConverseCommandOutput, type ConverseStreamCommandInput, type ConverseStreamCommandOutput, type GetAsyncInvokeCommandInput, type GetAsyncInvokeCommandOutput, type InvokeModelCommandInput, type InvokeModelCommandOutput, type InvokeModelWithResponseStreamCommandInput, type InvokeModelWithResponseStreamCommandOutput, type ListAsyncInvokesCommandInput, type ListAsyncInvokesCommandOutput, type StartAsyncInvokeCommandInput, type StartAsyncInvokeCommandOutput } from "@aws-sdk/client-bedrock-runtime";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import * as Instance from "./BedrockRuntimeClientInstance.js";
8
+ import type { AccessDeniedError, ConflictError, InternalServerError, ModelError, ModelNotReadyError, ModelStreamError, ModelTimeoutError, ResourceNotFoundError, ServiceQuotaExceededError, ServiceUnavailableError, ThrottlingError, ValidationError } from "./Errors.js";
9
+ interface BedrockRuntimeService$ {
10
+ readonly _: unique symbol;
11
+ /**
12
+ * @see {@link ApplyGuardrailCommand}
13
+ */
14
+ applyGuardrail(args: ApplyGuardrailCommandInput, options?: HttpHandlerOptions): Effect.Effect<ApplyGuardrailCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
15
+ /**
16
+ * @see {@link ConverseCommand}
17
+ */
18
+ converse(args: ConverseCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConverseCommandOutput, SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
19
+ /**
20
+ * @see {@link ConverseStreamCommand}
21
+ */
22
+ converseStream(args: ConverseStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConverseStreamCommandOutput, SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
23
+ /**
24
+ * @see {@link GetAsyncInvokeCommand}
25
+ */
26
+ getAsyncInvoke(args: GetAsyncInvokeCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAsyncInvokeCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
27
+ /**
28
+ * @see {@link InvokeModelCommand}
29
+ */
30
+ invokeModel(args: InvokeModelCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelCommandOutput, SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
31
+ /**
32
+ * @see {@link InvokeModelWithResponseStreamCommand}
33
+ */
34
+ invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelWithResponseStreamCommandOutput, SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelStreamError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
35
+ /**
36
+ * @see {@link ListAsyncInvokesCommand}
37
+ */
38
+ listAsyncInvokes(args: ListAsyncInvokesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAsyncInvokesCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
39
+ /**
40
+ * @see {@link StartAsyncInvokeCommand}
41
+ */
42
+ startAsyncInvoke(args: StartAsyncInvokeCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartAsyncInvokeCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
43
+ }
44
+ /**
45
+ * @since 1.0.0
46
+ * @category constructors
47
+ */
48
+ export declare const makeBedrockRuntimeService: Effect.Effect<BedrockRuntimeService$, never, Instance.BedrockRuntimeClientInstance>;
49
+ declare const BedrockRuntimeService_base: import("effect/Context").TagClass<BedrockRuntimeService, "@effect-aws/client-bedrock-runtime/BedrockRuntimeService", BedrockRuntimeService$> & Effect.Tag.Proxy<BedrockRuntimeService, BedrockRuntimeService$> & {
50
+ use: <X>(body: (_: BedrockRuntimeService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, BedrockRuntimeService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, BedrockRuntimeService> : Effect.Effect<X, never, BedrockRuntimeService>;
51
+ };
52
+ /**
53
+ * @since 1.0.0
54
+ * @category models
55
+ */
56
+ export declare class BedrockRuntimeService extends BedrockRuntimeService_base {
57
+ static readonly defaultLayer: Layer.Layer<BedrockRuntimeService, never, never>;
58
+ static readonly layer: (config: BedrockRuntimeService.Config) => Layer.Layer<BedrockRuntimeService, never, never>;
59
+ static readonly baseLayer: (evaluate: (defaultConfig: BedrockRuntimeClientConfig) => BedrockRuntimeClient) => Layer.Layer<BedrockRuntimeService, never, never>;
60
+ }
61
+ /**
62
+ * @since 1.0.0
63
+ */
64
+ export declare namespace BedrockRuntimeService {
65
+ /**
66
+ * @since 1.0.0
67
+ */
68
+ interface Config extends Omit<BedrockRuntimeClientConfig, "logger"> {
69
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
70
+ }
71
+ }
72
+ export {};
73
+ //# sourceMappingURL=BedrockRuntimeService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockRuntimeService.d.ts","sourceRoot":"","sources":["../../src/BedrockRuntimeService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAE/B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAE1B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,iCAAiC,CAAC;AACzC,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,mCAAmC,CAAC;AAE9D,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,eAAe,EACf,eAAe,EAChB,MAAM,aAAa,CAAC;AAcrB,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,CAAC,EAAE,OAAO,MAAM,CAAC;IAE1B;;OAEG;IACH,cAAc,CACZ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,2BAA2B,EACzB,QAAQ,GACR,iBA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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.BedrockRuntimeService = exports.makeBedrockRuntimeService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_bedrock_runtime_1 = require("@aws-sdk/client-bedrock-runtime");
31
+ const commons_1 = require("@effect-aws/commons");
32
+ const effect_1 = require("effect");
33
+ const Instance = __importStar(require("./BedrockRuntimeClientInstance.js"));
34
+ const BedrockRuntimeServiceConfig = __importStar(require("./BedrockRuntimeServiceConfig.js"));
35
+ const Errors_js_1 = require("./Errors.js");
36
+ const commands = {
37
+ ApplyGuardrailCommand: client_bedrock_runtime_1.ApplyGuardrailCommand,
38
+ ConverseCommand: client_bedrock_runtime_1.ConverseCommand,
39
+ ConverseStreamCommand: client_bedrock_runtime_1.ConverseStreamCommand,
40
+ GetAsyncInvokeCommand: client_bedrock_runtime_1.GetAsyncInvokeCommand,
41
+ InvokeModelCommand: client_bedrock_runtime_1.InvokeModelCommand,
42
+ InvokeModelWithResponseStreamCommand: client_bedrock_runtime_1.InvokeModelWithResponseStreamCommand,
43
+ ListAsyncInvokesCommand: client_bedrock_runtime_1.ListAsyncInvokesCommand,
44
+ StartAsyncInvokeCommand: client_bedrock_runtime_1.StartAsyncInvokeCommand,
45
+ };
46
+ /**
47
+ * @since 1.0.0
48
+ * @category constructors
49
+ */
50
+ exports.makeBedrockRuntimeService = effect_1.Effect.gen(function* () {
51
+ const client = yield* Instance.BedrockRuntimeClientInstance;
52
+ return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
53
+ });
54
+ /**
55
+ * @since 1.0.0
56
+ * @category models
57
+ */
58
+ class BedrockRuntimeService extends effect_1.Effect.Tag("@effect-aws/client-bedrock-runtime/BedrockRuntimeService")() {
59
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeBedrockRuntimeService).pipe(effect_1.Layer.provide(Instance.layer));
60
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeBedrockRuntimeService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(BedrockRuntimeServiceConfig.setBedrockRuntimeServiceConfig(config)));
61
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeBedrockRuntimeService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.BedrockRuntimeClientInstance, effect_1.Effect.map(BedrockRuntimeServiceConfig.toBedrockRuntimeClientConfig, evaluate))));
62
+ }
63
+ exports.BedrockRuntimeService = BedrockRuntimeService;
64
+ //# sourceMappingURL=BedrockRuntimeService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockRuntimeService.js","sourceRoot":"","sources":["../../src/BedrockRuntimeService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4EA2ByC;AAEzC,iDAA8C;AAC9C,mCAAuC;AACvC,4EAA8D;AAC9D,8FAAgF;AAehF,2CAA+C;AAE/C,MAAM,QAAQ,GAAG;IACf,qBAAqB,EAArB,8CAAqB;IACrB,eAAe,EAAf,w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Q,CAAC,CAC/E,CACF,CACF,CAAC;;AApBN,sDAqBC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { BedrockRuntimeClientConfig } from "@aws-sdk/client-bedrock-runtime";
5
+ import { Effect, Layer } from "effect";
6
+ import type { BedrockRuntimeService } from "./BedrockRuntimeService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category bedrock-runtime service config
10
+ */
11
+ export declare const withBedrockRuntimeServiceConfig: {
12
+ (config: BedrockRuntimeService.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: BedrockRuntimeService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category bedrock-runtime service config
18
+ */
19
+ export declare const setBedrockRuntimeServiceConfig: (config: BedrockRuntimeService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toBedrockRuntimeClientConfig: Effect.Effect<BedrockRuntimeClientConfig>;
25
+ //# sourceMappingURL=BedrockRuntimeServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockRuntimeServiceConfig.d.ts","sourceRoot":"","sources":["../../src/BedrockRuntimeServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAElF,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAWxE;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAE;IAC5C,CAAC,MAAM,EAAE,qBAAqB,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;IAC5G,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,qBAAqB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKzG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,WAAY,sBAAsB,MAAM,qCAClB,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAQjF,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toBedrockRuntimeClientConfig = exports.setBedrockRuntimeServiceConfig = exports.withBedrockRuntimeServiceConfig = 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 bedrock-runtime service config
11
+ */
12
+ const currentBedrockRuntimeServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-bedrock-runtime/currentBedrockRuntimeServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category bedrock-runtime service config
16
+ */
17
+ exports.withBedrockRuntimeServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentBedrockRuntimeServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category bedrock-runtime service config
21
+ */
22
+ const setBedrockRuntimeServiceConfig = (config) => effect_1.Layer.locallyScoped(currentBedrockRuntimeServiceConfig, config);
23
+ exports.setBedrockRuntimeServiceConfig = setBedrockRuntimeServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toBedrockRuntimeClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentBedrockRuntimeServiceConfig);
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=BedrockRuntimeServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockRuntimeServiceConfig.js","sourceRoot":"","sources":["../../src/BedrockRuntimeServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,kCAAkC,GAAG,IAAA,yBAAW,EACpD,uEAAuE,EACvE,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAA+B,EAAE,CAAC,CAC5D,CAAC;AAEF;;;GAGG;AACU,QAAA,+BAA+B,GAGxC,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAoC,EAA0B,EAAE,CACxG,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,kCAAkC,EAAE,MAAM,CAAC,CACrE,CAAC;AAEF;;;GAGG;AACI,MAAM,8BAA8B,GAAG,CAAC,MAAoC,EAAE,EAAE,CACrF,cAAK,CAAC,aAAa,CAAC,kCAAkC,EAAE,MAAM,CAAC,CAAC;AADrD,QAAA,8BAA8B,kCACuB;AAElE;;;GAGG;AACU,QAAA,4BAA4B,GAA8C,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACzG,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IAErG,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,19 @@
1
+ import type { AccessDeniedException, ConflictException, InternalServerException, ModelErrorException, ModelNotReadyException, ModelStreamErrorException, ModelTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, ValidationException } from "@aws-sdk/client-bedrock-runtime";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "ModelErrorException", "ModelNotReadyException", "ModelStreamErrorException", "ModelTimeoutException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ServiceUnavailableException", "ThrottlingException", "ValidationException"];
5
+ export type AccessDeniedError = TaggedException<AccessDeniedException>;
6
+ export type ConflictError = TaggedException<ConflictException>;
7
+ export type InternalServerError = TaggedException<InternalServerException>;
8
+ export type ModelError = TaggedException<ModelErrorException>;
9
+ export type ModelNotReadyError = TaggedException<ModelNotReadyException>;
10
+ export type ModelStreamError = TaggedException<ModelStreamErrorException>;
11
+ export type ModelTimeoutError = TaggedException<ModelTimeoutException>;
12
+ export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
13
+ export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
14
+ export type ServiceUnavailableError = TaggedException<ServiceUnavailableException>;
15
+ export type ThrottlingError = TaggedException<ThrottlingException>;
16
+ export type ValidationError = TaggedException<ValidationException>;
17
+ export type SdkError = CommonSdkError;
18
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
19
+ //# 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,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,sUAanB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,UAAU,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,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,20 @@
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
+ "ConflictException",
8
+ "InternalServerException",
9
+ "ModelErrorException",
10
+ "ModelNotReadyException",
11
+ "ModelStreamErrorException",
12
+ "ModelTimeoutException",
13
+ "ResourceNotFoundException",
14
+ "ServiceQuotaExceededException",
15
+ "ServiceUnavailableException",
16
+ "ThrottlingException",
17
+ "ValidationException",
18
+ ];
19
+ exports.SdkError = commons_1.SdkError;
20
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAeA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,2BAA2B;IAC3B,uBAAuB;IACvB,2BAA2B;IAC3B,+BAA+B;IAC/B,6BAA6B;IAC7B,qBAAqB;IACrB,qBAAqB;CACb,CAAC;AAgBE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { BedrockRuntimeService } from "./BedrockRuntimeService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as BedrockRuntimeClientInstance from "./BedrockRuntimeClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as BedrockRuntimeServiceConfig from "./BedrockRuntimeServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./BedrockRuntimeService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias BedrockRuntimeService
25
+ */
26
+ export declare namespace BedrockRuntime {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias BedrockRuntimeService.Config
30
+ */
31
+ type Config = BedrockRuntimeService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias BedrockRuntimeService
37
+ */
38
+ export declare const BedrockRuntime: typeof BedrockRuntimeService;
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,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,4BAA4B,MAAM,mCAAmC,CAAC;AAElF;;GAEG;AACH,OAAO,KAAK,2BAA2B,MAAM,kCAAkC,CAAC;AAEhF;;GAEG;AACH,cAAc,4BAA4B,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC;;;OAGG;IACH,KAAY,MAAM,GAAG,qBAAqB,CAAC,MAAM,CAAC;CACnD;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,8BAAwB,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.BedrockRuntime = exports.BedrockRuntimeServiceConfig = exports.BedrockRuntimeClientInstance = void 0;
30
+ /**
31
+ * @since 1.0.0
32
+ */
33
+ const BedrockRuntimeService_js_1 = require("./BedrockRuntimeService.js");
34
+ /**
35
+ * @since 1.0.0
36
+ */
37
+ __exportStar(require("./Errors.js"), exports);
38
+ /**
39
+ * @since 1.0.0
40
+ */
41
+ exports.BedrockRuntimeClientInstance = __importStar(require("./BedrockRuntimeClientInstance.js"));
42
+ /**
43
+ * @since 1.0.0
44
+ */
45
+ exports.BedrockRuntimeServiceConfig = __importStar(require("./BedrockRuntimeServiceConfig.js"));
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ __exportStar(require("./BedrockRuntimeService.js"), exports);
50
+ /**
51
+ * @since 1.0.0
52
+ * @category exports
53
+ * @alias BedrockRuntimeService
54
+ */
55
+ exports.BedrockRuntime = BedrockRuntimeService_js_1.BedrockRuntimeService;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,yEAAmE;AAEnE;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,kGAAkF;AAElF;;GAEG;AACH,gGAAgF;AAEhF;;GAEG;AACH,6DAA2C;AAe3C;;;;GAIG;AACU,QAAA,cAAc,GAAG,gDAAqB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { BedrockRuntimeClient } from "@aws-sdk/client-bedrock-runtime";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const BedrockRuntimeClientInstance_base: Context.TagClass<BedrockRuntimeClientInstance, "@effect-aws/client-bedrock-runtime/BedrockRuntimeClientInstance", BedrockRuntimeClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class BedrockRuntimeClientInstance extends BedrockRuntimeClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<BedrockRuntimeClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<BedrockRuntimeClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=BedrockRuntimeClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BedrockRuntimeClientInstance.d.ts","sourceRoot":"","sources":["../../src/BedrockRuntimeClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,4BAA6B,SAAQ,iCAEK;CAAG;AAE1D;;;GAGG;AACH,eAAO,MAAM,IAAI,0EAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,yDAAmD,CAAC"}