@relyio/sdk 0.19.0 → 0.21.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/automations/index.cjs +1 -1
  3. package/dist/automations/index.d.cts +2 -1588
  4. package/dist/automations/index.d.ts +2 -1588
  5. package/dist/automations/index.js +1 -1
  6. package/dist/{chunk-ZO6QDYJG.cjs → chunk-5WGMIQBH.cjs} +2 -2
  7. package/dist/{chunk-W2A4OTCI.js → chunk-EQUZNVAR.js} +2 -2
  8. package/dist/{chunk-P23G5NXD.cjs → chunk-K66MBRI4.cjs} +68 -51
  9. package/dist/{chunk-356SF5Y2.js → chunk-L42C4G2S.js} +25 -8
  10. package/dist/{chunk-T7LGREB3.js → chunk-OUR7OUUZ.js} +3 -3
  11. package/dist/{chunk-NN45CSPZ.cjs → chunk-UO2QRYKV.cjs} +3 -3
  12. package/dist/client/index.cjs +5 -5
  13. package/dist/client/index.d.cts +4 -4
  14. package/dist/client/index.d.ts +4 -4
  15. package/dist/client/index.js +3 -3
  16. package/dist/{define-content-type-BZ6X8GvL.d.cts → define-content-type-C2HnCYYX.d.cts} +1 -1
  17. package/dist/{define-content-type-C12jh8cY.d.ts → define-content-type-CVLUusfx.d.ts} +1 -1
  18. package/dist/dev-handshake/index.cjs +8 -8
  19. package/dist/dev-handshake/index.d.cts +1 -1
  20. package/dist/dev-handshake/index.d.ts +1 -1
  21. package/dist/dev-handshake/index.js +1 -1
  22. package/dist/extensions/index.cjs +3 -3
  23. package/dist/extensions/index.d.cts +2 -4
  24. package/dist/extensions/index.d.ts +2 -4
  25. package/dist/extensions/index.js +1 -1
  26. package/dist/functions/index.cjs +1 -1
  27. package/dist/functions/index.d.cts +2 -4
  28. package/dist/functions/index.d.ts +2 -4
  29. package/dist/functions/index.js +1 -1
  30. package/dist/{index-BxNnlc5D.d.ts → index-BAdue7TR.d.ts} +54 -9
  31. package/dist/{index-D5jyIeQ5.d.cts → index-BNf3S9W9.d.cts} +54 -9
  32. package/dist/{index-C-MymZTe.d.ts → index-BY1xU93u.d.ts} +1 -1
  33. package/dist/{index-DN0l8RHw.d.cts → index-Cmup6HJY.d.cts} +1 -1
  34. package/dist/index-D0r6fnvl.d.ts +2304 -0
  35. package/dist/index-U5NbHg3N.d.cts +2304 -0
  36. package/dist/index.cjs +76 -76
  37. package/dist/index.d.cts +7 -8
  38. package/dist/index.d.ts +7 -8
  39. package/dist/index.js +4 -4
  40. package/dist/preview/index.cjs +3 -3
  41. package/dist/preview/index.js +1 -1
  42. package/dist/rich-text/index.d.cts +2 -2
  43. package/dist/rich-text/index.d.ts +2 -2
  44. package/dist/schema/index.cjs +1 -1
  45. package/dist/schema/index.d.cts +947 -4
  46. package/dist/schema/index.d.ts +947 -4
  47. package/dist/schema/index.js +1 -1
  48. package/dist/types/index.d.cts +1 -1
  49. package/dist/types/index.d.ts +1 -1
  50. package/package.json +5 -5
  51. package/dist/define-schema-BPlZl4a2.d.cts +0 -947
  52. package/dist/define-schema-CK7TtYot.d.ts +0 -947
  53. package/dist/register-BiMQKVp-.d.ts +0 -693
  54. package/dist/register-DeMsaurp.d.cts +0 -693
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @relyio/sdk
2
2
 
3
+ ## 0.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 62b2960: **A Function's route verifies a signed webhook.** `route.public.signature: { scheme, secret, header? }` names the scheme — `'stripe'` (`Stripe-Signature`, its signed time within five minutes), `'github'` (`X-Hub-Signature-256`) or `'hmac-sha256'` (the hex HMAC-SHA256 of the body, bare or as `sha256=<hex>`, in the `header` it names) — and the Secret holding the signing secret. RelyIO verifies the signature over the body's exact bytes before the Function runs, so the Function never holds the signing secret; a missing, forged or stale signature is refused `403` and runs and bills nothing. `relyio deploy` refuses a signature naming a Secret the Function does not declare, a scheme RelyIO does not verify, or an `hmac-sha256` signature naming no header.
8
+
9
+ ## 0.20.0
10
+
11
+ ### Minor Changes
12
+
13
+ - d0114a0: **`relyio.functions` calls are typed.** `relyio generate-types` reads your `relyio/functions/` and its `schema.ts` registers each Function's input and output Fields, so `relyio.functions.checkout({ cartId })` takes and answers what `checkout` declares: a misnamed, missing or mistyped input field, or a Function your project does not declare, is a type error. A project with no Function files stays as it was, its calls untyped. `relyio ci check` compares committed types against the repository's own Functions too.
14
+
15
+ ### Patch Changes
16
+
17
+ - fd31efe: **`validateFile` accepts a wildcard MIME pattern.** A schema's `allowedMimeTypes: ['image/*']` no longer refuses `image/png` client-side; matching is case-insensitive, ignores `;` parameters and takes `*/*`, as the server's presign does.
18
+
3
19
  ## 0.19.0
4
20
 
5
21
  ### Minor Changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkDBYMG6MQ_cjs = require('../chunk-DBYMG6MQ.cjs');
4
4
  var chunk5F3YYPLZ_cjs = require('../chunk-5F3YYPLZ.cjs');
5
- require('../chunk-NN45CSPZ.cjs');
5
+ require('../chunk-UO2QRYKV.cjs');
6
6
  require('../chunk-L6DXCKVQ.cjs');
7
7
 
8
8