@effect-aws/client-bedrock-runtime 1.10.9 → 2.0.0-beta.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 (37) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/BedrockRuntimeClientInstance.d.ts +2 -2
  4. package/dist/dts/BedrockRuntimeClientInstance.d.ts.map +1 -1
  5. package/dist/dts/BedrockRuntimeService.d.ts +12 -14
  6. package/dist/dts/BedrockRuntimeService.d.ts.map +1 -1
  7. package/dist/dts/BedrockRuntimeServiceConfig.d.ts.map +1 -1
  8. package/dist/esm/BedrockRuntimeClientInstance.js +3 -3
  9. package/dist/esm/BedrockRuntimeClientInstance.js.map +1 -1
  10. package/dist/esm/BedrockRuntimeService.js +2 -2
  11. package/dist/esm/BedrockRuntimeService.js.map +1 -1
  12. package/dist/esm/BedrockRuntimeServiceConfig.js +5 -6
  13. package/dist/esm/BedrockRuntimeServiceConfig.js.map +1 -1
  14. package/package.json +8 -14
  15. package/src/BedrockRuntimeClientInstance.ts +7 -5
  16. package/src/BedrockRuntimeService.ts +13 -13
  17. package/src/BedrockRuntimeServiceConfig.ts +6 -7
  18. package/dist/cjs/BedrockRuntimeClientInstance.d.ts +0 -24
  19. package/dist/cjs/BedrockRuntimeClientInstance.d.ts.map +0 -1
  20. package/dist/cjs/BedrockRuntimeClientInstance.js +0 -50
  21. package/dist/cjs/BedrockRuntimeClientInstance.js.map +0 -1
  22. package/dist/cjs/BedrockRuntimeService.d.ts +0 -86
  23. package/dist/cjs/BedrockRuntimeService.d.ts.map +0 -1
  24. package/dist/cjs/BedrockRuntimeService.js +0 -69
  25. package/dist/cjs/BedrockRuntimeService.js.map +0 -1
  26. package/dist/cjs/BedrockRuntimeServiceConfig.d.ts +0 -25
  27. package/dist/cjs/BedrockRuntimeServiceConfig.d.ts.map +0 -1
  28. package/dist/cjs/BedrockRuntimeServiceConfig.js +0 -35
  29. package/dist/cjs/BedrockRuntimeServiceConfig.js.map +0 -1
  30. package/dist/cjs/Errors.d.ts +0 -19
  31. package/dist/cjs/Errors.d.ts.map +0 -1
  32. package/dist/cjs/Errors.js +0 -18
  33. package/dist/cjs/Errors.js.map +0 -1
  34. package/dist/cjs/index.d.ts +0 -44
  35. package/dist/cjs/index.d.ts.map +0 -1
  36. package/dist/cjs/index.js +0 -56
  37. package/dist/cjs/index.js.map +0 -1
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2025 Victor Korzunin
1
+ Copyright (c) 2026 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
package/README.md CHANGED
@@ -16,7 +16,7 @@ With default BedrockRuntimeClient instance:
16
16
  ```typescript
17
17
  import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime";
18
18
 
19
- const program = BedrockRuntime.invokeModel(args);
19
+ const program = BedrockRuntime.use((svc) => svc.invokeModel(args));
20
20
 
21
21
  const result = pipe(
22
22
  program,
@@ -30,7 +30,7 @@ With custom BedrockRuntimeClient instance:
30
30
  ```typescript
31
31
  import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime";
32
32
 
33
- const program = BedrockRuntime.invokeModel(args);
33
+ const program = BedrockRuntime.use((svc) => svc.invokeModel(args));
34
34
 
