@camstack/addon-pipeline-orchestrator 1.2.674 → 1.2.675
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/_stub.js +2 -2
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-Cch2oyCT.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CjTvYWLp.mjs} +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Bc_8pLH6.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Bul4xTZU.mjs +26 -0
- package/dist/{hostInit-CwsAknxy.mjs → hostInit-C5m4xM6s.mjs} +2 -2
- package/dist/index.js +58 -96
- package/dist/index.mjs +58 -96
- package/dist/remoteEntry.js +1 -1
- package/package.json +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CzRjpdR9.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CCdrYdxx.mjs +0 -26
package/dist/index.js
CHANGED
|
@@ -6043,7 +6043,7 @@ var ZodIssueCode = {
|
|
|
6043
6043
|
var ZodFirstPartyTypeKind;
|
|
6044
6044
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6045
6045
|
//#endregion
|
|
6046
|
-
//#region ../types/dist/sleep-
|
|
6046
|
+
//#region ../types/dist/sleep-CkinsFFb.mjs
|
|
6047
6047
|
/**
|
|
6048
6048
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6049
6049
|
* window to float samples (D455).
|
|
@@ -8284,16 +8284,6 @@ var BaseAddon = class {
|
|
|
8284
8284
|
return null;
|
|
8285
8285
|
}
|
|
8286
8286
|
/**
|
|
8287
|
-
* The form schema of ONE integration instance, or `null` to use the scoped form.
|
|
8288
|
-
*
|
|
8289
|
-
* Override it only when an `instanceMode: multiple` addon's instances differ: an NVR integration
|
|
8290
|
-
* needs its connection fields, the default integration the addon's own sections. It is the
|
|
8291
|
-
* SHAPE of the form only — the values live on the instance record.
|
|
8292
|
-
*/
|
|
8293
|
-
async integrationFormSchema(_instance) {
|
|
8294
|
-
return null;
|
|
8295
|
-
}
|
|
8296
|
-
/**
|
|
8297
8287
|
* D986 scoped settings: the form shape of the CLUSTER-wide settings one capability this addon
|
|
8298
8288
|
* provides owns, or `null` when it has none. `cap` is a capability name the addon's manifest
|
|
8299
8289
|
* declares. Stored as `addon-settings` rows `<addonId>.<field>`. The keys of this schema, of
|
|
@@ -8321,8 +8311,7 @@ var BaseAddon = class {
|
|
|
8321
8311
|
}
|
|
8322
8312
|
/**
|
|
8323
8313
|
* The host's read of the scoped declarations: the schema one capability declares for `scope`,
|
|
8324
|
-
* or `null`.
|
|
8325
|
-
* host asks this method.
|
|
8314
|
+
* or `null`. The hook is protected, the host asks this method.
|
|
8326
8315
|
*/
|
|
8327
8316
|
async getScopedSettingsSchema(scope, cap) {
|
|
8328
8317
|
switch (scope) {
|
|
@@ -8490,22 +8479,6 @@ var BaseAddon = class {
|
|
|
8490
8479
|
return Object.fromEntries([...collectHydratedFieldValues(form)].filter(([, value]) => value !== void 0));
|
|
8491
8480
|
}
|
|
8492
8481
|
/**
|
|
8493
|
-
* What the create wizard and the integration edit page render for one instance: the addon's
|
|
8494
|
-
* per-instance schema when it declares one, else its global schema (what they always showed).
|
|
8495
|
-
*/
|
|
8496
|
-
async getIntegrationFormSchema(instance, nodeId) {
|
|
8497
|
-
const scoped = await this.integrationFormSchema(instance);
|
|
8498
|
-
if (scoped === null) return this.scopedForm(nodeId);
|
|
8499
|
-
return hydrateSchema(scoped, {}, { inlineSecretsAsViews: true });
|
|
8500
|
-
}
|
|
8501
|
-
/** The form of the scoped schemas this addon declared, hydrated from its store. */
|
|
8502
|
-
async scopedForm(nodeId) {
|
|
8503
|
-
await this.loadScopedSchemas();
|
|
8504
|
-
const schema = this.scopedFormSchema();
|
|
8505
|
-
if (!schema) return { sections: [] };
|
|
8506
|
-
return hydrateSchema(schema, await this.readRawProjectedStore(nodeId), { inlineSecretsAsViews: true });
|
|
8507
|
-
}
|
|
8508
|
-
/**
|
|
8509
8482
|
* The raw addon store PROJECTED onto the target node's bare per-node keys:
|
|
8510
8483
|
* every `perNode: true` field carries THAT node's scoped value on its bare
|
|
8511
8484
|
* key (absent scoped key ⇒ key absent, so the schema `default` wins — no
|
|
@@ -8692,12 +8665,6 @@ var BaseAddon = class {
|
|
|
8692
8665
|
this._nodeKeysByCap = /* @__PURE__ */ new Map();
|
|
8693
8666
|
this._addonSecretTree = null;
|
|
8694
8667
|
}
|
|
8695
|
-
/** The form of an addon's scoped schemas: their sections, each shown once. */
|
|
8696
|
-
scopedFormSchema(cap) {
|
|
8697
|
-
const byId = /* @__PURE__ */ new Map();
|
|
8698
|
-
for (const entry of this.loadedScopedSchemas(cap)) for (const section of entry.schema.sections) if (!byId.has(section.id)) byId.set(section.id, section);
|
|
8699
|
-
return byId.size === 0 ? null : { sections: [...byId.values()] };
|
|
8700
|
-
}
|
|
8701
8668
|
/** Every loaded scoped schema of `cap`, or of every loaded capability. */
|
|
8702
8669
|
loadedScopedSchemas(cap) {
|
|
8703
8670
|
if (cap !== void 0) return this._scopedByCap.get(cap) ?? [];
|
|
@@ -9287,6 +9254,10 @@ function normalizeAddonInitResult(result) {
|
|
|
9287
9254
|
if (Array.isArray(result)) return { providers: result };
|
|
9288
9255
|
return result;
|
|
9289
9256
|
}
|
|
9257
|
+
object({
|
|
9258
|
+
code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
|
|
9259
|
+
params: record(string(), union([string(), number$1()])).optional()
|
|
9260
|
+
});
|
|
9290
9261
|
object({
|
|
9291
9262
|
field: string().min(1),
|
|
9292
9263
|
on: literal("advance")
|
|
@@ -9363,12 +9334,6 @@ function systemMethod(input, output, options) {
|
|
|
9363
9334
|
systemOnly: true
|
|
9364
9335
|
};
|
|
9365
9336
|
}
|
|
9366
|
-
/**
|
|
9367
|
-
* A method a SOURCE of a collection cap may legitimately not serve — OPTIONAL
|
|
9368
|
-
* on `InferProvider`. The `providerOptional: true` literal is what
|
|
9369
|
-
* `InferProvider` keys on; see {@link CapabilityMethodSchema.providerOptional}
|
|
9370
|
-
* for when this is the honest answer and when it is a soft stub.
|
|
9371
|
-
*/
|
|
9372
9337
|
function optionalMethod(input, output, options) {
|
|
9373
9338
|
return {
|
|
9374
9339
|
...method(input, output, options),
|
|
@@ -17281,10 +17246,6 @@ Object.freeze({
|
|
|
17281
17246
|
"uploadDataset": 72e5
|
|
17282
17247
|
}
|
|
17283
17248
|
});
|
|
17284
|
-
object({
|
|
17285
|
-
code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
|
|
17286
|
-
params: record(string(), union([string(), number$1()])).optional()
|
|
17287
|
-
});
|
|
17288
17249
|
/**
|
|
17289
17250
|
* Promise-based timer helpers — used everywhere the codebase needs to
|
|
17290
17251
|
* wait, back off, or schedule a retry. Before these helpers landed, each
|
|
@@ -19188,25 +19149,6 @@ var RequiredAddonUpdateSchema = object({
|
|
|
19188
19149
|
installed: string().nullable()
|
|
19189
19150
|
});
|
|
19190
19151
|
/**
|
|
19191
|
-
* Which integration instance a settings form is for. An addon that serves several instances
|
|
19192
|
-
* (`instanceMode: multiple`) can show a different form per instance — an NVR integration
|
|
19193
|
-
* needs its connection, the default integration needs the addon's own sections.
|
|
19194
|
-
*
|
|
19195
|
-
* - `integrationId` is `null` in the create wizard: nothing exists yet, the operator is
|
|
19196
|
-
* setting up a NEW instance.
|
|
19197
|
-
* - `mode` is the wizard mode of the integration type (`getAvailableTypes`).
|
|
19198
|
-
* - `candidateStableId` is the discovery candidate a wizard was seeded from, if any.
|
|
19199
|
-
*/
|
|
19200
|
-
var IntegrationInstanceRefSchema = object({
|
|
19201
|
-
integrationId: string().nullable(),
|
|
19202
|
-
mode: _enum([
|
|
19203
|
-
"standalone",
|
|
19204
|
-
"account",
|
|
19205
|
-
"broker"
|
|
19206
|
-
]),
|
|
19207
|
-
candidateStableId: string().optional()
|
|
19208
|
-
});
|
|
19209
|
-
/**
|
|
19210
19152
|
* notification-output — canonical, capability-gated notification delivery.
|
|
19211
19153
|
*
|
|
19212
19154
|
* Apprise-derived model (see
|
|
@@ -45614,10 +45556,6 @@ method(object({
|
|
|
45614
45556
|
scope: ScopedSettingsScopeSchema,
|
|
45615
45557
|
nodeId: string().optional()
|
|
45616
45558
|
}), record(string(), unknown()).nullable()), method(object({
|
|
45617
|
-
addonId: string(),
|
|
45618
|
-
nodeId: string().optional(),
|
|
45619
|
-
instance: IntegrationInstanceRefSchema
|
|
45620
|
-
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
45621
45559
|
addonId: string(),
|
|
45622
45560
|
nodeId: string().optional()
|
|
45623
45561
|
}), object({ keys: array(string()) }).nullable(), { auth: "admin" }), method(object({
|
|
@@ -56318,6 +56256,12 @@ var IntegrationWithStateSchema = object({
|
|
|
56318
56256
|
name: string(),
|
|
56319
56257
|
/** A projection of the instance body's switch (`setInstanceEnabled` is the only writer). */
|
|
56320
56258
|
enabled: boolean(),
|
|
56259
|
+
/**
|
|
56260
|
+
* True when the addon that holds the switch did not answer (down, failed, or keeps no record for
|
|
56261
|
+
* this row): `enabled` is then the stored registry flag, a stale value, not the state. A reader
|
|
56262
|
+
* must not draw it as on or off (D315).
|
|
56263
|
+
*/
|
|
56264
|
+
switchUnknown: literal(true).optional(),
|
|
56321
56265
|
info: record(string(), unknown()).readonly(),
|
|
56322
56266
|
/** The discovery candidate this integration was set up from (D984). */
|
|
56323
56267
|
originStableId: string().optional(),
|
|
@@ -56331,6 +56275,12 @@ var IntegrationLiteSchema = object({
|
|
|
56331
56275
|
name: string(),
|
|
56332
56276
|
/** A projection of the instance body's switch (`setInstanceEnabled` is the only writer). */
|
|
56333
56277
|
enabled: boolean(),
|
|
56278
|
+
/**
|
|
56279
|
+
* True when the addon that holds the switch did not answer (down, failed, or keeps no record for
|
|
56280
|
+
* this row): `enabled` is then the stored registry flag, a stale value, not the state. A reader
|
|
56281
|
+
* must not draw it as on or off (D315).
|
|
56282
|
+
*/
|
|
56283
|
+
switchUnknown: literal(true).optional(),
|
|
56334
56284
|
info: record(string(), unknown()).readonly(),
|
|
56335
56285
|
/** The discovery candidate this integration was set up from (D984). */
|
|
56336
56286
|
originStableId: string().optional(),
|
|
@@ -56429,9 +56379,9 @@ var UpdateIntegrationInputSchema = object({
|
|
|
56429
56379
|
id: string(),
|
|
56430
56380
|
name: string().optional(),
|
|
56431
56381
|
/**
|
|
56432
|
-
*
|
|
56433
|
-
*
|
|
56434
|
-
*
|
|
56382
|
+
* Honoured ONLY for a fixed builtin (`info.fixed`), whose switch is the hub's own registry flag
|
|
56383
|
+
* and works while its addon is down. Any other row is refused (a typed `BAD_REQUEST`): its
|
|
56384
|
+
* switch is `integration-instances.setInstanceEnabled`.
|
|
56435
56385
|
*/
|
|
56436
56386
|
enabled: boolean().optional(),
|
|
56437
56387
|
info: record(string(), unknown()).optional()
|
|
@@ -56465,6 +56415,12 @@ method(_void(), array(IntegrationWithStateSchema)), method(object({ id: string()
|
|
|
56465
56415
|
* the form as a `SecretFieldView`, never text (D789). A patch value omitted, `''`
|
|
56466
56416
|
* or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
|
|
56467
56417
|
* clears it.
|
|
56418
|
+
*
|
|
56419
|
+
* Who may call (epic #440): every method but `describe` and `instanceFormSchema` is open to any
|
|
56420
|
+
* session (`caller: 'scoped'`) and default-denies. An admin passes everywhere. A non-admin passes
|
|
56421
|
+
* only on a call pinned to one addon whose `describe().userScoped` is true, and that provider
|
|
56422
|
+
* filters every row on the `caller` the router injected (a notification target is somebody's
|
|
56423
|
+
* phone: a user sees and changes only their own). An addon that says nothing keeps the admin door.
|
|
56468
56424
|
*/
|
|
56469
56425
|
var ConfigSchemaPassthrough$2 = custom();
|
|
56470
56426
|
var IntegrationInstanceIdSchema = string().min(1);
|
|
@@ -56578,7 +56534,15 @@ var IntegrationInstanceDescriptionSchema = object({
|
|
|
56578
56534
|
*/
|
|
56579
56535
|
mintsId: boolean().optional(),
|
|
56580
56536
|
/** The links to other instances the provider's kinds declare; absent means none. */
|
|
56581
|
-
links: array(IntegrationInstanceLinkSchema).optional()
|
|
56537
|
+
links: array(IntegrationInstanceLinkSchema).optional(),
|
|
56538
|
+
/**
|
|
56539
|
+
* The rows belong to individual users (a notification target is somebody's phone). The router
|
|
56540
|
+
* then opens `listInstances`, `getInstance`, `createInstance`, `updateInstance`,
|
|
56541
|
+
* `setInstanceEnabled`, `deleteInstance` and `testInstance` to a NON-admin session on a call
|
|
56542
|
+
* pinned to this addon, and hands the provider the `caller` so it keeps a user to their own rows.
|
|
56543
|
+
* Absent means admin only, as it always was.
|
|
56544
|
+
*/
|
|
56545
|
+
userScoped: boolean().optional()
|
|
56582
56546
|
});
|
|
56583
56547
|
var IntegrationInstanceStatusSchema = object({
|
|
56584
56548
|
state: _enum([
|
|
@@ -56628,7 +56592,13 @@ method(_void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }), method
|
|
|
56628
56592
|
]).optional(),
|
|
56629
56593
|
/** The discovery candidate the wizard was seeded from (`stableId`), if any. */
|
|
56630
56594
|
candidateStableId: string().min(1).optional()
|
|
56631
|
-
}), ConfigSchemaPassthrough$2, { auth: "admin" }), method(
|
|
56595
|
+
}), ConfigSchemaPassthrough$2, { auth: "admin" }), method(looseObject({}), array(IntegrationInstanceSchema).readonly(), {
|
|
56596
|
+
auth: "protected",
|
|
56597
|
+
caller: "scoped"
|
|
56598
|
+
}), method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), {
|
|
56599
|
+
auth: "protected",
|
|
56600
|
+
caller: "scoped"
|
|
56601
|
+
}), method(object({
|
|
56632
56602
|
id: IntegrationInstanceIdSchema.optional(),
|
|
56633
56603
|
name: string().min(1),
|
|
56634
56604
|
kind: string().min(1).optional(),
|
|
@@ -56650,19 +56620,23 @@ method(_void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }), method
|
|
|
56650
56620
|
seed: object({ info: record(string(), unknown()) }).optional()
|
|
56651
56621
|
}), object({ id: string() }), {
|
|
56652
56622
|
kind: "mutation",
|
|
56653
|
-
auth: "
|
|
56623
|
+
auth: "protected",
|
|
56624
|
+
caller: "scoped"
|
|
56654
56625
|
}), method(IntegrationInstancePatchSchema, object({ ok: literal(true) }), {
|
|
56655
56626
|
kind: "mutation",
|
|
56656
|
-
auth: "
|
|
56627
|
+
auth: "protected",
|
|
56628
|
+
caller: "scoped"
|
|
56657
56629
|
}), method(object({
|
|
56658
56630
|
id: IntegrationInstanceIdSchema,
|
|
56659
56631
|
enabled: boolean()
|
|
56660
56632
|
}), object({ ok: literal(true) }), {
|
|
56661
56633
|
kind: "mutation",
|
|
56662
|
-
auth: "
|
|
56634
|
+
auth: "protected",
|
|
56635
|
+
caller: "scoped"
|
|
56663
56636
|
}), method(object({ id: IntegrationInstanceIdSchema }), object({ ok: literal(true) }), {
|
|
56664
56637
|
kind: "mutation",
|
|
56665
|
-
auth: "
|
|
56638
|
+
auth: "protected",
|
|
56639
|
+
caller: "scoped"
|
|
56666
56640
|
}), optionalMethod(object({
|
|
56667
56641
|
id: IntegrationInstanceIdSchema.nullable(),
|
|
56668
56642
|
values: record(string(), unknown()),
|
|
@@ -56670,7 +56644,8 @@ method(_void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }), method
|
|
|
56670
56644
|
kind: string().min(1).optional()
|
|
56671
56645
|
}), TestConnectionResultSchema, {
|
|
56672
56646
|
kind: "mutation",
|
|
56673
|
-
auth: "
|
|
56647
|
+
auth: "protected",
|
|
56648
|
+
caller: "scoped"
|
|
56674
56649
|
});
|
|
56675
56650
|
/**
|
|
56676
56651
|
* Two-way audio / talk-back cap. Clients open a WebRTC audio-only
|
|
@@ -76225,6 +76200,11 @@ var SendEmailResultSchema = object({
|
|
|
76225
76200
|
var SmtpStatusSchema = object({
|
|
76226
76201
|
/** True iff the addon has successfully verified the relay. */
|
|
76227
76202
|
ready: boolean(),
|
|
76203
|
+
/**
|
|
76204
|
+
* The tri-state behind `ready` (D315): true when the last send worked, false when it failed,
|
|
76205
|
+
* ABSENT when the relay has not sent yet (unknown, never "not verified").
|
|
76206
|
+
*/
|
|
76207
|
+
verified: boolean().optional(),
|
|
76228
76208
|
/** Operator-visible host string (no credentials). */
|
|
76229
76209
|
host: string(),
|
|
76230
76210
|
/** Last error message reported by the relay, when not ready. */
|
|
@@ -76236,10 +76216,6 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
76236
76216
|
kind: "mutation",
|
|
76237
76217
|
auth: "admin",
|
|
76238
76218
|
access: "create"
|
|
76239
|
-
}), method(RelayPinSchema, SmtpStatusSchema, {
|
|
76240
|
-
kind: "mutation",
|
|
76241
|
-
auth: "admin",
|
|
76242
|
-
access: "view"
|
|
76243
76219
|
}), method(RelayPinSchema, SmtpStatusSchema, { auth: "admin" });
|
|
76244
76220
|
/**
|
|
76245
76221
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
@@ -82968,13 +82944,6 @@ Object.freeze({
|
|
|
82968
82944
|
access: "view",
|
|
82969
82945
|
role: "admin"
|
|
82970
82946
|
},
|
|
82971
|
-
"addonSettings.getIntegrationFormSchema": {
|
|
82972
|
-
capName: "addon-settings",
|
|
82973
|
-
capScope: "system",
|
|
82974
|
-
addonId: null,
|
|
82975
|
-
access: "view",
|
|
82976
|
-
role: "admin"
|
|
82977
|
-
},
|
|
82978
82947
|
"addonSettings.getScopedSettings": {
|
|
82979
82948
|
capName: "addon-settings",
|
|
82980
82949
|
capScope: "system",
|
|
@@ -90997,13 +90966,6 @@ Object.freeze({
|
|
|
90997
90966
|
access: "create",
|
|
90998
90967
|
role: "admin"
|
|
90999
90968
|
},
|
|
91000
|
-
"smtpProvider.verify": {
|
|
91001
|
-
capName: "smtp-provider",
|
|
91002
|
-
capScope: "system",
|
|
91003
|
-
addonId: null,
|
|
91004
|
-
access: "view",
|
|
91005
|
-
role: "admin"
|
|
91006
|
-
},
|
|
91007
90969
|
"snapshot.applyDeviceSettingsPatch": {
|
|
91008
90970
|
capName: "snapshot",
|
|
91009
90971
|
capScope: "device",
|
package/dist/index.mjs
CHANGED
|
@@ -6015,7 +6015,7 @@ var ZodIssueCode = {
|
|
|
6015
6015
|
var ZodFirstPartyTypeKind;
|
|
6016
6016
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6017
6017
|
//#endregion
|
|
6018
|
-
//#region ../types/dist/sleep-
|
|
6018
|
+
//#region ../types/dist/sleep-CkinsFFb.mjs
|
|
6019
6019
|
/**
|
|
6020
6020
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6021
6021
|
* window to float samples (D455).
|
|
@@ -8256,16 +8256,6 @@ var BaseAddon = class {
|
|
|
8256
8256
|
return null;
|
|
8257
8257
|
}
|
|
8258
8258
|
/**
|
|
8259
|
-
* The form schema of ONE integration instance, or `null` to use the scoped form.
|
|
8260
|
-
*
|
|
8261
|
-
* Override it only when an `instanceMode: multiple` addon's instances differ: an NVR integration
|
|
8262
|
-
* needs its connection fields, the default integration the addon's own sections. It is the
|
|
8263
|
-
* SHAPE of the form only — the values live on the instance record.
|
|
8264
|
-
*/
|
|
8265
|
-
async integrationFormSchema(_instance) {
|
|
8266
|
-
return null;
|
|
8267
|
-
}
|
|
8268
|
-
/**
|
|
8269
8259
|
* D986 scoped settings: the form shape of the CLUSTER-wide settings one capability this addon
|
|
8270
8260
|
* provides owns, or `null` when it has none. `cap` is a capability name the addon's manifest
|
|
8271
8261
|
* declares. Stored as `addon-settings` rows `<addonId>.<field>`. The keys of this schema, of
|
|
@@ -8293,8 +8283,7 @@ var BaseAddon = class {
|
|
|
8293
8283
|
}
|
|
8294
8284
|
/**
|
|
8295
8285
|
* The host's read of the scoped declarations: the schema one capability declares for `scope`,
|
|
8296
|
-
* or `null`.
|
|
8297
|
-
* host asks this method.
|
|
8286
|
+
* or `null`. The hook is protected, the host asks this method.
|
|
8298
8287
|
*/
|
|
8299
8288
|
async getScopedSettingsSchema(scope, cap) {
|
|
8300
8289
|
switch (scope) {
|
|
@@ -8462,22 +8451,6 @@ var BaseAddon = class {
|
|
|
8462
8451
|
return Object.fromEntries([...collectHydratedFieldValues(form)].filter(([, value]) => value !== void 0));
|
|
8463
8452
|
}
|
|
8464
8453
|
/**
|
|
8465
|
-
* What the create wizard and the integration edit page render for one instance: the addon's
|
|
8466
|
-
* per-instance schema when it declares one, else its global schema (what they always showed).
|
|
8467
|
-
*/
|
|
8468
|
-
async getIntegrationFormSchema(instance, nodeId) {
|
|
8469
|
-
const scoped = await this.integrationFormSchema(instance);
|
|
8470
|
-
if (scoped === null) return this.scopedForm(nodeId);
|
|
8471
|
-
return hydrateSchema(scoped, {}, { inlineSecretsAsViews: true });
|
|
8472
|
-
}
|
|
8473
|
-
/** The form of the scoped schemas this addon declared, hydrated from its store. */
|
|
8474
|
-
async scopedForm(nodeId) {
|
|
8475
|
-
await this.loadScopedSchemas();
|
|
8476
|
-
const schema = this.scopedFormSchema();
|
|
8477
|
-
if (!schema) return { sections: [] };
|
|
8478
|
-
return hydrateSchema(schema, await this.readRawProjectedStore(nodeId), { inlineSecretsAsViews: true });
|
|
8479
|
-
}
|
|
8480
|
-
/**
|
|
8481
8454
|
* The raw addon store PROJECTED onto the target node's bare per-node keys:
|
|
8482
8455
|
* every `perNode: true` field carries THAT node's scoped value on its bare
|
|
8483
8456
|
* key (absent scoped key ⇒ key absent, so the schema `default` wins — no
|
|
@@ -8664,12 +8637,6 @@ var BaseAddon = class {
|
|
|
8664
8637
|
this._nodeKeysByCap = /* @__PURE__ */ new Map();
|
|
8665
8638
|
this._addonSecretTree = null;
|
|
8666
8639
|
}
|
|
8667
|
-
/** The form of an addon's scoped schemas: their sections, each shown once. */
|
|
8668
|
-
scopedFormSchema(cap) {
|
|
8669
|
-
const byId = /* @__PURE__ */ new Map();
|
|
8670
|
-
for (const entry of this.loadedScopedSchemas(cap)) for (const section of entry.schema.sections) if (!byId.has(section.id)) byId.set(section.id, section);
|
|
8671
|
-
return byId.size === 0 ? null : { sections: [...byId.values()] };
|
|
8672
|
-
}
|
|
8673
8640
|
/** Every loaded scoped schema of `cap`, or of every loaded capability. */
|
|
8674
8641
|
loadedScopedSchemas(cap) {
|
|
8675
8642
|
if (cap !== void 0) return this._scopedByCap.get(cap) ?? [];
|
|
@@ -9259,6 +9226,10 @@ function normalizeAddonInitResult(result) {
|
|
|
9259
9226
|
if (Array.isArray(result)) return { providers: result };
|
|
9260
9227
|
return result;
|
|
9261
9228
|
}
|
|
9229
|
+
object({
|
|
9230
|
+
code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
|
|
9231
|
+
params: record(string(), union([string(), number$1()])).optional()
|
|
9232
|
+
});
|
|
9262
9233
|
object({
|
|
9263
9234
|
field: string().min(1),
|
|
9264
9235
|
on: literal("advance")
|
|
@@ -9335,12 +9306,6 @@ function systemMethod(input, output, options) {
|
|
|
9335
9306
|
systemOnly: true
|
|
9336
9307
|
};
|
|
9337
9308
|
}
|
|
9338
|
-
/**
|
|
9339
|
-
* A method a SOURCE of a collection cap may legitimately not serve — OPTIONAL
|
|
9340
|
-
* on `InferProvider`. The `providerOptional: true` literal is what
|
|
9341
|
-
* `InferProvider` keys on; see {@link CapabilityMethodSchema.providerOptional}
|
|
9342
|
-
* for when this is the honest answer and when it is a soft stub.
|
|
9343
|
-
*/
|
|
9344
9309
|
function optionalMethod(input, output, options) {
|
|
9345
9310
|
return {
|
|
9346
9311
|
...method(input, output, options),
|
|
@@ -17253,10 +17218,6 @@ Object.freeze({
|
|
|
17253
17218
|
"uploadDataset": 72e5
|
|
17254
17219
|
}
|
|
17255
17220
|
});
|
|
17256
|
-
object({
|
|
17257
|
-
code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
|
|
17258
|
-
params: record(string(), union([string(), number$1()])).optional()
|
|
17259
|
-
});
|
|
17260
17221
|
/**
|
|
17261
17222
|
* Promise-based timer helpers — used everywhere the codebase needs to
|
|
17262
17223
|
* wait, back off, or schedule a retry. Before these helpers landed, each
|
|
@@ -19160,25 +19121,6 @@ var RequiredAddonUpdateSchema = object({
|
|
|
19160
19121
|
installed: string().nullable()
|
|
19161
19122
|
});
|
|
19162
19123
|
/**
|
|
19163
|
-
* Which integration instance a settings form is for. An addon that serves several instances
|
|
19164
|
-
* (`instanceMode: multiple`) can show a different form per instance — an NVR integration
|
|
19165
|
-
* needs its connection, the default integration needs the addon's own sections.
|
|
19166
|
-
*
|
|
19167
|
-
* - `integrationId` is `null` in the create wizard: nothing exists yet, the operator is
|
|
19168
|
-
* setting up a NEW instance.
|
|
19169
|
-
* - `mode` is the wizard mode of the integration type (`getAvailableTypes`).
|
|
19170
|
-
* - `candidateStableId` is the discovery candidate a wizard was seeded from, if any.
|
|
19171
|
-
*/
|
|
19172
|
-
var IntegrationInstanceRefSchema = object({
|
|
19173
|
-
integrationId: string().nullable(),
|
|
19174
|
-
mode: _enum([
|
|
19175
|
-
"standalone",
|
|
19176
|
-
"account",
|
|
19177
|
-
"broker"
|
|
19178
|
-
]),
|
|
19179
|
-
candidateStableId: string().optional()
|
|
19180
|
-
});
|
|
19181
|
-
/**
|
|
19182
19124
|
* notification-output — canonical, capability-gated notification delivery.
|
|
19183
19125
|
*
|
|
19184
19126
|
* Apprise-derived model (see
|
|
@@ -45586,10 +45528,6 @@ method(object({
|
|
|
45586
45528
|
scope: ScopedSettingsScopeSchema,
|
|
45587
45529
|
nodeId: string().optional()
|
|
45588
45530
|
}), record(string(), unknown()).nullable()), method(object({
|
|
45589
|
-
addonId: string(),
|
|
45590
|
-
nodeId: string().optional(),
|
|
45591
|
-
instance: IntegrationInstanceRefSchema
|
|
45592
|
-
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
45593
45531
|
addonId: string(),
|
|
45594
45532
|
nodeId: string().optional()
|
|
45595
45533
|
}), object({ keys: array(string()) }).nullable(), { auth: "admin" }), method(object({
|
|
@@ -56290,6 +56228,12 @@ var IntegrationWithStateSchema = object({
|
|
|
56290
56228
|
name: string(),
|
|
56291
56229
|
/** A projection of the instance body's switch (`setInstanceEnabled` is the only writer). */
|
|
56292
56230
|
enabled: boolean(),
|
|
56231
|
+
/**
|
|
56232
|
+
* True when the addon that holds the switch did not answer (down, failed, or keeps no record for
|
|
56233
|
+
* this row): `enabled` is then the stored registry flag, a stale value, not the state. A reader
|
|
56234
|
+
* must not draw it as on or off (D315).
|
|
56235
|
+
*/
|
|
56236
|
+
switchUnknown: literal(true).optional(),
|
|
56293
56237
|
info: record(string(), unknown()).readonly(),
|
|
56294
56238
|
/** The discovery candidate this integration was set up from (D984). */
|
|
56295
56239
|
originStableId: string().optional(),
|
|
@@ -56303,6 +56247,12 @@ var IntegrationLiteSchema = object({
|
|
|
56303
56247
|
name: string(),
|
|
56304
56248
|
/** A projection of the instance body's switch (`setInstanceEnabled` is the only writer). */
|
|
56305
56249
|
enabled: boolean(),
|
|
56250
|
+
/**
|
|
56251
|
+
* True when the addon that holds the switch did not answer (down, failed, or keeps no record for
|
|
56252
|
+
* this row): `enabled` is then the stored registry flag, a stale value, not the state. A reader
|
|
56253
|
+
* must not draw it as on or off (D315).
|
|
56254
|
+
*/
|
|
56255
|
+
switchUnknown: literal(true).optional(),
|
|
56306
56256
|
info: record(string(), unknown()).readonly(),
|
|
56307
56257
|
/** The discovery candidate this integration was set up from (D984). */
|
|
56308
56258
|
originStableId: string().optional(),
|
|
@@ -56401,9 +56351,9 @@ var UpdateIntegrationInputSchema = object({
|
|
|
56401
56351
|
id: string(),
|
|
56402
56352
|
name: string().optional(),
|
|
56403
56353
|
/**
|
|
56404
|
-
*
|
|
56405
|
-
*
|
|
56406
|
-
*
|
|
56354
|
+
* Honoured ONLY for a fixed builtin (`info.fixed`), whose switch is the hub's own registry flag
|
|
56355
|
+
* and works while its addon is down. Any other row is refused (a typed `BAD_REQUEST`): its
|
|
56356
|
+
* switch is `integration-instances.setInstanceEnabled`.
|
|
56407
56357
|
*/
|
|
56408
56358
|
enabled: boolean().optional(),
|
|
56409
56359
|
info: record(string(), unknown()).optional()
|
|
@@ -56437,6 +56387,12 @@ method(_void(), array(IntegrationWithStateSchema)), method(object({ id: string()
|
|
|
56437
56387
|
* the form as a `SecretFieldView`, never text (D789). A patch value omitted, `''`
|
|
56438
56388
|
* or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
|
|
56439
56389
|
* clears it.
|
|
56390
|
+
*
|
|
56391
|
+
* Who may call (epic #440): every method but `describe` and `instanceFormSchema` is open to any
|
|
56392
|
+
* session (`caller: 'scoped'`) and default-denies. An admin passes everywhere. A non-admin passes
|
|
56393
|
+
* only on a call pinned to one addon whose `describe().userScoped` is true, and that provider
|
|
56394
|
+
* filters every row on the `caller` the router injected (a notification target is somebody's
|
|
56395
|
+
* phone: a user sees and changes only their own). An addon that says nothing keeps the admin door.
|
|
56440
56396
|
*/
|
|
56441
56397
|
var ConfigSchemaPassthrough$2 = custom();
|
|
56442
56398
|
var IntegrationInstanceIdSchema = string().min(1);
|
|
@@ -56550,7 +56506,15 @@ var IntegrationInstanceDescriptionSchema = object({
|
|
|
56550
56506
|
*/
|
|
56551
56507
|
mintsId: boolean().optional(),
|
|
56552
56508
|
/** The links to other instances the provider's kinds declare; absent means none. */
|
|
56553
|
-
links: array(IntegrationInstanceLinkSchema).optional()
|
|
56509
|
+
links: array(IntegrationInstanceLinkSchema).optional(),
|
|
56510
|
+
/**
|
|
56511
|
+
* The rows belong to individual users (a notification target is somebody's phone). The router
|
|
56512
|
+
* then opens `listInstances`, `getInstance`, `createInstance`, `updateInstance`,
|
|
56513
|
+
* `setInstanceEnabled`, `deleteInstance` and `testInstance` to a NON-admin session on a call
|
|
56514
|
+
* pinned to this addon, and hands the provider the `caller` so it keeps a user to their own rows.
|
|
56515
|
+
* Absent means admin only, as it always was.
|
|
56516
|
+
*/
|
|
56517
|
+
userScoped: boolean().optional()
|
|
56554
56518
|
});
|
|
56555
56519
|
var IntegrationInstanceStatusSchema = object({
|
|
56556
56520
|
state: _enum([
|
|
@@ -56600,7 +56564,13 @@ method(_void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }), method
|
|
|
56600
56564
|
]).optional(),
|
|
56601
56565
|
/** The discovery candidate the wizard was seeded from (`stableId`), if any. */
|
|
56602
56566
|
candidateStableId: string().min(1).optional()
|
|
56603
|
-
}), ConfigSchemaPassthrough$2, { auth: "admin" }), method(
|
|
56567
|
+
}), ConfigSchemaPassthrough$2, { auth: "admin" }), method(looseObject({}), array(IntegrationInstanceSchema).readonly(), {
|
|
56568
|
+
auth: "protected",
|
|
56569
|
+
caller: "scoped"
|
|
56570
|
+
}), method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), {
|
|
56571
|
+
auth: "protected",
|
|
56572
|
+
caller: "scoped"
|
|
56573
|
+
}), method(object({
|
|
56604
56574
|
id: IntegrationInstanceIdSchema.optional(),
|
|
56605
56575
|
name: string().min(1),
|
|
56606
56576
|
kind: string().min(1).optional(),
|
|
@@ -56622,19 +56592,23 @@ method(_void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }), method
|
|
|
56622
56592
|
seed: object({ info: record(string(), unknown()) }).optional()
|
|
56623
56593
|
}), object({ id: string() }), {
|
|
56624
56594
|
kind: "mutation",
|
|
56625
|
-
auth: "
|
|
56595
|
+
auth: "protected",
|
|
56596
|
+
caller: "scoped"
|
|
56626
56597
|
}), method(IntegrationInstancePatchSchema, object({ ok: literal(true) }), {
|
|
56627
56598
|
kind: "mutation",
|
|
56628
|
-
auth: "
|
|
56599
|
+
auth: "protected",
|
|
56600
|
+
caller: "scoped"
|
|
56629
56601
|
}), method(object({
|
|
56630
56602
|
id: IntegrationInstanceIdSchema,
|
|
56631
56603
|
enabled: boolean()
|
|
56632
56604
|
}), object({ ok: literal(true) }), {
|
|
56633
56605
|
kind: "mutation",
|
|
56634
|
-
auth: "
|
|
56606
|
+
auth: "protected",
|
|
56607
|
+
caller: "scoped"
|
|
56635
56608
|
}), method(object({ id: IntegrationInstanceIdSchema }), object({ ok: literal(true) }), {
|
|
56636
56609
|
kind: "mutation",
|
|
56637
|
-
auth: "
|
|
56610
|
+
auth: "protected",
|
|
56611
|
+
caller: "scoped"
|
|
56638
56612
|
}), optionalMethod(object({
|
|
56639
56613
|
id: IntegrationInstanceIdSchema.nullable(),
|
|
56640
56614
|
values: record(string(), unknown()),
|
|
@@ -56642,7 +56616,8 @@ method(_void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }), method
|
|
|
56642
56616
|
kind: string().min(1).optional()
|
|
56643
56617
|
}), TestConnectionResultSchema, {
|
|
56644
56618
|
kind: "mutation",
|
|
56645
|
-
auth: "
|
|
56619
|
+
auth: "protected",
|
|
56620
|
+
caller: "scoped"
|
|
56646
56621
|
});
|
|
56647
56622
|
/**
|
|
56648
56623
|
* Two-way audio / talk-back cap. Clients open a WebRTC audio-only
|
|
@@ -76197,6 +76172,11 @@ var SendEmailResultSchema = object({
|
|
|
76197
76172
|
var SmtpStatusSchema = object({
|
|
76198
76173
|
/** True iff the addon has successfully verified the relay. */
|
|
76199
76174
|
ready: boolean(),
|
|
76175
|
+
/**
|
|
76176
|
+
* The tri-state behind `ready` (D315): true when the last send worked, false when it failed,
|
|
76177
|
+
* ABSENT when the relay has not sent yet (unknown, never "not verified").
|
|
76178
|
+
*/
|
|
76179
|
+
verified: boolean().optional(),
|
|
76200
76180
|
/** Operator-visible host string (no credentials). */
|
|
76201
76181
|
host: string(),
|
|
76202
76182
|
/** Last error message reported by the relay, when not ready. */
|
|
@@ -76208,10 +76188,6 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
76208
76188
|
kind: "mutation",
|
|
76209
76189
|
auth: "admin",
|
|
76210
76190
|
access: "create"
|
|
76211
|
-
}), method(RelayPinSchema, SmtpStatusSchema, {
|
|
76212
|
-
kind: "mutation",
|
|
76213
|
-
auth: "admin",
|
|
76214
|
-
access: "view"
|
|
76215
76191
|
}), method(RelayPinSchema, SmtpStatusSchema, { auth: "admin" });
|
|
76216
76192
|
/**
|
|
76217
76193
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
@@ -82940,13 +82916,6 @@ Object.freeze({
|
|
|
82940
82916
|
access: "view",
|
|
82941
82917
|
role: "admin"
|
|
82942
82918
|
},
|
|
82943
|
-
"addonSettings.getIntegrationFormSchema": {
|
|
82944
|
-
capName: "addon-settings",
|
|
82945
|
-
capScope: "system",
|
|
82946
|
-
addonId: null,
|
|
82947
|
-
access: "view",
|
|
82948
|
-
role: "admin"
|
|
82949
|
-
},
|
|
82950
82919
|
"addonSettings.getScopedSettings": {
|
|
82951
82920
|
capName: "addon-settings",
|
|
82952
82921
|
capScope: "system",
|
|
@@ -90969,13 +90938,6 @@ Object.freeze({
|
|
|
90969
90938
|
access: "create",
|
|
90970
90939
|
role: "admin"
|
|
90971
90940
|
},
|
|
90972
|
-
"smtpProvider.verify": {
|
|
90973
|
-
capName: "smtp-provider",
|
|
90974
|
-
capScope: "system",
|
|
90975
|
-
addonId: null,
|
|
90976
|
-
access: "view",
|
|
90977
|
-
role: "admin"
|
|
90978
|
-
},
|
|
90979
90941
|
"snapshot.applyDeviceSettingsPatch": {
|
|
90980
90942
|
capName: "snapshot",
|
|
90981
90943
|
capScope: "device",
|
package/dist/remoteEntry.js
CHANGED
|
@@ -30,7 +30,7 @@ async function d(e) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
async function f() {
|
|
33
|
-
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-
|
|
33
|
+
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CjTvYWLp.mjs")).catch((e) => {
|
|
34
34
|
throw l = void 0, e;
|
|
35
35
|
}), l;
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-pipeline-orchestrator",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.675",
|
|
4
4
|
"description": "Hub-side camera-to-agent load balancer — tracks runner capacity and dispatches attachCamera calls to the optimal pipeline-runner instance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
],
|
|
78
78
|
"requires": {
|
|
79
|
-
"server": ">=1.2.
|
|
79
|
+
"server": ">=1.2.820"
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"files": [
|