@sockethub/schemas 3.0.0-beta.1 → 3.0.0-beta.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/dist/contexts/platform/email/v1.jsonld +8 -0
- package/dist/contexts/platform/instagram/v1.jsonld +8 -0
- package/dist/contexts/platform/messenger/v1.jsonld +8 -0
- package/dist/index.js +32 -9
- package/dist/index.js.map +4 -4
- package/dist/maps/context-map.json +11 -2
- package/dist/schemas/json/activity-stream.json +1 -1
- package/dist/schemas/json/platform.json +1 -1
- package/dist/schemas/json/service-descriptor.json +1 -1
- package/dist/schemas/json/sockethub-config.json +35 -1
- package/dist/schemas/platform/caldav/v1/messages.schema.json +7 -0
- package/dist/schemas/platform/email/v1/credentials.schema.json +139 -0
- package/dist/schemas/platform/email/v1/messages.schema.json +289 -0
- package/dist/schemas/platform/instagram/v1/credentials.schema.json +67 -0
- package/dist/schemas/platform/instagram/v1/messages.schema.json +72 -0
- package/dist/schemas/platform/messenger/v1/credentials.schema.json +31 -0
- package/dist/schemas/platform/messenger/v1/messages.schema.json +72 -0
- package/dist/schemas/sockethub-config.d.ts +31 -0
- package/dist/types.d.ts +4 -0
- package/dist/validator.d.ts +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -16112,7 +16112,7 @@ var PlatformSchema = {
|
|
|
16112
16112
|
var package_default = {
|
|
16113
16113
|
name: "@sockethub/schemas",
|
|
16114
16114
|
description: "JSON schema files for validating Sockethub Activity Streams",
|
|
16115
|
-
version: "3.0.0-beta.
|
|
16115
|
+
version: "3.0.0-beta.2",
|
|
16116
16116
|
type: "module",
|
|
16117
16117
|
private: false,
|
|
16118
16118
|
author: "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -16182,7 +16182,7 @@ var package_default = {
|
|
|
16182
16182
|
"ajv-formats": "^2.1.1",
|
|
16183
16183
|
"ajv-formats-draft2019": "^1.6.1"
|
|
16184
16184
|
},
|
|
16185
|
-
gitHead: "
|
|
16185
|
+
gitHead: "1f74d4e07311496f0acc021855137bc197d79eab",
|
|
16186
16186
|
types: "./dist/index.d.ts"
|
|
16187
16187
|
};
|
|
16188
16188
|
|
|
@@ -16287,8 +16287,11 @@ var SockethubConfigSchema = {
|
|
|
16287
16287
|
"@sockethub/platform-caldav",
|
|
16288
16288
|
"@sockethub/platform-dummy",
|
|
16289
16289
|
"@sockethub/platform-feeds",
|
|
16290
|
+
"@sockethub/platform-email",
|
|
16290
16291
|
"@sockethub/platform-irc",
|
|
16291
16292
|
"@sockethub/platform-metadata",
|
|
16293
|
+
"@sockethub/platform-messenger",
|
|
16294
|
+
"@sockethub/platform-instagram",
|
|
16292
16295
|
"@sockethub/platform-xmpp"
|
|
16293
16296
|
]
|
|
16294
16297
|
},
|
|
@@ -16304,7 +16307,8 @@ var SockethubConfigSchema = {
|
|
|
16304
16307
|
connectTimeoutMs: { type: "integer", minimum: 1 },
|
|
16305
16308
|
allowPrivateAddresses: { type: "boolean" },
|
|
16306
16309
|
allowInsecureHttp: { type: "boolean" },
|
|
16307
|
-
concurrency: { type: "integer", minimum: 1 }
|
|
16310
|
+
concurrency: { type: "integer", minimum: 1 },
|
|
16311
|
+
discoveryCacheTtlMs: { type: "integer", minimum: 0 }
|
|
16308
16312
|
}
|
|
16309
16313
|
},
|
|
16310
16314
|
"@sockethub/platform-caldav": {
|
|
@@ -16314,7 +16318,20 @@ var SockethubConfigSchema = {
|
|
|
16314
16318
|
connectTimeoutMs: { type: "integer", minimum: 1 },
|
|
16315
16319
|
allowPrivateAddresses: { type: "boolean" },
|
|
16316
16320
|
allowInsecureHttp: { type: "boolean" },
|
|
16317
|
-
concurrency: { type: "integer", minimum: 1 }
|
|
16321
|
+
concurrency: { type: "integer", minimum: 1 },
|
|
16322
|
+
discoveryCacheTtlMs: { type: "integer", minimum: 0 }
|
|
16323
|
+
}
|
|
16324
|
+
},
|
|
16325
|
+
"@sockethub/platform-email": {
|
|
16326
|
+
type: "object",
|
|
16327
|
+
additionalProperties: false,
|
|
16328
|
+
properties: {
|
|
16329
|
+
connectTimeoutMs: {
|
|
16330
|
+
type: "integer",
|
|
16331
|
+
minimum: 5000,
|
|
16332
|
+
maximum: 120000
|
|
16333
|
+
},
|
|
16334
|
+
allowPrivateAddresses: { type: "boolean" }
|
|
16318
16335
|
}
|
|
16319
16336
|
},
|
|
16320
16337
|
"@sockethub/platform-dummy": {
|
|
@@ -16337,7 +16354,8 @@ var SockethubConfigSchema = {
|
|
|
16337
16354
|
type: "object",
|
|
16338
16355
|
additionalProperties: false,
|
|
16339
16356
|
properties: {
|
|
16340
|
-
connectTimeoutMs: { type: "number" }
|
|
16357
|
+
connectTimeoutMs: { type: "number" },
|
|
16358
|
+
allowPrivateAddresses: { type: "boolean" }
|
|
16341
16359
|
}
|
|
16342
16360
|
},
|
|
16343
16361
|
"@sockethub/platform-xmpp": {
|
|
@@ -16447,6 +16465,12 @@ var SockethubConfigSchema = {
|
|
|
16447
16465
|
default: 20,
|
|
16448
16466
|
description: "Maximum persistent instances per client IP, including HTTP actions. 0 disables the cap."
|
|
16449
16467
|
},
|
|
16468
|
+
maxStartsPerIpPerMinute: {
|
|
16469
|
+
type: "integer",
|
|
16470
|
+
minimum: 0,
|
|
16471
|
+
default: 60,
|
|
16472
|
+
description: "Maximum new persistent instances a client IP may start per minute, " + "including HTTP actions. Bounds fork/teardown churn that the " + "concurrent caps allow. Reusing a running instance does not count. " + "0 disables the cap."
|
|
16473
|
+
},
|
|
16450
16474
|
maxPlatformInstances: {
|
|
16451
16475
|
type: "number",
|
|
16452
16476
|
minimum: 0,
|
|
@@ -17084,9 +17108,8 @@ function addPlatformSchema(schema, platform_type) {
|
|
|
17084
17108
|
return;
|
|
17085
17109
|
}
|
|
17086
17110
|
const schemaRef = `${schemaURL}/context/${platform_type}`;
|
|
17087
|
-
|
|
17088
|
-
|
|
17089
|
-
}
|
|
17111
|
+
instance.removeSchema(schemaRef);
|
|
17112
|
+
instance.addSchema(schema, schemaRef);
|
|
17090
17113
|
}
|
|
17091
17114
|
function getPlatformSchema(platform_type) {
|
|
17092
17115
|
return getAjv()?.getSchema(`${schemaURL}/context/${platform_type}`);
|
|
@@ -17167,4 +17190,4 @@ export {
|
|
|
17167
17190
|
validateSockethubConfig
|
|
17168
17191
|
};
|
|
17169
17192
|
|
|
17170
|
-
//# debugId=
|
|
17193
|
+
//# debugId=A3B598B447DA32C764756E2164756E21
|