Function asApiUriTemplateCallWitnessConfig
- asApiUriTemplateCallWitnessConfig<TType>(value, config?): undefined | TType
Type Parameters
TType extends SchemaFields & object & {
archivist?: string;
labels?: Labels;
name?: string;
paging?: Record<string, {
size?: number;
}>;
retry?: RetryConfig;
schema: "network.xyo.api.call.witness.config";
security?: {
allowAnonymous?: boolean;
allowed?: Record<string, (string | CosigningAddressSet)[]>;
disallowed?: Record<string, string[]>;
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
} & ArchivingModuleConfig & {
schema: "network.xyo.api.call.witness.config";
} & {
archivist?: string;
labels?: Labels;
name?: string;
paging?: Record<string, {
size?: number;
}>;
retry?: RetryConfig;
schema: "network.xyo.api.call.witness.config";
security?: {
allowAnonymous?: boolean;
allowed?: Record<string, (string | CosigningAddressSet)[]>;
disallowed?: Record<string, string[]>;
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
} & {
schema: "network.xyo.api.call.witness.config";
} & {
accept?: "application/json";
queries?: Queries;
schema: "network.xyo.api.call.witness.config";
timeout?: number;
verb?: Verb;
} & {
params?: Record<string, unknown>;
uriTemplate: undefined | string;
}
Parameters
value: unknown
Optional
config: TypeCheckConfig
Returns undefined | TType
- asApiUriTemplateCallWitnessConfig<TType_1>(value, assert, config?): TType_1
Type Parameters
TType_1 extends SchemaFields & object & {
archivist?: string;
labels?: Labels;
name?: string;
paging?: Record<string, {
size?: number;
}>;
retry?: RetryConfig;
schema: "network.xyo.api.call.witness.config";
security?: {
allowAnonymous?: boolean;
allowed?: Record<string, (string | CosigningAddressSet)[]>;
disallowed?: Record<string, string[]>;
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
} & ArchivingModuleConfig & {
schema: "network.xyo.api.call.witness.config";
} & {
archivist?: string;
labels?: Labels;
name?: string;
paging?: Record<string, {
size?: number;
}>;
retry?: RetryConfig;
schema: "network.xyo.api.call.witness.config";
security?: {
allowAnonymous?: boolean;
allowed?: Record<string, (string | CosigningAddressSet)[]>;
disallowed?: Record<string, string[]>;
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
} & {
schema: "network.xyo.api.call.witness.config";
} & {
accept?: "application/json";
queries?: Queries;
schema: "network.xyo.api.call.witness.config";
timeout?: number;
verb?: Verb;
} & {
params?: Record<string, unknown>;
uriTemplate: undefined | string;
}
Parameters
value: unknown
assert: string | (() => string)
Optional
config: TypeCheckConfig