@atproto/api 0.12.21 → 0.12.22-next.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/dist/client/index.d.ts +34 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +73 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +332 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +339 -1
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +5 -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/actor/profile.d.ts +3 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/client/types/app/bsky/graph/defs.d.ts +36 -1
- package/dist/client/types/app/bsky/graph/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/defs.js +23 -1
- package/dist/client/types/app/bsky/graph/defs.js.map +1 -1
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.d.ts +26 -0
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.js +14 -0
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.js.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.d.ts +24 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.js +14 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.js.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPacks.d.ts +23 -0
- package/dist/client/types/app/bsky/graph/getStarterPacks.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPacks.js +14 -0
- package/dist/client/types/app/bsky/graph/getStarterPacks.js.map +1 -0
- package/dist/client/types/app/bsky/graph/starterpack.d.ts +25 -0
- package/dist/client/types/app/bsky/graph/starterpack.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/starterpack.js +27 -0
- package/dist/client/types/app/bsky/graph/starterpack.js.map +1 -0
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts +2 -2
- 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/team/deleteMember.d.ts +3 -0
- package/dist/client/types/tools/ozone/team/deleteMember.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/team/deleteMember.js +9 -1
- package/dist/client/types/tools/ozone/team/deleteMember.js.map +1 -1
- package/dist/session/atp-session-manager.d.ts +82 -0
- package/dist/session/atp-session-manager.d.ts.map +1 -0
- package/dist/session/atp-session-manager.js +370 -0
- package/dist/session/atp-session-manager.js.map +1 -0
- package/dist/session/index.d.ts +4 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.js +20 -0
- package/dist/session/index.js.map +1 -0
- package/dist/session/oauth-session-manager.d.ts +10 -0
- package/dist/session/oauth-session-manager.d.ts.map +1 -0
- package/dist/session/oauth-session-manager.js +39 -0
- package/dist/session/oauth-session-manager.js.map +1 -0
- package/dist/session/session-manager.d.ts +7 -0
- package/dist/session/session-manager.d.ts.map +1 -0
- package/dist/session/session-manager.js +7 -0
- package/dist/session/session-manager.js.map +1 -0
- package/dist/session/stateless-session-handler.d.ts +18 -0
- package/dist/session/stateless-session-handler.d.ts.map +1 -0
- package/dist/session/stateless-session-handler.js +49 -0
- package/dist/session/stateless-session-handler.js.map +1 -0
- package/package.json +3 -3
- package/src/client/index.ts +109 -0
- package/src/client/lexicons.ts +341 -1
- package/src/client/types/app/bsky/actor/defs.ts +5 -0
- package/src/client/types/app/bsky/actor/profile.ts +3 -0
- package/src/client/types/app/bsky/graph/defs.ts +58 -0
- package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +39 -0
- package/src/client/types/app/bsky/graph/getStarterPack.ts +37 -0
- package/src/client/types/app/bsky/graph/getStarterPacks.ts +36 -0
- package/src/client/types/app/bsky/graph/starterpack.ts +50 -0
- package/src/client/types/app/bsky/notification/listNotifications.ts +2 -1
- package/src/client/types/tools/ozone/team/deleteMember.ts +7 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatelessSessionManager = void 0;
|
|
4
|
+
const session_manager_1 = require("./session-manager");
|
|
5
|
+
class StatelessSessionManager extends session_manager_1.SessionManager {
|
|
6
|
+
constructor({ service, headers, fetch = globalThis.fetch, }) {
|
|
7
|
+
super();
|
|
8
|
+
Object.defineProperty(this, "fetch", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
configurable: true,
|
|
11
|
+
writable: true,
|
|
12
|
+
value: void 0
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(this, "serviceUrl", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true,
|
|
18
|
+
value: void 0
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(this, "headers", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: void 0
|
|
25
|
+
});
|
|
26
|
+
this.fetch = fetch;
|
|
27
|
+
this.serviceUrl = new URL(service);
|
|
28
|
+
this.headers = new Map(headers
|
|
29
|
+
? Object.entries(headers).filter((e) => e[1] != null)
|
|
30
|
+
: headers);
|
|
31
|
+
}
|
|
32
|
+
get did() {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
async getServiceUrl() {
|
|
36
|
+
return this.serviceUrl;
|
|
37
|
+
}
|
|
38
|
+
async fetchHandler(url, reqInit) {
|
|
39
|
+
const fullUrl = new URL(url, await this.getServiceUrl());
|
|
40
|
+
const headers = new Headers(reqInit.headers);
|
|
41
|
+
for (const [key, value] of this.headers) {
|
|
42
|
+
if (value != null)
|
|
43
|
+
headers.set(key, value);
|
|
44
|
+
}
|
|
45
|
+
return (0, this.fetch)(fullUrl.toString(), { ...reqInit, headers });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.StatelessSessionManager = StatelessSessionManager;
|
|
49
|
+
//# sourceMappingURL=stateless-session-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stateless-session-handler.js","sourceRoot":"","sources":["../../src/session/stateless-session-handler.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAQlD,MAAa,uBAAwB,SAAQ,gCAAc;IAMzD,YAAY,EACV,OAAO,EACP,OAAO,EACP,KAAK,GAAG,UAAU,CAAC,KAAK,GACO;QAC/B,KAAK,EAAE,CAAA;QAVD;;;;;WAA8B;QAE7B;;;;;WAAe;QACf;;;;;WAA4B;QASnC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAElB,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAA;QAClC,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,CACpB,OAAO;YACL,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAC5B,CACE,CAAI,EACgC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CACtD;YACH,CAAC,CAAC,OAAO,CACZ,CAAA;IACH,CAAC;IAED,IAAI,GAAG;QACL,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,OAAO,IAAI,CAAC,UAAU,CAAA;IACxB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,GAAW,EAAE,OAAoB;QAClD,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,CAAA;QACxD,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAE5C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACxC,IAAI,KAAK,IAAI,IAAI;gBAAE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QAC5C,CAAC;QAED,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,CAAC,CAAA;IACrE,CAAC;CACF;AA7CD,0DA6CC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.22-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"multiformats": "^9.9.0",
|
|
21
21
|
"tlds": "^1.234.0",
|
|
22
|
-
"@atproto/common-web": "^0.3.0",
|
|
23
22
|
"@atproto/lexicon": "^0.4.0",
|
|
24
23
|
"@atproto/syntax": "^0.3.0",
|
|
25
|
-
"@atproto/xrpc": "^0.5.0"
|
|
24
|
+
"@atproto/xrpc": "^0.5.0",
|
|
25
|
+
"@atproto/common-web": "^0.3.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"get-port": "^6.1.2",
|
package/src/client/index.ts
CHANGED
|
@@ -125,6 +125,7 @@ import * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate'
|
|
|
125
125
|
import * as AppBskyGraphBlock from './types/app/bsky/graph/block'
|
|
126
126
|
import * as AppBskyGraphDefs from './types/app/bsky/graph/defs'
|
|
127
127
|
import * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
|
|
128
|
+
import * as AppBskyGraphGetActorStarterPacks from './types/app/bsky/graph/getActorStarterPacks'
|
|
128
129
|
import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
|
129
130
|
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
130
131
|
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
@@ -135,6 +136,8 @@ import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes'
|
|
|
135
136
|
import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists'
|
|
136
137
|
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
137
138
|
import * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships'
|
|
139
|
+
import * as AppBskyGraphGetStarterPack from './types/app/bsky/graph/getStarterPack'
|
|
140
|
+
import * as AppBskyGraphGetStarterPacks from './types/app/bsky/graph/getStarterPacks'
|
|
138
141
|
import * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor'
|
|
139
142
|
import * as AppBskyGraphList from './types/app/bsky/graph/list'
|
|
140
143
|
import * as AppBskyGraphListblock from './types/app/bsky/graph/listblock'
|
|
@@ -142,6 +145,7 @@ import * as AppBskyGraphListitem from './types/app/bsky/graph/listitem'
|
|
|
142
145
|
import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
|
|
143
146
|
import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList'
|
|
144
147
|
import * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread'
|
|
148
|
+
import * as AppBskyGraphStarterpack from './types/app/bsky/graph/starterpack'
|
|
145
149
|
import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
146
150
|
import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
147
151
|
import * as AppBskyGraphUnmuteThread from './types/app/bsky/graph/unmuteThread'
|
|
@@ -317,6 +321,7 @@ export * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate'
|
|
|
317
321
|
export * as AppBskyGraphBlock from './types/app/bsky/graph/block'
|
|
318
322
|
export * as AppBskyGraphDefs from './types/app/bsky/graph/defs'
|
|
319
323
|
export * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
|
|
324
|
+
export * as AppBskyGraphGetActorStarterPacks from './types/app/bsky/graph/getActorStarterPacks'
|
|
320
325
|
export * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
|
321
326
|
export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
322
327
|
export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
@@ -327,6 +332,8 @@ export * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes'
|
|
|
327
332
|
export * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists'
|
|
328
333
|
export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
329
334
|
export * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships'
|
|
335
|
+
export * as AppBskyGraphGetStarterPack from './types/app/bsky/graph/getStarterPack'
|
|
336
|
+
export * as AppBskyGraphGetStarterPacks from './types/app/bsky/graph/getStarterPacks'
|
|
330
337
|
export * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor'
|
|
331
338
|
export * as AppBskyGraphList from './types/app/bsky/graph/list'
|
|
332
339
|
export * as AppBskyGraphListblock from './types/app/bsky/graph/listblock'
|
|
@@ -334,6 +341,7 @@ export * as AppBskyGraphListitem from './types/app/bsky/graph/listitem'
|
|
|
334
341
|
export * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
|
|
335
342
|
export * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList'
|
|
336
343
|
export * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread'
|
|
344
|
+
export * as AppBskyGraphStarterpack from './types/app/bsky/graph/starterpack'
|
|
337
345
|
export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
338
346
|
export * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
339
347
|
export * as AppBskyGraphUnmuteThread from './types/app/bsky/graph/unmuteThread'
|
|
@@ -417,6 +425,7 @@ export const APP_BSKY_FEED = {
|
|
|
417
425
|
export const APP_BSKY_GRAPH = {
|
|
418
426
|
DefsModlist: 'app.bsky.graph.defs#modlist',
|
|
419
427
|
DefsCuratelist: 'app.bsky.graph.defs#curatelist',
|
|
428
|
+
DefsReferencelist: 'app.bsky.graph.defs#referencelist',
|
|
420
429
|
}
|
|
421
430
|
export const TOOLS_OZONE_MODERATION = {
|
|
422
431
|
DefsReviewOpen: 'tools.ozone.moderation.defs#reviewOpen',
|
|
@@ -2075,6 +2084,7 @@ export class AppBskyGraphNS {
|
|
|
2075
2084
|
list: ListRecord
|
|
2076
2085
|
listblock: ListblockRecord
|
|
2077
2086
|
listitem: ListitemRecord
|
|
2087
|
+
starterpack: StarterpackRecord
|
|
2078
2088
|
|
|
2079
2089
|
constructor(service: AtpServiceClient) {
|
|
2080
2090
|
this._service = service
|
|
@@ -2083,6 +2093,18 @@ export class AppBskyGraphNS {
|
|
|
2083
2093
|
this.list = new ListRecord(service)
|
|
2084
2094
|
this.listblock = new ListblockRecord(service)
|
|
2085
2095
|
this.listitem = new ListitemRecord(service)
|
|
2096
|
+
this.starterpack = new StarterpackRecord(service)
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
getActorStarterPacks(
|
|
2100
|
+
params?: AppBskyGraphGetActorStarterPacks.QueryParams,
|
|
2101
|
+
opts?: AppBskyGraphGetActorStarterPacks.CallOptions,
|
|
2102
|
+
): Promise<AppBskyGraphGetActorStarterPacks.Response> {
|
|
2103
|
+
return this._service.xrpc
|
|
2104
|
+
.call('app.bsky.graph.getActorStarterPacks', params, undefined, opts)
|
|
2105
|
+
.catch((e) => {
|
|
2106
|
+
throw AppBskyGraphGetActorStarterPacks.toKnownErr(e)
|
|
2107
|
+
})
|
|
2086
2108
|
}
|
|
2087
2109
|
|
|
2088
2110
|
getBlocks(
|
|
@@ -2195,6 +2217,28 @@ export class AppBskyGraphNS {
|
|
|
2195
2217
|
})
|
|
2196
2218
|
}
|
|
2197
2219
|
|
|
2220
|
+
getStarterPack(
|
|
2221
|
+
params?: AppBskyGraphGetStarterPack.QueryParams,
|
|
2222
|
+
opts?: AppBskyGraphGetStarterPack.CallOptions,
|
|
2223
|
+
): Promise<AppBskyGraphGetStarterPack.Response> {
|
|
2224
|
+
return this._service.xrpc
|
|
2225
|
+
.call('app.bsky.graph.getStarterPack', params, undefined, opts)
|
|
2226
|
+
.catch((e) => {
|
|
2227
|
+
throw AppBskyGraphGetStarterPack.toKnownErr(e)
|
|
2228
|
+
})
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
getStarterPacks(
|
|
2232
|
+
params?: AppBskyGraphGetStarterPacks.QueryParams,
|
|
2233
|
+
opts?: AppBskyGraphGetStarterPacks.CallOptions,
|
|
2234
|
+
): Promise<AppBskyGraphGetStarterPacks.Response> {
|
|
2235
|
+
return this._service.xrpc
|
|
2236
|
+
.call('app.bsky.graph.getStarterPacks', params, undefined, opts)
|
|
2237
|
+
.catch((e) => {
|
|
2238
|
+
throw AppBskyGraphGetStarterPacks.toKnownErr(e)
|
|
2239
|
+
})
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2198
2242
|
getSuggestedFollowsByActor(
|
|
2199
2243
|
params?: AppBskyGraphGetSuggestedFollowsByActor.QueryParams,
|
|
2200
2244
|
opts?: AppBskyGraphGetSuggestedFollowsByActor.CallOptions,
|
|
@@ -2587,6 +2631,71 @@ export class ListitemRecord {
|
|
|
2587
2631
|
}
|
|
2588
2632
|
}
|
|
2589
2633
|
|
|
2634
|
+
export class StarterpackRecord {
|
|
2635
|
+
_service: AtpServiceClient
|
|
2636
|
+
|
|
2637
|
+
constructor(service: AtpServiceClient) {
|
|
2638
|
+
this._service = service
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
async list(
|
|
2642
|
+
params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
|
|
2643
|
+
): Promise<{
|
|
2644
|
+
cursor?: string
|
|
2645
|
+
records: { uri: string; value: AppBskyGraphStarterpack.Record }[]
|
|
2646
|
+
}> {
|
|
2647
|
+
const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
|
|
2648
|
+
collection: 'app.bsky.graph.starterpack',
|
|
2649
|
+
...params,
|
|
2650
|
+
})
|
|
2651
|
+
return res.data
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
async get(
|
|
2655
|
+
params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
|
|
2656
|
+
): Promise<{
|
|
2657
|
+
uri: string
|
|
2658
|
+
cid: string
|
|
2659
|
+
value: AppBskyGraphStarterpack.Record
|
|
2660
|
+
}> {
|
|
2661
|
+
const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
|
|
2662
|
+
collection: 'app.bsky.graph.starterpack',
|
|
2663
|
+
...params,
|
|
2664
|
+
})
|
|
2665
|
+
return res.data
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
async create(
|
|
2669
|
+
params: Omit<
|
|
2670
|
+
ComAtprotoRepoCreateRecord.InputSchema,
|
|
2671
|
+
'collection' | 'record'
|
|
2672
|
+
>,
|
|
2673
|
+
record: AppBskyGraphStarterpack.Record,
|
|
2674
|
+
headers?: Record<string, string>,
|
|
2675
|
+
): Promise<{ uri: string; cid: string }> {
|
|
2676
|
+
record.$type = 'app.bsky.graph.starterpack'
|
|
2677
|
+
const res = await this._service.xrpc.call(
|
|
2678
|
+
'com.atproto.repo.createRecord',
|
|
2679
|
+
undefined,
|
|
2680
|
+
{ collection: 'app.bsky.graph.starterpack', ...params, record },
|
|
2681
|
+
{ encoding: 'application/json', headers },
|
|
2682
|
+
)
|
|
2683
|
+
return res.data
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
async delete(
|
|
2687
|
+
params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2688
|
+
headers?: Record<string, string>,
|
|
2689
|
+
): Promise<void> {
|
|
2690
|
+
await this._service.xrpc.call(
|
|
2691
|
+
'com.atproto.repo.deleteRecord',
|
|
2692
|
+
undefined,
|
|
2693
|
+
{ collection: 'app.bsky.graph.starterpack', ...params },
|
|
2694
|
+
{ headers },
|
|
2695
|
+
)
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2590
2699
|
export class AppBskyLabelerNS {
|
|
2591
2700
|
_service: AtpServiceClient
|
|
2592
2701
|
service: ServiceRecord
|