@domino-sdk/relay 0.9.1 → 0.11.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/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema } from './schema.js';
3
3
  export { Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
4
- import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, e as walletProofSchema, f as AuthProvider } from './settings-BA8XjT4m.js';
5
- export { g as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, h as LeaderboardDefinition, i as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, j as ResourceOption, k as ResourceSource, l as SettingField, m as SettingsValues, S as SolanaBalance, W as WalletConnection, n as accountConnectionSchema, q as authProviderSchema, t as budgetSchema, u as compatibleSettingKinds, v as completionKeySchema, x as completionPolicySchema, d as defineLeaderboard, b as defineReferral, c as discord, y as discordMemberInputSchema, z as discordMemberSchema, C as discordMessageInputSchema, E as discordMessageSchema, F as discordReactionSchema, G as discordServerSchema, H as integrationProviderSchema, J as leaderboardArtifactSchema, K as leaderboardAuthoringSchema, M as leaderboardDefinitionSchema, N as leaderboardExclusionSchema, T as leaderboardGroupSchema, U as leaderboardPageSchema, V as leaderboardPreviewSchema, X as leaderboardQuerySchema, Y as leaderboardRowSchema, Z as leaderboardWindowSchema, _ as missingResourceSettings, $ as observationInputSchema, a0 as observationReceiptSchema, a1 as observationSchema, o as observationTriggerSchema, a2 as parseSettings, p as pointLedgers, a3 as pointsAccountSchema, a4 as pointsEntrySchema, a5 as pointsMutationSchema, a6 as pointsResultSchema, a7 as projectIntegrationSchema, a8 as publishedLeaderboardSchema, a9 as publishedReferralSchema, aa as quizChoiceSchema, ab as quizContentSchema, ac as quizQuestionSchema, ad as quizQuestionsSchema, ae as referralAccountSchema, af as referralArtifactSchema, ag as referralAuthoringSchema, ah as referralControlSchema, ai as referralDefinitionSchema, aj as referralHistorySchema, ak as referralManagementSchema, al as referralRelationshipSchema, am as referralSummarySchema, an as resourceOptionsSchema, ao as resourceRequestSchema, ap as resourceSourceSchema, aq as settingFieldSchema, s as settings, ar as settingsFieldsSchema, as as settingsValuesSchema, at as solanaAddressSchema, au as solanaBalanceSchema, av as walletChallengeSchema, aw as walletConnectionSchema } from './settings-BA8XjT4m.js';
4
+ import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, g as walletProofSchema, h as AuthProvider } from './settings-B61jIDDA.js';
5
+ export { i as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, j as LeaderboardDefinition, k as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, l as ResourceOption, m as ResourceSource, n as SettingField, q as SettingsValues, S as SolanaBalance, b as StreakPolicy, t as StreakProgress, W as WalletConnection, u as accountConnectionSchema, v as authProviderSchema, x as budgetSchema, y as communityTimeZoneSchema, z as compatibleSettingKinds, C as completionKeySchema, E as completionPolicySchema, d as defineLeaderboard, c as defineReferral, e as discord, F as discordMemberInputSchema, G as discordMemberSchema, H as discordMessageInputSchema, J as discordMessageSchema, K as discordReactionSchema, M as discordServerSchema, N as integrationProviderSchema, T as leaderboardArtifactSchema, U as leaderboardAuthoringSchema, V as leaderboardDefinitionSchema, X as leaderboardExclusionSchema, Y as leaderboardGroupSchema, Z as leaderboardPageSchema, _ as leaderboardPreviewSchema, $ as leaderboardQuerySchema, a0 as leaderboardRowSchema, a1 as leaderboardWindowSchema, a2 as missingResourceSettings, a3 as observationInputSchema, a4 as observationReceiptSchema, a5 as observationSchema, o as observationTriggerSchema, a6 as parseSettings, p as pointLedgers, a7 as pointsAccountSchema, a8 as pointsEntrySchema, a9 as pointsMutationSchema, aa as pointsResultSchema, ab as projectIntegrationSchema, ac as publishedLeaderboardSchema, ad as publishedReferralSchema, ae as quizChoiceSchema, af as quizContentSchema, ag as quizQuestionSchema, ah as quizQuestionsSchema, ai as referralAccountSchema, aj as referralArtifactSchema, ak as referralAuthoringSchema, al as referralControlSchema, am as referralDefinitionSchema, an as referralHistorySchema, ao as referralManagementSchema, ap as referralRelationshipSchema, aq as referralSummarySchema, ar as resourceOptionsSchema, as as resourceRequestSchema, at as resourceSourceSchema, au as settingFieldSchema, s as settings, av as settingsFieldsSchema, aw as settingsValuesSchema, ax as solanaAddressSchema, ay as solanaBalanceSchema, f as streak, az as streakPolicySchema, aA as streakProgressSchema, aB as walletChallengeSchema, aC as walletConnectionSchema } from './settings-B61jIDDA.js';
6
6
 
