@fern-api/fern-api-dev 5.23.3-1063-gc72156e29b3 → 5.23.3-1067-g9d74173e6b1
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 +262 -114
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -60204,6 +60204,42 @@ var init_AsymmetricAlgorithmSchema2 = __esm({
|
|
|
60204
60204
|
}
|
|
60205
60205
|
});
|
|
60206
60206
|
|
|
60207
|
+
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadBodySortSchema.js
|
|
60208
|
+
var WebhookPayloadBodySortSchema2;
|
|
60209
|
+
var init_WebhookPayloadBodySortSchema2 = __esm({
|
|
60210
|
+
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadBodySortSchema.js"() {
|
|
60211
|
+
"use strict";
|
|
60212
|
+
init_core();
|
|
60213
|
+
WebhookPayloadBodySortSchema2 = schemas_exports.enum_(["alphabetical"]);
|
|
60214
|
+
}
|
|
60215
|
+
});
|
|
60216
|
+
|
|
60217
|
+
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadComponentSchema.js
|
|
60218
|
+
var WebhookPayloadComponentSchema2;
|
|
60219
|
+
var init_WebhookPayloadComponentSchema2 = __esm({
|
|
60220
|
+
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadComponentSchema.js"() {
|
|
60221
|
+
"use strict";
|
|
60222
|
+
init_core();
|
|
60223
|
+
WebhookPayloadComponentSchema2 = schemas_exports.enum_(["body", "timestamp", "notification-url", "message-id"]);
|
|
60224
|
+
}
|
|
60225
|
+
});
|
|
60226
|
+
|
|
60227
|
+
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadFormatSchema.js
|
|
60228
|
+
var WebhookPayloadFormatSchema;
|
|
60229
|
+
var init_WebhookPayloadFormatSchema2 = __esm({
|
|
60230
|
+
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadFormatSchema.js"() {
|
|
60231
|
+
"use strict";
|
|
60232
|
+
init_core();
|
|
60233
|
+
init_WebhookPayloadBodySortSchema2();
|
|
60234
|
+
init_WebhookPayloadComponentSchema2();
|
|
60235
|
+
WebhookPayloadFormatSchema = schemas_exports.object({
|
|
60236
|
+
components: schemas_exports.list(WebhookPayloadComponentSchema2),
|
|
60237
|
+
delimiter: schemas_exports.string().optional(),
|
|
60238
|
+
"body-sort": WebhookPayloadBodySortSchema2.optional()
|
|
60239
|
+
});
|
|
60240
|
+
}
|
|
60241
|
+
});
|
|
60242
|
+
|
|
60207
60243
|
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookSignatureEncodingSchema.js
|
|
60208
60244
|
var WebhookSignatureEncodingSchema2;
|
|
60209
60245
|
var init_WebhookSignatureEncodingSchema2 = __esm({
|
|
@@ -60246,6 +60282,7 @@ var init_AsymmetricSignatureSchema2 = __esm({
|
|
|
60246
60282
|
"use strict";
|
|
60247
60283
|
init_core();
|
|
60248
60284
|
init_AsymmetricAlgorithmSchema2();
|
|
60285
|
+
init_WebhookPayloadFormatSchema2();
|
|
60249
60286
|
init_WebhookSignatureEncodingSchema2();
|
|
60250
60287
|
init_WebhookTimestampSchema2();
|
|
60251
60288
|
AsymmetricSignatureSchema = schemas_exports.object({
|
|
@@ -60255,47 +60292,12 @@ var init_AsymmetricSignatureSchema2 = __esm({
|
|
|
60255
60292
|
"signature-prefix": schemas_exports.string().optional(),
|
|
60256
60293
|
"jwks-url": schemas_exports.string().optional(),
|
|
60257
60294
|
"key-id-header": schemas_exports.string().optional(),
|
|
60295
|
+
"payload-format": WebhookPayloadFormatSchema.optional(),
|
|
60258
60296
|
timestamp: WebhookTimestampSchema.optional()
|
|
60259
60297
|
});
|
|
60260
60298
|
}
|
|
60261
60299
|
});
|
|
60262
60300
|
|
|
60263
|
-
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadBodySortSchema.js
|
|
60264
|
-
var WebhookPayloadBodySortSchema2;
|
|
60265
|
-
var init_WebhookPayloadBodySortSchema2 = __esm({
|
|
60266
|
-
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadBodySortSchema.js"() {
|
|
60267
|
-
"use strict";
|
|
60268
|
-
init_core();
|
|
60269
|
-
WebhookPayloadBodySortSchema2 = schemas_exports.enum_(["alphabetical"]);
|
|
60270
|
-
}
|
|
60271
|
-
});
|
|
60272
|
-
|
|
60273
|
-
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadComponentSchema.js
|
|
60274
|
-
var WebhookPayloadComponentSchema2;
|
|
60275
|
-
var init_WebhookPayloadComponentSchema2 = __esm({
|
|
60276
|
-
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadComponentSchema.js"() {
|
|
60277
|
-
"use strict";
|
|
60278
|
-
init_core();
|
|
60279
|
-
WebhookPayloadComponentSchema2 = schemas_exports.enum_(["body", "timestamp", "notification-url", "message-id"]);
|
|
60280
|
-
}
|
|
60281
|
-
});
|
|
60282
|
-
|
|
60283
|
-
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadFormatSchema.js
|
|
60284
|
-
var WebhookPayloadFormatSchema;
|
|
60285
|
-
var init_WebhookPayloadFormatSchema2 = __esm({
|
|
60286
|
-
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadFormatSchema.js"() {
|
|
60287
|
-
"use strict";
|
|
60288
|
-
init_core();
|
|
60289
|
-
init_WebhookPayloadBodySortSchema2();
|
|
60290
|
-
init_WebhookPayloadComponentSchema2();
|
|
60291
|
-
WebhookPayloadFormatSchema = schemas_exports.object({
|
|
60292
|
-
components: schemas_exports.list(WebhookPayloadComponentSchema2),
|
|
60293
|
-
delimiter: schemas_exports.string().optional(),
|
|
60294
|
-
"body-sort": WebhookPayloadBodySortSchema2.optional()
|
|
60295
|
-
});
|
|
60296
|
-
}
|
|
60297
|
-
});
|
|
60298
|
-
|
|
60299
60301
|
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookSignatureAlgorithmSchema.js
|
|
60300
60302
|
var WebhookSignatureAlgorithmSchema2;
|
|
60301
60303
|
var init_WebhookSignatureAlgorithmSchema2 = __esm({
|
|
@@ -76219,6 +76221,7 @@ var init_V2HttpEndpointExample2 = __esm({
|
|
|
76219
76221
|
init_V2HttpEndpointResponse2();
|
|
76220
76222
|
V2HttpEndpointExample = schemas_exports3.objectWithoutOptionalProperties({
|
|
76221
76223
|
displayName: schemas_exports3.string().optional(),
|
|
76224
|
+
contentType: schemas_exports3.string().optional(),
|
|
76222
76225
|
request: V2HttpEndpointRequest.optional(),
|
|
76223
76226
|
response: V2HttpEndpointResponse.optional(),
|
|
76224
76227
|
codeSamples: schemas_exports3.list(V2HttpEndpointCodeSample).optional()
|
|
@@ -80569,6 +80572,42 @@ var init_AsymmetricKeySource2 = __esm({
|
|
|
80569
80572
|
}
|
|
80570
80573
|
});
|
|
80571
80574
|
|
|
80575
|
+
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadBodySort.js
|
|
80576
|
+
var WebhookPayloadBodySort2;
|
|
80577
|
+
var init_WebhookPayloadBodySort2 = __esm({
|
|
80578
|
+
"../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadBodySort.js"() {
|
|
80579
|
+
"use strict";
|
|
80580
|
+
init_core2();
|
|
80581
|
+
WebhookPayloadBodySort2 = schemas_exports3.enum_(["ALPHABETICAL"]);
|
|
80582
|
+
}
|
|
80583
|
+
});
|
|
80584
|
+
|
|
80585
|
+
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadComponent.js
|
|
80586
|
+
var WebhookPayloadComponent2;
|
|
80587
|
+
var init_WebhookPayloadComponent2 = __esm({
|
|
80588
|
+
"../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadComponent.js"() {
|
|
80589
|
+
"use strict";
|
|
80590
|
+
init_core2();
|
|
80591
|
+
WebhookPayloadComponent2 = schemas_exports3.enum_(["BODY", "TIMESTAMP", "NOTIFICATION_URL", "MESSAGE_ID"]);
|
|
80592
|
+
}
|
|
80593
|
+
});
|
|
80594
|
+
|
|
80595
|
+
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadFormat.js
|
|
80596
|
+
var WebhookPayloadFormat;
|
|
80597
|
+
var init_WebhookPayloadFormat2 = __esm({
|
|
80598
|
+
"../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadFormat.js"() {
|
|
80599
|
+
"use strict";
|
|
80600
|
+
init_core2();
|
|
80601
|
+
init_WebhookPayloadBodySort2();
|
|
80602
|
+
init_WebhookPayloadComponent2();
|
|
80603
|
+
WebhookPayloadFormat = schemas_exports3.objectWithoutOptionalProperties({
|
|
80604
|
+
components: schemas_exports3.list(WebhookPayloadComponent2),
|
|
80605
|
+
delimiter: schemas_exports3.string(),
|
|
80606
|
+
bodySort: WebhookPayloadBodySort2.optional()
|
|
80607
|
+
});
|
|
80608
|
+
}
|
|
80609
|
+
});
|
|
80610
|
+
|
|
80572
80611
|
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookSignatureEncoding.js
|
|
80573
80612
|
var WebhookSignatureEncoding2;
|
|
80574
80613
|
var init_WebhookSignatureEncoding2 = __esm({
|
|
@@ -80614,6 +80653,7 @@ var init_AsymmetricKeySignatureVerification2 = __esm({
|
|
|
80614
80653
|
init_NameAndWireValueOrString3();
|
|
80615
80654
|
init_AsymmetricAlgorithm2();
|
|
80616
80655
|
init_AsymmetricKeySource2();
|
|
80656
|
+
init_WebhookPayloadFormat2();
|
|
80617
80657
|
init_WebhookSignatureEncoding2();
|
|
80618
80658
|
init_WebhookTimestampConfig2();
|
|
80619
80659
|
AsymmetricKeySignatureVerification = schemas_exports3.objectWithoutOptionalProperties({
|
|
@@ -80622,6 +80662,7 @@ var init_AsymmetricKeySignatureVerification2 = __esm({
|
|
|
80622
80662
|
encoding: WebhookSignatureEncoding2,
|
|
80623
80663
|
signaturePrefix: schemas_exports3.string().optional(),
|
|
80624
80664
|
keySource: AsymmetricKeySource2,
|
|
80665
|
+
payloadFormat: WebhookPayloadFormat.optional(),
|
|
80625
80666
|
timestamp: WebhookTimestampConfig.optional()
|
|
80626
80667
|
});
|
|
80627
80668
|
}
|
|
@@ -80637,42 +80678,6 @@ var init_HmacAlgorithm2 = __esm({
|
|
|
80637
80678
|
}
|
|
80638
80679
|
});
|
|
80639
80680
|
|
|
80640
|
-
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadBodySort.js
|
|
80641
|
-
var WebhookPayloadBodySort2;
|
|
80642
|
-
var init_WebhookPayloadBodySort2 = __esm({
|
|
80643
|
-
"../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadBodySort.js"() {
|
|
80644
|
-
"use strict";
|
|
80645
|
-
init_core2();
|
|
80646
|
-
WebhookPayloadBodySort2 = schemas_exports3.enum_(["ALPHABETICAL"]);
|
|
80647
|
-
}
|
|
80648
|
-
});
|
|
80649
|
-
|
|
80650
|
-
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadComponent.js
|
|
80651
|
-
var WebhookPayloadComponent2;
|
|
80652
|
-
var init_WebhookPayloadComponent2 = __esm({
|
|
80653
|
-
"../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadComponent.js"() {
|
|
80654
|
-
"use strict";
|
|
80655
|
-
init_core2();
|
|
80656
|
-
WebhookPayloadComponent2 = schemas_exports3.enum_(["BODY", "TIMESTAMP", "NOTIFICATION_URL", "MESSAGE_ID"]);
|
|
80657
|
-
}
|
|
80658
|
-
});
|
|
80659
|
-
|
|
80660
|
-
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadFormat.js
|
|
80661
|
-
var WebhookPayloadFormat;
|
|
80662
|
-
var init_WebhookPayloadFormat2 = __esm({
|
|
80663
|
-
"../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadFormat.js"() {
|
|
80664
|
-
"use strict";
|
|
80665
|
-
init_core2();
|
|
80666
|
-
init_WebhookPayloadBodySort2();
|
|
80667
|
-
init_WebhookPayloadComponent2();
|
|
80668
|
-
WebhookPayloadFormat = schemas_exports3.objectWithoutOptionalProperties({
|
|
80669
|
-
components: schemas_exports3.list(WebhookPayloadComponent2),
|
|
80670
|
-
delimiter: schemas_exports3.string(),
|
|
80671
|
-
bodySort: WebhookPayloadBodySort2.optional()
|
|
80672
|
-
});
|
|
80673
|
-
}
|
|
80674
|
-
});
|
|
80675
|
-
|
|
80676
80681
|
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/HmacSignatureVerification.js
|
|
80677
80682
|
var HmacSignatureVerification;
|
|
80678
80683
|
var init_HmacSignatureVerification2 = __esm({
|
|
@@ -137416,6 +137421,42 @@ var init_AsymmetricAlgorithm4 = __esm({
|
|
|
137416
137421
|
}
|
|
137417
137422
|
});
|
|
137418
137423
|
|
|
137424
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadBodySort.js
|
|
137425
|
+
var WebhookPayloadBodySort4;
|
|
137426
|
+
var init_WebhookPayloadBodySort4 = __esm({
|
|
137427
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadBodySort.js"() {
|
|
137428
|
+
"use strict";
|
|
137429
|
+
init_core7();
|
|
137430
|
+
WebhookPayloadBodySort4 = schemas_exports9.enum_(["alphabetical"]);
|
|
137431
|
+
}
|
|
137432
|
+
});
|
|
137433
|
+
|
|
137434
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadComponent.js
|
|
137435
|
+
var WebhookPayloadComponent4;
|
|
137436
|
+
var init_WebhookPayloadComponent4 = __esm({
|
|
137437
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadComponent.js"() {
|
|
137438
|
+
"use strict";
|
|
137439
|
+
init_core7();
|
|
137440
|
+
WebhookPayloadComponent4 = schemas_exports9.enum_(["body", "timestamp", "notification-url", "message-id"]);
|
|
137441
|
+
}
|
|
137442
|
+
});
|
|
137443
|
+
|
|
137444
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadFormat.js
|
|
137445
|
+
var WebhookPayloadFormat2;
|
|
137446
|
+
var init_WebhookPayloadFormat4 = __esm({
|
|
137447
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadFormat.js"() {
|
|
137448
|
+
"use strict";
|
|
137449
|
+
init_core7();
|
|
137450
|
+
init_WebhookPayloadBodySort4();
|
|
137451
|
+
init_WebhookPayloadComponent4();
|
|
137452
|
+
WebhookPayloadFormat2 = schemas_exports9.objectWithoutOptionalProperties({
|
|
137453
|
+
components: schemas_exports9.list(WebhookPayloadComponent4),
|
|
137454
|
+
delimiter: schemas_exports9.string().optional(),
|
|
137455
|
+
bodySort: WebhookPayloadBodySort4.optional()
|
|
137456
|
+
});
|
|
137457
|
+
}
|
|
137458
|
+
});
|
|
137459
|
+
|
|
137419
137460
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookSignatureEncoding.js
|
|
137420
137461
|
var WebhookSignatureEncoding4;
|
|
137421
137462
|
var init_WebhookSignatureEncoding4 = __esm({
|
|
@@ -137458,6 +137499,7 @@ var init_AsymmetricWebhookSignatureVerification2 = __esm({
|
|
|
137458
137499
|
"use strict";
|
|
137459
137500
|
init_core7();
|
|
137460
137501
|
init_AsymmetricAlgorithm4();
|
|
137502
|
+
init_WebhookPayloadFormat4();
|
|
137461
137503
|
init_WebhookSignatureEncoding4();
|
|
137462
137504
|
init_WebhookTimestamp2();
|
|
137463
137505
|
AsymmetricWebhookSignatureVerification = schemas_exports9.objectWithoutOptionalProperties({
|
|
@@ -137467,6 +137509,7 @@ var init_AsymmetricWebhookSignatureVerification2 = __esm({
|
|
|
137467
137509
|
signaturePrefix: schemas_exports9.string().optional(),
|
|
137468
137510
|
jwksUrl: schemas_exports9.string().optional(),
|
|
137469
137511
|
keyIdHeader: schemas_exports9.string().optional(),
|
|
137512
|
+
payloadFormat: WebhookPayloadFormat2.optional(),
|
|
137470
137513
|
timestamp: WebhookTimestamp.optional()
|
|
137471
137514
|
});
|
|
137472
137515
|
}
|
|
@@ -138426,42 +138469,6 @@ var init_GlobalSecurity2 = __esm({
|
|
|
138426
138469
|
}
|
|
138427
138470
|
});
|
|
138428
138471
|
|
|
138429
|
-
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadBodySort.js
|
|
138430
|
-
var WebhookPayloadBodySort4;
|
|
138431
|
-
var init_WebhookPayloadBodySort4 = __esm({
|
|
138432
|
-
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadBodySort.js"() {
|
|
138433
|
-
"use strict";
|
|
138434
|
-
init_core7();
|
|
138435
|
-
WebhookPayloadBodySort4 = schemas_exports9.enum_(["alphabetical"]);
|
|
138436
|
-
}
|
|
138437
|
-
});
|
|
138438
|
-
|
|
138439
|
-
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadComponent.js
|
|
138440
|
-
var WebhookPayloadComponent4;
|
|
138441
|
-
var init_WebhookPayloadComponent4 = __esm({
|
|
138442
|
-
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadComponent.js"() {
|
|
138443
|
-
"use strict";
|
|
138444
|
-
init_core7();
|
|
138445
|
-
WebhookPayloadComponent4 = schemas_exports9.enum_(["body", "timestamp", "notification-url", "message-id"]);
|
|
138446
|
-
}
|
|
138447
|
-
});
|
|
138448
|
-
|
|
138449
|
-
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadFormat.js
|
|
138450
|
-
var WebhookPayloadFormat2;
|
|
138451
|
-
var init_WebhookPayloadFormat4 = __esm({
|
|
138452
|
-
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadFormat.js"() {
|
|
138453
|
-
"use strict";
|
|
138454
|
-
init_core7();
|
|
138455
|
-
init_WebhookPayloadBodySort4();
|
|
138456
|
-
init_WebhookPayloadComponent4();
|
|
138457
|
-
WebhookPayloadFormat2 = schemas_exports9.objectWithoutOptionalProperties({
|
|
138458
|
-
components: schemas_exports9.list(WebhookPayloadComponent4),
|
|
138459
|
-
delimiter: schemas_exports9.string().optional(),
|
|
138460
|
-
bodySort: WebhookPayloadBodySort4.optional()
|
|
138461
|
-
});
|
|
138462
|
-
}
|
|
138463
|
-
});
|
|
138464
|
-
|
|
138465
138472
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookSignatureAlgorithm.js
|
|
138466
138473
|
var WebhookSignatureAlgorithm2;
|
|
138467
138474
|
var init_WebhookSignatureAlgorithm2 = __esm({
|
|
@@ -146032,6 +146039,7 @@ function convertSignatureVerification(signatureVerification) {
|
|
|
146032
146039
|
"signature-prefix": signatureVerification.signaturePrefix,
|
|
146033
146040
|
"jwks-url": signatureVerification.jwksUrl,
|
|
146034
146041
|
"key-id-header": signatureVerification.keyIdHeader,
|
|
146042
|
+
"payload-format": convertPayloadFormat(signatureVerification.payloadFormat),
|
|
146035
146043
|
timestamp: convertTimestamp(signatureVerification.timestamp)
|
|
146036
146044
|
};
|
|
146037
146045
|
default:
|
|
@@ -165270,6 +165278,7 @@ function convertSignatureSchema(extension4) {
|
|
|
165270
165278
|
signaturePrefix: extension4["signature-prefix"],
|
|
165271
165279
|
jwksUrl: extension4["jwks-url"],
|
|
165272
165280
|
keyIdHeader: extension4["key-id-header"],
|
|
165281
|
+
payloadFormat: convertPayloadFormat2(extension4["payload-format"]),
|
|
165273
165282
|
timestamp: convertTimestamp2(extension4.timestamp)
|
|
165274
165283
|
});
|
|
165275
165284
|
}
|
|
@@ -263778,6 +263787,7 @@ function maybeCreateAndStoreExample({ key: key2, displayName, request: request7,
|
|
|
263778
263787
|
if (!exampleStore.has(key2)) {
|
|
263779
263788
|
const example = {
|
|
263780
263789
|
displayName,
|
|
263790
|
+
contentType: void 0,
|
|
263781
263791
|
request: request7,
|
|
263782
263792
|
response,
|
|
263783
263793
|
codeSamples: void 0
|
|
@@ -273611,6 +273621,7 @@ function convertAsymmetricSignature({ asymmetric, file: file4 }) {
|
|
|
273611
273621
|
encoding: convertSignatureEncoding2(asymmetric.encoding),
|
|
273612
273622
|
signaturePrefix: asymmetric["signature-prefix"],
|
|
273613
273623
|
keySource: convertKeySource({ asymmetric, file: file4 }),
|
|
273624
|
+
payloadFormat: asymmetric["payload-format"] != null ? convertPayloadFormat3(asymmetric["payload-format"]) : void 0,
|
|
273614
273625
|
timestamp: convertTimestampConfig({ timestamp: asymmetric.timestamp, file: file4 })
|
|
273615
273626
|
};
|
|
273616
273627
|
}
|
|
@@ -323787,6 +323798,17 @@ var init_fern_schema = __esm({
|
|
|
323787
323798
|
],
|
|
323788
323799
|
description: "HTTP header containing the key ID for JWKS key selection."
|
|
323789
323800
|
},
|
|
323801
|
+
"payload-format": {
|
|
323802
|
+
oneOf: [
|
|
323803
|
+
{
|
|
323804
|
+
$ref: "#/definitions/webhooks.WebhookPayloadFormatSchema"
|
|
323805
|
+
},
|
|
323806
|
+
{
|
|
323807
|
+
type: "null"
|
|
323808
|
+
}
|
|
323809
|
+
],
|
|
323810
|
+
description: 'Describes how the signed payload is constructed.\nDefaults to body-only (components: [body], delimiter: "").'
|
|
323811
|
+
},
|
|
323790
323812
|
timestamp: {
|
|
323791
323813
|
oneOf: [
|
|
323792
323814
|
{
|
|
@@ -328092,6 +328114,17 @@ var init_package_yml_schema = __esm({
|
|
|
328092
328114
|
],
|
|
328093
328115
|
description: "HTTP header containing the key ID for JWKS key selection."
|
|
328094
328116
|
},
|
|
328117
|
+
"payload-format": {
|
|
328118
|
+
oneOf: [
|
|
328119
|
+
{
|
|
328120
|
+
$ref: "#/definitions/webhooks.WebhookPayloadFormatSchema"
|
|
328121
|
+
},
|
|
328122
|
+
{
|
|
328123
|
+
type: "null"
|
|
328124
|
+
}
|
|
328125
|
+
],
|
|
328126
|
+
description: 'Describes how the signed payload is constructed.\nDefaults to body-only (components: [body], delimiter: "").'
|
|
328127
|
+
},
|
|
328095
328128
|
timestamp: {
|
|
328096
328129
|
oneOf: [
|
|
328097
328130
|
{
|
|
@@ -350712,6 +350745,19 @@ var init_OperationConverter = __esm({
|
|
|
350712
350745
|
}
|
|
350713
350746
|
}
|
|
350714
350747
|
}
|
|
350748
|
+
if (Object.keys(fernExamples.examples).length === 0 && Object.keys(fernExamples.streamExamples).length === 0 && convertedRequestBodies != null && convertedRequestBodies.length > 1) {
|
|
350749
|
+
const perContentTypeExamples = this.synthesizeEndpointExamplesFromPerContentTypeRequestBodies({
|
|
350750
|
+
convertedRequestBodies,
|
|
350751
|
+
httpPath: path119,
|
|
350752
|
+
httpMethod,
|
|
350753
|
+
baseUrl
|
|
350754
|
+
});
|
|
350755
|
+
if (perContentTypeExamples != null) {
|
|
350756
|
+
for (const [name2, example] of Object.entries(perContentTypeExamples)) {
|
|
350757
|
+
fernExamples.examples[name2] = example;
|
|
350758
|
+
}
|
|
350759
|
+
}
|
|
350760
|
+
}
|
|
350715
350761
|
const endpointLevelSecuritySchemes = new Set(this.operation.security?.flatMap((securityRequirement) => Object.keys(securityRequirement)) ?? []);
|
|
350716
350762
|
const securityHeaders = this.authSchemeToHeaders(Array.from(endpointLevelSecuritySchemes));
|
|
350717
350763
|
if (securityHeaders.length > 0) {
|
|
@@ -351235,6 +351281,7 @@ var init_OperationConverter = __esm({
|
|
|
351235
351281
|
if (resolvedValue != null) {
|
|
351236
351282
|
result[name2] = {
|
|
351237
351283
|
displayName: void 0,
|
|
351284
|
+
contentType: void 0,
|
|
351238
351285
|
request: {
|
|
351239
351286
|
docs: void 0,
|
|
351240
351287
|
endpoint: {
|
|
@@ -351298,6 +351345,104 @@ var init_OperationConverter = __esm({
|
|
|
351298
351345
|
}
|
|
351299
351346
|
return void 0;
|
|
351300
351347
|
}
|
|
351348
|
+
/**
|
|
351349
|
+
* Synthesizes endpoint-level v2Examples from per-content-type request body
|
|
351350
|
+
* examples that have already been extracted by the RequestBodyConverter.
|
|
351351
|
+
*
|
|
351352
|
+
* This handles the case where multiple content types (e.g. application/json
|
|
351353
|
+
* and application/ld+json) reference the same schema but have distinct
|
|
351354
|
+
* per-content-type examples. The RequestBodyConverter correctly extracts
|
|
351355
|
+
* these into each body's v2Examples, but they need to be elevated to
|
|
351356
|
+
* endpoint-level examples (tagged with contentType) for docs rendering.
|
|
351357
|
+
*/
|
|
351358
|
+
synthesizeEndpointExamplesFromPerContentTypeRequestBodies({ convertedRequestBodies, httpPath, httpMethod, baseUrl }) {
|
|
351359
|
+
const result = {};
|
|
351360
|
+
const responseExamplesByContentType = this.extractNativeResponseExamplesByContentType();
|
|
351361
|
+
for (const convertedBody of convertedRequestBodies) {
|
|
351362
|
+
const body = convertedBody.requestBody;
|
|
351363
|
+
const bodyContentType = body.contentType;
|
|
351364
|
+
const bodyV2Examples = body.v2Examples;
|
|
351365
|
+
if (bodyV2Examples == null) {
|
|
351366
|
+
continue;
|
|
351367
|
+
}
|
|
351368
|
+
const userExamples = bodyV2Examples.userSpecifiedExamples;
|
|
351369
|
+
if (Object.keys(userExamples).length === 0) {
|
|
351370
|
+
continue;
|
|
351371
|
+
}
|
|
351372
|
+
const matchedResponse = bodyContentType != null ? responseExamplesByContentType.get(bodyContentType) : void 0;
|
|
351373
|
+
for (const [exampleName, exampleValue] of Object.entries(userExamples)) {
|
|
351374
|
+
const key2 = convertedRequestBodies.length > 1 && bodyContentType != null ? `${exampleName} (${bodyContentType})` : exampleName;
|
|
351375
|
+
result[key2] = {
|
|
351376
|
+
displayName: convertedRequestBodies.length > 1 ? key2 : void 0,
|
|
351377
|
+
contentType: bodyContentType ?? void 0,
|
|
351378
|
+
request: {
|
|
351379
|
+
docs: void 0,
|
|
351380
|
+
endpoint: {
|
|
351381
|
+
method: httpMethod,
|
|
351382
|
+
path: this.buildExamplePath(httpPath, {})
|
|
351383
|
+
},
|
|
351384
|
+
baseUrl: void 0,
|
|
351385
|
+
environment: baseUrl,
|
|
351386
|
+
auth: void 0,
|
|
351387
|
+
pathParameters: {},
|
|
351388
|
+
queryParameters: {},
|
|
351389
|
+
headers: {},
|
|
351390
|
+
requestBody: exampleValue
|
|
351391
|
+
},
|
|
351392
|
+
response: matchedResponse ?? this.extractNativeResponseExample() ?? void 0,
|
|
351393
|
+
codeSamples: void 0
|
|
351394
|
+
};
|
|
351395
|
+
}
|
|
351396
|
+
}
|
|
351397
|
+
return Object.keys(result).length > 0 ? result : void 0;
|
|
351398
|
+
}
|
|
351399
|
+
/**
|
|
351400
|
+
* Extracts native response examples grouped by content type from the
|
|
351401
|
+
* operation's successful (2xx) responses. Used by
|
|
351402
|
+
* synthesizeEndpointExamplesFromPerContentTypeRequestBodies to match
|
|
351403
|
+
* response examples to their corresponding request content types.
|
|
351404
|
+
*/
|
|
351405
|
+
extractNativeResponseExamplesByContentType() {
|
|
351406
|
+
const responsesByContentType = /* @__PURE__ */ new Map();
|
|
351407
|
+
if (this.operation.responses == null) {
|
|
351408
|
+
return responsesByContentType;
|
|
351409
|
+
}
|
|
351410
|
+
for (const [statusCode, response] of Object.entries(this.operation.responses)) {
|
|
351411
|
+
const statusCodeNum = parseInt(statusCode);
|
|
351412
|
+
if (isNaN(statusCodeNum) || statusCodeNum < 200 || statusCodeNum >= 300) {
|
|
351413
|
+
continue;
|
|
351414
|
+
}
|
|
351415
|
+
const resolvedResponse = this.context.resolveMaybeReference({
|
|
351416
|
+
schemaOrReference: response,
|
|
351417
|
+
breadcrumbs: [...this.breadcrumbs, "responses", statusCode]
|
|
351418
|
+
});
|
|
351419
|
+
if (resolvedResponse?.content == null) {
|
|
351420
|
+
continue;
|
|
351421
|
+
}
|
|
351422
|
+
for (const [responseContentType, responseMediaType] of Object.entries(resolvedResponse.content)) {
|
|
351423
|
+
if (responsesByContentType.has(responseContentType)) {
|
|
351424
|
+
continue;
|
|
351425
|
+
}
|
|
351426
|
+
const namedExamples = this.context.getNamedExamplesFromMediaTypeObject({
|
|
351427
|
+
mediaTypeObject: responseMediaType,
|
|
351428
|
+
breadcrumbs: [...this.breadcrumbs, "responses", statusCode],
|
|
351429
|
+
defaultExampleName: "Example"
|
|
351430
|
+
});
|
|
351431
|
+
for (const [, example] of namedExamples) {
|
|
351432
|
+
const resolvedValue = this.context.resolveExampleWithValue(example);
|
|
351433
|
+
if (resolvedValue != null) {
|
|
351434
|
+
responsesByContentType.set(responseContentType, {
|
|
351435
|
+
docs: void 0,
|
|
351436
|
+
statusCode: statusCodeNum,
|
|
351437
|
+
body: api_exports.V2HttpEndpointResponseBody.json(resolvedValue)
|
|
351438
|
+
});
|
|
351439
|
+
break;
|
|
351440
|
+
}
|
|
351441
|
+
}
|
|
351442
|
+
}
|
|
351443
|
+
}
|
|
351444
|
+
return responsesByContentType;
|
|
351445
|
+
}
|
|
351301
351446
|
convertStreamConditionExamples({ httpPath, httpMethod, baseUrl, fernExamples }) {
|
|
351302
351447
|
const filteredJsonExamples = fernExamples.filter((example) => !(example.response != null && "stream" in example.response));
|
|
351303
351448
|
const filteredStreamExamples = fernExamples.filter((example) => example.response != null && "stream" in example.response);
|
|
@@ -351321,6 +351466,7 @@ var init_OperationConverter = __esm({
|
|
|
351321
351466
|
this.getExampleName({ example, exampleIndex }),
|
|
351322
351467
|
{
|
|
351323
351468
|
displayName: void 0,
|
|
351469
|
+
contentType: void 0,
|
|
351324
351470
|
request: example.request != null || example["path-parameters"] != null || example["query-parameters"] != null || example.headers != null ? {
|
|
351325
351471
|
docs: void 0,
|
|
351326
351472
|
endpoint: {
|
|
@@ -352776,6 +352922,7 @@ var init_MethodConverter = __esm({
|
|
|
352776
352922
|
}
|
|
352777
352923
|
examples[exampleName] = {
|
|
352778
352924
|
displayName: void 0,
|
|
352925
|
+
contentType: void 0,
|
|
352779
352926
|
request: {
|
|
352780
352927
|
docs: void 0,
|
|
352781
352928
|
endpoint: {
|
|
@@ -686972,7 +687119,7 @@ var AccessTokenPosthogManager = class {
|
|
|
686972
687119
|
properties: {
|
|
686973
687120
|
...event,
|
|
686974
687121
|
...event.properties,
|
|
686975
|
-
version: "5.23.3-
|
|
687122
|
+
version: "5.23.3-1067-g9d74173e6b1",
|
|
686976
687123
|
usingAccessToken: true,
|
|
686977
687124
|
...getRunIdProperties()
|
|
686978
687125
|
}
|
|
@@ -687038,7 +687185,7 @@ var UserPosthogManager = class {
|
|
|
687038
687185
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
687039
687186
|
event: "CLI",
|
|
687040
687187
|
properties: {
|
|
687041
|
-
version: "5.23.3-
|
|
687188
|
+
version: "5.23.3-1067-g9d74173e6b1",
|
|
687042
687189
|
...event,
|
|
687043
687190
|
...event.properties,
|
|
687044
687191
|
usingAccessToken: false,
|
|
@@ -868133,7 +868280,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
868133
868280
|
var LOGS_FOLDER_NAME = "logs";
|
|
868134
868281
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
868135
868282
|
function getCliSource() {
|
|
868136
|
-
const version7 = "5.23.3-
|
|
868283
|
+
const version7 = "5.23.3-1067-g9d74173e6b1";
|
|
868137
868284
|
return `cli@${version7}`;
|
|
868138
868285
|
}
|
|
868139
868286
|
var DebugLogger = class {
|
|
@@ -900614,7 +900761,7 @@ var LegacyDocsPublisher = class {
|
|
|
900614
900761
|
previewId,
|
|
900615
900762
|
disableTemplates: void 0,
|
|
900616
900763
|
skipUpload,
|
|
900617
|
-
cliVersion: "5.23.3-
|
|
900764
|
+
cliVersion: "5.23.3-1067-g9d74173e6b1",
|
|
900618
900765
|
loginCommand: "fern auth login"
|
|
900619
900766
|
});
|
|
900620
900767
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -964455,6 +964602,7 @@ init_lib9();
|
|
|
964455
964602
|
function initializeEmptyServiceExample() {
|
|
964456
964603
|
return {
|
|
964457
964604
|
displayName: void 0,
|
|
964605
|
+
contentType: void 0,
|
|
964458
964606
|
request: {
|
|
964459
964607
|
endpoint: {
|
|
964460
964608
|
method: V2EndpointLocationHttpMethod.Post,
|
|
@@ -966883,7 +967031,7 @@ function getAutomationContextFromEnv() {
|
|
|
966883
967031
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
966884
967032
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
966885
967033
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
966886
|
-
cli_version: "5.23.3-
|
|
967034
|
+
cli_version: "5.23.3-1067-g9d74173e6b1"
|
|
966887
967035
|
};
|
|
966888
967036
|
}
|
|
966889
967037
|
function isAutomationMode() {
|
|
@@ -967715,7 +967863,7 @@ var CliContext = class _CliContext {
|
|
|
967715
967863
|
if (false) {
|
|
967716
967864
|
this.logger.error("CLI_VERSION is not defined");
|
|
967717
967865
|
}
|
|
967718
|
-
return "5.23.3-
|
|
967866
|
+
return "5.23.3-1067-g9d74173e6b1";
|
|
967719
967867
|
}
|
|
967720
967868
|
getCliName() {
|
|
967721
967869
|
if (false) {
|
package/package.json
CHANGED