@domino-sdk/relay 1.0.0-next.10 → 1.0.0-next.13

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.
Files changed (46) hide show
  1. package/dist/authoring.d.ts +39 -36
  2. package/dist/authoring.js +10 -3
  3. package/dist/avatar.d.ts +2 -2
  4. package/dist/browser.d.ts +153 -129
  5. package/dist/browser.js +6 -6
  6. package/dist/{pages-D3titw5B.d.ts → catalog-C85V1NgW.d.ts} +178 -216
  7. package/dist/{chunk-ZWY3R6B3.js → chunk-6A2V4L3T.js} +4 -0
  8. package/dist/{chunk-YYD4QUBO.js → chunk-CRNQP7NV.js} +550 -470
  9. package/dist/{chunk-X2F2RAR3.js → chunk-EZWNGI5B.js} +23 -4
  10. package/dist/{chunk-7Q4BGGT6.js → chunk-FXYJ4OMX.js} +1 -1
  11. package/dist/{chunk-4LBUTHD6.js → chunk-II7DRZSL.js} +1 -1
  12. package/dist/chunk-KS33GOUL.js +83 -0
  13. package/dist/{chunk-QR7ZA2BJ.js → chunk-M64XHC42.js} +48 -4
  14. package/dist/chunk-MNQI35OG.js +100 -0
  15. package/dist/{chunk-PHU5VDLR.js → chunk-OA2KMQVZ.js} +41 -26
  16. package/dist/{chunk-P6FK43GG.js → chunk-WQ24ILGO.js} +140 -41
  17. package/dist/{client-CT4-S5vc.d.ts → client-Bf9PNUIi.d.ts} +61 -80
  18. package/dist/deployments-CNCP0JnD.d.ts +4250 -0
  19. package/dist/identity-integration-CBR8l3ju.d.ts +37 -0
  20. package/dist/images-BG4pdO4y.d.ts +234 -0
  21. package/dist/index.d.ts +10 -8
  22. package/dist/index.js +8 -5
  23. package/dist/{integrations-Ba5TtqTv.d.ts → integrations-EjQzIApL.d.ts} +1 -88
  24. package/dist/internal.d.ts +7 -38
  25. package/dist/internal.js +15 -88
  26. package/dist/observations-CQ6IcNuQ.d.ts +90 -0
  27. package/dist/pages-KYK1L60W.d.ts +152 -0
  28. package/dist/portal-proxy.js +5 -4
  29. package/dist/{profiles-DDMFBRKe.d.ts → profiles-BtOXMGcC.d.ts} +1 -1
  30. package/dist/react/index.d.ts +150 -31
  31. package/dist/react/index.js +149 -11
  32. package/dist/{submission-input-0OOGaq8c.d.ts → referrals-KQfP4pBf.d.ts} +189 -182
  33. package/dist/request-error-VnTiMXc3.d.ts +52 -0
  34. package/dist/{schema-Di3aLSiK.d.ts → schema-BF_TQsmT.d.ts} +338 -47
  35. package/dist/schema.d.ts +14 -4126
  36. package/dist/schema.js +46 -40
  37. package/dist/server/index.d.ts +19445 -0
  38. package/dist/server/index.js +1884 -0
  39. package/dist/{streaks-CwGReWGt.d.ts → streaks-CWyq8Px5.d.ts} +2 -4
  40. package/dist/submission-input-CccwAl5Z.d.ts +83 -0
  41. package/dist/{images-BTgk6OmC.d.ts → trackers-W7nRdRr7.d.ts} +1 -232
  42. package/dist/vite.d.ts +1 -1
  43. package/dist/vite.js +1 -0
  44. package/dist/{wallet-BGOfFkG9.d.ts → wallet-BtiG0Xhr.d.ts} +1 -1
  45. package/package.json +5 -1
  46. package/dist/point-ledgers-iS00Z_v0.d.ts +0 -37
