@zuplo/cli 6.70.16 → 6.70.21

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 (144) hide show
  1. package/dist/cli.js +0 -6
  2. package/dist/cli.js.map +1 -1
  3. package/node_modules/@cfworker/json-schema/README.md +75 -0
  4. package/node_modules/@cfworker/json-schema/dist/commonjs/deep-compare-strict.d.ts +1 -0
  5. package/node_modules/@cfworker/json-schema/dist/commonjs/deep-compare-strict.js +42 -0
  6. package/node_modules/@cfworker/json-schema/dist/commonjs/dereference.d.ts +7 -0
  7. package/node_modules/@cfworker/json-schema/dist/commonjs/dereference.js +147 -0
  8. package/node_modules/@cfworker/json-schema/dist/commonjs/format.d.ts +1 -0
  9. package/node_modules/@cfworker/json-schema/dist/commonjs/format.js +111 -0
  10. package/node_modules/@cfworker/json-schema/dist/commonjs/index.d.ts +8 -0
  11. package/node_modules/@cfworker/json-schema/dist/commonjs/index.js +24 -0
  12. package/node_modules/@cfworker/json-schema/dist/commonjs/package.json +3 -0
  13. package/node_modules/@cfworker/json-schema/dist/commonjs/pointer.d.ts +2 -0
  14. package/node_modules/@cfworker/json-schema/dist/commonjs/pointer.js +10 -0
  15. package/node_modules/@cfworker/json-schema/dist/commonjs/types.d.ts +72 -0
  16. package/node_modules/@cfworker/json-schema/dist/commonjs/types.js +9 -0
  17. package/node_modules/@cfworker/json-schema/dist/commonjs/ucs2-length.d.ts +1 -0
  18. package/node_modules/@cfworker/json-schema/dist/commonjs/ucs2-length.js +20 -0
  19. package/node_modules/@cfworker/json-schema/dist/commonjs/validate.d.ts +3 -0
  20. package/node_modules/@cfworker/json-schema/dist/commonjs/validate.js +805 -0
  21. package/node_modules/@cfworker/json-schema/dist/commonjs/validator.d.ts +10 -0
  22. package/node_modules/@cfworker/json-schema/dist/commonjs/validator.js +27 -0
  23. package/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.d.ts +1 -0
  24. package/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js +39 -0
  25. package/node_modules/@cfworker/json-schema/dist/esm/dereference.d.ts +7 -0
  26. package/node_modules/@cfworker/json-schema/dist/esm/dereference.js +143 -0
  27. package/node_modules/@cfworker/json-schema/dist/esm/format.d.ts +1 -0
  28. package/node_modules/@cfworker/json-schema/dist/esm/format.js +108 -0
  29. package/node_modules/@cfworker/json-schema/dist/esm/index.d.ts +8 -0
  30. package/node_modules/@cfworker/json-schema/dist/esm/index.js +8 -0
  31. package/node_modules/@cfworker/json-schema/dist/esm/package.json +3 -0
  32. package/node_modules/@cfworker/json-schema/dist/esm/pointer.d.ts +2 -0
  33. package/node_modules/@cfworker/json-schema/dist/esm/pointer.js +6 -0
  34. package/node_modules/@cfworker/json-schema/dist/esm/types.d.ts +72 -0
  35. package/node_modules/@cfworker/json-schema/dist/esm/types.js +6 -0
  36. package/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.d.ts +1 -0
  37. package/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.js +17 -0
  38. package/node_modules/@cfworker/json-schema/dist/esm/validate.d.ts +3 -0
  39. package/node_modules/@cfworker/json-schema/dist/esm/validate.js +802 -0
  40. package/node_modules/@cfworker/json-schema/dist/esm/validator.d.ts +10 -0
  41. package/node_modules/@cfworker/json-schema/dist/esm/validator.js +23 -0
  42. package/node_modules/@cfworker/json-schema/package.json +68 -0
  43. package/node_modules/@cfworker/json-schema/src/deep-compare-strict.d.ts +1 -0
  44. package/node_modules/@cfworker/json-schema/src/deep-compare-strict.ts +39 -0
  45. package/node_modules/@cfworker/json-schema/src/dereference.d.ts +12 -0
  46. package/node_modules/@cfworker/json-schema/src/dereference.ts +188 -0
  47. package/node_modules/@cfworker/json-schema/src/format.d.ts +2 -0
  48. package/node_modules/@cfworker/json-schema/src/format.ts +164 -0
  49. package/node_modules/@cfworker/json-schema/src/index.d.ts +8 -0
  50. package/node_modules/@cfworker/json-schema/src/index.ts +8 -0
  51. package/node_modules/@cfworker/json-schema/src/pointer.d.ts +2 -0
  52. package/node_modules/@cfworker/json-schema/src/pointer.ts +7 -0
  53. package/node_modules/@cfworker/json-schema/src/types.d.ts +79 -0
  54. package/node_modules/@cfworker/json-schema/src/types.ts +92 -0
  55. package/node_modules/@cfworker/json-schema/src/ucs2-length.d.ts +1 -0
  56. package/node_modules/@cfworker/json-schema/src/ucs2-length.ts +24 -0
  57. package/node_modules/@cfworker/json-schema/src/validate.d.ts +13 -0
  58. package/node_modules/@cfworker/json-schema/src/validate.ts +1168 -0
  59. package/node_modules/@cfworker/json-schema/src/validator.d.ts +14 -0
  60. package/node_modules/@cfworker/json-schema/src/validator.ts +32 -0
  61. package/node_modules/@zuplo/core/package.json +1 -1
  62. package/node_modules/@zuplo/graphql/package.json +1 -1
  63. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  64. package/node_modules/@zuplo/otel/package.json +1 -1
  65. package/node_modules/@zuplo/runtime/out/esm/{chunk-YJ3VHQXF.js → chunk-2ZQVIVZ3.js} +2 -2
  66. package/node_modules/@zuplo/runtime/out/esm/{chunk-STBDRSX7.js → chunk-UMZORQLU.js} +67 -66
  67. package/node_modules/@zuplo/runtime/out/esm/chunk-UMZORQLU.js.map +1 -0
  68. package/node_modules/@zuplo/runtime/out/esm/{chunk-KWR5BV7H.js → chunk-YGYFQCBA.js} +6 -6
  69. package/node_modules/@zuplo/runtime/out/esm/chunk-YGYFQCBA.js.map +1 -0
  70. package/node_modules/@zuplo/runtime/out/esm/{chunk-NJNTFB34.js → chunk-ZS34EO4B.js} +2 -2
  71. package/node_modules/@zuplo/runtime/out/esm/{chunk-NJNTFB34.js.map → chunk-ZS34EO4B.js.map} +1 -1
  72. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  73. package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
  74. package/node_modules/@zuplo/runtime/out/esm/internal/index.js +1 -1
  75. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +208 -72
  76. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
  77. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
  78. package/node_modules/@zuplo/runtime/out/types/index.d.ts +61 -12
  79. package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +8 -17
  80. package/node_modules/@zuplo/runtime/out/types/mocks/index.d.ts +3 -12
  81. package/node_modules/@zuplo/runtime/package.json +3 -2
  82. package/node_modules/agent-base/README.md +145 -0
  83. package/node_modules/agent-base/dist/src/index.d.ts +78 -0
  84. package/node_modules/agent-base/dist/src/index.js +203 -0
  85. package/node_modules/agent-base/dist/src/index.js.map +1 -0
  86. package/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  87. package/node_modules/agent-base/dist/src/promisify.js +18 -0
  88. package/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  89. package/node_modules/agent-base/package.json +64 -0
  90. package/node_modules/agent-base/src/index.ts +345 -0
  91. package/node_modules/agent-base/src/promisify.ts +33 -0
  92. package/node_modules/axios/CHANGELOG.md +71 -0
  93. package/node_modules/axios/README.md +46 -11
  94. package/node_modules/axios/dist/axios.js +81 -53
  95. package/node_modules/axios/dist/axios.js.map +1 -1
  96. package/node_modules/axios/dist/axios.min.js +2 -2
  97. package/node_modules/axios/dist/axios.min.js.map +1 -1
  98. package/node_modules/axios/dist/browser/axios.cjs +96 -64
  99. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  100. package/node_modules/axios/dist/esm/axios.js +96 -64
  101. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  102. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  103. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  104. package/node_modules/axios/dist/node/axios.cjs +206 -85
  105. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  106. package/node_modules/axios/index.d.cts +1 -1
  107. package/node_modules/axios/index.d.ts +1 -1
  108. package/node_modules/axios/lib/adapters/fetch.js +6 -2
  109. package/node_modules/axios/lib/adapters/http.js +139 -29
  110. package/node_modules/axios/lib/adapters/xhr.js +2 -1
  111. package/node_modules/axios/lib/core/AxiosHeaders.js +1 -33
  112. package/node_modules/axios/lib/env/data.js +1 -1
  113. package/node_modules/axios/lib/helpers/composeSignals.js +48 -47
  114. package/node_modules/axios/lib/helpers/formDataToJSON.js +1 -1
  115. package/node_modules/axios/lib/helpers/fromDataURI.js +18 -5
  116. package/node_modules/axios/lib/helpers/progressEventReducer.js +3 -0
  117. package/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
  118. package/node_modules/axios/lib/utils.js +8 -7
  119. package/node_modules/axios/package.json +3 -1
  120. package/node_modules/https-proxy-agent/README.md +137 -0
  121. package/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  122. package/node_modules/https-proxy-agent/dist/agent.js +177 -0
  123. package/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  124. package/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  125. package/node_modules/https-proxy-agent/dist/index.js +14 -0
  126. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  127. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  128. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  129. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  130. package/node_modules/https-proxy-agent/package.json +56 -0
  131. package/node_modules/type-is/index.js +8 -18
  132. package/node_modules/type-is/node_modules/content-type/LICENSE +22 -0
  133. package/node_modules/type-is/node_modules/content-type/README.md +69 -0
  134. package/node_modules/type-is/node_modules/content-type/dist/index.d.ts +26 -0
  135. package/node_modules/type-is/node_modules/content-type/dist/index.js +170 -0
  136. package/node_modules/type-is/node_modules/content-type/dist/index.js.map +1 -0
  137. package/node_modules/type-is/node_modules/content-type/package.json +52 -0
  138. package/node_modules/type-is/package.json +9 -5
  139. package/package.json +6 -6
  140. package/node_modules/@zuplo/runtime/out/esm/chunk-KWR5BV7H.js.map +0 -1
  141. package/node_modules/@zuplo/runtime/out/esm/chunk-STBDRSX7.js.map +0 -1
  142. /package/node_modules/@zuplo/runtime/out/esm/{chunk-YJ3VHQXF.js.map → chunk-2ZQVIVZ3.js.map} +0 -0
  143. /package/node_modules/@zuplo/runtime/out/esm/{chunk-STBDRSX7.js.LEGAL.txt → chunk-UMZORQLU.js.LEGAL.txt} +0 -0
  144. /package/node_modules/@zuplo/runtime/out/esm/{chunk-KWR5BV7H.js.LEGAL.txt → chunk-YGYFQCBA.js.LEGAL.txt} +0 -0
