@fern-api/fern-api-dev 5.80.5 → 5.81.0

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 (2) hide show
  1. package/cli.cjs +263 -12
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -62211,6 +62211,13 @@ var init_OAuthAccessTokenResponseProperties = __esm({
62211
62211
  }
62212
62212
  });
62213
62213
 
62214
+ // ../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthAuthorizationCode.js
62215
+ var init_OAuthAuthorizationCode = __esm({
62216
+ "../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthAuthorizationCode.js"() {
62217
+ "use strict";
62218
+ }
62219
+ });
62220
+
62214
62221
  // ../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthClientCredentials.js
62215
62222
  var init_OAuthClientCredentials = __esm({
62216
62223
  "../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthClientCredentials.js"() {
@@ -62234,10 +62241,107 @@ var init_OAuthConfiguration = __esm({
62234
62241
  }
62235
62242
  };
62236
62243
  },
62244
+ authorizationCode: (value2) => {
62245
+ return {
62246
+ ...value2,
62247
+ type: "authorizationCode",
62248
+ _visit: function(visitor) {
62249
+ return OAuthConfiguration._visit(this, visitor);
62250
+ }
62251
+ };
62252
+ },
62253
+ deviceCode: (value2) => {
62254
+ return {
62255
+ ...value2,
62256
+ type: "deviceCode",
62257
+ _visit: function(visitor) {
62258
+ return OAuthConfiguration._visit(this, visitor);
62259
+ }
62260
+ };
62261
+ },
62237
62262
  _visit: (value2, visitor) => {
62238
62263
  switch (value2.type) {
62239
62264
  case "clientCredentials":
62240
62265
  return visitor.clientCredentials(value2);
62266
+ case "authorizationCode":
62267
+ return visitor.authorizationCode(value2);
62268
+ case "deviceCode":
62269
+ return visitor.deviceCode(value2);
62270
+ default:
62271
+ return visitor._other(value2);
62272
+ }
62273
+ }
62274
+ };
62275
+ }
62276
+ });
62277
+
62278
+ // ../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthDeviceCode.js
62279
+ var init_OAuthDeviceCode = __esm({
62280
+ "../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthDeviceCode.js"() {
62281
+ "use strict";
62282
+ }
62283
+ });
62284
+
62285
+ // ../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthPkceConfiguration.js
62286
+ var init_OAuthPkceConfiguration = __esm({
62287
+ "../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthPkceConfiguration.js"() {
62288
+ "use strict";
62289
+ }
62290
+ });
62291
+
62292
+ // ../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthPkceMethod.js
62293
+ var OAuthPkceMethodValues, OAuthPkceMethod;
62294
+ var init_OAuthPkceMethod = __esm({
62295
+ "../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthPkceMethod.js"() {
62296
+ "use strict";
62297
+ OAuthPkceMethodValues = {
62298
+ S256: "S256"
62299
+ };
62300
+ OAuthPkceMethod = {
62301
+ ...OAuthPkceMethodValues,
62302
+ _visit: (value2, visitor) => {
62303
+ switch (value2) {
62304
+ case OAuthPkceMethod.S256:
62305
+ return visitor.s256();
62306
+ default:
62307
+ return visitor._other();
62308
+ }
62309
+ }
62310
+ };
62311
+ }
62312
+ });
62313
+
62314
+ // ../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthPublicClientId.js
62315
+ var OAuthPublicClientId;
62316
+ var init_OAuthPublicClientId = __esm({
62317
+ "../../ir-sdk/lib/sdk/api/resources/auth/types/OAuthPublicClientId.js"() {
62318
+ "use strict";
62319
+ init_api2();
62320
+ OAuthPublicClientId = {
62321
+ literal: (value2) => {
62322
+ return {
62323
+ value: value2,
62324
+ type: "literal",
62325
+ _visit: function(visitor) {
62326
+ return OAuthPublicClientId._visit(this, visitor);
62327
+ }
62328
+ };
62329
+ },
62330
+ environmentVariable: (value2) => {
62331
+ return {
62332
+ value: value2,
62333
+ type: "environmentVariable",
62334
+ _visit: function(visitor) {
62335
+ return OAuthPublicClientId._visit(this, visitor);
62336
+ }
62337
+ };
62338
+ },
62339
+ _visit: (value2, visitor) => {
62340
+ switch (value2.type) {
62341
+ case "literal":
62342
+ return visitor.literal(value2.value);
62343
+ case "environmentVariable":
62344
+ return visitor.environmentVariable(value2.value);
62241
62345
  default:
62242
62346
  return visitor._other(value2);
62243
62347
  }
@@ -62293,8 +62397,13 @@ var init_types43 = __esm({
62293
62397
  init_InferredAuthSchemeTokenEndpoint();
62294
62398
  init_OAuthAccessTokenRequestProperties();
62295
62399
  init_OAuthAccessTokenResponseProperties();
62400
+ init_OAuthAuthorizationCode();
62296
62401
  init_OAuthClientCredentials();
62297
62402
  init_OAuthConfiguration();
62403
+ init_OAuthDeviceCode();
62404
+ init_OAuthPkceConfiguration();
62405
+ init_OAuthPkceMethod();
62406
+ init_OAuthPublicClientId();
62298
62407
  init_OAuthRefreshEndpoint();
62299
62408
  init_OAuthRefreshTokenRequestProperties();
62300
62409
  init_OAuthScheme();
@@ -62307,7 +62416,9 @@ var auth_exports3 = {};
62307
62416
  __export(auth_exports3, {
62308
62417
  AuthScheme: () => AuthScheme,
62309
62418
  AuthSchemesRequirement: () => AuthSchemesRequirement,
62310
- OAuthConfiguration: () => OAuthConfiguration
62419
+ OAuthConfiguration: () => OAuthConfiguration,
62420
+ OAuthPkceMethod: () => OAuthPkceMethod,
62421
+ OAuthPublicClientId: () => OAuthPublicClientId
62311
62422
  });
62312
62423
  var init_auth4 = __esm({
62313
62424
  "../../ir-sdk/lib/sdk/api/resources/auth/index.js"() {
@@ -70875,6 +70986,8 @@ __export(api_exports, {
70875
70986
  NamedTypeDefault: () => NamedTypeDefault,
70876
70987
  NonStreamHttpResponseBody: () => NonStreamHttpResponseBody,
70877
70988
  OAuthConfiguration: () => OAuthConfiguration,
70989
+ OAuthPkceMethod: () => OAuthPkceMethod,
70990
+ OAuthPublicClientId: () => OAuthPublicClientId,
70878
70991
  ObjectPropertyAccess: () => ObjectPropertyAccess4,
70879
70992
  Pagination: () => Pagination2,
70880
70993
  PathParameterLocation: () => PathParameterLocation,
@@ -73465,6 +73578,85 @@ var init_InferredAuthScheme2 = __esm({
73465
73578
  }
73466
73579
  });
73467
73580
 
73581
+ // ../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthPkceMethod.js
73582
+ var OAuthPkceMethod2;
73583
+ var init_OAuthPkceMethod2 = __esm({
73584
+ "../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthPkceMethod.js"() {
73585
+ "use strict";
73586
+ init_core2();
73587
+ OAuthPkceMethod2 = schemas_exports3.enum_(["S256"]);
73588
+ }
73589
+ });
73590
+
73591
+ // ../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthPkceConfiguration.js
73592
+ var OAuthPkceConfiguration;
73593
+ var init_OAuthPkceConfiguration2 = __esm({
73594
+ "../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthPkceConfiguration.js"() {
73595
+ "use strict";
73596
+ init_core2();
73597
+ init_OAuthPkceMethod2();
73598
+ OAuthPkceConfiguration = schemas_exports3.objectWithoutOptionalProperties({
73599
+ method: OAuthPkceMethod2
73600
+ });
73601
+ }
73602
+ });
73603
+
73604
+ // ../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthPublicClientId.js
73605
+ var OAuthPublicClientId2;
73606
+ var init_OAuthPublicClientId2 = __esm({
73607
+ "../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthPublicClientId.js"() {
73608
+ "use strict";
73609
+ init_api2();
73610
+ init_core2();
73611
+ init_EnvironmentVariable3();
73612
+ OAuthPublicClientId2 = schemas_exports3.union("type", {
73613
+ literal: schemas_exports3.object({
73614
+ value: schemas_exports3.string()
73615
+ }),
73616
+ environmentVariable: schemas_exports3.object({
73617
+ value: EnvironmentVariable
73618
+ })
73619
+ }).transform({
73620
+ transform: (value2) => {
73621
+ switch (value2.type) {
73622
+ case "literal":
73623
+ return OAuthPublicClientId.literal(value2.value);
73624
+ case "environmentVariable":
73625
+ return OAuthPublicClientId.environmentVariable(value2.value);
73626
+ default:
73627
+ return value2;
73628
+ }
73629
+ },
73630
+ untransform: ({ _visit, ...value2 }) => value2
73631
+ });
73632
+ }
73633
+ });
73634
+
73635
+ // ../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthAuthorizationCode.js
73636
+ var OAuthAuthorizationCode;
73637
+ var init_OAuthAuthorizationCode2 = __esm({
73638
+ "../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthAuthorizationCode.js"() {
73639
+ "use strict";
73640
+ init_core2();
73641
+ init_OAuthPkceConfiguration2();
73642
+ init_OAuthPublicClientId2();
73643
+ OAuthAuthorizationCode = schemas_exports3.objectWithoutOptionalProperties({
73644
+ clientId: OAuthPublicClientId2,
73645
+ authorizationUrl: schemas_exports3.string(),
73646
+ tokenUrl: schemas_exports3.string(),
73647
+ refreshUrl: schemas_exports3.string().optional(),
73648
+ redirectUri: schemas_exports3.string().optional(),
73649
+ scopes: schemas_exports3.list(schemas_exports3.string()).optional(),
73650
+ pkce: OAuthPkceConfiguration,
73651
+ authorizationParameters: schemas_exports3.record(schemas_exports3.string(), schemas_exports3.string()).optional(),
73652
+ tokenParameters: schemas_exports3.record(schemas_exports3.string(), schemas_exports3.string()).optional(),
73653
+ refreshParameters: schemas_exports3.record(schemas_exports3.string(), schemas_exports3.string()).optional(),
73654
+ tokenHeader: schemas_exports3.string().optional(),
73655
+ tokenPrefix: schemas_exports3.string().optional()
73656
+ });
73657
+ }
73658
+ });
73659
+
73468
73660
  // ../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthAccessTokenResponseProperties.js
73469
73661
  var OAuthAccessTokenResponseProperties;
73470
73662
  var init_OAuthAccessTokenResponseProperties2 = __esm({
@@ -73660,6 +73852,28 @@ var init_OAuthClientCredentials2 = __esm({
73660
73852
  }
73661
73853
  });
73662
73854
 
73855
+ // ../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthDeviceCode.js
73856
+ var OAuthDeviceCode;
73857
+ var init_OAuthDeviceCode2 = __esm({
73858
+ "../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthDeviceCode.js"() {
73859
+ "use strict";
73860
+ init_core2();
73861
+ init_OAuthPublicClientId2();
73862
+ OAuthDeviceCode = schemas_exports3.objectWithoutOptionalProperties({
73863
+ clientId: OAuthPublicClientId2,
73864
+ deviceAuthorizationUrl: schemas_exports3.string(),
73865
+ tokenUrl: schemas_exports3.string(),
73866
+ refreshUrl: schemas_exports3.string().optional(),
73867
+ scopes: schemas_exports3.list(schemas_exports3.string()).optional(),
73868
+ deviceAuthorizationParameters: schemas_exports3.record(schemas_exports3.string(), schemas_exports3.string()).optional(),
73869
+ tokenParameters: schemas_exports3.record(schemas_exports3.string(), schemas_exports3.string()).optional(),
73870
+ refreshParameters: schemas_exports3.record(schemas_exports3.string(), schemas_exports3.string()).optional(),
73871
+ tokenHeader: schemas_exports3.string().optional(),
73872
+ tokenPrefix: schemas_exports3.string().optional()
73873
+ });
73874
+ }
73875
+ });
73876
+
73663
73877
  // ../../ir-sdk/lib/sdk/serialization/resources/auth/types/OAuthConfiguration.js
73664
73878
  var OAuthConfiguration2;
73665
73879
  var init_OAuthConfiguration2 = __esm({
@@ -73667,14 +73881,22 @@ var init_OAuthConfiguration2 = __esm({
73667
73881
  "use strict";
73668
73882
  init_api2();
73669
73883
  init_core2();
73884
+ init_OAuthAuthorizationCode2();
73670
73885
  init_OAuthClientCredentials2();
73886
+ init_OAuthDeviceCode2();
73671
73887
  OAuthConfiguration2 = schemas_exports3.union("type", {
73672
- clientCredentials: OAuthClientCredentials
73888
+ clientCredentials: OAuthClientCredentials,
73889
+ authorizationCode: OAuthAuthorizationCode,
73890
+ deviceCode: OAuthDeviceCode
73673
73891
  }).transform({
73674
73892
  transform: (value2) => {
73675
73893
  switch (value2.type) {
73676
73894
  case "clientCredentials":
73677
73895
  return OAuthConfiguration.clientCredentials(value2);
73896
+ case "authorizationCode":
73897
+ return OAuthConfiguration.authorizationCode(value2);
73898
+ case "deviceCode":
73899
+ return OAuthConfiguration.deviceCode(value2);
73678
73900
  default:
73679
73901
  return value2;
73680
73902
  }
@@ -73793,8 +74015,13 @@ var init_types72 = __esm({
73793
74015
  init_InferredAuthSchemeTokenEndpoint2();
73794
74016
  init_OAuthAccessTokenRequestProperties2();
73795
74017
  init_OAuthAccessTokenResponseProperties2();
74018
+ init_OAuthAuthorizationCode2();
73796
74019
  init_OAuthClientCredentials2();
73797
74020
  init_OAuthConfiguration2();
74021
+ init_OAuthDeviceCode2();
74022
+ init_OAuthPkceConfiguration2();
74023
+ init_OAuthPkceMethod2();
74024
+ init_OAuthPublicClientId2();
73798
74025
  init_OAuthRefreshEndpoint2();
73799
74026
  init_OAuthRefreshTokenRequestProperties2();
73800
74027
  init_OAuthScheme2();
@@ -73820,8 +74047,13 @@ __export(auth_exports5, {
73820
74047
  InferredAuthenticatedRequestHeader: () => InferredAuthenticatedRequestHeader2,
73821
74048
  OAuthAccessTokenRequestProperties: () => OAuthAccessTokenRequestProperties,
73822
74049
  OAuthAccessTokenResponseProperties: () => OAuthAccessTokenResponseProperties,
74050
+ OAuthAuthorizationCode: () => OAuthAuthorizationCode,
73823
74051
  OAuthClientCredentials: () => OAuthClientCredentials,
73824
74052
  OAuthConfiguration: () => OAuthConfiguration2,
74053
+ OAuthDeviceCode: () => OAuthDeviceCode,
74054
+ OAuthPkceConfiguration: () => OAuthPkceConfiguration,
74055
+ OAuthPkceMethod: () => OAuthPkceMethod2,
74056
+ OAuthPublicClientId: () => OAuthPublicClientId2,
73825
74057
  OAuthRefreshEndpoint: () => OAuthRefreshEndpoint,
73826
74058
  OAuthRefreshTokenRequestProperties: () => OAuthRefreshTokenRequestProperties,
73827
74059
  OAuthScheme: () => OAuthScheme,
@@ -83277,8 +83509,13 @@ __export(serialization_exports2, {
83277
83509
  NugetPublishTarget: () => NugetPublishTarget,
83278
83510
  OAuthAccessTokenRequestProperties: () => OAuthAccessTokenRequestProperties,
83279
83511
  OAuthAccessTokenResponseProperties: () => OAuthAccessTokenResponseProperties,
83512
+ OAuthAuthorizationCode: () => OAuthAuthorizationCode,
83280
83513
  OAuthClientCredentials: () => OAuthClientCredentials,
83281
83514
  OAuthConfiguration: () => OAuthConfiguration2,
83515
+ OAuthDeviceCode: () => OAuthDeviceCode,
83516
+ OAuthPkceConfiguration: () => OAuthPkceConfiguration,
83517
+ OAuthPkceMethod: () => OAuthPkceMethod2,
83518
+ OAuthPublicClientId: () => OAuthPublicClientId2,
83282
83519
  OAuthRefreshEndpoint: () => OAuthRefreshEndpoint,
83283
83520
  OAuthRefreshTokenRequestProperties: () => OAuthRefreshTokenRequestProperties,
83284
83521
  OAuthScheme: () => OAuthScheme,
@@ -273887,6 +274124,9 @@ var init_DynamicSnippetsConverter = __esm({
273887
274124
  }
273888
274125
  getOAuthCustomProperties(scheme) {
273889
274126
  const parameters2 = [];
274127
+ if (scheme.configuration.type !== "clientCredentials") {
274128
+ return parameters2;
274129
+ }
273890
274130
  const customProperties = scheme.configuration.tokenEndpoint.requestProperties.customProperties ?? [];
273891
274131
  for (const customProperty of customProperties) {
273892
274132
  if (isExcludedOAuthProperty(customProperty.property.valueType)) {
@@ -273912,6 +274152,9 @@ var init_DynamicSnippetsConverter = __esm({
273912
274152
  }
273913
274153
  getOAuthCustomPropertyValues(scheme) {
273914
274154
  const values2 = {};
274155
+ if (scheme.configuration.type !== "clientCredentials") {
274156
+ return values2;
274157
+ }
273915
274158
  const customProperties = scheme.configuration.tokenEndpoint.requestProperties.customProperties ?? [];
273916
274159
  for (const customProperty of customProperties) {
273917
274160
  if (isExcludedOAuthProperty(customProperty.property.valueType)) {
@@ -460271,17 +460514,25 @@ function convertAuthScheme2({ scheme, playgroundConfig, context: context3 }) {
460271
460514
  description: scheme.docs
460272
460515
  };
460273
460516
  case "oauth": {
460274
- const tokenPath = scheme.configuration.tokenEndpoint.responseProperties.accessToken.propertyPath?.map((p6) => getOriginalName(p6.name)).join(".") || "$.body.access_token";
460517
+ const configuration2 = scheme.configuration;
460518
+ if (configuration2.type !== "clientCredentials") {
460519
+ return {
460520
+ type: "bearerAuth",
460521
+ tokenName: "token",
460522
+ description: scheme.docs
460523
+ };
460524
+ }
460525
+ const tokenPath = configuration2.tokenEndpoint.responseProperties.accessToken.propertyPath?.map((p6) => getOriginalName(p6.name)).join(".") || "$.body.access_token";
460275
460526
  return playgroundConfig?.oauth ? {
460276
460527
  type: "oAuth",
460277
460528
  value: {
460278
460529
  type: "clientCredentials",
460279
460530
  value: {
460280
460531
  type: "referencedEndpoint",
460281
- endpointId: FdrAPI_exports.EndpointId(scheme.configuration.tokenEndpoint.endpointReference.endpointId),
460532
+ endpointId: FdrAPI_exports.EndpointId(configuration2.tokenEndpoint.endpointReference.endpointId),
460282
460533
  accessTokenLocator: tokenPath,
460283
- headerName: scheme.configuration.tokenHeader,
460284
- tokenPrefix: scheme.configuration.tokenPrefix,
460534
+ headerName: configuration2.tokenHeader,
460535
+ tokenPrefix: configuration2.tokenPrefix,
460285
460536
  description: scheme.docs
460286
460537
  }
460287
460538
  }
@@ -691755,7 +692006,7 @@ var AccessTokenPosthogManager = class {
691755
692006
  properties: {
691756
692007
  ...event,
691757
692008
  ...event.properties,
691758
- version: "5.80.5",
692009
+ version: "5.81.0",
691759
692010
  usingAccessToken: true,
691760
692011
  ...getRunIdProperties()
691761
692012
  }
@@ -691821,7 +692072,7 @@ var UserPosthogManager = class {
691821
692072
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
691822
692073
  event: "CLI",
691823
692074
  properties: {
691824
- version: "5.80.5",
692075
+ version: "5.81.0",
691825
692076
  ...event,
691826
692077
  ...event.properties,
691827
692078
  usingAccessToken: false,
@@ -872927,7 +873178,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
872927
873178
  var LOGS_FOLDER_NAME = "logs";
872928
873179
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
872929
873180
  function getCliSource() {
872930
- const version7 = "5.80.5";
873181
+ const version7 = "5.81.0";
872931
873182
  return `cli@${version7}`;
872932
873183
  }
872933
873184
  var DebugLogger = class {
@@ -905623,7 +905874,7 @@ var LegacyDocsPublisher = class {
905623
905874
  previewId,
905624
905875
  disableTemplates: void 0,
905625
905876
  skipUpload,
905626
- cliVersion: "5.80.5",
905877
+ cliVersion: "5.81.0",
905627
905878
  loginCommand: "fern auth login"
905628
905879
  });
905629
905880
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -972488,7 +972739,7 @@ function getAutomationContextFromEnv() {
972488
972739
  config_branch: process.env.FERN_CONFIG_BRANCH,
972489
972740
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
972490
972741
  trigger: process.env.GITHUB_EVENT_NAME,
972491
- cli_version: "5.80.5"
972742
+ cli_version: "5.81.0"
972492
972743
  };
972493
972744
  }
972494
972745
  function isAutomationMode() {
@@ -973320,7 +973571,7 @@ var CliContext = class _CliContext {
973320
973571
  if (false) {
973321
973572
  this.logger.error("CLI_VERSION is not defined");
973322
973573
  }
973323
- return "5.80.5";
973574
+ return "5.81.0";
973324
973575
  }
973325
973576
  getCliName() {
973326
973577
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.80.5",
2
+ "version": "5.81.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",