@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.
- package/CHANGELOG.md +35 -0
- package/dist/authoring.js +4 -4
- package/dist/browser.js +8 -8
- package/dist/{chunk-4WODSE6Y.js → chunk-42AI4ZN7.js} +8 -4
- package/dist/{chunk-CEG67D4T.js → chunk-6NELFCPJ.js} +1 -1
- package/dist/{chunk-3KHVIUKK.js → chunk-6WZJ3W7K.js} +1 -1
- package/dist/{chunk-TAZ5AEYF.js → chunk-7YAL5UZP.js} +1 -1
- package/dist/{chunk-K3PEQXDV.js → chunk-FZJLZSRQ.js} +1 -1
- package/dist/{chunk-SIKP4VMU.js → chunk-HZXO73SG.js} +386 -299
- package/dist/{chunk-UHYKKC5U.js → chunk-IFHG2JT4.js} +6 -6
- package/dist/{chunk-7QHROIML.js → chunk-MQNHFZMT.js} +2 -1
- package/dist/{chunk-ZEYI662X.js → chunk-N6IKQBBQ.js} +3 -3
- package/dist/{chunk-XJCKQSFS.js → chunk-TMKKN4IM.js} +1 -1
- package/dist/{chunk-SPLXHFVX.js → chunk-TT5CAVRM.js} +2 -2
- package/dist/{chunk-FBS65R66.js → chunk-TYBXDUKR.js} +2 -2
- package/dist/{chunk-IMX45NSW.js → chunk-VVDXTFVP.js} +6 -6
- package/dist/{chunk-7B7MDHJ6.js → chunk-W66QVFJP.js} +1 -1
- package/dist/{chunk-XEXB3WZE.js → chunk-XG5QOC5A.js} +1 -1
- package/dist/{chunk-HEQ7HLXG.js → chunk-XSO6BGYT.js} +1 -1
- package/dist/{chunk-E2DB4MKM.js → chunk-Y2FYV5S7.js} +897 -934
- package/dist/{identity-integration-DnSgQjbY.d.ts → identity-integration-B1f5oOdc.d.ts} +1167 -3
- package/dist/{transport-BMwM6JlS.d.ts → index-BM0DdDYy.d.ts} +249 -1260
- package/dist/index.js +7 -7
- package/dist/internal.d.ts +15 -7
- package/dist/internal.js +18 -15
- package/dist/portal-proxy.d.ts +1 -1
- package/dist/portal-proxy.js +9 -9
- package/dist/react/index.js +8 -8
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/7W2Z42TY.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.js +7 -7
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +58 -25
- package/dist/solana.d.ts +2 -2
- package/dist/solana.js +8 -8
- package/dist/testing.js +5 -5
- package/package.json +1 -1
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
16
|
+
} from "./chunk-N6IKQBBQ.js";
|
|
17
17
|
import {
|
|
18
18
|
telegramMiniAppInitData
|
|
19
19
|
} from "./chunk-FWLQ5XCS.js";
|
|
20
|
-
import "./chunk-
|
|
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-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
284
|
-
|
|
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())();
|