@executor-js/sdk 1.4.29 → 1.4.30
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/core-schema.d.ts
CHANGED
|
@@ -1,424 +1,304 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
1
|
+
import { type AnyColumn } from "fumadb/schema";
|
|
2
|
+
import type { FumaRow } from "./fuma-runtime";
|
|
3
|
+
type UserColumns = Record<string, AnyColumn>;
|
|
4
|
+
export declare const textColumn: (name: string) => import("fumadb/schema").Column<"string", string, string>;
|
|
5
|
+
export declare const nullableTextColumn: (name: string) => import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
6
|
+
export declare const boolColumn: (name: string, defaultValue: boolean) => import("fumadb/schema").Column<"bool", boolean | null, boolean>;
|
|
7
|
+
export declare const bigintColumn: (name: string) => import("fumadb/schema").Column<"bigint", bigint, bigint>;
|
|
8
|
+
export declare const nullableBigintColumn: (name: string) => import("fumadb/schema").Column<"bigint", bigint | null, bigint | null>;
|
|
9
|
+
export declare const jsonColumn: (name: string) => import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
10
|
+
export declare const nullableJsonColumn: (name: string) => import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
11
|
+
export declare const dateColumn: (name: string) => import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
12
|
+
export declare const scopedExecutorTable: <const TColumns extends UserColumns>(name: string, columns: TColumns) => import("fumadb/schema").Table<TColumns & {
|
|
13
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
14
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
15
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export declare const credentialBindingKinds: readonly ["text", "secret", "connection"];
|
|
18
|
+
export declare const coreTables: {
|
|
19
|
+
readonly source: import("fumadb/schema").Table<{
|
|
20
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
21
|
+
readonly kind: import("fumadb/schema").Column<"string", string, string>;
|
|
22
|
+
readonly name: import("fumadb/schema").Column<"string", string, string>;
|
|
23
|
+
readonly url: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
24
|
+
readonly can_remove: import("fumadb/schema").Column<"bool", boolean | null, boolean>;
|
|
25
|
+
readonly can_refresh: import("fumadb/schema").Column<"bool", boolean | null, boolean>;
|
|
26
|
+
readonly can_edit: import("fumadb/schema").Column<"bool", boolean | null, boolean>;
|
|
27
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
28
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
29
|
+
} & {
|
|
30
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
31
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
32
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
33
|
+
}, {}>;
|
|
34
|
+
readonly tool: import("fumadb/schema").Table<{
|
|
35
|
+
readonly source_id: import("fumadb/schema").Column<"string", string, string>;
|
|
36
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
37
|
+
readonly name: import("fumadb/schema").Column<"string", string, string>;
|
|
38
|
+
readonly description: import("fumadb/schema").Column<"string", string, string>;
|
|
39
|
+
readonly input_schema: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
40
|
+
readonly output_schema: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
41
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
42
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
43
|
+
} & {
|
|
44
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
45
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
46
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
47
|
+
}, {}>;
|
|
48
|
+
readonly definition: import("fumadb/schema").Table<{
|
|
49
|
+
readonly source_id: import("fumadb/schema").Column<"string", string, string>;
|
|
50
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
51
|
+
readonly name: import("fumadb/schema").Column<"string", string, string>;
|
|
52
|
+
readonly schema: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
53
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
54
|
+
} & {
|
|
55
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
56
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
57
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
58
|
+
}, {}>;
|
|
59
|
+
readonly secret: import("fumadb/schema").Table<{
|
|
60
|
+
readonly name: import("fumadb/schema").Column<"string", string, string>;
|
|
61
|
+
readonly provider: import("fumadb/schema").Column<"string", string, string>;
|
|
62
|
+
readonly owned_by_connection_id: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
63
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
64
|
+
} & {
|
|
65
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
66
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
67
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
68
|
+
}, {}>;
|
|
69
|
+
readonly connection: import("fumadb/schema").Table<{
|
|
70
|
+
readonly provider: import("fumadb/schema").Column<"string", string, string>;
|
|
71
|
+
readonly identity_label: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
72
|
+
readonly access_token_secret_id: import("fumadb/schema").Column<"string", string, string>;
|
|
73
|
+
readonly refresh_token_secret_id: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
74
|
+
readonly expires_at: import("fumadb/schema").Column<"bigint", bigint | null, bigint | null>;
|
|
75
|
+
readonly scope: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
76
|
+
readonly provider_state: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
77
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
78
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
79
|
+
} & {
|
|
80
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
81
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
82
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
83
|
+
}, {}>;
|
|
84
|
+
readonly oauth2_session: import("fumadb/schema").Table<{
|
|
85
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
86
|
+
readonly strategy: import("fumadb/schema").Column<"string", string, string>;
|
|
87
|
+
readonly connection_id: import("fumadb/schema").Column<"string", string, string>;
|
|
88
|
+
readonly token_scope: import("fumadb/schema").Column<"string", string, string>;
|
|
89
|
+
readonly redirect_url: import("fumadb/schema").Column<"string", string, string>;
|
|
90
|
+
readonly payload: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
91
|
+
readonly expires_at: import("fumadb/schema").Column<"bigint", bigint, bigint>;
|
|
92
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
93
|
+
} & {
|
|
94
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
95
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
96
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
97
|
+
}, {}>;
|
|
98
|
+
readonly credential_binding: import("fumadb/schema").Table<{
|
|
99
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
100
|
+
readonly source_id: import("fumadb/schema").Column<"string", string, string>;
|
|
101
|
+
readonly source_scope_id: import("fumadb/schema").Column<"string", string, string>;
|
|
102
|
+
readonly slot_key: import("fumadb/schema").Column<"string", string, string>;
|
|
103
|
+
readonly kind: import("fumadb/schema").Column<"string", string, string>;
|
|
104
|
+
readonly text_value: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
105
|
+
readonly secret_id: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
106
|
+
readonly secret_scope_id: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
107
|
+
readonly connection_id: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
108
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
109
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
110
|
+
} & {
|
|
111
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
112
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
113
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
114
|
+
}, {}>;
|
|
115
|
+
readonly plugin_storage: import("fumadb/schema").Table<{
|
|
116
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
117
|
+
readonly collection: import("fumadb/schema").Column<"string", string, string>;
|
|
118
|
+
readonly key: import("fumadb/schema").Column<"string", string, string>;
|
|
119
|
+
readonly data: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
120
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
121
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
122
|
+
} & {
|
|
123
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
124
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
125
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
126
|
+
}, {}>;
|
|
127
|
+
readonly tool_policy: import("fumadb/schema").Table<{
|
|
128
|
+
readonly pattern: import("fumadb/schema").Column<"string", string, string>;
|
|
129
|
+
readonly action: import("fumadb/schema").Column<"string", string, string>;
|
|
130
|
+
readonly position: import("fumadb/schema").Column<"string", string, string>;
|
|
131
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
132
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
133
|
+
} & {
|
|
134
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
135
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
136
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
137
|
+
}, {}>;
|
|
138
|
+
readonly blob: import("fumadb/schema").Table<{
|
|
139
|
+
readonly namespace: import("fumadb/schema").Column<"string", string, string>;
|
|
140
|
+
readonly key: import("fumadb/schema").Column<"string", string, string>;
|
|
141
|
+
readonly value: import("fumadb/schema").Column<"string", string, string>;
|
|
142
|
+
} & {
|
|
143
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
144
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
145
|
+
}, {}>;
|
|
146
|
+
};
|
|
3
147
|
export declare const coreSchema: {
|
|
4
|
-
readonly source: {
|
|
5
|
-
readonly
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
readonly
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
readonly
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
readonly required: true;
|
|
132
|
-
};
|
|
133
|
-
readonly created_at: {
|
|
134
|
-
readonly type: "date";
|
|
135
|
-
readonly required: true;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
readonly secret: {
|
|
140
|
-
readonly fields: {
|
|
141
|
-
readonly id: {
|
|
142
|
-
readonly type: "string";
|
|
143
|
-
readonly required: true;
|
|
144
|
-
};
|
|
145
|
-
readonly scope_id: {
|
|
146
|
-
readonly type: "string";
|
|
147
|
-
readonly required: true;
|
|
148
|
-
readonly index: true;
|
|
149
|
-
};
|
|
150
|
-
readonly name: {
|
|
151
|
-
readonly type: "string";
|
|
152
|
-
readonly required: true;
|
|
153
|
-
};
|
|
154
|
-
readonly provider: {
|
|
155
|
-
readonly type: "string";
|
|
156
|
-
readonly required: true;
|
|
157
|
-
readonly index: true;
|
|
158
|
-
};
|
|
159
|
-
readonly owned_by_connection_id: {
|
|
160
|
-
readonly type: "string";
|
|
161
|
-
readonly required: false;
|
|
162
|
-
readonly index: true;
|
|
163
|
-
};
|
|
164
|
-
readonly created_at: {
|
|
165
|
-
readonly type: "date";
|
|
166
|
-
readonly required: true;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
readonly connection: {
|
|
171
|
-
readonly fields: {
|
|
172
|
-
readonly id: {
|
|
173
|
-
readonly type: "string";
|
|
174
|
-
readonly required: true;
|
|
175
|
-
};
|
|
176
|
-
readonly scope_id: {
|
|
177
|
-
readonly type: "string";
|
|
178
|
-
readonly required: true;
|
|
179
|
-
readonly index: true;
|
|
180
|
-
};
|
|
181
|
-
/** Routing key into `plugin.connectionProviders`. OAuth2 connections
|
|
182
|
-
* use the shared `oauth2` provider. Mirrors `secret.provider`. */
|
|
183
|
-
readonly provider: {
|
|
184
|
-
readonly type: "string";
|
|
185
|
-
readonly required: true;
|
|
186
|
-
readonly index: true;
|
|
187
|
-
};
|
|
188
|
-
/** Display label shown in the Connections UI. Usually the account
|
|
189
|
-
* email / handle / org name the user signed in as. */
|
|
190
|
-
readonly identity_label: {
|
|
191
|
-
readonly type: "string";
|
|
192
|
-
readonly required: false;
|
|
193
|
-
};
|
|
194
|
-
/** Stable id of the access-token secret. Always present. */
|
|
195
|
-
readonly access_token_secret_id: {
|
|
196
|
-
readonly type: "string";
|
|
197
|
-
readonly required: true;
|
|
198
|
-
};
|
|
199
|
-
/** Stable id of the refresh-token secret. Null for flows that
|
|
200
|
-
* don't mint a refresh token (client_credentials, etc.). */
|
|
201
|
-
readonly refresh_token_secret_id: {
|
|
202
|
-
readonly type: "string";
|
|
203
|
-
readonly required: false;
|
|
204
|
-
};
|
|
205
|
-
/** Epoch ms when the access token expires. Null if the provider
|
|
206
|
-
* didn't declare an expiry. Used as the refresh trigger. Stored as
|
|
207
|
-
* `bigint` because `Date.now()` overflows int32. */
|
|
208
|
-
readonly expires_at: {
|
|
209
|
-
readonly type: "number";
|
|
210
|
-
readonly required: false;
|
|
211
|
-
readonly bigint: true;
|
|
212
|
-
};
|
|
213
|
-
/** Scope string as returned by the token endpoint. */
|
|
214
|
-
readonly scope: {
|
|
215
|
-
readonly type: "string";
|
|
216
|
-
readonly required: false;
|
|
217
|
-
};
|
|
218
|
-
/** Opaque plugin-owned JSON — token endpoint URL, scopes list,
|
|
219
|
-
* discovery hints, etc. Never sensitive. */
|
|
220
|
-
readonly provider_state: {
|
|
221
|
-
readonly type: "json";
|
|
222
|
-
readonly required: false;
|
|
223
|
-
};
|
|
224
|
-
readonly created_at: {
|
|
225
|
-
readonly type: "date";
|
|
226
|
-
readonly required: true;
|
|
227
|
-
};
|
|
228
|
-
readonly updated_at: {
|
|
229
|
-
readonly type: "date";
|
|
230
|
-
readonly required: true;
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
readonly oauth2_session: {
|
|
235
|
-
readonly fields: {
|
|
236
|
-
readonly id: {
|
|
237
|
-
readonly type: "string";
|
|
238
|
-
readonly required: true;
|
|
239
|
-
};
|
|
240
|
-
readonly scope_id: {
|
|
241
|
-
readonly type: "string";
|
|
242
|
-
readonly required: true;
|
|
243
|
-
readonly index: true;
|
|
244
|
-
};
|
|
245
|
-
readonly plugin_id: {
|
|
246
|
-
readonly type: "string";
|
|
247
|
-
readonly required: true;
|
|
248
|
-
readonly index: true;
|
|
249
|
-
};
|
|
250
|
-
readonly strategy: {
|
|
251
|
-
readonly type: "string";
|
|
252
|
-
readonly required: true;
|
|
253
|
-
};
|
|
254
|
-
readonly connection_id: {
|
|
255
|
-
readonly type: "string";
|
|
256
|
-
readonly required: true;
|
|
257
|
-
readonly index: true;
|
|
258
|
-
};
|
|
259
|
-
readonly token_scope: {
|
|
260
|
-
readonly type: "string";
|
|
261
|
-
readonly required: true;
|
|
262
|
-
};
|
|
263
|
-
readonly redirect_url: {
|
|
264
|
-
readonly type: "string";
|
|
265
|
-
readonly required: true;
|
|
266
|
-
};
|
|
267
|
-
readonly payload: {
|
|
268
|
-
readonly type: "json";
|
|
269
|
-
readonly required: true;
|
|
270
|
-
};
|
|
271
|
-
readonly expires_at: {
|
|
272
|
-
readonly type: "number";
|
|
273
|
-
readonly required: true;
|
|
274
|
-
readonly bigint: true;
|
|
275
|
-
};
|
|
276
|
-
readonly created_at: {
|
|
277
|
-
readonly type: "date";
|
|
278
|
-
readonly required: true;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
readonly credential_binding: {
|
|
283
|
-
readonly fields: {
|
|
284
|
-
readonly id: {
|
|
285
|
-
readonly type: "string";
|
|
286
|
-
readonly required: true;
|
|
287
|
-
};
|
|
288
|
-
readonly scope_id: {
|
|
289
|
-
readonly type: "string";
|
|
290
|
-
readonly required: true;
|
|
291
|
-
readonly index: true;
|
|
292
|
-
};
|
|
293
|
-
readonly plugin_id: {
|
|
294
|
-
readonly type: "string";
|
|
295
|
-
readonly required: true;
|
|
296
|
-
readonly index: true;
|
|
297
|
-
};
|
|
298
|
-
readonly source_id: {
|
|
299
|
-
readonly type: "string";
|
|
300
|
-
readonly required: true;
|
|
301
|
-
readonly index: true;
|
|
302
|
-
};
|
|
303
|
-
readonly source_scope_id: {
|
|
304
|
-
readonly type: "string";
|
|
305
|
-
readonly required: true;
|
|
306
|
-
readonly index: true;
|
|
307
|
-
};
|
|
308
|
-
readonly slot_key: {
|
|
309
|
-
readonly type: "string";
|
|
310
|
-
readonly required: true;
|
|
311
|
-
readonly index: true;
|
|
312
|
-
};
|
|
313
|
-
/** "text" | "secret" | "connection". */
|
|
314
|
-
readonly kind: {
|
|
315
|
-
readonly type: ["text", "secret", "connection"];
|
|
316
|
-
readonly required: true;
|
|
317
|
-
readonly index: true;
|
|
318
|
-
};
|
|
319
|
-
readonly text_value: {
|
|
320
|
-
readonly type: "string";
|
|
321
|
-
readonly required: false;
|
|
322
|
-
};
|
|
323
|
-
readonly secret_id: {
|
|
324
|
-
readonly type: "string";
|
|
325
|
-
readonly required: false;
|
|
326
|
-
readonly index: true;
|
|
327
|
-
};
|
|
328
|
-
readonly secret_scope_id: {
|
|
329
|
-
readonly type: "string";
|
|
330
|
-
readonly required: false;
|
|
331
|
-
readonly index: true;
|
|
332
|
-
};
|
|
333
|
-
readonly connection_id: {
|
|
334
|
-
readonly type: "string";
|
|
335
|
-
readonly required: false;
|
|
336
|
-
readonly index: true;
|
|
337
|
-
};
|
|
338
|
-
readonly created_at: {
|
|
339
|
-
readonly type: "date";
|
|
340
|
-
readonly required: true;
|
|
341
|
-
};
|
|
342
|
-
readonly updated_at: {
|
|
343
|
-
readonly type: "date";
|
|
344
|
-
readonly required: true;
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
|
-
};
|
|
348
|
-
readonly tool_policy: {
|
|
349
|
-
readonly fields: {
|
|
350
|
-
readonly id: {
|
|
351
|
-
readonly type: "string";
|
|
352
|
-
readonly required: true;
|
|
353
|
-
};
|
|
354
|
-
readonly scope_id: {
|
|
355
|
-
readonly type: "string";
|
|
356
|
-
readonly required: true;
|
|
357
|
-
readonly index: true;
|
|
358
|
-
};
|
|
359
|
-
readonly pattern: {
|
|
360
|
-
readonly type: "string";
|
|
361
|
-
readonly required: true;
|
|
362
|
-
};
|
|
363
|
-
/** "approve" | "require_approval" | "block". */
|
|
364
|
-
readonly action: {
|
|
365
|
-
readonly type: "string";
|
|
366
|
-
readonly required: true;
|
|
367
|
-
};
|
|
368
|
-
/** Fractional-indexing key (Jira lexorank style). Lower lex order =
|
|
369
|
-
* higher precedence. New rules default to a key generated above
|
|
370
|
-
* the current minimum. Strings instead of numbers so we can
|
|
371
|
-
* always lengthen the key to insert between two adjacent rows
|
|
372
|
-
* without precision loss; see `fractional-indexing` in
|
|
373
|
-
* `policies.ts`. */
|
|
374
|
-
readonly position: {
|
|
375
|
-
readonly type: "string";
|
|
376
|
-
readonly required: true;
|
|
377
|
-
readonly index: true;
|
|
378
|
-
};
|
|
379
|
-
readonly created_at: {
|
|
380
|
-
readonly type: "date";
|
|
381
|
-
readonly required: true;
|
|
382
|
-
};
|
|
383
|
-
readonly updated_at: {
|
|
384
|
-
readonly type: "date";
|
|
385
|
-
readonly required: true;
|
|
386
|
-
};
|
|
387
|
-
};
|
|
388
|
-
};
|
|
148
|
+
readonly source: import("fumadb/schema").Table<{
|
|
149
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
150
|
+
readonly kind: import("fumadb/schema").Column<"string", string, string>;
|
|
151
|
+
readonly name: import("fumadb/schema").Column<"string", string, string>;
|
|
152
|
+
readonly url: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
153
|
+
readonly can_remove: import("fumadb/schema").Column<"bool", boolean | null, boolean>;
|
|
154
|
+
readonly can_refresh: import("fumadb/schema").Column<"bool", boolean | null, boolean>;
|
|
155
|
+
readonly can_edit: import("fumadb/schema").Column<"bool", boolean | null, boolean>;
|
|
156
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
157
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
158
|
+
} & {
|
|
159
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
160
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
161
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
162
|
+
}, {}>;
|
|
163
|
+
readonly tool: import("fumadb/schema").Table<{
|
|
164
|
+
readonly source_id: import("fumadb/schema").Column<"string", string, string>;
|
|
165
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
166
|
+
readonly name: import("fumadb/schema").Column<"string", string, string>;
|
|
167
|
+
readonly description: import("fumadb/schema").Column<"string", string, string>;
|
|
168
|
+
readonly input_schema: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
169
|
+
readonly output_schema: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
170
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
171
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
172
|
+
} & {
|
|
173
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
174
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
175
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
176
|
+
}, {}>;
|
|
177
|
+
readonly definition: import("fumadb/schema").Table<{
|
|
178
|
+
readonly source_id: import("fumadb/schema").Column<"string", string, string>;
|
|
179
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
180
|
+
readonly name: import("fumadb/schema").Column<"string", string, string>;
|
|
181
|
+
readonly schema: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
182
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
183
|
+
} & {
|
|
184
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
185
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
186
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
187
|
+
}, {}>;
|
|
188
|
+
readonly secret: import("fumadb/schema").Table<{
|
|
189
|
+
readonly name: import("fumadb/schema").Column<"string", string, string>;
|
|
190
|
+
readonly provider: import("fumadb/schema").Column<"string", string, string>;
|
|
191
|
+
readonly owned_by_connection_id: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
192
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
193
|
+
} & {
|
|
194
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
195
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
196
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
197
|
+
}, {}>;
|
|
198
|
+
readonly connection: import("fumadb/schema").Table<{
|
|
199
|
+
readonly provider: import("fumadb/schema").Column<"string", string, string>;
|
|
200
|
+
readonly identity_label: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
201
|
+
readonly access_token_secret_id: import("fumadb/schema").Column<"string", string, string>;
|
|
202
|
+
readonly refresh_token_secret_id: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
203
|
+
readonly expires_at: import("fumadb/schema").Column<"bigint", bigint | null, bigint | null>;
|
|
204
|
+
readonly scope: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
205
|
+
readonly provider_state: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
206
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
207
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
208
|
+
} & {
|
|
209
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
210
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
211
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
212
|
+
}, {}>;
|
|
213
|
+
readonly oauth2_session: import("fumadb/schema").Table<{
|
|
214
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
215
|
+
readonly strategy: import("fumadb/schema").Column<"string", string, string>;
|
|
216
|
+
readonly connection_id: import("fumadb/schema").Column<"string", string, string>;
|
|
217
|
+
readonly token_scope: import("fumadb/schema").Column<"string", string, string>;
|
|
218
|
+
readonly redirect_url: import("fumadb/schema").Column<"string", string, string>;
|
|
219
|
+
readonly payload: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
220
|
+
readonly expires_at: import("fumadb/schema").Column<"bigint", bigint, bigint>;
|
|
221
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
222
|
+
} & {
|
|
223
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
224
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
225
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
226
|
+
}, {}>;
|
|
227
|
+
readonly credential_binding: import("fumadb/schema").Table<{
|
|
228
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
229
|
+
readonly source_id: import("fumadb/schema").Column<"string", string, string>;
|
|
230
|
+
readonly source_scope_id: import("fumadb/schema").Column<"string", string, string>;
|
|
231
|
+
readonly slot_key: import("fumadb/schema").Column<"string", string, string>;
|
|
232
|
+
readonly kind: import("fumadb/schema").Column<"string", string, string>;
|
|
233
|
+
readonly text_value: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
234
|
+
readonly secret_id: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
235
|
+
readonly secret_scope_id: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
236
|
+
readonly connection_id: import("fumadb/schema").Column<"string", string | null, string | null>;
|
|
237
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
238
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
239
|
+
} & {
|
|
240
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
241
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
242
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
243
|
+
}, {}>;
|
|
244
|
+
readonly plugin_storage: import("fumadb/schema").Table<{
|
|
245
|
+
readonly plugin_id: import("fumadb/schema").Column<"string", string, string>;
|
|
246
|
+
readonly collection: import("fumadb/schema").Column<"string", string, string>;
|
|
247
|
+
readonly key: import("fumadb/schema").Column<"string", string, string>;
|
|
248
|
+
readonly data: import("fumadb/schema").Column<"json", unknown, unknown>;
|
|
249
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
250
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
251
|
+
} & {
|
|
252
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
253
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
254
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
255
|
+
}, {}>;
|
|
256
|
+
readonly tool_policy: import("fumadb/schema").Table<{
|
|
257
|
+
readonly pattern: import("fumadb/schema").Column<"string", string, string>;
|
|
258
|
+
readonly action: import("fumadb/schema").Column<"string", string, string>;
|
|
259
|
+
readonly position: import("fumadb/schema").Column<"string", string, string>;
|
|
260
|
+
readonly created_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
261
|
+
readonly updated_at: import("fumadb/schema").Column<"timestamp", Date, Date>;
|
|
262
|
+
} & {
|
|
263
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
264
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
265
|
+
scope_id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
266
|
+
}, {}>;
|
|
267
|
+
readonly blob: import("fumadb/schema").Table<{
|
|
268
|
+
readonly namespace: import("fumadb/schema").Column<"string", string, string>;
|
|
269
|
+
readonly key: import("fumadb/schema").Column<"string", string, string>;
|
|
270
|
+
readonly value: import("fumadb/schema").Column<"string", string, string>;
|
|
271
|
+
} & {
|
|
272
|
+
row_id: import("fumadb/schema").IdColumn<"varchar(255)", string | null, string>;
|
|
273
|
+
id: import("fumadb/schema").Column<"varchar(255)", string, string>;
|
|
274
|
+
}, {}>;
|
|
389
275
|
};
|
|
390
|
-
export type CoreSchema = typeof
|
|
391
|
-
export type SourceRow =
|
|
392
|
-
export type ToolRow =
|
|
393
|
-
export type DefinitionRow =
|
|
394
|
-
export type SecretRow =
|
|
395
|
-
export type ConnectionRow =
|
|
396
|
-
type
|
|
397
|
-
type CredentialBindingRowBase = Omit<
|
|
276
|
+
export type CoreSchema = typeof coreTables;
|
|
277
|
+
export type SourceRow = FumaRow<CoreSchema["source"]>;
|
|
278
|
+
export type ToolRow = FumaRow<CoreSchema["tool"]>;
|
|
279
|
+
export type DefinitionRow = FumaRow<CoreSchema["definition"]>;
|
|
280
|
+
export type SecretRow = FumaRow<CoreSchema["secret"]>;
|
|
281
|
+
export type ConnectionRow = FumaRow<CoreSchema["connection"]>;
|
|
282
|
+
export type PluginStorageRow = FumaRow<CoreSchema["plugin_storage"]>;
|
|
283
|
+
type CredentialBindingRowBase = Omit<FumaRow<CoreSchema["credential_binding"]>, "kind" | "text_value" | "secret_id" | "secret_scope_id" | "connection_id">;
|
|
398
284
|
export type CredentialBindingRow = CredentialBindingRowBase & ({
|
|
399
285
|
kind: "text";
|
|
400
286
|
text_value: string;
|
|
401
287
|
} | {
|
|
402
288
|
kind: "secret";
|
|
403
289
|
secret_id: string;
|
|
404
|
-
secret_scope_id?: string;
|
|
290
|
+
secret_scope_id?: string | null;
|
|
405
291
|
} | {
|
|
406
292
|
kind: "connection";
|
|
407
293
|
connection_id: string;
|
|
408
294
|
}) & Record<string, unknown>;
|
|
409
|
-
export type ToolPolicyRow =
|
|
295
|
+
export type ToolPolicyRow = FumaRow<CoreSchema["tool_policy"]>;
|
|
410
296
|
export type ToolPolicyAction = "approve" | "require_approval" | "block";
|
|
411
297
|
export declare const TOOL_POLICY_ACTIONS: readonly ["approve", "require_approval", "block"];
|
|
412
298
|
export declare const isToolPolicyAction: (value: unknown) => value is ToolPolicyAction;
|
|
413
299
|
export interface ToolAnnotations {
|
|
414
|
-
/** If true, the executor will call the invoke-time elicitation handler
|
|
415
|
-
* before running the tool and abort if the user declines. */
|
|
416
300
|
readonly requiresApproval?: boolean;
|
|
417
|
-
/** Free-text message shown in the approval prompt. Falls back to the
|
|
418
|
-
* tool's id / description if unset. */
|
|
419
301
|
readonly approvalDescription?: string;
|
|
420
|
-
/** Hint for UI — tool may suspend to ask the user for input mid-invocation.
|
|
421
|
-
* Not enforced by the executor; purely a UI signal. */
|
|
422
302
|
readonly mayElicit?: boolean;
|
|
423
303
|
}
|
|
424
304
|
export interface SourceInputTool {
|
|
@@ -429,9 +309,6 @@ export interface SourceInputTool {
|
|
|
429
309
|
}
|
|
430
310
|
export interface SourceInput {
|
|
431
311
|
readonly id: string;
|
|
432
|
-
/** Scope id this source belongs to. Must be one of the executor's
|
|
433
|
-
* configured scopes. Callers (plugins) pick the target scope
|
|
434
|
-
* explicitly — typically the scope the source was authored against. */
|
|
435
312
|
readonly scope: string;
|
|
436
313
|
readonly kind: string;
|
|
437
314
|
readonly name: string;
|
|
@@ -443,8 +320,6 @@ export interface SourceInput {
|
|
|
443
320
|
}
|
|
444
321
|
export interface DefinitionsInput {
|
|
445
322
|
readonly sourceId: string;
|
|
446
|
-
/** Scope id these definitions belong to — should match the scope of
|
|
447
|
-
* the source they're registered under. */
|
|
448
323
|
readonly scope: string;
|
|
449
324
|
readonly definitions: Record<string, unknown>;
|
|
450
325
|
}
|