@inixiative/signet 0.6.0 → 0.6.1
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/package.json +2 -2
- package/src/archive.ts +6 -1
- package/src/contracts.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inixiative/signet",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Present Kingdom Signets: the wire contracts, DPoP proofs, device pairing and a renewing client shared by Kingdom, Archive, Foundry and Oracle.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@asteasolutions/zod-to-openapi": "^9.1.0",
|
|
37
37
|
"@biomejs/biome": "2.5.2",
|
|
38
|
-
"@inixiative/config": "^0.5.
|
|
38
|
+
"@inixiative/config": "^0.5.157",
|
|
39
39
|
"@types/bun": "1.4.4",
|
|
40
40
|
"lefthook": "2.1.9",
|
|
41
41
|
"typescript": "6.0.3",
|
package/src/archive.ts
CHANGED
|
@@ -73,7 +73,11 @@ export const archiveInputSchemas = {
|
|
|
73
73
|
projectId: z.string().min(1).max(256).optional(),
|
|
74
74
|
tag: z.string().min(1).max(120).optional(),
|
|
75
75
|
}),
|
|
76
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* An Archive snapshot (`@inixiative/archive`), parsed by Kingdom before it is stored. `restore`
|
|
78
|
+
* brings back a session deleted at the hosted Archive on purpose (a routed part sent back), which
|
|
79
|
+
* its tombstone otherwise refuses.
|
|
80
|
+
*/
|
|
77
81
|
'sessions.write': z.strictObject({
|
|
78
82
|
snapshot: z.record(z.string(), z.unknown()),
|
|
79
83
|
previousDigest: z
|
|
@@ -81,6 +85,7 @@ export const archiveInputSchemas = {
|
|
|
81
85
|
.regex(/^[a-f0-9]{64}$/)
|
|
82
86
|
.nullable()
|
|
83
87
|
.optional(),
|
|
88
|
+
restore: z.boolean().optional(),
|
|
84
89
|
}),
|
|
85
90
|
'sessions.delete': z.strictObject({ documentId: archiveDocumentIdSchema }),
|
|
86
91
|
} as const satisfies Record<ArchiveOperation, z.ZodObject>;
|
package/src/contracts.ts
CHANGED
|
@@ -399,6 +399,7 @@ export const accessInputSchema = z.strictObject({
|
|
|
399
399
|
.regex(/^[a-f0-9]{64}$/)
|
|
400
400
|
.nullable()
|
|
401
401
|
.optional(),
|
|
402
|
+
restore: z.boolean().optional(),
|
|
402
403
|
threadId: threadIdSchema.optional(),
|
|
403
404
|
postId: z.uuid().optional(),
|
|
404
405
|
text: z.string().min(1).max(threadTextLimit).optional(),
|