package/dist/browser.js CHANGED
@@ -11,12 +11,12 @@ import {
11
11
  signInOptions,
12
12
  solanaSigner,
13
13
  walletStandardSolanaSigner
14
- } from "./chunk-P6FK43GG.js";
15
- import "./chunk-X2F2RAR3.js";
16
- import "./chunk-QR7ZA2BJ.js";
17
- import "./chunk-PHU5VDLR.js";
18
- import "./chunk-7Q4BGGT6.js";
19
- import "./chunk-YYD4QUBO.js";
14
+ } from "./chunk-WQ24ILGO.js";
15
+ import "./chunk-EZWNGI5B.js";
16
+ import "./chunk-M64XHC42.js";
17
+ import "./chunk-OA2KMQVZ.js";
18
+ import "./chunk-FXYJ4OMX.js";
19
+ import "./chunk-CRNQP7NV.js";
20
20
  export {
21
21
  browserSubmissionStore,
22
22
  cosmosChainList,
@@ -1,141 +1,122 @@
1
1
  import { z } from 'zod';
2
- import { a5 as questDescriptionSchema } from './schema-Di3aLSiK.js';
2
+ import { a2 as questDescriptionSchema } from './schema-BF_TQsmT.js';
3
3
 
4
- declare const authScopeSchema: z.ZodObject<{
5
- organization: z.ZodString;
6
- project: z.ZodString;
7
- environment: z.ZodEnum<{
8
- test: "test";
9
- live: "live";
10
- }>;
4
+ declare const pointLedgerPropertiesSchema: z.ZodObject<{
5
+ name: z.ZodString;
6
+ description: z.ZodDefault<z.ZodString>;
11
7
  }, z.core.$strict>;
12
- declare const principalSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13
- kind: z.ZodLiteral<"member">;
14
- member: z.ZodString;
15
- }, z.core.$strip>, z.ZodObject<{
16
- kind: z.ZodLiteral<"staff">;
17
- subject: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- kind: z.ZodLiteral<"operator">;
20
- subject: z.ZodString;
21
- }, z.core.$strip>], "kind">;
22
- declare const sessionSchema: z.ZodObject<{
8
+ declare const createPointLedgerSchema: z.ZodObject<{
9
+ name: z.ZodString;
10
+ description: z.ZodDefault<z.ZodString>;
11
+ actionId: z.ZodString;
12
+ key: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strict>;
14
+ declare const pointLedgerSchema: z.ZodObject<{
15
+ name: z.ZodString;
16
+ description: z.ZodDefault<z.ZodString>;
23
17
  id: z.ZodString;
24
- principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
25
- kind: z.ZodLiteral<"member">;
26
- member: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- kind: z.ZodLiteral<"staff">;
29
- subject: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- kind: z.ZodLiteral<"operator">;
32
- subject: z.ZodString;
33
- }, z.core.$strip>], "kind">;
34
- expiresAt: z.ZodNumber;
35
- organization: z.ZodString;
36
- project: z.ZodString;
37
- environment: z.ZodEnum<{
38
- test: "test";
39
- live: "live";
40
- }>;
41
- }, z.core.$strip>;
42
- type Session = z.infer<typeof sessionSchema>;
18
+ }, z.core.$strict>;
19
+ declare const pointLedgerDeclarationSchema: z.ZodObject<{
20
+ name: z.ZodString;
21
+ description: z.ZodDefault<z.ZodString>;
22
+ key: z.ZodString;
23
+ }, z.core.$strict>;
43
24
  /**
44
- * A session's principal as the participant client reads it: a known kind, or `{ kind }` alone for
45
- * a kind a newer Relay added, so reading the session never fails on it.
25
+ * What an app needs to recognize and name a ledger it finds in a read. `key` is
26
+ * the authoring key, null for ledgers created in Console without one.
27
+ * Reads return ledger IDs; match them against `key` rather than comparing
28
+ * an ID with an authoring key.
46
29
  */
47
- declare const participantPrincipalSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
48
- kind: z.ZodLiteral<"member">;
49
- member: z.ZodString;
50
- }, z.core.$strip>, z.ZodObject<{
51
- kind: z.ZodLiteral<"staff">;
52
- subject: z.ZodString;
53
- }, z.core.$strip>, z.ZodObject<{
54
- kind: z.ZodLiteral<"operator">;
55
- subject: z.ZodString;
56
- }, z.core.$strip>], "kind">, z.ZodObject<{
57
- kind: z.ZodString;
58
- }, z.core.$strip>]>;
59
- type ParticipantPrincipal = z.infer<typeof participantPrincipalSchema>;
60
- /** The session the participant client returns (`auth.session()`). */
61
- declare const participantSessionSchema: z.ZodObject<{
30
+ declare const pointLedgerReferenceSchema: z.ZodObject<{
62
31
  id: z.ZodString;
63
- principal: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
64
- kind: z.ZodLiteral<"member">;
65
- member: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- kind: z.ZodLiteral<"staff">;
68
- subject: z.ZodString;
69
- }, z.core.$strip>, z.ZodObject<{
70
- kind: z.ZodLiteral<"operator">;
71
- subject: z.ZodString;
72
- }, z.core.$strip>], "kind">, z.ZodObject<{
73
- kind: z.ZodString;
74
- }, z.core.$strip>]>;
75
- expiresAt: z.ZodNumber;
76
- organization: z.ZodString;
77
- project: z.ZodString;
78
- environment: z.ZodEnum<{
79
- test: "test";
80
- live: "live";
81
- }>;
32
+ key: z.ZodNullable<z.ZodString>;
33
+ name: z.ZodString;
82
34
  }, z.core.$strip>;
