@alteran/astro 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alteran/astro",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "Astro integration for running a Cloudflare-hosted Bluesky PDS with Alteran.",
5
5
  "module": "index.js",
6
6
  "types": "index.d.ts",
package/src/lib/actor.ts CHANGED
@@ -100,7 +100,21 @@ export function buildProfileViewBasic(actor: PrimaryActor) {
100
100
  pronouns: actor.pronouns,
101
101
  avatar: actor.avatar,
102
102
  createdAt,
103
- associated: { $type: 'app.bsky.actor.defs#profileAssociated' },
103
+ associated: {
104
+ $type: 'app.bsky.actor.defs#profileAssociated',
105
+ lists: 0,
106
+ feedgens: 0,
107
+ starterPacks: 0,
108
+ labeler: false,
109
+ chat: {
110
+ $type: 'app.bsky.actor.defs#profileAssociatedChat',
111
+ allowIncoming: 'all',
112
+ },
113
+ activitySubscription: {
114
+ $type: 'app.bsky.actor.defs#profileAssociatedActivitySubscription',
115
+ allowSubscriptions: 'followers',
116
+ },
117
+ },
104
118
  labels,
105
119
  };
106
120
  }
@@ -129,5 +143,6 @@ export function buildProfileViewDetailed(actor: PrimaryActor, counts: {
129
143
  followersCount: counts.followers,
130
144
  followsCount: counts.follows,
131
145
  postsCount: counts.posts,
146
+ viewer: {},
132
147
  };
133
148
  }
@@ -28,10 +28,10 @@ export async function POST({ locals, request }: APIContext) {
28
28
 
29
29
  const repo = new RepoManager(env);
30
30
  const commit = await repo.createRecord(collection, record, rkey);
31
- await notifySequencer(env, {
32
- did: env.PDS_DID ?? 'did:example:single-user',
33
- commitCid: commit.commitCid,
34
- rev: commit.rev,
31
+ await notifySequencer(env, {
32
+ did: env.PDS_DID ?? 'did:example:single-user',
33
+ commitCid: commit.commitCid,
34
+ rev: commit.rev,
35
35
  data: commit.commitData,
36
36
  sig: commit.sig,
37
37
  ops: commit.ops,
@@ -28,10 +28,10 @@ export async function POST({ locals, request }: APIContext) {
28
28
 
29
29
  const repo = new RepoManager(env);
30
30
  const commit = await repo.deleteRecord(collection, rkey);
31
- await notifySequencer(env, {
32
- did: env.PDS_DID ?? 'did:example:single-user',
33
- commitCid: commit.commitCid,
34
- rev: commit.rev,
31
+ await notifySequencer(env, {
32
+ did: env.PDS_DID ?? 'did:example:single-user',
33
+ commitCid: commit.commitCid,
34
+ rev: commit.rev,
35
35
  data: commit.commitData,
36
36
  sig: commit.sig,
37
37
  ops: commit.ops,
@@ -28,10 +28,10 @@ export async function POST({ locals, request }: APIContext) {
28
28
 
29
29
  const repo = new RepoManager(env);
30
30
  const commit = await repo.putRecord(collection, rkey, record);
31
- await notifySequencer(env, {
32
- did: env.PDS_DID ?? 'did:example:single-user',
33
- commitCid: commit.commitCid,
34
- rev: commit.rev,
31
+ await notifySequencer(env, {
32
+ did: env.PDS_DID ?? 'did:example:single-user',
33
+ commitCid: commit.commitCid,
34
+ rev: commit.rev,
35
35
  data: commit.commitData,
36
36
  sig: commit.sig,
37
37
  ops: commit.ops,