@camstack/types 1.2.253 → 1.2.255
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/capabilities/index.d.ts +4 -4
- package/dist/capabilities/llm-runtime.cap.d.ts +181 -0
- package/dist/capabilities/llm-shared.d.ts +22 -0
- package/dist/capabilities/llm.cap.d.ts +81 -0
- package/dist/capabilities/nodes.cap.d.ts +50 -0
- package/dist/capabilities/notification-rules.cap.d.ts +33 -3
- package/dist/generated/addon-api.d.ts +28 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +722 -63
- package/dist/index.mjs +691 -62
- package/dist/notification/rule-kinds.d.ts +71 -14
- package/dist/notification/scope-picker-items.d.ts +49 -0
- package/dist/notification/system-event-families.d.ts +76 -0
- package/dist/notification/template-vars.d.ts +22 -1
- package/package.json +1 -1
|
@@ -61,8 +61,8 @@ export type { FailureContribution, IFailureContributionProvider, } from './failu
|
|
|
61
61
|
export { FailureContributionSchema, FailureReasonCountSchema, failureContributionCapability, } from './failure-contribution.cap.js';
|
|
62
62
|
export { filesystemBrowseCapability, type IFilesystemBrowseProvider, } from './filesystem-browse.cap.js';
|
|
63
63
|
export { type HfModelResolution, HfModelResolutionSchema, type ILlmProvider, type LlmDefault, LlmDefaultSchema, type LlmDefaultSelector, LlmDefaultSelectorSchema, type LlmProfile, type LlmProfileKind, type LlmProfileKindDescriptor, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, type LlmRuntimeNode, LlmRuntimeNodeSchema, type LlmUsageRollup, LlmUsageRollupSchema, llmCapability, type ManagedModelCatalogEntry, ManagedModelCatalogEntrySchema, } from './llm.cap.js';
|
|
64
|
-
export { type ILlmRuntimeProvider, type LlmDownloadProgress, LlmDownloadProgressSchema, type LlmNodeModel, LlmNodeModelSchema, type LlmRuntimeCompleteInput, LlmRuntimeCompleteInputSchema, type LlmRuntimeDiskUsage, LlmRuntimeDiskUsageSchema, type LlmRuntimeStatus, LlmRuntimeStatusSchema, llmRuntimeCapability, type ManagedModelExtraFile, ManagedModelExtraFileSchema, type ManagedModelRef, ManagedModelRefSchema, type ManagedRuntimeConfig, ManagedRuntimeConfigSchema, } from './llm-runtime.cap.js';
|
|
65
|
-
export { type LlmErrorCode, LlmErrorCodeSchema, type LlmGenerateBaseInput, LlmGenerateBaseInputSchema, type LlmGenerateErr, LlmGenerateErrSchema, type LlmGenerateOk, LlmGenerateOkSchema, type LlmGenerateResult, LlmGenerateResultSchema, type LlmImage, LlmImageSchema, type LlmRetryPolicy, LlmRetryPolicySchema, LlmTimeoutDefaults, type LlmUsage, LlmUsageSchema, } from './llm-shared.js';
|
|
64
|
+
export { type AppleFmAvailability, AppleFmAvailabilitySchema, type AppleFmUnavailableReason, AppleFmUnavailableReasonSchema, type ILlmRuntimeProvider, type LlmDownloadProgress, LlmDownloadProgressSchema, type LlmNodeModel, LlmNodeModelSchema, type LlmRuntimeAppleCompleteInput, LlmRuntimeAppleCompleteInputSchema, type LlmRuntimeCancelInput, LlmRuntimeCancelInputSchema, type LlmRuntimeCompleteInput, LlmRuntimeCompleteInputSchema, type LlmRuntimeDiskUsage, LlmRuntimeDiskUsageSchema, type LlmRuntimeStatus, LlmRuntimeStatusSchema, llmRuntimeCapability, type ManagedModelExtraFile, ManagedModelExtraFileSchema, type ManagedModelRef, ManagedModelRefSchema, type ManagedRuntimeConfig, ManagedRuntimeConfigSchema, } from './llm-runtime.cap.js';
|
|
65
|
+
export { type LlmErrorCode, LlmErrorCodeSchema, type LlmGenerateBaseInput, LlmGenerateBaseInputSchema, type LlmGenerateErr, LlmGenerateErrSchema, type LlmGenerateOk, LlmGenerateOkSchema, type LlmGenerateResult, LlmGenerateResultSchema, type LlmImage, LlmImageSchema, type LlmRefusalSource, LlmRefusalSourceSchema, type LlmRetryPolicy, LlmRetryPolicySchema, LlmTimeoutDefaults, type LlmUsage, LlmUsageSchema, } from './llm-shared.js';
|
|
66
66
|
export type { ILoadContributionProvider, LoadContribution, LoadContributionAttribution, LoadContributionRole, } from './load-contribution.cap.js';
|
|
67
67
|
export { LOAD_CONTRIBUTION_ATTRIBUTIONS, LOAD_CONTRIBUTION_ROLES, LoadContributionSchema, loadContributionCapability, } from './load-contribution.cap.js';
|
|
68
68
|
export type { ILogChannelsProvider, LogChannelApplyResult } from './log-channels.cap.js';
|
|
@@ -82,7 +82,7 @@ export { AddBrokerInputSchema, BrokerConnectionDetailsSchema, BrokerInfoSchema,
|
|
|
82
82
|
export type { NetworkAccessStatus, NetworkEndpoint } from './network-access.cap.js';
|
|
83
83
|
export { NetworkAccessStatusSchema, NetworkEndpointSchema, networkAccessCapability, } from './network-access.cap.js';
|
|
84
84
|
export { type Attachment, type AttachmentMediaType, AttachmentMediaTypeSchema, AttachmentSchema, type DiscoveredTarget, DiscoveredTargetSchema, type INotificationOutputProvider, type NotificationAction, type NotificationActionIcon, NotificationActionIconSchema, NotificationActionSchema, type NotificationFormat, NotificationFormatSchema, NotificationSchema, notificationOutputCapability, type RenderedAs, RenderedAsSchema, type SendResult, SendResultSchema, type Target, type TargetKind, type TargetKindCaps, TargetKindCapsSchema, type TargetKindLevel, TargetKindLevelSchema, TargetKindSchema, TargetSchema, type TestResult, TestResultSchema, } from './notification-output.cap.js';
|
|
85
|
-
export { type INotificationRulesProvider, NC_ALARM_SYSTEM_EVENT_KINDS, NC_AUDIO_DBFS_FLOOR, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_DEFAULT_SNOOZE_MINUTES, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, type NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, type NcAlarmSettings, type NcAlarmSettingsPatch, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, type NcAlarmSkippedDevice, NcAlarmSkippedDeviceSchema, type NcAlarmSkipReason, NcAlarmSkipReasonSchema, type NcAudioCondition, NcAudioConditionSchema, type NcClipRetentionAsk, NcClipRetentionAskSchema, type NcClipRetentionPlan, NcClipRetentionPlanSchema, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcConfirm, type NcConfirmExpect, NcConfirmExpectSchema, NcConfirmSchema, type NcCrossing, NcCrossingSchema, type NcDelivery, NcDeliverySchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcLinkedCameraMode, NcLinkedCameraModeSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcRuleAction, NcRuleActionSchema, type NcRuleActionSequence, NcRuleActionSequenceSchema, type NcRuleActions, NcRuleActionsSchema, type NcRuleClearableKey, NcRuleClearableKeySchema, type NcRuleInput, NcRuleInputSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcRuleUpdateInput, NcRuleUpdateInputSchema, NC_RULE_CLEARABLE_KEYS, NcRuleKindSchema, type NcSceneCondition, NcSceneConditionSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcSystemEventCondition, NcSystemEventConditionSchema, type NcSystemEventKind, NcSystemEventKindSchema, type NcTemplateFamily, NcTemplateFamilySchema, type NcTemplateField, NcTemplateFieldSchema, type NcTemplatePreview, NcTemplatePreviewSchema, type NcTemplatePreviewInput, NcTemplatePreviewInputSchema, type NcTemplateVarContext, NcTemplateVarContextSchema, type NcTemplateVarDescriptor, NcTemplateVarDescriptorSchema, type NcTemplateVarGroup, NcTemplateVarGroupSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
|
|
85
|
+
export { type INotificationRulesProvider, NC_ALARM_SYSTEM_EVENT_KINDS, NC_AUDIO_DBFS_FLOOR, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_DEFAULT_SNOOZE_MINUTES, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, type NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, type NcAlarmSettings, type NcAlarmSettingsPatch, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, type NcAlarmSkippedDevice, NcAlarmSkippedDeviceSchema, type NcAlarmSkipReason, NcAlarmSkipReasonSchema, type NcAudioCondition, NcAudioConditionSchema, type NcClipRetentionAsk, NcClipRetentionAskSchema, type NcClipRetentionPlan, NcClipRetentionPlanSchema, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcConfirm, type NcConfirmExpect, NcConfirmExpectSchema, NcConfirmSchema, type NcCrossing, NcCrossingSchema, type NcDelivery, NcDeliverySchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcLinkedCameraMode, NcLinkedCameraModeSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcRuleAction, NcRuleActionSchema, type NcRuleActionSequence, NcRuleActionSequenceSchema, type NcRuleActions, NcRuleActionsSchema, type NcRuleClearableKey, NcRuleClearableKeySchema, type NcRuleInput, NcRuleInputSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcRuleUpdateInput, NcRuleUpdateInputSchema, NC_RULE_CLEARABLE_KEYS, NcRuleKindSchema, type NcTemplateVarKind, NcTemplateVarKindSchema, type NcSceneCondition, NcSceneConditionSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcSystemEventCondition, NcSystemEventConditionSchema, type NcSystemEventKind, NcSystemEventKindSchema, type NcTemplateFamily, NcTemplateFamilySchema, type NcTemplateField, NcTemplateFieldSchema, type NcTemplatePreview, NcTemplatePreviewSchema, type NcTemplatePreviewInput, NcTemplatePreviewInputSchema, type NcTemplateVarContext, NcTemplateVarContextSchema, type NcTemplateVarDescriptor, NcTemplateVarDescriptorSchema, type NcTemplateVarGroup, NcTemplateVarGroupSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
|
|
86
86
|
export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
|
|
87
87
|
export { AnalyticsLtsSeriesSchema, type AudioEvent, type AudioEventDraft, AudioEventSchema, type DetectionSource, DetectionSourceSchema, EVENT_DENSITY_BATCH_MAX, type EventDensityBucket, EventDensityBucketSchema, type EventDensityForDevice, EventDensityForDeviceSchema, type EventKind, type EventKindCategory, EventKindCategorySchema, type EventKindDescriptor, EventKindDescriptorSchema, type EventKindIcon, EventKindIconSchema, EventKindSchema, type EventKindsForDevice, EventKindsForDeviceSchema, type EventMediaKindBreakdown, type EventMediaKindFootprint, type EventPruneCounts, type EventStoreDeviceFootprint, type EventStoreFootprint, type IPipelineAnalyticsProvider, type KeyEvent, KeyEventSchema, type KeyEventsForDevice, type LabelAttribution, LabelAttributionSchema, type LabelTier, LabelTierSchema, LTS_SCOPE_CLASS_SEPARATOR, type LtsBucket, LtsBucketSchema, MAX_TRACK_DEBUG_NOTE_LEN, type MediaFile, type MediaFileBytes, type MediaFileInfo, MediaFileInfoSchema, type MediaFileKind, MediaFileKindEnum, type MediaFileRef, MediaFileRefSchema, MediaFileSchema, type MotionEvent, type MotionEventDraft, MotionEventSchema, type ObjectEvent, type ObjectEventDraft, ObjectEventSchema, occupancyScope, parseOccupancyScope, pipelineAnalyticsCapability, type RecentTracksPage, RecentTracksPageSchema, type RecentTracksQuery, RecentTracksQueryInput, type RetrainAnnotation, type RetrainAnnotationDraft, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, type RetrainAssistResult, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, type RetrainFrame, type RetrainFrameCandidate, RetrainFrameCandidateSchema, type RetrainFrameList, RetrainFrameListSchema, RetrainFrameSchema, type RetrainFrameSelection, RetrainFrameSelectionSchema, type RetrainMacroClass, RetrainMacroClassSchema, type RetrainStatus, RetrainStatusSchema, type RetrainTrack, RetrainTrackSchema, type RetrainTransitionResult, RetrainTransitionResultSchema, type ScoredObjectEvent, ScoredObjectEventSchema, type SensorEvent, SensorEventSchema, SUMMARIES_DEFAULT_LIMIT, SUMMARIES_MAX_LIMIT, type SummariesPage, type Summary, type SummaryDetail, type SummaryListItem, SummarySchema, type Track, type TrackCascadeCounts, TrackCascadeCountsSchema, type TrackEnvelope, TrackEnvelopeSchema, TrackedDetectionSchema, type TrackFlags, type TrackFlagsPatch, TrackFlagsPatchSchema, TrackFlagsSchema, type TrackProjection, TrackProjectionSchema, TrackSchema, type TrackSource, TrackSourceSchema, type TrackState, TrackStateSchema, type TrackZoneFilter, TrackZoneFilterSchema, type TrainingExportDeviceTotals, TrainingExportDeviceTotalsSchema, type TrainingExportSummary, TrainingExportSummarySchema, type ZoneCrossing, type ZoneCrossingDirection, ZoneCrossingDirectionSchema, ZoneCrossingSchema, } from './pipeline-analytics.cap.js';
|
|
88
88
|
export type { NativeCropRef, PipelineStepInputOutput, PipelineValidationIssue, PipelineValidationResult, } from './pipeline-executor.cap.js';
|
|
@@ -176,7 +176,7 @@ export { type INativeObjectDetectionProvider, type NativeDetection, NativeDetect
|
|
|
176
176
|
export { type INavigationProvider, NAVIGATION_ACTION_CATALOG, NAVIGATION_LIGHT_LEVEL_MAX, NAVIGATION_LIGHT_LEVEL_MIN, type NavigationActionEntry, NavigationActionEntrySchema, type NavigationActionId, NavigationActionIdSchema, type NavigationEntryKind, NavigationEntryKindSchema, type NavigationFeatures, NavigationFeaturesSchema, type NavigationLightMode, NavigationLightModeSchema, type NavigationMode, NavigationModeSchema, type NavigationMoveCommand, NavigationMoveCommandSchema, type NavigationPoint, NavigationPointSchema, type NavigationRuntimeState, NavigationRuntimeStateSchema, type NavigationStatus, NavigationStatusSchema, navigationCapability, } from './navigation.cap.js';
|
|
177
177
|
export { type INetworkLinkProvider, NETWORK_LINK_TYPES, NETWORK_LINK_UNKNOWN, type NetworkLinkStatus, NetworkLinkStatusSchema, type NetworkLinkType, networkLinkCapability, signalPercentFromBars, signalPercentFromRssi, } from './network-link.cap.js';
|
|
178
178
|
export { ClientNetworkStatsSchema, DeviceNetworkStatsSchema, type INetworkQualityProvider, networkQualityCapability, StreamNetworkStatsSchema, } from './network-quality.cap.js';
|
|
179
|
-
export { ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, type INodesProvider, nodesCapability, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, } from './nodes.cap.js';
|
|
179
|
+
export { ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, type INodesProvider, type NodeDirectory, type NodeDirectoryEntry, NodeDirectoryEntrySchema, NodeDirectorySchema, nodesCapability, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, } from './nodes.cap.js';
|
|
180
180
|
export { type INotifierProvider, type NotifierAction, type NotifierPriority, type NotifierSendInput, type NotifierSendResult, type NotifierStatus, NotifierStatusSchema, type NotifierSupports, notifierCapability, } from './notifier.cap.js';
|
|
181
181
|
export { type INumericSensorProvider, type NumericSensorStatus, NumericSensorStatusSchema, numericSensorCapability, } from './numeric-sensor.cap.js';
|
|
182
182
|
export { type IOsdProvider, type OsdOverlay, type OsdOverlayKind, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, type OsdPosition, OsdPositionEnum, type OsdStatus, OsdStatusSchema, osdCapability, } from './osd.cap.js';
|
|
@@ -231,6 +231,93 @@ export declare const LlmRuntimeCompleteInputSchema: z.ZodObject<{
|
|
|
231
231
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
232
232
|
}, z.core.$strip>;
|
|
233
233
|
export type LlmRuntimeCompleteInput = z.infer<typeof LlmRuntimeCompleteInputSchema>;
|
|
234
|
+
/**
|
|
235
|
+
* Why Apple Foundation Models cannot run on a node that has it in principle.
|
|
236
|
+
* The first three are Apple's own `UnavailableReason`s, verbatim; the rest are
|
|
237
|
+
* ours: the OS predates the framework (macOS < 26), the helper binary is not
|
|
238
|
+
* in the installed addon, or it crashed past the respawn bound.
|
|
239
|
+
*/
|
|
240
|
+
export declare const AppleFmUnavailableReasonSchema: z.ZodEnum<{
|
|
241
|
+
deviceNotEligible: "deviceNotEligible";
|
|
242
|
+
appleIntelligenceNotEnabled: "appleIntelligenceNotEnabled";
|
|
243
|
+
modelNotReady: "modelNotReady";
|
|
244
|
+
osTooOld: "osTooOld";
|
|
245
|
+
helperMissing: "helperMissing";
|
|
246
|
+
helperCrashed: "helperCrashed";
|
|
247
|
+
}>;
|
|
248
|
+
export type AppleFmUnavailableReason = z.infer<typeof AppleFmUnavailableReasonSchema>;
|
|
249
|
+
/**
|
|
250
|
+
* Apple Foundation Models on ONE node — four states, never a boolean (D315).
|
|
251
|
+
*
|
|
252
|
+
* - `available` — the helper probed it; what it CAN do is reported
|
|
253
|
+
* here (`imageInput`, `contextSize`, languages),
|
|
254
|
+
* never typed by an operator.
|
|
255
|
+
* - `unavailable` — a known absence, with the reason to act on.
|
|
256
|
+
* - `unsupported-platform` — not a Mac; there is nothing to enable.
|
|
257
|
+
* - `unknown` — the probe did not answer (not yet run, timed
|
|
258
|
+
* out, helper crashed mid-probe). A failed
|
|
259
|
+
* measurement is NEVER `unavailable` (D393).
|
|
260
|
+
*/
|
|
261
|
+
export declare const AppleFmAvailabilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
262
|
+
state: z.ZodLiteral<"available">;
|
|
263
|
+
osVersion: z.ZodString;
|
|
264
|
+
contextSize: z.ZodNumber;
|
|
265
|
+
languages: z.ZodArray<z.ZodString>;
|
|
266
|
+
imageInput: z.ZodBoolean;
|
|
267
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
268
|
+
state: z.ZodLiteral<"unavailable">;
|
|
269
|
+
reason: z.ZodEnum<{
|
|
270
|
+
deviceNotEligible: "deviceNotEligible";
|
|
271
|
+
appleIntelligenceNotEnabled: "appleIntelligenceNotEnabled";
|
|
272
|
+
modelNotReady: "modelNotReady";
|
|
273
|
+
osTooOld: "osTooOld";
|
|
274
|
+
helperMissing: "helperMissing";
|
|
275
|
+
helperCrashed: "helperCrashed";
|
|
276
|
+
}>;
|
|
277
|
+
osVersion: z.ZodNullable<z.ZodString>;
|
|
278
|
+
detail: z.ZodString;
|
|
279
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
280
|
+
state: z.ZodLiteral<"unsupported-platform">;
|
|
281
|
+
platform: z.ZodString;
|
|
282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
283
|
+
state: z.ZodLiteral<"unknown">;
|
|
284
|
+
error: z.ZodString;
|
|
285
|
+
}, z.core.$strip>], "state">;
|
|
286
|
+
export type AppleFmAvailability = z.infer<typeof AppleFmAvailabilitySchema>;
|
|
287
|
+
/**
|
|
288
|
+
* A generation on the node's Apple Foundation Models helper. A separate verb
|
|
289
|
+
* from `complete`, whose `runtime` is a llama.cpp config: overloading it would
|
|
290
|
+
* drag a GGUF model reference into a backend that has none. `images` is part
|
|
291
|
+
* of the contract so vision needs no cap change later; a node whose model has
|
|
292
|
+
* no image input REFUSES them (`unavailable`), never drops them.
|
|
293
|
+
*/
|
|
294
|
+
export declare const LlmRuntimeAppleCompleteInputSchema: z.ZodObject<{
|
|
295
|
+
addonId: z.ZodOptional<z.ZodString>;
|
|
296
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
297
|
+
consumer: z.ZodString;
|
|
298
|
+
system: z.ZodOptional<z.ZodString>;
|
|
299
|
+
prompt: z.ZodString;
|
|
300
|
+
jsonSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
301
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
topP: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
306
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
307
|
+
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
309
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
310
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
311
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
312
|
+
mimeType: z.ZodString;
|
|
313
|
+
}, z.core.$strip>>>;
|
|
314
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
export type LlmRuntimeAppleCompleteInput = z.infer<typeof LlmRuntimeAppleCompleteInputSchema>;
|
|
317
|
+
export declare const LlmRuntimeCancelInputSchema: z.ZodObject<{
|
|
318
|
+
requestId: z.ZodString;
|
|
319
|
+
}, z.core.$strip>;
|
|
320
|
+
export type LlmRuntimeCancelInput = z.infer<typeof LlmRuntimeCancelInputSchema>;
|
|
234
321
|
export declare const llmRuntimeCapability: {
|
|
235
322
|
readonly name: "llm-runtime";
|
|
236
323
|
readonly scope: "system";
|
|
@@ -351,6 +438,10 @@ export declare const llmRuntimeCapability: {
|
|
|
351
438
|
}>;
|
|
352
439
|
message: z.ZodString;
|
|
353
440
|
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
441
|
+
refusalSource: z.ZodOptional<z.ZodEnum<{
|
|
442
|
+
model: "model";
|
|
443
|
+
guardrail: "guardrail";
|
|
444
|
+
}>>;
|
|
354
445
|
}, z.core.$strip>], "ok">, "mutation">;
|
|
355
446
|
readonly ensureStarted: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
356
447
|
runtime: z.ZodObject<{
|
|
@@ -507,6 +598,96 @@ export declare const llmRuntimeCapability: {
|
|
|
507
598
|
modelsBytes: z.ZodNumber;
|
|
508
599
|
freeBytes: z.ZodOptional<z.ZodNumber>;
|
|
509
600
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
601
|
+
/**
|
|
602
|
+
* Stop a node-side generation started with a `requestId` — `complete` or
|
|
603
|
+
* `completeApple`. The hub's `llm.cancel` forwards here with the same
|
|
604
|
+
* nodePin the generation took; before this existed a cancelled
|
|
605
|
+
* managed-local generation kept running on the node to its own timeout.
|
|
606
|
+
* Idempotent: an unknown or finished id is a no-op.
|
|
607
|
+
*/
|
|
608
|
+
readonly cancel: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
609
|
+
requestId: z.ZodString;
|
|
610
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
611
|
+
/**
|
|
612
|
+
* This node's Apple Foundation Models state, answered from a mirror the
|
|
613
|
+
* node refreshes in the background — it never waits on a probe.
|
|
614
|
+
*/
|
|
615
|
+
readonly appleAvailability: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
616
|
+
state: z.ZodLiteral<"available">;
|
|
617
|
+
osVersion: z.ZodString;
|
|
618
|
+
contextSize: z.ZodNumber;
|
|
619
|
+
languages: z.ZodArray<z.ZodString>;
|
|
620
|
+
imageInput: z.ZodBoolean;
|
|
621
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
622
|
+
state: z.ZodLiteral<"unavailable">;
|
|
623
|
+
reason: z.ZodEnum<{
|
|
624
|
+
deviceNotEligible: "deviceNotEligible";
|
|
625
|
+
appleIntelligenceNotEnabled: "appleIntelligenceNotEnabled";
|
|
626
|
+
modelNotReady: "modelNotReady";
|
|
627
|
+
osTooOld: "osTooOld";
|
|
628
|
+
helperMissing: "helperMissing";
|
|
629
|
+
helperCrashed: "helperCrashed";
|
|
630
|
+
}>;
|
|
631
|
+
osVersion: z.ZodNullable<z.ZodString>;
|
|
632
|
+
detail: z.ZodString;
|
|
633
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
634
|
+
state: z.ZodLiteral<"unsupported-platform">;
|
|
635
|
+
platform: z.ZodString;
|
|
636
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
637
|
+
state: z.ZodLiteral<"unknown">;
|
|
638
|
+
error: z.ZodString;
|
|
639
|
+
}, z.core.$strip>], "state">, import("./capability-definition.js").CapabilityMethodKind>;
|
|
640
|
+
readonly completeApple: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
641
|
+
addonId: z.ZodOptional<z.ZodString>;
|
|
642
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
643
|
+
consumer: z.ZodString;
|
|
644
|
+
system: z.ZodOptional<z.ZodString>;
|
|
645
|
+
prompt: z.ZodString;
|
|
646
|
+
jsonSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
647
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
649
|
+
topP: z.ZodOptional<z.ZodNumber>;
|
|
650
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
651
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
652
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
653
|
+
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
654
|
+
}, z.core.$strip>>;
|
|
655
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
656
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
657
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
658
|
+
mimeType: z.ZodString;
|
|
659
|
+
}, z.core.$strip>>>;
|
|
660
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
661
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
662
|
+
ok: z.ZodLiteral<true>;
|
|
663
|
+
text: z.ZodString;
|
|
664
|
+
model: z.ZodString;
|
|
665
|
+
usage: z.ZodObject<{
|
|
666
|
+
inputTokens: z.ZodNumber;
|
|
667
|
+
outputTokens: z.ZodNumber;
|
|
668
|
+
}, z.core.$strip>;
|
|
669
|
+
truncated: z.ZodBoolean;
|
|
670
|
+
latencyMs: z.ZodNumber;
|
|
671
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
672
|
+
ok: z.ZodLiteral<false>;
|
|
673
|
+
code: z.ZodEnum<{
|
|
674
|
+
auth: "auth";
|
|
675
|
+
timeout: "timeout";
|
|
676
|
+
"rate-limited": "rate-limited";
|
|
677
|
+
refusal: "refusal";
|
|
678
|
+
"bad-request": "bad-request";
|
|
679
|
+
unavailable: "unavailable";
|
|
680
|
+
"no-profile": "no-profile";
|
|
681
|
+
"budget-exceeded": "budget-exceeded";
|
|
682
|
+
"adapter-error": "adapter-error";
|
|
683
|
+
}>;
|
|
684
|
+
message: z.ZodString;
|
|
685
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
686
|
+
refusalSource: z.ZodOptional<z.ZodEnum<{
|
|
687
|
+
model: "model";
|
|
688
|
+
guardrail: "guardrail";
|
|
689
|
+
}>>;
|
|
690
|
+
}, z.core.$strip>], "ok">, "mutation">;
|
|
510
691
|
};
|
|
511
692
|
};
|
|
512
693
|
export type ILlmRuntimeProvider = InferProvider<typeof llmRuntimeCapability>;
|
|
@@ -36,6 +36,20 @@ export declare const LlmGenerateOkSchema: z.ZodObject<{
|
|
|
36
36
|
truncated: z.ZodBoolean;
|
|
37
37
|
latencyMs: z.ZodNumber;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
|
+
/**
|
|
40
|
+
* WHO refused, on a `refusal`. `guardrail` = a safety filter in front of the
|
|
41
|
+
* model rejected the request before it answered (Apple Foundation Models
|
|
42
|
+
* refuses surveillance-framed prompts in 0.1 s); `model` = the model itself
|
|
43
|
+
* declined. They are different faults: a guardrail refusal is a property of
|
|
44
|
+
* the BACKEND, so the provider falls back to the next profile; a model refusal
|
|
45
|
+
* is an answer. Absent on every other code, and on a refusal a wire cannot
|
|
46
|
+
* attribute.
|
|
47
|
+
*/
|
|
48
|
+
export declare const LlmRefusalSourceSchema: z.ZodEnum<{
|
|
49
|
+
model: "model";
|
|
50
|
+
guardrail: "guardrail";
|
|
51
|
+
}>;
|
|
52
|
+
export type LlmRefusalSource = z.infer<typeof LlmRefusalSourceSchema>;
|
|
39
53
|
export declare const LlmGenerateErrSchema: z.ZodObject<{
|
|
40
54
|
ok: z.ZodLiteral<false>;
|
|
41
55
|
code: z.ZodEnum<{
|
|
@@ -51,6 +65,10 @@ export declare const LlmGenerateErrSchema: z.ZodObject<{
|
|
|
51
65
|
}>;
|
|
52
66
|
message: z.ZodString;
|
|
53
67
|
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
refusalSource: z.ZodOptional<z.ZodEnum<{
|
|
69
|
+
model: "model";
|
|
70
|
+
guardrail: "guardrail";
|
|
71
|
+
}>>;
|
|
54
72
|
}, z.core.$strip>;
|
|
55
73
|
export declare const LlmGenerateResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
74
|
ok: z.ZodLiteral<true>;
|
|
@@ -77,6 +95,10 @@ export declare const LlmGenerateResultSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
77
95
|
}>;
|
|
78
96
|
message: z.ZodString;
|
|
79
97
|
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
refusalSource: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
model: "model";
|
|
100
|
+
guardrail: "guardrail";
|
|
101
|
+
}>>;
|
|
80
102
|
}, z.core.$strip>], "ok">;
|
|
81
103
|
export type LlmGenerateOk = z.infer<typeof LlmGenerateOkSchema>;
|
|
82
104
|
export type LlmGenerateErr = z.infer<typeof LlmGenerateErrSchema>;
|
|
@@ -18,6 +18,7 @@ export declare const LlmProfileKindSchema: z.ZodEnum<{
|
|
|
18
18
|
anthropic: "anthropic";
|
|
19
19
|
google: "google";
|
|
20
20
|
"managed-local": "managed-local";
|
|
21
|
+
"apple-foundation": "apple-foundation";
|
|
21
22
|
}>;
|
|
22
23
|
export type LlmProfileKind = z.infer<typeof LlmProfileKindSchema>;
|
|
23
24
|
export declare const LlmProfileSchema: z.ZodObject<{
|
|
@@ -29,6 +30,7 @@ export declare const LlmProfileSchema: z.ZodObject<{
|
|
|
29
30
|
anthropic: "anthropic";
|
|
30
31
|
google: "google";
|
|
31
32
|
"managed-local": "managed-local";
|
|
33
|
+
"apple-foundation": "apple-foundation";
|
|
32
34
|
}>;
|
|
33
35
|
addonId: z.ZodString;
|
|
34
36
|
enabled: z.ZodBoolean;
|
|
@@ -107,6 +109,9 @@ export declare const LlmProfileSchema: z.ZodObject<{
|
|
|
107
109
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
108
110
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
109
111
|
}, z.core.$strip>>;
|
|
112
|
+
appleFoundation: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
nodeId: z.ZodString;
|
|
114
|
+
}, z.core.$strip>>;
|
|
110
115
|
}, z.core.$strip>;
|
|
111
116
|
export type LlmProfile = z.infer<typeof LlmProfileSchema>;
|
|
112
117
|
export declare const LlmProfileKindDescriptorSchema: z.ZodObject<{
|
|
@@ -116,6 +121,7 @@ export declare const LlmProfileKindDescriptorSchema: z.ZodObject<{
|
|
|
116
121
|
anthropic: "anthropic";
|
|
117
122
|
google: "google";
|
|
118
123
|
"managed-local": "managed-local";
|
|
124
|
+
"apple-foundation": "apple-foundation";
|
|
119
125
|
}>;
|
|
120
126
|
label: z.ZodString;
|
|
121
127
|
icon: z.ZodString;
|
|
@@ -264,6 +270,31 @@ export declare const LlmRuntimeNodeSchema: z.ZodObject<{
|
|
|
264
270
|
freeBytes: z.ZodOptional<z.ZodNumber>;
|
|
265
271
|
}, z.core.$strip>>;
|
|
266
272
|
error: z.ZodOptional<z.ZodString>;
|
|
273
|
+
apple: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
274
|
+
state: z.ZodLiteral<"available">;
|
|
275
|
+
osVersion: z.ZodString;
|
|
276
|
+
contextSize: z.ZodNumber;
|
|
277
|
+
languages: z.ZodArray<z.ZodString>;
|
|
278
|
+
imageInput: z.ZodBoolean;
|
|
279
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
280
|
+
state: z.ZodLiteral<"unavailable">;
|
|
281
|
+
reason: z.ZodEnum<{
|
|
282
|
+
deviceNotEligible: "deviceNotEligible";
|
|
283
|
+
appleIntelligenceNotEnabled: "appleIntelligenceNotEnabled";
|
|
284
|
+
modelNotReady: "modelNotReady";
|
|
285
|
+
osTooOld: "osTooOld";
|
|
286
|
+
helperMissing: "helperMissing";
|
|
287
|
+
helperCrashed: "helperCrashed";
|
|
288
|
+
}>;
|
|
289
|
+
osVersion: z.ZodNullable<z.ZodString>;
|
|
290
|
+
detail: z.ZodString;
|
|
291
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
+
state: z.ZodLiteral<"unsupported-platform">;
|
|
293
|
+
platform: z.ZodString;
|
|
294
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
295
|
+
state: z.ZodLiteral<"unknown">;
|
|
296
|
+
error: z.ZodString;
|
|
297
|
+
}, z.core.$strip>], "state">>;
|
|
267
298
|
}, z.core.$strip>;
|
|
268
299
|
export type LlmRuntimeNode = z.infer<typeof LlmRuntimeNodeSchema>;
|
|
269
300
|
export declare const llmCapability: {
|
|
@@ -317,6 +348,10 @@ export declare const llmCapability: {
|
|
|
317
348
|
}>;
|
|
318
349
|
message: z.ZodString;
|
|
319
350
|
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
351
|
+
refusalSource: z.ZodOptional<z.ZodEnum<{
|
|
352
|
+
model: "model";
|
|
353
|
+
guardrail: "guardrail";
|
|
354
|
+
}>>;
|
|
320
355
|
}, z.core.$strip>], "ok">, "mutation">;
|
|
321
356
|
readonly generateVision: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
322
357
|
addonId: z.ZodOptional<z.ZodString>;
|
|
@@ -364,6 +399,10 @@ export declare const llmCapability: {
|
|
|
364
399
|
}>;
|
|
365
400
|
message: z.ZodString;
|
|
366
401
|
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
402
|
+
refusalSource: z.ZodOptional<z.ZodEnum<{
|
|
403
|
+
model: "model";
|
|
404
|
+
guardrail: "guardrail";
|
|
405
|
+
}>>;
|
|
367
406
|
}, z.core.$strip>], "ok">, "mutation">;
|
|
368
407
|
/**
|
|
369
408
|
* Stop a generation started with a `requestId`.
|
|
@@ -383,6 +422,7 @@ export declare const llmCapability: {
|
|
|
383
422
|
anthropic: "anthropic";
|
|
384
423
|
google: "google";
|
|
385
424
|
"managed-local": "managed-local";
|
|
425
|
+
"apple-foundation": "apple-foundation";
|
|
386
426
|
}>;
|
|
387
427
|
label: z.ZodString;
|
|
388
428
|
icon: z.ZodString;
|
|
@@ -398,6 +438,7 @@ export declare const llmCapability: {
|
|
|
398
438
|
anthropic: "anthropic";
|
|
399
439
|
google: "google";
|
|
400
440
|
"managed-local": "managed-local";
|
|
441
|
+
"apple-foundation": "apple-foundation";
|
|
401
442
|
}>;
|
|
402
443
|
addonId: z.ZodString;
|
|
403
444
|
enabled: z.ZodBoolean;
|
|
@@ -476,6 +517,9 @@ export declare const llmCapability: {
|
|
|
476
517
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
477
518
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
478
519
|
}, z.core.$strip>>;
|
|
520
|
+
appleFoundation: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
nodeId: z.ZodString;
|
|
522
|
+
}, z.core.$strip>>;
|
|
479
523
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
480
524
|
readonly upsertProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
481
525
|
profile: z.ZodObject<{
|
|
@@ -487,6 +531,7 @@ export declare const llmCapability: {
|
|
|
487
531
|
anthropic: "anthropic";
|
|
488
532
|
google: "google";
|
|
489
533
|
"managed-local": "managed-local";
|
|
534
|
+
"apple-foundation": "apple-foundation";
|
|
490
535
|
}>;
|
|
491
536
|
addonId: z.ZodString;
|
|
492
537
|
enabled: z.ZodBoolean;
|
|
@@ -565,6 +610,9 @@ export declare const llmCapability: {
|
|
|
565
610
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
566
611
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
567
612
|
}, z.core.$strip>>;
|
|
613
|
+
appleFoundation: z.ZodOptional<z.ZodObject<{
|
|
614
|
+
nodeId: z.ZodString;
|
|
615
|
+
}, z.core.$strip>>;
|
|
568
616
|
}, z.core.$strip>;
|
|
569
617
|
}, z.core.$strip>, z.ZodObject<{
|
|
570
618
|
id: z.ZodString;
|
|
@@ -575,6 +623,7 @@ export declare const llmCapability: {
|
|
|
575
623
|
anthropic: "anthropic";
|
|
576
624
|
google: "google";
|
|
577
625
|
"managed-local": "managed-local";
|
|
626
|
+
"apple-foundation": "apple-foundation";
|
|
578
627
|
}>;
|
|
579
628
|
addonId: z.ZodString;
|
|
580
629
|
enabled: z.ZodBoolean;
|
|
@@ -653,6 +702,9 @@ export declare const llmCapability: {
|
|
|
653
702
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
654
703
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
655
704
|
}, z.core.$strip>>;
|
|
705
|
+
appleFoundation: z.ZodOptional<z.ZodObject<{
|
|
706
|
+
nodeId: z.ZodString;
|
|
707
|
+
}, z.core.$strip>>;
|
|
656
708
|
}, z.core.$strip>, "mutation">;
|
|
657
709
|
readonly deleteProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
658
710
|
addonId: z.ZodString;
|
|
@@ -686,6 +738,10 @@ export declare const llmCapability: {
|
|
|
686
738
|
}>;
|
|
687
739
|
message: z.ZodString;
|
|
688
740
|
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
741
|
+
refusalSource: z.ZodOptional<z.ZodEnum<{
|
|
742
|
+
model: "model";
|
|
743
|
+
guardrail: "guardrail";
|
|
744
|
+
}>>;
|
|
689
745
|
}, z.core.$strip>], "ok">, "mutation">;
|
|
690
746
|
/** Live vendor enumeration (GET /models etc.). */
|
|
691
747
|
readonly listModels: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
@@ -786,6 +842,31 @@ export declare const llmCapability: {
|
|
|
786
842
|
freeBytes: z.ZodOptional<z.ZodNumber>;
|
|
787
843
|
}, z.core.$strip>>;
|
|
788
844
|
error: z.ZodOptional<z.ZodString>;
|
|
845
|
+
apple: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
846
|
+
state: z.ZodLiteral<"available">;
|
|
847
|
+
osVersion: z.ZodString;
|
|
848
|
+
contextSize: z.ZodNumber;
|
|
849
|
+
languages: z.ZodArray<z.ZodString>;
|
|
850
|
+
imageInput: z.ZodBoolean;
|
|
851
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
852
|
+
state: z.ZodLiteral<"unavailable">;
|
|
853
|
+
reason: z.ZodEnum<{
|
|
854
|
+
deviceNotEligible: "deviceNotEligible";
|
|
855
|
+
appleIntelligenceNotEnabled: "appleIntelligenceNotEnabled";
|
|
856
|
+
modelNotReady: "modelNotReady";
|
|
857
|
+
osTooOld: "osTooOld";
|
|
858
|
+
helperMissing: "helperMissing";
|
|
859
|
+
helperCrashed: "helperCrashed";
|
|
860
|
+
}>;
|
|
861
|
+
osVersion: z.ZodNullable<z.ZodString>;
|
|
862
|
+
detail: z.ZodString;
|
|
863
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
864
|
+
state: z.ZodLiteral<"unsupported-platform">;
|
|
865
|
+
platform: z.ZodString;
|
|
866
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
867
|
+
state: z.ZodLiteral<"unknown">;
|
|
868
|
+
error: z.ZodString;
|
|
869
|
+
}, z.core.$strip>], "state">>;
|
|
789
870
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
790
871
|
readonly listNodeModels: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
791
872
|
nodeId: z.ZodString;
|
|
@@ -117,6 +117,42 @@ declare const NodeAddonEntrySchema: z.ZodObject<{
|
|
|
117
117
|
version: z.ZodOptional<z.ZodString>;
|
|
118
118
|
packageName: z.ZodOptional<z.ZodString>;
|
|
119
119
|
}, z.core.$strip>;
|
|
120
|
+
/**
|
|
121
|
+
* One row of the CHEAP node list (D637): what a node picker needs and nothing
|
|
122
|
+
* else. Read from the hub's in-memory registry plus the durable node history.
|
|
123
|
+
* No per-node RPC, unlike `topology`, which walks the whole cluster (32–51 s).
|
|
124
|
+
*/
|
|
125
|
+
export declare const NodeDirectoryEntrySchema: z.ZodObject<{
|
|
126
|
+
id: z.ZodString;
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
isHub: z.ZodBoolean;
|
|
129
|
+
isOnline: z.ZodBoolean;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export type NodeDirectoryEntry = z.infer<typeof NodeDirectoryEntrySchema>;
|
|
132
|
+
/**
|
|
133
|
+
* The cheap node list. A consumer's rule for a STORED node id (a rule's
|
|
134
|
+
* `nodeIds`) that is missing from `nodes`, whatever `complete` says: render it
|
|
135
|
+
* as a removable chip labelled unknown, never drop it (D49). Even a complete
|
|
136
|
+
* list omits a node that joined and left between two history captures, so a
|
|
137
|
+
* missing id means "not known to the hub", never "removed". Only the operator
|
|
138
|
+
* removes it.
|
|
139
|
+
*
|
|
140
|
+
* `complete` changes only the WORDING: `false` = no history read has ever
|
|
141
|
+
* answered, so the list may be missing offline nodes the hub does know (D315).
|
|
142
|
+
*
|
|
143
|
+
* `name` is the history row's name (≤ 30 s behind a rename), or the id when
|
|
144
|
+
* the history has none.
|
|
145
|
+
*/
|
|
146
|
+
export declare const NodeDirectorySchema: z.ZodObject<{
|
|
147
|
+
nodes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
148
|
+
id: z.ZodString;
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
isHub: z.ZodBoolean;
|
|
151
|
+
isOnline: z.ZodBoolean;
|
|
152
|
+
}, z.core.$strip>>>;
|
|
153
|
+
complete: z.ZodBoolean;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
export type NodeDirectory = z.infer<typeof NodeDirectorySchema>;
|
|
120
156
|
/**
|
|
121
157
|
* `nodes` is a **hub-centric** cluster-management cap: the hub hosts
|
|
122
158
|
* the single provider and every per-node method (`getNodeAddons`,
|
|
@@ -187,6 +223,20 @@ export declare const nodesCapability: {
|
|
|
187
223
|
version: z.ZodString;
|
|
188
224
|
}, z.core.$strip>>;
|
|
189
225
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
226
|
+
/**
|
|
227
|
+
* The cheap node list for pickers (D637): the hub's in-memory registry plus
|
|
228
|
+
* the durable node history, no per-node RPC. `complete: false` when the
|
|
229
|
+
* history could not be read.
|
|
230
|
+
*/
|
|
231
|
+
readonly directory: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
232
|
+
nodes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
233
|
+
id: z.ZodString;
|
|
234
|
+
name: z.ZodString;
|
|
235
|
+
isHub: z.ZodBoolean;
|
|
236
|
+
isOnline: z.ZodBoolean;
|
|
237
|
+
}, z.core.$strip>>>;
|
|
238
|
+
complete: z.ZodBoolean;
|
|
239
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
190
240
|
readonly deployAddon: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
191
241
|
nodeId: z.ZodString;
|
|
192
242
|
addonId: z.ZodString;
|
|
@@ -2014,15 +2014,36 @@ export declare const NcTestResultSchema: z.ZodObject<{
|
|
|
2014
2014
|
label: z.ZodOptional<z.ZodString>;
|
|
2015
2015
|
}, z.core.$strip>;
|
|
2016
2016
|
export type NcTestResult = z.infer<typeof NcTestResultSchema>;
|
|
2017
|
-
/** The
|
|
2018
|
-
*
|
|
2017
|
+
/** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is the
|
|
2018
|
+
* same union; the template-vars spec pins the two together. `mixed` is DERIVED
|
|
2019
|
+
* (a stored system rule whose kinds span families, D637) and never authored. */
|
|
2019
2020
|
export declare const NcRuleKindSchema: z.ZodEnum<{
|
|
2020
2021
|
sensor: "sensor";
|
|
2021
2022
|
system: "system";
|
|
2022
2023
|
detection: "detection";
|
|
2023
2024
|
occupancy: "occupancy";
|
|
2024
2025
|
sound: "sound";
|
|
2026
|
+
alarm: "alarm";
|
|
2027
|
+
"device-events": "device-events";
|
|
2028
|
+
mixed: "mixed";
|
|
2025
2029
|
}>;
|
|
2030
|
+
/**
|
|
2031
|
+
* The kinds a SERVED template-variable descriptor may name: the five that
|
|
2032
|
+
* existed before D637, frozen. `getTemplateCatalog` ships `kinds` to every
|
|
2033
|
+
* installed viewer, and a viewer at `@camstack/types` 1.2.25x parses them with a
|
|
2034
|
+
* strict five-member enum — one `device-events` in one descriptor fails the
|
|
2035
|
+
* whole catalog parse. So the WIRE says `system`, and the MATCH widens it:
|
|
2036
|
+
* `templateVarKindApplies` reads a `system` descriptor as applying to every
|
|
2037
|
+
* system rule kind (`device-events`, `system`, `alarm`, `mixed`).
|
|
2038
|
+
*/
|
|
2039
|
+
export declare const NcTemplateVarKindSchema: z.ZodEnum<{
|
|
2040
|
+
sensor: "sensor";
|
|
2041
|
+
system: "system";
|
|
2042
|
+
detection: "detection";
|
|
2043
|
+
occupancy: "occupancy";
|
|
2044
|
+
sound: "sound";
|
|
2045
|
+
}>;
|
|
2046
|
+
export type NcTemplateVarKind = z.infer<typeof NcTemplateVarKindSchema>;
|
|
2026
2047
|
/** Which producer renders a template: an ordinary rule, a timelapse, a digest. */
|
|
2027
2048
|
export declare const NcTemplateFamilySchema: z.ZodEnum<{
|
|
2028
2049
|
summary: "summary";
|
|
@@ -2057,7 +2078,7 @@ export type NcTemplateVarGroup = z.infer<typeof NcTemplateVarGroupSchema>;
|
|
|
2057
2078
|
*
|
|
2058
2079
|
* `families` / `fields` / `kinds` / `deliveries` / `systemEventKinds` say WHERE
|
|
2059
2080
|
* it has a value; absent = no restriction on that axis. `systemEventKinds` is
|
|
2060
|
-
* read only for a
|
|
2081
|
+
* read only for a system-event rule (any family, or `mixed`). `dynamic` declares a FAMILY of names
|
|
2061
2082
|
* (`count_<class>`): the descriptor's `name` is the example member.
|
|
2062
2083
|
*/
|
|
2063
2084
|
export declare const NcTemplateVarDescriptorSchema: z.ZodObject<{
|
|
@@ -2164,6 +2185,9 @@ export declare const NcTemplateVarContextSchema: z.ZodObject<{
|
|
|
2164
2185
|
detection: "detection";
|
|
2165
2186
|
occupancy: "occupancy";
|
|
2166
2187
|
sound: "sound";
|
|
2188
|
+
alarm: "alarm";
|
|
2189
|
+
"device-events": "device-events";
|
|
2190
|
+
mixed: "mixed";
|
|
2167
2191
|
}>>;
|
|
2168
2192
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
2169
2193
|
"device-event": "device-event";
|
|
@@ -2231,6 +2255,9 @@ export declare const NcTemplatePreviewInputSchema: z.ZodObject<{
|
|
|
2231
2255
|
detection: "detection";
|
|
2232
2256
|
occupancy: "occupancy";
|
|
2233
2257
|
sound: "sound";
|
|
2258
|
+
alarm: "alarm";
|
|
2259
|
+
"device-events": "device-events";
|
|
2260
|
+
mixed: "mixed";
|
|
2234
2261
|
}>>;
|
|
2235
2262
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
2236
2263
|
"device-event": "device-event";
|
|
@@ -5194,6 +5221,9 @@ export declare const notificationRulesCapability: {
|
|
|
5194
5221
|
detection: "detection";
|
|
5195
5222
|
occupancy: "occupancy";
|
|
5196
5223
|
sound: "sound";
|
|
5224
|
+
alarm: "alarm";
|
|
5225
|
+
"device-events": "device-events";
|
|
5226
|
+
mixed: "mixed";
|
|
5197
5227
|
}>>;
|
|
5198
5228
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
5199
5229
|
"device-event": "device-event";
|