83
- type ParticipantSession = z.infer<typeof participantSessionSchema>;
84
- /** The member a session signs in, or null for a signed-out visitor or another principal kind. */
85
- declare function sessionMember(session: {
86
- principal: ParticipantPrincipal;
87
- } | null | undefined): string | null;
88
35
  /**
89
- * The signed-in member (`GET /v1/me`). `avatarSeed` seeds the member's generated avatar
90
- * (`defaultAvatar`): an HMAC of the member ID under a per-project secret, so it is stable in the
91
- * project, whatever the member links, and reveals nothing. Not strict: newer servers may add fields.
36
+ * The signed-in member's balance in one ledger (`relay.me.balances()`). `balance` is the current
37
+ * balance, every entry counted; `available` leaves out points that reservations hold, so it is what
38
+ * the member can spend now.
92
39
  */
93
- declare const memberSummarySchema: z.ZodObject<{
94
- member: z.ZodString;
95
- avatarSeed: z.ZodString;
40
+ declare const pointBalanceSchema: z.ZodObject<{
41
+ ledger: z.ZodObject<{
42
+ id: z.ZodString;
43
+ key: z.ZodNullable<z.ZodString>;
44
+ name: z.ZodString;
45
+ }, z.core.$strip>;
46
+ balance: z.ZodNumber;
47
+ available: z.ZodNumber;
96
48
  }, z.core.$strip>;
97
- type MemberSummary = z.infer<typeof memberSummarySchema>;
98
- declare const exchangeSchema: z.ZodObject<{
99
- organization: z.ZodString;
100
- project: z.ZodString;
101
- environment: z.ZodEnum<{
102
- test: "test";
103
- live: "live";
104
- }>;
105
- identity: z.ZodObject<{
106
- issuer: z.ZodString;
107
- subject: z.ZodString;
108
- }, z.core.$strict>;
109
- role: z.ZodEnum<{
110
- member: "member";
111
- staff: "staff";
112
- operator: "operator";
113
- }>;
49
+ /** `relay.me.balances()`: the member's balance in each of the project's ledgers. */
50
+ declare const pointBalancesSchema: z.ZodObject<{
51
+ items: z.ZodArray<z.ZodObject<{
52
+ ledger: z.ZodObject<{
53
+ id: z.ZodString;
54
+ key: z.ZodNullable<z.ZodString>;
55
+ name: z.ZodString;
56
+ }, z.core.$strip>;
57
+ balance: z.ZodNumber;
58
+ available: z.ZodNumber;
59
+ }, z.core.$strip>>;
60
+ }, z.core.$strip>;
61
+ type KnownPointEntryKind = (typeof PointEntryKind)[keyof typeof PointEntryKind];
62
+ /**
63
+ * The point entry kinds this SDK knows. `PointEntry.kind` is an open string: Relay can add kinds,
64
+ * and an entry keeps a kind this SDK does not list. Show such an entry by its `amount` alone.
65
+ * Referral payouts are adjustments (`adjust` with `quest: null`).
66
+ */
67
+ declare const PointEntryKind: {
68
+ /** Points a quest completion, an engagement settlement or an operator awarded. */
69
+ readonly Award: "award";
70
+ /** Points the member spent. */
71
+ readonly Spend: "spend";
72
+ /** A correction in either direction, by an operator or a referral payout. */
73
+ readonly Adjust: "adjust";
74
+ /** Undoes part or all of an award or a positive adjustment (`reverses`). */
75
+ readonly Reverse: "reverse";
76
+ };
77
+ /** A known kind, or one a newer Relay sends. */
78
+ type PointEntryKind = KnownPointEntryKind | (string & {});
79
+ /**
80
+ * One entry in the signed-in member's own point history (`relay.me.pointHistory()`): what changed
81
+ * their balance and when, without the operator's reason or actor. `amount` is signed: spending and
82
+ * reversals are negative. `quest` is the quest that paid it (through a completion or an engagement
83
+ * settlement), if any; `reverses` is the entry a reversal undoes.
84
+ */
85
+ declare const pointEntrySchema: z.ZodObject<{
86
+ id: z.ZodString;
87
+ amount: z.ZodNumber;
88
+ kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
89
+ at: z.ZodNumber;
90
+ quest: z.ZodNullable<z.ZodString>;
91
+ reverses: z.ZodNullable<z.ZodString>;
92
+ }, z.core.$strip>;
93
+ /** `relay.me.pointHistory()`: one ledger, by key or ID. */
94
+ declare const pointHistoryQuerySchema: z.ZodObject<{
95
+ ledger: z.ZodString;
96
+ cursor: z.ZodOptional<z.ZodString>;
114
97
  }, z.core.$strict>;
115
- type ExchangeInput = z.infer<typeof exchangeSchema>;
116
- declare const exchangeResultSchema: z.ZodObject<{
117
- token: z.ZodString;
118
- session: z.ZodObject<{
98
+ /**
99
+ * One page of the signed-in member's point history, the most recently recorded entry first. That
100
+ * is not always `at` order: a backdated entry or a reversal records now with an earlier `at`.
101
+ */
102
+ declare const pointHistoryPageSchema: z.ZodObject<{
103
+ items: z.ZodArray<z.ZodObject<{
119
104
  id: z.ZodString;
120
- principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
121
- kind: z.ZodLiteral<"member">;
122
- member: z.ZodString;
123
- }, z.core.$strip>, z.ZodObject<{
124
- kind: z.ZodLiteral<"staff">;
125
- subject: z.ZodString;
126
- }, z.core.$strip>, z.ZodObject<{
127
- kind: z.ZodLiteral<"operator">;
128
- subject: z.ZodString;
129
- }, z.core.$strip>], "kind">;
130
- expiresAt: z.ZodNumber;
131
- organization: z.ZodString;
132
- project: z.ZodString;
133
- environment: z.ZodEnum<{
134
- test: "test";
135
- live: "live";
136
- }>;
137
- }, z.core.$strip>;
105
+ amount: z.ZodNumber;
106
+ kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
107
+ at: z.ZodNumber;
108
+ quest: z.ZodNullable<z.ZodString>;
109
+ reverses: z.ZodNullable<z.ZodString>;
110
+ }, z.core.$strip>>;
111
+ nextCursor: z.ZodNullable<z.ZodString>;
138
112
  }, z.core.$strip>;
113
+ type PointLedger = z.infer<typeof pointLedgerSchema>;
114
+ type PointLedgerReference = z.infer<typeof pointLedgerReferenceSchema>;
115
+ type PointBalance = z.infer<typeof pointBalanceSchema>;
116
+ type PointBalances = z.infer<typeof pointBalancesSchema>;
117
+ type PointEntry = z.infer<typeof pointEntrySchema>;
118
+ type PointHistoryQuery = z.input<typeof pointHistoryQuerySchema>;
119
+ type PointHistoryPage = z.infer<typeof pointHistoryPageSchema>;
139
120
 
140
121
  declare const interactionSchema: z.ZodEnum<{
141
122
  text: "text";
@@ -410,15 +391,6 @@ declare const questTypeVersionSchema: z.ZodObject<{
410
391
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
411
392
  quest: z.ZodString;
412
393
  }, z.core.$strip>>>;
413
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
414
- kind: z.ZodLiteral<"streak">;
415
- days: z.ZodNumber;
416
- timeZone: z.ZodString;
417
- }, z.core.$strict>, z.ZodObject<{
418
- kind: z.ZodLiteral<"once">;
419
- }, z.core.$strict>, z.ZodObject<{
420
- kind: z.ZodLiteral<"keyed">;
421
- }, z.core.$strict>], "kind">;
422
394
  visibility: z.ZodDefault<z.ZodEnum<{
423
395
  visible: "visible";
424
396
  hidden: "hidden";
@@ -433,15 +405,24 @@ declare const questTypeVersionSchema: z.ZodObject<{
433
405
  project: "project";
434
406
  }>;
435
407
  period: z.ZodEnum<{
436
- day: "day";
437
408
  lifetime: "lifetime";
409
+ day: "day";
438
410
  week: "week";
411
+ month: "month";
439
412
  }>;
440
413
  limit: z.ZodNumber;
441
414
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
442
415
  balance: z.ZodString;
443
416
  }, z.core.$strict>]>;