7
7
  declare class RelayError extends Error {
8
8
  readonly status: number;
@@ -360,6 +360,10 @@ declare const questTypeVersionSchema: z.ZodObject<{
360
360
  scope: z.ZodLiteral<"ever">;
361
361
  }, z.core.$strict>>>;
362
362
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
363
+ kind: z.ZodLiteral<"streak">;
364
+ days: z.ZodNumber;
365
+ timeZone: z.ZodString;
366
+ }, z.core.$strict>, z.ZodObject<{
363
367
  kind: z.ZodLiteral<"once">;
364
368
  }, z.core.$strict>, z.ZodObject<{
365
369
  kind: z.ZodLiteral<"keyed">;
@@ -375,8 +379,8 @@ declare const questTypeVersionSchema: z.ZodObject<{
375
379
  project: "project";
376
380
  }>;
377
381
  period: z.ZodEnum<{
378
- lifetime: "lifetime";
379
382
  day: "day";
383
+ lifetime: "lifetime";
380
384
  }>;
381
385
  limit: z.ZodNumber;
382
386
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -702,6 +706,10 @@ declare const questCatalogSchema: z.ZodObject<{
702
706
  scope: z.ZodLiteral<"ever">;
703
707
  }, z.core.$strict>>>;
704
708
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
709
+ kind: z.ZodLiteral<"streak">;
710
+ days: z.ZodNumber;
711
+ timeZone: z.ZodString;
712
+ }, z.core.$strict>, z.ZodObject<{
705
713
  kind: z.ZodLiteral<"once">;
706
714
  }, z.core.$strict>, z.ZodObject<{
707
715
  kind: z.ZodLiteral<"keyed">;
@@ -717,8 +725,8 @@ declare const questCatalogSchema: z.ZodObject<{
717
725
  project: "project";
718
726
  }>;
719
727
  period: z.ZodEnum<{
720
- lifetime: "lifetime";
721
728
  day: "day";
729
+ lifetime: "lifetime";
722
730
  }>;
723
731
  limit: z.ZodNumber;
724
732
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -988,6 +996,10 @@ declare const questCatalogSchema: z.ZodObject<{
988
996
  scope: z.ZodLiteral<"ever">;
989
997
  }, z.core.$strict>>>;
990
998
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
999
+ kind: z.ZodLiteral<"streak">;
1000
+ days: z.ZodNumber;
1001
+ timeZone: z.ZodString;
1002
+ }, z.core.$strict>, z.ZodObject<{
991
1003
  kind: z.ZodLiteral<"once">;
992
1004
  }, z.core.$strict>, z.ZodObject<{
993
1005
  kind: z.ZodLiteral<"keyed">;
@@ -1003,8 +1015,8 @@ declare const questCatalogSchema: z.ZodObject<{
1003
1015
  project: "project";
1004
1016
  }>;
1005
1017
  period: z.ZodEnum<{
1006
- lifetime: "lifetime";
1007
1018
  day: "day";
1019
+ lifetime: "lifetime";
1008
1020
  }>;
1009
1021
  limit: z.ZodNumber;
1010
1022
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -1239,6 +1251,10 @@ declare const questCatalogSchema: z.ZodObject<{
1239
1251
  scope: "ever";
1240
1252
  }[];
1241
1253
  completion: {
1254
+ kind: "streak";
1255
+ days: number;
1256
+ timeZone: string;
1257
+ } | {
1242
1258
  kind: "once";
1243
1259
  } | {
1244
1260
  kind: "keyed";
@@ -1247,7 +1263,7 @@ declare const questCatalogSchema: z.ZodObject<{
1247
1263
  budgets: {
1248
1264
  id: string;
1249
1265
  scope: "member" | "project";
1250
- period: "lifetime" | "day";
1266
+ period: "day" | "lifetime";
1251
1267
  limit: number;
1252
1268
  cost: number | {
1253
1269
  balance: string;
@@ -1524,6 +1540,10 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1524
1540
  scope: z.ZodLiteral<"ever">;
1525
1541
  }, z.core.$strict>>>;
1526
1542
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1543
+ kind: z.ZodLiteral<"streak">;
1544
+ days: z.ZodNumber;
1545
+ timeZone: z.ZodString;
1546
+ }, z.core.$strict>, z.ZodObject<{
1527
1547
  kind: z.ZodLiteral<"once">;
1528
1548
  }, z.core.$strict>, z.ZodObject<{
1529
1549
  kind: z.ZodLiteral<"keyed">;
@@ -1539,8 +1559,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1539
1559
  project: "project";
1540
1560
  }>;
1541
1561
  period: z.ZodEnum<{
1542
- lifetime: "lifetime";
1543
1562
  day: "day";
1563
+ lifetime: "lifetime";
1544
1564
  }>;
1545
1565
  limit: z.ZodNumber;
1546
1566
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -1692,10 +1712,44 @@ declare const questViewSchema: z.ZodObject<{
1692
1712
  }, z.core.$strict>], "kind">;
1693
1713
  completed: z.ZodBoolean;
1694
1714
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1715
+ kind: z.ZodLiteral<"streak">;
1716
+ days: z.ZodNumber;
1717
+ timeZone: z.ZodString;
1718
+ }, z.core.$strict>, z.ZodObject<{
1695
1719
  kind: z.ZodLiteral<"once">;
1696
1720
  }, z.core.$strict>, z.ZodObject<{
1697
1721
  kind: z.ZodLiteral<"keyed">;
1698
1722
  }, z.core.$strict>], "kind">>;
1723
+ streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1724
+ goal: z.ZodNumber;
1725
+ current: z.ZodNumber;
1726
+ best: z.ZodNumber;
1727
+ today: z.ZodString;
1728
+ todayQualified: z.ZodBoolean;
1729
+ timeZone: z.ZodString;
1730
+ nextBoundary: z.ZodNumber;
1731
+ pendingTimeZone: z.ZodNullable<z.ZodObject<{
1732
+ timeZone: z.ZodString;
1733
+ effectiveAt: z.ZodNumber;
1734
+ }, z.core.$strip>>;
1735
+ days: z.ZodArray<z.ZodObject<{
1736
+ day: z.ZodNumber;
1737
+ date: z.ZodString;
1738
+ timeZone: z.ZodString;
1739
+ occurredAt: z.ZodNumber;
1740
+ }, z.core.$strip>>;
1741
+ milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
1742
+ status: z.ZodLiteral<"pending">;
1743
+ }, z.core.$strip>, z.ZodObject<{
1744
+ status: z.ZodLiteral<"awarded">;
1745
+ completion: z.ZodString;
1746
+ achievedAt: z.ZodNumber;
1747
+ }, z.core.$strip>, z.ZodObject<{
1748
+ status: z.ZodLiteral<"budget-exhausted">;
1749
+ budget: z.ZodString;
1750
+ achievedAt: z.ZodNumber;
1751
+ }, z.core.$strip>], "status">;
1752
+ }, z.core.$strip>>>;
1699
1753
  completionCount: z.ZodDefault<z.ZodNumber>;
1700
1754
  visibility: z.ZodDefault<z.ZodEnum<{
1701
1755
  visible: "visible";
@@ -1723,6 +1777,7 @@ declare const questViewSchema: z.ZodObject<{
1723
1777
  queued: "queued";
1724
1778
  evaluating: "evaluating";
1725
1779
  accepted: "accepted";
1780
+ progressed: "progressed";
1726
1781
  rejected: "rejected";
1727
1782
  failed: "failed";
1728
1783
  }>;
@@ -1863,10 +1918,44 @@ declare const collectionViewSchema: z.ZodObject<{
1863
1918
  }, z.core.$strict>], "kind">;
