@domino-sdk/relay 1.75.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 +17 -0
- package/dist/browser.js +4 -4
- package/dist/{chunk-CEG67D4T.js → chunk-4YKOSNYI.js} +1 -1
- package/dist/{chunk-UHYKKC5U.js → chunk-E4ZQCG44.js} +2 -2
- package/dist/{chunk-E2DB4MKM.js → chunk-LFFGW7GB.js} +888 -925
- package/dist/{chunk-XJCKQSFS.js → chunk-X5REDFGV.js} +1 -1
- package/dist/{chunk-ZEYI662X.js → chunk-YB5BSKVU.js} +1 -1
- package/dist/{chunk-SIKP4VMU.js → chunk-ZXFRHGZC.js} +375 -293
- package/dist/{identity-integration-DnSgQjbY.d.ts → identity-integration-B1f5oOdc.d.ts} +1167 -3
- package/dist/{transport-BMwM6JlS.d.ts → index-BM0DdDYy.d.ts} +249 -1260
- package/dist/index.js +3 -3
- package/dist/internal.d.ts +15 -7
- package/dist/internal.js +7 -4
- package/dist/portal-proxy.d.ts +1 -1
- package/dist/portal-proxy.js +2 -2
- package/dist/react/index.js +4 -4
- package/dist/runtime/manifest.json +1 -1
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +48 -15
- package/dist/solana.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenIdentityKind } from './tracker-data-Dwq9dWEm.js';
|
|
2
1
|
import * as z from 'zod';
|
|
2
|
+
import { O as OpenIdentityKind } from './tracker-data-Dwq9dWEm.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The identity an imported member signs in with, so the imported member and their later sign-in
|
|
@@ -1010,6 +1010,1169 @@ declare const memberImportListQuerySchema: z.ZodObject<{
|
|
|
1010
1010
|
}, z.core.$strict>;
|
|
1011
1011
|
type MemberImportListQuery = z.input<typeof memberImportListQuerySchema>;
|
|
1012
1012
|
|
|
1013
|
+
declare const environmentSchema: z.ZodEnum<{
|
|
1014
|
+
test: "test";
|
|
1015
|
+
live: "live";
|
|
1016
|
+
}>;
|
|
1017
|
+
declare const roleSchema: z.ZodEnum<{
|
|
1018
|
+
staff: "staff";
|
|
1019
|
+
editor: "editor";
|
|
1020
|
+
reviewer: "reviewer";
|
|
1021
|
+
}>;
|
|
1022
|
+
declare const permissionSchema: z.ZodEnum<{
|
|
1023
|
+
review: "review";
|
|
1024
|
+
points: "points";
|
|
1025
|
+
inventory: "inventory";
|
|
1026
|
+
handover: "handover";
|
|
1027
|
+
access: "access";
|
|
1028
|
+
read: "read";
|
|
1029
|
+
publish: "publish";
|
|
1030
|
+
confirm: "confirm";
|
|
1031
|
+
ingest: "ingest";
|
|
1032
|
+
enroll: "enroll";
|
|
1033
|
+
}>;
|
|
1034
|
+
type Permission = z.infer<typeof permissionSchema>;
|
|
1035
|
+
declare const rolePermissions: Record<z.infer<typeof roleSchema>, Permission[]>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Every project role a grant can give: `roleSchema`'s, and `viewer`, who sees the project's
|
|
1038
|
+
* dashboards and nothing else.
|
|
1039
|
+
*
|
|
1040
|
+
* @experimental
|
|
1041
|
+
*/
|
|
1042
|
+
declare const projectRoleSchema: z.ZodEnum<{
|
|
1043
|
+
staff: "staff";
|
|
1044
|
+
editor: "editor";
|
|
1045
|
+
reviewer: "reviewer";
|
|
1046
|
+
viewer: "viewer";
|
|
1047
|
+
}>;
|
|
1048
|
+
/**
|
|
1049
|
+
* @compat open
|
|
1050
|
+
* @experimental
|
|
1051
|
+
*/
|
|
1052
|
+
type KnownProjectRole = z.infer<typeof projectRoleSchema>;
|
|
1053
|
+
/**
|
|
1054
|
+
* A project role as responses name it. A newer Relay may name others.
|
|
1055
|
+
*
|
|
1056
|
+
* @experimental
|
|
1057
|
+
*/
|
|
1058
|
+
type ProjectRole = KnownProjectRole | (string & {});
|
|
1059
|
+
/**
|
|
1060
|
+
* Every project permission: `permissionSchema`'s, and `dashboards`, which reads the project's
|
|
1061
|
+
* dashboards (aggregates, no individual member) and nothing else. `read` reads dashboards too.
|
|
1062
|
+
* API keys hold only `permissionSchema`'s.
|
|
1063
|
+
*
|
|
1064
|
+
* @experimental
|
|
1065
|
+
*/
|
|
1066
|
+
declare const projectPermissionSchema: z.ZodEnum<{
|
|
1067
|
+
dashboards: "dashboards";
|
|
1068
|
+
review: "review";
|
|
1069
|
+
points: "points";
|
|
1070
|
+
inventory: "inventory";
|
|
1071
|
+
handover: "handover";
|
|
1072
|
+
access: "access";
|
|
1073
|
+
read: "read";
|
|
1074
|
+
publish: "publish";
|
|
1075
|
+
confirm: "confirm";
|
|
1076
|
+
ingest: "ingest";
|
|
1077
|
+
enroll: "enroll";
|
|
1078
|
+
}>;
|
|
1079
|
+
/**
|
|
1080
|
+
* @compat open
|
|
1081
|
+
* @experimental
|
|
1082
|
+
*/
|
|
1083
|
+
type KnownProjectPermission = z.infer<typeof projectPermissionSchema>;
|
|
1084
|
+
/**
|
|
1085
|
+
* A project permission as responses name it. A newer Relay may name others.
|
|
1086
|
+
*
|
|
1087
|
+
* @experimental
|
|
1088
|
+
*/
|
|
1089
|
+
type ProjectPermission = KnownProjectPermission | (string & {});
|
|
1090
|
+
/**
|
|
1091
|
+
* What each project role holds. `rolePermissions` keeps the roles and permissions SDK 1.x names.
|
|
1092
|
+
*
|
|
1093
|
+
* @experimental
|
|
1094
|
+
*/
|
|
1095
|
+
declare const projectRolePermissions: Record<KnownProjectRole, readonly KnownProjectPermission[]>;
|
|
1096
|
+
|
|
1097
|
+
declare const appRoutingSchema: z.ZodDefault<z.ZodEnum<{
|
|
1098
|
+
legacy: "legacy";
|
|
1099
|
+
transparent: "transparent";
|
|
1100
|
+
}>>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Most app secrets a project environment can hold.
|
|
1103
|
+
*
|
|
1104
|
+
* @deprecated Use `limits.apps.secrets`, which a 1.x release can raise.
|
|
1105
|
+
*/
|
|
1106
|
+
declare const APP_SECRET_LIMIT = 50;
|
|
1107
|
+
/** @deprecated Use `limits.apps.kvStores`, which a 1.x release can raise. */
|
|
1108
|
+
declare const APP_KV_LIMIT = 5;
|
|
1109
|
+
/** @deprecated Use `limits.apps.sqlStores`, which a 1.x release can raise. */
|
|
1110
|
+
declare const APP_SQL_LIMIT = 5;
|
|
1111
|
+
/** @deprecated Use `limits.apps.migrations`, which a 1.x release can raise. */
|
|
1112
|
+
declare const APP_MIGRATION_LIMIT = 100;
|
|
1113
|
+
/** @deprecated Use `limits.apps.migrationFileBytes`, which a 1.x release can raise. */
|
|
1114
|
+
declare const APP_MIGRATION_FILE_BYTES = 90000;
|
|
1115
|
+
/** @deprecated Use `limits.apps.migrationTotalBytes`, which a 1.x release can raise. */
|
|
1116
|
+
declare const APP_MIGRATION_TOTAL_BYTES = 1000000;
|
|
1117
|
+
/**
|
|
1118
|
+
* An app secret's name: the Worker binding it becomes. `DOMINO_` names and `ASSETS` are the
|
|
1119
|
+
* platform's own bindings.
|
|
1120
|
+
*/
|
|
1121
|
+
declare const appSecretNameSchema: z.ZodString;
|
|
1122
|
+
/** A secret's value. Cloudflare accepts at most 5 KiB per secret binding. */
|
|
1123
|
+
declare const appSecretValueSchema: z.ZodString;
|
|
1124
|
+
/** PUT /secrets/:name. The value is write-only: no route ever answers it. */
|
|
1125
|
+
declare const appSecretInputSchema: z.ZodObject<{
|
|
1126
|
+
value: z.ZodString;
|
|
1127
|
+
}, z.core.$strict>;
|
|
1128
|
+
type AppSecretInput = z.infer<typeof appSecretInputSchema>;
|
|
1129
|
+
/** A credential kind this SDK version knows. */
|
|
1130
|
+
type KnownAppSecretCredentialKind = (typeof AppSecretCredentialKind)[keyof typeof AppSecretCredentialKind];
|
|
1131
|
+
/** The kinds of credential an app secret's value is recognized as. */
|
|
1132
|
+
declare const AppSecretCredentialKind: {
|
|
1133
|
+
/** A service key (`dsk_…`). */
|
|
1134
|
+
readonly Service: "service";
|
|
1135
|
+
};
|
|
1136
|
+
/** A known kind, or one a newer Relay sends. */
|
|
1137
|
+
type AppSecretCredentialKind = KnownAppSecretCredentialKind | (string & {});
|
|
1138
|
+
/** A credential status this SDK version knows. */
|
|
1139
|
+
type KnownAppSecretCredentialStatus = (typeof AppSecretCredentialStatus)[keyof typeof AppSecretCredentialStatus];
|
|
1140
|
+
/** Whether the credential an app secret holds works for the secret's project and environment. */
|
|
1141
|
+
declare const AppSecretCredentialStatus: {
|
|
1142
|
+
/** It authenticates in this project and environment. */
|
|
1143
|
+
readonly Active: "active";
|
|
1144
|
+
/** Its secret has expired; `expiresAt` says when. */
|
|
1145
|
+
readonly Expired: "expired";
|
|
1146
|
+
/** Domino does not know it in this organization: revoked, mistyped, or another deployment's. */
|
|
1147
|
+
readonly Unknown: "unknown";
|
|
1148
|
+
/** It belongs to another project or environment of this organization, named in the entry. */
|
|
1149
|
+
readonly OtherScope: "other-scope";
|
|
1150
|
+
};
|
|
1151
|
+
/** A known status, or one a newer Relay sends. */
|
|
1152
|
+
type AppSecretCredentialStatus = KnownAppSecretCredentialStatus | (string & {});
|
|
1153
|
+
/**
|
|
1154
|
+
* What Domino recognizes in an app secret's value when it is a Domino credential, checked when the
|
|
1155
|
+
* secret is listed or set. It never carries the value or anything derived from it.
|
|
1156
|
+
*/
|
|
1157
|
+
interface AppSecretCredential {
|
|
1158
|
+
kind: AppSecretCredentialKind;
|
|
1159
|
+
status: AppSecretCredentialStatus;
|
|
1160
|
+
/** The key's ID, when it belongs to this organization. */
|
|
1161
|
+
id?: string;
|
|
1162
|
+
/** The key's name, when it belongs to this organization. */
|
|
1163
|
+
name?: string;
|
|
1164
|
+
/** The key's permissions, when it belongs to this organization. */
|
|
1165
|
+
permissions?: Permission[];
|
|
1166
|
+
/** When the secret stops working; null when it never expires. */
|
|
1167
|
+
expiresAt?: number | null;
|
|
1168
|
+
/** For `other-scope`: the project the key works in. */
|
|
1169
|
+
project?: string;
|
|
1170
|
+
/** For `other-scope`: the environment the key works in. */
|
|
1171
|
+
environment?: string;
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Parses an app secret's `credential`. Annotated because inferring this nested shape pushes
|
|
1175
|
+
* `managementResponseSchemas` past what tsc serializes.
|
|
1176
|
+
*/
|
|
1177
|
+
declare const appSecretCredentialSchema: z.ZodType<AppSecretCredential>;
|
|
1178
|
+
/**
|
|
1179
|
+
* A secret as the management API lists it: its name and when it changed, never its value.
|
|
1180
|
+
* `credential` describes a value Domino recognizes as one of its credentials.
|
|
1181
|
+
*/
|
|
1182
|
+
declare const appSecretSchema: z.ZodObject<{
|
|
1183
|
+
name: z.ZodString;
|
|
1184
|
+
updatedAt: z.ZodNumber;
|
|
1185
|
+
updatedBy: z.ZodString;
|
|
1186
|
+
credential: z.ZodOptional<z.ZodType<AppSecretCredential, unknown, z.core.$ZodTypeInternals<AppSecretCredential, unknown>>>;
|
|
1187
|
+
}, z.core.$strip>;
|
|
1188
|
+
type AppSecret = z.infer<typeof appSecretSchema>;
|
|
1189
|
+
/**
|
|
1190
|
+
* What a Worker app says about a secret it reads, in relay.json's `app.secrets`. Declarations
|
|
1191
|
+
* carry no value; they tell operators and agents what to set.
|
|
1192
|
+
*/
|
|
1193
|
+
declare const appSecretDeclarationSchema: z.ZodObject<{
|
|
1194
|
+
description: z.ZodString;
|
|
1195
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1196
|
+
}, z.core.$strict>;
|
|
1197
|
+
type AppSecretDeclaration = z.infer<typeof appSecretDeclarationSchema>;
|
|
1198
|
+
declare const appSecretDeclarationsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1199
|
+
description: z.ZodString;
|
|
1200
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1201
|
+
}, z.core.$strict>>;
|
|
1202
|
+
/**
|
|
1203
|
+
* GET /secrets: the secrets set, and what the serving build declares. `declared` is empty until a
|
|
1204
|
+
* build that declares secrets is active.
|
|
1205
|
+
*/
|
|
1206
|
+
declare const appSecretListSchema: z.ZodObject<{
|
|
1207
|
+
secrets: z.ZodArray<z.ZodObject<{
|
|
1208
|
+
name: z.ZodString;
|
|
1209
|
+
updatedAt: z.ZodNumber;
|
|
1210
|
+
updatedBy: z.ZodString;
|
|
1211
|
+
credential: z.ZodOptional<z.ZodType<AppSecretCredential, unknown, z.core.$ZodTypeInternals<AppSecretCredential, unknown>>>;
|
|
1212
|
+
}, z.core.$strip>>;
|
|
1213
|
+
declared: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1214
|
+
description: z.ZodString;
|
|
1215
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1216
|
+
name: z.ZodString;
|
|
1217
|
+
}, z.core.$strict>>>;
|
|
1218
|
+
}, z.core.$strip>;
|
|
1219
|
+
type AppSecretList = z.infer<typeof appSecretListSchema>;
|
|
1220
|
+
/** HostingControl's answer to the builder: the values to bind to one build's Worker. */
|
|
1221
|
+
declare const hostedAppSecretsSchema: z.ZodObject<{
|
|
1222
|
+
secrets: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1223
|
+
}, z.core.$strict>;
|
|
1224
|
+
type HostedAppSecrets = z.infer<typeof hostedAppSecretsSchema>;
|
|
1225
|
+
declare const appStorageSchema: z.ZodObject<{
|
|
1226
|
+
kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1227
|
+
description: z.ZodString;
|
|
1228
|
+
}, z.core.$strict>>>;
|
|
1229
|
+
sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1230
|
+
description: z.ZodString;
|
|
1231
|
+
migrations: z.ZodOptional<z.ZodString>;
|
|
1232
|
+
}, z.core.$strict>>>;
|
|
1233
|
+
}, z.core.$strict>;
|
|
1234
|
+
type AppStorage = z.infer<typeof appStorageSchema>;
|
|
1235
|
+
declare const appStorageKindSchema: z.ZodEnum<{
|
|
1236
|
+
kv: "kv";
|
|
1237
|
+
sql: "sql";
|
|
1238
|
+
}>;
|
|
1239
|
+
type AppStorageKind = z.infer<typeof appStorageKindSchema>;
|
|
1240
|
+
declare const appStorageListSchema: z.ZodObject<{
|
|
1241
|
+
stores: z.ZodArray<z.ZodObject<{
|
|
1242
|
+
kind: z.ZodString;
|
|
1243
|
+
name: z.ZodString;
|
|
1244
|
+
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
1245
|
+
declared: z.ZodBoolean;
|
|
1246
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1247
|
+
}, z.core.$strip>>;
|
|
1248
|
+
}, z.core.$strip>;
|
|
1249
|
+
type AppStorageList = z.infer<typeof appStorageListSchema>;
|
|
1250
|
+
/**
|
|
1251
|
+
* Rows per page when browsing a SQL store's table.
|
|
1252
|
+
*
|
|
1253
|
+
* @deprecated Use `limits.apps.storageRows`, which a 1.x release can raise.
|
|
1254
|
+
*/
|
|
1255
|
+
declare const APP_STORAGE_ROW_LIMIT = 50;
|
|
1256
|
+
/**
|
|
1257
|
+
* Longest text a browsed cell or KV value shows; longer values end in `truncated`.
|
|
1258
|
+
*
|
|
1259
|
+
* @deprecated Use `limits.apps.storagePreviewCharacters`, which a 1.x release can raise.
|
|
1260
|
+
*/
|
|
1261
|
+
declare const APP_STORAGE_PREVIEW_CHARACTERS = 2000;
|
|
1262
|
+
/**
|
|
1263
|
+
* A browsed SQL value. Text longer than the preview is cut and flagged; a BLOB shows only its
|
|
1264
|
+
* size in bytes.
|
|
1265
|
+
*/
|
|
1266
|
+
declare const appStorageCellSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull, z.ZodObject<{
|
|
1267
|
+
text: z.ZodString;
|
|
1268
|
+
truncated: z.ZodLiteral<true>;
|
|
1269
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1270
|
+
blob: z.ZodNumber;
|
|
1271
|
+
}, z.core.$strip>]>;
|
|
1272
|
+
type AppStorageCell = z.infer<typeof appStorageCellSchema>;
|
|
1273
|
+
declare const appStorageTablesSchema: z.ZodObject<{
|
|
1274
|
+
tables: z.ZodArray<z.ZodObject<{
|
|
1275
|
+
name: z.ZodString;
|
|
1276
|
+
kind: z.ZodString;
|
|
1277
|
+
}, z.core.$strip>>;
|
|
1278
|
+
}, z.core.$strip>;
|
|
1279
|
+
type AppStorageTables = z.infer<typeof appStorageTablesSchema>;
|
|
1280
|
+
declare const appStorageRowsSchema: z.ZodObject<{
|
|
1281
|
+
table: z.ZodString;
|
|
1282
|
+
columns: z.ZodArray<z.ZodString>;
|
|
1283
|
+
rows: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull, z.ZodObject<{
|
|
1284
|
+
text: z.ZodString;
|
|
1285
|
+
truncated: z.ZodLiteral<true>;
|
|
1286
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1287
|
+
blob: z.ZodNumber;
|
|
1288
|
+
}, z.core.$strip>]>>>;
|
|
1289
|
+
offset: z.ZodNumber;
|
|
1290
|
+
total: z.ZodNumber;
|
|
1291
|
+
nextCursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1292
|
+
keyColumns: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1293
|
+
rowKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNullable<z.ZodString>>>>;
|
|
1294
|
+
}, z.core.$strip>;
|
|
1295
|
+
/** @compat output */
|
|
1296
|
+
type AppStorageRows = z.infer<typeof appStorageRowsSchema>;
|
|
1297
|
+
declare const appStorageKeysSchema: z.ZodObject<{
|
|
1298
|
+
keys: z.ZodArray<z.ZodObject<{
|
|
1299
|
+
name: z.ZodString;
|
|
1300
|
+
expiration: z.ZodNullable<z.ZodNumber>;
|
|
1301
|
+
}, z.core.$strip>>;
|
|
1302
|
+
nextCursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1303
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
1304
|
+
}, z.core.$strip>;
|
|
1305
|
+
/** @compat output */
|
|
1306
|
+
type AppStorageKeys = z.infer<typeof appStorageKeysSchema>;
|
|
1307
|
+
declare const appStorageValueSchema: z.ZodObject<{
|
|
1308
|
+
key: z.ZodString;
|
|
1309
|
+
size: z.ZodNumber;
|
|
1310
|
+
text: z.ZodNullable<z.ZodString>;
|
|
1311
|
+
truncated: z.ZodBoolean;
|
|
1312
|
+
}, z.core.$strip>;
|
|
1313
|
+
type AppStorageValue = z.infer<typeof appStorageValueSchema>;
|
|
1314
|
+
/**
|
|
1315
|
+
* Characters a full SQL value read returns per page.
|
|
1316
|
+
*
|
|
1317
|
+
* @deprecated Use `limits.apps.storageCellCharacters`, which a 1.x release can raise.
|
|
1318
|
+
*/
|
|
1319
|
+
declare const APP_STORAGE_CELL_CHARACTERS = 100000;
|
|
1320
|
+
/**
|
|
1321
|
+
* One SQL value in full, a page of characters at a time. Characters are Unicode code points, as
|
|
1322
|
+
* SQLite counts them.
|
|
1323
|
+
*/
|
|
1324
|
+
declare const appStorageCellPageSchema: z.ZodObject<{
|
|
1325
|
+
table: z.ZodString;
|
|
1326
|
+
column: z.ZodString;
|
|
1327
|
+
row: z.ZodNumber;
|
|
1328
|
+
type: z.ZodEnum<{
|
|
1329
|
+
null: "null";
|
|
1330
|
+
text: "text";
|
|
1331
|
+
integer: "integer";
|
|
1332
|
+
blob: "blob";
|
|
1333
|
+
real: "real";
|
|
1334
|
+
}>;
|
|
1335
|
+
length: z.ZodNullable<z.ZodNumber>;
|
|
1336
|
+
offset: z.ZodNumber;
|
|
1337
|
+
text: z.ZodNullable<z.ZodString>;
|
|
1338
|
+
nextCursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1339
|
+
revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1340
|
+
}, z.core.$strip>;
|
|
1341
|
+
type AppStorageCellPage = z.infer<typeof appStorageCellPageSchema>;
|
|
1342
|
+
/** One page of a KV value's bytes, any value, binary or text. */
|
|
1343
|
+
declare const appStorageValueBytesSchema: z.ZodObject<{
|
|
1344
|
+
key: z.ZodString;
|
|
1345
|
+
size: z.ZodNumber;
|
|
1346
|
+
offset: z.ZodNumber;
|
|
1347
|
+
base64: z.ZodString;
|
|
1348
|
+
revision: z.ZodString;
|
|
1349
|
+
nextCursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1350
|
+
}, z.core.$strip>;
|
|
1351
|
+
/** One page of a KV value's bytes, as `storage.valueBytes` answers it. */
|
|
1352
|
+
type AppStorageValueBytes = z.infer<typeof appStorageValueBytesSchema>;
|
|
1353
|
+
/**
|
|
1354
|
+
* Which SQL tables a test clear empties: the named `tables`, or with `allTables` every table except
|
|
1355
|
+
* `keepTables`. `d1_migrations`, SQLite's and D1's own tables are never cleared, and the schema stays.
|
|
1356
|
+
* `dryRun` only counts the rows.
|
|
1357
|
+
*/
|
|
1358
|
+
declare const appStorageSqlClearSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1359
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
1360
|
+
tables: z.ZodArray<z.ZodString>;
|
|
1361
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1362
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
1363
|
+
allTables: z.ZodLiteral<true>;
|
|
1364
|
+
keepTables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1365
|
+
}, z.core.$strict>]>;
|
|
1366
|
+
/** `storage.clear("sql", …)`'s input: the tables a test clear empties. */
|
|
1367
|
+
type AppStorageSqlClear = z.infer<typeof appStorageSqlClearSchema>;
|
|
1368
|
+
/** Which KV keys a test clear deletes: those under `prefix`, or with `all` every key. */
|
|
1369
|
+
declare const appStorageKvClearSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1370
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
1371
|
+
prefix: z.ZodString;
|
|
1372
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1373
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
1374
|
+
all: z.ZodLiteral<true>;
|
|
1375
|
+
}, z.core.$strict>]>;
|
|
1376
|
+
/** `storage.clear("kv", …)`'s input: the keys a test clear deletes. */
|
|
1377
|
+
type AppStorageKvClear = z.infer<typeof appStorageKvClearSchema>;
|
|
1378
|
+
/** What a SQL test clear emptied, or a dry run counted. */
|
|
1379
|
+
declare const appStorageSqlClearResultSchema: z.ZodObject<{
|
|
1380
|
+
environment: z.ZodString;
|
|
1381
|
+
kind: z.ZodLiteral<"sql">;
|
|
1382
|
+
store: z.ZodString;
|
|
1383
|
+
dryRun: z.ZodBoolean;
|
|
1384
|
+
tables: z.ZodArray<z.ZodObject<{
|
|
1385
|
+
name: z.ZodString;
|
|
1386
|
+
rows: z.ZodNumber;
|
|
1387
|
+
}, z.core.$strip>>;
|
|
1388
|
+
}, z.core.$strip>;
|
|
1389
|
+
/**
|
|
1390
|
+
* What a SQL test clear emptied, or a dry run counted.
|
|
1391
|
+
*
|
|
1392
|
+
* @compat output
|
|
1393
|
+
*/
|
|
1394
|
+
type AppStorageSqlClearResult = z.infer<typeof appStorageSqlClearResultSchema>;
|
|
1395
|
+
/** What one KV test clear call deleted, or a dry run counted, and whether keys remain. */
|
|
1396
|
+
declare const appStorageKvClearResultSchema: z.ZodObject<{
|
|
1397
|
+
environment: z.ZodString;
|
|
1398
|
+
kind: z.ZodLiteral<"kv">;
|
|
1399
|
+
store: z.ZodString;
|
|
1400
|
+
dryRun: z.ZodBoolean;
|
|
1401
|
+
prefix: z.ZodString;
|
|
1402
|
+
keys: z.ZodNumber;
|
|
1403
|
+
complete: z.ZodBoolean;
|
|
1404
|
+
}, z.core.$strip>;
|
|
1405
|
+
/**
|
|
1406
|
+
* What one KV test clear call deleted, or a dry run counted, and whether keys remain.
|
|
1407
|
+
*
|
|
1408
|
+
* @compat output
|
|
1409
|
+
*/
|
|
1410
|
+
type AppStorageKvClearResult = z.infer<typeof appStorageKvClearResultSchema>;
|
|
1411
|
+
declare const appMigrationNameSchema: z.ZodString;
|
|
1412
|
+
/** Wrangler compares the leading number first, then the filename (workers-sdk d1/migrations/helpers.ts). */
|
|
1413
|
+
declare function compareAppMigrations(a: string, b: string): number;
|
|
1414
|
+
declare const hostedAppSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1415
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
1416
|
+
legacy: "legacy";
|
|
1417
|
+
transparent: "transparent";
|
|
1418
|
+
}>>;
|
|
1419
|
+
devScript: z.ZodString;
|
|
1420
|
+
checkScript: z.ZodString;
|
|
1421
|
+
buildScript: z.ZodString;
|
|
1422
|
+
kind: z.ZodLiteral<"static">;
|
|
1423
|
+
directory: z.ZodString;
|
|
1424
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1425
|
+
runWorkerFirst: z.ZodDefault<z.ZodBoolean>;
|
|
1426
|
+
main: z.ZodString;
|
|
1427
|
+
compatibilityDate: z.ZodString;
|
|
1428
|
+
compatibilityFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1429
|
+
vars: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1430
|
+
secrets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1431
|
+
description: z.ZodString;
|
|
1432
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1433
|
+
}, z.core.$strict>>>;
|
|
1434
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
1435
|
+
kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1436
|
+
description: z.ZodString;
|
|
1437
|
+
}, z.core.$strict>>>;
|
|
1438
|
+
sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1439
|
+
description: z.ZodString;
|
|
1440
|
+
migrations: z.ZodOptional<z.ZodString>;
|
|
1441
|
+
}, z.core.$strict>>>;
|
|
1442
|
+
}, z.core.$strict>>;
|
|
1443
|
+
schedules: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1444
|
+
every: z.ZodString;
|
|
1445
|
+
name: z.ZodString;
|
|
1446
|
+
path: z.ZodString;
|
|
1447
|
+
description: z.ZodString;
|
|
1448
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1449
|
+
cron: z.ZodString;
|
|
1450
|
+
name: z.ZodString;
|
|
1451
|
+
path: z.ZodString;
|
|
1452
|
+
description: z.ZodString;
|
|
1453
|
+
}, z.core.$strict>]>>>;
|
|
1454
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
1455
|
+
legacy: "legacy";
|
|
1456
|
+
transparent: "transparent";
|
|
1457
|
+
}>>;
|
|
1458
|
+
devScript: z.ZodString;
|
|
1459
|
+
checkScript: z.ZodString;
|
|
1460
|
+
buildScript: z.ZodString;
|
|
1461
|
+
kind: z.ZodLiteral<"worker">;
|
|
1462
|
+
directory: z.ZodString;
|
|
1463
|
+
assetsDirectory: z.ZodOptional<z.ZodString>;
|
|
1464
|
+
}, z.core.$strict>], "kind">;
|
|
1465
|
+
declare const repositorySchema: z.ZodObject<{
|
|
1466
|
+
id: z.ZodString;
|
|
1467
|
+
organization: z.ZodString;
|
|
1468
|
+
project: z.ZodString;
|
|
1469
|
+
remote: z.ZodString;
|
|
1470
|
+
defaultBranch: z.ZodString;
|
|
1471
|
+
status: z.ZodEnum<{
|
|
1472
|
+
ready: "ready";
|
|
1473
|
+
provisioning: "provisioning";
|
|
1474
|
+
}>;
|
|
1475
|
+
}, z.core.$strip>;
|
|
1476
|
+
declare const repositoryCreateSchema: z.ZodObject<{
|
|
1477
|
+
starter: z.ZodOptional<z.ZodString>;
|
|
1478
|
+
}, z.core.$strict>;
|
|
1479
|
+
/** @deprecated Use `repositoryCreateSchema`, which also accepts later starters. Removed in 2.0.0. */
|
|
1480
|
+
declare const createRepositorySchema: z.ZodObject<{
|
|
1481
|
+
starter: z.ZodOptional<z.ZodEnum<{
|
|
1482
|
+
referral: "referral";
|
|
1483
|
+
discord: "discord";
|
|
1484
|
+
campaign: "campaign";
|
|
1485
|
+
classic: "classic";
|
|
1486
|
+
waitlist: "waitlist";
|
|
1487
|
+
api: "api";
|
|
1488
|
+
}>>;
|
|
1489
|
+
}, z.core.$strict>;
|
|
1490
|
+
declare const deviceStartSchema: z.ZodObject<{
|
|
1491
|
+
challenge: z.ZodString;
|
|
1492
|
+
}, z.core.$strict>;
|
|
1493
|
+
declare const deviceRedeemSchema: z.ZodObject<{
|
|
1494
|
+
id: z.ZodString;
|
|
1495
|
+
verifier: z.ZodString;
|
|
1496
|
+
}, z.core.$strict>;
|
|
1497
|
+
declare const deviceApproveSchema: z.ZodObject<{
|
|
1498
|
+
id: z.ZodString;
|
|
1499
|
+
code: z.ZodString;
|
|
1500
|
+
}, z.core.$strict>;
|
|
1501
|
+
declare const commitSchema: z.ZodString;
|
|
1502
|
+
declare const stageRequestSchema: z.ZodObject<{
|
|
1503
|
+
commit: z.ZodString;
|
|
1504
|
+
requestId: z.ZodString;
|
|
1505
|
+
}, z.core.$strict>;
|
|
1506
|
+
declare const buildIdentitySchema: z.ZodObject<{
|
|
1507
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
1508
|
+
legacy: "legacy";
|
|
1509
|
+
transparent: "transparent";
|
|
1510
|
+
}>>;
|
|
1511
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
runtime: z.ZodDefault<z.ZodEnum<{
|
|
1513
|
+
simulation: "simulation";
|
|
1514
|
+
"hosted-test": "hosted-test";
|
|
1515
|
+
}>>;
|
|
1516
|
+
id: z.ZodString;
|
|
1517
|
+
repository: z.ZodString;
|
|
1518
|
+
organization: z.ZodString;
|
|
1519
|
+
project: z.ZodString;
|
|
1520
|
+
commit: z.ZodString;
|
|
1521
|
+
createdAt: z.ZodNumber;
|
|
1522
|
+
actor: z.ZodString;
|
|
1523
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
1524
|
+
}, z.core.$strip>;
|
|
1525
|
+
type BuildIdentity = z.infer<typeof buildIdentitySchema>;
|
|
1526
|
+
declare const buildPhaseSchema: z.ZodEnum<{
|
|
1527
|
+
check: "check";
|
|
1528
|
+
source: "source";
|
|
1529
|
+
failed: "failed";
|
|
1530
|
+
ready: "ready";
|
|
1531
|
+
queued: "queued";
|
|
1532
|
+
build: "build";
|
|
1533
|
+
install: "install";
|
|
1534
|
+
deploy: "deploy";
|
|
1535
|
+
}>;
|
|
1536
|
+
declare const buildStatusSchema: z.ZodObject<{
|
|
1537
|
+
phase: z.ZodEnum<{
|
|
1538
|
+
check: "check";
|
|
1539
|
+
source: "source";
|
|
1540
|
+
failed: "failed";
|
|
1541
|
+
ready: "ready";
|
|
1542
|
+
queued: "queued";
|
|
1543
|
+
build: "build";
|
|
1544
|
+
install: "install";
|
|
1545
|
+
deploy: "deploy";
|
|
1546
|
+
}>;
|
|
1547
|
+
failedPhase: z.ZodOptional<z.ZodEnum<{
|
|
1548
|
+
check: "check";
|
|
1549
|
+
source: "source";
|
|
1550
|
+
failed: "failed";
|
|
1551
|
+
ready: "ready";
|
|
1552
|
+
queued: "queued";
|
|
1553
|
+
build: "build";
|
|
1554
|
+
install: "install";
|
|
1555
|
+
deploy: "deploy";
|
|
1556
|
+
}>>;
|
|
1557
|
+
updatedAt: z.ZodNumber;
|
|
1558
|
+
message: z.ZodString;
|
|
1559
|
+
}, z.core.$strip>;
|
|
1560
|
+
type BuildStatus = z.infer<typeof buildStatusSchema>;
|
|
1561
|
+
declare const hostedBuildSchema: z.ZodObject<{
|
|
1562
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
1563
|
+
legacy: "legacy";
|
|
1564
|
+
transparent: "transparent";
|
|
1565
|
+
}>>;
|
|
1566
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1567
|
+
runtime: z.ZodDefault<z.ZodEnum<{
|
|
1568
|
+
simulation: "simulation";
|
|
1569
|
+
"hosted-test": "hosted-test";
|
|
1570
|
+
}>>;
|
|
1571
|
+
id: z.ZodString;
|
|
1572
|
+
repository: z.ZodString;
|
|
1573
|
+
organization: z.ZodString;
|
|
1574
|
+
project: z.ZodString;
|
|
1575
|
+
commit: z.ZodString;
|
|
1576
|
+
createdAt: z.ZodNumber;
|
|
1577
|
+
actor: z.ZodString;
|
|
1578
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
1579
|
+
finished: z.ZodBoolean;
|
|
1580
|
+
current: z.ZodBoolean;
|
|
1581
|
+
stagingUrl: z.ZodString;
|
|
1582
|
+
deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1583
|
+
phase: z.ZodEnum<{
|
|
1584
|
+
check: "check";
|
|
1585
|
+
source: "source";
|
|
1586
|
+
failed: "failed";
|
|
1587
|
+
ready: "ready";
|
|
1588
|
+
queued: "queued";
|
|
1589
|
+
build: "build";
|
|
1590
|
+
install: "install";
|
|
1591
|
+
deploy: "deploy";
|
|
1592
|
+
}>;
|
|
1593
|
+
failedPhase: z.ZodOptional<z.ZodEnum<{
|
|
1594
|
+
check: "check";
|
|
1595
|
+
source: "source";
|
|
1596
|
+
failed: "failed";
|
|
1597
|
+
ready: "ready";
|
|
1598
|
+
queued: "queued";
|
|
1599
|
+
build: "build";
|
|
1600
|
+
install: "install";
|
|
1601
|
+
deploy: "deploy";
|
|
1602
|
+
}>>;
|
|
1603
|
+
updatedAt: z.ZodNumber;
|
|
1604
|
+
message: z.ZodString;
|
|
1605
|
+
}, z.core.$strip>;
|
|
1606
|
+
type HostedBuild = z.infer<typeof hostedBuildSchema>;
|
|
1607
|
+
/**
|
|
1608
|
+
* The project's live app (docs/public/concepts/hosting.md): its address and whether it serves.
|
|
1609
|
+
* `none` before a promotion first carries a build; `deploying` while an approved build is being
|
|
1610
|
+
* deployed or its address is being published; `failed` when that deployment failed, while the
|
|
1611
|
+
* previous build, if any, keeps serving. `url` is null for a project without a hosted app, and
|
|
1612
|
+
* where Domino does not host apps on its own domain.
|
|
1613
|
+
*/
|
|
1614
|
+
declare const liveAppSchema: z.ZodObject<{
|
|
1615
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1616
|
+
state: z.ZodEnum<{
|
|
1617
|
+
none: "none";
|
|
1618
|
+
failed: "failed";
|
|
1619
|
+
live: "live";
|
|
1620
|
+
deploying: "deploying";
|
|
1621
|
+
}>;
|
|
1622
|
+
build: z.ZodNullable<z.ZodString>;
|
|
1623
|
+
requested: z.ZodNullable<z.ZodString>;
|
|
1624
|
+
failure: z.ZodNullable<z.ZodString>;
|
|
1625
|
+
}, z.core.$strip>;
|
|
1626
|
+
type LiveApp = z.infer<typeof liveAppSchema>;
|
|
1627
|
+
/**
|
|
1628
|
+
* A custom domain on the project's live app (docs/public/concepts/hosting.md, "Custom domains"):
|
|
1629
|
+
* `awaiting-dns` until Domino finds the TXT record, `provisioning` while Cloudflare validates the
|
|
1630
|
+
* domain and issues its certificate, `active` once it serves, `attention` when the customer or
|
|
1631
|
+
* Domino must act (`issue` says what), `suspended` when Domino staff stopped it.
|
|
1632
|
+
*/
|
|
1633
|
+
declare const customDomainStateSchema: z.ZodEnum<{
|
|
1634
|
+
attention: "attention";
|
|
1635
|
+
active: "active";
|
|
1636
|
+
suspended: "suspended";
|
|
1637
|
+
provisioning: "provisioning";
|
|
1638
|
+
"awaiting-dns": "awaiting-dns";
|
|
1639
|
+
}>;
|
|
1640
|
+
type CustomDomainState = z.infer<typeof customDomainStateSchema>;
|
|
1641
|
+
/** A DNS record the domain needs, and what public DNS answered for it when Domino last looked. */
|
|
1642
|
+
declare const customDomainRecordSchema: z.ZodObject<{
|
|
1643
|
+
type: z.ZodEnum<{
|
|
1644
|
+
CNAME: "CNAME";
|
|
1645
|
+
TXT: "TXT";
|
|
1646
|
+
}>;
|
|
1647
|
+
name: z.ZodString;
|
|
1648
|
+
value: z.ZodString;
|
|
1649
|
+
found: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1650
|
+
matches: z.ZodBoolean;
|
|
1651
|
+
}, z.core.$strip>;
|
|
1652
|
+
type CustomDomainRecord = z.infer<typeof customDomainRecordSchema>;
|
|
1653
|
+
declare const customDomainSchema: z.ZodObject<{
|
|
1654
|
+
id: z.ZodString;
|
|
1655
|
+
hostname: z.ZodString;
|
|
1656
|
+
url: z.ZodString;
|
|
1657
|
+
state: z.ZodEnum<{
|
|
1658
|
+
attention: "attention";
|
|
1659
|
+
active: "active";
|
|
1660
|
+
suspended: "suspended";
|
|
1661
|
+
provisioning: "provisioning";
|
|
1662
|
+
"awaiting-dns": "awaiting-dns";
|
|
1663
|
+
}>;
|
|
1664
|
+
issue: z.ZodNullable<z.ZodObject<{
|
|
1665
|
+
code: z.ZodString;
|
|
1666
|
+
message: z.ZodString;
|
|
1667
|
+
}, z.core.$strip>>;
|
|
1668
|
+
records: z.ZodArray<z.ZodObject<{
|
|
1669
|
+
type: z.ZodEnum<{
|
|
1670
|
+
CNAME: "CNAME";
|
|
1671
|
+
TXT: "TXT";
|
|
1672
|
+
}>;
|
|
1673
|
+
name: z.ZodString;
|
|
1674
|
+
value: z.ZodString;
|
|
1675
|
+
found: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1676
|
+
matches: z.ZodBoolean;
|
|
1677
|
+
}, z.core.$strip>>;
|
|
1678
|
+
cloudflare: z.ZodNullable<z.ZodObject<{
|
|
1679
|
+
hostnameStatus: z.ZodString;
|
|
1680
|
+
certificateStatus: z.ZodNullable<z.ZodString>;
|
|
1681
|
+
validationErrors: z.ZodArray<z.ZodString>;
|
|
1682
|
+
verificationErrors: z.ZodArray<z.ZodString>;
|
|
1683
|
+
certificateExpiresAt: z.ZodNullable<z.ZodString>;
|
|
1684
|
+
certificateExpiresAtMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1685
|
+
}, z.core.$strip>>;
|
|
1686
|
+
checkedAt: z.ZodNullable<z.ZodString>;
|
|
1687
|
+
checkedAtMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1688
|
+
nextCheckAt: z.ZodNullable<z.ZodString>;
|
|
1689
|
+
nextCheckAtMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1690
|
+
createdAt: z.ZodString;
|
|
1691
|
+
createdAtMs: z.ZodOptional<z.ZodNumber>;
|
|
1692
|
+
}, z.core.$strip>;
|
|
1693
|
+
type CustomDomain = z.infer<typeof customDomainSchema>;
|
|
1694
|
+
declare const customDomainListSchema: z.ZodObject<{
|
|
1695
|
+
domains: z.ZodArray<z.ZodObject<{
|
|
1696
|
+
id: z.ZodString;
|
|
1697
|
+
hostname: z.ZodString;
|
|
1698
|
+
url: z.ZodString;
|
|
1699
|
+
state: z.ZodEnum<{
|
|
1700
|
+
attention: "attention";
|
|
1701
|
+
active: "active";
|
|
1702
|
+
suspended: "suspended";
|
|
1703
|
+
provisioning: "provisioning";
|
|
1704
|
+
"awaiting-dns": "awaiting-dns";
|
|
1705
|
+
}>;
|
|
1706
|
+
issue: z.ZodNullable<z.ZodObject<{
|
|
1707
|
+
code: z.ZodString;
|
|
1708
|
+
message: z.ZodString;
|
|
1709
|
+
}, z.core.$strip>>;
|
|
1710
|
+
records: z.ZodArray<z.ZodObject<{
|
|
1711
|
+
type: z.ZodEnum<{
|
|
1712
|
+
CNAME: "CNAME";
|
|
1713
|
+
TXT: "TXT";
|
|
1714
|
+
}>;
|
|
1715
|
+
name: z.ZodString;
|
|
1716
|
+
value: z.ZodString;
|
|
1717
|
+
found: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1718
|
+
matches: z.ZodBoolean;
|
|
1719
|
+
}, z.core.$strip>>;
|
|
1720
|
+
cloudflare: z.ZodNullable<z.ZodObject<{
|
|
1721
|
+
hostnameStatus: z.ZodString;
|
|
1722
|
+
certificateStatus: z.ZodNullable<z.ZodString>;
|
|
1723
|
+
validationErrors: z.ZodArray<z.ZodString>;
|
|
1724
|
+
verificationErrors: z.ZodArray<z.ZodString>;
|
|
1725
|
+
certificateExpiresAt: z.ZodNullable<z.ZodString>;
|
|
1726
|
+
certificateExpiresAtMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1727
|
+
}, z.core.$strip>>;
|
|
1728
|
+
checkedAt: z.ZodNullable<z.ZodString>;
|
|
1729
|
+
checkedAtMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1730
|
+
nextCheckAt: z.ZodNullable<z.ZodString>;
|
|
1731
|
+
nextCheckAtMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1732
|
+
createdAt: z.ZodString;
|
|
1733
|
+
createdAtMs: z.ZodOptional<z.ZodNumber>;
|
|
1734
|
+
}, z.core.$strip>>;
|
|
1735
|
+
}, z.core.$strip>;
|
|
1736
|
+
declare const customDomainInputSchema: z.ZodObject<{
|
|
1737
|
+
hostname: z.ZodString;
|
|
1738
|
+
}, z.core.$strict>;
|
|
1739
|
+
declare const stagingAccessModeSchema: z.ZodEnum<{
|
|
1740
|
+
console: "console";
|
|
1741
|
+
password: "password";
|
|
1742
|
+
}>;
|
|
1743
|
+
/**
|
|
1744
|
+
* A path prefix on the staging host that a server holding a staging server key may call without a
|
|
1745
|
+
* staging session (docs/cloud-staging.md, "Server access"). It starts with `/`, is already in the
|
|
1746
|
+
* form a URL normalizes to (no `.` or `..` segments, `//` or `\`), has no query or fragment, and
|
|
1747
|
+
* covers none of the gateway's own paths: `/` alone and any prefix of, or path under, `/__domino`,
|
|
1748
|
+
* `/relay` or `/.well-known` are refused. Matching is by prefix, so `/api` also covers `/apiary`;
|
|
1749
|
+
* end a prefix with `/` to cover one folder.
|
|
1750
|
+
*
|
|
1751
|
+
* @experimental A minor release can change staging server access.
|
|
1752
|
+
*/
|
|
1753
|
+
declare const stagingServerPathSchema: z.ZodString;
|
|
1754
|
+
/**
|
|
1755
|
+
* A project's staging server access: path prefixes a server may call with a staging server key
|
|
1756
|
+
* (`X-Domino-Staging-Key`). No paths means off.
|
|
1757
|
+
*
|
|
1758
|
+
* @experimental A minor release can change staging server access.
|
|
1759
|
+
*/
|
|
1760
|
+
declare const stagingServerAccessSchema: z.ZodObject<{
|
|
1761
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1762
|
+
}, z.core.$strip>;
|
|
1763
|
+
/** Who may open a project's staging host. See docs/cloud-staging.md, "Staging access". */
|
|
1764
|
+
declare const stagingAccessSchema: z.ZodObject<{
|
|
1765
|
+
mode: z.ZodEnum<{
|
|
1766
|
+
console: "console";
|
|
1767
|
+
password: "password";
|
|
1768
|
+
}>;
|
|
1769
|
+
server: z.ZodOptional<z.ZodObject<{
|
|
1770
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1771
|
+
}, z.core.$strip>>;
|
|
1772
|
+
}, z.core.$strip>;
|
|
1773
|
+
type StagingAccess = z.infer<typeof stagingAccessSchema>;
|
|
1774
|
+
/** A staging sign-in mode change, as SDK 1.0 sends it. `stagingAccessChangeSchema` also takes `server`. */
|
|
1775
|
+
declare const stagingAccessInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1776
|
+
mode: z.ZodLiteral<"console">;
|
|
1777
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1778
|
+
mode: z.ZodLiteral<"password">;
|
|
1779
|
+
password: z.ZodString;
|
|
1780
|
+
}, z.core.$strict>], "mode">;
|
|
1781
|
+
type StagingAccessInput = z.infer<typeof stagingAccessInputSchema>;
|
|
1782
|
+
/**
|
|
1783
|
+
* A staging access change, as `PUT /management/v1/staging/access` takes it. `mode` (with
|
|
1784
|
+
* `password` for a password) replaces how browsers sign in; `server` replaces the server paths,
|
|
1785
|
+
* and leaving it out keeps them. A body of only `server` changes the server paths and leaves the
|
|
1786
|
+
* sign-in mode and its sessions alone.
|
|
1787
|
+
*
|
|
1788
|
+
* @experimental A minor release can change staging server access.
|
|
1789
|
+
*/
|
|
1790
|
+
declare const stagingAccessChangeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1791
|
+
mode: z.ZodLiteral<"console">;
|
|
1792
|
+
server: z.ZodOptional<z.ZodObject<{
|
|
1793
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1794
|
+
}, z.core.$strict>>;
|
|
1795
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1796
|
+
mode: z.ZodLiteral<"password">;
|
|
1797
|
+
password: z.ZodString;
|
|
1798
|
+
server: z.ZodOptional<z.ZodObject<{
|
|
1799
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1800
|
+
}, z.core.$strict>>;
|
|
1801
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1802
|
+
server: z.ZodObject<{
|
|
1803
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1804
|
+
}, z.core.$strict>;
|
|
1805
|
+
}, z.core.$strict>]>;
|
|
1806
|
+
/** @experimental A minor release can change staging server access. */
|
|
1807
|
+
type StagingAccessChange = z.infer<typeof stagingAccessChangeSchema>;
|
|
1808
|
+
/**
|
|
1809
|
+
* A staging server key as lists show it: never the key itself, only its last four characters.
|
|
1810
|
+
*
|
|
1811
|
+
* @experimental A minor release can change staging server keys.
|
|
1812
|
+
*/
|
|
1813
|
+
declare const stagingServerKeySchema: z.ZodObject<{
|
|
1814
|
+
id: z.ZodString;
|
|
1815
|
+
name: z.ZodString;
|
|
1816
|
+
lastFour: z.ZodString;
|
|
1817
|
+
createdAt: z.ZodNumber;
|
|
1818
|
+
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
1819
|
+
}, z.core.$strip>;
|
|
1820
|
+
/** @experimental A minor release can change staging server keys. */
|
|
1821
|
+
type StagingServerKey = z.infer<typeof stagingServerKeySchema>;
|
|
1822
|
+
/**
|
|
1823
|
+
* A project's staging server keys, oldest first. There are at most a few, so the page is whole.
|
|
1824
|
+
*
|
|
1825
|
+
* @experimental A minor release can change staging server keys.
|
|
1826
|
+
*/
|
|
1827
|
+
declare const stagingServerKeyListSchema: z.ZodObject<{
|
|
1828
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1829
|
+
id: z.ZodString;
|
|
1830
|
+
name: z.ZodString;
|
|
1831
|
+
lastFour: z.ZodString;
|
|
1832
|
+
createdAt: z.ZodNumber;
|
|
1833
|
+
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
1834
|
+
}, z.core.$strip>>;
|
|
1835
|
+
nextCursor: z.ZodNull;
|
|
1836
|
+
}, z.core.$strip>;
|
|
1837
|
+
/** @experimental A minor release can change staging server keys. */
|
|
1838
|
+
type StagingServerKeyList = z.infer<typeof stagingServerKeyListSchema>;
|
|
1839
|
+
/** @experimental A minor release can change staging server keys. */
|
|
1840
|
+
declare const stagingServerKeyInputSchema: z.ZodObject<{
|
|
1841
|
+
name: z.ZodString;
|
|
1842
|
+
}, z.core.$strict>;
|
|
1843
|
+
/** @experimental A minor release can change staging server keys. */
|
|
1844
|
+
type StagingServerKeyInput = z.input<typeof stagingServerKeyInputSchema>;
|
|
1845
|
+
/**
|
|
1846
|
+
* A new staging server key, with `key` (`dsg_…`): shown in this answer only, and stored hashed.
|
|
1847
|
+
*
|
|
1848
|
+
* @experimental A minor release can change staging server keys.
|
|
1849
|
+
*/
|
|
1850
|
+
declare const stagingServerKeyCreatedSchema: z.ZodObject<{
|
|
1851
|
+
id: z.ZodString;
|
|
1852
|
+
name: z.ZodString;
|
|
1853
|
+
lastFour: z.ZodString;
|
|
1854
|
+
createdAt: z.ZodNumber;
|
|
1855
|
+
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
1856
|
+
key: z.ZodString;
|
|
1857
|
+
}, z.core.$strip>;
|
|
1858
|
+
/** @experimental A minor release can change staging server keys. */
|
|
1859
|
+
type StagingServerKeyCreated = z.infer<typeof stagingServerKeyCreatedSchema>;
|
|
1860
|
+
/**
|
|
1861
|
+
* A staging path to open after the Console link signs the browser in, which the staging gateway
|
|
1862
|
+
* also redirects to. Browsers drop tab and newline from a URL, so `/<tab>/host` would leave the
|
|
1863
|
+
* host: control characters are refused, and the path must resolve on the host it came from.
|
|
1864
|
+
*/
|
|
1865
|
+
declare const stagingPathSchema: z.ZodString;
|
|
1866
|
+
declare const stagingLinkSchema: z.ZodObject<{
|
|
1867
|
+
url: z.ZodString;
|
|
1868
|
+
expiresAt: z.ZodNumber;
|
|
1869
|
+
}, z.core.$strip>;
|
|
1870
|
+
type StagingLink = z.infer<typeof stagingLinkSchema>;
|
|
1871
|
+
declare const buildSnapshotSchema: z.ZodObject<{
|
|
1872
|
+
builds: z.ZodArray<z.ZodObject<{
|
|
1873
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
1874
|
+
legacy: "legacy";
|
|
1875
|
+
transparent: "transparent";
|
|
1876
|
+
}>>;
|
|
1877
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1878
|
+
runtime: z.ZodDefault<z.ZodEnum<{
|
|
1879
|
+
simulation: "simulation";
|
|
1880
|
+
"hosted-test": "hosted-test";
|
|
1881
|
+
}>>;
|
|
1882
|
+
id: z.ZodString;
|
|
1883
|
+
repository: z.ZodString;
|
|
1884
|
+
organization: z.ZodString;
|
|
1885
|
+
project: z.ZodString;
|
|
1886
|
+
commit: z.ZodString;
|
|
1887
|
+
createdAt: z.ZodNumber;
|
|
1888
|
+
actor: z.ZodString;
|
|
1889
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
1890
|
+
finished: z.ZodBoolean;
|
|
1891
|
+
current: z.ZodBoolean;
|
|
1892
|
+
stagingUrl: z.ZodString;
|
|
1893
|
+
deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1894
|
+
phase: z.ZodEnum<{
|
|
1895
|
+
check: "check";
|
|
1896
|
+
source: "source";
|
|
1897
|
+
failed: "failed";
|
|
1898
|
+
ready: "ready";
|
|
1899
|
+
queued: "queued";
|
|
1900
|
+
build: "build";
|
|
1901
|
+
install: "install";
|
|
1902
|
+
deploy: "deploy";
|
|
1903
|
+
}>;
|
|
1904
|
+
failedPhase: z.ZodOptional<z.ZodEnum<{
|
|
1905
|
+
check: "check";
|
|
1906
|
+
source: "source";
|
|
1907
|
+
failed: "failed";
|
|
1908
|
+
ready: "ready";
|
|
1909
|
+
queued: "queued";
|
|
1910
|
+
build: "build";
|
|
1911
|
+
install: "install";
|
|
1912
|
+
deploy: "deploy";
|
|
1913
|
+
}>>;
|
|
1914
|
+
updatedAt: z.ZodNumber;
|
|
1915
|
+
message: z.ZodString;
|
|
1916
|
+
}, z.core.$strip>>;
|
|
1917
|
+
current: z.ZodNullable<z.ZodObject<{
|
|
1918
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
1919
|
+
legacy: "legacy";
|
|
1920
|
+
transparent: "transparent";
|
|
1921
|
+
}>>;
|
|
1922
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1923
|
+
runtime: z.ZodDefault<z.ZodEnum<{
|
|
1924
|
+
simulation: "simulation";
|
|
1925
|
+
"hosted-test": "hosted-test";
|
|
1926
|
+
}>>;
|
|
1927
|
+
id: z.ZodString;
|
|
1928
|
+
repository: z.ZodString;
|
|
1929
|
+
organization: z.ZodString;
|
|
1930
|
+
project: z.ZodString;
|
|
1931
|
+
commit: z.ZodString;
|
|
1932
|
+
createdAt: z.ZodNumber;
|
|
1933
|
+
actor: z.ZodString;
|
|
1934
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
1935
|
+
finished: z.ZodBoolean;
|
|
1936
|
+
current: z.ZodBoolean;
|
|
1937
|
+
stagingUrl: z.ZodString;
|
|
1938
|
+
deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1939
|
+
phase: z.ZodEnum<{
|
|
1940
|
+
check: "check";
|
|
1941
|
+
source: "source";
|
|
1942
|
+
failed: "failed";
|
|
1943
|
+
ready: "ready";
|
|
1944
|
+
queued: "queued";
|
|
1945
|
+
build: "build";
|
|
1946
|
+
install: "install";
|
|
1947
|
+
deploy: "deploy";
|
|
1948
|
+
}>;
|
|
1949
|
+
failedPhase: z.ZodOptional<z.ZodEnum<{
|
|
1950
|
+
check: "check";
|
|
1951
|
+
source: "source";
|
|
1952
|
+
failed: "failed";
|
|
1953
|
+
ready: "ready";
|
|
1954
|
+
queued: "queued";
|
|
1955
|
+
build: "build";
|
|
1956
|
+
install: "install";
|
|
1957
|
+
deploy: "deploy";
|
|
1958
|
+
}>>;
|
|
1959
|
+
updatedAt: z.ZodNumber;
|
|
1960
|
+
message: z.ZodString;
|
|
1961
|
+
}, z.core.$strip>>;
|
|
1962
|
+
selected: z.ZodNullable<z.ZodObject<{
|
|
1963
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
1964
|
+
legacy: "legacy";
|
|
1965
|
+
transparent: "transparent";
|
|
1966
|
+
}>>;
|
|
1967
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1968
|
+
runtime: z.ZodDefault<z.ZodEnum<{
|
|
1969
|
+
simulation: "simulation";
|
|
1970
|
+
"hosted-test": "hosted-test";
|
|
1971
|
+
}>>;
|
|
1972
|
+
id: z.ZodString;
|
|
1973
|
+
repository: z.ZodString;
|
|
1974
|
+
organization: z.ZodString;
|
|
1975
|
+
project: z.ZodString;
|
|
1976
|
+
commit: z.ZodString;
|
|
1977
|
+
createdAt: z.ZodNumber;
|
|
1978
|
+
actor: z.ZodString;
|
|
1979
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
1980
|
+
finished: z.ZodBoolean;
|
|
1981
|
+
current: z.ZodBoolean;
|
|
1982
|
+
stagingUrl: z.ZodString;
|
|
1983
|
+
deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1984
|
+
phase: z.ZodEnum<{
|
|
1985
|
+
check: "check";
|
|
1986
|
+
source: "source";
|
|
1987
|
+
failed: "failed";
|
|
1988
|
+
ready: "ready";
|
|
1989
|
+
queued: "queued";
|
|
1990
|
+
build: "build";
|
|
1991
|
+
install: "install";
|
|
1992
|
+
deploy: "deploy";
|
|
1993
|
+
}>;
|
|
1994
|
+
failedPhase: z.ZodOptional<z.ZodEnum<{
|
|
1995
|
+
check: "check";
|
|
1996
|
+
source: "source";
|
|
1997
|
+
failed: "failed";
|
|
1998
|
+
ready: "ready";
|
|
1999
|
+
queued: "queued";
|
|
2000
|
+
build: "build";
|
|
2001
|
+
install: "install";
|
|
2002
|
+
deploy: "deploy";
|
|
2003
|
+
}>>;
|
|
2004
|
+
updatedAt: z.ZodNumber;
|
|
2005
|
+
message: z.ZodString;
|
|
2006
|
+
}, z.core.$strip>>;
|
|
2007
|
+
logs: z.ZodString;
|
|
2008
|
+
}, z.core.$strip>;
|
|
2009
|
+
type BuildSnapshot = z.infer<typeof buildSnapshotSchema>;
|
|
2010
|
+
declare const assetPathSchema: z.ZodString;
|
|
2011
|
+
/**
|
|
2012
|
+
* Caps on a build's staged quest and catalog code. The backend decompresses and parses it in one
|
|
2013
|
+
* piece, so it stays within the 64 MiB the backend already parses from one /internal/management
|
|
2014
|
+
* request; HostingControl holds the compressed object and its base64 form in Worker memory.
|
|
2015
|
+
*
|
|
2016
|
+
* @deprecated Use `limits.stagedDeployment`, which a 1.x release can raise.
|
|
2017
|
+
*/
|
|
2018
|
+
declare const stagedDeploymentLimits: {
|
|
2019
|
+
/** Bytes of JSON, uncompressed. */
|
|
2020
|
+
readonly size: 64000000;
|
|
2021
|
+
/** Bytes of the Brotli-compressed object. */
|
|
2022
|
+
readonly compressedSize: 10000000;
|
|
2023
|
+
};
|
|
2024
|
+
/**
|
|
2025
|
+
* A build's quest releases and catalog, staged beside artifacts.json (format 2) instead of inside
|
|
2026
|
+
* it: one Brotli-compressed JSON object, `{ releases, ...catalog }`, the deployment activation
|
|
2027
|
+
* publishes. The builder stores it at `stagedDeploymentKey`; `sha256` is the compressed object's.
|
|
2028
|
+
*/
|
|
2029
|
+
declare const stagedDeploymentSchema: z.ZodObject<{
|
|
2030
|
+
encoding: z.ZodLiteral<"br">;
|
|
2031
|
+
sha256: z.ZodString;
|
|
2032
|
+
compressedSize: z.ZodNumber;
|
|
2033
|
+
size: z.ZodNumber;
|
|
2034
|
+
}, z.core.$strict>;
|
|
2035
|
+
type StagedDeployment = z.infer<typeof stagedDeploymentSchema>;
|
|
2036
|
+
/** A staged deployment on its way to activation: the reference and the object, base64. */
|
|
2037
|
+
declare const stagedDeploymentContentSchema: z.ZodObject<{
|
|
2038
|
+
encoding: z.ZodLiteral<"br">;
|
|
2039
|
+
sha256: z.ZodString;
|
|
2040
|
+
compressedSize: z.ZodNumber;
|
|
2041
|
+
size: z.ZodNumber;
|
|
2042
|
+
content: z.ZodString;
|
|
2043
|
+
}, z.core.$strict>;
|
|
2044
|
+
type StagedDeploymentContent = z.infer<typeof stagedDeploymentContentSchema>;
|
|
2045
|
+
/** Where the builder stores build `build`'s staged deployment in the artifacts bucket. */
|
|
2046
|
+
declare const stagedDeploymentKey: (build: string, sha256: string) => string;
|
|
2047
|
+
declare const buildArtifactsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2048
|
+
quests: z.ZodPipe<z.ZodOptional<z.ZodUnknown>, z.ZodTransform<unknown, unknown>>;
|
|
2049
|
+
catalog: z.ZodPipe<z.ZodOptional<z.ZodUnknown>, z.ZodTransform<unknown, unknown>>;
|
|
2050
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
2051
|
+
legacy: "legacy";
|
|
2052
|
+
transparent: "transparent";
|
|
2053
|
+
}>>;
|
|
2054
|
+
worker: z.ZodOptional<z.ZodObject<{
|
|
2055
|
+
migrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
2056
|
+
name: z.ZodString;
|
|
2057
|
+
sql: z.ZodString;
|
|
2058
|
+
}, z.core.$strict>>>>;
|
|
2059
|
+
modules: z.ZodArray<z.ZodObject<{
|
|
2060
|
+
path: z.ZodString;
|
|
2061
|
+
type: z.ZodEnum<{
|
|
2062
|
+
"application/javascript+module": "application/javascript+module";
|
|
2063
|
+
"application/wasm": "application/wasm";
|
|
2064
|
+
"text/plain": "text/plain";
|
|
2065
|
+
"application/octet-stream": "application/octet-stream";
|
|
2066
|
+
}>;
|
|
2067
|
+
content: z.ZodString;
|
|
2068
|
+
}, z.core.$strict>>;
|
|
2069
|
+
runWorkerFirst: z.ZodDefault<z.ZodBoolean>;
|
|
2070
|
+
main: z.ZodString;
|
|
2071
|
+
compatibilityDate: z.ZodString;
|
|
2072
|
+
compatibilityFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2073
|
+
vars: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2074
|
+
secrets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2075
|
+
description: z.ZodString;
|
|
2076
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2077
|
+
}, z.core.$strict>>>;
|
|
2078
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
2079
|
+
kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2080
|
+
description: z.ZodString;
|
|
2081
|
+
}, z.core.$strict>>>;
|
|
2082
|
+
sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2083
|
+
description: z.ZodString;
|
|
2084
|
+
migrations: z.ZodOptional<z.ZodString>;
|
|
2085
|
+
}, z.core.$strict>>>;
|
|
2086
|
+
}, z.core.$strict>>;
|
|
2087
|
+
schedules: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2088
|
+
every: z.ZodString;
|
|
2089
|
+
name: z.ZodString;
|
|
2090
|
+
path: z.ZodString;
|
|
2091
|
+
description: z.ZodString;
|
|
2092
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2093
|
+
cron: z.ZodString;
|
|
2094
|
+
name: z.ZodString;
|
|
2095
|
+
path: z.ZodString;
|
|
2096
|
+
description: z.ZodString;
|
|
2097
|
+
}, z.core.$strict>]>>>;
|
|
2098
|
+
}, z.core.$strict>>;
|
|
2099
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
2100
|
+
path: z.ZodString;
|
|
2101
|
+
content: z.ZodString;
|
|
2102
|
+
size: z.ZodNumber;
|
|
2103
|
+
}, z.core.$strict>>;
|
|
2104
|
+
format: z.ZodLiteral<1>;
|
|
2105
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2106
|
+
deployment: z.ZodObject<{
|
|
2107
|
+
encoding: z.ZodLiteral<"br">;
|
|
2108
|
+
sha256: z.ZodString;
|
|
2109
|
+
compressedSize: z.ZodNumber;
|
|
2110
|
+
size: z.ZodNumber;
|
|
2111
|
+
}, z.core.$strict>;
|
|
2112
|
+
images: z.ZodArray<z.ZodObject<{
|
|
2113
|
+
key: z.ZodString;
|
|
2114
|
+
sha256: z.ZodString;
|
|
2115
|
+
size: z.ZodNumber;
|
|
2116
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2117
|
+
}, z.core.$strict>>;
|
|
2118
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
2119
|
+
legacy: "legacy";
|
|
2120
|
+
transparent: "transparent";
|
|
2121
|
+
}>>;
|
|
2122
|
+
worker: z.ZodOptional<z.ZodObject<{
|
|
2123
|
+
migrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
2124
|
+
name: z.ZodString;
|
|
2125
|
+
sql: z.ZodString;
|
|
2126
|
+
}, z.core.$strict>>>>;
|
|
2127
|
+
modules: z.ZodArray<z.ZodObject<{
|
|
2128
|
+
path: z.ZodString;
|
|
2129
|
+
type: z.ZodEnum<{
|
|
2130
|
+
"application/javascript+module": "application/javascript+module";
|
|
2131
|
+
"application/wasm": "application/wasm";
|
|
2132
|
+
"text/plain": "text/plain";
|
|
2133
|
+
"application/octet-stream": "application/octet-stream";
|
|
2134
|
+
}>;
|
|
2135
|
+
content: z.ZodString;
|
|
2136
|
+
}, z.core.$strict>>;
|
|
2137
|
+
runWorkerFirst: z.ZodDefault<z.ZodBoolean>;
|
|
2138
|
+
main: z.ZodString;
|
|
2139
|
+
compatibilityDate: z.ZodString;
|
|
2140
|
+
compatibilityFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2141
|
+
vars: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2142
|
+
secrets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2143
|
+
description: z.ZodString;
|
|
2144
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2145
|
+
}, z.core.$strict>>>;
|
|
2146
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
2147
|
+
kv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2148
|
+
description: z.ZodString;
|
|
2149
|
+
}, z.core.$strict>>>;
|
|
2150
|
+
sql: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2151
|
+
description: z.ZodString;
|
|
2152
|
+
migrations: z.ZodOptional<z.ZodString>;
|
|
2153
|
+
}, z.core.$strict>>>;
|
|
2154
|
+
}, z.core.$strict>>;
|
|
2155
|
+
schedules: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2156
|
+
every: z.ZodString;
|
|
2157
|
+
name: z.ZodString;
|
|
2158
|
+
path: z.ZodString;
|
|
2159
|
+
description: z.ZodString;
|
|
2160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2161
|
+
cron: z.ZodString;
|
|
2162
|
+
name: z.ZodString;
|
|
2163
|
+
path: z.ZodString;
|
|
2164
|
+
description: z.ZodString;
|
|
2165
|
+
}, z.core.$strict>]>>>;
|
|
2166
|
+
}, z.core.$strict>>;
|
|
2167
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
2168
|
+
path: z.ZodString;
|
|
2169
|
+
content: z.ZodString;
|
|
2170
|
+
size: z.ZodNumber;
|
|
2171
|
+
}, z.core.$strict>>;
|
|
2172
|
+
format: z.ZodLiteral<2>;
|
|
2173
|
+
}, z.core.$strict>], "format">;
|
|
2174
|
+
type BuildArtifacts = z.infer<typeof buildArtifactsSchema>;
|
|
2175
|
+
|
|
1013
2176
|
/** An exact HTTPS origin, such as a hosted app's preview address. */
|
|
1014
2177
|
declare const httpsOriginSchema: z.ZodString;
|
|
1015
2178
|
/**
|
|
@@ -1103,6 +2266,7 @@ declare const identityIntegrationAppSecretSchema: z.ZodObject<{
|
|
|
1103
2266
|
name: z.ZodString;
|
|
1104
2267
|
updatedAt: z.ZodNumber;
|
|
1105
2268
|
updatedBy: z.ZodString;
|
|
2269
|
+
credential: z.ZodOptional<z.ZodType<AppSecretCredential, unknown, z.core.$ZodTypeInternals<AppSecretCredential, unknown>>>;
|
|
1106
2270
|
}, z.core.$strip>;
|
|
1107
2271
|
}, z.core.$strip>;
|
|
1108
2272
|
/** An identity integration whose new secret was stored as a hosted app secret. */
|
|
@@ -1313,5 +2477,5 @@ declare const accountVouchedBySchema: z.ZodObject<{
|
|
|
1313
2477
|
/** The app login whose server vouched for an account when it signed the member in. */
|
|
1314
2478
|
type AccountVouchedBy = z.infer<typeof accountVouchedBySchema>;
|
|
1315
2479
|
|
|
1316
|
-
export {
|
|
1317
|
-
export type {
|
|
2480
|
+
export { APP_KV_LIMIT as O, APP_MIGRATION_FILE_BYTES as Q, APP_MIGRATION_LIMIT as R, APP_MIGRATION_TOTAL_BYTES as S, APP_SECRET_LIMIT as T, APP_SQL_LIMIT as U, APP_STORAGE_CELL_CHARACTERS as V, APP_STORAGE_PREVIEW_CHARACTERS as W, APP_STORAGE_ROW_LIMIT as X, AppSecretCredentialKind as Z, AppSecretCredentialStatus as _, appSecretValueSchema as a$, appMigrationNameSchema as aS, appRoutingSchema as aT, appSecretCredentialSchema as aU, appSecretDeclarationSchema as aV, appSecretDeclarationsSchema as aW, appSecretInputSchema as aX, appSecretListSchema as aY, appSecretNameSchema as aZ, appSecretSchema as a_, projectRoleSchema as b$, appStorageCellPageSchema as b0, appStorageCellSchema as b1, appStorageKeysSchema as b2, appStorageKindSchema as b3, appStorageKvClearResultSchema as b4, appStorageKvClearSchema as b5, appStorageListSchema as b6, appStorageRowsSchema as b7, appStorageSchema as b8, appStorageSqlClearResultSchema as b9, liveAppSchema as bA, memberImportAccountSchema as bB, memberImportActionSchema as bC, memberImportCommandSchema as bD, memberImportConsentSchema as bE, memberImportCreateSchema as bF, memberImportFullRowSchema as bG, memberImportFullRowsInputSchema as bH, memberImportIdentitySchema as bI, memberImportListQuerySchema as bJ, memberImportPageSchema as bK, memberImportReferralSchema as bL, memberImportRefusalSchema as bM, memberImportRevertInputSchema as bN, memberImportRevertOutcomeSchema as bO, memberImportRevertSchema as bP, memberImportRowPageSchema as bQ, memberImportRowQuerySchema as bR, memberImportRowResultSchema as bS, memberImportRowSchema as bT, memberImportRowsInputSchema as bU, memberImportSchema as bV, memberImportSummarySchema as bW, memberImportVouchedAccountSchema as bX, permissionSchema as bY, projectPermissionSchema as bZ, projectRolePermissions as b_, appStorageSqlClearSchema as ba, appStorageTablesSchema as bb, appStorageValueBytesSchema as bc, appStorageValueSchema as bd, assetPathSchema as be, buildArtifactsSchema as bf, buildIdentitySchema as bg, buildPhaseSchema as bh, buildSnapshotSchema as bi, buildStatusSchema as bj, commitSchema as bk, compareAppMigrations as bl, createRepositorySchema as bm, customDomainInputSchema as bn, customDomainListSchema as bo, customDomainRecordSchema as bp, customDomainSchema as bq, customDomainStateSchema as br, deviceApproveSchema as bs, deviceRedeemSchema as bt, deviceStartSchema as bu, environmentSchema as bv, hostedAppSchema as bw, hostedAppSecretsSchema as bx, hostedBuildSchema as by, identityReferenceSchema as bz, MemberImportState as c, repositoryCreateSchema as c0, repositorySchema as c1, rolePermissions as c2, roleSchema as c3, stageRequestSchema as c4, stagedDeploymentContentSchema as c5, stagedDeploymentKey as c6, stagedDeploymentLimits as c7, stagedDeploymentSchema as c8, stagingAccessChangeSchema as c9, stagingAccessInputSchema as ca, stagingAccessModeSchema as cb, stagingAccessSchema as cc, stagingLinkSchema as cd, stagingPathSchema as ce, stagingServerAccessSchema as cf, stagingServerKeyCreatedSchema as cg, stagingServerKeyInputSchema as ch, stagingServerKeyListSchema as ci, stagingServerKeySchema as cj, stagingServerPathSchema as ck, MemberImportRefusalCode as d, accountVouchedBySchema as l, appLoginOriginSchema as m, httpsOriginSchema as n, identityIntegrationAccountVouchingInputSchema as o, identityIntegrationAppSecretSchema as p, identityIntegrationInputSchema as q, identityIntegrationKeySchema as r, identityIntegrationSchema as s, identityIntegrationSecretSchema as t, identityKindClaimSchema as u, participantExchangeAccountResultSchema as v, participantExchangeAccountsSchema as w, participantExchangeResultSchema as x, participantExchangeSchema as y };
|
|
2481
|
+
export type { AppSecretDeclaration as $, AppSecretCredential as A, AppStorageSqlClear as B, AppStorageSqlClearResult as C, AppStorageKvClear as D, AppStorageKvClearResult as E, AppStorageKind as F, MemberImportCreateInput as G, MemberImportListQuery as H, IdentityIntegrationKey as I, MemberImportRowQuery as J, KnownIdentityIntegrationEnvironment as K, MemberImportFullRowInput as L, MemberImportVouchedAccount as M, MemberImportRevertInput as N, ParticipantExchangeAccountResult as P, AppSecret as Y, ParticipantExchangeResult as a, AppSecretInput as a0, AppSecretList as a1, AppStorage as a2, AppStorageCell as a3, AppStorageCellPage as a4, AppStorageKeys as a5, AppStorageList as a6, AppStorageRows as a7, AppStorageTables as a8, AppStorageValue as a9, MemberImportRevert as aA, MemberImportRevertOutcome as aB, MemberImportRow as aC, MemberImportRowInput as aD, MemberImportRowResult as aE, MemberImportRowsInput as aF, MemberImportSummary as aG, Permission as aH, StagedDeployment as aI, StagedDeploymentContent as aJ, StagingAccess as aK, StagingAccessChange as aL, StagingAccessInput as aM, StagingLink as aN, StagingServerKey as aO, StagingServerKeyCreated as aP, StagingServerKeyInput as aQ, StagingServerKeyList as aR, AppStorageValueBytes as aa, BuildArtifacts as ab, BuildIdentity as ac, BuildSnapshot as ad, BuildStatus as ae, CustomDomain as af, CustomDomainRecord as ag, CustomDomainState as ah, HostedAppSecrets as ai, HostedBuild as aj, IdentityReference as ak, KnownAppSecretCredentialKind as al, KnownAppSecretCredentialStatus as am, KnownMemberImportRefusalCode as an, KnownMemberImportState as ao, KnownProjectRole as ap, LiveApp as aq, MemberImport as ar, MemberImportAccount as as, MemberImportCommandInput as at, MemberImportConsent as au, MemberImportFullRow as av, MemberImportFullRowsInput as aw, MemberImportIdentity as ax, MemberImportReferral as ay, MemberImportRefusal as az, ProjectRole as b, ProjectPermission as e, AccountVouchedBy as f, IdentityIntegration as g, IdentityIntegrationAccountVouchingInput as h, IdentityIntegrationAppSecret as i, IdentityKindClaim as j, ParticipantExchangeInput as k, KnownProjectPermission as z };
|