444
417
  }, z.core.$strict>>>;
418
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
419
+ kind: z.ZodLiteral<"streak">;
420
+ days: z.ZodNumber;
421
+ }, z.core.$strip>, z.ZodObject<{
422
+ kind: z.ZodLiteral<"once">;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ kind: z.ZodLiteral<"keyed">;
425
+ }, z.core.$strict>], "kind">;
445
426
  }, z.core.$strict>;
446
427
  provider: z.ZodEnum<{
447
428
  "workers-ai": "workers-ai";
@@ -861,15 +842,6 @@ declare const questCatalogSchema: z.ZodObject<{
861
842
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
862
843
  quest: z.ZodString;
863
844
  }, z.core.$strip>>>;
864
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
865
- kind: z.ZodLiteral<"streak">;
866
- days: z.ZodNumber;
867
- timeZone: z.ZodString;
868
- }, z.core.$strict>, z.ZodObject<{
869
- kind: z.ZodLiteral<"once">;
870
- }, z.core.$strict>, z.ZodObject<{
871
- kind: z.ZodLiteral<"keyed">;
872
- }, z.core.$strict>], "kind">;
873
845
  visibility: z.ZodDefault<z.ZodEnum<{
874
846
  visible: "visible";
875
847
  hidden: "hidden";
@@ -884,15 +856,24 @@ declare const questCatalogSchema: z.ZodObject<{
884
856
  project: "project";
885
857
  }>;
886
858
  period: z.ZodEnum<{
887
- day: "day";
888
859
  lifetime: "lifetime";
860
+ day: "day";
889
861
  week: "week";
862
+ month: "month";
890
863
  }>;
891
864
  limit: z.ZodNumber;
892
865
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
893
866
  balance: z.ZodString;
894
867
  }, z.core.$strict>]>;
