@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.
@@ -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";
@@ -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
  }
@@ -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";