@fern-api/fern-api-dev 5.20.1-11-g1bfbdd6d661 → 5.20.1-2-gf9ca0af106a
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/cli.cjs +27 -126
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -519482,8 +519482,7 @@ var StreamFormat2 = schemas_exports.enum_(["sse", "json"]);
|
|
|
519482
519482
|
var HttpResponseStreamSchemaDetailed = schemas_exports.object({
|
|
519483
519483
|
type: schemas_exports.string(),
|
|
519484
519484
|
format: StreamFormat2.optional(),
|
|
519485
|
-
terminator: schemas_exports.string().optional()
|
|
519486
|
-
resumable: schemas_exports.boolean().optional()
|
|
519485
|
+
terminator: schemas_exports.string().optional()
|
|
519487
519486
|
}).extend(WithDocsSchema);
|
|
519488
519487
|
|
|
519489
519488
|
// ../fern-definition/schema/lib/schemas/serialization/resources/service/types/HttpResponseStreamSchema.js
|
|
@@ -529683,8 +529682,7 @@ var JsonStreamChunk = schemas_exports3.objectWithoutOptionalProperties({
|
|
|
529683
529682
|
// ../../ir-sdk/lib/sdk/serialization/resources/http/types/SseStreamChunk.js
|
|
529684
529683
|
var SseStreamChunk = schemas_exports3.objectWithoutOptionalProperties({
|
|
529685
529684
|
payload: schemas_exports3.lazy(() => TypeReference3),
|
|
529686
|
-
terminator: schemas_exports3.string().optional()
|
|
529687
|
-
resumable: schemas_exports3.boolean().optional()
|
|
529685
|
+
terminator: schemas_exports3.string().optional()
|
|
529688
529686
|
}).extend(WithDocs).extend(WithV2Examples);
|
|
529689
529687
|
|
|
529690
529688
|
// ../../ir-sdk/lib/sdk/serialization/resources/http/types/TextStreamChunk.js
|
|
@@ -560871,8 +560869,7 @@ var FileResponse = schemas_exports9.objectWithoutOptionalProperties({}).extend(W
|
|
|
560871
560869
|
var JsonResponse3 = schemas_exports9.objectWithoutOptionalProperties({
|
|
560872
560870
|
schema: schemas_exports9.lazy(() => Schema2),
|
|
560873
560871
|
responseProperty: schemas_exports9.string().optional(),
|
|
560874
|
-
terminator: schemas_exports9.string().optional()
|
|
560875
|
-
resumable: schemas_exports9.boolean().optional()
|
|
560872
|
+
terminator: schemas_exports9.string().optional()
|
|
560876
560873
|
}).extend(WithDescription).extend(WithSource).extend(WithStatusCode);
|
|
560877
560874
|
|
|
560878
560875
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/TextResponse.js
|
|
@@ -561571,8 +561568,7 @@ var JsonResponseWithExample = schemas_exports9.objectWithoutOptionalProperties({
|
|
|
561571
561568
|
schema: schemas_exports9.lazy(() => SchemaWithExample2),
|
|
561572
561569
|
responseProperty: schemas_exports9.string().optional(),
|
|
561573
561570
|
terminator: schemas_exports9.string().optional(),
|
|
561574
|
-
fullExamples: schemas_exports9.list(NamedFullExample).optional()
|
|
561575
|
-
resumable: schemas_exports9.boolean().optional()
|
|
561571
|
+
fullExamples: schemas_exports9.list(NamedFullExample).optional()
|
|
561576
561572
|
}).extend(WithDescription).extend(WithSource).extend(WithStatusCode);
|
|
561577
561573
|
|
|
561578
561574
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/parseIr/types/ResponseWithExample.js
|
|
@@ -565898,8 +565894,7 @@ function buildEndpoint({ endpoint: endpoint3, declarationFile, context: context3
|
|
|
565898
565894
|
docs: jsonResponse.description ?? void 0,
|
|
565899
565895
|
type: getTypeFromTypeReference(responseTypeReference),
|
|
565900
565896
|
format: "sse",
|
|
565901
|
-
terminator: jsonResponse.terminator ?? void 0
|
|
565902
|
-
resumable: jsonResponse.resumable ?? void 0
|
|
565897
|
+
terminator: jsonResponse.terminator ?? void 0
|
|
565903
565898
|
};
|
|
565904
565899
|
},
|
|
565905
565900
|
file: (fileResponse) => {
|
|
@@ -568200,8 +568195,7 @@ var XFernStreaming = {
|
|
|
568200
568195
|
properties: {
|
|
568201
568196
|
"stream-condition": { type: "string" },
|
|
568202
568197
|
response: "Schema",
|
|
568203
|
-
"response-stream": "Schema"
|
|
568204
|
-
resumable: { type: "boolean" }
|
|
568198
|
+
"response-stream": "Schema"
|
|
568205
568199
|
},
|
|
568206
568200
|
required: ["stream-condition", "response", "response-stream"],
|
|
568207
568201
|
extensionsPrefix: "x-"
|
|
@@ -568347,22 +568341,6 @@ var FernOpenAPIExtension = {
|
|
|
568347
568341
|
* $ref: ./path/to/response/type.yaml
|
|
568348
568342
|
* response-stream:
|
|
568349
568343
|
* $ref: ./path/to/response-stream/type.yaml
|
|
568350
|
-
*
|
|
568351
|
-
* For SSE endpoints, `resumable: true` opts the endpoint into
|
|
568352
|
-
* client-side reconnection using `Last-Event-ID` / `retry:`. The
|
|
568353
|
-
* default is `false`. The flag is inheritable: setting
|
|
568354
|
-
* `x-fern-streaming.resumable: true` at the document level applies
|
|
568355
|
-
* to all SSE endpoints unless an operation overrides it explicitly.
|
|
568356
|
-
*
|
|
568357
|
-
* Example usage:
|
|
568358
|
-
* x-fern-streaming:
|
|
568359
|
-
* resumable: true
|
|
568360
|
-
*
|
|
568361
|
-
* paths:
|
|
568362
|
-
* /path/to/my/endpoint:
|
|
568363
|
-
* x-fern-streaming:
|
|
568364
|
-
* format: sse
|
|
568365
|
-
* resumable: false # overrides the document default
|
|
568366
568344
|
*/
|
|
568367
568345
|
STREAMING: "x-fern-streaming",
|
|
568368
568346
|
/**
|
|
@@ -576180,7 +576158,7 @@ function getFernAsyncExtension(operation) {
|
|
|
576180
576158
|
|
|
576181
576159
|
// ../api-importers/openapi/openapi-ir-parser/lib/openapi/v3/extensions/getFernStreamingExtension.js
|
|
576182
576160
|
var REQUEST_PREFIX = "$request.";
|
|
576183
|
-
function getFernStreamingExtension(
|
|
576161
|
+
function getFernStreamingExtension(operation) {
|
|
576184
576162
|
const streaming = getExtension(operation, FernOpenAPIExtension.STREAMING);
|
|
576185
576163
|
if (streaming == null) {
|
|
576186
576164
|
return void 0;
|
|
@@ -576189,44 +576167,28 @@ function getFernStreamingExtension(document4, operation) {
|
|
|
576189
576167
|
return streaming ? {
|
|
576190
576168
|
type: "stream",
|
|
576191
576169
|
format: "json",
|
|
576192
|
-
terminator: void 0
|
|
576193
|
-
resumable: false
|
|
576170
|
+
terminator: void 0
|
|
576194
576171
|
} : void 0;
|
|
576195
576172
|
}
|
|
576196
|
-
const resumable = resolveResumable(document4, streaming);
|
|
576197
576173
|
if (streaming["stream-condition"] == null && streaming.format != null) {
|
|
576198
576174
|
return {
|
|
576199
576175
|
type: "stream",
|
|
576200
576176
|
format: streaming.format,
|
|
576201
|
-
terminator: streaming.terminator
|
|
576202
|
-
resumable
|
|
576177
|
+
terminator: streaming.terminator
|
|
576203
576178
|
};
|
|
576204
576179
|
}
|
|
576205
576180
|
return {
|
|
576206
576181
|
type: "streamCondition",
|
|
576207
576182
|
format: streaming.format ?? "json",
|
|
576183
|
+
// Default to "json"
|
|
576208
576184
|
terminator: streaming.terminator,
|
|
576209
576185
|
streamDescription: streaming["stream-description"],
|
|
576210
576186
|
streamConditionProperty: maybeTrimRequestPrefix(streaming["stream-condition"]),
|
|
576211
576187
|
streamRequestName: streaming["stream-request-name"],
|
|
576212
576188
|
responseStream: streaming["response-stream"],
|
|
576213
|
-
response: streaming.response
|
|
576214
|
-
resumable
|
|
576189
|
+
response: streaming.response
|
|
576215
576190
|
};
|
|
576216
576191
|
}
|
|
576217
|
-
function resolveResumable(document4, streaming) {
|
|
576218
|
-
if (typeof streaming.resumable === "boolean") {
|
|
576219
|
-
return streaming.resumable;
|
|
576220
|
-
}
|
|
576221
|
-
return getDocumentLevelResumable(document4) ?? false;
|
|
576222
|
-
}
|
|
576223
|
-
function getDocumentLevelResumable(document4) {
|
|
576224
|
-
const docStreaming = getExtension(document4, FernOpenAPIExtension.STREAMING);
|
|
576225
|
-
if (docStreaming == null || typeof docStreaming === "boolean") {
|
|
576226
|
-
return void 0;
|
|
576227
|
-
}
|
|
576228
|
-
return typeof docStreaming.resumable === "boolean" ? docStreaming.resumable : void 0;
|
|
576229
|
-
}
|
|
576230
576192
|
function maybeTrimRequestPrefix(streamCondition) {
|
|
576231
576193
|
if (streamCondition.startsWith(REQUEST_PREFIX)) {
|
|
576232
576194
|
return streamCondition.slice(REQUEST_PREFIX.length);
|
|
@@ -577591,7 +577553,7 @@ var ERROR_NAMES = new Set(Object.values(ERROR_NAMES_BY_STATUS_CODE));
|
|
|
577591
577553
|
|
|
577592
577554
|
// ../api-importers/openapi/openapi-ir-parser/lib/openapi/v3/converters/endpoint/convertResponse.js
|
|
577593
577555
|
var SUCCESSFUL_STATUS_CODES = ["200", "201", "202", "204"];
|
|
577594
|
-
function convertResponse({ operationContext, responses, context: context3, responseBreadcrumbs, responseStatusCode, streamFormat, streamTerminator,
|
|
577556
|
+
function convertResponse({ operationContext, responses, context: context3, responseBreadcrumbs, responseStatusCode, streamFormat, streamTerminator, source: source2 }) {
|
|
577595
577557
|
if (responses == null) {
|
|
577596
577558
|
return { value: void 0, errors: {} };
|
|
577597
577559
|
}
|
|
@@ -577614,7 +577576,6 @@ function convertResponse({ operationContext, responses, context: context3, respo
|
|
|
577614
577576
|
responseBreadcrumbs,
|
|
577615
577577
|
streamFormat,
|
|
577616
577578
|
streamTerminator,
|
|
577617
|
-
streamResumable,
|
|
577618
577579
|
source: source2,
|
|
577619
577580
|
namespace: context3.namespace,
|
|
577620
577581
|
statusCode: statusCodeNum
|
|
@@ -577662,7 +577623,6 @@ function convertResponse({ operationContext, responses, context: context3, respo
|
|
|
577662
577623
|
responseBreadcrumbs,
|
|
577663
577624
|
streamFormat,
|
|
577664
577625
|
streamTerminator,
|
|
577665
|
-
streamResumable,
|
|
577666
577626
|
source: source2,
|
|
577667
577627
|
namespace: context3.namespace
|
|
577668
577628
|
});
|
|
@@ -577697,7 +577657,7 @@ function convertResponse({ operationContext, responses, context: context3, respo
|
|
|
577697
577657
|
errors: errors4
|
|
577698
577658
|
};
|
|
577699
577659
|
}
|
|
577700
|
-
function convertResolvedResponse({ operationContext, streamFormat, streamTerminator,
|
|
577660
|
+
function convertResolvedResponse({ operationContext, streamFormat, streamTerminator, response, context: context3, responseBreadcrumbs, source: source2, namespace, statusCode }) {
|
|
577701
577661
|
const resolvedResponse = isReferenceObject(response) ? context3.resolveResponseReference(response) : response;
|
|
577702
577662
|
if (resolvedResponse.content != null) {
|
|
577703
577663
|
const binaryContent = Object.entries(resolvedResponse.content).find(([_7, mediaObject]) => {
|
|
@@ -577724,7 +577684,6 @@ function convertResolvedResponse({ operationContext, streamFormat, streamTermina
|
|
|
577724
577684
|
description: resolvedResponse.description,
|
|
577725
577685
|
responseProperty: getExtension(operationContext.operation, FernOpenAPIExtension.RESPONSE_PROPERTY),
|
|
577726
577686
|
terminator: streamTerminator,
|
|
577727
|
-
resumable: void 0,
|
|
577728
577687
|
fullExamples: textEventStreamObject.examples,
|
|
577729
577688
|
schema: convertSchema2(textEventStreamObject.schema, false, false, context3, responseBreadcrumbs, source2, namespace),
|
|
577730
577689
|
source: source2
|
|
@@ -577734,7 +577693,6 @@ function convertResolvedResponse({ operationContext, streamFormat, streamTermina
|
|
|
577734
577693
|
description: resolvedResponse.description,
|
|
577735
577694
|
responseProperty: void 0,
|
|
577736
577695
|
terminator: streamTerminator,
|
|
577737
|
-
resumable: streamResumable,
|
|
577738
577696
|
fullExamples: textEventStreamObject.examples,
|
|
577739
577697
|
schema: convertSchema2(textEventStreamObject.schema, false, false, context3, responseBreadcrumbs, source2, namespace),
|
|
577740
577698
|
source: source2,
|
|
@@ -577754,7 +577712,6 @@ function convertResolvedResponse({ operationContext, streamFormat, streamTermina
|
|
|
577754
577712
|
description: resolvedResponse.description,
|
|
577755
577713
|
responseProperty: void 0,
|
|
577756
577714
|
terminator: streamTerminator,
|
|
577757
|
-
resumable: void 0,
|
|
577758
577715
|
fullExamples: jsonMediaObject.examples,
|
|
577759
577716
|
schema: convertSchema2(jsonMediaObject.schema, false, false, context3, responseBreadcrumbs, source2, namespace),
|
|
577760
577717
|
source: source2,
|
|
@@ -577765,7 +577722,6 @@ function convertResolvedResponse({ operationContext, streamFormat, streamTermina
|
|
|
577765
577722
|
description: resolvedResponse.description,
|
|
577766
577723
|
responseProperty: void 0,
|
|
577767
577724
|
terminator: streamTerminator,
|
|
577768
|
-
resumable: streamResumable,
|
|
577769
577725
|
fullExamples: jsonMediaObject.examples,
|
|
577770
577726
|
schema: convertSchema2(jsonMediaObject.schema, false, false, context3, responseBreadcrumbs, source2, namespace),
|
|
577771
577727
|
source: source2,
|
|
@@ -577778,7 +577734,6 @@ function convertResolvedResponse({ operationContext, streamFormat, streamTermina
|
|
|
577778
577734
|
schema: convertSchema2(jsonMediaObject.schema, false, false, context3, responseBreadcrumbs, source2, namespace),
|
|
577779
577735
|
responseProperty: getExtension(operationContext.operation, FernOpenAPIExtension.RESPONSE_PROPERTY),
|
|
577780
577736
|
terminator: void 0,
|
|
577781
|
-
resumable: void 0,
|
|
577782
577737
|
fullExamples: jsonMediaObject.examples,
|
|
577783
577738
|
source: source2,
|
|
577784
577739
|
statusCode
|
|
@@ -577837,7 +577792,7 @@ function markErrorSchemas({ responses, context: context3, source: source2, names
|
|
|
577837
577792
|
}
|
|
577838
577793
|
|
|
577839
577794
|
// ../api-importers/openapi/openapi-ir-parser/lib/openapi/v3/converters/operation/convertHttpOperation.js
|
|
577840
|
-
function convertHttpOperation({ operationContext, context: context3, responseStatusCode, suffix, streamFormat, streamTerminator,
|
|
577795
|
+
function convertHttpOperation({ operationContext, context: context3, responseStatusCode, suffix, streamFormat, streamTerminator, source: source2, streamRequestNameOverride }) {
|
|
577841
577796
|
const { document: document4, operation, path: path107, method: method8, baseBreadcrumbs, pathItem } = operationContext;
|
|
577842
577797
|
const idempotent = getExtension(operation, FernOpenAPIExtension.IDEMPOTENT);
|
|
577843
577798
|
const requestNameOverride = getExtension(operation, [
|
|
@@ -578049,7 +578004,6 @@ function convertHttpOperation({ operationContext, context: context3, responseSta
|
|
|
578049
578004
|
operationContext,
|
|
578050
578005
|
streamFormat,
|
|
578051
578006
|
streamTerminator,
|
|
578052
|
-
streamResumable,
|
|
578053
578007
|
responses: operation.responses,
|
|
578054
578008
|
context: context3,
|
|
578055
578009
|
responseBreadcrumbs,
|
|
@@ -578235,7 +578189,6 @@ function convertStreamingOperation({ operationContext, context: context3, stream
|
|
|
578235
578189
|
context: context3,
|
|
578236
578190
|
streamFormat: streamingExtension.format,
|
|
578237
578191
|
streamTerminator: streamingExtension.terminator,
|
|
578238
|
-
streamResumable: streamingExtension.resumable,
|
|
578239
578192
|
source: context3.source
|
|
578240
578193
|
});
|
|
578241
578194
|
return {
|
|
@@ -578285,7 +578238,6 @@ function convertStreamingOperation({ operationContext, context: context3, stream
|
|
|
578285
578238
|
context: context3,
|
|
578286
578239
|
streamFormat: streamingExtension.format,
|
|
578287
578240
|
streamTerminator: streamingExtension.terminator,
|
|
578288
|
-
streamResumable: streamingExtension.resumable,
|
|
578289
578241
|
suffix: STREAM_SUFFIX,
|
|
578290
578242
|
source: context3.source,
|
|
578291
578243
|
streamRequestNameOverride: autoStreamRequestName
|
|
@@ -578764,16 +578716,11 @@ function convertOperation({ context: context3, pathItemContext, operation, conve
|
|
|
578764
578716
|
});
|
|
578765
578717
|
return { type: "webhook", value: webhooks2 };
|
|
578766
578718
|
}
|
|
578767
|
-
let streamingExtension = getFernStreamingExtension(
|
|
578719
|
+
let streamingExtension = getFernStreamingExtension(operation);
|
|
578768
578720
|
if (streamingExtension == null) {
|
|
578769
578721
|
const hasEventStreamResponse = checkOperationForTextEventStream({ operation, context: context3 });
|
|
578770
578722
|
if (hasEventStreamResponse) {
|
|
578771
|
-
streamingExtension = {
|
|
578772
|
-
type: "stream",
|
|
578773
|
-
format: "sse",
|
|
578774
|
-
terminator: void 0,
|
|
578775
|
-
resumable: getDocumentLevelResumable(context3.document) ?? false
|
|
578776
|
-
};
|
|
578723
|
+
streamingExtension = { type: "stream", format: "sse", terminator: void 0 };
|
|
578777
578724
|
}
|
|
578778
578725
|
}
|
|
578779
578726
|
if (streamingExtension != null) {
|
|
@@ -600175,7 +600122,6 @@ function convertStreamHttpResponseBody({ endpoint: endpoint3, file: file4, typeR
|
|
|
600175
600122
|
docs: docs2,
|
|
600176
600123
|
payload: file4.parseTypeReference(typeReference2),
|
|
600177
600124
|
terminator: typeof responseStream !== "string" ? responseStream.terminator : void 0,
|
|
600178
|
-
resumable: typeof responseStream !== "string" ? responseStream.resumable : void 0,
|
|
600179
600125
|
v2Examples: void 0
|
|
600180
600126
|
});
|
|
600181
600127
|
} else {
|
|
@@ -602939,7 +602885,6 @@ function convertWebhookStreamResponseBody({ responseStream, file: file4, typeRes
|
|
|
602939
602885
|
docs: docs2,
|
|
602940
602886
|
payload: file4.parseTypeReference(typeReference2),
|
|
602941
602887
|
terminator: typeof responseStream !== "string" ? responseStream.terminator : void 0,
|
|
602942
|
-
resumable: typeof responseStream !== "string" ? responseStream.resumable : void 0,
|
|
602943
602888
|
v2Examples: void 0
|
|
602944
602889
|
});
|
|
602945
602890
|
} else {
|
|
@@ -632320,16 +632265,6 @@ var definitions2 = {
|
|
|
632320
632265
|
type: "null"
|
|
632321
632266
|
}
|
|
632322
632267
|
]
|
|
632323
|
-
},
|
|
632324
|
-
resumable: {
|
|
632325
|
-
oneOf: [
|
|
632326
|
-
{
|
|
632327
|
-
type: "boolean"
|
|
632328
|
-
},
|
|
632329
|
-
{
|
|
632330
|
-
type: "null"
|
|
632331
|
-
}
|
|
632332
|
-
]
|
|
632333
632268
|
}
|
|
632334
632269
|
},
|
|
632335
632270
|
required: [
|
|
@@ -636564,16 +636499,6 @@ var definitions3 = {
|
|
|
636564
636499
|
type: "null"
|
|
636565
636500
|
}
|
|
636566
636501
|
]
|
|
636567
|
-
},
|
|
636568
|
-
resumable: {
|
|
636569
|
-
oneOf: [
|
|
636570
|
-
{
|
|
636571
|
-
type: "boolean"
|
|
636572
|
-
},
|
|
636573
|
-
{
|
|
636574
|
-
type: "null"
|
|
636575
|
-
}
|
|
636576
|
-
]
|
|
636577
636502
|
}
|
|
636578
636503
|
},
|
|
636579
636504
|
required: [
|
|
@@ -648204,17 +648129,14 @@ var StreamingExtensionObjectSchema = external_exports2.object({
|
|
|
648204
648129
|
"stream-request-name": external_exports2.string().optional(),
|
|
648205
648130
|
"response-stream": external_exports2.any(),
|
|
648206
648131
|
response: external_exports2.any(),
|
|
648207
|
-
terminator: external_exports2.string().optional()
|
|
648208
|
-
resumable: external_exports2.boolean().optional()
|
|
648132
|
+
terminator: external_exports2.string().optional()
|
|
648209
648133
|
});
|
|
648210
648134
|
var StreamingExtensionSchema = external_exports2.union([external_exports2.boolean(), StreamingExtensionObjectSchema]);
|
|
648211
648135
|
var FernStreamingExtension = class extends AbstractExtension {
|
|
648212
|
-
document;
|
|
648213
648136
|
operation;
|
|
648214
648137
|
key = "x-fern-streaming";
|
|
648215
|
-
constructor({ breadcrumbs,
|
|
648138
|
+
constructor({ breadcrumbs, operation, context: context3 }) {
|
|
648216
648139
|
super({ breadcrumbs, context: context3 });
|
|
648217
|
-
this.document = document4;
|
|
648218
648140
|
this.operation = operation;
|
|
648219
648141
|
}
|
|
648220
648142
|
convert() {
|
|
@@ -648231,11 +648153,10 @@ var FernStreamingExtension = class extends AbstractExtension {
|
|
|
648231
648153
|
return void 0;
|
|
648232
648154
|
}
|
|
648233
648155
|
if (typeof result.data === "boolean") {
|
|
648234
|
-
return result.data ? { type: "stream", format: "json", terminator: void 0
|
|
648156
|
+
return result.data ? { type: "stream", format: "json", terminator: void 0 } : void 0;
|
|
648235
648157
|
}
|
|
648236
|
-
const resumable = result.data.resumable ?? getDocumentLevelResumable2(this.document) ?? false;
|
|
648237
648158
|
if (result.data["stream-condition"] == null && result.data.format != null) {
|
|
648238
|
-
return { type: "stream", format: result.data.format, terminator: result.data.terminator
|
|
648159
|
+
return { type: "stream", format: result.data.format, terminator: result.data.terminator };
|
|
648239
648160
|
}
|
|
648240
648161
|
if (result.data["stream-condition"] == null) {
|
|
648241
648162
|
this.context.errorCollector.collect({
|
|
@@ -648252,19 +648173,10 @@ var FernStreamingExtension = class extends AbstractExtension {
|
|
|
648252
648173
|
streamConditionProperty: AbstractConverterContext.maybeTrimPrefix(result.data["stream-condition"], REQUEST_PREFIX4),
|
|
648253
648174
|
streamRequestName: result.data["stream-request-name"],
|
|
648254
648175
|
responseStream: result.data["response-stream"],
|
|
648255
|
-
response: result.data.response
|
|
648256
|
-
resumable
|
|
648176
|
+
response: result.data.response
|
|
648257
648177
|
};
|
|
648258
648178
|
}
|
|
648259
648179
|
};
|
|
648260
|
-
function getDocumentLevelResumable2(document4) {
|
|
648261
|
-
const docStreaming = document4["x-fern-streaming"];
|
|
648262
|
-
if (docStreaming == null || typeof docStreaming === "boolean") {
|
|
648263
|
-
return void 0;
|
|
648264
|
-
}
|
|
648265
|
-
const resumable = docStreaming.resumable;
|
|
648266
|
-
return typeof resumable === "boolean" ? resumable : void 0;
|
|
648267
|
-
}
|
|
648268
648180
|
|
|
648269
648181
|
// ../api-importers/openapi-to-ir/lib/extensions/x-fern-webhook.js
|
|
648270
648182
|
var FernWebhookExtension = class extends AbstractExtension {
|
|
@@ -648691,7 +648603,6 @@ var ResponseBodyConverter = class extends converters_exports.AbstractConverters.
|
|
|
648691
648603
|
docs: this.responseBody.description,
|
|
648692
648604
|
payload: convertedSchema.type,
|
|
648693
648605
|
terminator: this.streamingExtension?.terminator,
|
|
648694
|
-
resumable: this.streamingExtension?.resumable,
|
|
648695
648606
|
v2Examples: this.convertMediaTypeObjectExamples({
|
|
648696
648607
|
mediaTypeObject,
|
|
648697
648608
|
generateOptionalProperties: true,
|
|
@@ -649986,7 +649897,6 @@ var PathConverter = class extends AbstractConverter {
|
|
|
649986
649897
|
}
|
|
649987
649898
|
const streamingExtensionConverter = new FernStreamingExtension({
|
|
649988
649899
|
breadcrumbs: operationBreadcrumbs,
|
|
649989
|
-
document: this.context.spec,
|
|
649990
649900
|
operation,
|
|
649991
649901
|
context: this.context
|
|
649992
649902
|
});
|
|
@@ -649994,12 +649904,7 @@ var PathConverter = class extends AbstractConverter {
|
|
|
649994
649904
|
if (streamingExtension == null) {
|
|
649995
649905
|
const hasTextEventStream2 = this.operationHasTextEventStreamResponse(operation);
|
|
649996
649906
|
if (hasTextEventStream2) {
|
|
649997
|
-
streamingExtension = {
|
|
649998
|
-
type: "stream",
|
|
649999
|
-
format: "sse",
|
|
650000
|
-
terminator: void 0,
|
|
650001
|
-
resumable: getDocumentLevelResumable2(this.context.spec) ?? false
|
|
650002
|
-
};
|
|
649907
|
+
streamingExtension = { type: "stream", format: "sse", terminator: void 0 };
|
|
650003
649908
|
}
|
|
650004
649909
|
}
|
|
650005
649910
|
const convertedEndpoint = this.tryParseAsHttpEndpoint({
|
|
@@ -661252,7 +661157,7 @@ var AccessTokenPosthogManager = class {
|
|
|
661252
661157
|
properties: {
|
|
661253
661158
|
...event,
|
|
661254
661159
|
...event.properties,
|
|
661255
|
-
version: "5.20.1-
|
|
661160
|
+
version: "5.20.1-2-gf9ca0af106a",
|
|
661256
661161
|
usingAccessToken: true,
|
|
661257
661162
|
...getRunIdProperties()
|
|
661258
661163
|
}
|
|
@@ -661307,7 +661212,7 @@ var UserPosthogManager = class {
|
|
|
661307
661212
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
661308
661213
|
event: "CLI",
|
|
661309
661214
|
properties: {
|
|
661310
|
-
version: "5.20.1-
|
|
661215
|
+
version: "5.20.1-2-gf9ca0af106a",
|
|
661311
661216
|
...event,
|
|
661312
661217
|
...event.properties,
|
|
661313
661218
|
usingAccessToken: false,
|
|
@@ -852580,7 +852485,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
852580
852485
|
var LOGS_FOLDER_NAME = "logs";
|
|
852581
852486
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
852582
852487
|
function getCliSource() {
|
|
852583
|
-
const version7 = "5.20.1-
|
|
852488
|
+
const version7 = "5.20.1-2-gf9ca0af106a";
|
|
852584
852489
|
return `cli@${version7}`;
|
|
852585
852490
|
}
|
|
852586
852491
|
var DebugLogger = class {
|
|
@@ -865389,7 +865294,7 @@ var LegacyDocsPublisher = class {
|
|
|
865389
865294
|
previewId,
|
|
865390
865295
|
disableTemplates: void 0,
|
|
865391
865296
|
skipUpload,
|
|
865392
|
-
cliVersion: "5.20.1-
|
|
865297
|
+
cliVersion: "5.20.1-2-gf9ca0af106a",
|
|
865393
865298
|
loginCommand: "fern auth login"
|
|
865394
865299
|
});
|
|
865395
865300
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -884868,8 +884773,6 @@ var Generation = class {
|
|
|
884868
884773
|
extraDependencies: () => this.customConfig["extra-dependencies"] ?? {},
|
|
884869
884774
|
/** When true, omits Fern platform headers (X-Fern-Language, SDK name/version, User-Agent) from generated SDK requests. Default: false. */
|
|
884870
884775
|
omitFernHeaders: () => this.customConfig["omit-fern-headers"] ?? false,
|
|
884871
|
-
/** When true, falls back to `<NuGetPackageId>/<version>` for the `User-Agent` header when the IR doesn't supply one. Default: false. */
|
|
884872
|
-
userAgentNameFromPackage: () => this.customConfig["user-agent-name-from-package"] ?? false,
|
|
884873
884776
|
/** When true, moves auth params and IR headers into ClientOptions so the constructor takes only named arguments. Default: false. */
|
|
884874
884777
|
unifiedClientOptions: () => this.customConfig["unified-client-options"] ?? false,
|
|
884875
884778
|
/** When true, uses PascalCase for environment names (e.g., "Production" instead of "production"). Default: true. */
|
|
@@ -884882,8 +884785,6 @@ var Generation = class {
|
|
|
884882
884785
|
maxRetries: () => this.customConfig.maxRetries,
|
|
884883
884786
|
/** Controls which HTTP status codes trigger automatic retries. Default: "legacy". */
|
|
884884
884787
|
retryStatusCodes: () => this.customConfig.retryStatusCodes ?? "legacy",
|
|
884885
|
-
/** Override the default request timeout (in seconds) for the generated SDK client. `"infinity"` disables the default timeout. Default: 30. */
|
|
884886
|
-
defaultTimeoutInSeconds: () => this.customConfig["default-timeout-in-seconds"],
|
|
884887
884788
|
/**
|
|
884888
884789
|
* Output path configuration for generated files.
|
|
884889
884790
|
* Returns normalized paths for library, test, solution, and other files.
|
|
@@ -940017,7 +939918,7 @@ var CliContext = class _CliContext {
|
|
|
940017
939918
|
if (false) {
|
|
940018
939919
|
this.logger.error("CLI_VERSION is not defined");
|
|
940019
939920
|
}
|
|
940020
|
-
return "5.20.1-
|
|
939921
|
+
return "5.20.1-2-gf9ca0af106a";
|
|
940021
939922
|
}
|
|
940022
939923
|
getCliName() {
|
|
940023
939924
|
if (false) {
|
package/package.json
CHANGED