@atproto/api 0.11.0 → 0.11.2
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 +12 -0
- package/dist/client/lexicons.d.ts +13 -0
- package/dist/client/types/com/atproto/server/describeServer.d.ts +7 -0
- package/dist/index.js +23 -1
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
- package/src/agent.ts +1 -0
- package/src/client/lexicons.ts +13 -0
- package/src/client/types/com/atproto/server/describeServer.ts +18 -0
- package/src/moderation/mutewords.ts +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atproto/api
|
|
2
2
|
|
|
3
|
+
## 0.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2328](https://github.com/bluesky-social/atproto/pull/2328) [`7dd9941b7`](https://github.com/bluesky-social/atproto/commit/7dd9941b73dbbd82601740e021cc87d765af60ca) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Remove unecessary escapes from regex, which was causing a minification error when bundled in React Native.
|
|
8
|
+
|
|
9
|
+
## 0.11.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#2312](https://github.com/bluesky-social/atproto/pull/2312) [`219480764`](https://github.com/bluesky-social/atproto/commit/2194807644cbdb0021e867437693300c1b0e55f5) Thanks [@pfrazee](https://github.com/pfrazee)! - Fixed an issue that would cause agent clones to drop the PDS URI config.
|
|
14
|
+
|
|
3
15
|
## 0.11.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -2206,6 +2206,11 @@ export declare const schemaDict: {
|
|
|
2206
2206
|
description: string;
|
|
2207
2207
|
ref: string;
|
|
2208
2208
|
};
|
|
2209
|
+
contact: {
|
|
2210
|
+
type: string;
|
|
2211
|
+
description: string;
|
|
2212
|
+
ref: string;
|
|
2213
|
+
};
|
|
2209
2214
|
did: {
|
|
2210
2215
|
type: string;
|
|
2211
2216
|
format: string;
|
|
@@ -2225,6 +2230,14 @@ export declare const schemaDict: {
|
|
|
2225
2230
|
};
|
|
2226
2231
|
};
|
|
2227
2232
|
};
|
|
2233
|
+
contact: {
|
|
2234
|
+
type: string;
|
|
2235
|
+
properties: {
|
|
2236
|
+
email: {
|
|
2237
|
+
type: string;
|
|
2238
|
+
};
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2228
2241
|
};
|
|
2229
2242
|
};
|
|
2230
2243
|
ComAtprotoServerGetAccountInviteCodes: {
|
|
@@ -8,6 +8,7 @@ export interface OutputSchema {
|
|
|
8
8
|
phoneVerificationRequired?: boolean;
|
|
9
9
|
availableUserDomains: string[];
|
|
10
10
|
links?: Links;
|
|
11
|
+
contact?: Contact;
|
|
11
12
|
did: string;
|
|
12
13
|
[k: string]: unknown;
|
|
13
14
|
}
|
|
@@ -27,3 +28,9 @@ export interface Links {
|
|
|
27
28
|
}
|
|
28
29
|
export declare function isLinks(v: unknown): v is Links;
|
|
29
30
|
export declare function validateLinks(v: unknown): ValidationResult;
|
|
31
|
+
export interface Contact {
|
|
32
|
+
email?: string;
|
|
33
|
+
[k: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export declare function isContact(v: unknown): v is Contact;
|
|
36
|
+
export declare function validateContact(v: unknown): ValidationResult;
|
package/dist/index.js
CHANGED
|
@@ -18057,6 +18057,11 @@ var schemaDict = {
|
|
|
18057
18057
|
description: "URLs of service policy documents.",
|
|
18058
18058
|
ref: "lex:com.atproto.server.describeServer#links"
|
|
18059
18059
|
},
|
|
18060
|
+
contact: {
|
|
18061
|
+
type: "ref",
|
|
18062
|
+
description: "Contact information",
|
|
18063
|
+
ref: "lex:com.atproto.server.describeServer#contact"
|
|
18064
|
+
},
|
|
18060
18065
|
did: {
|
|
18061
18066
|
type: "string",
|
|
18062
18067
|
format: "did"
|
|
@@ -18075,6 +18080,14 @@ var schemaDict = {
|
|
|
18075
18080
|
type: "string"
|
|
18076
18081
|
}
|
|
18077
18082
|
}
|
|
18083
|
+
},
|
|
18084
|
+
contact: {
|
|
18085
|
+
type: "object",
|
|
18086
|
+
properties: {
|
|
18087
|
+
email: {
|
|
18088
|
+
type: "string"
|
|
18089
|
+
}
|
|
18090
|
+
}
|
|
18078
18091
|
}
|
|
18079
18092
|
}
|
|
18080
18093
|
},
|
|
@@ -25308,8 +25321,10 @@ function toKnownErr42(e) {
|
|
|
25308
25321
|
// src/client/types/com/atproto/server/describeServer.ts
|
|
25309
25322
|
var describeServer_exports = {};
|
|
25310
25323
|
__export(describeServer_exports, {
|
|
25324
|
+
isContact: () => isContact,
|
|
25311
25325
|
isLinks: () => isLinks,
|
|
25312
25326
|
toKnownErr: () => toKnownErr43,
|
|
25327
|
+
validateContact: () => validateContact,
|
|
25313
25328
|
validateLinks: () => validateLinks
|
|
25314
25329
|
});
|
|
25315
25330
|
function toKnownErr43(e) {
|
|
@@ -25323,6 +25338,12 @@ function isLinks(v) {
|
|
|
25323
25338
|
function validateLinks(v) {
|
|
25324
25339
|
return lexicons.validate("com.atproto.server.describeServer#links", v);
|
|
25325
25340
|
}
|
|
25341
|
+
function isContact(v) {
|
|
25342
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.server.describeServer#contact";
|
|
25343
|
+
}
|
|
25344
|
+
function validateContact(v) {
|
|
25345
|
+
return lexicons.validate("com.atproto.server.describeServer#contact", v);
|
|
25346
|
+
}
|
|
25326
25347
|
|
|
25327
25348
|
// src/client/types/com/atproto/server/getAccountInviteCodes.ts
|
|
25328
25349
|
var getAccountInviteCodes_exports = {};
|
|
@@ -28931,6 +28952,7 @@ var _AtpAgent = class {
|
|
|
28931
28952
|
inst.labelersHeader = this.labelersHeader;
|
|
28932
28953
|
inst.proxyHeader = this.proxyHeader;
|
|
28933
28954
|
inst.pdsUrl = this.pdsUrl;
|
|
28955
|
+
inst.api.xrpc.uri = this.pdsUrl || this.service;
|
|
28934
28956
|
}
|
|
28935
28957
|
withProxy(serviceType, did2) {
|
|
28936
28958
|
const inst = this.clone();
|
|
@@ -31553,7 +31575,7 @@ function decideNotification(subject, opts) {
|
|
|
31553
31575
|
var REGEX = {
|
|
31554
31576
|
LEADING_TRAILING_PUNCTUATION: /(?:^\p{P}+|\p{P}+$)/gu,
|
|
31555
31577
|
ESCAPE: /[[\]{}()*+?.\\^$|\s]/g,
|
|
31556
|
-
SEPARATORS: /[
|
|
31578
|
+
SEPARATORS: /[/\-–—()[\]_]+/g,
|
|
31557
31579
|
WORD_BOUNDARY: /[\s\n\t\r\f\v]+?/g
|
|
31558
31580
|
};
|
|
31559
31581
|
var LANGUAGE_EXCEPTIONS = [
|