@spacefast/common 0.2.2 → 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 +18 -4
- package/dist/contracts/builds.js +7 -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 +384 -20
- package/dist/contracts/error-code-meta.js +200 -5
- package/dist/contracts/error-codes.d.ts +17 -4
- package/dist/contracts/error-codes.js +108 -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 +46 -9
- package/dist/contracts/oauth-resources.js +50 -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 +361 -17
- package/dist/docs/error-docs.js +365 -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
|
@@ -22,11 +22,32 @@ export const runtimeStorageListQuerySchema = z
|
|
|
22
22
|
.describe("Maximum objects to return."),
|
|
23
23
|
})
|
|
24
24
|
.strict();
|
|
25
|
+
/**
|
|
26
|
+
* The uploader's own name for an object: presentation only, never a path.
|
|
27
|
+
*
|
|
28
|
+
* The id is the identity — this is what a person reads in a list and what a
|
|
29
|
+
* download is saved as. Separators are refused rather than stripped so the
|
|
30
|
+
* value the caller sent is the value that comes back.
|
|
31
|
+
*/
|
|
32
|
+
export const runtimeStorageFilenameSchema = z
|
|
33
|
+
.string()
|
|
34
|
+
.trim()
|
|
35
|
+
.min(1)
|
|
36
|
+
.max(255)
|
|
37
|
+
.refine((value) => value !== "." &&
|
|
38
|
+
value !== ".." &&
|
|
39
|
+
// oxlint-disable-next-line no-control-regex -- refusing control characters in a header-borne name is the point.
|
|
40
|
+
!/[\u0000-\u001f\u007f/\\]/.test(value), { message: "Filename must be a single name, without path separators." });
|
|
25
41
|
export const runtimeStorageObjectSchema = z
|
|
26
42
|
.object({
|
|
27
43
|
id: runtimeStorageObjectIdSchema,
|
|
28
44
|
contentType: z.string().min(1).max(255),
|
|
29
45
|
createdAt: z.string().datetime(),
|
|
46
|
+
/**
|
|
47
|
+
* Absent on objects stored before names existed, and on any upload that
|
|
48
|
+
* declared none. Never null — a nameless object simply has no filename.
|
|
49
|
+
*/
|
|
50
|
+
filename: runtimeStorageFilenameSchema.optional(),
|
|
30
51
|
size: z.number().int().nonnegative(),
|
|
31
52
|
uploaderId: z.string().min(1).max(255),
|
|
32
53
|
sha256: z.string().regex(/^[a-f0-9]{64}$/),
|
|
@@ -46,6 +67,22 @@ export const runtimeStorageListResponseSchema = z
|
|
|
46
67
|
hasMore: z.boolean(),
|
|
47
68
|
})
|
|
48
69
|
.strict();
|
|
70
|
+
/**
|
|
71
|
+
* The upload's metadata rides the URL because the body is the file.
|
|
72
|
+
*
|
|
73
|
+
* `contentType` comes from the request's own `Content-Type`, which is where a
|
|
74
|
+
* raw-body upload already states it; only the name has nowhere else to go.
|
|
75
|
+
*/
|
|
76
|
+
export const runtimeStorageUploadQuerySchema = z
|
|
77
|
+
.object({
|
|
78
|
+
filename: runtimeStorageFilenameSchema
|
|
79
|
+
.optional()
|
|
80
|
+
.describe("Name to store the object under, for display and downloads."),
|
|
81
|
+
})
|
|
82
|
+
.strict();
|
|
83
|
+
export const runtimeStorageUploadPublicResponseSchema = z.object({
|
|
84
|
+
data: runtimeStorageObjectSchema,
|
|
85
|
+
});
|
|
49
86
|
export const runtimeStorageListPublicResponseSchema = z.object({
|
|
50
87
|
data: z.array(runtimeStorageObjectSchema),
|
|
51
88
|
pagination: CursorPaginationSchema,
|
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const sourceCommitShaSchema: z.ZodString;
|
|
3
|
+
export declare const sourceWorkspacePathSchema: z.ZodString;
|
|
4
|
+
export declare const sourceWorkspaceAuthorSchema: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
email: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const sourceWorkspaceFileOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
action: z.ZodLiteral<"upsert">;
|
|
10
|
+
path: z.ZodString;
|
|
11
|
+
contents: z.ZodString;
|
|
12
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
base64: "base64";
|
|
14
|
+
utf8: "utf8";
|
|
15
|
+
hex: "hex";
|
|
16
|
+
}>>;
|
|
17
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
100644: "100644";
|
|
19
|
+
100755: "100755";
|
|
20
|
+
120000: "120000";
|
|
21
|
+
160000: "160000";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
action: z.ZodLiteral<"delete">;
|
|
25
|
+
path: z.ZodString;
|
|
26
|
+
}, z.core.$strip>], "action">;
|
|
27
|
+
export declare const sourceWorkspaceMutationSchema: z.ZodObject<{
|
|
28
|
+
expectedRevision: z.ZodNumber;
|
|
29
|
+
operationId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export declare const sourceWorkspaceCreateSchema: z.ZodObject<{
|
|
32
|
+
operationId: z.ZodString;
|
|
33
|
+
name: z.ZodOptional<z.ZodString>;
|
|
34
|
+
targetBranch: z.ZodOptional<z.ZodString>;
|
|
35
|
+
originalUploadVersionId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
email: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const sourceWorkspaceEditSchema: z.ZodObject<{
|
|
42
|
+
expectedRevision: z.ZodNumber;
|
|
43
|
+
operationId: z.ZodString;
|
|
44
|
+
operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
|
+
action: z.ZodLiteral<"upsert">;
|
|
46
|
+
path: z.ZodString;
|
|
47
|
+
contents: z.ZodString;
|
|
48
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
base64: "base64";
|
|
50
|
+
utf8: "utf8";
|
|
51
|
+
hex: "hex";
|
|
52
|
+
}>>;
|
|
53
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
100644: "100644";
|
|
55
|
+
100755: "100755";
|
|
56
|
+
120000: "120000";
|
|
57
|
+
160000: "160000";
|
|
58
|
+
}>>;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
action: z.ZodLiteral<"delete">;
|
|
61
|
+
path: z.ZodString;
|
|
62
|
+
}, z.core.$strip>], "action">>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export declare const sourceWorkspaceSelectionSchema: z.ZodObject<{
|
|
65
|
+
expectedRevision: z.ZodNumber;
|
|
66
|
+
operationId: z.ZodString;
|
|
67
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
|
+
hunkIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
|
+
all: z.ZodOptional<z.ZodLiteral<true>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export declare const sourceWorkspaceCommitSchema: z.ZodObject<{
|
|
72
|
+
expectedRevision: z.ZodNumber;
|
|
73
|
+
operationId: z.ZodString;
|
|
74
|
+
message: z.ZodString;
|
|
75
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
email: z.ZodString;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export declare const sourceWorkspaceRestoreSchema: z.ZodObject<{
|
|
81
|
+
expectedRevision: z.ZodNumber;
|
|
82
|
+
operationId: z.ZodString;
|
|
83
|
+
paths: z.ZodArray<z.ZodString>;
|
|
84
|
+
sourceCommitSha: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export declare const sourceWorkspaceUndoSchema: z.ZodObject<{
|
|
87
|
+
expectedRevision: z.ZodNumber;
|
|
88
|
+
operationId: z.ZodString;
|
|
89
|
+
sourceCommitSha: z.ZodString;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
export declare const sourceWorkspaceCloseSchema: z.ZodObject<{
|
|
92
|
+
expectedRevision: z.ZodNumber;
|
|
93
|
+
operationId: z.ZodString;
|
|
94
|
+
discardPending: z.ZodDefault<z.ZodBoolean>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export declare const sourceWorkspaceResolutionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
97
|
+
path: z.ZodString;
|
|
98
|
+
contents: z.ZodString;
|
|
99
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
base64: "base64";
|
|
101
|
+
utf8: "utf8";
|
|
102
|
+
hex: "hex";
|
|
103
|
+
}>>;
|
|
104
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
100644: "100644";
|
|
106
|
+
100755: "100755";
|
|
107
|
+
120000: "120000";
|
|
108
|
+
160000: "160000";
|
|
109
|
+
}>>;
|
|
110
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
111
|
+
path: z.ZodString;
|
|
112
|
+
delete: z.ZodLiteral<true>;
|
|
113
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
114
|
+
path: z.ZodString;
|
|
115
|
+
side: z.ZodEnum<{
|
|
116
|
+
base: "base";
|
|
117
|
+
ours: "ours";
|
|
118
|
+
theirs: "theirs";
|
|
119
|
+
}>;
|
|
120
|
+
}, z.core.$strict>]>;
|
|
121
|
+
export declare const sourceWorkspaceResolveSchema: z.ZodObject<{
|
|
122
|
+
expectedRevision: z.ZodNumber;
|
|
123
|
+
operationId: z.ZodString;
|
|
124
|
+
resolutions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
125
|
+
path: z.ZodString;
|
|
126
|
+
contents: z.ZodString;
|
|
127
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
128
|
+
base64: "base64";
|
|
129
|
+
utf8: "utf8";
|
|
130
|
+
hex: "hex";
|
|
131
|
+
}>>;
|
|
132
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
133
|
+
100644: "100644";
|
|
134
|
+
100755: "100755";
|
|
135
|
+
120000: "120000";
|
|
136
|
+
160000: "160000";
|
|
137
|
+
}>>;
|
|
138
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
139
|
+
path: z.ZodString;
|
|
140
|
+
delete: z.ZodLiteral<true>;
|
|
141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
142
|
+
path: z.ZodString;
|
|
143
|
+
side: z.ZodEnum<{
|
|
144
|
+
base: "base";
|
|
145
|
+
ours: "ours";
|
|
146
|
+
theirs: "theirs";
|
|
147
|
+
}>;
|
|
148
|
+
}, z.core.$strict>]>>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export declare const sourceWorkspaceDiffQuerySchema: z.ZodObject<{
|
|
151
|
+
view: z.ZodDefault<z.ZodEnum<{
|
|
152
|
+
staged: "staged";
|
|
153
|
+
working: "working";
|
|
154
|
+
unstaged: "unstaged";
|
|
155
|
+
}>>;
|
|
156
|
+
path: z.ZodOptional<z.ZodString>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
export declare const sourceWorkspaceListQuerySchema: z.ZodObject<{
|
|
159
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
160
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
161
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
162
|
+
open: "open";
|
|
163
|
+
closed: "closed";
|
|
164
|
+
}>>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
export declare const SourceWorkspaceSchema: z.ZodObject<{
|
|
167
|
+
id: z.ZodString;
|
|
168
|
+
spaceId: z.ZodString;
|
|
169
|
+
repositoryId: z.ZodString;
|
|
170
|
+
targetBranch: z.ZodString;
|
|
171
|
+
name: z.ZodString;
|
|
172
|
+
revision: z.ZodNumber;
|
|
173
|
+
state: z.ZodEnum<{
|
|
174
|
+
active: "active";
|
|
175
|
+
closed: "closed";
|
|
176
|
+
initializing: "initializing";
|
|
177
|
+
conflicted: "conflicted";
|
|
178
|
+
}>;
|
|
179
|
+
baseCommitSha: z.ZodNullable<z.ZodString>;
|
|
180
|
+
indexCommitSha: z.ZodNullable<z.ZodString>;
|
|
181
|
+
workingCommitSha: z.ZodNullable<z.ZodString>;
|
|
182
|
+
headCommitSha: z.ZodNullable<z.ZodString>;
|
|
183
|
+
originalUploadVersionId: z.ZodNullable<z.ZodString>;
|
|
184
|
+
hasStagedChanges: z.ZodBoolean;
|
|
185
|
+
hasUnstagedChanges: z.ZodBoolean;
|
|
186
|
+
hasPendingChanges: z.ZodBoolean;
|
|
187
|
+
needsSync: z.ZodBoolean;
|
|
188
|
+
pendingOperationId: z.ZodNullable<z.ZodString>;
|
|
189
|
+
autoDeploy: z.ZodBoolean;
|
|
190
|
+
createdAt: z.ZodString;
|
|
191
|
+
updatedAt: z.ZodString;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
export declare const sourceWorkspaceHunkSchema: z.ZodObject<{
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
oldStart: z.ZodNumber;
|
|
196
|
+
oldLines: z.ZodNumber;
|
|
197
|
+
newStart: z.ZodNumber;
|
|
198
|
+
newLines: z.ZodNumber;
|
|
199
|
+
patch: z.ZodString;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
export declare const sourceWorkspaceDiffFileSchema: z.ZodObject<{
|
|
202
|
+
path: z.ZodString;
|
|
203
|
+
oldPath: z.ZodNullable<z.ZodString>;
|
|
204
|
+
state: z.ZodString;
|
|
205
|
+
additions: z.ZodNumber;
|
|
206
|
+
deletions: z.ZodNumber;
|
|
207
|
+
changes: z.ZodNumber;
|
|
208
|
+
patch: z.ZodString;
|
|
209
|
+
patchTruncated: z.ZodBoolean;
|
|
210
|
+
wholeFileOnly: z.ZodBoolean;
|
|
211
|
+
hunks: z.ZodArray<z.ZodObject<{
|
|
212
|
+
id: z.ZodString;
|
|
213
|
+
oldStart: z.ZodNumber;
|
|
214
|
+
oldLines: z.ZodNumber;
|
|
215
|
+
newStart: z.ZodNumber;
|
|
216
|
+
newLines: z.ZodNumber;
|
|
217
|
+
patch: z.ZodString;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
export declare const sourceWorkspaceDiffSchema: z.ZodObject<{
|
|
221
|
+
workspace: z.ZodObject<{
|
|
222
|
+
id: z.ZodString;
|
|
223
|
+
spaceId: z.ZodString;
|
|
224
|
+
repositoryId: z.ZodString;
|
|
225
|
+
targetBranch: z.ZodString;
|
|
226
|
+
name: z.ZodString;
|
|
227
|
+
revision: z.ZodNumber;
|
|
228
|
+
state: z.ZodEnum<{
|
|
229
|
+
active: "active";
|
|
230
|
+
closed: "closed";
|
|
231
|
+
initializing: "initializing";
|
|
232
|
+
conflicted: "conflicted";
|
|
233
|
+
}>;
|
|
234
|
+
baseCommitSha: z.ZodNullable<z.ZodString>;
|
|
235
|
+
indexCommitSha: z.ZodNullable<z.ZodString>;
|
|
236
|
+
workingCommitSha: z.ZodNullable<z.ZodString>;
|
|
237
|
+
headCommitSha: z.ZodNullable<z.ZodString>;
|
|
238
|
+
originalUploadVersionId: z.ZodNullable<z.ZodString>;
|
|
239
|
+
hasStagedChanges: z.ZodBoolean;
|
|
240
|
+
hasUnstagedChanges: z.ZodBoolean;
|
|
241
|
+
hasPendingChanges: z.ZodBoolean;
|
|
242
|
+
needsSync: z.ZodBoolean;
|
|
243
|
+
pendingOperationId: z.ZodNullable<z.ZodString>;
|
|
244
|
+
autoDeploy: z.ZodBoolean;
|
|
245
|
+
createdAt: z.ZodString;
|
|
246
|
+
updatedAt: z.ZodString;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
view: z.ZodEnum<{
|
|
249
|
+
staged: "staged";
|
|
250
|
+
working: "working";
|
|
251
|
+
unstaged: "unstaged";
|
|
252
|
+
}>;
|
|
253
|
+
baseCommitSha: z.ZodString;
|
|
254
|
+
targetCommitSha: z.ZodString;
|
|
255
|
+
stats: z.ZodObject<{
|
|
256
|
+
files: z.ZodNumber;
|
|
257
|
+
additions: z.ZodNumber;
|
|
258
|
+
deletions: z.ZodNumber;
|
|
259
|
+
changes: z.ZodNumber;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
files: z.ZodArray<z.ZodObject<{
|
|
262
|
+
path: z.ZodString;
|
|
263
|
+
oldPath: z.ZodNullable<z.ZodString>;
|
|
264
|
+
state: z.ZodString;
|
|
265
|
+
additions: z.ZodNumber;
|
|
266
|
+
deletions: z.ZodNumber;
|
|
267
|
+
changes: z.ZodNumber;
|
|
268
|
+
patch: z.ZodString;
|
|
269
|
+
patchTruncated: z.ZodBoolean;
|
|
270
|
+
wholeFileOnly: z.ZodBoolean;
|
|
271
|
+
hunks: z.ZodArray<z.ZodObject<{
|
|
272
|
+
id: z.ZodString;
|
|
273
|
+
oldStart: z.ZodNumber;
|
|
274
|
+
oldLines: z.ZodNumber;
|
|
275
|
+
newStart: z.ZodNumber;
|
|
276
|
+
newLines: z.ZodNumber;
|
|
277
|
+
patch: z.ZodString;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
}, z.core.$strip>>;
|
|
280
|
+
filteredFiles: z.ZodArray<z.ZodObject<{
|
|
281
|
+
path: z.ZodString;
|
|
282
|
+
oldPath: z.ZodNullable<z.ZodString>;
|
|
283
|
+
state: z.ZodString;
|
|
284
|
+
}, z.core.$strip>>;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
export declare const sourceWorkspaceConflictSideSchema: z.ZodObject<{
|
|
287
|
+
sourceCommitSha: z.ZodString;
|
|
288
|
+
content: z.ZodNullable<z.ZodString>;
|
|
289
|
+
exists: z.ZodBoolean;
|
|
290
|
+
binary: z.ZodBoolean;
|
|
291
|
+
truncated: z.ZodBoolean;
|
|
292
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
export declare const sourceWorkspaceConflictsSchema: z.ZodObject<{
|
|
295
|
+
phase: z.ZodEnum<{
|
|
296
|
+
staged: "staged";
|
|
297
|
+
working: "working";
|
|
298
|
+
undo: "undo";
|
|
299
|
+
}>;
|
|
300
|
+
labels: z.ZodObject<{
|
|
301
|
+
ours: z.ZodString;
|
|
302
|
+
theirs: z.ZodString;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
files: z.ZodArray<z.ZodObject<{
|
|
305
|
+
path: z.ZodString;
|
|
306
|
+
result: z.ZodString;
|
|
307
|
+
base: z.ZodObject<{
|
|
308
|
+
sourceCommitSha: z.ZodString;
|
|
309
|
+
content: z.ZodNullable<z.ZodString>;
|
|
310
|
+
exists: z.ZodBoolean;
|
|
311
|
+
binary: z.ZodBoolean;
|
|
312
|
+
truncated: z.ZodBoolean;
|
|
313
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
ours: z.ZodObject<{
|
|
316
|
+
sourceCommitSha: z.ZodString;
|
|
317
|
+
content: z.ZodNullable<z.ZodString>;
|
|
318
|
+
exists: z.ZodBoolean;
|
|
319
|
+
binary: z.ZodBoolean;
|
|
320
|
+
truncated: z.ZodBoolean;
|
|
321
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
theirs: z.ZodObject<{
|
|
324
|
+
sourceCommitSha: z.ZodString;
|
|
325
|
+
content: z.ZodNullable<z.ZodString>;
|
|
326
|
+
exists: z.ZodBoolean;
|
|
327
|
+
binary: z.ZodBoolean;
|
|
328
|
+
truncated: z.ZodBoolean;
|
|
329
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
}, z.core.$strip>>;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
export declare const sourceWorkspaceReceiptSchema: z.ZodObject<{
|
|
334
|
+
workspace: z.ZodObject<{
|
|
335
|
+
id: z.ZodString;
|
|
336
|
+
spaceId: z.ZodString;
|
|
337
|
+
repositoryId: z.ZodString;
|
|
338
|
+
targetBranch: z.ZodString;
|
|
339
|
+
name: z.ZodString;
|
|
340
|
+
revision: z.ZodNumber;
|
|
341
|
+
state: z.ZodEnum<{
|
|
342
|
+
active: "active";
|
|
343
|
+
closed: "closed";
|
|
344
|
+
initializing: "initializing";
|
|
345
|
+
conflicted: "conflicted";
|
|
346
|
+
}>;
|
|
347
|
+
baseCommitSha: z.ZodNullable<z.ZodString>;
|
|
348
|
+
indexCommitSha: z.ZodNullable<z.ZodString>;
|
|
349
|
+
workingCommitSha: z.ZodNullable<z.ZodString>;
|
|
350
|
+
headCommitSha: z.ZodNullable<z.ZodString>;
|
|
351
|
+
originalUploadVersionId: z.ZodNullable<z.ZodString>;
|
|
352
|
+
hasStagedChanges: z.ZodBoolean;
|
|
353
|
+
hasUnstagedChanges: z.ZodBoolean;
|
|
354
|
+
hasPendingChanges: z.ZodBoolean;
|
|
355
|
+
needsSync: z.ZodBoolean;
|
|
356
|
+
pendingOperationId: z.ZodNullable<z.ZodString>;
|
|
357
|
+
autoDeploy: z.ZodBoolean;
|
|
358
|
+
createdAt: z.ZodString;
|
|
359
|
+
updatedAt: z.ZodString;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
commit: z.ZodOptional<z.ZodObject<{
|
|
362
|
+
sourceCommitSha: z.ZodString;
|
|
363
|
+
parentSourceCommitSha: z.ZodString;
|
|
364
|
+
message: z.ZodString;
|
|
365
|
+
autoDeploy: z.ZodBoolean;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
conflicts: z.ZodOptional<z.ZodObject<{
|
|
368
|
+
phase: z.ZodEnum<{
|
|
369
|
+
staged: "staged";
|
|
370
|
+
working: "working";
|
|
371
|
+
undo: "undo";
|
|
372
|
+
}>;
|
|
373
|
+
labels: z.ZodObject<{
|
|
374
|
+
ours: z.ZodString;
|
|
375
|
+
theirs: z.ZodString;
|
|
376
|
+
}, z.core.$strip>;
|
|
377
|
+
files: z.ZodArray<z.ZodObject<{
|
|
378
|
+
path: z.ZodString;
|
|
379
|
+
result: z.ZodString;
|
|
380
|
+
base: z.ZodObject<{
|
|
381
|
+
sourceCommitSha: z.ZodString;
|
|
382
|
+
content: z.ZodNullable<z.ZodString>;
|
|
383
|
+
exists: z.ZodBoolean;
|
|
384
|
+
binary: z.ZodBoolean;
|
|
385
|
+
truncated: z.ZodBoolean;
|
|
386
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
387
|
+
}, z.core.$strip>;
|
|
388
|
+
ours: z.ZodObject<{
|
|
389
|
+
sourceCommitSha: z.ZodString;
|
|
390
|
+
content: z.ZodNullable<z.ZodString>;
|
|
391
|
+
exists: z.ZodBoolean;
|
|
392
|
+
binary: z.ZodBoolean;
|
|
393
|
+
truncated: z.ZodBoolean;
|
|
394
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
theirs: z.ZodObject<{
|
|
397
|
+
sourceCommitSha: z.ZodString;
|
|
398
|
+
content: z.ZodNullable<z.ZodString>;
|
|
399
|
+
exists: z.ZodBoolean;
|
|
400
|
+
binary: z.ZodBoolean;
|
|
401
|
+
truncated: z.ZodBoolean;
|
|
402
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
403
|
+
}, z.core.$strip>;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
}, z.core.$strip>>;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
export declare const sourceWorkspaceListSchema: z.ZodObject<{
|
|
408
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
409
|
+
id: z.ZodString;
|
|
410
|
+
spaceId: z.ZodString;
|
|
411
|
+
repositoryId: z.ZodString;
|
|
412
|
+
targetBranch: z.ZodString;
|
|
413
|
+
name: z.ZodString;
|
|
414
|
+
revision: z.ZodNumber;
|
|
415
|
+
state: z.ZodEnum<{
|
|
416
|
+
active: "active";
|
|
417
|
+
closed: "closed";
|
|
418
|
+
initializing: "initializing";
|
|
419
|
+
conflicted: "conflicted";
|
|
420
|
+
}>;
|
|
421
|
+
baseCommitSha: z.ZodNullable<z.ZodString>;
|
|
422
|
+
indexCommitSha: z.ZodNullable<z.ZodString>;
|
|
423
|
+
workingCommitSha: z.ZodNullable<z.ZodString>;
|
|
424
|
+
headCommitSha: z.ZodNullable<z.ZodString>;
|
|
425
|
+
originalUploadVersionId: z.ZodNullable<z.ZodString>;
|
|
426
|
+
hasStagedChanges: z.ZodBoolean;
|
|
427
|
+
hasUnstagedChanges: z.ZodBoolean;
|
|
428
|
+
hasPendingChanges: z.ZodBoolean;
|
|
429
|
+
needsSync: z.ZodBoolean;
|
|
430
|
+
pendingOperationId: z.ZodNullable<z.ZodString>;
|
|
431
|
+
autoDeploy: z.ZodBoolean;
|
|
432
|
+
createdAt: z.ZodString;
|
|
433
|
+
updatedAt: z.ZodString;
|
|
434
|
+
}, z.core.$strip>>;
|
|
435
|
+
pagination: z.ZodObject<{
|
|
436
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
437
|
+
hasMore: z.ZodBoolean;
|
|
438
|
+
}, z.core.$strip>;
|
|
439
|
+
}, z.core.$strip>;
|
|
440
|
+
export declare const sourceWorkspaceConflictResponseSchema: z.ZodObject<{
|
|
441
|
+
workspace: z.ZodObject<{
|
|
442
|
+
id: z.ZodString;
|
|
443
|
+
spaceId: z.ZodString;
|
|
444
|
+
repositoryId: z.ZodString;
|
|
445
|
+
targetBranch: z.ZodString;
|
|
446
|
+
name: z.ZodString;
|
|
447
|
+
revision: z.ZodNumber;
|
|
448
|
+
state: z.ZodEnum<{
|
|
449
|
+
active: "active";
|
|
450
|
+
closed: "closed";
|
|
451
|
+
initializing: "initializing";
|
|
452
|
+
conflicted: "conflicted";
|
|
453
|
+
}>;
|
|
454
|
+
baseCommitSha: z.ZodNullable<z.ZodString>;
|
|
455
|
+
indexCommitSha: z.ZodNullable<z.ZodString>;
|
|
456
|
+
workingCommitSha: z.ZodNullable<z.ZodString>;
|
|
457
|
+
headCommitSha: z.ZodNullable<z.ZodString>;
|
|
458
|
+
originalUploadVersionId: z.ZodNullable<z.ZodString>;
|
|
459
|
+
hasStagedChanges: z.ZodBoolean;
|
|
460
|
+
hasUnstagedChanges: z.ZodBoolean;
|
|
461
|
+
hasPendingChanges: z.ZodBoolean;
|
|
462
|
+
needsSync: z.ZodBoolean;
|
|
463
|
+
pendingOperationId: z.ZodNullable<z.ZodString>;
|
|
464
|
+
autoDeploy: z.ZodBoolean;
|
|
465
|
+
createdAt: z.ZodString;
|
|
466
|
+
updatedAt: z.ZodString;
|
|
467
|
+
}, z.core.$strip>;
|
|
468
|
+
conflicts: z.ZodNullable<z.ZodObject<{
|
|
469
|
+
phase: z.ZodEnum<{
|
|
470
|
+
staged: "staged";
|
|
471
|
+
working: "working";
|
|
472
|
+
undo: "undo";
|
|
473
|
+
}>;
|
|
474
|
+
labels: z.ZodObject<{
|
|
475
|
+
ours: z.ZodString;
|
|
476
|
+
theirs: z.ZodString;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
files: z.ZodArray<z.ZodObject<{
|
|
479
|
+
path: z.ZodString;
|
|
480
|
+
result: z.ZodString;
|
|
481
|
+
base: z.ZodObject<{
|
|
482
|
+
sourceCommitSha: z.ZodString;
|
|
483
|
+
content: z.ZodNullable<z.ZodString>;
|
|
484
|
+
exists: z.ZodBoolean;
|
|
485
|
+
binary: z.ZodBoolean;
|
|
486
|
+
truncated: z.ZodBoolean;
|
|
487
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
488
|
+
}, z.core.$strip>;
|
|
489
|
+
ours: z.ZodObject<{
|
|
490
|
+
sourceCommitSha: z.ZodString;
|
|
491
|
+
content: z.ZodNullable<z.ZodString>;
|
|
492
|
+
exists: z.ZodBoolean;
|
|
493
|
+
binary: z.ZodBoolean;
|
|
494
|
+
truncated: z.ZodBoolean;
|
|
495
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
496
|
+
}, z.core.$strip>;
|
|
497
|
+
theirs: z.ZodObject<{
|
|
498
|
+
sourceCommitSha: z.ZodString;
|
|
499
|
+
content: z.ZodNullable<z.ZodString>;
|
|
500
|
+
exists: z.ZodBoolean;
|
|
501
|
+
binary: z.ZodBoolean;
|
|
502
|
+
truncated: z.ZodBoolean;
|
|
503
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
504
|
+
}, z.core.$strip>;
|
|
505
|
+
}, z.core.$strip>>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
}, z.core.$strip>;
|
|
508
|
+
export type SourceWorkspace = z.infer<typeof SourceWorkspaceSchema>;
|
|
509
|
+
export type SourceWorkspaceReceipt = z.infer<typeof sourceWorkspaceReceiptSchema>;
|
|
510
|
+
export type SourceWorkspaceDiff = z.infer<typeof sourceWorkspaceDiffSchema>;
|
|
511
|
+
export type SourceWorkspaceConflicts = z.infer<typeof sourceWorkspaceConflictsSchema>;
|