@domino-sdk/relay 1.75.0 → 1.76.3

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 (40) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/authoring.js +4 -4
  3. package/dist/browser.js +8 -8
  4. package/dist/{chunk-4WODSE6Y.js → chunk-42AI4ZN7.js} +8 -4
  5. package/dist/{chunk-CEG67D4T.js → chunk-6NELFCPJ.js} +1 -1
  6. package/dist/{chunk-3KHVIUKK.js → chunk-6WZJ3W7K.js} +1 -1
  7. package/dist/{chunk-TAZ5AEYF.js → chunk-7YAL5UZP.js} +1 -1
  8. package/dist/{chunk-K3PEQXDV.js → chunk-FZJLZSRQ.js} +1 -1
  9. package/dist/{chunk-SIKP4VMU.js → chunk-HZXO73SG.js} +386 -299
  10. package/dist/{chunk-UHYKKC5U.js → chunk-IFHG2JT4.js} +6 -6
  11. package/dist/{chunk-7QHROIML.js → chunk-MQNHFZMT.js} +2 -1
  12. package/dist/{chunk-ZEYI662X.js → chunk-N6IKQBBQ.js} +3 -3
  13. package/dist/{chunk-XJCKQSFS.js → chunk-TMKKN4IM.js} +1 -1
  14. package/dist/{chunk-SPLXHFVX.js → chunk-TT5CAVRM.js} +2 -2
  15. package/dist/{chunk-FBS65R66.js → chunk-TYBXDUKR.js} +2 -2
  16. package/dist/{chunk-IMX45NSW.js → chunk-VVDXTFVP.js} +6 -6
  17. package/dist/{chunk-7B7MDHJ6.js → chunk-W66QVFJP.js} +1 -1
  18. package/dist/{chunk-XEXB3WZE.js → chunk-XG5QOC5A.js} +1 -1
  19. package/dist/{chunk-HEQ7HLXG.js → chunk-XSO6BGYT.js} +1 -1
  20. package/dist/{chunk-E2DB4MKM.js → chunk-Y2FYV5S7.js} +897 -934
  21. package/dist/{identity-integration-DnSgQjbY.d.ts → identity-integration-B1f5oOdc.d.ts} +1167 -3
  22. package/dist/{transport-BMwM6JlS.d.ts → index-BM0DdDYy.d.ts} +249 -1260
  23. package/dist/index.js +7 -7
  24. package/dist/internal.d.ts +15 -7
  25. package/dist/internal.js +18 -15
  26. package/dist/portal-proxy.d.ts +1 -1
  27. package/dist/portal-proxy.js +9 -9
  28. package/dist/react/index.js +8 -8
  29. package/dist/runtime/authoring.js +1 -1
  30. package/dist/runtime/chunks/7W2Z42TY.js +1 -0
  31. package/dist/runtime/manifest.json +3 -3
  32. package/dist/runtime/schema.js +1 -1
  33. package/dist/schema.js +7 -7
  34. package/dist/server/index.d.ts +3 -3
  35. package/dist/server/index.js +58 -25
  36. package/dist/solana.d.ts +2 -2
  37. package/dist/solana.js +8 -8
  38. package/dist/testing.js +5 -5
  39. package/package.json +1 -1
  40. package/dist/runtime/chunks/H6GH644T.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @domino-sdk/relay
2
2
 
3
+ ## 1.76.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 5fd4719: A webhook URL that is not a URL at all, such as `example.com/hook`, is now refused as invalid input instead of throwing a `TypeError` from the schema. Relay answers such a webhook create or update with 400 `invalid-request` instead of 500. An app login or preview origin that is not a URL is refused the same way.
8
+
9
+ ## 1.76.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 433572f: A tracker data schema that isn't JSON now throws an error that carries the original schema error as its `cause`, so the stack behind the message is kept.
14
+
15
+ ## 1.76.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 7db2835: Email sign-in limits refused code checks per client. Thirty refused checks from one IP address in an hour on one project and environment (an IPv6 address counts by its /64), for every address and challenge together, refuse that client's `emailVerify` there with 429 `rate-limited` and `Retry-After` until the hour ends, a right code included. A refused check is a wrong code, or a challenge that is unknown, expired, used up, replaced by a newer code or from another scope. People sharing one address with someone sending wrong codes or made-up challenges to your app can be refused for up to an hour, on your app only; requests your hosted app's server sends without a visitor's IP are not counted. The per-address limits are unchanged.
20
+
21
+ ## 1.76.0
22
+
23
+ ### Minor Changes
24
+
25
+ - 94e745d: Hosted apps can see when a service key saved in an app secret stops working, before staff or members hit it.
26
+
27
+ - `GET /secrets` and `PUT /secrets/:name` (`management.secrets.list()` and `set()`, `domino secrets list --json` and `set --json`) add `credential` to a secret whose value is a service key (`dsk_…`). Its `status` is `active`, `expired`, `unknown` (revoked, mistyped, or another deployment's or organization's) or `other-scope` (another project or environment of your organization). For your organization's keys it also gives the key's `id`, `name` and `permissions`, the secret's `expiresAt`, and, for `other-scope`, the key's `project` and `environment`. It never includes the value. The check doesn't count as a use, so the key's **Last used** stays put. The SDK types the field as `AppSecretCredential`, with open `kind` and `status` strings.
28
+ - `domino doctor --remote` adds an `app-credentials` check for app projects. It reports an error for each secret whose service key Domino would refuse, which makes doctor unhealthy, and a warning for one expiring within 7 days. Otherwise it lists each key with its permissions. The repair step is for an organization admin in Console **Settings → API keys**, followed by `domino secrets set` and a stage. The `remote-access` message now says it verifies the CLI's own credential, not the app's keys.
29
+ - `domino secrets set` still stores such a key, but warns on stderr with the same repair step and exits 0.
30
+
31
+ - 2197d95: Hosted apps keep their failed requests, exceptions and warnings for up to 7 days, and `domino runtime-logs` (experimental) reads them.
32
+
33
+ - Domino records each request a hosted app answers with 400 or above, each one that throws or runs out of CPU time or memory, and each one that logs with `console.warn` or `console.error`, in test and in live separately. A record holds the time, method, URL path (no query string), status, outcome, up to 5 exceptions and up to 20 console lines of up to 1,000 characters each. Headers, bodies, query strings and visitors' IP addresses are never stored, and Domino keys and tokens, `Bearer` values, JWT-shaped tokens, email addresses and IP addresses in what is stored become `[redacted]`. A build keeps its newest 2,000 records per environment.
34
+ - `domino runtime-logs` reads the build the environment serves, in test unless `--environment live`, or `--build ID`. `--since` takes a duration up to `7d` (24 hours by default), `--limit` up to 200 and `--cursor` the previous page's `nextCursor`. `--json` prints `{ build, items, nextCursor, environment }`; pass `nextCursor` back as `--cursor` with the same `--build`. It reads `GET /management/v1/runtime-logs`, which needs read in the environment; another project's build answers 404.
35
+ - Builds staged or promoted before this release record nothing until you stage or promote again.
36
+ - The SDK adds the experimental `runtimeLogPageSchema` and `runtimeLogEventSchema` (with `RuntimeLogPage`, `RuntimeLogEvent`, and open `RuntimeLogTrigger` and `RuntimeLogOutcome` strings) for that page.
37
+
3
38
  ## 1.75.0
4
39
 
5
40
  ### Minor Changes
package/dist/authoring.js CHANGED
@@ -6,14 +6,14 @@ import {
6
6
  sourceDataSchema,
7
7
  sourceRoles,
8
8
  validateQuestShape
9
- } from "./chunk-7B7MDHJ6.js";
9
+ } from "./chunk-W66QVFJP.js";
10
10
  import {
11
11
  defineDashboard,
12
12
  tiktokVideoBodySchema,
13
13
  tiktokVideoMetrics,
14
14
  youtubeShortBodySchema,
15
15
  youtubeShortMetrics
16
- } from "./chunk-XEXB3WZE.js";
16
+ } from "./chunk-XG5QOC5A.js";
17
17
  import {
18
18
  CapabilityError,
19
19
  capabilityErrorCodes
@@ -24,7 +24,7 @@ import {
24
24
  engagementScoreSchema,
25
25
  offerAuthoringSchema,
26
26
  referralAuthoringSchema
27
- } from "./chunk-TAZ5AEYF.js";
27
+ } from "./chunk-7YAL5UZP.js";
28
28
  import {
29
29
  announcementSchema,
30
30
  authorBudgetSchema,
@@ -124,7 +124,7 @@ import {
124
124
  whereSettings,
125
125
  xSearchSourceSchema,
126
126
  youtubeShortsNamespace
127
- } from "./chunk-7QHROIML.js";
127
+ } from "./chunk-MQNHFZMT.js";
128
128
  import {
129
129
  namedSchemaFailure,
130
130
  parseDefinition,
package/dist/browser.js CHANGED
@@ -13,22 +13,22 @@ import {
13
13
  signInOptions,
14
14
  solanaSigner,
15
15
  walletStandardSolanaSigner
16
- } from "./chunk-ZEYI662X.js";
16
+ } from "./chunk-N6IKQBBQ.js";
17
17
  import {
18
18
  telegramMiniAppInitData
19
19
  } from "./chunk-FWLQ5XCS.js";
20
- import "./chunk-UHYKKC5U.js";
20
+ import "./chunk-IFHG2JT4.js";
21
21
  import "./chunk-E73HZCG2.js";
22
22
  import "./chunk-AL5XMXPO.js";
23
23
  import {
24
24
  getHostEnvironment
25
25
  } from "./chunk-MDSSIOBC.js";
26
- import "./chunk-CEG67D4T.js";
27
- import "./chunk-XJCKQSFS.js";
28
- import "./chunk-HEQ7HLXG.js";
29
- import "./chunk-3KHVIUKK.js";
30
- import "./chunk-TAZ5AEYF.js";
31
- import "./chunk-7QHROIML.js";
26
+ import "./chunk-6NELFCPJ.js";
27
+ import "./chunk-TMKKN4IM.js";
28
+ import "./chunk-XSO6BGYT.js";
29
+ import "./chunk-6WZJ3W7K.js";
30
+ import "./chunk-7YAL5UZP.js";
31
+ import "./chunk-MQNHFZMT.js";
32
32
  import "./chunk-2M5FM7FW.js";
33
33
  export {
34
34
  browserSubmissionStore,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  activityTypeSchema
3
- } from "./chunk-IMX45NSW.js";
3
+ } from "./chunk-VVDXTFVP.js";
4
4
  import {
5
5
  completionRecordSchema,
6
6
  completionSourceSchema,
@@ -10,7 +10,7 @@ import {
10
10
  pageLimit,
11
11
  solanaAddressSchema,
12
12
  solanaSignatureSchema
13
- } from "./chunk-7QHROIML.js";
13
+ } from "./chunk-MQNHFZMT.js";
14
14
 
15
15
  // src/server/completions.ts
16
16
  import * as z from "zod";
@@ -280,8 +280,12 @@ var walletLinkedEventDataSchema = /* @__PURE__ */ (() => z2.object({
280
280
  var webhookControlInputSchema = /* @__PURE__ */ (() => z2.object({ actionId: z2.string().uuid().optional() }).strict())();
281
281
  var webhookInputSchema = /* @__PURE__ */ (() => z2.object({
282
282
  url: z2.url().max(2048).refine((value) => {
283
- const url2 = new URL(value);
284
- return url2.protocol === "https:" && !url2.username && !url2.password && !url2.hash;
283
+ try {
284
+ const url2 = new URL(value);
285
+ return url2.protocol === "https:" && !url2.username && !url2.password && !url2.hash;
286
+ } catch {
287
+ return false;
288
+ }
285
289
  }, "Use an HTTPS URL without credentials or a fragment"),
286
290
  types: z2.array(activityTypeSchema).min(1).max(100).refine((v) => new Set(v).size === v.length)
287
291
  }).strict())();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clientIdentity,
3
3
  retryAfter
4
- } from "./chunk-XJCKQSFS.js";
4
+ } from "./chunk-TMKKN4IM.js";
5
5
 
6
6
  // src/http-exchange.ts
7
7
  var uncertainStatuses = /* @__PURE__ */ (() => /* @__PURE__ */ new Set([500, 502, 504]))();
@@ -19,7 +19,7 @@ import {
19
19
  storedQuestDescriptionSchema,
20
20
  storedReviewModeSchema,
21
21
  tieredRewardReferenceSchema
22
- } from "./chunk-7QHROIML.js";
22
+ } from "./chunk-MQNHFZMT.js";
23
23
 
24
24
  // src/participant-activity.ts
25
25
  import * as z from "zod";
@@ -12,7 +12,7 @@ import {
12
12
  resourceHandle,
13
13
  responseShape,
14
14
  tierRewardSchema
15
- } from "./chunk-7QHROIML.js";
15
+ } from "./chunk-MQNHFZMT.js";
16
16
  import {
17
17
  parseDefinition
18
18
  } from "./chunk-2M5FM7FW.js";
@@ -2,7 +2,7 @@ import {
2
2
  identifier,
3
3
  responseShape,
4
4
  xTweetSchema
5
- } from "./chunk-7QHROIML.js";
5
+ } from "./chunk-MQNHFZMT.js";
6
6
 
7
7
  // src/x.ts
8
8
  import * as z from "zod";