@unisonlabs/sixminute-admin 0.1.1352-next → 0.1.1354-next
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/sixminute-admin.mjs +85 -2
- package/package.json +1 -1
package/dist/sixminute-admin.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import { homedir } from "node:os";
|
|
|
21
21
|
import { fileURLToPath } from "node:url";
|
|
22
22
|
|
|
23
23
|
// tools/admin/src/build-info.ts
|
|
24
|
-
var BUILT = { version: "0.1.
|
|
24
|
+
var BUILT = { version: "0.1.1354-next", commit: "583e8dba7d065814af31aec4759710323cedaa1b", surface: "20ea8005a02a0df9" };
|
|
25
25
|
|
|
26
26
|
// tools/admin/src/run.ts
|
|
27
27
|
import { readFileSync as readFileSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
@@ -5044,7 +5044,9 @@ var JobKindSchema = oneOf([
|
|
|
5044
5044
|
"purge_expired",
|
|
5045
5045
|
"research_purge",
|
|
5046
5046
|
"sweep",
|
|
5047
|
-
"matter_learning"
|
|
5047
|
+
"matter_learning",
|
|
5048
|
+
"phone_wake",
|
|
5049
|
+
"phone_day_push"
|
|
5048
5050
|
]);
|
|
5049
5051
|
var SettingSchema = oneOf([
|
|
5050
5052
|
"unit_minutes",
|
|
@@ -5430,6 +5432,22 @@ var CATALOGUE = {
|
|
|
5430
5432
|
question: "Do calls reach the server, and are any refused?",
|
|
5431
5433
|
properties: { calls_taken: count(), calls_refused: count() }
|
|
5432
5434
|
}),
|
|
5435
|
+
phonePushSent: spec({
|
|
5436
|
+
name: "phone push sent",
|
|
5437
|
+
owner: "cloud",
|
|
5438
|
+
expect: "rare",
|
|
5439
|
+
trigger: "the wake job sent a phone a silent push or the reminder (the phone app plan, section 6.2)",
|
|
5440
|
+
question: "How often are phones woken, why, and does Apple take the pushes?",
|
|
5441
|
+
properties: { reason: oneOf(["desktop", "idle", "day_opened", "reminder"]), outcome: oneOf(["sent", "dropped", "failed"]) }
|
|
5442
|
+
}),
|
|
5443
|
+
phoneStateChanged: spec({
|
|
5444
|
+
name: "phone state changed",
|
|
5445
|
+
owner: "cloud",
|
|
5446
|
+
expect: "rare",
|
|
5447
|
+
trigger: "a phone's sync or a push moved the state the desktop shows (`none` before the first sync)",
|
|
5448
|
+
question: "Do phones stop syncing, and why: not the calling app, no background wake, or quiet?",
|
|
5449
|
+
properties: { from: oneOf(["none", "ok", "not_default", "no_wake", "quiet"]), to: oneOf(["ok", "not_default", "no_wake", "quiet"]) }
|
|
5450
|
+
}),
|
|
5433
5451
|
sourceHealthChanged: spec({
|
|
5434
5452
|
name: "source health changed",
|
|
5435
5453
|
owner: "cloud",
|
|
@@ -7540,6 +7558,7 @@ var COMPAT_MARKERS = [
|
|
|
7540
7558
|
"services/api/test/t15-openapi.test.ts"
|
|
7541
7559
|
]),
|
|
7542
7560
|
...markers("change-position-page", ["services/api/src/features/lists/store.ts"]),
|
|
7561
|
+
...markers("pre-token-page", ["services/api/src/features/people/auth-email.ts"]),
|
|
7543
7562
|
...markers("0.6.83", ["crates/engine/tests/fixtures/releases/01/retires"]),
|
|
7544
7563
|
...markers("three-process", [
|
|
7545
7564
|
"packages/connectors/src/port.ts",
|
|
@@ -8246,6 +8265,70 @@ var RunSchema = exports_external.object({
|
|
|
8246
8265
|
message: "an absent run is never an entry, so it carries no proposed attributes and no judged text",
|
|
8247
8266
|
path: ["attributes"]
|
|
8248
8267
|
});
|
|
8268
|
+
// packages/contracts/src/sign-in/index.ts
|
|
8269
|
+
var AASA_FILE = "apple-app-site-association";
|
|
8270
|
+
var AASA_PATH = `/.well-known/${AASA_FILE}`;
|
|
8271
|
+
var AUTH_CODE_PREFIX = "sma_";
|
|
8272
|
+
var PENDING_CODE_PREFIX = "smp_";
|
|
8273
|
+
var PENDING_CODE_TTL_MS = 10 * 60000;
|
|
8274
|
+
var PkceValueSchema = exports_external.string().regex(/^[A-Za-z0-9_-]{16,128}$/, "16 to 128 url-safe characters");
|
|
8275
|
+
var SignInClientIdSchema = exports_external.enum(["desktop", "phone"]);
|
|
8276
|
+
var AuthAuthorizeRequestSchema = exports_external.discriminatedUnion("method", [
|
|
8277
|
+
exports_external.object({
|
|
8278
|
+
method: exports_external.literal("email"),
|
|
8279
|
+
client: SignInClientIdSchema,
|
|
8280
|
+
code_challenge: PkceValueSchema,
|
|
8281
|
+
email: exports_external.string().trim().min(3).max(320),
|
|
8282
|
+
code: exports_external.string().regex(/^\d{6}$/, "the code is six digits")
|
|
8283
|
+
}),
|
|
8284
|
+
exports_external.object({
|
|
8285
|
+
method: exports_external.literal("workos"),
|
|
8286
|
+
client: SignInClientIdSchema,
|
|
8287
|
+
code_challenge: PkceValueSchema,
|
|
8288
|
+
code: exports_external.string().min(1).max(512),
|
|
8289
|
+
code_verifier: PkceValueSchema
|
|
8290
|
+
})
|
|
8291
|
+
]);
|
|
8292
|
+
var AuthAuthorizeResponseSchema = exports_external.object({ code: exports_external.string().startsWith(AUTH_CODE_PREFIX) });
|
|
8293
|
+
var SignInDeviceSchema = exports_external.object({
|
|
8294
|
+
id: DeviceIdSchema,
|
|
8295
|
+
name: exports_external.string().trim().min(1).max(200),
|
|
8296
|
+
platform: exports_external.enum(["macos", "windows", "ios", "android", "web"])
|
|
8297
|
+
});
|
|
8298
|
+
var ListedDeviceSchema = DeviceSchema.extend({ signed_in: exports_external.boolean().default(true) });
|
|
8299
|
+
var AuthTokenRequestSchema = exports_external.discriminatedUnion("grant_type", [
|
|
8300
|
+
exports_external.object({
|
|
8301
|
+
grant_type: exports_external.literal("authorization_code"),
|
|
8302
|
+
client: SignInClientIdSchema,
|
|
8303
|
+
code: exports_external.string().startsWith(AUTH_CODE_PREFIX).max(200),
|
|
8304
|
+
code_verifier: PkceValueSchema,
|
|
8305
|
+
device: SignInDeviceSchema
|
|
8306
|
+
}),
|
|
8307
|
+
exports_external.object({
|
|
8308
|
+
grant_type: exports_external.literal("organization_selection"),
|
|
8309
|
+
client: SignInClientIdSchema,
|
|
8310
|
+
pending: exports_external.string().startsWith(PENDING_CODE_PREFIX).max(200),
|
|
8311
|
+
code_verifier: PkceValueSchema,
|
|
8312
|
+
organization_id: exports_external.string().min(1).max(128),
|
|
8313
|
+
device: SignInDeviceSchema
|
|
8314
|
+
}),
|
|
8315
|
+
exports_external.object({
|
|
8316
|
+
grant_type: exports_external.literal("workos_code"),
|
|
8317
|
+
client: exports_external.literal("desktop"),
|
|
8318
|
+
code: exports_external.string().min(1).max(512),
|
|
8319
|
+
code_verifier: PkceValueSchema,
|
|
8320
|
+
device: SignInDeviceSchema
|
|
8321
|
+
})
|
|
8322
|
+
]);
|
|
8323
|
+
var SignInFirmSchema = exports_external.object({ id: exports_external.string().min(1), name: exports_external.string() });
|
|
8324
|
+
var AuthTokenResponseSchema = exports_external.union([
|
|
8325
|
+
exports_external.object({ grant: exports_external.literal("session"), session: AuthPageSessionSchema }),
|
|
8326
|
+
exports_external.object({ grant: exports_external.literal("credential"), enrolled: DeviceEnrolledSchema }),
|
|
8327
|
+
exports_external.object({
|
|
8328
|
+
choose_firm: exports_external.object({ pending: exports_external.string().startsWith(PENDING_CODE_PREFIX), firms: exports_external.array(SignInFirmSchema).min(2) })
|
|
8329
|
+
})
|
|
8330
|
+
]);
|
|
8331
|
+
var SignedOutElsewhereSchema = exports_external.object({ sessions: exports_external.number().int().nonnegative(), devices: exports_external.number().int().nonnegative() });
|
|
8249
8332
|
// packages/contracts/src/trace.ts
|
|
8250
8333
|
var TraceMessageSchema = exports_external.object({
|
|
8251
8334
|
role: exports_external.string().min(1),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unisonlabs/sixminute-admin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1354-next",
|
|
4
4
|
"description": "Sixminute operator tool: the admin commands of the Sixminute API, run with your own operator sign-in.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|