@domino-sdk/relay 0.9.1 → 0.10.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/browser.d.ts CHANGED
@@ -339,7 +339,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
339
339
  } | undefined;
340
340
  } | undefined;
341
341
  };
342
- connections: ("google" | "apple" | "x" | "discord")[];
342
+ connections: ("discord" | "google" | "apple" | "x")[];
343
343
  trigger: {
344
344
  kind: "manual";
345
345
  input: "quiz" | "photo" | "none";
@@ -398,7 +398,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
398
398
  quest: string;
399
399
  member: string;
400
400
  evidence: string | null;
401
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
401
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
402
402
  reason: string | null;
403
403
  retries: number;
404
404
  generation: number;
@@ -440,7 +440,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
440
440
  } | undefined;
441
441
  } | null;
442
442
  release: string;
443
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
443
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
444
444
  lifecycle: "active" | "paused" | "archived";
445
445
  rewards: {
446
446
  label: string;
@@ -453,7 +453,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
453
453
  quest: string;
454
454
  member: string;
455
455
  evidence: string | null;
456
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
456
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
457
457
  reason: string | null;
458
458
  retries: number;
459
459
  generation: number;
@@ -519,7 +519,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
519
519
  } | undefined;
520
520
  } | undefined;
521
521
  };
522
- connections: ("google" | "apple" | "x" | "discord")[];
522
+ connections: ("discord" | "google" | "apple" | "x")[];
523
523
  trigger: {
524
524
  kind: "manual";
525
525
  input: "quiz" | "photo" | "none";
@@ -578,7 +578,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
578
578
  quest: string;
579
579
  member: string;
580
580
  evidence: string | null;
581
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
581
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
582
582
  reason: string | null;
583
583
  retries: number;
584
584
  generation: number;
@@ -620,7 +620,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
620
620
  } | undefined;
621
621
  } | null;
622
622
  release: string;
623
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
623
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
624
624
  lifecycle: "active" | "paused" | "archived";
625
625
  rewards: {
626
626
  label: string;
@@ -653,7 +653,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
653
653
  } | undefined;
654
654
  } | undefined;
655
655
  };
656
- connections: ("google" | "apple" | "x" | "discord")[];
656
+ connections: ("discord" | "google" | "apple" | "x")[];
657
657
  trigger: {
658
658
  kind: "manual";
659
659
  input: "quiz" | "photo" | "none";
@@ -712,7 +712,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
712
712
  quest: string;
713
713
  member: string;
714
714
  evidence: string | null;
715
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
715
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
716
716
  reason: string | null;
717
717
  retries: number;
718
718
  generation: number;
@@ -754,7 +754,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
754
754
  } | undefined;
755
755
  } | null;
756
756
  release: string;
757
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
757
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
758
758
  lifecycle: "active" | "paused" | "archived";
759
759
  rewards: {
760
760
  label: string;
@@ -790,7 +790,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
790
790
  } | undefined;
791
791
  } | undefined;
792
792
  };
793
- connections: ("google" | "apple" | "x" | "discord")[];
793
+ connections: ("discord" | "google" | "apple" | "x")[];
794
794
  trigger: {
795
795
  kind: "manual";
796
796
  input: "quiz" | "photo" | "none";
@@ -849,7 +849,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
849
849
  quest: string;
850
850
  member: string;
851
851
  evidence: string | null;
852
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
852
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
853
853
  reason: string | null;
854
854
  retries: number;
855
855
  generation: number;
@@ -891,7 +891,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
891
891
  } | undefined;
892
892
  } | null;
893
893
  release: string;
894
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
894
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
895
895
  lifecycle: "active" | "paused" | "archived";
896
896
  rewards: {
897
897
  label: string;
@@ -930,7 +930,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
930
930
  auth: {
931
931
  providers: () => Promise<{
932
932
  providers: {
933
- provider: "google" | "apple" | "x" | "discord";
933
+ provider: "discord" | "google" | "apple" | "x";
934
934
  configured: boolean;
935
935
  }[];
936
936
  email: boolean;
@@ -960,7 +960,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
960
960
  expiresAt: number;
961
961
  }>;
962
962
  accounts: () => Promise<{
963
- provider: "google" | "apple" | "x" | "discord";
963
+ provider: "discord" | "google" | "apple" | "x";
964
964
  configured: boolean;
965
965
  status: "disconnected" | "connected" | "reconnect";
966
966
  subject: string | null;
@@ -1051,7 +1051,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1051
1051
  quest: string;
1052
1052
  member: string;
1053
1053
  evidence: string | null;
1054
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
1054
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
1055
1055
  reason: string | null;
1056
1056
  retries: number;
1057
1057
  generation: number;
@@ -1117,7 +1117,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1117
1117
  } | undefined;
1118
1118
  } | undefined;
1119
1119
  };
