@atproto/api 0.18.1 → 0.18.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 +108 -90
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +45 -8
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +744 -10
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +400 -11
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/ageassurance/begin.d.ts +42 -0
- package/dist/client/types/app/bsky/ageassurance/begin.d.ts.map +1 -0
- package/dist/client/types/app/bsky/ageassurance/begin.js +50 -0
- package/dist/client/types/app/bsky/ageassurance/begin.js.map +1 -0
- package/dist/client/types/app/bsky/ageassurance/defs.d.ts +138 -0
- package/dist/client/types/app/bsky/ageassurance/defs.d.ts.map +1 -0
- package/dist/client/types/app/bsky/ageassurance/defs.js +115 -0
- package/dist/client/types/app/bsky/ageassurance/defs.js.map +1 -0
- package/dist/client/types/app/bsky/ageassurance/getConfig.d.ts +19 -0
- package/dist/client/types/app/bsky/ageassurance/getConfig.d.ts.map +1 -0
- package/dist/client/types/app/bsky/ageassurance/getConfig.js +11 -0
- package/dist/client/types/app/bsky/ageassurance/getConfig.js.map +1 -0
- package/dist/client/types/app/bsky/ageassurance/getState.d.ts +25 -0
- package/dist/client/types/app/bsky/ageassurance/getState.d.ts.map +1 -0
- package/dist/client/types/app/bsky/ageassurance/getState.js +11 -0
- package/dist/client/types/app/bsky/ageassurance/getState.js.map +1 -0
- package/dist/client/types/tools/ozone/moderation/defs.d.ts +10 -3
- package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.js.map +1 -1
- package/dist/client/types/tools/ozone/team/defs.d.ts +1 -1
- package/dist/client/types/tools/ozone/team/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/team/defs.js.map +1 -1
- package/package.json +5 -5
- package/src/client/index.ts +53 -0
- package/src/client/lexicons.ts +427 -11
- package/src/client/types/app/bsky/ageassurance/begin.ts +80 -0
- package/src/client/types/app/bsky/ageassurance/defs.ts +301 -0
- package/src/client/types/app/bsky/ageassurance/getConfig.ts +36 -0
- package/src/client/types/app/bsky/ageassurance/getState.ts +43 -0
- package/src/client/types/tools/ozone/moderation/defs.ts +13 -6
- package/src/client/types/tools/ozone/moderation/queryStatuses.ts +6 -1
- package/src/client/types/tools/ozone/team/defs.ts +4 -4
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atproto/api
|
|
2
2
|
|
|
3
|
+
## 0.18.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4347](https://github.com/bluesky-social/atproto/pull/4347) [`69f53d6`](https://github.com/bluesky-social/atproto/commit/69f53d632d84f255cafa8b10698184048a71b97b) Thanks [@bnewbold](https://github.com/bnewbold)! - lexicon updates to have fully-qualified token refs in knownValue lists
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @atproto/common-web@0.4.5
|
|
11
|
+
|
|
12
|
+
## 0.18.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`261968fd6`](https://github.com/bluesky-social/atproto/commit/261968fd65014ded613e2bf085d61a7864b8fba7), [`261968fd6`](https://github.com/bluesky-social/atproto/commit/261968fd65014ded613e2bf085d61a7864b8fba7), [`261968fd6`](https://github.com/bluesky-social/atproto/commit/261968fd65014ded613e2bf085d61a7864b8fba7)]:
|
|
17
|
+
- @atproto/common-web@0.4.4
|
|
18
|
+
- @atproto/lexicon@0.5.2
|
|
19
|
+
- @atproto/xrpc@0.7.6
|
|
20
|
+
|
|
3
21
|
## 0.18.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -857,7 +875,7 @@
|
|
|
857
875
|
`AtpAgent`.
|
|
858
876
|
|
|
859
877
|
```ts
|
|
860
|
-
import { Agent, AtpAgent } from
|
|
878
|
+
import { Agent, AtpAgent } from '@atproto/api'
|
|
861
879
|
|
|
862
880
|
async function setupAgent(
|
|
863
881
|
service: string,
|
|
@@ -869,30 +887,30 @@
|
|
|
869
887
|
persistSession: (evt, session) => {
|
|
870
888
|
// handle session update
|
|
871
889
|
},
|
|
872
|
-
})
|
|
890
|
+
})
|
|
873
891
|
|
|
874
|
-
await agent.login(username, password)
|
|
892
|
+
await agent.login(username, password)
|
|
875
893
|
|
|
876
|
-
return agent
|
|
894
|
+
return agent
|
|
877
895
|
}
|
|
878
896
|
```
|
|
879
897
|
|
|
880
898
|
```ts
|
|
881
|
-
import { Agent } from
|
|
899
|
+
import { Agent } from '@atproto/api'
|
|
882
900
|
|
|
883
901
|
async function doStuffWithAgent(agent: Agent, arg: string) {
|
|
884
|
-
return agent.resolveHandle(arg)
|
|
902
|
+
return agent.resolveHandle(arg)
|
|
885
903
|
}
|
|
886
904
|
```
|
|
887
905
|
|
|
888
906
|
```ts
|
|
889
|
-
import { Agent, AtpAgent } from
|
|
907
|
+
import { Agent, AtpAgent } from '@atproto/api'
|
|
890
908
|
|
|
891
909
|
class MyClass {
|
|
892
|
-
agent: Agent
|
|
910
|
+
agent: Agent
|
|
893
911
|
|
|
894
912
|
constructor() {
|
|
895
|
-
this.agent = new AtpAgent()
|
|
913
|
+
this.agent = new AtpAgent()
|
|
896
914
|
}
|
|
897
915
|
}
|
|
898
916
|
```
|
|
@@ -970,24 +988,24 @@
|
|
|
970
988
|
<td>
|
|
971
989
|
|
|
972
990
|
```ts
|
|
973
|
-
import { AtpBaseClient, ComAtprotoSyncSubscribeRepos } from
|
|
991
|
+
import { AtpBaseClient, ComAtprotoSyncSubscribeRepos } from '@atproto/api'
|
|
974
992
|
|
|
975
|
-
const baseClient = new AtpBaseClient()
|
|
993
|
+
const baseClient = new AtpBaseClient()
|
|
976
994
|
|
|
977
|
-
baseClient.xrpc.lex.assertValidXrpcMessage(
|
|
995
|
+
baseClient.xrpc.lex.assertValidXrpcMessage('io.example.doStuff', {
|
|
978
996
|
// ...
|
|
979
|
-
})
|
|
997
|
+
})
|
|
980
998
|
```
|
|
981
999
|
|
|
982
1000
|
</td>
|
|
983
1001
|
<td>
|
|
984
1002
|
|
|
985
1003
|
```ts
|
|
986
|
-
import { lexicons } from
|
|
1004
|
+
import { lexicons } from '@atproto/api'
|
|
987
1005
|
|
|
988
|
-
lexicons.assertValidXrpcMessage(
|
|
1006
|
+
lexicons.assertValidXrpcMessage('io.example.doStuff', {
|
|
989
1007
|
// ...
|
|
990
|
-
})
|
|
1008
|
+
})
|
|
991
1009
|
```
|
|
992
1010
|
|
|
993
1011
|
</td>
|
|
@@ -1004,23 +1022,23 @@
|
|
|
1004
1022
|
<td>
|
|
1005
1023
|
|
|
1006
1024
|
```ts
|
|
1007
|
-
import { BskyAgent } from
|
|
1025
|
+
import { BskyAgent } from '@atproto/api'
|
|
1008
1026
|
|
|
1009
1027
|
class MyAgent extends BskyAgent {
|
|
1010
|
-
private accessToken?: string
|
|
1028
|
+
private accessToken?: string
|
|
1011
1029
|
|
|
1012
1030
|
async createOrRefreshSession(identifier: string, password: string) {
|
|
1013
1031
|
// custom logic here
|
|
1014
1032
|
|
|
1015
|
-
this.accessToken =
|
|
1033
|
+
this.accessToken = 'my-access-jwt'
|
|
1016
1034
|
}
|
|
1017
1035
|
|
|
1018
1036
|
async doStuff() {
|
|
1019
|
-
return this.call(
|
|
1037
|
+
return this.call('io.example.doStuff', {
|
|
1020
1038
|
headers: {
|
|
1021
1039
|
Authorization: this.accessToken && `Bearer ${this.accessToken}`,
|
|
1022
1040
|
},
|
|
1023
|
-
})
|
|
1041
|
+
})
|
|
1024
1042
|
}
|
|
1025
1043
|
}
|
|
1026
1044
|
```
|
|
@@ -1029,11 +1047,11 @@
|
|
|
1029
1047
|
<td>
|
|
1030
1048
|
|
|
1031
1049
|
```ts
|
|
1032
|
-
import { Agent } from
|
|
1050
|
+
import { Agent } from '@atproto/api'
|
|
1033
1051
|
|
|
1034
1052
|
class MyAgent extends Agent {
|
|
1035
|
-
private accessToken?: string
|
|
1036
|
-
public did?: string
|
|
1053
|
+
private accessToken?: string
|
|
1054
|
+
public did?: string
|
|
1037
1055
|
|
|
1038
1056
|
constructor(private readonly service: string | URL) {
|
|
1039
1057
|
super({
|
|
@@ -1042,21 +1060,21 @@
|
|
|
1042
1060
|
Authorization: () =>
|
|
1043
1061
|
this.accessToken ? `Bearer ${this.accessToken}` : null,
|
|
1044
1062
|
},
|
|
1045
|
-
})
|
|
1063
|
+
})
|
|
1046
1064
|
}
|
|
1047
1065
|
|
|
1048
1066
|
clone(): MyAgent {
|
|
1049
|
-
const agent = new MyAgent(this.service)
|
|
1050
|
-
agent.accessToken = this.accessToken
|
|
1051
|
-
agent.did = this.did
|
|
1052
|
-
return this.copyInto(agent)
|
|
1067
|
+
const agent = new MyAgent(this.service)
|
|
1068
|
+
agent.accessToken = this.accessToken
|
|
1069
|
+
agent.did = this.did
|
|
1070
|
+
return this.copyInto(agent)
|
|
1053
1071
|
}
|
|
1054
1072
|
|
|
1055
1073
|
async createOrRefreshSession(identifier: string, password: string) {
|
|
1056
1074
|
// custom logic here
|
|
1057
1075
|
|
|
1058
|
-
this.did =
|
|
1059
|
-
this.accessToken =
|
|
1076
|
+
this.did = 'did:example:123'
|
|
1077
|
+
this.accessToken = 'my-access-jwt'
|
|
1060
1078
|
}
|
|
1061
1079
|
}
|
|
1062
1080
|
```
|
|
@@ -1075,38 +1093,38 @@
|
|
|
1075
1093
|
<td>
|
|
1076
1094
|
|
|
1077
1095
|
```ts
|
|
1078
|
-
import { BskyAgent } from
|
|
1079
|
-
import { RateLimitThreshold } from
|
|
1096
|
+
import { BskyAgent } from '@atproto/api'
|
|
1097
|
+
import { RateLimitThreshold } from 'rate-limit-threshold'
|
|
1080
1098
|
|
|
1081
|
-
const agent = new BskyAgent()
|
|
1082
|
-
const limiter = new RateLimitThreshold(3000, 300_000)
|
|
1099
|
+
const agent = new BskyAgent()
|
|
1100
|
+
const limiter = new RateLimitThreshold(3000, 300_000)
|
|
1083
1101
|
|
|
1084
|
-
const origCall = agent.api.xrpc.call
|
|
1102
|
+
const origCall = agent.api.xrpc.call
|
|
1085
1103
|
agent.api.xrpc.call = async function (...args) {
|
|
1086
|
-
await limiter.wait()
|
|
1087
|
-
return origCall.call(this, ...args)
|
|
1088
|
-
}
|
|
1104
|
+
await limiter.wait()
|
|
1105
|
+
return origCall.call(this, ...args)
|
|
1106
|
+
}
|
|
1089
1107
|
```
|
|
1090
1108
|
|
|
1091
1109
|
</td>
|
|
1092
1110
|
<td>
|
|
1093
1111
|
|
|
1094
1112
|
```ts
|
|
1095
|
-
import { AtpAgent } from
|
|
1096
|
-
import { RateLimitThreshold } from
|
|
1113
|
+
import { AtpAgent } from '@atproto/api'
|
|
1114
|
+
import { RateLimitThreshold } from 'rate-limit-threshold'
|
|
1097
1115
|
|
|
1098
1116
|
class LimitedAtpAgent extends AtpAgent {
|
|
1099
1117
|
constructor(options: AtpAgentOptions) {
|
|
1100
|
-
const fetch: typeof globalThis.fetch = options.fetch ?? globalThis.fetch
|
|
1101
|
-
const limiter = new RateLimitThreshold(3000, 300_000)
|
|
1118
|
+
const fetch: typeof globalThis.fetch = options.fetch ?? globalThis.fetch
|
|
1119
|
+
const limiter = new RateLimitThreshold(3000, 300_000)
|
|
1102
1120
|
|
|
1103
1121
|
super({
|
|
1104
1122
|
...options,
|
|
1105
1123
|
fetch: async (...args) => {
|
|
1106
|
-
await limiter.wait()
|
|
1107
|
-
return fetch(...args)
|
|
1124
|
+
await limiter.wait()
|
|
1125
|
+
return fetch(...args)
|
|
1108
1126
|
},
|
|
1109
|
-
})
|
|
1127
|
+
})
|
|
1110
1128
|
}
|
|
1111
1129
|
}
|
|
1112
1130
|
```
|
|
@@ -1127,40 +1145,40 @@
|
|
|
1127
1145
|
<td>
|
|
1128
1146
|
|
|
1129
1147
|
```ts
|
|
1130
|
-
import { BskyAgent, defaultFetchHandler } from
|
|
1148
|
+
import { BskyAgent, defaultFetchHandler } from '@atproto/api'
|
|
1131
1149
|
|
|
1132
1150
|
BskyAgent.configure({
|
|
1133
1151
|
fetch: async (httpUri, httpMethod, httpHeaders, httpReqBody) => {
|
|
1134
|
-
const ua = httpHeaders[
|
|
1152
|
+
const ua = httpHeaders['User-Agent']
|
|
1135
1153
|
|
|
1136
|
-
httpHeaders[
|
|
1154
|
+
httpHeaders['User-Agent'] = ua ? `${ua} ${userAgent}` : userAgent
|
|
1137
1155
|
|
|
1138
|
-
return defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody)
|
|
1156
|
+
return defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody)
|
|
1139
1157
|
},
|
|
1140
|
-
})
|
|
1158
|
+
})
|
|
1141
1159
|
```
|
|
1142
1160
|
|
|
1143
1161
|
</td>
|
|
1144
1162
|
<td>
|
|
1145
1163
|
|
|
1146
1164
|
```ts
|
|
1147
|
-
import { AtpAgent } from
|
|
1165
|
+
import { AtpAgent } from '@atproto/api'
|
|
1148
1166
|
|
|
1149
1167
|
class MyAtpAgent extends AtpAgent {
|
|
1150
1168
|
constructor(options: AtpAgentOptions) {
|
|
1151
|
-
const fetch = options.fetch ?? globalThis.fetch
|
|
1169
|
+
const fetch = options.fetch ?? globalThis.fetch
|
|
1152
1170
|
|
|
1153
1171
|
super({
|
|
1154
1172
|
...options,
|
|
1155
1173
|
fetch: async (url, init) => {
|
|
1156
|
-
const headers = new Headers(init.headers)
|
|
1174
|
+
const headers = new Headers(init.headers)
|
|
1157
1175
|
|
|
1158
|
-
const ua = headersList.get(
|
|
1159
|
-
headersList.set(
|
|
1176
|
+
const ua = headersList.get('User-Agent')
|
|
1177
|
+
headersList.set('User-Agent', ua ? `${ua} ${userAgent}` : userAgent)
|
|
1160
1178
|
|
|
1161
|
-
return fetch(url, { ...init, headers })
|
|
1179
|
+
return fetch(url, { ...init, headers })
|
|
1162
1180
|
},
|
|
1163
|
-
})
|
|
1181
|
+
})
|
|
1164
1182
|
}
|
|
1165
1183
|
}
|
|
1166
1184
|
```
|
|
@@ -1219,7 +1237,7 @@
|
|
|
1219
1237
|
*/
|
|
1220
1238
|
url: string,
|
|
1221
1239
|
init: RequestInit,
|
|
1222
|
-
) => Promise<Response
|
|
1240
|
+
) => Promise<Response>
|
|
1223
1241
|
```
|
|
1224
1242
|
|
|
1225
1243
|
A noticeable change that has been introduced is that the `uri` field of the
|
|
@@ -1257,7 +1275,7 @@
|
|
|
1257
1275
|
<td>
|
|
1258
1276
|
|
|
1259
1277
|
```ts
|
|
1260
|
-
import client, { defaultFetchHandler } from
|
|
1278
|
+
import client, { defaultFetchHandler } from '@atproto/xrpc'
|
|
1261
1279
|
|
|
1262
1280
|
client.fetch = function (
|
|
1263
1281
|
httpUri: string,
|
|
@@ -1266,50 +1284,50 @@
|
|
|
1266
1284
|
httpReqBody: unknown,
|
|
1267
1285
|
) {
|
|
1268
1286
|
// Custom logic here
|
|
1269
|
-
return defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody)
|
|
1270
|
-
}
|
|
1287
|
+
return defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody)
|
|
1288
|
+
}
|
|
1271
1289
|
|
|
1272
1290
|
client.addLexicon({
|
|
1273
1291
|
lexicon: 1,
|
|
1274
|
-
id:
|
|
1292
|
+
id: 'io.example.doStuff',
|
|
1275
1293
|
defs: {},
|
|
1276
|
-
})
|
|
1294
|
+
})
|
|
1277
1295
|
|
|
1278
|
-
const instance = client.service(
|
|
1296
|
+
const instance = client.service('http://my-service.com')
|
|
1279
1297
|
|
|
1280
|
-
instance.setHeader(
|
|
1298
|
+
instance.setHeader('my-header', 'my-value')
|
|
1281
1299
|
|
|
1282
|
-
await instance.call(
|
|
1300
|
+
await instance.call('io.example.doStuff')
|
|
1283
1301
|
```
|
|
1284
1302
|
|
|
1285
1303
|
</td>
|
|
1286
1304
|
<td>
|
|
1287
1305
|
|
|
1288
1306
|
```ts
|
|
1289
|
-
import { XrpcClient } from
|
|
1307
|
+
import { XrpcClient } from '@atproto/xrpc'
|
|
1290
1308
|
|
|
1291
1309
|
const instance = new XrpcClient(
|
|
1292
1310
|
async (url, init) => {
|
|
1293
|
-
const headers = new Headers(init.headers)
|
|
1311
|
+
const headers = new Headers(init.headers)
|
|
1294
1312
|
|
|
1295
|
-
headers.set(
|
|
1313
|
+
headers.set('my-header', 'my-value')
|
|
1296
1314
|
|
|
1297
1315
|
// Custom logic here
|
|
1298
1316
|
|
|
1299
|
-
const fullUrl = new URL(url,
|
|
1317
|
+
const fullUrl = new URL(url, 'http://my-service.com')
|
|
1300
1318
|
|
|
1301
|
-
return fetch(fullUrl, { ...init, headers })
|
|
1319
|
+
return fetch(fullUrl, { ...init, headers })
|
|
1302
1320
|
},
|
|
1303
1321
|
[
|
|
1304
1322
|
{
|
|
1305
1323
|
lexicon: 1,
|
|
1306
|
-
id:
|
|
1324
|
+
id: 'io.example.doStuff',
|
|
1307
1325
|
defs: {},
|
|
1308
1326
|
},
|
|
1309
1327
|
],
|
|
1310
|
-
)
|
|
1328
|
+
)
|
|
1311
1329
|
|
|
1312
|
-
await instance.call(
|
|
1330
|
+
await instance.call('io.example.doStuff')
|
|
1313
1331
|
```
|
|
1314
1332
|
|
|
1315
1333
|
</td>
|
|
@@ -1321,62 +1339,62 @@
|
|
|
1321
1339
|
previous example can be simplified to:
|
|
1322
1340
|
|
|
1323
1341
|
```ts
|
|
1324
|
-
import { XrpcClient } from
|
|
1342
|
+
import { XrpcClient } from '@atproto/xrpc'
|
|
1325
1343
|
|
|
1326
|
-
const instance = new XrpcClient(
|
|
1344
|
+
const instance = new XrpcClient('http://my-service.com', [
|
|
1327
1345
|
{
|
|
1328
1346
|
lexicon: 1,
|
|
1329
|
-
id:
|
|
1347
|
+
id: 'io.example.doStuff',
|
|
1330
1348
|
defs: {},
|
|
1331
1349
|
},
|
|
1332
|
-
])
|
|
1350
|
+
])
|
|
1333
1351
|
```
|
|
1334
1352
|
|
|
1335
1353
|
If you need to add static headers to all requests, you can instead instantiate
|
|
1336
1354
|
the `XrpcClient` as follows:
|
|
1337
1355
|
|
|
1338
1356
|
```ts
|
|
1339
|
-
import { XrpcClient } from
|
|
1357
|
+
import { XrpcClient } from '@atproto/xrpc'
|
|
1340
1358
|
|
|
1341
1359
|
const instance = new XrpcClient(
|
|
1342
1360
|
{
|
|
1343
|
-
service:
|
|
1361
|
+
service: 'http://my-service.com',
|
|
1344
1362
|
headers: {
|
|
1345
|
-
|
|
1363
|
+
'my-header': 'my-value',
|
|
1346
1364
|
},
|
|
1347
1365
|
},
|
|
1348
1366
|
[
|
|
1349
1367
|
{
|
|
1350
1368
|
lexicon: 1,
|
|
1351
|
-
id:
|
|
1369
|
+
id: 'io.example.doStuff',
|
|
1352
1370
|
defs: {},
|
|
1353
1371
|
},
|
|
1354
1372
|
],
|
|
1355
|
-
)
|
|
1373
|
+
)
|
|
1356
1374
|
```
|
|
1357
1375
|
|
|
1358
1376
|
If you need the headers or service url to be dynamic, you can define them using
|
|
1359
1377
|
functions:
|
|
1360
1378
|
|
|
1361
1379
|
```ts
|
|
1362
|
-
import { XrpcClient } from
|
|
1380
|
+
import { XrpcClient } from '@atproto/xrpc'
|
|
1363
1381
|
|
|
1364
1382
|
const instance = new XrpcClient(
|
|
1365
1383
|
{
|
|
1366
|
-
service: () =>
|
|
1384
|
+
service: () => 'http://my-service.com',
|
|
1367
1385
|
headers: {
|
|
1368
|
-
|
|
1369
|
-
|
|
1386
|
+
'my-header': () => 'my-value',
|
|
1387
|
+
'my-ignored-header': () => null, // ignored
|
|
1370
1388
|
},
|
|
1371
1389
|
},
|
|
1372
1390
|
[
|
|
1373
1391
|
{
|
|
1374
1392
|
lexicon: 1,
|
|
1375
|
-
id:
|
|
1393
|
+
id: 'io.example.doStuff',
|
|
1376
1394
|
defs: {},
|
|
1377
1395
|
},
|
|
1378
1396
|
],
|
|
1379
|
-
)
|
|
1397
|
+
)
|
|
1380
1398
|
```
|
|
1381
1399
|
|
|
1382
1400
|
- [#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
|
@@ -12,6 +12,9 @@ import * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferenc
|
|
|
12
12
|
import * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors.js';
|
|
13
13
|
import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead.js';
|
|
14
14
|
import * as AppBskyActorStatus from './types/app/bsky/actor/status.js';
|
|
15
|
+
import * as AppBskyAgeassuranceBegin from './types/app/bsky/ageassurance/begin.js';
|
|
16
|
+
import * as AppBskyAgeassuranceGetConfig from './types/app/bsky/ageassurance/getConfig.js';
|
|
17
|
+
import * as AppBskyAgeassuranceGetState from './types/app/bsky/ageassurance/getState.js';
|
|
15
18
|
import * as AppBskyBookmarkCreateBookmark from './types/app/bsky/bookmark/createBookmark.js';
|
|
16
19
|
import * as AppBskyBookmarkDeleteBookmark from './types/app/bsky/bookmark/deleteBookmark.js';
|
|
17
20
|
import * as AppBskyBookmarkGetBookmarks from './types/app/bsky/bookmark/getBookmarks.js';
|
|
@@ -270,6 +273,10 @@ export * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferenc
|
|
|
270
273
|
export * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors.js';
|
|
271
274
|
export * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead.js';
|
|
272
275
|
export * as AppBskyActorStatus from './types/app/bsky/actor/status.js';
|
|
276
|
+
export * as AppBskyAgeassuranceBegin from './types/app/bsky/ageassurance/begin.js';
|
|
277
|
+
export * as AppBskyAgeassuranceDefs from './types/app/bsky/ageassurance/defs.js';
|
|
278
|
+
export * as AppBskyAgeassuranceGetConfig from './types/app/bsky/ageassurance/getConfig.js';
|
|
279
|
+
export * as AppBskyAgeassuranceGetState from './types/app/bsky/ageassurance/getState.js';
|
|
273
280
|
export * as AppBskyBookmarkCreateBookmark from './types/app/bsky/bookmark/createBookmark.js';
|
|
274
281
|
export * as AppBskyBookmarkDefs from './types/app/bsky/bookmark/defs.js';
|
|
275
282
|
export * as AppBskyBookmarkDeleteBookmark from './types/app/bsky/bookmark/deleteBookmark.js';
|
|
@@ -660,6 +667,7 @@ export declare class AppNS {
|
|
|
660
667
|
export declare class AppBskyNS {
|
|
661
668
|
_client: XrpcClient;
|
|
662
669
|
actor: AppBskyActorNS;
|
|
670
|
+
ageassurance: AppBskyAgeassuranceNS;
|
|
663
671
|
bookmark: AppBskyBookmarkNS;
|
|
664
672
|
embed: AppBskyEmbedNS;
|
|
665
673
|
feed: AppBskyFeedNS;
|
|
@@ -734,6 +742,13 @@ export declare class AppBskyActorStatusRecord {
|
|
|
734
742
|
}>;
|
|
735
743
|
delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
736
744
|
}
|
|
745
|
+
export declare class AppBskyAgeassuranceNS {
|
|
746
|
+
_client: XrpcClient;
|
|
747
|
+
constructor(client: XrpcClient);
|
|
748
|
+
begin(data?: AppBskyAgeassuranceBegin.InputSchema, opts?: AppBskyAgeassuranceBegin.CallOptions): Promise<AppBskyAgeassuranceBegin.Response>;
|
|
749
|
+
getConfig(params?: AppBskyAgeassuranceGetConfig.QueryParams, opts?: AppBskyAgeassuranceGetConfig.CallOptions): Promise<AppBskyAgeassuranceGetConfig.Response>;
|
|
750
|
+
getState(params?: AppBskyAgeassuranceGetState.QueryParams, opts?: AppBskyAgeassuranceGetState.CallOptions): Promise<AppBskyAgeassuranceGetState.Response>;
|
|
751
|
+
}
|
|
737
752
|
export declare class AppBskyBookmarkNS {
|
|
738
753
|
_client: XrpcClient;
|
|
739
754
|
constructor(client: XrpcClient);
|