@atproto/api 0.9.4 → 0.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atproto/api
2
2
 
3
+ ## 0.9.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2124](https://github.com/bluesky-social/atproto/pull/2124) [`e4ec7af03`](https://github.com/bluesky-social/atproto/commit/e4ec7af03608949fc3b00a845f547a77599b5ad0) Thanks [@foysalit](https://github.com/foysalit)! - Allow filtering for comment, label, report type and date range on queryModerationEvents endpoint.
8
+
9
+ ## 0.9.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#2090](https://github.com/bluesky-social/atproto/pull/2090) [`8994d363`](https://github.com/bluesky-social/atproto/commit/8994d3633adad1c02569d6d44ae896e18195e8e2) Thanks [@dholms](https://github.com/dholms)! - add checkSignupQueue method and expose refreshSession on agent
14
+
3
15
  ## 0.9.4
4
16
 
5
17
  ### Patch Changes
package/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  Dual MIT/Apache-2.0 License
2
2
 
3
- Copyright (c) 2022-2023 Bluesky PBC, and Contributors
3
+ Copyright (c) 2022-2024 Bluesky PBC, and Contributors
4
4
 
5
5
  Except as otherwise noted in individual files, this software is licensed under the MIT license (<http://opensource.org/licenses/MIT>), or the Apache License, Version 2.0 (<http://www.apache.org/licenses/LICENSE-2.0>).
6
6
 
package/dist/agent.d.ts CHANGED
@@ -19,7 +19,7 @@ export declare class AtpAgent {
19
19
  resumeSession(session: AtpSessionData): Promise<ComAtprotoServerGetSession.Response>;
20
20
  private _addAuthHeader;
21
21
  private _fetch;
22
- private _refreshSession;
22
+ refreshSession(): Promise<void>;
23
23
  private _refreshSessionInner;
24
24
  uploadBlob: typeof this.api.com.atproto.repo.uploadBlob;
25
25
  resolveHandle: typeof this.api.com.atproto.identity.resolveHandle;
@@ -66,6 +66,7 @@ import * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs';
66
66
  import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos';
67
67
  import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
68
68
  import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
69
+ import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue';
69
70
  import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels';
70
71
  import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo';
71
72
  import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob';
@@ -125,7 +126,6 @@ import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
125
126
  import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
126
127
  import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators';
127
128
  import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions';
128
- import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton';
129
129
  import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton';
130
130
  import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton';
131
131
  export * as ComAtprotoAdminCreateCommunicationTemplate from './types/com/atproto/admin/createCommunicationTemplate';
@@ -202,6 +202,7 @@ export * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos';
202
202
  export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
203
203
  export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
204
204
  export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos';
205
+ export * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue';
205
206
  export * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels';
206
207
  export * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo';
207
208
  export * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob';
@@ -270,7 +271,6 @@ export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet';
270
271
  export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs';
271
272
  export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators';
272
273
  export * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions';
273
- export * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton';
274
274
  export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton';
275
275
  export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton';
276
276
  export declare const COM_ATPROTO_ADMIN: {
@@ -419,6 +419,7 @@ export declare class ComAtprotoSyncNS {
419
419
  export declare class ComAtprotoTempNS {
420
420
  _service: AtpServiceClient;
421
421
  constructor(service: AtpServiceClient);
422
+ checkSignupQueue(params?: ComAtprotoTempCheckSignupQueue.QueryParams, opts?: ComAtprotoTempCheckSignupQueue.CallOptions): Promise<ComAtprotoTempCheckSignupQueue.Response>;
422
423
  fetchLabels(params?: ComAtprotoTempFetchLabels.QueryParams, opts?: ComAtprotoTempFetchLabels.CallOptions): Promise<ComAtprotoTempFetchLabels.Response>;
423
424
  importRepo(data?: ComAtprotoTempImportRepo.InputSchema, opts?: ComAtprotoTempImportRepo.CallOptions): Promise<ComAtprotoTempImportRepo.Response>;
424
425
  pushBlob(data?: ComAtprotoTempPushBlob.InputSchema, opts?: ComAtprotoTempPushBlob.CallOptions): Promise<ComAtprotoTempPushBlob.Response>;
@@ -753,7 +754,6 @@ export declare class AppBskyUnspeccedNS {
753
754
  constructor(service: AtpServiceClient);
754
755
  getPopularFeedGenerators(params?: AppBskyUnspeccedGetPopularFeedGenerators.QueryParams, opts?: AppBskyUnspeccedGetPopularFeedGenerators.CallOptions): Promise<AppBskyUnspeccedGetPopularFeedGenerators.Response>;
755
756
  getTaggedSuggestions(params?: AppBskyUnspeccedGetTaggedSuggestions.QueryParams, opts?: AppBskyUnspeccedGetTaggedSuggestions.CallOptions): Promise<AppBskyUnspeccedGetTaggedSuggestions.Response>;
756
- getTimelineSkeleton(params?: AppBskyUnspeccedGetTimelineSkeleton.QueryParams, opts?: AppBskyUnspeccedGetTimelineSkeleton.CallOptions): Promise<AppBskyUnspeccedGetTimelineSkeleton.Response>;
757
757
  searchActorsSkeleton(params?: AppBskyUnspeccedSearchActorsSkeleton.QueryParams, opts?: AppBskyUnspeccedSearchActorsSkeleton.CallOptions): Promise<AppBskyUnspeccedSearchActorsSkeleton.Response>;
758
758
  searchPostsSkeleton(params?: AppBskyUnspeccedSearchPostsSkeleton.QueryParams, opts?: AppBskyUnspeccedSearchPostsSkeleton.CallOptions): Promise<AppBskyUnspeccedSearchPostsSkeleton.Response>;
759
759
  }
@@ -1296,6 +1296,16 @@ export declare const schemaDict: {
1296
1296
  enum: string[];
1297
1297
  description: string;
1298
1298
  };
1299
+ createdAfter: {
1300
+ type: string;
1301
+ format: string;
1302
+ description: string;
1303
+ };
1304
+ createdBefore: {
1305
+ type: string;
1306
+ format: string;
1307
+ description: string;
1308
+ };
1299
1309
  subject: {
1300
1310
  type: string;
1301
1311
  format: string;
@@ -1311,6 +1321,34 @@ export declare const schemaDict: {
1311
1321
  maximum: number;
1312
1322
  default: number;
1313
1323
  };
1324
+ hasComment: {
1325
+ type: string;
1326
+ description: string;
1327
+ };
1328
+ comment: {
1329
+ type: string;
1330
+ description: string;
1331
+ };
1332
+ addedLabels: {
1333
+ type: string;
1334
+ items: {
1335
+ type: string;
1336
+ };
1337
+ description: string;
1338
+ };
1339
+ removedLabels: {
1340
+ type: string;
1341
+ items: {
1342
+ type: string;
1343
+ };
1344
+ description: string;
1345
+ };
1346
+ reportTypes: {
1347
+ type: string;
1348
+ items: {
1349
+ type: string;
1350
+ };
1351
+ };
1314
1352
  cursor: {
1315
1353
  type: string;
1316
1354
  };
@@ -3906,6 +3944,34 @@ export declare const schemaDict: {
3906
3944
  };
3907
3945
  };
3908
3946
  };
3947
+ ComAtprotoTempCheckSignupQueue: {
3948
+ lexicon: number;
3949
+ id: string;
3950
+ defs: {
3951
+ main: {
3952
+ type: string;
3953
+ description: string;
3954
+ output: {
3955
+ encoding: string;
3956
+ schema: {
3957
+ type: string;
3958
+ required: string[];
3959
+ properties: {
3960
+ activated: {
3961
+ type: string;
3962
+ };
3963
+ placeInQueue: {
3964
+ type: string;
3965
+ };
3966
+ estimatedTimeMs: {
3967
+ type: string;
3968
+ };
3969
+ };
3970
+ };
3971
+ };
3972
+ };
3973
+ };
3974
+ };
3909
3975
  ComAtprotoTempFetchLabels: {
3910
3976
  lexicon: number;
3911
3977
  id: string;
@@ -7574,52 +7640,6 @@ export declare const schemaDict: {
7574
7640
  };
7575
7641
  };
7576
7642
  };
7577
- AppBskyUnspeccedGetTimelineSkeleton: {
7578
- lexicon: number;
7579
- id: string;
7580
- defs: {
7581
- main: {
7582
- type: string;
7583
- description: string;
7584
- parameters: {
7585
- type: string;
7586
- properties: {
7587
- limit: {
7588
- type: string;
7589
- minimum: number;
7590
- maximum: number;
7591
- default: number;
7592
- };
7593
- cursor: {
7594
- type: string;
7595
- };
7596
- };
7597
- };
7598
- output: {
7599
- encoding: string;
7600
- schema: {
7601
- type: string;
7602
- required: string[];
7603
- properties: {
7604
- cursor: {
7605
- type: string;
7606
- };
7607
- feed: {
7608
- type: string;
7609
- items: {
7610
- type: string;
7611
- ref: string;
7612
- };
7613
- };
7614
- };
7615
- };
7616
- };
7617
- errors: {
7618
- name: string;
7619
- }[];
7620
- };
7621
- };
7622
- };
7623
7643
  AppBskyUnspeccedSearchActorsSkeleton: {
7624
7644
  lexicon: number;
7625
7645
  id: string;
@@ -7814,6 +7834,7 @@ export declare const ids: {
7814
7834
  ComAtprotoSyncNotifyOfUpdate: string;
7815
7835
  ComAtprotoSyncRequestCrawl: string;
7816
7836
  ComAtprotoSyncSubscribeRepos: string;
7837
+ ComAtprotoTempCheckSignupQueue: string;
7817
7838
  ComAtprotoTempFetchLabels: string;
7818
7839
  ComAtprotoTempImportRepo: string;
7819
7840
  ComAtprotoTempPushBlob: string;
@@ -7882,7 +7903,6 @@ export declare const ids: {
7882
7903
  AppBskyUnspeccedDefs: string;
7883
7904
  AppBskyUnspeccedGetPopularFeedGenerators: string;
7884
7905
  AppBskyUnspeccedGetTaggedSuggestions: string;
7885
- AppBskyUnspeccedGetTimelineSkeleton: string;
7886
7906
  AppBskyUnspeccedSearchActorsSkeleton: string;
7887
7907
  AppBskyUnspeccedSearchPostsSkeleton: string;
7888
7908
  };
@@ -12,7 +12,7 @@ export declare function isStatusAttr(v: unknown): v is StatusAttr;
12
12
  export declare function validateStatusAttr(v: unknown): ValidationResult;
13
13
  export interface ModEventView {
14
14
  id: number;
15
- event: ModEventTakedown | ModEventReverseTakedown | ModEventComment | ModEventReport | ModEventLabel | ModEventAcknowledge | ModEventEscalate | ModEventMute | ModEventEmail | {
15
+ event: ModEventTakedown | ModEventReverseTakedown | ModEventComment | ModEventReport | ModEventLabel | ModEventAcknowledge | ModEventEscalate | ModEventMute | ModEventEmail | ModEventResolveAppeal | {
16
16
  $type: string;
17
17
  [k: string]: unknown;
18
18
  };
@@ -31,7 +31,7 @@ export declare function isModEventView(v: unknown): v is ModEventView;
31
31
  export declare function validateModEventView(v: unknown): ValidationResult;
32
32
  export interface ModEventViewDetail {
33
33
  id: number;
34
- event: ModEventTakedown | ModEventReverseTakedown | ModEventComment | ModEventReport | ModEventLabel | ModEventAcknowledge | ModEventEscalate | ModEventMute | ModEventResolveAppeal | {
34
+ event: ModEventTakedown | ModEventReverseTakedown | ModEventComment | ModEventReport | ModEventLabel | ModEventAcknowledge | ModEventEscalate | ModEventMute | ModEventEmail | ModEventResolveAppeal | {
35
35
  $type: string;
36
36
  [k: string]: unknown;
37
37
  };
@@ -4,9 +4,16 @@ export interface QueryParams {
4
4
  types?: string[];
5
5
  createdBy?: string;
6
6
  sortDirection?: 'asc' | 'desc';
7
+ createdAfter?: string;
8
+ createdBefore?: string;
7
9
  subject?: string;
8
10
  includeAllUserRecords?: boolean;
9
11
  limit?: number;
12
+ hasComment?: boolean;
13
+ comment?: string;
14
+ addedLabels?: string[];
15
+ removedLabels?: string[];
16
+ reportTypes?: string[];
10
17
  cursor?: string;
11
18
  }
12
19
  export type InputSchema = undefined;
@@ -1,13 +1,11 @@
1
- import { Headers, XRPCError } from '@atproto/xrpc';
2
- import * as AppBskyFeedDefs from '../feed/defs';
1
+ import { Headers } from '@atproto/xrpc';
3
2
  export interface QueryParams {
4
- limit?: number;
5
- cursor?: string;
6
3
  }
7
4
  export type InputSchema = undefined;
8
5
  export interface OutputSchema {
9
- cursor?: string;
10
- feed: AppBskyFeedDefs.SkeletonFeedPost[];
6
+ activated: boolean;
7
+ placeInQueue?: number;
8
+ estimatedTimeMs?: number;
11
9
  [k: string]: unknown;
12
10
  }
13
11
  export interface CallOptions {
@@ -18,7 +16,4 @@ export interface Response {
18
16
  headers: Headers;
19
17
  data: OutputSchema;
20
18
  }
21
- export declare class UnknownFeedError extends XRPCError {
22
- constructor(src: XRPCError);
23
- }
24
19
  export declare function toKnownErr(e: any): any;