@domino-sdk/relay 1.74.0 → 1.76.0
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/CHANGELOG.md +54 -0
- package/dist/authoring.d.ts +6 -6
- package/dist/authoring.js +4 -4
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +8 -8
- package/dist/{capability-error-Bn6cCqof.d.ts → capability-error-D56xxE2i.d.ts} +1 -1
- package/dist/{chunk-CW7FJ5PX.js → chunk-3KHVIUKK.js} +1 -1
- package/dist/{chunk-2LURSPDM.js → chunk-4WODSE6Y.js} +2 -2
- package/dist/{chunk-F66GGNKD.js → chunk-4YKOSNYI.js} +1 -1
- package/dist/{chunk-ELHMJODS.js → chunk-7B7MDHJ6.js} +1 -1
- package/dist/{chunk-6TDHRGBM.js → chunk-7QHROIML.js} +3 -0
- package/dist/{chunk-DNOLNMCW.js → chunk-E4ZQCG44.js} +9 -8
- package/dist/{chunk-SVZ3QWHT.js → chunk-FBS65R66.js} +2 -2
- package/dist/{chunk-KP55TMCC.js → chunk-HEQ7HLXG.js} +1 -1
- package/dist/{chunk-TGQNNMCY.js → chunk-IMX45NSW.js} +6 -6
- package/dist/{chunk-RALBAKKX.js → chunk-K3PEQXDV.js} +1 -1
- package/dist/{chunk-JZT2NLSG.js → chunk-LFFGW7GB.js} +449 -392
- package/dist/{chunk-NI6XRGEL.js → chunk-SPLXHFVX.js} +2 -2
- package/dist/{chunk-KGZ7SRKJ.js → chunk-TAZ5AEYF.js} +1 -1
- package/dist/{chunk-HCOLMJFX.js → chunk-X5REDFGV.js} +4 -3
- package/dist/{chunk-T4PTFCSB.js → chunk-XEXB3WZE.js} +1 -1
- package/dist/{chunk-724CKAC7.js → chunk-YB5BSKVU.js} +3 -3
- package/dist/{chunk-7I7P5UVC.js → chunk-ZXFRHGZC.js} +422 -291
- package/dist/{client-B2aVGf38.d.ts → client-336yROej.d.ts} +2 -2
- package/dist/{identity-integration-C03rUYc0.d.ts → identity-integration-B1f5oOdc.d.ts} +1169 -3
- package/dist/{transport-D77Rbf4D.d.ts → index-BM0DdDYy.d.ts} +614 -1274
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/dist/internal.d.ts +46 -22
- package/dist/internal.js +24 -17
- package/dist/{limits-p-Mg0oSi.d.ts → limits-DICxln-i.d.ts} +6 -0
- package/dist/portal-proxy.d.ts +8 -1
- package/dist/portal-proxy.js +125 -50
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +8 -8
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/H6GH644T.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +4 -4
- package/dist/schema.js +7 -7
- package/dist/server/index.d.ts +4 -4
- package/dist/server/index.js +136 -29
- package/dist/{sign-in-providers-BG22ZZkl.d.ts → sign-in-providers-BMtk_NWY.d.ts} +1 -1
- package/dist/solana.d.ts +3 -3
- package/dist/solana.js +8 -8
- package/dist/{station-check-in-a1deSjbm.d.ts → station-check-in-vcDKQOet.d.ts} +2 -2
- package/dist/{submission-input-DBDLkTF8.d.ts → submission-input-D_NiBR0W.d.ts} +6 -1
- package/dist/telegram.d.ts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +15 -5
- package/package.json +2 -1
- package/dist/runtime/chunks/NYEWMPJH.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
imageAssetArtifactSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K3PEQXDV.js";
|
|
4
4
|
import {
|
|
5
5
|
authScopeSchema,
|
|
6
6
|
exchangeResultSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3KHVIUKK.js";
|
|
8
8
|
import {
|
|
9
9
|
appIdentityKindSchema,
|
|
10
10
|
cosmosAddressSchema,
|
|
@@ -16,8 +16,9 @@ import {
|
|
|
16
16
|
offsetDateTimeSchema,
|
|
17
17
|
openIdentityKindSchema,
|
|
18
18
|
pageCursorSchema,
|
|
19
|
+
pageLimit,
|
|
19
20
|
solanaAddressSchema
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7QHROIML.js";
|
|
21
22
|
|
|
22
23
|
// src/credential-secrets.ts
|
|
23
24
|
import * as z from "zod";
|
|
@@ -412,7 +413,11 @@ var memberImportPageSchema = /* @__PURE__ */ (() => z2.object({
|
|
|
412
413
|
}))();
|
|
413
414
|
var memberImportListQuerySchema = /* @__PURE__ */ (() => z2.object({
|
|
414
415
|
cursor: z2.string().max(200).optional(),
|
|
415
|
-
limit: z2.coerce.number().int().min(1).max(100).optional()
|
|
416
|
+
limit: z2.coerce.number().int().min(1).max(100).optional(),
|
|
417
|
+
/** Only imports in this state, as `state` names it. */
|
|
418
|
+
state: z2.string().min(1).max(40).optional(),
|
|
419
|
+
/** Only imports whose `source` contains this text, ignoring case. */
|
|
420
|
+
q: z2.string().max(200).optional()
|
|
416
421
|
}).strict())();
|
|
417
422
|
|
|
418
423
|
// src/server/schedules.ts
|
|
@@ -563,9 +568,23 @@ var appScheduleRunSchema = /* @__PURE__ */ (() => z3.object({
|
|
|
563
568
|
/** The app's JSON answer when it sent a valid result. Absent on runs from before results. */
|
|
564
569
|
result: appScheduleResultSchema.nullable().optional()
|
|
565
570
|
}))();
|
|
571
|
+
var runStatuses = appScheduleRunSchema.shape.status.options;
|
|
572
|
+
var appScheduleRunsQuerySchema = /* @__PURE__ */ (() => z3.strictObject({
|
|
573
|
+
status: z3.union([
|
|
574
|
+
z3.array(z3.enum(runStatuses)).min(1).max(runStatuses.length),
|
|
575
|
+
z3.string().max(100).transform((value) => value.split(",")).pipe(z3.array(z3.enum(runStatuses)).min(1).max(runStatuses.length))
|
|
576
|
+
]).optional(),
|
|
577
|
+
limit: pageLimit,
|
|
578
|
+
cursor: pageCursorSchema.optional()
|
|
579
|
+
}))();
|
|
566
580
|
var appScheduleRunsSchema = /* @__PURE__ */ (() => z3.object({
|
|
567
|
-
/**
|
|
568
|
-
|
|
581
|
+
/**
|
|
582
|
+
* Newest first: one page of the schedule's kept runs, including a queued or running one. Relay
|
|
583
|
+
* keeps a schedule's latest 200 runs.
|
|
584
|
+
*/
|
|
585
|
+
runs: z3.array(appScheduleRunSchema),
|
|
586
|
+
/** Pass back as `cursor` for older runs; null on the last page. Relay versions before it leave it out. */
|
|
587
|
+
nextCursor: pageCursorSchema.nullish()
|
|
569
588
|
}))();
|
|
570
589
|
var appScheduleListSchema = /* @__PURE__ */ (() => z3.object({
|
|
571
590
|
state: appScheduleStateSchema,
|
|
@@ -715,60 +734,131 @@ var starterIdSchema = /* @__PURE__ */ (() => z4.enum(
|
|
|
715
734
|
starterTemplates.map((template) => template.id)
|
|
716
735
|
))();
|
|
717
736
|
|
|
718
|
-
// src/server/
|
|
737
|
+
// src/server/permissions.ts
|
|
719
738
|
import * as z5 from "zod";
|
|
720
|
-
var
|
|
739
|
+
var environmentSchema = /* @__PURE__ */ (() => z5.enum(["test", "live"]))();
|
|
740
|
+
var roleSchema = /* @__PURE__ */ (() => z5.enum(["editor", "reviewer", "staff"]))();
|
|
741
|
+
var permissionSchema = /* @__PURE__ */ (() => z5.enum([
|
|
742
|
+
"read",
|
|
743
|
+
"publish",
|
|
744
|
+
"review",
|
|
745
|
+
"confirm",
|
|
746
|
+
"handover",
|
|
747
|
+
"inventory",
|
|
748
|
+
"access",
|
|
749
|
+
"points",
|
|
750
|
+
/**
|
|
751
|
+
* Custom tracker ingestion only (`trackers.ingest`), such as for an indexer's key. Editors and
|
|
752
|
+
* hosted-app keys hold it.
|
|
753
|
+
*/
|
|
754
|
+
"ingest",
|
|
755
|
+
/**
|
|
756
|
+
* Enrolling members from a server (`quests.enroll`), which vouches for their consent. Editors
|
|
757
|
+
* hold it; hosted-app keys do not.
|
|
758
|
+
*/
|
|
759
|
+
"enroll"
|
|
760
|
+
]))();
|
|
761
|
+
var permissionListSchema = /* @__PURE__ */ (() => z5.array(z5.string()).transform(
|
|
762
|
+
(values) => values.filter(
|
|
763
|
+
(value) => permissionSchema.safeParse(value).success
|
|
764
|
+
)
|
|
765
|
+
))();
|
|
766
|
+
var rolePermissions = {
|
|
767
|
+
editor: ["read", "publish", "inventory", "points", "ingest", "enroll"],
|
|
768
|
+
reviewer: ["read", "review"],
|
|
769
|
+
staff: ["read", "confirm", "handover"]
|
|
770
|
+
};
|
|
771
|
+
var projectRoleSchema = /* @__PURE__ */ (() => z5.enum([...roleSchema.options, "viewer"]))();
|
|
772
|
+
var projectPermissionSchema = /* @__PURE__ */ (() => z5.enum([
|
|
773
|
+
...permissionSchema.options,
|
|
774
|
+
"dashboards"
|
|
775
|
+
]))();
|
|
776
|
+
var projectRolePermissions = {
|
|
777
|
+
editor: [...rolePermissions.editor, "dashboards"],
|
|
778
|
+
reviewer: [...rolePermissions.reviewer, "dashboards"],
|
|
779
|
+
staff: [...rolePermissions.staff, "dashboards"],
|
|
780
|
+
viewer: ["dashboards"]
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
// src/server/hosting.ts
|
|
784
|
+
import * as z6 from "zod";
|
|
785
|
+
var outputPathSchema = /* @__PURE__ */ (() => z6.string().min(1).max(512).refine(
|
|
721
786
|
(path) => path.split("/").every(
|
|
722
787
|
(part) => /^[\w-][\w.-]*$/.test(part) && part !== "node_modules"
|
|
723
788
|
),
|
|
724
789
|
"Expected a relative build output path without hidden segments"
|
|
725
790
|
))();
|
|
726
|
-
var appRoutingSchema = /* @__PURE__ */ (() =>
|
|
791
|
+
var appRoutingSchema = /* @__PURE__ */ (() => z6.enum(["legacy", "transparent"]).default("legacy"))();
|
|
727
792
|
var APP_SECRET_LIMIT = 50;
|
|
728
793
|
var APP_KV_LIMIT = 5;
|
|
729
794
|
var APP_SQL_LIMIT = 5;
|
|
730
795
|
var APP_MIGRATION_LIMIT = 100;
|
|
731
796
|
var APP_MIGRATION_FILE_BYTES = 9e4;
|
|
732
797
|
var APP_MIGRATION_TOTAL_BYTES = 1e6;
|
|
733
|
-
var appSecretNameSchema = /* @__PURE__ */ (() =>
|
|
798
|
+
var appSecretNameSchema = /* @__PURE__ */ (() => z6.string().regex(
|
|
734
799
|
/^[A-Z_][A-Z0-9_]{0,63}$/,
|
|
735
800
|
"Use 1-64 uppercase letters, digits, and underscores, not starting with a digit"
|
|
736
801
|
).refine(
|
|
737
802
|
(name) => !name.startsWith("DOMINO_") && name !== "ASSETS",
|
|
738
803
|
"DOMINO_ names and ASSETS are reserved for Domino's own bindings"
|
|
739
804
|
))();
|
|
740
|
-
var appSecretValueSchema = /* @__PURE__ */ (() =>
|
|
805
|
+
var appSecretValueSchema = /* @__PURE__ */ (() => z6.string().min(1).refine(
|
|
741
806
|
(value) => new TextEncoder().encode(value).length <= 5120,
|
|
742
807
|
"Secret values can be at most 5 KiB"
|
|
743
808
|
))();
|
|
744
|
-
var appSecretInputSchema = /* @__PURE__ */ (() =>
|
|
745
|
-
var
|
|
809
|
+
var appSecretInputSchema = /* @__PURE__ */ (() => z6.object({ value: appSecretValueSchema }).strict())();
|
|
810
|
+
var AppSecretCredentialKind = {
|
|
811
|
+
/** A service key (`dsk_…`). */
|
|
812
|
+
Service: "service"
|
|
813
|
+
};
|
|
814
|
+
var AppSecretCredentialStatus = {
|
|
815
|
+
/** It authenticates in this project and environment. */
|
|
816
|
+
Active: "active",
|
|
817
|
+
/** Its secret has expired; `expiresAt` says when. */
|
|
818
|
+
Expired: "expired",
|
|
819
|
+
/** Domino does not know it in this organization: revoked, mistyped, or another deployment's. */
|
|
820
|
+
Unknown: "unknown",
|
|
821
|
+
/** It belongs to another project or environment of this organization, named in the entry. */
|
|
822
|
+
OtherScope: "other-scope"
|
|
823
|
+
};
|
|
824
|
+
var appSecretCredentialSchema = /* @__PURE__ */ (() => z6.object({
|
|
825
|
+
kind: z6.string(),
|
|
826
|
+
status: z6.string(),
|
|
827
|
+
id: z6.string().optional(),
|
|
828
|
+
name: z6.string().optional(),
|
|
829
|
+
permissions: permissionListSchema.optional(),
|
|
830
|
+
expiresAt: z6.number().nullable().optional(),
|
|
831
|
+
project: z6.string().optional(),
|
|
832
|
+
environment: z6.string().optional()
|
|
833
|
+
}))();
|
|
834
|
+
var appSecretSchema = /* @__PURE__ */ (() => z6.object({
|
|
746
835
|
name: appSecretNameSchema,
|
|
747
|
-
updatedAt:
|
|
748
|
-
updatedBy:
|
|
836
|
+
updatedAt: z6.number(),
|
|
837
|
+
updatedBy: z6.string(),
|
|
838
|
+
credential: appSecretCredentialSchema.optional()
|
|
749
839
|
}))();
|
|
750
|
-
var appSecretDeclarationSchema = /* @__PURE__ */ (() =>
|
|
751
|
-
description:
|
|
752
|
-
required:
|
|
840
|
+
var appSecretDeclarationSchema = /* @__PURE__ */ (() => z6.object({
|
|
841
|
+
description: z6.string().trim().min(1).max(500),
|
|
842
|
+
required: z6.boolean().default(true)
|
|
753
843
|
}).strict())();
|
|
754
|
-
var appSecretDeclarationsSchema = /* @__PURE__ */ (() =>
|
|
844
|
+
var appSecretDeclarationsSchema = /* @__PURE__ */ (() => z6.record(appSecretNameSchema, appSecretDeclarationSchema).refine(
|
|
755
845
|
(secrets) => Object.keys(secrets).length <= limits.apps.secrets,
|
|
756
846
|
`Declare at most ${limits.apps.secrets} app secrets`
|
|
757
847
|
))();
|
|
758
|
-
var appSecretListSchema = /* @__PURE__ */ (() =>
|
|
759
|
-
secrets:
|
|
760
|
-
declared:
|
|
848
|
+
var appSecretListSchema = /* @__PURE__ */ (() => z6.object({
|
|
849
|
+
secrets: z6.array(appSecretSchema),
|
|
850
|
+
declared: z6.array(appSecretDeclarationSchema.extend({ name: appSecretNameSchema })).default([])
|
|
761
851
|
}))();
|
|
762
|
-
var hostedAppSecretsSchema = /* @__PURE__ */ (() =>
|
|
763
|
-
var storageDescription = /* @__PURE__ */ (() =>
|
|
764
|
-
description:
|
|
852
|
+
var hostedAppSecretsSchema = /* @__PURE__ */ (() => z6.object({ secrets: z6.record(appSecretNameSchema, appSecretValueSchema) }).strict())();
|
|
853
|
+
var storageDescription = /* @__PURE__ */ (() => z6.object({
|
|
854
|
+
description: z6.string().trim().min(1).max(500)
|
|
765
855
|
}).strict())();
|
|
766
|
-
var appStorageSchema = /* @__PURE__ */ (() =>
|
|
767
|
-
kv:
|
|
856
|
+
var appStorageSchema = /* @__PURE__ */ (() => z6.object({
|
|
857
|
+
kv: z6.record(appSecretNameSchema, storageDescription).refine(
|
|
768
858
|
(stores) => Object.keys(stores).length <= limits.apps.kvStores,
|
|
769
859
|
`Declare at most ${limits.apps.kvStores} KV stores`
|
|
770
860
|
).default({}),
|
|
771
|
-
sql:
|
|
861
|
+
sql: z6.record(
|
|
772
862
|
appSecretNameSchema,
|
|
773
863
|
storageDescription.extend({
|
|
774
864
|
migrations: outputPathSchema.optional()
|
|
@@ -778,122 +868,150 @@ var appStorageSchema = /* @__PURE__ */ (() => z5.object({
|
|
|
778
868
|
`Declare at most ${limits.apps.sqlStores} SQL stores`
|
|
779
869
|
).default({})
|
|
780
870
|
}).strict())();
|
|
781
|
-
var appStorageKindSchema = /* @__PURE__ */ (() =>
|
|
782
|
-
var appStorageListSchema = /* @__PURE__ */ (() =>
|
|
783
|
-
stores:
|
|
784
|
-
|
|
785
|
-
kind:
|
|
871
|
+
var appStorageKindSchema = /* @__PURE__ */ (() => z6.enum(["kv", "sql"]))();
|
|
872
|
+
var appStorageListSchema = /* @__PURE__ */ (() => z6.object({
|
|
873
|
+
stores: z6.array(
|
|
874
|
+
z6.object({
|
|
875
|
+
kind: z6.string(),
|
|
786
876
|
name: appSecretNameSchema,
|
|
787
|
-
createdAt:
|
|
788
|
-
declared:
|
|
789
|
-
description:
|
|
877
|
+
createdAt: z6.number().nullable(),
|
|
878
|
+
declared: z6.boolean(),
|
|
879
|
+
description: z6.string().optional()
|
|
790
880
|
})
|
|
791
881
|
)
|
|
792
882
|
}))();
|
|
793
883
|
var APP_STORAGE_ROW_LIMIT = 50;
|
|
794
884
|
var APP_STORAGE_PREVIEW_CHARACTERS = 2e3;
|
|
795
|
-
var appStorageCellSchema = /* @__PURE__ */ (() =>
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
885
|
+
var appStorageCellSchema = /* @__PURE__ */ (() => z6.union([
|
|
886
|
+
z6.string(),
|
|
887
|
+
z6.number(),
|
|
888
|
+
z6.null(),
|
|
889
|
+
z6.object({ text: z6.string(), truncated: z6.literal(true) }),
|
|
890
|
+
z6.object({ blob: z6.number().int().min(0) })
|
|
801
891
|
]))();
|
|
802
|
-
var appStorageTablesSchema = /* @__PURE__ */ (() =>
|
|
803
|
-
tables:
|
|
892
|
+
var appStorageTablesSchema = /* @__PURE__ */ (() => z6.object({
|
|
893
|
+
tables: z6.array(
|
|
804
894
|
/** `kind` is SQLite's: `table` or `view`. */
|
|
805
|
-
|
|
895
|
+
z6.object({ name: z6.string(), kind: z6.string() })
|
|
806
896
|
)
|
|
807
897
|
}))();
|
|
808
|
-
var appStorageRowsSchema = /* @__PURE__ */ (() =>
|
|
809
|
-
table:
|
|
810
|
-
columns:
|
|
811
|
-
rows:
|
|
898
|
+
var appStorageRowsSchema = /* @__PURE__ */ (() => z6.object({
|
|
899
|
+
table: z6.string(),
|
|
900
|
+
columns: z6.array(z6.string()),
|
|
901
|
+
rows: z6.array(z6.array(appStorageCellSchema)),
|
|
812
902
|
/** How many rows come before this page in storage order. */
|
|
813
|
-
offset:
|
|
814
|
-
total:
|
|
903
|
+
offset: z6.number().int().min(0),
|
|
904
|
+
total: z6.number().int().min(0),
|
|
815
905
|
/** Pass back as `cursor` for the next page; null on the last one. */
|
|
816
|
-
nextCursor: pageCursorSchema.nullable().default(null)
|
|
906
|
+
nextCursor: pageCursorSchema.nullable().default(null),
|
|
907
|
+
/**
|
|
908
|
+
* The columns a row's key holds: the primary key's, or `rowid` when the table has none. Null
|
|
909
|
+
* for a view or a table without either. Absent from a Relay older than this field.
|
|
910
|
+
*/
|
|
911
|
+
keyColumns: z6.array(z6.string()).nullish(),
|
|
912
|
+
/**
|
|
913
|
+
* Each row's key, in `rows` order, to pass to `storage.cell` as `key`, which finds the row
|
|
914
|
+
* wherever it moves. Null for a row keyed by a BLOB, NULL or a very long value.
|
|
915
|
+
*/
|
|
916
|
+
rowKeys: z6.array(z6.string().nullable()).nullish()
|
|
817
917
|
}))();
|
|
818
|
-
var appStorageKeysSchema = /* @__PURE__ */ (() =>
|
|
819
|
-
keys:
|
|
820
|
-
|
|
918
|
+
var appStorageKeysSchema = /* @__PURE__ */ (() => z6.object({
|
|
919
|
+
keys: z6.array(
|
|
920
|
+
z6.object({ name: z6.string(), expiration: z6.number().nullable() })
|
|
821
921
|
),
|
|
822
922
|
/** Pass back as `cursor` for the next page; null on the last one. */
|
|
823
923
|
nextCursor: pageCursorSchema.nullable().default(null),
|
|
824
924
|
/** @deprecated Use `nextCursor`. Removed in 2.0.0. */
|
|
825
|
-
cursor:
|
|
925
|
+
cursor: z6.string().nullable()
|
|
826
926
|
}))();
|
|
827
|
-
var appStorageValueSchema = /* @__PURE__ */ (() =>
|
|
828
|
-
key:
|
|
829
|
-
size:
|
|
927
|
+
var appStorageValueSchema = /* @__PURE__ */ (() => z6.object({
|
|
928
|
+
key: z6.string(),
|
|
929
|
+
size: z6.number().int().min(0),
|
|
830
930
|
/** Null when the value is not UTF-8 text. */
|
|
831
|
-
text:
|
|
832
|
-
truncated:
|
|
931
|
+
text: z6.string().nullable(),
|
|
932
|
+
truncated: z6.boolean()
|
|
833
933
|
}))();
|
|
834
934
|
var APP_STORAGE_CELL_CHARACTERS = 1e5;
|
|
835
|
-
var appStorageCellPageSchema = /* @__PURE__ */ (() =>
|
|
836
|
-
table:
|
|
837
|
-
column:
|
|
935
|
+
var appStorageCellPageSchema = /* @__PURE__ */ (() => z6.object({
|
|
936
|
+
table: z6.string(),
|
|
937
|
+
column: z6.string(),
|
|
838
938
|
/** The row's position in storage order: a rows page's `offset` plus its index on that page. */
|
|
839
|
-
row:
|
|
939
|
+
row: z6.number().int().min(0),
|
|
840
940
|
/** SQLite's storage class. */
|
|
841
|
-
type:
|
|
941
|
+
type: z6.enum(["text", "integer", "real", "blob", "null"]),
|
|
842
942
|
/** Characters of text, or of a number's text form; bytes of a BLOB; null for NULL. */
|
|
843
|
-
length:
|
|
943
|
+
length: z6.number().int().min(0).nullable(),
|
|
844
944
|
/** How many characters come before this page. */
|
|
845
|
-
offset:
|
|
945
|
+
offset: z6.number().int().min(0),
|
|
846
946
|
/** Up to 100,000 characters from `offset`. Null for a BLOB, whose bytes are never read, and NULL. */
|
|
847
|
-
text:
|
|
947
|
+
text: z6.string().nullable(),
|
|
948
|
+
/** Pass back as `cursor` for the next page; null on the last one. */
|
|
949
|
+
nextCursor: pageCursorSchema.nullable().default(null),
|
|
950
|
+
/**
|
|
951
|
+
* Changes when the value does: pages whose revisions differ are from different values, so
|
|
952
|
+
* never join them. Null for a BLOB and NULL; absent from a Relay older than this field.
|
|
953
|
+
*/
|
|
954
|
+
revision: z6.string().nullish()
|
|
955
|
+
}))();
|
|
956
|
+
var appStorageValueBytesSchema = /* @__PURE__ */ (() => z6.object({
|
|
957
|
+
key: z6.string(),
|
|
958
|
+
/** The whole value's size in bytes. */
|
|
959
|
+
size: z6.number().int().min(0),
|
|
960
|
+
/** How many bytes come before this page. */
|
|
961
|
+
offset: z6.number().int().min(0),
|
|
962
|
+
/** Up to `limits.apps.storageValueBytes` bytes from `offset`, base64-encoded. */
|
|
963
|
+
base64: z6.string(),
|
|
964
|
+
/** Changes when the value does: pages whose revisions differ are from different values. */
|
|
965
|
+
revision: z6.string(),
|
|
848
966
|
/** Pass back as `cursor` for the next page; null on the last one. */
|
|
849
967
|
nextCursor: pageCursorSchema.nullable().default(null)
|
|
850
968
|
}))();
|
|
851
|
-
var storageTableNameSchema = /* @__PURE__ */ (() =>
|
|
852
|
-
var appStorageSqlClearSchema = /* @__PURE__ */ (() =>
|
|
853
|
-
|
|
854
|
-
dryRun:
|
|
855
|
-
tables:
|
|
969
|
+
var storageTableNameSchema = /* @__PURE__ */ (() => z6.string().min(1).max(512))();
|
|
970
|
+
var appStorageSqlClearSchema = /* @__PURE__ */ (() => z6.union([
|
|
971
|
+
z6.object({
|
|
972
|
+
dryRun: z6.boolean().optional(),
|
|
973
|
+
tables: z6.array(storageTableNameSchema).min(1).max(50)
|
|
856
974
|
}).strict(),
|
|
857
|
-
|
|
858
|
-
dryRun:
|
|
859
|
-
allTables:
|
|
860
|
-
keepTables:
|
|
975
|
+
z6.object({
|
|
976
|
+
dryRun: z6.boolean().optional(),
|
|
977
|
+
allTables: z6.literal(true),
|
|
978
|
+
keepTables: z6.array(storageTableNameSchema).max(50).optional()
|
|
861
979
|
}).strict()
|
|
862
980
|
]))();
|
|
863
|
-
var appStorageKvClearSchema = /* @__PURE__ */ (() =>
|
|
864
|
-
|
|
865
|
-
dryRun:
|
|
866
|
-
prefix:
|
|
981
|
+
var appStorageKvClearSchema = /* @__PURE__ */ (() => z6.union([
|
|
982
|
+
z6.object({
|
|
983
|
+
dryRun: z6.boolean().optional(),
|
|
984
|
+
prefix: z6.string().min(1).max(512)
|
|
867
985
|
}).strict(),
|
|
868
|
-
|
|
986
|
+
z6.object({ dryRun: z6.boolean().optional(), all: z6.literal(true) }).strict()
|
|
869
987
|
]))();
|
|
870
|
-
var appStorageSqlClearResultSchema = /* @__PURE__ */ (() =>
|
|
871
|
-
environment:
|
|
872
|
-
kind:
|
|
873
|
-
store:
|
|
874
|
-
dryRun:
|
|
988
|
+
var appStorageSqlClearResultSchema = /* @__PURE__ */ (() => z6.object({
|
|
989
|
+
environment: z6.string(),
|
|
990
|
+
kind: z6.literal("sql"),
|
|
991
|
+
store: z6.string(),
|
|
992
|
+
dryRun: z6.boolean(),
|
|
875
993
|
/** Each table cleared, or counted by a dry run, with its row count before the clear. */
|
|
876
|
-
tables:
|
|
877
|
-
|
|
994
|
+
tables: z6.array(
|
|
995
|
+
z6.object({ name: z6.string(), rows: z6.number().int().min(0) })
|
|
878
996
|
)
|
|
879
997
|
}))();
|
|
880
|
-
var appStorageKvClearResultSchema = /* @__PURE__ */ (() =>
|
|
881
|
-
environment:
|
|
882
|
-
kind:
|
|
883
|
-
store:
|
|
884
|
-
dryRun:
|
|
998
|
+
var appStorageKvClearResultSchema = /* @__PURE__ */ (() => z6.object({
|
|
999
|
+
environment: z6.string(),
|
|
1000
|
+
kind: z6.literal("kv"),
|
|
1001
|
+
store: z6.string(),
|
|
1002
|
+
dryRun: z6.boolean(),
|
|
885
1003
|
/** Empty when every key was selected. */
|
|
886
|
-
prefix:
|
|
1004
|
+
prefix: z6.string(),
|
|
887
1005
|
/** Keys deleted by this call, or counted by a dry run. */
|
|
888
|
-
keys:
|
|
1006
|
+
keys: z6.number().int().min(0),
|
|
889
1007
|
/**
|
|
890
1008
|
* False when keys remain: a clear deletes at most `limits.apps.storageClearKeys` (10,000) keys a
|
|
891
1009
|
* call, so call again until it is true. On a dry run, false means `keys` stopped counting at
|
|
892
1010
|
* `limits.apps.storageClearCountKeys` (100,000).
|
|
893
1011
|
*/
|
|
894
|
-
complete:
|
|
1012
|
+
complete: z6.boolean()
|
|
895
1013
|
}))();
|
|
896
|
-
var appMigrationNameSchema = /* @__PURE__ */ (() =>
|
|
1014
|
+
var appMigrationNameSchema = /* @__PURE__ */ (() => z6.string().max(255).regex(/^[\w-][\w.-]*\.sql$/))();
|
|
897
1015
|
function compareAppMigrations(a, b) {
|
|
898
1016
|
const left = Number.parseInt(a.split("_")[0], 10);
|
|
899
1017
|
const right = Number.parseInt(b.split("_")[0], 10);
|
|
@@ -910,12 +1028,12 @@ function compareAppMigrations(a, b) {
|
|
|
910
1028
|
}
|
|
911
1029
|
return a < b ? -1 : a > b ? 1 : 0;
|
|
912
1030
|
}
|
|
913
|
-
var appMigrationsSchema = /* @__PURE__ */ (() =>
|
|
1031
|
+
var appMigrationsSchema = /* @__PURE__ */ (() => z6.record(
|
|
914
1032
|
appSecretNameSchema,
|
|
915
|
-
|
|
916
|
-
|
|
1033
|
+
z6.array(
|
|
1034
|
+
z6.object({
|
|
917
1035
|
name: appMigrationNameSchema,
|
|
918
|
-
sql:
|
|
1036
|
+
sql: z6.string().min(1).refine(
|
|
919
1037
|
(sql) => new TextEncoder().encode(sql).length <= limits.apps.migrationFileBytes,
|
|
920
1038
|
`A migration file must not exceed ${limits.apps.migrationFileBytes} bytes`
|
|
921
1039
|
)
|
|
@@ -933,21 +1051,21 @@ var appMigrationsSchema = /* @__PURE__ */ (() => z5.record(
|
|
|
933
1051
|
))();
|
|
934
1052
|
var appScripts = /* @__PURE__ */ (() => ({
|
|
935
1053
|
routing: appRoutingSchema,
|
|
936
|
-
devScript:
|
|
937
|
-
checkScript:
|
|
938
|
-
buildScript:
|
|
1054
|
+
devScript: z6.string().regex(/^[\w:-]+$/),
|
|
1055
|
+
checkScript: z6.string().regex(/^[\w:-]+$/),
|
|
1056
|
+
buildScript: z6.string().regex(/^[\w:-]+$/)
|
|
939
1057
|
}))();
|
|
940
1058
|
var workerSettings = /* @__PURE__ */ (() => ({
|
|
941
|
-
runWorkerFirst:
|
|
1059
|
+
runWorkerFirst: z6.boolean().default(false),
|
|
942
1060
|
main: outputPathSchema.refine(
|
|
943
1061
|
(path) => /\.m?js$/.test(path),
|
|
944
1062
|
"Expected a compiled JavaScript entry"
|
|
945
1063
|
),
|
|
946
|
-
compatibilityDate:
|
|
947
|
-
compatibilityFlags:
|
|
948
|
-
vars:
|
|
949
|
-
|
|
950
|
-
|
|
1064
|
+
compatibilityDate: z6.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
1065
|
+
compatibilityFlags: z6.array(z6.string().min(1)).max(50).default([]),
|
|
1066
|
+
vars: z6.record(
|
|
1067
|
+
z6.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/).refine((name) => name !== "ASSETS"),
|
|
1068
|
+
z6.string()
|
|
951
1069
|
).default({}),
|
|
952
1070
|
secrets: appSecretDeclarationsSchema.default({}),
|
|
953
1071
|
storage: appStorageSchema.optional(),
|
|
@@ -976,66 +1094,66 @@ var distinctBindings = (worker, ctx) => {
|
|
|
976
1094
|
}
|
|
977
1095
|
}
|
|
978
1096
|
};
|
|
979
|
-
var hostedAppSchema = /* @__PURE__ */ (() =>
|
|
980
|
-
|
|
981
|
-
kind:
|
|
1097
|
+
var hostedAppSchema = /* @__PURE__ */ (() => z6.discriminatedUnion("kind", [
|
|
1098
|
+
z6.object({
|
|
1099
|
+
kind: z6.literal("static"),
|
|
982
1100
|
directory: outputPathSchema,
|
|
983
1101
|
...appScripts
|
|
984
1102
|
}).strict(),
|
|
985
|
-
|
|
986
|
-
kind:
|
|
1103
|
+
z6.object({
|
|
1104
|
+
kind: z6.literal("worker"),
|
|
987
1105
|
directory: outputPathSchema,
|
|
988
1106
|
assetsDirectory: outputPathSchema.optional(),
|
|
989
1107
|
...appScripts,
|
|
990
1108
|
...workerSettings
|
|
991
1109
|
}).strict().superRefine(distinctBindings)
|
|
992
1110
|
]))();
|
|
993
|
-
var repositorySchema = /* @__PURE__ */ (() =>
|
|
994
|
-
id:
|
|
1111
|
+
var repositorySchema = /* @__PURE__ */ (() => z6.object({
|
|
1112
|
+
id: z6.string().uuid(),
|
|
995
1113
|
organization: identifier,
|
|
996
1114
|
project: identifier,
|
|
997
|
-
remote:
|
|
998
|
-
defaultBranch:
|
|
999
|
-
status:
|
|
1115
|
+
remote: z6.string().url(),
|
|
1116
|
+
defaultBranch: z6.string(),
|
|
1117
|
+
status: z6.enum(["provisioning", "ready"])
|
|
1000
1118
|
}))();
|
|
1001
|
-
var repositoryCreateSchema = /* @__PURE__ */ (() =>
|
|
1119
|
+
var repositoryCreateSchema = /* @__PURE__ */ (() => z6.object({
|
|
1002
1120
|
/** Omitted: the starter chosen at project setup, else `campaign`. */
|
|
1003
1121
|
starter: offeredStarterSchema.optional()
|
|
1004
1122
|
}).strict())();
|
|
1005
|
-
var createRepositorySchema = /* @__PURE__ */ (() =>
|
|
1123
|
+
var createRepositorySchema = /* @__PURE__ */ (() => z6.object({
|
|
1006
1124
|
/** Omitted: the starter chosen at project setup, else `campaign`. */
|
|
1007
1125
|
starter: starterIdSchema.optional()
|
|
1008
1126
|
}).strict())();
|
|
1009
|
-
var deviceStartSchema = /* @__PURE__ */ (() =>
|
|
1010
|
-
challenge:
|
|
1127
|
+
var deviceStartSchema = /* @__PURE__ */ (() => z6.object({
|
|
1128
|
+
challenge: z6.string().regex(/^[a-f0-9]{64}$/)
|
|
1011
1129
|
}).strict())();
|
|
1012
|
-
var deviceRedeemSchema = /* @__PURE__ */ (() =>
|
|
1013
|
-
id:
|
|
1014
|
-
verifier:
|
|
1130
|
+
var deviceRedeemSchema = /* @__PURE__ */ (() => z6.object({
|
|
1131
|
+
id: z6.string().uuid(),
|
|
1132
|
+
verifier: z6.string().min(43).max(128)
|
|
1015
1133
|
}).strict())();
|
|
1016
|
-
var deviceApproveSchema = /* @__PURE__ */ (() =>
|
|
1017
|
-
id:
|
|
1018
|
-
code:
|
|
1134
|
+
var deviceApproveSchema = /* @__PURE__ */ (() => z6.object({
|
|
1135
|
+
id: z6.string().uuid(),
|
|
1136
|
+
code: z6.string().regex(/^[A-F0-9]{4}-[A-F0-9]{4}$/)
|
|
1019
1137
|
}).strict())();
|
|
1020
|
-
var commitSchema = /* @__PURE__ */ (() =>
|
|
1021
|
-
var stageRequestSchema = /* @__PURE__ */ (() =>
|
|
1138
|
+
var commitSchema = /* @__PURE__ */ (() => z6.string().regex(/^[a-f0-9]{40}$/))();
|
|
1139
|
+
var stageRequestSchema = /* @__PURE__ */ (() => z6.object({
|
|
1022
1140
|
commit: commitSchema,
|
|
1023
|
-
requestId:
|
|
1141
|
+
requestId: z6.string().uuid()
|
|
1024
1142
|
}).strict())();
|
|
1025
|
-
var buildIdentitySchema = /* @__PURE__ */ (() =>
|
|
1143
|
+
var buildIdentitySchema = /* @__PURE__ */ (() => z6.object({
|
|
1026
1144
|
routing: appRoutingSchema,
|
|
1027
|
-
slug:
|
|
1028
|
-
runtime:
|
|
1029
|
-
id:
|
|
1030
|
-
repository:
|
|
1145
|
+
slug: z6.string().min(1).max(35).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/).optional(),
|
|
1146
|
+
runtime: z6.enum(["simulation", "hosted-test"]).default("simulation"),
|
|
1147
|
+
id: z6.string().uuid(),
|
|
1148
|
+
repository: z6.string().uuid(),
|
|
1031
1149
|
organization: identifier,
|
|
1032
1150
|
project: identifier,
|
|
1033
1151
|
commit: commitSchema,
|
|
1034
|
-
createdAt:
|
|
1035
|
-
actor:
|
|
1036
|
-
commitMessage:
|
|
1152
|
+
createdAt: z6.number(),
|
|
1153
|
+
actor: z6.string(),
|
|
1154
|
+
commitMessage: z6.string().max(500).optional()
|
|
1037
1155
|
}))();
|
|
1038
|
-
var buildPhaseSchema = /* @__PURE__ */ (() =>
|
|
1156
|
+
var buildPhaseSchema = /* @__PURE__ */ (() => z6.enum([
|
|
1039
1157
|
"queued",
|
|
1040
1158
|
"source",
|
|
1041
1159
|
"install",
|
|
@@ -1045,81 +1163,81 @@ var buildPhaseSchema = /* @__PURE__ */ (() => z5.enum([
|
|
|
1045
1163
|
"ready",
|
|
1046
1164
|
"failed"
|
|
1047
1165
|
]))();
|
|
1048
|
-
var buildStatusSchema = /* @__PURE__ */ (() =>
|
|
1166
|
+
var buildStatusSchema = /* @__PURE__ */ (() => z6.object({
|
|
1049
1167
|
phase: buildPhaseSchema,
|
|
1050
1168
|
failedPhase: buildPhaseSchema.optional(),
|
|
1051
|
-
updatedAt:
|
|
1052
|
-
message:
|
|
1169
|
+
updatedAt: z6.number(),
|
|
1170
|
+
message: z6.string()
|
|
1053
1171
|
}))();
|
|
1054
1172
|
var hostedBuildSchema = /* @__PURE__ */ (() => buildIdentitySchema.extend({
|
|
1055
1173
|
...buildStatusSchema.shape,
|
|
1056
|
-
finished:
|
|
1057
|
-
current:
|
|
1058
|
-
stagingUrl:
|
|
1174
|
+
finished: z6.boolean(),
|
|
1175
|
+
current: z6.boolean(),
|
|
1176
|
+
stagingUrl: z6.string().url(),
|
|
1059
1177
|
/**
|
|
1060
1178
|
* The test deployment the build published from its quest artifacts when it activated, readable
|
|
1061
1179
|
* with `GET /deployments/{id}`; null until it activates. A build whose bundle declares no
|
|
1062
1180
|
* resources publishes none, so its ID is not found. Only `GET /builds/{id}` includes it.
|
|
1063
1181
|
*/
|
|
1064
|
-
deployment:
|
|
1182
|
+
deployment: z6.string().nullable().optional()
|
|
1065
1183
|
}))();
|
|
1066
|
-
var liveAppSchema = /* @__PURE__ */ (() =>
|
|
1067
|
-
url:
|
|
1068
|
-
state:
|
|
1184
|
+
var liveAppSchema = /* @__PURE__ */ (() => z6.object({
|
|
1185
|
+
url: z6.string().url().nullable(),
|
|
1186
|
+
state: z6.enum(["none", "deploying", "live", "failed"]),
|
|
1069
1187
|
/** The build the address serves, or null before the first one goes live. */
|
|
1070
|
-
build:
|
|
1188
|
+
build: z6.string().uuid().nullable(),
|
|
1071
1189
|
/** The build the last approved promotion asked for, while it differs from `build`. */
|
|
1072
|
-
requested:
|
|
1073
|
-
failure:
|
|
1190
|
+
requested: z6.string().uuid().nullable(),
|
|
1191
|
+
failure: z6.string().nullable()
|
|
1074
1192
|
}))();
|
|
1075
|
-
var customDomainStateSchema = /* @__PURE__ */ (() =>
|
|
1193
|
+
var customDomainStateSchema = /* @__PURE__ */ (() => z6.enum([
|
|
1076
1194
|
"awaiting-dns",
|
|
1077
1195
|
"provisioning",
|
|
1078
1196
|
"active",
|
|
1079
1197
|
"attention",
|
|
1080
1198
|
"suspended"
|
|
1081
1199
|
]))();
|
|
1082
|
-
var customDomainRecordSchema = /* @__PURE__ */ (() =>
|
|
1083
|
-
type:
|
|
1084
|
-
name:
|
|
1085
|
-
value:
|
|
1200
|
+
var customDomainRecordSchema = /* @__PURE__ */ (() => z6.object({
|
|
1201
|
+
type: z6.enum(["CNAME", "TXT"]),
|
|
1202
|
+
name: z6.string(),
|
|
1203
|
+
value: z6.string(),
|
|
1086
1204
|
/** The values public DNS returned: empty when it had none, null before Domino looked. */
|
|
1087
|
-
found:
|
|
1088
|
-
matches:
|
|
1205
|
+
found: z6.array(z6.string()).nullable(),
|
|
1206
|
+
matches: z6.boolean()
|
|
1089
1207
|
}))();
|
|
1090
|
-
var domainTimeMs = /* @__PURE__ */ (() =>
|
|
1091
|
-
var customDomainSchema = /* @__PURE__ */ (() =>
|
|
1092
|
-
id:
|
|
1093
|
-
hostname:
|
|
1094
|
-
url:
|
|
1208
|
+
var domainTimeMs = /* @__PURE__ */ (() => z6.number().int().nonnegative().nullish())();
|
|
1209
|
+
var customDomainSchema = /* @__PURE__ */ (() => z6.object({
|
|
1210
|
+
id: z6.string().uuid(),
|
|
1211
|
+
hostname: z6.string(),
|
|
1212
|
+
url: z6.string().url(),
|
|
1095
1213
|
state: customDomainStateSchema,
|
|
1096
1214
|
/** What to fix, in plain words, while the domain needs attention or is suspended. */
|
|
1097
|
-
issue:
|
|
1098
|
-
records:
|
|
1215
|
+
issue: z6.object({ code: z6.string(), message: z6.string() }).nullable(),
|
|
1216
|
+
records: z6.array(customDomainRecordSchema),
|
|
1099
1217
|
/** Cloudflare's statuses and errors in its own words, once the domain is proven. */
|
|
1100
|
-
cloudflare:
|
|
1101
|
-
hostnameStatus:
|
|
1102
|
-
certificateStatus:
|
|
1103
|
-
validationErrors:
|
|
1104
|
-
verificationErrors:
|
|
1105
|
-
certificateExpiresAt:
|
|
1218
|
+
cloudflare: z6.object({
|
|
1219
|
+
hostnameStatus: z6.string(),
|
|
1220
|
+
certificateStatus: z6.string().nullable(),
|
|
1221
|
+
validationErrors: z6.array(z6.string()),
|
|
1222
|
+
verificationErrors: z6.array(z6.string()),
|
|
1223
|
+
certificateExpiresAt: z6.string().nullable(),
|
|
1106
1224
|
certificateExpiresAtMs: domainTimeMs
|
|
1107
1225
|
}).nullable(),
|
|
1108
|
-
checkedAt:
|
|
1226
|
+
checkedAt: z6.string().nullable(),
|
|
1109
1227
|
checkedAtMs: domainTimeMs,
|
|
1110
|
-
nextCheckAt:
|
|
1228
|
+
nextCheckAt: z6.string().nullable(),
|
|
1111
1229
|
nextCheckAtMs: domainTimeMs,
|
|
1112
|
-
createdAt:
|
|
1113
|
-
createdAtMs:
|
|
1230
|
+
createdAt: z6.string(),
|
|
1231
|
+
createdAtMs: z6.number().int().nonnegative().optional()
|
|
1114
1232
|
}))();
|
|
1115
|
-
var customDomainListSchema = /* @__PURE__ */ (() =>
|
|
1116
|
-
domains:
|
|
1233
|
+
var customDomainListSchema = /* @__PURE__ */ (() => z6.object({
|
|
1234
|
+
domains: z6.array(customDomainSchema)
|
|
1117
1235
|
}))();
|
|
1118
|
-
var customDomainInputSchema = /* @__PURE__ */ (() =>
|
|
1119
|
-
var stagingAccessModeSchema = /* @__PURE__ */ (() =>
|
|
1236
|
+
var customDomainInputSchema = /* @__PURE__ */ (() => z6.object({ hostname: z6.string().min(1).max(300) }).strict())();
|
|
1237
|
+
var stagingAccessModeSchema = /* @__PURE__ */ (() => z6.enum(["console", "password"]))();
|
|
1120
1238
|
var stagingOrigin = "https://staging.invalid";
|
|
1121
1239
|
var reservedStagingPaths = ["/__domino", "/relay", "/.well-known"];
|
|
1122
|
-
var stagingServerPathSchema = /* @__PURE__ */ (() =>
|
|
1240
|
+
var stagingServerPathSchema = /* @__PURE__ */ (() => z6.string().max(200).refine((path) => {
|
|
1123
1241
|
if (!path.startsWith("/") || path.startsWith("//") || /[\\?#]/.test(path) || // oxlint-disable-next-line no-control-regex
|
|
1124
1242
|
/[\u0000-\u0020\u007f]/.test(path)) {
|
|
1125
1243
|
return false;
|
|
@@ -1135,10 +1253,10 @@ var stagingServerPathSchema = /* @__PURE__ */ (() => z5.string().max(200).refine
|
|
|
1135
1253
|
),
|
|
1136
1254
|
"Server paths cannot be / or cover /__domino, /relay or /.well-known"
|
|
1137
1255
|
))();
|
|
1138
|
-
var stagingServerAccessSchema = /* @__PURE__ */ (() =>
|
|
1139
|
-
paths:
|
|
1256
|
+
var stagingServerAccessSchema = /* @__PURE__ */ (() => z6.object({
|
|
1257
|
+
paths: z6.array(z6.string())
|
|
1140
1258
|
}))();
|
|
1141
|
-
var stagingAccessSchema = /* @__PURE__ */ (() =>
|
|
1259
|
+
var stagingAccessSchema = /* @__PURE__ */ (() => z6.object({
|
|
1142
1260
|
mode: stagingAccessModeSchema,
|
|
1143
1261
|
/**
|
|
1144
1262
|
* Paths servers may call with a staging server key. Absent from older servers, which means off.
|
|
@@ -1147,48 +1265,48 @@ var stagingAccessSchema = /* @__PURE__ */ (() => z5.object({
|
|
|
1147
1265
|
*/
|
|
1148
1266
|
server: stagingServerAccessSchema.optional()
|
|
1149
1267
|
}))();
|
|
1150
|
-
var stagingServerAccessInputSchema = /* @__PURE__ */ (() =>
|
|
1268
|
+
var stagingServerAccessInputSchema = /* @__PURE__ */ (() => z6.object({
|
|
1151
1269
|
// Each request on a server path is checked against every prefix; an app needs a few.
|
|
1152
|
-
paths:
|
|
1270
|
+
paths: z6.array(stagingServerPathSchema).max(20).refine(
|
|
1153
1271
|
(paths) => new Set(paths).size === paths.length,
|
|
1154
1272
|
"Each server path can be listed once"
|
|
1155
1273
|
)
|
|
1156
1274
|
}).strict())();
|
|
1157
|
-
var stagingAccessInputSchema = /* @__PURE__ */ (() =>
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
mode:
|
|
1161
|
-
password:
|
|
1275
|
+
var stagingAccessInputSchema = /* @__PURE__ */ (() => z6.discriminatedUnion("mode", [
|
|
1276
|
+
z6.object({ mode: z6.literal("console") }).strict(),
|
|
1277
|
+
z6.object({
|
|
1278
|
+
mode: z6.literal("password"),
|
|
1279
|
+
password: z6.string().min(8).max(128)
|
|
1162
1280
|
}).strict()
|
|
1163
1281
|
]))();
|
|
1164
|
-
var stagingAccessChangeSchema = /* @__PURE__ */ (() =>
|
|
1165
|
-
|
|
1166
|
-
mode:
|
|
1282
|
+
var stagingAccessChangeSchema = /* @__PURE__ */ (() => z6.union([
|
|
1283
|
+
z6.object({
|
|
1284
|
+
mode: z6.literal("console"),
|
|
1167
1285
|
server: stagingServerAccessInputSchema.optional()
|
|
1168
1286
|
}).strict(),
|
|
1169
|
-
|
|
1170
|
-
mode:
|
|
1171
|
-
password:
|
|
1287
|
+
z6.object({
|
|
1288
|
+
mode: z6.literal("password"),
|
|
1289
|
+
password: z6.string().min(8).max(128),
|
|
1172
1290
|
server: stagingServerAccessInputSchema.optional()
|
|
1173
1291
|
}).strict(),
|
|
1174
|
-
|
|
1292
|
+
z6.object({ server: stagingServerAccessInputSchema }).strict()
|
|
1175
1293
|
]))();
|
|
1176
|
-
var stagingServerKeySchema = /* @__PURE__ */ (() =>
|
|
1177
|
-
id:
|
|
1178
|
-
name:
|
|
1179
|
-
lastFour:
|
|
1180
|
-
createdAt:
|
|
1181
|
-
lastUsedAt:
|
|
1294
|
+
var stagingServerKeySchema = /* @__PURE__ */ (() => z6.object({
|
|
1295
|
+
id: z6.string(),
|
|
1296
|
+
name: z6.string(),
|
|
1297
|
+
lastFour: z6.string(),
|
|
1298
|
+
createdAt: z6.number(),
|
|
1299
|
+
lastUsedAt: z6.number().nullable()
|
|
1182
1300
|
}))();
|
|
1183
|
-
var stagingServerKeyListSchema = /* @__PURE__ */ (() =>
|
|
1184
|
-
items:
|
|
1185
|
-
nextCursor:
|
|
1301
|
+
var stagingServerKeyListSchema = /* @__PURE__ */ (() => z6.object({
|
|
1302
|
+
items: z6.array(stagingServerKeySchema),
|
|
1303
|
+
nextCursor: z6.null()
|
|
1186
1304
|
}))();
|
|
1187
|
-
var stagingServerKeyInputSchema = /* @__PURE__ */ (() =>
|
|
1305
|
+
var stagingServerKeyInputSchema = /* @__PURE__ */ (() => z6.object({ name: z6.string().trim().min(1).max(80) }).strict())();
|
|
1188
1306
|
var stagingServerKeyCreatedSchema = /* @__PURE__ */ (() => stagingServerKeySchema.extend({
|
|
1189
|
-
key:
|
|
1307
|
+
key: z6.string()
|
|
1190
1308
|
}))();
|
|
1191
|
-
var stagingPathSchema = /* @__PURE__ */ (() =>
|
|
1309
|
+
var stagingPathSchema = /* @__PURE__ */ (() => z6.string().max(2048).refine((path) => {
|
|
1192
1310
|
if (!path.startsWith("/") || path.startsWith("//") || path.includes("\\") || // oxlint-disable-next-line no-control-regex
|
|
1193
1311
|
/[\u0000-\u001f\u007f]/.test(path)) {
|
|
1194
1312
|
return false;
|
|
@@ -1199,47 +1317,47 @@ var stagingPathSchema = /* @__PURE__ */ (() => z5.string().max(2048).refine((pat
|
|
|
1199
1317
|
return false;
|
|
1200
1318
|
}
|
|
1201
1319
|
}, "Expected a path on the staging host"))();
|
|
1202
|
-
var stagingLinkSchema = /* @__PURE__ */ (() =>
|
|
1203
|
-
url:
|
|
1204
|
-
expiresAt:
|
|
1320
|
+
var stagingLinkSchema = /* @__PURE__ */ (() => z6.object({
|
|
1321
|
+
url: z6.string().url(),
|
|
1322
|
+
expiresAt: z6.number()
|
|
1205
1323
|
}))();
|
|
1206
|
-
var buildSnapshotSchema = /* @__PURE__ */ (() =>
|
|
1207
|
-
builds:
|
|
1324
|
+
var buildSnapshotSchema = /* @__PURE__ */ (() => z6.object({
|
|
1325
|
+
builds: z6.array(hostedBuildSchema),
|
|
1208
1326
|
current: hostedBuildSchema.nullable(),
|
|
1209
1327
|
selected: hostedBuildSchema.nullable(),
|
|
1210
|
-
logs:
|
|
1328
|
+
logs: z6.string()
|
|
1211
1329
|
}))();
|
|
1212
|
-
var assetPathSchema = /* @__PURE__ */ (() =>
|
|
1330
|
+
var assetPathSchema = /* @__PURE__ */ (() => z6.string().max(512).refine(
|
|
1213
1331
|
(path) => path.startsWith("/") && // oxlint-disable-next-line no-control-regex -- Asset paths must reject control characters.
|
|
1214
1332
|
!/[\\\u0000-\u001f?#%]/.test(path) && path.slice(1).split("/").every((part) => part.length > 0 && !part.startsWith(".")),
|
|
1215
1333
|
"Expected a public asset path without hidden segments"
|
|
1216
1334
|
))();
|
|
1217
|
-
var base64Schema = /* @__PURE__ */ (() =>
|
|
1335
|
+
var base64Schema = /* @__PURE__ */ (() => z6.string().regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/))();
|
|
1218
1336
|
var stagedDeploymentLimits = {
|
|
1219
1337
|
/** Bytes of JSON, uncompressed. */
|
|
1220
1338
|
size: 64e6,
|
|
1221
1339
|
/** Bytes of the Brotli-compressed object. */
|
|
1222
1340
|
compressedSize: 1e7
|
|
1223
1341
|
};
|
|
1224
|
-
var stagedDeploymentSchema = /* @__PURE__ */ (() =>
|
|
1225
|
-
encoding:
|
|
1226
|
-
sha256:
|
|
1227
|
-
compressedSize:
|
|
1228
|
-
size:
|
|
1342
|
+
var stagedDeploymentSchema = /* @__PURE__ */ (() => z6.object({
|
|
1343
|
+
encoding: z6.literal("br"),
|
|
1344
|
+
sha256: z6.string().regex(/^[0-9a-f]{64}$/),
|
|
1345
|
+
compressedSize: z6.number().int().positive().max(limits.stagedDeployment.compressedSize),
|
|
1346
|
+
size: z6.number().int().positive().max(limits.stagedDeployment.size)
|
|
1229
1347
|
}).strict())();
|
|
1230
1348
|
var stagedDeploymentContentSchema = /* @__PURE__ */ (() => stagedDeploymentSchema.extend({
|
|
1231
|
-
content:
|
|
1349
|
+
content: z6.string().max(Math.ceil(limits.stagedDeployment.compressedSize / 3) * 4)
|
|
1232
1350
|
}).strict())();
|
|
1233
1351
|
var stagedDeploymentKey = (build, sha256) => `builds/${build}/deployment/${sha256}.br`;
|
|
1234
1352
|
var artifactFields = /* @__PURE__ */ (() => ({
|
|
1235
1353
|
routing: appRoutingSchema,
|
|
1236
|
-
worker:
|
|
1354
|
+
worker: z6.object({
|
|
1237
1355
|
...workerSettings,
|
|
1238
1356
|
migrations: appMigrationsSchema.optional(),
|
|
1239
|
-
modules:
|
|
1240
|
-
|
|
1357
|
+
modules: z6.array(
|
|
1358
|
+
z6.object({
|
|
1241
1359
|
path: outputPathSchema.refine((path) => path !== "metadata"),
|
|
1242
|
-
type:
|
|
1360
|
+
type: z6.enum([
|
|
1243
1361
|
"application/javascript+module",
|
|
1244
1362
|
"application/wasm",
|
|
1245
1363
|
"text/plain",
|
|
@@ -1249,27 +1367,27 @@ var artifactFields = /* @__PURE__ */ (() => ({
|
|
|
1249
1367
|
}).strict()
|
|
1250
1368
|
).min(1).max(500)
|
|
1251
1369
|
}).strict().superRefine(distinctBindings).optional(),
|
|
1252
|
-
assets:
|
|
1253
|
-
|
|
1370
|
+
assets: z6.array(
|
|
1371
|
+
z6.object({
|
|
1254
1372
|
path: assetPathSchema,
|
|
1255
1373
|
content: base64Schema.max(14e6),
|
|
1256
|
-
size:
|
|
1374
|
+
size: z6.number().int().min(0).max(1e7)
|
|
1257
1375
|
}).strict()
|
|
1258
1376
|
).max(500)
|
|
1259
1377
|
}))();
|
|
1260
|
-
var inlineCode = () =>
|
|
1261
|
-
var buildArtifactsSchema = /* @__PURE__ */ (() =>
|
|
1262
|
-
|
|
1263
|
-
format:
|
|
1378
|
+
var inlineCode = () => z6.unknown().optional().transform((value) => value);
|
|
1379
|
+
var buildArtifactsSchema = /* @__PURE__ */ (() => z6.discriminatedUnion("format", [
|
|
1380
|
+
z6.object({
|
|
1381
|
+
format: z6.literal(1),
|
|
1264
1382
|
...artifactFields,
|
|
1265
1383
|
quests: inlineCode(),
|
|
1266
1384
|
catalog: inlineCode()
|
|
1267
1385
|
}).strict(),
|
|
1268
|
-
|
|
1269
|
-
format:
|
|
1386
|
+
z6.object({
|
|
1387
|
+
format: z6.literal(2),
|
|
1270
1388
|
...artifactFields,
|
|
1271
1389
|
deployment: stagedDeploymentSchema,
|
|
1272
|
-
images:
|
|
1390
|
+
images: z6.array(imageAssetArtifactSchema).max(10)
|
|
1273
1391
|
}).strict()
|
|
1274
1392
|
]).superRefine((value, ctx) => {
|
|
1275
1393
|
if (value.worker) {
|
|
@@ -1334,8 +1452,8 @@ function bareOrigin(url) {
|
|
|
1334
1452
|
}
|
|
1335
1453
|
|
|
1336
1454
|
// src/identity-integration.ts
|
|
1337
|
-
import * as
|
|
1338
|
-
var exactOrigin = (allowed, message) =>
|
|
1455
|
+
import * as z7 from "zod";
|
|
1456
|
+
var exactOrigin = (allowed, message) => z7.string().url().superRefine((value, context) => {
|
|
1339
1457
|
const url = new URL(value);
|
|
1340
1458
|
if (!allowed(url)) {
|
|
1341
1459
|
context.addIssue({ code: "custom", message });
|
|
@@ -1354,8 +1472,8 @@ var appLoginOriginSchema = /* @__PURE__ */ (() => exactOrigin(
|
|
|
1354
1472
|
(url) => secureOrLoopbackOrigin(url),
|
|
1355
1473
|
"Use an HTTPS origin, or a loopback origin such as http://localhost:3000 for a Test key."
|
|
1356
1474
|
))();
|
|
1357
|
-
var identityIntegrationInputSchema = /* @__PURE__ */ (() =>
|
|
1358
|
-
name:
|
|
1475
|
+
var identityIntegrationInputSchema = /* @__PURE__ */ (() => z7.object({
|
|
1476
|
+
name: z7.string().trim().min(1).max(80),
|
|
1359
1477
|
origin: appLoginOriginSchema,
|
|
1360
1478
|
/**
|
|
1361
1479
|
* The identity kind this integration owns in the project and environment, such as
|
|
@@ -1374,11 +1492,11 @@ var identityIntegrationInputSchema = /* @__PURE__ */ (() => z6.object({
|
|
|
1374
1492
|
* users as that integration's, because each one then signs in as the member that ID is linked
|
|
1375
1493
|
* to. Needs `reason`, which the audit log keeps.
|
|
1376
1494
|
*/
|
|
1377
|
-
adoptIdentitiesFrom:
|
|
1495
|
+
adoptIdentitiesFrom: z7.string().uuid().optional(),
|
|
1378
1496
|
/** Why the identities are adopted; required with `adoptIdentitiesFrom`. */
|
|
1379
|
-
reason:
|
|
1497
|
+
reason: z7.string().trim().min(1).max(500).optional(),
|
|
1380
1498
|
/** Days until the first secret expires. Omit it for a key that never expires. */
|
|
1381
|
-
expiresInDays:
|
|
1499
|
+
expiresInDays: z7.number().int().min(1).max(3650).optional()
|
|
1382
1500
|
}).strict().refine(
|
|
1383
1501
|
(input) => !input.adoptIdentitiesFrom || input.identityKind,
|
|
1384
1502
|
"Adopting identities needs the identityKind they have"
|
|
@@ -1386,65 +1504,65 @@ var identityIntegrationInputSchema = /* @__PURE__ */ (() => z6.object({
|
|
|
1386
1504
|
(input) => !input.adoptIdentitiesFrom === !input.reason,
|
|
1387
1505
|
"Give a reason when adopting identities, and only then"
|
|
1388
1506
|
))();
|
|
1389
|
-
var identityIntegrationSchema = /* @__PURE__ */ (() =>
|
|
1507
|
+
var identityIntegrationSchema = /* @__PURE__ */ (() => z7.object({
|
|
1390
1508
|
...authScopeSchema.shape,
|
|
1391
|
-
id:
|
|
1392
|
-
name:
|
|
1393
|
-
origin:
|
|
1509
|
+
id: z7.string().uuid(),
|
|
1510
|
+
name: z7.string(),
|
|
1511
|
+
origin: z7.string(),
|
|
1394
1512
|
/**
|
|
1395
1513
|
* When the integration's last working secret expires: 8640000000000000 (the latest date
|
|
1396
1514
|
* JavaScript represents) when one never does.
|
|
1397
1515
|
*
|
|
1398
1516
|
* @deprecated Read `secrets`, which gives each secret's own expiry.
|
|
1399
1517
|
*/
|
|
1400
|
-
expiresAt:
|
|
1518
|
+
expiresAt: z7.number(),
|
|
1401
1519
|
/** The integration's working secrets, oldest first. Any of them authenticates it. */
|
|
1402
|
-
secrets:
|
|
1520
|
+
secrets: z7.array(credentialSecretSchema).default([]),
|
|
1403
1521
|
/** The latest use of any of its secrets, revoked ones included; null when none was used. */
|
|
1404
|
-
lastUsedAt:
|
|
1522
|
+
lastUsedAt: z7.number().nullable().default(null),
|
|
1405
1523
|
/** The identity kind the integration owns; null when it only signs members in. */
|
|
1406
1524
|
identityKind: openIdentityKindSchema.nullable().default(null),
|
|
1407
1525
|
/**
|
|
1408
1526
|
* Whether the app's server may vouch for its members' accounts when it signs them in
|
|
1409
1527
|
* (`accounts` on the exchange). False in Relay versions without it.
|
|
1410
1528
|
*/
|
|
1411
|
-
vouchesAccounts:
|
|
1529
|
+
vouchesAccounts: z7.boolean().default(false)
|
|
1412
1530
|
}))();
|
|
1413
1531
|
var identityIntegrationSecretSchema = /* @__PURE__ */ (() => identityIntegrationSchema.extend(
|
|
1414
1532
|
{
|
|
1415
|
-
token:
|
|
1533
|
+
token: z7.string()
|
|
1416
1534
|
}
|
|
1417
1535
|
))();
|
|
1418
1536
|
var identityIntegrationAppSecretSchema = /* @__PURE__ */ (() => identityIntegrationSchema.extend({ appSecret: appSecretSchema }))();
|
|
1419
|
-
var identityKindClaimSchema = /* @__PURE__ */ (() =>
|
|
1537
|
+
var identityKindClaimSchema = /* @__PURE__ */ (() => z7.object({
|
|
1420
1538
|
kind: openIdentityKindSchema,
|
|
1421
1539
|
/** The owning integration's ID; it stays after the integration is disconnected. */
|
|
1422
|
-
integration:
|
|
1540
|
+
integration: z7.string(),
|
|
1423
1541
|
/** The owning integration's name when it claimed or adopted the kind. */
|
|
1424
|
-
integrationName:
|
|
1542
|
+
integrationName: z7.string(),
|
|
1425
1543
|
/** Whether the owning integration is still connected. */
|
|
1426
|
-
connected:
|
|
1544
|
+
connected: z7.boolean(),
|
|
1427
1545
|
/** Linked identities of the kind; adopting them is required to reuse the kind. */
|
|
1428
|
-
linked:
|
|
1546
|
+
linked: z7.number().int().nonnegative(),
|
|
1429
1547
|
/** Identities an operator unlinked. */
|
|
1430
|
-
unlinked:
|
|
1431
|
-
claimedAt:
|
|
1548
|
+
unlinked: z7.number().int().nonnegative(),
|
|
1549
|
+
claimedAt: z7.number().int().nonnegative()
|
|
1432
1550
|
}))();
|
|
1433
|
-
var identityIntegrationAccountVouchingInputSchema = /* @__PURE__ */ (() =>
|
|
1434
|
-
enabled:
|
|
1435
|
-
reason:
|
|
1551
|
+
var identityIntegrationAccountVouchingInputSchema = /* @__PURE__ */ (() => z7.object({
|
|
1552
|
+
enabled: z7.boolean(),
|
|
1553
|
+
reason: z7.string().trim().min(1).max(500),
|
|
1436
1554
|
actionId: identifier.optional()
|
|
1437
1555
|
}).strict())();
|
|
1438
1556
|
var vouchedProviders = ["x", "telegram", "discord"];
|
|
1439
|
-
var participantExchangeAccountsSchema = /* @__PURE__ */ (() =>
|
|
1557
|
+
var participantExchangeAccountsSchema = /* @__PURE__ */ (() => z7.array(memberImportVouchedAccountSchema).max(20).refine(
|
|
1440
1558
|
(accounts) => vouchedProviders.every(
|
|
1441
1559
|
(kind) => accounts.filter((entry) => entry.kind === kind).length <= 1
|
|
1442
1560
|
),
|
|
1443
1561
|
"Vouch for at most one X, Telegram and Discord account each"
|
|
1444
1562
|
))();
|
|
1445
|
-
var participantExchangeSchema = /* @__PURE__ */ (() =>
|
|
1446
|
-
subject:
|
|
1447
|
-
previousToken:
|
|
1563
|
+
var participantExchangeSchema = /* @__PURE__ */ (() => z7.object({
|
|
1564
|
+
subject: z7.string().min(1).max(200),
|
|
1565
|
+
previousToken: z7.string().max(200).optional(),
|
|
1448
1566
|
/**
|
|
1449
1567
|
* Accounts the app vouches belong to this member, attached on the organization's word like an
|
|
1450
1568
|
* import's. Needs an integration with `vouchesAccounts`; otherwise the exchange is refused with
|
|
@@ -1452,32 +1570,32 @@ var participantExchangeSchema = /* @__PURE__ */ (() => z6.object({
|
|
|
1452
1570
|
*/
|
|
1453
1571
|
accounts: participantExchangeAccountsSchema.optional()
|
|
1454
1572
|
}).strict())();
|
|
1455
|
-
var participantExchangeAccountResultSchema = /* @__PURE__ */ (() =>
|
|
1573
|
+
var participantExchangeAccountResultSchema = /* @__PURE__ */ (() => z7.object({
|
|
1456
1574
|
account: memberImportVouchedAccountSchema,
|
|
1457
|
-
status:
|
|
1458
|
-
code:
|
|
1459
|
-
message:
|
|
1575
|
+
status: z7.string(),
|
|
1576
|
+
code: z7.string().optional(),
|
|
1577
|
+
message: z7.string().optional()
|
|
1460
1578
|
}))();
|
|
1461
1579
|
var participantExchangeResultSchema = /* @__PURE__ */ (() => exchangeResultSchema.extend({
|
|
1462
|
-
accounts:
|
|
1580
|
+
accounts: z7.array(participantExchangeAccountResultSchema).optional()
|
|
1463
1581
|
}))();
|
|
1464
|
-
var identityIntegrationKeySchema = /* @__PURE__ */ (() =>
|
|
1465
|
-
id:
|
|
1466
|
-
name:
|
|
1467
|
-
organization:
|
|
1468
|
-
project:
|
|
1469
|
-
environment:
|
|
1470
|
-
origin:
|
|
1582
|
+
var identityIntegrationKeySchema = /* @__PURE__ */ (() => z7.object({
|
|
1583
|
+
id: z7.string(),
|
|
1584
|
+
name: z7.string(),
|
|
1585
|
+
organization: z7.string(),
|
|
1586
|
+
project: z7.string(),
|
|
1587
|
+
environment: z7.string(),
|
|
1588
|
+
origin: z7.string(),
|
|
1471
1589
|
identityKind: openIdentityKindSchema.nullable().default(null),
|
|
1472
|
-
vouchesAccounts:
|
|
1473
|
-
secretExpiresAt:
|
|
1474
|
-
appOrigins:
|
|
1590
|
+
vouchesAccounts: z7.boolean().default(false),
|
|
1591
|
+
secretExpiresAt: z7.number().nullable().default(null),
|
|
1592
|
+
appOrigins: z7.array(z7.string()).default([])
|
|
1475
1593
|
}))();
|
|
1476
|
-
var accountVouchedBySchema = /* @__PURE__ */ (() =>
|
|
1594
|
+
var accountVouchedBySchema = /* @__PURE__ */ (() => z7.object({
|
|
1477
1595
|
/** The integration's ID; it stays after the integration is disconnected. */
|
|
1478
|
-
integration:
|
|
1596
|
+
integration: z7.string(),
|
|
1479
1597
|
/** The integration's name when it vouched for the account. */
|
|
1480
|
-
integrationName:
|
|
1598
|
+
integrationName: z7.string()
|
|
1481
1599
|
}))();
|
|
1482
1600
|
|
|
1483
1601
|
export {
|
|
@@ -1525,6 +1643,7 @@ export {
|
|
|
1525
1643
|
appScheduleResultSchema,
|
|
1526
1644
|
scheduleResult,
|
|
1527
1645
|
appScheduleRunSchema,
|
|
1646
|
+
appScheduleRunsQuerySchema,
|
|
1528
1647
|
appScheduleRunsSchema,
|
|
1529
1648
|
appScheduleListSchema,
|
|
1530
1649
|
scheduledInvocationSchema,
|
|
@@ -1533,6 +1652,14 @@ export {
|
|
|
1533
1652
|
offeredStarterSchema,
|
|
1534
1653
|
starterTemplates,
|
|
1535
1654
|
starterIdSchema,
|
|
1655
|
+
environmentSchema,
|
|
1656
|
+
roleSchema,
|
|
1657
|
+
permissionSchema,
|
|
1658
|
+
permissionListSchema,
|
|
1659
|
+
rolePermissions,
|
|
1660
|
+
projectRoleSchema,
|
|
1661
|
+
projectPermissionSchema,
|
|
1662
|
+
projectRolePermissions,
|
|
1536
1663
|
appRoutingSchema,
|
|
1537
1664
|
APP_SECRET_LIMIT,
|
|
1538
1665
|
APP_KV_LIMIT,
|
|
@@ -1543,6 +1670,9 @@ export {
|
|
|
1543
1670
|
appSecretNameSchema,
|
|
1544
1671
|
appSecretValueSchema,
|
|
1545
1672
|
appSecretInputSchema,
|
|
1673
|
+
AppSecretCredentialKind,
|
|
1674
|
+
AppSecretCredentialStatus,
|
|
1675
|
+
appSecretCredentialSchema,
|
|
1546
1676
|
appSecretSchema,
|
|
1547
1677
|
appSecretDeclarationSchema,
|
|
1548
1678
|
appSecretDeclarationsSchema,
|
|
@@ -1560,6 +1690,7 @@ export {
|
|
|
1560
1690
|
appStorageValueSchema,
|
|
1561
1691
|
APP_STORAGE_CELL_CHARACTERS,
|
|
1562
1692
|
appStorageCellPageSchema,
|
|
1693
|
+
appStorageValueBytesSchema,
|
|
1563
1694
|
appStorageSqlClearSchema,
|
|
1564
1695
|
appStorageKvClearSchema,
|
|
1565
1696
|
appStorageSqlClearResultSchema,
|