@sinch/functions-runtime 0.5.6 → 0.5.7

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 (2) hide show
  1. package/README.md +28 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -153,6 +153,34 @@ export async function ice(
153
153
  }
154
154
  ```
155
155
 
156
+ ## Request Limits
157
+
158
+ | Limit | Value |
159
+ | -------------------------------------- | ----------------------------------------------- |
160
+ | Request body | 10 MB _(runtime limit — platform may be lower)_ |
161
+ | Request/response body retained in logs | First 64 KB |
162
+
163
+ A body larger than the runtime limit is rejected with `413` and a JSON response naming it:
164
+
165
+ ```json
166
+ {
167
+ "error": "Payload too large",
168
+ "message": "Request body exceeds the 10mb limit",
169
+ "limit": "10mb"
170
+ }
171
+ ```
172
+
173
+ **A deployed function sits behind a platform limit that is currently lower than 10 MB.** If you
174
+ receive a `413` **without** the JSON body above, the request was rejected before it reached your
175
+ function. Local development does not enforce that platform limit, so a body between the two
176
+ ceilings will succeed locally and fail once deployed — size against the platform limit, not this
177
+ one, until they match.
178
+
179
+ Logs retain the first 64 KB of a request or response body, appending
180
+ `…[truncated — N bytes total]` when the body was longer. Only text formats are retained — JSON,
181
+ XML, plain text and form data. Anything else, including uploads, images, audio, video, PDFs and
182
+ archives, is not logged at all. Your function still receives every body in full.
183
+
156
184
  ## Documentation
157
185
 
158
186
  - [Sinch Functions Documentation](https://developers.sinch.com/docs/functions)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinch/functions-runtime",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Development runtime for Sinch Functions - serverless voice applications",
5
5
  "type": "module",
6
6
  "exports": {