@atproto/api 0.13.0 → 0.13.2-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/CHANGELOG.md +96 -90
- package/dist/client/index.d.ts +17 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +39 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +236 -15
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +247 -18
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/defs.d.ts +13 -0
- package/dist/client/types/app/bsky/embed/defs.d.ts.map +1 -0
- package/dist/client/types/app/bsky/embed/defs.js +16 -0
- package/dist/client/types/app/bsky/embed/defs.js.map +1 -0
- package/dist/client/types/app/bsky/embed/images.d.ts +3 -10
- package/dist/client/types/app/bsky/embed/images.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/images.js +1 -11
- package/dist/client/types/app/bsky/embed/images.js.map +1 -1
- package/dist/client/types/app/bsky/embed/record.d.ts +2 -1
- package/dist/client/types/app/bsky/embed/record.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/record.js.map +1 -1
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +3 -2
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/recordWithMedia.js.map +1 -1
- package/dist/client/types/app/bsky/embed/video.d.ts +33 -0
- package/dist/client/types/app/bsky/embed/video.d.ts.map +1 -0
- package/dist/client/types/app/bsky/embed/video.js +35 -0
- package/dist/client/types/app/bsky/embed/video.js.map +1 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts +2 -1
- package/dist/client/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/client/types/app/bsky/feed/post.d.ts +2 -1
- package/dist/client/types/app/bsky/feed/post.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/post.js.map +1 -1
- package/dist/client/types/app/bsky/video/defs.d.ts +19 -0
- package/dist/client/types/app/bsky/video/defs.d.ts.map +1 -0
- package/dist/client/types/app/bsky/video/defs.js +16 -0
- package/dist/client/types/app/bsky/video/defs.js.map +1 -0
- package/dist/client/types/app/bsky/video/getJobStatus.d.ts +24 -0
- package/dist/client/types/app/bsky/video/getJobStatus.d.ts.map +1 -0
- package/dist/client/types/app/bsky/video/getJobStatus.js +8 -0
- package/dist/client/types/app/bsky/video/getJobStatus.js.map +1 -0
- package/dist/client/types/app/bsky/video/getUploadLimits.d.ts +26 -0
- package/dist/client/types/app/bsky/video/getUploadLimits.d.ts.map +1 -0
- package/dist/client/types/app/bsky/video/getUploadLimits.js +8 -0
- package/dist/client/types/app/bsky/video/getUploadLimits.js.map +1 -0
- package/dist/client/types/app/bsky/video/uploadVideo.d.ts +25 -0
- package/dist/client/types/app/bsky/video/uploadVideo.d.ts.map +1 -0
- package/dist/client/types/app/bsky/video/uploadVideo.js +8 -0
- package/dist/client/types/app/bsky/video/uploadVideo.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/client/index.ts +53 -0
- package/src/client/lexicons.ts +250 -19
- package/src/client/types/app/bsky/embed/defs.ts +26 -0
- package/src/client/types/app/bsky/embed/images.ts +3 -21
- package/src/client/types/app/bsky/embed/record.ts +2 -0
- package/src/client/types/app/bsky/embed/recordWithMedia.ts +3 -0
- package/src/client/types/app/bsky/embed/video.ts +67 -0
- package/src/client/types/app/bsky/feed/defs.ts +2 -0
- package/src/client/types/app/bsky/feed/post.ts +2 -0
- package/src/client/types/app/bsky/video/defs.ts +32 -0
- package/src/client/types/app/bsky/video/getJobStatus.ts +35 -0
- package/src/client/types/app/bsky/video/getUploadLimits.ts +36 -0
- package/src/client/types/app/bsky/video/uploadVideo.ts +35 -0
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atproto/api
|
|
2
2
|
|
|
3
|
+
## 0.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2708](https://github.com/bluesky-social/atproto/pull/2708) [`22af354a5`](https://github.com/bluesky-social/atproto/commit/22af354a5db595d7cbc0e65f02601de3565337e1) Thanks [@devinivy](https://github.com/devinivy)! - Export AtpAgentOptions type to better support extending AtpAgent.
|
|
8
|
+
|
|
3
9
|
## 0.13.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -42,7 +48,7 @@
|
|
|
42
48
|
`AtpAgent`.
|
|
43
49
|
|
|
44
50
|
```ts
|
|
45
|
-
import { Agent, AtpAgent } from
|
|
51
|
+
import { Agent, AtpAgent } from "@atproto/api";
|
|
46
52
|
|
|
47
53
|
async function setupAgent(
|
|
48
54
|
service: string,
|
|
@@ -54,30 +60,30 @@
|
|
|
54
60
|
persistSession: (evt, session) => {
|
|
55
61
|
// handle session update
|
|
56
62
|
},
|
|
57
|
-
})
|
|
63
|
+
});
|
|
58
64
|
|
|
59
|
-
await agent.login(username, password)
|
|
65
|
+
await agent.login(username, password);
|
|
60
66
|
|
|
61
|
-
return agent
|
|
67
|
+
return agent;
|
|
62
68
|
}
|
|
63
69
|
```
|
|
64
70
|
|
|
65
71
|
```ts
|
|
66
|
-
import { Agent } from
|
|
72
|
+
import { Agent } from "@atproto/api";
|
|
67
73
|
|
|
68
74
|
async function doStuffWithAgent(agent: Agent, arg: string) {
|
|
69
|
-
return agent.resolveHandle(arg)
|
|
75
|
+
return agent.resolveHandle(arg);
|
|
70
76
|
}
|
|
71
77
|
```
|
|
72
78
|
|
|
73
79
|
```ts
|
|
74
|
-
import { Agent, AtpAgent } from
|
|
80
|
+
import { Agent, AtpAgent } from "@atproto/api";
|
|
75
81
|
|
|
76
82
|
class MyClass {
|
|
77
|
-
agent: Agent
|
|
83
|
+
agent: Agent;
|
|
78
84
|
|
|
79
85
|
constructor() {
|
|
80
|
-
this.agent = new AtpAgent()
|
|
86
|
+
this.agent = new AtpAgent();
|
|
81
87
|
}
|
|
82
88
|
}
|
|
83
89
|
```
|
|
@@ -155,24 +161,24 @@
|
|
|
155
161
|
<td>
|
|
156
162
|
|
|
157
163
|
```ts
|
|
158
|
-
import { AtpBaseClient, ComAtprotoSyncSubscribeRepos } from
|
|
164
|
+
import { AtpBaseClient, ComAtprotoSyncSubscribeRepos } from "@atproto/api";
|
|
159
165
|
|
|
160
|
-
const baseClient = new AtpBaseClient()
|
|
166
|
+
const baseClient = new AtpBaseClient();
|
|
161
167
|
|
|
162
|
-
baseClient.xrpc.lex.assertValidXrpcMessage(
|
|
168
|
+
baseClient.xrpc.lex.assertValidXrpcMessage("io.example.doStuff", {
|
|
163
169
|
// ...
|
|
164
|
-
})
|
|
170
|
+
});
|
|
165
171
|
```
|
|
166
172
|
|
|
167
173
|
</td>
|
|
168
174
|
<td>
|
|
169
175
|
|
|
170
176
|
```ts
|
|
171
|
-
import { lexicons } from
|
|
177
|
+
import { lexicons } from "@atproto/api";
|
|
172
178
|
|
|
173
|
-
lexicons.assertValidXrpcMessage(
|
|
179
|
+
lexicons.assertValidXrpcMessage("io.example.doStuff", {
|
|
174
180
|
// ...
|
|
175
|
-
})
|
|
181
|
+
});
|
|
176
182
|
```
|
|
177
183
|
|
|
178
184
|
</td>
|
|
@@ -189,23 +195,23 @@
|
|
|
189
195
|
<td>
|
|
190
196
|
|
|
191
197
|
```ts
|
|
192
|
-
import { BskyAgent } from
|
|
198
|
+
import { BskyAgent } from "@atproto/api";
|
|
193
199
|
|
|
194
200
|
class MyAgent extends BskyAgent {
|
|
195
|
-
private accessToken?: string
|
|
201
|
+
private accessToken?: string;
|
|
196
202
|
|
|
197
203
|
async createOrRefreshSession(identifier: string, password: string) {
|
|
198
204
|
// custom logic here
|
|
199
205
|
|
|
200
|
-
this.accessToken =
|
|
206
|
+
this.accessToken = "my-access-jwt";
|
|
201
207
|
}
|
|
202
208
|
|
|
203
209
|
async doStuff() {
|
|
204
|
-
return this.call(
|
|
210
|
+
return this.call("io.example.doStuff", {
|
|
205
211
|
headers: {
|
|
206
212
|
Authorization: this.accessToken && `Bearer ${this.accessToken}`,
|
|
207
213
|
},
|
|
208
|
-
})
|
|
214
|
+
});
|
|
209
215
|
}
|
|
210
216
|
}
|
|
211
217
|
```
|
|
@@ -214,11 +220,11 @@
|
|
|
214
220
|
<td>
|
|
215
221
|
|
|
216
222
|
```ts
|
|
217
|
-
import { Agent } from
|
|
223
|
+
import { Agent } from "@atproto/api";
|
|
218
224
|
|
|
219
225
|
class MyAgent extends Agent {
|
|
220
|
-
private accessToken?: string
|
|
221
|
-
public did?: string
|
|
226
|
+
private accessToken?: string;
|
|
227
|
+
public did?: string;
|
|
222
228
|
|
|
223
229
|
constructor(private readonly service: string | URL) {
|
|
224
230
|
super({
|
|
@@ -227,21 +233,21 @@
|
|
|
227
233
|
Authorization: () =>
|
|
228
234
|
this.accessToken ? `Bearer ${this.accessToken}` : null,
|
|
229
235
|
},
|
|
230
|
-
})
|
|
236
|
+
});
|
|
231
237
|
}
|
|
232
238
|
|
|
233
239
|
clone(): MyAgent {
|
|
234
|
-
const agent = new MyAgent(this.service)
|
|
235
|
-
agent.accessToken = this.accessToken
|
|
236
|
-
agent.did = this.did
|
|
237
|
-
return this.copyInto(agent)
|
|
240
|
+
const agent = new MyAgent(this.service);
|
|
241
|
+
agent.accessToken = this.accessToken;
|
|
242
|
+
agent.did = this.did;
|
|
243
|
+
return this.copyInto(agent);
|
|
238
244
|
}
|
|
239
245
|
|
|
240
246
|
async createOrRefreshSession(identifier: string, password: string) {
|
|
241
247
|
// custom logic here
|
|
242
248
|
|
|
243
|
-
this.did =
|
|
244
|
-
this.accessToken =
|
|
249
|
+
this.did = "did:example:123";
|
|
250
|
+
this.accessToken = "my-access-jwt";
|
|
245
251
|
}
|
|
246
252
|
}
|
|
247
253
|
```
|
|
@@ -260,38 +266,38 @@
|
|
|
260
266
|
<td>
|
|
261
267
|
|
|
262
268
|
```ts
|
|
263
|
-
import { BskyAgent } from
|
|
264
|
-
import { RateLimitThreshold } from
|
|
269
|
+
import { BskyAgent } from "@atproto/api";
|
|
270
|
+
import { RateLimitThreshold } from "rate-limit-threshold";
|
|
265
271
|
|
|
266
|
-
const agent = new BskyAgent()
|
|
267
|
-
const limiter = new RateLimitThreshold(3000, 300_000)
|
|
272
|
+
const agent = new BskyAgent();
|
|
273
|
+
const limiter = new RateLimitThreshold(3000, 300_000);
|
|
268
274
|
|
|
269
|
-
const origCall = agent.api.xrpc.call
|
|
275
|
+
const origCall = agent.api.xrpc.call;
|
|
270
276
|
agent.api.xrpc.call = async function (...args) {
|
|
271
|
-
await limiter.wait()
|
|
272
|
-
return origCall.call(this, ...args)
|
|
273
|
-
}
|
|
277
|
+
await limiter.wait();
|
|
278
|
+
return origCall.call(this, ...args);
|
|
279
|
+
};
|
|
274
280
|
```
|
|
275
281
|
|
|
276
282
|
</td>
|
|
277
283
|
<td>
|
|
278
284
|
|
|
279
285
|
```ts
|
|
280
|
-
import { AtpAgent } from
|
|
281
|
-
import { RateLimitThreshold } from
|
|
286
|
+
import { AtpAgent } from "@atproto/api";
|
|
287
|
+
import { RateLimitThreshold } from "rate-limit-threshold";
|
|
282
288
|
|
|
283
289
|
class LimitedAtpAgent extends AtpAgent {
|
|
284
290
|
constructor(options: AtpAgentOptions) {
|
|
285
|
-
const fetch: typeof globalThis.fetch = options.fetch ?? globalThis.fetch
|
|
286
|
-
const limiter = new RateLimitThreshold(3000, 300_000)
|
|
291
|
+
const fetch: typeof globalThis.fetch = options.fetch ?? globalThis.fetch;
|
|
292
|
+
const limiter = new RateLimitThreshold(3000, 300_000);
|
|
287
293
|
|
|
288
294
|
super({
|
|
289
295
|
...options,
|
|
290
296
|
fetch: async (...args) => {
|
|
291
|
-
await limiter.wait()
|
|
292
|
-
return fetch(...args)
|
|
297
|
+
await limiter.wait();
|
|
298
|
+
return fetch(...args);
|
|
293
299
|
},
|
|
294
|
-
})
|
|
300
|
+
});
|
|
295
301
|
}
|
|
296
302
|
}
|
|
297
303
|
```
|
|
@@ -312,40 +318,40 @@
|
|
|
312
318
|
<td>
|
|
313
319
|
|
|
314
320
|
```ts
|
|
315
|
-
import { BskyAgent, defaultFetchHandler } from
|
|
321
|
+
import { BskyAgent, defaultFetchHandler } from "@atproto/api";
|
|
316
322
|
|
|
317
323
|
BskyAgent.configure({
|
|
318
324
|
fetch: async (httpUri, httpMethod, httpHeaders, httpReqBody) => {
|
|
319
|
-
const ua = httpHeaders[
|
|
325
|
+
const ua = httpHeaders["User-Agent"];
|
|
320
326
|
|
|
321
|
-
httpHeaders[
|
|
327
|
+
httpHeaders["User-Agent"] = ua ? `${ua} ${userAgent}` : userAgent;
|
|
322
328
|
|
|
323
|
-
return defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody)
|
|
329
|
+
return defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody);
|
|
324
330
|
},
|
|
325
|
-
})
|
|
331
|
+
});
|
|
326
332
|
```
|
|
327
333
|
|
|
328
334
|
</td>
|
|
329
335
|
<td>
|
|
330
336
|
|
|
331
337
|
```ts
|
|
332
|
-
import { AtpAgent } from
|
|
338
|
+
import { AtpAgent } from "@atproto/api";
|
|
333
339
|
|
|
334
340
|
class MyAtpAgent extends AtpAgent {
|
|
335
341
|
constructor(options: AtpAgentOptions) {
|
|
336
|
-
const fetch = options.fetch ?? globalThis.fetch
|
|
342
|
+
const fetch = options.fetch ?? globalThis.fetch;
|
|
337
343
|
|
|
338
344
|
super({
|
|
339
345
|
...options,
|
|
340
346
|
fetch: async (url, init) => {
|
|
341
|
-
const headers = new Headers(init.headers)
|
|
347
|
+
const headers = new Headers(init.headers);
|
|
342
348
|
|
|
343
|
-
const ua = headersList.get(
|
|
344
|
-
headersList.set(
|
|
349
|
+
const ua = headersList.get("User-Agent");
|
|
350
|
+
headersList.set("User-Agent", ua ? `${ua} ${userAgent}` : userAgent);
|
|
345
351
|
|
|
346
|
-
return fetch(url, { ...init, headers })
|
|
352
|
+
return fetch(url, { ...init, headers });
|
|
347
353
|
},
|
|
348
|
-
})
|
|
354
|
+
});
|
|
349
355
|
}
|
|
350
356
|
}
|
|
351
357
|
```
|
|
@@ -404,7 +410,7 @@
|
|
|
404
410
|
*/
|
|
405
411
|
url: string,
|
|
406
412
|
init: RequestInit,
|
|
407
|
-
) => Promise<Response
|
|
413
|
+
) => Promise<Response>;
|
|
408
414
|
```
|
|
409
415
|
|
|
410
416
|
A noticeable change that has been introduced is that the `uri` field of the
|
|
@@ -442,7 +448,7 @@
|
|
|
442
448
|
<td>
|
|
443
449
|
|
|
444
450
|
```ts
|
|
445
|
-
import client, { defaultFetchHandler } from
|
|
451
|
+
import client, { defaultFetchHandler } from "@atproto/xrpc";
|
|
446
452
|
|
|
447
453
|
client.fetch = function (
|
|
448
454
|
httpUri: string,
|
|
@@ -451,50 +457,50 @@
|
|
|
451
457
|
httpReqBody: unknown,
|
|
452
458
|
) {
|
|
453
459
|
// Custom logic here
|
|
454
|
-
return defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody)
|
|
455
|
-
}
|
|
460
|
+
return defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody);
|
|
461
|
+
};
|
|
456
462
|
|
|
457
463
|
client.addLexicon({
|
|
458
464
|
lexicon: 1,
|
|
459
|
-
id:
|
|
465
|
+
id: "io.example.doStuff",
|
|
460
466
|
defs: {},
|
|
461
|
-
})
|
|
467
|
+
});
|
|
462
468
|
|
|
463
|
-
const instance = client.service(
|
|
469
|
+
const instance = client.service("http://my-service.com");
|
|
464
470
|
|
|
465
|
-
instance.setHeader(
|
|
471
|
+
instance.setHeader("my-header", "my-value");
|
|
466
472
|
|
|
467
|
-
await instance.call(
|
|
473
|
+
await instance.call("io.example.doStuff");
|
|
468
474
|
```
|
|
469
475
|
|
|
470
476
|
</td>
|
|
471
477
|
<td>
|
|
472
478
|
|
|
473
479
|
```ts
|
|
474
|
-
import { XrpcClient } from
|
|
480
|
+
import { XrpcClient } from "@atproto/xrpc";
|
|
475
481
|
|
|
476
482
|
const instance = new XrpcClient(
|
|
477
483
|
async (url, init) => {
|
|
478
|
-
const headers = new Headers(init.headers)
|
|
484
|
+
const headers = new Headers(init.headers);
|
|
479
485
|
|
|
480
|
-
headers.set(
|
|
486
|
+
headers.set("my-header", "my-value");
|
|
481
487
|
|
|
482
488
|
// Custom logic here
|
|
483
489
|
|
|
484
|
-
const fullUrl = new URL(url,
|
|
490
|
+
const fullUrl = new URL(url, "http://my-service.com");
|
|
485
491
|
|
|
486
|
-
return fetch(fullUrl, { ...init, headers })
|
|
492
|
+
return fetch(fullUrl, { ...init, headers });
|
|
487
493
|
},
|
|
488
494
|
[
|
|
489
495
|
{
|
|
490
496
|
lexicon: 1,
|
|
491
|
-
id:
|
|
497
|
+
id: "io.example.doStuff",
|
|
492
498
|
defs: {},
|
|
493
499
|
},
|
|
494
500
|
],
|
|
495
|
-
)
|
|
501
|
+
);
|
|
496
502
|
|
|
497
|
-
await instance.call(
|
|
503
|
+
await instance.call("io.example.doStuff");
|
|
498
504
|
```
|
|
499
505
|
|
|
500
506
|
</td>
|
|
@@ -506,62 +512,62 @@
|
|
|
506
512
|
previous example can be simplified to:
|
|
507
513
|
|
|
508
514
|
```ts
|
|
509
|
-
import { XrpcClient } from
|
|
515
|
+
import { XrpcClient } from "@atproto/xrpc";
|
|
510
516
|
|
|
511
|
-
const instance = new XrpcClient(
|
|
517
|
+
const instance = new XrpcClient("http://my-service.com", [
|
|
512
518
|
{
|
|
513
519
|
lexicon: 1,
|
|
514
|
-
id:
|
|
520
|
+
id: "io.example.doStuff",
|
|
515
521
|
defs: {},
|
|
516
522
|
},
|
|
517
|
-
])
|
|
523
|
+
]);
|
|
518
524
|
```
|
|
519
525
|
|
|
520
526
|
If you need to add static headers to all requests, you can instead instantiate
|
|
521
527
|
the `XrpcClient` as follows:
|
|
522
528
|
|
|
523
529
|
```ts
|
|
524
|
-
import { XrpcClient } from
|
|
530
|
+
import { XrpcClient } from "@atproto/xrpc";
|
|
525
531
|
|
|
526
532
|
const instance = new XrpcClient(
|
|
527
533
|
{
|
|
528
|
-
service:
|
|
534
|
+
service: "http://my-service.com",
|
|
529
535
|
headers: {
|
|
530
|
-
|
|
536
|
+
"my-header": "my-value",
|
|
531
537
|
},
|
|
532
538
|
},
|
|
533
539
|
[
|
|
534
540
|
{
|
|
535
541
|
lexicon: 1,
|
|
536
|
-
id:
|
|
542
|
+
id: "io.example.doStuff",
|
|
537
543
|
defs: {},
|
|
538
544
|
},
|
|
539
545
|
],
|
|
540
|
-
)
|
|
546
|
+
);
|
|
541
547
|
```
|
|
542
548
|
|
|
543
549
|
If you need the headers or service url to be dynamic, you can define them using
|
|
544
550
|
functions:
|
|
545
551
|
|
|
546
552
|
```ts
|
|
547
|
-
import { XrpcClient } from
|
|
553
|
+
import { XrpcClient } from "@atproto/xrpc";
|
|
548
554
|
|
|
549
555
|
const instance = new XrpcClient(
|
|
550
556
|
{
|
|
551
|
-
service: () =>
|
|
557
|
+
service: () => "http://my-service.com",
|
|
552
558
|
headers: {
|
|
553
|
-
|
|
554
|
-
|
|
559
|
+
"my-header": () => "my-value",
|
|
560
|
+
"my-ignored-header": () => null, // ignored
|
|
555
561
|
},
|
|
556
562
|
},
|
|
557
563
|
[
|
|
558
564
|
{
|
|
559
565
|
lexicon: 1,
|
|
560
|
-
id:
|
|
566
|
+
id: "io.example.doStuff",
|
|
561
567
|
defs: {},
|
|
562
568
|
},
|
|
563
569
|
],
|
|
564
|
-
)
|
|
570
|
+
);
|
|
565
571
|
```
|
|
566
572
|
|
|
567
573
|
- [#2483](https://github.com/bluesky-social/atproto/pull/2483) [`b934b396b`](https://github.com/bluesky-social/atproto/commit/b934b396b13ba32bf2bf7e75ecdf6871e5f310dd) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Add the ability to use `fetch()` compatible `BodyInit` body when making XRPC calls.
|
package/dist/client/index.d.ts
CHANGED
|
@@ -142,6 +142,9 @@ import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspec
|
|
|
142
142
|
import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions';
|
|
143
143
|
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton';
|
|
144
144
|
import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton';
|
|
145
|
+
import * as AppBskyVideoGetJobStatus from './types/app/bsky/video/getJobStatus';
|
|
146
|
+
import * as AppBskyVideoGetUploadLimits from './types/app/bsky/video/getUploadLimits';
|
|
147
|
+
import * as AppBskyVideoUploadVideo from './types/app/bsky/video/uploadVideo';
|
|
145
148
|
import * as ChatBskyActorDeclaration from './types/chat/bsky/actor/declaration';
|
|
146
149
|
import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount';
|
|
147
150
|
import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData';
|
|
@@ -264,10 +267,12 @@ export * as AppBskyActorProfile from './types/app/bsky/actor/profile';
|
|
|
264
267
|
export * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences';
|
|
265
268
|
export * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors';
|
|
266
269
|
export * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead';
|
|
270
|
+
export * as AppBskyEmbedDefs from './types/app/bsky/embed/defs';
|
|
267
271
|
export * as AppBskyEmbedExternal from './types/app/bsky/embed/external';
|
|
268
272
|
export * as AppBskyEmbedImages from './types/app/bsky/embed/images';
|
|
269
273
|
export * as AppBskyEmbedRecord from './types/app/bsky/embed/record';
|
|
270
274
|
export * as AppBskyEmbedRecordWithMedia from './types/app/bsky/embed/recordWithMedia';
|
|
275
|
+
export * as AppBskyEmbedVideo from './types/app/bsky/embed/video';
|
|
271
276
|
export * as AppBskyFeedDefs from './types/app/bsky/feed/defs';
|
|
272
277
|
export * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describeFeedGenerator';
|
|
273
278
|
export * as AppBskyFeedGenerator from './types/app/bsky/feed/generator';
|
|
@@ -333,6 +338,10 @@ export * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspec
|
|
|
333
338
|
export * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions';
|
|
334
339
|
export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton';
|
|
335
340
|
export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton';
|
|
341
|
+
export * as AppBskyVideoDefs from './types/app/bsky/video/defs';
|
|
342
|
+
export * as AppBskyVideoGetJobStatus from './types/app/bsky/video/getJobStatus';
|
|
343
|
+
export * as AppBskyVideoGetUploadLimits from './types/app/bsky/video/getUploadLimits';
|
|
344
|
+
export * as AppBskyVideoUploadVideo from './types/app/bsky/video/uploadVideo';
|
|
336
345
|
export * as ChatBskyActorDeclaration from './types/chat/bsky/actor/declaration';
|
|
337
346
|
export * as ChatBskyActorDefs from './types/chat/bsky/actor/defs';
|
|
338
347
|
export * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount';
|
|
@@ -556,6 +565,7 @@ export declare class AppBskyNS {
|
|
|
556
565
|
notification: AppBskyNotificationNS;
|
|
557
566
|
richtext: AppBskyRichtextNS;
|
|
558
567
|
unspecced: AppBskyUnspeccedNS;
|
|
568
|
+
video: AppBskyVideoNS;
|
|
559
569
|
constructor(client: XrpcClient);
|
|
560
570
|
}
|
|
561
571
|
export declare class AppBskyActorNS {
|
|
@@ -931,6 +941,13 @@ export declare class AppBskyUnspeccedNS {
|
|
|
931
941
|
searchActorsSkeleton(params?: AppBskyUnspeccedSearchActorsSkeleton.QueryParams, opts?: AppBskyUnspeccedSearchActorsSkeleton.CallOptions): Promise<AppBskyUnspeccedSearchActorsSkeleton.Response>;
|
|
932
942
|
searchPostsSkeleton(params?: AppBskyUnspeccedSearchPostsSkeleton.QueryParams, opts?: AppBskyUnspeccedSearchPostsSkeleton.CallOptions): Promise<AppBskyUnspeccedSearchPostsSkeleton.Response>;
|
|
933
943
|
}
|
|
944
|
+
export declare class AppBskyVideoNS {
|
|
945
|
+
_client: XrpcClient;
|
|
946
|
+
constructor(client: XrpcClient);
|
|
947
|
+
getJobStatus(params?: AppBskyVideoGetJobStatus.QueryParams, opts?: AppBskyVideoGetJobStatus.CallOptions): Promise<AppBskyVideoGetJobStatus.Response>;
|
|
948
|
+
getUploadLimits(params?: AppBskyVideoGetUploadLimits.QueryParams, opts?: AppBskyVideoGetUploadLimits.CallOptions): Promise<AppBskyVideoGetUploadLimits.Response>;
|
|
949
|
+
uploadVideo(data?: AppBskyVideoUploadVideo.InputSchema, opts?: AppBskyVideoUploadVideo.CallOptions): Promise<AppBskyVideoUploadVideo.Response>;
|
|
950
|
+
}
|
|
934
951
|
export declare class ChatNS {
|
|
935
952
|
_client: XrpcClient;
|
|
936
953
|
bsky: ChatBskyNS;
|