Implement scene invitation and membership controls
This commit is contained in:
parent
ecf56729b0
commit
d3707f30e3
49 changed files with 2603 additions and 462 deletions
1872
src/third-party/api/index.js
vendored
1872
src/third-party/api/index.js
vendored
File diff suppressed because it is too large
Load diff
8
src/third-party/api/index.js.map
vendored
8
src/third-party/api/index.js.map
vendored
File diff suppressed because one or more lines are too long
45
src/third-party/api/src/client/index.d.ts
vendored
45
src/third-party/api/src/client/index.d.ts
vendored
|
@ -36,6 +36,8 @@ import * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes';
|
|||
import * as AppBskyFeedMediaEmbed from './types/app/bsky/feed/mediaEmbed';
|
||||
import * as AppBskyFeedPost from './types/app/bsky/feed/post';
|
||||
import * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
|
||||
import * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote';
|
||||
import * as AppBskyFeedTrend from './types/app/bsky/feed/trend';
|
||||
import * as AppBskyFeedVote from './types/app/bsky/feed/vote';
|
||||
import * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion';
|
||||
import * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation';
|
||||
|
@ -85,6 +87,8 @@ export * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes';
|
|||
export * as AppBskyFeedMediaEmbed from './types/app/bsky/feed/mediaEmbed';
|
||||
export * as AppBskyFeedPost from './types/app/bsky/feed/post';
|
||||
export * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
|
||||
export * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote';
|
||||
export * as AppBskyFeedTrend from './types/app/bsky/feed/trend';
|
||||
export * as AppBskyFeedVote from './types/app/bsky/feed/vote';
|
||||
export * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion';
|
||||
export * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation';
|
||||
|
@ -225,13 +229,14 @@ export declare class ProfileRecord {
|
|||
uri: string;
|
||||
cid: string;
|
||||
}>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
}
|
||||
export declare class FeedNS {
|
||||
_service: ServiceClient;
|
||||
mediaEmbed: MediaEmbedRecord;
|
||||
post: PostRecord;
|
||||
repost: RepostRecord;
|
||||
trend: TrendRecord;
|
||||
vote: VoteRecord;
|
||||
constructor(service: ServiceClient);
|
||||
getAuthorFeed(params?: AppBskyFeedGetAuthorFeed.QueryParams, opts?: AppBskyFeedGetAuthorFeed.CallOptions): Promise<AppBskyFeedGetAuthorFeed.Response>;
|
||||
|
@ -239,6 +244,7 @@ export declare class FeedNS {
|
|||
getRepostedBy(params?: AppBskyFeedGetRepostedBy.QueryParams, opts?: AppBskyFeedGetRepostedBy.CallOptions): Promise<AppBskyFeedGetRepostedBy.Response>;
|
||||
getTimeline(params?: AppBskyFeedGetTimeline.QueryParams, opts?: AppBskyFeedGetTimeline.CallOptions): Promise<AppBskyFeedGetTimeline.Response>;
|
||||
getVotes(params?: AppBskyFeedGetVotes.QueryParams, opts?: AppBskyFeedGetVotes.CallOptions): Promise<AppBskyFeedGetVotes.Response>;
|
||||
setVote(data?: AppBskyFeedSetVote.InputSchema, opts?: AppBskyFeedSetVote.CallOptions): Promise<AppBskyFeedSetVote.Response>;
|
||||
}
|
||||
export declare class MediaEmbedRecord {
|
||||
_service: ServiceClient;
|
||||
|
@ -259,7 +265,7 @@ export declare class MediaEmbedRecord {
|
|||
uri: string;
|
||||
cid: string;
|
||||
}>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
}
|
||||
export declare class PostRecord {
|
||||
_service: ServiceClient;
|
||||
|
@ -280,7 +286,7 @@ export declare class PostRecord {
|
|||
uri: string;
|
||||
cid: string;
|
||||
}>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
}
|
||||
export declare class RepostRecord {
|
||||
_service: ServiceClient;
|
||||
|
@ -301,7 +307,28 @@ export declare class RepostRecord {
|
|||
uri: string;
|
||||
cid: string;
|
||||
}>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
}
|
||||
export declare class TrendRecord {
|
||||
_service: ServiceClient;
|
||||
constructor(service: ServiceClient);
|
||||
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
|
||||
cursor?: string;
|
||||
records: {
|
||||
uri: string;
|
||||
value: AppBskyFeedTrend.Record;
|
||||
}[];
|
||||
}>;
|
||||
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
|
||||
uri: string;
|
||||
cid: string;
|
||||
value: AppBskyFeedTrend.Record;
|
||||
}>;
|
||||
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyFeedTrend.Record, headers?: Record<string, string>): Promise<{
|
||||
uri: string;
|
||||
cid: string;
|
||||
}>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
}
|
||||
export declare class VoteRecord {
|
||||
_service: ServiceClient;
|
||||
|
@ -322,7 +349,7 @@ export declare class VoteRecord {
|
|||
uri: string;
|
||||
cid: string;
|
||||
}>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
}
|
||||
export declare class GraphNS {
|
||||
_service: ServiceClient;
|
||||
|
@ -354,7 +381,7 @@ export declare class AssertionRecord {
|
|||
uri: string;
|
||||
cid: string;
|
||||
}>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
}
|
||||
export declare class ConfirmationRecord {
|
||||
_service: ServiceClient;
|
||||
|
@ -375,7 +402,7 @@ export declare class ConfirmationRecord {
|
|||
uri: string;
|
||||
cid: string;
|
||||
}>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
}
|
||||
export declare class FollowRecord {
|
||||
_service: ServiceClient;
|
||||
|
@ -396,7 +423,7 @@ export declare class FollowRecord {
|
|||
uri: string;
|
||||
cid: string;
|
||||
}>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
}
|
||||
export declare class NotificationNS {
|
||||
_service: ServiceClient;
|
||||
|
@ -429,5 +456,5 @@ export declare class DeclarationRecord {
|
|||
uri: string;
|
||||
cid: string;
|
||||
}>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
||||
}
|
||||
|
|
1
src/third-party/api/src/client/schemas.d.ts
vendored
1
src/third-party/api/src/client/schemas.d.ts
vendored
|
@ -6,6 +6,7 @@ export declare const ids: {
|
|||
AppBskyFeedMediaEmbed: string;
|
||||
AppBskyFeedPost: string;
|
||||
AppBskyFeedRepost: string;
|
||||
AppBskyFeedTrend: string;
|
||||
AppBskyFeedVote: string;
|
||||
AppBskyGraphAssertion: string;
|
||||
AppBskyGraphConfirmation: string;
|
||||
|
|
|
@ -10,10 +10,16 @@ export interface InputSchema {
|
|||
handle: string;
|
||||
recoveryKey?: string;
|
||||
}
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
handle: string;
|
||||
did: string;
|
||||
declarationCid: string;
|
||||
declaration: Declaration;
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
|
|
|
@ -10,8 +10,8 @@ export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.
|
|||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
creator: string;
|
||||
displayName?: string;
|
||||
description?: string;
|
||||
|
@ -21,8 +21,13 @@ export interface OutputSchema {
|
|||
postsCount: number;
|
||||
myState?: {
|
||||
follow?: string;
|
||||
member?: string;
|
||||
};
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
|
@ -7,12 +7,14 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
cursor?: string;
|
||||
actors: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
actorType: string;
|
||||
displayName?: string;
|
||||
description?: string;
|
||||
indexedAt?: string;
|
||||
|
@ -21,6 +23,10 @@ export interface OutputSchema {
|
|||
};
|
||||
}[];
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
|
@ -8,16 +8,23 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
cursor?: string;
|
||||
users: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
description?: string;
|
||||
indexedAt?: string;
|
||||
}[];
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
|
@ -7,13 +7,20 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
users: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
}[];
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
|
@ -8,6 +8,8 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
cursor?: string;
|
||||
feed: FeedItem[];
|
||||
|
@ -15,8 +17,9 @@ export interface OutputSchema {
|
|||
export interface FeedItem {
|
||||
uri: string;
|
||||
cid: string;
|
||||
author: User;
|
||||
repostedBy?: User;
|
||||
author: Actor;
|
||||
trendedBy?: Actor;
|
||||
repostedBy?: Actor;
|
||||
record: {};
|
||||
embed?: RecordEmbed | ExternalEmbed | UnknownEmbed;
|
||||
replyCount: number;
|
||||
|
@ -30,14 +33,19 @@ export interface FeedItem {
|
|||
downvote?: string;
|
||||
};
|
||||
}
|
||||
export interface User {
|
||||
export interface Actor {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface RecordEmbed {
|
||||
type: 'record';
|
||||
author: User;
|
||||
author: Actor;
|
||||
record: {};
|
||||
}
|
||||
export interface ExternalEmbed {
|
||||
|
|
|
@ -7,6 +7,8 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
thread: Post;
|
||||
}
|
||||
|
@ -31,9 +33,14 @@ export interface Post {
|
|||
}
|
||||
export interface User {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface RecordEmbed {
|
||||
type: 'record';
|
||||
author: User;
|
||||
|
|
|
@ -9,18 +9,25 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
uri: string;
|
||||
cid?: string;
|
||||
cursor?: string;
|
||||
repostedBy: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
createdAt?: string;
|
||||
indexedAt: string;
|
||||
}[];
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
|
@ -8,6 +8,8 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
cursor?: string;
|
||||
feed: FeedItem[];
|
||||
|
@ -15,8 +17,9 @@ export interface OutputSchema {
|
|||
export interface FeedItem {
|
||||
uri: string;
|
||||
cid: string;
|
||||
author: User;
|
||||
repostedBy?: User;
|
||||
author: Actor;
|
||||
trendedBy?: Actor;
|
||||
repostedBy?: Actor;
|
||||
record: {};
|
||||
embed?: RecordEmbed | ExternalEmbed | UnknownEmbed;
|
||||
replyCount: number;
|
||||
|
@ -30,14 +33,20 @@ export interface FeedItem {
|
|||
downvote?: string;
|
||||
};
|
||||
}
|
||||
export interface User {
|
||||
export interface Actor {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
actorType?: string;
|
||||
displayName?: string;
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface RecordEmbed {
|
||||
type: 'record';
|
||||
author: User;
|
||||
author: Actor;
|
||||
record: {};
|
||||
}
|
||||
export interface ExternalEmbed {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Headers } from '@atproto/xrpc';
|
|||
export interface QueryParams {
|
||||
uri: string;
|
||||
cid?: string;
|
||||
direction?: string;
|
||||
direction?: 'up' | 'down';
|
||||
limit?: number;
|
||||
before?: string;
|
||||
}
|
||||
|
@ -10,6 +10,8 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
uri: string;
|
||||
cid?: string;
|
||||
|
@ -23,9 +25,14 @@ export interface OutputSchema {
|
|||
}
|
||||
export interface Actor {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
26
src/third-party/api/src/client/types/app/bsky/feed/setVote.d.ts
vendored
Normal file
26
src/third-party/api/src/client/types/app/bsky/feed/setVote.d.ts
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
import { Headers } from '@atproto/xrpc';
|
||||
export interface QueryParams {
|
||||
}
|
||||
export interface CallOptions {
|
||||
headers?: Headers;
|
||||
qp?: QueryParams;
|
||||
encoding: 'application/json';
|
||||
}
|
||||
export interface InputSchema {
|
||||
subject: Subject;
|
||||
direction: 'up' | 'down' | 'none';
|
||||
}
|
||||
export interface Subject {
|
||||
uri: string;
|
||||
cid: string;
|
||||
}
|
||||
export interface OutputSchema {
|
||||
upvote?: string;
|
||||
downvote?: string;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
data: OutputSchema;
|
||||
}
|
||||
export declare function toKnownErr(e: any): any;
|
10
src/third-party/api/src/client/types/app/bsky/feed/trend.d.ts
vendored
Normal file
10
src/third-party/api/src/client/types/app/bsky/feed/trend.d.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
export interface Record {
|
||||
subject: Subject;
|
||||
createdAt: string;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface Subject {
|
||||
uri: string;
|
||||
cid: string;
|
||||
[k: string]: unknown;
|
||||
}
|
|
@ -8,21 +8,29 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
subject: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
};
|
||||
cursor?: string;
|
||||
followers: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
createdAt?: string;
|
||||
indexedAt: string;
|
||||
}[];
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
|
@ -8,21 +8,29 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
subject: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
};
|
||||
cursor?: string;
|
||||
follows: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
createdAt?: string;
|
||||
indexedAt: string;
|
||||
}[];
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
|
@ -8,25 +8,29 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
subject: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
};
|
||||
cursor?: string;
|
||||
members: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
declaration: {
|
||||
cid: string;
|
||||
actorType: string;
|
||||
};
|
||||
createdAt?: string;
|
||||
indexedAt: string;
|
||||
}[];
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
|
@ -8,25 +8,29 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
subject: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
};
|
||||
cursor?: string;
|
||||
memberships: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
declaration: {
|
||||
cid: string;
|
||||
actorType: string;
|
||||
};
|
||||
createdAt?: string;
|
||||
indexedAt: string;
|
||||
}[];
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
|
@ -7,6 +7,8 @@ export interface CallOptions {
|
|||
headers?: Headers;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
|
||||
export declare type ActorUnknown = string;
|
||||
export interface OutputSchema {
|
||||
cursor?: string;
|
||||
notifications: Notification[];
|
||||
|
@ -16,6 +18,7 @@ export interface Notification {
|
|||
cid: string;
|
||||
author: {
|
||||
did: string;
|
||||
declaration: Declaration;
|
||||
handle: string;
|
||||
displayName?: string;
|
||||
};
|
||||
|
@ -25,6 +28,10 @@ export interface Notification {
|
|||
isRead: boolean;
|
||||
indexedAt: string;
|
||||
}
|
||||
export interface Declaration {
|
||||
cid: string;
|
||||
actorType: ActorKnown | ActorUnknown;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
headers: Headers;
|
||||
|
|
|
@ -18,7 +18,6 @@ export interface OutputSchema {
|
|||
refreshJwt: string;
|
||||
handle: string;
|
||||
did: string;
|
||||
declarationCid: string;
|
||||
}
|
||||
export interface Response {
|
||||
success: boolean;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue