@effect-aws/client-bedrock 1.0.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.
- package/CHANGELOG.md +7 -0
- package/LICENSE +19 -0
- package/README.md +85 -0
- package/docgen.json +8 -0
- package/lib/BedrockClientInstance.d.ts +31 -0
- package/lib/BedrockClientInstance.js +57 -0
- package/lib/BedrockClientInstanceConfig.d.ts +23 -0
- package/lib/BedrockClientInstanceConfig.js +44 -0
- package/lib/BedrockService.d.ts +292 -0
- package/lib/BedrockService.js +122 -0
- package/lib/Errors.d.ts +20 -0
- package/lib/Errors.js +16 -0
- package/lib/esm/BedrockClientInstance.js +30 -0
- package/lib/esm/BedrockClientInstanceConfig.js +40 -0
- package/lib/esm/BedrockService.js +118 -0
- package/lib/esm/Errors.js +13 -0
- package/lib/esm/index.js +5 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +21 -0
- package/package.json +54 -0
- package/project.json +77 -0
- package/vitest.config.ts +3 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @effect-aws/client-bedrock
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#77](https://github.com/floydspace/effect-aws/pull/77) [`9f98088`](https://github.com/floydspace/effect-aws/commit/9f98088422f25ecba32f2bd193c5eb28f19622cc) Thanks [@successkrisz](https://github.com/successkrisz)! - implement bedrock and textract clients
|
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2024 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,85 @@
|
|
|
1
|
+
# @effect-aws/client-bedrock
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@effect-aws/client-bedrock)
|
|
4
|
+
[](https://www.npmjs.com/package/@effect-aws/client-bedrock)
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install --save @effect-aws/client-bedrock
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
With default BedrockClient instance:
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { BedrockService, DefaultBedrockServiceLayer } from "@effect-aws/client-bedrock";
|
|
18
|
+
|
|
19
|
+
const program = BedrockService.listCustomModels(args);
|
|
20
|
+
|
|
21
|
+
const result = pipe(
|
|
22
|
+
program,
|
|
23
|
+
Effect.provide(DefaultBedrockServiceLayer),
|
|
24
|
+
Effect.runPromise,
|
|
25
|
+
);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
With custom BedrockClient instance:
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import {
|
|
32
|
+
BedrockService,
|
|
33
|
+
BaseBedrockServiceLayer,
|
|
34
|
+
BedrockClientInstance,
|
|
35
|
+
} from "@effect-aws/client-bedrock";
|
|
36
|
+
|
|
37
|
+
const program = BedrockService.listCustomModels(args);
|
|
38
|
+
|
|
39
|
+
const BedrockClientInstanceLayer = Layer.succeed(
|
|
40
|
+
BedrockClientInstance,
|
|
41
|
+
new BedrockClient({ region: "eu-central-1" }),
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
const result = await pipe(
|
|
45
|
+
program,
|
|
46
|
+
Effect.provide(BaseBedrockServiceLayer),
|
|
47
|
+
Effect.provide(BedrockClientInstanceLayer),
|
|
48
|
+
Effect.runPromise,
|
|
49
|
+
);
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
With custom BedrockClient configuration:
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
import {
|
|
56
|
+
BedrockService,
|
|
57
|
+
BaseBedrockServiceLayer,
|
|
58
|
+
DefaultBedrockClientConfigLayer,
|
|
59
|
+
BedrockClientInstance,
|
|
60
|
+
BedrockClientInstanceConfig,
|
|
61
|
+
} from "@effect-aws/client-bedrock";
|
|
62
|
+
|
|
63
|
+
const program = BedrockService.listCustomModels(args);
|
|
64
|
+
|
|
65
|
+
const BedrockClientInstanceLayer = Layer.provide(
|
|
66
|
+
Layer.effect(
|
|
67
|
+
BedrockClientInstance,
|
|
68
|
+
BedrockClientInstanceConfig.pipe(
|
|
69
|
+
Effect.map(
|
|
70
|
+
(config) => new BedrockClient({ ...config, region: "eu-central-1" }),
|
|
71
|
+
),
|
|
72
|
+
),
|
|
73
|
+
),
|
|
74
|
+
DefaultBedrockClientConfigLayer,
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
const result = await pipe(
|
|
78
|
+
program,
|
|
79
|
+
Effect.provide(BaseBedrockServiceLayer),
|
|
80
|
+
Effect.provide(BedrockClientInstanceLayer),
|
|
81
|
+
Effect.runPromiseExit,
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
or map over `DefaultBedrockClientConfigLayer` layer context and update the configuration...
|
package/docgen.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { BedrockClient } from "@aws-sdk/client-bedrock";
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
8
|
+
import { BedrockClientInstanceConfig } from "./BedrockClientInstanceConfig";
|
|
9
|
+
declare const BedrockClientInstance_base: Context.TagClass<BedrockClientInstance, "@effect-aws/client-bedrock/BedrockClientInstance", BedrockClient>;
|
|
10
|
+
/**
|
|
11
|
+
* @since 1.0.0
|
|
12
|
+
* @category tags
|
|
13
|
+
*/
|
|
14
|
+
export declare class BedrockClientInstance extends BedrockClientInstance_base {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @since 1.0.0
|
|
18
|
+
* @category constructors
|
|
19
|
+
*/
|
|
20
|
+
export declare const makeBedrockClientInstance: Effect.Effect<BedrockClient, never, BedrockClientInstanceConfig>;
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category layers
|
|
24
|
+
*/
|
|
25
|
+
export declare const BedrockClientInstanceLayer: Layer.Layer<BedrockClientInstance, never, BedrockClientInstanceConfig>;
|
|
26
|
+
/**
|
|
27
|
+
* @since 1.0.0
|
|
28
|
+
* @category layers
|
|
29
|
+
*/
|
|
30
|
+
export declare const DefaultBedrockClientInstanceLayer: Layer.Layer<BedrockClientInstance, never, never>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
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.DefaultBedrockClientInstanceLayer = exports.BedrockClientInstanceLayer = exports.makeBedrockClientInstance = exports.BedrockClientInstance = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_bedrock_1 = require("@aws-sdk/client-bedrock");
|
|
31
|
+
const Context = __importStar(require("effect/Context"));
|
|
32
|
+
const Effect = __importStar(require("effect/Effect"));
|
|
33
|
+
const Layer = __importStar(require("effect/Layer"));
|
|
34
|
+
const BedrockClientInstanceConfig_1 = require("./BedrockClientInstanceConfig");
|
|
35
|
+
/**
|
|
36
|
+
* @since 1.0.0
|
|
37
|
+
* @category tags
|
|
38
|
+
*/
|
|
39
|
+
class BedrockClientInstance extends Context.Tag("@effect-aws/client-bedrock/BedrockClientInstance")() {
|
|
40
|
+
}
|
|
41
|
+
exports.BedrockClientInstance = BedrockClientInstance;
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
* @category constructors
|
|
45
|
+
*/
|
|
46
|
+
exports.makeBedrockClientInstance = Effect.map(BedrockClientInstanceConfig_1.BedrockClientInstanceConfig, (config) => new client_bedrock_1.BedrockClient(config));
|
|
47
|
+
/**
|
|
48
|
+
* @since 1.0.0
|
|
49
|
+
* @category layers
|
|
50
|
+
*/
|
|
51
|
+
exports.BedrockClientInstanceLayer = Layer.effect(BedrockClientInstance, exports.makeBedrockClientInstance);
|
|
52
|
+
/**
|
|
53
|
+
* @since 1.0.0
|
|
54
|
+
* @category layers
|
|
55
|
+
*/
|
|
56
|
+
exports.DefaultBedrockClientInstanceLayer = exports.BedrockClientInstanceLayer.pipe(Layer.provide(BedrockClientInstanceConfig_1.DefaultBedrockClientConfigLayer));
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmVkcm9ja0NsaWVudEluc3RhbmNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0JlZHJvY2tDbGllbnRJbnN0YW5jZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOztHQUVHO0FBQ0gsNERBQXdEO0FBQ3hELHdEQUEwQztBQUMxQyxzREFBd0M7QUFDeEMsb0RBQXNDO0FBQ3RDLCtFQUd1QztBQUV2Qzs7O0dBR0c7QUFDSCxNQUFhLHFCQUFzQixTQUFRLE9BQU8sQ0FBQyxHQUFHLENBQ3BELGtEQUFrRCxDQUNuRCxFQUF3QztDQUFHO0FBRjVDLHNEQUU0QztBQUU1Qzs7O0dBR0c7QUFDVSxRQUFBLHlCQUF5QixHQUFHLE1BQU0sQ0FBQyxHQUFHLENBQ2pELHlEQUEyQixFQUMzQixDQUFDLE1BQU0sRUFBRSxFQUFFLENBQUMsSUFBSSw4QkFBYSxDQUFDLE1BQU0sQ0FBQyxDQUN0QyxDQUFDO0FBRUY7OztHQUdHO0FBQ1UsUUFBQSwwQkFBMEIsR0FBRyxLQUFLLENBQUMsTUFBTSxDQUNwRCxxQkFBcUIsRUFDckIsaUNBQXlCLENBQzFCLENBQUM7QUFFRjs7O0dBR0c7QUFDVSxRQUFBLGlDQUFpQyxHQUM1QyxrQ0FBMEIsQ0FBQyxJQUFJLENBQzdCLEtBQUssQ0FBQyxPQUFPLENBQUMsNkRBQStCLENBQUMsQ0FDL0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQHNpbmNlIDEuMC4wXG4gKi9cbmltcG9ydCB7IEJlZHJvY2tDbGllbnQgfSBmcm9tIFwiQGF3cy1zZGsvY2xpZW50LWJlZHJvY2tcIjtcbmltcG9ydCAqIGFzIENvbnRleHQgZnJvbSBcImVmZmVjdC9Db250ZXh0XCI7XG5pbXBvcnQgKiBhcyBFZmZlY3QgZnJvbSBcImVmZmVjdC9FZmZlY3RcIjtcbmltcG9ydCAqIGFzIExheWVyIGZyb20gXCJlZmZlY3QvTGF5ZXJcIjtcbmltcG9ydCB7XG4gIERlZmF1bHRCZWRyb2NrQ2xpZW50Q29uZmlnTGF5ZXIsXG4gIEJlZHJvY2tDbGllbnRJbnN0YW5jZUNvbmZpZyxcbn0gZnJvbSBcIi4vQmVkcm9ja0NsaWVudEluc3RhbmNlQ29uZmlnXCI7XG5cbi8qKlxuICogQHNpbmNlIDEuMC4wXG4gKiBAY2F0ZWdvcnkgdGFnc1xuICovXG5leHBvcnQgY2xhc3MgQmVkcm9ja0NsaWVudEluc3RhbmNlIGV4dGVuZHMgQ29udGV4dC5UYWcoXG4gIFwiQGVmZmVjdC1hd3MvY2xpZW50LWJlZHJvY2svQmVkcm9ja0NsaWVudEluc3RhbmNlXCIsXG4pPEJlZHJvY2tDbGllbnRJbnN0YW5jZSwgQmVkcm9ja0NsaWVudD4oKSB7fVxuXG4vKipcbiAqIEBzaW5jZSAxLjAuMFxuICogQGNhdGVnb3J5IGNvbnN0cnVjdG9yc1xuICovXG5leHBvcnQgY29uc3QgbWFrZUJlZHJvY2tDbGllbnRJbnN0YW5jZSA9IEVmZmVjdC5tYXAoXG4gIEJlZHJvY2tDbGllbnRJbnN0YW5jZUNvbmZpZyxcbiAgKGNvbmZpZykgPT4gbmV3IEJlZHJvY2tDbGllbnQoY29uZmlnKSxcbik7XG5cbi8qKlxuICogQHNpbmNlIDEuMC4wXG4gKiBAY2F0ZWdvcnkgbGF5ZXJzXG4gKi9cbmV4cG9ydCBjb25zdCBCZWRyb2NrQ2xpZW50SW5zdGFuY2VMYXllciA9IExheWVyLmVmZmVjdChcbiAgQmVkcm9ja0NsaWVudEluc3RhbmNlLFxuICBtYWtlQmVkcm9ja0NsaWVudEluc3RhbmNlLFxuKTtcblxuLyoqXG4gKiBAc2luY2UgMS4wLjBcbiAqIEBjYXRlZ29yeSBsYXllcnNcbiAqL1xuZXhwb3J0IGNvbnN0IERlZmF1bHRCZWRyb2NrQ2xpZW50SW5zdGFuY2VMYXllciA9XG4gIEJlZHJvY2tDbGllbnRJbnN0YW5jZUxheWVyLnBpcGUoXG4gICAgTGF5ZXIucHJvdmlkZShEZWZhdWx0QmVkcm9ja0NsaWVudENvbmZpZ0xheWVyKSxcbiAgKTtcbiJdfQ==
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const BedrockClientInstanceConfig_base: Context.TagClass<BedrockClientInstanceConfig, "@effect-aws/client-bedrock/BedrockClientInstanceConfig", BedrockClientConfig>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class BedrockClientInstanceConfig extends BedrockClientInstanceConfig_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const makeDefaultBedrockClientInstanceConfig: Effect.Effect<BedrockClientConfig>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const DefaultBedrockClientConfigLayer: Layer.Layer<BedrockClientInstanceConfig, never, never>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DefaultBedrockClientConfigLayer = exports.makeDefaultBedrockClientInstanceConfig = exports.BedrockClientInstanceConfig = void 0;
|
|
4
|
+
const effect_1 = require("effect");
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
* @category tags
|
|
8
|
+
*/
|
|
9
|
+
class BedrockClientInstanceConfig extends effect_1.Context.Tag("@effect-aws/client-bedrock/BedrockClientInstanceConfig")() {
|
|
10
|
+
}
|
|
11
|
+
exports.BedrockClientInstanceConfig = BedrockClientInstanceConfig;
|
|
12
|
+
/**
|
|
13
|
+
* @since 1.0.0
|
|
14
|
+
* @category constructors
|
|
15
|
+
*/
|
|
16
|
+
exports.makeDefaultBedrockClientInstanceConfig = effect_1.Effect.gen(function* (_) {
|
|
17
|
+
const runtime = yield* _(effect_1.Effect.runtime());
|
|
18
|
+
const runSync = effect_1.Runtime.runSync(runtime);
|
|
19
|
+
return {
|
|
20
|
+
logger: {
|
|
21
|
+
info(m) {
|
|
22
|
+
effect_1.Effect.logInfo(m).pipe(runSync);
|
|
23
|
+
},
|
|
24
|
+
warn(m) {
|
|
25
|
+
effect_1.Effect.logWarning(m).pipe(runSync);
|
|
26
|
+
},
|
|
27
|
+
error(m) {
|
|
28
|
+
effect_1.Effect.logError(m).pipe(runSync);
|
|
29
|
+
},
|
|
30
|
+
debug(m) {
|
|
31
|
+
effect_1.Effect.logDebug(m).pipe(runSync);
|
|
32
|
+
},
|
|
33
|
+
trace(m) {
|
|
34
|
+
effect_1.Effect.logTrace(m).pipe(runSync);
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
/**
|
|
40
|
+
* @since 1.0.0
|
|
41
|
+
* @category layers
|
|
42
|
+
*/
|
|
43
|
+
exports.DefaultBedrockClientConfigLayer = effect_1.Layer.effect(BedrockClientInstanceConfig, exports.makeDefaultBedrockClientInstanceConfig);
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmVkcm9ja0NsaWVudEluc3RhbmNlQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0JlZHJvY2tDbGllbnRJbnN0YW5jZUNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSxtQ0FBeUQ7QUFFekQ7OztHQUdHO0FBQ0gsTUFBYSwyQkFBNEIsU0FBUSxnQkFBTyxDQUFDLEdBQUcsQ0FDMUQsd0RBQXdELENBQ3pELEVBQW9EO0NBQUc7QUFGeEQsa0VBRXdEO0FBRXhEOzs7R0FHRztBQUNVLFFBQUEsc0NBQXNDLEdBQ2pELGVBQU0sQ0FBQyxHQUFHLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQztJQUNyQixNQUFNLE9BQU8sR0FBRyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsZUFBTSxDQUFDLE9BQU8sRUFBUyxDQUFDLENBQUM7SUFDbEQsTUFBTSxPQUFPLEdBQUcsZ0JBQU8sQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7SUFFekMsT0FBTztRQUNMLE1BQU0sRUFBRTtZQUNOLElBQUksQ0FBQyxDQUFDO2dCQUNKLGVBQU0sQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBQ2xDLENBQUM7WUFDRCxJQUFJLENBQUMsQ0FBQztnQkFDSixlQUFNLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQztZQUNyQyxDQUFDO1lBQ0QsS0FBSyxDQUFDLENBQUM7Z0JBQ0wsZUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7WUFDbkMsQ0FBQztZQUNELEtBQUssQ0FBQyxDQUFDO2dCQUNMLGVBQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBQ25DLENBQUM7WUFDRCxLQUFLLENBQUMsQ0FBQztnQkFDTCxlQUFNLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQztZQUNuQyxDQUFDO1NBQ0Y7S0FDRixDQUFDO0FBQ0osQ0FBQyxDQUFDLENBQUM7QUFFTDs7O0dBR0c7QUFDVSxRQUFBLCtCQUErQixHQUFHLGNBQUssQ0FBQyxNQUFNLENBQ3pELDJCQUEyQixFQUMzQiw4Q0FBc0MsQ0FDdkMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQHNpbmNlIDEuMC4wXG4gKi9cbmltcG9ydCB0eXBlIHsgQmVkcm9ja0NsaWVudENvbmZpZyB9IGZyb20gXCJAYXdzLXNkay9jbGllbnQtYmVkcm9ja1wiO1xuaW1wb3J0IHsgQ29udGV4dCwgRWZmZWN0LCBMYXllciwgUnVudGltZSB9IGZyb20gXCJlZmZlY3RcIjtcblxuLyoqXG4gKiBAc2luY2UgMS4wLjBcbiAqIEBjYXRlZ29yeSB0YWdzXG4gKi9cbmV4cG9ydCBjbGFzcyBCZWRyb2NrQ2xpZW50SW5zdGFuY2VDb25maWcgZXh0ZW5kcyBDb250ZXh0LlRhZyhcbiAgXCJAZWZmZWN0LWF3cy9jbGllbnQtYmVkcm9jay9CZWRyb2NrQ2xpZW50SW5zdGFuY2VDb25maWdcIixcbik8QmVkcm9ja0NsaWVudEluc3RhbmNlQ29uZmlnLCBCZWRyb2NrQ2xpZW50Q29uZmlnPigpIHt9XG5cbi8qKlxuICogQHNpbmNlIDEuMC4wXG4gKiBAY2F0ZWdvcnkgY29uc3RydWN0b3JzXG4gKi9cbmV4cG9ydCBjb25zdCBtYWtlRGVmYXVsdEJlZHJvY2tDbGllbnRJbnN0YW5jZUNvbmZpZzogRWZmZWN0LkVmZmVjdDxCZWRyb2NrQ2xpZW50Q29uZmlnPiA9XG4gIEVmZmVjdC5nZW4oZnVuY3Rpb24qIChfKSB7XG4gICAgY29uc3QgcnVudGltZSA9IHlpZWxkKiBfKEVmZmVjdC5ydW50aW1lPG5ldmVyPigpKTtcbiAgICBjb25zdCBydW5TeW5jID0gUnVudGltZS5ydW5TeW5jKHJ1bnRpbWUpO1xuXG4gICAgcmV0dXJuIHtcbiAgICAgIGxvZ2dlcjoge1xuICAgICAgICBpbmZvKG0pIHtcbiAgICAgICAgICBFZmZlY3QubG9nSW5mbyhtKS5waXBlKHJ1blN5bmMpO1xuICAgICAgICB9LFxuICAgICAgICB3YXJuKG0pIHtcbiAgICAgICAgICBFZmZlY3QubG9nV2FybmluZyhtKS5waXBlKHJ1blN5bmMpO1xuICAgICAgICB9LFxuICAgICAgICBlcnJvcihtKSB7XG4gICAgICAgICAgRWZmZWN0LmxvZ0Vycm9yKG0pLnBpcGUocnVuU3luYyk7XG4gICAgICAgIH0sXG4gICAgICAgIGRlYnVnKG0pIHtcbiAgICAgICAgICBFZmZlY3QubG9nRGVidWcobSkucGlwZShydW5TeW5jKTtcbiAgICAgICAgfSxcbiAgICAgICAgdHJhY2UobSkge1xuICAgICAgICAgIEVmZmVjdC5sb2dUcmFjZShtKS5waXBlKHJ1blN5bmMpO1xuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9O1xuICB9KTtcblxuLyoqXG4gKiBAc2luY2UgMS4wLjBcbiAqIEBjYXRlZ29yeSBsYXllcnNcbiAqL1xuZXhwb3J0IGNvbnN0IERlZmF1bHRCZWRyb2NrQ2xpZW50Q29uZmlnTGF5ZXIgPSBMYXllci5lZmZlY3QoXG4gIEJlZHJvY2tDbGllbnRJbnN0YW5jZUNvbmZpZyxcbiAgbWFrZURlZmF1bHRCZWRyb2NrQ2xpZW50SW5zdGFuY2VDb25maWcsXG4pO1xuIl19
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { type BatchDeleteEvaluationJobCommandInput, type BatchDeleteEvaluationJobCommandOutput, type CreateEvaluationJobCommandInput, type CreateEvaluationJobCommandOutput, type CreateGuardrailCommandInput, type CreateGuardrailCommandOutput, type CreateGuardrailVersionCommandInput, type CreateGuardrailVersionCommandOutput, type CreateInferenceProfileCommandInput, type CreateInferenceProfileCommandOutput, type CreateModelCopyJobCommandInput, type CreateModelCopyJobCommandOutput, type CreateModelCustomizationJobCommandInput, type CreateModelCustomizationJobCommandOutput, type CreateModelImportJobCommandInput, type CreateModelImportJobCommandOutput, type CreateModelInvocationJobCommandInput, type CreateModelInvocationJobCommandOutput, type CreateProvisionedModelThroughputCommandInput, type CreateProvisionedModelThroughputCommandOutput, type DeleteCustomModelCommandInput, type DeleteCustomModelCommandOutput, type DeleteGuardrailCommandInput, type DeleteGuardrailCommandOutput, type DeleteImportedModelCommandInput, type DeleteImportedModelCommandOutput, type DeleteInferenceProfileCommandInput, type DeleteInferenceProfileCommandOutput, type DeleteModelInvocationLoggingConfigurationCommandInput, type DeleteModelInvocationLoggingConfigurationCommandOutput, type DeleteProvisionedModelThroughputCommandInput, type DeleteProvisionedModelThroughputCommandOutput, type GetCustomModelCommandInput, type GetCustomModelCommandOutput, type GetEvaluationJobCommandInput, type GetEvaluationJobCommandOutput, type GetFoundationModelCommandInput, type GetFoundationModelCommandOutput, type GetGuardrailCommandInput, type GetGuardrailCommandOutput, type GetImportedModelCommandInput, type GetImportedModelCommandOutput, type GetInferenceProfileCommandInput, type GetInferenceProfileCommandOutput, type GetModelCopyJobCommandInput, type GetModelCopyJobCommandOutput, type GetModelCustomizationJobCommandInput, type GetModelCustomizationJobCommandOutput, type GetModelImportJobCommandInput, type GetModelImportJobCommandOutput, type GetModelInvocationJobCommandInput, type GetModelInvocationJobCommandOutput, type GetModelInvocationLoggingConfigurationCommandInput, type GetModelInvocationLoggingConfigurationCommandOutput, type GetProvisionedModelThroughputCommandInput, type GetProvisionedModelThroughputCommandOutput, type ListCustomModelsCommandInput, type ListCustomModelsCommandOutput, type ListEvaluationJobsCommandInput, type ListEvaluationJobsCommandOutput, type ListFoundationModelsCommandInput, type ListFoundationModelsCommandOutput, type ListGuardrailsCommandInput, type ListGuardrailsCommandOutput, type ListImportedModelsCommandInput, type ListImportedModelsCommandOutput, type ListInferenceProfilesCommandInput, type ListInferenceProfilesCommandOutput, type ListModelCopyJobsCommandInput, type ListModelCopyJobsCommandOutput, type ListModelCustomizationJobsCommandInput, type ListModelCustomizationJobsCommandOutput, type ListModelImportJobsCommandInput, type ListModelImportJobsCommandOutput, type ListModelInvocationJobsCommandInput, type ListModelInvocationJobsCommandOutput, type ListProvisionedModelThroughputsCommandInput, type ListProvisionedModelThroughputsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type PutModelInvocationLoggingConfigurationCommandInput, type PutModelInvocationLoggingConfigurationCommandOutput, type StopEvaluationJobCommandInput, type StopEvaluationJobCommandOutput, type StopModelCustomizationJobCommandInput, type StopModelCustomizationJobCommandOutput, type StopModelInvocationJobCommandInput, type StopModelInvocationJobCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateGuardrailCommandInput, type UpdateGuardrailCommandOutput, type UpdateProvisionedModelThroughputCommandInput, type UpdateProvisionedModelThroughputCommandOutput } from "@aws-sdk/client-bedrock";
|
|
5
|
+
import { Effect, Layer } from "effect";
|
|
6
|
+
import { BedrockClientInstance } from "./BedrockClientInstance";
|
|
7
|
+
import { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, TooManyTagsError, ValidationError, SdkError } from "./Errors";
|
|
8
|
+
/**
|
|
9
|
+
* @since 1.0.1
|
|
10
|
+
*/
|
|
11
|
+
export interface HttpHandlerOptions {
|
|
12
|
+
/**
|
|
13
|
+
* The maximum time in milliseconds that the connection phase of a request
|
|
14
|
+
* may take before the connection attempt is abandoned.
|
|
15
|
+
*/
|
|
16
|
+
requestTimeout?: number;
|
|
17
|
+
}
|
|
18
|
+
interface BedrockService$ {
|
|
19
|
+
readonly _: unique symbol;
|
|
20
|
+
/**
|
|
21
|
+
* @see {@link BatchDeleteEvaluationJobCommand}
|
|
22
|
+
*/
|
|
23
|
+
batchDeleteEvaluationJob(args: BatchDeleteEvaluationJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchDeleteEvaluationJobCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
24
|
+
/**
|
|
25
|
+
* @see {@link CreateEvaluationJobCommand}
|
|
26
|
+
*/
|
|
27
|
+
createEvaluationJob(args: CreateEvaluationJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateEvaluationJobCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
28
|
+
/**
|
|
29
|
+
* @see {@link CreateGuardrailCommand}
|
|
30
|
+
*/
|
|
31
|
+
createGuardrail(args: CreateGuardrailCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateGuardrailCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | TooManyTagsError | ValidationError>;
|
|
32
|
+
/**
|
|
33
|
+
* @see {@link CreateGuardrailVersionCommand}
|
|
34
|
+
*/
|
|
35
|
+
createGuardrailVersion(args: CreateGuardrailVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateGuardrailVersionCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
36
|
+
/**
|
|
37
|
+
* @see {@link CreateInferenceProfileCommand}
|
|
38
|
+
*/
|
|
39
|
+
createInferenceProfile(args: CreateInferenceProfileCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateInferenceProfileCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | TooManyTagsError | ValidationError>;
|
|
40
|
+
/**
|
|
41
|
+
* @see {@link CreateModelCopyJobCommand}
|
|
42
|
+
*/
|
|
43
|
+
createModelCopyJob(args: CreateModelCopyJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateModelCopyJobCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyTagsError>;
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link CreateModelCustomizationJobCommand}
|
|
46
|
+
*/
|
|
47
|
+
createModelCustomizationJob(args: CreateModelCustomizationJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateModelCustomizationJobCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | TooManyTagsError | ValidationError>;
|
|
48
|
+
/**
|
|
49
|
+
* @see {@link CreateModelImportJobCommand}
|
|
50
|
+
*/
|
|
51
|
+
createModelImportJob(args: CreateModelImportJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateModelImportJobCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | TooManyTagsError | ValidationError>;
|
|
52
|
+
/**
|
|
53
|
+
* @see {@link CreateModelInvocationJobCommand}
|
|
54
|
+
*/
|
|
55
|
+
createModelInvocationJob(args: CreateModelInvocationJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateModelInvocationJobCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link CreateProvisionedModelThroughputCommand}
|
|
58
|
+
*/
|
|
59
|
+
createProvisionedModelThroughput(args: CreateProvisionedModelThroughputCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateProvisionedModelThroughputCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | TooManyTagsError | ValidationError>;
|
|
60
|
+
/**
|
|
61
|
+
* @see {@link DeleteCustomModelCommand}
|
|
62
|
+
*/
|
|
63
|
+
deleteCustomModel(args: DeleteCustomModelCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteCustomModelCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
64
|
+
/**
|
|
65
|
+
* @see {@link DeleteGuardrailCommand}
|
|
66
|
+
*/
|
|
67
|
+
deleteGuardrail(args: DeleteGuardrailCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteGuardrailCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link DeleteImportedModelCommand}
|
|
70
|
+
*/
|
|
71
|
+
deleteImportedModel(args: DeleteImportedModelCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteImportedModelCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
72
|
+
/**
|
|
73
|
+
* @see {@link DeleteInferenceProfileCommand}
|
|
74
|
+
*/
|
|
75
|
+
deleteInferenceProfile(args: DeleteInferenceProfileCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteInferenceProfileCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
76
|
+
/**
|
|
77
|
+
* @see {@link DeleteModelInvocationLoggingConfigurationCommand}
|
|
78
|
+
*/
|
|
79
|
+
deleteModelInvocationLoggingConfiguration(args: DeleteModelInvocationLoggingConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteModelInvocationLoggingConfigurationCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError>;
|
|
80
|
+
/**
|
|
81
|
+
* @see {@link DeleteProvisionedModelThroughputCommand}
|
|
82
|
+
*/
|
|
83
|
+
deleteProvisionedModelThroughput(args: DeleteProvisionedModelThroughputCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteProvisionedModelThroughputCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
84
|
+
/**
|
|
85
|
+
* @see {@link GetCustomModelCommand}
|
|
86
|
+
*/
|
|
87
|
+
getCustomModel(args: GetCustomModelCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetCustomModelCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
88
|
+
/**
|
|
89
|
+
* @see {@link GetEvaluationJobCommand}
|
|
90
|
+
*/
|
|
91
|
+
getEvaluationJob(args: GetEvaluationJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetEvaluationJobCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
92
|
+
/**
|
|
93
|
+
* @see {@link GetFoundationModelCommand}
|
|
94
|
+
*/
|
|
95
|
+
getFoundationModel(args: GetFoundationModelCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetFoundationModelCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
96
|
+
/**
|
|
97
|
+
* @see {@link GetGuardrailCommand}
|
|
98
|
+
*/
|
|
99
|
+
getGuardrail(args: GetGuardrailCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetGuardrailCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
100
|
+
/**
|
|
101
|
+
* @see {@link GetImportedModelCommand}
|
|
102
|
+
*/
|
|
103
|
+
getImportedModel(args: GetImportedModelCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetImportedModelCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
104
|
+
/**
|
|
105
|
+
* @see {@link GetInferenceProfileCommand}
|
|
106
|
+
*/
|
|
107
|
+
getInferenceProfile(args: GetInferenceProfileCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetInferenceProfileCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
108
|
+
/**
|
|
109
|
+
* @see {@link GetModelCopyJobCommand}
|
|
110
|
+
*/
|
|
111
|
+
getModelCopyJob(args: GetModelCopyJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetModelCopyJobCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
112
|
+
/**
|
|
113
|
+
* @see {@link GetModelCustomizationJobCommand}
|
|
114
|
+
*/
|
|
115
|
+
getModelCustomizationJob(args: GetModelCustomizationJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetModelCustomizationJobCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
116
|
+
/**
|
|
117
|
+
* @see {@link GetModelImportJobCommand}
|
|
118
|
+
*/
|
|
119
|
+
getModelImportJob(args: GetModelImportJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetModelImportJobCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
120
|
+
/**
|
|
121
|
+
* @see {@link GetModelInvocationJobCommand}
|
|
122
|
+
*/
|
|
123
|
+
getModelInvocationJob(args: GetModelInvocationJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetModelInvocationJobCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
124
|
+
/**
|
|
125
|
+
* @see {@link GetModelInvocationLoggingConfigurationCommand}
|
|
126
|
+
*/
|
|
127
|
+
getModelInvocationLoggingConfiguration(args: GetModelInvocationLoggingConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetModelInvocationLoggingConfigurationCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError>;
|
|
128
|
+
/**
|
|
129
|
+
* @see {@link GetProvisionedModelThroughputCommand}
|
|
130
|
+
*/
|
|
131
|
+
getProvisionedModelThroughput(args: GetProvisionedModelThroughputCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetProvisionedModelThroughputCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
132
|
+
/**
|
|
133
|
+
* @see {@link ListCustomModelsCommand}
|
|
134
|
+
*/
|
|
135
|
+
listCustomModels(args: ListCustomModelsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListCustomModelsCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
|
|
136
|
+
/**
|
|
137
|
+
* @see {@link ListEvaluationJobsCommand}
|
|
138
|
+
*/
|
|
139
|
+
listEvaluationJobs(args: ListEvaluationJobsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListEvaluationJobsCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
|
|
140
|
+
/**
|
|
141
|
+
* @see {@link ListFoundationModelsCommand}
|
|
142
|
+
*/
|
|
143
|
+
listFoundationModels(args: ListFoundationModelsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListFoundationModelsCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
|
|
144
|
+
/**
|
|
145
|
+
* @see {@link ListGuardrailsCommand}
|
|
146
|
+
*/
|
|
147
|
+
listGuardrails(args: ListGuardrailsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListGuardrailsCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
148
|
+
/**
|
|
149
|
+
* @see {@link ListImportedModelsCommand}
|
|
150
|
+
*/
|
|
151
|
+
listImportedModels(args: ListImportedModelsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListImportedModelsCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
|
|
152
|
+
/**
|
|
153
|
+
* @see {@link ListInferenceProfilesCommand}
|
|
154
|
+
*/
|
|
155
|
+
listInferenceProfiles(args: ListInferenceProfilesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListInferenceProfilesCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
|
|
156
|
+
/**
|
|
157
|
+
* @see {@link ListModelCopyJobsCommand}
|
|
158
|
+
*/
|
|
159
|
+
listModelCopyJobs(args: ListModelCopyJobsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListModelCopyJobsCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
160
|
+
/**
|
|
161
|
+
* @see {@link ListModelCustomizationJobsCommand}
|
|
162
|
+
*/
|
|
163
|
+
listModelCustomizationJobs(args: ListModelCustomizationJobsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListModelCustomizationJobsCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
|
|
164
|
+
/**
|
|
165
|
+
* @see {@link ListModelImportJobsCommand}
|
|
166
|
+
*/
|
|
167
|
+
listModelImportJobs(args: ListModelImportJobsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListModelImportJobsCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
|
|
168
|
+
/**
|
|
169
|
+
* @see {@link ListModelInvocationJobsCommand}
|
|
170
|
+
*/
|
|
171
|
+
listModelInvocationJobs(args: ListModelInvocationJobsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListModelInvocationJobsCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
|
|
172
|
+
/**
|
|
173
|
+
* @see {@link ListProvisionedModelThroughputsCommand}
|
|
174
|
+
*/
|
|
175
|
+
listProvisionedModelThroughputs(args: ListProvisionedModelThroughputsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListProvisionedModelThroughputsCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
|
|
176
|
+
/**
|
|
177
|
+
* @see {@link ListTagsForResourceCommand}
|
|
178
|
+
*/
|
|
179
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
180
|
+
/**
|
|
181
|
+
* @see {@link PutModelInvocationLoggingConfigurationCommand}
|
|
182
|
+
*/
|
|
183
|
+
putModelInvocationLoggingConfiguration(args: PutModelInvocationLoggingConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutModelInvocationLoggingConfigurationCommandOutput, SdkError | AccessDeniedError | InternalServerError | ThrottlingError | ValidationError>;
|
|
184
|
+
/**
|
|
185
|
+
* @see {@link StopEvaluationJobCommand}
|
|
186
|
+
*/
|
|
187
|
+
stopEvaluationJob(args: StopEvaluationJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<StopEvaluationJobCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
188
|
+
/**
|
|
189
|
+
* @see {@link StopModelCustomizationJobCommand}
|
|
190
|
+
*/
|
|
191
|
+
stopModelCustomizationJob(args: StopModelCustomizationJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<StopModelCustomizationJobCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
192
|
+
/**
|
|
193
|
+
* @see {@link StopModelInvocationJobCommand}
|
|
194
|
+
*/
|
|
195
|
+
stopModelInvocationJob(args: StopModelInvocationJobCommandInput, options?: HttpHandlerOptions): Effect.Effect<StopModelInvocationJobCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
196
|
+
/**
|
|
197
|
+
* @see {@link TagResourceCommand}
|
|
198
|
+
*/
|
|
199
|
+
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | TooManyTagsError | ValidationError>;
|
|
200
|
+
/**
|
|
201
|
+
* @see {@link UntagResourceCommand}
|
|
202
|
+
*/
|
|
203
|
+
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
204
|
+
/**
|
|
205
|
+
* @see {@link UpdateGuardrailCommand}
|
|
206
|
+
*/
|
|
207
|
+
updateGuardrail(args: UpdateGuardrailCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateGuardrailCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
208
|
+
/**
|
|
209
|
+
* @see {@link UpdateProvisionedModelThroughputCommand}
|
|
210
|
+
*/
|
|
211
|
+
updateProvisionedModelThroughput(args: UpdateProvisionedModelThroughputCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateProvisionedModelThroughputCommandOutput, SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
212
|
+
}
|
|
213
|
+
declare const BedrockService_base: import("effect/Context").TagClass<BedrockService, "@effect-aws/client-bedrock/BedrockService", BedrockService$> & {
|
|
214
|
+
readonly _: Effect.Effect<BedrockService$["_"], never, BedrockService>;
|
|
215
|
+
batchDeleteEvaluationJob: (args: BatchDeleteEvaluationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchDeleteEvaluationJobCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
216
|
+
createEvaluationJob: (args: CreateEvaluationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateEvaluationJobCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
217
|
+
createGuardrail: (args: CreateGuardrailCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateGuardrailCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | TooManyTagsError | ValidationError | SdkError, BedrockService>;
|
|
218
|
+
createGuardrailVersion: (args: CreateGuardrailVersionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateGuardrailVersionCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
219
|
+
createInferenceProfile: (args: CreateInferenceProfileCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateInferenceProfileCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | TooManyTagsError | ValidationError | SdkError, BedrockService>;
|
|
220
|
+
createModelCopyJob: (args: CreateModelCopyJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateModelCopyJobCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyTagsError | SdkError, BedrockService>;
|
|
221
|
+
createModelCustomizationJob: (args: CreateModelCustomizationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateModelCustomizationJobCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | TooManyTagsError | ValidationError | SdkError, BedrockService>;
|
|
222
|
+
createModelImportJob: (args: CreateModelImportJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateModelImportJobCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | TooManyTagsError | ValidationError | SdkError, BedrockService>;
|
|
223
|
+
createModelInvocationJob: (args: CreateModelInvocationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateModelInvocationJobCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
224
|
+
createProvisionedModelThroughput: (args: CreateProvisionedModelThroughputCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateProvisionedModelThroughputCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | TooManyTagsError | ValidationError | SdkError, BedrockService>;
|
|
225
|
+
deleteCustomModel: (args: DeleteCustomModelCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteCustomModelCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
226
|
+
deleteGuardrail: (args: DeleteGuardrailCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteGuardrailCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
227
|
+
deleteImportedModel: (args: DeleteImportedModelCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteImportedModelCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
228
|
+
deleteInferenceProfile: (args: DeleteInferenceProfileCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteInferenceProfileCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
229
|
+
deleteModelInvocationLoggingConfiguration: (args: DeleteModelInvocationLoggingConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteModelInvocationLoggingConfigurationCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | SdkError, BedrockService>;
|
|
230
|
+
deleteProvisionedModelThroughput: (args: DeleteProvisionedModelThroughputCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteProvisionedModelThroughputCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
231
|
+
getCustomModel: (args: GetCustomModelCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetCustomModelCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
232
|
+
getEvaluationJob: (args: GetEvaluationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetEvaluationJobCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
233
|
+
getFoundationModel: (args: GetFoundationModelCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetFoundationModelCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
234
|
+
getGuardrail: (args: GetGuardrailCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetGuardrailCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
235
|
+
getImportedModel: (args: GetImportedModelCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetImportedModelCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
236
|
+
getInferenceProfile: (args: GetInferenceProfileCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetInferenceProfileCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
237
|
+
getModelCopyJob: (args: GetModelCopyJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetModelCopyJobCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
238
|
+
getModelCustomizationJob: (args: GetModelCustomizationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetModelCustomizationJobCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
239
|
+
getModelImportJob: (args: GetModelImportJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetModelImportJobCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
240
|
+
getModelInvocationJob: (args: GetModelInvocationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetModelInvocationJobCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
241
|
+
getModelInvocationLoggingConfiguration: (args: GetModelInvocationLoggingConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetModelInvocationLoggingConfigurationCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | SdkError, BedrockService>;
|
|
242
|
+
getProvisionedModelThroughput: (args: GetProvisionedModelThroughputCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetProvisionedModelThroughputCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
243
|
+
listCustomModels: (args: ListCustomModelsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListCustomModelsCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
244
|
+
listEvaluationJobs: (args: ListEvaluationJobsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListEvaluationJobsCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
245
|
+
listFoundationModels: (args: ListFoundationModelsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListFoundationModelsCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
246
|
+
listGuardrails: (args: ListGuardrailsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListGuardrailsCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
247
|
+
listImportedModels: (args: ListImportedModelsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListImportedModelsCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
248
|
+
listInferenceProfiles: (args: ListInferenceProfilesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListInferenceProfilesCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
249
|
+
listModelCopyJobs: (args: ListModelCopyJobsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListModelCopyJobsCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
250
|
+
listModelCustomizationJobs: (args: ListModelCustomizationJobsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListModelCustomizationJobsCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
251
|
+
listModelImportJobs: (args: ListModelImportJobsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListModelImportJobsCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
252
|
+
listModelInvocationJobs: (args: ListModelInvocationJobsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListModelInvocationJobsCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
253
|
+
listProvisionedModelThroughputs: (args: ListProvisionedModelThroughputsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListProvisionedModelThroughputsCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
254
|
+
listTagsForResource: (args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListTagsForResourceCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
255
|
+
putModelInvocationLoggingConfiguration: (args: PutModelInvocationLoggingConfigurationCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<PutModelInvocationLoggingConfigurationCommandOutput, AccessDeniedError | InternalServerError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
256
|
+
stopEvaluationJob: (args: StopEvaluationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StopEvaluationJobCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
257
|
+
stopModelCustomizationJob: (args: StopModelCustomizationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StopModelCustomizationJobCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
258
|
+
stopModelInvocationJob: (args: StopModelInvocationJobCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<StopModelInvocationJobCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
259
|
+
tagResource: (args: TagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<TagResourceCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | TooManyTagsError | ValidationError | SdkError, BedrockService>;
|
|
260
|
+
untagResource: (args: UntagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UntagResourceCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
261
|
+
updateGuardrail: (args: UpdateGuardrailCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateGuardrailCommandOutput, AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
262
|
+
updateProvisionedModelThroughput: (args: UpdateProvisionedModelThroughputCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateProvisionedModelThroughputCommandOutput, AccessDeniedError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError | SdkError, BedrockService>;
|
|
263
|
+
} & {
|
|
264
|
+
use: <X>(body: (_: BedrockService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | BedrockService> : Effect.Effect<X, never, BedrockService>;
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* @since 1.0.0
|
|
268
|
+
* @category models
|
|
269
|
+
*/
|
|
270
|
+
export declare class BedrockService extends BedrockService_base {
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* @since 1.0.0
|
|
274
|
+
* @category constructors
|
|
275
|
+
*/
|
|
276
|
+
export declare const makeBedrockService: Effect.Effect<BedrockService$, never, BedrockClientInstance>;
|
|
277
|
+
/**
|
|
278
|
+
* @since 1.0.0
|
|
279
|
+
* @category layers
|
|
280
|
+
*/
|
|
281
|
+
export declare const BaseBedrockServiceLayer: Layer.Layer<BedrockService, never, BedrockClientInstance>;
|
|
282
|
+
/**
|
|
283
|
+
* @since 1.0.0
|
|
284
|
+
* @category layers
|
|
285
|
+
*/
|
|
286
|
+
export declare const BedrockServiceLayer: Layer.Layer<BedrockService, never, import("./BedrockClientInstanceConfig").BedrockClientInstanceConfig>;
|
|
287
|
+
/**
|
|
288
|
+
* @since 1.0.0
|
|
289
|
+
* @category layers
|
|
290
|
+
*/
|
|
291
|
+
export declare const DefaultBedrockServiceLayer: Layer.Layer<BedrockService, never, never>;
|
|
292
|
+
export {};
|