@fern-api/fern-api-dev 5.73.0 → 5.74.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 +753 -28
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -55576,6 +55576,41 @@ var init_HmacSignatureSchema = __esm({
|
|
|
55576
55576
|
}
|
|
55577
55577
|
});
|
|
55578
55578
|
|
|
55579
|
+
// ../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookBodyHashAlgorithmSchema.js
|
|
55580
|
+
var WebhookBodyHashAlgorithmSchema;
|
|
55581
|
+
var init_WebhookBodyHashAlgorithmSchema = __esm({
|
|
55582
|
+
"../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookBodyHashAlgorithmSchema.js"() {
|
|
55583
|
+
"use strict";
|
|
55584
|
+
WebhookBodyHashAlgorithmSchema = {
|
|
55585
|
+
Sha256: "sha256",
|
|
55586
|
+
Sha1: "sha1",
|
|
55587
|
+
Sha384: "sha384",
|
|
55588
|
+
Sha512: "sha512"
|
|
55589
|
+
};
|
|
55590
|
+
}
|
|
55591
|
+
});
|
|
55592
|
+
|
|
55593
|
+
// ../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookBodyHashBindingSchema.js
|
|
55594
|
+
var init_WebhookBodyHashBindingSchema = __esm({
|
|
55595
|
+
"../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookBodyHashBindingSchema.js"() {
|
|
55596
|
+
"use strict";
|
|
55597
|
+
}
|
|
55598
|
+
});
|
|
55599
|
+
|
|
55600
|
+
// ../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookBodyHashLocationSchema.js
|
|
55601
|
+
var init_WebhookBodyHashLocationSchema = __esm({
|
|
55602
|
+
"../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookBodyHashLocationSchema.js"() {
|
|
55603
|
+
"use strict";
|
|
55604
|
+
}
|
|
55605
|
+
});
|
|
55606
|
+
|
|
55607
|
+
// ../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookBodyHashQueryParameterLocationSchema.js
|
|
55608
|
+
var init_WebhookBodyHashQueryParameterLocationSchema = __esm({
|
|
55609
|
+
"../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookBodyHashQueryParameterLocationSchema.js"() {
|
|
55610
|
+
"use strict";
|
|
55611
|
+
}
|
|
55612
|
+
});
|
|
55613
|
+
|
|
55579
55614
|
// ../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookInlinedPayloadSchema.js
|
|
55580
55615
|
var init_WebhookInlinedPayloadSchema = __esm({
|
|
55581
55616
|
"../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookInlinedPayloadSchema.js"() {
|
|
@@ -55708,6 +55743,10 @@ var init_types20 = __esm({
|
|
|
55708
55743
|
init_AsymmetricAlgorithmSchema();
|
|
55709
55744
|
init_AsymmetricSignatureSchema();
|
|
55710
55745
|
init_HmacSignatureSchema();
|
|
55746
|
+
init_WebhookBodyHashAlgorithmSchema();
|
|
55747
|
+
init_WebhookBodyHashBindingSchema();
|
|
55748
|
+
init_WebhookBodyHashLocationSchema();
|
|
55749
|
+
init_WebhookBodyHashQueryParameterLocationSchema();
|
|
55711
55750
|
init_WebhookInlinedPayloadSchema();
|
|
55712
55751
|
init_WebhookMethodSchema();
|
|
55713
55752
|
init_WebhookPayloadBodySortSchema();
|
|
@@ -55728,6 +55767,7 @@ var init_types20 = __esm({
|
|
|
55728
55767
|
var webhooks_exports = {};
|
|
55729
55768
|
__export(webhooks_exports, {
|
|
55730
55769
|
AsymmetricAlgorithmSchema: () => AsymmetricAlgorithmSchema,
|
|
55770
|
+
WebhookBodyHashAlgorithmSchema: () => WebhookBodyHashAlgorithmSchema,
|
|
55731
55771
|
WebhookMethodSchema: () => WebhookMethodSchema,
|
|
55732
55772
|
WebhookPayloadBodySortSchema: () => WebhookPayloadBodySortSchema,
|
|
55733
55773
|
WebhookPayloadComponentSchema: () => WebhookPayloadComponentSchema,
|
|
@@ -60323,6 +60363,61 @@ var init_AsymmetricSignatureSchema2 = __esm({
|
|
|
60323
60363
|
}
|
|
60324
60364
|
});
|
|
60325
60365
|
|
|
60366
|
+
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookBodyHashAlgorithmSchema.js
|
|
60367
|
+
var WebhookBodyHashAlgorithmSchema2;
|
|
60368
|
+
var init_WebhookBodyHashAlgorithmSchema2 = __esm({
|
|
60369
|
+
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookBodyHashAlgorithmSchema.js"() {
|
|
60370
|
+
"use strict";
|
|
60371
|
+
init_core();
|
|
60372
|
+
WebhookBodyHashAlgorithmSchema2 = schemas_exports.enum_(["sha256", "sha1", "sha384", "sha512"]);
|
|
60373
|
+
}
|
|
60374
|
+
});
|
|
60375
|
+
|
|
60376
|
+
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookBodyHashQueryParameterLocationSchema.js
|
|
60377
|
+
var WebhookBodyHashQueryParameterLocationSchema;
|
|
60378
|
+
var init_WebhookBodyHashQueryParameterLocationSchema2 = __esm({
|
|
60379
|
+
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookBodyHashQueryParameterLocationSchema.js"() {
|
|
60380
|
+
"use strict";
|
|
60381
|
+
init_core();
|
|
60382
|
+
WebhookBodyHashQueryParameterLocationSchema = schemas_exports.object({
|
|
60383
|
+
name: schemas_exports.string()
|
|
60384
|
+
});
|
|
60385
|
+
}
|
|
60386
|
+
});
|
|
60387
|
+
|
|
60388
|
+
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookBodyHashLocationSchema.js
|
|
60389
|
+
var WebhookBodyHashLocationSchema;
|
|
60390
|
+
var init_WebhookBodyHashLocationSchema2 = __esm({
|
|
60391
|
+
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookBodyHashLocationSchema.js"() {
|
|
60392
|
+
"use strict";
|
|
60393
|
+
init_core();
|
|
60394
|
+
init_WebhookBodyHashQueryParameterLocationSchema2();
|
|
60395
|
+
WebhookBodyHashLocationSchema = schemas_exports.union("type", {
|
|
60396
|
+
"query-parameter": WebhookBodyHashQueryParameterLocationSchema
|
|
60397
|
+
}).transform({
|
|
60398
|
+
transform: (value2) => value2,
|
|
60399
|
+
untransform: (value2) => value2
|
|
60400
|
+
});
|
|
60401
|
+
}
|
|
60402
|
+
});
|
|
60403
|
+
|
|
60404
|
+
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookBodyHashBindingSchema.js
|
|
60405
|
+
var WebhookBodyHashBindingSchema;
|
|
60406
|
+
var init_WebhookBodyHashBindingSchema2 = __esm({
|
|
60407
|
+
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookBodyHashBindingSchema.js"() {
|
|
60408
|
+
"use strict";
|
|
60409
|
+
init_core();
|
|
60410
|
+
init_WebhookBodyHashAlgorithmSchema2();
|
|
60411
|
+
init_WebhookBodyHashLocationSchema2();
|
|
60412
|
+
init_WebhookSignatureEncodingSchema2();
|
|
60413
|
+
WebhookBodyHashBindingSchema = schemas_exports.object({
|
|
60414
|
+
algorithm: WebhookBodyHashAlgorithmSchema2,
|
|
60415
|
+
encoding: WebhookSignatureEncodingSchema2.optional(),
|
|
60416
|
+
location: WebhookBodyHashLocationSchema
|
|
60417
|
+
});
|
|
60418
|
+
}
|
|
60419
|
+
});
|
|
60420
|
+
|
|
60326
60421
|
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookSignatureAlgorithmSchema.js
|
|
60327
60422
|
var WebhookSignatureAlgorithmSchema2;
|
|
60328
60423
|
var init_WebhookSignatureAlgorithmSchema2 = __esm({
|
|
@@ -60339,6 +60434,7 @@ var init_HmacSignatureSchema2 = __esm({
|
|
|
60339
60434
|
"../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/HmacSignatureSchema.js"() {
|
|
60340
60435
|
"use strict";
|
|
60341
60436
|
init_core();
|
|
60437
|
+
init_WebhookBodyHashBindingSchema2();
|
|
60342
60438
|
init_WebhookPayloadFormatSchema2();
|
|
60343
60439
|
init_WebhookSignatureAlgorithmSchema2();
|
|
60344
60440
|
init_WebhookSignatureEncodingSchema2();
|
|
@@ -60349,7 +60445,8 @@ var init_HmacSignatureSchema2 = __esm({
|
|
|
60349
60445
|
encoding: WebhookSignatureEncodingSchema2.optional(),
|
|
60350
60446
|
"signature-prefix": schemas_exports.string().optional(),
|
|
60351
60447
|
"payload-format": WebhookPayloadFormatSchema.optional(),
|
|
60352
|
-
timestamp: WebhookTimestampSchema.optional()
|
|
60448
|
+
timestamp: WebhookTimestampSchema.optional(),
|
|
60449
|
+
"body-hash-binding": WebhookBodyHashBindingSchema.optional()
|
|
60353
60450
|
});
|
|
60354
60451
|
}
|
|
60355
60452
|
});
|
|
@@ -61240,6 +61337,10 @@ var init_types40 = __esm({
|
|
|
61240
61337
|
init_AsymmetricAlgorithmSchema2();
|
|
61241
61338
|
init_AsymmetricSignatureSchema2();
|
|
61242
61339
|
init_HmacSignatureSchema2();
|
|
61340
|
+
init_WebhookBodyHashAlgorithmSchema2();
|
|
61341
|
+
init_WebhookBodyHashBindingSchema2();
|
|
61342
|
+
init_WebhookBodyHashLocationSchema2();
|
|
61343
|
+
init_WebhookBodyHashQueryParameterLocationSchema2();
|
|
61243
61344
|
init_WebhookInlinedPayloadSchema2();
|
|
61244
61345
|
init_WebhookMethodSchema2();
|
|
61245
61346
|
init_WebhookPayloadBodySortSchema2();
|
|
@@ -61262,6 +61363,10 @@ __export(webhooks_exports2, {
|
|
|
61262
61363
|
AsymmetricAlgorithmSchema: () => AsymmetricAlgorithmSchema2,
|
|
61263
61364
|
AsymmetricSignatureSchema: () => AsymmetricSignatureSchema,
|
|
61264
61365
|
HmacSignatureSchema: () => HmacSignatureSchema,
|
|
61366
|
+
WebhookBodyHashAlgorithmSchema: () => WebhookBodyHashAlgorithmSchema2,
|
|
61367
|
+
WebhookBodyHashBindingSchema: () => WebhookBodyHashBindingSchema,
|
|
61368
|
+
WebhookBodyHashLocationSchema: () => WebhookBodyHashLocationSchema,
|
|
61369
|
+
WebhookBodyHashQueryParameterLocationSchema: () => WebhookBodyHashQueryParameterLocationSchema,
|
|
61265
61370
|
WebhookInlinedPayloadSchema: () => WebhookInlinedPayloadSchema,
|
|
61266
61371
|
WebhookMethodSchema: () => WebhookMethodSchema2,
|
|
61267
61372
|
WebhookPayloadBodySortSchema: () => WebhookPayloadBodySortSchema2,
|
|
@@ -61523,6 +61628,10 @@ __export(serialization_exports, {
|
|
|
61523
61628
|
WebSocketChannelReferencedMessageSchema: () => WebSocketChannelReferencedMessageSchema,
|
|
61524
61629
|
WebSocketChannelSchema: () => WebSocketChannelSchema,
|
|
61525
61630
|
WebSocketOrigin: () => WebSocketOrigin2,
|
|
61631
|
+
WebhookBodyHashAlgorithmSchema: () => WebhookBodyHashAlgorithmSchema2,
|
|
61632
|
+
WebhookBodyHashBindingSchema: () => WebhookBodyHashBindingSchema,
|
|
61633
|
+
WebhookBodyHashLocationSchema: () => WebhookBodyHashLocationSchema,
|
|
61634
|
+
WebhookBodyHashQueryParameterLocationSchema: () => WebhookBodyHashQueryParameterLocationSchema,
|
|
61526
61635
|
WebhookInlinedPayloadSchema: () => WebhookInlinedPayloadSchema,
|
|
61527
61636
|
WebhookMethodSchema: () => WebhookMethodSchema2,
|
|
61528
61637
|
WebhookPayloadBodySortSchema: () => WebhookPayloadBodySortSchema2,
|
|
@@ -61653,6 +61762,7 @@ __export(schemas_exports2, {
|
|
|
61653
61762
|
SupportedSdkLanguageSchema: () => SupportedSdkLanguageSchema,
|
|
61654
61763
|
UnionDiscriminatorContext: () => UnionDiscriminatorContext,
|
|
61655
61764
|
WebSocketOrigin: () => WebSocketOrigin,
|
|
61765
|
+
WebhookBodyHashAlgorithmSchema: () => WebhookBodyHashAlgorithmSchema,
|
|
61656
61766
|
WebhookMethodSchema: () => WebhookMethodSchema,
|
|
61657
61767
|
WebhookPayloadBodySortSchema: () => WebhookPayloadBodySortSchema,
|
|
61658
61768
|
WebhookPayloadComponentSchema: () => WebhookPayloadComponentSchema,
|
|
@@ -70048,6 +70158,79 @@ var init_Webhook = __esm({
|
|
|
70048
70158
|
}
|
|
70049
70159
|
});
|
|
70050
70160
|
|
|
70161
|
+
// ../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookBodyHashAlgorithm.js
|
|
70162
|
+
var WebhookBodyHashAlgorithmValues, WebhookBodyHashAlgorithm;
|
|
70163
|
+
var init_WebhookBodyHashAlgorithm = __esm({
|
|
70164
|
+
"../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookBodyHashAlgorithm.js"() {
|
|
70165
|
+
"use strict";
|
|
70166
|
+
WebhookBodyHashAlgorithmValues = {
|
|
70167
|
+
Sha256: "SHA256",
|
|
70168
|
+
Sha1: "SHA1",
|
|
70169
|
+
Sha384: "SHA384",
|
|
70170
|
+
Sha512: "SHA512"
|
|
70171
|
+
};
|
|
70172
|
+
WebhookBodyHashAlgorithm = {
|
|
70173
|
+
...WebhookBodyHashAlgorithmValues,
|
|
70174
|
+
_visit: (value2, visitor) => {
|
|
70175
|
+
switch (value2) {
|
|
70176
|
+
case WebhookBodyHashAlgorithm.Sha256:
|
|
70177
|
+
return visitor.sha256();
|
|
70178
|
+
case WebhookBodyHashAlgorithm.Sha1:
|
|
70179
|
+
return visitor.sha1();
|
|
70180
|
+
case WebhookBodyHashAlgorithm.Sha384:
|
|
70181
|
+
return visitor.sha384();
|
|
70182
|
+
case WebhookBodyHashAlgorithm.Sha512:
|
|
70183
|
+
return visitor.sha512();
|
|
70184
|
+
default:
|
|
70185
|
+
return visitor._other();
|
|
70186
|
+
}
|
|
70187
|
+
}
|
|
70188
|
+
};
|
|
70189
|
+
}
|
|
70190
|
+
});
|
|
70191
|
+
|
|
70192
|
+
// ../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookBodyHashBinding.js
|
|
70193
|
+
var init_WebhookBodyHashBinding = __esm({
|
|
70194
|
+
"../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookBodyHashBinding.js"() {
|
|
70195
|
+
"use strict";
|
|
70196
|
+
}
|
|
70197
|
+
});
|
|
70198
|
+
|
|
70199
|
+
// ../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookBodyHashLocation.js
|
|
70200
|
+
var WebhookBodyHashLocation;
|
|
70201
|
+
var init_WebhookBodyHashLocation = __esm({
|
|
70202
|
+
"../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookBodyHashLocation.js"() {
|
|
70203
|
+
"use strict";
|
|
70204
|
+
init_api2();
|
|
70205
|
+
WebhookBodyHashLocation = {
|
|
70206
|
+
queryParameter: (value2) => {
|
|
70207
|
+
return {
|
|
70208
|
+
...value2,
|
|
70209
|
+
type: "queryParameter",
|
|
70210
|
+
_visit: function(visitor) {
|
|
70211
|
+
return WebhookBodyHashLocation._visit(this, visitor);
|
|
70212
|
+
}
|
|
70213
|
+
};
|
|
70214
|
+
},
|
|
70215
|
+
_visit: (value2, visitor) => {
|
|
70216
|
+
switch (value2.type) {
|
|
70217
|
+
case "queryParameter":
|
|
70218
|
+
return visitor.queryParameter(value2);
|
|
70219
|
+
default:
|
|
70220
|
+
return visitor._other(value2);
|
|
70221
|
+
}
|
|
70222
|
+
}
|
|
70223
|
+
};
|
|
70224
|
+
}
|
|
70225
|
+
});
|
|
70226
|
+
|
|
70227
|
+
// ../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookBodyHashQueryParameterLocation.js
|
|
70228
|
+
var init_WebhookBodyHashQueryParameterLocation = __esm({
|
|
70229
|
+
"../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookBodyHashQueryParameterLocation.js"() {
|
|
70230
|
+
"use strict";
|
|
70231
|
+
}
|
|
70232
|
+
});
|
|
70233
|
+
|
|
70051
70234
|
// ../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookGroup.js
|
|
70052
70235
|
var init_WebhookGroup = __esm({
|
|
70053
70236
|
"../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookGroup.js"() {
|
|
@@ -70315,6 +70498,10 @@ var init_types69 = __esm({
|
|
|
70315
70498
|
init_JwksKeySource();
|
|
70316
70499
|
init_StaticKeySource();
|
|
70317
70500
|
init_Webhook();
|
|
70501
|
+
init_WebhookBodyHashAlgorithm();
|
|
70502
|
+
init_WebhookBodyHashBinding();
|
|
70503
|
+
init_WebhookBodyHashLocation();
|
|
70504
|
+
init_WebhookBodyHashQueryParameterLocation();
|
|
70318
70505
|
init_WebhookGroup();
|
|
70319
70506
|
init_WebhookHttpMethod();
|
|
70320
70507
|
init_WebhookName();
|
|
@@ -70336,6 +70523,8 @@ __export(webhooks_exports3, {
|
|
|
70336
70523
|
AsymmetricAlgorithm: () => AsymmetricAlgorithm,
|
|
70337
70524
|
AsymmetricKeySource: () => AsymmetricKeySource,
|
|
70338
70525
|
HmacAlgorithm: () => HmacAlgorithm,
|
|
70526
|
+
WebhookBodyHashAlgorithm: () => WebhookBodyHashAlgorithm,
|
|
70527
|
+
WebhookBodyHashLocation: () => WebhookBodyHashLocation,
|
|
70339
70528
|
WebhookHttpMethod: () => WebhookHttpMethod,
|
|
70340
70529
|
WebhookPayload: () => WebhookPayload,
|
|
70341
70530
|
WebhookPayloadBodySort: () => WebhookPayloadBodySort,
|
|
@@ -70660,6 +70849,8 @@ __export(api_exports, {
|
|
|
70660
70849
|
V2HttpEndpointResponseBody: () => V2HttpEndpointResponseBody,
|
|
70661
70850
|
WebSocketMessageBody: () => WebSocketMessageBody,
|
|
70662
70851
|
WebSocketMessageOrigin: () => WebSocketMessageOrigin,
|
|
70852
|
+
WebhookBodyHashAlgorithm: () => WebhookBodyHashAlgorithm,
|
|
70853
|
+
WebhookBodyHashLocation: () => WebhookBodyHashLocation,
|
|
70663
70854
|
WebhookHttpMethod: () => WebhookHttpMethod,
|
|
70664
70855
|
WebhookPayload: () => WebhookPayload,
|
|
70665
70856
|
WebhookPayloadBodySort: () => WebhookPayloadBodySort,
|
|
@@ -80968,6 +81159,69 @@ var init_HmacAlgorithm2 = __esm({
|
|
|
80968
81159
|
}
|
|
80969
81160
|
});
|
|
80970
81161
|
|
|
81162
|
+
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookBodyHashAlgorithm.js
|
|
81163
|
+
var WebhookBodyHashAlgorithm2;
|
|
81164
|
+
var init_WebhookBodyHashAlgorithm2 = __esm({
|
|
81165
|
+
"../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookBodyHashAlgorithm.js"() {
|
|
81166
|
+
"use strict";
|
|
81167
|
+
init_core2();
|
|
81168
|
+
WebhookBodyHashAlgorithm2 = schemas_exports3.enum_(["SHA256", "SHA1", "SHA384", "SHA512"]);
|
|
81169
|
+
}
|
|
81170
|
+
});
|
|
81171
|
+
|
|
81172
|
+
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookBodyHashQueryParameterLocation.js
|
|
81173
|
+
var WebhookBodyHashQueryParameterLocation;
|
|
81174
|
+
var init_WebhookBodyHashQueryParameterLocation2 = __esm({
|
|
81175
|
+
"../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookBodyHashQueryParameterLocation.js"() {
|
|
81176
|
+
"use strict";
|
|
81177
|
+
init_core2();
|
|
81178
|
+
WebhookBodyHashQueryParameterLocation = schemas_exports3.objectWithoutOptionalProperties({
|
|
81179
|
+
name: schemas_exports3.string()
|
|
81180
|
+
});
|
|
81181
|
+
}
|
|
81182
|
+
});
|
|
81183
|
+
|
|
81184
|
+
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookBodyHashLocation.js
|
|
81185
|
+
var WebhookBodyHashLocation2;
|
|
81186
|
+
var init_WebhookBodyHashLocation2 = __esm({
|
|
81187
|
+
"../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookBodyHashLocation.js"() {
|
|
81188
|
+
"use strict";
|
|
81189
|
+
init_api2();
|
|
81190
|
+
init_core2();
|
|
81191
|
+
init_WebhookBodyHashQueryParameterLocation2();
|
|
81192
|
+
WebhookBodyHashLocation2 = schemas_exports3.union("type", {
|
|
81193
|
+
queryParameter: WebhookBodyHashQueryParameterLocation
|
|
81194
|
+
}).transform({
|
|
81195
|
+
transform: (value2) => {
|
|
81196
|
+
switch (value2.type) {
|
|
81197
|
+
case "queryParameter":
|
|
81198
|
+
return WebhookBodyHashLocation.queryParameter(value2);
|
|
81199
|
+
default:
|
|
81200
|
+
return value2;
|
|
81201
|
+
}
|
|
81202
|
+
},
|
|
81203
|
+
untransform: ({ _visit, ...value2 }) => value2
|
|
81204
|
+
});
|
|
81205
|
+
}
|
|
81206
|
+
});
|
|
81207
|
+
|
|
81208
|
+
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookBodyHashBinding.js
|
|
81209
|
+
var WebhookBodyHashBinding;
|
|
81210
|
+
var init_WebhookBodyHashBinding2 = __esm({
|
|
81211
|
+
"../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookBodyHashBinding.js"() {
|
|
81212
|
+
"use strict";
|
|
81213
|
+
init_core2();
|
|
81214
|
+
init_WebhookBodyHashAlgorithm2();
|
|
81215
|
+
init_WebhookBodyHashLocation2();
|
|
81216
|
+
init_WebhookSignatureEncoding2();
|
|
81217
|
+
WebhookBodyHashBinding = schemas_exports3.objectWithoutOptionalProperties({
|
|
81218
|
+
algorithm: WebhookBodyHashAlgorithm2,
|
|
81219
|
+
encoding: WebhookSignatureEncoding2,
|
|
81220
|
+
location: WebhookBodyHashLocation2
|
|
81221
|
+
});
|
|
81222
|
+
}
|
|
81223
|
+
});
|
|
81224
|
+
|
|
80971
81225
|
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/HmacSignatureVerification.js
|
|
80972
81226
|
var HmacSignatureVerification;
|
|
80973
81227
|
var init_HmacSignatureVerification2 = __esm({
|
|
@@ -80976,6 +81230,7 @@ var init_HmacSignatureVerification2 = __esm({
|
|
|
80976
81230
|
init_core2();
|
|
80977
81231
|
init_NameAndWireValueOrString3();
|
|
80978
81232
|
init_HmacAlgorithm2();
|
|
81233
|
+
init_WebhookBodyHashBinding2();
|
|
80979
81234
|
init_WebhookPayloadFormat2();
|
|
80980
81235
|
init_WebhookSignatureEncoding2();
|
|
80981
81236
|
init_WebhookTimestampConfig2();
|
|
@@ -80985,7 +81240,8 @@ var init_HmacSignatureVerification2 = __esm({
|
|
|
80985
81240
|
encoding: WebhookSignatureEncoding2,
|
|
80986
81241
|
signaturePrefix: schemas_exports3.string().optional(),
|
|
80987
81242
|
payloadFormat: WebhookPayloadFormat,
|
|
80988
|
-
timestamp: WebhookTimestampConfig.optional()
|
|
81243
|
+
timestamp: WebhookTimestampConfig.optional(),
|
|
81244
|
+
bodyHashBinding: WebhookBodyHashBinding.optional()
|
|
80989
81245
|
});
|
|
80990
81246
|
}
|
|
80991
81247
|
});
|
|
@@ -82597,6 +82853,10 @@ var init_types98 = __esm({
|
|
|
82597
82853
|
init_JwksKeySource2();
|
|
82598
82854
|
init_StaticKeySource2();
|
|
82599
82855
|
init_Webhook2();
|
|
82856
|
+
init_WebhookBodyHashAlgorithm2();
|
|
82857
|
+
init_WebhookBodyHashBinding2();
|
|
82858
|
+
init_WebhookBodyHashLocation2();
|
|
82859
|
+
init_WebhookBodyHashQueryParameterLocation2();
|
|
82600
82860
|
init_WebhookGroup2();
|
|
82601
82861
|
init_WebhookHttpMethod2();
|
|
82602
82862
|
init_WebhookName2();
|
|
@@ -82626,6 +82886,10 @@ __export(webhooks_exports4, {
|
|
|
82626
82886
|
JwksKeySource: () => JwksKeySource,
|
|
82627
82887
|
StaticKeySource: () => StaticKeySource,
|
|
82628
82888
|
Webhook: () => Webhook,
|
|
82889
|
+
WebhookBodyHashAlgorithm: () => WebhookBodyHashAlgorithm2,
|
|
82890
|
+
WebhookBodyHashBinding: () => WebhookBodyHashBinding,
|
|
82891
|
+
WebhookBodyHashLocation: () => WebhookBodyHashLocation2,
|
|
82892
|
+
WebhookBodyHashQueryParameterLocation: () => WebhookBodyHashQueryParameterLocation,
|
|
82629
82893
|
WebhookGroup: () => WebhookGroup,
|
|
82630
82894
|
WebhookHttpMethod: () => WebhookHttpMethod2,
|
|
82631
82895
|
WebhookName: () => WebhookName,
|
|
@@ -83046,6 +83310,10 @@ __export(serialization_exports2, {
|
|
|
83046
83310
|
WebSocketMessageOrigin: () => WebSocketMessageOrigin2,
|
|
83047
83311
|
WebSocketName: () => WebSocketName,
|
|
83048
83312
|
Webhook: () => Webhook,
|
|
83313
|
+
WebhookBodyHashAlgorithm: () => WebhookBodyHashAlgorithm2,
|
|
83314
|
+
WebhookBodyHashBinding: () => WebhookBodyHashBinding,
|
|
83315
|
+
WebhookBodyHashLocation: () => WebhookBodyHashLocation2,
|
|
83316
|
+
WebhookBodyHashQueryParameterLocation: () => WebhookBodyHashQueryParameterLocation,
|
|
83049
83317
|
WebhookGroup: () => WebhookGroup,
|
|
83050
83318
|
WebhookGroupId: () => WebhookGroupId,
|
|
83051
83319
|
WebhookHttpMethod: () => WebhookHttpMethod2,
|
|
@@ -133557,6 +133825,79 @@ var init_Webhook3 = __esm({
|
|
|
133557
133825
|
}
|
|
133558
133826
|
});
|
|
133559
133827
|
|
|
133828
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookBodyHashAlgorithm.js
|
|
133829
|
+
var WebhookBodyHashAlgorithmValues2, WebhookBodyHashAlgorithm3;
|
|
133830
|
+
var init_WebhookBodyHashAlgorithm3 = __esm({
|
|
133831
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookBodyHashAlgorithm.js"() {
|
|
133832
|
+
"use strict";
|
|
133833
|
+
WebhookBodyHashAlgorithmValues2 = {
|
|
133834
|
+
Sha256: "sha256",
|
|
133835
|
+
Sha1: "sha1",
|
|
133836
|
+
Sha384: "sha384",
|
|
133837
|
+
Sha512: "sha512"
|
|
133838
|
+
};
|
|
133839
|
+
WebhookBodyHashAlgorithm3 = {
|
|
133840
|
+
...WebhookBodyHashAlgorithmValues2,
|
|
133841
|
+
_visit: (value2, visitor) => {
|
|
133842
|
+
switch (value2) {
|
|
133843
|
+
case WebhookBodyHashAlgorithm3.Sha256:
|
|
133844
|
+
return visitor.sha256();
|
|
133845
|
+
case WebhookBodyHashAlgorithm3.Sha1:
|
|
133846
|
+
return visitor.sha1();
|
|
133847
|
+
case WebhookBodyHashAlgorithm3.Sha384:
|
|
133848
|
+
return visitor.sha384();
|
|
133849
|
+
case WebhookBodyHashAlgorithm3.Sha512:
|
|
133850
|
+
return visitor.sha512();
|
|
133851
|
+
default:
|
|
133852
|
+
return visitor._other();
|
|
133853
|
+
}
|
|
133854
|
+
}
|
|
133855
|
+
};
|
|
133856
|
+
}
|
|
133857
|
+
});
|
|
133858
|
+
|
|
133859
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookBodyHashBinding.js
|
|
133860
|
+
var init_WebhookBodyHashBinding3 = __esm({
|
|
133861
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookBodyHashBinding.js"() {
|
|
133862
|
+
"use strict";
|
|
133863
|
+
}
|
|
133864
|
+
});
|
|
133865
|
+
|
|
133866
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookBodyHashLocation.js
|
|
133867
|
+
var WebhookBodyHashLocation3;
|
|
133868
|
+
var init_WebhookBodyHashLocation3 = __esm({
|
|
133869
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookBodyHashLocation.js"() {
|
|
133870
|
+
"use strict";
|
|
133871
|
+
init_api6();
|
|
133872
|
+
WebhookBodyHashLocation3 = {
|
|
133873
|
+
queryParameter: (value2) => {
|
|
133874
|
+
return {
|
|
133875
|
+
...value2,
|
|
133876
|
+
type: "queryParameter",
|
|
133877
|
+
_visit: function(visitor) {
|
|
133878
|
+
return WebhookBodyHashLocation3._visit(this, visitor);
|
|
133879
|
+
}
|
|
133880
|
+
};
|
|
133881
|
+
},
|
|
133882
|
+
_visit: (value2, visitor) => {
|
|
133883
|
+
switch (value2.type) {
|
|
133884
|
+
case "queryParameter":
|
|
133885
|
+
return visitor.queryParameter(value2);
|
|
133886
|
+
default:
|
|
133887
|
+
return visitor._other(value2);
|
|
133888
|
+
}
|
|
133889
|
+
}
|
|
133890
|
+
};
|
|
133891
|
+
}
|
|
133892
|
+
});
|
|
133893
|
+
|
|
133894
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookBodyHashQueryParameterLocation.js
|
|
133895
|
+
var init_WebhookBodyHashQueryParameterLocation3 = __esm({
|
|
133896
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookBodyHashQueryParameterLocation.js"() {
|
|
133897
|
+
"use strict";
|
|
133898
|
+
}
|
|
133899
|
+
});
|
|
133900
|
+
|
|
133560
133901
|
// ../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookExampleCall.js
|
|
133561
133902
|
var init_WebhookExampleCall = __esm({
|
|
133562
133903
|
"../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookExampleCall.js"() {
|
|
@@ -133935,6 +134276,10 @@ var init_types138 = __esm({
|
|
|
133935
134276
|
init_UnknownSchema();
|
|
133936
134277
|
init_UriPagination3();
|
|
133937
134278
|
init_Webhook3();
|
|
134279
|
+
init_WebhookBodyHashAlgorithm3();
|
|
134280
|
+
init_WebhookBodyHashBinding3();
|
|
134281
|
+
init_WebhookBodyHashLocation3();
|
|
134282
|
+
init_WebhookBodyHashQueryParameterLocation3();
|
|
133938
134283
|
init_WebhookExampleCall();
|
|
133939
134284
|
init_WebhookHttpMethod3();
|
|
133940
134285
|
init_WebhookPayloadBodySort3();
|
|
@@ -133976,6 +134321,8 @@ __export(finalIr_exports, {
|
|
|
133976
134321
|
RetriesConfiguration: () => RetriesConfiguration3,
|
|
133977
134322
|
Schema: () => Schema,
|
|
133978
134323
|
SupportedSdkLanguage: () => SupportedSdkLanguage3,
|
|
134324
|
+
WebhookBodyHashAlgorithm: () => WebhookBodyHashAlgorithm3,
|
|
134325
|
+
WebhookBodyHashLocation: () => WebhookBodyHashLocation3,
|
|
133979
134326
|
WebhookHttpMethod: () => WebhookHttpMethod3,
|
|
133980
134327
|
WebhookPayloadBodySort: () => WebhookPayloadBodySort3,
|
|
133981
134328
|
WebhookPayloadComponent: () => WebhookPayloadComponent3,
|
|
@@ -138887,6 +139234,69 @@ var init_GlobalSecurity2 = __esm({
|
|
|
138887
139234
|
}
|
|
138888
139235
|
});
|
|
138889
139236
|
|
|
139237
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookBodyHashAlgorithm.js
|
|
139238
|
+
var WebhookBodyHashAlgorithm4;
|
|
139239
|
+
var init_WebhookBodyHashAlgorithm4 = __esm({
|
|
139240
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookBodyHashAlgorithm.js"() {
|
|
139241
|
+
"use strict";
|
|
139242
|
+
init_core7();
|
|
139243
|
+
WebhookBodyHashAlgorithm4 = schemas_exports9.enum_(["sha256", "sha1", "sha384", "sha512"]);
|
|
139244
|
+
}
|
|
139245
|
+
});
|
|
139246
|
+
|
|
139247
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookBodyHashQueryParameterLocation.js
|
|
139248
|
+
var WebhookBodyHashQueryParameterLocation2;
|
|
139249
|
+
var init_WebhookBodyHashQueryParameterLocation4 = __esm({
|
|
139250
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookBodyHashQueryParameterLocation.js"() {
|
|
139251
|
+
"use strict";
|
|
139252
|
+
init_core7();
|
|
139253
|
+
WebhookBodyHashQueryParameterLocation2 = schemas_exports9.objectWithoutOptionalProperties({
|
|
139254
|
+
name: schemas_exports9.string()
|
|
139255
|
+
});
|
|
139256
|
+
}
|
|
139257
|
+
});
|
|
139258
|
+
|
|
139259
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookBodyHashLocation.js
|
|
139260
|
+
var WebhookBodyHashLocation4;
|
|
139261
|
+
var init_WebhookBodyHashLocation4 = __esm({
|
|
139262
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookBodyHashLocation.js"() {
|
|
139263
|
+
"use strict";
|
|
139264
|
+
init_api6();
|
|
139265
|
+
init_core7();
|
|
139266
|
+
init_WebhookBodyHashQueryParameterLocation4();
|
|
139267
|
+
WebhookBodyHashLocation4 = schemas_exports9.union("type", {
|
|
139268
|
+
queryParameter: WebhookBodyHashQueryParameterLocation2
|
|
139269
|
+
}).transform({
|
|
139270
|
+
transform: (value2) => {
|
|
139271
|
+
switch (value2.type) {
|
|
139272
|
+
case "queryParameter":
|
|
139273
|
+
return WebhookBodyHashLocation3.queryParameter(value2);
|
|
139274
|
+
default:
|
|
139275
|
+
return value2;
|
|
139276
|
+
}
|
|
139277
|
+
},
|
|
139278
|
+
untransform: ({ _visit, ...value2 }) => value2
|
|
139279
|
+
});
|
|
139280
|
+
}
|
|
139281
|
+
});
|
|
139282
|
+
|
|
139283
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookBodyHashBinding.js
|
|
139284
|
+
var WebhookBodyHashBinding2;
|
|
139285
|
+
var init_WebhookBodyHashBinding4 = __esm({
|
|
139286
|
+
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookBodyHashBinding.js"() {
|
|
139287
|
+
"use strict";
|
|
139288
|
+
init_core7();
|
|
139289
|
+
init_WebhookBodyHashAlgorithm4();
|
|
139290
|
+
init_WebhookBodyHashLocation4();
|
|
139291
|
+
init_WebhookSignatureEncoding4();
|
|
139292
|
+
WebhookBodyHashBinding2 = schemas_exports9.objectWithoutOptionalProperties({
|
|
139293
|
+
algorithm: WebhookBodyHashAlgorithm4,
|
|
139294
|
+
encoding: WebhookSignatureEncoding4.optional(),
|
|
139295
|
+
location: WebhookBodyHashLocation4
|
|
139296
|
+
});
|
|
139297
|
+
}
|
|
139298
|
+
});
|
|
139299
|
+
|
|
138890
139300
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookSignatureAlgorithm.js
|
|
138891
139301
|
var WebhookSignatureAlgorithm2;
|
|
138892
139302
|
var init_WebhookSignatureAlgorithm2 = __esm({
|
|
@@ -138903,6 +139313,7 @@ var init_HmacWebhookSignatureVerification2 = __esm({
|
|
|
138903
139313
|
"../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/HmacWebhookSignatureVerification.js"() {
|
|
138904
139314
|
"use strict";
|
|
138905
139315
|
init_core7();
|
|
139316
|
+
init_WebhookBodyHashBinding4();
|
|
138906
139317
|
init_WebhookPayloadFormat4();
|
|
138907
139318
|
init_WebhookSignatureAlgorithm2();
|
|
138908
139319
|
init_WebhookSignatureEncoding4();
|
|
@@ -138913,7 +139324,8 @@ var init_HmacWebhookSignatureVerification2 = __esm({
|
|
|
138913
139324
|
encoding: WebhookSignatureEncoding4.optional(),
|
|
138914
139325
|
signaturePrefix: schemas_exports9.string().optional(),
|
|
138915
139326
|
payloadFormat: WebhookPayloadFormat2.optional(),
|
|
138916
|
-
timestamp: WebhookTimestamp.optional()
|
|
139327
|
+
timestamp: WebhookTimestamp.optional(),
|
|
139328
|
+
bodyHashBinding: WebhookBodyHashBinding2.optional()
|
|
138917
139329
|
});
|
|
138918
139330
|
}
|
|
138919
139331
|
});
|
|
@@ -139790,6 +140202,10 @@ var init_types142 = __esm({
|
|
|
139790
140202
|
init_UnknownSchema2();
|
|
139791
140203
|
init_UriPagination4();
|
|
139792
140204
|
init_Webhook4();
|
|
140205
|
+
init_WebhookBodyHashAlgorithm4();
|
|
140206
|
+
init_WebhookBodyHashBinding4();
|
|
140207
|
+
init_WebhookBodyHashLocation4();
|
|
140208
|
+
init_WebhookBodyHashQueryParameterLocation4();
|
|
139793
140209
|
init_WebhookExampleCall2();
|
|
139794
140210
|
init_WebhookHttpMethod4();
|
|
139795
140211
|
init_WebhookPayloadBodySort4();
|
|
@@ -139898,6 +140314,10 @@ __export(finalIr_exports2, {
|
|
|
139898
140314
|
UnknownSchema: () => UnknownSchema,
|
|
139899
140315
|
UriPagination: () => UriPagination2,
|
|
139900
140316
|
Webhook: () => Webhook2,
|
|
140317
|
+
WebhookBodyHashAlgorithm: () => WebhookBodyHashAlgorithm4,
|
|
140318
|
+
WebhookBodyHashBinding: () => WebhookBodyHashBinding2,
|
|
140319
|
+
WebhookBodyHashLocation: () => WebhookBodyHashLocation4,
|
|
140320
|
+
WebhookBodyHashQueryParameterLocation: () => WebhookBodyHashQueryParameterLocation2,
|
|
139901
140321
|
WebhookExampleCall: () => WebhookExampleCall,
|
|
139902
140322
|
WebhookHttpMethod: () => WebhookHttpMethod4,
|
|
139903
140323
|
WebhookPayloadBodySort: () => WebhookPayloadBodySort4,
|
|
@@ -141161,6 +141581,10 @@ __export(serialization_exports5, {
|
|
|
141161
141581
|
UnknownSchemaWithExample: () => UnknownSchemaWithExample,
|
|
141162
141582
|
UriPagination: () => UriPagination2,
|
|
141163
141583
|
Webhook: () => Webhook2,
|
|
141584
|
+
WebhookBodyHashAlgorithm: () => WebhookBodyHashAlgorithm4,
|
|
141585
|
+
WebhookBodyHashBinding: () => WebhookBodyHashBinding2,
|
|
141586
|
+
WebhookBodyHashLocation: () => WebhookBodyHashLocation4,
|
|
141587
|
+
WebhookBodyHashQueryParameterLocation: () => WebhookBodyHashQueryParameterLocation2,
|
|
141164
141588
|
WebhookExampleCall: () => WebhookExampleCall,
|
|
141165
141589
|
WebhookHttpMethod: () => WebhookHttpMethod4,
|
|
141166
141590
|
WebhookPayloadBodySort: () => WebhookPayloadBodySort4,
|
|
@@ -146505,7 +146929,8 @@ function convertSignatureVerification(signatureVerification) {
|
|
|
146505
146929
|
encoding: convertSignatureEncoding(signatureVerification.encoding),
|
|
146506
146930
|
"signature-prefix": signatureVerification.signaturePrefix,
|
|
146507
146931
|
"payload-format": convertPayloadFormat(signatureVerification.payloadFormat),
|
|
146508
|
-
timestamp: convertTimestamp(signatureVerification.timestamp)
|
|
146932
|
+
timestamp: convertTimestamp(signatureVerification.timestamp),
|
|
146933
|
+
"body-hash-binding": convertBodyHashBinding(signatureVerification.bodyHashBinding)
|
|
146509
146934
|
};
|
|
146510
146935
|
case "asymmetric":
|
|
146511
146936
|
return {
|
|
@@ -146583,6 +147008,41 @@ function convertPayloadFormat(payloadFormat) {
|
|
|
146583
147008
|
"body-sort": convertBodySort(payloadFormat.bodySort)
|
|
146584
147009
|
};
|
|
146585
147010
|
}
|
|
147011
|
+
function convertBodyHashBinding(binding) {
|
|
147012
|
+
if (binding == null) {
|
|
147013
|
+
return void 0;
|
|
147014
|
+
}
|
|
147015
|
+
return {
|
|
147016
|
+
algorithm: convertBodyHashAlgorithm(binding.algorithm),
|
|
147017
|
+
encoding: binding.encoding != null ? convertSignatureEncoding(binding.encoding) : void 0,
|
|
147018
|
+
location: convertBodyHashLocation(binding.location)
|
|
147019
|
+
};
|
|
147020
|
+
}
|
|
147021
|
+
function convertBodyHashAlgorithm(algorithm) {
|
|
147022
|
+
switch (algorithm) {
|
|
147023
|
+
case "sha256":
|
|
147024
|
+
return "sha256";
|
|
147025
|
+
case "sha1":
|
|
147026
|
+
return "sha1";
|
|
147027
|
+
case "sha384":
|
|
147028
|
+
return "sha384";
|
|
147029
|
+
case "sha512":
|
|
147030
|
+
return "sha512";
|
|
147031
|
+
default:
|
|
147032
|
+
assertNever(algorithm);
|
|
147033
|
+
}
|
|
147034
|
+
}
|
|
147035
|
+
function convertBodyHashLocation(location2) {
|
|
147036
|
+
switch (location2.type) {
|
|
147037
|
+
case "queryParameter":
|
|
147038
|
+
return {
|
|
147039
|
+
type: "query-parameter",
|
|
147040
|
+
name: location2.name
|
|
147041
|
+
};
|
|
147042
|
+
default:
|
|
147043
|
+
assertNever(location2.type);
|
|
147044
|
+
}
|
|
147045
|
+
}
|
|
146586
147046
|
function convertBodySort(bodySort) {
|
|
146587
147047
|
if (bodySort == null) {
|
|
146588
147048
|
return void 0;
|
|
@@ -146634,6 +147094,7 @@ var init_buildWebhooks = __esm({
|
|
|
146634
147094
|
"../api-importers/openapi/openapi-ir-to-fern/lib/buildWebhooks.js"() {
|
|
146635
147095
|
"use strict";
|
|
146636
147096
|
init_lib12();
|
|
147097
|
+
init_lib4();
|
|
146637
147098
|
init_lib7();
|
|
146638
147099
|
init_lib6();
|
|
146639
147100
|
init_lodash();
|
|
@@ -165721,6 +166182,9 @@ var init_convertStreamingOperation = __esm({
|
|
|
165721
166182
|
});
|
|
165722
166183
|
|
|
165723
166184
|
// ../api-importers/openapi/openapi-ir-parser/lib/openapi/v3/extensions/getFernWebhookSignatureExtension.js
|
|
166185
|
+
function isBodyHashAlgorithm(value2) {
|
|
166186
|
+
return BODY_HASH_ALGORITHMS.includes(value2);
|
|
166187
|
+
}
|
|
165724
166188
|
function convertTimestampFormat2(format3) {
|
|
165725
166189
|
switch (format3) {
|
|
165726
166190
|
case "unix-seconds":
|
|
@@ -165771,6 +166235,46 @@ function convertBodySort2(bodySort) {
|
|
|
165771
166235
|
return finalIr_exports.WebhookPayloadBodySort.Alphabetical;
|
|
165772
166236
|
}
|
|
165773
166237
|
}
|
|
166238
|
+
function convertBodyHashBinding2(binding, logger4) {
|
|
166239
|
+
if (binding == null) {
|
|
166240
|
+
return void 0;
|
|
166241
|
+
}
|
|
166242
|
+
if (!isBodyHashAlgorithm(binding.algorithm)) {
|
|
166243
|
+
logger4.warn(`Ignoring webhook body-hash-binding: unsupported algorithm "${binding.algorithm}". Supported algorithms are: ${BODY_HASH_ALGORITHMS.join(", ")}.`);
|
|
166244
|
+
return void 0;
|
|
166245
|
+
}
|
|
166246
|
+
if (binding.location?.type !== "query-parameter") {
|
|
166247
|
+
logger4.warn(`Ignoring webhook body-hash-binding: unsupported location type "${binding.location?.type}". The only supported location is "query-parameter".`);
|
|
166248
|
+
return void 0;
|
|
166249
|
+
}
|
|
166250
|
+
return {
|
|
166251
|
+
algorithm: convertBodyHashAlgorithm2(binding.algorithm),
|
|
166252
|
+
encoding: convertEncoding2(binding.encoding),
|
|
166253
|
+
location: convertBodyHashLocation2(binding.location)
|
|
166254
|
+
};
|
|
166255
|
+
}
|
|
166256
|
+
function convertBodyHashAlgorithm2(algorithm) {
|
|
166257
|
+
switch (algorithm) {
|
|
166258
|
+
case "sha256":
|
|
166259
|
+
return finalIr_exports.WebhookBodyHashAlgorithm.Sha256;
|
|
166260
|
+
case "sha1":
|
|
166261
|
+
return finalIr_exports.WebhookBodyHashAlgorithm.Sha1;
|
|
166262
|
+
case "sha384":
|
|
166263
|
+
return finalIr_exports.WebhookBodyHashAlgorithm.Sha384;
|
|
166264
|
+
case "sha512":
|
|
166265
|
+
return finalIr_exports.WebhookBodyHashAlgorithm.Sha512;
|
|
166266
|
+
default:
|
|
166267
|
+
assertNever(algorithm);
|
|
166268
|
+
}
|
|
166269
|
+
}
|
|
166270
|
+
function convertBodyHashLocation2(location2) {
|
|
166271
|
+
switch (location2.type) {
|
|
166272
|
+
case "query-parameter":
|
|
166273
|
+
return finalIr_exports.WebhookBodyHashLocation.queryParameter({ name: location2.name });
|
|
166274
|
+
default:
|
|
166275
|
+
assertNever(location2.type);
|
|
166276
|
+
}
|
|
166277
|
+
}
|
|
165774
166278
|
function convertAlgorithm(algorithm) {
|
|
165775
166279
|
if (algorithm == null) {
|
|
165776
166280
|
return void 0;
|
|
@@ -165818,7 +166322,7 @@ function convertAsymmetricAlgorithm2(algorithm) {
|
|
|
165818
166322
|
return finalIr_exports.AsymmetricAlgorithm.Ed25519;
|
|
165819
166323
|
}
|
|
165820
166324
|
}
|
|
165821
|
-
function convertSignatureSchema(extension4) {
|
|
166325
|
+
function convertSignatureSchema(extension4, logger4) {
|
|
165822
166326
|
if (extension4.type === "hmac") {
|
|
165823
166327
|
return finalIr_exports.WebhookSignatureVerification.hmac({
|
|
165824
166328
|
header: extension4.header,
|
|
@@ -165826,7 +166330,8 @@ function convertSignatureSchema(extension4) {
|
|
|
165826
166330
|
encoding: convertEncoding2(extension4.encoding),
|
|
165827
166331
|
signaturePrefix: extension4["signature-prefix"],
|
|
165828
166332
|
payloadFormat: convertPayloadFormat2(extension4["payload-format"]),
|
|
165829
|
-
timestamp: convertTimestamp2(extension4.timestamp)
|
|
166333
|
+
timestamp: convertTimestamp2(extension4.timestamp),
|
|
166334
|
+
bodyHashBinding: convertBodyHashBinding2(extension4["body-hash-binding"], logger4)
|
|
165830
166335
|
});
|
|
165831
166336
|
}
|
|
165832
166337
|
if (extension4.type === "asymmetric") {
|
|
@@ -165847,29 +166352,32 @@ function convertSignatureSchema(extension4) {
|
|
|
165847
166352
|
}
|
|
165848
166353
|
return void 0;
|
|
165849
166354
|
}
|
|
165850
|
-
function getDocumentLevelSignature(document4) {
|
|
166355
|
+
function getDocumentLevelSignature(document4, logger4) {
|
|
165851
166356
|
const extension4 = getExtension(document4, FernOpenAPIExtension.WEBHOOK_SIGNATURE);
|
|
165852
166357
|
if (extension4 == null || typeof extension4 === "boolean") {
|
|
165853
166358
|
return void 0;
|
|
165854
166359
|
}
|
|
165855
|
-
return convertSignatureSchema(extension4);
|
|
166360
|
+
return convertSignatureSchema(extension4, logger4);
|
|
165856
166361
|
}
|
|
165857
|
-
function getFernWebhookSignatureExtension(document4, operation) {
|
|
166362
|
+
function getFernWebhookSignatureExtension(document4, operation, logger4) {
|
|
165858
166363
|
const extension4 = getExtension(operation, FernOpenAPIExtension.WEBHOOK_SIGNATURE);
|
|
165859
166364
|
if (extension4 != null) {
|
|
165860
166365
|
if (typeof extension4 === "boolean") {
|
|
165861
|
-
return getDocumentLevelSignature(document4);
|
|
166366
|
+
return getDocumentLevelSignature(document4, logger4);
|
|
165862
166367
|
}
|
|
165863
|
-
return convertSignatureSchema(extension4);
|
|
166368
|
+
return convertSignatureSchema(extension4, logger4);
|
|
165864
166369
|
}
|
|
165865
|
-
return getDocumentLevelSignature(document4);
|
|
166370
|
+
return getDocumentLevelSignature(document4, logger4);
|
|
165866
166371
|
}
|
|
166372
|
+
var BODY_HASH_ALGORITHMS;
|
|
165867
166373
|
var init_getFernWebhookSignatureExtension = __esm({
|
|
165868
166374
|
"../api-importers/openapi/openapi-ir-parser/lib/openapi/v3/extensions/getFernWebhookSignatureExtension.js"() {
|
|
165869
166375
|
"use strict";
|
|
166376
|
+
init_lib4();
|
|
165870
166377
|
init_lib13();
|
|
165871
166378
|
init_getExtension();
|
|
165872
166379
|
init_fernExtensions();
|
|
166380
|
+
BODY_HASH_ALGORITHMS = ["sha256", "sha1", "sha384", "sha512"];
|
|
165873
166381
|
}
|
|
165874
166382
|
});
|
|
165875
166383
|
|
|
@@ -165899,7 +166407,7 @@ function convertWebhookOperation({ context: context3, operationContext, source:
|
|
|
165899
166407
|
responseBreadcrumbs,
|
|
165900
166408
|
source: source2
|
|
165901
166409
|
}) : void 0;
|
|
165902
|
-
const signatureVerification = getFernWebhookSignatureExtension(document4, operation);
|
|
166410
|
+
const signatureVerification = getFernWebhookSignatureExtension(document4, operation, context3.logger);
|
|
165903
166411
|
if (operation.requestBody == null) {
|
|
165904
166412
|
if (convertedParameters.queryParameters.length === 0) {
|
|
165905
166413
|
context3.logger.error(`Skipping webhook ${method8.toUpperCase()} ${path120}: Missing a request body and no query parameters`);
|
|
@@ -274747,9 +275255,42 @@ function convertHmacSignature({ hmac, file: file4 }) {
|
|
|
274747
275255
|
encoding: convertSignatureEncoding2(hmac.encoding),
|
|
274748
275256
|
signaturePrefix: hmac["signature-prefix"],
|
|
274749
275257
|
payloadFormat: convertPayloadFormat3(hmac["payload-format"]),
|
|
274750
|
-
timestamp: convertTimestampConfig({ timestamp: hmac.timestamp, file: file4 })
|
|
275258
|
+
timestamp: convertTimestampConfig({ timestamp: hmac.timestamp, file: file4 }),
|
|
275259
|
+
bodyHashBinding: convertBodyHashBinding3(hmac["body-hash-binding"])
|
|
274751
275260
|
};
|
|
274752
275261
|
}
|
|
275262
|
+
function convertBodyHashBinding3(binding) {
|
|
275263
|
+
if (binding == null) {
|
|
275264
|
+
return void 0;
|
|
275265
|
+
}
|
|
275266
|
+
return {
|
|
275267
|
+
algorithm: convertBodyHashAlgorithm3(binding.algorithm),
|
|
275268
|
+
encoding: convertSignatureEncoding2(binding.encoding),
|
|
275269
|
+
location: convertBodyHashLocation3(binding.location)
|
|
275270
|
+
};
|
|
275271
|
+
}
|
|
275272
|
+
function convertBodyHashAlgorithm3(algorithm) {
|
|
275273
|
+
switch (algorithm) {
|
|
275274
|
+
case "sha1":
|
|
275275
|
+
return WebhookBodyHashAlgorithm.Sha1;
|
|
275276
|
+
case "sha384":
|
|
275277
|
+
return WebhookBodyHashAlgorithm.Sha384;
|
|
275278
|
+
case "sha512":
|
|
275279
|
+
return WebhookBodyHashAlgorithm.Sha512;
|
|
275280
|
+
case "sha256":
|
|
275281
|
+
return WebhookBodyHashAlgorithm.Sha256;
|
|
275282
|
+
default:
|
|
275283
|
+
assertNever(algorithm);
|
|
275284
|
+
}
|
|
275285
|
+
}
|
|
275286
|
+
function convertBodyHashLocation3(location2) {
|
|
275287
|
+
switch (location2.type) {
|
|
275288
|
+
case "query-parameter":
|
|
275289
|
+
return WebhookBodyHashLocation.queryParameter({ name: location2.name });
|
|
275290
|
+
default:
|
|
275291
|
+
assertNever(location2.type);
|
|
275292
|
+
}
|
|
275293
|
+
}
|
|
274753
275294
|
function convertAsymmetricSignature({ asymmetric, file: file4 }) {
|
|
274754
275295
|
return {
|
|
274755
275296
|
signatureHeaderName: file4.casingsGenerator.generateNameAndWireValue({
|
|
@@ -325255,6 +325796,70 @@ var init_fern_schema = __esm({
|
|
|
325255
325796
|
],
|
|
325256
325797
|
additionalProperties: false
|
|
325257
325798
|
},
|
|
325799
|
+
"webhooks.WebhookBodyHashAlgorithmSchema": {
|
|
325800
|
+
type: "string",
|
|
325801
|
+
enum: [
|
|
325802
|
+
"sha256",
|
|
325803
|
+
"sha1",
|
|
325804
|
+
"sha384",
|
|
325805
|
+
"sha512"
|
|
325806
|
+
]
|
|
325807
|
+
},
|
|
325808
|
+
"webhooks.WebhookBodyHashLocationSchema": {
|
|
325809
|
+
type: "object",
|
|
325810
|
+
properties: {
|
|
325811
|
+
type: {
|
|
325812
|
+
type: "string",
|
|
325813
|
+
enum: [
|
|
325814
|
+
"query-parameter"
|
|
325815
|
+
]
|
|
325816
|
+
}
|
|
325817
|
+
},
|
|
325818
|
+
oneOf: [
|
|
325819
|
+
{
|
|
325820
|
+
properties: {
|
|
325821
|
+
type: {
|
|
325822
|
+
const: "query-parameter"
|
|
325823
|
+
},
|
|
325824
|
+
name: {
|
|
325825
|
+
type: "string",
|
|
325826
|
+
description: 'The query-parameter name that carries the body hash (e.g. "bodySHA256").'
|
|
325827
|
+
}
|
|
325828
|
+
},
|
|
325829
|
+
required: [
|
|
325830
|
+
"type",
|
|
325831
|
+
"name"
|
|
325832
|
+
]
|
|
325833
|
+
}
|
|
325834
|
+
]
|
|
325835
|
+
},
|
|
325836
|
+
"webhooks.WebhookBodyHashBindingSchema": {
|
|
325837
|
+
type: "object",
|
|
325838
|
+
properties: {
|
|
325839
|
+
algorithm: {
|
|
325840
|
+
$ref: "#/definitions/webhooks.WebhookBodyHashAlgorithmSchema"
|
|
325841
|
+
},
|
|
325842
|
+
encoding: {
|
|
325843
|
+
oneOf: [
|
|
325844
|
+
{
|
|
325845
|
+
$ref: "#/definitions/webhooks.WebhookSignatureEncodingSchema"
|
|
325846
|
+
},
|
|
325847
|
+
{
|
|
325848
|
+
type: "null"
|
|
325849
|
+
}
|
|
325850
|
+
],
|
|
325851
|
+
description: "Defaults to base64."
|
|
325852
|
+
},
|
|
325853
|
+
location: {
|
|
325854
|
+
$ref: "#/definitions/webhooks.WebhookBodyHashLocationSchema"
|
|
325855
|
+
}
|
|
325856
|
+
},
|
|
325857
|
+
required: [
|
|
325858
|
+
"algorithm",
|
|
325859
|
+
"location"
|
|
325860
|
+
],
|
|
325861
|
+
additionalProperties: false
|
|
325862
|
+
},
|
|
325258
325863
|
"webhooks.AsymmetricAlgorithmSchema": {
|
|
325259
325864
|
type: "string",
|
|
325260
325865
|
enum: [
|
|
@@ -325340,6 +325945,19 @@ var init_fern_schema = __esm({
|
|
|
325340
325945
|
type: "null"
|
|
325341
325946
|
}
|
|
325342
325947
|
]
|
|
325948
|
+
},
|
|
325949
|
+
"body-hash-binding": {
|
|
325950
|
+
oneOf: [
|
|
325951
|
+
{
|
|
325952
|
+
$ref: "#/definitions/webhooks.WebhookBodyHashBindingSchema"
|
|
325953
|
+
},
|
|
325954
|
+
{
|
|
325955
|
+
type: "null"
|
|
325956
|
+
}
|
|
325957
|
+
],
|
|
325958
|
+
description: `When set, the raw body is not signed directly; instead a hash of the body is
|
|
325959
|
+
transmitted separately (e.g. Twilio's "bodySHA256" query parameter for JSON
|
|
325960
|
+
bodies) and verification also recomputes and compares the body hash.`
|
|
325343
325961
|
}
|
|
325344
325962
|
},
|
|
325345
325963
|
required: [
|
|
@@ -329585,6 +330203,70 @@ var init_package_yml_schema = __esm({
|
|
|
329585
330203
|
],
|
|
329586
330204
|
additionalProperties: false
|
|
329587
330205
|
},
|
|
330206
|
+
"webhooks.WebhookBodyHashAlgorithmSchema": {
|
|
330207
|
+
type: "string",
|
|
330208
|
+
enum: [
|
|
330209
|
+
"sha256",
|
|
330210
|
+
"sha1",
|
|
330211
|
+
"sha384",
|
|
330212
|
+
"sha512"
|
|
330213
|
+
]
|
|
330214
|
+
},
|
|
330215
|
+
"webhooks.WebhookBodyHashLocationSchema": {
|
|
330216
|
+
type: "object",
|
|
330217
|
+
properties: {
|
|
330218
|
+
type: {
|
|
330219
|
+
type: "string",
|
|
330220
|
+
enum: [
|
|
330221
|
+
"query-parameter"
|
|
330222
|
+
]
|
|
330223
|
+
}
|
|
330224
|
+
},
|
|
330225
|
+
oneOf: [
|
|
330226
|
+
{
|
|
330227
|
+
properties: {
|
|
330228
|
+
type: {
|
|
330229
|
+
const: "query-parameter"
|
|
330230
|
+
},
|
|
330231
|
+
name: {
|
|
330232
|
+
type: "string",
|
|
330233
|
+
description: 'The query-parameter name that carries the body hash (e.g. "bodySHA256").'
|
|
330234
|
+
}
|
|
330235
|
+
},
|
|
330236
|
+
required: [
|
|
330237
|
+
"type",
|
|
330238
|
+
"name"
|
|
330239
|
+
]
|
|
330240
|
+
}
|
|
330241
|
+
]
|
|
330242
|
+
},
|
|
330243
|
+
"webhooks.WebhookBodyHashBindingSchema": {
|
|
330244
|
+
type: "object",
|
|
330245
|
+
properties: {
|
|
330246
|
+
algorithm: {
|
|
330247
|
+
$ref: "#/definitions/webhooks.WebhookBodyHashAlgorithmSchema"
|
|
330248
|
+
},
|
|
330249
|
+
encoding: {
|
|
330250
|
+
oneOf: [
|
|
330251
|
+
{
|
|
330252
|
+
$ref: "#/definitions/webhooks.WebhookSignatureEncodingSchema"
|
|
330253
|
+
},
|
|
330254
|
+
{
|
|
330255
|
+
type: "null"
|
|
330256
|
+
}
|
|
330257
|
+
],
|
|
330258
|
+
description: "Defaults to base64."
|
|
330259
|
+
},
|
|
330260
|
+
location: {
|
|
330261
|
+
$ref: "#/definitions/webhooks.WebhookBodyHashLocationSchema"
|
|
330262
|
+
}
|
|
330263
|
+
},
|
|
330264
|
+
required: [
|
|
330265
|
+
"algorithm",
|
|
330266
|
+
"location"
|
|
330267
|
+
],
|
|
330268
|
+
additionalProperties: false
|
|
330269
|
+
},
|
|
329588
330270
|
"webhooks.AsymmetricAlgorithmSchema": {
|
|
329589
330271
|
type: "string",
|
|
329590
330272
|
enum: [
|
|
@@ -329670,6 +330352,19 @@ var init_package_yml_schema = __esm({
|
|
|
329670
330352
|
type: "null"
|
|
329671
330353
|
}
|
|
329672
330354
|
]
|
|
330355
|
+
},
|
|
330356
|
+
"body-hash-binding": {
|
|
330357
|
+
oneOf: [
|
|
330358
|
+
{
|
|
330359
|
+
$ref: "#/definitions/webhooks.WebhookBodyHashBindingSchema"
|
|
330360
|
+
},
|
|
330361
|
+
{
|
|
330362
|
+
type: "null"
|
|
330363
|
+
}
|
|
330364
|
+
],
|
|
330365
|
+
description: `When set, the raw body is not signed directly; instead a hash of the body is
|
|
330366
|
+
transmitted separately (e.g. Twilio's "bodySHA256" query parameter for JSON
|
|
330367
|
+
bodies) and verification also recomputes and compares the body hash.`
|
|
329673
330368
|
}
|
|
329674
330369
|
},
|
|
329675
330370
|
required: [
|
|
@@ -564079,12 +564774,6 @@ async function tryRunContainer({ logger: logger4, imageName, args, binds, envVar
|
|
|
564079
564774
|
if (process.env["FERN_STACK_TRACK"]) {
|
|
564080
564775
|
envVars["FERN_STACK_TRACK"] = process.env["FERN_STACK_TRACK"];
|
|
564081
564776
|
}
|
|
564082
|
-
const oidcEnvArgs = ["ACTIONS_ID_TOKEN_REQUEST_URL", "ACTIONS_ID_TOKEN_REQUEST_TOKEN"].flatMap((name2) => {
|
|
564083
|
-
const value2 = process.env[name2];
|
|
564084
|
-
return value2 != null ? ["-e", `${name2}=${value2}`] : [];
|
|
564085
|
-
});
|
|
564086
|
-
const oidcSecret = process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];
|
|
564087
|
-
const secrets = oidcSecret != null ? [oidcSecret] : [];
|
|
564088
564777
|
const containerArgs = [
|
|
564089
564778
|
"run",
|
|
564090
564779
|
"--user",
|
|
@@ -564092,7 +564781,6 @@ async function tryRunContainer({ logger: logger4, imageName, args, binds, envVar
|
|
|
564092
564781
|
...pull ? ["--pull", "always"] : [],
|
|
564093
564782
|
...platform4 != null ? ["--platform", platform4] : [],
|
|
564094
564783
|
...binds.flatMap((bind5) => ["-v", bind5]),
|
|
564095
|
-
...oidcEnvArgs,
|
|
564096
564784
|
...Object.entries(envVars).flatMap(([key2, value2]) => ["-e", `${key2}="${value2}"`]),
|
|
564097
564785
|
...Object.entries(ports).flatMap(([hostPort, containerPort]) => ["-p", `${hostPort}:${containerPort}`]),
|
|
564098
564786
|
removeAfterCompletion ? "--rm" : "",
|
|
@@ -564104,7 +564792,6 @@ async function tryRunContainer({ logger: logger4, imageName, args, binds, envVar
|
|
|
564104
564792
|
reject: false,
|
|
564105
564793
|
all: true,
|
|
564106
564794
|
doNotPipeOutput: true,
|
|
564107
|
-
secrets,
|
|
564108
564795
|
signal
|
|
564109
564796
|
});
|
|
564110
564797
|
const logs4 = stdout + stderr;
|
|
@@ -680286,6 +680973,44 @@ function validateHmac(signature, violations) {
|
|
|
680286
680973
|
}
|
|
680287
680974
|
}
|
|
680288
680975
|
}
|
|
680976
|
+
if (signature["body-hash-binding"] != null) {
|
|
680977
|
+
validateBodyHashBinding(signature, violations);
|
|
680978
|
+
}
|
|
680979
|
+
}
|
|
680980
|
+
function validateBodyHashBinding(signature, violations) {
|
|
680981
|
+
const binding = signature["body-hash-binding"];
|
|
680982
|
+
if (binding == null) {
|
|
680983
|
+
return;
|
|
680984
|
+
}
|
|
680985
|
+
if (binding.encoding != null && !VALID_ENCODINGS.has(binding.encoding)) {
|
|
680986
|
+
violations.push({
|
|
680987
|
+
severity: "error",
|
|
680988
|
+
message: `Invalid body-hash-binding encoding "${binding.encoding}". Must be one of: ${[...VALID_ENCODINGS].join(", ")}`
|
|
680989
|
+
});
|
|
680990
|
+
}
|
|
680991
|
+
const validBodyHashAlgorithms = new Set(Object.values(schemas_exports2.WebhookBodyHashAlgorithmSchema));
|
|
680992
|
+
if (!validBodyHashAlgorithms.has(binding.algorithm)) {
|
|
680993
|
+
violations.push({
|
|
680994
|
+
severity: "error",
|
|
680995
|
+
message: `Invalid body-hash-binding algorithm "${binding.algorithm}". Must be one of: ${[...validBodyHashAlgorithms].join(", ")}`
|
|
680996
|
+
});
|
|
680997
|
+
}
|
|
680998
|
+
if (binding.location.type === "query-parameter") {
|
|
680999
|
+
if (binding.location.name.length === 0) {
|
|
681000
|
+
violations.push({
|
|
681001
|
+
severity: "error",
|
|
681002
|
+
message: "body-hash-binding query-parameter location must specify a name"
|
|
681003
|
+
});
|
|
681004
|
+
}
|
|
681005
|
+
const components = signature["payload-format"]?.components;
|
|
681006
|
+
const includesNotificationUrl = components != null && components.includes("notification-url");
|
|
681007
|
+
if (!includesNotificationUrl) {
|
|
681008
|
+
violations.push({
|
|
681009
|
+
severity: "error",
|
|
681010
|
+
message: 'A query-parameter body-hash-binding requires payload-format.components to include "notification-url", since the body hash is transmitted in the notification URL that is signed.'
|
|
681011
|
+
});
|
|
681012
|
+
}
|
|
681013
|
+
}
|
|
680289
681014
|
}
|
|
680290
681015
|
function validateAsymmetric(signature, violations) {
|
|
680291
681016
|
if (!VALID_ASYMMETRIC_ALGORITHMS.has(signature["asymmetric-algorithm"])) {
|
|
@@ -690087,7 +690812,7 @@ var AccessTokenPosthogManager = class {
|
|
|
690087
690812
|
properties: {
|
|
690088
690813
|
...event,
|
|
690089
690814
|
...event.properties,
|
|
690090
|
-
version: "5.
|
|
690815
|
+
version: "5.74.0",
|
|
690091
690816
|
usingAccessToken: true,
|
|
690092
690817
|
...getRunIdProperties()
|
|
690093
690818
|
}
|
|
@@ -690153,7 +690878,7 @@ var UserPosthogManager = class {
|
|
|
690153
690878
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
690154
690879
|
event: "CLI",
|
|
690155
690880
|
properties: {
|
|
690156
|
-
version: "5.
|
|
690881
|
+
version: "5.74.0",
|
|
690157
690882
|
...event,
|
|
690158
690883
|
...event.properties,
|
|
690159
690884
|
usingAccessToken: false,
|
|
@@ -871254,7 +871979,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
871254
871979
|
var LOGS_FOLDER_NAME = "logs";
|
|
871255
871980
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
871256
871981
|
function getCliSource() {
|
|
871257
|
-
const version7 = "5.
|
|
871982
|
+
const version7 = "5.74.0";
|
|
871258
871983
|
return `cli@${version7}`;
|
|
871259
871984
|
}
|
|
871260
871985
|
var DebugLogger = class {
|
|
@@ -903837,7 +904562,7 @@ var LegacyDocsPublisher = class {
|
|
|
903837
904562
|
previewId,
|
|
903838
904563
|
disableTemplates: void 0,
|
|
903839
904564
|
skipUpload,
|
|
903840
|
-
cliVersion: "5.
|
|
904565
|
+
cliVersion: "5.74.0",
|
|
903841
904566
|
loginCommand: "fern auth login"
|
|
903842
904567
|
});
|
|
903843
904568
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -970363,7 +971088,7 @@ function getAutomationContextFromEnv() {
|
|
|
970363
971088
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
970364
971089
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
970365
971090
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
970366
|
-
cli_version: "5.
|
|
971091
|
+
cli_version: "5.74.0"
|
|
970367
971092
|
};
|
|
970368
971093
|
}
|
|
970369
971094
|
function isAutomationMode() {
|
|
@@ -971195,7 +971920,7 @@ var CliContext = class _CliContext {
|
|
|
971195
971920
|
if (false) {
|
|
971196
971921
|
this.logger.error("CLI_VERSION is not defined");
|
|
971197
971922
|
}
|
|
971198
|
-
return "5.
|
|
971923
|
+
return "5.74.0";
|
|
971199
971924
|
}
|
|
971200
971925
|
getCliName() {
|
|
971201
971926
|
if (false) {
|
package/package.json
CHANGED