@superblocksteam/sdk-api 0.0.12-body-types → 0.0.13
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/README.md +23 -0
- package/dist/errors.d.ts +36 -3
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +231 -38
- package/dist/errors.js.map +1 -1
- package/dist/errors.test.d.ts +2 -0
- package/dist/errors.test.d.ts.map +1 -0
- package/dist/errors.test.js +189 -0
- package/dist/errors.test.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/anthropic/types.d.ts +1 -1
- package/dist/integrations/base/decode-worker-binary-response.d.ts.map +1 -1
- package/dist/integrations/base/decode-worker-binary-response.js +2 -5
- package/dist/integrations/base/decode-worker-binary-response.js.map +1 -1
- package/dist/integrations/base/index.d.ts +1 -1
- package/dist/integrations/base/index.d.ts.map +1 -1
- package/dist/integrations/base/request-body.d.ts +18 -10
- package/dist/integrations/base/request-body.d.ts.map +1 -1
- package/dist/integrations/base/request-body.js +131 -215
- package/dist/integrations/base/request-body.js.map +1 -1
- package/dist/integrations/base/request-body.test.js +306 -164
- package/dist/integrations/base/request-body.test.js.map +1 -1
- package/dist/integrations/base/rest-api-client-base.d.ts.map +1 -1
- package/dist/integrations/base/rest-api-client-base.js +13 -26
- package/dist/integrations/base/rest-api-client-base.js.map +1 -1
- package/dist/integrations/base/rest-api-integration-client.d.ts.map +1 -1
- package/dist/integrations/base/rest-api-integration-client.js +2 -5
- package/dist/integrations/base/rest-api-integration-client.js.map +1 -1
- package/dist/integrations/base/types.d.ts +0 -8
- package/dist/integrations/base/types.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.js +2 -5
- package/dist/integrations/cosmosdb/client.js.map +1 -1
- package/dist/integrations/documentation-resolver.test.js +88 -2
- package/dist/integrations/documentation-resolver.test.js.map +1 -1
- package/dist/integrations/documentation.test.js +10 -0
- package/dist/integrations/documentation.test.js.map +1 -1
- package/dist/integrations/dynamodb/client.d.ts +6 -2
- package/dist/integrations/dynamodb/client.d.ts.map +1 -1
- package/dist/integrations/dynamodb/client.js +85 -15
- package/dist/integrations/dynamodb/client.js.map +1 -1
- package/dist/integrations/dynamodb/client.test.d.ts +8 -0
- package/dist/integrations/dynamodb/client.test.d.ts.map +1 -0
- package/dist/integrations/dynamodb/client.test.js +198 -0
- package/dist/integrations/dynamodb/client.test.js.map +1 -0
- package/dist/integrations/dynamodb/index.d.ts +1 -1
- package/dist/integrations/dynamodb/index.d.ts.map +1 -1
- package/dist/integrations/dynamodb/index.js.map +1 -1
- package/dist/integrations/dynamodb/types.d.ts +27 -1
- package/dist/integrations/dynamodb/types.d.ts.map +1 -1
- package/dist/integrations/gcs/client.d.ts.map +1 -1
- package/dist/integrations/gcs/client.js +2 -5
- package/dist/integrations/gcs/client.js.map +1 -1
- package/dist/integrations/gsheets/client.d.ts.map +1 -1
- package/dist/integrations/gsheets/client.js +2 -5
- package/dist/integrations/gsheets/client.js.map +1 -1
- package/dist/integrations/index.d.ts +1 -1
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/mongodb/client.d.ts.map +1 -1
- package/dist/integrations/mongodb/client.js +2 -5
- package/dist/integrations/mongodb/client.js.map +1 -1
- package/dist/integrations/restapiintegration/client.body-types.test.js +107 -25
- package/dist/integrations/restapiintegration/client.body-types.test.js.map +1 -1
- package/dist/integrations/restapiintegration/client.test.js +16 -0
- package/dist/integrations/restapiintegration/client.test.js.map +1 -1
- package/dist/integrations/s3/client.d.ts.map +1 -1
- package/dist/integrations/s3/client.js +2 -5
- package/dist/integrations/s3/client.js.map +1 -1
- package/dist/integrations/salesforce/client.d.ts.map +1 -1
- package/dist/integrations/salesforce/client.js +2 -5
- package/dist/integrations/salesforce/client.js.map +1 -1
- package/dist/integrations/slack/client.d.ts.map +1 -1
- package/dist/integrations/slack/client.js +4 -13
- package/dist/integrations/slack/client.js.map +1 -1
- package/dist/integrations/slack/client.test.js +2 -5
- package/dist/integrations/slack/client.test.js.map +1 -1
- package/dist/integrations/utils.d.ts +8 -3
- package/dist/integrations/utils.d.ts.map +1 -1
- package/dist/integrations/utils.js +42 -1
- package/dist/integrations/utils.js.map +1 -1
- package/dist/runtime/context.d.ts +6 -0
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/context.js +2 -1
- package/dist/runtime/context.js.map +1 -1
- package/dist/runtime/executor.d.ts +6 -0
- package/dist/runtime/executor.d.ts.map +1 -1
- package/dist/runtime/executor.js +1 -0
- package/dist/runtime/executor.js.map +1 -1
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/errors.test.ts +257 -0
- package/src/errors.ts +289 -46
- package/src/index.ts +1 -0
- package/src/integrations/anthropic/README.md +12 -59
- package/src/integrations/anthropic/types.ts +1 -1
- package/src/integrations/base/decode-worker-binary-response.ts +5 -7
- package/src/integrations/base/index.ts +0 -5
- package/src/integrations/base/request-body.test.ts +358 -195
- package/src/integrations/base/request-body.ts +170 -326
- package/src/integrations/base/rest-api-client-base.ts +22 -31
- package/src/integrations/base/rest-api-integration-client.ts +8 -7
- package/src/integrations/base/types.ts +0 -18
- package/src/integrations/box/README.md +4 -60
- package/src/integrations/cosmosdb/client.ts +8 -7
- package/src/integrations/documentation-resolver.test.ts +108 -2
- package/src/integrations/documentation.test.ts +12 -0
- package/src/integrations/dropbox/README.md +1 -71
- package/src/integrations/dropbox/docs.manifest.json +10 -1
- package/src/integrations/dropbox/overlays/upload-unsupported.md +3 -0
- package/src/integrations/dropbox/overlays/upload.md +89 -0
- package/src/integrations/dynamodb/README.md +33 -12
- package/src/integrations/dynamodb/client.test.ts +254 -0
- package/src/integrations/dynamodb/client.ts +129 -23
- package/src/integrations/dynamodb/index.ts +5 -1
- package/src/integrations/dynamodb/types.ts +33 -1
- package/src/integrations/elasticsearch/README.md +0 -80
- package/src/integrations/elasticsearch/docs.manifest.json +10 -1
- package/src/integrations/elasticsearch/overlays/bulk-unsupported.md +3 -0
- package/src/integrations/elasticsearch/overlays/bulk.md +80 -0
- package/src/integrations/gcs/client.ts +8 -7
- package/src/integrations/googledrive/README.md +10 -36
- package/src/integrations/gsheets/client.ts +8 -7
- package/src/integrations/index.ts +1 -0
- package/src/integrations/jira/README.md +0 -26
- package/src/integrations/jira/docs.manifest.json +10 -1
- package/src/integrations/jira/overlays/attachments-unsupported.md +3 -0
- package/src/integrations/jira/overlays/attachments.md +30 -0
- package/src/integrations/mongodb/client.ts +8 -7
- package/src/integrations/restapiintegration/client.body-types.test.ts +135 -26
- package/src/integrations/restapiintegration/client.test.ts +23 -0
- package/src/integrations/restapiintegration/docs.manifest.json +2 -2
- package/src/integrations/restapiintegration/overlays/request-body-types.md +26 -17
- package/src/integrations/s3/client.ts +8 -7
- package/src/integrations/salesforce/client.ts +9 -7
- package/src/integrations/slack/client.test.ts +2 -5
- package/src/integrations/slack/client.ts +13 -19
- package/src/integrations/stabilityai/README.md +0 -87
- package/src/integrations/stabilityai/docs.manifest.json +10 -1
- package/src/integrations/stabilityai/overlays/image-uploads-unsupported.md +3 -0
- package/src/integrations/stabilityai/overlays/image-uploads.md +120 -0
- package/src/integrations/stripe/README.md +0 -201
- package/src/integrations/stripe/docs.manifest.json +10 -1
- package/src/integrations/stripe/overlays/request-bodies-unsupported.md +3 -0
- package/src/integrations/stripe/overlays/request-bodies.md +204 -0
- package/src/integrations/utils.ts +51 -1
- package/src/runtime/context.ts +9 -0
- package/src/runtime/executor.ts +8 -0
- package/src/types.ts +11 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.test.js","sourceRoot":"","sources":["../src/errors.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,CA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AE,KAAK,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC;YAC7D,CAAC,EAAE,KAAK;SACT,CAA0C,CAAC;QAE5C,MAAM,eAAe,GAAG,IAAI,sBAAsB,CAAC,mBAAmB,EAAE;YACtE,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;SAChB,CAAC,CAAC;QAEH,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;QACzE,MAAM,CACJ,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CACxD,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ export type { TwilioClient } from "./integrations/twilio/index.js";
|
|
|
95
95
|
export type { ZendeskClient } from "./integrations/zendesk/index.js";
|
|
96
96
|
export type { ZoomClient } from "./integrations/zoom/index.js";
|
|
97
97
|
export type { GraphQLClient } from "./integrations/graphql/index.js";
|
|
98
|
-
export type { DynamoDBClient, DynamoDBAttributeValue, } from "./integrations/dynamodb/index.js";
|
|
98
|
+
export type { DynamoDBClient, DynamoDBAttributeValue, DynamoDBScanOptions, } from "./integrations/dynamodb/index.js";
|
|
99
99
|
export type { CosmosDBClient } from "./integrations/cosmosdb/index.js";
|
|
100
100
|
export type { SalesforceClient, SalesforceCrudAction, SalesforceBulkAction, } from "./integrations/salesforce/index.js";
|
|
101
101
|
export type { S3Client } from "./integrations/s3/index.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;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AC;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,YAAY,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AACpF,YAAY,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AACjG,YAAY,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,YAAY,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAGhF,OAAO,EAEL,UAAU,EAEV,gBAAgB,EAEhB,QAAQ,EACR,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,cAAc,EACd,SAAS,GACV,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,uBAAuB,EAEvB,oBAAoB,EACpB,aAAa,GACd,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AAOjC,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,aAAa,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,gCAAgC;AAChC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,2BAA2B;AAC3B,O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@@ -41,7 +41,7 @@ import type { SupportsApiRequest } from "../base/index.js";
|
|
|
41
41
|
* method: 'POST',
|
|
42
42
|
* path: '/v1/messages',
|
|
43
43
|
* body: {
|
|
44
|
-
* model: 'claude-
|
|
44
|
+
* model: 'claude-sonnet-5-20250715',
|
|
45
45
|
* max_tokens: 1024,
|
|
46
46
|
* messages: [{ role: 'user', content: 'Hello!' }],
|
|
47
47
|
* },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decode-worker-binary-response.d.ts","sourceRoot":"","sources":["../../../src/integrations/base/decode-worker-binary-response.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,6BAA6B,EAE9B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,6BAA6B,EAAE,CAAC;AA0CzC,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"decode-worker-binary-response.d.ts","sourceRoot":"","sources":["../../../src/integrations/base/decode-worker-binary-response.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,6BAA6B,EAE9B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,6BAA6B,EAAE,CAAC;AA0CzC,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAUrE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { REDACTED_BINARY_RESPONSE_DATA,
|
|
2
|
+
import { REDACTED_BINARY_RESPONSE_DATA, restApiValidationErrorFromZodError, } from "../../errors.js";
|
|
3
3
|
export { REDACTED_BINARY_RESPONSE_DATA };
|
|
4
4
|
const workerBinaryResponseSchema = z.union([
|
|
5
5
|
z.instanceof(Uint8Array).transform((value) => new Uint8Array(value)),
|
|
@@ -39,10 +39,7 @@ const workerBinaryResponseSchema = z.union([
|
|
|
39
39
|
export function decodeWorkerBinaryResponse(value) {
|
|
40
40
|
const result = workerBinaryResponseSchema.safeParse(value);
|
|
41
41
|
if (!result.success) {
|
|
42
|
-
throw
|
|
43
|
-
data: REDACTED_BINARY_RESPONSE_DATA,
|
|
44
|
-
zodError: result.error,
|
|
45
|
-
});
|
|
42
|
+
throw restApiValidationErrorFromZodError("Binary response is malformed", result.error, REDACTED_BINARY_RESPONSE_DATA);
|
|
46
43
|
}
|
|
47
44
|
return result.data;
|
|
48
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decode-worker-binary-response.js","sourceRoot":"","sources":["../../../src/integrations/base/decode-worker-binary-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,6BAA6B,EAC7B,
|
|
1
|
+
{"version":3,"file":"decode-worker-binary-response.js","sourceRoot":"","sources":["../../../src/integrations/base/decode-worker-binary-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,6BAA6B,EAC7B,kCAAkC,GACnC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,6BAA6B,EAAE,CAAC;AAEzC,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC;IACzC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC;IACpE,CAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;QACjB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;KAC1B,CAAC;SACD,SAAS,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC5B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/B,OAAO,CAAC,QAAQ,CAAC;gBACf,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;gBAC3B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est-api-integration-client.js";
|
|
|
6
6
|
export type { RestApiRequest } from "./rest-api-client-base.js";
|
|
7
7
|
export { GraphQLIntegrationClient } from "./graphql-integration-client.js";
|
|
8
8
|
export { REST_API_BODY_TYPES } from "./types.js";
|
|
9
|
-
export type { ApiRequestOptions, ApiRequestSchema,
|
|
9
|
+
export type { ApiRequestOptions, ApiRequestSchema, RestApiBodyType, RestApiResponseType, SupportsApiRequest, } from "./types.js";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/base/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/base/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,YAAY,CAAC"}
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
import type { PartialMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import type { Property } from "@superblocksteam/types/dist/src/common/v1/plugin_pb";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
type RequestBodyWireType = "jsonBody" | "rawBody" | "formDataBase64" | "binaryBody";
|
|
4
|
+
/**
|
|
5
|
+
* Fields safe to spread directly onto the proto `RestApiRequest`. Never
|
|
6
|
+
* carries `contentType`: that is a header directive, not a wire field, and
|
|
7
|
+
* lives on `EncodedRequestBody` instead so a caller cannot spread it onto
|
|
8
|
+
* the wire message by mistake.
|
|
9
|
+
*/
|
|
10
|
+
export type RequestBodyWireFields = {
|
|
10
11
|
readonly body?: string;
|
|
11
|
-
readonly formData?:
|
|
12
|
+
readonly formData?: PartialMessage<Property>[];
|
|
12
13
|
readonly bodyType?: RequestBodyWireType;
|
|
13
|
-
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The encoder's full result: wire fields plus an optional Content-Type the
|
|
17
|
+
* caller must push onto request headers itself.
|
|
18
|
+
*/
|
|
19
|
+
export type EncodedRequestBody = {
|
|
20
|
+
readonly wire: RequestBodyWireFields;
|
|
21
|
+
readonly contentType?: string;
|
|
14
22
|
};
|
|
15
23
|
export declare function encodeRequestBody(input: {
|
|
16
24
|
body: unknown;
|
|
17
25
|
bodyType?: unknown;
|
|
18
26
|
headers?: Record<string, string>;
|
|
19
|
-
}):
|
|
27
|
+
}): EncodedRequestBody;
|
|
20
28
|
export {};
|
|
21
29
|
//# sourceMappingURL=request-body.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-body.d.ts","sourceRoot":"","sources":["../../../src/integrations/base/request-body.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"request-body.d.ts","sourceRoot":"","sources":["../../../src/integrations/base/request-body.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qDAAqD,CAAC;AAQpF,KAAK,mBAAmB,GACpB,UAAU,GACV,SAAS,GACT,gBAAgB,GAChB,YAAY,CAAC;AAEjB;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC/C,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CACzC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAIF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC,GAAG,kBAAkB,CA+BrB"}
|
|
@@ -1,92 +1,139 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { findBinaryDataPath, isBinaryData } from "../../errors.js";
|
|
3
|
+
import { describeOptionValue, validationError } from "../utils.js";
|
|
3
4
|
import { REST_API_BODY_TYPES } from "./types.js";
|
|
4
|
-
export const MAX_BINARY_BODY_BYTES = 20 * 1024 * 1024;
|
|
5
|
-
const REQUEST_BODY_SIZE_ERROR_MESSAGE = "request bodies must be 20 MiB or smaller because agent requests have a 28 MiB serialized size cap";
|
|
6
5
|
const requestBodyTypeSchema = z.enum(REST_API_BODY_TYPES);
|
|
7
6
|
export function encodeRequestBody(input) {
|
|
8
|
-
const bodyTypeResult = requestBodyTypeSchema.safeParse(input.bodyType
|
|
7
|
+
const bodyTypeResult = requestBodyTypeSchema.safeParse(input.bodyType === undefined ? "json" : input.bodyType);
|
|
9
8
|
if (!bodyTypeResult.success) {
|
|
10
|
-
throw
|
|
9
|
+
throw validationError(`Unsupported bodyType ${describeOptionValue(input.bodyType)} - expected one of: ${REST_API_BODY_TYPES.join(", ")}`, ["bodyType"]);
|
|
11
10
|
}
|
|
12
11
|
const bodyType = bodyTypeResult.data;
|
|
13
12
|
if (input.body === undefined) {
|
|
14
13
|
if (bodyType === "json")
|
|
15
|
-
return {
|
|
16
|
-
throw validationError(`bodyType "${bodyType}" requires a request body`,
|
|
14
|
+
return { wire: {} };
|
|
15
|
+
throw validationError(`bodyType "${bodyType}" requires a request body`, [
|
|
16
|
+
"body",
|
|
17
|
+
]);
|
|
17
18
|
}
|
|
18
19
|
switch (bodyType) {
|
|
19
20
|
case "json":
|
|
20
|
-
return encodeJsonBody(input.body);
|
|
21
|
+
return { wire: encodeJsonBody(input.body) };
|
|
21
22
|
case "raw":
|
|
22
|
-
return encodeRawBody(input.body);
|
|
23
|
+
return { wire: encodeRawBody(input.body) };
|
|
23
24
|
case "formUrlencoded":
|
|
24
25
|
return encodeFormUrlencodedBody(input.body, input.headers);
|
|
25
26
|
case "multipartForm":
|
|
26
|
-
return encodeMultipartFormBody(input.body, input.headers);
|
|
27
|
+
return { wire: encodeMultipartFormBody(input.body, input.headers) };
|
|
27
28
|
case "binary":
|
|
28
29
|
return encodeBinaryBody(input.body, input.headers);
|
|
29
|
-
default: {
|
|
30
|
-
const _exhaustive = bodyType;
|
|
31
|
-
return _exhaustive;
|
|
32
|
-
}
|
|
33
30
|
}
|
|
34
31
|
}
|
|
32
|
+
// JSON.stringify's own error text is unbounded: a circular-structure message
|
|
33
|
+
// embeds the caller's full property path and constructor names, and a
|
|
34
|
+
// throwing toJSON()/getter contributes an arbitrary caller-authored string.
|
|
35
|
+
// Every other message in this module goes through describeOptionValue's
|
|
36
|
+
// bounded conventions; classify the failure instead of echoing its text.
|
|
37
|
+
function describeJsonSerializationFailure(error) {
|
|
38
|
+
if (error instanceof TypeError &&
|
|
39
|
+
/circular (structure|reference)/i.test(error.message)) {
|
|
40
|
+
return "the body contains a circular reference";
|
|
41
|
+
}
|
|
42
|
+
if (error instanceof TypeError && /BigInt/i.test(error.message)) {
|
|
43
|
+
return "the body contains a BigInt value";
|
|
44
|
+
}
|
|
45
|
+
return "a nested value's toJSON, toString, or getter threw while serializing the body";
|
|
46
|
+
}
|
|
35
47
|
function encodeJsonBody(body) {
|
|
36
|
-
if (
|
|
37
|
-
throw validationError('Binary request bodies require bodyType: "binary"',
|
|
48
|
+
if (isBinaryData(body)) {
|
|
49
|
+
throw validationError('Binary request bodies require bodyType: "binary"', [
|
|
50
|
+
"body",
|
|
51
|
+
]);
|
|
52
|
+
}
|
|
53
|
+
// The walk itself only ever throws MAX_BINARY_SCAN_DEPTH's RangeError
|
|
54
|
+
// (see errors.ts); anything else (a throwing getter, an unusual toJSON)
|
|
55
|
+
// is left for JSON.stringify to judge below, which reports the same
|
|
56
|
+
// failure as a serialization error. A depth-capped walk fails closed
|
|
57
|
+
// instead: treat the body as containing binary at an unknown location
|
|
58
|
+
// rather than assume none, because JSON.stringify does not throw on a
|
|
59
|
+
// Uint8Array/Buffer/typed array -- the exact shape this check exists to
|
|
60
|
+
// catch -- it silently serializes them into digit-keyed garbage.
|
|
61
|
+
let binaryPath;
|
|
62
|
+
try {
|
|
63
|
+
binaryPath = findBinaryDataPath(body, isBinaryData);
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
binaryPath = error instanceof RangeError ? [] : undefined;
|
|
67
|
+
}
|
|
68
|
+
if (binaryPath !== undefined) {
|
|
69
|
+
const location = binaryPath.length > 0
|
|
70
|
+
? ` at ${describeOptionValue(binaryPath.join("."))}`
|
|
71
|
+
: "";
|
|
72
|
+
throw validationError(`bodyType "json" request body contains binary data${location}; send file parts with bodyType: "multipartForm" as { value, filename }, or send bytes alone with bodyType: "binary"`, ["body", ...binaryPath]);
|
|
38
73
|
}
|
|
39
74
|
let serialized;
|
|
40
75
|
try {
|
|
41
76
|
serialized = JSON.stringify(body);
|
|
42
77
|
}
|
|
43
78
|
catch (error) {
|
|
44
|
-
throw validationError(`
|
|
79
|
+
throw validationError(`bodyType "json" request body is not JSON-serializable: ${describeJsonSerializationFailure(error)}`, ["body"]);
|
|
45
80
|
}
|
|
46
81
|
if (serialized === undefined) {
|
|
47
|
-
throw validationError("
|
|
82
|
+
throw validationError(`bodyType "json" cannot serialize a ${typeof body} request body`, ["body"]);
|
|
48
83
|
}
|
|
49
|
-
|
|
50
|
-
return { body: serialized, bodyType: "jsonBody", injectedHeaders: [] };
|
|
84
|
+
return { body: serialized, bodyType: "jsonBody" };
|
|
51
85
|
}
|
|
52
86
|
function encodeRawBody(body) {
|
|
53
87
|
if (typeof body !== "string" || body.length === 0) {
|
|
54
|
-
throw validationError('bodyType "raw" requires a non-empty string request body',
|
|
88
|
+
throw validationError('bodyType "raw" requires a non-empty string request body', ["body"]);
|
|
55
89
|
}
|
|
56
|
-
|
|
57
|
-
|
|
90
|
+
return { body, bodyType: "rawBody" };
|
|
91
|
+
}
|
|
92
|
+
// A field's value may be a scalar or an array; either way, undefined items
|
|
93
|
+
// (an explicitly-undefined optional field, or an undefined array element)
|
|
94
|
+
// are omitted rather than encoded, matching JSON.stringify's default-body
|
|
95
|
+
// semantics. Shared by encodeFormUrlencodedBody and encodeMultipartFormBody.
|
|
96
|
+
function definedArrayValues(value) {
|
|
97
|
+
return (Array.isArray(value) ? value : [value]).filter((item) => item !== undefined);
|
|
58
98
|
}
|
|
59
99
|
function encodeFormUrlencodedBody(body, headers) {
|
|
60
100
|
if (!isPlainRecord(body)) {
|
|
61
|
-
throw validationError('bodyType "formUrlencoded" requires a plain object request body',
|
|
101
|
+
throw validationError('bodyType "formUrlencoded" requires a plain object request body', ["body"]);
|
|
62
102
|
}
|
|
63
|
-
const
|
|
103
|
+
const pairs = [];
|
|
64
104
|
for (const [key, value] of Object.entries(body)) {
|
|
65
105
|
if (value === undefined)
|
|
66
106
|
continue;
|
|
67
107
|
if (key.length === 0) {
|
|
68
|
-
throw validationError("formUrlencoded body keys must be non-empty strings",
|
|
108
|
+
throw validationError("formUrlencoded body keys must be non-empty strings", ["body", key]);
|
|
109
|
+
}
|
|
110
|
+
const encodedKey = formUrlencode(key, key);
|
|
111
|
+
for (const item of definedArrayValues(value)) {
|
|
112
|
+
pairs.push(`${encodedKey}=${formUrlencode(formUrlencodedPrimitiveToString(key, item), key)}`);
|
|
69
113
|
}
|
|
70
|
-
appendFormUrlencodedValue(params, key, value);
|
|
71
114
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
throw validationError("formUrlencoded body must encode at least one field", body, ["body"]);
|
|
115
|
+
if (pairs.length === 0) {
|
|
116
|
+
throw validationError("formUrlencoded body must encode at least one field", ["body"]);
|
|
75
117
|
}
|
|
76
|
-
validateRequestByteLength(utf8ByteLength(encodedBody), ["body"]);
|
|
77
118
|
return {
|
|
78
|
-
body:
|
|
79
|
-
|
|
80
|
-
injectedHeaders: contentTypeHeaderIfMissing(headers, "application/x-www-form-urlencoded"),
|
|
119
|
+
wire: { body: pairs.join("&"), bodyType: "rawBody" },
|
|
120
|
+
contentType: contentTypeIfMissing(headers, "application/x-www-form-urlencoded"),
|
|
81
121
|
};
|
|
82
122
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
123
|
+
// The WASM sdk-api sandbox has no URLSearchParams global, so encode by hand.
|
|
124
|
+
// encodeURIComponent's unreserved set leaves `! ' ( ) ~` unescaped, but the
|
|
125
|
+
// WHATWG application/x-www-form-urlencoded safe set (what URLSearchParams
|
|
126
|
+
// produces) escapes those five; only alphanumerics, `* - . _`, and space
|
|
127
|
+
// (as `+`) stay literal.
|
|
128
|
+
function formUrlencode(value, key) {
|
|
129
|
+
try {
|
|
130
|
+
return encodeURIComponent(value)
|
|
131
|
+
.replace(/%20/g, "+")
|
|
132
|
+
.replace(/[!'()~]/g, (char) => `%${char.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
133
|
+
}
|
|
134
|
+
catch {
|
|
135
|
+
throw validationError(`formUrlencoded field ${describeOptionValue(key)} contains a lone surrogate and cannot be percent-encoded`, ["body", key]);
|
|
88
136
|
}
|
|
89
|
-
params.append(key, formUrlencodedPrimitiveToString(key, value));
|
|
90
137
|
}
|
|
91
138
|
function formUrlencodedPrimitiveToString(key, value) {
|
|
92
139
|
if (typeof value === "string" || typeof value === "boolean")
|
|
@@ -94,117 +141,75 @@ function formUrlencodedPrimitiveToString(key, value) {
|
|
|
94
141
|
if (typeof value === "number" && Number.isFinite(value))
|
|
95
142
|
return String(value);
|
|
96
143
|
if (typeof value === "object" && value !== null) {
|
|
97
|
-
throw validationError(`formUrlencoded field
|
|
144
|
+
throw validationError(`formUrlencoded field ${describeOptionValue(key)} is nested; flatten it using bracket notation such as "metadata[order_id]"`, ["body", key]);
|
|
98
145
|
}
|
|
99
|
-
throw validationError(`formUrlencoded field
|
|
146
|
+
throw validationError(`formUrlencoded field ${describeOptionValue(key)} must be a string, finite number, boolean, or array of those values`, ["body", key]);
|
|
100
147
|
}
|
|
101
148
|
function encodeBinaryBody(body, headers) {
|
|
102
|
-
if (!
|
|
103
|
-
throw validationError('bodyType "binary" requires an ArrayBuffer or ArrayBufferView request body',
|
|
149
|
+
if (!isBinaryData(body)) {
|
|
150
|
+
throw validationError('bodyType "binary" requires an ArrayBuffer or ArrayBufferView request body', ["body"]);
|
|
151
|
+
}
|
|
152
|
+
if (body.byteLength === 0) {
|
|
153
|
+
throw validationError("binary request bodies must be non-empty", ["body"]);
|
|
104
154
|
}
|
|
105
|
-
const bytes = binaryBodyToBytes(body);
|
|
106
|
-
validateBinaryBodyByteLength(bytes.byteLength, body, ["body"]);
|
|
107
155
|
return {
|
|
108
|
-
body:
|
|
109
|
-
|
|
110
|
-
injectedHeaders: contentTypeHeaderIfMissing(headers, "application/octet-stream"),
|
|
156
|
+
wire: { body: toBuffer(body).toString("base64"), bodyType: "binaryBody" },
|
|
157
|
+
contentType: contentTypeIfMissing(headers, "application/octet-stream"),
|
|
111
158
|
};
|
|
112
159
|
}
|
|
113
160
|
function encodeMultipartFormBody(body, headers) {
|
|
114
161
|
if (hasHeader(headers, "content-type")) {
|
|
115
|
-
throw validationError("multipartForm bodies cannot provide Content-Type because the multipart boundary is generated at execution time",
|
|
162
|
+
throw validationError("multipartForm bodies cannot provide Content-Type because the multipart boundary is generated at execution time", ["headers", "Content-Type"]);
|
|
116
163
|
}
|
|
117
|
-
if (!isPlainRecord(body)
|
|
118
|
-
throw validationError('bodyType "multipartForm" requires a plain
|
|
164
|
+
if (!isPlainRecord(body)) {
|
|
165
|
+
throw validationError('bodyType "multipartForm" requires a plain object request body', ["body"]);
|
|
119
166
|
}
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
167
|
+
const formData = Object.entries(body).flatMap(([key, value]) => definedArrayValues(value).map((item) => parseMultipartPart(key, item)));
|
|
168
|
+
if (formData.length === 0) {
|
|
169
|
+
throw validationError("multipartForm body must encode at least one field", [
|
|
170
|
+
"body",
|
|
171
|
+
]);
|
|
125
172
|
}
|
|
126
|
-
|
|
127
|
-
const hasBinaryFile = parts.some((part) => part.kind === "file" && isBinaryBody(part.value));
|
|
128
|
-
return {
|
|
129
|
-
bodyType: hasBinaryFile ? "formDataBase64" : "formData",
|
|
130
|
-
formData: parts.map((part) => multipartPartToWire(part, hasBinaryFile)),
|
|
131
|
-
injectedHeaders: [],
|
|
132
|
-
};
|
|
173
|
+
return { bodyType: "formDataBase64", formData };
|
|
133
174
|
}
|
|
134
175
|
function parseMultipartPart(key, value) {
|
|
135
176
|
if (key.length === 0)
|
|
136
|
-
throw validationError("multipartForm body keys must be non-empty strings",
|
|
137
|
-
|
|
138
|
-
typeof value === "number" ||
|
|
139
|
-
typeof value === "boolean") {
|
|
140
|
-
const stringValue = String(value);
|
|
141
|
-
return {
|
|
142
|
-
kind: "field",
|
|
177
|
+
throw validationError("multipartForm body keys must be non-empty strings", [
|
|
178
|
+
"body",
|
|
143
179
|
key,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
180
|
+
]);
|
|
181
|
+
if (typeof value === "string" ||
|
|
182
|
+
typeof value === "boolean" ||
|
|
183
|
+
(typeof value === "number" && Number.isFinite(value))) {
|
|
184
|
+
return { key, value: String(value) };
|
|
147
185
|
}
|
|
148
|
-
if (
|
|
149
|
-
throw validationError(`multipartForm binary field
|
|
186
|
+
if (isBinaryData(value)) {
|
|
187
|
+
throw validationError(`multipartForm binary field ${describeOptionValue(key)} must be wrapped as { value, filename }`, ["body", key]);
|
|
150
188
|
}
|
|
151
189
|
if (!isPlainRecord(value)) {
|
|
152
|
-
throw validationError(`multipartForm field
|
|
190
|
+
throw validationError(`multipartForm field ${describeOptionValue(key)} must be a primitive value or { value, filename } file part`, ["body", key]);
|
|
153
191
|
}
|
|
154
192
|
const keys = Object.keys(value).filter((partKey) => value[partKey] !== undefined);
|
|
155
193
|
const missingKeys = ["value", "filename"].filter((requiredKey) => !keys.includes(requiredKey));
|
|
156
194
|
if (missingKeys.length > 0) {
|
|
157
|
-
throw validationError(`multipartForm file part
|
|
195
|
+
throw validationError(`multipartForm file part ${describeOptionValue(key)} is missing required ${pluralize("key", missingKeys)}: ${missingKeys.join(", ")}`, ["body", key]);
|
|
158
196
|
}
|
|
159
197
|
const unexpectedKeys = keys.filter((partKey) => partKey !== "value" && partKey !== "filename");
|
|
160
198
|
if (unexpectedKeys.length > 0) {
|
|
161
|
-
|
|
199
|
+
const shown = unexpectedKeys.slice(0, 5).map(describeOptionValue);
|
|
200
|
+
const suffix = unexpectedKeys.length > 5 ? ", ..." : "";
|
|
201
|
+
throw validationError(`multipartForm file part ${describeOptionValue(key)} has unexpected ${pluralize("key", unexpectedKeys)}: ${shown.join(", ")}${suffix}`, ["body", key]);
|
|
162
202
|
}
|
|
163
203
|
if (typeof value.filename !== "string" || value.filename.length === 0) {
|
|
164
|
-
throw validationError(`multipartForm file part
|
|
204
|
+
throw validationError(`multipartForm file part ${describeOptionValue(key)} requires a non-empty filename`, ["body", key, "filename"]);
|
|
165
205
|
}
|
|
166
|
-
if (typeof value.value !== "string" && !
|
|
167
|
-
throw validationError(`multipartForm file part
|
|
206
|
+
if (typeof value.value !== "string" && !isBinaryData(value.value)) {
|
|
207
|
+
throw validationError(`multipartForm file part ${describeOptionValue(key)} value must be a string or binary body`, ["body", key, "value"]);
|
|
168
208
|
}
|
|
169
|
-
const byteLength = isBinaryBody(value.value)
|
|
170
|
-
? binaryBodyToBytes(value.value).byteLength
|
|
171
|
-
: utf8ByteLength(value.value);
|
|
172
|
-
validateMultipartFilePartByteLength(byteLength, value.value, [
|
|
173
|
-
"body",
|
|
174
|
-
key,
|
|
175
|
-
"value",
|
|
176
|
-
]);
|
|
177
209
|
return {
|
|
178
|
-
kind: "file",
|
|
179
210
|
key,
|
|
180
|
-
value: value.value,
|
|
181
|
-
filename: value.filename,
|
|
182
|
-
byteLength,
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
function totalMultipartPartBytes(parts) {
|
|
186
|
-
return parts.reduce((total, part) => total + part.byteLength, 0);
|
|
187
|
-
}
|
|
188
|
-
function multipartPartToWire(part, encodeFilePartsAsBase64) {
|
|
189
|
-
if (part.kind === "field")
|
|
190
|
-
return { key: part.key, value: part.value };
|
|
191
|
-
if (!encodeFilePartsAsBase64) {
|
|
192
|
-
if (typeof part.value !== "string") {
|
|
193
|
-
throw validationError("multipartForm binary file parts require formDataBase64 encoding", part.value, ["body", part.key, "value"]);
|
|
194
|
-
}
|
|
195
|
-
return {
|
|
196
|
-
key: part.key,
|
|
197
|
-
value: part.value,
|
|
198
|
-
file: { filename: part.filename },
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
const bytes = isBinaryBody(part.value)
|
|
202
|
-
? binaryBodyToBytes(part.value)
|
|
203
|
-
: textToUtf8Bytes(part.value);
|
|
204
|
-
return {
|
|
205
|
-
key: part.key,
|
|
206
|
-
value: base64Encode(bytes),
|
|
207
|
-
file: { filename: part.filename },
|
|
211
|
+
value: toBuffer(value.value).toString("base64"),
|
|
212
|
+
file: { filename: value.filename },
|
|
208
213
|
};
|
|
209
214
|
}
|
|
210
215
|
function isPlainRecord(value) {
|
|
@@ -213,110 +218,21 @@ function isPlainRecord(value) {
|
|
|
213
218
|
const prototype = Object.getPrototypeOf(value);
|
|
214
219
|
return prototype === Object.prototype || prototype === null;
|
|
215
220
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
function binaryBodyToBytes(value) {
|
|
221
|
+
function toBuffer(value) {
|
|
222
|
+
if (typeof value === "string")
|
|
223
|
+
return Buffer.from(value, "utf8");
|
|
220
224
|
if (value instanceof ArrayBuffer)
|
|
221
|
-
return
|
|
222
|
-
return
|
|
223
|
-
}
|
|
224
|
-
function validateBinaryBodyByteLength(byteLength, data, path) {
|
|
225
|
-
if (byteLength === 0)
|
|
226
|
-
throw validationError("binary request bodies must be non-empty", data, path);
|
|
227
|
-
validateRequestByteLength(byteLength, path, data);
|
|
228
|
-
}
|
|
229
|
-
function validateMultipartFilePartByteLength(byteLength, data, path) {
|
|
230
|
-
if (byteLength <= MAX_BINARY_BODY_BYTES)
|
|
231
|
-
return;
|
|
232
|
-
throw validationError(REQUEST_BODY_SIZE_ERROR_MESSAGE, isBinaryBody(data) ? data : { byteLength }, path);
|
|
225
|
+
return Buffer.from(value);
|
|
226
|
+
return Buffer.from(value.buffer, value.byteOffset, value.byteLength);
|
|
233
227
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
236
|
-
return;
|
|
237
|
-
throw validationError(REQUEST_BODY_SIZE_ERROR_MESSAGE, data, path);
|
|
238
|
-
}
|
|
239
|
-
function contentTypeHeaderIfMissing(headers, value) {
|
|
240
|
-
return hasHeader(headers, "content-type")
|
|
241
|
-
? []
|
|
242
|
-
: [{ key: "Content-Type", value }];
|
|
228
|
+
function contentTypeIfMissing(headers, value) {
|
|
229
|
+
return hasHeader(headers, "content-type") ? undefined : value;
|
|
243
230
|
}
|
|
244
231
|
function hasHeader(headers, headerName) {
|
|
245
232
|
return (!!headers &&
|
|
246
233
|
Object.keys(headers).some((key) => key.toLowerCase() === headerName.toLowerCase()));
|
|
247
234
|
}
|
|
248
|
-
function base64Encode(bytes) {
|
|
249
|
-
if (typeof Buffer !== "undefined")
|
|
250
|
-
return Buffer.from(bytes.buffer, bytes.byteOffset, bytes.byteLength).toString("base64");
|
|
251
|
-
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
252
|
-
let output = "";
|
|
253
|
-
for (let index = 0; index < bytes.length; index += 3) {
|
|
254
|
-
const first = bytes[index];
|
|
255
|
-
const second = bytes[index + 1];
|
|
256
|
-
const third = bytes[index + 2];
|
|
257
|
-
output += alphabet[first >> 2];
|
|
258
|
-
output += alphabet[((first & 0x03) << 4) | ((second ?? 0) >> 4)];
|
|
259
|
-
output +=
|
|
260
|
-
second === undefined
|
|
261
|
-
? "="
|
|
262
|
-
: alphabet[((second & 0x0f) << 2) | ((third ?? 0) >> 6)];
|
|
263
|
-
output += third === undefined ? "=" : alphabet[third & 0x3f];
|
|
264
|
-
}
|
|
265
|
-
return output;
|
|
266
|
-
}
|
|
267
|
-
function textToUtf8Bytes(value) {
|
|
268
|
-
if (typeof TextEncoder !== "undefined")
|
|
269
|
-
return new TextEncoder().encode(value);
|
|
270
|
-
const bytes = [];
|
|
271
|
-
for (let index = 0; index < value.length; index += 1) {
|
|
272
|
-
const codePoint = value.codePointAt(index);
|
|
273
|
-
if (codePoint === undefined)
|
|
274
|
-
continue;
|
|
275
|
-
if (codePoint > 0xffff)
|
|
276
|
-
index += 1;
|
|
277
|
-
appendCodePointAsUtf8(bytes, codePoint);
|
|
278
|
-
}
|
|
279
|
-
return Uint8Array.from(bytes);
|
|
280
|
-
}
|
|
281
|
-
function utf8ByteLength(value) {
|
|
282
|
-
let byteLength = 0;
|
|
283
|
-
for (let index = 0; index < value.length; index += 1) {
|
|
284
|
-
const codePoint = value.codePointAt(index);
|
|
285
|
-
if (codePoint === undefined)
|
|
286
|
-
continue;
|
|
287
|
-
if (codePoint > 0xffff)
|
|
288
|
-
index += 1;
|
|
289
|
-
if (codePoint <= 0x7f)
|
|
290
|
-
byteLength += 1;
|
|
291
|
-
else if (codePoint <= 0x7ff)
|
|
292
|
-
byteLength += 2;
|
|
293
|
-
else if (codePoint <= 0xffff)
|
|
294
|
-
byteLength += 3;
|
|
295
|
-
else
|
|
296
|
-
byteLength += 4;
|
|
297
|
-
}
|
|
298
|
-
return byteLength;
|
|
299
|
-
}
|
|
300
235
|
function pluralize(word, values) {
|
|
301
236
|
return values.length === 1 ? word : `${word}s`;
|
|
302
237
|
}
|
|
303
|
-
function appendCodePointAsUtf8(bytes, codePoint) {
|
|
304
|
-
if (codePoint <= 0x7f)
|
|
305
|
-
bytes.push(codePoint);
|
|
306
|
-
else if (codePoint <= 0x7ff)
|
|
307
|
-
bytes.push(0xc0 | (codePoint >> 6), 0x80 | (codePoint & 0x3f));
|
|
308
|
-
else if (codePoint <= 0xffff)
|
|
309
|
-
bytes.push(0xe0 | (codePoint >> 12), 0x80 | ((codePoint >> 6) & 0x3f), 0x80 | (codePoint & 0x3f));
|
|
310
|
-
else
|
|
311
|
-
bytes.push(0xf0 | (codePoint >> 18), 0x80 | ((codePoint >> 12) & 0x3f), 0x80 | ((codePoint >> 6) & 0x3f), 0x80 | (codePoint & 0x3f));
|
|
312
|
-
}
|
|
313
|
-
function validationError(message, data, path) {
|
|
314
|
-
return new RestApiValidationError(message, {
|
|
315
|
-
data,
|
|
316
|
-
zodError: new z.ZodError([{ code: z.ZodIssueCode.custom, message, path }]),
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
function errorMessage(error) {
|
|
320
|
-
return error instanceof Error ? error.message : String(error);
|
|
321
|
-
}
|
|
322
238
|
//# sourceMappingURL=request-body.js.map
|