@executor-js/plugin-onepassword 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -10
- package/dist/api/group.d.ts +19 -20
- package/dist/api/handlers.d.ts +2 -2
- package/dist/{chunk-57NB4OW6.js → chunk-HWMHIFQL.js} +161 -126
- package/dist/chunk-HWMHIFQL.js.map +1 -0
- package/dist/core.js +3 -1
- package/dist/index.js +1 -1
- package/dist/promise.d.ts +4 -0
- package/dist/react/OnePasswordSettings.d.ts +1 -0
- package/dist/react/atoms.d.ts +22 -0
- package/dist/react/client.d.ts +349 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/secret-provider-plugin.d.ts +2 -0
- package/dist/sdk/errors.d.ts +4 -6
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/plugin.d.ts +26 -12
- package/dist/sdk/plugin.test.d.ts +1 -0
- package/dist/sdk/service.d.ts +1 -1
- package/dist/sdk/types.d.ts +23 -68
- package/package.json +8 -13
- package/dist/chunk-57NB4OW6.js.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ScopeId } from "@executor-js/sdk/core";
|
|
2
|
+
export declare const onepasswordWriteKeys: readonly ["secrets"];
|
|
3
|
+
export declare const onepasswordConfigAtom: (scopeId: ScopeId) => import("effect/unstable/reactivity/Atom").Atom<import("effect/unstable/reactivity/AsyncResult").AsyncResult<import("../promise").OnePasswordConfig | null, import("../promise").OnePasswordError | import("@executor-js/api").InternalError>>;
|
|
4
|
+
export declare const onepasswordStatusAtom: (scopeId: ScopeId) => import("effect/unstable/reactivity/Atom").Atom<import("effect/unstable/reactivity/AsyncResult").AsyncResult<import("../promise").ConnectionStatus, import("../promise").OnePasswordError | import("@executor-js/api").InternalError>>;
|
|
5
|
+
export declare const onepasswordVaultsAtom: (authKind: "desktop-app" | "service-account", account: string, scopeId: ScopeId) => import("effect/unstable/reactivity/Atom").Atom<import("effect/unstable/reactivity/AsyncResult").AsyncResult<{
|
|
6
|
+
readonly vaults: readonly import("../promise").Vault[];
|
|
7
|
+
}, import("../promise").OnePasswordError | import("@executor-js/api").InternalError>>;
|
|
8
|
+
export declare const configureOnePassword: import("effect/unstable/reactivity/Atom").AtomResultFn<{
|
|
9
|
+
readonly params: {
|
|
10
|
+
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
11
|
+
};
|
|
12
|
+
readonly payload: import("../promise").OnePasswordConfig;
|
|
13
|
+
readonly responseMode?: "decoded-only" | undefined;
|
|
14
|
+
readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
|
|
15
|
+
}, void, import("../promise").OnePasswordError | import("@executor-js/api").InternalError>;
|
|
16
|
+
export declare const removeOnePasswordConfig: import("effect/unstable/reactivity/Atom").AtomResultFn<{
|
|
17
|
+
readonly params: {
|
|
18
|
+
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
19
|
+
};
|
|
20
|
+
readonly responseMode?: "decoded-only" | undefined;
|
|
21
|
+
readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
|
|
22
|
+
}, void, import("../promise").OnePasswordError | import("@executor-js/api").InternalError>;
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import * as AtomHttpApi from "effect/unstable/reactivity/AtomHttpApi";
|
|
2
|
+
export declare const OnePasswordClient: AtomHttpApi.AtomHttpApiClient<"OnePasswordClient", "OnePasswordClient", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"tools", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/scopes/:scopeId/tools", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
3
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
4
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
5
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
|
|
6
|
+
readonly pluginId: import("effect/Schema").String;
|
|
7
|
+
readonly sourceId: import("effect/Schema").String;
|
|
8
|
+
readonly name: import("effect/Schema").String;
|
|
9
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
10
|
+
readonly mayElicit: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
11
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"schema", "GET", "/scopes/:scopeId/tools/:toolId/schema", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
12
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
13
|
+
toolId: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
|
|
14
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
15
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
|
|
16
|
+
readonly inputTypeScript: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
17
|
+
readonly outputTypeScript: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
18
|
+
readonly typeScriptDefinitions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
19
|
+
readonly inputSchema: import("effect/Schema").optional<import("effect/Schema").Unknown>;
|
|
20
|
+
readonly outputSchema: import("effect/Schema").optional<import("effect/Schema").Unknown>;
|
|
21
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("@executor-js/sdk").ToolNotFoundError, {
|
|
22
|
+
readonly _tag: "ToolNotFoundError";
|
|
23
|
+
readonly toolId: string;
|
|
24
|
+
}, readonly [import("effect/Schema").TaggedStruct<"ToolNotFoundError", {
|
|
25
|
+
readonly toolId: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
|
|
26
|
+
}>], {
|
|
27
|
+
readonly _tag: "ToolNotFoundError";
|
|
28
|
+
readonly toolId: string & import("effect/Brand").Brand<"ToolId">;
|
|
29
|
+
}>, import("effect/Schema").TaggedStruct<"ToolNotFoundError", {
|
|
30
|
+
readonly toolId: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
|
|
31
|
+
}>, never, never> | typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"sources", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/scopes/:scopeId/sources", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
32
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
33
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
34
|
+
readonly id: import("effect/Schema").String;
|
|
35
|
+
readonly scopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
36
|
+
readonly name: import("effect/Schema").String;
|
|
37
|
+
readonly kind: import("effect/Schema").String;
|
|
38
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
39
|
+
readonly runtime: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
40
|
+
readonly canRemove: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
41
|
+
readonly canRefresh: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
42
|
+
readonly canEdit: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
43
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/scopes/:scopeId/sources/:sourceId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
44
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
45
|
+
sourceId: import("effect/Schema").String;
|
|
46
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
47
|
+
readonly removed: import("effect/Schema").Boolean;
|
|
48
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("@executor-js/sdk").SourceRemovalNotAllowedError, {
|
|
49
|
+
readonly _tag: "SourceRemovalNotAllowedError";
|
|
50
|
+
readonly sourceId: string;
|
|
51
|
+
}, readonly [import("effect/Schema").TaggedStruct<"SourceRemovalNotAllowedError", {
|
|
52
|
+
readonly sourceId: import("effect/Schema").String;
|
|
53
|
+
}>], {
|
|
54
|
+
readonly _tag: "SourceRemovalNotAllowedError";
|
|
55
|
+
readonly sourceId: string;
|
|
56
|
+
}>, import("effect/Schema").TaggedStruct<"SourceRemovalNotAllowedError", {
|
|
57
|
+
readonly sourceId: import("effect/Schema").String;
|
|
58
|
+
}>, never, never> | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/scopes/:scopeId/sources/:sourceId/refresh", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
59
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
60
|
+
sourceId: import("effect/Schema").String;
|
|
61
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
62
|
+
readonly refreshed: import("effect/Schema").Boolean;
|
|
63
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"tools", "GET", "/scopes/:scopeId/sources/:sourceId/tools", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
64
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
65
|
+
sourceId: import("effect/Schema").String;
|
|
66
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
67
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
|
|
68
|
+
readonly pluginId: import("effect/Schema").String;
|
|
69
|
+
readonly sourceId: import("effect/Schema").String;
|
|
70
|
+
readonly name: import("effect/Schema").String;
|
|
71
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
72
|
+
readonly mayElicit: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
73
|
+
readonly requiresApproval: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
74
|
+
readonly approvalDescription: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
75
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"detect", "POST", "/scopes/:scopeId/sources/detect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
76
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
77
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
78
|
+
readonly url: import("effect/Schema").String;
|
|
79
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
80
|
+
readonly kind: import("effect/Schema").String;
|
|
81
|
+
readonly confidence: import("effect/Schema").Literals<readonly ["high", "medium", "low"]>;
|
|
82
|
+
readonly endpoint: import("effect/Schema").String;
|
|
83
|
+
readonly name: import("effect/Schema").String;
|
|
84
|
+
readonly namespace: import("effect/Schema").String;
|
|
85
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"secrets", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/scopes/:scopeId/secrets", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
86
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
87
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
88
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
89
|
+
readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
90
|
+
readonly name: import("effect/Schema").String;
|
|
91
|
+
readonly provider: import("effect/Schema").String;
|
|
92
|
+
readonly createdAt: import("effect/Schema").Number;
|
|
93
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"status", "GET", "/scopes/:scopeId/secrets/:secretId/status", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
94
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
95
|
+
secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
96
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
97
|
+
readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
98
|
+
readonly status: import("effect/Schema").Literals<readonly ["resolved", "missing"]>;
|
|
99
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"set", "POST", "/scopes/:scopeId/secrets", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
100
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
101
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
102
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
103
|
+
readonly name: import("effect/Schema").String;
|
|
104
|
+
readonly value: import("effect/Schema").String;
|
|
105
|
+
readonly provider: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
106
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
107
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
108
|
+
readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
109
|
+
readonly name: import("effect/Schema").String;
|
|
110
|
+
readonly provider: import("effect/Schema").String;
|
|
111
|
+
readonly createdAt: import("effect/Schema").Number;
|
|
112
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("@executor-js/sdk").SecretResolutionError, {
|
|
113
|
+
readonly message: string;
|
|
114
|
+
readonly _tag: "SecretResolutionError";
|
|
115
|
+
readonly secretId: string;
|
|
116
|
+
}, readonly [import("effect/Schema").TaggedStruct<"SecretResolutionError", {
|
|
117
|
+
readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
118
|
+
readonly message: import("effect/Schema").String;
|
|
119
|
+
}>], {
|
|
120
|
+
readonly message: string;
|
|
121
|
+
readonly _tag: "SecretResolutionError";
|
|
122
|
+
readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
|
|
123
|
+
}>, import("effect/Schema").TaggedStruct<"SecretResolutionError", {
|
|
124
|
+
readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
125
|
+
readonly message: import("effect/Schema").String;
|
|
126
|
+
}>, never, never> | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/scopes/:scopeId/secrets/:secretId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
127
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
128
|
+
secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
129
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
130
|
+
readonly removed: import("effect/Schema").Boolean;
|
|
131
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("@executor-js/sdk").SecretNotFoundError, {
|
|
132
|
+
readonly _tag: "SecretNotFoundError";
|
|
133
|
+
readonly secretId: string;
|
|
134
|
+
}, readonly [import("effect/Schema").TaggedStruct<"SecretNotFoundError", {
|
|
135
|
+
readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
136
|
+
}>], {
|
|
137
|
+
readonly _tag: "SecretNotFoundError";
|
|
138
|
+
readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
|
|
139
|
+
}>, import("effect/Schema").TaggedStruct<"SecretNotFoundError", {
|
|
140
|
+
readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
141
|
+
}>, never, never> | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("@executor-js/sdk").SecretOwnedByConnectionError, {
|
|
142
|
+
readonly _tag: "SecretOwnedByConnectionError";
|
|
143
|
+
readonly secretId: string;
|
|
144
|
+
readonly connectionId: string;
|
|
145
|
+
}, readonly [import("effect/Schema").TaggedStruct<"SecretOwnedByConnectionError", {
|
|
146
|
+
readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
147
|
+
readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
|
|
148
|
+
}>], {
|
|
149
|
+
readonly _tag: "SecretOwnedByConnectionError";
|
|
150
|
+
readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
|
|
151
|
+
readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
|
|
152
|
+
}>, import("effect/Schema").TaggedStruct<"SecretOwnedByConnectionError", {
|
|
153
|
+
readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
154
|
+
readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
|
|
155
|
+
}>, never, never> | typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"connections", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/scopes/:scopeId/connections", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
156
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
157
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
158
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
|
|
159
|
+
readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
160
|
+
readonly provider: import("effect/Schema").String;
|
|
161
|
+
readonly identityLabel: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
162
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
163
|
+
readonly oauthScope: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
164
|
+
readonly createdAt: import("effect/Schema").Number;
|
|
165
|
+
readonly updatedAt: import("effect/Schema").Number;
|
|
166
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/scopes/:scopeId/connections/:connectionId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
167
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
168
|
+
connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
|
|
169
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
170
|
+
readonly removed: import("effect/Schema").Boolean;
|
|
171
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"executions", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"execute", "POST", "/executions", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
172
|
+
readonly code: import("effect/Schema").String;
|
|
173
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
174
|
+
readonly status: import("effect/Schema").Literal<"completed">;
|
|
175
|
+
readonly text: import("effect/Schema").String;
|
|
176
|
+
readonly structured: import("effect/Schema").Unknown;
|
|
177
|
+
readonly isError: import("effect/Schema").Boolean;
|
|
178
|
+
}>, import("effect/Schema").Struct<{
|
|
179
|
+
readonly status: import("effect/Schema").Literal<"paused">;
|
|
180
|
+
readonly text: import("effect/Schema").String;
|
|
181
|
+
readonly structured: import("effect/Schema").Unknown;
|
|
182
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resume", "POST", "/executions/:executionId/resume", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
183
|
+
executionId: import("effect/Schema").String;
|
|
184
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
185
|
+
readonly action: import("effect/Schema").Literals<readonly ["accept", "decline", "cancel"]>;
|
|
186
|
+
readonly content: import("effect/Schema").optional<import("effect/Schema").Unknown>;
|
|
187
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
188
|
+
readonly text: import("effect/Schema").String;
|
|
189
|
+
readonly structured: import("effect/Schema").Unknown;
|
|
190
|
+
readonly isError: import("effect/Schema").Boolean;
|
|
191
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | import("effect/Schema").Struct<{
|
|
192
|
+
readonly _tag: import("effect/Schema").tag<"ExecutionNotFoundError">;
|
|
193
|
+
readonly executionId: import("effect/Schema").String;
|
|
194
|
+
}>>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"scope", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"info", "GET", "/scope", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
195
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
196
|
+
readonly name: import("effect/Schema").String;
|
|
197
|
+
readonly dir: import("effect/Schema").String;
|
|
198
|
+
readonly stack: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
199
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
200
|
+
readonly name: import("effect/Schema").String;
|
|
201
|
+
readonly dir: import("effect/Schema").String;
|
|
202
|
+
}>>;
|
|
203
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"probe", "POST", "/scopes/:scopeId/oauth/probe", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
204
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
205
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
206
|
+
readonly endpoint: import("effect/Schema").String;
|
|
207
|
+
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
208
|
+
readonly secretId: import("effect/Schema").String;
|
|
209
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
210
|
+
}>]>>>;
|
|
211
|
+
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
212
|
+
readonly secretId: import("effect/Schema").String;
|
|
213
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
214
|
+
}>]>>>;
|
|
215
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
216
|
+
readonly resourceMetadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
217
|
+
readonly resourceMetadataUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
218
|
+
readonly authorizationServerMetadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
219
|
+
readonly authorizationServerMetadataUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
220
|
+
readonly authorizationServerUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
221
|
+
readonly supportsDynamicRegistration: import("effect/Schema").Boolean;
|
|
222
|
+
readonly isBearerChallengeEndpoint: import("effect/Schema").Boolean;
|
|
223
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").OAuthProbeError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/scopes/:scopeId/oauth/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
224
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
225
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
226
|
+
readonly endpoint: import("effect/Schema").String;
|
|
227
|
+
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
228
|
+
readonly secretId: import("effect/Schema").String;
|
|
229
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
230
|
+
}>]>>>;
|
|
231
|
+
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
232
|
+
readonly secretId: import("effect/Schema").String;
|
|
233
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
234
|
+
}>]>>>;
|
|
235
|
+
readonly redirectUrl: import("effect/Schema").String;
|
|
236
|
+
readonly connectionId: import("effect/Schema").String;
|
|
237
|
+
readonly tokenScope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
238
|
+
readonly strategy: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
239
|
+
readonly kind: import("effect/Schema").Literal<"dynamic-dcr">;
|
|
240
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
241
|
+
}>, import("effect/Schema").Struct<{
|
|
242
|
+
readonly kind: import("effect/Schema").Literal<"authorization-code">;
|
|
243
|
+
readonly authorizationEndpoint: import("effect/Schema").String;
|
|
244
|
+
readonly tokenEndpoint: import("effect/Schema").String;
|
|
245
|
+
readonly issuerUrl: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
246
|
+
readonly clientIdSecretId: import("effect/Schema").String;
|
|
247
|
+
readonly clientSecretSecretId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
248
|
+
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
249
|
+
readonly scopeSeparator: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
250
|
+
readonly extraAuthorizationParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
251
|
+
readonly clientAuth: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["body", "basic"]>>;
|
|
252
|
+
}>, import("effect/Schema").Struct<{
|
|
253
|
+
readonly kind: import("effect/Schema").Literal<"client-credentials">;
|
|
254
|
+
readonly tokenEndpoint: import("effect/Schema").String;
|
|
255
|
+
readonly clientIdSecretId: import("effect/Schema").String;
|
|
256
|
+
readonly clientSecretSecretId: import("effect/Schema").String;
|
|
257
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
258
|
+
readonly scopeSeparator: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
259
|
+
readonly clientAuth: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["body", "basic"]>>;
|
|
260
|
+
}>]>;
|
|
261
|
+
readonly pluginId: import("effect/Schema").String;
|
|
262
|
+
readonly identityLabel: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
263
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
264
|
+
readonly sessionId: import("effect/Schema").String;
|
|
265
|
+
readonly authorizationUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
266
|
+
readonly completedConnection: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
267
|
+
readonly connectionId: import("effect/Schema").String;
|
|
268
|
+
}>>;
|
|
269
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").OAuthStartError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"complete", "POST", "/scopes/:scopeId/oauth/complete", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
270
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
271
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
272
|
+
readonly state: import("effect/Schema").String;
|
|
273
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
274
|
+
readonly error: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
275
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
276
|
+
readonly connectionId: import("effect/Schema").String;
|
|
277
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
278
|
+
readonly scope: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
279
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").OAuthCompleteError | typeof import("@executor-js/sdk").OAuthSessionNotFoundError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"cancel", "POST", "/scopes/:scopeId/oauth/cancel", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
280
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
281
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
282
|
+
readonly sessionId: import("effect/Schema").String;
|
|
283
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
284
|
+
readonly cancelled: import("effect/Schema").Boolean;
|
|
285
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").OAuthSessionNotFoundError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"callback", "GET", "/oauth/callback", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
286
|
+
readonly state: import("effect/Schema").String;
|
|
287
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
288
|
+
readonly error: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
289
|
+
readonly error_description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
290
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").String>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").OAuthCompleteError | typeof import("@executor-js/sdk").OAuthSessionNotFoundError | typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"policies", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/scopes/:scopeId/policies", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
291
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
292
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
293
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
294
|
+
readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
295
|
+
readonly pattern: import("effect/Schema").String;
|
|
296
|
+
readonly action: import("effect/Schema").Literals<readonly ["approve", "require_approval", "block"]>;
|
|
297
|
+
readonly position: import("effect/Schema").String;
|
|
298
|
+
readonly createdAt: import("effect/Schema").Number;
|
|
299
|
+
readonly updatedAt: import("effect/Schema").Number;
|
|
300
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/scopes/:scopeId/policies", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
301
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
302
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
303
|
+
readonly pattern: import("effect/Schema").String;
|
|
304
|
+
readonly action: import("effect/Schema").Literals<readonly ["approve", "require_approval", "block"]>;
|
|
305
|
+
readonly position: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
306
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
307
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
308
|
+
readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
309
|
+
readonly pattern: import("effect/Schema").String;
|
|
310
|
+
readonly action: import("effect/Schema").Literals<readonly ["approve", "require_approval", "block"]>;
|
|
311
|
+
readonly position: import("effect/Schema").String;
|
|
312
|
+
readonly createdAt: import("effect/Schema").Number;
|
|
313
|
+
readonly updatedAt: import("effect/Schema").Number;
|
|
314
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"update", "PATCH", "/scopes/:scopeId/policies/:policyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
315
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
316
|
+
policyId: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
317
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
318
|
+
readonly pattern: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
319
|
+
readonly action: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["approve", "require_approval", "block"]>>;
|
|
320
|
+
readonly position: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
321
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
322
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
323
|
+
readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
324
|
+
readonly pattern: import("effect/Schema").String;
|
|
325
|
+
readonly action: import("effect/Schema").Literals<readonly ["approve", "require_approval", "block"]>;
|
|
326
|
+
readonly position: import("effect/Schema").String;
|
|
327
|
+
readonly createdAt: import("effect/Schema").Number;
|
|
328
|
+
readonly updatedAt: import("effect/Schema").Number;
|
|
329
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/scopes/:scopeId/policies/:policyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
330
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
331
|
+
policyId: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
|
|
332
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
333
|
+
readonly removed: import("effect/Schema").Boolean;
|
|
334
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"onepassword", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getConfig", "GET", "/scopes/:scopeId/onepassword/config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
335
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
336
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<typeof import("../promise").OnePasswordConfig>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../promise").OnePasswordError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"configure", "PUT", "/scopes/:scopeId/onepassword/config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
337
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
338
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../promise").OnePasswordConfig>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Void>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../promise").OnePasswordError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"removeConfig", "DELETE", "/scopes/:scopeId/onepassword/config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
339
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
340
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Void>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../promise").OnePasswordError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"status", "GET", "/scopes/:scopeId/onepassword/status", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
341
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
342
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../promise").ConnectionStatus>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../promise").OnePasswordError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listVaults", "GET", "/scopes/:scopeId/onepassword/vaults", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
343
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
344
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
345
|
+
readonly authKind: import("effect/Schema").Literals<readonly ["desktop-app", "service-account"]>;
|
|
346
|
+
readonly account: import("effect/Schema").String;
|
|
347
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
348
|
+
readonly vaults: import("effect/Schema").$Array<typeof import("../promise").Vault>;
|
|
349
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../promise").OnePasswordError | typeof import("@executor-js/api").InternalError>, never, never>, false>>;
|
package/dist/sdk/errors.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
declare const OnePasswordError_base: Schema.
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
message: typeof Schema.String;
|
|
7
|
-
}>;
|
|
2
|
+
declare const OnePasswordError_base: Schema.Class<OnePasswordError, Schema.TaggedStruct<"OnePasswordError", {
|
|
3
|
+
readonly operation: Schema.String;
|
|
4
|
+
readonly message: Schema.String;
|
|
5
|
+
}>, import("effect/Cause").YieldableError>;
|
|
8
6
|
export declare class OnePasswordError extends OnePasswordError_base {
|
|
9
7
|
}
|
|
10
8
|
export {};
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { onepasswordPlugin, type OnePasswordExtension, type OnePasswordPluginOptions, } from "./plugin";
|
|
1
|
+
export { onepasswordPlugin, makeOnePasswordStore, type OnePasswordExtension, type OnePasswordPluginOptions, type OnePasswordStore, } from "./plugin";
|
|
2
2
|
export { OnePasswordConfig, Vault, ConnectionStatus, OnePasswordAuth, DesktopAppAuth, ServiceAccountAuth, } from "./types";
|
|
3
3
|
export { OnePasswordError } from "./errors";
|
|
4
4
|
export { makeOnePasswordService, makeNativeSdkService, makeCliService, OnePasswordServiceTag, type OnePasswordService, type ResolvedAuth, } from "./service";
|
package/dist/sdk/plugin.d.ts
CHANGED
|
@@ -1,30 +1,44 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import { type
|
|
2
|
+
import { StorageError, type PluginBlobStore, type StorageFailure } from "@executor-js/sdk/core";
|
|
3
3
|
import { OnePasswordConfig, Vault, ConnectionStatus } from "./types";
|
|
4
4
|
import type { OnePasswordAuth } from "./types";
|
|
5
5
|
import { OnePasswordError } from "./errors";
|
|
6
|
-
|
|
6
|
+
export type OnePasswordExtensionFailure = OnePasswordError | StorageFailure;
|
|
7
7
|
export interface OnePasswordExtension {
|
|
8
8
|
/** Configure the 1Password connection */
|
|
9
|
-
readonly configure: (config: OnePasswordConfig) => Effect.Effect<void,
|
|
9
|
+
readonly configure: (config: OnePasswordConfig) => Effect.Effect<void, StorageFailure>;
|
|
10
10
|
/** Get current configuration (if any) */
|
|
11
|
-
readonly getConfig: () => Effect.Effect<OnePasswordConfig | null,
|
|
11
|
+
readonly getConfig: () => Effect.Effect<OnePasswordConfig | null, OnePasswordExtensionFailure>;
|
|
12
12
|
/** Remove the 1Password configuration */
|
|
13
|
-
readonly removeConfig: () => Effect.Effect<void>;
|
|
13
|
+
readonly removeConfig: () => Effect.Effect<void, StorageFailure>;
|
|
14
14
|
/** Check connection status */
|
|
15
|
-
readonly status: () => Effect.Effect<ConnectionStatus,
|
|
15
|
+
readonly status: () => Effect.Effect<ConnectionStatus, OnePasswordExtensionFailure>;
|
|
16
16
|
/** List accessible vaults (requires auth) */
|
|
17
|
-
readonly listVaults: (auth: OnePasswordAuth) => Effect.Effect<ReadonlyArray<Vault>,
|
|
17
|
+
readonly listVaults: (auth: OnePasswordAuth) => Effect.Effect<ReadonlyArray<Vault>, OnePasswordExtensionFailure>;
|
|
18
18
|
/** Resolve a secret directly by op:// URI */
|
|
19
|
-
readonly resolve: (uri: string) => Effect.Effect<string,
|
|
19
|
+
readonly resolve: (uri: string) => Effect.Effect<string, OnePasswordExtensionFailure>;
|
|
20
20
|
}
|
|
21
|
+
export interface OnePasswordStore {
|
|
22
|
+
readonly getConfig: () => Effect.Effect<OnePasswordConfig | null, StorageError | OnePasswordError>;
|
|
23
|
+
readonly saveConfig: (config: OnePasswordConfig) => Effect.Effect<void, StorageError>;
|
|
24
|
+
readonly deleteConfig: () => Effect.Effect<void, StorageError>;
|
|
25
|
+
}
|
|
26
|
+
export declare const makeOnePasswordStore: (blobs: PluginBlobStore,
|
|
27
|
+
/** Scope id that owns the single 1Password config blob. Default is the
|
|
28
|
+
* outermost scope (org/workspace) so the config is visible across
|
|
29
|
+
* every per-user scope via the blob store's fall-through read. */
|
|
30
|
+
writeScope: string) => OnePasswordStore;
|
|
21
31
|
export interface OnePasswordPluginOptions {
|
|
22
|
-
/** Scoped KV for persisting config (provided by server) */
|
|
23
|
-
readonly kv: ScopedKv;
|
|
24
32
|
/** Request timeout in ms (default: 15000) */
|
|
25
33
|
readonly timeoutMs?: number;
|
|
26
34
|
/** Force use of the native SDK instead of the CLI (default: false) */
|
|
27
35
|
readonly preferSdk?: boolean;
|
|
28
36
|
}
|
|
29
|
-
export declare const onepasswordPlugin: (
|
|
30
|
-
|
|
37
|
+
export declare const onepasswordPlugin: import("@executor-js/sdk/core").ConfiguredPlugin<"onepassword", {
|
|
38
|
+
configure: (config: OnePasswordConfig) => Effect.Effect<void, StorageError, never>;
|
|
39
|
+
getConfig: () => Effect.Effect<OnePasswordConfig | null, StorageError | OnePasswordError, never>;
|
|
40
|
+
removeConfig: () => Effect.Effect<void, StorageError, never>;
|
|
41
|
+
status: () => Effect.Effect<ConnectionStatus, StorageFailure | OnePasswordError, never>;
|
|
42
|
+
listVaults: (auth: import("./types").DesktopAppAuth | import("./types").ServiceAccountAuth) => Effect.Effect<Vault[], StorageFailure | OnePasswordError, never>;
|
|
43
|
+
resolve: (uri: string) => Effect.Effect<string, StorageFailure | OnePasswordError, never>;
|
|
44
|
+
}, OnePasswordStore, OnePasswordPluginOptions, undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/sdk/service.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface OnePasswordService {
|
|
|
16
16
|
/** List items in a vault */
|
|
17
17
|
readonly listItems: (vaultId: string) => Effect.Effect<ReadonlyArray<OnePasswordItem>, OnePasswordError>;
|
|
18
18
|
}
|
|
19
|
-
declare const OnePasswordServiceTag_base: Context.
|
|
19
|
+
declare const OnePasswordServiceTag_base: Context.ServiceClass<OnePasswordServiceTag, "@executor-js/plugin-onepassword/OnePasswordService", OnePasswordService>;
|
|
20
20
|
export declare class OnePasswordServiceTag extends OnePasswordServiceTag_base {
|
|
21
21
|
}
|
|
22
22
|
export type ResolvedAuth = {
|