Function isSentinelModule
- isSentinelModule(
obj: AnyNonPromise,
config?: TypeCheckConfig,
): obj is SentinelModule<
BaseParamsFields & {
account?: AccountInstance
| "random";
additionalSigners?: AccountInstance[];
addToResolvers?: boolean;
allowNameResolution?: boolean;
config: DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: string[]; queries?: string[] };
archivist?: string;
automations?: (
| {
end?: number;
frequency?: number;
frequencyUnits?: "second"
| "minute"
| "hour"
| "day";
remaining?: number;
schema: "network.xyo.automation";
start: number;
type: "interval";
}
| {
end?: number;
frequency?: number;
frequencyUnits?: "second"
| "minute"
| "hour"
| "day";
remaining?: number;
schema: "network.xyo.automation.interval";
start: number;
type: "interval";
}
| {
end?: number;
frequency?: number;
frequencyUnits?: "second"
| "minute"
| "hour"
| "day";
remaining?: number;
schema: "network.xyo.automation.event";
start: number;
type: "interval";
}
| { schema: "network.xyo.automation"; type: "event" }
| { schema: "network.xyo.automation.interval"; type: "event" }
| { schema: "network.xyo.automation.event"; type: "event" }
)[];
consoleLogger?: any;
labels?: { [x: string]: undefined | string };
name?: string;
paging?: { [x: string]: { size?: number } };
retry?: { backoff?: number; interval?: number; retries?: number };
schema: string;
security?: {
allowAnonymous?: boolean;
allowed?: { [x: string]: ((...) | (...))[] };
disallowed?: { [x: string]: Lowercase<(...)>[] };
};
sign?: boolean;
storeQueries?: boolean;
synchronous?: boolean;
tasks: (
| {
endPoint?: "all"
| "clear"
| "commit"
| "delete"
| "get"
| "insert";
input?: string | boolean | string[];
mod: string;
required?: boolean;
}
| {
endPoint?: "divine";
input?: string
| boolean
| string[];
mod: string;
required?: boolean;
}
| {
endPoint?: "observe";
input?: string
| boolean
| string[];
mod: string;
required?: boolean;
}
| {
endPoint?: string;
input?: string
| boolean
| string[];
mod: string;
required?: boolean;
}
)[];
throwErrors?: boolean;
timestamp?: boolean;
},
>;
ephemeralQueryAccountEnabled?: boolean;
moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
},
SentinelModuleEventData<
Module<
BaseParamsFields & {
account?: AccountInstance
| "random";
additionalSigners?: AccountInstance[];
addToResolvers?: boolean;
allowNameResolution?: boolean;
config: DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: (...)[]; queries?: (...)[] };
archivist?: string;
consoleLogger?: any;
labels?: { [x: string]: undefined | string };
name?: string;
paging?: { [x: string]: { size?: (...) | (...) } };
retry?: { backoff?: number; interval?: number; retries?: number };
schema: string;
security?: {
allowAnonymous?: boolean;
allowed?: { [x: ...]: ... };
disallowed?: { [x: ...]: ... };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>;
ephemeralQueryAccountEnabled?: boolean;
moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
},
>,
>,
> Returns obj is SentinelModule<
BaseParamsFields & {
account?: AccountInstance
| "random";
additionalSigners?: AccountInstance[];
addToResolvers?: boolean;
allowNameResolution?: boolean;
config: DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: string[]; queries?: string[] };
archivist?: string;
automations?: (
| {
end?: number;
frequency?: number;
frequencyUnits?: "second"
| "minute"
| "hour"
| "day";
remaining?: number;
schema: "network.xyo.automation";
start: number;
type: "interval";
}
| {
end?: number;
frequency?: number;
frequencyUnits?: "second"
| "minute"
| "hour"
| "day";
remaining?: number;
schema: "network.xyo.automation.interval";
start: number;
type: "interval";
}
| {
end?: number;
frequency?: number;
frequencyUnits?: "second"
| "minute"
| "hour"
| "day";
remaining?: number;
schema: "network.xyo.automation.event";
start: number;
type: "interval";
}
| { schema: "network.xyo.automation"; type: "event" }
| { schema: "network.xyo.automation.interval"; type: "event" }
| { schema: "network.xyo.automation.event"; type: "event" }
)[];
consoleLogger?: any;
labels?: { [x: string]: undefined | string };
name?: string;
paging?: { [x: string]: { size?: number } };
retry?: { backoff?: number; interval?: number; retries?: number };
schema: string;
security?: {
allowAnonymous?: boolean;
allowed?: { [x: string]: ((...) | (...))[] };
disallowed?: { [x: string]: Lowercase<(...)>[] };
};
sign?: boolean;
storeQueries?: boolean;
synchronous?: boolean;
tasks: (
| {
endPoint?: "all"
| "clear"
| "commit"
| "delete"
| "get"
| "insert";
input?: string | boolean | string[];
mod: string;
required?: boolean;
}
| {
endPoint?: "divine";
input?: string
| boolean
| string[];
mod: string;
required?: boolean;
}
| {
endPoint?: "observe";
input?: string
| boolean
| string[];
mod: string;
required?: boolean;
}
| {
endPoint?: string;
input?: string
| boolean
| string[];
mod: string;
required?: boolean;
}
)[];
throwErrors?: boolean;
timestamp?: boolean;
},
>;
ephemeralQueryAccountEnabled?: boolean;
moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
},
SentinelModuleEventData<
Module<
BaseParamsFields & {
account?: AccountInstance
| "random";
additionalSigners?: AccountInstance[];
addToResolvers?: boolean;
allowNameResolution?: boolean;
config: DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: (...)[]; queries?: (...)[] };
archivist?: string;
consoleLogger?: any;
labels?: { [x: string]: undefined | string };
name?: string;
paging?: { [x: string]: { size?: (...) | (...) } };
retry?: { backoff?: number; interval?: number; retries?: number };
schema: string;
security?: {
allowAnonymous?: boolean;
allowed?: { [x: ...]: ... };
disallowed?: { [x: ...]: ... };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>;
ephemeralQueryAccountEnabled?: boolean;
moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
},
>,
>,
>