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
version bump + formatting
author
Wesley Finck
date
7 months ago
(Dec 21, 2025, 5:08 PM +0800)
commit
c73c5aca
c73c5aca8b9615643b73dc41592f69fff59af839
parent
496072ea
496072ea1bd0a6cdbfa1d08dcc472fd544f4f585
+35
-8
5 changed files
Expand all
Collapse all
Unified
Split
src
packages
semble-pds-client
package.json
src
cards
CardManager.ts
collection-link
CollectionLinkManager.ts
collections
CollectionBatchManager.ts
CollectionManager.ts
+1
-1
src/packages/semble-pds-client/package.json
View file
Reviewed
···
1
1
{
2
2
"name": "@cosmik.network/semble-pds-client",
3
3
-
"version": "0.0.5",
3
3
+
"version": "0.0.6",
4
4
"description": "A lightweight PDS client and AtpAgent wrapper for creating and reading Semble records (Cards, Collections, CollectionLinks) directly to your PDS",
5
5
"main": "dist/index.js",
6
6
"types": "dist/index.d.ts",
+12
-2
src/packages/semble-pds-client/src/cards/CardManager.ts
View file
Reviewed
···
1
1
import { AtpAgent } from '@atproto/api';
2
2
-
import { StrongRef, CreateCardOptions, CreateCardResult, CardRecord, ListQueryParams, GetCardsResult } from '../types';
2
2
+
import {
3
3
+
StrongRef,
4
4
+
CreateCardOptions,
5
5
+
CreateCardResult,
6
6
+
CardRecord,
7
7
+
ListQueryParams,
8
8
+
GetCardsResult,
9
9
+
} from '../types';
3
10
import { MetadataFetcher } from '../metadata/MetadataFetcher';
4
11
5
12
export class CardManager {
···
209
216
};
210
217
}
211
218
212
212
-
async getForUser(did: string, params?: ListQueryParams): Promise<GetCardsResult> {
219
219
+
async getForUser(
220
220
+
did: string,
221
221
+
params?: ListQueryParams,
222
222
+
): Promise<GetCardsResult> {
213
223
const response = await this.agent.com.atproto.repo.listRecords({
214
224
repo: did,
215
225
collection: this.cardCollection,
+8
-2
src/packages/semble-pds-client/src/collection-link/CollectionLinkManager.ts
View file
Reviewed
···
1
1
import { AtpAgent } from '@atproto/api';
2
2
-
import { StrongRef, AddCardsToCollectionOptions, BatchCreateResult } from '../types';
2
2
+
import {
3
3
+
StrongRef,
4
4
+
AddCardsToCollectionOptions,
5
5
+
BatchCreateResult,
6
6
+
} from '../types';
3
7
4
8
export class CollectionLinkManager {
5
9
constructor(
···
67
71
});
68
72
}
69
73
70
70
-
async addCardsToCollection(options: AddCardsToCollectionOptions): Promise<BatchCreateResult> {
74
74
+
async addCardsToCollection(
75
75
+
options: AddCardsToCollectionOptions,
76
76
+
): Promise<BatchCreateResult> {
71
77
if (!this.agent.session) {
72
78
throw new Error('Not authenticated. Call login() first.');
73
79
}
+3
-1
src/packages/semble-pds-client/src/collections/CollectionBatchManager.ts
View file
Reviewed
···
7
7
private collectionCollection: string,
8
8
) {}
9
9
10
10
-
async createCollections(options: CreateCollectionsOptions): Promise<BatchCreateResult> {
10
10
+
async createCollections(
11
11
+
options: CreateCollectionsOptions,
12
12
+
): Promise<BatchCreateResult> {
11
13
if (!this.agent.session) {
12
14
throw new Error('Not authenticated. Call login() first.');
13
15
}
+11
-2
src/packages/semble-pds-client/src/collections/CollectionManager.ts
View file
Reviewed
···
1
1
import { AtpAgent } from '@atproto/api';
2
2
-
import { StrongRef, CreateCollectionOptions, CollectionRecord, ListQueryParams, GetCollectionsResult } from '../types';
2
2
+
import {
3
3
+
StrongRef,
4
4
+
CreateCollectionOptions,
5
5
+
CollectionRecord,
6
6
+
ListQueryParams,
7
7
+
GetCollectionsResult,
8
8
+
} from '../types';
3
9
4
10
export class CollectionManager {
5
11
constructor(
···
120
126
};
121
127
}
122
128
123
123
-
async getForUser(did: string, params?: ListQueryParams): Promise<GetCollectionsResult> {
129
129
+
async getForUser(
130
130
+
did: string,
131
131
+
params?: ListQueryParams,
132
132
+
): Promise<GetCollectionsResult> {
124
133
const response = await this.agent.com.atproto.repo.listRecords({
125
134
repo: did,
126
135
collection: this.collectionCollection,