@domino-sdk/relay 0.10.0 → 0.12.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.
@@ -2,7 +2,7 @@ import {
2
2
  identifier,
3
3
  pointsRewardSchema,
4
4
  tierRewardSchema
5
- } from "./chunk-XTFCKK2Y.js";
5
+ } from "./chunk-3UOTI4IU.js";
6
6
 
7
7
  // src/authoring-identity.ts
8
8
  import { z } from "zod";
@@ -13,12 +13,12 @@ import {
13
13
  referralHistorySchema,
14
14
  referralSummarySchema,
15
15
  validateAuthoringIdentity
16
- } from "./chunk-Q5VDZVVO.js";
16
+ } from "./chunk-CE5XVIJQ.js";
17
17
  import {
18
18
  authScopeSchema,
19
19
  exchangeResultSchema,
20
20
  sessionSchema
21
- } from "./chunk-MVDE7WKB.js";
21
+ } from "./chunk-VDWQL6HV.js";
22
22
  import {
23
23
  accountConnectionSchema,
24
24
  attemptSchema,
@@ -43,7 +43,7 @@ import {
43
43
  snapshotSchema,
44
44
  storedReviewModeSchema,
45
45
  templateSchema
46
- } from "./chunk-XTFCKK2Y.js";
46
+ } from "./chunk-3UOTI4IU.js";
47
47
 
48
48
  // src/point-ledgers.ts
49
49
  import { z } from "zod";
@@ -67,8 +67,15 @@ var rewardDeliverySchema = z2.object({
67
67
  provider: z2.literal("discord"),
68
68
  action: z2.literal("grant-role"),
69
69
  roleId: z2.string(),
70
- status: z2.enum(["pending", "delivered"]),
70
+ /**
71
+ * `failed` is terminal: Discord rejected the grant permanently (unknown role,
72
+ * member left the server, missing permissions) or retries ran out after
73
+ * about a day. An operator can retry it once the cause is fixed.
74
+ */
75
+ status: z2.enum(["pending", "delivered", "failed"]),
76
+ /** Provider attempts in the current round; an operator retry starts a new round at zero. */
71
77
  attempts: z2.number().int(),
78
+ /** While pending with a `lastError`, when the next attempt is scheduled. */
72
79
  nextAt: z2.number(),
73
80
  lastError: z2.string().nullable(),
74
81
  createdAt: z2.number(),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  identifier
3
- } from "./chunk-XTFCKK2Y.js";
3
+ } from "./chunk-3UOTI4IU.js";
4
4
 
5
5
  // src/auth.ts
6
6
  import { z } from "zod";