@fern-api/fern-api-dev 5.23.3-1867-gcc2f39a48e9 → 5.23.3-1869-g187ebe35a50
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 +111 -28
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -702967,7 +702967,7 @@ var AccessTokenPosthogManager = class {
|
|
|
702967
702967
|
properties: {
|
|
702968
702968
|
...event,
|
|
702969
702969
|
...event.properties,
|
|
702970
|
-
version: "5.23.3-
|
|
702970
|
+
version: "5.23.3-1869-g187ebe35a50",
|
|
702971
702971
|
usingAccessToken: true,
|
|
702972
702972
|
...getRunIdProperties()
|
|
702973
702973
|
}
|
|
@@ -703033,7 +703033,7 @@ var UserPosthogManager = class {
|
|
|
703033
703033
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
703034
703034
|
event: "CLI",
|
|
703035
703035
|
properties: {
|
|
703036
|
-
version: "5.23.3-
|
|
703036
|
+
version: "5.23.3-1869-g187ebe35a50",
|
|
703037
703037
|
...event,
|
|
703038
703038
|
...event.properties,
|
|
703039
703039
|
usingAccessToken: false,
|
|
@@ -884199,7 +884199,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
884199
884199
|
var LOGS_FOLDER_NAME = "logs";
|
|
884200
884200
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
884201
884201
|
function getCliSource() {
|
|
884202
|
-
const version7 = "5.23.3-
|
|
884202
|
+
const version7 = "5.23.3-1869-g187ebe35a50";
|
|
884203
884203
|
return `cli@${version7}`;
|
|
884204
884204
|
}
|
|
884205
884205
|
var DebugLogger = class {
|
|
@@ -909515,7 +909515,7 @@ var LegacyDocsPublisher = class {
|
|
|
909515
909515
|
previewId,
|
|
909516
909516
|
disableTemplates: void 0,
|
|
909517
909517
|
skipUpload,
|
|
909518
|
-
cliVersion: "5.23.3-
|
|
909518
|
+
cliVersion: "5.23.3-1869-g187ebe35a50",
|
|
909519
909519
|
loginCommand: "fern auth login"
|
|
909520
909520
|
});
|
|
909521
909521
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -960252,6 +960252,7 @@ var TypescriptCustomConfigSchema = external_exports2.strictObject({
|
|
|
960252
960252
|
useDefaultRequestParameterValues: external_exports2.optional(external_exports2.boolean()),
|
|
960253
960253
|
packageManager: external_exports2.optional(external_exports2.enum(["pnpm", "yarn"])),
|
|
960254
960254
|
flattenRequestParameters: external_exports2.optional(external_exports2.boolean()),
|
|
960255
|
+
respectOptionalRequestBody: external_exports2.optional(external_exports2.boolean()),
|
|
960255
960256
|
exportAllRequestsAtRoot: external_exports2.optional(external_exports2.boolean()),
|
|
960256
960257
|
customReadmeSections: external_exports2.optional(external_exports2.array(CustomReadmeSectionSchema2)),
|
|
960257
960258
|
testFramework: external_exports2.optional(external_exports2.enum(["jest", "vitest"])),
|
|
@@ -961190,18 +961191,39 @@ function resolveNaming({ namespaceExport, naming }) {
|
|
|
961190
961191
|
// ../../../generators/typescript-v2/dynamic-snippets/lib/context/DynamicTypeLiteralMapper.js
|
|
961191
961192
|
init_lib4();
|
|
961192
961193
|
|
|
961193
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961194
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/index.mjs
|
|
961194
961195
|
var api_exports23 = {};
|
|
961195
961196
|
__export(api_exports23, {
|
|
961197
|
+
AvailabilityStatus: () => AvailabilityStatus30,
|
|
961198
|
+
GlobalParameterApplyMode: () => GlobalParameterApplyMode4,
|
|
961199
|
+
GlobalParameterLocation: () => GlobalParameterLocation4,
|
|
961200
|
+
PrimitiveTypeV1: () => PrimitiveTypeV146,
|
|
961196
961201
|
commons: () => commons_exports60,
|
|
961197
961202
|
dynamic: () => dynamic_exports30,
|
|
961198
|
-
generatorExec: () => generatorExec_exports30
|
|
961203
|
+
generatorExec: () => generatorExec_exports30,
|
|
961204
|
+
globalParameters: () => globalParameters_exports6,
|
|
961205
|
+
types: () => types_exports69
|
|
961199
961206
|
});
|
|
961200
961207
|
|
|
961201
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961208
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/commons/index.mjs
|
|
961202
961209
|
var commons_exports60 = {};
|
|
961210
|
+
__export(commons_exports60, {
|
|
961211
|
+
AvailabilityStatus: () => AvailabilityStatus30
|
|
961212
|
+
});
|
|
961203
961213
|
|
|
961204
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961214
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/commons/types/AvailabilityStatus.mjs
|
|
961215
|
+
var AvailabilityStatus30 = {
|
|
961216
|
+
InDevelopment: "IN_DEVELOPMENT",
|
|
961217
|
+
PreRelease: "PRE_RELEASE",
|
|
961218
|
+
GeneralAvailability: "GENERAL_AVAILABILITY",
|
|
961219
|
+
Deprecated: "DEPRECATED",
|
|
961220
|
+
Alpha: "ALPHA",
|
|
961221
|
+
Beta: "BETA",
|
|
961222
|
+
Preview: "PREVIEW",
|
|
961223
|
+
Legacy: "LEGACY"
|
|
961224
|
+
};
|
|
961225
|
+
|
|
961226
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/index.mjs
|
|
961205
961227
|
var dynamic_exports30 = {};
|
|
961206
961228
|
__export(dynamic_exports30, {
|
|
961207
961229
|
ErrorSeverity: () => ErrorSeverity30,
|
|
@@ -961220,28 +961242,28 @@ __export(dynamic_exports30, {
|
|
|
961220
961242
|
variables: () => variables_exports47
|
|
961221
961243
|
});
|
|
961222
961244
|
|
|
961223
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961245
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/auth/index.mjs
|
|
961224
961246
|
var auth_exports65 = {};
|
|
961225
961247
|
|
|
961226
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961248
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/commons/index.mjs
|
|
961227
961249
|
var commons_exports61 = {};
|
|
961228
961250
|
|
|
961229
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961251
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/declaration/index.mjs
|
|
961230
961252
|
var declaration_exports30 = {};
|
|
961231
961253
|
|
|
961232
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961254
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/endpoints/index.mjs
|
|
961233
961255
|
var endpoints_exports30 = {};
|
|
961234
961256
|
|
|
961235
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961257
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/environment/index.mjs
|
|
961236
961258
|
var environment_exports57 = {};
|
|
961237
961259
|
|
|
961238
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961260
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/http/index.mjs
|
|
961239
961261
|
var http_exports45 = {};
|
|
961240
961262
|
__export(http_exports45, {
|
|
961241
961263
|
HttpMethod: () => HttpMethod49
|
|
961242
961264
|
});
|
|
961243
961265
|
|
|
961244
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961266
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/http/types/HttpMethod.mjs
|
|
961245
961267
|
var HttpMethod49 = {
|
|
961246
961268
|
Get: "GET",
|
|
961247
961269
|
Post: "POST",
|
|
@@ -961251,35 +961273,35 @@ var HttpMethod49 = {
|
|
|
961251
961273
|
Head: "HEAD"
|
|
961252
961274
|
};
|
|
961253
961275
|
|
|
961254
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961276
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/ir/index.mjs
|
|
961255
961277
|
var ir_exports59 = {};
|
|
961256
961278
|
|
|
961257
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961279
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/snippets/index.mjs
|
|
961258
961280
|
var snippets_exports30 = {};
|
|
961259
961281
|
__export(snippets_exports30, {
|
|
961260
961282
|
ErrorSeverity: () => ErrorSeverity30
|
|
961261
961283
|
});
|
|
961262
961284
|
|
|
961263
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961285
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/snippets/types/ErrorSeverity.mjs
|
|
961264
961286
|
var ErrorSeverity30 = {
|
|
961265
961287
|
Critical: "CRITICAL",
|
|
961266
961288
|
Warning: "WARNING"
|
|
961267
961289
|
};
|
|
961268
961290
|
|
|
961269
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961291
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/types/index.mjs
|
|
961270
961292
|
var types_exports68 = {};
|
|
961271
961293
|
__export(types_exports68, {
|
|
961272
961294
|
ObjectPropertyAccess: () => ObjectPropertyAccess43,
|
|
961273
961295
|
PrimitiveTypeV1: () => PrimitiveTypeV145
|
|
961274
961296
|
});
|
|
961275
961297
|
|
|
961276
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961298
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.mjs
|
|
961277
961299
|
var ObjectPropertyAccess43 = {
|
|
961278
961300
|
ReadOnly: "READ_ONLY",
|
|
961279
961301
|
WriteOnly: "WRITE_ONLY"
|
|
961280
961302
|
};
|
|
961281
961303
|
|
|
961282
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961304
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.mjs
|
|
961283
961305
|
var PrimitiveTypeV145 = {
|
|
961284
961306
|
Integer: "INTEGER",
|
|
961285
961307
|
/**
|
|
@@ -961299,28 +961321,75 @@ var PrimitiveTypeV145 = {
|
|
|
961299
961321
|
BigInteger: "BIG_INTEGER"
|
|
961300
961322
|
};
|
|
961301
961323
|
|
|
961302
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961324
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/variables/index.mjs
|
|
961303
961325
|
var variables_exports47 = {};
|
|
961304
961326
|
|
|
961305
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961327
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/generatorExec/index.mjs
|
|
961306
961328
|
var generatorExec_exports30 = {};
|
|
961307
961329
|
__export(generatorExec_exports30, {
|
|
961308
961330
|
LicenseId: () => LicenseId30,
|
|
961309
961331
|
config: () => config_exports30
|
|
961310
961332
|
});
|
|
961311
961333
|
|
|
961312
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961334
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/generatorExec/resources/config/index.mjs
|
|
961313
961335
|
var config_exports30 = {};
|
|
961314
961336
|
__export(config_exports30, {
|
|
961315
961337
|
LicenseId: () => LicenseId30
|
|
961316
961338
|
});
|
|
961317
961339
|
|
|
961318
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961340
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/generatorExec/resources/config/types/LicenseId.mjs
|
|
961319
961341
|
var LicenseId30 = {
|
|
961320
961342
|
Mit: "MIT",
|
|
961321
961343
|
Apache2: "Apache-2.0"
|
|
961322
961344
|
};
|
|
961323
961345
|
|
|
961346
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/globalParameters/index.mjs
|
|
961347
|
+
var globalParameters_exports6 = {};
|
|
961348
|
+
__export(globalParameters_exports6, {
|
|
961349
|
+
GlobalParameterApplyMode: () => GlobalParameterApplyMode4,
|
|
961350
|
+
GlobalParameterLocation: () => GlobalParameterLocation4
|
|
961351
|
+
});
|
|
961352
|
+
|
|
961353
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/globalParameters/types/GlobalParameterApplyMode.mjs
|
|
961354
|
+
var GlobalParameterApplyMode4 = {
|
|
961355
|
+
Explicit: "explicit",
|
|
961356
|
+
Auto: "auto"
|
|
961357
|
+
};
|
|
961358
|
+
|
|
961359
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/globalParameters/types/GlobalParameterLocation.mjs
|
|
961360
|
+
var GlobalParameterLocation4 = {
|
|
961361
|
+
Header: "header",
|
|
961362
|
+
Query: "query",
|
|
961363
|
+
Body: "body",
|
|
961364
|
+
Path: "path"
|
|
961365
|
+
};
|
|
961366
|
+
|
|
961367
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/types/index.mjs
|
|
961368
|
+
var types_exports69 = {};
|
|
961369
|
+
__export(types_exports69, {
|
|
961370
|
+
PrimitiveTypeV1: () => PrimitiveTypeV146
|
|
961371
|
+
});
|
|
961372
|
+
|
|
961373
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/types/types/PrimitiveTypeV1.mjs
|
|
961374
|
+
var PrimitiveTypeV146 = {
|
|
961375
|
+
Integer: "INTEGER",
|
|
961376
|
+
/**
|
|
961377
|
+
* Within the range -2^53 to 2^53 */
|
|
961378
|
+
Long: "LONG",
|
|
961379
|
+
Uint: "UINT",
|
|
961380
|
+
Uint64: "UINT_64",
|
|
961381
|
+
Float: "FLOAT",
|
|
961382
|
+
Double: "DOUBLE",
|
|
961383
|
+
Boolean: "BOOLEAN",
|
|
961384
|
+
String: "STRING",
|
|
961385
|
+
Date: "DATE",
|
|
961386
|
+
DateTime: "DATE_TIME",
|
|
961387
|
+
DateTimeRfc2822: "DATE_TIME_RFC_2822",
|
|
961388
|
+
Uuid: "UUID",
|
|
961389
|
+
Base64: "BASE_64",
|
|
961390
|
+
BigInteger: "BIG_INTEGER"
|
|
961391
|
+
};
|
|
961392
|
+
|
|
961324
961393
|
// ../../../generators/typescript-v2/dynamic-snippets/lib/context/DynamicTypeLiteralMapper.js
|
|
961325
961394
|
var UNION_VALUE_KEY2 = "value";
|
|
961326
961395
|
var DynamicTypeLiteralMapper7 = class {
|
|
@@ -962257,7 +962326,7 @@ var EndpointSnippetGenerator9 = class {
|
|
|
962257
962326
|
}
|
|
962258
962327
|
this.context.errors.unscope();
|
|
962259
962328
|
this.context.errors.scope(Scope4.RequestBody);
|
|
962260
|
-
if (request7.body != null) {
|
|
962329
|
+
if (request7.body != null && !this.callOmitsRequestBody({ request: request7, snippet })) {
|
|
962261
962330
|
const bodyArg = this.getBodyRequestArg({ body: request7.body, value: snippet.requestBody });
|
|
962262
962331
|
if (!typescript_exports.TypeLiteral.isNop(bodyArg)) {
|
|
962263
962332
|
args.push(bodyArg);
|
|
@@ -962266,6 +962335,20 @@ var EndpointSnippetGenerator9 = class {
|
|
|
962266
962335
|
this.context.errors.unscope();
|
|
962267
962336
|
return args;
|
|
962268
962337
|
}
|
|
962338
|
+
/**
|
|
962339
|
+
* Whether the call leaves the body out entirely, which the optional parameter allows. Applies
|
|
962340
|
+
* only to a body the caller may omit, and only once the generator opts in to that.
|
|
962341
|
+
*/
|
|
962342
|
+
callOmitsRequestBody({ request: request7, snippet }) {
|
|
962343
|
+
if (this.context.customConfig?.respectOptionalRequestBody !== true) {
|
|
962344
|
+
return false;
|
|
962345
|
+
}
|
|
962346
|
+
if (request7.bodyRequired !== false) {
|
|
962347
|
+
return false;
|
|
962348
|
+
}
|
|
962349
|
+
const value2 = snippet.requestBody;
|
|
962350
|
+
return value2 == null || typeof value2 === "object" && !Array.isArray(value2) && Object.keys(value2).length === 0;
|
|
962351
|
+
}
|
|
962269
962352
|
getBodyRequestArg({ body, value: value2 }) {
|
|
962270
962353
|
switch (body.type) {
|
|
962271
962354
|
case "bytes":
|
|
@@ -976648,7 +976731,7 @@ function getAutomationContextFromEnv() {
|
|
|
976648
976731
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
976649
976732
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
976650
976733
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
976651
|
-
cli_version: "5.23.3-
|
|
976734
|
+
cli_version: "5.23.3-1869-g187ebe35a50"
|
|
976652
976735
|
};
|
|
976653
976736
|
}
|
|
976654
976737
|
function isAutomationMode() {
|
|
@@ -977480,7 +977563,7 @@ var CliContext = class _CliContext {
|
|
|
977480
977563
|
if (false) {
|
|
977481
977564
|
this.logger.error("CLI_VERSION is not defined");
|
|
977482
977565
|
}
|
|
977483
|
-
return "5.23.3-
|
|
977566
|
+
return "5.23.3-1869-g187ebe35a50";
|
|
977484
977567
|
}
|
|
977485
977568
|
getCliName() {
|
|
977486
977569
|
if (false) {
|
package/package.json
CHANGED