895
868
  }, z.core.$strict>>>;
869
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
870
+ kind: z.ZodLiteral<"streak">;
871
+ days: z.ZodNumber;
872
+ }, z.core.$strip>, z.ZodObject<{
873
+ kind: z.ZodLiteral<"once">;
874
+ }, z.core.$strict>, z.ZodObject<{
875
+ kind: z.ZodLiteral<"keyed">;
876
+ }, z.core.$strict>], "kind">;
896
877
  }, z.core.$strict>;
897
878
  provider: z.ZodEnum<{
898
879
  "workers-ai": "workers-ai";
@@ -1256,15 +1237,6 @@ declare const questCatalogSchema: z.ZodObject<{
1256
1237
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1257
1238
  quest: z.ZodString;
1258
1239
  }, z.core.$strip>>>;
1259
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1260
- kind: z.ZodLiteral<"streak">;
1261
- days: z.ZodNumber;
1262
- timeZone: z.ZodString;
1263
- }, z.core.$strict>, z.ZodObject<{
1264
- kind: z.ZodLiteral<"once">;
1265
- }, z.core.$strict>, z.ZodObject<{
1266
- kind: z.ZodLiteral<"keyed">;
1267
- }, z.core.$strict>], "kind">;
1268
1240
  visibility: z.ZodDefault<z.ZodEnum<{
1269
1241
  visible: "visible";
1270
1242
  hidden: "hidden";
@@ -1279,15 +1251,24 @@ declare const questCatalogSchema: z.ZodObject<{
1279
1251
  project: "project";
1280
1252
  }>;
1281
1253
  period: z.ZodEnum<{
1282
- day: "day";
1283
1254
  lifetime: "lifetime";
1255
+ day: "day";
1284
1256
  week: "week";
1257
+ month: "month";
1285
1258
  }>;
1286
1259
  limit: z.ZodNumber;
1287
1260
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1288
1261
  balance: z.ZodString;
1289
1262
  }, z.core.$strict>]>;
1290
1263
  }, z.core.$strict>>>;
1264
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1265
+ kind: z.ZodLiteral<"streak">;
1266
+ days: z.ZodNumber;
1267
+ }, z.core.$strip>, z.ZodObject<{
1268
+ kind: z.ZodLiteral<"once">;
1269
+ }, z.core.$strict>, z.ZodObject<{
1270
+ kind: z.ZodLiteral<"keyed">;
1271
+ }, z.core.$strict>], "kind">;
1291
1272
  key: z.ZodOptional<z.ZodString>;
