@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.
Files changed (102) hide show
  1. package/LICENSE +21 -0
  2. package/build.js +0 -8
  3. package/dist/agent.d.ts +44 -25
  4. package/dist/client/index.d.ts +3 -0
  5. package/dist/client/lexicons.d.ts +35 -0
  6. package/dist/client/types/app/bsky/actor/defs.d.ts +74 -65
  7. package/dist/client/types/app/bsky/embed/external.d.ts +23 -23
  8. package/dist/client/types/app/bsky/embed/images.d.ts +20 -20
  9. package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +26 -20
  10. package/dist/client/types/app/bsky/feed/like.d.ts +7 -7
  11. package/dist/client/types/app/bsky/feed/repost.d.ts +7 -7
  12. package/dist/client/types/app/bsky/graph/block.d.ts +6 -6
  13. package/dist/client/types/app/bsky/graph/defs.d.ts +36 -36
  14. package/dist/client/types/app/bsky/graph/follow.d.ts +6 -6
  15. package/dist/client/types/app/bsky/graph/listitem.d.ts +7 -7
  16. package/dist/client/types/app/bsky/{feed/saveFeed.d.ts → notification/registerPush.d.ts} +4 -1
  17. package/dist/client/types/app/bsky/richtext/facet.d.ts +26 -22
  18. package/dist/client/types/com/atproto/label/subscribeLabels.d.ts +12 -12
  19. package/dist/client/types/com/atproto/moderation/defs.d.ts +16 -7
  20. package/dist/client/types/com/atproto/repo/strongRef.d.ts +6 -6
  21. package/dist/client/types/com/atproto/server/defs.d.ts +16 -16
  22. package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +46 -46
  23. package/dist/client/util.d.ts +5 -2
  24. package/dist/index.js +923 -1141
  25. package/dist/index.js.map +4 -4
  26. package/dist/rich-text/detection.d.ts +4 -4
  27. package/dist/rich-text/rich-text.d.ts +31 -31
  28. package/dist/rich-text/sanitization.d.ts +7 -4
  29. package/dist/rich-text/unicode.d.ts +9 -9
  30. package/dist/types.d.ts +34 -22
  31. package/package.json +22 -23
  32. package/src/client/index.ts +13 -0
  33. package/src/client/lexicons.ts +36 -0
  34. package/src/client/types/app/bsky/notification/registerPush.ts +35 -0
  35. package/src/client/types/com/atproto/sync/subscribeRepos.ts +1 -0
  36. package/tsconfig.build.tsbuildinfo +1 -1
  37. package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
  38. package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
  39. package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
  40. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
  41. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -40
  42. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
  43. package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +0 -21
  44. package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
  45. package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
  46. package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
  47. package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +0 -17
  48. package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
  49. package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
  50. package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
  51. package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
  52. package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
  53. package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
  54. package/dist/client/types/app/bsky/graph/getListBlocks.d.ts +0 -21
  55. package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
  56. package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
  57. package/dist/client/types/app/bsky/graph/listblock.d.ts +0 -8
  58. package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
  59. package/dist/client/types/app/bsky/graph/subscribeMuteList.d.ts +0 -17
  60. package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
  61. package/dist/client/types/app/bsky/graph/unsubscribeMuteList.d.ts +0 -17
  62. package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
  63. package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
  64. package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
  65. package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
  66. package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
  67. package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
  68. package/dist/client/types/com/atproto/account/create.d.ts +0 -41
  69. package/dist/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
  70. package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
  71. package/dist/client/types/com/atproto/account/get.d.ts +0 -12
  72. package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
  73. package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
  74. package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
  75. package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
  76. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
  77. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
  78. package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
  79. package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
  80. package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
  81. package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
  82. package/dist/client/types/com/atproto/handle/update.d.ts +0 -17
  83. package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
  84. package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
  85. package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
  86. package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
  87. package/dist/client/types/com/atproto/report/create.d.ts +0 -39
  88. package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
  89. package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
  90. package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
  91. package/dist/client/types/com/atproto/session/create.d.ts +0 -29
  92. package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
  93. package/dist/client/types/com/atproto/session/get.d.ts +0 -18
  94. package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
  95. package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
  96. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
  97. package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
  98. package/dist/helpers/bsky.d.ts +0 -20
  99. package/dist/mixins/bsky.d.ts +0 -23
  100. package/dist/rich-text/sanitize.d.ts +0 -4
  101. package/dist/session.d.ts +0 -42
  102. package/update-pkg.js +0 -14
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022-2023 Bluesky PBLLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/build.js CHANGED
@@ -1,16 +1,8 @@
1
- const pkgJson = require('@npmcli/package-json')
2
1
  const { nodeExternalsPlugin } = require('esbuild-node-externals')
