Skip to content

Commit a9d1ad5

Browse files
continue fixing Multisig types and update KERIA API schema
1 parent 2f8f5cc commit a9d1ad5

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

src/keri/app/aiding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class Identifier {
183183

184184
if (!transferable) {
185185
ncount = 0;
186-
nsith = '0';
186+
nsith = 0;
187187
dcode = MtrDex.Ed25519N;
188188
}
189189

src/keri/core/eventing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export function incept({
304304
const sner = new CesrNumber({}, 0);
305305

306306
if (isith == undefined) {
307-
isith = Math.max(1, Math.ceil(keys.length / 2)).toString();
307+
isith = Math.max(1, Math.ceil(keys.length / 2));
308308
}
309309

310310
const tholder = new Tholder({ sith: isith });
@@ -320,7 +320,7 @@ export function incept({
320320
}
321321

322322
if (nsith == undefined) {
323-
nsith = Math.max(0, Math.ceil(ndigs.length / 2)).toString();
323+
nsith = Math.max(0, Math.ceil(ndigs.length / 2));
324324
}
325325

326326
const ntholder = new Tholder({ sith: nsith });

src/types/keria-api-schema.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,11 +694,20 @@ export interface components {
694694
};
695695
MultisigRevokeEmbeds: {
696696
rev: components['schemas']['REV_V_1'];
697-
anc: unknown;
697+
anc:
698+
| components['schemas']['IXN_V_1']
699+
| components['schemas']['IXN_V_2']
700+
| components['schemas']['ICP_V_1']
701+
| components['schemas']['ICP_V_2']
702+
| components['schemas']['ROT_V_1']
703+
| components['schemas']['ROT_V_2']
704+
| components['schemas']['DIP_V_1']
705+
| components['schemas']['DIP_V_2']
706+
| components['schemas']['DRT_V_1']
707+
| components['schemas']['DRT_V_2'];
698708
};
699709
MultisigRpyEmbeds: {
700710
rpy: components['schemas']['Rpy'];
701-
anc: unknown;
702711
};
703712
MultisigExnEmbeds: {
704713
exn: components['schemas']['Exn'];
@@ -726,7 +735,6 @@ export interface components {
726735
memberName: string | null;
727736
/** @default null */
728737
sender: string | null;
729-
e?: components['schemas']['ExnEmbeds'];
730738
};
731739
};
732740
responses: never;

0 commit comments

Comments
 (0)