1292
1273
  code: z.ZodString;
1293
1274
  provider: z.ZodEnum<{
@@ -1582,25 +1563,24 @@ declare const questCatalogSchema: z.ZodObject<{
1582
1563
  requires: {
1583
1564
  quest: string;
1584
1565
  }[];
1585
- completion: {
1586
- kind: "streak";
1587
- days: number;
1588
- timeZone: string;
1589
- } | {
1590
- kind: "once";
1591
- } | {
1592
- kind: "keyed";
1593
- };
1594
1566
  visibility: "visible" | "hidden";
1595
1567
  budgets: {
1596
1568
  id: string;
1597
1569
  scope: "member" | "project";
1598
- period: "day" | "lifetime" | "week";
1570
+ period: "lifetime" | "day" | "week" | "month";
1599
1571
  limit: number;
1600
1572
  cost: number | {
1601
1573
  balance: string;
1602
1574
  };
1603
1575
  }[];
1576
+ completion: {
1577
+ kind: "streak";
1578
+ days: number;
1579
+ } | {
1580
+ kind: "once";
1581
+ } | {
1582
+ kind: "keyed";
1583
+ };
1604
1584
  code: string;
1605
1585
  provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1606
1586
  id: string;
@@ -1983,15 +1963,6 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1983
1963
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1984
1964
  quest: z.ZodString;
1985
1965
  }, z.core.$strip>>>;
1986
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1987
- kind: z.ZodLiteral<"streak">;
1988
- days: z.ZodNumber;
1989
- timeZone: z.ZodString;
1990
- }, z.core.$strict>, z.ZodObject<{
1991
- kind: z.ZodLiteral<"once">;
1992
- }, z.core.$strict>, z.ZodObject<{
1993
- kind: z.ZodLiteral<"keyed">;
1994
- }, z.core.$strict>], "kind">;
1995
1966
  visibility: z.ZodDefault<z.ZodEnum<{
1996
1967
  visible: "visible";
1997
1968
  hidden: "hidden";
@@ -2006,15 +1977,24 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2006
1977
  project: "project";
2007
1978
  }>;
2008
1979
  period: z.ZodEnum<{
2009
- day: "day";
2010
1980
  lifetime: "lifetime";
1981
+ day: "day";
2011
1982
  week: "week";
1983
+ month: "month";
2012
1984
  }>;
2013
1985
  limit: z.ZodNumber;
2014
1986
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2015
1987
  balance: z.ZodString;
2016
1988
  }, z.core.$strict>]>;
2017
1989
  }, z.core.$strict>>>;
1990
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1991
+ kind: z.ZodLiteral<"streak">;
1992
+ days: z.ZodNumber;
1993
+ }, z.core.$strip>, z.ZodObject<{
1994
+ kind: z.ZodLiteral<"once">;
1995
+ }, z.core.$strict>, z.ZodObject<{
1996
+ kind: z.ZodLiteral<"keyed">;
1997
+ }, z.core.$strict>], "kind">;
2018
1998
  }, z.core.$strict>;
