Skip to content

Conversation

@Sotatek-DukeVu
Copy link
Collaborator

Remove references to any in src/keri/core directory
Issue: WebOfTrust#340

@Sotatek-DukeVu Sotatek-DukeVu force-pushed the chore/remove-reference-any-type branch from 647c35e to 03cad8d Compare August 8, 2025 10:45
@Sotatek-DukeVu Sotatek-DukeVu requested a review from iFergal August 8, 2025 10:45
@Sotatek-DukeVu Sotatek-DukeVu self-assigned this Aug 8, 2025
@Sotatek-DukeVu Sotatek-DukeVu force-pushed the chore/remove-reference-any-type branch from 67cc8d0 to 50384d4 Compare August 25, 2025 09:23
@Sotatek-DukeVu Sotatek-DukeVu changed the base branch from chore/openapi_type_hints to feat/agenting_type_hints August 25, 2025 09:24
@Sotatek-Patrick-Vu Sotatek-Patrick-Vu force-pushed the feat/agenting_type_hints branch 2 times, most recently from 7ffb639 to 65186c9 Compare October 15, 2025 09:55
@Sotatek-DukeVu Sotatek-DukeVu force-pushed the chore/remove-reference-any-type branch from 7656c87 to e3b0194 Compare October 31, 2025 03:18
@iFergal iFergal changed the base branch from feat/agenting_type_hints to main October 31, 2025 08:32
@Sotatek-DukeVu Sotatek-DukeVu force-pushed the chore/remove-reference-any-type branch from eac99c5 to 8849d57 Compare October 31, 2025 09:42
@Sotatek-DukeVu Sotatek-DukeVu force-pushed the chore/remove-reference-any-type branch from d1eac26 to 6765c05 Compare November 3, 2025 04:23
) &
Record<string, unknown> &
BaseSAD;
export type InteractEventData = components['schemas']['Seal'];
Copy link

@iFergal iFergal Nov 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned during the previous review rounds - this is actually a SealSourceTriple based on where it's used.

Interaction events can anchor any type of data, and a SealSourceTriple is a common one.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sotatek-DukeVu Please use this:
export type SealSourceTriple = components['schemas']['Seal']; for anywhere where we use i,s,d triples, such as for approving delegations.

The generic case for interaction events can use Record<string, unknown> inline.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might need to merge main into this branch as it looks like we have changes from one of Patrick's PRs.

if (code == undefined) {
if (sad[label] != '') {
super({ qb64: sad[label], code: code });
super({ qb64: String(sad[label]), code: code });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not changed

import libsodium from 'libsodium-wrappers-sumo';
import { Tier } from '../../types/keria-api-schema.ts';

export { Tier } from '../../types/keria-api-schema.ts';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You reverted this, but we are still importing from keria-api-schema in the integration tests. Can you update the exports to make sure it's not exported to the external facing API of the library?

route: string = '',
data: any | undefined,
route: '/end/role/add',
data: EndRoleAddAttributes | undefined,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still have as EndRoleAddAttributes in here.


export type DelegateInceptEventSAD =
| components['schemas']['DIP_V_1']
| components['schemas']['DIP_V_1'];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v_2

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

pre: this.pre,
keys: this.keys,
dig: this.serder.sad['d'],
dig: this.serder.sad['d'] as string,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, not needed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

pre: this.serder.pre,
dig: this.serder.sad['d'],
pre: this.serder.pre as string,
dig: this.serder.sad['d'] as string,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you leave a TODO that these casts can be removed once SerderKERI and SerderACDC introduced?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

private _kind: Serials;
private _raw: string = '';
private _sad: Dict<any> = {};
private _sad: T;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This snippet is from saider.ts, not serder.ts, so it shouldn't reference SerderSAD.

this.client.pidx
);
break;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me think about this one. I'm not a fan of how this function is handled in general. We can tackle it at the end.

s?: string | number;
}
d?: string;
i?: string;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, does i and d need to be optional? If so, maybe we should think about SerderKERI and SerderACDC for now. (But don't until I confirm tomorrow)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants