@domino-sdk/relay 0.1.0 → 0.2.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.
@@ -255,7 +255,7 @@ declare function defineQuest<T extends Record<string, z.ZodType>, const G extend
255
255
  trigger: {
256
256
  kind: "manual";
257
257
  input: "photo" | "quiz" | "none";
258
- actor?: "member" | "staff" | undefined;
258
+ actor?: "staff" | "member" | undefined;
259
259
  } | {
260
260
  kind: "automatic";
261
261
  };
package/dist/browser.d.ts CHANGED
@@ -72,7 +72,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
72
72
  quest: string;
73
73
  member: string;
74
74
  evidence: string | null;
75
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
75
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
76
76
  reason: string | null;
77
77
  retries: number;
78
78
  generation: number;
@@ -109,7 +109,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
109
109
  } | undefined;
110
110
  } | null;
111
111
  release: string;
112
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
112
+ interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
113
113
  lifecycle: "active" | "paused" | "archived";
114
114
  rewards: {
115
115
  label: string;
@@ -121,7 +121,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
121
121
  quest: string;
122
122
  member: string;
123
123
  evidence: string | null;
124
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
124
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
125
125
  reason: string | null;
126
126
  retries: number;
127
127
  generation: number;
@@ -225,7 +225,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
225
225
  quest: string;
226
226
  member: string;
227
227
  evidence: string | null;
228
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
228
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
229
229
  reason: string | null;
230
230
  retries: number;
231
231
  generation: number;
@@ -262,7 +262,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
262
262
  } | undefined;
263
263
  } | null;
264
264
  release: string;
265
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
265
+ interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
266
266
  lifecycle: "active" | "paused" | "archived";
267
267
  rewards: {
268
268
  label: string;
@@ -337,7 +337,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
337
337
  quest: string;
338
338
  member: string;
339
339
  evidence: string | null;
340
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
340
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
341
341
  reason: string | null;
342
342
  retries: number;
343
343
  generation: number;
@@ -374,7 +374,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
374
374
  } | undefined;
375
375
  } | null;
376
376
  release: string;
377
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
377
+ interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
378
378
  lifecycle: "active" | "paused" | "archived";
379
379
  rewards: {
380
380
  label: string;
@@ -451,7 +451,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
451
451
  quest: string;
452
452
  member: string;
453
453
  evidence: string | null;
454
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
454
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
455
455
  reason: string | null;
456
456
  retries: number;
457
457
  generation: number;
@@ -488,7 +488,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
488
488
  } | undefined;
489
489
  } | null;
490
490
  release: string;
491
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
491
+ interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
492
492
  lifecycle: "active" | "paused" | "archived";
