Function createPayloadSetWitnessPlugin
- createPayloadSetWitnessPlugin<
TModule extends
WitnessModule = WitnessModule<
BaseParamsFields & {
account?: any;
additionalSigners?: AccountInstance[];
addToResolvers?: boolean;
allowNameResolution?: boolean;
config: DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: string[]; queries?: string[] };
archivist?: any;
consoleLogger?: any;
labels?: { [x: string]: undefined | string };
name?: any;
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;
timestamp?: boolean;
},
>;
ephemeralQueryAccountEnabled?: boolean;
moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
},
WitnessModuleEventData<
ModuleInstance<
BaseParamsFields & {
account?: any;
additionalSigners?: AccountInstance[];
addToResolvers?: boolean;
allowNameResolution?: boolean;
config: DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: (...)[]; queries?: (...)[] };
archivist?: any;
consoleLogger?: any;
labels?: { [x: string]: undefined | string };
name?: any;
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[];
},
ModuleEventData<object>,
>,
DeepRestrictToStringKeys<{ schema: string }>,
DeepRestrictToStringKeys<{ schema: string }>,
>,
>,
>(
set: DeepRestrictToStringKeys<
{
optional?: { [key: string]: number };
required?: { [key: string]: number };
schema: "network.xyo.payload.set";
},
>,
plugin: Omit<PayloadSetWitnessPlugin<TModule>, "set">,
): PayloadSetWitnessPlugin<TModule> Type Parameters
- TModule extends WitnessModule = WitnessModule<
BaseParamsFields & {
account?: any;
additionalSigners?: AccountInstance[];
addToResolvers?: boolean;
allowNameResolution?: boolean;
config: DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: string[]; queries?: string[] };
archivist?: any;
consoleLogger?: any;
labels?: { [x: string]: undefined | string };
name?: any;
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;
timestamp?: boolean;
},
>;
ephemeralQueryAccountEnabled?: boolean;
moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
},
WitnessModuleEventData<
ModuleInstance<
BaseParamsFields & {
account?: any;
additionalSigners?: AccountInstance[];
addToResolvers?: boolean;
allowNameResolution?: boolean;
config: DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: (...)[]; queries?: (...)[] };
archivist?: any;
consoleLogger?: any;
labels?: { [x: string]: undefined | string };
name?: any;
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[];
},
ModuleEventData<object>,
>,
DeepRestrictToStringKeys<{ schema: string }>,
DeepRestrictToStringKeys<{ schema: string }>,
>,
>