@capybara-hq/kernel 0.1.0-rc.58 → 0.1.0-rc.59
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/catalog/marketplaces.service.d.ts +1 -1
- package/dist/catalog/org-catalog.controller.d.ts +0 -5
- package/dist/catalog/org-catalog.controller.js +3 -17
- package/dist/catalog/org-catalog.schemas.d.ts +43 -0
- package/dist/catalog/org-catalog.schemas.js +43 -2
- package/dist/catalog/plugin-install.d.ts +2 -0
- package/dist/catalog/plugin-install.js +3 -3
- package/dist/channels/channels.schemas.d.ts +3 -0
- package/dist/channels/channels.schemas.js +8 -0
- package/dist/channels/connections.service.d.ts +17 -2
- package/dist/channels/connections.service.js +30 -5
- package/dist/channels/outbound.js +17 -0
- package/dist/conversations/events.d.ts +34 -0
- package/dist/conversations/events.js +24 -0
- package/dist/ctx/secrets.d.ts +8 -1
- package/dist/ctx/secrets.js +14 -1
- package/dist/db/kernel-schema.d.ts +19 -0
- package/dist/devices/working-root.d.ts +2 -3
- package/dist/errors.d.ts +10 -0
- package/dist/errors.js +10 -0
- package/dist/http/api.module.js +6 -0
- package/dist/identity/initial-passwords.job.d.ts +3 -3
- package/dist/identity/initial-passwords.job.js +7 -5
- package/dist/orgs/invitations.controller.d.ts +3 -11
- package/dist/orgs/invitations.controller.js +9 -10
- package/dist/orgs/invitations.service.d.ts +12 -2
- package/dist/orgs/invitations.service.js +14 -7
- package/dist/orgs/members.service.d.ts +12 -2
- package/dist/orgs/members.service.js +10 -8
- package/dist/orgs/orgs.controller.d.ts +4 -12
- package/dist/orgs/orgs.controller.js +10 -10
- package/dist/orgs/orgs.schemas.d.ts +26 -0
- package/dist/orgs/orgs.schemas.js +22 -0
- package/dist/platform/connector-person-fields.d.ts +67 -0
- package/dist/platform/connector-person-fields.js +129 -0
- package/dist/platform/exclusions.js +5 -100
- package/dist/platform/operation.d.ts +31 -0
- package/dist/platform/operation.js +3 -3
- package/dist/platform/ops/accounts.ops.js +1 -0
- package/dist/platform/ops/channels.ops.d.ts +10 -3
- package/dist/platform/ops/channels.ops.js +223 -5
- package/dist/platform/ops/connectors.ops.d.ts +22 -4
- package/dist/platform/ops/connectors.ops.js +664 -13
- package/dist/platform/ops/org-plugins.ops.d.ts +15 -2
- package/dist/platform/ops/org-plugins.ops.js +323 -4
- package/dist/platform/ops/orgs.ops.d.ts +40 -3
- package/dist/platform/ops/orgs.ops.js +293 -12
- package/dist/platform/ops/person-inputs.d.ts +30 -0
- package/dist/platform/ops/person-inputs.js +50 -0
- package/dist/platform/ops/plugins.ops.d.ts +1 -1
- package/dist/platform/ops/plugins.ops.js +6 -6
- package/dist/platform/parity.d.ts +3 -2
- package/dist/platform/parity.js +40 -15
- package/dist/platform/person-fields.d.ts +20 -4
- package/dist/platform/person-fields.js +27 -5
- package/dist/platform/platform.module.d.ts +2 -1
- package/dist/platform/platform.module.js +5 -3
- package/dist/platform/route-schemas.js +2 -0
- package/dist/platform/sealed-reveals.controller.d.ts +20 -0
- package/dist/platform/sealed-reveals.controller.js +48 -0
- package/dist/platform/sealed-reveals.d.ts +52 -0
- package/dist/platform/sealed-reveals.js +153 -0
- package/dist/runtime/project/knowledge.js +24 -19
- package/dist/sandbox/permission-facts.d.ts +5 -1
- package/dist/sandbox/permission-facts.js +8 -2
- package/dist/setup/setup-guides.service.d.ts +5 -0
- package/dist/setup/setup-guides.service.js +2 -1
- package/dist/tools/approvals.service.js +1 -1
- package/dist/tools/builtins/platform.js +48 -8
- package/dist/tools/connectors.controller.d.ts +6 -7
- package/dist/tools/connectors.controller.js +4 -44
- package/dist/tools/connectors.schemas.d.ts +170 -1
- package/dist/tools/connectors.schemas.js +82 -3
- package/dist/tools/connectors.service.d.ts +16 -6
- package/dist/tools/connectors.service.js +39 -24
- package/dist/tools/oauth/oauth.controller.d.ts +3 -6
- package/dist/tools/oauth/oauth.controller.js +3 -12
- package/dist/tools/oauth/oauth.schemas.d.ts +14 -0
- package/dist/tools/oauth/oauth.schemas.js +27 -0
- package/dist/tools/pipeline.d.ts +7 -0
- package/dist/tools/pipeline.js +13 -4
- package/dist/tools/policy.d.ts +3 -2
- package/dist/tools/policy.js +4 -2
- package/dist/tools/registry.d.ts +7 -0
- package/package.json +4 -4
- package/src/migrations/0170_platform_sealed_reveals.sql +27 -0
|
@@ -9,12 +9,18 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Inject, Injectable } from "@nestjs/common";
|
|
11
11
|
import { z } from "zod";
|
|
12
|
-
import { ChannelPatchSchema, ChannelPathParams } from "../../channels/channels.schemas.js";
|
|
12
|
+
import { ChannelCreateSchema, ChannelGuideAckSchema, ChannelPatchSchema, ChannelPathParams, ChannelSchemaParams, } from "../../channels/channels.schemas.js";
|
|
13
13
|
import { ChannelConnections, } from "../../channels/connections.service.js";
|
|
14
|
+
import { ApiError } from "../../errors.js";
|
|
15
|
+
import { PluginGuides } from "../../extensions/plugin-guides.js";
|
|
16
|
+
import { KernelDb } from "../../infra/database/kernel-db.js";
|
|
14
17
|
import { defineOperation } from "../operation.js";
|
|
18
|
+
import { personFieldParams, secretFieldsOf } from "../person-fields.js";
|
|
15
19
|
import { PlatformOperations } from "../registry.js";
|
|
16
20
|
import { precheckBy, viaAgent } from "./errors.js";
|
|
17
21
|
import { Cursor, pageOf, startOf } from "./paging.js";
|
|
22
|
+
import { nestedConfig, withPersonInputs } from "./person-inputs.js";
|
|
23
|
+
import { roleOf } from "./role.js";
|
|
18
24
|
import { named, orElse } from "./summary.js";
|
|
19
25
|
const PAGE = 50;
|
|
20
26
|
/**
|
|
@@ -41,15 +47,27 @@ const detail = (c) => ({
|
|
|
41
47
|
/**
|
|
42
48
|
* Channel connection operations of the `Platform` tool (spec §14): read a connection and change
|
|
43
49
|
* its binding (which agent answers, what happens to unbound people, on / off, inbound mode),
|
|
44
|
-
* or remove it. Creating a connection
|
|
45
|
-
*
|
|
50
|
+
* or remove it. Creating a connection takes the channel's secrets as person fields (the person types
|
|
51
|
+
* them on the confirmation card; platform web parity spec §4, §7.2); changing the credentials or
|
|
52
|
+
* the config of a connection stays on the web.
|
|
46
53
|
*/
|
|
47
54
|
let ChannelsOperations = class ChannelsOperations {
|
|
48
55
|
registry;
|
|
49
56
|
channels;
|
|
50
|
-
|
|
57
|
+
guides;
|
|
58
|
+
kdb;
|
|
59
|
+
constructor(registry, channels, guides, kdb) {
|
|
51
60
|
this.registry = registry;
|
|
52
61
|
this.channels = channels;
|
|
62
|
+
this.guides = guides;
|
|
63
|
+
this.kdb = kdb;
|
|
64
|
+
}
|
|
65
|
+
/** The actor's org role (the guide reads and the ack take it), `forbidden` when not a member. */
|
|
66
|
+
async org(ctx) {
|
|
67
|
+
const role = await roleOf(this.kdb.db, ctx.orgId, ctx.actorAccountId);
|
|
68
|
+
if (role === null)
|
|
69
|
+
throw new ApiError("forbidden", "Insufficient organization role");
|
|
70
|
+
return { orgId: ctx.orgId, role };
|
|
53
71
|
}
|
|
54
72
|
async nameOf(orgId, id) {
|
|
55
73
|
return orElse(async () => named((await this.channels.get(orgId, id)).name), id);
|
|
@@ -93,6 +111,204 @@ let ChannelsOperations = class ChannelsOperations {
|
|
|
93
111
|
channel: detail(await this.channels.get(ctx.orgId, input.connectionId)),
|
|
94
112
|
}),
|
|
95
113
|
}),
|
|
114
|
+
defineOperation({
|
|
115
|
+
id: "channels.schema",
|
|
116
|
+
description: "Read the connection form of a channel plugin (org admins): schema is the JSON Schema of the connection config (secret fields carry x-secret; no values), guide names the plugin's setup guide for the org (null when it has none), inbound says whether webhook inbound is supported and available. Read it before channels.create to know the fields.",
|
|
117
|
+
input: ChannelSchemaParams.strict(),
|
|
118
|
+
example: { plugin: "lark" },
|
|
119
|
+
authz: { orgAction: "channels.manage" },
|
|
120
|
+
mirrors: ["GET /api/v1/orgs/:orgId/channels/schema/:plugin"],
|
|
121
|
+
confirm: "read",
|
|
122
|
+
errors: [
|
|
123
|
+
{
|
|
124
|
+
code: "extension.not_found",
|
|
125
|
+
next: "The extension does not provide a channel; pick one that is installed (extensions.list).",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
run: async (input, ctx) => {
|
|
129
|
+
const schema = this.channels.jsonSchema(input.plugin);
|
|
130
|
+
const inbound = this.channels.inboundInfo(input.plugin);
|
|
131
|
+
const g = (await this.guides.channelGuides([input.plugin], await this.org(ctx))).get(input.plugin);
|
|
132
|
+
return {
|
|
133
|
+
plugin: input.plugin,
|
|
134
|
+
schema,
|
|
135
|
+
guide: g ? { itemId: g.itemId, guideId: g.guideId } : null,
|
|
136
|
+
inbound,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
}),
|
|
140
|
+
defineOperation({
|
|
141
|
+
id: "channels.create",
|
|
142
|
+
description: "Create a channel connection (IM bot) in the org (org admins): plugin, name, the agent that answers (agentId) and values, the non-secret connection config (read the fields with channels.schema). Secret fields (app secrets, tokens) are never in values: list them in askPerson and the person types them on the confirmation card (on the web); required secrets are asked even when not listed. The plugin verifies the credentials before anything is saved. Turn on webhook inbound with inboundMode webhook (only where supported); a setup guide, if any, is in channels.schema.",
|
|
143
|
+
input: z
|
|
144
|
+
.object({
|
|
145
|
+
plugin: ChannelCreateSchema.shape.plugin,
|
|
146
|
+
name: ChannelCreateSchema.shape.name,
|
|
147
|
+
agentId: ChannelCreateSchema.shape.agentId,
|
|
148
|
+
values: ChannelCreateSchema.shape.config,
|
|
149
|
+
unboundPolicy: ChannelCreateSchema.shape.unboundPolicy,
|
|
150
|
+
inboundMode: ChannelCreateSchema.shape.inboundMode,
|
|
151
|
+
askPerson: personFieldParams.askPerson,
|
|
152
|
+
})
|
|
153
|
+
.strict(),
|
|
154
|
+
example: {
|
|
155
|
+
plugin: "lark",
|
|
156
|
+
name: "Lark bot",
|
|
157
|
+
agentId: "00000000-0000-4000-8000-000000000000",
|
|
158
|
+
values: { appId: "cli_a1b2c3" },
|
|
159
|
+
askPerson: ["appSecret"],
|
|
160
|
+
},
|
|
161
|
+
authz: { orgAction: "channels.manage" },
|
|
162
|
+
mirrors: ["POST /api/v1/orgs/:orgId/channels"],
|
|
163
|
+
renames: { values: "config" },
|
|
164
|
+
extras: ["askPerson"],
|
|
165
|
+
confirm: "org",
|
|
166
|
+
errors: [
|
|
167
|
+
{
|
|
168
|
+
code: "extension.not_found",
|
|
169
|
+
next: "The extension does not provide a channel; pick one that is installed (extensions.list).",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
code: "extension.not_enabled",
|
|
173
|
+
next: "Switch the extension on in the org first (plugins.set-enabled).",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
code: "extension.config_invalid",
|
|
177
|
+
next: "Read the form with channels.schema and correct values (the error's details name the fields); fields required in webhook mode come from inboundMode, secret ones are asked with askPerson.",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
code: "channel.verify_failed",
|
|
181
|
+
next: "The plugin could not verify the credentials; the person re-enters them on a new call (check the non-secret values and the app on the IM platform).",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
code: "agent.not_found",
|
|
185
|
+
next: "Pick the agent with agents.list and pass its id as agentId.",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
code: "channel.webhook_unavailable",
|
|
189
|
+
next: "The plugin or the deployment cannot receive webhooks; keep inboundMode long_connection, or ask the super admin to set channels.webhookBaseUrl.",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
precheck: (i, ctx) => precheckBy(() => this.channels.checkCreate(ctx.orgId, {
|
|
193
|
+
plugin: i.plugin,
|
|
194
|
+
agentId: i.agentId,
|
|
195
|
+
inboundMode: i.inboundMode,
|
|
196
|
+
})),
|
|
197
|
+
personFields: async (i) => {
|
|
198
|
+
const found = secretFieldsOf(this.channels.jsonSchema(i.plugin), new Set());
|
|
199
|
+
// a secret the chosen inbound mode requires is asked even when not listed
|
|
200
|
+
const modal = new Set(this.channels.modeRequiredFields(i.plugin, i.inboundMode ?? "long_connection"));
|
|
201
|
+
found.fields = found.fields.map((f) => modal.has(f.path) ? { ...f, required: true } : f);
|
|
202
|
+
return {
|
|
203
|
+
target: {
|
|
204
|
+
zh: `渠道连接「${named(i.name)}」(${named(i.plugin)})`,
|
|
205
|
+
en: `Channel connection "${named(i.name)}" (${named(i.plugin)})`,
|
|
206
|
+
},
|
|
207
|
+
...found,
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
summary: (i, ctx) => {
|
|
211
|
+
const ask = ctx.personAsk ?? i.askPerson;
|
|
212
|
+
const keys = Object.keys(i.values).map(named);
|
|
213
|
+
const zh = [
|
|
214
|
+
`用插件 ${named(i.plugin)} 创建渠道连接「${named(i.name)}」,由智能体 ${named(i.agentId)} 应答`,
|
|
215
|
+
keys.length > 0 && `设置 ${keys.join("、")}`,
|
|
216
|
+
ask.length > 0 && `由本人填写 ${ask.map(named).join("、")}`,
|
|
217
|
+
i.inboundMode === "webhook" && "入站方式:webhook",
|
|
218
|
+
].filter((p) => typeof p === "string");
|
|
219
|
+
const en = [
|
|
220
|
+
`Create channel connection "${named(i.name)}" with plugin ${named(i.plugin)}, answered by agent ${named(i.agentId)}`,
|
|
221
|
+
keys.length > 0 && `sets ${keys.join(", ")}`,
|
|
222
|
+
ask.length > 0 && `the person enters ${ask.map(named).join(", ")}`,
|
|
223
|
+
i.inboundMode === "webhook" && "inbound mode: webhook",
|
|
224
|
+
].filter((p) => typeof p === "string");
|
|
225
|
+
return { zh: zh.join(";"), en: en.join("; ") };
|
|
226
|
+
},
|
|
227
|
+
run: async (input, ctx) => {
|
|
228
|
+
const r = await withPersonInputs("channels.create", ctx, (entered, detail) => this.channels.create(ctx.orgId, {
|
|
229
|
+
plugin: input.plugin,
|
|
230
|
+
name: input.name,
|
|
231
|
+
agentId: input.agentId,
|
|
232
|
+
config: nestedConfig(input.values, entered, []),
|
|
233
|
+
unboundPolicy: input.unboundPolicy,
|
|
234
|
+
inboundMode: input.inboundMode,
|
|
235
|
+
}, ctx.actorAccountId, undefined, detail));
|
|
236
|
+
const webhook = input.inboundMode === "webhook";
|
|
237
|
+
return {
|
|
238
|
+
channel: detail(r),
|
|
239
|
+
...(webhook && {
|
|
240
|
+
note: r.webhookUrl !== null
|
|
241
|
+
? `Register the callback URL ${r.webhookUrl} in the IM platform's app settings (channels.get shows it again).`
|
|
242
|
+
: "The callback URL is not available yet: the super admin has to set channels.webhookBaseUrl; the channels page on the web then shows it.",
|
|
243
|
+
}),
|
|
244
|
+
};
|
|
245
|
+
},
|
|
246
|
+
}),
|
|
247
|
+
defineOperation({
|
|
248
|
+
id: "channels.guide-ack",
|
|
249
|
+
description: "Record that the person updated the app on the IM platform to the plugin's current setup guide (org admins). The card states what the person confirms. hash is the guide's hash from setup.read for this connection (audience admin, the connection's inbound mode); a stale hash is refused before the card.",
|
|
250
|
+
input: ChannelPathParams.extend(ChannelGuideAckSchema.shape).strict(),
|
|
251
|
+
example: {
|
|
252
|
+
connectionId: "00000000-0000-4000-8000-000000000000",
|
|
253
|
+
hash: "0".repeat(64),
|
|
254
|
+
},
|
|
255
|
+
authz: { orgAction: "channels.manage" },
|
|
256
|
+
mirrors: ["POST /api/v1/orgs/:orgId/channels/:connectionId/guide-ack"],
|
|
257
|
+
confirm: "personal",
|
|
258
|
+
// A human attestation: a remembered grant would let the agent confirm unseen guides.
|
|
259
|
+
rememberable: false,
|
|
260
|
+
errors: [
|
|
261
|
+
{
|
|
262
|
+
code: "channel.not_found",
|
|
263
|
+
next: "Look the connection up with channels.list and pass its id.",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
code: "channel.guide_changed",
|
|
267
|
+
next: "The plugin's setup guide changed since the hash was taken: read it again with setup.read (connectionId, audience admin, the connection's inbound mode), walk the person through it, then call again with the hash it returns.",
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
code: "catalog.guide_not_found",
|
|
271
|
+
next: "The plugin has no setup guide the org can see; there is nothing to acknowledge.",
|
|
272
|
+
},
|
|
273
|
+
],
|
|
274
|
+
precheck: async (i, ctx) => {
|
|
275
|
+
let current;
|
|
276
|
+
const r = await precheckBy(async () => {
|
|
277
|
+
current = await this.channels.get(ctx.orgId, i.connectionId);
|
|
278
|
+
});
|
|
279
|
+
if (!r.ok || current === undefined)
|
|
280
|
+
return r;
|
|
281
|
+
// the service's own comparison, read before the card: a stale hash is never confirmed
|
|
282
|
+
const ack = await this.guides.currentAck(current.plugin, "channel-connection", {
|
|
283
|
+
mode: current.inboundMode,
|
|
284
|
+
org: await this.org(ctx),
|
|
285
|
+
});
|
|
286
|
+
if (ack === null) {
|
|
287
|
+
return {
|
|
288
|
+
ok: false,
|
|
289
|
+
code: "catalog.guide_not_found",
|
|
290
|
+
message: "The plugin has no channel setup guide",
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
return ack.hash === i.hash
|
|
294
|
+
? { ok: true }
|
|
295
|
+
: {
|
|
296
|
+
ok: false,
|
|
297
|
+
code: "channel.guide_changed",
|
|
298
|
+
message: "The plugin's setup guide changed since it was shown",
|
|
299
|
+
};
|
|
300
|
+
},
|
|
301
|
+
summary: async (i, ctx) => {
|
|
302
|
+
const name = await this.nameOf(ctx.orgId, i.connectionId);
|
|
303
|
+
return {
|
|
304
|
+
zh: `确认已按最新的设置指南更新第三方平台上渠道连接「${name}」对应的应用`,
|
|
305
|
+
en: `Confirm that the app of channel connection "${name}" was updated on the IM platform to the current setup guide`,
|
|
306
|
+
};
|
|
307
|
+
},
|
|
308
|
+
run: async (input, ctx) => ({
|
|
309
|
+
channel: detail(await this.channels.ackGuide(await this.org(ctx), input.connectionId, input.hash, ctx.actorAccountId, undefined, viaAgent("channels.guide-ack", ctx))),
|
|
310
|
+
}),
|
|
311
|
+
}),
|
|
96
312
|
defineOperation({
|
|
97
313
|
id: "channels.update",
|
|
98
314
|
description: "Change a channel connection's binding (org admins): its name, the agent that answers (agentId), what happens to people not yet bound to an account (unboundPolicy: bind or anonymous), active or disabled, and the inbound mode. Give only what changes. Credentials and config are changed on the web.",
|
|
@@ -190,6 +406,8 @@ let ChannelsOperations = class ChannelsOperations {
|
|
|
190
406
|
ChannelsOperations = __decorate([
|
|
191
407
|
Injectable(),
|
|
192
408
|
__param(0, Inject(PlatformOperations)),
|
|
193
|
-
__param(1, Inject(ChannelConnections))
|
|
409
|
+
__param(1, Inject(ChannelConnections)),
|
|
410
|
+
__param(2, Inject(PluginGuides)),
|
|
411
|
+
__param(3, Inject(KernelDb))
|
|
194
412
|
], ChannelsOperations);
|
|
195
413
|
export { ChannelsOperations };
|
|
@@ -1,17 +1,35 @@
|
|
|
1
1
|
import { type OnModuleInit } from "@nestjs/common";
|
|
2
2
|
import { ComponentScopeService } from "../../catalog/component-scope.service.js";
|
|
3
|
+
import { PluginInstaller } from "../../catalog/plugin-install.js";
|
|
4
|
+
import { KernelDb } from "../../infra/database/kernel-db.js";
|
|
3
5
|
import { ConnectorsService } from "../../tools/connectors.service.js";
|
|
4
6
|
import { PlatformOperations } from "../registry.js";
|
|
7
|
+
/** The result text of `connectors.connect` (platform web parity spec §4.4); model-visible English. */
|
|
8
|
+
export declare const CONNECT_SHOWN_TEXT = "The person was shown a Connect button; check connectors.get for the connection state.";
|
|
5
9
|
/**
|
|
6
|
-
* Connector operations of the `Platform` tool (spec §7): reads,
|
|
7
|
-
*
|
|
8
|
-
*
|
|
10
|
+
* Connector operations of the `Platform` tool (spec §7; platform web parity spec §7.2): reads,
|
|
11
|
+
* the kinds and a preview, creating a connector (custom or from a platform template), editing it,
|
|
12
|
+
* credentials, the setup guide acknowledgement, deleting and refreshing. Credentials are person
|
|
13
|
+
* fields (ruling R3): the model names them in `askPerson`, the person types them on the
|
|
14
|
+
* confirmation card, and the write gets them only through `personInputs`. Per-tool policies stay
|
|
15
|
+
* on the web (ruling R4: the agent's own permissions).
|
|
9
16
|
*/
|
|
10
17
|
export declare class ConnectorsOperations implements OnModuleInit {
|
|
11
18
|
private readonly registry;
|
|
12
19
|
private readonly connectors;
|
|
13
20
|
private readonly components;
|
|
14
|
-
|
|
21
|
+
private readonly installer;
|
|
22
|
+
private readonly kdb;
|
|
23
|
+
constructor(registry: PlatformOperations, connectors: ConnectorsService, components: ComponentScopeService, installer: PluginInstaller, kdb: KernelDb);
|
|
24
|
+
/** The actor's org role (the guide routes take it), `forbidden` when not a member. */
|
|
25
|
+
private org;
|
|
26
|
+
/**
|
|
27
|
+
* The setup guide of a connector made from a template, as `connectors.guide-ack` takes it (the
|
|
28
|
+
* current guide's version and hash, and the drift since it was set up), or null without one.
|
|
29
|
+
*/
|
|
30
|
+
private guideOf;
|
|
31
|
+
/** A platform connector template on in the org: its card name and auth method. */
|
|
32
|
+
private template;
|
|
15
33
|
private connectorName;
|
|
16
34
|
onModuleInit(): void;
|
|
17
35
|
}
|