3
2
 
4
3
  const buildShallow =
5
4
  process.argv.includes('--shallow') || process.env.ATP_BUILD_SHALLOW === 'true'
6
5
 
7
- if (process.argv.includes('--update-main-to-dist')) {
8
- return pkgJson
9
- .load(__dirname)
10
- .then((pkg) => pkg.update({ main: 'dist/index.js' }))
11
- .then((pkg) => pkg.save())
12
- }
13
-
14
6
  require('esbuild').build({
15
7
  logLevel: 'info',
16
8
  entryPoints: ['src/index.ts'],
package/dist/agent.d.ts CHANGED
@@ -1,27 +1,46 @@
1
- import { AtpServiceClient, ComAtprotoServerCreateAccount, ComAtprotoServerCreateSession, ComAtprotoServerGetSession } from './client';
2
- import { AtpSessionData, AtpAgentCreateAccountOpts, AtpAgentLoginOpts, AtpAgentFetchHandler, AtpAgentGlobalOpts, AtpPersistSessionHandler, AtpAgentOpts } from './types';
1
+ import {
2
+ AtpServiceClient,
3
+ ComAtprotoServerCreateAccount,
4
+ ComAtprotoServerCreateSession,
5
+ ComAtprotoServerGetSession,
6
+ } from './client'
7
+ import {
8
+ AtpSessionData,
9
+ AtpAgentCreateAccountOpts,
10
+ AtpAgentLoginOpts,
11
+ AtpAgentFetchHandler,
12
+ AtpAgentGlobalOpts,
13
+ AtpPersistSessionHandler,
14
+ AtpAgentOpts,
15
+ } from './types'
3
16
  export declare class AtpAgent {
4
- service: URL;
5
- api: AtpServiceClient;
6
- session?: AtpSessionData;
7
- private _baseClient;
8
- private _persistSession?;
9
- private _refreshSessionPromise;
10
- get com(): import("./client").ComNS;
11
- static fetch: AtpAgentFetchHandler | undefined;
12
- static configure(opts: AtpAgentGlobalOpts): void;
13
- constructor(opts: AtpAgentOpts);
14
- get hasSession(): boolean;
15
- setPersistSessionHandler(handler?: AtpPersistSessionHandler): void;
16
- createAccount(opts: AtpAgentCreateAccountOpts): Promise<ComAtprotoServerCreateAccount.Response>;
17
- login(opts: AtpAgentLoginOpts): Promise<ComAtprotoServerCreateSession.Response>;
18
- resumeSession(session: AtpSessionData): Promise<ComAtprotoServerGetSession.Response>;
19
- private _addAuthHeader;
20
- private _fetch;
21
- private _refreshSession;
22
- private _refreshSessionInner;
23
- uploadBlob: typeof this.api.com.atproto.repo.uploadBlob;
24
- resolveHandle: typeof this.api.com.atproto.identity.resolveHandle;
25
- updateHandle: typeof this.api.com.atproto.identity.updateHandle;
26
- createModerationReport: typeof this.api.com.atproto.moderation.createReport;
17
+ service: URL
18
+ api: AtpServiceClient
19
+ session?: AtpSessionData
20
+ private _baseClient
21
+ private _persistSession?
22
+ private _refreshSessionPromise
23
+ get com(): import('./client').ComNS
24
+ static fetch: AtpAgentFetchHandler | undefined
25
+ static configure(opts: AtpAgentGlobalOpts): void
26
+ constructor(opts: AtpAgentOpts)
27
+ get hasSession(): boolean
28
+ setPersistSessionHandler(handler?: AtpPersistSessionHandler): void
29
+ createAccount(
30
+ opts: AtpAgentCreateAccountOpts,
31
+ ): Promise<ComAtprotoServerCreateAccount.Response>
32
+ login(
33
+ opts: AtpAgentLoginOpts,
34
+ ): Promise<ComAtprotoServerCreateSession.Response>
35
+ resumeSession(
36
+ session: AtpSessionData,
37
+ ): Promise<ComAtprotoServerGetSession.Response>
38
+ private _addAuthHeader
39
+ private _fetch
40
+ private _refreshSession
41
+ private _refreshSessionInner
42
+ uploadBlob: typeof this.api.com.atproto.repo.uploadBlob
43
+ resolveHandle: typeof this.api.com.atproto.identity.resolveHandle
44
+ updateHandle: typeof this.api.com.atproto.identity.updateHandle
45
+ createModerationReport: typeof this.api.com.atproto.moderation.createReport
27
46
  }
@@ -99,6 +99,7 @@ import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor';
99
99
  import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList';
100
100
  import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount';
101
101
  import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications';
102
+ import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush';
102
103
  import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
103
104
  import * as AppBskyUnspeccedApplyLabels from './types/app/bsky/unspecced/applyLabels';
104
105
  import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular';
@@ -218,6 +219,7 @@ export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor';
218
219
  export * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList';
219
220
  export * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount';
220
221
  export * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications';
222
+ export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush';
221
223
  export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
222
224
  export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet';
223
225
  export * as AppBskyUnspeccedApplyLabels from './types/app/bsky/unspecced/applyLabels';
@@ -622,6 +624,7 @@ export declare class NotificationNS {
622
624
  constructor(service: AtpServiceClient);
623
625
  getUnreadCount(params?: AppBskyNotificationGetUnreadCount.QueryParams, opts?: AppBskyNotificationGetUnreadCount.CallOptions): Promise<AppBskyNotificationGetUnreadCount.Response>;
624
626
  listNotifications(params?: AppBskyNotificationListNotifications.QueryParams, opts?: AppBskyNotificationListNotifications.CallOptions): Promise<AppBskyNotificationListNotifications.Response>;
627
+ registerPush(data?: AppBskyNotificationRegisterPush.InputSchema, opts?: AppBskyNotificationRegisterPush.CallOptions): Promise<AppBskyNotificationRegisterPush.Response>;
625
628
  updateSeen(data?: AppBskyNotificationUpdateSeen.InputSchema, opts?: AppBskyNotificationUpdateSeen.CallOptions): Promise<AppBskyNotificationUpdateSeen.Response>;
626
629
  }
627
630
  export declare class RichtextNS {
@@ -3301,6 +3301,7 @@ export declare const schemaDict: {
3301
3301
  };
3302
3302
  repoOp: {
3303
3303
  type: string;
3304
+ description: string;
3304
3305
  required: string[];
3305
3306
  nullable: string[];
3306
3307
  properties: {
@@ -6000,6 +6001,39 @@ export declare const schemaDict: {
6000
6001
  };
6001
6002
  };
6002
6003
  };
6004
+ AppBskyNotificationRegisterPush: {
6005
+ lexicon: number;
6006
+ id: string;
6007
+ defs: {
6008
+ main: {
6009
+ type: string;
6010
+ description: string;
6011
+ input: {
6012
+ encoding: string;
6013
+ schema: {
6014
+ type: string;
6015
+ required: string[];
6016
+ properties: {
6017
+ serviceDid: {
6018
+ type: string;
6019
+ format: string;
6020
+ };
6021
+ token: {
6022
+ type: string;
6023
+ };
6024
+ platform: {
6025
+ type: string;
6026
+ knownValues: string[];
6027
+ };
6028
+ appId: {
6029
+ type: string;
6030
+ };
6031
+ };
6032
+ };
6033
+ };
6034
+ };
6035
+ };
6036
+ };
6003
6037
  AppBskyNotificationUpdateSeen: {
6004
6038
  lexicon: number;
6005
6039
  id: string;
@@ -6366,6 +6400,7 @@ export declare const ids: {
6366
6400
  AppBskyGraphUnmuteActorList: string;
6367
6401
  AppBskyNotificationGetUnreadCount: string;
6368
6402
  AppBskyNotificationListNotifications: string;
6403
+ AppBskyNotificationRegisterPush: string;
6369
6404
  AppBskyNotificationUpdateSeen: string;
6370
6405
  AppBskyRichtextFacet: string;
6371
6406
  AppBskyUnspeccedApplyLabels: string;
@@ -1,79 +1,88 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
3
- import * as AppBskyGraphDefs from '../graph/defs';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
3
+ import * as AppBskyGraphDefs from '../graph/defs'
4
4
  export interface ProfileViewBasic {
5
- did: string;
6
- handle: string;
7
- displayName?: string;
8
- avatar?: string;
9
- viewer?: ViewerState;
10
- labels?: ComAtprotoLabelDefs.Label[];
11
- [k: string]: unknown;
5
+ did: string
6
+ handle: string
7
+ displayName?: string
8
+ avatar?: string
9
+ viewer?: ViewerState
10
+ labels?: ComAtprotoLabelDefs.Label[]
11
+ [k: string]: unknown
12
12
  }
13
- export declare function isProfileViewBasic(v: unknown): v is ProfileViewBasic;
14
- export declare function validateProfileViewBasic(v: unknown): ValidationResult;
13
+ export declare function isProfileViewBasic(v: unknown): v is ProfileViewBasic
14
+ export declare function validateProfileViewBasic(v: unknown): ValidationResult
15
15
  export interface ProfileView {
16
- did: string;
17
- handle: string;
18
- displayName?: string;
19
- description?: string;
20
- avatar?: string;
21
- indexedAt?: string;
22
- viewer?: ViewerState;
23
- labels?: ComAtprotoLabelDefs.Label[];
24
- [k: string]: unknown;
16
+ did: string
17
+ handle: string
18
+ displayName?: string
19
+ description?: string
20
+ avatar?: string
21
+ indexedAt?: string
22
+ viewer?: ViewerState
23
+ labels?: ComAtprotoLabelDefs.Label[]
24
+ [k: string]: unknown
25
25
  }
26
- export declare function isProfileView(v: unknown): v is ProfileView;
27
- export declare function validateProfileView(v: unknown): ValidationResult;
26
+ export declare function isProfileView(v: unknown): v is ProfileView
27
+ export declare function validateProfileView(v: unknown): ValidationResult
28
28
  export interface ProfileViewDetailed {
29
- did: string;
30
- handle: string;
31
- displayName?: string;
32
- description?: string;
33
- avatar?: string;
34
- banner?: string;
35
- followersCount?: number;
36
- followsCount?: number;
37
- postsCount?: number;
38
- indexedAt?: string;
39
- viewer?: ViewerState;
40
- labels?: ComAtprotoLabelDefs.Label[];
41
- [k: string]: unknown;
29
+ did: string
30
+ handle: string
31
+ displayName?: string
32
+ description?: string
33
+ avatar?: string
34
+ banner?: string
35
+ followersCount?: number
36
+ followsCount?: number
37
+ postsCount?: number
38
+ indexedAt?: string
39
+ viewer?: ViewerState
40
+ labels?: ComAtprotoLabelDefs.Label[]
41
+ [k: string]: unknown
42
42
  }
43
- export declare function isProfileViewDetailed(v: unknown): v is ProfileViewDetailed;
44
- export declare function validateProfileViewDetailed(v: unknown): ValidationResult;
43
+ export declare function isProfileViewDetailed(
44
+ v: unknown,
45
+ ): v is ProfileViewDetailed
46
+ export declare function validateProfileViewDetailed(
47
+ v: unknown,
48
+ ): ValidationResult
45
49
  export interface ViewerState {
46
- muted?: boolean;
47
- mutedByList?: AppBskyGraphDefs.ListViewBasic;
48
- blockedBy?: boolean;
49
- blocking?: string;
50
- following?: string;
51
- followedBy?: string;
52
- [k: string]: unknown;
50
+ muted?: boolean
51
+ mutedByList?: AppBskyGraphDefs.ListViewBasic
52
+ blockedBy?: boolean
53
+ blocking?: string
54
+ following?: string
55
+ followedBy?: string
56
+ [k: string]: unknown
53
57
  }
54
- export declare function isViewerState(v: unknown): v is ViewerState;
55
- export declare function validateViewerState(v: unknown): ValidationResult;
56
- export declare type Preferences = (AdultContentPref | ContentLabelPref | SavedFeedsPref | {
57
- $type: string;
58
- [k: string]: unknown;
59
- })[];
58
+ export declare function isViewerState(v: unknown): v is ViewerState
59
+ export declare function validateViewerState(v: unknown): ValidationResult
60
+ export declare type Preferences = (
61
+ | AdultContentPref
62
+ | ContentLabelPref
63
+ | SavedFeedsPref
64
+ | {
65
+ $type: string
66
+ [k: string]: unknown
67
+ }
68
+ )[]
60
69
  export interface AdultContentPref {
61
- enabled: boolean;
62
- [k: string]: unknown;
70
+ enabled: boolean
71
+ [k: string]: unknown
63
72
  }
64
- export declare function isAdultContentPref(v: unknown): v is AdultContentPref;
65
- export declare function validateAdultContentPref(v: unknown): ValidationResult;
73
+ export declare function isAdultContentPref(v: unknown): v is AdultContentPref
74
+ export declare function validateAdultContentPref(v: unknown): ValidationResult
66
75
  export interface ContentLabelPref {
67
- label: string;
68
- visibility: 'show' | 'warn' | 'hide' | (string & {});
69
- [k: string]: unknown;
76
+ label: string
77
+ visibility: 'show' | 'warn' | 'hide' | (string & {})
78
+ [k: string]: unknown
70
79
  }
71
- export declare function isContentLabelPref(v: unknown): v is ContentLabelPref;
72
- export declare function validateContentLabelPref(v: unknown): ValidationResult;
80
+ export declare function isContentLabelPref(v: unknown): v is ContentLabelPref
81
+ export declare function validateContentLabelPref(v: unknown): ValidationResult
73
82
  export interface SavedFeedsPref {
74
- pinned: string[];
75
- saved: string[];
76
- [k: string]: unknown;
83
+ pinned: string[]
84
+ saved: string[]
85
+ [k: string]: unknown
77
86
  }
78
- export declare function isSavedFeedsPref(v: unknown): v is SavedFeedsPref;
79
- export declare function validateSavedFeedsPref(v: unknown): ValidationResult;
87
+ export declare function isSavedFeedsPref(v: unknown): v is SavedFeedsPref
88
+ export declare function validateSavedFeedsPref(v: unknown): ValidationResult
@@ -1,31 +1,31 @@
1
- import { ValidationResult, BlobRef } from '@atproto/lexicon';
1
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
2
2
  export interface Main {
3
- external: External;
4
- [k: string]: unknown;
3
+ external: External
4
+ [k: string]: unknown
5
5
  }
6
- export declare function isMain(v: unknown): v is Main;
7
- export declare function validateMain(v: unknown): ValidationResult;
6
+ export declare function isMain(v: unknown): v is Main
7
+ export declare function validateMain(v: unknown): ValidationResult
8
8
  export interface External {
9
- uri: string;
10
- title: string;
11
- description: string;
12
- thumb?: BlobRef;
13
- [k: string]: unknown;
9
+ uri: string
10
+ title: string
11
+ description: string
12
+ thumb?: BlobRef
13
+ [k: string]: unknown
14
14
  }
15
- export declare function isExternal(v: unknown): v is External;
16
- export declare function validateExternal(v: unknown): ValidationResult;
15
+ export declare function isExternal(v: unknown): v is External
16
+ export declare function validateExternal(v: unknown): ValidationResult
17
17
  export interface View {
18
- external: ViewExternal;
19
- [k: string]: unknown;
18
+ external: ViewExternal
19
+ [k: string]: unknown
20
20
  }
21
- export declare function isView(v: unknown): v is View;
22
- export declare function validateView(v: unknown): ValidationResult;
21
+ export declare function isView(v: unknown): v is View
22
+ export declare function validateView(v: unknown): ValidationResult
23
23
  export interface ViewExternal {
24
- uri: string;
25
- title: string;
26
- description: string;
27
- thumb?: string;
28
- [k: string]: unknown;
24
+ uri: string
25
+ title: string
26
+ description: string
27
+ thumb?: string
28
+ [k: string]: unknown
29
29
  }
30
- export declare function isViewExternal(v: unknown): v is ViewExternal;
31
- export declare function validateViewExternal(v: unknown): ValidationResult;
30
+ export declare function isViewExternal(v: unknown): v is ViewExternal
31
+ export declare function validateViewExternal(v: unknown): ValidationResult
@@ -1,28 +1,28 @@
1
- import { ValidationResult, BlobRef } from '@atproto/lexicon';
1
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
2
2
  export interface Main {
3
- images: Image[];
4
- [k: string]: unknown;
3
+ images: Image[]
4
+ [k: string]: unknown
5
5
  }
6
- export declare function isMain(v: unknown): v is Main;
7
- export declare function validateMain(v: unknown): ValidationResult;
6
+ export declare function isMain(v: unknown): v is Main
7
+ export declare function validateMain(v: unknown): ValidationResult
8
8
  export interface Image {
9
- image: BlobRef;
10
- alt: string;
11
- [k: string]: unknown;
9
+ image: BlobRef
10
+ alt: string
11
+ [k: string]: unknown
12
12
  }
13
- export declare function isImage(v: unknown): v is Image;
14
- export declare function validateImage(v: unknown): ValidationResult;
13
+ export declare function isImage(v: unknown): v is Image
14
+ export declare function validateImage(v: unknown): ValidationResult
15
15
  export interface View {
16
- images: ViewImage[];
17
- [k: string]: unknown;
16
+ images: ViewImage[]
17
+ [k: string]: unknown
18
18
  }
19
- export declare function isView(v: unknown): v is View;
20
- export declare function validateView(v: unknown): ValidationResult;
19
+ export declare function isView(v: unknown): v is View
20
+ export declare function validateView(v: unknown): ValidationResult
21
21
  export interface ViewImage {
22
- thumb: string;
23
- fullsize: string;
24
- alt: string;
25
- [k: string]: unknown;
22
+ thumb: string
23
+ fullsize: string
24
+ alt: string
25
+ [k: string]: unknown
26
26
  }
27
- export declare function isViewImage(v: unknown): v is ViewImage;
28
- export declare function validateViewImage(v: unknown): ValidationResult;
27
+ export declare function isViewImage(v: unknown): v is ViewImage
28
+ export declare function validateViewImage(v: unknown): ValidationResult
@@ -1,24 +1,30 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as AppBskyEmbedRecord from './record';
3
- import * as AppBskyEmbedImages from './images';
4
- import * as AppBskyEmbedExternal from './external';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as AppBskyEmbedRecord from './record'
3
+ import * as AppBskyEmbedImages from './images'
4
+ import * as AppBskyEmbedExternal from './external'
5
5
  export interface Main {
6
- record: AppBskyEmbedRecord.Main;
7
- media: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | {
8
- $type: string;
9
- [k: string]: unknown;
10
- };
11
- [k: string]: unknown;
6
+ record: AppBskyEmbedRecord.Main
7
+ media:
8
+ | AppBskyEmbedImages.Main
9
+ | AppBskyEmbedExternal.Main
10
+ | {
11
+ $type: string
12
+ [k: string]: unknown
13
+ }
14
+ [k: string]: unknown
12
15
  }
13
- export declare function isMain(v: unknown): v is Main;
14
- export declare function validateMain(v: unknown): ValidationResult;
16
+ export declare function isMain(v: unknown): v is Main
17
+ export declare function validateMain(v: unknown): ValidationResult
15
18
  export interface View {
16
- record: AppBskyEmbedRecord.View;
17
- media: AppBskyEmbedImages.View | AppBskyEmbedExternal.View | {
18
- $type: string;
19
- [k: string]: unknown;
20
- };
21
- [k: string]: unknown;
19
+ record: AppBskyEmbedRecord.View
20
+ media:
21
+ | AppBskyEmbedImages.View
22
+ | AppBskyEmbedExternal.View
23
+ | {
24
+ $type: string
25
+ [k: string]: unknown
26
+ }
27
+ [k: string]: unknown
22
28
  }
23
- export declare function isView(v: unknown): v is View;
24
- export declare function validateView(v: unknown): ValidationResult;
29
+ export declare function isView(v: unknown): v is View
30
+ export declare function validateView(v: unknown): ValidationResult
@@ -1,9 +1,9 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
3
3
  export interface Record {
4
- subject: ComAtprotoRepoStrongRef.Main;
5
- createdAt: string;
6
- [k: string]: unknown;
4
+ subject: ComAtprotoRepoStrongRef.Main
5
+ createdAt: string
6
+ [k: string]: unknown
7
7
  }
8
- export declare function isRecord(v: unknown): v is Record;
9
- export declare function validateRecord(v: unknown): ValidationResult;
8
+ export declare function isRecord(v: unknown): v is Record
9
+ export declare function validateRecord(v: unknown): ValidationResult
@@ -1,9 +1,9 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
3
3
  export interface Record {
4
- subject: ComAtprotoRepoStrongRef.Main;
5
- createdAt: string;
6
- [k: string]: unknown;
4
+ subject: ComAtprotoRepoStrongRef.Main
5
+ createdAt: string
6
+ [k: string]: unknown
7
7
  }
8
- export declare function isRecord(v: unknown): v is Record;
9
- export declare function validateRecord(v: unknown): ValidationResult;
8
+ export declare function isRecord(v: unknown): v is Record
9
+ export declare function validateRecord(v: unknown): ValidationResult
@@ -1,8 +1,8 @@
1
- import { ValidationResult } from '@atproto/lexicon';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
2
  export interface Record {
3
- subject: string;
4
- createdAt: string;
5
- [k: string]: unknown;
3
+ subject: string
4
+ createdAt: string
5
+ [k: string]: unknown
6
6
  }
7
- export declare function isRecord(v: unknown): v is Record;
8
- export declare function validateRecord(v: unknown): ValidationResult;
7
+ export declare function isRecord(v: unknown): v is Record
8
+ export declare function validateRecord(v: unknown): ValidationResult
@@ -1,44 +1,44 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as AppBskyActorDefs from '../actor/defs';
3
- import * as AppBskyRichtextFacet from '../richtext/facet';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as AppBskyActorDefs from '../actor/defs'
3
+ import * as AppBskyRichtextFacet from '../richtext/facet'
4
4
  export interface ListViewBasic {
5
- uri: string;
6
- cid: string;
7
- name: string;
8
- purpose: ListPurpose;
9
- avatar?: string;
10
- viewer?: ListViewerState;
11
- indexedAt?: string;
12
- [k: string]: unknown;
5
+ uri: string
6
+ cid: string
7
+ name: string
8
+ purpose: ListPurpose
9
+ avatar?: string
10
+ viewer?: ListViewerState
11
+ indexedAt?: string
12
+ [k: string]: unknown
13
13
  }
14
- export declare function isListViewBasic(v: unknown): v is ListViewBasic;
15
- export declare function validateListViewBasic(v: unknown): ValidationResult;
14
+ export declare function isListViewBasic(v: unknown): v is ListViewBasic
15
+ export declare function validateListViewBasic(v: unknown): ValidationResult
16
16
  export interface ListView {
17
- uri: string;
18
- cid: string;
19
- creator: AppBskyActorDefs.ProfileView;
20
- name: string;
21
- purpose: ListPurpose;
22
- description?: string;
23
- descriptionFacets?: AppBskyRichtextFacet.Main[];
24
- avatar?: string;
25
- viewer?: ListViewerState;
26
- indexedAt: string;
27
- [k: string]: unknown;
17
+ uri: string
18
+ cid: string
19
+ creator: AppBskyActorDefs.ProfileView
20
+ name: string
21
+ purpose: ListPurpose
22
+ description?: string
23
+ descriptionFacets?: AppBskyRichtextFacet.Main[]
24
+ avatar?: string
25
+ viewer?: ListViewerState
26
+ indexedAt: string
27
+ [k: string]: unknown
28
28
  }
29
- export declare function isListView(v: unknown): v is ListView;
30
- export declare function validateListView(v: unknown): ValidationResult;
29
+ export declare function isListView(v: unknown): v is ListView
30
+ export declare function validateListView(v: unknown): ValidationResult
31
31
  export interface ListItemView {
32
- subject: AppBskyActorDefs.ProfileView;
33
- [k: string]: unknown;
32
+ subject: AppBskyActorDefs.ProfileView
33
+ [k: string]: unknown
34
34
  }
35
- export declare function isListItemView(v: unknown): v is ListItemView;
36
- export declare function validateListItemView(v: unknown): ValidationResult;
37
- export declare type ListPurpose = 'app.bsky.graph.defs#modlist' | (string & {});
38
- export declare const MODLIST = "app.bsky.graph.defs#modlist";
35
+ export declare function isListItemView(v: unknown): v is ListItemView
36
+ export declare function validateListItemView(v: unknown): ValidationResult
37
+ export declare type ListPurpose = 'app.bsky.graph.defs#modlist' | (string & {})
38
+ export declare const MODLIST = 'app.bsky.graph.defs#modlist'
39
39
  export interface ListViewerState {
40
- muted?: boolean;
41
- [k: string]: unknown;
40
+ muted?: boolean
41
+ [k: string]: unknown
42
42
  }
43
- export declare function isListViewerState(v: unknown): v is ListViewerState;
44
- export declare function validateListViewerState(v: unknown): ValidationResult;
43
+ export declare function isListViewerState(v: unknown): v is ListViewerState
44
+ export declare function validateListViewerState(v: unknown): ValidationResult