@atproto/bsky 0.0.71 → 0.0.72
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 +9 -0
- package/dist/lexicon/lexicons.d.ts +0 -36
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +0 -36
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/proto/bsky_connect.d.ts +1 -10
- package/dist/proto/bsky_connect.d.ts.map +1 -1
- package/dist/proto/bsky_connect.js +0 -9
- package/dist/proto/bsky_connect.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +0 -34
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +4 -112
- package/dist/proto/bsky_pb.js.map +1 -1
- package/package.json +5 -5
- package/proto/bsky.proto +0 -9
- package/src/lexicon/lexicons.ts +0 -37
- package/src/proto/bsky_connect.ts +0 -11
- package/src/proto/bsky_pb.ts +0 -116
- package/dist/lexicon/types/app/bsky/feed/detach.d.ts +0 -15
- package/dist/lexicon/types/app/bsky/feed/detach.d.ts.map +0 -1
- package/dist/lexicon/types/app/bsky/feed/detach.js +0 -17
- package/dist/lexicon/types/app/bsky/feed/detach.js.map +0 -1
- package/src/lexicon/types/app/bsky/feed/detach.ts +0 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/bsky",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.72",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Reference implementation of app.bsky App View (Bluesky API)",
|
|
6
6
|
"keywords": [
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"structured-headers": "^1.0.1",
|
|
41
41
|
"typed-emitter": "^2.1.0",
|
|
42
42
|
"uint8arrays": "3.0.0",
|
|
43
|
-
"@atproto/api": "^0.12.
|
|
43
|
+
"@atproto/api": "^0.12.28",
|
|
44
44
|
"@atproto/common": "^0.4.1",
|
|
45
45
|
"@atproto/crypto": "^0.4.0",
|
|
46
46
|
"@atproto/identity": "^0.4.0",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"axios": "^0.27.2",
|
|
63
63
|
"jest": "^28.1.2",
|
|
64
64
|
"ts-node": "^10.8.2",
|
|
65
|
-
"@atproto/api": "^0.12.
|
|
65
|
+
"@atproto/api": "^0.12.28",
|
|
66
66
|
"@atproto/lex-cli": "^0.4.0",
|
|
67
|
-
"@atproto/pds": "^0.4.
|
|
67
|
+
"@atproto/pds": "^0.4.45",
|
|
68
68
|
"@atproto/xrpc": "^0.5.0"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"start": "node --enable-source-maps dist/bin.js",
|
|
74
74
|
"test": "../dev-infra/with-test-redis-and-db.sh jest",
|
|
75
75
|
"test:log": "tail -50 test.log | pino-pretty",
|
|
76
|
-
"test:updateSnapshot": "jest --updateSnapshot",
|
|
76
|
+
"test:updateSnapshot": "../dev-infra/with-test-redis-and-db.sh jest --updateSnapshot",
|
|
77
77
|
"migration:create": "ts-node ./bin/migration-create.ts",
|
|
78
78
|
"buf:gen": "buf generate ../bsync/proto && buf generate ./proto"
|
|
79
79
|
}
|
package/proto/bsky.proto
CHANGED
|
@@ -122,14 +122,6 @@ message GetThreadGateRecordsResponse {
|
|
|
122
122
|
repeated Record records = 1;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
message GetDetachRecordsRequest {
|
|
126
|
-
repeated string uris = 1;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
message GetDetachRecordsResponse {
|
|
130
|
-
repeated Record records = 1;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
125
|
message GetLabelerRecordsRequest {
|
|
134
126
|
repeated string uris = 1;
|
|
135
127
|
}
|
|
@@ -1076,7 +1068,6 @@ service Service {
|
|
|
1076
1068
|
rpc GetActorChatDeclarationRecords(GetActorChatDeclarationRecordsRequest) returns (GetActorChatDeclarationRecordsResponse);
|
|
1077
1069
|
rpc GetRepostRecords(GetRepostRecordsRequest) returns (GetRepostRecordsResponse);
|
|
1078
1070
|
rpc GetThreadGateRecords(GetThreadGateRecordsRequest) returns (GetThreadGateRecordsResponse);
|
|
1079
|
-
rpc GetDetachRecords(GetDetachRecordsRequest) returns (GetDetachRecordsResponse);
|
|
1080
1071
|
rpc GetLabelerRecords(GetLabelerRecordsRequest) returns (GetLabelerRecordsResponse);
|
|
1081
1072
|
rpc GetStarterPackRecords(GetStarterPackRecordsRequest) returns (GetStarterPackRecordsResponse);
|
|
1082
1073
|
|
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -5596,42 +5596,6 @@ export const schemaDict = {
|
|
|
5596
5596
|
},
|
|
5597
5597
|
},
|
|
5598
5598
|
},
|
|
5599
|
-
AppBskyFeedDetach: {
|
|
5600
|
-
lexicon: 1,
|
|
5601
|
-
id: 'app.bsky.feed.detach',
|
|
5602
|
-
defs: {
|
|
5603
|
-
main: {
|
|
5604
|
-
type: 'record',
|
|
5605
|
-
key: 'tid',
|
|
5606
|
-
description:
|
|
5607
|
-
'Record defining post URIs detached from a root post. The record key (rkey) of the detach record must match the record key of the root post in question, and that record must be in the same repository.',
|
|
5608
|
-
record: {
|
|
5609
|
-
type: 'object',
|
|
5610
|
-
required: ['post', 'targets', 'updatedAt'],
|
|
5611
|
-
properties: {
|
|
5612
|
-
post: {
|
|
5613
|
-
type: 'string',
|
|
5614
|
-
format: 'at-uri',
|
|
5615
|
-
description: 'Reference (AT-URI) to the post record.',
|
|
5616
|
-
},
|
|
5617
|
-
targets: {
|
|
5618
|
-
type: 'array',
|
|
5619
|
-
maxLength: 50,
|
|
5620
|
-
items: {
|
|
5621
|
-
type: 'string',
|
|
5622
|
-
format: 'at-uri',
|
|
5623
|
-
},
|
|
5624
|
-
description: 'List of detached post URIs.',
|
|
5625
|
-
},
|
|
5626
|
-
updatedAt: {
|
|
5627
|
-
type: 'string',
|
|
5628
|
-
format: 'datetime',
|
|
5629
|
-
},
|
|
5630
|
-
},
|
|
5631
|
-
},
|
|
5632
|
-
},
|
|
5633
|
-
},
|
|
5634
|
-
},
|
|
5635
5599
|
AppBskyFeedGenerator: {
|
|
5636
5600
|
lexicon: 1,
|
|
5637
5601
|
id: 'app.bsky.feed.generator',
|
|
@@ -10080,7 +10044,6 @@ export const ids = {
|
|
|
10080
10044
|
AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia',
|
|
10081
10045
|
AppBskyFeedDefs: 'app.bsky.feed.defs',
|
|
10082
10046
|
AppBskyFeedDescribeFeedGenerator: 'app.bsky.feed.describeFeedGenerator',
|
|
10083
|
-
AppBskyFeedDetach: 'app.bsky.feed.detach',
|
|
10084
10047
|
AppBskyFeedGenerator: 'app.bsky.feed.generator',
|
|
10085
10048
|
AppBskyFeedGetActorFeeds: 'app.bsky.feed.getActorFeeds',
|
|
10086
10049
|
AppBskyFeedGetActorLikes: 'app.bsky.feed.getActorLikes',
|
|
@@ -66,8 +66,6 @@ import {
|
|
|
66
66
|
GetBlocksResponse,
|
|
67
67
|
GetCountsForUsersRequest,
|
|
68
68
|
GetCountsForUsersResponse,
|
|
69
|
-
GetDetachRecordsRequest,
|
|
70
|
-
GetDetachRecordsResponse,
|
|
71
69
|
GetDidsByHandlesRequest,
|
|
72
70
|
GetDidsByHandlesResponse,
|
|
73
71
|
GetFeedGeneratorRecordsRequest,
|
|
@@ -311,15 +309,6 @@ export const Service = {
|
|
|
311
309
|
O: GetThreadGateRecordsResponse,
|
|
312
310
|
kind: MethodKind.Unary,
|
|
313
311
|
},
|
|
314
|
-
/**
|
|
315
|
-
* @generated from rpc bsky.Service.GetDetachRecords
|
|
316
|
-
*/
|
|
317
|
-
getDetachRecords: {
|
|
318
|
-
name: 'GetDetachRecords',
|
|
319
|
-
I: GetDetachRecordsRequest,
|
|
320
|
-
O: GetDetachRecordsResponse,
|
|
321
|
-
kind: MethodKind.Unary,
|
|
322
|
-
},
|
|
323
312
|
/**
|
|
324
313
|
* @generated from rpc bsky.Service.GetLabelerRecords
|
|
325
314
|
*/
|
package/src/proto/bsky_pb.ts
CHANGED
|
@@ -1608,122 +1608,6 @@ export class GetThreadGateRecordsResponse extends Message<GetThreadGateRecordsRe
|
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
1610
|
|
|
1611
|
-
/**
|
|
1612
|
-
* @generated from message bsky.GetDetachRecordsRequest
|
|
1613
|
-
*/
|
|
1614
|
-
export class GetDetachRecordsRequest extends Message<GetDetachRecordsRequest> {
|
|
1615
|
-
/**
|
|
1616
|
-
* @generated from field: repeated string uris = 1;
|
|
1617
|
-
*/
|
|
1618
|
-
uris: string[] = []
|
|
1619
|
-
|
|
1620
|
-
constructor(data?: PartialMessage<GetDetachRecordsRequest>) {
|
|
1621
|
-
super()
|
|
1622
|
-
proto3.util.initPartial(data, this)
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
static readonly runtime: typeof proto3 = proto3
|
|
1626
|
-
static readonly typeName = 'bsky.GetDetachRecordsRequest'
|
|
1627
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1628
|
-
{
|
|
1629
|
-
no: 1,
|
|
1630
|
-
name: 'uris',
|
|
1631
|
-
kind: 'scalar',
|
|
1632
|
-
T: 9 /* ScalarType.STRING */,
|
|
1633
|
-
repeated: true,
|
|
1634
|
-
},
|
|
1635
|
-
])
|
|
1636
|
-
|
|
1637
|
-
static fromBinary(
|
|
1638
|
-
bytes: Uint8Array,
|
|
1639
|
-
options?: Partial<BinaryReadOptions>,
|
|
1640
|
-
): GetDetachRecordsRequest {
|
|
1641
|
-
return new GetDetachRecordsRequest().fromBinary(bytes, options)
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
static fromJson(
|
|
1645
|
-
jsonValue: JsonValue,
|
|
1646
|
-
options?: Partial<JsonReadOptions>,
|
|
1647
|
-
): GetDetachRecordsRequest {
|
|
1648
|
-
return new GetDetachRecordsRequest().fromJson(jsonValue, options)
|
|
1649
|
-
}
|
|
1650
|
-
|
|
1651
|
-
static fromJsonString(
|
|
1652
|
-
jsonString: string,
|
|
1653
|
-
options?: Partial<JsonReadOptions>,
|
|
1654
|
-
): GetDetachRecordsRequest {
|
|
1655
|
-
return new GetDetachRecordsRequest().fromJsonString(jsonString, options)
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
static equals(
|
|
1659
|
-
a:
|
|
1660
|
-
| GetDetachRecordsRequest
|
|
1661
|
-
| PlainMessage<GetDetachRecordsRequest>
|
|
1662
|
-
| undefined,
|
|
1663
|
-
b:
|
|
1664
|
-
| GetDetachRecordsRequest
|
|
1665
|
-
| PlainMessage<GetDetachRecordsRequest>
|
|
1666
|
-
| undefined,
|
|
1667
|
-
): boolean {
|
|
1668
|
-
return proto3.util.equals(GetDetachRecordsRequest, a, b)
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
/**
|
|
1673
|
-
* @generated from message bsky.GetDetachRecordsResponse
|
|
1674
|
-
*/
|
|
1675
|
-
export class GetDetachRecordsResponse extends Message<GetDetachRecordsResponse> {
|
|
1676
|
-
/**
|
|
1677
|
-
* @generated from field: repeated bsky.Record records = 1;
|
|
1678
|
-
*/
|
|
1679
|
-
records: Record[] = []
|
|
1680
|
-
|
|
1681
|
-
constructor(data?: PartialMessage<GetDetachRecordsResponse>) {
|
|
1682
|
-
super()
|
|
1683
|
-
proto3.util.initPartial(data, this)
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
static readonly runtime: typeof proto3 = proto3
|
|
1687
|
-
static readonly typeName = 'bsky.GetDetachRecordsResponse'
|
|
1688
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1689
|
-
{ no: 1, name: 'records', kind: 'message', T: Record, repeated: true },
|
|
1690
|
-
])
|
|
1691
|
-
|
|
1692
|
-
static fromBinary(
|
|
1693
|
-
bytes: Uint8Array,
|
|
1694
|
-
options?: Partial<BinaryReadOptions>,
|
|
1695
|
-
): GetDetachRecordsResponse {
|
|
1696
|
-
return new GetDetachRecordsResponse().fromBinary(bytes, options)
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
static fromJson(
|
|
1700
|
-
jsonValue: JsonValue,
|
|
1701
|
-
options?: Partial<JsonReadOptions>,
|
|
1702
|
-
): GetDetachRecordsResponse {
|
|
1703
|
-
return new GetDetachRecordsResponse().fromJson(jsonValue, options)
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
static fromJsonString(
|
|
1707
|
-
jsonString: string,
|
|
1708
|
-
options?: Partial<JsonReadOptions>,
|
|
1709
|
-
): GetDetachRecordsResponse {
|
|
1710
|
-
return new GetDetachRecordsResponse().fromJsonString(jsonString, options)
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
static equals(
|
|
1714
|
-
a:
|
|
1715
|
-
| GetDetachRecordsResponse
|
|
1716
|
-
| PlainMessage<GetDetachRecordsResponse>
|
|
1717
|
-
| undefined,
|
|
1718
|
-
b:
|
|
1719
|
-
| GetDetachRecordsResponse
|
|
1720
|
-
| PlainMessage<GetDetachRecordsResponse>
|
|
1721
|
-
| undefined,
|
|
1722
|
-
): boolean {
|
|
1723
|
-
return proto3.util.equals(GetDetachRecordsResponse, a, b)
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
1611
|
/**
|
|
1728
1612
|
* @generated from message bsky.GetLabelerRecordsRequest
|
|
1729
1613
|
*/
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
5
|
-
export interface Record {
|
|
6
|
-
/** Reference (AT-URI) to the post record. */
|
|
7
|
-
post: string;
|
|
8
|
-
/** List of detached post URIs. */
|
|
9
|
-
targets: string[];
|
|
10
|
-
updatedAt: string;
|
|
11
|
-
[k: string]: unknown;
|
|
12
|
-
}
|
|
13
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
14
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
15
|
-
//# sourceMappingURL=detach.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"detach.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/detach.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAK5D,MAAM,WAAW,MAAM;IACrB,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAA;IACZ,kCAAkC;IAClC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAOhD;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAE3D"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateRecord = exports.isRecord = void 0;
|
|
4
|
-
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
-
const util_1 = require("../../../../util");
|
|
6
|
-
function isRecord(v) {
|
|
7
|
-
return ((0, util_1.isObj)(v) &&
|
|
8
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
9
|
-
(v.$type === 'app.bsky.feed.detach#main' ||
|
|
10
|
-
v.$type === 'app.bsky.feed.detach'));
|
|
11
|
-
}
|
|
12
|
-
exports.isRecord = isRecord;
|
|
13
|
-
function validateRecord(v) {
|
|
14
|
-
return lexicons_1.lexicons.validate('app.bsky.feed.detach#main', v);
|
|
15
|
-
}
|
|
16
|
-
exports.validateRecord = validateRecord;
|
|
17
|
-
//# sourceMappingURL=detach.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"detach.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/detach.ts"],"names":[],"mappings":";;;AAIA,mDAA+C;AAC/C,2CAAiD;AAYjD,SAAgB,QAAQ,CAAC,CAAU;IACjC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,CAAC,KAAK,KAAK,2BAA2B;YACtC,CAAC,CAAC,KAAK,KAAK,sBAAsB,CAAC,CACtC,CAAA;AACH,CAAC;AAPD,4BAOC;AAED,SAAgB,cAAc,CAAC,CAAU;IACvC,OAAO,mBAAQ,CAAC,QAAQ,CAAC,2BAA2B,EAAE,CAAC,CAAC,CAAA;AAC1D,CAAC;AAFD,wCAEC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
-
import { lexicons } from '../../../../lexicons'
|
|
6
|
-
import { isObj, hasProp } from '../../../../util'
|
|
7
|
-
import { CID } from 'multiformats/cid'
|
|
8
|
-
|
|
9
|
-
export interface Record {
|
|
10
|
-
/** Reference (AT-URI) to the post record. */
|
|
11
|
-
post: string
|
|
12
|
-
/** List of detached post URIs. */
|
|
13
|
-
targets: string[]
|
|
14
|
-
updatedAt: string
|
|
15
|
-
[k: string]: unknown
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function isRecord(v: unknown): v is Record {
|
|
19
|
-
return (
|
|
20
|
-
isObj(v) &&
|
|
21
|
-
hasProp(v, '$type') &&
|
|
22
|
-
(v.$type === 'app.bsky.feed.detach#main' ||
|
|
23
|
-
v.$type === 'app.bsky.feed.detach')
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function validateRecord(v: unknown): ValidationResult {
|
|
28
|
-
return lexicons.validate('app.bsky.feed.detach#main', v)
|
|
29
|
-
}
|