@fern-api/fdr-sdk 1.1.26-aaa1152cda → 1.1.28-306b323376

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.
@@ -0,0 +1,634 @@
1
+ // src/orpc-client/shared.ts
2
+ import * as z from "zod";
3
+ var OrgIdSchema = z.string();
4
+ var ApiIdSchema = z.string();
5
+ var ApiDefinitionIdSchema = z.string().uuid();
6
+ var HttpMethodSchema = z.enum(["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"]);
7
+ var UrlSchema = z.string();
8
+ var EndpointPathLiteralSchema = z.string();
9
+ function EndpointPathLiteral(value) {
10
+ return value;
11
+ }
12
+ var EndpointIdentifierSchema = z.object({
13
+ path: z.string(),
14
+ method: HttpMethodSchema,
15
+ identifierOverride: z.string().nullish()
16
+ });
17
+ var SdkRequestSchema = z.discriminatedUnion("type", [
18
+ z.object({ type: z.literal("typescript"), package: z.string(), version: z.string().nullish() }),
19
+ z.object({ type: z.literal("python"), package: z.string(), version: z.string().nullish() }),
20
+ z.object({ type: z.literal("go"), githubRepo: z.string(), version: z.string().nullish() }),
21
+ z.object({ type: z.literal("ruby"), gem: z.string(), version: z.string().nullish() }),
22
+ z.object({
23
+ type: z.literal("java"),
24
+ group: z.string(),
25
+ artifact: z.string(),
26
+ version: z.string().nullish()
27
+ }),
28
+ z.object({ type: z.literal("csharp"), package: z.string(), version: z.string().nullish() })
29
+ ]);
30
+ var DocsConfigIdSchema = z.string();
31
+ var GrpcIdSchema = z.string();
32
+ var PageIdSchema = z.string();
33
+ var RoleIdSchema = z.string();
34
+ var TokenIdSchema = z.string();
35
+ var VersionIdSchema = z.string();
36
+ var Availability = {
37
+ Stable: "Stable",
38
+ GenerallyAvailable: "GenerallyAvailable",
39
+ InDevelopment: "InDevelopment",
40
+ PreRelease: "PreRelease",
41
+ Deprecated: "Deprecated",
42
+ Beta: "Beta"
43
+ };
44
+ var SnippetsByEndpointMethodSchema = z.record(
45
+ HttpMethodSchema,
46
+ z.array(z.unknown())
47
+ );
48
+ var SdkSchema = z.discriminatedUnion("type", [
49
+ z.object({ type: z.literal("typescript"), package: z.string(), version: z.string() }),
50
+ z.object({ type: z.literal("python"), package: z.string(), version: z.string() }),
51
+ z.object({ type: z.literal("go"), githubRepo: z.string(), version: z.string() }),
52
+ z.object({ type: z.literal("ruby"), gem: z.string(), version: z.string() }),
53
+ z.object({
54
+ type: z.literal("java"),
55
+ group: z.string(),
56
+ artifact: z.string(),
57
+ version: z.string()
58
+ }),
59
+ z.object({ type: z.literal("csharp"), package: z.string(), version: z.string() })
60
+ ]);
61
+
62
+ // src/api-definition/endpoint-path-literal.ts
63
+ function toColonEndpointPathLiteral(pathParts) {
64
+ return EndpointPathLiteral(
65
+ pathParts.map((part) => part.type === "literal" ? part.value : `:${part.value}`).join("")
66
+ );
67
+ }
68
+ function toCurlyBraceEndpointPathLiteral(pathParts) {
69
+ return EndpointPathLiteral(
70
+ pathParts.map((part) => part.type === "literal" ? part.value : `{${part.value}}`).join("")
71
+ );
72
+ }
73
+
74
+ // src/api-definition/status-message.ts
75
+ var STATUS_CODE_MESSAGES = {
76
+ 100: "Continue",
77
+ 101: "Switching Protocols",
78
+ 102: "Processing",
79
+ 103: "Early Hints",
80
+ 200: "OK",
81
+ 201: "Created",
82
+ 202: "Accepted",
83
+ 203: "Non-Authoritative Information",
84
+ 204: "No Content",
85
+ 205: "Reset Content",
86
+ 206: "Partial Content",
87
+ 207: "Multi-Status",
88
+ 208: "Already Reported",
89
+ 226: "IM Used",
90
+ 300: "Multiple Choices",
91
+ 301: "Moved Permanently",
92
+ 302: "Found",
93
+ 303: "See Other",
94
+ 304: "Not Modified",
95
+ 305: "Use Proxy",
96
+ 306: "Switch Proxy",
97
+ 307: "Temporary Redirect",
98
+ 308: "Permanent Redirect",
99
+ 400: "Bad Request",
100
+ 401: "Unauthorized",
101
+ 402: "Payment Required",
102
+ 403: "Forbidden",
103
+ 404: "Not Found",
104
+ 405: "Method Not Allowed",
105
+ 406: "Not Acceptable",
106
+ 407: "Proxy Authentication Required",
107
+ 408: "Request Timeout",
108
+ 409: "Conflict",
109
+ 410: "Gone",
110
+ 411: "Length Required",
111
+ 412: "Precondition Failed",
112
+ 413: "Payload Too Large",
113
+ 414: "URI Too Long",
114
+ 415: "Unsupported Media Type",
115
+ 416: "Range Not Satisfiable",
116
+ 417: "Expectation Failed",
117
+ 418: "I'm a teapot",
118
+ 421: "Misdirected Request",
119
+ 422: "Unprocessable Entity",
120
+ 423: "Locked",
121
+ 424: "Failed Dependency",
122
+ 425: "Too Early",
123
+ 426: "Upgrade Required",
124
+ 428: "Precondition Required",
125
+ 429: "Too Many Requests",
126
+ 431: "Request Header Fields Too Large",
127
+ 451: "Unavailable For Legal Reasons",
128
+ 500: "Internal Server Error",
129
+ 501: "Not Implemented",
130
+ 502: "Bad Gateway",
131
+ 503: "Service Unavailable",
132
+ 504: "Gateway Timeout",
133
+ 505: "HTTP Version Not Supported",
134
+ 506: "Variant Also Negotiates",
135
+ 507: "Insufficient Storage",
136
+ 508: "Loop Detected",
137
+ 510: "Not Extended",
138
+ 511: "Network Authentication Required"
139
+ };
140
+ var STATUS_CODE_MESSAGES_METHOD_OVERRIDES = {
141
+ 200: {
142
+ GET: "Retrieved",
143
+ POST: "Successful",
144
+ // more accurate than "Created" for POST
145
+ PUT: "Updated",
146
+ PATCH: "Updated",
147
+ DELETE: "Deleted"
148
+ }
149
+ };
150
+ function getMessageForStatus(statusCode, method) {
151
+ if (method != null) {
152
+ const methodOverrides = STATUS_CODE_MESSAGES_METHOD_OVERRIDES[statusCode];
153
+ if (methodOverrides != null) {
154
+ const message2 = methodOverrides[method];
155
+ if (message2 != null) {
156
+ return message2;
157
+ }
158
+ }
159
+ }
160
+ const message = STATUS_CODE_MESSAGES[statusCode];
161
+ if (message != null) {
162
+ return message;
163
+ }
164
+ if (statusCode >= 100 && statusCode < 200) {
165
+ return "Informational";
166
+ } else if (statusCode >= 200 && statusCode < 300) {
167
+ return "Success";
168
+ } else if (statusCode >= 300 && statusCode < 400) {
169
+ return "Redirection";
170
+ } else if (statusCode >= 400 && statusCode < 500) {
171
+ return "Client Error";
172
+ } else if (statusCode >= 500 && statusCode < 600) {
173
+ return "Server Error";
174
+ } else {
175
+ return "Unknown Status";
176
+ }
177
+ }
178
+
179
+ // ../commons/core-utils/dist/assertNever.js
180
+ function assertNever(x) {
181
+ throw new Error("Unexpected value: " + JSON.stringify(x));
182
+ }
183
+
184
+ // ../commons/core-utils/dist/objects/isPlainObject.js
185
+ function isPlainObject(value) {
186
+ if (!isObjectLike(value) || String(value) !== "[object Object]") {
187
+ return false;
188
+ }
189
+ if (Object.getPrototypeOf(value) == null) {
190
+ return true;
191
+ }
192
+ let proto = value;
193
+ while (Object.getPrototypeOf(proto) != null) {
194
+ proto = Object.getPrototypeOf(proto);
195
+ }
196
+ return Object.getPrototypeOf(value) === proto;
197
+ }
198
+ function isObjectLike(value) {
199
+ return typeof value === "object" && value != null;
200
+ }
201
+
202
+ // ../commons/core-utils/dist/sanitizeUrl.js
203
+ function sanitizeUrl(url) {
204
+ if (!url) {
205
+ return void 0;
206
+ }
207
+ if (url.startsWith("//")) {
208
+ try {
209
+ const parsedUrl = new URL(`https:${url}`);
210
+ return parsedUrl.toString();
211
+ } catch {
212
+ return void 0;
213
+ }
214
+ }
215
+ if (!url.startsWith("http://") && !url.startsWith("https://") && !url.startsWith("wss://") && !url.startsWith("ws://") && !url.startsWith("mailto:") && !url.startsWith("tel:")) {
216
+ try {
217
+ const parsedUrl = new URL(`https://${url}`);
218
+ return parsedUrl.toString();
219
+ } catch {
220
+ return void 0;
221
+ }
222
+ }
223
+ try {
224
+ const parsedUrl = new URL(url);
225
+ return parsedUrl.toString();
226
+ } catch {
227
+ return void 0;
228
+ }
229
+ }
230
+
231
+ // ../commons/core-utils/dist/unknownToString.js
232
+ function unknownToString(value, { renderNull = false } = {}) {
233
+ if (value == null || typeof value === "function") {
234
+ return renderNull ? "null" : "";
235
+ } else if (typeof value === "string") {
236
+ return value;
237
+ }
238
+ return JSON.stringify(value);
239
+ }
240
+
241
+ // ../commons/core-utils/dist/visitDiscriminatedUnion.js
242
+ function visitDiscriminatedUnion(item, discriminant = "type") {
243
+ return {
244
+ _visit: (visitor) => {
245
+ const visit = visitor[item[discriminant]];
246
+ if (visit != null) {
247
+ return visit(item);
248
+ } else {
249
+ if (visitor._other == null) {
250
+ assertNever(item);
251
+ }
252
+ return visitor._other(item);
253
+ }
254
+ }
255
+ };
256
+ }
257
+ var visitDiscriminatedUnion_default = visitDiscriminatedUnion;
258
+
259
+ // src/api-definition/unwrap.ts
260
+ import { compact, sortBy } from "es-toolkit/array";
261
+
262
+ // src/api-definition/availability.ts
263
+ var AvailabilityOrder = [
264
+ Availability.Stable,
265
+ Availability.GenerallyAvailable,
266
+ Availability.Beta,
267
+ Availability.PreRelease,
268
+ Availability.InDevelopment,
269
+ Availability.Deprecated
270
+ ];
271
+ function coalesceAvailability(availabilities) {
272
+ for (const availability of [...AvailabilityOrder].reverse()) {
273
+ if (availabilities.includes(availability)) {
274
+ return availability;
275
+ }
276
+ }
277
+ return void 0;
278
+ }
279
+
280
+ // src/api-definition/const.ts
281
+ var LOOP_TOLERANCE = 100;
282
+ var LARGE_LOOP_TOLERANCE = 100 ** 2;
283
+
284
+ // src/api-definition/unwrap.ts
285
+ var UnwrapReferenceCache = /* @__PURE__ */ new WeakMap();
286
+ function unwrapReference(typeRef, types) {
287
+ if (typeRef == null) {
288
+ return void 0;
289
+ }
290
+ const cached = UnwrapReferenceCache.get(typeRef);
291
+ if (cached != null) {
292
+ return cached;
293
+ }
294
+ let isOptional = false;
295
+ let isNullable = false;
296
+ const defaults = [];
297
+ const descriptions = [];
298
+ const availabilities = [];
299
+ const visitedTypeIds = /* @__PURE__ */ new Set();
300
+ let internalTypeRef = typeRef;
301
+ let loop = 0;
302
+ let circularReference = false;
303
+ while (internalTypeRef != null) {
304
+ if (loop > LOOP_TOLERANCE) {
305
+ internalTypeRef = void 0;
306
+ break;
307
+ }
308
+ if (internalTypeRef.type === "nullable") {
309
+ isNullable = true;
310
+ internalTypeRef = internalTypeRef.shape;
311
+ } else if (internalTypeRef.type === "optional") {
312
+ isOptional = true;
313
+ if (internalTypeRef.default != null) {
314
+ defaults.push({
315
+ type: "unknown",
316
+ value: internalTypeRef.default
317
+ });
318
+ }
319
+ internalTypeRef = internalTypeRef.shape;
320
+ } else if (internalTypeRef.type === "alias") {
321
+ internalTypeRef = internalTypeRef.value;
322
+ } else if (internalTypeRef.type === "id") {
323
+ if (visitedTypeIds.has(internalTypeRef.id)) {
324
+ internalTypeRef = void 0;
325
+ circularReference = true;
326
+ break;
327
+ }
328
+ if (internalTypeRef.default != null) {
329
+ defaults.push({
330
+ type: "typeReferenceId",
331
+ value: internalTypeRef.default
332
+ });
333
+ }
334
+ const typeDef = types[internalTypeRef.id];
335
+ visitedTypeIds.add(internalTypeRef.id);
336
+ internalTypeRef = typeDef?.shape;
337
+ if (typeDef != null) {
338
+ if (typeDef.availability) {
339
+ availabilities.push(typeDef.availability);
340
+ }
341
+ if (typeDef.description != null) {
342
+ descriptions.push(typeDef.description);
343
+ }
344
+ }
345
+ } else {
346
+ break;
347
+ }
348
+ loop++;
349
+ }
350
+ if (internalTypeRef == null) {
351
+ if (circularReference) {
352
+ console.error(
353
+ `Circular reference detected. Falling back to unknown type. types=[${[...visitedTypeIds].join(", ")}]`
354
+ );
355
+ } else {
356
+ console.error(
357
+ `Type reference is invalid. Falling back to unknown type. types=[${[...visitedTypeIds].join(", ")}]`
358
+ );
359
+ }
360
+ }
361
+ const toRet = {
362
+ shape: internalTypeRef ?? { type: "unknown", displayName: void 0 },
363
+ availability: coalesceAvailability(availabilities),
364
+ visitedTypeIds,
365
+ isOptional,
366
+ isNullable,
367
+ default: selectDefaultValue(internalTypeRef, defaults),
368
+ descriptions
369
+ };
370
+ UnwrapReferenceCache.set(typeRef, toRet);
371
+ return toRet;
372
+ }
373
+ function selectDefaultValue(shape, defaults) {
374
+ const defaultValue = defaults.find((d) => {
375
+ if (shape == null) {
376
+ return true;
377
+ } else if (d.type === "typeReferenceId") {
378
+ return visitDiscriminatedUnion_default(d.value)._visit({
379
+ enum: () => shape?.type === "enum"
380
+ });
381
+ } else {
382
+ return true;
383
+ }
384
+ });
385
+ if (defaultValue?.type === "unknown") {
386
+ return defaultValue.value;
387
+ } else if (defaultValue?.type === "typeReferenceId") {
388
+ return defaultValue.value.value;
389
+ } else if (shape?.type === "primitive") {
390
+ return primitiveToDefault(shape.value);
391
+ } else if (shape?.type === "enum") {
392
+ return shape.default;
393
+ } else {
394
+ return void 0;
395
+ }
396
+ }
397
+ var UnwrapObjectTypeCache = /* @__PURE__ */ new WeakMap();
398
+ function unwrapObjectType(object2, types, parentVisitedTypeIds) {
399
+ const cached = UnwrapObjectTypeCache.get(object2);
400
+ if (cached != null) {
401
+ return cached;
402
+ }
403
+ const directProperties = object2.properties;
404
+ const extraProperties = object2.extraProperties;
405
+ const descriptions = [];
406
+ const visitedTypeIds = /* @__PURE__ */ new Set();
407
+ const extendedProperties = object2.extends.flatMap((typeId) => {
408
+ if (parentVisitedTypeIds?.has(typeId)) {
409
+ console.error(`Circular reference detected. Cannot extend type=${typeId}`);
410
+ return [];
411
+ }
412
+ const typeDef = types[typeId];
413
+ visitedTypeIds.add(typeId);
414
+ if (typeDef?.description) {
415
+ descriptions.push(typeDef.description);
416
+ }
417
+ const unwrapped = unwrapReference(typeDef?.shape, types);
418
+ unwrapped?.descriptions.forEach((description) => descriptions.push(description));
419
+ unwrapped?.visitedTypeIds.forEach((typeId2) => visitedTypeIds.add(typeId2));
420
+ if (unwrapped?.shape.type !== "object") {
421
+ console.warn("Object extends non-object", typeId);
422
+ return [];
423
+ }
424
+ const extended = unwrapObjectType(unwrapped.shape, types, visitedTypeIds);
425
+ extended.visitedTypeIds.forEach((typeId2) => visitedTypeIds.add(typeId2));
426
+ const extendedPropsWithAvailability = extended.properties.map((property) => {
427
+ return {
428
+ ...property,
429
+ availability: coalesceAvailability(
430
+ compact([typeDef?.availability, unwrapped.availability, property.availability])
431
+ )
432
+ };
433
+ });
434
+ descriptions.push(...extended.descriptions);
435
+ if (!unwrapped.isOptional) {
436
+ return extendedPropsWithAvailability;
437
+ }
438
+ return extendedPropsWithAvailability.map((property) => {
439
+ const defaultProperty = isPlainObject(unwrapped.default) ? unwrapped.default[property.key] : void 0;
440
+ const valueShape = property.valueShape.type === "alias" && property.valueShape.value.type === "optional" ? {
441
+ ...property.valueShape.value,
442
+ default: defaultProperty ?? property.valueShape.value.default
443
+ } : {
444
+ type: "optional",
445
+ shape: property.valueShape,
446
+ default: defaultProperty
447
+ };
448
+ return {
449
+ ...property,
450
+ valueShape: { type: "alias", value: valueShape }
451
+ };
452
+ });
453
+ });
454
+ if (extendedProperties.length === 0) {
455
+ const properties2 = sortBy(
456
+ [...directProperties],
457
+ [
458
+ (property) => unwrapReference(property.valueShape, types)?.isOptional,
459
+ (property) => AvailabilityOrder.indexOf(property.availability ?? Availability.Stable)
460
+ ]
461
+ );
462
+ const toRet2 = {
463
+ properties: properties2,
464
+ descriptions,
465
+ extraProperties,
466
+ visitedTypeIds
467
+ };
468
+ UnwrapObjectTypeCache.set(object2, toRet2);
469
+ return toRet2;
470
+ }
471
+ const propertyKeys = new Set(object2.properties.map((property) => property.key));
472
+ const seenExtendedKeys = /* @__PURE__ */ new Set();
473
+ const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
474
+ if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
475
+ return false;
476
+ }
477
+ seenExtendedKeys.add(extendedProperty.key);
478
+ return true;
479
+ });
480
+ const properties = sortBy(
481
+ [...directProperties, ...filteredExtendedProperties],
482
+ [
483
+ (property) => unwrapReference(property.valueShape, types)?.isOptional,
484
+ (property) => AvailabilityOrder.indexOf(property.availability ?? Availability.Stable),
485
+ (property) => property.key
486
+ ]
487
+ );
488
+ const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
489
+ UnwrapObjectTypeCache.set(object2, toRet);
490
+ return toRet;
491
+ }
492
+ function unwrapDiscriminatedUnionVariant(union, variant, types) {
493
+ const { properties, descriptions, visitedTypeIds } = unwrapObjectType(variant, types);
494
+ return {
495
+ properties: [
496
+ {
497
+ key: union.discriminant,
498
+ valueShape: {
499
+ type: "alias",
500
+ value: {
501
+ type: "literal",
502
+ value: {
503
+ type: "stringLiteral",
504
+ value: variant.discriminantValue
505
+ }
506
+ }
507
+ },
508
+ propertyAccess: void 0,
509
+ // the description and availability of the discriminant should not be included here
510
+ // because they are already included in the union variant itself
511
+ description: void 0,
512
+ availability: void 0
513
+ },
514
+ ...properties
515
+ ],
516
+ extraProperties: void 0,
517
+ descriptions,
518
+ visitedTypeIds
519
+ };
520
+ }
521
+ function primitiveToDefault(shape) {
522
+ return visitDiscriminatedUnion_default(shape, "type")._visit({
523
+ string: (value) => value.default,
524
+ integer: (value) => value.default,
525
+ double: (value) => value.default,
526
+ uint: () => void 0,
527
+ uint64: () => void 0,
528
+ boolean: (value) => value.default,
529
+ long: (value) => value.default,
530
+ datetime: (datetime) => datetime.default,
531
+ uuid: (uuid) => uuid.default,
532
+ base64: (base64) => base64.default,
533
+ date: (value) => value.default,
534
+ bigInteger: (value) => value.default,
535
+ scalar: (value) => value.default
536
+ });
537
+ }
538
+
539
+ // src/api-definition/url.ts
540
+ import qs from "qs";
541
+ function preprocessQueryParameters(queryParameters, parameterMetadata) {
542
+ if (queryParameters == null) {
543
+ return void 0;
544
+ }
545
+ if (parameterMetadata == null || parameterMetadata.length === 0) {
546
+ return queryParameters;
547
+ }
548
+ const explodeMap = /* @__PURE__ */ new Map();
549
+ for (const param of parameterMetadata) {
550
+ explodeMap.set(param.key, param.explode ?? void 0);
551
+ }
552
+ const result = {};
553
+ for (const [key, value] of Object.entries(queryParameters)) {
554
+ const explode = explodeMap.get(key);
555
+ if (explode === false && Array.isArray(value)) {
556
+ result[key] = value.map((v) => unknownToString(v)).join(",");
557
+ } else {
558
+ result[key] = value;
559
+ }
560
+ }
561
+ return result;
562
+ }
563
+ function buildQueryParams(queryParameters) {
564
+ if (queryParameters == null) {
565
+ return "";
566
+ }
567
+ const filteredParams = Object.entries(queryParameters).reduce((acc, [key, value]) => {
568
+ if (value != null) {
569
+ acc[key] = value;
570
+ }
571
+ return acc;
572
+ }, {});
573
+ if (Object.keys(filteredParams).length === 0) {
574
+ return "";
575
+ }
576
+ const queryString = qs.stringify(filteredParams, {
577
+ encode: false,
578
+ arrayFormat: "repeat",
579
+ skipNulls: true,
580
+ serializeDate: (date) => date.toISOString()
581
+ });
582
+ return queryString ? "?" + queryString : "";
583
+ }
584
+ function buildPath(path = [], pathParameters) {
585
+ return path.map((part) => {
586
+ if (part.type === "pathParameter") {
587
+ const key = part.value;
588
+ const stateValue = unknownToString(pathParameters?.[key]);
589
+ return stateValue.length > 0 ? encodeURIComponent(stateValue) : ":" + key;
590
+ }
591
+ return part.value;
592
+ }).join("");
593
+ }
594
+ function buildRequestUrl({
595
+ baseUrl = "",
596
+ path,
597
+ pathParameters,
598
+ queryParameters
599
+ }) {
600
+ const sanitizedBaseUrl = sanitizeUrl(baseUrl) || "";
601
+ if (sanitizedBaseUrl.endsWith("/")) {
602
+ return sanitizedBaseUrl.slice(0, -1) + buildPath(path, pathParameters) + buildQueryParams(queryParameters);
603
+ }
604
+ return sanitizedBaseUrl + buildPath(path, pathParameters) + buildQueryParams(queryParameters);
605
+ }
606
+ function buildEndpointUrl({
607
+ endpoint,
608
+ pathParameters,
609
+ queryParameters,
610
+ baseUrl
611
+ }) {
612
+ const environmentBaseUrl = baseUrl ?? (endpoint?.environments?.find((env) => env.id === endpoint.defaultEnvironment) ?? endpoint?.environments?.[0])?.baseUrl;
613
+ const sanitizedBaseUrl = sanitizeUrl(environmentBaseUrl);
614
+ const processedQueryParameters = preprocessQueryParameters(queryParameters, endpoint?.queryParameters ?? void 0);
615
+ return buildRequestUrl({
616
+ baseUrl: sanitizedBaseUrl || "",
617
+ path: endpoint?.path,
618
+ pathParameters,
619
+ queryParameters: processedQueryParameters
620
+ });
621
+ }
622
+ export {
623
+ STATUS_CODE_MESSAGES,
624
+ buildEndpointUrl,
625
+ buildRequestUrl,
626
+ getMessageForStatus,
627
+ preprocessQueryParameters,
628
+ toColonEndpointPathLiteral,
629
+ toCurlyBraceEndpointPathLiteral,
630
+ unwrapDiscriminatedUnionVariant,
631
+ unwrapObjectType,
632
+ unwrapReference
633
+ };
634
+ //# sourceMappingURL=index.mjs.map