@atproto/api 0.20.42 → 0.21.0
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 +35 -0
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +10 -3
- package/dist/agent.js.map +1 -1
- package/dist/client/index.d.ts +31 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +40 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +156 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +80 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +2 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/app/bsky/graph/defs.d.ts +4 -0
- package/dist/client/types/app/bsky/graph/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/defs.js.map +1 -1
- package/dist/client/types/app/bsky/graph/referencelistoptout.d.ts +15 -0
- package/dist/client/types/app/bsky/graph/referencelistoptout.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/referencelistoptout.js +18 -0
- package/dist/client/types/app/bsky/graph/referencelistoptout.js.map +1 -0
- package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +1 -0
- package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts.map +1 -1
- package/dist/client/types/app/bsky/notification/getUnreadCount.js.map +1 -1
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts +3 -0
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
- package/dist/client/types/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/getAccountPreferences.d.ts +23 -0
- package/dist/client/types/tools/ozone/moderation/getAccountPreferences.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/moderation/getAccountPreferences.js +14 -0
- package/dist/client/types/tools/ozone/moderation/getAccountPreferences.js.map +1 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +7 -7
|
@@ -602,6 +602,11 @@ export declare const schemaDict: {
|
|
|
602
602
|
readonly type: 'object';
|
|
603
603
|
readonly required: ["tags"];
|
|
604
604
|
readonly properties: {
|
|
605
|
+
readonly updatedAt: {
|
|
606
|
+
readonly type: 'string';
|
|
607
|
+
readonly format: 'datetime';
|
|
608
|
+
readonly description: 'The timestamp when the account owner last updated their interests.';
|
|
609
|
+
};
|
|
605
610
|
readonly tags: {
|
|
606
611
|
readonly type: 'array';
|
|
607
612
|
readonly maxLength: 100;
|
|
@@ -5425,6 +5430,11 @@ export declare const schemaDict: {
|
|
|
5425
5430
|
readonly type: 'ref';
|
|
5426
5431
|
readonly ref: 'lex:app.bsky.actor.defs#profileView';
|
|
5427
5432
|
};
|
|
5433
|
+
readonly subjectOptedOut: {
|
|
5434
|
+
readonly type: 'boolean';
|
|
5435
|
+
readonly const: true;
|
|
5436
|
+
readonly description: 'Set to true when the subject has opted out of appearing in the reference list. Only set when the viewer owns the list.';
|
|
5437
|
+
};
|
|
5428
5438
|
};
|
|
5429
5439
|
};
|
|
5430
5440
|
readonly starterPackView: {
|
|
@@ -5557,6 +5567,11 @@ export declare const schemaDict: {
|
|
|
5557
5567
|
readonly type: 'string';
|
|
5558
5568
|
readonly format: 'at-uri';
|
|
5559
5569
|
};
|
|
5570
|
+
readonly referenceListOptOut: {
|
|
5571
|
+
readonly type: 'string';
|
|
5572
|
+
readonly format: 'at-uri';
|
|
5573
|
+
readonly description: "The authenticated viewer's app.bsky.graph.referencelistoptout record URI for this reference list. Only set for reference lists. A client can delete this record to undo the opt-out.";
|
|
5574
|
+
};
|
|
5560
5575
|
};
|
|
5561
5576
|
};
|
|
5562
5577
|
readonly notFoundActor: {
|
|
@@ -6640,6 +6655,32 @@ export declare const schemaDict: {
|
|
|
6640
6655
|
};
|
|
6641
6656
|
};
|
|
6642
6657
|
};
|
|
6658
|
+
readonly AppBskyGraphReferencelistoptout: {
|
|
6659
|
+
readonly lexicon: 1;
|
|
6660
|
+
readonly id: 'app.bsky.graph.referencelistoptout';
|
|
6661
|
+
readonly defs: {
|
|
6662
|
+
readonly main: {
|
|
6663
|
+
readonly type: 'record';
|
|
6664
|
+
readonly description: "Record requesting that its author be omitted from the public presentation of a reference list. This record is only enforced when the subject list's current purpose is app.bsky.graph.defs#referencelist. AppView indexes at most one record per actor and list pair, and ignores duplicate records.";
|
|
6665
|
+
readonly key: 'tid';
|
|
6666
|
+
readonly record: {
|
|
6667
|
+
readonly type: 'object';
|
|
6668
|
+
readonly required: ["subject", "createdAt"];
|
|
6669
|
+
readonly properties: {
|
|
6670
|
+
readonly subject: {
|
|
6671
|
+
readonly type: 'string';
|
|
6672
|
+
readonly format: 'at-uri';
|
|
6673
|
+
readonly description: 'Canonical, DID-based AT URI of the app.bsky.graph.list record from which the author requests omission.';
|
|
6674
|
+
};
|
|
6675
|
+
readonly createdAt: {
|
|
6676
|
+
readonly type: 'string';
|
|
6677
|
+
readonly format: 'datetime';
|
|
6678
|
+
};
|
|
6679
|
+
};
|
|
6680
|
+
};
|
|
6681
|
+
};
|
|
6682
|
+
};
|
|
6683
|
+
};
|
|
6643
6684
|
readonly AppBskyGraphSearchStarterPacks: {
|
|
6644
6685
|
readonly lexicon: 1;
|
|
6645
6686
|
readonly id: 'app.bsky.graph.searchStarterPacks';
|
|
@@ -7342,6 +7383,7 @@ export declare const schemaDict: {
|
|
|
7342
7383
|
readonly properties: {
|
|
7343
7384
|
readonly priority: {
|
|
7344
7385
|
readonly type: 'boolean';
|
|
7386
|
+
readonly description: 'Deprecated: this parameter is ignored.';
|
|
7345
7387
|
};
|
|
7346
7388
|
readonly seenAt: {
|
|
7347
7389
|
readonly type: 'string';
|
|
@@ -7433,6 +7475,7 @@ export declare const schemaDict: {
|
|
|
7433
7475
|
};
|
|
7434
7476
|
readonly priority: {
|
|
7435
7477
|
readonly type: 'boolean';
|
|
7478
|
+
readonly description: 'Deprecated: this parameter is ignored.';
|
|
7436
7479
|
};
|
|
7437
7480
|
readonly cursor: {
|
|
7438
7481
|
readonly type: 'string';
|
|
@@ -7440,6 +7483,7 @@ export declare const schemaDict: {
|
|
|
7440
7483
|
readonly seenAt: {
|
|
7441
7484
|
readonly type: 'string';
|
|
7442
7485
|
readonly format: 'datetime';
|
|
7486
|
+
readonly description: 'Deprecated: this parameter is unsupported and will cause an error.';
|
|
7443
7487
|
};
|
|
7444
7488
|
};
|
|
7445
7489
|
};
|
|
@@ -7461,6 +7505,7 @@ export declare const schemaDict: {
|
|
|
7461
7505
|
};
|
|
7462
7506
|
readonly priority: {
|
|
7463
7507
|
readonly type: 'boolean';
|
|
7508
|
+
readonly description: 'Deprecated: this field is no longer populated.';
|
|
7464
7509
|
};
|
|
7465
7510
|
readonly seenAt: {
|
|
7466
7511
|
readonly type: 'string';
|
|
@@ -20462,6 +20507,39 @@ export declare const schemaDict: {
|
|
|
20462
20507
|
};
|
|
20463
20508
|
};
|
|
20464
20509
|
};
|
|
20510
|
+
readonly ToolsOzoneModerationGetAccountPreferences: {
|
|
20511
|
+
readonly lexicon: 1;
|
|
20512
|
+
readonly id: 'tools.ozone.moderation.getAccountPreferences';
|
|
20513
|
+
readonly defs: {
|
|
20514
|
+
readonly main: {
|
|
20515
|
+
readonly type: 'query';
|
|
20516
|
+
readonly description: 'Get private preferences for an account. Requires moderator or admin auth.';
|
|
20517
|
+
readonly parameters: {
|
|
20518
|
+
readonly type: 'params';
|
|
20519
|
+
readonly required: ["did"];
|
|
20520
|
+
readonly properties: {
|
|
20521
|
+
readonly did: {
|
|
20522
|
+
readonly type: 'string';
|
|
20523
|
+
readonly format: 'did';
|
|
20524
|
+
};
|
|
20525
|
+
};
|
|
20526
|
+
};
|
|
20527
|
+
readonly output: {
|
|
20528
|
+
readonly encoding: 'application/json';
|
|
20529
|
+
readonly schema: {
|
|
20530
|
+
readonly type: 'object';
|
|
20531
|
+
readonly required: ["preferences"];
|
|
20532
|
+
readonly properties: {
|
|
20533
|
+
readonly preferences: {
|
|
20534
|
+
readonly type: 'ref';
|
|
20535
|
+
readonly ref: 'lex:app.bsky.actor.defs#preferences';
|
|
20536
|
+
};
|
|
20537
|
+
};
|
|
20538
|
+
};
|
|
20539
|
+
};
|
|
20540
|
+
};
|
|
20541
|
+
};
|
|
20542
|
+
};
|
|
20465
20543
|
readonly ToolsOzoneModerationGetAccountTimeline: {
|
|
20466
20544
|
readonly lexicon: 1;
|
|
20467
20545
|
readonly id: 'tools.ozone.moderation.getAccountTimeline';
|
|
@@ -25588,6 +25666,11 @@ export declare const schemas: ({
|
|
|
25588
25666
|
readonly type: 'object';
|
|
25589
25667
|
readonly required: ["tags"];
|
|
25590
25668
|
readonly properties: {
|
|
25669
|
+
readonly updatedAt: {
|
|
25670
|
+
readonly type: 'string';
|
|
25671
|
+
readonly format: 'datetime';
|
|
25672
|
+
readonly description: 'The timestamp when the account owner last updated their interests.';
|
|
25673
|
+
};
|
|
25591
25674
|
readonly tags: {
|
|
25592
25675
|
readonly type: 'array';
|
|
25593
25676
|
readonly maxLength: 100;
|
|
@@ -30344,6 +30427,11 @@ export declare const schemas: ({
|
|
|
30344
30427
|
readonly type: 'ref';
|
|
30345
30428
|
readonly ref: 'lex:app.bsky.actor.defs#profileView';
|
|
30346
30429
|
};
|
|
30430
|
+
readonly subjectOptedOut: {
|
|
30431
|
+
readonly type: 'boolean';
|
|
30432
|
+
readonly const: true;
|
|
30433
|
+
readonly description: 'Set to true when the subject has opted out of appearing in the reference list. Only set when the viewer owns the list.';
|
|
30434
|
+
};
|
|
30347
30435
|
};
|
|
30348
30436
|
};
|
|
30349
30437
|
readonly starterPackView: {
|
|
@@ -30476,6 +30564,11 @@ export declare const schemas: ({
|
|
|
30476
30564
|
readonly type: 'string';
|
|
30477
30565
|
readonly format: 'at-uri';
|
|
30478
30566
|
};
|
|
30567
|
+
readonly referenceListOptOut: {
|
|
30568
|
+
readonly type: 'string';
|
|
30569
|
+
readonly format: 'at-uri';
|
|
30570
|
+
readonly description: "The authenticated viewer's app.bsky.graph.referencelistoptout record URI for this reference list. Only set for reference lists. A client can delete this record to undo the opt-out.";
|
|
30571
|
+
};
|
|
30479
30572
|
};
|
|
30480
30573
|
};
|
|
30481
30574
|
readonly notFoundActor: {
|
|
@@ -31535,6 +31628,31 @@ export declare const schemas: ({
|
|
|
31535
31628
|
};
|
|
31536
31629
|
};
|
|
31537
31630
|
};
|
|
31631
|
+
} | {
|
|
31632
|
+
readonly lexicon: 1;
|
|
31633
|
+
readonly id: 'app.bsky.graph.referencelistoptout';
|
|
31634
|
+
readonly defs: {
|
|
31635
|
+
readonly main: {
|
|
31636
|
+
readonly type: 'record';
|
|
31637
|
+
readonly description: "Record requesting that its author be omitted from the public presentation of a reference list. This record is only enforced when the subject list's current purpose is app.bsky.graph.defs#referencelist. AppView indexes at most one record per actor and list pair, and ignores duplicate records.";
|
|
31638
|
+
readonly key: 'tid';
|
|
31639
|
+
readonly record: {
|
|
31640
|
+
readonly type: 'object';
|
|
31641
|
+
readonly required: ["subject", "createdAt"];
|
|
31642
|
+
readonly properties: {
|
|
31643
|
+
readonly subject: {
|
|
31644
|
+
readonly type: 'string';
|
|
31645
|
+
readonly format: 'at-uri';
|
|
31646
|
+
readonly description: 'Canonical, DID-based AT URI of the app.bsky.graph.list record from which the author requests omission.';
|
|
31647
|
+
};
|
|
31648
|
+
readonly createdAt: {
|
|
31649
|
+
readonly type: 'string';
|
|
31650
|
+
readonly format: 'datetime';
|
|
31651
|
+
};
|
|
31652
|
+
};
|
|
31653
|
+
};
|
|
31654
|
+
};
|
|
31655
|
+
};
|
|
31538
31656
|
} | {
|
|
31539
31657
|
readonly lexicon: 1;
|
|
31540
31658
|
readonly id: 'app.bsky.graph.searchStarterPacks';
|
|
@@ -32224,6 +32342,7 @@ export declare const schemas: ({
|
|
|
32224
32342
|
readonly properties: {
|
|
32225
32343
|
readonly priority: {
|
|
32226
32344
|
readonly type: 'boolean';
|
|
32345
|
+
readonly description: 'Deprecated: this parameter is ignored.';
|
|
32227
32346
|
};
|
|
32228
32347
|
readonly seenAt: {
|
|
32229
32348
|
readonly type: 'string';
|
|
@@ -32313,6 +32432,7 @@ export declare const schemas: ({
|
|
|
32313
32432
|
};
|
|
32314
32433
|
readonly priority: {
|
|
32315
32434
|
readonly type: 'boolean';
|
|
32435
|
+
readonly description: 'Deprecated: this parameter is ignored.';
|
|
32316
32436
|
};
|
|
32317
32437
|
readonly cursor: {
|
|
32318
32438
|
readonly type: 'string';
|
|
@@ -32320,6 +32440,7 @@ export declare const schemas: ({
|
|
|
32320
32440
|
readonly seenAt: {
|
|
32321
32441
|
readonly type: 'string';
|
|
32322
32442
|
readonly format: 'datetime';
|
|
32443
|
+
readonly description: 'Deprecated: this parameter is unsupported and will cause an error.';
|
|
32323
32444
|
};
|
|
32324
32445
|
};
|
|
32325
32446
|
};
|
|
@@ -32341,6 +32462,7 @@ export declare const schemas: ({
|
|
|
32341
32462
|
};
|
|
32342
32463
|
readonly priority: {
|
|
32343
32464
|
readonly type: 'boolean';
|
|
32465
|
+
readonly description: 'Deprecated: this field is no longer populated.';
|
|
32344
32466
|
};
|
|
32345
32467
|
readonly seenAt: {
|
|
32346
32468
|
readonly type: 'string';
|
|
@@ -45132,6 +45254,38 @@ export declare const schemas: ({
|
|
|
45132
45254
|
};
|
|
45133
45255
|
};
|
|
45134
45256
|
};
|
|
45257
|
+
} | {
|
|
45258
|
+
readonly lexicon: 1;
|
|
45259
|
+
readonly id: 'tools.ozone.moderation.getAccountPreferences';
|
|
45260
|
+
readonly defs: {
|
|
45261
|
+
readonly main: {
|
|
45262
|
+
readonly type: 'query';
|
|
45263
|
+
readonly description: 'Get private preferences for an account. Requires moderator or admin auth.';
|
|
45264
|
+
readonly parameters: {
|
|
45265
|
+
readonly type: 'params';
|
|
45266
|
+
readonly required: ["did"];
|
|
45267
|
+
readonly properties: {
|
|
45268
|
+
readonly did: {
|
|
45269
|
+
readonly type: 'string';
|
|
45270
|
+
readonly format: 'did';
|
|
45271
|
+
};
|
|
45272
|
+
};
|
|
45273
|
+
};
|
|
45274
|
+
readonly output: {
|
|
45275
|
+
readonly encoding: 'application/json';
|
|
45276
|
+
readonly schema: {
|
|
45277
|
+
readonly type: 'object';
|
|
45278
|
+
readonly required: ["preferences"];
|
|
45279
|
+
readonly properties: {
|
|
45280
|
+
readonly preferences: {
|
|
45281
|
+
readonly type: 'ref';
|
|
45282
|
+
readonly ref: 'lex:app.bsky.actor.defs#preferences';
|
|
45283
|
+
};
|
|
45284
|
+
};
|
|
45285
|
+
};
|
|
45286
|
+
};
|
|
45287
|
+
};
|
|
45288
|
+
};
|
|
45135
45289
|
} | {
|
|
45136
45290
|
readonly lexicon: 1;
|
|
45137
45291
|
readonly id: 'tools.ozone.moderation.getAccountTimeline';
|
|
@@ -49692,6 +49846,7 @@ export declare const ids: {
|
|
|
49692
49846
|
readonly AppBskyGraphMuteActor: 'app.bsky.graph.muteActor';
|
|
49693
49847
|
readonly AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList';
|
|
49694
49848
|
readonly AppBskyGraphMuteThread: 'app.bsky.graph.muteThread';
|
|
49849
|
+
readonly AppBskyGraphReferencelistoptout: 'app.bsky.graph.referencelistoptout';
|
|
49695
49850
|
readonly AppBskyGraphSearchStarterPacks: 'app.bsky.graph.searchStarterPacks';
|
|
49696
49851
|
readonly AppBskyGraphSearchStarterPacksV2: 'app.bsky.graph.searchStarterPacksV2';
|
|
49697
49852
|
readonly AppBskyGraphStarterpack: 'app.bsky.graph.starterpack';
|
|
@@ -49917,6 +50072,7 @@ export declare const ids: {
|
|
|
49917
50072
|
readonly ToolsOzoneModerationCancelScheduledActions: 'tools.ozone.moderation.cancelScheduledActions';
|
|
49918
50073
|
readonly ToolsOzoneModerationDefs: 'tools.ozone.moderation.defs';
|
|
49919
50074
|
readonly ToolsOzoneModerationEmitEvent: 'tools.ozone.moderation.emitEvent';
|
|
50075
|
+
readonly ToolsOzoneModerationGetAccountPreferences: 'tools.ozone.moderation.getAccountPreferences';
|
|
49920
50076
|
readonly ToolsOzoneModerationGetAccountTimeline: 'tools.ozone.moderation.getAccountTimeline';
|
|
49921
50077
|
readonly ToolsOzoneModerationGetEvent: 'tools.ozone.moderation.getEvent';
|
|
49922
50078
|
readonly ToolsOzoneModerationGetRecord: 'tools.ozone.moderation.getRecord';
|