alpha
Login
or
Join now
nandi.uk
/
semble
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
add working notes for today
author
Wesley Finck
date
7 months ago
(Dec 15, 2025, 2:35 PM +0800)
commit
ef91d65c
ef91d65ccb983985a12d5a2446847c8f54c8210e
parent
a5df8601
a5df86015f8fb5cadcde820d2184cf19dbf764ba
+132
1 changed file
Expand all
Collapse all
Unified
Split
.agent
logs
20251215_semble_pds_client_search.md
+132
.agent/logs/20251215_semble_pds_client_search.md
View file
Reviewed
···
1
1
+
```ts
2
2
+
getRecord(
3
3
+
params?: ComAtprotoRepoGetRecord.QueryParams,
4
4
+
opts?: ComAtprotoRepoGetRecord.CallOptions,
5
5
+
): Promise<ComAtprotoRepoGetRecord.Response> {
6
6
+
return this._client
7
7
+
.call('com.atproto.repo.getRecord', params, undefined, opts)
8
8
+
.catch((e) => {
9
9
+
throw ComAtprotoRepoGetRecord.toKnownErr(e)
10
10
+
})
11
11
+
}
12
12
+
13
13
+
export type QueryParams = {
14
14
+
/** The handle or DID of the repo. */
15
15
+
repo: string
16
16
+
/** The NSID of the record collection. */
17
17
+
collection: string
18
18
+
/** The Record Key. */
19
19
+
rkey: string
20
20
+
/** The CID of the version of the record. If not specified, then return the most recent version. */
21
21
+
cid?: string
22
22
+
}
23
23
+
24
24
+
export interface Response {
25
25
+
success: boolean
26
26
+
headers: HeadersMap
27
27
+
data: OutputSchema
28
28
+
}
29
29
+
30
30
+
export interface OutputSchema {
31
31
+
uri: string
32
32
+
cid?: string
33
33
+
value: { [_ in string]: unknown }
34
34
+
}
35
35
+
```
36
36
+
37
37
+
```ts
38
38
+
listRecords(
39
39
+
params?: ComAtprotoRepoListRecords.QueryParams,
40
40
+
opts?: ComAtprotoRepoListRecords.CallOptions,
41
41
+
): Promise<ComAtprotoRepoListRecords.Response> {
42
42
+
return this._client.call(
43
43
+
'com.atproto.repo.listRecords',
44
44
+
params,
45
45
+
undefined,
46
46
+
opts,
47
47
+
)
48
48
+
}
49
49
+
50
50
+
export type QueryParams = {
51
51
+
/** The handle or DID of the repo. */
52
52
+
repo: string
53
53
+
/** The NSID of the record type. */
54
54
+
collection: string
55
55
+
/** The number of records to return. */
56
56
+
limit?: number
57
57
+
cursor?: string
58
58
+
/** Flag to reverse the order of the returned records. */
59
59
+
reverse?: boolean
60
60
+
}
61
61
+
62
62
+
export interface Response {
63
63
+
success: boolean
64
64
+
headers: HeadersMap
65
65
+
data: OutputSchema
66
66
+
}
67
67
+
68
68
+
export interface OutputSchema {
69
69
+
cursor?: string
70
70
+
records: Record[]
71
71
+
}
72
72
+
73
73
+
export interface Record {
74
74
+
$type?: 'com.atproto.repo.listRecords#record'
75
75
+
uri: string
76
76
+
cid: string
77
77
+
value: { [_ in string]: unknown }
78
78
+
}
79
79
+
```
80
80
+
81
81
+
```ts
82
82
+
applyWrites(
83
83
+
data?: ComAtprotoRepoApplyWrites.InputSchema,
84
84
+
opts?: ComAtprotoRepoApplyWrites.CallOptions,
85
85
+
): Promise<ComAtprotoRepoApplyWrites.Response> {
86
86
+
return this._client
87
87
+
.call('com.atproto.repo.applyWrites', opts?.qp, data, opts)
88
88
+
.catch((e) => {
89
89
+
throw ComAtprotoRepoApplyWrites.toKnownErr(e)
90
90
+
})
91
91
+
}
92
92
+
93
93
+
export interface InputSchema {
94
94
+
/** The handle or DID of the repo (aka, current account). */
95
95
+
repo: string
96
96
+
/** Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons. */
97
97
+
validate?: boolean
98
98
+
writes: ($Typed<Create> | $Typed<Update> | $Typed<Delete>)[]
99
99
+
/** If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. */
100
100
+
swapCommit?: string
101
101
+
}
102
102
+
103
103
+
export interface Create {
104
104
+
$type?: 'com.atproto.repo.applyWrites#create'
105
105
+
collection: string
106
106
+
/** NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. */
107
107
+
rkey?: string
108
108
+
value: { [_ in string]: unknown }
109
109
+
}
110
110
+
111
111
+
export interface Response {
112
112
+
success: boolean
113
113
+
headers: HeadersMap
114
114
+
data: OutputSchema
115
115
+
}
116
116
+
117
117
+
export interface OutputSchema {
118
118
+
commit?: ComAtprotoRepoDefs.CommitMeta
119
119
+
results?: (
120
120
+
| $Typed<CreateResult>
121
121
+
| $Typed<UpdateResult>
122
122
+
| $Typed<DeleteResult>
123
123
+
)[]
124
124
+
}
125
125
+
126
126
+
export interface CreateResult {
127
127
+
$type?: 'com.atproto.repo.applyWrites#createResult'
128
128
+
uri: string
129
129
+
cid: string
130
130
+
validationStatus?: 'valid' | 'unknown' | (string & {})
131
131
+
}
132
132
+
```