2019
1999
  provider: z.ZodEnum<{
2020
2000
  "workers-ai": "workers-ai";
@@ -2283,8 +2263,7 @@ declare const questViewSchema: z.ZodObject<{
2283
2263
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2284
2264
  kind: z.ZodLiteral<"streak">;
2285
2265
  days: z.ZodNumber;
2286
- timeZone: z.ZodString;
2287
- }, z.core.$strict>, z.ZodObject<{
2266
+ }, z.core.$strip>, z.ZodObject<{
2288
2267
  kind: z.ZodLiteral<"once">;
2289
2268
  }, z.core.$strict>, z.ZodObject<{
2290
2269
  kind: z.ZodLiteral<"keyed">;
@@ -2610,8 +2589,7 @@ declare const collectionViewSchema: z.ZodObject<{
2610
2589
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2611
2590
  kind: z.ZodLiteral<"streak">;
2612
2591
  days: z.ZodNumber;
2613
- timeZone: z.ZodString;
2614
- }, z.core.$strict>, z.ZodObject<{
2592
+ }, z.core.$strip>, z.ZodObject<{
2615
2593
  kind: z.ZodLiteral<"once">;
2616
2594
  }, z.core.$strict>, z.ZodObject<{
2617
2595
  kind: z.ZodLiteral<"keyed">;
@@ -2936,8 +2914,7 @@ declare const questExperienceSchema: z.ZodObject<{
2936
2914
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2937
2915
  kind: z.ZodLiteral<"streak">;
2938
2916
  days: z.ZodNumber;
2939
- timeZone: z.ZodString;
2940
- }, z.core.$strict>, z.ZodObject<{
2917
+ }, z.core.$strip>, z.ZodObject<{
2941
2918
  kind: z.ZodLiteral<"once">;
2942
2919
  }, z.core.$strict>, z.ZodObject<{
2943
2920
  kind: z.ZodLiteral<"keyed">;
@@ -3263,8 +3240,7 @@ declare const questExperienceSchema: z.ZodObject<{
3263
3240
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3264
3241
  kind: z.ZodLiteral<"streak">;
3265
3242
  days: z.ZodNumber;
3266
- timeZone: z.ZodString;
3267
- }, z.core.$strict>, z.ZodObject<{
3243
+ }, z.core.$strip>, z.ZodObject<{
3268
3244
  kind: z.ZodLiteral<"once">;
3269
3245
  }, z.core.$strict>, z.ZodObject<{
3270
3246
  kind: z.ZodLiteral<"keyed">;
@@ -3743,15 +3719,6 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3743
3719
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
3744
3720
  quest: z.ZodString;
3745
3721
  }, z.core.$strip>>>;
3746
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
3747
- kind: z.ZodLiteral<"streak">;
3748
- days: z.ZodNumber;
3749
- timeZone: z.ZodString;
3750
- }, z.core.$strict>, z.ZodObject<{
3751
- kind: z.ZodLiteral<"once">;
3752
- }, z.core.$strict>, z.ZodObject<{
3753
- kind: z.ZodLiteral<"keyed">;
3754
- }, z.core.$strict>], "kind">;
3755
3722
  visibility: z.ZodDefault<z.ZodEnum<{
3756
3723
  visible: "visible";
3757
3724
  hidden: "hidden";
@@ -3766,15 +3733,24 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3766
3733
  project: "project";
3767
3734
  }>;
3768
3735
  period: z.ZodEnum<{
3769
- day: "day";
3770
3736
  lifetime: "lifetime";
3737
+ day: "day";
3771
3738
  week: "week";
3739
+ month: "month";
3772
3740
  }>;
3773
3741
  limit: z.ZodNumber;
3774
3742
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3775
3743
  balance: z.ZodString;
3776
3744
  }, z.core.$strict>]>;
3777
3745
  }, z.core.$strict>>>;
3746
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
3747
+ kind: z.ZodLiteral<"streak">;
3748
+ days: z.ZodNumber;
3749
+ }, z.core.$strip>, z.ZodObject<{
3750
+ kind: z.ZodLiteral<"once">;
3751
+ }, z.core.$strict>, z.ZodObject<{
3752
+ kind: z.ZodLiteral<"keyed">;
3753
+ }, z.core.$strict>], "kind">;
3778
3754
  key: z.ZodOptional<z.ZodString>;
3779
3755
  code: z.ZodString;
