@atproto/api 0.6.5 → 0.6.7
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/LICENSE +21 -0
- package/build.js +0 -8
- package/dist/agent.d.ts +44 -25
- package/dist/client/index.d.ts +3 -0
- package/dist/client/lexicons.d.ts +35 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts +74 -65
- package/dist/client/types/app/bsky/embed/external.d.ts +23 -23
- package/dist/client/types/app/bsky/embed/images.d.ts +20 -20
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +26 -20
- package/dist/client/types/app/bsky/feed/like.d.ts +7 -7
- package/dist/client/types/app/bsky/feed/repost.d.ts +7 -7
- package/dist/client/types/app/bsky/graph/block.d.ts +6 -6
- package/dist/client/types/app/bsky/graph/defs.d.ts +36 -36
- package/dist/client/types/app/bsky/graph/follow.d.ts +6 -6
- package/dist/client/types/app/bsky/graph/listitem.d.ts +7 -7
- package/dist/client/types/app/bsky/{feed/saveFeed.d.ts → notification/registerPush.d.ts} +4 -1
- package/dist/client/types/app/bsky/richtext/facet.d.ts +26 -22
- package/dist/client/types/com/atproto/label/subscribeLabels.d.ts +12 -12
- package/dist/client/types/com/atproto/moderation/defs.d.ts +16 -7
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +6 -6
- package/dist/client/types/com/atproto/server/defs.d.ts +16 -16
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +46 -46
- package/dist/client/util.d.ts +5 -2
- package/dist/index.js +923 -1141
- package/dist/index.js.map +4 -4
- package/dist/rich-text/detection.d.ts +4 -4
- package/dist/rich-text/rich-text.d.ts +31 -31
- package/dist/rich-text/sanitization.d.ts +7 -4
- package/dist/rich-text/unicode.d.ts +9 -9
- package/dist/types.d.ts +34 -22
- package/package.json +22 -23
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +36 -0
- package/src/client/types/app/bsky/notification/registerPush.ts +35 -0
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +1 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
- package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -40
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
- package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +0 -21
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
- package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
- package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +0 -17
- package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
- package/dist/client/types/app/bsky/graph/getListBlocks.d.ts +0 -21
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/listblock.d.ts +0 -8
- package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/subscribeMuteList.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unsubscribeMuteList.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
- package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
- package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
- package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
- package/dist/client/types/com/atproto/account/create.d.ts +0 -41
- package/dist/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
- package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
- package/dist/client/types/com/atproto/account/get.d.ts +0 -12
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
- package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
- package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
- package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
- package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
- package/dist/client/types/com/atproto/handle/update.d.ts +0 -17
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
- package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
- package/dist/client/types/com/atproto/report/create.d.ts +0 -39
- package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
- package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
- package/dist/client/types/com/atproto/session/create.d.ts +0 -29
- package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
- package/dist/client/types/com/atproto/session/get.d.ts +0 -18
- package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/helpers/bsky.d.ts +0 -20
- package/dist/mixins/bsky.d.ts +0 -23
- package/dist/rich-text/sanitize.d.ts +0 -4
- package/dist/session.d.ts +0 -42
- package/update-pkg.js +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppBskyRichtextFacet } from '../client'
|
|
2
|
-
import { UnicodeString } from './unicode'
|
|
3
|
-
export declare type Facet = AppBskyRichtextFacet.Main
|
|
4
|
-
export declare function detectFacets(text: UnicodeString): Facet[] | undefined
|
|
1
|
+
import { AppBskyRichtextFacet } from '../client'
|
|
2
|
+
import { UnicodeString } from './unicode'
|
|
3
|
+
export declare type Facet = AppBskyRichtextFacet.Main
|
|
4
|
+
export declare function detectFacets(text: UnicodeString): Facet[] | undefined
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { AtpAgent } from '../agent'
|
|
2
|
-
import { AppBskyFeedPost, AppBskyRichtextFacet } from '../client'
|
|
3
|
-
import { UnicodeString } from './unicode'
|
|
4
|
-
export declare type Facet = AppBskyRichtextFacet.Main
|
|
5
|
-
export declare type FacetLink = AppBskyRichtextFacet.Link
|
|
6
|
-
export declare type FacetMention = AppBskyRichtextFacet.Mention
|
|
7
|
-
export declare type Entity = AppBskyFeedPost.Entity
|
|
1
|
+
import { AtpAgent } from '../agent'
|
|
2
|
+
import { AppBskyFeedPost, AppBskyRichtextFacet } from '../client'
|
|
3
|
+
import { UnicodeString } from './unicode'
|
|
4
|
+
export declare type Facet = AppBskyRichtextFacet.Main
|
|
5
|
+
export declare type FacetLink = AppBskyRichtextFacet.Link
|
|
6
|
+
export declare type FacetMention = AppBskyRichtextFacet.Mention
|
|
7
|
+
export declare type Entity = AppBskyFeedPost.Entity
|
|
8
8
|
export interface RichTextProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
text: string
|
|
10
|
+
facets?: Facet[]
|
|
11
|
+
entities?: Entity[]
|
|
12
12
|
}
|
|
13
13
|
export interface RichTextOpts {
|
|
14
|
-
|
|
14
|
+
cleanNewlines?: boolean
|
|
15
15
|
}
|
|
16
16
|
export declare class RichTextSegment {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
text: string
|
|
18
|
+
facet?: AppBskyRichtextFacet.Main | undefined
|
|
19
|
+
constructor(text: string, facet?: AppBskyRichtextFacet.Main | undefined)
|
|
20
|
+
get link(): FacetLink | undefined
|
|
21
|
+
isLink(): boolean
|
|
22
|
+
get mention(): FacetMention | undefined
|
|
23
|
+
isMention(): boolean
|
|
24
24
|
}
|
|
25
25
|
export declare class RichText {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
unicodeText: UnicodeString
|
|
27
|
+
facets?: Facet[]
|
|
28
|
+
constructor(props: RichTextProps, opts?: RichTextOpts)
|
|
29
|
+
get text(): string
|
|
30
|
+
get length(): number
|
|
31
|
+
get graphemeLength(): number
|
|
32
|
+
clone(): RichText
|
|
33
|
+
copyInto(target: RichText): void
|
|
34
|
+
segments(): Generator<RichTextSegment, void, void>
|
|
35
|
+
insert(insertIndex: number, insertText: string): this
|
|
36
|
+
delete(removeStartIndex: number, removeEndIndex: number): this
|
|
37
|
+
detectFacets(agent: AtpAgent): Promise<void>
|
|
38
|
+
detectFacetsWithoutResolution(): void
|
|
39
39
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { RichText } from './rich-text'
|
|
2
|
-
export declare function sanitizeRichText(
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { RichText } from './rich-text'
|
|
2
|
+
export declare function sanitizeRichText(
|
|
3
|
+
richText: RichText,
|
|
4
|
+
opts: {
|
|
5
|
+
cleanNewlines?: boolean
|
|
6
|
+
},
|
|
7
|
+
): RichText
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare class UnicodeString {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
utf16: string
|
|
3
|
+
utf8: Uint8Array
|
|
4
|
+
private _graphemeLen?
|
|
5
|
+
constructor(utf16: string)
|
|
6
|
+
get length(): number
|
|
7
|
+
get graphemeLength(): number
|
|
8
|
+
slice(start?: number, end?: number): string
|
|
9
|
+
utf16IndexToUtf8Index(i: number): number
|
|
10
|
+
toString(): string
|
|
11
11
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,34 +1,46 @@
|
|
|
1
|
-
export declare type AtpSessionEvent =
|
|
1
|
+
export declare type AtpSessionEvent =
|
|
2
|
+
| 'create'
|
|
3
|
+
| 'create-failed'
|
|
4
|
+
| 'update'
|
|
5
|
+
| 'expired'
|
|
2
6
|
export interface AtpSessionData {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
refreshJwt: string
|
|
8
|
+
accessJwt: string
|
|
9
|
+
handle: string
|
|
10
|
+
did: string
|
|
11
|
+
email?: string
|
|
8
12
|
}
|
|
9
|
-
export declare type AtpPersistSessionHandler = (
|
|
13
|
+
export declare type AtpPersistSessionHandler = (
|
|
14
|
+
evt: AtpSessionEvent,
|
|
15
|
+
session: AtpSessionData | undefined,
|
|
16
|
+
) => void | Promise<void>
|
|
10
17
|
export interface AtpAgentOpts {
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
service: string | URL
|
|
19
|
+
persistSession?: AtpPersistSessionHandler
|
|
13
20
|
}
|
|
14
21
|
export interface AtpAgentCreateAccountOpts {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
email: string
|
|
23
|
+
password: string
|
|
24
|
+
handle: string
|
|
25
|
+
inviteCode?: string
|
|
19
26
|
}
|
|
20
27
|
export interface AtpAgentLoginOpts {
|
|
21
|
-
|
|
22
|
-
|
|
28
|
+
identifier: string
|
|
29
|
+
password: string
|
|
23
30
|
}
|
|
24
|
-
declare type AtpAgentFetchHeaders = Record<string, string
|
|
31
|
+
declare type AtpAgentFetchHeaders = Record<string, string>
|
|
25
32
|
export interface AtpAgentFetchHandlerResponse {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
status: number
|
|
34
|
+
headers: Record<string, string>
|
|
35
|
+
body: any
|
|
29
36
|
}
|
|
30
|
-
export declare type AtpAgentFetchHandler = (
|
|
37
|
+
export declare type AtpAgentFetchHandler = (
|
|
38
|
+
httpUri: string,
|
|
39
|
+
httpMethod: string,
|
|
40
|
+
httpHeaders: AtpAgentFetchHeaders,
|
|
41
|
+
httpReqBody: any,
|
|
42
|
+
) => Promise<AtpAgentFetchHandlerResponse>
|
|
31
43
|
export interface AtpAgentGlobalOpts {
|
|
32
|
-
|
|
44
|
+
fetch: AtpAgentFetchHandler
|
|
33
45
|
}
|
|
34
|
-
export {}
|
|
46
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"codegen": "yarn docgen && node ./scripts/generate-code.mjs && lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
|
|
7
|
-
"docgen": "node ./scripts/generate-docs.mjs",
|
|
8
|
-
"build": "node ./build.js",
|
|
9
|
-
"postbuild": "tsc --build tsconfig.build.json",
|
|
10
|
-
"update-main-to-dist": "node ./update-pkg.js --update-main-to-dist",
|
|
11
|
-
"update-main-to-src": "node ./update-pkg.js --update-main-to-src",
|
|
12
|
-
"prepublish": "npm run update-main-to-dist",
|
|
13
|
-
"postpublish": "npm run update-main-to-src",
|
|
14
|
-
"test": "jest",
|
|
15
|
-
"bench": "jest --config jest.bench.config.js",
|
|
16
|
-
"bench:profile": "node --inspect-brk ../../node_modules/.bin/jest --config jest.bench.config.js"
|
|
17
|
-
},
|
|
18
5
|
"license": "MIT",
|
|
19
6
|
"repository": {
|
|
20
7
|
"type": "git",
|
|
@@ -22,15 +9,27 @@
|
|
|
22
9
|
"directory": "packages/api"
|
|
23
10
|
},
|
|
24
11
|
"dependencies": {
|
|
25
|
-
"
|
|
26
|
-
"@atproto/uri": "*",
|
|
27
|
-
"@atproto/xrpc": "*",
|
|
12
|
+
"multiformats": "^9.9.0",
|
|
28
13
|
"tlds": "^1.234.0",
|
|
29
|
-
"typed-emitter": "^2.1.0"
|
|
14
|
+
"typed-emitter": "^2.1.0",
|
|
15
|
+
"@atproto/common-web": "^0.2.0",
|
|
16
|
+
"@atproto/lexicon": "^0.2.0",
|
|
17
|
+
"@atproto/uri": "^0.1.0",
|
|
18
|
+
"@atproto/xrpc": "^0.2.0"
|
|
30
19
|
},
|
|
31
20
|
"devDependencies": {
|
|
32
|
-
"
|
|
33
|
-
"@atproto/
|
|
34
|
-
"
|
|
35
|
-
}
|
|
36
|
-
|
|
21
|
+
"common-tags": "^1.8.2",
|
|
22
|
+
"@atproto/lex-cli": "^0.2.0",
|
|
23
|
+
"@atproto/pds": "^0.1.12"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"codegen": "pnpm docgen && node ./scripts/generate-code.mjs && lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
|
|
27
|
+
"docgen": "node ./scripts/generate-docs.mjs",
|
|
28
|
+
"build": "node ./build.js",
|
|
29
|
+
"postbuild": "tsc --build tsconfig.build.json",
|
|
30
|
+
"test": "jest",
|
|
31
|
+
"bench": "jest --config jest.bench.config.js",
|
|
32
|
+
"bench:profile": "node --inspect-brk ../../node_modules/.bin/jest --config jest.bench.config.js"
|
|
33
|
+
},
|
|
34
|
+
"types": "dist/index.d.ts"
|
|
35
|
+
}
|
package/src/client/index.ts
CHANGED
|
@@ -121,6 +121,7 @@ import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
|
121
121
|
import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
122
122
|
import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount'
|
|
123
123
|
import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications'
|
|
124
|
+
import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush'
|
|
124
125
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
|
|
125
126
|
import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
|
|
126
127
|
import * as AppBskyUnspeccedApplyLabels from './types/app/bsky/unspecced/applyLabels'
|
|
@@ -242,6 +243,7 @@ export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
|
242
243
|
export * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
243
244
|
export * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount'
|
|
244
245
|
export * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications'
|
|
246
|
+
export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush'
|
|
245
247
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
|
|
246
248
|
export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
|
|
247
249
|
export * as AppBskyUnspeccedApplyLabels from './types/app/bsky/unspecced/applyLabels'
|
|
@@ -2024,6 +2026,17 @@ export class NotificationNS {
|
|
|
2024
2026
|
})
|
|
2025
2027
|
}
|
|
2026
2028
|
|
|
2029
|
+
registerPush(
|
|
2030
|
+
data?: AppBskyNotificationRegisterPush.InputSchema,
|
|
2031
|
+
opts?: AppBskyNotificationRegisterPush.CallOptions,
|
|
2032
|
+
): Promise<AppBskyNotificationRegisterPush.Response> {
|
|
2033
|
+
return this._service.xrpc
|
|
2034
|
+
.call('app.bsky.notification.registerPush', opts?.qp, data, opts)
|
|
2035
|
+
.catch((e) => {
|
|
2036
|
+
throw AppBskyNotificationRegisterPush.toKnownErr(e)
|
|
2037
|
+
})
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2027
2040
|
updateSeen(
|
|
2028
2041
|
data?: AppBskyNotificationUpdateSeen.InputSchema,
|
|
2029
2042
|
opts?: AppBskyNotificationUpdateSeen.CallOptions,
|
package/src/client/lexicons.ts
CHANGED
|
@@ -3575,6 +3575,8 @@ export const schemaDict = {
|
|
|
3575
3575
|
},
|
|
3576
3576
|
repoOp: {
|
|
3577
3577
|
type: 'object',
|
|
3578
|
+
description:
|
|
3579
|
+
"A repo operation, ie a write of a single record. For creates and updates, cid is the record's CID as of this operation. For deletes, it's null.",
|
|
3578
3580
|
required: ['action', 'path', 'cid'],
|
|
3579
3581
|
nullable: ['cid'],
|
|
3580
3582
|
properties: {
|
|
@@ -6367,6 +6369,39 @@ export const schemaDict = {
|
|
|
6367
6369
|
},
|
|
6368
6370
|
},
|
|
6369
6371
|
},
|
|
6372
|
+
AppBskyNotificationRegisterPush: {
|
|
6373
|
+
lexicon: 1,
|
|
6374
|
+
id: 'app.bsky.notification.registerPush',
|
|
6375
|
+
defs: {
|
|
6376
|
+
main: {
|
|
6377
|
+
type: 'procedure',
|
|
6378
|
+
description: 'Register for push notifications with a service',
|
|
6379
|
+
input: {
|
|
6380
|
+
encoding: 'application/json',
|
|
6381
|
+
schema: {
|
|
6382
|
+
type: 'object',
|
|
6383
|
+
required: ['serviceDid', 'token', 'platform', 'appId'],
|
|
6384
|
+
properties: {
|
|
6385
|
+
serviceDid: {
|
|
6386
|
+
type: 'string',
|
|
6387
|
+
format: 'did',
|
|
6388
|
+
},
|
|
6389
|
+
token: {
|
|
6390
|
+
type: 'string',
|
|
6391
|
+
},
|
|
6392
|
+
platform: {
|
|
6393
|
+
type: 'string',
|
|
6394
|
+
knownValues: ['ios', 'android', 'web'],
|
|
6395
|
+
},
|
|
6396
|
+
appId: {
|
|
6397
|
+
type: 'string',
|
|
6398
|
+
},
|
|
6399
|
+
},
|
|
6400
|
+
},
|
|
6401
|
+
},
|
|
6402
|
+
},
|
|
6403
|
+
},
|
|
6404
|
+
},
|
|
6370
6405
|
AppBskyNotificationUpdateSeen: {
|
|
6371
6406
|
lexicon: 1,
|
|
6372
6407
|
id: 'app.bsky.notification.updateSeen',
|
|
@@ -6746,6 +6781,7 @@ export const ids = {
|
|
|
6746
6781
|
AppBskyNotificationGetUnreadCount: 'app.bsky.notification.getUnreadCount',
|
|
6747
6782
|
AppBskyNotificationListNotifications:
|
|
6748
6783
|
'app.bsky.notification.listNotifications',
|
|
6784
|
+
AppBskyNotificationRegisterPush: 'app.bsky.notification.registerPush',
|
|
6749
6785
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
|
6750
6786
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
|
6751
6787
|
AppBskyUnspeccedApplyLabels: 'app.bsky.unspecced.applyLabels',
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
|
7
|
+
import { lexicons } from '../../../../lexicons'
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
|
|
10
|
+
export interface QueryParams {}
|
|
11
|
+
|
|
12
|
+
export interface InputSchema {
|
|
13
|
+
serviceDid: string
|
|
14
|
+
token: string
|
|
15
|
+
platform: 'ios' | 'android' | 'web' | (string & {})
|
|
16
|
+
appId: string
|
|
17
|
+
[k: string]: unknown
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface CallOptions {
|
|
21
|
+
headers?: Headers
|
|
22
|
+
qp?: QueryParams
|
|
23
|
+
encoding: 'application/json'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface Response {
|
|
27
|
+
success: boolean
|
|
28
|
+
headers: Headers
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function toKnownErr(e: any) {
|
|
32
|
+
if (e instanceof XRPCError) {
|
|
33
|
+
}
|
|
34
|
+
return e
|
|
35
|
+
}
|
|
@@ -111,6 +111,7 @@ export function validateInfo(v: unknown): ValidationResult {
|
|
|
111
111
|
return lexicons.validate('com.atproto.sync.subscribeRepos#info', v)
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
/** A repo operation, ie a write of a single record. For creates and updates, cid is the record's CID as of this operation. For deletes, it's null. */
|
|
114
115
|
export interface RepoOp {
|
|
115
116
|
action: 'create' | 'update' | 'delete' | (string & {})
|
|
116
117
|
path: string
|