@domino-sdk/relay 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.d.ts +150 -21
- package/dist/server/index.js +35 -1
- package/package.json +1 -1
package/dist/server/index.d.ts
CHANGED
|
@@ -37029,6 +37029,13 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
|
|
|
37029
37029
|
color: string;
|
|
37030
37030
|
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "ingest" | "enroll")[];
|
|
37031
37031
|
environments: ("test" | "live")[];
|
|
37032
|
+
createdBy?: string | null | undefined;
|
|
37033
|
+
creator?: {
|
|
37034
|
+
id: string;
|
|
37035
|
+
name: string | null;
|
|
37036
|
+
email: string | null;
|
|
37037
|
+
avatar: string | null;
|
|
37038
|
+
} | null | undefined;
|
|
37032
37039
|
setup?: {
|
|
37033
37040
|
mode: "new" | "existing";
|
|
37034
37041
|
brief: string;
|
|
@@ -37057,6 +37064,37 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
|
|
|
37057
37064
|
color: string;
|
|
37058
37065
|
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "ingest" | "enroll")[];
|
|
37059
37066
|
environments: ("test" | "live")[];
|
|
37067
|
+
createdBy?: string | null | undefined;
|
|
37068
|
+
creator?: {
|
|
37069
|
+
id: string;
|
|
37070
|
+
name: string | null;
|
|
37071
|
+
email: string | null;
|
|
37072
|
+
avatar: string | null;
|
|
37073
|
+
} | null | undefined;
|
|
37074
|
+
setup?: {
|
|
37075
|
+
mode: "new" | "existing";
|
|
37076
|
+
brief: string;
|
|
37077
|
+
} | undefined;
|
|
37078
|
+
starter?: string | undefined;
|
|
37079
|
+
}>;
|
|
37080
|
+
updateProject: (input: z.input<typeof projectUpdateInputSchema>, call?: ManagementCallOptions) => Promise<{
|
|
37081
|
+
slug: string;
|
|
37082
|
+
id: string;
|
|
37083
|
+
organization: string;
|
|
37084
|
+
project: string;
|
|
37085
|
+
name: string;
|
|
37086
|
+
subtitle: string;
|
|
37087
|
+
initials: string;
|
|
37088
|
+
color: string;
|
|
37089
|
+
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "ingest" | "enroll")[];
|
|
37090
|
+
environments: ("test" | "live")[];
|
|
37091
|
+
createdBy?: string | null | undefined;
|
|
37092
|
+
creator?: {
|
|
37093
|
+
id: string;
|
|
37094
|
+
name: string | null;
|
|
37095
|
+
email: string | null;
|
|
37096
|
+
avatar: string | null;
|
|
37097
|
+
} | null | undefined;
|
|
37060
37098
|
setup?: {
|
|
37061
37099
|
mode: "new" | "existing";
|
|
37062
37100
|
brief: string;
|
|
@@ -37892,6 +37930,12 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
|
|
|
37892
37930
|
detail: string;
|
|
37893
37931
|
at: number;
|
|
37894
37932
|
attempt: string | null;
|
|
37933
|
+
user?: {
|
|
37934
|
+
id: string;
|
|
37935
|
+
name: string | null;
|
|
37936
|
+
email: string | null;
|
|
37937
|
+
avatar: string | null;
|
|
37938
|
+
} | null | undefined;
|
|
37895
37939
|
}[];
|
|
37896
37940
|
questCounts: Record<string, number>;
|
|
37897
37941
|
}>;
|
|
@@ -39393,9 +39437,6 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
|
|
|
39393
39437
|
profile: {
|
|
39394
39438
|
id: string;
|
|
39395
39439
|
name: string;
|
|
39396
|
-
hidden: boolean;
|
|
39397
|
-
visibility: "private" | "participants" | "public";
|
|
39398
|
-
locked: boolean;
|
|
39399
39440
|
avatar: {
|
|
39400
39441
|
source: "upload";
|
|
39401
39442
|
url: string;
|
|
@@ -39409,6 +39450,9 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
|
|
|
39409
39450
|
source: "generated";
|
|
39410
39451
|
seed: string;
|
|
39411
39452
|
};
|
|
39453
|
+
hidden: boolean;
|
|
39454
|
+
visibility: "private" | "participants" | "public";
|
|
39455
|
+
locked: boolean;
|
|
39412
39456
|
displayName: string | null;
|
|
39413
39457
|
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
39414
39458
|
avatarProvider: "discord" | "x" | "google" | null;
|
|
@@ -39662,9 +39706,6 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
|
|
|
39662
39706
|
}, call?: ManagementCallOptions) => Promise<{
|
|
39663
39707
|
id: string;
|
|
39664
39708
|
name: string;
|
|
39665
|
-
hidden: boolean;
|
|
39666
|
-
visibility: "private" | "participants" | "public";
|
|
39667
|
-
locked: boolean;
|
|
39668
39709
|
avatar: {
|
|
39669
39710
|
source: "upload";
|
|
39670
39711
|
url: string;
|
|
@@ -39678,6 +39719,9 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
|
|
|
39678
39719
|
source: "generated";
|
|
39679
39720
|
seed: string;
|
|
39680
39721
|
};
|
|
39722
|
+
hidden: boolean;
|
|
39723
|
+
visibility: "private" | "participants" | "public";
|
|
39724
|
+
locked: boolean;
|
|
39681
39725
|
displayName: string | null;
|
|
39682
39726
|
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
39683
39727
|
avatarProvider: "discord" | "x" | "google" | null;
|
|
@@ -40320,8 +40364,22 @@ declare const projectSetupSchema: z.ZodObject<{
|
|
|
40320
40364
|
}>;
|
|
40321
40365
|
brief: z.ZodString;
|
|
40322
40366
|
}, z.core.$strict>;
|
|
40367
|
+
declare const operatorUserSchema: z.ZodObject<{
|
|
40368
|
+
id: z.ZodString;
|
|
40369
|
+
name: z.ZodNullable<z.ZodString>;
|
|
40370
|
+
email: z.ZodNullable<z.ZodString>;
|
|
40371
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
40372
|
+
}, z.core.$strip>;
|
|
40373
|
+
type OperatorUser = z.infer<typeof operatorUserSchema>;
|
|
40323
40374
|
declare const projectSchema: z.ZodObject<{
|
|
40324
40375
|
slug: z.ZodString;
|
|
40376
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40377
|
+
creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40378
|
+
id: z.ZodString;
|
|
40379
|
+
name: z.ZodNullable<z.ZodString>;
|
|
40380
|
+
email: z.ZodNullable<z.ZodString>;
|
|
40381
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
40382
|
+
}, z.core.$strip>>>;
|
|
40325
40383
|
setup: z.ZodOptional<z.ZodObject<{
|
|
40326
40384
|
mode: z.ZodEnum<{
|
|
40327
40385
|
new: "new";
|
|
@@ -40363,6 +40421,13 @@ declare const projectInputSchema: z.ZodObject<{
|
|
|
40363
40421
|
api: "api";
|
|
40364
40422
|
}>>;
|
|
40365
40423
|
}, z.core.$strict>;
|
|
40424
|
+
/** Whole-project settings. Slug changes require the current name as confirmation. */
|
|
40425
|
+
declare const projectUpdateInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
40426
|
+
name: z.ZodString;
|
|
40427
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40428
|
+
slug: z.ZodString;
|
|
40429
|
+
confirm: z.ZodString;
|
|
40430
|
+
}, z.core.$strict>]>;
|
|
40366
40431
|
/** Deleting a project: `confirm` repeats its name, so a stale tab cannot delete the wrong one. */
|
|
40367
40432
|
declare const projectDeletionInputSchema: z.ZodObject<{
|
|
40368
40433
|
confirm: z.ZodString;
|
|
@@ -40517,6 +40582,13 @@ declare const accessSchema: z.ZodObject<{
|
|
|
40517
40582
|
local: z.ZodBoolean;
|
|
40518
40583
|
projects: z.ZodArray<z.ZodObject<{
|
|
40519
40584
|
slug: z.ZodString;
|
|
40585
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40586
|
+
creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40587
|
+
id: z.ZodString;
|
|
40588
|
+
name: z.ZodNullable<z.ZodString>;
|
|
40589
|
+
email: z.ZodNullable<z.ZodString>;
|
|
40590
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
40591
|
+
}, z.core.$strip>>>;
|
|
40520
40592
|
setup: z.ZodOptional<z.ZodObject<{
|
|
40521
40593
|
mode: z.ZodEnum<{
|
|
40522
40594
|
new: "new";
|
|
@@ -40692,6 +40764,12 @@ declare const auditRecordSchema: z.ZodObject<{
|
|
|
40692
40764
|
id: z.ZodString;
|
|
40693
40765
|
action: z.ZodString;
|
|
40694
40766
|
actor: z.ZodNullable<z.ZodString>;
|
|
40767
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40768
|
+
id: z.ZodString;
|
|
40769
|
+
name: z.ZodNullable<z.ZodString>;
|
|
40770
|
+
email: z.ZodNullable<z.ZodString>;
|
|
40771
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
40772
|
+
}, z.core.$strip>>>;
|
|
40695
40773
|
detail: z.ZodString;
|
|
40696
40774
|
at: z.ZodNumber;
|
|
40697
40775
|
attempt: z.ZodNullable<z.ZodString>;
|
|
@@ -41413,6 +41491,12 @@ declare const pageSchema: z.ZodObject<{
|
|
|
41413
41491
|
id: z.ZodString;
|
|
41414
41492
|
action: z.ZodString;
|
|
41415
41493
|
actor: z.ZodNullable<z.ZodString>;
|
|
41494
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41495
|
+
id: z.ZodString;
|
|
41496
|
+
name: z.ZodNullable<z.ZodString>;
|
|
41497
|
+
email: z.ZodNullable<z.ZodString>;
|
|
41498
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
41499
|
+
}, z.core.$strip>>>;
|
|
41416
41500
|
detail: z.ZodString;
|
|
41417
41501
|
at: z.ZodNumber;
|
|
41418
41502
|
attempt: z.ZodNullable<z.ZodString>;
|
|
@@ -42899,13 +42983,6 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
42899
42983
|
profile: z.ZodNullable<z.ZodObject<{
|
|
42900
42984
|
id: z.ZodString;
|
|
42901
42985
|
name: z.ZodString;
|
|
42902
|
-
hidden: z.ZodBoolean;
|
|
42903
|
-
visibility: z.ZodEnum<{
|
|
42904
|
-
private: "private";
|
|
42905
|
-
participants: "participants";
|
|
42906
|
-
public: "public";
|
|
42907
|
-
}>;
|
|
42908
|
-
locked: z.ZodBoolean;
|
|
42909
42986
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42910
42987
|
source: z.ZodLiteral<"upload">;
|
|
42911
42988
|
url: z.ZodString;
|
|
@@ -42923,6 +43000,13 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
42923
43000
|
source: z.ZodLiteral<"generated">;
|
|
42924
43001
|
seed: z.ZodString;
|
|
42925
43002
|
}, z.core.$strip>], "source">;
|
|
43003
|
+
hidden: z.ZodBoolean;
|
|
43004
|
+
visibility: z.ZodEnum<{
|
|
43005
|
+
private: "private";
|
|
43006
|
+
participants: "participants";
|
|
43007
|
+
public: "public";
|
|
43008
|
+
}>;
|
|
43009
|
+
locked: z.ZodBoolean;
|
|
42926
43010
|
displayName: z.ZodNullable<z.ZodString>;
|
|
42927
43011
|
avatarChoice: z.ZodEnum<{
|
|
42928
43012
|
default: "default";
|
|
@@ -43055,7 +43139,8 @@ type ManagementClientOptions = {
|
|
|
43055
43139
|
type ManagementRawInit = RequestInit & {
|
|
43056
43140
|
timeout?: number;
|
|
43057
43141
|
};
|
|
43058
|
-
type ManagementClient = Omit<ReturnType<typeof createManagementClient>, "testMembers" | "storage"> & {
|
|
43142
|
+
type ManagementClient = Omit<ReturnType<typeof createManagementClient>, "testMembers" | "storage" | "updateProject"> & {
|
|
43143
|
+
updateProject?: ReturnType<typeof createManagementClient>["updateProject"];
|
|
43059
43144
|
testMembers?: Omit<ReturnType<typeof createManagementClient>["testMembers"], "history" | "advance"> & {
|
|
43060
43145
|
advance?: ReturnType<typeof createManagementClient>["testMembers"]["advance"];
|
|
43061
43146
|
history?: ReturnType<typeof createManagementClient>["testMembers"]["history"];
|
|
@@ -78859,6 +78944,13 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
78859
78944
|
color: string;
|
|
78860
78945
|
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "ingest" | "enroll")[];
|
|
78861
78946
|
environments: ("test" | "live")[];
|
|
78947
|
+
createdBy?: string | null | undefined;
|
|
78948
|
+
creator?: {
|
|
78949
|
+
id: string;
|
|
78950
|
+
name: string | null;
|
|
78951
|
+
email: string | null;
|
|
78952
|
+
avatar: string | null;
|
|
78953
|
+
} | null | undefined;
|
|
78862
78954
|
setup?: {
|
|
78863
78955
|
mode: "new" | "existing";
|
|
78864
78956
|
brief: string;
|
|
@@ -78877,6 +78969,37 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
78877
78969
|
color: string;
|
|
78878
78970
|
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "ingest" | "enroll")[];
|
|
78879
78971
|
environments: ("test" | "live")[];
|
|
78972
|
+
createdBy?: string | null | undefined;
|
|
78973
|
+
creator?: {
|
|
78974
|
+
id: string;
|
|
78975
|
+
name: string | null;
|
|
78976
|
+
email: string | null;
|
|
78977
|
+
avatar: string | null;
|
|
78978
|
+
} | null | undefined;
|
|
78979
|
+
setup?: {
|
|
78980
|
+
mode: "new" | "existing";
|
|
78981
|
+
brief: string;
|
|
78982
|
+
} | undefined;
|
|
78983
|
+
starter?: string | undefined;
|
|
78984
|
+
}>;
|
|
78985
|
+
updateProject: (input: z.input<typeof projectUpdateInputSchema>, call?: ManagementCallOptions) => Promise<{
|
|
78986
|
+
slug: string;
|
|
78987
|
+
id: string;
|
|
78988
|
+
organization: string;
|
|
78989
|
+
project: string;
|
|
78990
|
+
name: string;
|
|
78991
|
+
subtitle: string;
|
|
78992
|
+
initials: string;
|
|
78993
|
+
color: string;
|
|
78994
|
+
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "ingest" | "enroll")[];
|
|
78995
|
+
environments: ("test" | "live")[];
|
|
78996
|
+
createdBy?: string | null | undefined;
|
|
78997
|
+
creator?: {
|
|
78998
|
+
id: string;
|
|
78999
|
+
name: string | null;
|
|
79000
|
+
email: string | null;
|
|
79001
|
+
avatar: string | null;
|
|
79002
|
+
} | null | undefined;
|
|
78880
79003
|
setup?: {
|
|
78881
79004
|
mode: "new" | "existing";
|
|
78882
79005
|
brief: string;
|
|
@@ -79742,6 +79865,12 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
79742
79865
|
detail: string;
|
|
79743
79866
|
at: number;
|
|
79744
79867
|
attempt: string | null;
|
|
79868
|
+
user?: {
|
|
79869
|
+
id: string;
|
|
79870
|
+
name: string | null;
|
|
79871
|
+
email: string | null;
|
|
79872
|
+
avatar: string | null;
|
|
79873
|
+
} | null | undefined;
|
|
79745
79874
|
}[];
|
|
79746
79875
|
questCounts: Record<string, number>;
|
|
79747
79876
|
}>;
|
|
@@ -81248,9 +81377,6 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
81248
81377
|
profile: {
|
|
81249
81378
|
id: string;
|
|
81250
81379
|
name: string;
|
|
81251
|
-
hidden: boolean;
|
|
81252
|
-
visibility: "private" | "participants" | "public";
|
|
81253
|
-
locked: boolean;
|
|
81254
81380
|
avatar: {
|
|
81255
81381
|
source: "upload";
|
|
81256
81382
|
url: string;
|
|
@@ -81264,6 +81390,9 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
81264
81390
|
source: "generated";
|
|
81265
81391
|
seed: string;
|
|
81266
81392
|
};
|
|
81393
|
+
hidden: boolean;
|
|
81394
|
+
visibility: "private" | "participants" | "public";
|
|
81395
|
+
locked: boolean;
|
|
81267
81396
|
displayName: string | null;
|
|
81268
81397
|
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
81269
81398
|
avatarProvider: "discord" | "x" | "google" | null;
|
|
@@ -81553,9 +81682,6 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
81553
81682
|
moderate: (member: string, input: CreationInput<z.input<typeof profileModerationSchema>>, call?: ManagementCallOptions) => Promise<{
|
|
81554
81683
|
id: string;
|
|
81555
81684
|
name: string;
|
|
81556
|
-
hidden: boolean;
|
|
81557
|
-
visibility: "private" | "participants" | "public";
|
|
81558
|
-
locked: boolean;
|
|
81559
81685
|
avatar: {
|
|
81560
81686
|
source: "upload";
|
|
81561
81687
|
url: string;
|
|
@@ -81569,6 +81695,9 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
81569
81695
|
source: "generated";
|
|
81570
81696
|
seed: string;
|
|
81571
81697
|
};
|
|
81698
|
+
hidden: boolean;
|
|
81699
|
+
visibility: "private" | "participants" | "public";
|
|
81700
|
+
locked: boolean;
|
|
81572
81701
|
displayName: string | null;
|
|
81573
81702
|
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
81574
81703
|
avatarProvider: "discord" | "x" | "google" | null;
|
|
@@ -82213,4 +82342,4 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
82213
82342
|
}>;
|
|
82214
82343
|
};
|
|
82215
82344
|
|
|
82216
|
-
export { APP_KV_LIMIT, APP_MIGRATION_FILE_BYTES, APP_MIGRATION_LIMIT, APP_MIGRATION_TOTAL_BYTES, APP_SECRET_LIMIT, APP_SQL_LIMIT, APP_STORAGE_PREVIEW_CHARACTERS, APP_STORAGE_ROW_LIMIT, type Access, type AppSecret, type AppSecretDeclaration, type AppSecretInput, type AppSecretList, type AppStorage, type AppStorageCell, type AppStorageKeys, type AppStorageKind, type AppStorageList, type AppStorageRows, type AppStorageTables, type AppStorageValue, type AuditRecord, type BalanceCheck, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type CompletionRevocation, type CompletionRevokeInput, DEFAULT_MANAGEMENT_TIMEOUT, type HostedAppSecrets, type HostedBuild, type HostedDeploymentKey, type HostedKey, type HostedKeyPermission, type HostedManagementEnv, type ListQuery, type ManagedMemberIdentity, type ManagedOAuthAccount, type ManagedResource, type ManagedWallet, type ManagementCallOptions, type ManagementClient, type ManagementClientOptions, ManagementError, ManagementErrorCode, type ManagementErrorInit, type ManagementErrorKind, type ManagementPage, type ManagementRawInit, type ParticipantSignIn, type ParticipantSignInInput, type Permission, type Person, type Project, type QuestLifecycle, type QuestLifecycleInput, type ResourceLifecycleInput, RevokedDeliveryOutcome, RevokedEntitlementOutcome, RevokedReferralOutcome, type StagedDeployment, type StagedDeploymentContent, type StagingAccess, type StagingAccessInput, type StagingLink, type StarterId, type StarterTemplate, type TestMember, type TestMemberActionInput, type TestMemberAdvanceInput, type TestMemberCreateInput, type TestMemberHistory, type TestMemberHistoryQuery, type TestMemberResetInput, type TestMemberResetResult, WEBHOOK_MAX_BYTES, type WalletBalanceChains, type WebhookEvent, accessSchema, accountProfileSchema, appMigrationNameSchema, appRoutingSchema, appSecretDeclarationSchema, appSecretDeclarationsSchema, appSecretInputSchema, appSecretListSchema, appSecretNameSchema, appSecretSchema, appSecretValueSchema, appStorageCellSchema, appStorageKeysSchema, appStorageKindSchema, appStorageListSchema, appStorageRowsSchema, appStorageSchema, appStorageTablesSchema, appStorageValueSchema, assetPathSchema, auditRecordSchema, balanceCheckSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, compareAppMigrations, completionRevocationSchema, completionRevokeSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, entitlementCorrectionSchema, environmentSchema, grantRecordSchema, grantSchema, hostedAppSchema, hostedAppSecretsSchema, hostedBuildSchema, hostedDeploymentKeySchema, hostedKeyPermissions, hostedKeySchema, hostedKeySecretSchema, hostedManagementBindings, hostedManagementClient, ingestTrackerScopeSchema, inventorySchema, isManagementError, issuedTokenSchema, managedMemberIdentitySchema, managedOAuthAccountSchema, managedResourceSchema, managedWalletSchema, memberAccountSchema, memberDetailSchema, memberIdentityChangeInputSchema, memberLookupSchema, memberOAuthUnlinkInputSchema, memberSchema, memberWalletSignInInputSchema, memberWalletUnlinkInputSchema, metricsSchema, operationInputSchema, operationSchema, pageSchema, participantSignInInputSchema, participantSignInSchema, permissionSchema, personSchema, projectDeletionInputSchema, projectDeletionSchema, projectInputSchema, projectSchema, projectSetupSchema, projectTransferInputSchema, projectTransferSchema, querySchema, questLifecycleInputSchema, questLifecycleSchema, readinessSchema, repositorySchema, resourceLifecycleInputSchema, resourceLifecycleKindSchema, resourceLifecycleResultSchema, rolePermissions, roleSchema, stageRequestSchema, stagedDeploymentContentSchema, stagedDeploymentKey, stagedDeploymentLimits, stagedDeploymentSchema, stagingAccessInputSchema, stagingAccessModeSchema, stagingAccessSchema, stagingLinkSchema, stagingPathSchema, starterIdSchema, starterTemplates, stockAdditionSchema, stockInputSchema, teamSchema, testMemberActionSchema, testMemberAdvanceSchema, testMemberCreateSchema, testMemberHistoryQuerySchema, testMemberHistorySchema, testMemberResetResultSchema, testMemberResetSchema, testMemberSchema, tokenInputSchema, tokenSchema, tokenScopeInputSchema, verifiedPassSchema, verifyWebhook, walletBalanceChainsSchema, webhookDeliveryPageSchema, webhookDeliverySchema, webhookEndpointSchema, webhookEventSchema, webhookInputSchema, webhookQuerySchema, webhookSecretSchema, webhookUpdateSchema };
|
|
82345
|
+
export { APP_KV_LIMIT, APP_MIGRATION_FILE_BYTES, APP_MIGRATION_LIMIT, APP_MIGRATION_TOTAL_BYTES, APP_SECRET_LIMIT, APP_SQL_LIMIT, APP_STORAGE_PREVIEW_CHARACTERS, APP_STORAGE_ROW_LIMIT, type Access, type AppSecret, type AppSecretDeclaration, type AppSecretInput, type AppSecretList, type AppStorage, type AppStorageCell, type AppStorageKeys, type AppStorageKind, type AppStorageList, type AppStorageRows, type AppStorageTables, type AppStorageValue, type AuditRecord, type BalanceCheck, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type CompletionRevocation, type CompletionRevokeInput, DEFAULT_MANAGEMENT_TIMEOUT, type HostedAppSecrets, type HostedBuild, type HostedDeploymentKey, type HostedKey, type HostedKeyPermission, type HostedManagementEnv, type ListQuery, type ManagedMemberIdentity, type ManagedOAuthAccount, type ManagedResource, type ManagedWallet, type ManagementCallOptions, type ManagementClient, type ManagementClientOptions, ManagementError, ManagementErrorCode, type ManagementErrorInit, type ManagementErrorKind, type ManagementPage, type ManagementRawInit, type OperatorUser, type ParticipantSignIn, type ParticipantSignInInput, type Permission, type Person, type Project, type QuestLifecycle, type QuestLifecycleInput, type ResourceLifecycleInput, RevokedDeliveryOutcome, RevokedEntitlementOutcome, RevokedReferralOutcome, type StagedDeployment, type StagedDeploymentContent, type StagingAccess, type StagingAccessInput, type StagingLink, type StarterId, type StarterTemplate, type TestMember, type TestMemberActionInput, type TestMemberAdvanceInput, type TestMemberCreateInput, type TestMemberHistory, type TestMemberHistoryQuery, type TestMemberResetInput, type TestMemberResetResult, WEBHOOK_MAX_BYTES, type WalletBalanceChains, type WebhookEvent, accessSchema, accountProfileSchema, appMigrationNameSchema, appRoutingSchema, appSecretDeclarationSchema, appSecretDeclarationsSchema, appSecretInputSchema, appSecretListSchema, appSecretNameSchema, appSecretSchema, appSecretValueSchema, appStorageCellSchema, appStorageKeysSchema, appStorageKindSchema, appStorageListSchema, appStorageRowsSchema, appStorageSchema, appStorageTablesSchema, appStorageValueSchema, assetPathSchema, auditRecordSchema, balanceCheckSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, compareAppMigrations, completionRevocationSchema, completionRevokeSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, entitlementCorrectionSchema, environmentSchema, grantRecordSchema, grantSchema, hostedAppSchema, hostedAppSecretsSchema, hostedBuildSchema, hostedDeploymentKeySchema, hostedKeyPermissions, hostedKeySchema, hostedKeySecretSchema, hostedManagementBindings, hostedManagementClient, ingestTrackerScopeSchema, inventorySchema, isManagementError, issuedTokenSchema, managedMemberIdentitySchema, managedOAuthAccountSchema, managedResourceSchema, managedWalletSchema, memberAccountSchema, memberDetailSchema, memberIdentityChangeInputSchema, memberLookupSchema, memberOAuthUnlinkInputSchema, memberSchema, memberWalletSignInInputSchema, memberWalletUnlinkInputSchema, metricsSchema, operationInputSchema, operationSchema, operatorUserSchema, pageSchema, participantSignInInputSchema, participantSignInSchema, permissionSchema, personSchema, projectDeletionInputSchema, projectDeletionSchema, projectInputSchema, projectSchema, projectSetupSchema, projectTransferInputSchema, projectTransferSchema, projectUpdateInputSchema, querySchema, questLifecycleInputSchema, questLifecycleSchema, readinessSchema, repositorySchema, resourceLifecycleInputSchema, resourceLifecycleKindSchema, resourceLifecycleResultSchema, rolePermissions, roleSchema, stageRequestSchema, stagedDeploymentContentSchema, stagedDeploymentKey, stagedDeploymentLimits, stagedDeploymentSchema, stagingAccessInputSchema, stagingAccessModeSchema, stagingAccessSchema, stagingLinkSchema, stagingPathSchema, starterIdSchema, starterTemplates, stockAdditionSchema, stockInputSchema, teamSchema, testMemberActionSchema, testMemberAdvanceSchema, testMemberCreateSchema, testMemberHistoryQuerySchema, testMemberHistorySchema, testMemberResetResultSchema, testMemberResetSchema, testMemberSchema, tokenInputSchema, tokenSchema, tokenScopeInputSchema, verifiedPassSchema, verifyWebhook, walletBalanceChainsSchema, webhookDeliveryPageSchema, webhookDeliverySchema, webhookEndpointSchema, webhookEventSchema, webhookInputSchema, webhookQuerySchema, webhookSecretSchema, webhookUpdateSchema };
|
package/dist/server/index.js
CHANGED
|
@@ -955,8 +955,16 @@ var projectSetupSchema = z8.object({
|
|
|
955
955
|
mode: z8.enum(["new", "existing"]),
|
|
956
956
|
brief: z8.string().trim().min(1).max(4e3)
|
|
957
957
|
}).strict();
|
|
958
|
+
var operatorUserSchema = z8.object({
|
|
959
|
+
id: z8.string(),
|
|
960
|
+
name: z8.string().nullable(),
|
|
961
|
+
email: z8.string().nullable(),
|
|
962
|
+
avatar: z8.string().nullable()
|
|
963
|
+
});
|
|
958
964
|
var projectSchema = z8.object({
|
|
959
965
|
slug: z8.string().min(1).max(35).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
|
|
966
|
+
createdBy: z8.string().nullable().optional(),
|
|
967
|
+
creator: operatorUserSchema.nullable().optional(),
|
|
960
968
|
/** A response, so fields a newer server adds to the setup are dropped, not rejected. */
|
|
961
969
|
setup: z8.object(projectSetupSchema.shape).optional(),
|
|
962
970
|
/** The starter chosen at setup. A plain string, so later starters still parse. */
|
|
@@ -970,7 +978,13 @@ var projectSchema = z8.object({
|
|
|
970
978
|
color: z8.string(),
|
|
971
979
|
permissions: permissionListSchema,
|
|
972
980
|
environments: z8.array(environmentSchema)
|
|
973
|
-
})
|
|
981
|
+
}).refine(
|
|
982
|
+
(project) => !project.creator || project.creator.id === project.createdBy,
|
|
983
|
+
{
|
|
984
|
+
message: "Creator profile must match the recorded creator",
|
|
985
|
+
path: ["creator"]
|
|
986
|
+
}
|
|
987
|
+
);
|
|
974
988
|
var projectInputSchema = z8.object({
|
|
975
989
|
actionId: identifier,
|
|
976
990
|
name: z8.string().trim().min(1).max(80),
|
|
@@ -978,6 +992,13 @@ var projectInputSchema = z8.object({
|
|
|
978
992
|
/** The starter a new hosted app begins from, with `setup.mode` "new". */
|
|
979
993
|
starter: starterIdSchema.optional()
|
|
980
994
|
}).strict();
|
|
995
|
+
var projectUpdateInputSchema = z8.union([
|
|
996
|
+
z8.object({ name: projectInputSchema.shape.name }).strict(),
|
|
997
|
+
z8.object({
|
|
998
|
+
slug: projectSchema.shape.slug,
|
|
999
|
+
confirm: z8.string().min(1).max(80)
|
|
1000
|
+
}).strict()
|
|
1001
|
+
]);
|
|
981
1002
|
var projectDeletionInputSchema = z8.object({ confirm: z8.string().min(1).max(80) }).strict();
|
|
982
1003
|
var projectDeletionSchema = z8.object({
|
|
983
1004
|
project: identifier,
|
|
@@ -1182,9 +1203,13 @@ var auditRecordSchema = z8.object({
|
|
|
1182
1203
|
id: z8.string(),
|
|
1183
1204
|
action: z8.string(),
|
|
1184
1205
|
actor: z8.string().nullable(),
|
|
1206
|
+
user: operatorUserSchema.nullable().optional(),
|
|
1185
1207
|
detail: z8.string(),
|
|
1186
1208
|
at: z8.number(),
|
|
1187
1209
|
attempt: z8.string().nullable()
|
|
1210
|
+
}).refine((record) => !record.user || record.user.id === record.actor, {
|
|
1211
|
+
message: "User profile must match the recorded actor",
|
|
1212
|
+
path: ["user"]
|
|
1188
1213
|
});
|
|
1189
1214
|
var pageSchema = z8.object({
|
|
1190
1215
|
snapshot: snapshotSchema,
|
|
@@ -2143,6 +2168,13 @@ function createManagementClient(options) {
|
|
|
2143
2168
|
readiness: (call) => get("/readiness", readinessSchema, call),
|
|
2144
2169
|
access: (call) => get("/access", accessSchema, call),
|
|
2145
2170
|
createProject: (input, call) => create("/projects", projectSchema, projectInputSchema, input, call),
|
|
2171
|
+
updateProject: (input, call) => request(
|
|
2172
|
+
"/project",
|
|
2173
|
+
projectSchema,
|
|
2174
|
+
projectUpdateInputSchema.parse(input),
|
|
2175
|
+
"PATCH",
|
|
2176
|
+
call
|
|
2177
|
+
),
|
|
2146
2178
|
/** Delete the client's current project. Domino support can restore it for 30 days. */
|
|
2147
2179
|
deleteProject: (input, call) => request(
|
|
2148
2180
|
"/project",
|
|
@@ -2749,6 +2781,7 @@ export {
|
|
|
2749
2781
|
metricsSchema,
|
|
2750
2782
|
operationInputSchema,
|
|
2751
2783
|
operationSchema,
|
|
2784
|
+
operatorUserSchema,
|
|
2752
2785
|
pageSchema,
|
|
2753
2786
|
participantSignInInputSchema,
|
|
2754
2787
|
participantSignInSchema,
|
|
@@ -2761,6 +2794,7 @@ export {
|
|
|
2761
2794
|
projectSetupSchema,
|
|
2762
2795
|
projectTransferInputSchema,
|
|
2763
2796
|
projectTransferSchema,
|
|
2797
|
+
projectUpdateInputSchema,
|
|
2764
2798
|
querySchema,
|
|
2765
2799
|
questLifecycleInputSchema,
|
|
2766
2800
|
questLifecycleSchema,
|