@atproto/lex-client 0.1.1 → 0.1.3
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 +15 -0
- package/dist/client.d.ts +55 -26
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +19 -9
- package/dist/client.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/applyWrites.d.ts +1 -1
- package/dist/lexicons/com/atproto/repo/applyWrites.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/applyWrites.defs.d.ts +6 -6
- package/dist/lexicons/com/atproto/repo/applyWrites.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/applyWrites.defs.js +1 -1
- package/dist/lexicons/com/atproto/repo/applyWrites.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/applyWrites.js +1 -1
- package/dist/lexicons/com/atproto/repo/applyWrites.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/createRecord.d.ts +1 -1
- package/dist/lexicons/com/atproto/repo/createRecord.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/createRecord.defs.d.ts +6 -6
- package/dist/lexicons/com/atproto/repo/createRecord.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/createRecord.defs.js +1 -1
- package/dist/lexicons/com/atproto/repo/createRecord.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/createRecord.js +1 -1
- package/dist/lexicons/com/atproto/repo/createRecord.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/defs.d.ts +0 -1
- package/dist/lexicons/com/atproto/repo/defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/defs.js +0 -1
- package/dist/lexicons/com/atproto/repo/defs.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/deleteRecord.d.ts +1 -1
- package/dist/lexicons/com/atproto/repo/deleteRecord.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/deleteRecord.defs.d.ts +6 -6
- package/dist/lexicons/com/atproto/repo/deleteRecord.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/deleteRecord.defs.js +1 -1
- package/dist/lexicons/com/atproto/repo/deleteRecord.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/deleteRecord.js +1 -1
- package/dist/lexicons/com/atproto/repo/deleteRecord.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/getRecord.d.ts +1 -1
- package/dist/lexicons/com/atproto/repo/getRecord.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/getRecord.defs.d.ts +4 -4
- package/dist/lexicons/com/atproto/repo/getRecord.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/getRecord.defs.js +1 -1
- package/dist/lexicons/com/atproto/repo/getRecord.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/getRecord.js +1 -1
- package/dist/lexicons/com/atproto/repo/getRecord.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/listRecords.d.ts +1 -1
- package/dist/lexicons/com/atproto/repo/listRecords.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/listRecords.defs.d.ts +4 -4
- package/dist/lexicons/com/atproto/repo/listRecords.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/listRecords.defs.js +1 -1
- package/dist/lexicons/com/atproto/repo/listRecords.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/listRecords.js +1 -1
- package/dist/lexicons/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/putRecord.d.ts +1 -1
- package/dist/lexicons/com/atproto/repo/putRecord.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/putRecord.defs.d.ts +6 -6
- package/dist/lexicons/com/atproto/repo/putRecord.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/putRecord.defs.js +1 -1
- package/dist/lexicons/com/atproto/repo/putRecord.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/putRecord.js +1 -1
- package/dist/lexicons/com/atproto/repo/putRecord.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/uploadBlob.d.ts +1 -1
- package/dist/lexicons/com/atproto/repo/uploadBlob.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/uploadBlob.defs.d.ts +6 -6
- package/dist/lexicons/com/atproto/repo/uploadBlob.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/repo/uploadBlob.defs.js +1 -1
- package/dist/lexicons/com/atproto/repo/uploadBlob.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/repo/uploadBlob.js +1 -1
- package/dist/lexicons/com/atproto/repo/uploadBlob.js.map +1 -1
- package/dist/lexicons/com/atproto/sync/getBlob.d.ts +1 -1
- package/dist/lexicons/com/atproto/sync/getBlob.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/sync/getBlob.defs.d.ts +4 -4
- package/dist/lexicons/com/atproto/sync/getBlob.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/sync/getBlob.defs.js +1 -1
- package/dist/lexicons/com/atproto/sync/getBlob.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/sync/getBlob.js +1 -1
- package/dist/lexicons/com/atproto/sync/getBlob.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +61 -44
- package/src/lexicons/com/atproto/repo/applyWrites.defs.ts +16 -12
- package/src/lexicons/com/atproto/repo/applyWrites.ts +1 -1
- package/src/lexicons/com/atproto/repo/createRecord.defs.ts +15 -12
- package/src/lexicons/com/atproto/repo/createRecord.ts +1 -1
- package/src/lexicons/com/atproto/repo/defs.ts +0 -1
- package/src/lexicons/com/atproto/repo/deleteRecord.defs.ts +15 -12
- package/src/lexicons/com/atproto/repo/deleteRecord.ts +1 -1
- package/src/lexicons/com/atproto/repo/getRecord.defs.ts +11 -7
- package/src/lexicons/com/atproto/repo/getRecord.ts +1 -1
- package/src/lexicons/com/atproto/repo/listRecords.defs.ts +12 -7
- package/src/lexicons/com/atproto/repo/listRecords.ts +1 -1
- package/src/lexicons/com/atproto/repo/putRecord.defs.ts +15 -12
- package/src/lexicons/com/atproto/repo/putRecord.ts +1 -1
- package/src/lexicons/com/atproto/repo/uploadBlob.defs.ts +15 -12
- package/src/lexicons/com/atproto/repo/uploadBlob.ts +1 -1
- package/src/lexicons/com/atproto/sync/getBlob.defs.ts +11 -7
- package/src/lexicons/com/atproto/sync/getBlob.ts +1 -1
|
@@ -9,8 +9,10 @@ const $nsid = 'com.atproto.repo.applyWrites'
|
|
|
9
9
|
|
|
10
10
|
export { $nsid }
|
|
11
11
|
|
|
12
|
-
export const $lxm = $nsid
|
|
13
12
|
export const $params = /*#__PURE__*/ l.params()
|
|
13
|
+
|
|
14
|
+
export type $Params = l.InferOutput<typeof $params>
|
|
15
|
+
|
|
14
16
|
export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
15
17
|
repo: /*#__PURE__*/ l.string({ format: 'at-identifier' }),
|
|
16
18
|
validate: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
@@ -28,6 +30,10 @@ export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
|
28
30
|
/*#__PURE__*/ l.string({ format: 'cid' }),
|
|
29
31
|
),
|
|
30
32
|
})
|
|
33
|
+
|
|
34
|
+
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>
|
|
35
|
+
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>
|
|
36
|
+
|
|
31
37
|
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
32
38
|
commit: /*#__PURE__*/ l.optional(
|
|
33
39
|
/*#__PURE__*/ l.ref<RepoDefs.CommitMeta>(
|
|
@@ -47,6 +53,13 @@ export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
|
47
53
|
),
|
|
48
54
|
),
|
|
49
55
|
})
|
|
56
|
+
|
|
57
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>
|
|
58
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<
|
|
59
|
+
typeof $output,
|
|
60
|
+
B
|
|
61
|
+
>
|
|
62
|
+
|
|
50
63
|
/** Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS. */
|
|
51
64
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
52
65
|
'InvalidSwap',
|
|
@@ -54,17 +67,8 @@ const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
|
54
67
|
|
|
55
68
|
export { main }
|
|
56
69
|
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<
|
|
60
|
-
typeof main,
|
|
61
|
-
B
|
|
62
|
-
>
|
|
63
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>
|
|
64
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<
|
|
65
|
-
typeof main,
|
|
66
|
-
B
|
|
67
|
-
>
|
|
70
|
+
export const $lxm = $nsid
|
|
71
|
+
|
|
68
72
|
/** Operation which creates a new record. */
|
|
69
73
|
type Create = {
|
|
70
74
|
$type?: 'com.atproto.repo.applyWrites#create'
|
|
@@ -9,8 +9,10 @@ const $nsid = 'com.atproto.repo.createRecord'
|
|
|
9
9
|
|
|
10
10
|
export { $nsid }
|
|
11
11
|
|
|
12
|
-
export const $lxm = $nsid
|
|
13
12
|
export const $params = /*#__PURE__*/ l.params()
|
|
13
|
+
|
|
14
|
+
export type $Params = l.InferOutput<typeof $params>
|
|
15
|
+
|
|
14
16
|
export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
15
17
|
repo: /*#__PURE__*/ l.string({ format: 'at-identifier' }),
|
|
16
18
|
collection: /*#__PURE__*/ l.string({ format: 'nsid' }),
|
|
@@ -23,6 +25,10 @@ export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
|
23
25
|
/*#__PURE__*/ l.string({ format: 'cid' }),
|
|
24
26
|
),
|
|
25
27
|
})
|
|
28
|
+
|
|
29
|
+
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>
|
|
30
|
+
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>
|
|
31
|
+
|
|
26
32
|
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
27
33
|
uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
|
|
28
34
|
cid: /*#__PURE__*/ l.string({ format: 'cid' }),
|
|
@@ -35,6 +41,13 @@ export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
|
35
41
|
/*#__PURE__*/ l.string<{ knownValues: ['valid', 'unknown'] }>(),
|
|
36
42
|
),
|
|
37
43
|
})
|
|
44
|
+
|
|
45
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>
|
|
46
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<
|
|
47
|
+
typeof $output,
|
|
48
|
+
B
|
|
49
|
+
>
|
|
50
|
+
|
|
38
51
|
/** Create a single new repository record. Requires auth, implemented by PDS. */
|
|
39
52
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
40
53
|
'InvalidSwap',
|
|
@@ -42,14 +55,4 @@ const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
|
42
55
|
|
|
43
56
|
export { main }
|
|
44
57
|
|
|
45
|
-
export
|
|
46
|
-
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>
|
|
47
|
-
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<
|
|
48
|
-
typeof main,
|
|
49
|
-
B
|
|
50
|
-
>
|
|
51
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>
|
|
52
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<
|
|
53
|
-
typeof main,
|
|
54
|
-
B
|
|
55
|
-
>
|
|
58
|
+
export const $lxm = $nsid
|
|
@@ -9,8 +9,10 @@ const $nsid = 'com.atproto.repo.deleteRecord'
|
|
|
9
9
|
|
|
10
10
|
export { $nsid }
|
|
11
11
|
|
|
12
|
-
export const $lxm = $nsid
|
|
13
12
|
export const $params = /*#__PURE__*/ l.params()
|
|
13
|
+
|
|
14
|
+
export type $Params = l.InferOutput<typeof $params>
|
|
15
|
+
|
|
14
16
|
export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
15
17
|
repo: /*#__PURE__*/ l.string({ format: 'at-identifier' }),
|
|
16
18
|
collection: /*#__PURE__*/ l.string({ format: 'nsid' }),
|
|
@@ -22,6 +24,10 @@ export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
|
22
24
|
/*#__PURE__*/ l.string({ format: 'cid' }),
|
|
23
25
|
),
|
|
24
26
|
})
|
|
27
|
+
|
|
28
|
+
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>
|
|
29
|
+
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>
|
|
30
|
+
|
|
25
31
|
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
26
32
|
commit: /*#__PURE__*/ l.optional(
|
|
27
33
|
/*#__PURE__*/ l.ref<RepoDefs.CommitMeta>(
|
|
@@ -29,6 +35,13 @@ export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
|
29
35
|
),
|
|
30
36
|
),
|
|
31
37
|
})
|
|
38
|
+
|
|
39
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>
|
|
40
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<
|
|
41
|
+
typeof $output,
|
|
42
|
+
B
|
|
43
|
+
>
|
|
44
|
+
|
|
32
45
|
/** Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS. */
|
|
33
46
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
34
47
|
'InvalidSwap',
|
|
@@ -36,14 +49,4 @@ const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
|
36
49
|
|
|
37
50
|
export { main }
|
|
38
51
|
|
|
39
|
-
export
|
|
40
|
-
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>
|
|
41
|
-
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<
|
|
42
|
-
typeof main,
|
|
43
|
-
B
|
|
44
|
-
>
|
|
45
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>
|
|
46
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<
|
|
47
|
-
typeof main,
|
|
48
|
-
B
|
|
49
|
-
>
|
|
52
|
+
export const $lxm = $nsid
|
|
@@ -8,26 +8,30 @@ const $nsid = 'com.atproto.repo.getRecord'
|
|
|
8
8
|
|
|
9
9
|
export { $nsid }
|
|
10
10
|
|
|
11
|
-
export const $lxm = $nsid
|
|
12
11
|
export const $params = /*#__PURE__*/ l.params({
|
|
13
12
|
repo: /*#__PURE__*/ l.string({ format: 'at-identifier' }),
|
|
14
13
|
collection: /*#__PURE__*/ l.string({ format: 'nsid' }),
|
|
15
14
|
rkey: /*#__PURE__*/ l.string({ format: 'record-key' }),
|
|
16
15
|
cid: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'cid' })),
|
|
17
16
|
})
|
|
17
|
+
|
|
18
|
+
export type $Params = l.InferOutput<typeof $params>
|
|
19
|
+
|
|
18
20
|
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
19
21
|
uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
|
|
20
22
|
cid: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'cid' })),
|
|
21
23
|
value: /*#__PURE__*/ l.lexMap(),
|
|
22
24
|
})
|
|
25
|
+
|
|
26
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>
|
|
27
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<
|
|
28
|
+
typeof $output,
|
|
29
|
+
B
|
|
30
|
+
>
|
|
31
|
+
|
|
23
32
|
/** Get a single record from a repository. Does not require auth. */
|
|
24
33
|
const main = /*#__PURE__*/ l.query($nsid, $params, $output, ['RecordNotFound'])
|
|
25
34
|
|
|
26
35
|
export { main }
|
|
27
36
|
|
|
28
|
-
export
|
|
29
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>
|
|
30
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<
|
|
31
|
-
typeof main,
|
|
32
|
-
B
|
|
33
|
-
>
|
|
37
|
+
export const $lxm = $nsid
|
|
@@ -8,7 +8,6 @@ const $nsid = 'com.atproto.repo.listRecords'
|
|
|
8
8
|
|
|
9
9
|
export { $nsid }
|
|
10
10
|
|
|
11
|
-
export const $lxm = $nsid
|
|
12
11
|
export const $params = /*#__PURE__*/ l.params({
|
|
13
12
|
repo: /*#__PURE__*/ l.string({ format: 'at-identifier' }),
|
|
14
13
|
collection: /*#__PURE__*/ l.string({ format: 'nsid' }),
|
|
@@ -21,23 +20,29 @@ export const $params = /*#__PURE__*/ l.params({
|
|
|
21
20
|
cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
|
|
22
21
|
reverse: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
23
22
|
})
|
|
23
|
+
|
|
24
|
+
export type $Params = l.InferOutput<typeof $params>
|
|
25
|
+
|
|
24
26
|
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
25
27
|
cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
|
|
26
28
|
records: /*#__PURE__*/ l.array(
|
|
27
29
|
/*#__PURE__*/ l.ref<Record$0>((() => record$0) as any),
|
|
28
30
|
),
|
|
29
31
|
})
|
|
32
|
+
|
|
33
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>
|
|
34
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<
|
|
35
|
+
typeof $output,
|
|
36
|
+
B
|
|
37
|
+
>
|
|
38
|
+
|
|
30
39
|
/** List a range of records in a repository, matching a specific collection. Does not require auth. */
|
|
31
40
|
const main = /*#__PURE__*/ l.query($nsid, $params, $output)
|
|
32
41
|
|
|
33
42
|
export { main }
|
|
34
43
|
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<
|
|
38
|
-
typeof main,
|
|
39
|
-
B
|
|
40
|
-
>
|
|
44
|
+
export const $lxm = $nsid
|
|
45
|
+
|
|
41
46
|
type Record$0 = {
|
|
42
47
|
$type?: 'com.atproto.repo.listRecords#record'
|
|
43
48
|
uri: l.AtUriString
|
|
@@ -9,8 +9,10 @@ const $nsid = 'com.atproto.repo.putRecord'
|
|
|
9
9
|
|
|
10
10
|
export { $nsid }
|
|
11
11
|
|
|
12
|
-
export const $lxm = $nsid
|
|
13
12
|
export const $params = /*#__PURE__*/ l.params()
|
|
13
|
+
|
|
14
|
+
export type $Params = l.InferOutput<typeof $params>
|
|
15
|
+
|
|
14
16
|
export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
15
17
|
repo: /*#__PURE__*/ l.string({ format: 'at-identifier' }),
|
|
16
18
|
collection: /*#__PURE__*/ l.string({ format: 'nsid' }),
|
|
@@ -24,6 +26,10 @@ export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
|
24
26
|
/*#__PURE__*/ l.string({ format: 'cid' }),
|
|
25
27
|
),
|
|
26
28
|
})
|
|
29
|
+
|
|
30
|
+
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>
|
|
31
|
+
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>
|
|
32
|
+
|
|
27
33
|
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
28
34
|
uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),
|
|
29
35
|
cid: /*#__PURE__*/ l.string({ format: 'cid' }),
|
|
@@ -36,6 +42,13 @@ export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
|
36
42
|
/*#__PURE__*/ l.string<{ knownValues: ['valid', 'unknown'] }>(),
|
|
37
43
|
),
|
|
38
44
|
})
|
|
45
|
+
|
|
46
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>
|
|
47
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<
|
|
48
|
+
typeof $output,
|
|
49
|
+
B
|
|
50
|
+
>
|
|
51
|
+
|
|
39
52
|
/** Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS. */
|
|
40
53
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
41
54
|
'InvalidSwap',
|
|
@@ -43,14 +56,4 @@ const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
|
43
56
|
|
|
44
57
|
export { main }
|
|
45
58
|
|
|
46
|
-
export
|
|
47
|
-
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>
|
|
48
|
-
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<
|
|
49
|
-
typeof main,
|
|
50
|
-
B
|
|
51
|
-
>
|
|
52
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>
|
|
53
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<
|
|
54
|
-
typeof main,
|
|
55
|
-
B
|
|
56
|
-
>
|
|
59
|
+
export const $lxm = $nsid
|
|
@@ -8,25 +8,28 @@ const $nsid = 'com.atproto.repo.uploadBlob'
|
|
|
8
8
|
|
|
9
9
|
export { $nsid }
|
|
10
10
|
|
|
11
|
-
export const $lxm = $nsid
|
|
12
11
|
export const $params = /*#__PURE__*/ l.params()
|
|
12
|
+
|
|
13
|
+
export type $Params = l.InferOutput<typeof $params>
|
|
14
|
+
|
|
13
15
|
export const $input = /*#__PURE__*/ l.payload('*/*')
|
|
16
|
+
|
|
17
|
+
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>
|
|
18
|
+
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>
|
|
19
|
+
|
|
14
20
|
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
15
21
|
blob: /*#__PURE__*/ l.blob(),
|
|
16
22
|
})
|
|
23
|
+
|
|
24
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>
|
|
25
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<
|
|
26
|
+
typeof $output,
|
|
27
|
+
B
|
|
28
|
+
>
|
|
29
|
+
|
|
17
30
|
/** Upload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS. */
|
|
18
31
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)
|
|
19
32
|
|
|
20
33
|
export { main }
|
|
21
34
|
|
|
22
|
-
export
|
|
23
|
-
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>
|
|
24
|
-
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<
|
|
25
|
-
typeof main,
|
|
26
|
-
B
|
|
27
|
-
>
|
|
28
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>
|
|
29
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<
|
|
30
|
-
typeof main,
|
|
31
|
-
B
|
|
32
|
-
>
|
|
35
|
+
export const $lxm = $nsid
|
|
@@ -8,12 +8,21 @@ const $nsid = 'com.atproto.sync.getBlob'
|
|
|
8
8
|
|
|
9
9
|
export { $nsid }
|
|
10
10
|
|
|
11
|
-
export const $lxm = $nsid
|
|
12
11
|
export const $params = /*#__PURE__*/ l.params({
|
|
13
12
|
did: /*#__PURE__*/ l.string({ format: 'did' }),
|
|
14
13
|
cid: /*#__PURE__*/ l.string({ format: 'cid' }),
|
|
15
14
|
})
|
|
15
|
+
|
|
16
|
+
export type $Params = l.InferOutput<typeof $params>
|
|
17
|
+
|
|
16
18
|
export const $output = /*#__PURE__*/ l.payload('*/*')
|
|
19
|
+
|
|
20
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>
|
|
21
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<
|
|
22
|
+
typeof $output,
|
|
23
|
+
B
|
|
24
|
+
>
|
|
25
|
+
|
|
17
26
|
/** Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS. */
|
|
18
27
|
const main = /*#__PURE__*/ l.query($nsid, $params, $output, [
|
|
19
28
|
'BlobNotFound',
|
|
@@ -25,9 +34,4 @@ const main = /*#__PURE__*/ l.query($nsid, $params, $output, [
|
|
|
25
34
|
|
|
26
35
|
export { main }
|
|
27
36
|
|
|
28
|
-
export
|
|
29
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>
|
|
30
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<
|
|
31
|
-
typeof main,
|
|
32
|
-
B
|
|
33
|
-
>
|
|
37
|
+
export const $lxm = $nsid
|