3780
3756
  provider: z.ZodEnum<{
@@ -4069,25 +4045,24 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
4069
4045
  requires: {
4070
4046
  quest: string;
4071
4047
  }[];
4072
- completion: {
4073
- kind: "streak";
4074
- days: number;
4075
- timeZone: string;
4076
- } | {
4077
- kind: "once";
4078
- } | {
4079
- kind: "keyed";
4080
- };
4081
4048
  visibility: "visible" | "hidden";
4082
4049
  budgets: {
4083
4050
  id: string;
4084
4051
  scope: "member" | "project";
4085
- period: "day" | "lifetime" | "week";
4052
+ period: "lifetime" | "day" | "week" | "month";
4086
4053
  limit: number;
4087
4054
  cost: number | {
4088
4055
  balance: string;
4089
4056
  };
4090
4057
  }[];
4058
+ completion: {
4059
+ kind: "streak";
4060
+ days: number;
4061
+ } | {
4062
+ kind: "once";
4063
+ } | {
4064
+ kind: "keyed";
4065
+ };
4091
4066
  code: string;
4092
4067
  provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
4093
4068
  id: string;
@@ -4177,17 +4152,4 @@ declare const allocatedQuestSchema: z.ZodObject<{
4177
4152
  id: z.ZodString;
4178
4153
  }, z.core.$strip>;
4179
4154
 
4180
- /** A cursor as a client passes it back. */
4181
- declare const pageCursorSchema: z.ZodString;
4182
- /** A query that pages by cursor only. */
4183
- declare const pageQuerySchema: z.ZodObject<{
4184
- cursor: z.ZodOptional<z.ZodString>;
4185
- }, z.core.$strict>;
4186
- type PageQuery = z.input<typeof pageQuerySchema>;
4187
- /** One page of a paged read. */
4188
- type Page<T> = {
4189
- items: T[];
4190
- nextCursor: string | null;
4191
- };
4192
-
4193
- export { principalSchema as A, publishQuestDraftSchema as B, questCatalogSchema as C, questCollectionSchema as D, type ExchangeInput as E, questDraftChangesSchema as F, questDraftSchema as G, questInstanceSchema as H, questInteraction as I, questPublicationPreviewSchema as J, questRewardViewSchema as K, questTypeVersionSchema as L, type MemberSummary as M, questViewSchema as N, saveQuestDraftSchema as O, type Page as P, type QuestInteraction as Q, sessionSchema as R, type Session as S, type PageQuery as a, type ParticipantPrincipal as b, type ParticipantSession as c, type QuestRewardView as d, type QuestView as e, exchangeSchema as f, type QuestCatalog as g, type QuestDraft as h, type QuestInstance as i, allocateQuestSchema as j, allocatedQuestSchema as k, authScopeSchema as l, catalogDeploymentPreviewSchema as m, catalogDeploymentSchema as n, collectionSlotDeclarationSchema as o, collectionSlotSchema as p, questExperienceSchema as q, collectionViewSchema as r, sessionMember as s, exchangeResultSchema as t, interactionSchema as u, memberSummarySchema as v, pageCursorSchema as w, pageQuerySchema as x, participantPrincipalSchema as y, participantSessionSchema as z };
4155
+ export { pointLedgerDeclarationSchema as A, pointLedgerPropertiesSchema as B, pointLedgerReferenceSchema as C, pointLedgerSchema as D, publishQuestDraftSchema as E, questCatalogSchema as F, questCollectionSchema as G, questDraftChangesSchema as H, questDraftSchema as I, questExperienceSchema as J, type KnownPointEntryKind as K, questInstanceSchema as L, questInteraction as M, questPublicationPreviewSchema as N, questRewardViewSchema as O, type PointBalance as P, type QuestInteraction as Q, questTypeVersionSchema as R, questViewSchema as S, saveQuestDraftSchema as T, type PointBalances as a, type PointEntry as b, PointEntryKind as c, type PointHistoryPage as d, type PointHistoryQuery as e, type PointLedgerReference as f, type QuestRewardView as g, type QuestView as h, type PointLedger as i, type QuestCatalog as j, type QuestDraft as k, type QuestInstance as l, allocateQuestSchema as m, allocatedQuestSchema as n, catalogDeploymentPreviewSchema as o, catalogDeploymentSchema as p, collectionSlotDeclarationSchema as q, collectionSlotSchema as r, collectionViewSchema as s, createPointLedgerSchema as t, interactionSchema as u, pointBalanceSchema as v, pointBalancesSchema as w, pointEntrySchema as x, pointHistoryPageSchema as y, pointHistoryQuerySchema as z };
@@ -2,6 +2,9 @@
2
2
  function isContentParticipantRoute(path, method) {
3
3
  return method === "GET" && (path === "/v1/content/admissions" || path === "/v1/content/qualifications" || path === "/v1/content/performance" || path === "/v1/engagement/history" || path === "/v1/engagement/boundaries") || method === "POST" && (path === "/v1/content/enrollments" || path === "/v1/content/claims");
4
4
  }
5
+ function isPointsParticipantRoute(path, method) {
6
+ return method === "GET" && /^\/v1\/me\/points(?:\/[\w-]+\/history)?$/.test(path);
7
+ }
5
8
  function isProfileParticipantRoute(path, method) {
6
9
  return method === "GET" && (path === "/v1/me/profile" || /^\/v1\/profiles\/[\w-]+(?:\/completions|\/referrals\/[\w-]+)?$/.test(
7
10
  path
@@ -19,6 +22,7 @@ function isWalletSignInRoute(path) {
19
22
 
20
23
  export {
21
24
  isContentParticipantRoute,
25
+ isPointsParticipantRoute,
22
26
  isProfileParticipantRoute,
23
27
  isWalletParticipantRoute,
24
28
  isLegacyWalletRoute,