@atproto/api 0.20.9 → 0.20.10

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.
@@ -6,6 +6,7 @@ import type * as ChatBskyActorDefs from '../actor/defs.js';
6
6
  import type * as ChatBskyConvoDefs from '../convo/defs.js';
7
7
  export type LinkEnabledStatus = 'enabled' | 'disabled' | (string & {});
8
8
  export type JoinRule = 'anyone' | 'followedByOwner' | (string & {});
9
+ /** Join link view to be used within a group view, so the convo is surrounding, not specified inside this view. */
9
10
  export interface JoinLinkView {
10
11
  $type?: 'chat.bsky.group.defs#joinLinkView';
11
12
  code: string;
@@ -16,8 +17,10 @@ export interface JoinLinkView {
16
17
  }
17
18
  export declare function isJoinLinkView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.group.defs", "joinLinkView">;
18
19
  export declare function validateJoinLinkView<V>(v: V): ValidationResult<JoinLinkView & V>;
20
+ /** Preview that can be shown in feeds, including to unauthenticated viewers. */
19
21
  export interface JoinLinkPreviewView {
20
22
  $type?: 'chat.bsky.group.defs#joinLinkPreviewView';
23
+ convoId: string;
21
24
  code: string;
22
25
  name: string;
23
26
  owner: ChatBskyActorDefs.ProfileViewBasic;
@@ -37,6 +40,7 @@ export interface JoinLinkViewerState {
37
40
  }
38
41
  export declare function isJoinLinkViewerState<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.group.defs", "joinLinkViewerState">;
39
42
  export declare function validateJoinLinkViewerState<V>(v: V): ValidationResult<JoinLinkViewerState & V>;
43
+ /** A join request from the perspective of the group owner. */
40
44
  export interface JoinRequestView {
41
45
  $type?: 'chat.bsky.group.defs#joinRequestView';
42
46
  convoId: string;
@@ -53,7 +57,7 @@ export interface JoinRequestConvoView {
53
57
  owner: ChatBskyActorDefs.ProfileViewBasic;
54
58
  memberCount: number;
55
59
  memberLimit: number;
56
- requestedAt: string;
60
+ viewer: JoinLinkViewerState;
57
61
  }
58
62
  export declare function isJoinRequestConvoView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.group.defs", "joinRequestConvoView">;
59
63
  export declare function validateJoinRequestConvoView<V>(v: V): ValidationResult<JoinRequestConvoView & V>;
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAC1D,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAM1D,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AACtE,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEnE,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,mCAAmC,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,CAAA;IAChC,eAAe,EAAE,OAAO,CAAA;IACxB,QAAQ,EAAE,QAAQ,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,0CAA0C,CAAA;IAClD,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAA;IACzC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,OAAO,CAAA;IACxB,QAA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CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AAaD,MAAM,wBAAwB,GAAG,sBAAsB,CAAA;AAEvD,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAClD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAI,CAAI;IAClD,OAAO,QAAQ,CAA2B,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAC5E,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ChatBskyActorDefs from '../actor/defs.js'\nimport type * as ChatBskyConvoDefs from '../convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.defs'\n\nexport type LinkEnabledStatus = 'enabled' | 'disabled' | (string & {})\nexport type JoinRule = 'anyone' | 'followedByOwner' | (string & {})\n\nexport interface JoinLinkView {\n $type?: 'chat.bsky.group.defs#joinLinkView'\n code: string\n enabledStatus: LinkEnabledStatus\n requireApproval: boolean\n joinRule: JoinRule\n createdAt: string\n}\n\nconst hashJoinLinkView = 'joinLinkView'\n\nexport function isJoinLinkView<V>(v: V) {\n return is$typed(v, id, hashJoinLinkView)\n}\n\nexport function validateJoinLinkView<V>(v: V) {\n return validate<JoinLinkView & V>(v, id, hashJoinLinkView)\n}\n\nexport interface JoinLinkPreviewView {\n $type?: 'chat.bsky.group.defs#joinLinkPreviewView'\n code: string\n name: string\n owner: ChatBskyActorDefs.ProfileViewBasic\n memberCount: number\n memberLimit: number\n requireApproval: boolean\n joinRule: JoinRule\n enabledStatus: LinkEnabledStatus\n convo?: ChatBskyConvoDefs.ConvoView\n viewer?: JoinLinkViewerState\n}\n\nconst hashJoinLinkPreviewView = 'joinLinkPreviewView'\n\nexport function isJoinLinkPreviewView<V>(v: V) {\n return is$typed(v, id, hashJoinLinkPreviewView)\n}\n\nexport function validateJoinLinkPreviewView<V>(v: V) {\n return validate<JoinLinkPreviewView & V>(v, id, hashJoinLinkPreviewView)\n}\n\nexport interface JoinLinkViewerState {\n $type?: 'chat.bsky.group.defs#joinLinkViewerState'\n requestedAt?: string\n}\n\nconst hashJoinLinkViewerState = 'joinLinkViewerState'\n\nexport function isJoinLinkViewerState<V>(v: V) {\n return is$typed(v, id, hashJoinLinkViewerState)\n}\n\nexport function validateJoinLinkViewerState<V>(v: V) {\n return validate<JoinLinkViewerState & V>(v, id, hashJoinLinkViewerState)\n}\n\nexport interface JoinRequestView {\n $type?: 'chat.bsky.group.defs#joinRequestView'\n convoId: string\n requestedBy: ChatBskyActorDefs.ProfileViewBasic\n requestedAt: string\n}\n\nconst hashJoinRequestView = 'joinRequestView'\n\nexport function isJoinRequestView<V>(v: V) {\n return is$typed(v, id, hashJoinRequestView)\n}\n\nexport function validateJoinRequestView<V>(v: V) {\n return validate<JoinRequestView & V>(v, id, hashJoinRequestView)\n}\n\n/** A join request from the perspective of the requester, including enough group context to render the request in a list (e.g. group name, owner, member count). */\nexport interface JoinRequestConvoView {\n $type?: 'chat.bsky.group.defs#joinRequestConvoView'\n convoId: string\n name: string\n owner: ChatBskyActorDefs.ProfileViewBasic\n memberCount: number\n memberLimit: number\n requestedAt: string\n}\n\nconst hashJoinRequestConvoView = 'joinRequestConvoView'\n\nexport function isJoinRequestConvoView<V>(v: V) {\n return is$typed(v, id, hashJoinRequestConvoView)\n}\n\nexport function validateJoinRequestConvoView<V>(v: V) {\n return validate<JoinRequestConvoView & V>(v, id, hash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;AAE7C,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AAaD,MAAM,wBAAwB,GAAG,sBAAsB,CAAA;AAEvD,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAClD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAI,CAAI;IAClD,OAAO,QAAQ,CAA2B,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAC5E,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ChatBskyActorDefs from '../actor/defs.js'\nimport type * as ChatBskyConvoDefs from '../convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.defs'\n\nexport type LinkEnabledStatus = 'enabled' | 'disabled' | (string & {})\nexport type JoinRule = 'anyone' | 'followedByOwner' | (string & {})\n\n/** Join link view to be used within a group view, so the convo is surrounding, not specified inside this view. */\nexport interface JoinLinkView {\n $type?: 'chat.bsky.group.defs#joinLinkView'\n code: string\n enabledStatus: LinkEnabledStatus\n requireApproval: boolean\n joinRule: JoinRule\n createdAt: string\n}\n\nconst hashJoinLinkView = 'joinLinkView'\n\nexport function isJoinLinkView<V>(v: V) {\n return is$typed(v, id, hashJoinLinkView)\n}\n\nexport function validateJoinLinkView<V>(v: V) {\n return validate<JoinLinkView & V>(v, id, hashJoinLinkView)\n}\n\n/** Preview that can be shown in feeds, including to unauthenticated viewers. */\nexport interface JoinLinkPreviewView {\n $type?: 'chat.bsky.group.defs#joinLinkPreviewView'\n convoId: string\n code: string\n name: string\n owner: ChatBskyActorDefs.ProfileViewBasic\n memberCount: number\n memberLimit: number\n requireApproval: boolean\n joinRule: JoinRule\n enabledStatus: LinkEnabledStatus\n convo?: ChatBskyConvoDefs.ConvoView\n viewer?: JoinLinkViewerState\n}\n\nconst hashJoinLinkPreviewView = 'joinLinkPreviewView'\n\nexport function isJoinLinkPreviewView<V>(v: V) {\n return is$typed(v, id, hashJoinLinkPreviewView)\n}\n\nexport function validateJoinLinkPreviewView<V>(v: V) {\n return validate<JoinLinkPreviewView & V>(v, id, hashJoinLinkPreviewView)\n}\n\nexport interface JoinLinkViewerState {\n $type?: 'chat.bsky.group.defs#joinLinkViewerState'\n requestedAt?: string\n}\n\nconst hashJoinLinkViewerState = 'joinLinkViewerState'\n\nexport function isJoinLinkViewerState<V>(v: V) {\n return is$typed(v, id, hashJoinLinkViewerState)\n}\n\nexport function validateJoinLinkViewerState<V>(v: V) {\n return validate<JoinLinkViewerState & V>(v, id, hashJoinLinkViewerState)\n}\n\n/** A join request from the perspective of the group owner. */\nexport interface JoinRequestView {\n $type?: 'chat.bsky.group.defs#joinRequestView'\n convoId: string\n requestedBy: ChatBskyActorDefs.ProfileViewBasic\n requestedAt: string\n}\n\nconst hashJoinRequestView = 'joinRequestView'\n\nexport function isJoinRequestView<V>(v: V) {\n return is$typed(v, id, hashJoinRequestView)\n}\n\nexport function validateJoinRequestView<V>(v: V) {\n return validate<JoinRequestView & V>(v, id, hashJoinRequestView)\n}\n\n/** A join request from the perspective of the requester, including enough group context to render the request in a list (e.g. group name, owner, member count). */\nexport interface JoinRequestConvoView {\n $type?: 'chat.bsky.group.defs#joinRequestConvoView'\n convoId: string\n name: string\n owner: ChatBskyActorDefs.ProfileViewBasic\n memberCount: number\n memberLimit: number\n viewer: JoinLinkViewerState\n}\n\nconst hashJoinRequestConvoView = 'joinRequestConvoView'\n\nexport function isJoinRequestConvoView<V>(v: V) {\n return is$typed(v, id, hashJoinRequestConvoView)\n}\n\nexport function validateJoinRequestConvoView<V>(v: V) {\n return validate<JoinRequestConvoView & V>(v, id, hashJoinRequestConvoView)\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.20.9",
3
+ "version": "0.20.10",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },
@@ -24,8 +24,8 @@
24
24
  "zod": "^3.23.8",
25
25
  "@atproto/common-web": "^0.5.0",
26
26
  "@atproto/lexicon": "^0.7.1",
27
- "@atproto/syntax": "^0.6.1",
28
- "@atproto/xrpc": "^0.8.0"
27
+ "@atproto/xrpc": "^0.8.0",
28
+ "@atproto/syntax": "^0.6.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@jest/globals": "^28.1.3",
@@ -3,7 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "rootDir": "./src",
5
5
  "outDir": "./dist",
6
- "noUnusedLocals": false
6
+ "noUnusedLocals": false,
7
7
  },
8
- "include": ["./src"]
8
+ "include": ["./src"],
9
9
  }
package/tsconfig.json CHANGED
@@ -2,6 +2,6 @@
2
2
  "include": [],
3
3
  "references": [
4
4
  { "path": "./tsconfig.build.json" },
5
- { "path": "./tsconfig.tests.json" }
6
- ]
5
+ { "path": "./tsconfig.tests.json" },
6
+ ],
7
7
  }
@@ -4,7 +4,7 @@
4
4
  "rootDir": ".",
5
5
  "types": ["jest", "./jest.d.ts"],
6
6
  "noEmit": true,
7
- "noUnusedLocals": false
7
+ "noUnusedLocals": false,
8
8
  },
9
- "include": ["./tests"]
9
+ "include": ["./tests"],
10
10
  }