@@ -0,0 +1,92 @@
1
+ export type SchemaDraft = '4' | '7' | '2019-09' | '2020-12';
2
+
3
+ export const enum OutputFormat {
4
+ Flag = 1 << 0,
5
+ Basic = 1 << 1,
6
+ Detailed = 1 << 2
7
+ }
8
+
9
+ export type InstanceType =
10
+ | 'array'
11
+ | 'boolean'
12
+ | 'integer'
13
+ | 'null'
14
+ | 'number'
15
+ | 'object'
16
+ | 'string';
17
+
18
+ export interface Schema {
19
+ $id?: string;
20
+ $anchor?: string;
21
+ $recursiveAnchor?: boolean;
22
+ $ref?: string;
23
+ $recursiveRef?: '#';
24
+ $schema?: string;
25
+ $comment?: string;
26
+ $defs?: any;
27
+ $vocabulary?: Record<string, boolean>;
28
+
29
+ type?: InstanceType | InstanceType[];
30
+ const?: any;
31
+ enum?: any[];
32
+ required?: string[];
33
+ not?: Schema;
34
+ anyOf?: Schema[];
35
+ allOf?: Schema[];
36
+ oneOf?: Schema[];
37
+ if?: Schema;
38
+ then?: Schema;
39
+ else?: Schema;
40
+
41
+ format?: string;
42
+
43
+ properties?: Record<string | number, Schema | boolean>;
44
+ patternProperties?: Record<string, Schema | boolean>;
45
+ additionalProperties?: Schema | boolean;
46
+ unevaluatedProperties?: Schema | boolean;
47
+ minProperties?: number;
48
+ maxProperties?: number;
49
+ propertyNames?: Schema;
50
+ dependentRequired?: Record<string, string[]>;
51
+ dependentSchemas?: Record<string, Schema>;
52
+ dependencies?: Record<string, Schema | string[]>;
53
+
54
+ prefixItems?: Array<Schema | boolean>;
55
+ items?: Schema | boolean | Array<Schema | boolean>;
56
+ additionalItems?: Schema | boolean;
57
+ unevaluatedItems?: Schema | boolean;
58
+ contains?: Schema | boolean;
59
+ minContains?: number;
60
+ maxContains?: number;
61
+ minItems?: number;
62
+ maxItems?: number;
63
+ uniqueItems?: boolean;
64
+
65
+ minimum?: number;
66
+ maximum?: number;
67
+ exclusiveMinimum?: number | boolean;
68
+ exclusiveMaximum?: number | boolean;
69
+ multipleOf?: number;
70
+
71
+ minLength?: number;
72
+ maxLength?: number;
73
+ pattern?: string;
74
+
75
+ __absolute_ref__?: string;
76
+ __absolute_recursive_ref__?: string;
77
+ __absolute_uri__?: string;
78
+
79
+ [key: string]: any;
80
+ }
81
+
82
+ export interface OutputUnit {
83
+ keyword: string;
84
+ keywordLocation: string;
85
+ instanceLocation: string;
86
+ error: string;
87
+ }
88
+
89
+ export interface ValidationResult {
90
+ valid: boolean;
91
+ errors: OutputUnit[];
92
+ }
@@ -0,0 +1 @@
1
+ export declare function ucs2length(s: string): number;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Get UCS-2 length of a string
3
+ * https://mathiasbynens.be/notes/javascript-encoding
4
+ * https://github.com/bestiejs/punycode.js - punycode.ucs2.decode
5
+ */
6
+ export function ucs2length(s: string): number {
7
+ let result = 0;
8
+ let length = s.length;
9
+ let index = 0;
10
+ let charCode: number;
11
+ while (index < length) {
12
+ result++;
13
+ charCode = s.charCodeAt(index++);
14
+ if (charCode >= 0xd800 && charCode <= 0xdbff && index < length) {
15
+ // high surrogate, and there is a next character
16
+ charCode = s.charCodeAt(index);
17
+ if ((charCode & 0xfc00) == 0xdc00) {
18
+ // low surrogate
19
+ index++;
20
+ }
21
+ }
22
+ }
23
+ return result;
24
+ }
@@ -0,0 +1,13 @@
1
+ import { Schema, SchemaDraft, ValidationResult } from './types.js';
2
+ export type Evaluated = Record<string | number, boolean>;
3
+ export declare function validate(
4
+ instance: any,
5
+ schema: Schema | boolean,
6
+ draft?: SchemaDraft,
7
+ lookup?: Record<string, Schema | boolean>,
8
+ shortCircuit?: boolean,
9
+ recursiveAnchor?: Schema | null,
10
+ instanceLocation?: string,
11
+ schemaLocation?: string,
12
+ evaluated?: Evaluated
13
+ ): ValidationResult;