35
35
  const result = await pipe(
36
36
  program,
@@ -46,7 +46,7 @@ With custom BedrockRuntimeClient configuration:
46
46
  ```typescript
47
47
  import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime";
48
48
 
49
- const program = BedrockRuntime.invokeModel(args);
49
+ const program = BedrockRuntime.use((svc) => svc.invokeModel(args));
50
50
 
51
51
  const result = await pipe(
52
52
  program,
@@ -2,8 +2,8 @@
2
2
  * @since 1.0.0
3
3
  */
4
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>;
5
+ import { Effect, Layer, ServiceMap } from "effect";
6
+ declare const BedrockRuntimeClientInstance_base: ServiceMap.ServiceClass<BedrockRuntimeClientInstance, "@effect-aws/client-bedrock-runtime/BedrockRuntimeClientInstance", BedrockRuntimeClient>;
7
7
  /**
8
8
  * @since 1.0.0
9
9
  * @category tags
@@ -1 +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"}
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,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;;AAGnD;;;GAGG;AACH,qBAAa,4BACX,SAAQ,iCAEP;CACD;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI,0EAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,yDAAmD,CAAC"}
@@ -4,7 +4,7 @@
4
4
  import { type ApplyGuardrailCommandInput, type ApplyGuardrailCommandOutput, type BedrockRuntimeClient, type BedrockRuntimeClientConfig, type ConverseCommandInput, type ConverseCommandOutput, type ConverseStreamCommandInput, type ConverseStreamCommandOutput, type CountTokensCommandInput, type CountTokensCommandOutput, type GetAsyncInvokeCommandInput, type GetAsyncInvokeCommandOutput, type InvokeModelCommandInput, type InvokeModelCommandOutput, type InvokeModelWithBidirectionalStreamCommandInput, type InvokeModelWithBidirectionalStreamCommandOutput, type InvokeModelWithResponseStreamCommandInput, type InvokeModelWithResponseStreamCommandOutput, type ListAsyncInvokesCommandInput, type ListAsyncInvokesCommandOutput, type StartAsyncInvokeCommandInput, type StartAsyncInvokeCommandOutput } from "@aws-sdk/client-bedrock-runtime";
5
5
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
6
6
  import type { Cause } from "effect";
7
- import { Effect, Layer } from "effect";
7
+ import { Effect, Layer, ServiceMap } from "effect";
8
8
  import * as Instance from "./BedrockRuntimeClientInstance.js";
9
9
  import type { AccessDeniedError, ConflictError, InternalServerError, ModelError, ModelNotReadyError, ModelStreamError, ModelTimeoutError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ServiceUnavailableError, ThrottlingError, ValidationError } from "./Errors.js";
10
10
  interface BedrockRuntimeService$ {
@@ -12,52 +12,50 @@ interface BedrockRuntimeService$ {
12
12
  /**
13
13
  * @see {@link ApplyGuardrailCommand}
14
14
  */
15
- applyGuardrail(args: ApplyGuardrailCommandInput, options?: HttpHandlerOptions): Effect.Effect<ApplyGuardrailCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
15
+ applyGuardrail(args: ApplyGuardrailCommandInput, options?: HttpHandlerOptions): Effect.Effect<ApplyGuardrailCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
16
16
  /**
17
17
  * @see {@link ConverseCommand}
18
18
  */
19
- converse(args: ConverseCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConverseCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
19
+ converse(args: ConverseCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConverseCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
20
20
  /**
21
21
  * @see {@link ConverseStreamCommand}
22
22
  */
23
- converseStream(args: ConverseStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConverseStreamCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
23
+ converseStream(args: ConverseStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConverseStreamCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
24
24
  /**
25
25
  * @see {@link CountTokensCommand}
26
26
  */
27
- countTokens(args: CountTokensCommandInput, options?: HttpHandlerOptions): Effect.Effect<CountTokensCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
27
+ countTokens(args: CountTokensCommandInput, options?: HttpHandlerOptions): Effect.Effect<CountTokensCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
28
28
  /**
29
29
  * @see {@link GetAsyncInvokeCommand}
30
30
  */
31
- getAsyncInvoke(args: GetAsyncInvokeCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAsyncInvokeCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
31
+ getAsyncInvoke(args: GetAsyncInvokeCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAsyncInvokeCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
32
32
  /**
33
33
  * @see {@link InvokeModelCommand}
34
34
  */
35
- invokeModel(args: InvokeModelCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
35
+ invokeModel(args: InvokeModelCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
36
36
  /**
37
37
  * @see {@link InvokeModelWithBidirectionalStreamCommand}
38
38
  */
39
- invokeModelWithBidirectionalStream(args: InvokeModelWithBidirectionalStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelWithBidirectionalStreamCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelStreamError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
39
+ invokeModelWithBidirectionalStream(args: InvokeModelWithBidirectionalStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelWithBidirectionalStreamCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelStreamError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
40
40
  /**
41
41
  * @see {@link InvokeModelWithResponseStreamCommand}
42
42
  */
43
- invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelWithResponseStreamCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelStreamError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
43
+ invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelWithResponseStreamCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelStreamError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
44
44
  /**
45
45
  * @see {@link ListAsyncInvokesCommand}
46
46
  */
47
- listAsyncInvokes(args: ListAsyncInvokesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAsyncInvokesCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
47
+ listAsyncInvokes(args: ListAsyncInvokesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAsyncInvokesCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
48
48
  /**
49
49
  * @see {@link StartAsyncInvokeCommand}
50
50
  */
51
- startAsyncInvoke(args: StartAsyncInvokeCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartAsyncInvokeCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
51
+ startAsyncInvoke(args: StartAsyncInvokeCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartAsyncInvokeCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
52
52
  }
53
53
  /**
54
54
  * @since 1.0.0
55
55
  * @category constructors
56
56
  */
57
57
  export declare const makeBedrockRuntimeService: Effect.Effect<BedrockRuntimeService$, never, Instance.BedrockRuntimeClientInstance>;
58
- declare const BedrockRuntimeService_base: import("effect/Context").TagClass<BedrockRuntimeService, "@effect-aws/client-bedrock-runtime/BedrockRuntimeService", BedrockRuntimeService$> & Effect.Tag.Proxy<BedrockRuntimeService, BedrockRuntimeService$> & {
59
- 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, Cause.UnknownException, BedrockRuntimeService> : Effect.Effect<X, never, BedrockRuntimeService>;
60
- };
58
+ declare const BedrockRuntimeService_base: ServiceMap.ServiceClass<BedrockRuntimeService, "@effect-aws/client-bedrock-runtime/BedrockRuntimeService", BedrockRuntimeService$>;
61
59
  /**
62
60
  * @since 1.0.0
63
61
  * @category models
@@ -1 +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,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,8CAA8C,EACnD,KAAK,+CAA+C,EAEpD,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAA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AE,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,qCACxB,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAQjF,CAAC"}
@@ -2,13 +2,13 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
  import { BedrockRuntimeClient } from "@aws-sdk/client-bedrock-runtime";
5
- import { Context, Effect, Layer } from "effect";
5
+ import { Effect, Layer, ServiceMap } from "effect";
6
6
  import * as BedrockRuntimeServiceConfig from "./BedrockRuntimeServiceConfig.js";
7
7
  /**
8
8
  * @since 1.0.0
9
9
  * @category tags
10
10
  */
11
- export class BedrockRuntimeClientInstance extends Context.Tag("@effect-aws/client-bedrock-runtime/BedrockRuntimeClientInstance")() {
11
+ export class BedrockRuntimeClientInstance extends ServiceMap.Service()("@effect-aws/client-bedrock-runtime/BedrockRuntimeClientInstance") {
12
12
  }
13
13
  /**
14
14
  * @since 1.0.0
@@ -19,5 +19,5 @@ export const make = Effect.flatMap(BedrockRuntimeServiceConfig.toBedrockRuntimeC
19
19
  * @since 1.0.0
20
20
  * @category layers
21
21
  */
22
- export const layer = Layer.scoped(BedrockRuntimeClientInstance, make);
22
+ export const layer = Layer.effect(BedrockRuntimeClientInstance, make);
23
23
  //# sourceMappingURL=BedrockRuntimeClientInstance.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BedrockRuntimeClientInstance.js","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;AAChD,OAAO,KAAK,2BAA2B,MAAM,kCAAkC,CAAC;AAEhF;;;GAGG;AACH,MAAM,OAAO,4BAA6B,SAAQ,OAAO,CAAC,GAAG,CAC3D,iEAAiE,CAClE,EAAsD;CAAG;AAE1D;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,2BAA2B,CAAC,4BAA4B,EACxD,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC,EACnD,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"BedrockRuntimeClientInstance.js","sourceRoot":"","sources":["../../src/BedrockRuntimeClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,KAAK,2BAA2B,MAAM,kCAAkC,CAAC;AAEhF;;;GAGG;AACH,MAAM,OAAO,4BACX,SAAQ,UAAU,CAAC,OAAO,EAAsD,CAC9E,iEAAiE,CAClE;CACD;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,2BAA2B,CAAC,4BAA4B,EACxD,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC,EACnD,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAC"}
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { ApplyGuardrailCommand, ConverseCommand, ConverseStreamCommand, CountTokensCommand, GetAsyncInvokeCommand, InvokeModelCommand, InvokeModelWithBidirectionalStreamCommand, InvokeModelWithResponseStreamCommand, ListAsyncInvokesCommand, StartAsyncInvokeCommand, } from "@aws-sdk/client-bedrock-runtime";
5
5
  import { Service } from "@effect-aws/commons";
6
- import { Effect, Layer } from "effect";
6
+ import { Effect, Layer, ServiceMap } from "effect";
7
7
  import * as Instance from "./BedrockRuntimeClientInstance.js";
8
8
  import * as BedrockRuntimeServiceConfig from "./BedrockRuntimeServiceConfig.js";
9
9
  import { AllServiceErrors } from "./Errors.js";
@@ -34,7 +34,7 @@ export const makeBedrockRuntimeService = Effect.gen(function* () {
34
34
  * @since 1.0.0
35
35
  * @category models
36
36
  */
37
- export class BedrockRuntimeService extends Effect.Tag("@effect-aws/client-bedrock-runtime/BedrockRuntimeService")() {
37
+ export class BedrockRuntimeService extends ServiceMap.Service()("@effect-aws/client-bedrock-runtime/BedrockRuntimeService") {
38
38
  static defaultLayer = Layer.effect(this, makeBedrockRuntimeService).pipe(Layer.provide(Instance.layer));
39
39
  static layer = (config) => Layer.effect(this, makeBedrockRuntimeService).pipe(Layer.provide(Instance.layer), Layer.provide(BedrockRuntimeServiceConfig.setBedrockRuntimeServiceConfig(config)));
40
40
  static baseLayer = (evaluate) => Layer.effect(this, makeBedrockRuntimeService).pipe(Layer.provide(Layer.effect(Instance.BedrockRuntimeClientInstance, Effect.map(BedrockRuntimeServiceConfig.toBedrockRuntimeClientConfig, evaluate))));
@@ -1 +1 @@
1
- {"version":3,"file":"BedrockRuntimeService.js","sourceRoot":"","sources":["../../src/BedrockRuntimeService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,qBAAqB,EAKrB,eAAe,EAGf,qBAAqB,EAGrB,kBAAkB,EAGlB,qBAAqB,EAGrB,kBAAkB,EAGlB,yCAAyC,EAGzC,oCAAoC,EAGpC,uBAAuB,EAGvB,uBAAuB,GAGxB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,mCAAmC,CAAC;AAC9D,OAAO,KAAK,2BAA2B,MAAM,kCAAkC,CAAC;AAgBhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,QAAQ,GAAG;IACf,qBAAqB;IACrB,eAAe;IACf,qBAAqB;IACrB,kBAAkB;IAClB,qBAAqB;IACrB,kBAAkB;IAClB,yCAAyC;IACzC,oCAAoC;IACpC,uBAAuB;IACvB,uBAAuB;CACxB,CAAC;AAmMF;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3D,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAE5D,OAAO,KAAK,CAAC,CAAC,OAAO,CAAC,qBAAqB,CACz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AAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,2BAA2B,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC,CAClF,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAA6E,EAC7E,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC,IAAI,CAChD,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,4BAA4B,EACrC,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAC/E,CACF,CACF,CAAC"}
@@ -1,28 +1,27 @@
1
1
  import { ServiceLogger } from "@effect-aws/commons";
2
- import { Effect, FiberRef, Layer } from "effect";
2
+ import { Effect, Layer, ServiceMap } from "effect";
3
3
  import { dual } from "effect/Function";
4
- import { globalValue } from "effect/GlobalValue";
5
4
  /**
6
5
  * @since 1.0.0
7
6
  * @category bedrock-runtime service config
8
7
  */
9
- const currentBedrockRuntimeServiceConfig = globalValue("@effect-aws/client-bedrock-runtime/currentBedrockRuntimeServiceConfig", () => FiberRef.unsafeMake({}));
8
+ const currentBedrockRuntimeServiceConfig = ServiceMap.Reference("@effect-aws/client-bedrock-runtime/currentBedrockRuntimeServiceConfig", { defaultValue: () => ({}) });
10
9
  /**
11
10
  * @since 1.0.0
12
11
  * @category bedrock-runtime service config
13
12
  */
14
- export const withBedrockRuntimeServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentBedrockRuntimeServiceConfig, config));
13
+ export const withBedrockRuntimeServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentBedrockRuntimeServiceConfig, config));
15
14
  /**
16
15
  * @since 1.0.0
17
16
  * @category bedrock-runtime service config
18
17
  */
19
- export const setBedrockRuntimeServiceConfig = (config) => Layer.locallyScoped(currentBedrockRuntimeServiceConfig, config);
18
+ export const setBedrockRuntimeServiceConfig = (config) => Layer.succeed(currentBedrockRuntimeServiceConfig, config);
20
19
  /**
21
20
  * @since 1.0.0
22
21
  * @category adapters
23
22
  */
24
23
  export const toBedrockRuntimeClientConfig = Effect.gen(function* () {
25
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentBedrockRuntimeServiceConfig);
24
+ const { logger: serviceLogger, ...config } = yield* currentBedrockRuntimeServiceConfig;
26
25
  const logger = serviceLogger === true
27
26
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
28
27
  : (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
@@ -1 +1 @@
1
- {"version":3,"file":"BedrockRuntimeServiceConfig.js","sourceRoot":"","sources":["../../src/BedrockRuntimeServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;GAGG;AACH,MAAM,kCAAkC,GAAG,WAAW,CACpD,uEAAuE,EACvE,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAA+B,EAAE,CAAC,CAC5D,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAGxC,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAoC,EAA0B,EAAE,CACxG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,kCAAkC,EAAE,MAAM,CAAC,CACrE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,MAAoC,EAAE,EAAE,CACrF,KAAK,CAAC,aAAa,CAAC,kCAAkC,EAAE,MAAM,CAAC,CAAC;AAElE;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAA8C,MAAM,CAAC,GA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ACrF,KAAK,CAAC,OAAO,CAAC,kCAAkC,EAAE,MAAM,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAA8C,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACzG,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,kCAAkC,CAAC;IAEvF,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-aws/client-bedrock-runtime",
3
- "version": "1.10.9",
3
+ "version": "2.0.0-beta.0",
4
4
  "description": "Effectful AWS Bedrock Runtime client",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,40 +16,34 @@
16
16
  "homepage": "https://floydspace.github.io/effect-aws/docs/client-bedrock-runtime",
17
17
  "dependencies": {
18
18
  "@aws-sdk/client-bedrock-runtime": "^3",
19
- "@effect-aws/commons": "^0.3.1"
19
+ "@effect-aws/commons": "^1.0.0-beta.0"
20
20
  },
21
21
  "peerDependencies": {
22
- "effect": ">=3.0.4 <4.0.0"
22
+ "effect": ">=4.0.0 <5.0.0"
23
23
  },
24
- "main": "./dist/cjs/index.js",
25
24
  "module": "./dist/esm/index.js",
26
25
  "types": "./dist/dts/index.d.ts",
27
26
  "exports": {
28
27
  "./package.json": "./package.json",
29
28
  ".": {
30
29
  "types": "./dist/dts/index.d.ts",
31
- "import": "./dist/esm/index.js",
32
- "default": "./dist/cjs/index.js"
30
+ "import": "./dist/esm/index.js"
33
31
  },
34
32
  "./BedrockRuntimeClientInstance": {
35
33
  "types": "./dist/dts/BedrockRuntimeClientInstance.d.ts",
36
- "import": "./dist/esm/BedrockRuntimeClientInstance.js",
37
- "default": "./dist/cjs/BedrockRuntimeClientInstance.js"
34
+ "import": "./dist/esm/BedrockRuntimeClientInstance.js"
38
35
  },
39
36
  "./BedrockRuntimeService": {
40
37
  "types": "./dist/dts/BedrockRuntimeService.d.ts",
41
- "import": "./dist/esm/BedrockRuntimeService.js",
42
- "default": "./dist/cjs/BedrockRuntimeService.js"
38
+ "import": "./dist/esm/BedrockRuntimeService.js"
43
39
  },
44
40
  "./BedrockRuntimeServiceConfig": {
45
41
  "types": "./dist/dts/BedrockRuntimeServiceConfig.d.ts",
46
- "import": "./dist/esm/BedrockRuntimeServiceConfig.js",
47
- "default": "./dist/cjs/BedrockRuntimeServiceConfig.js"
42
+ "import": "./dist/esm/BedrockRuntimeServiceConfig.js"
48
43
  },
49
44
  "./Errors": {
50
45
  "types": "./dist/dts/Errors.d.ts",
51
- "import": "./dist/esm/Errors.js",
52
- "default": "./dist/cjs/Errors.js"
46
+ "import": "./dist/esm/Errors.js"
53
47
  }
54
48
  },
55
49
  "typesVersions": {
@@ -2,16 +2,18 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
  import { BedrockRuntimeClient } from "@aws-sdk/client-bedrock-runtime";
5
- import { Context, Effect, Layer } from "effect";
5
+ import { Effect, Layer, ServiceMap } from "effect";
6
6
  import * as BedrockRuntimeServiceConfig from "./BedrockRuntimeServiceConfig.js";
7
7
 
8
8
  /**
9
9
  * @since 1.0.0
10
10
  * @category tags
11
11
  */
12
- export class BedrockRuntimeClientInstance extends Context.Tag(
13
- "@effect-aws/client-bedrock-runtime/BedrockRuntimeClientInstance",
14
- )<BedrockRuntimeClientInstance, BedrockRuntimeClient>() {}
12
+ export class BedrockRuntimeClientInstance
13
+ extends ServiceMap.Service<BedrockRuntimeClientInstance, BedrockRuntimeClient>()(
14
+ "@effect-aws/client-bedrock-runtime/BedrockRuntimeClientInstance",
15
+ )
16
+ {}
15
17
 
16
18
  /**
17
19
  * @since 1.0.0
@@ -30,4 +32,4 @@ export const make = Effect.flatMap(
30
32
  * @since 1.0.0
31
33
  * @category layers
32
34
  */
33
- export const layer = Layer.scoped(BedrockRuntimeClientInstance, make);
35
+ export const layer = Layer.effect(BedrockRuntimeClientInstance, make);
@@ -38,7 +38,7 @@ import {
38
38
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
39
39
  import { Service } from "@effect-aws/commons";
40
40
  import type { Cause } from "effect";
41
- import { Effect, Layer } from "effect";
41
+ import { Effect, Layer, ServiceMap } from "effect";
42
42
  import * as Instance from "./BedrockRuntimeClientInstance.js";
43
43
  import * as BedrockRuntimeServiceConfig from "./BedrockRuntimeServiceConfig.js";
44
44
  import type {
@@ -82,7 +82,7 @@ interface BedrockRuntimeService$ {
82
82
  options?: HttpHandlerOptions,
83
83
  ): Effect.Effect<
84
84
  ApplyGuardrailCommandOutput,
85
- | Cause.TimeoutException
85
+ | Cause.TimeoutError
86
86
  | SdkError
87
87
  | AccessDeniedError
88
88
  | InternalServerError
@@ -101,7 +101,7 @@ interface BedrockRuntimeService$ {
101
101
  options?: HttpHandlerOptions,
102
102
  ): Effect.Effect<
103
103
  ConverseCommandOutput,
104
- | Cause.TimeoutException
104
+ | Cause.TimeoutError
105
105
  | SdkError
106
106
  | AccessDeniedError
107
107
  | InternalServerError
@@ -122,7 +122,7 @@ interface BedrockRuntimeService$ {
122
122
  options?: HttpHandlerOptions,
123
123
  ): Effect.Effect<
124
124
  ConverseStreamCommandOutput,
125
- | Cause.TimeoutException
125
+ | Cause.TimeoutError
126
126
  | SdkError
127
127
  | AccessDeniedError
128
128
  | InternalServerError
@@ -143,7 +143,7 @@ interface BedrockRuntimeService$ {
143
143
  options?: HttpHandlerOptions,
144
144
  ): Effect.Effect<
145
145
  CountTokensCommandOutput,
146
- | Cause.TimeoutException
146
+ | Cause.TimeoutError
147
147
  | SdkError
148
148
  | AccessDeniedError
149
149
  | InternalServerError
@@ -161,7 +161,7 @@ interface BedrockRuntimeService$ {
161
161
  options?: HttpHandlerOptions,
162
162
  ): Effect.Effect<
163
163
  GetAsyncInvokeCommandOutput,
164
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
164
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
165
165
  >;
166
166
 
167
167
  /**
@@ -172,7 +172,7 @@ interface BedrockRuntimeService$ {
172
172
  options?: HttpHandlerOptions,
173
173
  ): Effect.Effect<
174
174
  InvokeModelCommandOutput,
175
- | Cause.TimeoutException
175
+ | Cause.TimeoutError
176
176
  | SdkError
177
177
  | AccessDeniedError
178
178
  | InternalServerError
@@ -194,7 +194,7 @@ interface BedrockRuntimeService$ {
194
194
  options?: HttpHandlerOptions,
195
195
  ): Effect.Effect<
196
196
  InvokeModelWithBidirectionalStreamCommandOutput,
197
- | Cause.TimeoutException
197
+ | Cause.TimeoutError
198
198
  | SdkError
199
199
  | AccessDeniedError
200
200
  | InternalServerError
@@ -217,7 +217,7 @@ interface BedrockRuntimeService$ {
217
217
  options?: HttpHandlerOptions,
218
218
  ): Effect.Effect<
219
219
  InvokeModelWithResponseStreamCommandOutput,
220
- | Cause.TimeoutException
220
+ | Cause.TimeoutError
221
221
  | SdkError
222
222
  | AccessDeniedError
223
223
  | InternalServerError
@@ -240,7 +240,7 @@ interface BedrockRuntimeService$ {
240
240
  options?: HttpHandlerOptions,
241
241
  ): Effect.Effect<
242
242
  ListAsyncInvokesCommandOutput,
243
- Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
243
+ Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError
244
244
  >;
245
245
 
246
246
  /**
@@ -251,7 +251,7 @@ interface BedrockRuntimeService$ {
251
251
  options?: HttpHandlerOptions,
252
252
  ): Effect.Effect<
253
253
  StartAsyncInvokeCommandOutput,
254
- | Cause.TimeoutException
254
+ | Cause.TimeoutError
255
255
  | SdkError
256
256
  | AccessDeniedError
257
257
  | ConflictError
@@ -285,10 +285,10 @@ export const makeBedrockRuntimeService = Effect.gen(function*() {
285
285
  * @since 1.0.0
286
286
  * @category models
287
287
  */
288
- export class BedrockRuntimeService extends Effect.Tag("@effect-aws/client-bedrock-runtime/BedrockRuntimeService")<
288
+ export class BedrockRuntimeService extends ServiceMap.Service<
289
289
  BedrockRuntimeService,
290
290
  BedrockRuntimeService$
291
- >() {
291
+ >()("@effect-aws/client-bedrock-runtime/BedrockRuntimeService") {
292
292
  static readonly defaultLayer = Layer.effect(this, makeBedrockRuntimeService).pipe(Layer.provide(Instance.layer));
293
293
  static readonly layer = (config: BedrockRuntimeService.Config) =>
294
294
  Layer.effect(this, makeBedrockRuntimeService).pipe(
@@ -3,18 +3,17 @@
3
3
  */
4
4
  import type { BedrockRuntimeClientConfig } from "@aws-sdk/client-bedrock-runtime";
5
5
  import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "effect";
6
+ import { Effect, Layer, ServiceMap } from "effect";
7
7
  import { dual } from "effect/Function";
8
- import { globalValue } from "effect/GlobalValue";
9
8
  import type { BedrockRuntimeService } from "./BedrockRuntimeService.js";
10
9
 
11
10
  /**
12
11
  * @since 1.0.0
13
12
  * @category bedrock-runtime service config
14
13
  */
15
- const currentBedrockRuntimeServiceConfig = globalValue(
14
+ const currentBedrockRuntimeServiceConfig = ServiceMap.Reference<BedrockRuntimeService.Config>(
16
15
  "@effect-aws/client-bedrock-runtime/currentBedrockRuntimeServiceConfig",
17
- () => FiberRef.unsafeMake<BedrockRuntimeService.Config>({}),
16
+ { defaultValue: () => ({}) },
18
17
  );
19
18
 
20
19
  /**
@@ -27,7 +26,7 @@ export const withBedrockRuntimeServiceConfig: {
27
26
  } = dual(
28
27
  2,
29
28
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: BedrockRuntimeService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentBedrockRuntimeServiceConfig, config),
29
+ Effect.provideService(effect, currentBedrockRuntimeServiceConfig, config),
31
30
  );
32
31
 
33
32
  /**
@@ -35,14 +34,14 @@ export const withBedrockRuntimeServiceConfig: {
35
34
  * @category bedrock-runtime service config
36
35
  */
37
36
  export const setBedrockRuntimeServiceConfig = (config: BedrockRuntimeService.Config) =>
38
- Layer.locallyScoped(currentBedrockRuntimeServiceConfig, config);
37
+ Layer.succeed(currentBedrockRuntimeServiceConfig, config);
39
38
 
40
39
  /**
41
40
  * @since 1.0.0
42
41
  * @category adapters
43
42
  */
44
43
  export const toBedrockRuntimeClientConfig: Effect.Effect<BedrockRuntimeClientConfig> = Effect.gen(function*() {
45
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentBedrockRuntimeServiceConfig);
44
+ const { logger: serviceLogger, ...config } = yield* currentBedrockRuntimeServiceConfig;
46
45
 
47
46
  const logger = serviceLogger === true
48
47
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
@@ -1,24 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,50 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,86 +0,0 @@
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 CountTokensCommandInput, type CountTokensCommandOutput, type GetAsyncInvokeCommandInput, type GetAsyncInvokeCommandOutput, type InvokeModelCommandInput, type InvokeModelCommandOutput, type InvokeModelWithBidirectionalStreamCommandInput, type InvokeModelWithBidirectionalStreamCommandOutput, type InvokeModelWithResponseStreamCommandInput, type InvokeModelWithResponseStreamCommandOutput, type ListAsyncInvokesCommandInput, type ListAsyncInvokesCommandOutput, type StartAsyncInvokeCommandInput, type StartAsyncInvokeCommandOutput } from "@aws-sdk/client-bedrock-runtime";
5
- import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
6
- import type { Cause } from "effect";
7
- import { Effect, Layer } from "effect";
8
- import * as Instance from "./BedrockRuntimeClientInstance.js";
9
- import type { AccessDeniedError, ConflictError, InternalServerError, ModelError, ModelNotReadyError, ModelStreamError, ModelTimeoutError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ServiceUnavailableError, ThrottlingError, ValidationError } from "./Errors.js";
10
- interface BedrockRuntimeService$ {
11
- readonly _: unique symbol;
12
- /**
13
- * @see {@link ApplyGuardrailCommand}
14
- */
15
- applyGuardrail(args: ApplyGuardrailCommandInput, options?: HttpHandlerOptions): Effect.Effect<ApplyGuardrailCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
16
- /**
17
- * @see {@link ConverseCommand}
18
- */
19
- converse(args: ConverseCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConverseCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
20
- /**
21
- * @see {@link ConverseStreamCommand}
22
- */
23
- converseStream(args: ConverseStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConverseStreamCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
24
- /**
25
- * @see {@link CountTokensCommand}
26
- */
27
- countTokens(args: CountTokensCommandInput, options?: HttpHandlerOptions): Effect.Effect<CountTokensCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError | ValidationError>;
28
- /**
29
- * @see {@link GetAsyncInvokeCommand}
30
- */
31
- getAsyncInvoke(args: GetAsyncInvokeCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAsyncInvokeCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
32
- /**
33
- * @see {@link InvokeModelCommand}
34
- */
35
- invokeModel(args: InvokeModelCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
36
- /**
37
- * @see {@link InvokeModelWithBidirectionalStreamCommand}
38
- */
39
- invokeModelWithBidirectionalStream(args: InvokeModelWithBidirectionalStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelWithBidirectionalStreamCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelStreamError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
40
- /**
41
- * @see {@link InvokeModelWithResponseStreamCommand}
42
- */
43
- invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options?: HttpHandlerOptions): Effect.Effect<InvokeModelWithResponseStreamCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ModelError | ModelNotReadyError | ModelStreamError | ModelTimeoutError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
44
- /**
45
- * @see {@link ListAsyncInvokesCommand}
46
- */
47
- listAsyncInvokes(args: ListAsyncInvokesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAsyncInvokesCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
48
- /**
49
- * @see {@link StartAsyncInvokeCommand}
50
- */
51
- startAsyncInvoke(args: StartAsyncInvokeCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartAsyncInvokeCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ServiceUnavailableError | ThrottlingError | ValidationError>;
52
- }
53
- /**
54
- * @since 1.0.0
55
- * @category constructors
56
- */
57
- export declare const makeBedrockRuntimeService: Effect.Effect<BedrockRuntimeService$, never, Instance.BedrockRuntimeClientInstance>;
58
- declare const BedrockRuntimeService_base: import("effect/Context").TagClass<BedrockRuntimeService, "@effect-aws/client-bedrock-runtime/BedrockRuntimeService", BedrockRuntimeService$> & Effect.Tag.Proxy<BedrockRuntimeService, BedrockRuntimeService$> & {
59
- 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, Cause.UnknownException, BedrockRuntimeService> : Effect.Effect<X, never, BedrockRuntimeService>;
60
- };
61
- /**
62
- * @since 1.0.0
63
- * @category models
64
- */
65
- export declare class BedrockRuntimeService extends BedrockRuntimeService_base {
66
- static readonly defaultLayer: Layer.Layer<BedrockRuntimeService, never, never>;
67
- static readonly layer: (config: BedrockRuntimeService.Config) => Layer.Layer<BedrockRuntimeService, never, never>;
68
- static readonly baseLayer: (evaluate: (defaultConfig: BedrockRuntimeClientConfig) => BedrockRuntimeClient) => Layer.Layer<BedrockRuntimeService, never, never>;
69
- }
70
- /**
71
- * @since 1.0.0
72
- */
73
- export declare namespace BedrockRuntimeService {
74
- /**
75
- * @since 1.0.0
76
- */
77
- interface Config extends Omit<BedrockRuntimeClientConfig, "logger"> {
78
- readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
79
- }
80
- /**
81
- * @since 1.0.0
82
- */
83
- type Type = BedrockRuntimeService$;
84
- }
85
- export {};
86
- //# sourceMappingURL=BedrockRuntimeService.d.ts.map
@@ -1 +0,0 @@
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,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,8CAA8C,EACnD,KAAK,+CAA+C,EAEpD,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,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,qBAAqB,CAAC;IAC7C;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,0BAA0B,EAAE,QAAQ,CAAC;QACxE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,sBAAsB,CAAC;CAC3C"}
@@ -1,69 +0,0 @@
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.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
- CountTokensCommand: client_bedrock_runtime_1.CountTokensCommand,
41
- GetAsyncInvokeCommand: client_bedrock_runtime_1.GetAsyncInvokeCommand,
42
- InvokeModelCommand: client_bedrock_runtime_1.InvokeModelCommand,
43
- InvokeModelWithBidirectionalStreamCommand: client_bedrock_runtime_1.InvokeModelWithBidirectionalStreamCommand,
44
- InvokeModelWithResponseStreamCommand: client_bedrock_runtime_1.InvokeModelWithResponseStreamCommand,
45
- ListAsyncInvokesCommand: client_bedrock_runtime_1.ListAsyncInvokesCommand,
46
- StartAsyncInvokeCommand: client_bedrock_runtime_1.StartAsyncInvokeCommand,
47
- };
48
- /**
49
- * @since 1.0.0
50
- * @category constructors
51
- */
52
- exports.makeBedrockRuntimeService = effect_1.Effect.gen(function* () {
53
- const client = yield* Instance.BedrockRuntimeClientInstance;
54
- return yield* commons_1.Service.fromClientAndCommands(client, commands, {
55
- errorTags: Errors_js_1.AllServiceErrors,
56
- resolveClientConfig: BedrockRuntimeServiceConfig.toBedrockRuntimeClientConfig,
57
- });
58
- });
59
- /**
60
- * @since 1.0.0
61
- * @category models
62
- */
63
- class BedrockRuntimeService extends effect_1.Effect.Tag("@effect-aws/client-bedrock-runtime/BedrockRuntimeService")() {
64
- static defaultLayer = effect_1.Layer.effect(this, exports.makeBedrockRuntimeService).pipe(effect_1.Layer.provide(Instance.layer));
65
- static layer = (config) => effect_1.Layer.effect(this, exports.makeBedrockRuntimeService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(BedrockRuntimeServiceConfig.setBedrockRuntimeServiceConfig(config)));
66
- 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))));
67
- }
68
- exports.BedrockRuntimeService = BedrockRuntimeService;
69
- //# sourceMappingURL=BedrockRuntimeService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BedrockRuntimeService.js","sourceRoot":"","sources":["../../src/BedrockRuntimeService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4EAiCyC;AAEzC,iDAA8C;AAE9C,mCAAuC;AACvC,4EAA8D;AAC9D,8FAAgF;AAgBhF,2CAA+C;AAE/C,MAAM,QAAQ,GAAG;IACf,qBAAqB,EAArB,8CAAqB;IACrB,eAAe,EAAf,wCAAe;IACf,qBAAqB,EAArB,8CAAqB;IACrB,kBAAkB,EAAlB,2CAAkB;IAClB,qBAAqB,EAArB,8CAAqB;IACrB,kBAAkB,EAAlB,2CAAkB;IAClB,yCAAyC,EAAzC,kEAAyC;IACzC,oCAAoC,EAApC,6DAAoC;IACpC,uBAAuB,EAAvB,gDAAuB;IACvB,uBAAuB,EAAvB,gDAAuB;CACxB,CAAC;AAmMF;;;GAGG;AACU,QAAA,yBAAyB,GAAG,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3D,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAE5D,OAAO,KAAK,CAAC,CAAC,iBAAO,CAAC,qBAAqB,CACzC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,4BAAgB;QAC3B,mBAAmB,EAAE,2BAA2B,CAAC,4BAA4B;KAC9E,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,eAAM,CAAC,GAAG,CAAC,0DAA0D,CAAC,EAG9G;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,iCAAyB,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACjH,MAAM,CAAU,KAAK,GAAG,CAAC,MAAoC,EAAE,EAAE,CAC/D,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,iCAAyB,CAAC,CAAC,IAAI,CAChD,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,2BAA2B,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC,CAClF,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAA6E,EAC7E,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,iCAAyB,CAAC,CAAC,IAAI,CAChD,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,4BAA4B,EACrC,eAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAC/E,CACF,CACF,CAAC;;AApBN,sDAqBC"}
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,35 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,19 +0,0 @@
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
- export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "ModelErrorException", "ModelNotReadyException", "ModelStreamErrorException", "ModelTimeoutException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ServiceUnavailableException", "ThrottlingException", "ValidationException"];
4
- export type AccessDeniedError = TaggedException<AccessDeniedException>;
5
- export type ConflictError = TaggedException<ConflictException>;
6
- export type InternalServerError = TaggedException<InternalServerException>;
7
- export type ModelError = TaggedException<ModelErrorException>;
8
- export type ModelNotReadyError = TaggedException<ModelNotReadyException>;
9
- export type ModelStreamError = TaggedException<ModelStreamErrorException>;
10
- export type ModelTimeoutError = TaggedException<ModelTimeoutException>;
11
- export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
12
- export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
13
- export type ServiceUnavailableError = TaggedException<ServiceUnavailableException>;
14
- export type ThrottlingError = TaggedException<ThrottlingException>;
15
- export type ValidationError = TaggedException<ValidationException>;
16
- export type SdkError = TaggedException<Error & {
17
- name: "SdkError";
18
- }>;
19
- //# sourceMappingURL=Errors.d.ts.map
@@ -1 +0,0 @@
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;AAE3D,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;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AllServiceErrors = void 0;
4
- exports.AllServiceErrors = [
5
- "AccessDeniedException",
6
- "ConflictException",
7
- "InternalServerException",
8
- "ModelErrorException",
9
- "ModelNotReadyException",
10
- "ModelStreamErrorException",
11
- "ModelTimeoutException",
12
- "ResourceNotFoundException",
13
- "ServiceQuotaExceededException",
14
- "ServiceUnavailableException",
15
- "ThrottlingException",
16
- "ValidationException",
17
- ];
18
- //# sourceMappingURL=Errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAgBa,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"}
@@ -1,44 +0,0 @@
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
- * @since 1.0.0
34
- * @alias BedrockRuntimeService.Type
35
- */
36
- type Type = BedrockRuntimeService.Type;
37
- }
38
- /**
39
- * @since 1.0.0
40
- * @category exports
41
- * @alias BedrockRuntimeService
42
- */
43
- export declare const BedrockRuntime: typeof BedrockRuntimeService;
44
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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;IAElD;;;OAGG;IACH,KAAY,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC;CAC/C;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,8BAAwB,CAAC"}
package/dist/cjs/index.js DELETED
@@ -1,56 +0,0 @@
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
@@ -1 +0,0 @@
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;AAqB3C;;;;GAIG;AACU,QAAA,cAAc,GAAG,gDAAqB,CAAC"}