tangled
alpha
login
or
join now
mary.my.id
/
boat
22
fork
atom
handy online tools for AT Protocol
boat.kelinci.net
atproto
bluesky
atcute
typescript
solidjs
22
fork
atom
overview
issues
pulls
pipelines
refactor: use the new xrpc interfaces
mary.my.id
9 months ago
c33f791e
ae44591b
verified
This commit was signed with the committer's
known signature
.
mary.my.id
SSH Key Fingerprint:
SHA256:ZlTP/auFSGpGnaoDg4mCTG1g9OZvXp62jWR4c6H4O3c=
+3
-5
2 changed files
expand all
collapse all
unified
split
src
views
bluesky
threadgate-applicator
steps
step4_confirmation.tsx
identity
plc-applicator
page.tsx
+2
-3
src/views/bluesky/threadgate-applicator/steps/step4_confirmation.tsx
···
3
3
import type { ComAtprotoRepoApplyWrites } from '@atcute/atproto';
4
4
import type { AppBskyFeedThreadgate } from '@atcute/bluesky';
5
5
import { Client, ClientResponseError } from '@atcute/client';
6
6
-
import { InferXRPCBodyInput } from '@atcute/lexicons';
6
6
+
import { parseCanonicalResourceUri } from '@atcute/lexicons';
7
7
import { chunked } from '@mary/array-fns';
8
8
-
import { parseCanonicalResourceUri } from '@atcute/lexicons';
9
8
10
9
import { dequal } from '~/lib/utils/dequal';
11
10
import { createMutation } from '~/lib/utils/mutation';
···
35
34
logger.log(`Preparing writes`);
36
35
37
36
const rules = data.rules;
38
38
-
const writes: InferXRPCBodyInput<ComAtprotoRepoApplyWrites.mainSchema['input']>['writes'] = [];
37
37
+
const writes: ComAtprotoRepoApplyWrites.$input['writes'] = [];
39
38
40
39
const now = new Date().toISOString();
41
40
for (const { post, threadgate } of data.threads) {
+1
-2
src/views/identity/plc-applicator/page.tsx
···
5
5
import type { P256PrivateKey, Secp256k1PrivateKey } from '@atcute/crypto';
6
6
import type { CompatibleOperation, IndexedEntry, IndexedEntryWithSigner } from '@atcute/did-plc';
7
7
import type { DidDocument } from '@atcute/identity';
8
8
-
import { InferXRPCBodyInput } from '@atcute/lexicons';
9
8
import type { Did } from '@atcute/lexicons/syntax';
10
9
11
10
import { UpdatePayload } from '~/api/types/plc';
···
33
32
export interface PdsSigningMethod {
34
33
type: 'pds';
35
34
manager: CredentialManager;
36
36
-
recommendedDidDoc: InferXRPCBodyInput<ComAtprotoIdentityGetRecommendedDidCredentials.mainSchema['output']>;
35
35
+
recommendedDidDoc: ComAtprotoIdentityGetRecommendedDidCredentials.$output;
37
36
}
38
37
39
38
export type Keypair = P256PrivateKey | Secp256k1PrivateKey;