@fern-api/fern-api-dev 5.80.4 → 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.
- package/cli.cjs +290 -16
- 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)) {
|
|
@@ -452014,7 +452257,7 @@ function parseMarkdownImage(content5, start2, metadata) {
|
|
|
452014
452257
|
}
|
|
452015
452258
|
const urlEnd = i5 - 1;
|
|
452016
452259
|
const url3 = content5.slice(urlStart, urlEnd).trim();
|
|
452017
|
-
const rawSrc = trimAnchor(url3);
|
|
452260
|
+
const rawSrc = trimAnchor(splitDestinationAndTitle(url3));
|
|
452018
452261
|
const src = rawSrc != null ? unescapeMarkdownUrl(rawSrc) : void 0;
|
|
452019
452262
|
const resolvedPath = resolvePath5(src, metadata);
|
|
452020
452263
|
if (rawSrc && src && resolvedPath) {
|
|
@@ -452030,6 +452273,27 @@ function parseMarkdownImage(content5, start2, metadata) {
|
|
|
452030
452273
|
}
|
|
452031
452274
|
return null;
|
|
452032
452275
|
}
|
|
452276
|
+
function splitDestinationAndTitle(url3) {
|
|
452277
|
+
if (url3.startsWith("<")) {
|
|
452278
|
+
let i6 = 1;
|
|
452279
|
+
while (i6 < url3.length && url3[i6] !== ">") {
|
|
452280
|
+
i6 += url3[i6] === "\\" ? 2 : 1;
|
|
452281
|
+
}
|
|
452282
|
+
if (i6 < url3.length) {
|
|
452283
|
+
return url3.slice(0, i6 + 1);
|
|
452284
|
+
}
|
|
452285
|
+
}
|
|
452286
|
+
let i5 = 0;
|
|
452287
|
+
while (i5 < url3.length && !/\s/.test(url3[i5])) {
|
|
452288
|
+
i5 += url3[i5] === "\\" ? 2 : 1;
|
|
452289
|
+
}
|
|
452290
|
+
const title2 = url3.slice(i5).trim();
|
|
452291
|
+
if (title2.length === 0) {
|
|
452292
|
+
return url3.slice(0, i5);
|
|
452293
|
+
}
|
|
452294
|
+
const isTitle = title2.length >= 2 && (title2.startsWith('"') && title2.endsWith('"') || title2.startsWith("'") && title2.endsWith("'") || title2.startsWith("(") && title2.endsWith(")"));
|
|
452295
|
+
return isTitle ? url3.slice(0, i5) : url3;
|
|
452296
|
+
}
|
|
452033
452297
|
function parseMarkdownLink(content5, start2, metadata) {
|
|
452034
452298
|
let i5 = start2 + 1;
|
|
452035
452299
|
const len = content5.length;
|
|
@@ -452455,8 +452719,10 @@ function replaceImagePathsAndUrls(markdown, fileIdsMap, markdownFilesToPathName,
|
|
|
452455
452719
|
}
|
|
452456
452720
|
const urlEnd = j5 - 1;
|
|
452457
452721
|
const href = content5.slice(urlStart, urlEnd).trim();
|
|
452458
|
-
const
|
|
452459
|
-
const
|
|
452722
|
+
const destination = splitDestinationAndTitle(href);
|
|
452723
|
+
const hrefTitle = href.slice(destination.length);
|
|
452724
|
+
const trimmedHref = trimAnchor(destination) ?? destination;
|
|
452725
|
+
const hrefAnchor = trimmedHref !== destination ? destination.slice(trimmedHref.length) : "";
|
|
452460
452726
|
const replacedHref = getReplacedHref({
|
|
452461
452727
|
href: trimmedHref,
|
|
452462
452728
|
markdownFilesToPathName,
|
|
@@ -452466,7 +452732,7 @@ function replaceImagePathsAndUrls(markdown, fileIdsMap, markdownFilesToPathName,
|
|
|
452466
452732
|
edits.push({
|
|
452467
452733
|
start: urlStart,
|
|
452468
452734
|
end: urlEnd,
|
|
452469
|
-
replacement: replacedHref.slug + hrefAnchor
|
|
452735
|
+
replacement: replacedHref.slug + hrefAnchor + hrefTitle
|
|
452470
452736
|
});
|
|
452471
452737
|
}
|
|
452472
452738
|
i5 = j5;
|
|
@@ -460248,17 +460514,25 @@ function convertAuthScheme2({ scheme, playgroundConfig, context: context3 }) {
|
|
|
460248
460514
|
description: scheme.docs
|
|
460249
460515
|
};
|
|
460250
460516
|
case "oauth": {
|
|
460251
|
-
const
|
|
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";
|
|
460252
460526
|
return playgroundConfig?.oauth ? {
|
|
460253
460527
|
type: "oAuth",
|
|
460254
460528
|
value: {
|
|
460255
460529
|
type: "clientCredentials",
|
|
460256
460530
|
value: {
|
|
460257
460531
|
type: "referencedEndpoint",
|
|
460258
|
-
endpointId: FdrAPI_exports.EndpointId(
|
|
460532
|
+
endpointId: FdrAPI_exports.EndpointId(configuration2.tokenEndpoint.endpointReference.endpointId),
|
|
460259
460533
|
accessTokenLocator: tokenPath,
|
|
460260
|
-
headerName:
|
|
460261
|
-
tokenPrefix:
|
|
460534
|
+
headerName: configuration2.tokenHeader,
|
|
460535
|
+
tokenPrefix: configuration2.tokenPrefix,
|
|
460262
460536
|
description: scheme.docs
|
|
460263
460537
|
}
|
|
460264
460538
|
}
|
|
@@ -691732,7 +692006,7 @@ var AccessTokenPosthogManager = class {
|
|
|
691732
692006
|
properties: {
|
|
691733
692007
|
...event,
|
|
691734
692008
|
...event.properties,
|
|
691735
|
-
version: "5.
|
|
692009
|
+
version: "5.81.0",
|
|
691736
692010
|
usingAccessToken: true,
|
|
691737
692011
|
...getRunIdProperties()
|
|
691738
692012
|
}
|
|
@@ -691798,7 +692072,7 @@ var UserPosthogManager = class {
|
|
|
691798
692072
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
691799
692073
|
event: "CLI",
|
|
691800
692074
|
properties: {
|
|
691801
|
-
version: "5.
|
|
692075
|
+
version: "5.81.0",
|
|
691802
692076
|
...event,
|
|
691803
692077
|
...event.properties,
|
|
691804
692078
|
usingAccessToken: false,
|
|
@@ -872904,7 +873178,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
872904
873178
|
var LOGS_FOLDER_NAME = "logs";
|
|
872905
873179
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
872906
873180
|
function getCliSource() {
|
|
872907
|
-
const version7 = "5.
|
|
873181
|
+
const version7 = "5.81.0";
|
|
872908
873182
|
return `cli@${version7}`;
|
|
872909
873183
|
}
|
|
872910
873184
|
var DebugLogger = class {
|
|
@@ -905600,7 +905874,7 @@ var LegacyDocsPublisher = class {
|
|
|
905600
905874
|
previewId,
|
|
905601
905875
|
disableTemplates: void 0,
|
|
905602
905876
|
skipUpload,
|
|
905603
|
-
cliVersion: "5.
|
|
905877
|
+
cliVersion: "5.81.0",
|
|
905604
905878
|
loginCommand: "fern auth login"
|
|
905605
905879
|
});
|
|
905606
905880
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -972465,7 +972739,7 @@ function getAutomationContextFromEnv() {
|
|
|
972465
972739
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
972466
972740
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
972467
972741
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
972468
|
-
cli_version: "5.
|
|
972742
|
+
cli_version: "5.81.0"
|
|
972469
972743
|
};
|
|
972470
972744
|
}
|
|
972471
972745
|
function isAutomationMode() {
|
|
@@ -973297,7 +973571,7 @@ var CliContext = class _CliContext {
|
|
|
973297
973571
|
if (false) {
|
|
973298
973572
|
this.logger.error("CLI_VERSION is not defined");
|
|
973299
973573
|
}
|
|
973300
|
-
return "5.
|
|
973574
|
+
return "5.81.0";
|
|
973301
973575
|
}
|
|
973302
973576
|
getCliName() {
|
|
973303
973577
|
if (false) {
|
package/package.json
CHANGED