@atproto/bsky 0.0.156 → 0.0.158
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 +18 -0
- package/dist/api/app/bsky/notification/getPreferences.d.ts +4 -0
- package/dist/api/app/bsky/notification/getPreferences.d.ts.map +1 -0
- package/dist/api/app/bsky/notification/getPreferences.js +39 -0
- package/dist/api/app/bsky/notification/getPreferences.js.map +1 -0
- package/dist/api/app/bsky/notification/putPreferencesV2.d.ts +4 -0
- package/dist/api/app/bsky/notification/putPreferencesV2.d.ts.map +1 -0
- package/dist/api/app/bsky/notification/putPreferencesV2.js +47 -0
- package/dist/api/app/bsky/notification/putPreferencesV2.js.map +1 -0
- package/dist/api/app/bsky/notification/util.d.ts +9 -0
- package/dist/api/app/bsky/notification/util.d.ts.map +1 -0
- package/dist/api/app/bsky/notification/util.js +84 -0
- package/dist/api/app/bsky/notification/util.js.map +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +4 -0
- package/dist/api/index.js.map +1 -1
- package/dist/context.d.ts +3 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +3 -0
- package/dist/context.js.map +1 -1
- package/dist/data-plane/bsync/index.d.ts.map +1 -1
- package/dist/data-plane/bsync/index.js +84 -0
- package/dist/data-plane/bsync/index.js.map +1 -1
- package/dist/data-plane/server/db/database-schema.d.ts +2 -1
- package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
- package/dist/data-plane/server/db/db.d.ts +1 -0
- package/dist/data-plane/server/db/db.d.ts.map +1 -1
- package/dist/data-plane/server/db/db.js.map +1 -1
- package/dist/data-plane/server/db/index.d.ts +1 -0
- package/dist/data-plane/server/db/index.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.d.ts +4 -0
- package/dist/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.d.ts.map +1 -0
- package/dist/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.js +24 -0
- package/dist/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.js.map +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/index.js +2 -1
- package/dist/data-plane/server/db/migrations/index.js.map +1 -1
- package/dist/data-plane/server/db/tables/private-data.d.ts +13 -0
- package/dist/data-plane/server/db/tables/private-data.d.ts.map +1 -0
- package/dist/data-plane/server/db/tables/private-data.js +5 -0
- package/dist/data-plane/server/db/tables/private-data.js.map +1 -0
- package/dist/data-plane/server/db/tables/record.d.ts +2 -1
- package/dist/data-plane/server/db/tables/record.d.ts.map +1 -1
- package/dist/data-plane/server/db/tables/record.js.map +1 -1
- package/dist/data-plane/server/index.d.ts +2 -1
- package/dist/data-plane/server/index.d.ts.map +1 -1
- package/dist/data-plane/server/index.js.map +1 -1
- package/dist/data-plane/server/routes/index.d.ts.map +1 -1
- package/dist/data-plane/server/routes/index.js +2 -0
- package/dist/data-plane/server/routes/index.js.map +1 -1
- package/dist/data-plane/server/routes/private-data.d.ts +9 -0
- package/dist/data-plane/server/routes/private-data.d.ts.map +1 -0
- package/dist/data-plane/server/routes/private-data.js +64 -0
- package/dist/data-plane/server/routes/private-data.js.map +1 -0
- package/dist/data-plane/server/util.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/lexicon/index.d.ts +4 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +418 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +225 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/defs.d.ts +40 -0
- package/dist/lexicon/types/app/bsky/notification/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/defs.js +36 -0
- package/dist/lexicon/types/app/bsky/notification/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/getPreferences.d.ts +35 -0
- package/dist/lexicon/types/app/bsky/notification/getPreferences.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/getPreferences.js +7 -0
- package/dist/lexicon/types/app/bsky/notification/getPreferences.js.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.d.ts +52 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.js +7 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.js.map +1 -0
- package/dist/proto/bsky_connect.d.ts +10 -1
- package/dist/proto/bsky_connect.d.ts.map +1 -1
- package/dist/proto/bsky_connect.js +9 -0
- package/dist/proto/bsky_connect.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +238 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +703 -5
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/proto/bsync_pb.d.ts +10 -10
- package/dist/proto/bsync_pb.d.ts.map +1 -1
- package/dist/proto/bsync_pb.js +15 -15
- package/dist/proto/bsync_pb.js.map +1 -1
- package/dist/stash.d.ts +26 -0
- package/dist/stash.d.ts.map +1 -0
- package/dist/stash.js +56 -0
- package/dist/stash.js.map +1 -0
- package/package.json +8 -8
- package/proto/bsky.proto +62 -0
- package/src/api/app/bsky/notification/getPreferences.ts +50 -0
- package/src/api/app/bsky/notification/putPreferencesV2.ts +62 -0
- package/src/api/app/bsky/notification/util.ts +123 -0
- package/src/api/index.ts +4 -0
- package/src/context.ts +6 -0
- package/src/data-plane/bsync/index.ts +109 -1
- package/src/data-plane/server/db/database-schema.ts +3 -1
- package/src/data-plane/server/db/db.ts +2 -0
- package/src/data-plane/server/db/index.ts +1 -0
- package/src/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.ts +22 -0
- package/src/data-plane/server/db/migrations/index.ts +1 -0
- package/src/data-plane/server/db/tables/private-data.ts +13 -0
- package/src/data-plane/server/db/tables/record.ts +3 -1
- package/src/data-plane/server/index.ts +3 -1
- package/src/data-plane/server/routes/index.ts +2 -0
- package/src/data-plane/server/routes/private-data.ts +94 -0
- package/src/index.ts +4 -0
- package/src/lexicon/index.ts +24 -0
- package/src/lexicon/lexicons.ts +227 -0
- package/src/lexicon/types/app/bsky/notification/defs.ts +76 -0
- package/src/lexicon/types/app/bsky/notification/getPreferences.ts +52 -0
- package/src/lexicon/types/app/bsky/notification/putPreferencesV2.ts +69 -0
- package/src/proto/bsky_connect.ts +11 -0
- package/src/proto/bsky_pb.ts +675 -0
- package/src/proto/bsync_pb.ts +15 -15
- package/src/stash.ts +75 -0
- package/tests/stash.test.ts +156 -0
- package/tests/views/notifications.test.ts +221 -0
- package/tests/views/thread-v2.test.ts +31 -33
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
- package/tests/seed/thread-v2.ts +0 -874
- package/tests/seed/util.ts +0 -52
package/dist/proto/bsky_pb.js
CHANGED
|
@@ -4,12 +4,60 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.ClearThreadMutesResponse = exports.ClearThreadMutesRequest = exports.DeleteThreadMuteResponse = exports.DeleteThreadMuteRequest = exports.CreateThreadMuteResponse = exports.CreateThreadMuteRequest = exports.ClearActorMutelistSubscriptionsResponse = exports.ClearActorMutelistSubscriptionsRequest = exports.DeleteActorMutelistSubscriptionResponse = exports.DeleteActorMutelistSubscriptionRequest = exports.CreateActorMutelistSubscriptionResponse = exports.CreateActorMutelistSubscriptionRequest = exports.ClearActorMutesResponse = exports.ClearActorMutesRequest = exports.DeleteActorMuteResponse = void 0;
|
|
7
|
+
exports.VerificationIssued = exports.GetVerificationRecordsResponse = exports.GetVerificationRecordsRequest = exports.VerificationMeta = exports.GetFollowsResponse = exports.GetFollowsRequest = exports.GetFollowersResponse = exports.FollowInfo = exports.GetFollowersRequest = exports.GetActorFollowsActorsResponse = exports.GetActorFollowsActorsRequest = exports.GetStarterPackRecordsResponse = exports.GetStarterPackRecordsRequest = exports.GetAllLabelersResponse = exports.GetAllLabelersRequest = exports.GetLabelerRecordsResponse = exports.GetLabelerRecordsRequest = exports.GetPostgateRecordsResponse = exports.GetPostgateRecordsRequest = exports.GetThreadGateRecordsResponse = exports.GetThreadGateRecordsRequest = exports.GetRepostRecordsResponse = exports.GetRepostRecordsRequest = exports.GetStatusRecordsResponse = exports.GetStatusRecordsRequest = exports.GetActorChatDeclarationRecordsResponse = exports.GetActorChatDeclarationRecordsRequest = exports.GetProfileRecordsResponse = exports.GetProfileRecordsRequest = exports.GetPostRecordsResponse = exports.GetPostRecordsRequest = exports.PostRecordMeta = exports.GetListRecordsResponse = exports.GetListRecordsRequest = exports.GetListItemRecordsResponse = exports.GetListItemRecordsRequest = exports.GetListBlockRecordsResponse = exports.GetListBlockRecordsRequest = exports.GetLikeRecordsResponse = exports.GetLikeRecordsRequest = exports.GetFollowRecordsResponse = exports.GetFollowRecordsRequest = exports.GetFeedGeneratorRecordsResponse = exports.GetFeedGeneratorRecordsRequest = exports.GetBlockRecordsResponse = exports.GetBlockRecordsRequest = exports.Record = exports.FeedType = exports.ChatNotificationFilter = exports.NotificationFilter = void 0;
|
|
8
|
+
exports.GetListMembershipResponse = exports.GetListMembershipRequest = exports.GetListMembersResponse = exports.GetListMembersRequest = exports.ListItemInfo = exports.GetBlockExistenceResponse = exports.GetBlockExistenceRequest = exports.BlockExistence = exports.RelationshipPair = exports.GetRelationshipsResponse = exports.Relationships = exports.GetRelationshipsRequest = exports.GetDidsByHandlesResponse = exports.GetDidsByHandlesRequest = exports.GetActorsResponse = exports.ActorInfo = exports.GetActorsRequest = exports.GetActorRepostsResponse = exports.GetActorRepostsRequest = exports.GetRepostsByActorAndSubjectsResponse = exports.RecordRef = exports.GetRepostsByActorAndSubjectsRequest = exports.GetRepostsBySubjectResponse = exports.GetRepostsBySubjectRequest = exports.GetNewUserCountForRangeResponse = exports.GetNewUserCountForRangeRequest = exports.GetListCountsResponse = exports.GetListCountsRequest = exports.GetStarterPackCountsResponse = exports.GetStarterPackCountsRequest = exports.GetCountsForUsersResponse = exports.GetCountsForUsersRequest = exports.GetInteractionCountsResponse = exports.GetInteractionCountsRequest = exports.GetActorLikesResponse = exports.LikeInfo = exports.GetActorLikesRequest = exports.GetLikesByActorAndSubjectsResponse = exports.GetLikesByActorAndSubjectsRequest = exports.GetQuotesBySubjectSortedResponse = exports.GetQuotesBySubjectSortedRequest = exports.GetLikesBySubjectSortedResponse = exports.GetLikesBySubjectSortedRequest = exports.GetLikesBySubjectResponse = exports.GetLikesBySubjectRequest = exports.GetVerificationsReceivedResponse = exports.GetVerificationsReceivedRequest = exports.VerificationReceived = exports.GetVerificationsIssuedResponse = exports.GetVerificationsIssuedRequest = void 0;
|
|
9
|
+
exports.GetFeedGeneratorStatusRequest = exports.SearchFeedGeneratorsResponse = exports.SearchFeedGeneratorsRequest = exports.GetSuggestedFeedsResponse = exports.GetSuggestedFeedsRequest = exports.GetActorFeedsResponse = exports.GetActorFeedsRequest = exports.GetUnreadNotificationCountResponse = exports.GetUnreadNotificationCountRequest = exports.GetNotificationSeenResponse = exports.GetNotificationSeenRequest = exports.UpdateNotificationSeenResponse = exports.UpdateNotificationSeenRequest = exports.GetNotificationsResponse = exports.Notification = exports.GetNotificationsRequest = exports.GetNotificationPreferencesResponse = exports.NotificationPreferences = exports.ChatNotificationPreference = exports.NotificationPreference = exports.FilterableNotificationPreference = exports.NotificationChannelPush = exports.NotificationChannelList = exports.GetNotificationPreferencesRequest = exports.GetBlocklistSubscriptionsResponse = exports.GetBlocklistSubscriptionsRequest = exports.GetBlocklistSubscriptionResponse = exports.GetBlocklistSubscriptionRequest = exports.GetBidirectionalBlockViaListResponse = exports.GetBidirectionalBlockViaListRequest = exports.GetBlocksResponse = exports.GetBlocksRequest = exports.GetBidirectionalBlockResponse = exports.GetBidirectionalBlockRequest = exports.GetThreadMutesOnSubjectsResponse = exports.GetThreadMutesOnSubjectsRequest = exports.GetMutelistSubscriptionsResponse = exports.GetMutelistSubscriptionsRequest = exports.GetMutelistSubscriptionResponse = exports.GetMutelistSubscriptionRequest = exports.GetActorMutesActorViaListResponse = exports.GetActorMutesActorViaListRequest = exports.GetMutesResponse = exports.GetMutesRequest = exports.GetActorMutesActorResponse = exports.GetActorMutesActorRequest = exports.GetActorListsResponse = exports.GetActorListsRequest = exports.GetListCountResponse = exports.GetListCountRequest = void 0;
|
|
10
|
+
exports.TakedownBlobRequest = exports.UntakedownActorResponse = exports.UntakedownActorRequest = exports.TakedownActorResponse = exports.TakedownActorRequest = exports.UpdateActorUpstreamStatusResponse = exports.UpdateActorUpstreamStatusRequest = exports.PingResponse = exports.PingRequest = exports.GetFollowsFollowingResponse = exports.FollowsFollowing = exports.GetFollowsFollowingRequest = exports.GetRecordTakedownResponse = exports.GetRecordTakedownRequest = exports.GetActorTakedownResponse = exports.GetActorTakedownRequest = exports.GetBlobTakedownResponse = exports.GetBlobTakedownRequest = exports.GetIdentityByHandleResponse = exports.GetIdentityByHandleRequest = exports.GetIdentityByDidResponse = exports.GetIdentityByDidRequest = exports.GetLatestRevResponse = exports.GetLatestRevRequest = exports.GetActorStarterPacksResponse = exports.GetActorStarterPacksRequest = exports.GetLabelsResponse = exports.GetLabelsRequest = exports.GetSuggestedEntitiesResponse = exports.GetSuggestedEntitiesRequest = exports.SuggestedEntity = exports.GetFollowSuggestionsResponse = exports.GetFollowSuggestionsRequest = exports.SearchStarterPacksResponse = exports.SearchStarterPacksRequest = exports.SearchPostsResponse = exports.SearchPostsRequest = exports.SearchActorsResponse = exports.SearchActorsRequest = exports.GetThreadResponse = exports.GetThreadRequest = exports.GetListFeedResponse = exports.GetListFeedRequest = exports.TimelineFeedItem = exports.GetTimelineResponse = exports.GetTimelineRequest = exports.GetAuthorFeedResponse = exports.AuthorFeedItem = exports.GetAuthorFeedRequest = exports.GetFeedGeneratorStatusResponse = void 0;
|
|
11
|
+
exports.ClearThreadMutesResponse = exports.ClearThreadMutesRequest = exports.DeleteThreadMuteResponse = exports.DeleteThreadMuteRequest = exports.CreateThreadMuteResponse = exports.CreateThreadMuteRequest = exports.ClearActorMutelistSubscriptionsResponse = exports.ClearActorMutelistSubscriptionsRequest = exports.DeleteActorMutelistSubscriptionResponse = exports.DeleteActorMutelistSubscriptionRequest = exports.CreateActorMutelistSubscriptionResponse = exports.CreateActorMutelistSubscriptionRequest = exports.ClearActorMutesResponse = exports.ClearActorMutesRequest = exports.DeleteActorMuteResponse = exports.DeleteActorMuteRequest = exports.CreateActorMuteResponse = exports.CreateActorMuteRequest = exports.UntakedownRecordResponse = exports.UntakedownRecordRequest = exports.TakedownRecordResponse = exports.TakedownRecordRequest = exports.UntakedownBlobResponse = exports.UntakedownBlobRequest = exports.TakedownBlobResponse = void 0;
|
|
12
12
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
13
|
+
/**
|
|
14
|
+
* @generated from enum bsky.NotificationFilter
|
|
15
|
+
*/
|
|
16
|
+
var NotificationFilter;
|
|
17
|
+
(function (NotificationFilter) {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from enum value: NOTIFICATION_FILTER_UNSPECIFIED = 0;
|
|
20
|
+
*/
|
|
21
|
+
NotificationFilter[NotificationFilter["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum value: NOTIFICATION_FILTER_ALL = 1;
|
|
24
|
+
*/
|
|
25
|
+
NotificationFilter[NotificationFilter["ALL"] = 1] = "ALL";
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: NOTIFICATION_FILTER_FOLLOWS = 2;
|
|
28
|
+
*/
|
|
29
|
+
NotificationFilter[NotificationFilter["FOLLOWS"] = 2] = "FOLLOWS";
|
|
30
|
+
})(NotificationFilter || (exports.NotificationFilter = NotificationFilter = {}));
|
|
31
|
+
// Retrieve enum metadata with: proto3.getEnumType(NotificationFilter)
|
|
32
|
+
protobuf_1.proto3.util.setEnumType(NotificationFilter, 'bsky.NotificationFilter', [
|
|
33
|
+
{ no: 0, name: 'NOTIFICATION_FILTER_UNSPECIFIED' },
|
|
34
|
+
{ no: 1, name: 'NOTIFICATION_FILTER_ALL' },
|
|
35
|
+
{ no: 2, name: 'NOTIFICATION_FILTER_FOLLOWS' },
|
|
36
|
+
]);
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum bsky.ChatNotificationFilter
|
|
39
|
+
*/
|
|
40
|
+
var ChatNotificationFilter;
|
|
41
|
+
(function (ChatNotificationFilter) {
|
|
42
|
+
/**
|
|
43
|
+
* @generated from enum value: CHAT_NOTIFICATION_FILTER_UNSPECIFIED = 0;
|
|
44
|
+
*/
|
|
45
|
+
ChatNotificationFilter[ChatNotificationFilter["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
46
|
+
/**
|
|
47
|
+
* @generated from enum value: CHAT_NOTIFICATION_FILTER_ALL = 1;
|
|
48
|
+
*/
|
|
49
|
+
ChatNotificationFilter[ChatNotificationFilter["ALL"] = 1] = "ALL";
|
|
50
|
+
/**
|
|
51
|
+
* @generated from enum value: CHAT_NOTIFICATION_FILTER_ACCEPTED = 2;
|
|
52
|
+
*/
|
|
53
|
+
ChatNotificationFilter[ChatNotificationFilter["ACCEPTED"] = 2] = "ACCEPTED";
|
|
54
|
+
})(ChatNotificationFilter || (exports.ChatNotificationFilter = ChatNotificationFilter = {}));
|
|
55
|
+
// Retrieve enum metadata with: proto3.getEnumType(ChatNotificationFilter)
|
|
56
|
+
protobuf_1.proto3.util.setEnumType(ChatNotificationFilter, 'bsky.ChatNotificationFilter', [
|
|
57
|
+
{ no: 0, name: 'CHAT_NOTIFICATION_FILTER_UNSPECIFIED' },
|
|
58
|
+
{ no: 1, name: 'CHAT_NOTIFICATION_FILTER_ALL' },
|
|
59
|
+
{ no: 2, name: 'CHAT_NOTIFICATION_FILTER_ACCEPTED' },
|
|
60
|
+
]);
|
|
13
61
|
/**
|
|
14
62
|
* @generated from enum bsky.FeedType
|
|
15
63
|
*/
|
|
@@ -8280,6 +8328,656 @@ Object.defineProperty(GetBlocklistSubscriptionsResponse, "fields", {
|
|
|
8280
8328
|
{ no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
8281
8329
|
])
|
|
8282
8330
|
});
|
|
8331
|
+
/**
|
|
8332
|
+
* @generated from message bsky.GetNotificationPreferencesRequest
|
|
8333
|
+
*/
|
|
8334
|
+
class GetNotificationPreferencesRequest extends protobuf_1.Message {
|
|
8335
|
+
constructor(data) {
|
|
8336
|
+
super();
|
|
8337
|
+
/**
|
|
8338
|
+
* @generated from field: repeated string dids = 1;
|
|
8339
|
+
*/
|
|
8340
|
+
Object.defineProperty(this, "dids", {
|
|
8341
|
+
enumerable: true,
|
|
8342
|
+
configurable: true,
|
|
8343
|
+
writable: true,
|
|
8344
|
+
value: []
|
|
8345
|
+
});
|
|
8346
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
8347
|
+
}
|
|
8348
|
+
static fromBinary(bytes, options) {
|
|
8349
|
+
return new GetNotificationPreferencesRequest().fromBinary(bytes, options);
|
|
8350
|
+
}
|
|
8351
|
+
static fromJson(jsonValue, options) {
|
|
8352
|
+
return new GetNotificationPreferencesRequest().fromJson(jsonValue, options);
|
|
8353
|
+
}
|
|
8354
|
+
static fromJsonString(jsonString, options) {
|
|
8355
|
+
return new GetNotificationPreferencesRequest().fromJsonString(jsonString, options);
|
|
8356
|
+
}
|
|
8357
|
+
static equals(a, b) {
|
|
8358
|
+
return protobuf_1.proto3.util.equals(GetNotificationPreferencesRequest, a, b);
|
|
8359
|
+
}
|
|
8360
|
+
}
|
|
8361
|
+
exports.GetNotificationPreferencesRequest = GetNotificationPreferencesRequest;
|
|
8362
|
+
Object.defineProperty(GetNotificationPreferencesRequest, "runtime", {
|
|
8363
|
+
enumerable: true,
|
|
8364
|
+
configurable: true,
|
|
8365
|
+
writable: true,
|
|
8366
|
+
value: protobuf_1.proto3
|
|
8367
|
+
});
|
|
8368
|
+
Object.defineProperty(GetNotificationPreferencesRequest, "typeName", {
|
|
8369
|
+
enumerable: true,
|
|
8370
|
+
configurable: true,
|
|
8371
|
+
writable: true,
|
|
8372
|
+
value: 'bsky.GetNotificationPreferencesRequest'
|
|
8373
|
+
});
|
|
8374
|
+
Object.defineProperty(GetNotificationPreferencesRequest, "fields", {
|
|
8375
|
+
enumerable: true,
|
|
8376
|
+
configurable: true,
|
|
8377
|
+
writable: true,
|
|
8378
|
+
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
8379
|
+
{
|
|
8380
|
+
no: 1,
|
|
8381
|
+
name: 'dids',
|
|
8382
|
+
kind: 'scalar',
|
|
8383
|
+
T: 9 /* ScalarType.STRING */,
|
|
8384
|
+
repeated: true,
|
|
8385
|
+
},
|
|
8386
|
+
])
|
|
8387
|
+
});
|
|
8388
|
+
/**
|
|
8389
|
+
* @generated from message bsky.NotificationChannelList
|
|
8390
|
+
*/
|
|
8391
|
+
class NotificationChannelList extends protobuf_1.Message {
|
|
8392
|
+
constructor(data) {
|
|
8393
|
+
super();
|
|
8394
|
+
/**
|
|
8395
|
+
* @generated from field: bool enabled = 1;
|
|
8396
|
+
*/
|
|
8397
|
+
Object.defineProperty(this, "enabled", {
|
|
8398
|
+
enumerable: true,
|
|
8399
|
+
configurable: true,
|
|
8400
|
+
writable: true,
|
|
8401
|
+
value: false
|
|
8402
|
+
});
|
|
8403
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
8404
|
+
}
|
|
8405
|
+
static fromBinary(bytes, options) {
|
|
8406
|
+
return new NotificationChannelList().fromBinary(bytes, options);
|
|
8407
|
+
}
|
|
8408
|
+
static fromJson(jsonValue, options) {
|
|
8409
|
+
return new NotificationChannelList().fromJson(jsonValue, options);
|
|
8410
|
+
}
|
|
8411
|
+
static fromJsonString(jsonString, options) {
|
|
8412
|
+
return new NotificationChannelList().fromJsonString(jsonString, options);
|
|
8413
|
+
}
|
|
8414
|
+
static equals(a, b) {
|
|
8415
|
+
return protobuf_1.proto3.util.equals(NotificationChannelList, a, b);
|
|
8416
|
+
}
|
|
8417
|
+
}
|
|
8418
|
+
exports.NotificationChannelList = NotificationChannelList;
|
|
8419
|
+
Object.defineProperty(NotificationChannelList, "runtime", {
|
|
8420
|
+
enumerable: true,
|
|
8421
|
+
configurable: true,
|
|
8422
|
+
writable: true,
|
|
8423
|
+
value: protobuf_1.proto3
|
|
8424
|
+
});
|
|
8425
|
+
Object.defineProperty(NotificationChannelList, "typeName", {
|
|
8426
|
+
enumerable: true,
|
|
8427
|
+
configurable: true,
|
|
8428
|
+
writable: true,
|
|
8429
|
+
value: 'bsky.NotificationChannelList'
|
|
8430
|
+
});
|
|
8431
|
+
Object.defineProperty(NotificationChannelList, "fields", {
|
|
8432
|
+
enumerable: true,
|
|
8433
|
+
configurable: true,
|
|
8434
|
+
writable: true,
|
|
8435
|
+
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
8436
|
+
{ no: 1, name: 'enabled', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
8437
|
+
])
|
|
8438
|
+
});
|
|
8439
|
+
/**
|
|
8440
|
+
* @generated from message bsky.NotificationChannelPush
|
|
8441
|
+
*/
|
|
8442
|
+
class NotificationChannelPush extends protobuf_1.Message {
|
|
8443
|
+
constructor(data) {
|
|
8444
|
+
super();
|
|
8445
|
+
/**
|
|
8446
|
+
* @generated from field: bool enabled = 1;
|
|
8447
|
+
*/
|
|
8448
|
+
Object.defineProperty(this, "enabled", {
|
|
8449
|
+
enumerable: true,
|
|
8450
|
+
configurable: true,
|
|
8451
|
+
writable: true,
|
|
8452
|
+
value: false
|
|
8453
|
+
});
|
|
8454
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
8455
|
+
}
|
|
8456
|
+
static fromBinary(bytes, options) {
|
|
8457
|
+
return new NotificationChannelPush().fromBinary(bytes, options);
|
|
8458
|
+
}
|
|
8459
|
+
static fromJson(jsonValue, options) {
|
|
8460
|
+
return new NotificationChannelPush().fromJson(jsonValue, options);
|
|
8461
|
+
}
|
|
8462
|
+
static fromJsonString(jsonString, options) {
|
|
8463
|
+
return new NotificationChannelPush().fromJsonString(jsonString, options);
|
|
8464
|
+
}
|
|
8465
|
+
static equals(a, b) {
|
|
8466
|
+
return protobuf_1.proto3.util.equals(NotificationChannelPush, a, b);
|
|
8467
|
+
}
|
|
8468
|
+
}
|
|
8469
|
+
exports.NotificationChannelPush = NotificationChannelPush;
|
|
8470
|
+
Object.defineProperty(NotificationChannelPush, "runtime", {
|
|
8471
|
+
enumerable: true,
|
|
8472
|
+
configurable: true,
|
|
8473
|
+
writable: true,
|
|
8474
|
+
value: protobuf_1.proto3
|
|
8475
|
+
});
|
|
8476
|
+
Object.defineProperty(NotificationChannelPush, "typeName", {
|
|
8477
|
+
enumerable: true,
|
|
8478
|
+
configurable: true,
|
|
8479
|
+
writable: true,
|
|
8480
|
+
value: 'bsky.NotificationChannelPush'
|
|
8481
|
+
});
|
|
8482
|
+
Object.defineProperty(NotificationChannelPush, "fields", {
|
|
8483
|
+
enumerable: true,
|
|
8484
|
+
configurable: true,
|
|
8485
|
+
writable: true,
|
|
8486
|
+
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
8487
|
+
{ no: 1, name: 'enabled', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
8488
|
+
])
|
|
8489
|
+
});
|
|
8490
|
+
/**
|
|
8491
|
+
* @generated from message bsky.FilterableNotificationPreference
|
|
8492
|
+
*/
|
|
8493
|
+
class FilterableNotificationPreference extends protobuf_1.Message {
|
|
8494
|
+
constructor(data) {
|
|
8495
|
+
super();
|
|
8496
|
+
/**
|
|
8497
|
+
* @generated from field: bsky.NotificationFilter filter = 1;
|
|
8498
|
+
*/
|
|
8499
|
+
Object.defineProperty(this, "filter", {
|
|
8500
|
+
enumerable: true,
|
|
8501
|
+
configurable: true,
|
|
8502
|
+
writable: true,
|
|
8503
|
+
value: NotificationFilter.UNSPECIFIED
|
|
8504
|
+
});
|
|
8505
|
+
/**
|
|
8506
|
+
* @generated from field: bsky.NotificationChannelList list = 2;
|
|
8507
|
+
*/
|
|
8508
|
+
Object.defineProperty(this, "list", {
|
|
8509
|
+
enumerable: true,
|
|
8510
|
+
configurable: true,
|
|
8511
|
+
writable: true,
|
|
8512
|
+
value: void 0
|
|
8513
|
+
});
|
|
8514
|
+
/**
|
|
8515
|
+
* @generated from field: bsky.NotificationChannelPush push = 3;
|
|
8516
|
+
*/
|
|
8517
|
+
Object.defineProperty(this, "push", {
|
|
8518
|
+
enumerable: true,
|
|
8519
|
+
configurable: true,
|
|
8520
|
+
writable: true,
|
|
8521
|
+
value: void 0
|
|
8522
|
+
});
|
|
8523
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
8524
|
+
}
|
|
8525
|
+
static fromBinary(bytes, options) {
|
|
8526
|
+
return new FilterableNotificationPreference().fromBinary(bytes, options);
|
|
8527
|
+
}
|
|
8528
|
+
static fromJson(jsonValue, options) {
|
|
8529
|
+
return new FilterableNotificationPreference().fromJson(jsonValue, options);
|
|
8530
|
+
}
|
|
8531
|
+
static fromJsonString(jsonString, options) {
|
|
8532
|
+
return new FilterableNotificationPreference().fromJsonString(jsonString, options);
|
|
8533
|
+
}
|
|
8534
|
+
static equals(a, b) {
|
|
8535
|
+
return protobuf_1.proto3.util.equals(FilterableNotificationPreference, a, b);
|
|
8536
|
+
}
|
|
8537
|
+
}
|
|
8538
|
+
exports.FilterableNotificationPreference = FilterableNotificationPreference;
|
|
8539
|
+
Object.defineProperty(FilterableNotificationPreference, "runtime", {
|
|
8540
|
+
enumerable: true,
|
|
8541
|
+
configurable: true,
|
|
8542
|
+
writable: true,
|
|
8543
|
+
value: protobuf_1.proto3
|
|
8544
|
+
});
|
|
8545
|
+
Object.defineProperty(FilterableNotificationPreference, "typeName", {
|
|
8546
|
+
enumerable: true,
|
|
8547
|
+
configurable: true,
|
|
8548
|
+
writable: true,
|
|
8549
|
+
value: 'bsky.FilterableNotificationPreference'
|
|
8550
|
+
});
|
|
8551
|
+
Object.defineProperty(FilterableNotificationPreference, "fields", {
|
|
8552
|
+
enumerable: true,
|
|
8553
|
+
configurable: true,
|
|
8554
|
+
writable: true,
|
|
8555
|
+
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
8556
|
+
{
|
|
8557
|
+
no: 1,
|
|
8558
|
+
name: 'filter',
|
|
8559
|
+
kind: 'enum',
|
|
8560
|
+
T: protobuf_1.proto3.getEnumType(NotificationFilter),
|
|
8561
|
+
},
|
|
8562
|
+
{ no: 2, name: 'list', kind: 'message', T: NotificationChannelList },
|
|
8563
|
+
{ no: 3, name: 'push', kind: 'message', T: NotificationChannelPush },
|
|
8564
|
+
])
|
|
8565
|
+
});
|
|
8566
|
+
/**
|
|
8567
|
+
* @generated from message bsky.NotificationPreference
|
|
8568
|
+
*/
|
|
8569
|
+
class NotificationPreference extends protobuf_1.Message {
|
|
8570
|
+
constructor(data) {
|
|
8571
|
+
super();
|
|
8572
|
+
/**
|
|
8573
|
+
* @generated from field: bsky.NotificationChannelList list = 1;
|
|
8574
|
+
*/
|
|
8575
|
+
Object.defineProperty(this, "list", {
|
|
8576
|
+
enumerable: true,
|
|
8577
|
+
configurable: true,
|
|
8578
|
+
writable: true,
|
|
8579
|
+
value: void 0
|
|
8580
|
+
});
|
|
8581
|
+
/**
|
|
8582
|
+
* @generated from field: bsky.NotificationChannelPush push = 2;
|
|
8583
|
+
*/
|
|
8584
|
+
Object.defineProperty(this, "push", {
|
|
8585
|
+
enumerable: true,
|
|
8586
|
+
configurable: true,
|
|
8587
|
+
writable: true,
|
|
8588
|
+
value: void 0
|
|
8589
|
+
});
|
|
8590
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
8591
|
+
}
|
|
8592
|
+
static fromBinary(bytes, options) {
|
|
8593
|
+
return new NotificationPreference().fromBinary(bytes, options);
|
|
8594
|
+
}
|
|
8595
|
+
static fromJson(jsonValue, options) {
|
|
8596
|
+
return new NotificationPreference().fromJson(jsonValue, options);
|
|
8597
|
+
}
|
|
8598
|
+
static fromJsonString(jsonString, options) {
|
|
8599
|
+
return new NotificationPreference().fromJsonString(jsonString, options);
|
|
8600
|
+
}
|
|
8601
|
+
static equals(a, b) {
|
|
8602
|
+
return protobuf_1.proto3.util.equals(NotificationPreference, a, b);
|
|
8603
|
+
}
|
|
8604
|
+
}
|
|
8605
|
+
exports.NotificationPreference = NotificationPreference;
|
|
8606
|
+
Object.defineProperty(NotificationPreference, "runtime", {
|
|
8607
|
+
enumerable: true,
|
|
8608
|
+
configurable: true,
|
|
8609
|
+
writable: true,
|
|
8610
|
+
value: protobuf_1.proto3
|
|
8611
|
+
});
|
|
8612
|
+
Object.defineProperty(NotificationPreference, "typeName", {
|
|
8613
|
+
enumerable: true,
|
|
8614
|
+
configurable: true,
|
|
8615
|
+
writable: true,
|
|
8616
|
+
value: 'bsky.NotificationPreference'
|
|
8617
|
+
});
|
|
8618
|
+
Object.defineProperty(NotificationPreference, "fields", {
|
|
8619
|
+
enumerable: true,
|
|
8620
|
+
configurable: true,
|
|
8621
|
+
writable: true,
|
|
8622
|
+
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
8623
|
+
{ no: 1, name: 'list', kind: 'message', T: NotificationChannelList },
|
|
8624
|
+
{ no: 2, name: 'push', kind: 'message', T: NotificationChannelPush },
|
|
8625
|
+
])
|
|
8626
|
+
});
|
|
8627
|
+
/**
|
|
8628
|
+
* @generated from message bsky.ChatNotificationPreference
|
|
8629
|
+
*/
|
|
8630
|
+
class ChatNotificationPreference extends protobuf_1.Message {
|
|
8631
|
+
constructor(data) {
|
|
8632
|
+
super();
|
|
8633
|
+
/**
|
|
8634
|
+
* @generated from field: bsky.ChatNotificationFilter filter = 1;
|
|
8635
|
+
*/
|
|
8636
|
+
Object.defineProperty(this, "filter", {
|
|
8637
|
+
enumerable: true,
|
|
8638
|
+
configurable: true,
|
|
8639
|
+
writable: true,
|
|
8640
|
+
value: ChatNotificationFilter.UNSPECIFIED
|
|
8641
|
+
});
|
|
8642
|
+
/**
|
|
8643
|
+
* @generated from field: bsky.NotificationChannelPush push = 2;
|
|
8644
|
+
*/
|
|
8645
|
+
Object.defineProperty(this, "push", {
|
|
8646
|
+
enumerable: true,
|
|
8647
|
+
configurable: true,
|
|
8648
|
+
writable: true,
|
|
8649
|
+
value: void 0
|
|
8650
|
+
});
|
|
8651
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
8652
|
+
}
|
|
8653
|
+
static fromBinary(bytes, options) {
|
|
8654
|
+
return new ChatNotificationPreference().fromBinary(bytes, options);
|
|
8655
|
+
}
|
|
8656
|
+
static fromJson(jsonValue, options) {
|
|
8657
|
+
return new ChatNotificationPreference().fromJson(jsonValue, options);
|
|
8658
|
+
}
|
|
8659
|
+
static fromJsonString(jsonString, options) {
|
|
8660
|
+
return new ChatNotificationPreference().fromJsonString(jsonString, options);
|
|
8661
|
+
}
|
|
8662
|
+
static equals(a, b) {
|
|
8663
|
+
return protobuf_1.proto3.util.equals(ChatNotificationPreference, a, b);
|
|
8664
|
+
}
|
|
8665
|
+
}
|
|
8666
|
+
exports.ChatNotificationPreference = ChatNotificationPreference;
|
|
8667
|
+
Object.defineProperty(ChatNotificationPreference, "runtime", {
|
|
8668
|
+
enumerable: true,
|
|
8669
|
+
configurable: true,
|
|
8670
|
+
writable: true,
|
|
8671
|
+
value: protobuf_1.proto3
|
|
8672
|
+
});
|
|
8673
|
+
Object.defineProperty(ChatNotificationPreference, "typeName", {
|
|
8674
|
+
enumerable: true,
|
|
8675
|
+
configurable: true,
|
|
8676
|
+
writable: true,
|
|
8677
|
+
value: 'bsky.ChatNotificationPreference'
|
|
8678
|
+
});
|
|
8679
|
+
Object.defineProperty(ChatNotificationPreference, "fields", {
|
|
8680
|
+
enumerable: true,
|
|
8681
|
+
configurable: true,
|
|
8682
|
+
writable: true,
|
|
8683
|
+
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
8684
|
+
{
|
|
8685
|
+
no: 1,
|
|
8686
|
+
name: 'filter',
|
|
8687
|
+
kind: 'enum',
|
|
8688
|
+
T: protobuf_1.proto3.getEnumType(ChatNotificationFilter),
|
|
8689
|
+
},
|
|
8690
|
+
{ no: 2, name: 'push', kind: 'message', T: NotificationChannelPush },
|
|
8691
|
+
])
|
|
8692
|
+
});
|
|
8693
|
+
/**
|
|
8694
|
+
* @generated from message bsky.NotificationPreferences
|
|
8695
|
+
*/
|
|
8696
|
+
class NotificationPreferences extends protobuf_1.Message {
|
|
8697
|
+
constructor(data) {
|
|
8698
|
+
super();
|
|
8699
|
+
/**
|
|
8700
|
+
* @generated from field: bytes entry = 1;
|
|
8701
|
+
*/
|
|
8702
|
+
Object.defineProperty(this, "entry", {
|
|
8703
|
+
enumerable: true,
|
|
8704
|
+
configurable: true,
|
|
8705
|
+
writable: true,
|
|
8706
|
+
value: new Uint8Array(0)
|
|
8707
|
+
});
|
|
8708
|
+
/**
|
|
8709
|
+
* @generated from field: bsky.ChatNotificationPreference chat = 2;
|
|
8710
|
+
*/
|
|
8711
|
+
Object.defineProperty(this, "chat", {
|
|
8712
|
+
enumerable: true,
|
|
8713
|
+
configurable: true,
|
|
8714
|
+
writable: true,
|
|
8715
|
+
value: void 0
|
|
8716
|
+
});
|
|
8717
|
+
/**
|
|
8718
|
+
* @generated from field: bsky.FilterableNotificationPreference follow = 3;
|
|
8719
|
+
*/
|
|
8720
|
+
Object.defineProperty(this, "follow", {
|
|
8721
|
+
enumerable: true,
|
|
8722
|
+
configurable: true,
|
|
8723
|
+
writable: true,
|
|
8724
|
+
value: void 0
|
|
8725
|
+
});
|
|
8726
|
+
/**
|
|
8727
|
+
* @generated from field: bsky.FilterableNotificationPreference like = 4;
|
|
8728
|
+
*/
|
|
8729
|
+
Object.defineProperty(this, "like", {
|
|
8730
|
+
enumerable: true,
|
|
8731
|
+
configurable: true,
|
|
8732
|
+
writable: true,
|
|
8733
|
+
value: void 0
|
|
8734
|
+
});
|
|
8735
|
+
/**
|
|
8736
|
+
* @generated from field: bsky.FilterableNotificationPreference like_via_repost = 5;
|
|
8737
|
+
*/
|
|
8738
|
+
Object.defineProperty(this, "likeViaRepost", {
|
|
8739
|
+
enumerable: true,
|
|
8740
|
+
configurable: true,
|
|
8741
|
+
writable: true,
|
|
8742
|
+
value: void 0
|
|
8743
|
+
});
|
|
8744
|
+
/**
|
|
8745
|
+
* @generated from field: bsky.FilterableNotificationPreference mention = 6;
|
|
8746
|
+
*/
|
|
8747
|
+
Object.defineProperty(this, "mention", {
|
|
8748
|
+
enumerable: true,
|
|
8749
|
+
configurable: true,
|
|
8750
|
+
writable: true,
|
|
8751
|
+
value: void 0
|
|
8752
|
+
});
|
|
8753
|
+
/**
|
|
8754
|
+
* @generated from field: bsky.FilterableNotificationPreference quote = 7;
|
|
8755
|
+
*/
|
|
8756
|
+
Object.defineProperty(this, "quote", {
|
|
8757
|
+
enumerable: true,
|
|
8758
|
+
configurable: true,
|
|
8759
|
+
writable: true,
|
|
8760
|
+
value: void 0
|
|
8761
|
+
});
|
|
8762
|
+
/**
|
|
8763
|
+
* @generated from field: bsky.FilterableNotificationPreference reply = 8;
|
|
8764
|
+
*/
|
|
8765
|
+
Object.defineProperty(this, "reply", {
|
|
8766
|
+
enumerable: true,
|
|
8767
|
+
configurable: true,
|
|
8768
|
+
writable: true,
|
|
8769
|
+
value: void 0
|
|
8770
|
+
});
|
|
8771
|
+
/**
|
|
8772
|
+
* @generated from field: bsky.FilterableNotificationPreference repost = 9;
|
|
8773
|
+
*/
|
|
8774
|
+
Object.defineProperty(this, "repost", {
|
|
8775
|
+
enumerable: true,
|
|
8776
|
+
configurable: true,
|
|
8777
|
+
writable: true,
|
|
8778
|
+
value: void 0
|
|
8779
|
+
});
|
|
8780
|
+
/**
|
|
8781
|
+
* @generated from field: bsky.FilterableNotificationPreference repost_via_repost = 10;
|
|
8782
|
+
*/
|
|
8783
|
+
Object.defineProperty(this, "repostViaRepost", {
|
|
8784
|
+
enumerable: true,
|
|
8785
|
+
configurable: true,
|
|
8786
|
+
writable: true,
|
|
8787
|
+
value: void 0
|
|
8788
|
+
});
|
|
8789
|
+
/**
|
|
8790
|
+
* @generated from field: bsky.NotificationPreference starterpack_joined = 11;
|
|
8791
|
+
*/
|
|
8792
|
+
Object.defineProperty(this, "starterpackJoined", {
|
|
8793
|
+
enumerable: true,
|
|
8794
|
+
configurable: true,
|
|
8795
|
+
writable: true,
|
|
8796
|
+
value: void 0
|
|
8797
|
+
});
|
|
8798
|
+
/**
|
|
8799
|
+
* @generated from field: bsky.NotificationPreference subscribed_post = 12;
|
|
8800
|
+
*/
|
|
8801
|
+
Object.defineProperty(this, "subscribedPost", {
|
|
8802
|
+
enumerable: true,
|
|
8803
|
+
configurable: true,
|
|
8804
|
+
writable: true,
|
|
8805
|
+
value: void 0
|
|
8806
|
+
});
|
|
8807
|
+
/**
|
|
8808
|
+
* @generated from field: bsky.NotificationPreference unverified = 13;
|
|
8809
|
+
*/
|
|
8810
|
+
Object.defineProperty(this, "unverified", {
|
|
8811
|
+
enumerable: true,
|
|
8812
|
+
configurable: true,
|
|
8813
|
+
writable: true,
|
|
8814
|
+
value: void 0
|
|
8815
|
+
});
|
|
8816
|
+
/**
|
|
8817
|
+
* @generated from field: bsky.NotificationPreference verified = 14;
|
|
8818
|
+
*/
|
|
8819
|
+
Object.defineProperty(this, "verified", {
|
|
8820
|
+
enumerable: true,
|
|
8821
|
+
configurable: true,
|
|
8822
|
+
writable: true,
|
|
8823
|
+
value: void 0
|
|
8824
|
+
});
|
|
8825
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
8826
|
+
}
|
|
8827
|
+
static fromBinary(bytes, options) {
|
|
8828
|
+
return new NotificationPreferences().fromBinary(bytes, options);
|
|
8829
|
+
}
|
|
8830
|
+
static fromJson(jsonValue, options) {
|
|
8831
|
+
return new NotificationPreferences().fromJson(jsonValue, options);
|
|
8832
|
+
}
|
|
8833
|
+
static fromJsonString(jsonString, options) {
|
|
8834
|
+
return new NotificationPreferences().fromJsonString(jsonString, options);
|
|
8835
|
+
}
|
|
8836
|
+
static equals(a, b) {
|
|
8837
|
+
return protobuf_1.proto3.util.equals(NotificationPreferences, a, b);
|
|
8838
|
+
}
|
|
8839
|
+
}
|
|
8840
|
+
exports.NotificationPreferences = NotificationPreferences;
|
|
8841
|
+
Object.defineProperty(NotificationPreferences, "runtime", {
|
|
8842
|
+
enumerable: true,
|
|
8843
|
+
configurable: true,
|
|
8844
|
+
writable: true,
|
|
8845
|
+
value: protobuf_1.proto3
|
|
8846
|
+
});
|
|
8847
|
+
Object.defineProperty(NotificationPreferences, "typeName", {
|
|
8848
|
+
enumerable: true,
|
|
8849
|
+
configurable: true,
|
|
8850
|
+
writable: true,
|
|
8851
|
+
value: 'bsky.NotificationPreferences'
|
|
8852
|
+
});
|
|
8853
|
+
Object.defineProperty(NotificationPreferences, "fields", {
|
|
8854
|
+
enumerable: true,
|
|
8855
|
+
configurable: true,
|
|
8856
|
+
writable: true,
|
|
8857
|
+
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
8858
|
+
{ no: 1, name: 'entry', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
8859
|
+
{ no: 2, name: 'chat', kind: 'message', T: ChatNotificationPreference },
|
|
8860
|
+
{
|
|
8861
|
+
no: 3,
|
|
8862
|
+
name: 'follow',
|
|
8863
|
+
kind: 'message',
|
|
8864
|
+
T: FilterableNotificationPreference,
|
|
8865
|
+
},
|
|
8866
|
+
{
|
|
8867
|
+
no: 4,
|
|
8868
|
+
name: 'like',
|
|
8869
|
+
kind: 'message',
|
|
8870
|
+
T: FilterableNotificationPreference,
|
|
8871
|
+
},
|
|
8872
|
+
{
|
|
8873
|
+
no: 5,
|
|
8874
|
+
name: 'like_via_repost',
|
|
8875
|
+
kind: 'message',
|
|
8876
|
+
T: FilterableNotificationPreference,
|
|
8877
|
+
},
|
|
8878
|
+
{
|
|
8879
|
+
no: 6,
|
|
8880
|
+
name: 'mention',
|
|
8881
|
+
kind: 'message',
|
|
8882
|
+
T: FilterableNotificationPreference,
|
|
8883
|
+
},
|
|
8884
|
+
{
|
|
8885
|
+
no: 7,
|
|
8886
|
+
name: 'quote',
|
|
8887
|
+
kind: 'message',
|
|
8888
|
+
T: FilterableNotificationPreference,
|
|
8889
|
+
},
|
|
8890
|
+
{
|
|
8891
|
+
no: 8,
|
|
8892
|
+
name: 'reply',
|
|
8893
|
+
kind: 'message',
|
|
8894
|
+
T: FilterableNotificationPreference,
|
|
8895
|
+
},
|
|
8896
|
+
{
|
|
8897
|
+
no: 9,
|
|
8898
|
+
name: 'repost',
|
|
8899
|
+
kind: 'message',
|
|
8900
|
+
T: FilterableNotificationPreference,
|
|
8901
|
+
},
|
|
8902
|
+
{
|
|
8903
|
+
no: 10,
|
|
8904
|
+
name: 'repost_via_repost',
|
|
8905
|
+
kind: 'message',
|
|
8906
|
+
T: FilterableNotificationPreference,
|
|
8907
|
+
},
|
|
8908
|
+
{
|
|
8909
|
+
no: 11,
|
|
8910
|
+
name: 'starterpack_joined',
|
|
8911
|
+
kind: 'message',
|
|
8912
|
+
T: NotificationPreference,
|
|
8913
|
+
},
|
|
8914
|
+
{
|
|
8915
|
+
no: 12,
|
|
8916
|
+
name: 'subscribed_post',
|
|
8917
|
+
kind: 'message',
|
|
8918
|
+
T: NotificationPreference,
|
|
8919
|
+
},
|
|
8920
|
+
{ no: 13, name: 'unverified', kind: 'message', T: NotificationPreference },
|
|
8921
|
+
{ no: 14, name: 'verified', kind: 'message', T: NotificationPreference },
|
|
8922
|
+
])
|
|
8923
|
+
});
|
|
8924
|
+
/**
|
|
8925
|
+
* @generated from message bsky.GetNotificationPreferencesResponse
|
|
8926
|
+
*/
|
|
8927
|
+
class GetNotificationPreferencesResponse extends protobuf_1.Message {
|
|
8928
|
+
constructor(data) {
|
|
8929
|
+
super();
|
|
8930
|
+
/**
|
|
8931
|
+
* @generated from field: repeated bsky.NotificationPreferences preferences = 1;
|
|
8932
|
+
*/
|
|
8933
|
+
Object.defineProperty(this, "preferences", {
|
|
8934
|
+
enumerable: true,
|
|
8935
|
+
configurable: true,
|
|
8936
|
+
writable: true,
|
|
8937
|
+
value: []
|
|
8938
|
+
});
|
|
8939
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
8940
|
+
}
|
|
8941
|
+
static fromBinary(bytes, options) {
|
|
8942
|
+
return new GetNotificationPreferencesResponse().fromBinary(bytes, options);
|
|
8943
|
+
}
|
|
8944
|
+
static fromJson(jsonValue, options) {
|
|
8945
|
+
return new GetNotificationPreferencesResponse().fromJson(jsonValue, options);
|
|
8946
|
+
}
|
|
8947
|
+
static fromJsonString(jsonString, options) {
|
|
8948
|
+
return new GetNotificationPreferencesResponse().fromJsonString(jsonString, options);
|
|
8949
|
+
}
|
|
8950
|
+
static equals(a, b) {
|
|
8951
|
+
return protobuf_1.proto3.util.equals(GetNotificationPreferencesResponse, a, b);
|
|
8952
|
+
}
|
|
8953
|
+
}
|
|
8954
|
+
exports.GetNotificationPreferencesResponse = GetNotificationPreferencesResponse;
|
|
8955
|
+
Object.defineProperty(GetNotificationPreferencesResponse, "runtime", {
|
|
8956
|
+
enumerable: true,
|
|
8957
|
+
configurable: true,
|
|
8958
|
+
writable: true,
|
|
8959
|
+
value: protobuf_1.proto3
|
|
8960
|
+
});
|
|
8961
|
+
Object.defineProperty(GetNotificationPreferencesResponse, "typeName", {
|
|
8962
|
+
enumerable: true,
|
|
8963
|
+
configurable: true,
|
|
8964
|
+
writable: true,
|
|
8965
|
+
value: 'bsky.GetNotificationPreferencesResponse'
|
|
8966
|
+
});
|
|
8967
|
+
Object.defineProperty(GetNotificationPreferencesResponse, "fields", {
|
|
8968
|
+
enumerable: true,
|
|
8969
|
+
configurable: true,
|
|
8970
|
+
writable: true,
|
|
8971
|
+
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
8972
|
+
{
|
|
8973
|
+
no: 1,
|
|
8974
|
+
name: 'preferences',
|
|
8975
|
+
kind: 'message',
|
|
8976
|
+
T: NotificationPreferences,
|
|
8977
|
+
repeated: true,
|
|
8978
|
+
},
|
|
8979
|
+
])
|
|
8980
|
+
});
|
|
8283
8981
|
/**
|
|
8284
8982
|
* - list recent notifications for a user
|
|
8285
8983
|
* - notifications should include a uri for the record that caused the notif & a “reason” for the notification (reply, like, quotepost, etc)
|