Handle PniChangeNumber
This commit is contained in:
parent
412f07d2a2
commit
79b48115e6
32 changed files with 1086 additions and 485 deletions
|
@ -36,7 +36,6 @@ const directoryV3ConfigSchema = z.object({
|
|||
directoryVersion: z.literal(3),
|
||||
directoryV3Url: configRequiredStringSchema,
|
||||
directoryV3MRENCLAVE: configRequiredStringSchema,
|
||||
directoryV3Root: configRequiredStringSchema,
|
||||
});
|
||||
|
||||
export const directoryConfigSchema = z
|
||||
|
@ -50,7 +49,6 @@ export const directoryConfigSchema = z
|
|||
directoryV2Url: configOptionalUnknownSchema,
|
||||
directoryV3Url: configOptionalUnknownSchema,
|
||||
directoryV3MRENCLAVE: configOptionalUnknownSchema,
|
||||
directoryV3Root: configOptionalUnknownSchema,
|
||||
})
|
||||
.and(
|
||||
directoryV1ConfigSchema
|
||||
|
|
4
ts/types/Storage.d.ts
vendored
4
ts/types/Storage.d.ts
vendored
|
@ -35,8 +35,8 @@ export type NotificationSettingType = 'message' | 'name' | 'count' | 'off';
|
|||
export type IdentityKeyMap = Record<
|
||||
string,
|
||||
{
|
||||
privKey: string;
|
||||
pubKey: string;
|
||||
privKey: Uint8Array;
|
||||
pubKey: Uint8Array;
|
||||
}
|
||||
>;
|
||||
|
||||
|
|
|
@ -61,3 +61,7 @@ type InternalAssertProps<
|
|||
export type AssertProps<Result, Value> = InternalAssertProps<Result, Value>;
|
||||
|
||||
export type UnwrapPromise<Value> = Value extends Promise<infer T> ? T : Value;
|
||||
|
||||
export type BytesToStrings<Value> = Value extends Uint8Array
|
||||
? string
|
||||
: { [Key in keyof Value]: BytesToStrings<Value[Key]> };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue