@spacefast/common 0.2.1 → 0.4.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/dist/agents/marketplace-prompts.d.ts +1 -0
- package/dist/agents/marketplace-prompts.js +6 -0
- package/dist/agents/registry/core.d.ts +4 -12
- package/dist/agents/registry/core.js +7 -28
- package/dist/config/domains.d.ts +10 -8
- package/dist/config/domains.js +4 -7
- package/dist/contracts/access-core.d.ts +135 -0
- package/dist/contracts/access-core.js +242 -0
- package/dist/contracts/access-profiles.d.ts +8 -8
- package/dist/contracts/access-profiles.js +8 -8
- package/dist/contracts/access.d.ts +14 -103
- package/dist/contracts/access.js +10 -210
- package/dist/contracts/activity.d.ts +54 -55
- package/dist/contracts/activity.js +38 -9
- package/dist/contracts/api-keys.d.ts +69 -26
- package/dist/contracts/api-keys.js +29 -2
- package/dist/contracts/application-journal.d.ts +197 -4
- package/dist/contracts/application-journal.js +97 -16
- package/dist/contracts/auth.d.ts +20 -0
- package/dist/contracts/auth.js +18 -0
- package/dist/contracts/beta.d.ts +13 -0
- package/dist/contracts/beta.js +28 -0
- package/dist/contracts/billing.d.ts +2 -2
- package/dist/contracts/bootstrap.d.ts +23 -6
- package/dist/contracts/builds.d.ts +24 -4
- package/dist/contracts/builds.js +16 -4
- package/dist/contracts/channels.d.ts +43 -0
- package/dist/contracts/channels.js +22 -6
- package/dist/contracts/comments.d.ts +49 -0
- package/dist/contracts/comments.js +61 -2
- package/dist/contracts/commerce.d.ts +19 -13
- package/dist/contracts/connector-access.d.ts +28 -0
- package/dist/contracts/connector-access.js +31 -0
- package/dist/contracts/connectors.d.ts +2382 -0
- package/dist/contracts/connectors.js +941 -0
- package/dist/contracts/content-contract-verification.d.ts +112 -58
- package/dist/contracts/content-contract-verification.js +42 -54
- package/dist/contracts/content-model-emit.d.ts +97 -0
- package/dist/contracts/content-model-emit.js +306 -0
- package/dist/contracts/content-model-sdk.d.ts +101 -0
- package/dist/contracts/content-model-sdk.js +232 -0
- package/dist/contracts/{content-program.d.ts → content-model.d.ts} +338 -82
- package/dist/contracts/{content-program.js → content-model.js} +291 -63
- package/dist/contracts/content-platform-fixture.d.ts +380 -110
- package/dist/contracts/content-platform-fixture.js +8 -8
- package/dist/contracts/content-sync.d.ts +197 -74
- package/dist/contracts/content-sync.js +98 -37
- package/dist/contracts/content.d.ts +30 -422
- package/dist/contracts/content.js +34 -294
- package/dist/contracts/dashboard-prefs.d.ts +10 -3
- package/dist/contracts/dashboard-prefs.js +6 -3
- package/dist/contracts/data-location.d.ts +9 -0
- package/dist/contracts/data-location.js +7 -0
- package/dist/contracts/deployment-comparison.d.ts +67 -0
- package/dist/contracts/deployment-comparison.js +68 -0
- package/dist/contracts/device-auth.d.ts +55 -11
- package/dist/contracts/domains.d.ts +40 -16
- package/dist/contracts/domains.js +23 -0
- package/dist/contracts/enums.d.ts +1 -10
- package/dist/contracts/enums.js +0 -15
- package/dist/contracts/error-code-meta.d.ts +388 -20
- package/dist/contracts/error-code-meta.js +201 -5
- package/dist/contracts/error-codes.d.ts +17 -4
- package/dist/contracts/error-codes.js +109 -10
- package/dist/contracts/events.d.ts +5 -0
- package/dist/contracts/events.js +12 -3
- package/dist/contracts/execution.d.ts +5 -1
- package/dist/contracts/execution.js +4 -0
- package/dist/contracts/feature-lifecycle.d.ts +53 -20
- package/dist/contracts/feature-lifecycle.js +65 -23
- package/dist/contracts/features.d.ts +57 -31
- package/dist/contracts/features.js +0 -1
- package/dist/contracts/feedback.d.ts +124 -0
- package/dist/contracts/feedback.js +64 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.d.ts +129 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.js +48 -0
- package/dist/contracts/fixtures/content-platform-v1.json +101 -49
- package/dist/contracts/frame-session.d.ts +60 -10
- package/dist/contracts/frame-session.js +52 -12
- package/dist/contracts/functions.d.ts +28 -2
- package/dist/contracts/functions.js +25 -2
- package/dist/contracts/grant-copy.d.ts +2 -0
- package/dist/contracts/grant-copy.js +2 -0
- package/dist/contracts/grants-core.d.ts +95 -0
- package/dist/contracts/grants-core.js +435 -0
- package/dist/contracts/grants.d.ts +13 -84
- package/dist/contracts/grants.js +21 -369
- package/dist/contracts/ids-core.d.ts +11 -0
- package/dist/contracts/ids-core.js +14 -0
- package/dist/contracts/ids.d.ts +7 -4
- package/dist/contracts/ids.js +12 -4
- package/dist/contracts/internal.d.ts +18 -0
- package/dist/contracts/internal.js +19 -0
- package/dist/contracts/mcp.d.ts +8 -18
- package/dist/contracts/mcp.js +2 -23
- package/dist/contracts/notifications.d.ts +4 -1
- package/dist/contracts/notifications.js +1 -0
- package/dist/contracts/oauth-resources.d.ts +55 -9
- package/dist/contracts/oauth-resources.js +64 -1
- package/dist/contracts/oauth-scope-actions.d.ts +27 -3
- package/dist/contracts/oauth-scope-actions.js +18 -8
- package/dist/contracts/operations.d.ts +1 -1
- package/dist/contracts/partner-account.d.ts +629 -0
- package/dist/contracts/partner-account.js +18 -0
- package/dist/contracts/principal-assertion.d.ts +74 -1
- package/dist/contracts/principal-assertion.js +67 -3
- package/dist/contracts/publish-archive.d.ts +22 -1
- package/dist/contracts/push-new.d.ts +3 -3
- package/dist/contracts/push-new.js +1 -1
- package/dist/contracts/quotas.js +2 -1
- package/dist/contracts/repository-connections.d.ts +10 -6
- package/dist/contracts/repository-connections.js +15 -0
- package/dist/contracts/resources.d.ts +6 -5
- package/dist/contracts/resources.js +7 -0
- package/dist/contracts/route-inventory.d.ts +74 -19
- package/dist/contracts/route-inventory.js +20 -6
- package/dist/contracts/runtime-api.d.ts +415 -4
- package/dist/contracts/runtime-api.js +60 -15
- package/dist/contracts/runtime-app.d.ts +6 -1
- package/dist/contracts/runtime-components.d.ts +646 -18
- package/dist/contracts/runtime-components.js +304 -188
- package/dist/contracts/runtime-services.d.ts +15 -0
- package/dist/contracts/runtime-services.js +25 -0
- package/dist/contracts/runtime-storage.d.ts +32 -0
- package/dist/contracts/runtime-storage.js +37 -0
- package/dist/contracts/source-workspaces.d.ts +511 -0
- package/dist/contracts/source-workspaces.js +276 -0
- package/dist/contracts/space-config-spacefast.d.ts +394 -0
- package/dist/contracts/space-config-spacefast.js +70 -0
- package/dist/contracts/space-config.d.ts +177 -90
- package/dist/contracts/space-config.js +77 -92
- package/dist/contracts/spaces.d.ts +132 -24
- package/dist/contracts/spaces.js +77 -13
- package/dist/contracts/superadmin-connectors.d.ts +371 -0
- package/dist/contracts/superadmin-connectors.js +61 -0
- package/dist/contracts/superadmin-emails.d.ts +1 -1
- package/dist/contracts/superadmin-emails.js +1 -1
- package/dist/contracts/superadmin-entities.d.ts +105 -0
- package/dist/contracts/superadmin-entities.js +64 -0
- package/dist/contracts/superadmin-runtime.d.ts +35 -116
- package/dist/contracts/superadmin-runtime.js +13 -69
- package/dist/contracts/superadmin-search.d.ts +12 -14
- package/dist/contracts/superadmin-search.js +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +15 -72
- package/dist/contracts/superadmin-spaces.js +2 -7
- package/dist/contracts/superadmin-teams.d.ts +12 -0
- package/dist/contracts/superadmin-teams.js +7 -1
- package/dist/contracts/superadmin-tenants.d.ts +44 -16
- package/dist/contracts/superadmin.d.ts +2 -2
- package/dist/contracts/tags.d.ts +12 -12
- package/dist/contracts/teams.d.ts +29 -1
- package/dist/contracts/teams.js +24 -2
- package/dist/contracts/tenants.d.ts +98 -0
- package/dist/contracts/tenants.js +20 -0
- package/dist/contracts/transfers.d.ts +92 -0
- package/dist/contracts/transfers.js +37 -0
- package/dist/contracts/usage.d.ts +9 -1
- package/dist/contracts/usage.js +2 -0
- package/dist/contracts/visual-review.d.ts +448 -0
- package/dist/contracts/visual-review.js +156 -0
- package/dist/contracts/wordpress-php-toolkit.json +9 -0
- package/dist/contracts/work-mode.d.ts +24 -0
- package/dist/contracts/work-mode.js +17 -0
- package/dist/contracts/wp-cli.d.ts +66 -0
- package/dist/contracts/wp-cli.js +68 -0
- package/dist/contracts/zero-catalog.d.ts +29 -0
- package/dist/contracts/zero-catalog.js +55 -0
- package/dist/contracts/zero-platform-abilities.generated.d.ts +31 -0
- package/dist/contracts/zero-platform-abilities.generated.js +373 -0
- package/dist/contracts/zero-spacefast.d.ts +444 -0
- package/dist/contracts/zero-spacefast.js +149 -0
- package/dist/contracts/zero-types.d.ts +47 -0
- package/dist/contracts/zero-types.js +263 -0
- package/dist/contracts/zero.d.ts +781 -14
- package/dist/contracts/zero.js +204 -10
- package/dist/dashboard-paths/index.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.js +5 -0
- package/dist/docs/agent-prose.d.ts +1 -1
- package/dist/docs/agent-prose.js +15 -18
- package/dist/docs/agent-setup.d.ts +1 -1
- package/dist/docs/agent-setup.js +5 -13
- package/dist/docs/catalog.d.ts +64 -28
- package/dist/docs/catalog.js +155 -28
- package/dist/docs/error-docs.d.ts +365 -17
- package/dist/docs/error-docs.js +369 -21
- package/dist/docs/reference-urls.js +1 -1
- package/dist/docs/skills.d.ts +84 -84
- package/dist/docs/skills.js +66 -47
- package/dist/docs/start-prompts.d.ts +14 -0
- package/dist/docs/start-prompts.js +20 -0
- package/dist/utils/account-labels.d.ts +7 -0
- package/dist/utils/account-labels.js +15 -0
- package/dist/utils/auth.d.ts +1 -0
- package/dist/utils/auth.js +1 -0
- package/dist/utils/credential-policy.d.ts +22 -1
- package/dist/utils/credential-policy.js +55 -6
- package/dist/utils/local-space-state.d.ts +7 -0
- package/dist/utils/local-space-state.js +7 -0
- package/dist/utils/logger.d.ts +34 -0
- package/dist/utils/logger.js +144 -0
- package/dist/utils/page-routes.d.ts +9 -0
- package/dist/utils/page-routes.js +82 -0
- package/dist/utils/pages.d.ts +2 -0
- package/dist/utils/pages.js +7 -0
- package/dist/utils/publish-form-data.d.ts +2 -0
- package/dist/utils/publish-form-data.js +2 -0
- package/dist/utils/publish-policy-spacefast.d.ts +13 -0
- package/dist/utils/publish-policy-spacefast.js +117 -0
- package/dist/utils/publish-policy.d.ts +22 -16
- package/dist/utils/publish-policy.fixtures.json +15 -0
- package/dist/utils/publish-policy.js +62 -139
- package/dist/utils/query-client.js +9 -1
- package/dist/utils/runtime-upload.d.ts +4 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +2 -3
- package/dist/utils/space-config.js +1 -1
- package/dist/utils/uploaded-source.d.ts +4 -0
- package/dist/utils/uploaded-source.js +12 -0
- package/dist/visual-review.d.ts +4 -0
- package/dist/visual-review.js +208 -0
- package/dist/vocabulary.d.ts +38 -0
- package/dist/vocabulary.js +55 -0
- package/package.json +7 -2
- package/dist/agents/registry/deeplink-probes.d.ts +0 -23
- package/dist/agents/registry/deeplink-probes.js +0 -18
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { applicationJournalDeliveryClaimV1Schema, applicationJournalDeliveryReceiptV1Schema, applicationJournalEntryV1Schema, } from "./application-journal.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { compiledContentModelV1Schema, contentAbilityDecisionV1Schema, contentAbilityReceiptV1Schema, contentExecutableSetV1Schema, contentModelJsonValueSchema, contentModelReleaseV1Schema, contentRouteContributionSetV1Schema, contentSdkDescriptorSetV1Schema, } from "./content-model.js";
|
|
4
|
+
import { contentSyncConflictProblemSchema, syncReconciliationExchangeV1Schema, syncSourceAcknowledgementV1Schema, } from "./content-sync.js";
|
|
5
5
|
import { frameLaunchTicketClaimsV1Schema, frameSessionClaimsV1Schema } from "./frame-session.js";
|
|
6
6
|
import { principalAssertionV1Schema } from "./principal-assertion.js";
|
|
7
7
|
import { routeInventoryV1Schema, spaceRouteSnapshotV1Schema } from "./route-inventory.js";
|
|
8
|
-
import {
|
|
8
|
+
import { contentModelRequirementsV1Schema, runtimeComponentInventoryV1Schema, runtimeComponentPlacementReceiptV1Schema, } from "./runtime-components.js";
|
|
9
9
|
export const contentPlatformV1FixtureSchema = z
|
|
10
10
|
.object({
|
|
11
11
|
format: z.literal("spacefast.content-platform-fixture"),
|
|
12
12
|
version: z.literal(1),
|
|
13
|
-
capsule:
|
|
13
|
+
capsule: contentModelJsonValueSchema,
|
|
14
14
|
artifacts: z
|
|
15
15
|
.object({
|
|
16
|
-
|
|
16
|
+
model: contentModelReleaseV1Schema,
|
|
17
17
|
executables: contentExecutableSetV1Schema,
|
|
18
18
|
sdk: contentSdkDescriptorSetV1Schema,
|
|
19
19
|
routes: contentRouteContributionSetV1Schema,
|
|
20
|
-
requirements:
|
|
20
|
+
requirements: contentModelRequirementsV1Schema,
|
|
21
21
|
})
|
|
22
22
|
.strict(),
|
|
23
|
-
compiled:
|
|
23
|
+
compiled: compiledContentModelV1Schema,
|
|
24
24
|
runtimeComponents: runtimeComponentInventoryV1Schema,
|
|
25
25
|
runtimePlacementReceipt: runtimeComponentPlacementReceiptV1Schema,
|
|
26
26
|
routeInventory: routeInventoryV1Schema,
|
|
@@ -34,7 +34,7 @@ export const contentPlatformV1FixtureSchema = z
|
|
|
34
34
|
frameSession: frameSessionClaimsV1Schema,
|
|
35
35
|
syncExchange: syncReconciliationExchangeV1Schema,
|
|
36
36
|
syncSourceAcknowledgement: syncSourceAcknowledgementV1Schema,
|
|
37
|
-
syncConflict:
|
|
37
|
+
syncConflict: contentSyncConflictProblemSchema,
|
|
38
38
|
journalEntry: applicationJournalEntryV1Schema,
|
|
39
39
|
deliveryClaim: applicationJournalDeliveryClaimV1Schema,
|
|
40
40
|
deliveryReceipt: applicationJournalDeliveryReceiptV1Schema,
|
|
@@ -3,12 +3,17 @@ export declare const syncLedgerV1Schema: z.ZodObject<{
|
|
|
3
3
|
version: z.ZodLiteral<1>;
|
|
4
4
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
5
5
|
source: z.ZodString;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
format: z.ZodEnum<{
|
|
7
|
+
md: "md";
|
|
8
|
+
html: "html";
|
|
9
|
+
tsx: "tsx";
|
|
10
|
+
}>;
|
|
11
|
+
baseText: z.ZodString;
|
|
12
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
13
|
+
blocksDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
9
14
|
wordpressRevisionId: z.ZodNumber;
|
|
10
15
|
serializerVersion: z.ZodLiteral<1>;
|
|
11
|
-
revision: z.core.$ZodBranded<z.ZodString, "
|
|
16
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
12
17
|
lastDirection: z.ZodEnum<{
|
|
13
18
|
push: "push";
|
|
14
19
|
pull: "pull";
|
|
@@ -19,34 +24,55 @@ export declare const syncReconcileInputV1Schema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
19
24
|
state: z.ZodLiteral<"initial">;
|
|
20
25
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
21
26
|
source: z.ZodString;
|
|
22
|
-
|
|
27
|
+
text: z.ZodString;
|
|
23
28
|
observedSourceRevision: z.ZodString;
|
|
24
29
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
25
30
|
}, z.core.$strict>, z.ZodObject<{
|
|
26
31
|
state: z.ZodLiteral<"bound">;
|
|
27
|
-
baseRevision: z.core.$ZodBranded<z.ZodString, "
|
|
32
|
+
baseRevision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
28
33
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
29
34
|
source: z.ZodString;
|
|
30
|
-
|
|
35
|
+
text: z.ZodString;
|
|
31
36
|
observedSourceRevision: z.ZodString;
|
|
32
37
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
33
38
|
}, z.core.$strict>], "state">;
|
|
34
39
|
export type SyncReconcileInputV1 = z.infer<typeof syncReconcileInputV1Schema>;
|
|
40
|
+
/**
|
|
41
|
+
* The file a reconciliation or a materialization decided the repository should
|
|
42
|
+
* hold, and the revision it may be swapped in against.
|
|
43
|
+
*
|
|
44
|
+
* Both lanes hand back the same shape because the control plane lands them the
|
|
45
|
+
* same way: a compare-and-swap on the blob the write was prepared against,
|
|
46
|
+
* where `"absent"` means the file is not there yet.
|
|
47
|
+
*/
|
|
48
|
+
declare const syncPreparedSourceWriteSchema: z.ZodObject<{
|
|
49
|
+
state: z.ZodLiteral<"prepared">;
|
|
50
|
+
source: z.ZodString;
|
|
51
|
+
expectedSourceRevision: z.ZodString;
|
|
52
|
+
text: z.ZodString;
|
|
53
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
export type SyncPreparedSourceWriteV1 = z.infer<typeof syncPreparedSourceWriteSchema>;
|
|
35
56
|
export declare const syncReceiptV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
57
|
status: z.ZodLiteral<"created">;
|
|
37
|
-
format: z.ZodLiteral<"spacefast.
|
|
58
|
+
format: z.ZodLiteral<"spacefast.content-sync">;
|
|
38
59
|
version: z.ZodLiteral<1>;
|
|
39
60
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
40
61
|
ledger: z.ZodObject<{
|
|
41
62
|
version: z.ZodLiteral<1>;
|
|
42
63
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
43
64
|
source: z.ZodString;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
65
|
+
format: z.ZodEnum<{
|
|
66
|
+
md: "md";
|
|
67
|
+
html: "html";
|
|
68
|
+
tsx: "tsx";
|
|
69
|
+
}>;
|
|
70
|
+
baseText: z.ZodString;
|
|
71
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
72
|
+
blocksDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
47
73
|
wordpressRevisionId: z.ZodNumber;
|
|
48
74
|
serializerVersion: z.ZodLiteral<1>;
|
|
49
|
-
revision: z.core.$ZodBranded<z.ZodString, "
|
|
75
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
50
76
|
lastDirection: z.ZodEnum<{
|
|
51
77
|
push: "push";
|
|
52
78
|
pull: "pull";
|
|
@@ -54,19 +80,24 @@ export declare const syncReceiptV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
54
80
|
}, z.core.$strict>;
|
|
55
81
|
}, z.core.$strict>, z.ZodObject<{
|
|
56
82
|
status: z.ZodLiteral<"unchanged">;
|
|
57
|
-
format: z.ZodLiteral<"spacefast.
|
|
83
|
+
format: z.ZodLiteral<"spacefast.content-sync">;
|
|
58
84
|
version: z.ZodLiteral<1>;
|
|
59
85
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
60
86
|
ledger: z.ZodObject<{
|
|
61
87
|
version: z.ZodLiteral<1>;
|
|
62
88
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
63
89
|
source: z.ZodString;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
90
|
+
format: z.ZodEnum<{
|
|
91
|
+
md: "md";
|
|
92
|
+
html: "html";
|
|
93
|
+
tsx: "tsx";
|
|
94
|
+
}>;
|
|
95
|
+
baseText: z.ZodString;
|
|
96
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
97
|
+
blocksDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
67
98
|
wordpressRevisionId: z.ZodNumber;
|
|
68
99
|
serializerVersion: z.ZodLiteral<1>;
|
|
69
|
-
revision: z.core.$ZodBranded<z.ZodString, "
|
|
100
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
70
101
|
lastDirection: z.ZodEnum<{
|
|
71
102
|
push: "push";
|
|
72
103
|
pull: "pull";
|
|
@@ -74,19 +105,24 @@ export declare const syncReceiptV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
74
105
|
}, z.core.$strict>;
|
|
75
106
|
}, z.core.$strict>, z.ZodObject<{
|
|
76
107
|
status: z.ZodLiteral<"pushed">;
|
|
77
|
-
format: z.ZodLiteral<"spacefast.
|
|
108
|
+
format: z.ZodLiteral<"spacefast.content-sync">;
|
|
78
109
|
version: z.ZodLiteral<1>;
|
|
79
110
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
80
111
|
ledger: z.ZodObject<{
|
|
81
112
|
version: z.ZodLiteral<1>;
|
|
82
113
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
83
114
|
source: z.ZodString;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
115
|
+
format: z.ZodEnum<{
|
|
116
|
+
md: "md";
|
|
117
|
+
html: "html";
|
|
118
|
+
tsx: "tsx";
|
|
119
|
+
}>;
|
|
120
|
+
baseText: z.ZodString;
|
|
121
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
122
|
+
blocksDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
87
123
|
wordpressRevisionId: z.ZodNumber;
|
|
88
124
|
serializerVersion: z.ZodLiteral<1>;
|
|
89
|
-
revision: z.core.$ZodBranded<z.ZodString, "
|
|
125
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
90
126
|
lastDirection: z.ZodEnum<{
|
|
91
127
|
push: "push";
|
|
92
128
|
pull: "pull";
|
|
@@ -98,22 +134,27 @@ export declare const syncReceiptV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
98
134
|
state: z.ZodLiteral<"prepared">;
|
|
99
135
|
source: z.ZodString;
|
|
100
136
|
expectedSourceRevision: z.ZodString;
|
|
101
|
-
|
|
102
|
-
|
|
137
|
+
text: z.ZodString;
|
|
138
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
103
139
|
}, z.core.$strict>;
|
|
104
|
-
format: z.ZodLiteral<"spacefast.
|
|
140
|
+
format: z.ZodLiteral<"spacefast.content-sync">;
|
|
105
141
|
version: z.ZodLiteral<1>;
|
|
106
142
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
107
143
|
ledger: z.ZodObject<{
|
|
108
144
|
version: z.ZodLiteral<1>;
|
|
109
145
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
110
146
|
source: z.ZodString;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
147
|
+
format: z.ZodEnum<{
|
|
148
|
+
md: "md";
|
|
149
|
+
html: "html";
|
|
150
|
+
tsx: "tsx";
|
|
151
|
+
}>;
|
|
152
|
+
baseText: z.ZodString;
|
|
153
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
154
|
+
blocksDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
114
155
|
wordpressRevisionId: z.ZodNumber;
|
|
115
156
|
serializerVersion: z.ZodLiteral<1>;
|
|
116
|
-
revision: z.core.$ZodBranded<z.ZodString, "
|
|
157
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
117
158
|
lastDirection: z.ZodEnum<{
|
|
118
159
|
push: "push";
|
|
119
160
|
pull: "pull";
|
|
@@ -121,38 +162,73 @@ export declare const syncReceiptV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
121
162
|
}, z.core.$strict>;
|
|
122
163
|
}, z.core.$strict>], "status">;
|
|
123
164
|
export type SyncReceiptV1 = z.infer<typeof syncReceiptV1Schema>;
|
|
165
|
+
/**
|
|
166
|
+
* The file a document's bytes belong in, for a document that has none.
|
|
167
|
+
*
|
|
168
|
+
* Two callers, one answer. A post the editor created under a materializing
|
|
169
|
+
* collection has never had a file; a compile-class binding's page has a file
|
|
170
|
+
* nothing can write back to. Both get a NEW path and the canonical text of what
|
|
171
|
+
* WordPress holds, so the write compares against `"absent"` and no ledger base
|
|
172
|
+
* moves — there is no common base yet to move.
|
|
173
|
+
*
|
|
174
|
+
* `skipped` is that same answer replayed for a post a materialization was
|
|
175
|
+
* already prepared for, and carries the same write, so a retry lands exactly
|
|
176
|
+
* what the first attempt did.
|
|
177
|
+
*/
|
|
178
|
+
export declare const syncMaterializeReceiptV1Schema: z.ZodObject<{
|
|
179
|
+
format: z.ZodLiteral<"spacefast.content-materialize">;
|
|
180
|
+
version: z.ZodLiteral<1>;
|
|
181
|
+
status: z.ZodEnum<{
|
|
182
|
+
skipped: "skipped";
|
|
183
|
+
materialized: "materialized";
|
|
184
|
+
}>;
|
|
185
|
+
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
186
|
+
sourceWrite: z.ZodObject<{
|
|
187
|
+
state: z.ZodLiteral<"prepared">;
|
|
188
|
+
source: z.ZodString;
|
|
189
|
+
expectedSourceRevision: z.ZodString;
|
|
190
|
+
text: z.ZodString;
|
|
191
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
}, z.core.$strict>;
|
|
194
|
+
export type SyncMaterializeReceiptV1 = z.infer<typeof syncMaterializeReceiptV1Schema>;
|
|
124
195
|
export declare const syncReconciliationExchangeV1Schema: z.ZodObject<{
|
|
125
196
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
197
|
state: z.ZodLiteral<"initial">;
|
|
127
198
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
128
199
|
source: z.ZodString;
|
|
129
|
-
|
|
200
|
+
text: z.ZodString;
|
|
130
201
|
observedSourceRevision: z.ZodString;
|
|
131
202
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
132
203
|
}, z.core.$strict>, z.ZodObject<{
|
|
133
204
|
state: z.ZodLiteral<"bound">;
|
|
134
|
-
baseRevision: z.core.$ZodBranded<z.ZodString, "
|
|
205
|
+
baseRevision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
135
206
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
136
207
|
source: z.ZodString;
|
|
137
|
-
|
|
208
|
+
text: z.ZodString;
|
|
138
209
|
observedSourceRevision: z.ZodString;
|
|
139
210
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
140
211
|
}, z.core.$strict>], "state">;
|
|
141
212
|
receipt: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
142
213
|
status: z.ZodLiteral<"created">;
|
|
143
|
-
format: z.ZodLiteral<"spacefast.
|
|
214
|
+
format: z.ZodLiteral<"spacefast.content-sync">;
|
|
144
215
|
version: z.ZodLiteral<1>;
|
|
145
216
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
146
217
|
ledger: z.ZodObject<{
|
|
147
218
|
version: z.ZodLiteral<1>;
|
|
148
219
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
149
220
|
source: z.ZodString;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
221
|
+
format: z.ZodEnum<{
|
|
222
|
+
md: "md";
|
|
223
|
+
html: "html";
|
|
224
|
+
tsx: "tsx";
|
|
225
|
+
}>;
|
|
226
|
+
baseText: z.ZodString;
|
|
227
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
228
|
+
blocksDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
153
229
|
wordpressRevisionId: z.ZodNumber;
|
|
154
230
|
serializerVersion: z.ZodLiteral<1>;
|
|
155
|
-
revision: z.core.$ZodBranded<z.ZodString, "
|
|
231
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
156
232
|
lastDirection: z.ZodEnum<{
|
|
157
233
|
push: "push";
|
|
158
234
|
pull: "pull";
|
|
@@ -160,19 +236,24 @@ export declare const syncReconciliationExchangeV1Schema: z.ZodObject<{
|
|
|
160
236
|
}, z.core.$strict>;
|
|
161
237
|
}, z.core.$strict>, z.ZodObject<{
|
|
162
238
|
status: z.ZodLiteral<"unchanged">;
|
|
163
|
-
format: z.ZodLiteral<"spacefast.
|
|
239
|
+
format: z.ZodLiteral<"spacefast.content-sync">;
|
|
164
240
|
version: z.ZodLiteral<1>;
|
|
165
241
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
166
242
|
ledger: z.ZodObject<{
|
|
167
243
|
version: z.ZodLiteral<1>;
|
|
168
244
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
169
245
|
source: z.ZodString;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
246
|
+
format: z.ZodEnum<{
|
|
247
|
+
md: "md";
|
|
248
|
+
html: "html";
|
|
249
|
+
tsx: "tsx";
|
|
250
|
+
}>;
|
|
251
|
+
baseText: z.ZodString;
|
|
252
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
253
|
+
blocksDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
173
254
|
wordpressRevisionId: z.ZodNumber;
|
|
174
255
|
serializerVersion: z.ZodLiteral<1>;
|
|
175
|
-
revision: z.core.$ZodBranded<z.ZodString, "
|
|
256
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
176
257
|
lastDirection: z.ZodEnum<{
|
|
177
258
|
push: "push";
|
|
178
259
|
pull: "pull";
|
|
@@ -180,19 +261,24 @@ export declare const syncReconciliationExchangeV1Schema: z.ZodObject<{
|
|
|
180
261
|
}, z.core.$strict>;
|
|
181
262
|
}, z.core.$strict>, z.ZodObject<{
|
|
182
263
|
status: z.ZodLiteral<"pushed">;
|
|
183
|
-
format: z.ZodLiteral<"spacefast.
|
|
264
|
+
format: z.ZodLiteral<"spacefast.content-sync">;
|
|
184
265
|
version: z.ZodLiteral<1>;
|
|
185
266
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
186
267
|
ledger: z.ZodObject<{
|
|
187
268
|
version: z.ZodLiteral<1>;
|
|
188
269
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
189
270
|
source: z.ZodString;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
271
|
+
format: z.ZodEnum<{
|
|
272
|
+
md: "md";
|
|
273
|
+
html: "html";
|
|
274
|
+
tsx: "tsx";
|
|
275
|
+
}>;
|
|
276
|
+
baseText: z.ZodString;
|
|
277
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
278
|
+
blocksDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
193
279
|
wordpressRevisionId: z.ZodNumber;
|
|
194
280
|
serializerVersion: z.ZodLiteral<1>;
|
|
195
|
-
revision: z.core.$ZodBranded<z.ZodString, "
|
|
281
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
196
282
|
lastDirection: z.ZodEnum<{
|
|
197
283
|
push: "push";
|
|
198
284
|
pull: "pull";
|
|
@@ -204,22 +290,27 @@ export declare const syncReconciliationExchangeV1Schema: z.ZodObject<{
|
|
|
204
290
|
state: z.ZodLiteral<"prepared">;
|
|
205
291
|
source: z.ZodString;
|
|
206
292
|
expectedSourceRevision: z.ZodString;
|
|
207
|
-
|
|
208
|
-
|
|
293
|
+
text: z.ZodString;
|
|
294
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
209
295
|
}, z.core.$strict>;
|
|
210
|
-
format: z.ZodLiteral<"spacefast.
|
|
296
|
+
format: z.ZodLiteral<"spacefast.content-sync">;
|
|
211
297
|
version: z.ZodLiteral<1>;
|
|
212
298
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
213
299
|
ledger: z.ZodObject<{
|
|
214
300
|
version: z.ZodLiteral<1>;
|
|
215
301
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
216
302
|
source: z.ZodString;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
303
|
+
format: z.ZodEnum<{
|
|
304
|
+
md: "md";
|
|
305
|
+
html: "html";
|
|
306
|
+
tsx: "tsx";
|
|
307
|
+
}>;
|
|
308
|
+
baseText: z.ZodString;
|
|
309
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
310
|
+
blocksDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
220
311
|
wordpressRevisionId: z.ZodNumber;
|
|
221
312
|
serializerVersion: z.ZodLiteral<1>;
|
|
222
|
-
revision: z.core.$ZodBranded<z.ZodString, "
|
|
313
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
223
314
|
lastDirection: z.ZodEnum<{
|
|
224
315
|
push: "push";
|
|
225
316
|
pull: "pull";
|
|
@@ -229,35 +320,66 @@ export declare const syncReconciliationExchangeV1Schema: z.ZodObject<{
|
|
|
229
320
|
}, z.core.$strict>;
|
|
230
321
|
export type SyncReconciliationExchangeV1 = z.infer<typeof syncReconciliationExchangeV1Schema>;
|
|
231
322
|
export declare const syncSourceAcknowledgementV1Schema: z.ZodObject<{
|
|
232
|
-
format: z.ZodLiteral<"spacefast.
|
|
323
|
+
format: z.ZodLiteral<"spacefast.content-sync-ack">;
|
|
233
324
|
version: z.ZodLiteral<1>;
|
|
234
325
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
235
326
|
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
236
|
-
|
|
237
|
-
baseRevision: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
327
|
+
baseRevision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
238
328
|
}, z.core.$strict>;
|
|
239
329
|
export type SyncSourceAcknowledgementV1 = z.infer<typeof syncSourceAcknowledgementV1Schema>;
|
|
240
|
-
|
|
330
|
+
/**
|
|
331
|
+
* The answer to an acknowledgement: the ledger the prepared source write closed
|
|
332
|
+
* against. It echoes the ledger rather than a bare ack so the caller can prove
|
|
333
|
+
* which common base its file now matches.
|
|
334
|
+
*/
|
|
335
|
+
export declare const syncAcknowledgementReceiptV1Schema: z.ZodObject<{
|
|
336
|
+
format: z.ZodLiteral<"spacefast.content-sync-ack-receipt">;
|
|
337
|
+
version: z.ZodLiteral<1>;
|
|
338
|
+
status: z.ZodLiteral<"acknowledged">;
|
|
339
|
+
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
340
|
+
ledger: z.ZodObject<{
|
|
341
|
+
version: z.ZodLiteral<1>;
|
|
342
|
+
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
343
|
+
source: z.ZodString;
|
|
344
|
+
format: z.ZodEnum<{
|
|
345
|
+
md: "md";
|
|
346
|
+
html: "html";
|
|
347
|
+
tsx: "tsx";
|
|
348
|
+
}>;
|
|
349
|
+
baseText: z.ZodString;
|
|
350
|
+
textDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
351
|
+
blocksDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
352
|
+
wordpressRevisionId: z.ZodNumber;
|
|
353
|
+
serializerVersion: z.ZodLiteral<1>;
|
|
354
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
355
|
+
lastDirection: z.ZodEnum<{
|
|
356
|
+
push: "push";
|
|
357
|
+
pull: "pull";
|
|
358
|
+
}>;
|
|
359
|
+
}, z.core.$strict>;
|
|
360
|
+
}, z.core.$strict>;
|
|
361
|
+
export type SyncAcknowledgementReceiptV1 = z.infer<typeof syncAcknowledgementReceiptV1Schema>;
|
|
362
|
+
export declare const contentSyncConflictDetailsSchema: z.ZodObject<{
|
|
241
363
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
242
364
|
base: z.ZodObject<{
|
|
243
|
-
|
|
244
|
-
digest: z.core.$ZodBranded<z.ZodString, "
|
|
365
|
+
text: z.ZodString;
|
|
366
|
+
digest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
245
367
|
revision: z.ZodString;
|
|
246
368
|
}, z.core.$strict>;
|
|
247
369
|
source: z.ZodObject<{
|
|
248
|
-
|
|
249
|
-
digest: z.core.$ZodBranded<z.ZodString, "
|
|
370
|
+
text: z.ZodString;
|
|
371
|
+
digest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
250
372
|
revision: z.ZodString;
|
|
251
373
|
}, z.core.$strict>;
|
|
252
374
|
wordpress: z.ZodObject<{
|
|
253
|
-
|
|
254
|
-
digest: z.core.$ZodBranded<z.ZodString, "
|
|
375
|
+
text: z.ZodString;
|
|
376
|
+
digest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
255
377
|
revision: z.ZodString;
|
|
256
378
|
wordpressRevisionId: z.ZodNumber;
|
|
257
379
|
}, z.core.$strict>;
|
|
258
380
|
}, z.core.$strict>;
|
|
259
|
-
export type
|
|
260
|
-
export declare const
|
|
381
|
+
export type ContentSyncConflictDetails = z.infer<typeof contentSyncConflictDetailsSchema>;
|
|
382
|
+
export declare const contentSyncConflictProblemSchema: z.ZodObject<{
|
|
261
383
|
type: z.ZodString;
|
|
262
384
|
title: z.ZodString;
|
|
263
385
|
detail: z.ZodString;
|
|
@@ -266,25 +388,26 @@ export declare const contentMarkdownConflictProblemSchema: z.ZodObject<{
|
|
|
266
388
|
next: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
267
389
|
requestId: z.ZodString;
|
|
268
390
|
status: z.ZodLiteral<409>;
|
|
269
|
-
code: z.ZodLiteral<"
|
|
391
|
+
code: z.ZodLiteral<"content_sync_conflict">;
|
|
270
392
|
details: z.ZodObject<{
|
|
271
393
|
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
272
394
|
base: z.ZodObject<{
|
|
273
|
-
|
|
274
|
-
digest: z.core.$ZodBranded<z.ZodString, "
|
|
395
|
+
text: z.ZodString;
|
|
396
|
+
digest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
275
397
|
revision: z.ZodString;
|
|
276
398
|
}, z.core.$strict>;
|
|
277
399
|
source: z.ZodObject<{
|
|
278
|
-
|
|
279
|
-
digest: z.core.$ZodBranded<z.ZodString, "
|
|
400
|
+
text: z.ZodString;
|
|
401
|
+
digest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
280
402
|
revision: z.ZodString;
|
|
281
403
|
}, z.core.$strict>;
|
|
282
404
|
wordpress: z.ZodObject<{
|
|
283
|
-
|
|
284
|
-
digest: z.core.$ZodBranded<z.ZodString, "
|
|
405
|
+
text: z.ZodString;
|
|
406
|
+
digest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
285
407
|
revision: z.ZodString;
|
|
286
408
|
wordpressRevisionId: z.ZodNumber;
|
|
287
409
|
}, z.core.$strict>;
|
|
288
410
|
}, z.core.$strict>;
|
|
289
411
|
}, z.core.$strip>;
|
|
290
|
-
export type
|
|
412
|
+
export type ContentSyncConflictProblem = z.infer<typeof contentSyncConflictProblemSchema>;
|
|
413
|
+
export {};
|