@supatype/types 0.9.2 → 0.10.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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +23 -15
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +19 -1
- package/dist/auth-settings-groups.d.ts +216 -0
- package/dist/auth-settings-groups.d.ts.map +1 -0
- package/dist/auth-settings-groups.js +424 -0
- package/dist/auth-settings-groups.js.map +1 -0
- package/dist/auth-settings.d.ts +168 -0
- package/dist/auth-settings.d.ts.map +1 -0
- package/dist/auth-settings.js +501 -0
- package/dist/auth-settings.js.map +1 -0
- package/dist/function-secret-name.d.ts +14 -0
- package/dist/function-secret-name.d.ts.map +1 -0
- package/dist/function-secret-name.js +20 -0
- package/dist/function-secret-name.js.map +1 -0
- package/dist/index.d.ts +145 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/public-env.d.ts +70 -0
- package/dist/public-env.d.ts.map +1 -0
- package/dist/public-env.js +146 -0
- package/dist/public-env.js.map +1 -0
- package/dist/seed-contract.d.ts +103 -0
- package/dist/seed-contract.d.ts.map +1 -0
- package/dist/seed-contract.js +99 -0
- package/dist/seed-contract.js.map +1 -0
- package/package.json +1 -1
- package/src/auth-settings-groups.ts +604 -0
- package/src/auth-settings.ts +649 -0
- package/src/function-secret-name.ts +21 -0
- package/src/index.ts +176 -2
- package/src/public-env.ts +167 -0
- package/src/seed-contract.ts +167 -0
- package/tests/auth-settings-groups.test.ts +342 -0
- package/tests/auth-settings.test.ts +327 -0
- package/tests/bucket-access.test.ts +33 -1
- package/tests/channel.test.ts +94 -0
- package/tests/function-secret-name.test.ts +17 -0
- package/tests/public-env.test.ts +179 -0
- package/tests/seed-contract.test.ts +110 -0
- package/tests/standalone-build.test.ts +35 -0
- package/tsconfig.json +2 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The request and answers of a remote seed: `supatype seed` against a linked Cloud project or a
|
|
3
|
+
* linked self-hosted server. Both control planes serve the same routes from this one shape, so a
|
|
4
|
+
* seed behaves the same on either.
|
|
5
|
+
*
|
|
6
|
+
* `POST /projects/:ref/seed` takes {@link RemoteSeedRequest} and answers {@link RemoteSeedApplied}.
|
|
7
|
+
* `GET /projects/:ref/seed/status` answers {@link RemoteSeedStatus}. Both read the target
|
|
8
|
+
* environment from the `X-Supatype-Environment` header, as every other project route does.
|
|
9
|
+
*/
|
|
10
|
+
/** The capability feature a control plane lists when it serves the seed routes. */
|
|
11
|
+
export declare const REMOTE_SEED_FEATURE = "seed";
|
|
12
|
+
/** Default caps on one request. A control plane may raise them per project. */
|
|
13
|
+
export declare const REMOTE_SEED_MAX_BODY_BYTES: number;
|
|
14
|
+
export declare const REMOTE_SEED_MAX_FILES = 100;
|
|
15
|
+
/** What the CLI sends to apply seeds. */
|
|
16
|
+
export interface RemoteSeedRequest {
|
|
17
|
+
/** The schema AST, as push sends it. */
|
|
18
|
+
readonly ast: unknown;
|
|
19
|
+
/**
|
|
20
|
+
* Each seed file's collected document, as the exact JSON text the CLI made, with its `file` key.
|
|
21
|
+
* Strings rather than objects: the engine's run-once ledger hashes this text, and parsing and
|
|
22
|
+
* re-serialising it on the server would change the hash.
|
|
23
|
+
*/
|
|
24
|
+
readonly irDocuments: readonly string[];
|
|
25
|
+
readonly atomic: boolean;
|
|
26
|
+
readonly runOnce: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The name a seed's `environment` condition reads. Absent means the target environment's
|
|
29
|
+
* name. A value that differs from the target is refused.
|
|
30
|
+
*/
|
|
31
|
+
readonly environment?: string;
|
|
32
|
+
/** Must be true when the target is production. The server checks it, not only the CLI. */
|
|
33
|
+
readonly confirmProduction: boolean;
|
|
34
|
+
/** Where the request came from, as push's audit fields give it. */
|
|
35
|
+
readonly pushedFrom?: string;
|
|
36
|
+
}
|
|
37
|
+
/** The answer when the engine ran, whether or not the seed applied. */
|
|
38
|
+
export interface RemoteSeedApplied {
|
|
39
|
+
/** The engine's seed result document, unchanged. */
|
|
40
|
+
readonly data: unknown;
|
|
41
|
+
readonly run: {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/** The answer to a status request. */
|
|
46
|
+
export interface RemoteSeedStatus {
|
|
47
|
+
/** The engine's seed status document, unchanged. */
|
|
48
|
+
readonly data: unknown;
|
|
49
|
+
}
|
|
50
|
+
/** The `error` codes a remote seed refusal carries, beside a human `message`. */
|
|
51
|
+
export declare const REMOTE_SEED_REFUSALS: readonly ["validation_error", "environment_mismatch", "production_confirmation_required", "seed_busy", "schema_not_pushed", "payload_too_large", "seed_too_large_for_plan", "server_busy"];
|
|
52
|
+
export type RemoteSeedRefusal = (typeof REMOTE_SEED_REFUSALS)[number];
|
|
53
|
+
/** Whether `value` is one of the refusal codes. */
|
|
54
|
+
export declare function isRemoteSeedRefusal(value: unknown): value is RemoteSeedRefusal;
|
|
55
|
+
/** A seed the plan cannot run: the plan, the seed's size, and the most that plan takes. */
|
|
56
|
+
export interface RemoteSeedPlanLimit {
|
|
57
|
+
readonly plan: string;
|
|
58
|
+
readonly seedBytes: number;
|
|
59
|
+
readonly maxBytes: number;
|
|
60
|
+
/** True for a staging or preview seed, which is sized and capped as Free whatever the project's plan. */
|
|
61
|
+
readonly nonProduction?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/** What a request over a cap names: the byte size, or the file count. */
|
|
64
|
+
export type RemoteSeedLimit = {
|
|
65
|
+
readonly maxBytes: number;
|
|
66
|
+
} | {
|
|
67
|
+
readonly maxFiles: number;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* The words of every refusal whose text does not depend on what the request said. Both control
|
|
71
|
+
* planes build their refusal from this table, so the same refusal reads the same on either host.
|
|
72
|
+
* `validation_error` is not here: its text is whatever the body check found wrong.
|
|
73
|
+
*/
|
|
74
|
+
export declare const REMOTE_SEED_MESSAGES: {
|
|
75
|
+
readonly environment_mismatch: (said: {
|
|
76
|
+
readonly requested: string;
|
|
77
|
+
readonly target: string;
|
|
78
|
+
}) => string;
|
|
79
|
+
readonly production_confirmation_required: () => string;
|
|
80
|
+
readonly seed_busy: () => string;
|
|
81
|
+
readonly schema_not_pushed: (said: {
|
|
82
|
+
readonly environment: string;
|
|
83
|
+
readonly changes: number;
|
|
84
|
+
}) => string;
|
|
85
|
+
readonly payload_too_large: (said: RemoteSeedLimit) => string;
|
|
86
|
+
readonly seed_too_large_for_plan: (said: RemoteSeedPlanLimit) => string;
|
|
87
|
+
readonly server_busy: () => string;
|
|
88
|
+
};
|
|
89
|
+
/** A refusal as the CLI prints it: its code in brackets, then its message. */
|
|
90
|
+
export declare function formatRemoteSeedRefusal(code: RemoteSeedRefusal, message: string): string;
|
|
91
|
+
/** A refusal body: 400, 409, 413 or 503, with no engine run. */
|
|
92
|
+
export interface RemoteSeedRefused {
|
|
93
|
+
readonly error: RemoteSeedRefusal;
|
|
94
|
+
readonly message: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Checks a parsed request body. Answers the request, or a message naming what is wrong, so both
|
|
98
|
+
* control planes refuse a bad body with the same words.
|
|
99
|
+
*/
|
|
100
|
+
export declare function parseRemoteSeedRequest(body: unknown): RemoteSeedRequest | {
|
|
101
|
+
readonly invalid: string;
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=seed-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-contract.d.ts","sourceRoot":"","sources":["../src/seed-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,mFAAmF;AACnF,eAAO,MAAM,mBAAmB,SAAS,CAAA;AAEzC,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,QAAmB,CAAA;AAC1D,eAAO,MAAM,qBAAqB,MAAM,CAAA;AAExC,yCAAyC;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MAAM,eAAe,GAAG;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAA;AAE3F;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;0CACF;QAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,KAAG,MAAM;qDAGvD,MAAM;8BAE7B,MAAM;uCACK;QAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAG,MAAM;uCAGnE,eAAe,KAAG,MAAM;6CAIlB,mBAAmB,KAAG,MAAM;gCAM3C,MAAM;CAEf,CAAA;AAEV,8EAA8E;AAC9E,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAExF;AAED,gEAAgE;AAChE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAA;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AAMD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,iBAAiB,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CA+BtG"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The request and answers of a remote seed: `supatype seed` against a linked Cloud project or a
|
|
3
|
+
* linked self-hosted server. Both control planes serve the same routes from this one shape, so a
|
|
4
|
+
* seed behaves the same on either.
|
|
5
|
+
*
|
|
6
|
+
* `POST /projects/:ref/seed` takes {@link RemoteSeedRequest} and answers {@link RemoteSeedApplied}.
|
|
7
|
+
* `GET /projects/:ref/seed/status` answers {@link RemoteSeedStatus}. Both read the target
|
|
8
|
+
* environment from the `X-Supatype-Environment` header, as every other project route does.
|
|
9
|
+
*/
|
|
10
|
+
/** The capability feature a control plane lists when it serves the seed routes. */
|
|
11
|
+
export const REMOTE_SEED_FEATURE = "seed";
|
|
12
|
+
/** Default caps on one request. A control plane may raise them per project. */
|
|
13
|
+
export const REMOTE_SEED_MAX_BODY_BYTES = 10 * 1024 * 1024;
|
|
14
|
+
export const REMOTE_SEED_MAX_FILES = 100;
|
|
15
|
+
/** The `error` codes a remote seed refusal carries, beside a human `message`. */
|
|
16
|
+
export const REMOTE_SEED_REFUSALS = [
|
|
17
|
+
"validation_error",
|
|
18
|
+
"environment_mismatch",
|
|
19
|
+
"production_confirmation_required",
|
|
20
|
+
"seed_busy",
|
|
21
|
+
"schema_not_pushed",
|
|
22
|
+
"payload_too_large",
|
|
23
|
+
"seed_too_large_for_plan",
|
|
24
|
+
"server_busy",
|
|
25
|
+
];
|
|
26
|
+
/** Whether `value` is one of the refusal codes. */
|
|
27
|
+
export function isRemoteSeedRefusal(value) {
|
|
28
|
+
return REMOTE_SEED_REFUSALS.some((code) => code === value);
|
|
29
|
+
}
|
|
30
|
+
/** A size as whole megabytes, rounded up so a limit is never shown as less than it is over. */
|
|
31
|
+
const megabytes = (bytes) => `${Math.max(1, Math.ceil(bytes / (1024 * 1024)))} MB`;
|
|
32
|
+
/**
|
|
33
|
+
* The words of every refusal whose text does not depend on what the request said. Both control
|
|
34
|
+
* planes build their refusal from this table, so the same refusal reads the same on either host.
|
|
35
|
+
* `validation_error` is not here: its text is whatever the body check found wrong.
|
|
36
|
+
*/
|
|
37
|
+
export const REMOTE_SEED_MESSAGES = {
|
|
38
|
+
environment_mismatch: (said) => `The seed's environment condition is "${said.requested}" but the target is "${said.target}". ` +
|
|
39
|
+
`Seed with --env ${said.requested}, or drop --environment.`,
|
|
40
|
+
production_confirmation_required: () => "This seed targets production. Confirm it (supatype seed --confirm-production) and send it again.",
|
|
41
|
+
seed_busy: () => "Another seed is already running on this environment. Wait for it to finish.",
|
|
42
|
+
schema_not_pushed: (said) => `The ${said.environment} database does not have the schema in this seed yet (${said.changes} change(s) to push). ` +
|
|
43
|
+
`Run \`supatype push --env ${said.environment}\` first.`,
|
|
44
|
+
payload_too_large: (said) => "maxBytes" in said
|
|
45
|
+
? `A seed request may be at most ${said.maxBytes} bytes.`
|
|
46
|
+
: `At most ${said.maxFiles} seed files can be sent at once.`,
|
|
47
|
+
seed_too_large_for_plan: (said) => said.nonProduction === true
|
|
48
|
+
? `This seed is ${megabytes(said.seedBytes)}. Staging and preview environments run at Free size on every plan and take seeds up to ${megabytes(said.maxBytes)}, ` +
|
|
49
|
+
"so no plan raises that. Split it into smaller seed files and seed them one after another, or seed production."
|
|
50
|
+
: `This seed is ${megabytes(said.seedBytes)}, more than the ${said.plan} plan can run at once (up to ${megabytes(said.maxBytes)}). ` +
|
|
51
|
+
"Split it into smaller seed files and seed them one after another, or move to a larger plan.",
|
|
52
|
+
server_busy: () => "The server is taking as many seed uploads as it can right now. Wait a moment and send the seed again.",
|
|
53
|
+
};
|
|
54
|
+
/** A refusal as the CLI prints it: its code in brackets, then its message. */
|
|
55
|
+
export function formatRemoteSeedRefusal(code, message) {
|
|
56
|
+
return `[${code}] ${message}`;
|
|
57
|
+
}
|
|
58
|
+
function isRecord(value) {
|
|
59
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Checks a parsed request body. Answers the request, or a message naming what is wrong, so both
|
|
63
|
+
* control planes refuse a bad body with the same words.
|
|
64
|
+
*/
|
|
65
|
+
export function parseRemoteSeedRequest(body) {
|
|
66
|
+
if (!isRecord(body))
|
|
67
|
+
return { invalid: "The body must be a JSON object." };
|
|
68
|
+
const { ast, irDocuments, atomic, runOnce, environment, confirmProduction, pushedFrom } = body;
|
|
69
|
+
if (ast === undefined || ast === null)
|
|
70
|
+
return { invalid: "`ast` is required." };
|
|
71
|
+
if (!Array.isArray(irDocuments) || irDocuments.length === 0) {
|
|
72
|
+
return { invalid: "`irDocuments` must be a non-empty array of strings." };
|
|
73
|
+
}
|
|
74
|
+
if (!irDocuments.every((doc) => typeof doc === "string")) {
|
|
75
|
+
return { invalid: "Every entry of `irDocuments` must be a string." };
|
|
76
|
+
}
|
|
77
|
+
if (irDocuments.length > REMOTE_SEED_MAX_FILES) {
|
|
78
|
+
return { invalid: `At most ${REMOTE_SEED_MAX_FILES} seed files can be sent at once.` };
|
|
79
|
+
}
|
|
80
|
+
if (typeof atomic !== "boolean" || typeof runOnce !== "boolean" || typeof confirmProduction !== "boolean") {
|
|
81
|
+
return { invalid: "`atomic`, `runOnce` and `confirmProduction` must be booleans." };
|
|
82
|
+
}
|
|
83
|
+
if (environment !== undefined && (typeof environment !== "string" || environment.trim() === "")) {
|
|
84
|
+
return { invalid: "`environment` must be a non-empty string when given." };
|
|
85
|
+
}
|
|
86
|
+
if (pushedFrom !== undefined && typeof pushedFrom !== "string") {
|
|
87
|
+
return { invalid: "`pushedFrom` must be a string when given." };
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
ast,
|
|
91
|
+
irDocuments,
|
|
92
|
+
atomic,
|
|
93
|
+
runOnce,
|
|
94
|
+
confirmProduction,
|
|
95
|
+
...(environment !== undefined && { environment }),
|
|
96
|
+
...(pushedFrom !== undefined && { pushedFrom }),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=seed-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-contract.js","sourceRoot":"","sources":["../src/seed-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,mFAAmF;AACnF,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAA;AAEzC,+EAA+E;AAC/E,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAA;AAC1D,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAA;AAsCxC,iFAAiF;AACjF,MAAM,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