1120
- connections: ("google" | "apple" | "x" | "discord")[];
1120
+ connections: ("discord" | "google" | "apple" | "x")[];
1121
1121
  trigger: {
1122
1122
  kind: "manual";
1123
1123
  input: "quiz" | "photo" | "none";
@@ -1176,7 +1176,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1176
1176
  quest: string;
1177
1177
  member: string;
1178
1178
  evidence: string | null;
1179
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
1179
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
1180
1180
  reason: string | null;
1181
1181
  retries: number;
1182
1182
  generation: number;
@@ -1323,7 +1323,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1323
1323
  quest: string;
1324
1324
  member: string;
1325
1325
  evidence: string | null;
1326
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
1326
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
1327
1327
  reason: string | null;
1328
1328
  retries: number;
1329
1329
  generation: number;
@@ -1382,7 +1382,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1382
1382
  quest: string;
1383
1383
  member: string;
1384
1384
  evidence: string | null;
1385
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
1385
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
1386
1386
  reason: string | null;
1387
1387
  retries: number;
1388
1388
  generation: number;
@@ -1457,7 +1457,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1457
1457
  code: string;
1458
1458
  definition: {
1459
1459
  quest: string;
1460
- runtimeVersion: 1 | 2;
1460
+ runtimeVersion: 2 | 1;
1461
1461
  title: string;
1462
1462
  presentation: {
1463
1463
  quiz?: {
@@ -1494,12 +1494,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1494
1494
  kind: "resource";
1495
1495
  default: string;
1496
1496
  source: {
1497
+ provider: "domino";
1498
+ resource: "point-ledger";
1499
+ } | {
1497
1500
  provider: "discord";
1498
1501
  resource: "channel";
1499
1502
  types: ("text" | "announcement")[];
1500
- } | {
1501
- provider: "domino";
1502
- resource: "point-ledger";
1503
1503
  } | {
1504
1504
  provider: "discord";
1505
1505
  resource: "role";
@@ -1607,8 +1607,8 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1607
1607
  visibility: "visible" | "hidden";
1608
1608
  budgets: {
1609
1609
  id: string;
1610
- scope: "member" | "project";
1611
- period: "lifetime" | "day";
1610
+ scope: "project" | "member";
1611
+ period: "day" | "lifetime";
1612
1612
  limit: number;
1613
1613
  cost: number | {
1614
1614
  balance: string;
@@ -1620,7 +1620,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1620
1620
  code: string;
1621
1621
  definition: {
1622
1622
  quest: string;
1623
- runtimeVersion: 1 | 2;
1623
+ runtimeVersion: 2 | 1;
1624
1624
  title: string;
1625
1625
  presentation: {
1626
1626
  quiz?: {
@@ -1657,12 +1657,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1657
1657
  kind: "resource";
1658
1658
  default: string;
1659
1659
  source: {
1660
+ provider: "domino";
1661
+ resource: "point-ledger";
1662
+ } | {
1660
1663
  provider: "discord";
1661
1664
  resource: "channel";
1662
1665
  types: ("text" | "announcement")[];
1663
- } | {
1664
- provider: "domino";
1665
- resource: "point-ledger";
1666
1666
  } | {
1667
1667
  provider: "discord";
1668
1668
  resource: "role";
@@ -1770,8 +1770,8 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1770
1770
  visibility: "visible" | "hidden";
1771
1771
  budgets: {
1772
1772
  id: string;
1773
- scope: "member" | "project";
1774
- period: "lifetime" | "day";
1773
+ scope: "project" | "member";
1774
+ period: "day" | "lifetime";
1775
1775
  limit: number;
1776
1776
  cost: number | {
1777
1777
  balance: string;
@@ -1782,7 +1782,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1782
1782
  snapshot: () => Promise<{
1783
1783
  releases: {
1784
1784
  quest: string;
1785
- runtimeVersion: 1 | 2;
1785
+ runtimeVersion: 2 | 1;
1786
1786
  title: string;
1787
1787
  presentation: {
1788
1788
  quiz?: {
@@ -1819,12 +1819,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1819
1819
  kind: "resource";
1820
1820
  default: string;
1821
1821
  source: {
1822
+ provider: "domino";
1823
+ resource: "point-ledger";
1824
+ } | {
1822
1825
  provider: "discord";
1823
1826
  resource: "channel";
1824
1827
  types: ("text" | "announcement")[];
1825
- } | {
1826
- provider: "domino";
1827
- resource: "point-ledger";
1828
1828
  } | {
1829
1829
  provider: "discord";
1830
1830
  resource: "role";
@@ -1932,8 +1932,8 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1932
1932
  visibility: "visible" | "hidden";
1933
1933
  budgets: {
1934
1934
  id: string;
1935
- scope: "member" | "project";
1936
- period: "lifetime" | "day";
1935
+ scope: "project" | "member";
1936
+ period: "day" | "lifetime";
1937
1937
  limit: number;
1938
1938
  cost: number | {
1939
1939
  balance: string;
@@ -2060,7 +2060,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2060
2060
  quest: string;
2061
2061
  member: string;
2062
2062
  evidence: string | null;
2063
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
2063
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
2064
2064
  reason: string | null;
2065
2065
  retries: number;
2066
2066
  generation: number;
@@ -2119,7 +2119,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2119
2119
  }>;
2120
2120
  publish: (release: ReleaseInput) => Promise<{
2121
2121
  quest: string;
2122
- runtimeVersion: 1 | 2;
2122
+ runtimeVersion: 2 | 1;
2123
2123
  title: string;
2124
2124
  presentation: {
2125
2125
  quiz?: {
@@ -2156,12 +2156,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2156
2156
  kind: "resource";
2157
2157
  default: string;
2158
2158
  source: {
2159
+ provider: "domino";
2160
+ resource: "point-ledger";
2161
+ } | {
2159
2162
  provider: "discord";
2160
2163
  resource: "channel";
2161
2164
  types: ("text" | "announcement")[];
2162
- } | {
2163
- provider: "domino";
2164
- resource: "point-ledger";
2165
2165
  } | {
2166
2166
  provider: "discord";
2167
2167
  resource: "role";
@@ -2269,8 +2269,8 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2269
2269
  visibility: "visible" | "hidden";
2270
2270
  budgets: {
2271
2271
  id: string;
2272
- scope: "member" | "project";
2273
- period: "lifetime" | "day";
2272
+ scope: "project" | "member";
2273
+ period: "day" | "lifetime";
2274
2274
  limit: number;
2275
2275
  cost: number | {
2276
2276
  balance: string;
@@ -2310,7 +2310,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2310
2310
  }>;
2311
2311
  publishBatch: (releases: ReleaseInput[]) => Promise<{
2312
2312
  quest: string;
2313
- runtimeVersion: 1 | 2;
2313
+ runtimeVersion: 2 | 1;
2314
2314
  title: string;
2315
2315
  presentation: {
2316
2316
  quiz?: {
@@ -2347,12 +2347,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2347
2347
  kind: "resource";
2348
2348
  default: string;
2349
2349
  source: {
2350
+ provider: "domino";
2351
+ resource: "point-ledger";
2352
+ } | {
2350
2353
  provider: "discord";
2351
2354
  resource: "channel";
2352
2355
  types: ("text" | "announcement")[];
2353
- } | {
2354
- provider: "domino";
2355
- resource: "point-ledger";
2356
2356
  } | {
2357
2357
  provider: "discord";
2358
2358
  resource: "role";
@@ -2460,8 +2460,8 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2460
2460
  visibility: "visible" | "hidden";
2461
2461
  budgets: {
2462
2462
  id: string;
2463
- scope: "member" | "project";
2464
- period: "lifetime" | "day";
2463
+ scope: "project" | "member";
2464
+ period: "day" | "lifetime";
2465
2465
  limit: number;
2466
2466
  cost: number | {
2467
2467
  balance: string;
@@ -2524,7 +2524,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2524
2524
  } | undefined;
2525
2525
  } | undefined;
2526
2526
  };
2527
- connections: ("google" | "apple" | "x" | "discord")[];
2527
+ connections: ("discord" | "google" | "apple" | "x")[];
2528
2528
  trigger: {
2529
2529
  kind: "manual";
2530
2530
  input: "quiz" | "photo" | "none";
@@ -2583,7 +2583,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2583
2583
  quest: string;
2584
2584
  member: string;
2585
2585
  evidence: string | null;
2586
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
2586
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
2587
2587
  reason: string | null;
2588
2588
  retries: number;
2589
2589
  generation: number;
@@ -2874,7 +2874,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2874
2874
  quest: string;
2875
2875
  member: string;
2876
2876
  evidence: string | null;
2877
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
2877
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
2878
2878
  reason: string | null;
2879
2879
  retries: number;
2880
2880
  generation: number;
@@ -2921,7 +2921,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2921
2921
  quest: string;
2922
2922
  member: string;
2923
2923
  evidence: string | null;
2924
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
2924
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
2925
2925
  reason: string | null;
2926
2926
  retries: number;
2927
2927
  generation: number;
@@ -2973,7 +2973,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2973
2973
  quest: string;
2974
2974
  member: string;
2975
2975
  evidence: string | null;
2976
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "rejected" | "failed";
2976
+ status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
2977
2977
  reason: string | null;
2978
2978
  retries: number;
2979
2979
  generation: number;
package/dist/browser.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createRelayClient
3
- } from "./chunk-Y6H4HDQT.js";
3
+ } from "./chunk-ATLYA27Y.js";
4
4
  import "./chunk-Q5VDZVVO.js";
5
5
  import "./chunk-MVDE7WKB.js";
6
6
  import "./chunk-XTFCKK2Y.js";
@@ -1063,6 +1063,7 @@ function createRelayClient(options) {
1063
1063
  "X-Relay-Session": session
1064
1064
  }
1065
1065
  }),
1066
+ /** @deprecated The participant API does not verify passes. Verify them on your server and call `POST /management/v1/passes/verify`. */
1066
1067
  linkPass: (code) => request("/v1/me/pass", attemptSchema, json({ code })),
1067
1068
  progress: () => request("/v1/me/progress", memberProgressSchema),
1068
1069
  rewardDeliveries: () => request("/v1/reward-deliveries", rewardDeliveriesSchema),
@@ -1079,6 +1080,7 @@ function createRelayClient(options) {
1079
1080
  body: file
1080
1081
  })
1081
1082
  },
1083
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
1082
1084
  reviews: {
1083
1085
  list: (options2 = {}, requestOptions) => request(
1084
1086
  query("/v1/reviews", reviewListSchema.parse(options2)),
@@ -1086,6 +1088,7 @@ function createRelayClient(options) {
1086
1088
  requestOptions
1087
1089
  )
1088
1090
  },
1091
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
1089
1092
  members: {
1090
1093
  list: (options2 = {}, requestOptions) => request(
1091
1094
  query("/v1/members", memberListSchema.parse(options2)),
@@ -1105,15 +1108,21 @@ function createRelayClient(options) {
1105
1108
  return response.blob();
1106
1109
  }
1107
1110
  },
1111
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
1108
1112
  lookupMember: (issuer, subject) => request(
1109
1113
  "/v1/members/lookup",
1110
1114
  z9.object({ member: z9.string() }),
1111
1115
  json({ issuer, subject })
1112
1116
  ),
1117
+ /** @deprecated Removed from the participant API. Build quests with `domino` and `@domino-sdk/relay/build`. */
1113
1118
  journeyTemplate: () => request("/v1/journey-template", z9.array(templateSchema)),
1119
+ /** @deprecated Removed from the participant API. Build quests with `domino` and `@domino-sdk/relay/build`. */
1114
1120
  template: () => request("/v1/template", templateSchema),
1121
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
1115
1122
  snapshot: () => request("/v1/snapshot", snapshotSchema),
1123
+ /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
1116
1124
  publish: (release) => request("/v1/releases", publishedReleaseSchema, json(release)),
1125
+ /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
1117
1126
  publishBatch: (releases) => request(
1118
1127
  "/v1/releases/batch",
1119
1128
  z9.array(publishedReleaseSchema),
@@ -1123,7 +1132,9 @@ function createRelayClient(options) {
1123
1132
  `/v1/members/${encodeURIComponent(member)}/progress`,
1124
1133
  memberProgressSchema
1125
1134
  ),
1135
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
1126
1136
  beginHandover: (id, input) => request(`/v1/entitlements/${id}/begin`, entitlementSchema, json(input)),
1137
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
1127
1138
  confirmHandover: (id, input) => request(`/v1/entitlements/${id}/confirm`, entitlementSchema, json(input)),
1128
1139
  upload: (member, file) => request(
1129
1140
  `/v1/evidence?member=${encodeURIComponent(member)}`,
@@ -1136,6 +1147,7 @@ function createRelayClient(options) {
1136
1147
  ),
1137
1148
  submit: (input) => request("/v1/attempts", attemptSchema, json(input)),
1138
1149
  retry: (id) => request(`/v1/attempts/${id}/retry`, attemptSchema, json({})),
1150
+ /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
1139
1151
  decide: (id, input) => request(`/v1/attempts/${id}/review`, attemptSchema, json(input))
1140
1152
  };
1141
1153
  }