@domino-sdk/relay 1.3.0 → 1.5.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.
@@ -16,6 +16,8 @@ declare const testMemberSchema: z.ZodObject<{
16
16
  id: z.ZodString;
17
17
  name: z.ZodString;
18
18
  test: z.ZodLiteral<true>;
19
+ today: z.ZodOptional<z.ZodISODate>;
20
+ offsetDays: z.ZodOptional<z.ZodNumber>;
19
21
  }, z.core.$strip>;
20
22
  declare const testMemberCreateSchema: z.ZodObject<{
21
23
  actionId: z.ZodString;
@@ -45,6 +47,10 @@ declare const testMemberActionSchema: z.ZodObject<{
45
47
  declare const testMemberResetSchema: z.ZodObject<{
46
48
  actionId: z.ZodString;
47
49
  }, z.core.$strict>;
50
+ declare const testMemberAdvanceSchema: z.ZodObject<{
51
+ actionId: z.ZodString;
52
+ days: z.ZodNumber;
53
+ }, z.core.$strict>;
48
54
  declare const testMemberResetResultSchema: z.ZodObject<{
49
55
  member: z.ZodString;
50
56
  deleted: z.ZodLiteral<true>;
@@ -53,6 +59,7 @@ type TestMember = z.infer<typeof testMemberSchema>;
53
59
  type TestMemberCreateInput = z.input<typeof testMemberCreateSchema>;
54
60
  type TestMemberActionInput = z.input<typeof testMemberActionSchema>;
55
61
  type TestMemberResetInput = z.input<typeof testMemberResetSchema>;
62
+ type TestMemberAdvanceInput = z.input<typeof testMemberAdvanceSchema>;
56
63
  type TestMemberResetResult = z.infer<typeof testMemberResetResultSchema>;
57
64
  declare const testMemberHistoryQuerySchema: z.ZodObject<{
58
65
  since: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -37022,6 +37029,13 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
37022
37029
  color: string;
37023
37030
  permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "ingest" | "enroll")[];
37024
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;
37025
37039
  setup?: {
37026
37040
  mode: "new" | "existing";
37027
37041
  brief: string;
@@ -37050,6 +37064,37 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
37050
37064
  color: string;
37051
37065
  permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "ingest" | "enroll")[];
37052
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;
37053
37098
  setup?: {
37054
37099
  mode: "new" | "existing";
37055
37100
  brief: string;
@@ -37885,6 +37930,12 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
37885
37930
  detail: string;
37886
37931
  at: number;
37887
37932
  attempt: string | null;
37933
+ user?: {
37934
+ id: string;
37935
+ name: string | null;
37936
+ email: string | null;
37937
+ avatar: string | null;
37938
+ } | null | undefined;
37888
37939
  }[];
37889
37940
  questCounts: Record<string, number>;
37890
37941
  }>;
@@ -38062,11 +38113,15 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
38062
38113
  id: string;
38063
38114
  name: string;
38064
38115
  test: true;
38116
+ today?: string | undefined;
38117
+ offsetDays?: number | undefined;
38065
38118
  }>;
38066
38119
  list: (call?: ManagementCallOptions) => Promise<{
38067
38120
  id: string;
38068
38121
  name: string;
38069
38122
  test: true;
38123
+ today?: string | undefined;
38124
+ offsetDays?: number | undefined;
38070
38125
  }[]>;
38071
38126
  history: (member: string, query?: TestMemberHistoryQuery, call?: ManagementCallOptions) => Promise<{
38072
38127
  attempts: {
@@ -38211,6 +38266,13 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
38211
38266
  value: string;
38212
38267
  } | undefined;
38213
38268
  }>;
38269
+ advance: (member: string, input: TestMemberAdvanceInput, call?: ManagementCallOptions) => Promise<{
38270
+ id: string;
38271
+ name: string;
38272
+ test: true;
38273
+ today?: string | undefined;
38274
+ offsetDays?: number | undefined;
38275
+ }>;
38214
38276
  reset: (member: string, input: TestMemberResetInput, call?: ManagementCallOptions) => Promise<{
38215
38277
  member: string;
38216
38278
  deleted: true;
@@ -39375,9 +39437,6 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
39375
39437
  profile: {
39376
39438
  id: string;
39377
39439
  name: string;
39378
- hidden: boolean;
39379
- visibility: "private" | "participants" | "public";
39380
- locked: boolean;
39381
39440
  avatar: {
39382
39441
  source: "upload";
39383
39442
  url: string;
@@ -39391,6 +39450,9 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
39391
39450
  source: "generated";
39392
39451
  seed: string;
39393
39452
  };
39453
+ hidden: boolean;
39454
+ visibility: "private" | "participants" | "public";
39455
+ locked: boolean;
39394
39456
  displayName: string | null;
39395
39457
  avatarChoice: "default" | "account" | "upload" | "generated";
39396
39458
  avatarProvider: "discord" | "x" | "google" | null;
@@ -39644,9 +39706,6 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
39644
39706
  }, call?: ManagementCallOptions) => Promise<{
39645
39707
  id: string;
39646
39708
  name: string;
39647
- hidden: boolean;
39648
- visibility: "private" | "participants" | "public";
39649
- locked: boolean;
39650
39709
  avatar: {
39651
39710
  source: "upload";
39652
39711
  url: string;
@@ -39660,6 +39719,9 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
39660
39719
  source: "generated";
39661
39720
  seed: string;
39662
39721
  };
39722
+ hidden: boolean;
39723
+ visibility: "private" | "participants" | "public";
39724
+ locked: boolean;
39663
39725
  displayName: string | null;
39664
39726
  avatarChoice: "default" | "account" | "upload" | "generated";
39665
39727
  avatarProvider: "discord" | "x" | "google" | null;
@@ -40302,8 +40364,22 @@ declare const projectSetupSchema: z.ZodObject<{
40302
40364
  }>;
40303
40365
  brief: z.ZodString;
40304
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>;
40305
40374
  declare const projectSchema: z.ZodObject<{
40306
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>>>;
40307
40383
  setup: z.ZodOptional<z.ZodObject<{
40308
40384
  mode: z.ZodEnum<{
40309
40385
  new: "new";
@@ -40345,6 +40421,13 @@ declare const projectInputSchema: z.ZodObject<{
40345
40421
  api: "api";
40346
40422
  }>>;
40347
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>]>;
40348
40431
  /** Deleting a project: `confirm` repeats its name, so a stale tab cannot delete the wrong one. */
40349
40432
  declare const projectDeletionInputSchema: z.ZodObject<{
40350
40433
  confirm: z.ZodString;
@@ -40499,6 +40582,13 @@ declare const accessSchema: z.ZodObject<{
40499
40582
  local: z.ZodBoolean;
40500
40583
  projects: z.ZodArray<z.ZodObject<{
40501
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>>>;
40502
40592
  setup: z.ZodOptional<z.ZodObject<{
40503
40593
  mode: z.ZodEnum<{
40504
40594
  new: "new";
@@ -40674,6 +40764,12 @@ declare const auditRecordSchema: z.ZodObject<{
40674
40764
  id: z.ZodString;
40675
40765
  action: z.ZodString;
40676
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>>>;
40677
40773
  detail: z.ZodString;
40678
40774
  at: z.ZodNumber;
40679
40775
  attempt: z.ZodNullable<z.ZodString>;
@@ -41395,6 +41491,12 @@ declare const pageSchema: z.ZodObject<{
41395
41491
  id: z.ZodString;
41396
41492
  action: z.ZodString;
41397
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>>>;
41398
41500
  detail: z.ZodString;
41399
41501
  at: z.ZodNumber;
41400
41502
  attempt: z.ZodNullable<z.ZodString>;
@@ -42881,13 +42983,6 @@ declare const memberDetailSchema: z.ZodObject<{
42881
42983
  profile: z.ZodNullable<z.ZodObject<{
42882
42984
  id: z.ZodString;
42883
42985
  name: z.ZodString;
42884
- hidden: z.ZodBoolean;
42885
- visibility: z.ZodEnum<{
42886
- private: "private";
42887
- participants: "participants";
42888
- public: "public";
42889
- }>;
42890
- locked: z.ZodBoolean;
42891
42986
  avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
42892
42987
  source: z.ZodLiteral<"upload">;
42893
42988
  url: z.ZodString;
@@ -42905,6 +43000,13 @@ declare const memberDetailSchema: z.ZodObject<{
42905
43000
  source: z.ZodLiteral<"generated">;
42906
43001
  seed: z.ZodString;
42907
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;
42908
43010
  displayName: z.ZodNullable<z.ZodString>;
42909
43011
  avatarChoice: z.ZodEnum<{
42910
43012
  default: "default";
@@ -43037,8 +43139,10 @@ type ManagementClientOptions = {
43037
43139
  type ManagementRawInit = RequestInit & {
43038
43140
  timeout?: number;
43039
43141
  };
43040
- type ManagementClient = Omit<ReturnType<typeof createManagementClient>, "testMembers" | "storage"> & {
43041
- testMembers?: Omit<ReturnType<typeof createManagementClient>["testMembers"], "history"> & {
43142
+ type ManagementClient = Omit<ReturnType<typeof createManagementClient>, "testMembers" | "storage" | "updateProject"> & {
43143
+ updateProject?: ReturnType<typeof createManagementClient>["updateProject"];
43144
+ testMembers?: Omit<ReturnType<typeof createManagementClient>["testMembers"], "history" | "advance"> & {
43145
+ advance?: ReturnType<typeof createManagementClient>["testMembers"]["advance"];
43042
43146
  history?: ReturnType<typeof createManagementClient>["testMembers"]["history"];
43043
43147
  };
43044
43148
  storage?: ReturnType<typeof createManagementClient>["storage"];
@@ -78840,6 +78944,13 @@ declare function createManagementClient(options: ManagementClientOptions): {
78840
78944
  color: string;
78841
78945
  permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "ingest" | "enroll")[];
78842
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;
78843
78954
  setup?: {
78844
78955
  mode: "new" | "existing";
78845
78956
  brief: string;
@@ -78858,6 +78969,37 @@ declare function createManagementClient(options: ManagementClientOptions): {
78858
78969
  color: string;
78859
78970
  permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "ingest" | "enroll")[];
78860
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;
78861
79003
  setup?: {
78862
79004
  mode: "new" | "existing";
78863
79005
  brief: string;
@@ -79723,6 +79865,12 @@ declare function createManagementClient(options: ManagementClientOptions): {
79723
79865
  detail: string;
79724
79866
  at: number;
79725
79867
  attempt: string | null;
79868
+ user?: {
79869
+ id: string;
79870
+ name: string | null;
79871
+ email: string | null;
79872
+ avatar: string | null;
79873
+ } | null | undefined;
79726
79874
  }[];
79727
79875
  questCounts: Record<string, number>;
79728
79876
  }>;
@@ -79902,11 +80050,15 @@ declare function createManagementClient(options: ManagementClientOptions): {
79902
80050
  id: string;
79903
80051
  name: string;
79904
80052
  test: true;
80053
+ today?: string | undefined;
80054
+ offsetDays?: number | undefined;
79905
80055
  }>;
79906
80056
  list: (call?: ManagementCallOptions) => Promise<{
79907
80057
  id: string;
79908
80058
  name: string;
79909
80059
  test: true;
80060
+ today?: string | undefined;
80061
+ offsetDays?: number | undefined;
79910
80062
  }[]>;
79911
80063
  history: (member: string, query?: TestMemberHistoryQuery, call?: ManagementCallOptions) => Promise<{
79912
80064
  attempts: {
@@ -80051,6 +80203,14 @@ declare function createManagementClient(options: ManagementClientOptions): {
80051
80203
  value: string;
80052
80204
  } | undefined;
80053
80205
  }>;
80206
+ /** Move forward 1–30 project-calendar days, up to 90 total. Reset deletes the member. */
80207
+ advance: (member: string, input: TestMemberAdvanceInput, call?: ManagementCallOptions) => Promise<{
80208
+ id: string;
80209
+ name: string;
80210
+ test: true;
80211
+ today?: string | undefined;
80212
+ offsetDays?: number | undefined;
80213
+ }>;
80054
80214
  reset: (member: string, input: TestMemberResetInput, call?: ManagementCallOptions) => Promise<{
80055
80215
  member: string;
80056
80216
  deleted: true;
@@ -81217,9 +81377,6 @@ declare function createManagementClient(options: ManagementClientOptions): {
81217
81377
  profile: {
81218
81378
  id: string;
81219
81379
  name: string;
81220
- hidden: boolean;
81221
- visibility: "private" | "participants" | "public";
81222
- locked: boolean;
81223
81380
  avatar: {
81224
81381
  source: "upload";
81225
81382
  url: string;
@@ -81233,6 +81390,9 @@ declare function createManagementClient(options: ManagementClientOptions): {
81233
81390
  source: "generated";
81234
81391
  seed: string;
81235
81392
  };
81393
+ hidden: boolean;
81394
+ visibility: "private" | "participants" | "public";
81395
+ locked: boolean;
81236
81396
  displayName: string | null;
81237
81397
  avatarChoice: "default" | "account" | "upload" | "generated";
81238
81398
  avatarProvider: "discord" | "x" | "google" | null;
@@ -81522,9 +81682,6 @@ declare function createManagementClient(options: ManagementClientOptions): {
81522
81682
  moderate: (member: string, input: CreationInput<z.input<typeof profileModerationSchema>>, call?: ManagementCallOptions) => Promise<{
81523
81683
  id: string;
81524
81684
  name: string;
81525
- hidden: boolean;
81526
- visibility: "private" | "participants" | "public";
81527
- locked: boolean;
81528
81685
  avatar: {
81529
81686
  source: "upload";
81530
81687
  url: string;
@@ -81538,6 +81695,9 @@ declare function createManagementClient(options: ManagementClientOptions): {
81538
81695
  source: "generated";
81539
81696
  seed: string;
81540
81697
  };
81698
+ hidden: boolean;
81699
+ visibility: "private" | "participants" | "public";
81700
+ locked: boolean;
81541
81701
  displayName: string | null;
81542
81702
  avatarChoice: "default" | "account" | "upload" | "generated";
81543
81703
  avatarProvider: "discord" | "x" | "google" | null;
@@ -82182,4 +82342,4 @@ declare function createManagementClient(options: ManagementClientOptions): {
82182
82342
  }>;
82183
82343
  };
82184
82344
 
82185
- 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 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, 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 };
@@ -166,7 +166,11 @@ import { z } from "zod";
166
166
  var testMemberSchema = z.object({
167
167
  id: identifier,
168
168
  name: z.string(),
169
- test: z.literal(true)
169
+ test: z.literal(true),
170
+ /** Current project-calendar date (YYYY-MM-DD), computed by the server. */
171
+ today: z.iso.date().optional(),
172
+ /** Number of calendar days advanced; absent means zero for older servers. */
173
+ offsetDays: z.number().int().min(0).optional()
170
174
  });
171
175
  var testMemberCreateSchema = z.object({
172
176
  actionId: identifier,
@@ -176,6 +180,10 @@ var testMemberActionSchema = submitSchema.omit({ member: true, faultAfterReview:
176
180
  operation: z.literal("attempts.submit")
177
181
  }).strict();
178
182
  var testMemberResetSchema = z.object({ actionId: identifier }).strict();
183
+ var testMemberAdvanceSchema = z.object({
184
+ actionId: identifier,
185
+ days: z.number().int().min(1).max(30)
186
+ }).strict();
179
187
  var testMemberResetResultSchema = z.object({
180
188
  member: identifier,
181
189
  deleted: z.literal(true)
@@ -947,8 +955,16 @@ var projectSetupSchema = z8.object({
947
955
  mode: z8.enum(["new", "existing"]),
948
956
  brief: z8.string().trim().min(1).max(4e3)
949
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
+ });
950
964
  var projectSchema = z8.object({
951
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(),
952
968
  /** A response, so fields a newer server adds to the setup are dropped, not rejected. */
953
969
  setup: z8.object(projectSetupSchema.shape).optional(),
954
970
  /** The starter chosen at setup. A plain string, so later starters still parse. */
@@ -962,7 +978,13 @@ var projectSchema = z8.object({
962
978
  color: z8.string(),
963
979
  permissions: permissionListSchema,
964
980
  environments: z8.array(environmentSchema)
965
- });
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
+ );
966
988
  var projectInputSchema = z8.object({
967
989
  actionId: identifier,
968
990
  name: z8.string().trim().min(1).max(80),
@@ -970,6 +992,13 @@ var projectInputSchema = z8.object({
970
992
  /** The starter a new hosted app begins from, with `setup.mode` "new". */
971
993
  starter: starterIdSchema.optional()
972
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
+ ]);
973
1002
  var projectDeletionInputSchema = z8.object({ confirm: z8.string().min(1).max(80) }).strict();
974
1003
  var projectDeletionSchema = z8.object({
975
1004
  project: identifier,
@@ -1174,9 +1203,13 @@ var auditRecordSchema = z8.object({
1174
1203
  id: z8.string(),
1175
1204
  action: z8.string(),
1176
1205
  actor: z8.string().nullable(),
1206
+ user: operatorUserSchema.nullable().optional(),
1177
1207
  detail: z8.string(),
1178
1208
  at: z8.number(),
1179
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"]
1180
1213
  });
1181
1214
  var pageSchema = z8.object({
1182
1215
  snapshot: snapshotSchema,
@@ -2135,6 +2168,13 @@ function createManagementClient(options) {
2135
2168
  readiness: (call) => get("/readiness", readinessSchema, call),
2136
2169
  access: (call) => get("/access", accessSchema, call),
2137
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
+ ),
2138
2178
  /** Delete the client's current project. Domino support can restore it for 30 days. */
2139
2179
  deleteProject: (input, call) => request(
2140
2180
  "/project",
@@ -2327,6 +2367,13 @@ function createManagementClient(options) {
2327
2367
  testMemberActionSchema.parse(input),
2328
2368
  call
2329
2369
  ),
2370
+ /** Move forward 1–30 project-calendar days, up to 90 total. Reset deletes the member. */
2371
+ advance: (member, input, call) => post(
2372
+ `/test-members/${identifier.parse(member)}/clock`,
2373
+ testMemberSchema,
2374
+ testMemberAdvanceSchema.parse(input),
2375
+ call
2376
+ ),
2330
2377
  reset: (member, input, call) => post(
2331
2378
  `/test-members/${identifier.parse(member)}/reset`,
2332
2379
  testMemberResetResultSchema,
@@ -2734,6 +2781,7 @@ export {
2734
2781
  metricsSchema,
2735
2782
  operationInputSchema,
2736
2783
  operationSchema,
2784
+ operatorUserSchema,
2737
2785
  pageSchema,
2738
2786
  participantSignInInputSchema,
2739
2787
  participantSignInSchema,
@@ -2746,6 +2794,7 @@ export {
2746
2794
  projectSetupSchema,
2747
2795
  projectTransferInputSchema,
2748
2796
  projectTransferSchema,
2797
+ projectUpdateInputSchema,
2749
2798
  querySchema,
2750
2799
  questLifecycleInputSchema,
2751
2800
  questLifecycleSchema,
@@ -2772,6 +2821,7 @@ export {
2772
2821
  stockInputSchema,
2773
2822
  teamSchema,
2774
2823
  testMemberActionSchema,
2824
+ testMemberAdvanceSchema,
2775
2825
  testMemberCreateSchema,
2776
2826
  testMemberHistoryQuerySchema,
2777
2827
  testMemberHistorySchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domino-sdk/relay",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {