zapier-platform-schema 9.7.1 → 9.7.2

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "9.7.1",
2
+ "version": "9.7.2",
3
3
  "schemas": {
4
4
  "AppSchema": {
5
5
  "id": "/AppSchema",
@@ -400,6 +400,10 @@
400
400
  "serializeValueForCurlies": {
401
401
  "description": "A function to customize how to serialize a value for curlies `{{var}}` in the request object. By default, when this is unspecified, the request client only replaces curlies where variables are strings, and would throw an error for non-strings. The function should accepts a single argument as the value to be serialized and return the string representation of the argument.",
402
402
  "$ref": "/FunctionSchema"
403
+ },
404
+ "skipEncodingChars": {
405
+ "description": "Contains the characters that you want left unencoded in the query params (`req.params`). If unspecified, `z.request()` will percent-encode non-ascii characters and these reserved characters: ``:$/?#[]@$&+,;=^@`\\``.",
406
+ "type": "string"
403
407
  }
404
408
  },
405
409
  "additionalProperties": false
@@ -16,12 +16,12 @@ module.exports = makeSchema(
16
16
  description: 'The HTTP method for the request.',
17
17
  type: 'string',
18
18
  default: 'GET',
19
- enum: ['GET', 'PUT', 'POST', 'PATCH', 'DELETE', 'HEAD']
19
+ enum: ['GET', 'PUT', 'POST', 'PATCH', 'DELETE', 'HEAD'],
20
20
  },
21
21
  url: {
22
22
  description:
23
23
  'A URL for the request (we will parse the querystring and merge with params). Keys and values will not be re-encoded.',
24
- type: 'string'
24
+ type: 'string',
25
25
  },
26
26
  body: {
27
27
  description: 'Can be nothing, a raw string or JSON (object or array).',
@@ -29,17 +29,17 @@ module.exports = makeSchema(
29
29
  { type: 'null' }, // nothing
30
30
  { type: 'string' }, // raw body
31
31
  { type: 'object' }, // json body object
32
- { type: 'array' } // json body array
33
- ]
32
+ { type: 'array' }, // json body array
33
+ ],
34
34
  },
35
35
  params: {
36
36
  description:
37
37
  'A mapping of the querystring - will get merged with any query params in the URL. Keys and values will be encoded.',
38
- $ref: FlatObjectSchema.id
38
+ $ref: FlatObjectSchema.id,
39
39
  },
40
40
  headers: {
41
41
  description: 'The HTTP headers for the request.',
42
- $ref: FlatObjectSchema.id
42
+ $ref: FlatObjectSchema.id,
43
43
  },
44
44
  auth: {
45
45
  description:
@@ -50,11 +50,11 @@ module.exports = makeSchema(
50
50
  items: {
51
51
  type: 'string',
52
52
  minProperties: 2,
53
- maxProperties: 2
54
- }
53
+ maxProperties: 2,
54
+ },
55
55
  },
56
- { $ref: FlatObjectSchema.id }
57
- ]
56
+ { $ref: FlatObjectSchema.id },
57
+ ],
58
58
  },
59
59
  removeMissingValuesFrom: {
60
60
  description:
@@ -65,24 +65,29 @@ module.exports = makeSchema(
65
65
  description:
66
66
  'Refers to data sent via a requests query params (`req.params`)',
67
67
  type: 'boolean',
68
- default: false
68
+ default: false,
69
69
  },
70
70
  body: {
71
71
  description:
72
72
  'Refers to tokens sent via a requsts body (`req.body`)',
73
73
  type: 'boolean',
74
- default: false
75
- }
74
+ default: false,
75
+ },
76
76
  },
77
- additionalProperties: false
77
+ additionalProperties: false,
78
78
  },
79
79
  serializeValueForCurlies: {
80
80
  description:
81
81
  'A function to customize how to serialize a value for curlies `{{var}}` in the request object. By default, when this is unspecified, the request client only replaces curlies where variables are strings, and would throw an error for non-strings. The function should accepts a single argument as the value to be serialized and return the string representation of the argument.',
82
- $ref: FunctionSchema.id
83
- }
82
+ $ref: FunctionSchema.id,
83
+ },
84
+ skipEncodingChars: {
85
+ description:
86
+ 'Contains the characters that you want left unencoded in the query params (`req.params`). If unspecified, `z.request()` will percent-encode non-ascii characters and these reserved characters: ``:$/?#[]@$&+,;=^@`\\``.',
87
+ type: 'string',
88
+ },
84
89
  },
85
- additionalProperties: false
90
+ additionalProperties: false,
86
91
  },
87
92
  [FlatObjectSchema, FunctionSchema]
88
93
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zapier-platform-schema",
3
- "version": "9.7.1",
3
+ "version": "9.7.2",
4
4
  "description": "Schema definition for CLI apps in the Zapier Developer Platform.",
5
5
  "repository": "zapier/zapier-platform-schema",
6
6
  "homepage": "https://zapier.com/",