1864
1919
  completed: z.ZodBoolean;
1865
1920
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1921
+ kind: z.ZodLiteral<"streak">;
1922
+ days: z.ZodNumber;
1923
+ timeZone: z.ZodString;
1924
+ }, z.core.$strict>, z.ZodObject<{
1866
1925
  kind: z.ZodLiteral<"once">;
1867
1926
  }, z.core.$strict>, z.ZodObject<{
1868
1927
  kind: z.ZodLiteral<"keyed">;
1869
1928
  }, z.core.$strict>], "kind">>;
1929
+ streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1930
+ goal: z.ZodNumber;
1931
+ current: z.ZodNumber;
1932
+ best: z.ZodNumber;
1933
+ today: z.ZodString;
1934
+ todayQualified: z.ZodBoolean;
1935
+ timeZone: z.ZodString;
1936
+ nextBoundary: z.ZodNumber;
1937
+ pendingTimeZone: z.ZodNullable<z.ZodObject<{
1938
+ timeZone: z.ZodString;
1939
+ effectiveAt: z.ZodNumber;
1940
+ }, z.core.$strip>>;
1941
+ days: z.ZodArray<z.ZodObject<{
1942
+ day: z.ZodNumber;
1943
+ date: z.ZodString;
1944
+ timeZone: z.ZodString;
1945
+ occurredAt: z.ZodNumber;
1946
+ }, z.core.$strip>>;
1947
+ milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
1948
+ status: z.ZodLiteral<"pending">;
1949
+ }, z.core.$strip>, z.ZodObject<{
1950
+ status: z.ZodLiteral<"awarded">;
1951
+ completion: z.ZodString;
1952
+ achievedAt: z.ZodNumber;
1953
+ }, z.core.$strip>, z.ZodObject<{
1954
+ status: z.ZodLiteral<"budget-exhausted">;
1955
+ budget: z.ZodString;
1956
+ achievedAt: z.ZodNumber;
1957
+ }, z.core.$strip>], "status">;
1958
+ }, z.core.$strip>>>;
1870
1959
  completionCount: z.ZodDefault<z.ZodNumber>;
1871
1960
  visibility: z.ZodDefault<z.ZodEnum<{
1872
1961
  visible: "visible";
@@ -1894,6 +1983,7 @@ declare const collectionViewSchema: z.ZodObject<{
1894
1983
  queued: "queued";
1895
1984
  evaluating: "evaluating";
1896
1985
  accepted: "accepted";
1986
+ progressed: "progressed";
1897
1987
  rejected: "rejected";
1898
1988
  failed: "failed";
1899
1989
  }>;
@@ -2033,10 +2123,44 @@ declare const questExperienceSchema: z.ZodObject<{
2033
2123
  }, z.core.$strict>], "kind">;
2034
2124
  completed: z.ZodBoolean;
2035
2125
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2126
+ kind: z.ZodLiteral<"streak">;
2127
+ days: z.ZodNumber;
2128
+ timeZone: z.ZodString;
2129
+ }, z.core.$strict>, z.ZodObject<{
2036
2130
  kind: z.ZodLiteral<"once">;
2037
2131
  }, z.core.$strict>, z.ZodObject<{
2038
2132
  kind: z.ZodLiteral<"keyed">;
2039
2133
  }, z.core.$strict>], "kind">>;
2134
+ streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2135
+ goal: z.ZodNumber;
2136
+ current: z.ZodNumber;
2137
+ best: z.ZodNumber;
2138
+ today: z.ZodString;
2139
+ todayQualified: z.ZodBoolean;
2140
+ timeZone: z.ZodString;
2141
+ nextBoundary: z.ZodNumber;
2142
+ pendingTimeZone: z.ZodNullable<z.ZodObject<{
2143
+ timeZone: z.ZodString;
2144
+ effectiveAt: z.ZodNumber;
2145
+ }, z.core.$strip>>;
2146
+ days: z.ZodArray<z.ZodObject<{
2147
+ day: z.ZodNumber;
2148
+ date: z.ZodString;
2149
+ timeZone: z.ZodString;
2150
+ occurredAt: z.ZodNumber;
2151
+ }, z.core.$strip>>;
2152
+ milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
2153
+ status: z.ZodLiteral<"pending">;
2154
+ }, z.core.$strip>, z.ZodObject<{
2155
+ status: z.ZodLiteral<"awarded">;
2156
+ completion: z.ZodString;
2157
+ achievedAt: z.ZodNumber;
2158
+ }, z.core.$strip>, z.ZodObject<{
2159
+ status: z.ZodLiteral<"budget-exhausted">;
2160
+ budget: z.ZodString;
2161
+ achievedAt: z.ZodNumber;
2162
+ }, z.core.$strip>], "status">;
2163
+ }, z.core.$strip>>>;
2040
2164
  completionCount: z.ZodDefault<z.ZodNumber>;
2041
2165
  visibility: z.ZodDefault<z.ZodEnum<{
2042
2166
  visible: "visible";
@@ -2064,6 +2188,7 @@ declare const questExperienceSchema: z.ZodObject<{
2064
2188
  queued: "queued";
2065
2189
  evaluating: "evaluating";
2066
2190
  accepted: "accepted";
2191
+ progressed: "progressed";
2067
2192
  rejected: "rejected";
2068
2193
  failed: "failed";
2069
2194
  }>;
@@ -2204,10 +2329,44 @@ declare const questExperienceSchema: z.ZodObject<{
2204
2329
  }, z.core.$strict>], "kind">;
2205
2330
  completed: z.ZodBoolean;
2206
2331
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2332
+ kind: z.ZodLiteral<"streak">;
2333
+ days: z.ZodNumber;
2334
+ timeZone: z.ZodString;
2335
+ }, z.core.$strict>, z.ZodObject<{
2207
2336
  kind: z.ZodLiteral<"once">;
2208
2337
  }, z.core.$strict>, z.ZodObject<{
2209
2338
  kind: z.ZodLiteral<"keyed">;
2210
2339
  }, z.core.$strict>], "kind">>;