493
493
  rewards: {
494
494
  label: string;
@@ -650,7 +650,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
650
650
  quest: string;
651
651
  member: string;
652
652
  evidence: string | null;
653
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
653
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
654
654
  reason: string | null;
655
655
  retries: number;
656
656
  generation: number;
@@ -754,7 +754,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
754
754
  quest: string;
755
755
  member: string;
756
756
  evidence: string | null;
757
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
757
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
758
758
  reason: string | null;
759
759
  retries: number;
760
760
  generation: number;
@@ -878,7 +878,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
878
878
  quest: string;
879
879
  member: string;
880
880
  evidence: string | null;
881
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
881
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
882
882
  reason: string | null;
883
883
  retries: number;
884
884
  generation: number;
@@ -932,7 +932,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
932
932
  quest: string;
933
933
  member: string;
934
934
  evidence: string | null;
935
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
935
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
936
936
  reason: string | null;
937
937
  retries: number;
938
938
  generation: number;
@@ -1002,7 +1002,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1002
1002
  code: string;
1003
1003
  definition: {
1004
1004
  quest: string;
1005
- runtimeVersion: 2 | 1;
1005
+ runtimeVersion: 1 | 2;
1006
1006
  title: string;
1007
1007
  presentation: {
1008
1008
  quiz?: {
@@ -1116,7 +1116,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1116
1116
  code: string;
1117
1117
  definition: {
1118
1118
  quest: string;
1119
- runtimeVersion: 2 | 1;
1119
+ runtimeVersion: 1 | 2;
1120
1120
  title: string;
1121
1121
  presentation: {
1122
1122
  quiz?: {
@@ -1229,7 +1229,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1229
1229
  snapshot: () => Promise<{
1230
1230
  releases: {
1231
1231
  quest: string;
1232
- runtimeVersion: 2 | 1;
1232
+ runtimeVersion: 1 | 2;
1233
1233
  title: string;
1234
1234
  presentation: {
1235
1235
  quiz?: {
@@ -1456,7 +1456,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1456
1456
  quest: string;
1457
1457
  member: string;
1458
1458
  evidence: string | null;
1459
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
1459
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
1460
1460
  reason: string | null;
1461
1461
  retries: number;
1462
1462
  generation: number;
@@ -1510,7 +1510,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1510
1510
  }>;
1511
1511
  publish: (release: ReleaseInput) => Promise<{
1512
1512
  quest: string;
1513
- runtimeVersion: 2 | 1;
1513
+ runtimeVersion: 1 | 2;
1514
1514
  title: string;
1515
1515
  presentation: {
1516
1516
  quiz?: {
@@ -1651,7 +1651,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1651
1651
  }>;
1652
1652
  publishBatch: (releases: ReleaseInput[]) => Promise<{
1653
1653
  quest: string;
1654
- runtimeVersion: 2 | 1;
1654
+ runtimeVersion: 1 | 2;
1655
1655
  title: string;
1656
1656
  presentation: {
1657
1657
  quiz?: {
@@ -1858,7 +1858,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1858
1858
  quest: string;
1859
1859
  member: string;
1860
1860
  evidence: string | null;
1861
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
1861
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
1862
1862
  reason: string | null;
1863
1863
  retries: number;
1864
1864
  generation: number;
@@ -2143,7 +2143,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2143
2143
  quest: string;
2144
2144
  member: string;
2145
2145
  evidence: string | null;
2146
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
2146
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
2147
2147
  reason: string | null;
2148
2148
  retries: number;
2149
2149
  generation: number;
@@ -2185,7 +2185,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2185
2185
  quest: string;
2186
2186
  member: string;
2187
2187
  evidence: string | null;
2188
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
2188
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
2189
2189
  reason: string | null;
2190
2190
  retries: number;
2191
2191
  generation: number;
@@ -2232,7 +2232,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2232
2232
  quest: string;
2233
2233
  member: string;
2234
2234
  evidence: string | null;
2235
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
2235
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
2236
2236
  reason: string | null;
2237
2237
  retries: number;
2238
2238
  generation: number;
package/dist/index.d.ts CHANGED
@@ -186,9 +186,9 @@ type ProgressObserver = {
186
186
  };
187
187
 
188
188
  declare const interactionSchema: z.ZodEnum<{
189
- staff: "staff";
190
189
  quiz: "quiz";
191
190
  photo: "photo";
191
+ staff: "staff";
192
192
  automatic: "automatic";
193
193
  claim: "claim";
194
194
  }>;
@@ -872,7 +872,7 @@ declare const questCatalogSchema: z.ZodObject<{
872
872
  createdAt: z.ZodNumber;
873
873
  }, z.core.$strip>, z.ZodTransform<{
874
874
  quest: string;
875
- runtimeVersion: 2 | 1;
875
+ runtimeVersion: 1 | 2;
876
876
  title: string;
877
877
  presentation: {
878
878
  quiz?: {
@@ -1043,9 +1043,9 @@ declare const questCatalogSchema: z.ZodObject<{
1043
1043
  createdAt: number;
1044
1044
  }>>]>>>;
1045
1045
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1046
- staff: "staff";
1047
1046
  quiz: "quiz";
1048
1047
  photo: "photo";
1048
+ staff: "staff";
1049
1049
  automatic: "automatic";
1050
1050
  claim: "claim";
1051
1051
  }>>;
@@ -1067,9 +1067,9 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1067
1067
  title: z.ZodString;
1068
1068
  }, z.core.$strict>>>;
1069
1069
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1070
- staff: "staff";
1071
1070
  quiz: "quiz";
1072
1071
  photo: "photo";
1072
+ staff: "staff";
1073
1073
  automatic: "automatic";
1074
1074
  claim: "claim";
1075
1075
  }>>>;
@@ -1212,9 +1212,9 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1212
1212
  title: z.ZodString;
1213
1213
  }, z.core.$strict>>;
1214
1214
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1215
- staff: "staff";
1216
1215
  quiz: "quiz";
1217
1216
  photo: "photo";
1217
+ staff: "staff";
1218
1218
  automatic: "automatic";
1219
1219
  claim: "claim";
1220
1220
  }>>;
@@ -1341,11 +1341,11 @@ declare const questViewSchema: z.ZodObject<{
1341
1341
  }, Record<string, string>>>;
1342
1342
  }, z.core.$strict>>;
1343
1343
  status: z.ZodEnum<{
1344
+ "needs-review": "needs-review";
1344
1345
  queued: "queued";
1345
1346
  evaluating: "evaluating";
1346
1347
  accepted: "accepted";
1347
1348
  rejected: "rejected";
1348
- "needs-review": "needs-review";
1349
1349
  failed: "failed";
1350
1350
  }>;
1351
1351
  reason: z.ZodNullable<z.ZodString>;
@@ -1378,9 +1378,9 @@ declare const questViewSchema: z.ZodObject<{
1378
1378
  }, z.core.$strip>>;
1379
1379
  release: z.ZodString;
1380
1380
  interaction: z.ZodEnum<{
1381
- staff: "staff";
1382
1381
  quiz: "quiz";
1383
1382
  photo: "photo";
1383
+ staff: "staff";
1384
1384
  automatic: "automatic";
1385
1385
  claim: "claim";
1386
1386
  }>;
@@ -1481,11 +1481,11 @@ declare const collectionViewSchema: z.ZodObject<{
1481
1481
  }, Record<string, string>>>;
1482
1482
  }, z.core.$strict>>;
1483
1483
  status: z.ZodEnum<{
1484
+ "needs-review": "needs-review";
1484
1485
  queued: "queued";
1485
1486
  evaluating: "evaluating";
1486
1487
  accepted: "accepted";
1487
1488
  rejected: "rejected";
1488
- "needs-review": "needs-review";
1489
1489
  failed: "failed";
1490
1490
  }>;
1491
1491
  reason: z.ZodNullable<z.ZodString>;
@@ -1518,9 +1518,9 @@ declare const collectionViewSchema: z.ZodObject<{
1518
1518
  }, z.core.$strip>>;
1519
1519
  release: z.ZodString;
1520
1520
  interaction: z.ZodEnum<{
1521
- staff: "staff";
1522
1521
  quiz: "quiz";
1523
1522
  photo: "photo";
1523
+ staff: "staff";
1524
1524
  automatic: "automatic";
1525
1525
  claim: "claim";
1526
1526
  }>;
@@ -1621,11 +1621,11 @@ declare const questExperienceSchema: z.ZodObject<{
1621
1621
  }, Record<string, string>>>;
1622
1622
  }, z.core.$strict>>;
1623
1623
  status: z.ZodEnum<{
1624
+ "needs-review": "needs-review";
1624
1625
  queued: "queued";
1625
1626
  evaluating: "evaluating";
1626
1627
  accepted: "accepted";
1627
1628
  rejected: "rejected";
1628
- "needs-review": "needs-review";
1629
1629
  failed: "failed";
1630
1630
  }>;
1631
1631
  reason: z.ZodNullable<z.ZodString>;
@@ -1658,9 +1658,9 @@ declare const questExperienceSchema: z.ZodObject<{
1658
1658
  }, z.core.$strip>>;
1659
1659
  release: z.ZodString;
1660
1660
  interaction: z.ZodEnum<{
1661
- staff: "staff";
1662
1661
  quiz: "quiz";
1663
1662
  photo: "photo";
1663
+ staff: "staff";
1664
1664
  automatic: "automatic";
1665
1665
  claim: "claim";
1666
1666
  }>;
@@ -1761,11 +1761,11 @@ declare const questExperienceSchema: z.ZodObject<{
1761
1761
  }, Record<string, string>>>;
1762
1762
  }, z.core.$strict>>;
1763
1763
  status: z.ZodEnum<{
1764
+ "needs-review": "needs-review";
1764
1765
  queued: "queued";
1765
1766
  evaluating: "evaluating";
1766
1767
  accepted: "accepted";
1767
1768
  rejected: "rejected";
1768
- "needs-review": "needs-review";
1769
1769
  failed: "failed";
1770
1770
  }>;
1771
1771
  reason: z.ZodNullable<z.ZodString>;
@@ -1798,9 +1798,9 @@ declare const questExperienceSchema: z.ZodObject<{
1798
1798
  }, z.core.$strip>>;
1799
1799
  release: z.ZodString;
1800
1800
  interaction: z.ZodEnum<{
1801
- staff: "staff";
1802
1801
  quiz: "quiz";
1803
1802
  photo: "photo";
1803
+ staff: "staff";
1804
1804
  automatic: "automatic";
1805
1805
  claim: "claim";
1806
1806
  }>;
@@ -2084,7 +2084,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2084
2084
  createdAt: z.ZodNumber;
2085
2085
  }, z.core.$strip>, z.ZodTransform<{
2086
2086
  quest: string;
2087
- runtimeVersion: 2 | 1;
2087
+ runtimeVersion: 1 | 2;
2088
2088
  title: string;
2089
2089
  presentation: {
2090
2090
  quiz?: {
@@ -2442,9 +2442,9 @@ declare const projectDeploymentSchema: z.ZodObject<{
2442
2442
  }>;
2443
2443
  }, z.core.$strip>>>;
2444
2444
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2445
- staff: "staff";
2446
2445
  quiz: "quiz";
2447
2446
  photo: "photo";
2447
+ staff: "staff";
2448
2448
  automatic: "automatic";
2449
2449
  claim: "claim";
2450
2450
  }>>>;
@@ -2669,7 +2669,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2669
2669
  createdAt: z.ZodNumber;
2670
2670
  }, z.core.$strip>, z.ZodTransform<{
2671
2671
  quest: string;
2672
- runtimeVersion: 2 | 1;
2672
+ runtimeVersion: 1 | 2;
2673
2673
  title: string;
2674
2674
  presentation: {
2675
2675
  quiz?: {
@@ -2976,9 +2976,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2976
2976
  quests: z.ZodArray<z.ZodString>;
2977
2977
  }, z.core.$strict>>;
2978
2978
  supportedInteractions: z.ZodArray<z.ZodEnum<{
2979
- staff: "staff";
2980
2979
  quiz: "quiz";
2981
2980
  photo: "photo";
2981
+ staff: "staff";
2982
2982
  automatic: "automatic";
2983
2983
  claim: "claim";
2984
2984
  }>>;
@@ -3185,7 +3185,7 @@ declare const deploymentResultSchema: z.ZodObject<{
3185
3185
  createdAt: z.ZodNumber;
3186
3186
  }, z.core.$strip>, z.ZodTransform<{
3187
3187
  quest: string;
3188
- runtimeVersion: 2 | 1;
3188
+ runtimeVersion: 1 | 2;
3189
3189
  title: string;
3190
3190
  presentation: {
3191
3191
  quiz?: {
@@ -3492,9 +3492,9 @@ declare const deploymentResultSchema: z.ZodObject<{
3492
3492
  quests: z.ZodArray<z.ZodString>;
3493
3493
  }, z.core.$strict>>;
3494
3494
  supportedInteractions: z.ZodArray<z.ZodEnum<{
3495
- staff: "staff";
3496
3495
  quiz: "quiz";
3497
3496
  photo: "photo";
3497
+ staff: "staff";
3498
3498
  automatic: "automatic";
3499
3499
  claim: "claim";
3500
3500
  }>>;
@@ -3577,7 +3577,7 @@ declare function createRelayClient(options: {
3577
3577
  quest: string;
3578
3578
  member: string;
3579
3579
  evidence: string | null;
3580
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
3580
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
3581
3581
  reason: string | null;
3582
3582
  retries: number;
3583
3583
  generation: number;
@@ -3614,7 +3614,7 @@ declare function createRelayClient(options: {
3614
3614
  } | undefined;
3615
3615
  } | null;
3616
3616
  release: string;
3617
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
3617
+ interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
3618
3618
  lifecycle: "active" | "paused" | "archived";
3619
3619
  rewards: {
3620
3620
  label: string;
@@ -3626,7 +3626,7 @@ declare function createRelayClient(options: {
3626
3626
  quest: string;
3627
3627
  member: string;
3628
3628
  evidence: string | null;
3629
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
3629
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
3630
3630
  reason: string | null;
3631
3631
  retries: number;
3632
3632
  generation: number;
@@ -3730,7 +3730,7 @@ declare function createRelayClient(options: {
3730
3730
  quest: string;
3731
3731
  member: string;
3732
3732
  evidence: string | null;
3733
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
3733
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
3734
3734
  reason: string | null;
3735
3735
  retries: number;
3736
3736
  generation: number;
@@ -3767,7 +3767,7 @@ declare function createRelayClient(options: {
3767
3767
  } | undefined;
3768
3768
  } | null;
3769
3769
  release: string;
3770
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
3770
+ interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
3771
3771
  lifecycle: "active" | "paused" | "archived";
3772
3772
  rewards: {
3773
3773
  label: string;
@@ -3842,7 +3842,7 @@ declare function createRelayClient(options: {
3842
3842
  quest: string;
3843
3843
  member: string;
3844
3844
  evidence: string | null;
3845
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
3845
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
3846
3846
  reason: string | null;
3847
3847
  retries: number;
3848
3848
  generation: number;
@@ -3879,7 +3879,7 @@ declare function createRelayClient(options: {
3879
3879
  } | undefined;
3880
3880
  } | null;
3881
3881
  release: string;
3882
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
3882
+ interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
3883
3883
  lifecycle: "active" | "paused" | "archived";
3884
3884
  rewards: {
3885
3885
  label: string;
@@ -3956,7 +3956,7 @@ declare function createRelayClient(options: {
3956
3956
  quest: string;
3957
3957
  member: string;
3958
3958
  evidence: string | null;
3959
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
3959
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
3960
3960
  reason: string | null;
3961
3961
  retries: number;
3962
3962
  generation: number;
@@ -3993,7 +3993,7 @@ declare function createRelayClient(options: {
3993
3993
  } | undefined;
3994
3994
  } | null;
3995
3995
  release: string;
3996
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
3996
+ interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
3997
3997
  lifecycle: "active" | "paused" | "archived";
3998
3998
  rewards: {
3999
3999
  label: string;
@@ -4155,7 +4155,7 @@ declare function createRelayClient(options: {
4155
4155
  quest: string;
4156
4156
  member: string;
4157
4157
  evidence: string | null;
4158
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
4158
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
4159
4159
  reason: string | null;
4160
4160
  retries: number;
4161
4161
  generation: number;
@@ -4259,7 +4259,7 @@ declare function createRelayClient(options: {
4259
4259
  quest: string;
4260
4260
  member: string;
4261
4261
  evidence: string | null;
4262
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
4262
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
4263
4263
  reason: string | null;
4264
4264
  retries: number;
4265
4265
  generation: number;
@@ -4383,7 +4383,7 @@ declare function createRelayClient(options: {
4383
4383
  quest: string;
4384
4384
  member: string;
4385
4385
  evidence: string | null;
4386
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
4386
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
4387
4387
  reason: string | null;
4388
4388
  retries: number;
4389
4389
  generation: number;
@@ -4437,7 +4437,7 @@ declare function createRelayClient(options: {
4437
4437
  quest: string;
4438
4438
  member: string;
4439
4439
  evidence: string | null;
4440
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
4440
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
4441
4441
  reason: string | null;
4442
4442
  retries: number;
4443
4443
  generation: number;
@@ -4507,7 +4507,7 @@ declare function createRelayClient(options: {
4507
4507
  code: string;
4508
4508
  definition: {
4509
4509
  quest: string;
4510
- runtimeVersion: 2 | 1;
4510
+ runtimeVersion: 1 | 2;
4511
4511
  title: string;
4512
4512
  presentation: {
4513
4513
  quiz?: {
@@ -4621,7 +4621,7 @@ declare function createRelayClient(options: {
4621
4621
  code: string;
4622
4622
  definition: {
4623
4623
  quest: string;
4624
- runtimeVersion: 2 | 1;
4624
+ runtimeVersion: 1 | 2;
4625
4625
  title: string;
4626
4626
  presentation: {
4627
4627
  quiz?: {
@@ -4734,7 +4734,7 @@ declare function createRelayClient(options: {
4734
4734
  snapshot: () => Promise<{
4735
4735
  releases: {
4736
4736
  quest: string;
4737
- runtimeVersion: 2 | 1;
4737
+ runtimeVersion: 1 | 2;
4738
4738
  title: string;
4739
4739
  presentation: {
4740
4740
  quiz?: {
@@ -4961,7 +4961,7 @@ declare function createRelayClient(options: {
4961
4961
  quest: string;
4962
4962
  member: string;
4963
4963
  evidence: string | null;
4964
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
4964
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
4965
4965
  reason: string | null;
4966
4966
  retries: number;
4967
4967
  generation: number;
@@ -5015,7 +5015,7 @@ declare function createRelayClient(options: {
5015
5015
  }>;
5016
5016
  publish: (release: ReleaseInput) => Promise<{
5017
5017
  quest: string;
5018
- runtimeVersion: 2 | 1;
5018
+ runtimeVersion: 1 | 2;
5019
5019
  title: string;
5020
5020
  presentation: {
5021
5021
  quiz?: {
@@ -5156,7 +5156,7 @@ declare function createRelayClient(options: {
5156
5156
  }>;
5157
5157
  publishBatch: (releases: ReleaseInput[]) => Promise<{
5158
5158
  quest: string;
5159
- runtimeVersion: 2 | 1;
5159
+ runtimeVersion: 1 | 2;
5160
5160
  title: string;
5161
5161
  presentation: {
5162
5162
  quiz?: {
@@ -5363,7 +5363,7 @@ declare function createRelayClient(options: {
5363
5363
  quest: string;
5364
5364
  member: string;
5365
5365
  evidence: string | null;
5366
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
5366
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
5367
5367
  reason: string | null;
5368
5368
  retries: number;
5369
5369
  generation: number;
@@ -5648,7 +5648,7 @@ declare function createRelayClient(options: {
5648
5648
  quest: string;
5649
5649
  member: string;
5650
5650
  evidence: string | null;
5651
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
5651
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
5652
5652
  reason: string | null;
5653
5653
  retries: number;
5654
5654
  generation: number;
@@ -5690,7 +5690,7 @@ declare function createRelayClient(options: {
5690
5690
  quest: string;
5691
5691
  member: string;
5692
5692
  evidence: string | null;
5693
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
5693
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
5694
5694
  reason: string | null;
5695
5695
  retries: number;
5696
5696
  generation: number;
@@ -5737,7 +5737,7 @@ declare function createRelayClient(options: {
5737
5737
  quest: string;
5738
5738
  member: string;
5739
5739
  evidence: string | null;
5740
- status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
5740
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
5741
5741
  reason: string | null;
5742
5742
  retries: number;
5743
5743
  generation: number;
package/dist/schema.d.ts CHANGED
@@ -71,8 +71,8 @@ declare const triggerSchema: z.ZodUnion<readonly [z.ZodObject<{
71
71
  none: "none";
72
72
  }>;
73
73
  actor: z.ZodOptional<z.ZodEnum<{
74
- member: "member";
75
74
  staff: "staff";
75
+ member: "member";
76
76
  }>>;
77
77
  }, z.core.$strict>, z.ZodObject<{
78
78
  kind: z.ZodLiteral<"automatic">;
@@ -299,8 +299,8 @@ declare const questDescriptionSchema: z.ZodObject<{
299
299
  none: "none";
300
300
  }>;
301
301
  actor: z.ZodOptional<z.ZodEnum<{
302
- member: "member";
303
302
  staff: "staff";
303
+ member: "member";
304
304
  }>>;
305
305
  }, z.core.$strict>, z.ZodObject<{
306
306
  kind: z.ZodLiteral<"automatic">;
@@ -481,8 +481,8 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
481
481
  none: "none";
482
482
  }>;
483
483
  actor: z.ZodOptional<z.ZodEnum<{
484
- member: "member";
485
484
  staff: "staff";
485
+ member: "member";
486
486
  }>>;
487
487
  }, z.core.$strict>, z.ZodObject<{
488
488
  kind: z.ZodLiteral<"automatic">;
@@ -670,7 +670,7 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
670
670
  trigger: {
671
671
  kind: "manual";
672
672
  input: "photo" | "quiz" | "none";
673
- actor?: "member" | "staff" | undefined;
673
+ actor?: "staff" | "member" | undefined;
674
674
  } | {
675
675
  kind: "automatic";
676
676
  };
@@ -850,8 +850,8 @@ declare const templateSchema: z.ZodObject<{
850
850
  none: "none";
851
851
  }>;
852
852
  actor: z.ZodOptional<z.ZodEnum<{
853
- member: "member";
854
853
  staff: "staff";
854
+ member: "member";
855
855
  }>>;
856
856
  }, z.core.$strict>, z.ZodObject<{
857
857
  kind: z.ZodLiteral<"automatic">;
@@ -1187,8 +1187,8 @@ declare const memberProgressSchema: z.ZodObject<{
1187
1187
  none: "none";
1188
1188
  }>;
1189
1189
  actor: z.ZodOptional<z.ZodEnum<{
1190
- member: "member";
1191
1190
  staff: "staff";
1191
+ member: "member";
1192
1192
  }>>;
1193
1193
  }, z.core.$strict>, z.ZodObject<{
1194
1194
  kind: z.ZodLiteral<"automatic">;
@@ -1460,8 +1460,8 @@ declare const snapshotSchema: z.ZodObject<{
1460
1460
  none: "none";
1461
1461
  }>;
1462
1462
  actor: z.ZodOptional<z.ZodEnum<{
1463
- member: "member";
1464
1463
  staff: "staff";
1464
+ member: "member";
1465
1465
  }>>;
1466
1466
  }, z.core.$strict>, z.ZodObject<{
1467
1467
  kind: z.ZodLiteral<"automatic">;
@@ -1649,7 +1649,7 @@ declare const snapshotSchema: z.ZodObject<{
1649
1649
  trigger: {
1650
1650
  kind: "manual";
1651
1651
  input: "photo" | "quiz" | "none";
1652
- actor?: "member" | "staff" | undefined;
1652
+ actor?: "staff" | "member" | undefined;
1653
1653
  } | {
1654
1654
  kind: "automatic";
1655
1655
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domino-sdk/relay",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {