@executor-js/sdk 1.4.29 → 1.4.31
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/dist/blob.d.ts +2 -1
- package/dist/blob.d.ts.map +1 -1
- package/dist/chunk-2LU3SC64.js +7 -0
- package/dist/chunk-2LU3SC64.js.map +1 -0
- package/dist/chunk-7D4SUZUM.js +38 -0
- package/dist/chunk-7D4SUZUM.js.map +1 -0
- package/dist/chunk-B4YGTZF6.js +22 -0
- package/dist/chunk-B4YGTZF6.js.map +1 -0
- package/dist/chunk-BZNIRSMG.js +7873 -0
- package/dist/chunk-BZNIRSMG.js.map +1 -0
- package/dist/chunk-ECMCGZYE.js +5814 -0
- package/dist/chunk-ECMCGZYE.js.map +1 -0
- package/dist/{chunk-6SQWMOM4.js → chunk-MLNVNVRI.js} +2 -6
- package/dist/chunk-MLNVNVRI.js.map +1 -0
- package/dist/chunk-P2WKYAC5.js +1 -0
- package/dist/chunk-P2WKYAC5.js.map +1 -0
- package/dist/chunk-ZANQD7E2.js +1035 -0
- package/dist/chunk-ZANQD7E2.js.map +1 -0
- package/dist/client.d.ts +3 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +3 -7
- package/dist/config.d.ts.map +1 -1
- package/dist/core-schema.d.ts +283 -408
- package/dist/core-schema.d.ts.map +1 -1
- package/dist/core-tools.d.ts +6 -0
- package/dist/core-tools.d.ts.map +1 -0
- package/dist/core.js +120 -168
- package/dist/core.js.map +1 -1
- package/dist/credential-bindings.d.ts +86 -24
- package/dist/credential-bindings.d.ts.map +1 -1
- package/dist/errors.d.ts +1 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/executor.d.ts +46 -12
- package/dist/executor.d.ts.map +1 -1
- package/dist/fuma-runtime.d.ts +50 -0
- package/dist/fuma-runtime.d.ts.map +1 -0
- package/dist/http-source.d.ts +109 -0
- package/dist/http-source.d.ts.map +1 -0
- package/dist/http-source.js +155 -0
- package/dist/http-source.js.map +1 -0
- package/dist/index.d.ts +17 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44 -21
- package/dist/index.js.map +1 -1
- package/dist/oauth-service.d.ts +2 -10
- package/dist/oauth-service.d.ts.map +1 -1
- package/dist/oauth.d.ts +9 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/plugin-storage.d.ts +40 -0
- package/dist/plugin-storage.d.ts.map +1 -0
- package/dist/plugin.d.ts +110 -34
- package/dist/plugin.d.ts.map +1 -1
- package/dist/promise-executor.d.ts +33 -8
- package/dist/promise-executor.d.ts.map +1 -1
- package/dist/promise.d.ts +3 -3
- package/dist/promise.d.ts.map +1 -1
- package/dist/schema-refs.d.ts +1 -0
- package/dist/schema-refs.d.ts.map +1 -1
- package/dist/schema-refs.test.d.ts +2 -0
- package/dist/schema-refs.test.d.ts.map +1 -0
- package/dist/schema-types.d.ts +22 -8
- package/dist/schema-types.d.ts.map +1 -1
- package/dist/scope-policy.d.ts +23 -0
- package/dist/scope-policy.d.ts.map +1 -0
- package/dist/scope-policy.test.d.ts +2 -0
- package/dist/scope-policy.test.d.ts.map +1 -0
- package/dist/scope.d.ts +10 -0
- package/dist/scope.d.ts.map +1 -1
- package/dist/secrets.d.ts +1 -1
- package/dist/secrets.d.ts.map +1 -1
- package/dist/shared.d.ts +13 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +103 -0
- package/dist/shared.js.map +1 -0
- package/dist/sqlite-test-db-OK2WQNR5.js +8 -0
- package/dist/sqlite-test-db-OK2WQNR5.js.map +1 -0
- package/dist/sqlite-test-db.d.ts +22 -0
- package/dist/sqlite-test-db.d.ts.map +1 -0
- package/dist/test-config.d.ts +45 -4
- package/dist/test-config.d.ts.map +1 -1
- package/dist/testing/oauth-test-server.d.ts +80 -0
- package/dist/testing/oauth-test-server.d.ts.map +1 -0
- package/dist/testing.d.ts +4 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +706 -18
- package/dist/testing.js.map +1 -1
- package/dist/testing.test.d.ts +2 -0
- package/dist/testing.test.d.ts.map +1 -0
- package/dist/tool-result.d.ts +22 -0
- package/dist/tool-result.d.ts.map +1 -0
- package/dist/tool-result.test.d.ts +2 -0
- package/dist/tool-result.test.d.ts.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/vendor/json-schema-to-typescript/applySchemaTyping.d.ts +3 -0
- package/dist/vendor/json-schema-to-typescript/applySchemaTyping.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/compat.d.ts +10 -0
- package/dist/vendor/json-schema-to-typescript/compat.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/formatter.d.ts +3 -0
- package/dist/vendor/json-schema-to-typescript/formatter.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/generator.d.ts +7 -0
- package/dist/vendor/json-schema-to-typescript/generator.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/index.d.ts +93 -0
- package/dist/vendor/json-schema-to-typescript/index.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/linker.d.ts +8 -0
- package/dist/vendor/json-schema-to-typescript/linker.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/normalizer.d.ts +5 -0
- package/dist/vendor/json-schema-to-typescript/normalizer.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/optimizer.d.ts +4 -0
- package/dist/vendor/json-schema-to-typescript/optimizer.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/optionValidator.d.ts +3 -0
- package/dist/vendor/json-schema-to-typescript/optionValidator.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/parser.d.ts +8 -0
- package/dist/vendor/json-schema-to-typescript/parser.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/resolver.d.ts +7 -0
- package/dist/vendor/json-schema-to-typescript/resolver.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/types/AST.d.ts +108 -0
- package/dist/vendor/json-schema-to-typescript/types/AST.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/types/JSONSchema.d.ts +103 -0
- package/dist/vendor/json-schema-to-typescript/types/JSONSchema.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/types/json-schema.d.ts +34 -0
- package/dist/vendor/json-schema-to-typescript/types/json-schema.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/typesOfSchema.d.ts +11 -0
- package/dist/vendor/json-schema-to-typescript/typesOfSchema.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/utils.d.ts +30 -0
- package/dist/vendor/json-schema-to-typescript/utils.d.ts.map +1 -0
- package/dist/vendor/json-schema-to-typescript/validator.d.ts +3 -0
- package/dist/vendor/json-schema-to-typescript/validator.d.ts.map +1 -0
- package/package.json +17 -2
- package/dist/chunk-6SQWMOM4.js.map +0 -1
- package/dist/chunk-I2OEQ2GJ.js +0 -103
- package/dist/chunk-I2OEQ2GJ.js.map +0 -1
- package/dist/chunk-OIJL6F6M.js +0 -5507
- package/dist/chunk-OIJL6F6M.js.map +0 -1
- package/dist/error-handling.test.d.ts +0 -2
- package/dist/error-handling.test.d.ts.map +0 -1
- package/dist/scoped-adapter.d.ts +0 -28
- package/dist/scoped-adapter.d.ts.map +0 -1
- package/dist/scoped-adapter.test.d.ts +0 -2
- package/dist/scoped-adapter.test.d.ts.map +0 -1
package/dist/shared.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { ScopeId, ToolId, SecretId, PolicyId, ConnectionId, CredentialBindingId } from "./ids";
|
|
2
|
+
export { ToolNotFoundError, SourceRemovalNotAllowedError, SecretNotFoundError, SecretResolutionError, SecretOwnedByConnectionError, SecretInUseError, ConnectionInUseError, } from "./errors";
|
|
3
|
+
export { InternalError } from "./api-errors";
|
|
4
|
+
export { effectivePolicyFromSorted, ToolPolicyActionSchema, type EffectivePolicy, type ToolPolicy, } from "./policies";
|
|
5
|
+
export type { ToolPolicyAction } from "./core-schema";
|
|
6
|
+
export { SecretBackedMap, SecretBackedValue, isSecretBackedRef, type ResolveSecretBackedMapOptions, } from "./secret-backed-value";
|
|
7
|
+
export { ConfiguredCredentialBinding, ConfiguredCredentialValue, CredentialBindingRef, CredentialBindingValue, CredentialBindingSlotInput, RemoveCredentialBindingInput, RemoveSourceCredentialBindingInput, ScopedSecretCredentialInput, SetSourceCredentialBindingInput, ReplaceCredentialBindingValue, ReplaceCredentialBindingsInput, ReplaceSourceCredentialBindingsInput, SourceCredentialBindingSource, SourceCredentialBindingSourceInput, SourceCredentialBindingSlotInput, credentialSlotKey, credentialSlotPart, } from "./credential-bindings";
|
|
8
|
+
export { pluginStorageId, type PluginStorageEntry, type PluginStorageFacade, type PluginStorageKeyInput, type PluginStorageListInput, type PluginStoragePutInput, type PluginStorageScopedKeyInput, } from "./plugin-storage";
|
|
9
|
+
export { SourceDetectionResult, type Source } from "./types";
|
|
10
|
+
export { Usage } from "./usages";
|
|
11
|
+
export { OAUTH_POPUP_MESSAGE_TYPE, isOAuthPopupResult, type OAuthPopupResult, } from "./oauth-popup-types";
|
|
12
|
+
export { OAuthProbeError, OAuthStartError, OAuthCompleteError, OAuthSessionNotFoundError, OAuthStrategy as OAuthStrategySchema, type OAuthStrategy, } from "./oauth";
|
|
13
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE/F,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,mBAAmB,EACnB,qBAAqB,EACrB,4BAA4B,EAC5B,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,aAAa,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_TYPE,
|
|
5
|
+
isOAuthPopupResult
|
|
6
|
+
} from "./chunk-B4YGTZF6.js";
|
|
7
|
+
import {
|
|
8
|
+
SecretBackedMap,
|
|
9
|
+
SecretBackedValue,
|
|
10
|
+
isSecretBackedRef
|
|
11
|
+
} from "./chunk-MLNVNVRI.js";
|
|
12
|
+
import {
|
|
13
|
+
ConfiguredCredentialBinding,
|
|
14
|
+
ConfiguredCredentialValue,
|
|
15
|
+
ConnectionId,
|
|
16
|
+
ConnectionInUseError,
|
|
17
|
+
CredentialBindingId,
|
|
18
|
+
CredentialBindingRef,
|
|
19
|
+
CredentialBindingSlotInput,
|
|
20
|
+
CredentialBindingValue,
|
|
21
|
+
OAuthCompleteError,
|
|
22
|
+
OAuthProbeError,
|
|
23
|
+
OAuthSessionNotFoundError,
|
|
24
|
+
OAuthStartError,
|
|
25
|
+
OAuthStrategy,
|
|
26
|
+
PolicyId,
|
|
27
|
+
RemoveCredentialBindingInput,
|
|
28
|
+
RemoveSourceCredentialBindingInput,
|
|
29
|
+
ReplaceCredentialBindingValue,
|
|
30
|
+
ReplaceCredentialBindingsInput,
|
|
31
|
+
ReplaceSourceCredentialBindingsInput,
|
|
32
|
+
ScopeId,
|
|
33
|
+
ScopedSecretCredentialInput,
|
|
34
|
+
SecretId,
|
|
35
|
+
SecretInUseError,
|
|
36
|
+
SecretNotFoundError,
|
|
37
|
+
SecretOwnedByConnectionError,
|
|
38
|
+
SecretResolutionError,
|
|
39
|
+
SetSourceCredentialBindingInput,
|
|
40
|
+
SourceCredentialBindingSlotInput,
|
|
41
|
+
SourceCredentialBindingSource,
|
|
42
|
+
SourceCredentialBindingSourceInput,
|
|
43
|
+
SourceDetectionResult,
|
|
44
|
+
SourceRemovalNotAllowedError,
|
|
45
|
+
ToolId,
|
|
46
|
+
ToolNotFoundError,
|
|
47
|
+
ToolPolicyActionSchema,
|
|
48
|
+
Usage,
|
|
49
|
+
credentialSlotKey,
|
|
50
|
+
credentialSlotPart,
|
|
51
|
+
effectivePolicyFromSorted,
|
|
52
|
+
pluginStorageId
|
|
53
|
+
} from "./chunk-ZANQD7E2.js";
|
|
54
|
+
import "./chunk-7D4SUZUM.js";
|
|
55
|
+
export {
|
|
56
|
+
ConfiguredCredentialBinding,
|
|
57
|
+
ConfiguredCredentialValue,
|
|
58
|
+
ConnectionId,
|
|
59
|
+
ConnectionInUseError,
|
|
60
|
+
CredentialBindingId,
|
|
61
|
+
CredentialBindingRef,
|
|
62
|
+
CredentialBindingSlotInput,
|
|
63
|
+
CredentialBindingValue,
|
|
64
|
+
InternalError,
|
|
65
|
+
OAUTH_POPUP_MESSAGE_TYPE,
|
|
66
|
+
OAuthCompleteError,
|
|
67
|
+
OAuthProbeError,
|
|
68
|
+
OAuthSessionNotFoundError,
|
|
69
|
+
OAuthStartError,
|
|
70
|
+
OAuthStrategy as OAuthStrategySchema,
|
|
71
|
+
PolicyId,
|
|
72
|
+
RemoveCredentialBindingInput,
|
|
73
|
+
RemoveSourceCredentialBindingInput,
|
|
74
|
+
ReplaceCredentialBindingValue,
|
|
75
|
+
ReplaceCredentialBindingsInput,
|
|
76
|
+
ReplaceSourceCredentialBindingsInput,
|
|
77
|
+
ScopeId,
|
|
78
|
+
ScopedSecretCredentialInput,
|
|
79
|
+
SecretBackedMap,
|
|
80
|
+
SecretBackedValue,
|
|
81
|
+
SecretId,
|
|
82
|
+
SecretInUseError,
|
|
83
|
+
SecretNotFoundError,
|
|
84
|
+
SecretOwnedByConnectionError,
|
|
85
|
+
SecretResolutionError,
|
|
86
|
+
SetSourceCredentialBindingInput,
|
|
87
|
+
SourceCredentialBindingSlotInput,
|
|
88
|
+
SourceCredentialBindingSource,
|
|
89
|
+
SourceCredentialBindingSourceInput,
|
|
90
|
+
SourceDetectionResult,
|
|
91
|
+
SourceRemovalNotAllowedError,
|
|
92
|
+
ToolId,
|
|
93
|
+
ToolNotFoundError,
|
|
94
|
+
ToolPolicyActionSchema,
|
|
95
|
+
Usage,
|
|
96
|
+
credentialSlotKey,
|
|
97
|
+
credentialSlotPart,
|
|
98
|
+
effectivePolicyFromSorted,
|
|
99
|
+
isOAuthPopupResult,
|
|
100
|
+
isSecretBackedRef,
|
|
101
|
+
pluginStorageId
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Database from "better-sqlite3";
|
|
2
|
+
import { type BetterSQLite3Database } from "drizzle-orm/better-sqlite3";
|
|
3
|
+
import { type FumaDB } from "fumadb";
|
|
4
|
+
import { schema as fumaSchema, type RelationsMap } from "fumadb/schema";
|
|
5
|
+
import type { FumaDb, FumaTables } from "./fuma-runtime";
|
|
6
|
+
type SqliteTestFumaSchema<TTables extends FumaTables> = ReturnType<typeof fumaSchema<string, TTables, RelationsMap<TTables>>>;
|
|
7
|
+
export interface SqliteTestFumaDb<TTables extends FumaTables = FumaTables> {
|
|
8
|
+
readonly db: FumaDb<SqliteTestFumaSchema<TTables>>;
|
|
9
|
+
readonly fuma: FumaDB<SqliteTestFumaSchema<TTables>[]>;
|
|
10
|
+
readonly drizzle: BetterSQLite3Database<Record<string, unknown>>;
|
|
11
|
+
readonly sqlite: Database.Database;
|
|
12
|
+
readonly close: () => Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export interface CreateSqliteTestFumaDbOptions<TTables extends FumaTables = FumaTables> {
|
|
15
|
+
readonly tables: TTables;
|
|
16
|
+
readonly namespace?: string;
|
|
17
|
+
readonly version?: string;
|
|
18
|
+
readonly path?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const createSqliteTestFumaDb: <const TTables extends FumaTables>(options: CreateSqliteTestFumaDbOptions<TTables>) => Promise<SqliteTestFumaDb<TTables>>;
|
|
21
|
+
export {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AAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,sBAAsB,GAAU,KAAK,CAAC,OAAO,SAAS,UAAU,EAC3E,SAAS,6BAA6B,CAAC,OAAO,CAAC,KAC9C,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAkDnC,CAAC"}
|
package/dist/test-config.d.ts
CHANGED
|
@@ -1,10 +1,51 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Context, Effect, Layer } from "effect";
|
|
2
|
+
import { type Executor, type ExecutorConfig } from "./executor";
|
|
3
|
+
import type { FumaDb } from "./fuma-runtime";
|
|
2
4
|
import { type AnyPlugin } from "./plugin";
|
|
3
5
|
import { Scope } from "./scope";
|
|
4
|
-
|
|
6
|
+
import type { SqliteTestFumaDb } from "./sqlite-test-db";
|
|
7
|
+
export type TestDatabaseBackend = "sqlite";
|
|
8
|
+
export type TestFumaDb = Pick<SqliteTestFumaDb, "db" | "close"> & {
|
|
9
|
+
readonly warm: () => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export type TestConfigOptions<TPlugins extends readonly AnyPlugin[] = readonly []> = {
|
|
5
12
|
readonly scopeName?: string;
|
|
6
13
|
readonly scopes?: readonly Scope[];
|
|
7
14
|
readonly plugins?: TPlugins;
|
|
8
|
-
|
|
9
|
-
|
|
15
|
+
readonly backend?: TestDatabaseBackend;
|
|
16
|
+
readonly dataDir?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const makeTestConfig: <const TPlugins extends readonly AnyPlugin[] = readonly []>(options?: TestConfigOptions<TPlugins>) => Omit<ExecutorConfig<TPlugins>, "db"> & {
|
|
19
|
+
readonly db: FumaDb;
|
|
20
|
+
readonly testDb: TestFumaDb;
|
|
21
|
+
};
|
|
22
|
+
export interface TestWorkspaceHarness<TPlugins extends readonly AnyPlugin[] = readonly AnyPlugin[]> {
|
|
23
|
+
readonly config: ExecutorConfig<TPlugins> & {
|
|
24
|
+
readonly testDb: TestFumaDb;
|
|
25
|
+
};
|
|
26
|
+
readonly executor: Executor<TPlugins>;
|
|
27
|
+
readonly testDb: TestFumaDb;
|
|
28
|
+
readonly scopes: readonly Scope[];
|
|
29
|
+
}
|
|
30
|
+
declare const TestWorkspace_base: Context.ServiceClass<TestWorkspace, "executor-sdk/TestWorkspace", TestWorkspaceHarness<readonly AnyPlugin[]>>;
|
|
31
|
+
export declare class TestWorkspace extends TestWorkspace_base {
|
|
32
|
+
static readonly current: <const TPlugins extends readonly AnyPlugin[] = readonly AnyPlugin[]>() => Effect.Effect<TestWorkspaceHarness<TPlugins>, never, TestWorkspace>;
|
|
33
|
+
}
|
|
34
|
+
export declare const makeTestWorkspaceHarness: <const TPlugins extends readonly AnyPlugin[] = readonly []>(options?: TestConfigOptions<TPlugins>) => Effect.Effect<{
|
|
35
|
+
readonly config: Omit<ExecutorConfig<TPlugins>, "db"> & {
|
|
36
|
+
readonly db: FumaDb;
|
|
37
|
+
readonly testDb: TestFumaDb;
|
|
38
|
+
};
|
|
39
|
+
readonly executor: Executor<TPlugins>;
|
|
40
|
+
readonly testDb: TestFumaDb;
|
|
41
|
+
readonly scopes: readonly {
|
|
42
|
+
readonly name: string;
|
|
43
|
+
readonly id: string & import("effect/Brand").Brand<"ScopeId">;
|
|
44
|
+
readonly createdAt: Date;
|
|
45
|
+
}[];
|
|
46
|
+
}, import("./fuma-runtime").StorageFailure, import("effect/Scope").Scope>;
|
|
47
|
+
export declare const makeTestWorkspaceLayer: <const TPlugins extends readonly AnyPlugin[] = readonly []>(options?: TestConfigOptions<TPlugins>) => Layer.Layer<TestWorkspace, import("./fuma-runtime").StorageFailure, never>;
|
|
48
|
+
export declare const makeTestExecutor: <const TPlugins extends readonly AnyPlugin[] = readonly []>(options?: TestConfigOptions<TPlugins>) => Effect.Effect<Executor<TPlugins>, import("./fuma-runtime").StorageFailure, import("effect/Scope").Scope>;
|
|
49
|
+
export declare const memorySecretsPlugin: import("./plugin").ConfiguredPlugin<"memory-secrets", object, {}, {}, undefined, undefined, Layer.Layer<unknown, never, never>, import("effect/unstable/httpapi/HttpApiGroup").Any>;
|
|
50
|
+
export {};
|
|
10
51
|
//# sourceMappingURL=test-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-config.d.ts","sourceRoot":"","sources":["../src/test-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-config.d.ts","sourceRoot":"","sources":["../src/test-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEhD,OAAO,EAAiC,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC/F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAWzD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,EAAE,IAAI,GAAG,OAAO,CAAC,GAAG;IAChE,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC,CAAC;AAkFF,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,IAAI;IACnF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,KAAK,EAAE,CAAC;IACnC,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAA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AAC;AAEJ,eAAO,MAAM,gBAAgB,GAAI,KAAK,CAAC,QAAQ,SAAS,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,EACxF,UAAU,iBAAiB,CAAC,QAAQ,CAAC,6GAC4C,CAAC;AAEpF,eAAO,MAAM,mBAAmB,qLA0B9B,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Context, Effect, Layer, Scope } from "effect";
|
|
2
|
+
declare const OAuthTestServerAddressError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
3
|
+
readonly _tag: "OAuthTestServerAddressError";
|
|
4
|
+
} & Readonly<A>;
|
|
5
|
+
export declare class OAuthTestServerAddressError extends OAuthTestServerAddressError_base<{
|
|
6
|
+
readonly address: unknown;
|
|
7
|
+
}> {
|
|
8
|
+
}
|
|
9
|
+
declare const OAuthTestServerFlowError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
10
|
+
readonly _tag: "OAuthTestServerFlowError";
|
|
11
|
+
} & Readonly<A>;
|
|
12
|
+
export declare class OAuthTestServerFlowError extends OAuthTestServerFlowError_base<{
|
|
13
|
+
readonly message: string;
|
|
14
|
+
readonly cause?: unknown;
|
|
15
|
+
}> {
|
|
16
|
+
}
|
|
17
|
+
export interface OAuthAuthorizationCompletion {
|
|
18
|
+
readonly callbackUrl: string;
|
|
19
|
+
readonly code: string;
|
|
20
|
+
readonly state: string;
|
|
21
|
+
}
|
|
22
|
+
export interface OAuthTokenSet {
|
|
23
|
+
readonly accessToken: string;
|
|
24
|
+
readonly refreshToken?: string;
|
|
25
|
+
readonly tokenType: string;
|
|
26
|
+
readonly expiresIn?: number;
|
|
27
|
+
readonly scope?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface OAuthTestServerRequest {
|
|
30
|
+
readonly method: string;
|
|
31
|
+
readonly url: string;
|
|
32
|
+
readonly path: string;
|
|
33
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
34
|
+
readonly body: string;
|
|
35
|
+
}
|
|
36
|
+
export interface OAuthTestServerOptions {
|
|
37
|
+
readonly users?: Readonly<Record<string, string>>;
|
|
38
|
+
readonly defaultUsername?: string;
|
|
39
|
+
readonly defaultPassword?: string;
|
|
40
|
+
readonly defaultClientId?: string;
|
|
41
|
+
readonly defaultClientSecret?: string;
|
|
42
|
+
readonly clients?: Readonly<Record<string, string | null>>;
|
|
43
|
+
readonly scopes?: readonly string[];
|
|
44
|
+
readonly supportRefresh?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface OAuthTestServerShape {
|
|
47
|
+
readonly issuerUrl: string;
|
|
48
|
+
readonly authorizationEndpoint: string;
|
|
49
|
+
readonly tokenEndpoint: string;
|
|
50
|
+
readonly registrationEndpoint: string;
|
|
51
|
+
readonly protectedResourceMetadataUrl: string;
|
|
52
|
+
readonly resourceUrl: string;
|
|
53
|
+
readonly mcpResourceUrl: string;
|
|
54
|
+
readonly completeAuthorizationCodeFlow: (input: {
|
|
55
|
+
readonly authorizationUrl: string;
|
|
56
|
+
readonly username?: string;
|
|
57
|
+
readonly password?: string;
|
|
58
|
+
}) => Effect.Effect<OAuthAuthorizationCompletion, OAuthTestServerFlowError>;
|
|
59
|
+
readonly completeAuthorizationCodeTokenFlow: (input?: {
|
|
60
|
+
readonly username?: string;
|
|
61
|
+
readonly password?: string;
|
|
62
|
+
readonly clientId?: string;
|
|
63
|
+
readonly clientSecret?: string;
|
|
64
|
+
readonly redirectUrl?: string;
|
|
65
|
+
readonly scopes?: readonly string[];
|
|
66
|
+
readonly resource?: string;
|
|
67
|
+
}) => Effect.Effect<OAuthTokenSet, OAuthTestServerFlowError>;
|
|
68
|
+
readonly requests: Effect.Effect<readonly OAuthTestServerRequest[]>;
|
|
69
|
+
readonly clearRequests: Effect.Effect<void>;
|
|
70
|
+
readonly issuedAccessTokens: Effect.Effect<readonly string[]>;
|
|
71
|
+
readonly acceptsAccessToken: (token: string) => Effect.Effect<boolean>;
|
|
72
|
+
readonly acceptsAuthorizationHeader: (authorization: string | null | undefined) => Effect.Effect<boolean>;
|
|
73
|
+
}
|
|
74
|
+
export declare const serveOAuthTestServer: (options?: OAuthTestServerOptions) => Effect.Effect<OAuthTestServerShape, OAuthTestServerAddressError, Scope.Scope>;
|
|
75
|
+
declare const OAuthTestServer_base: Context.ServiceClass<OAuthTestServer, "@executor-js/sdk/testing/OAuthTestServer", OAuthTestServerShape>;
|
|
76
|
+
export declare class OAuthTestServer extends OAuthTestServer_base {
|
|
77
|
+
static readonly layer: (options?: OAuthTestServerOptions) => Layer.Layer<OAuthTestServer, OAuthTestServerAddressError, never>;
|
|
78
|
+
}
|
|
79
|
+
export {};
|
|
80
|
+
//# sourceMappingURL=oauth-test-server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-test-server.d.ts","sourceRoot":"","sources":["../../src/testing/oauth-test-server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAQ,MAAM,EAAE,KAAK,EAAkC,KAAK,EAAE,MAAM,QAAQ,CAAC;;;;AAY7F,qBAAa,2BAA4B,SAAQ,iCAAgD;IAC/F,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B,CAAC;CAAG;;;;AAEL,qBAAa,wBAAyB,SAAQ,8BAA6C;IACzF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;CAAG;AAEL,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAA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AC;IAC9D,QAAQ,CAAC,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvE,QAAQ,CAAC,0BAA0B,EAAE,CACnC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,KACrC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;CAC7B;AAiTD,eAAO,MAAM,oBAAoB,GAC/B,UAAS,sBAA2B,KACnC,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,2BAA2B,EAAE,KAAK,CAAC,KAAK,CA8U3E,CAAC;;AAEL,qBAAa,eAAgB,SAAQ,oBAEpC;IACC,MAAM,CAAC,QAAQ,CAAC,KAAK,GAAI,UAAU,sBAAsB,sEACM;CAChE"}
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Effect, Layer, Scope as EffectScope } from "effect";
|
|
2
2
|
import { HttpClient, HttpRouter, HttpServerRequest, HttpServerResponse } from "effect/unstable/http";
|
|
3
|
-
export { makeTestConfig, memorySecretsPlugin } from "./test-config";
|
|
3
|
+
export { makeTestConfig, makeTestExecutor, makeTestWorkspaceHarness, makeTestWorkspaceLayer, memorySecretsPlugin, TestWorkspace, type TestConfigOptions, type TestDatabaseBackend, type TestFumaDb, type TestWorkspaceHarness, } from "./test-config";
|
|
4
|
+
export { OAuthTestServer, serveOAuthTestServer, OAuthTestServerAddressError, OAuthTestServerFlowError, type OAuthAuthorizationCompletion, type OAuthTokenSet, type OAuthTestServerOptions, type OAuthTestServerRequest, type OAuthTestServerShape, } from "./testing/oauth-test-server";
|
|
5
|
+
export { createSqliteTestFumaDb, type SqliteTestFumaDb } from "./sqlite-test-db";
|
|
4
6
|
declare const TestHttpServerAddressError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
5
7
|
readonly _tag: "TestHttpServerAddressError";
|
|
6
8
|
} & Readonly<A>;
|
|
@@ -28,4 +30,5 @@ export declare const testHttpRoute: <E = never, R = never>(method: "*" | import(
|
|
|
28
30
|
}) => HttpRouter.Route<E, Exclude<R, HttpRouter.Provided>>;
|
|
29
31
|
export declare const serveTestHttpRoutes: (routes: readonly TestHttpRoute[]) => Effect.Effect<TestHttpServerShape, TestHttpServerAddressError | TestHttpServerServeError, EffectScope.Scope>;
|
|
30
32
|
export declare const serveTestHttpApp: (handler: (request: TestHttpRequest) => Effect.Effect<TestHttpResponse>) => Effect.Effect<TestHttpServerShape, TestHttpServerAddressError | TestHttpServerServeError, EffectScope.Scope>;
|
|
33
|
+
export declare const serveTestHttpServerLayer: (serverLayer: Layer.Layer<never, any, any>) => Effect.Effect<TestHttpServerShape, TestHttpServerAddressError | TestHttpServerServeError, EffectScope.Scope>;
|
|
31
34
|
//# sourceMappingURL=testing.d.ts.map
|
package/dist/testing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,MAAM,EAAE,KAAK,EAAa,KAAK,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AACvF,OAAO,EACL,UAAU,EACV,UAAU,EAEV,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,MAAM,EAAE,KAAK,EAAa,KAAK,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AACvF,OAAO,EACL,UAAU,EACV,UAAU,EAEV,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB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