2340
+ streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2341
+ goal: z.ZodNumber;
2342
+ current: z.ZodNumber;
2343
+ best: z.ZodNumber;
2344
+ today: z.ZodString;
2345
+ todayQualified: z.ZodBoolean;
2346
+ timeZone: z.ZodString;
2347
+ nextBoundary: z.ZodNumber;
2348
+ pendingTimeZone: z.ZodNullable<z.ZodObject<{
2349
+ timeZone: z.ZodString;
2350
+ effectiveAt: z.ZodNumber;
2351
+ }, z.core.$strip>>;
2352
+ days: z.ZodArray<z.ZodObject<{
2353
+ day: z.ZodNumber;
2354
+ date: z.ZodString;
2355
+ timeZone: z.ZodString;
2356
+ occurredAt: z.ZodNumber;
2357
+ }, z.core.$strip>>;
2358
+ milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
2359
+ status: z.ZodLiteral<"pending">;
2360
+ }, z.core.$strip>, z.ZodObject<{
2361
+ status: z.ZodLiteral<"awarded">;
2362
+ completion: z.ZodString;
2363
+ achievedAt: z.ZodNumber;
2364
+ }, z.core.$strip>, z.ZodObject<{
2365
+ status: z.ZodLiteral<"budget-exhausted">;
2366
+ budget: z.ZodString;
2367
+ achievedAt: z.ZodNumber;
2368
+ }, z.core.$strip>], "status">;
2369
+ }, z.core.$strip>>>;
2211
2370
  completionCount: z.ZodDefault<z.ZodNumber>;
2212
2371
  visibility: z.ZodDefault<z.ZodEnum<{
2213
2372
  visible: "visible";
@@ -2235,6 +2394,7 @@ declare const questExperienceSchema: z.ZodObject<{
2235
2394
  queued: "queued";
2236
2395
  evaluating: "evaluating";
2237
2396
  accepted: "accepted";
2397
+ progressed: "progressed";
2238
2398
  rejected: "rejected";
2239
2399
  failed: "failed";
2240
2400
  }>;
@@ -2522,6 +2682,10 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2522
2682
  scope: z.ZodLiteral<"ever">;
2523
2683
  }, z.core.$strict>>>;
2524
2684
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2685
+ kind: z.ZodLiteral<"streak">;
2686
+ days: z.ZodNumber;
2687
+ timeZone: z.ZodString;
2688
+ }, z.core.$strict>, z.ZodObject<{
2525
2689
  kind: z.ZodLiteral<"once">;
2526
2690
  }, z.core.$strict>, z.ZodObject<{
2527
2691
  kind: z.ZodLiteral<"keyed">;
@@ -2537,8 +2701,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2537
2701
  project: "project";
2538
2702
  }>;
2539
2703
  period: z.ZodEnum<{
2540
- lifetime: "lifetime";
2541
2704
  day: "day";
2705
+ lifetime: "lifetime";
2542
2706
  }>;
2543
2707
  limit: z.ZodNumber;
2544
2708
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -2773,6 +2937,10 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2773
2937
  scope: "ever";
2774
2938
  }[];
2775
2939
  completion: {
2940
+ kind: "streak";
2941
+ days: number;
2942
+ timeZone: string;
2943
+ } | {
2776
2944
  kind: "once";
2777
2945
  } | {
2778
2946
  kind: "keyed";
@@ -2781,7 +2949,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2781
2949
  budgets: {
2782
2950
  id: string;
2783
2951
  scope: "member" | "project";
2784
- period: "lifetime" | "day";
2952
+ period: "day" | "lifetime";
2785
2953
  limit: number;
2786
2954
  cost: number | {
2787
2955
  balance: string;
@@ -4219,6 +4387,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4219
4387
  scope: z.ZodLiteral<"ever">;
4220
4388
  }, z.core.$strict>>>;
4221
4389
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
4390
+ kind: z.ZodLiteral<"streak">;
4391
+ days: z.ZodNumber;
4392
+ timeZone: z.ZodString;
4393
+ }, z.core.$strict>, z.ZodObject<{
4222
4394
  kind: z.ZodLiteral<"once">;
4223
4395
  }, z.core.$strict>, z.ZodObject<{
4224
4396
  kind: z.ZodLiteral<"keyed">;
@@ -4234,8 +4406,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4234
4406
  project: "project";
4235
4407
  }>;
4236
4408
  period: z.ZodEnum<{
4237
- lifetime: "lifetime";
4238
4409
  day: "day";
4410
+ lifetime: "lifetime";
4239
4411
  }>;
4240
4412
  limit: z.ZodNumber;
4241
4413
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -4470,6 +4642,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4470
4642
  scope: "ever";
4471
4643
  }[];
4472
4644
  completion: {
4645
+ kind: "streak";
4646
+ days: number;
4647
+ timeZone: string;
4648
+ } | {
4473
4649
  kind: "once";
4474
4650
  } | {
4475
4651
  kind: "keyed";
@@ -4478,7 +4654,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4478
4654
  budgets: {
4479
4655
  id: string;
4480
4656
  scope: "member" | "project";
4481
- period: "lifetime" | "day";
4657
+ period: "day" | "lifetime";
4482
4658
  limit: number;
4483
4659
  cost: number | {
4484
4660
  balance: string;
@@ -4714,6 +4890,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4714
4890
  scope: z.ZodLiteral<"ever">;
4715
4891
  }, z.core.$strict>>>;
4716
4892
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
4893
+ kind: z.ZodLiteral<"streak">;
4894
+ days: z.ZodNumber;
4895
+ timeZone: z.ZodString;
4896
+ }, z.core.$strict>, z.ZodObject<{
4717
4897
  kind: z.ZodLiteral<"once">;
4718
4898
  }, z.core.$strict>, z.ZodObject<{
4719
4899
  kind: z.ZodLiteral<"keyed">;
@@ -4729,8 +4909,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4729
4909
  project: "project";
4730
4910
  }>;
4731
4911
  period: z.ZodEnum<{
4732
- lifetime: "lifetime";
4733
4912
  day: "day";
4913
+ lifetime: "lifetime";
4734
4914
  }>;
4735
4915
  limit: z.ZodNumber;
4736
4916
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -5170,6 +5350,10 @@ declare const deploymentResultSchema: z.ZodObject<{
5170
5350
  scope: z.ZodLiteral<"ever">;
5171
5351
  }, z.core.$strict>>>;
5172
5352
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
5353
+ kind: z.ZodLiteral<"streak">;
5354
+ days: z.ZodNumber;
5355
+ timeZone: z.ZodString;
5356
+ }, z.core.$strict>, z.ZodObject<{
5173
5357
  kind: z.ZodLiteral<"once">;
5174
5358
  }, z.core.$strict>, z.ZodObject<{
5175
5359
  kind: z.ZodLiteral<"keyed">;
@@ -5185,8 +5369,8 @@ declare const deploymentResultSchema: z.ZodObject<{
5185
5369
  project: "project";
5186
5370
  }>;
5187
5371
  period: z.ZodEnum<{
5188
- lifetime: "lifetime";
5189
5372
  day: "day";
5373
+ lifetime: "lifetime";
5190
5374
  }>;
5191
5375
  limit: z.ZodNumber;
5192
5376
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -5421,6 +5605,10 @@ declare const deploymentResultSchema: z.ZodObject<{
5421
5605
  scope: "ever";
5422
5606
  }[];
5423
5607
  completion: {
5608
+ kind: "streak";
5609
+ days: number;
5610
+ timeZone: string;
5611
+ } | {
5424
5612
  kind: "once";
5425
5613
  } | {
5426
5614
  kind: "keyed";
@@ -5429,7 +5617,7 @@ declare const deploymentResultSchema: z.ZodObject<{
5429
5617
  budgets: {
5430
5618
  id: string;
5431
5619
  scope: "member" | "project";
5432
- period: "lifetime" | "day";
5620
+ period: "day" | "lifetime";
5433
5621
  limit: number;
5434
5622
  cost: number | {
5435
5623
  balance: string;
@@ -5665,6 +5853,10 @@ declare const deploymentResultSchema: z.ZodObject<{
5665
5853
  scope: z.ZodLiteral<"ever">;
5666
5854
  }, z.core.$strict>>>;
5667
5855
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
5856
+ kind: z.ZodLiteral<"streak">;
5857
+ days: z.ZodNumber;
5858
+ timeZone: z.ZodString;
5859
+ }, z.core.$strict>, z.ZodObject<{
5668
5860
  kind: z.ZodLiteral<"once">;
5669
5861
  }, z.core.$strict>, z.ZodObject<{
5670
5862
  kind: z.ZodLiteral<"keyed">;
@@ -5680,8 +5872,8 @@ declare const deploymentResultSchema: z.ZodObject<{
5680
5872
  project: "project";
5681
5873
  }>;
5682
5874
  period: z.ZodEnum<{
5683
- lifetime: "lifetime";
5684
5875
  day: "day";
5876
+ lifetime: "lifetime";
5685
5877
  }>;
5686
5878
  limit: z.ZodNumber;
5687
5879
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -6205,7 +6397,7 @@ declare function createRelayClient(options: {
6205
6397
  accounts: {
6206
6398
  id: string;
6207
6399
  program: string;
6208
- kind: "fixed" | "bonus" | "milestone";
6400
+ kind: "milestone" | "fixed" | "bonus";
6209
6401
  balance: string;
6210
6402
  earned: number;
6211
6403
  settled: number;
@@ -6375,6 +6567,10 @@ declare function createRelayClient(options: {
6375
6567
  };
6376
6568
  completed: boolean;
6377
6569
  completion: {
6570
+ kind: "streak";
6571
+ days: number;
6572
+ timeZone: string;
6573
+ } | {
6378
6574
  kind: "once";
6379
6575
  } | {
6380
6576
  kind: "keyed";
@@ -6391,7 +6587,7 @@ declare function createRelayClient(options: {
6391
6587
  quest: string;
6392
6588
  member: string;
6393
6589
  evidence: string | null;
6394
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
6590
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
6395
6591
  reason: string | null;
6396
6592
  retries: number;
6397
6593
  generation: number;
@@ -6439,6 +6635,36 @@ declare function createRelayClient(options: {
6439
6635
  label: string;
6440
6636
  }[];
6441
6637
  key?: string | undefined;
6638
+ streak?: {
6639
+ goal: number;
6640
+ current: number;
6641
+ best: number;
6642
+ today: string;
6643
+ todayQualified: boolean;
6644
+ timeZone: string;
6645
+ nextBoundary: number;
6646
+ pendingTimeZone: {
6647
+ timeZone: string;
6648
+ effectiveAt: number;
6649
+ } | null;
6650
+ days: {
6651
+ day: number;
6652
+ date: string;
6653
+ timeZone: string;
6654
+ occurredAt: number;
6655
+ }[];
6656
+ milestone: {
6657
+ status: "pending";
6658
+ } | {
6659
+ status: "awarded";
6660
+ completion: string;
6661
+ achievedAt: number;
6662
+ } | {
6663
+ status: "budget-exhausted";
6664
+ budget: string;
6665
+ achievedAt: number;
6666
+ };
6667
+ } | null | undefined;
6442
6668
  }>;
6443
6669
  retry: (view: QuestView) => Promise<{
6444
6670
  id: string;
@@ -6446,7 +6672,7 @@ declare function createRelayClient(options: {
6446
6672
  quest: string;
6447
6673
  member: string;
6448
6674
  evidence: string | null;
6449
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
6675
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
6450
6676
  reason: string | null;
6451
6677
  retries: number;
6452
6678
  generation: number;
@@ -6555,6 +6781,10 @@ declare function createRelayClient(options: {
6555
6781
  };
6556
6782
  completed: boolean;
6557
6783
  completion: {
6784
+ kind: "streak";
6785
+ days: number;
6786
+ timeZone: string;
6787
+ } | {
6558
6788
  kind: "once";
6559
6789
  } | {
6560
6790
  kind: "keyed";
@@ -6571,7 +6801,7 @@ declare function createRelayClient(options: {
6571
6801
  quest: string;
6572
6802
  member: string;
6573
6803
  evidence: string | null;
6574
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
6804
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
6575
6805
  reason: string | null;
6576
6806
  retries: number;
6577
6807
  generation: number;
@@ -6619,6 +6849,36 @@ declare function createRelayClient(options: {
6619
6849
  label: string;
6620
6850
  }[];
6621
6851
  key?: string | undefined;
6852
+ streak?: {
6853
+ goal: number;
6854
+ current: number;
6855
+ best: number;
6856
+ today: string;
6857
+ todayQualified: boolean;
6858
+ timeZone: string;
6859
+ nextBoundary: number;
6860
+ pendingTimeZone: {
6861
+ timeZone: string;
6862
+ effectiveAt: number;
6863
+ } | null;
6864
+ days: {
6865
+ day: number;
6866
+ date: string;
6867
+ timeZone: string;
6868
+ occurredAt: number;
6869
+ }[];
6870
+ milestone: {
6871
+ status: "pending";
6872
+ } | {
6873
+ status: "awarded";
6874
+ completion: string;
6875
+ achievedAt: number;
6876
+ } | {
6877
+ status: "budget-exhausted";
6878
+ budget: string;
6879
+ achievedAt: number;
6880
+ };
6881
+ } | null | undefined;
6622
6882
  }[];
6623
6883
  collections: {
6624
6884
  id: string;
@@ -6689,6 +6949,10 @@ declare function createRelayClient(options: {
6689
6949
  };
6690
6950
  completed: boolean;
6691
6951
  completion: {
6952
+ kind: "streak";
6953
+ days: number;
6954
+ timeZone: string;
6955
+ } | {
6692
6956
  kind: "once";
6693
6957
  } | {
6694
6958
  kind: "keyed";
@@ -6705,7 +6969,7 @@ declare function createRelayClient(options: {
6705
6969
  quest: string;
6706
6970
  member: string;
6707
6971
  evidence: string | null;
6708
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
6972
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
6709
6973
  reason: string | null;
6710
6974
  retries: number;
6711
6975
  generation: number;
@@ -6753,6 +7017,36 @@ declare function createRelayClient(options: {
6753
7017
  label: string;
6754
7018
  }[];
6755
7019
  key?: string | undefined;
7020
+ streak?: {
7021
+ goal: number;
7022
+ current: number;
7023
+ best: number;
7024
+ today: string;
7025
+ todayQualified: boolean;
7026
+ timeZone: string;
7027
+ nextBoundary: number;
7028
+ pendingTimeZone: {
7029
+ timeZone: string;
7030
+ effectiveAt: number;
7031
+ } | null;
7032
+ days: {
7033
+ day: number;
7034
+ date: string;
7035
+ timeZone: string;
7036
+ occurredAt: number;
7037
+ }[];
7038
+ milestone: {
7039
+ status: "pending";
7040
+ } | {
7041
+ status: "awarded";
7042
+ completion: string;
7043
+ achievedAt: number;
7044
+ } | {
7045
+ status: "budget-exhausted";
7046
+ budget: string;
7047
+ achievedAt: number;
7048
+ };
7049
+ } | null | undefined;
6756
7050
  }[];
6757
7051
  key?: string | undefined;
6758
7052
  }[];
@@ -6826,6 +7120,10 @@ declare function createRelayClient(options: {
6826
7120
  };
6827
7121
  completed: boolean;
6828
7122
  completion: {
7123
+ kind: "streak";
7124
+ days: number;
7125
+ timeZone: string;
7126
+ } | {
6829
7127
  kind: "once";
6830
7128
  } | {
6831
7129
  kind: "keyed";
@@ -6842,7 +7140,7 @@ declare function createRelayClient(options: {
6842
7140
  quest: string;
6843
7141
  member: string;
6844
7142
  evidence: string | null;
6845
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
7143
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
6846
7144
  reason: string | null;
6847
7145
  retries: number;
6848
7146
  generation: number;
@@ -6890,6 +7188,36 @@ declare function createRelayClient(options: {
6890
7188
  label: string;
6891
7189
  }[];
6892
7190
  key?: string | undefined;
7191
+ streak?: {
7192
+ goal: number;
7193
+ current: number;
7194
+ best: number;
7195
+ today: string;
7196
+ todayQualified: boolean;
7197
+ timeZone: string;
7198
+ nextBoundary: number;
7199
+ pendingTimeZone: {
7200
+ timeZone: string;
7201
+ effectiveAt: number;
7202
+ } | null;
7203
+ days: {
7204
+ day: number;
7205
+ date: string;
7206
+ timeZone: string;
7207
+ occurredAt: number;
7208
+ }[];
7209
+ milestone: {
7210
+ status: "pending";
7211
+ } | {
7212
+ status: "awarded";
7213
+ completion: string;
7214
+ achievedAt: number;
7215
+ } | {
7216
+ status: "budget-exhausted";
7217
+ budget: string;
7218
+ achievedAt: number;
7219
+ };
7220
+ } | null | undefined;
6893
7221
  }[];
6894
7222
  key?: string | undefined;
6895
7223
  }>;
@@ -7039,13 +7367,14 @@ declare function createRelayClient(options: {
7039
7367
  expiresAt: number;
7040
7368
  entitlement: string;
7041
7369
  }>;
7370
+ /** @deprecated The participant API does not verify passes. Verify them on your server and call `POST /management/v1/passes/verify`. */
7042
7371
  linkPass: (code: string) => Promise<{
7043
7372
  id: string;
7044
7373
  release: string;
7045
7374
  quest: string;
7046
7375
  member: string;
7047
7376
  evidence: string | null;
7048
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
7377
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7049
7378
  reason: string | null;
7050
7379
  retries: number;
7051
7380
  generation: number;
@@ -7154,6 +7483,10 @@ declare function createRelayClient(options: {
7154
7483
  };
7155
7484
  completed: boolean;
7156
7485
  completion: {
7486
+ kind: "streak";
7487
+ days: number;
7488
+ timeZone: string;
7489
+ } | {
7157
7490
  kind: "once";
7158
7491
  } | {
7159
7492
  kind: "keyed";
@@ -7170,7 +7503,7 @@ declare function createRelayClient(options: {
7170
7503
  quest: string;
7171
7504
  member: string;
7172
7505
  evidence: string | null;
7173
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
7506
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7174
7507
  reason: string | null;
7175
7508
  retries: number;
7176
7509
  generation: number;
@@ -7213,6 +7546,36 @@ declare function createRelayClient(options: {
7213
7546
  } | null;
7214
7547
  key?: string | undefined;
7215
7548
  release?: string | undefined;
7549
+ streak?: {
7550
+ goal: number;
7551
+ current: number;
7552
+ best: number;
7553
+ today: string;
7554
+ todayQualified: boolean;
7555
+ timeZone: string;
7556
+ nextBoundary: number;
7557
+ pendingTimeZone: {
7558
+ timeZone: string;
7559
+ effectiveAt: number;
7560
+ } | null;
7561
+ days: {
7562
+ day: number;
7563
+ date: string;
7564
+ timeZone: string;
7565
+ occurredAt: number;
7566
+ }[];
7567
+ milestone: {
7568
+ status: "pending";
7569
+ } | {
7570
+ status: "awarded";
7571
+ completion: string;
7572
+ achievedAt: number;
7573
+ } | {
7574
+ status: "budget-exhausted";
7575
+ budget: string;
7576
+ achievedAt: number;
7577
+ };
7578
+ } | null | undefined;
7216
7579
  }[];
7217
7580
  entitlements: ({
7218
7581
  status: "available";
@@ -7317,7 +7680,7 @@ declare function createRelayClient(options: {
7317
7680
  quest: string;
7318
7681
  member: string;
7319
7682
  evidence: string | null;
7320
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
7683
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7321
7684
  reason: string | null;
7322
7685
  retries: number;
7323
7686
  generation: number;
@@ -7365,6 +7728,7 @@ declare function createRelayClient(options: {
7365
7728
  size: number;
7366
7729
  }>;
7367
7730
  };
7731
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
7368
7732
  reviews: {
7369
7733
  list: (options?: ReviewListOptions, requestOptions?: {
7370
7734
  signal?: AbortSignal;
@@ -7376,7 +7740,7 @@ declare function createRelayClient(options: {
7376
7740
  quest: string;
7377
7741
  member: string;
7378
7742
  evidence: string | null;
7379
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
7743
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7380
7744
  reason: string | null;
7381
7745
  retries: number;
7382
7746
  generation: number;
@@ -7429,6 +7793,7 @@ declare function createRelayClient(options: {
7429
7793
  nextCursor: string | null;
7430
7794
  }>;
7431
7795
  };
7796
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
7432
7797
  members: {
7433
7798
  list: (options?: MemberListOptions, requestOptions?: {
7434
7799
  signal?: AbortSignal;
@@ -7444,9 +7809,11 @@ declare function createRelayClient(options: {
7444
7809
  signal?: AbortSignal;
7445
7810
  }): Promise<Blob>;
7446
7811
  };
7812
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
7447
7813
  lookupMember: (issuer: string, subject: string) => Promise<{
7448
7814
  member: string;
7449
7815
  }>;
7816
+ /** @deprecated Removed from the participant API. Build quests with `domino` and `@domino-sdk/relay/build`. */
7450
7817
  journeyTemplate: () => Promise<{
7451
7818
  code: string;
7452
7819
  definition: {
@@ -7594,6 +7961,10 @@ declare function createRelayClient(options: {
7594
7961
  scope: "ever";
7595
7962
  }[];
7596
7963
  completion: {
7964
+ kind: "streak";
7965
+ days: number;
7966
+ timeZone: string;
7967
+ } | {
7597
7968
  kind: "once";
7598
7969
  } | {
7599
7970
  kind: "keyed";
@@ -7602,7 +7973,7 @@ declare function createRelayClient(options: {
7602
7973
  budgets: {
7603
7974
  id: string;
7604
7975
  scope: "member" | "project";
7605
- period: "lifetime" | "day";
7976
+ period: "day" | "lifetime";
7606
7977
  limit: number;
7607
7978
  cost: number | {
7608
7979
  balance: string;
@@ -7610,6 +7981,7 @@ declare function createRelayClient(options: {
7610
7981
  }[];
7611
7982
  };
7612
7983
  }[]>;
7984
+ /** @deprecated Removed from the participant API. Build quests with `domino` and `@domino-sdk/relay/build`. */
7613
7985
  template: () => Promise<{
7614
7986
  code: string;
7615
7987
  definition: {
@@ -7757,6 +8129,10 @@ declare function createRelayClient(options: {
7757
8129
  scope: "ever";
7758
8130
  }[];
7759
8131
  completion: {
8132
+ kind: "streak";
8133
+ days: number;
8134
+ timeZone: string;
8135
+ } | {
7760
8136
  kind: "once";
7761
8137
  } | {
7762
8138
  kind: "keyed";
@@ -7765,7 +8141,7 @@ declare function createRelayClient(options: {
7765
8141
  budgets: {
7766
8142
  id: string;
7767
8143
  scope: "member" | "project";
7768
- period: "lifetime" | "day";
8144
+ period: "day" | "lifetime";
7769
8145
  limit: number;
7770
8146
  cost: number | {
7771
8147
  balance: string;
@@ -7773,6 +8149,7 @@ declare function createRelayClient(options: {
7773
8149
  }[];
7774
8150
  };
7775
8151
  }>;
8152
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
7776
8153
  snapshot: () => Promise<{
7777
8154
  releases: {
7778
8155
  quest: string;
@@ -7919,6 +8296,10 @@ declare function createRelayClient(options: {
7919
8296
  scope: "ever";
7920
8297
  }[];
7921
8298
  completion: {
8299
+ kind: "streak";
8300
+ days: number;
8301
+ timeZone: string;
8302
+ } | {
7922
8303
  kind: "once";
7923
8304
  } | {
7924
8305
  kind: "keyed";
@@ -7927,7 +8308,7 @@ declare function createRelayClient(options: {
7927
8308
  budgets: {
7928
8309
  id: string;
7929
8310
  scope: "member" | "project";
7930
- period: "lifetime" | "day";
8311
+ period: "day" | "lifetime";
7931
8312
  limit: number;
7932
8313
  cost: number | {
7933
8314
  balance: string;
@@ -8054,7 +8435,7 @@ declare function createRelayClient(options: {
8054
8435
  quest: string;
8055
8436
  member: string;
8056
8437
  evidence: string | null;
8057
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
8438
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8058
8439
  reason: string | null;
8059
8440
  retries: number;
8060
8441
  generation: number;
@@ -8111,6 +8492,7 @@ declare function createRelayClient(options: {
8111
8492
  at: number;
8112
8493
  }[];
8113
8494
  }>;
8495
+ /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
8114
8496
  publish: (release: ReleaseInput) => Promise<{
8115
8497
  quest: string;
8116
8498
  runtimeVersion: 1 | 2;
@@ -8256,6 +8638,10 @@ declare function createRelayClient(options: {
8256
8638
  scope: "ever";
8257
8639
  }[];
8258
8640
  completion: {
8641
+ kind: "streak";
8642
+ days: number;
8643
+ timeZone: string;
8644
+ } | {
8259
8645
  kind: "once";
8260
8646
  } | {
8261
8647
  kind: "keyed";
@@ -8264,7 +8650,7 @@ declare function createRelayClient(options: {
8264
8650
  budgets: {
8265
8651
  id: string;
8266
8652
  scope: "member" | "project";
8267
- period: "lifetime" | "day";
8653
+ period: "day" | "lifetime";
8268
8654
  limit: number;
8269
8655
  cost: number | {
8270
8656
  balance: string;
@@ -8302,6 +8688,7 @@ declare function createRelayClient(options: {
8302
8688
  preserved: string[];
8303
8689
  } | undefined;
8304
8690
  }>;
8691
+ /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
8305
8692
  publishBatch: (releases: ReleaseInput[]) => Promise<{
8306
8693
  quest: string;
8307
8694
  runtimeVersion: 1 | 2;
@@ -8447,6 +8834,10 @@ declare function createRelayClient(options: {
8447
8834
  scope: "ever";
8448
8835
  }[];
8449
8836
  completion: {
8837
+ kind: "streak";
8838
+ days: number;
8839
+ timeZone: string;
8840
+ } | {
8450
8841
  kind: "once";
8451
8842
  } | {
8452
8843
  kind: "keyed";
@@ -8455,7 +8846,7 @@ declare function createRelayClient(options: {
8455
8846
  budgets: {
8456
8847
  id: string;
8457
8848
  scope: "member" | "project";
8458
- period: "lifetime" | "day";
8849
+ period: "day" | "lifetime";
8459
8850
  limit: number;
8460
8851
  cost: number | {
8461
8852
  balance: string;
@@ -8561,6 +8952,10 @@ declare function createRelayClient(options: {
8561
8952
  };
8562
8953
  completed: boolean;
8563
8954
  completion: {
8955
+ kind: "streak";
8956
+ days: number;
8957
+ timeZone: string;
8958
+ } | {
8564
8959
  kind: "once";
8565
8960
  } | {
8566
8961
  kind: "keyed";
@@ -8577,7 +8972,7 @@ declare function createRelayClient(options: {
8577
8972
  quest: string;
8578
8973
  member: string;
8579
8974
  evidence: string | null;
8580
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
8975
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8581
8976
  reason: string | null;
8582
8977
  retries: number;
8583
8978
  generation: number;
@@ -8620,6 +9015,36 @@ declare function createRelayClient(options: {
8620
9015
  } | null;
8621
9016
  key?: string | undefined;
8622
9017
  release?: string | undefined;
9018
+ streak?: {
9019
+ goal: number;
9020
+ current: number;
9021
+ best: number;
9022
+ today: string;
9023
+ todayQualified: boolean;
9024
+ timeZone: string;
9025
+ nextBoundary: number;
9026
+ pendingTimeZone: {
9027
+ timeZone: string;
9028
+ effectiveAt: number;
9029
+ } | null;
9030
+ days: {
9031
+ day: number;
9032
+ date: string;
9033
+ timeZone: string;
9034
+ occurredAt: number;
9035
+ }[];
9036
+ milestone: {
9037
+ status: "pending";
9038
+ } | {
9039
+ status: "awarded";
9040
+ completion: string;
9041
+ achievedAt: number;
9042
+ } | {
9043
+ status: "budget-exhausted";
9044
+ budget: string;
9045
+ achievedAt: number;
9046
+ };
9047
+ } | null | undefined;
8623
9048
  }[];
8624
9049
  entitlements: ({
8625
9050
  status: "available";
@@ -8699,6 +9124,7 @@ declare function createRelayClient(options: {
8699
9124
  } | undefined;
8700
9125
  })[];
8701
9126
  }>;
9127
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
8702
9128
  beginHandover: (id: string, input: z.input<typeof beginHandoverSchema>) => Promise<{
8703
9129
  status: "available";
8704
9130
  id: string;
@@ -8776,6 +9202,7 @@ declare function createRelayClient(options: {
8776
9202
  label: string;
8777
9203
  } | undefined;
8778
9204
  }>;
9205
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
8779
9206
  confirmHandover: (id: string, input: {
8780
9207
  actionId: string;
8781
9208
  handover: string;
@@ -8868,7 +9295,7 @@ declare function createRelayClient(options: {
8868
9295
  quest: string;
8869
9296
  member: string;
8870
9297
  evidence: string | null;
8871
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
9298
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8872
9299
  reason: string | null;
8873
9300
  retries: number;
8874
9301
  generation: number;
@@ -8915,7 +9342,7 @@ declare function createRelayClient(options: {
8915
9342
  quest: string;
8916
9343
  member: string;
8917
9344
  evidence: string | null;
8918
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
9345
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8919
9346
  reason: string | null;
8920
9347
  retries: number;
8921
9348
  generation: number;
@@ -8956,6 +9383,7 @@ declare function createRelayClient(options: {
8956
9383
  release?: string | undefined;
8957
9384
  } | undefined;
8958
9385
  }>;
9386
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
8959
9387
  decide: (id: string, input: {
8960
9388
  actionId: string;
8961
9389
  generation: number;
@@ -8967,7 +9395,7 @@ declare function createRelayClient(options: {
8967
9395
  quest: string;
8968
9396
  member: string;
8969
9397
  evidence: string | null;
8970
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
9398
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8971
9399
  reason: string | null;
8972
9400
  retries: number;
8973
9401
  generation: number;