fern-api 0.37.6 → 0.37.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bundle.cjs +1237 -109
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -50597,7 +50597,7 @@ var require_extract = __commonJS({
50597
50597
  return size2 && 512 - size2;
50598
50598
  };
50599
50599
  var emptyStream = function(self2, offset2) {
50600
- var s2 = new Source2(self2, offset2);
50600
+ var s2 = new Source4(self2, offset2);
50601
50601
  s2.end();
50602
50602
  return s2;
50603
50603
  };
@@ -50611,13 +50611,13 @@ var require_extract = __commonJS({
50611
50611
  header.pax = pax;
50612
50612
  return header;
50613
50613
  };
50614
- var Source2 = function(self2, offset2) {
50614
+ var Source4 = function(self2, offset2) {
50615
50615
  this._parent = self2;
50616
50616
  this.offset = offset2;
50617
50617
  PassThrough2.call(this, { autoDestroy: false });
50618
50618
  };
50619
- util2.inherits(Source2, PassThrough2);
50620
- Source2.prototype.destroy = function(err) {
50619
+ util2.inherits(Source4, PassThrough2);
50620
+ Source4.prototype.destroy = function(err) {
50621
50621
  this._parent.destroy(err);
50622
50622
  };
50623
50623
  var Extract = function(opts) {
@@ -50745,7 +50745,7 @@ var require_extract = __commonJS({
50745
50745
  self2.emit("entry", header, emptyStream(self2, offset2), onunlock);
50746
50746
  return;
50747
50747
  }
50748
- self2._stream = new Source2(self2, offset2);
50748
+ self2._stream = new Source4(self2, offset2);
50749
50749
  self2.emit("entry", header, self2._stream, onunlock);
50750
50750
  self2._parse(header.size, onstreamend);
50751
50751
  oncontinue();
@@ -354766,6 +354766,49 @@ var init_DeclaredServiceName = __esm({
354766
354766
  }
354767
354767
  });
354768
354768
 
354769
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/http/types/Transport.js
354770
+ var Transport;
354771
+ var init_Transport = __esm({
354772
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/http/types/Transport.js"() {
354773
+ init_api();
354774
+ Transport = {
354775
+ http: () => {
354776
+ return {
354777
+ type: "http",
354778
+ _visit: function(visitor) {
354779
+ return Transport._visit(this, visitor);
354780
+ }
354781
+ };
354782
+ },
354783
+ grpc: (value) => {
354784
+ return {
354785
+ ...value,
354786
+ type: "grpc",
354787
+ _visit: function(visitor) {
354788
+ return Transport._visit(this, visitor);
354789
+ }
354790
+ };
354791
+ },
354792
+ _visit: (value, visitor) => {
354793
+ switch (value.type) {
354794
+ case "http":
354795
+ return visitor.http();
354796
+ case "grpc":
354797
+ return visitor.grpc(value);
354798
+ default:
354799
+ return visitor._other(value);
354800
+ }
354801
+ }
354802
+ };
354803
+ }
354804
+ });
354805
+
354806
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/http/types/GrpcTransport.js
354807
+ var init_GrpcTransport = __esm({
354808
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/http/types/GrpcTransport.js"() {
354809
+ }
354810
+ });
354811
+
354769
354812
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/http/types/HttpEndpoint.js
354770
354813
  var init_HttpEndpoint = __esm({
354771
354814
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/http/types/HttpEndpoint.js"() {
@@ -355780,6 +355823,8 @@ var init_types7 = __esm({
355780
355823
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/http/types/index.js"() {
355781
355824
  init_HttpService();
355782
355825
  init_DeclaredServiceName();
355826
+ init_Transport();
355827
+ init_GrpcTransport();
355783
355828
  init_HttpEndpoint();
355784
355829
  init_EndpointName();
355785
355830
  init_HttpPath();
@@ -355864,7 +355909,8 @@ __export(http_exports, {
355864
355909
  SdkRequestBodyType: () => SdkRequestBodyType,
355865
355910
  SdkRequestShape: () => SdkRequestShape,
355866
355911
  StreamingResponse: () => StreamingResponse,
355867
- SupportedSdkLanguage: () => SupportedSdkLanguage
355912
+ SupportedSdkLanguage: () => SupportedSdkLanguage,
355913
+ Transport: () => Transport
355868
355914
  });
355869
355915
  var init_http = __esm({
355870
355916
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/http/index.js"() {
@@ -355884,6 +355930,61 @@ var init_ReadmeConfig = __esm({
355884
355930
  }
355885
355931
  });
355886
355932
 
355933
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/SourceConfig.js
355934
+ var init_SourceConfig = __esm({
355935
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/SourceConfig.js"() {
355936
+ }
355937
+ });
355938
+
355939
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/ApiDefinitionSourceId.js
355940
+ var init_ApiDefinitionSourceId = __esm({
355941
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/ApiDefinitionSourceId.js"() {
355942
+ }
355943
+ });
355944
+
355945
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/ApiDefinitionSource.js
355946
+ var ApiDefinitionSource;
355947
+ var init_ApiDefinitionSource = __esm({
355948
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/ApiDefinitionSource.js"() {
355949
+ init_api();
355950
+ ApiDefinitionSource = {
355951
+ proto: (value) => {
355952
+ return {
355953
+ ...value,
355954
+ type: "proto",
355955
+ _visit: function(visitor) {
355956
+ return ApiDefinitionSource._visit(this, visitor);
355957
+ }
355958
+ };
355959
+ },
355960
+ openapi: () => {
355961
+ return {
355962
+ type: "openapi",
355963
+ _visit: function(visitor) {
355964
+ return ApiDefinitionSource._visit(this, visitor);
355965
+ }
355966
+ };
355967
+ },
355968
+ _visit: (value, visitor) => {
355969
+ switch (value.type) {
355970
+ case "proto":
355971
+ return visitor.proto(value);
355972
+ case "openapi":
355973
+ return visitor.openapi();
355974
+ default:
355975
+ return visitor._other(value);
355976
+ }
355977
+ }
355978
+ };
355979
+ }
355980
+ });
355981
+
355982
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/ProtoSource.js
355983
+ var init_ProtoSource = __esm({
355984
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/ProtoSource.js"() {
355985
+ }
355986
+ });
355987
+
355887
355988
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/SdkConfig.js
355888
355989
  var init_SdkConfig = __esm({
355889
355990
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/SdkConfig.js"() {
@@ -356001,6 +356102,10 @@ var init_types8 = __esm({
356001
356102
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/types/index.js"() {
356002
356103
  init_IntermediateRepresentation();
356003
356104
  init_ReadmeConfig();
356105
+ init_SourceConfig();
356106
+ init_ApiDefinitionSourceId();
356107
+ init_ApiDefinitionSource();
356108
+ init_ProtoSource();
356004
356109
  init_SdkConfig();
356005
356110
  init_PlatformHeaders();
356006
356111
  init_ApiVersionScheme();
@@ -356017,6 +356122,7 @@ var init_types8 = __esm({
356017
356122
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/ir/index.js
356018
356123
  var ir_exports = {};
356019
356124
  __export(ir_exports, {
356125
+ ApiDefinitionSource: () => ApiDefinitionSource,
356020
356126
  ApiVersionScheme: () => ApiVersionScheme,
356021
356127
  ErrorDiscriminationStrategy: () => ErrorDiscriminationStrategy
356022
356128
  });
@@ -356026,6 +356132,460 @@ var init_ir = __esm({
356026
356132
  }
356027
356133
  });
356028
356134
 
356135
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/ProtobufService.js
356136
+ var init_ProtobufService = __esm({
356137
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/ProtobufService.js"() {
356138
+ }
356139
+ });
356140
+
356141
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/ProtobufType.js
356142
+ var ProtobufType;
356143
+ var init_ProtobufType = __esm({
356144
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/ProtobufType.js"() {
356145
+ init_api();
356146
+ ProtobufType = {
356147
+ wellKnown: (value) => {
356148
+ return {
356149
+ value,
356150
+ type: "wellKnown",
356151
+ _visit: function(visitor) {
356152
+ return ProtobufType._visit(this, visitor);
356153
+ }
356154
+ };
356155
+ },
356156
+ userDefined: (value) => {
356157
+ return {
356158
+ ...value,
356159
+ type: "userDefined",
356160
+ _visit: function(visitor) {
356161
+ return ProtobufType._visit(this, visitor);
356162
+ }
356163
+ };
356164
+ },
356165
+ _visit: (value, visitor) => {
356166
+ switch (value.type) {
356167
+ case "wellKnown":
356168
+ return visitor.wellKnown(value.value);
356169
+ case "userDefined":
356170
+ return visitor.userDefined(value);
356171
+ default:
356172
+ return visitor._other(value);
356173
+ }
356174
+ }
356175
+ };
356176
+ }
356177
+ });
356178
+
356179
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/UserDefinedProtobufType.js
356180
+ var init_UserDefinedProtobufType = __esm({
356181
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/UserDefinedProtobufType.js"() {
356182
+ }
356183
+ });
356184
+
356185
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/WellKnownProtobufType.js
356186
+ var WellKnownProtobufType;
356187
+ var init_WellKnownProtobufType = __esm({
356188
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/WellKnownProtobufType.js"() {
356189
+ init_api();
356190
+ WellKnownProtobufType = {
356191
+ any: () => {
356192
+ return {
356193
+ type: "any",
356194
+ _visit: function(visitor) {
356195
+ return WellKnownProtobufType._visit(this, visitor);
356196
+ }
356197
+ };
356198
+ },
356199
+ api: () => {
356200
+ return {
356201
+ type: "api",
356202
+ _visit: function(visitor) {
356203
+ return WellKnownProtobufType._visit(this, visitor);
356204
+ }
356205
+ };
356206
+ },
356207
+ boolValue: () => {
356208
+ return {
356209
+ type: "boolValue",
356210
+ _visit: function(visitor) {
356211
+ return WellKnownProtobufType._visit(this, visitor);
356212
+ }
356213
+ };
356214
+ },
356215
+ bytesValue: () => {
356216
+ return {
356217
+ type: "bytesValue",
356218
+ _visit: function(visitor) {
356219
+ return WellKnownProtobufType._visit(this, visitor);
356220
+ }
356221
+ };
356222
+ },
356223
+ doubleValue: () => {
356224
+ return {
356225
+ type: "doubleValue",
356226
+ _visit: function(visitor) {
356227
+ return WellKnownProtobufType._visit(this, visitor);
356228
+ }
356229
+ };
356230
+ },
356231
+ duration: () => {
356232
+ return {
356233
+ type: "duration",
356234
+ _visit: function(visitor) {
356235
+ return WellKnownProtobufType._visit(this, visitor);
356236
+ }
356237
+ };
356238
+ },
356239
+ empty: () => {
356240
+ return {
356241
+ type: "empty",
356242
+ _visit: function(visitor) {
356243
+ return WellKnownProtobufType._visit(this, visitor);
356244
+ }
356245
+ };
356246
+ },
356247
+ enum: () => {
356248
+ return {
356249
+ type: "enum",
356250
+ _visit: function(visitor) {
356251
+ return WellKnownProtobufType._visit(this, visitor);
356252
+ }
356253
+ };
356254
+ },
356255
+ enumValue: () => {
356256
+ return {
356257
+ type: "enumValue",
356258
+ _visit: function(visitor) {
356259
+ return WellKnownProtobufType._visit(this, visitor);
356260
+ }
356261
+ };
356262
+ },
356263
+ field: () => {
356264
+ return {
356265
+ type: "field",
356266
+ _visit: function(visitor) {
356267
+ return WellKnownProtobufType._visit(this, visitor);
356268
+ }
356269
+ };
356270
+ },
356271
+ fieldCardinality: () => {
356272
+ return {
356273
+ type: "fieldCardinality",
356274
+ _visit: function(visitor) {
356275
+ return WellKnownProtobufType._visit(this, visitor);
356276
+ }
356277
+ };
356278
+ },
356279
+ fieldKind: () => {
356280
+ return {
356281
+ type: "fieldKind",
356282
+ _visit: function(visitor) {
356283
+ return WellKnownProtobufType._visit(this, visitor);
356284
+ }
356285
+ };
356286
+ },
356287
+ fieldMask: () => {
356288
+ return {
356289
+ type: "fieldMask",
356290
+ _visit: function(visitor) {
356291
+ return WellKnownProtobufType._visit(this, visitor);
356292
+ }
356293
+ };
356294
+ },
356295
+ floatValue: () => {
356296
+ return {
356297
+ type: "floatValue",
356298
+ _visit: function(visitor) {
356299
+ return WellKnownProtobufType._visit(this, visitor);
356300
+ }
356301
+ };
356302
+ },
356303
+ int32Value: () => {
356304
+ return {
356305
+ type: "int32Value",
356306
+ _visit: function(visitor) {
356307
+ return WellKnownProtobufType._visit(this, visitor);
356308
+ }
356309
+ };
356310
+ },
356311
+ int64Value: () => {
356312
+ return {
356313
+ type: "int64Value",
356314
+ _visit: function(visitor) {
356315
+ return WellKnownProtobufType._visit(this, visitor);
356316
+ }
356317
+ };
356318
+ },
356319
+ listValue: () => {
356320
+ return {
356321
+ type: "listValue",
356322
+ _visit: function(visitor) {
356323
+ return WellKnownProtobufType._visit(this, visitor);
356324
+ }
356325
+ };
356326
+ },
356327
+ method: () => {
356328
+ return {
356329
+ type: "method",
356330
+ _visit: function(visitor) {
356331
+ return WellKnownProtobufType._visit(this, visitor);
356332
+ }
356333
+ };
356334
+ },
356335
+ mixin: () => {
356336
+ return {
356337
+ type: "mixin",
356338
+ _visit: function(visitor) {
356339
+ return WellKnownProtobufType._visit(this, visitor);
356340
+ }
356341
+ };
356342
+ },
356343
+ nullValue: () => {
356344
+ return {
356345
+ type: "nullValue",
356346
+ _visit: function(visitor) {
356347
+ return WellKnownProtobufType._visit(this, visitor);
356348
+ }
356349
+ };
356350
+ },
356351
+ option: () => {
356352
+ return {
356353
+ type: "option",
356354
+ _visit: function(visitor) {
356355
+ return WellKnownProtobufType._visit(this, visitor);
356356
+ }
356357
+ };
356358
+ },
356359
+ sourceContext: () => {
356360
+ return {
356361
+ type: "sourceContext",
356362
+ _visit: function(visitor) {
356363
+ return WellKnownProtobufType._visit(this, visitor);
356364
+ }
356365
+ };
356366
+ },
356367
+ stringValue: () => {
356368
+ return {
356369
+ type: "stringValue",
356370
+ _visit: function(visitor) {
356371
+ return WellKnownProtobufType._visit(this, visitor);
356372
+ }
356373
+ };
356374
+ },
356375
+ struct: () => {
356376
+ return {
356377
+ type: "struct",
356378
+ _visit: function(visitor) {
356379
+ return WellKnownProtobufType._visit(this, visitor);
356380
+ }
356381
+ };
356382
+ },
356383
+ syntax: () => {
356384
+ return {
356385
+ type: "syntax",
356386
+ _visit: function(visitor) {
356387
+ return WellKnownProtobufType._visit(this, visitor);
356388
+ }
356389
+ };
356390
+ },
356391
+ timestamp: () => {
356392
+ return {
356393
+ type: "timestamp",
356394
+ _visit: function(visitor) {
356395
+ return WellKnownProtobufType._visit(this, visitor);
356396
+ }
356397
+ };
356398
+ },
356399
+ type: () => {
356400
+ return {
356401
+ type: "type",
356402
+ _visit: function(visitor) {
356403
+ return WellKnownProtobufType._visit(this, visitor);
356404
+ }
356405
+ };
356406
+ },
356407
+ uint32Value: () => {
356408
+ return {
356409
+ type: "uint32Value",
356410
+ _visit: function(visitor) {
356411
+ return WellKnownProtobufType._visit(this, visitor);
356412
+ }
356413
+ };
356414
+ },
356415
+ uint64Value: () => {
356416
+ return {
356417
+ type: "uint64Value",
356418
+ _visit: function(visitor) {
356419
+ return WellKnownProtobufType._visit(this, visitor);
356420
+ }
356421
+ };
356422
+ },
356423
+ value: () => {
356424
+ return {
356425
+ type: "value",
356426
+ _visit: function(visitor) {
356427
+ return WellKnownProtobufType._visit(this, visitor);
356428
+ }
356429
+ };
356430
+ },
356431
+ _visit: (value, visitor) => {
356432
+ switch (value.type) {
356433
+ case "any":
356434
+ return visitor.any();
356435
+ case "api":
356436
+ return visitor.api();
356437
+ case "boolValue":
356438
+ return visitor.boolValue();
356439
+ case "bytesValue":
356440
+ return visitor.bytesValue();
356441
+ case "doubleValue":
356442
+ return visitor.doubleValue();
356443
+ case "duration":
356444
+ return visitor.duration();
356445
+ case "empty":
356446
+ return visitor.empty();
356447
+ case "enum":
356448
+ return visitor.enum();
356449
+ case "enumValue":
356450
+ return visitor.enumValue();
356451
+ case "field":
356452
+ return visitor.field();
356453
+ case "fieldCardinality":
356454
+ return visitor.fieldCardinality();
356455
+ case "fieldKind":
356456
+ return visitor.fieldKind();
356457
+ case "fieldMask":
356458
+ return visitor.fieldMask();
356459
+ case "floatValue":
356460
+ return visitor.floatValue();
356461
+ case "int32Value":
356462
+ return visitor.int32Value();
356463
+ case "int64Value":
356464
+ return visitor.int64Value();
356465
+ case "listValue":
356466
+ return visitor.listValue();
356467
+ case "method":
356468
+ return visitor.method();
356469
+ case "mixin":
356470
+ return visitor.mixin();
356471
+ case "nullValue":
356472
+ return visitor.nullValue();
356473
+ case "option":
356474
+ return visitor.option();
356475
+ case "sourceContext":
356476
+ return visitor.sourceContext();
356477
+ case "stringValue":
356478
+ return visitor.stringValue();
356479
+ case "struct":
356480
+ return visitor.struct();
356481
+ case "syntax":
356482
+ return visitor.syntax();
356483
+ case "timestamp":
356484
+ return visitor.timestamp();
356485
+ case "type":
356486
+ return visitor.type();
356487
+ case "uint32Value":
356488
+ return visitor.uint32Value();
356489
+ case "uint64Value":
356490
+ return visitor.uint64Value();
356491
+ case "value":
356492
+ return visitor.value();
356493
+ default:
356494
+ return visitor._other(value);
356495
+ }
356496
+ }
356497
+ };
356498
+ }
356499
+ });
356500
+
356501
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/ProtobufFile.js
356502
+ var init_ProtobufFile = __esm({
356503
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/ProtobufFile.js"() {
356504
+ }
356505
+ });
356506
+
356507
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/ProtobufFileOptions.js
356508
+ var init_ProtobufFileOptions = __esm({
356509
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/ProtobufFileOptions.js"() {
356510
+ }
356511
+ });
356512
+
356513
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/CsharpProtobufFileOptions.js
356514
+ var init_CsharpProtobufFileOptions = __esm({
356515
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/CsharpProtobufFileOptions.js"() {
356516
+ }
356517
+ });
356518
+
356519
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/index.js
356520
+ var init_types9 = __esm({
356521
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/types/index.js"() {
356522
+ init_ProtobufService();
356523
+ init_ProtobufType();
356524
+ init_UserDefinedProtobufType();
356525
+ init_WellKnownProtobufType();
356526
+ init_ProtobufFile();
356527
+ init_ProtobufFileOptions();
356528
+ init_CsharpProtobufFileOptions();
356529
+ }
356530
+ });
356531
+
356532
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/index.js
356533
+ var proto_exports = {};
356534
+ __export(proto_exports, {
356535
+ ProtobufType: () => ProtobufType,
356536
+ WellKnownProtobufType: () => WellKnownProtobufType
356537
+ });
356538
+ var init_proto = __esm({
356539
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/proto/index.js"() {
356540
+ init_types9();
356541
+ }
356542
+ });
356543
+
356544
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/Source.js
356545
+ var Source;
356546
+ var init_Source = __esm({
356547
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/Source.js"() {
356548
+ init_api();
356549
+ Source = {
356550
+ proto: (value) => {
356551
+ return {
356552
+ value,
356553
+ type: "proto",
356554
+ _visit: function(visitor) {
356555
+ return Source._visit(this, visitor);
356556
+ }
356557
+ };
356558
+ },
356559
+ _visit: (value, visitor) => {
356560
+ switch (value.type) {
356561
+ case "proto":
356562
+ return visitor.proto(value.value);
356563
+ default:
356564
+ return visitor._other(value);
356565
+ }
356566
+ }
356567
+ };
356568
+ }
356569
+ });
356570
+
356571
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/Encoding.js
356572
+ var init_Encoding = __esm({
356573
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/Encoding.js"() {
356574
+ }
356575
+ });
356576
+
356577
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/JsonEncoding.js
356578
+ var init_JsonEncoding = __esm({
356579
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/JsonEncoding.js"() {
356580
+ }
356581
+ });
356582
+
356583
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/ProtoEncoding.js
356584
+ var init_ProtoEncoding = __esm({
356585
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/ProtoEncoding.js"() {
356586
+ }
356587
+ });
356588
+
356029
356589
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/TypeDeclaration.js
356030
356590
  var init_TypeDeclaration = __esm({
356031
356591
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/TypeDeclaration.js"() {
@@ -357349,8 +357909,12 @@ var init_ExampleObjectTypeWithTypeId = __esm({
357349
357909
  });
357350
357910
 
357351
357911
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/index.js
357352
- var init_types9 = __esm({
357912
+ var init_types10 = __esm({
357353
357913
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/types/index.js"() {
357914
+ init_Source();
357915
+ init_Encoding();
357916
+ init_JsonEncoding();
357917
+ init_ProtoEncoding();
357354
357918
  init_TypeDeclaration();
357355
357919
  init_DeclaredTypeName();
357356
357920
  init_Type();
@@ -357435,12 +357999,13 @@ __export(types_exports2, {
357435
357999
  ResolvedTypeReference: () => ResolvedTypeReference,
357436
358000
  ShapeType: () => ShapeType,
357437
358001
  SingleUnionTypeProperties: () => SingleUnionTypeProperties,
358002
+ Source: () => Source,
357438
358003
  Type: () => Type2,
357439
358004
  TypeReference: () => TypeReference
357440
358005
  });
357441
- var init_types10 = __esm({
358006
+ var init_types11 = __esm({
357442
358007
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/types/index.js"() {
357443
- init_types9();
358008
+ init_types10();
357444
358009
  }
357445
358010
  });
357446
358011
 
@@ -357457,7 +358022,7 @@ var init_VariableDeclaration = __esm({
357457
358022
  });
357458
358023
 
357459
358024
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/variables/types/index.js
357460
- var init_types11 = __esm({
358025
+ var init_types12 = __esm({
357461
358026
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/variables/types/index.js"() {
357462
358027
  init_VariableId();
357463
358028
  init_VariableDeclaration();
@@ -357468,7 +358033,7 @@ var init_types11 = __esm({
357468
358033
  var variables_exports = {};
357469
358034
  var init_variables = __esm({
357470
358035
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/variables/index.js"() {
357471
- init_types11();
358036
+ init_types12();
357472
358037
  }
357473
358038
  });
357474
358039
 
@@ -357574,7 +358139,7 @@ var init_ExampleWebhookCall = __esm({
357574
358139
  });
357575
358140
 
357576
358141
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/webhooks/types/index.js
357577
- var init_types12 = __esm({
358142
+ var init_types13 = __esm({
357578
358143
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/webhooks/types/index.js"() {
357579
358144
  init_WebhookGroup();
357580
358145
  init_Webhook();
@@ -357596,7 +358161,7 @@ __export(webhooks_exports, {
357596
358161
  });
357597
358162
  var init_webhooks = __esm({
357598
358163
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/webhooks/index.js"() {
357599
- init_types12();
358164
+ init_types13();
357600
358165
  }
357601
358166
  });
357602
358167
 
@@ -357752,7 +358317,7 @@ var init_ExampleWebSocketMessageBody = __esm({
357752
358317
  });
357753
358318
 
357754
358319
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/websocket/types/index.js
357755
- var init_types13 = __esm({
358320
+ var init_types14 = __esm({
357756
358321
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/websocket/types/index.js"() {
357757
358322
  init_WebSocketMessageId();
357758
358323
  init_WebSocketChannel();
@@ -357778,7 +358343,7 @@ __export(websocket_exports5, {
357778
358343
  });
357779
358344
  var init_websocket = __esm({
357780
358345
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/resources/websocket/index.js"() {
357781
- init_types13();
358346
+ init_types14();
357782
358347
  }
357783
358348
  });
357784
358349
 
@@ -357799,20 +358364,23 @@ var init_resources2 = __esm({
357799
358364
  init_types7();
357800
358365
  init_ir();
357801
358366
  init_types8();
357802
- init_types10();
358367
+ init_proto();
357803
358368
  init_types9();
357804
- init_variables();
357805
358369
  init_types11();
357806
- init_webhooks();
358370
+ init_types10();
358371
+ init_variables();
357807
358372
  init_types12();
357808
- init_websocket();
358373
+ init_webhooks();
357809
358374
  init_types13();
358375
+ init_websocket();
358376
+ init_types14();
357810
358377
  }
357811
358378
  });
357812
358379
 
357813
358380
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/api/index.js
357814
358381
  var api_exports7 = {};
357815
358382
  __export(api_exports7, {
358383
+ ApiDefinitionSource: () => ApiDefinitionSource,
357816
358384
  ApiVersionScheme: () => ApiVersionScheme,
357817
358385
  AuthScheme: () => AuthScheme,
357818
358386
  AuthSchemesRequirement: () => AuthSchemesRequirement,
@@ -357845,20 +358413,24 @@ __export(api_exports7, {
357845
358413
  PathParameterLocation: () => PathParameterLocation,
357846
358414
  PrimitiveTypeV1: () => PrimitiveTypeV1,
357847
358415
  PrimitiveTypeV2: () => PrimitiveTypeV2,
358416
+ ProtobufType: () => ProtobufType,
357848
358417
  RequestPropertyValue: () => RequestPropertyValue,
357849
358418
  ResolvedTypeReference: () => ResolvedTypeReference,
357850
358419
  SdkRequestBodyType: () => SdkRequestBodyType,
357851
358420
  SdkRequestShape: () => SdkRequestShape,
357852
358421
  ShapeType: () => ShapeType,
357853
358422
  SingleUnionTypeProperties: () => SingleUnionTypeProperties,
358423
+ Source: () => Source,
357854
358424
  StreamingResponse: () => StreamingResponse,
357855
358425
  SupportedSdkLanguage: () => SupportedSdkLanguage,
358426
+ Transport: () => Transport,
357856
358427
  Type: () => Type2,
357857
358428
  TypeReference: () => TypeReference,
357858
358429
  WebSocketMessageBody: () => WebSocketMessageBody,
357859
358430
  WebSocketMessageOrigin: () => WebSocketMessageOrigin3,
357860
358431
  WebhookHttpMethod: () => WebhookHttpMethod3,
357861
358432
  WebhookPayload: () => WebhookPayload,
358433
+ WellKnownProtobufType: () => WellKnownProtobufType,
357862
358434
  auth: () => auth_exports,
357863
358435
  commons: () => commons_exports11,
357864
358436
  constants: () => constants_exports,
@@ -357866,6 +358438,7 @@ __export(api_exports7, {
357866
358438
  errors: () => errors_exports,
357867
358439
  http: () => http_exports,
357868
358440
  ir: () => ir_exports,
358441
+ proto: () => proto_exports,
357869
358442
  types: () => types_exports2,
357870
358443
  variables: () => variables_exports,
357871
358444
  webhooks: () => webhooks_exports,
@@ -359588,7 +360161,7 @@ var init_HeaderAuthScheme2 = __esm({
359588
360161
  });
359589
360162
 
359590
360163
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/auth/types/index.js
359591
- var init_types14 = __esm({
360164
+ var init_types15 = __esm({
359592
360165
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/auth/types/index.js"() {
359593
360166
  init_EnvironmentVariable2();
359594
360167
  init_ApiAuth2();
@@ -359629,7 +360202,7 @@ __export(auth_exports2, {
359629
360202
  });
359630
360203
  var init_auth2 = __esm({
359631
360204
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/auth/index.js"() {
359632
- init_types14();
360205
+ init_types15();
359633
360206
  }
359634
360207
  });
359635
360208
 
@@ -359845,7 +360418,7 @@ var init_EndpointReference2 = __esm({
359845
360418
  });
359846
360419
 
359847
360420
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/commons/types/index.js
359848
- var init_types15 = __esm({
360421
+ var init_types16 = __esm({
359849
360422
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/commons/types/index.js"() {
359850
360423
  init_WithDocs2();
359851
360424
  init_FernFilepath2();
@@ -359896,7 +360469,7 @@ __export(commons_exports12, {
359896
360469
  });
359897
360470
  var init_commons2 = __esm({
359898
360471
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/commons/index.js"() {
359899
- init_types15();
360472
+ init_types16();
359900
360473
  }
359901
360474
  });
359902
360475
 
@@ -359912,7 +360485,7 @@ var init_Constants2 = __esm({
359912
360485
  });
359913
360486
 
359914
360487
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/constants/types/index.js
359915
- var init_types16 = __esm({
360488
+ var init_types17 = __esm({
359916
360489
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/constants/types/index.js"() {
359917
360490
  init_Constants2();
359918
360491
  }
@@ -359925,7 +360498,7 @@ __export(constants_exports2, {
359925
360498
  });
359926
360499
  var init_constants2 = __esm({
359927
360500
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/constants/index.js"() {
359928
- init_types16();
360501
+ init_types17();
359929
360502
  }
359930
360503
  });
359931
360504
 
@@ -360055,7 +360628,7 @@ var init_EnvironmentBaseUrlWithId2 = __esm({
360055
360628
  });
360056
360629
 
360057
360630
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/environment/types/index.js
360058
- var init_types17 = __esm({
360631
+ var init_types18 = __esm({
360059
360632
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/environment/types/index.js"() {
360060
360633
  init_EnvironmentId2();
360061
360634
  init_EnvironmentBaseUrlId2();
@@ -360086,7 +360659,7 @@ __export(environment_exports2, {
360086
360659
  });
360087
360660
  var init_environment2 = __esm({
360088
360661
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/environment/index.js"() {
360089
- init_types17();
360662
+ init_types18();
360090
360663
  }
360091
360664
  });
360092
360665
 
@@ -360156,7 +360729,7 @@ var init_ExampleError2 = __esm({
360156
360729
  });
360157
360730
 
360158
360731
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/errors/types/index.js
360159
- var init_types18 = __esm({
360732
+ var init_types19 = __esm({
360160
360733
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/errors/types/index.js"() {
360161
360734
  init_ErrorDeclaration2();
360162
360735
  init_ErrorDeclarationDiscriminantValue2();
@@ -360175,7 +360748,7 @@ __export(errors_exports2, {
360175
360748
  });
360176
360749
  var init_errors2 = __esm({
360177
360750
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/errors/index.js"() {
360178
- init_types18();
360751
+ init_types19();
360179
360752
  }
360180
360753
  });
360181
360754
 
@@ -360191,7 +360764,9 @@ var init_HttpService2 = __esm({
360191
360764
  basePath: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).HttpPath),
360192
360765
  endpoints: schemas_exports4.list(schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).HttpEndpoint)),
360193
360766
  headers: schemas_exports4.list(schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).HttpHeader)),
360194
- pathParameters: schemas_exports4.list(schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).PathParameter))
360767
+ pathParameters: schemas_exports4.list(schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).PathParameter)),
360768
+ encoding: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).Encoding).optional(),
360769
+ transport: schemas_exports4.lazy(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).Transport).optional()
360195
360770
  });
360196
360771
  }
360197
360772
  });
@@ -360207,6 +360782,42 @@ var init_DeclaredServiceName2 = __esm({
360207
360782
  }
360208
360783
  });
360209
360784
 
360785
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/http/types/Transport.js
360786
+ var Transport2;
360787
+ var init_Transport2 = __esm({
360788
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/http/types/Transport.js"() {
360789
+ init_api();
360790
+ init_core2();
360791
+ Transport2 = schemas_exports4.union("type", {
360792
+ http: schemas_exports4.object({}),
360793
+ grpc: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).GrpcTransport)
360794
+ }).transform({
360795
+ transform: (value) => {
360796
+ switch (value.type) {
360797
+ case "http":
360798
+ return Transport.http();
360799
+ case "grpc":
360800
+ return Transport.grpc(value);
360801
+ default:
360802
+ return value;
360803
+ }
360804
+ },
360805
+ untransform: ({ _visit, ...value }) => value
360806
+ });
360807
+ }
360808
+ });
360809
+
360810
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/http/types/GrpcTransport.js
360811
+ var GrpcTransport;
360812
+ var init_GrpcTransport2 = __esm({
360813
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/http/types/GrpcTransport.js"() {
360814
+ init_core2();
360815
+ GrpcTransport = schemas_exports4.objectWithoutOptionalProperties({
360816
+ service: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ProtobufService)
360817
+ });
360818
+ }
360819
+ });
360820
+
360210
360821
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/http/types/HttpEndpoint.js
360211
360822
  var HttpEndpoint;
360212
360823
  var init_HttpEndpoint2 = __esm({
@@ -361191,10 +361802,12 @@ var init_ExampleEndpointErrorResponse2 = __esm({
361191
361802
  });
361192
361803
 
361193
361804
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/http/types/index.js
361194
- var init_types19 = __esm({
361805
+ var init_types20 = __esm({
361195
361806
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/http/types/index.js"() {
361196
361807
  init_HttpService2();
361197
361808
  init_DeclaredServiceName2();
361809
+ init_Transport2();
361810
+ init_GrpcTransport2();
361198
361811
  init_HttpEndpoint2();
361199
361812
  init_EndpointName2();
361200
361813
  init_HttpPath2();
@@ -361287,6 +361900,7 @@ __export(http_exports2, {
361287
361900
  FilePropertySingle: () => FilePropertySingle,
361288
361901
  FileUploadRequest: () => FileUploadRequest,
361289
361902
  FileUploadRequestProperty: () => FileUploadRequestProperty2,
361903
+ GrpcTransport: () => GrpcTransport,
361290
361904
  HttpEndpoint: () => HttpEndpoint,
361291
361905
  HttpHeader: () => HttpHeader,
361292
361906
  HttpMethod: () => HttpMethod5,
@@ -361324,11 +361938,12 @@ __export(http_exports2, {
361324
361938
  SupportedSdkLanguage: () => SupportedSdkLanguage2,
361325
361939
  TextResponse: () => TextResponse,
361326
361940
  TextStreamChunk: () => TextStreamChunk,
361941
+ Transport: () => Transport2,
361327
361942
  UserSpecifiedEndpointExample: () => UserSpecifiedEndpointExample
361328
361943
  });
361329
361944
  var init_http2 = __esm({
361330
361945
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/http/index.js"() {
361331
- init_types19();
361946
+ init_types20();
361332
361947
  }
361333
361948
  });
361334
361949
 
@@ -361361,7 +361976,8 @@ var init_IntermediateRepresentation2 = __esm({
361361
361976
  sdkConfig: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).SdkConfig),
361362
361977
  variables: schemas_exports4.list(schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).VariableDeclaration)),
361363
361978
  serviceTypeReferenceInfo: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ServiceTypeReferenceInfo),
361364
- readmeConfig: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ReadmeConfig).optional()
361979
+ readmeConfig: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ReadmeConfig).optional(),
361980
+ sourceConfig: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).SourceConfig).optional()
361365
361981
  });
361366
361982
  }
361367
361983
  });
@@ -361381,6 +361997,63 @@ var init_ReadmeConfig2 = __esm({
361381
361997
  }
361382
361998
  });
361383
361999
 
362000
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/SourceConfig.js
362001
+ var SourceConfig;
362002
+ var init_SourceConfig2 = __esm({
362003
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/SourceConfig.js"() {
362004
+ init_core2();
362005
+ SourceConfig = schemas_exports4.objectWithoutOptionalProperties({
362006
+ sources: schemas_exports4.list(schemas_exports4.lazy(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ApiDefinitionSource))
362007
+ });
362008
+ }
362009
+ });
362010
+
362011
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/ApiDefinitionSourceId.js
362012
+ var ApiDefinitionSourceId;
362013
+ var init_ApiDefinitionSourceId2 = __esm({
362014
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/ApiDefinitionSourceId.js"() {
362015
+ init_core2();
362016
+ ApiDefinitionSourceId = schemas_exports4.string();
362017
+ }
362018
+ });
362019
+
362020
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/ApiDefinitionSource.js
362021
+ var ApiDefinitionSource2;
362022
+ var init_ApiDefinitionSource2 = __esm({
362023
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/ApiDefinitionSource.js"() {
362024
+ init_api();
362025
+ init_core2();
362026
+ ApiDefinitionSource2 = schemas_exports4.union("type", {
362027
+ proto: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ProtoSource),
362028
+ openapi: schemas_exports4.object({})
362029
+ }).transform({
362030
+ transform: (value) => {
362031
+ switch (value.type) {
362032
+ case "proto":
362033
+ return ApiDefinitionSource.proto(value);
362034
+ case "openapi":
362035
+ return ApiDefinitionSource.openapi();
362036
+ default:
362037
+ return value;
362038
+ }
362039
+ },
362040
+ untransform: ({ _visit, ...value }) => value
362041
+ });
362042
+ }
362043
+ });
362044
+
362045
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/ProtoSource.js
362046
+ var ProtoSource;
362047
+ var init_ProtoSource2 = __esm({
362048
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/ProtoSource.js"() {
362049
+ init_core2();
362050
+ ProtoSource = schemas_exports4.objectWithoutOptionalProperties({
362051
+ id: schemas_exports4.lazy(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ApiDefinitionSourceId),
362052
+ protoRootUrl: schemas_exports4.string()
362053
+ });
362054
+ }
362055
+ });
362056
+
361384
362057
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/SdkConfig.js
361385
362058
  var SdkConfig;
361386
362059
  var init_SdkConfig2 = __esm({
@@ -361534,10 +362207,14 @@ var init_ServiceTypeReferenceInfo2 = __esm({
361534
362207
  });
361535
362208
 
361536
362209
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/index.js
361537
- var init_types20 = __esm({
362210
+ var init_types21 = __esm({
361538
362211
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/types/index.js"() {
361539
362212
  init_IntermediateRepresentation2();
361540
362213
  init_ReadmeConfig2();
362214
+ init_SourceConfig2();
362215
+ init_ApiDefinitionSourceId2();
362216
+ init_ApiDefinitionSource2();
362217
+ init_ProtoSource2();
361541
362218
  init_SdkConfig2();
361542
362219
  init_PlatformHeaders2();
361543
362220
  init_ApiVersionScheme2();
@@ -361554,6 +362231,8 @@ var init_types20 = __esm({
361554
362231
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/index.js
361555
362232
  var ir_exports2 = {};
361556
362233
  __export(ir_exports2, {
362234
+ ApiDefinitionSource: () => ApiDefinitionSource2,
362235
+ ApiDefinitionSourceId: () => ApiDefinitionSourceId,
361557
362236
  ApiVersionScheme: () => ApiVersionScheme2,
361558
362237
  ErrorDiscriminationByPropertyStrategy: () => ErrorDiscriminationByPropertyStrategy,
361559
362238
  ErrorDiscriminationStrategy: () => ErrorDiscriminationStrategy2,
@@ -361562,14 +362241,295 @@ __export(ir_exports2, {
361562
362241
  Package: () => Package,
361563
362242
  PackageNavigationConfig: () => PackageNavigationConfig,
361564
362243
  PlatformHeaders: () => PlatformHeaders,
362244
+ ProtoSource: () => ProtoSource,
361565
362245
  ReadmeConfig: () => ReadmeConfig,
361566
362246
  SdkConfig: () => SdkConfig,
361567
362247
  ServiceTypeReferenceInfo: () => ServiceTypeReferenceInfo,
362248
+ SourceConfig: () => SourceConfig,
361568
362249
  Subpackage: () => Subpackage
361569
362250
  });
361570
362251
  var init_ir2 = __esm({
361571
362252
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/ir/index.js"() {
361572
- init_types20();
362253
+ init_types21();
362254
+ }
362255
+ });
362256
+
362257
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/ProtobufService.js
362258
+ var ProtobufService;
362259
+ var init_ProtobufService2 = __esm({
362260
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/ProtobufService.js"() {
362261
+ init_core2();
362262
+ ProtobufService = schemas_exports4.objectWithoutOptionalProperties({
362263
+ file: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ProtobufFile),
362264
+ name: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).Name)
362265
+ });
362266
+ }
362267
+ });
362268
+
362269
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/ProtobufType.js
362270
+ var ProtobufType2;
362271
+ var init_ProtobufType2 = __esm({
362272
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/ProtobufType.js"() {
362273
+ init_api();
362274
+ init_core2();
362275
+ ProtobufType2 = schemas_exports4.union("type", {
362276
+ wellKnown: schemas_exports4.object({
362277
+ value: schemas_exports4.lazy(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).WellKnownProtobufType)
362278
+ }),
362279
+ userDefined: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).UserDefinedProtobufType)
362280
+ }).transform({
362281
+ transform: (value) => {
362282
+ switch (value.type) {
362283
+ case "wellKnown":
362284
+ return ProtobufType.wellKnown(value.value);
362285
+ case "userDefined":
362286
+ return ProtobufType.userDefined(value);
362287
+ default:
362288
+ return value;
362289
+ }
362290
+ },
362291
+ untransform: ({ _visit, ...value }) => value
362292
+ });
362293
+ }
362294
+ });
362295
+
362296
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/UserDefinedProtobufType.js
362297
+ var UserDefinedProtobufType;
362298
+ var init_UserDefinedProtobufType2 = __esm({
362299
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/UserDefinedProtobufType.js"() {
362300
+ init_core2();
362301
+ UserDefinedProtobufType = schemas_exports4.objectWithoutOptionalProperties({
362302
+ file: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ProtobufFile),
362303
+ name: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).Name)
362304
+ });
362305
+ }
362306
+ });
362307
+
362308
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/WellKnownProtobufType.js
362309
+ var WellKnownProtobufType2;
362310
+ var init_WellKnownProtobufType2 = __esm({
362311
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/WellKnownProtobufType.js"() {
362312
+ init_api();
362313
+ init_core2();
362314
+ WellKnownProtobufType2 = schemas_exports4.union("type", {
362315
+ any: schemas_exports4.object({}),
362316
+ api: schemas_exports4.object({}),
362317
+ boolValue: schemas_exports4.object({}),
362318
+ bytesValue: schemas_exports4.object({}),
362319
+ doubleValue: schemas_exports4.object({}),
362320
+ duration: schemas_exports4.object({}),
362321
+ empty: schemas_exports4.object({}),
362322
+ enum: schemas_exports4.object({}),
362323
+ enumValue: schemas_exports4.object({}),
362324
+ field: schemas_exports4.object({}),
362325
+ fieldCardinality: schemas_exports4.object({}),
362326
+ fieldKind: schemas_exports4.object({}),
362327
+ fieldMask: schemas_exports4.object({}),
362328
+ floatValue: schemas_exports4.object({}),
362329
+ int32Value: schemas_exports4.object({}),
362330
+ int64Value: schemas_exports4.object({}),
362331
+ listValue: schemas_exports4.object({}),
362332
+ method: schemas_exports4.object({}),
362333
+ mixin: schemas_exports4.object({}),
362334
+ nullValue: schemas_exports4.object({}),
362335
+ option: schemas_exports4.object({}),
362336
+ sourceContext: schemas_exports4.object({}),
362337
+ stringValue: schemas_exports4.object({}),
362338
+ struct: schemas_exports4.object({}),
362339
+ syntax: schemas_exports4.object({}),
362340
+ timestamp: schemas_exports4.object({}),
362341
+ type: schemas_exports4.object({}),
362342
+ uint32Value: schemas_exports4.object({}),
362343
+ uint64Value: schemas_exports4.object({}),
362344
+ value: schemas_exports4.object({})
362345
+ }).transform({
362346
+ transform: (value) => {
362347
+ switch (value.type) {
362348
+ case "any":
362349
+ return WellKnownProtobufType.any();
362350
+ case "api":
362351
+ return WellKnownProtobufType.api();
362352
+ case "boolValue":
362353
+ return WellKnownProtobufType.boolValue();
362354
+ case "bytesValue":
362355
+ return WellKnownProtobufType.bytesValue();
362356
+ case "doubleValue":
362357
+ return WellKnownProtobufType.doubleValue();
362358
+ case "duration":
362359
+ return WellKnownProtobufType.duration();
362360
+ case "empty":
362361
+ return WellKnownProtobufType.empty();
362362
+ case "enum":
362363
+ return WellKnownProtobufType.enum();
362364
+ case "enumValue":
362365
+ return WellKnownProtobufType.enumValue();
362366
+ case "field":
362367
+ return WellKnownProtobufType.field();
362368
+ case "fieldCardinality":
362369
+ return WellKnownProtobufType.fieldCardinality();
362370
+ case "fieldKind":
362371
+ return WellKnownProtobufType.fieldKind();
362372
+ case "fieldMask":
362373
+ return WellKnownProtobufType.fieldMask();
362374
+ case "floatValue":
362375
+ return WellKnownProtobufType.floatValue();
362376
+ case "int32Value":
362377
+ return WellKnownProtobufType.int32Value();
362378
+ case "int64Value":
362379
+ return WellKnownProtobufType.int64Value();
362380
+ case "listValue":
362381
+ return WellKnownProtobufType.listValue();
362382
+ case "method":
362383
+ return WellKnownProtobufType.method();
362384
+ case "mixin":
362385
+ return WellKnownProtobufType.mixin();
362386
+ case "nullValue":
362387
+ return WellKnownProtobufType.nullValue();
362388
+ case "option":
362389
+ return WellKnownProtobufType.option();
362390
+ case "sourceContext":
362391
+ return WellKnownProtobufType.sourceContext();
362392
+ case "stringValue":
362393
+ return WellKnownProtobufType.stringValue();
362394
+ case "struct":
362395
+ return WellKnownProtobufType.struct();
362396
+ case "syntax":
362397
+ return WellKnownProtobufType.syntax();
362398
+ case "timestamp":
362399
+ return WellKnownProtobufType.timestamp();
362400
+ case "type":
362401
+ return WellKnownProtobufType.type();
362402
+ case "uint32Value":
362403
+ return WellKnownProtobufType.uint32Value();
362404
+ case "uint64Value":
362405
+ return WellKnownProtobufType.uint64Value();
362406
+ case "value":
362407
+ return WellKnownProtobufType.value();
362408
+ default:
362409
+ return value;
362410
+ }
362411
+ },
362412
+ untransform: ({ _visit, ...value }) => value
362413
+ });
362414
+ }
362415
+ });
362416
+
362417
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/ProtobufFile.js
362418
+ var ProtobufFile;
362419
+ var init_ProtobufFile2 = __esm({
362420
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/ProtobufFile.js"() {
362421
+ init_core2();
362422
+ ProtobufFile = schemas_exports4.objectWithoutOptionalProperties({
362423
+ filepath: schemas_exports4.string(),
362424
+ packageName: schemas_exports4.string().optional(),
362425
+ options: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ProtobufFileOptions).optional()
362426
+ });
362427
+ }
362428
+ });
362429
+
362430
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/ProtobufFileOptions.js
362431
+ var ProtobufFileOptions;
362432
+ var init_ProtobufFileOptions2 = __esm({
362433
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/ProtobufFileOptions.js"() {
362434
+ init_core2();
362435
+ ProtobufFileOptions = schemas_exports4.objectWithoutOptionalProperties({
362436
+ csharp: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).CsharpProtobufFileOptions).optional()
362437
+ });
362438
+ }
362439
+ });
362440
+
362441
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/CsharpProtobufFileOptions.js
362442
+ var CsharpProtobufFileOptions;
362443
+ var init_CsharpProtobufFileOptions2 = __esm({
362444
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/CsharpProtobufFileOptions.js"() {
362445
+ init_core2();
362446
+ CsharpProtobufFileOptions = schemas_exports4.objectWithoutOptionalProperties({
362447
+ namespace: schemas_exports4.string()
362448
+ });
362449
+ }
362450
+ });
362451
+
362452
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/index.js
362453
+ var init_types22 = __esm({
362454
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/types/index.js"() {
362455
+ init_ProtobufService2();
362456
+ init_ProtobufType2();
362457
+ init_UserDefinedProtobufType2();
362458
+ init_WellKnownProtobufType2();
362459
+ init_ProtobufFile2();
362460
+ init_ProtobufFileOptions2();
362461
+ init_CsharpProtobufFileOptions2();
362462
+ }
362463
+ });
362464
+
362465
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/index.js
362466
+ var proto_exports2 = {};
362467
+ __export(proto_exports2, {
362468
+ CsharpProtobufFileOptions: () => CsharpProtobufFileOptions,
362469
+ ProtobufFile: () => ProtobufFile,
362470
+ ProtobufFileOptions: () => ProtobufFileOptions,
362471
+ ProtobufService: () => ProtobufService,
362472
+ ProtobufType: () => ProtobufType2,
362473
+ UserDefinedProtobufType: () => UserDefinedProtobufType,
362474
+ WellKnownProtobufType: () => WellKnownProtobufType2
362475
+ });
362476
+ var init_proto2 = __esm({
362477
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/proto/index.js"() {
362478
+ init_types22();
362479
+ }
362480
+ });
362481
+
362482
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/types/Source.js
362483
+ var Source2;
362484
+ var init_Source2 = __esm({
362485
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/types/Source.js"() {
362486
+ init_api();
362487
+ init_core2();
362488
+ Source2 = schemas_exports4.union("type", {
362489
+ proto: schemas_exports4.object({
362490
+ value: schemas_exports4.lazy(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ProtobufType)
362491
+ })
362492
+ }).transform({
362493
+ transform: (value) => {
362494
+ switch (value.type) {
362495
+ case "proto":
362496
+ return Source.proto(value.value);
362497
+ default:
362498
+ return value;
362499
+ }
362500
+ },
362501
+ untransform: ({ _visit, ...value }) => value
362502
+ });
362503
+ }
362504
+ });
362505
+
362506
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/types/Encoding.js
362507
+ var Encoding;
362508
+ var init_Encoding2 = __esm({
362509
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/types/Encoding.js"() {
362510
+ init_core2();
362511
+ Encoding = schemas_exports4.objectWithoutOptionalProperties({
362512
+ json: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).JsonEncoding).optional(),
362513
+ proto: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ProtoEncoding).optional()
362514
+ });
362515
+ }
362516
+ });
362517
+
362518
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/types/JsonEncoding.js
362519
+ var JsonEncoding;
362520
+ var init_JsonEncoding2 = __esm({
362521
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/types/JsonEncoding.js"() {
362522
+ init_core2();
362523
+ JsonEncoding = schemas_exports4.objectWithoutOptionalProperties({});
362524
+ }
362525
+ });
362526
+
362527
+ // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/types/ProtoEncoding.js
362528
+ var ProtoEncoding;
362529
+ var init_ProtoEncoding2 = __esm({
362530
+ "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/types/ProtoEncoding.js"() {
362531
+ init_core2();
362532
+ ProtoEncoding = schemas_exports4.objectWithoutOptionalProperties({});
361573
362533
  }
361574
362534
  });
361575
362535
 
@@ -361583,7 +362543,9 @@ var init_TypeDeclaration2 = __esm({
361583
362543
  shape: schemas_exports4.lazy(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).Type),
361584
362544
  autogeneratedExamples: schemas_exports4.list(schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ExampleType)),
361585
362545
  userProvidedExamples: schemas_exports4.list(schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).ExampleType)),
361586
- referencedTypes: schemas_exports4.set(schemas_exports4.lazy(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).TypeId))
362546
+ referencedTypes: schemas_exports4.set(schemas_exports4.lazy(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).TypeId)),
362547
+ encoding: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).Encoding).optional(),
362548
+ source: schemas_exports4.lazy(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).Source).optional()
361587
362549
  }).extend(schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization2(), serialization_exports2))).Declaration));
361588
362550
  }
361589
362551
  });
@@ -362695,8 +363657,12 @@ var init_ExampleObjectTypeWithTypeId2 = __esm({
362695
363657
  });
362696
363658
 
362697
363659
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/types/index.js
362698
- var init_types21 = __esm({
363660
+ var init_types23 = __esm({
362699
363661
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/types/index.js"() {
363662
+ init_Source2();
363663
+ init_Encoding2();
363664
+ init_JsonEncoding2();
363665
+ init_ProtoEncoding2();
362700
363666
  init_TypeDeclaration2();
362701
363667
  init_DeclaredTypeName2();
362702
363668
  init_Type2();
@@ -362778,6 +363744,7 @@ __export(types_exports3, {
362778
363744
  DeclaredTypeName: () => DeclaredTypeName,
362779
363745
  DoubleType: () => DoubleType,
362780
363746
  DoubleValidationRules: () => DoubleValidationRules,
363747
+ Encoding: () => Encoding,
362781
363748
  EnumTypeDeclaration: () => EnumTypeDeclaration,
362782
363749
  EnumTypeReference: () => EnumTypeReference,
362783
363750
  EnumValue: () => EnumValue,
@@ -362806,6 +363773,7 @@ __export(types_exports3, {
362806
363773
  FloatType: () => FloatType,
362807
363774
  IntegerType: () => IntegerType,
362808
363775
  IntegerValidationRules: () => IntegerValidationRules,
363776
+ JsonEncoding: () => JsonEncoding,
362809
363777
  Literal: () => Literal2,
362810
363778
  LongType: () => LongType,
362811
363779
  MapType: () => MapType,
@@ -362816,12 +363784,14 @@ __export(types_exports3, {
362816
363784
  PrimitiveType: () => PrimitiveType,
362817
363785
  PrimitiveTypeV1: () => PrimitiveTypeV12,
362818
363786
  PrimitiveTypeV2: () => PrimitiveTypeV22,
363787
+ ProtoEncoding: () => ProtoEncoding,
362819
363788
  ResolvedNamedType: () => ResolvedNamedType,
362820
363789
  ResolvedTypeReference: () => ResolvedTypeReference2,
362821
363790
  ShapeType: () => ShapeType2,
362822
363791
  SingleUnionType: () => SingleUnionType,
362823
363792
  SingleUnionTypeProperties: () => SingleUnionTypeProperties2,
362824
363793
  SingleUnionTypeProperty: () => SingleUnionTypeProperty,
363794
+ Source: () => Source2,
362825
363795
  StringType: () => StringType,
362826
363796
  StringValidationRules: () => StringValidationRules,
362827
363797
  Type: () => Type3,
@@ -362834,9 +363804,9 @@ __export(types_exports3, {
362834
363804
  UnionTypeDeclaration: () => UnionTypeDeclaration,
362835
363805
  UuidType: () => UuidType
362836
363806
  });
362837
- var init_types22 = __esm({
363807
+ var init_types24 = __esm({
362838
363808
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/types/index.js"() {
362839
- init_types21();
363809
+ init_types23();
362840
363810
  }
362841
363811
  });
362842
363812
 
@@ -362863,7 +363833,7 @@ var init_VariableDeclaration2 = __esm({
362863
363833
  });
362864
363834
 
362865
363835
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/variables/types/index.js
362866
- var init_types23 = __esm({
363836
+ var init_types25 = __esm({
362867
363837
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/variables/types/index.js"() {
362868
363838
  init_VariableId2();
362869
363839
  init_VariableDeclaration2();
@@ -362878,7 +363848,7 @@ __export(variables_exports2, {
362878
363848
  });
362879
363849
  var init_variables2 = __esm({
362880
363850
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/variables/index.js"() {
362881
- init_types23();
363851
+ init_types25();
362882
363852
  }
362883
363853
  });
362884
363854
 
@@ -363000,7 +363970,7 @@ var init_ExampleWebhookCall2 = __esm({
363000
363970
  });
363001
363971
 
363002
363972
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/webhooks/types/index.js
363003
- var init_types24 = __esm({
363973
+ var init_types26 = __esm({
363004
363974
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/webhooks/types/index.js"() {
363005
363975
  init_WebhookGroup2();
363006
363976
  init_Webhook2();
@@ -363029,7 +363999,7 @@ __export(webhooks_exports2, {
363029
363999
  });
363030
364000
  var init_webhooks2 = __esm({
363031
364001
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/webhooks/index.js"() {
363032
- init_types24();
364002
+ init_types26();
363033
364003
  }
363034
364004
  });
363035
364005
 
@@ -363208,7 +364178,7 @@ var init_ExampleWebSocketMessageBody2 = __esm({
363208
364178
  });
363209
364179
 
363210
364180
  // pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/websocket/types/index.js
363211
- var init_types25 = __esm({
364181
+ var init_types27 = __esm({
363212
364182
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/websocket/types/index.js"() {
363213
364183
  init_WebSocketMessageId2();
363214
364184
  init_WebSocketChannel2();
@@ -363243,7 +364213,7 @@ __export(websocket_exports6, {
363243
364213
  });
363244
364214
  var init_websocket2 = __esm({
363245
364215
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/websocket/index.js"() {
363246
- init_types25();
364216
+ init_types27();
363247
364217
  }
363248
364218
  });
363249
364219
 
@@ -363251,27 +364221,29 @@ var init_websocket2 = __esm({
363251
364221
  var init_resources3 = __esm({
363252
364222
  "pnp:/home/runner/work/fern/fern/packages/ir-sdk/lib/sdk/serialization/resources/index.js"() {
363253
364223
  init_auth2();
363254
- init_types14();
363255
- init_commons2();
363256
364224
  init_types15();
363257
- init_constants2();
364225
+ init_commons2();
363258
364226
  init_types16();
363259
- init_environment2();
364227
+ init_constants2();
363260
364228
  init_types17();
363261
- init_errors2();
364229
+ init_environment2();
363262
364230
  init_types18();
363263
- init_http2();
364231
+ init_errors2();
363264
364232
  init_types19();
363265
- init_ir2();
364233
+ init_http2();
363266
364234
  init_types20();
363267
- init_types22();
364235
+ init_ir2();
363268
364236
  init_types21();
363269
- init_variables2();
364237
+ init_proto2();
364238
+ init_types22();
364239
+ init_types24();
363270
364240
  init_types23();
364241
+ init_variables2();
364242
+ init_types25();
363271
364243
  init_webhooks2();
363272
- init_types24();
364244
+ init_types26();
363273
364245
  init_websocket2();
363274
- init_types25();
364246
+ init_types27();
363275
364247
  }
363276
364248
  });
363277
364249
 
@@ -363280,6 +364252,8 @@ var serialization_exports2 = {};
363280
364252
  __export(serialization_exports2, {
363281
364253
  AliasTypeDeclaration: () => AliasTypeDeclaration,
363282
364254
  ApiAuth: () => ApiAuth,
364255
+ ApiDefinitionSource: () => ApiDefinitionSource2,
364256
+ ApiDefinitionSourceId: () => ApiDefinitionSourceId,
363283
364257
  ApiVersionScheme: () => ApiVersionScheme2,
363284
364258
  AuthScheme: () => AuthScheme2,
363285
364259
  AuthSchemesRequirement: () => AuthSchemesRequirement2,
@@ -363294,6 +364268,7 @@ __export(serialization_exports2, {
363294
364268
  BytesRequest: () => BytesRequest,
363295
364269
  Constants: () => Constants,
363296
364270
  ContainerType: () => ContainerType2,
364271
+ CsharpProtobufFileOptions: () => CsharpProtobufFileOptions,
363297
364272
  CursorPagination: () => CursorPagination,
363298
364273
  DateTimeType: () => DateTimeType,
363299
364274
  DateType: () => DateType,
@@ -363303,6 +364278,7 @@ __export(serialization_exports2, {
363303
364278
  DeclaredTypeName: () => DeclaredTypeName,
363304
364279
  DoubleType: () => DoubleType,
363305
364280
  DoubleValidationRules: () => DoubleValidationRules,
364281
+ Encoding: () => Encoding,
363306
364282
  EndpointId: () => EndpointId2,
363307
364283
  EndpointName: () => EndpointName,
363308
364284
  EndpointReference: () => EndpointReference,
@@ -363372,6 +364348,7 @@ __export(serialization_exports2, {
363372
364348
  FileUploadRequest: () => FileUploadRequest,
363373
364349
  FileUploadRequestProperty: () => FileUploadRequestProperty2,
363374
364350
  FloatType: () => FloatType,
364351
+ GrpcTransport: () => GrpcTransport,
363375
364352
  HeaderApiVersionScheme: () => HeaderApiVersionScheme,
363376
364353
  HeaderAuthScheme: () => HeaderAuthScheme,
363377
364354
  HttpEndpoint: () => HttpEndpoint,
@@ -363393,6 +364370,7 @@ __export(serialization_exports2, {
363393
364370
  IntegerType: () => IntegerType,
363394
364371
  IntegerValidationRules: () => IntegerValidationRules,
363395
364372
  IntermediateRepresentation: () => IntermediateRepresentation,
364373
+ JsonEncoding: () => JsonEncoding,
363396
364374
  JsonResponse: () => JsonResponse2,
363397
364375
  JsonResponseBody: () => JsonResponseBody,
363398
364376
  JsonResponseBodyWithProperty: () => JsonResponseBodyWithProperty,
@@ -363427,6 +364405,12 @@ __export(serialization_exports2, {
363427
364405
  PrimitiveType: () => PrimitiveType,
363428
364406
  PrimitiveTypeV1: () => PrimitiveTypeV12,
363429
364407
  PrimitiveTypeV2: () => PrimitiveTypeV22,
364408
+ ProtoEncoding: () => ProtoEncoding,
364409
+ ProtoSource: () => ProtoSource,
364410
+ ProtobufFile: () => ProtobufFile,
364411
+ ProtobufFileOptions: () => ProtobufFileOptions,
364412
+ ProtobufService: () => ProtobufService,
364413
+ ProtobufType: () => ProtobufType2,
363430
364414
  QueryParameter: () => QueryParameter,
363431
364415
  ReadmeConfig: () => ReadmeConfig,
363432
364416
  RequestProperty: () => RequestProperty,
@@ -363450,6 +364434,8 @@ __export(serialization_exports2, {
363450
364434
  SingleUnionType: () => SingleUnionType,
363451
364435
  SingleUnionTypeProperties: () => SingleUnionTypeProperties2,
363452
364436
  SingleUnionTypeProperty: () => SingleUnionTypeProperty,
364437
+ Source: () => Source2,
364438
+ SourceConfig: () => SourceConfig,
363453
364439
  SseStreamChunk: () => SseStreamChunk,
363454
364440
  StreamParameterResponse: () => StreamParameterResponse,
363455
364441
  StreamingResponse: () => StreamingResponse2,
@@ -363460,6 +364446,7 @@ __export(serialization_exports2, {
363460
364446
  SupportedSdkLanguage: () => SupportedSdkLanguage2,
363461
364447
  TextResponse: () => TextResponse,
363462
364448
  TextStreamChunk: () => TextStreamChunk,
364449
+ Transport: () => Transport2,
363463
364450
  Type: () => Type3,
363464
364451
  TypeDeclaration: () => TypeDeclaration,
363465
364452
  TypeId: () => TypeId,
@@ -363469,6 +364456,7 @@ __export(serialization_exports2, {
363469
364456
  UndiscriminatedUnionMember: () => UndiscriminatedUnionMember,
363470
364457
  UndiscriminatedUnionTypeDeclaration: () => UndiscriminatedUnionTypeDeclaration,
363471
364458
  UnionTypeDeclaration: () => UnionTypeDeclaration,
364459
+ UserDefinedProtobufType: () => UserDefinedProtobufType,
363472
364460
  UserSpecifiedEndpointExample: () => UserSpecifiedEndpointExample,
363473
364461
  UuidType: () => UuidType,
363474
364462
  VariableDeclaration: () => VariableDeclaration,
@@ -363489,6 +364477,7 @@ __export(serialization_exports2, {
363489
364477
  WebhookName: () => WebhookName,
363490
364478
  WebhookPayload: () => WebhookPayload2,
363491
364479
  WebhookPayloadReference: () => WebhookPayloadReference,
364480
+ WellKnownProtobufType: () => WellKnownProtobufType2,
363492
364481
  WithDocs: () => WithDocs,
363493
364482
  WithJsonExample: () => WithJsonExample,
363494
364483
  auth: () => auth_exports2,
@@ -363498,6 +364487,7 @@ __export(serialization_exports2, {
363498
364487
  errors: () => errors_exports2,
363499
364488
  http: () => http_exports2,
363500
364489
  ir: () => ir_exports2,
364490
+ proto: () => proto_exports2,
363501
364491
  types: () => types_exports3,
363502
364492
  variables: () => variables_exports2,
363503
364493
  webhooks: () => webhooks_exports2,
@@ -369409,7 +370399,7 @@ var init_WithSdkGroupName = __esm({
369409
370399
  });
369410
370400
 
369411
370401
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/commons/types/index.js
369412
- var init_types26 = __esm({
370402
+ var init_types28 = __esm({
369413
370403
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/commons/types/index.js"() {
369414
370404
  init_WithDescription();
369415
370405
  init_WithAvailability();
@@ -369434,7 +370424,7 @@ var init_types26 = __esm({
369434
370424
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/commons/index.js
369435
370425
  var init_commons3 = __esm({
369436
370426
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/commons/index.js"() {
369437
- init_types26();
370427
+ init_types28();
369438
370428
  }
369439
370429
  });
369440
370430
 
@@ -369774,7 +370764,7 @@ var init_FullOneOfExample = __esm({
369774
370764
  });
369775
370765
 
369776
370766
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/example/types/index.js
369777
- var init_types27 = __esm({
370767
+ var init_types29 = __esm({
369778
370768
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/example/types/index.js"() {
369779
370769
  init_PropertyKey();
369780
370770
  init_FullExample();
@@ -369789,7 +370779,7 @@ var init_types27 = __esm({
369789
370779
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/example/index.js
369790
370780
  var init_example = __esm({
369791
370781
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/example/index.js"() {
369792
- init_types27();
370782
+ init_types29();
369793
370783
  }
369794
370784
  });
369795
370785
 
@@ -370892,7 +371882,7 @@ var init_UnDiscriminatedOneOfSchema = __esm({
370892
371882
  });
370893
371883
 
370894
371884
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/types/index.js
370895
- var init_types28 = __esm({
371885
+ var init_types30 = __esm({
370896
371886
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/types/index.js"() {
370897
371887
  init_OpenApiIntermediateRepresentation();
370898
371888
  init_SdkGroupInfo();
@@ -370971,7 +371961,7 @@ var init_types28 = __esm({
370971
371961
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/index.js
370972
371962
  var init_finalIr = __esm({
370973
371963
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/index.js"() {
370974
- init_types28();
371964
+ init_types30();
370975
371965
  }
370976
371966
  });
370977
371967
 
@@ -371611,7 +372601,7 @@ var init_BooleanWithExample = __esm({
371611
372601
  });
371612
372602
 
371613
372603
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/parseIr/types/index.js
371614
- var init_types29 = __esm({
372604
+ var init_types31 = __esm({
371615
372605
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/parseIr/types/index.js"() {
371616
372606
  init_NamedFullExample();
371617
372607
  init_WebsocketHandshakeWithExample();
@@ -371656,7 +372646,7 @@ var init_types29 = __esm({
371656
372646
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/parseIr/index.js
371657
372647
  var init_parseIr = __esm({
371658
372648
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/parseIr/index.js"() {
371659
- init_types29();
372649
+ init_types31();
371660
372650
  }
371661
372651
  });
371662
372652
 
@@ -371664,13 +372654,13 @@ var init_parseIr = __esm({
371664
372654
  var init_resources4 = __esm({
371665
372655
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/index.js"() {
371666
372656
  init_commons3();
371667
- init_types26();
372657
+ init_types28();
371668
372658
  init_example();
371669
- init_types27();
372659
+ init_types29();
371670
372660
  init_finalIr();
371671
- init_types28();
372661
+ init_types30();
371672
372662
  init_parseIr();
371673
- init_types29();
372663
+ init_types31();
371674
372664
  }
371675
372665
  });
371676
372666
 
@@ -373388,7 +374378,7 @@ var init_WithSdkGroupName2 = __esm({
373388
374378
  });
373389
374379
 
373390
374380
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/commons/types/index.js
373391
- var init_types30 = __esm({
374381
+ var init_types32 = __esm({
373392
374382
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/commons/types/index.js"() {
373393
374383
  init_WithDescription2();
373394
374384
  init_WithAvailability2();
@@ -373433,7 +374423,7 @@ __export(commons_exports14, {
373433
374423
  });
373434
374424
  var init_commons4 = __esm({
373435
374425
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/commons/index.js"() {
373436
- init_types30();
374426
+ init_types32();
373437
374427
  }
373438
374428
  });
373439
374429
 
@@ -373659,7 +374649,7 @@ var init_FullOneOfExample2 = __esm({
373659
374649
  });
373660
374650
 
373661
374651
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/example/types/index.js
373662
- var init_types31 = __esm({
374652
+ var init_types33 = __esm({
373663
374653
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/example/types/index.js"() {
373664
374654
  init_PropertyKey2();
373665
374655
  init_FullExample2();
@@ -373684,7 +374674,7 @@ __export(example_exports2, {
373684
374674
  });
373685
374675
  var init_example2 = __esm({
373686
374676
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/example/index.js"() {
373687
- init_types31();
374677
+ init_types33();
373688
374678
  }
373689
374679
  });
373690
374680
 
@@ -374825,7 +375815,7 @@ var init_UnDiscriminatedOneOfSchema2 = __esm({
374825
375815
  });
374826
375816
 
374827
375817
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/types/index.js
374828
- var init_types32 = __esm({
375818
+ var init_types34 = __esm({
374829
375819
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/types/index.js"() {
374830
375820
  init_OpenApiIntermediateRepresentation2();
374831
375821
  init_SdkGroupInfo2();
@@ -374978,7 +375968,7 @@ __export(finalIr_exports2, {
374978
375968
  });
374979
375969
  var init_finalIr2 = __esm({
374980
375970
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/index.js"() {
374981
- init_types32();
375971
+ init_types34();
374982
375972
  }
374983
375973
  });
374984
375974
 
@@ -375605,7 +376595,7 @@ var init_BooleanWithExample2 = __esm({
375605
376595
  });
375606
376596
 
375607
376597
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/parseIr/types/index.js
375608
- var init_types33 = __esm({
376598
+ var init_types35 = __esm({
375609
376599
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/parseIr/types/index.js"() {
375610
376600
  init_NamedFullExample2();
375611
376601
  init_WebsocketHandshakeWithExample2();
@@ -375690,7 +376680,7 @@ __export(parseIr_exports2, {
375690
376680
  });
375691
376681
  var init_parseIr2 = __esm({
375692
376682
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/parseIr/index.js"() {
375693
- init_types33();
376683
+ init_types35();
375694
376684
  }
375695
376685
  });
375696
376686
 
@@ -375698,13 +376688,13 @@ var init_parseIr2 = __esm({
375698
376688
  var init_resources5 = __esm({
375699
376689
  "pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/index.js"() {
375700
376690
  init_commons4();
375701
- init_types30();
376691
+ init_types32();
375702
376692
  init_example2();
375703
- init_types31();
376693
+ init_types33();
375704
376694
  init_finalIr2();
375705
- init_types32();
376695
+ init_types34();
375706
376696
  init_parseIr2();
375707
- init_types33();
376697
+ init_types35();
375708
376698
  }
375709
376699
  });
375710
376700
 
@@ -395567,7 +396557,7 @@ var require_oas3 = __commonJS({
395567
396557
  },
395568
396558
  extensionsPrefix: "x-"
395569
396559
  };
395570
- var Encoding = {
396560
+ var Encoding2 = {
395571
396561
  properties: {
395572
396562
  contentType: { type: "string" },
395573
396563
  headers: "HeadersMap",
@@ -395867,7 +396857,7 @@ var require_oas3 = __commonJS({
395867
396857
  MediaType: MediaType2,
395868
396858
  Example,
395869
396859
  ExamplesMap: (0, _1.mapOf)("Example"),
395870
- Encoding,
396860
+ Encoding: Encoding2,
395871
396861
  EncodingMap: (0, _1.mapOf)("Encoding"),
395872
396862
  EnumDescriptions,
395873
396863
  Header: Header2,
@@ -406619,7 +407609,7 @@ var require_resolve3 = __commonJS({
406619
407609
  var ref_utils_1 = require_ref_utils();
406620
407610
  var types_1 = require_types22();
406621
407611
  var utils_1 = require_utils15();
406622
- var Source2 = class {
407612
+ var Source4 = class {
406623
407613
  constructor(absoluteRef, body, mimeType) {
406624
407614
  this.absoluteRef = absoluteRef;
406625
407615
  this.body = body;
@@ -406643,7 +407633,7 @@ var require_resolve3 = __commonJS({
406643
407633
  return this._lines;
406644
407634
  }
406645
407635
  };
406646
- exports2.Source = Source2;
407636
+ exports2.Source = Source4;
406647
407637
  var ResolveError = class extends Error {
406648
407638
  constructor(originalError) {
406649
407639
  super(originalError.message);
@@ -406670,7 +407660,7 @@ var require_resolve3 = __commonJS({
406670
407660
  }
406671
407661
  exports2.makeRefId = makeRefId;
406672
407662
  function makeDocumentFromString(sourceString, absoluteRef) {
406673
- const source = new Source2(absoluteRef, sourceString);
407663
+ const source = new Source4(absoluteRef, sourceString);
406674
407664
  try {
406675
407665
  return {
406676
407666
  source,
@@ -406703,13 +407693,13 @@ var require_resolve3 = __commonJS({
406703
407693
  try {
406704
407694
  if ((0, ref_utils_1.isAbsoluteUrl)(absoluteRef)) {
406705
407695
  const { body, mimeType } = yield (0, utils_1.readFileFromUrl)(absoluteRef, this.config.http);
406706
- return new Source2(absoluteRef, body, mimeType);
407696
+ return new Source4(absoluteRef, body, mimeType);
406707
407697
  } else {
406708
407698
  if (fs10.lstatSync(absoluteRef).isDirectory()) {
406709
407699
  throw new Error(`Expected a file but received a folder at ${absoluteRef}`);
406710
407700
  }
406711
407701
  const content5 = yield fs10.promises.readFile(absoluteRef, "utf-8");
406712
- return new Source2(absoluteRef, content5.replace(/\r\n/g, "\n"));
407702
+ return new Source4(absoluteRef, content5.replace(/\r\n/g, "\n"));
406713
407703
  }
406714
407704
  } catch (error) {
406715
407705
  error.message = error.message.replace(", lstat", "");
@@ -453308,7 +454298,7 @@ var require_extract3 = __commonJS({
453308
454298
  return size2 && 512 - size2;
453309
454299
  };
453310
454300
  var emptyStream = function(self2, offset2) {
453311
- var s2 = new Source2(self2, offset2);
454301
+ var s2 = new Source4(self2, offset2);
453312
454302
  s2.end();
453313
454303
  return s2;
453314
454304
  };
@@ -453322,13 +454312,13 @@ var require_extract3 = __commonJS({
453322
454312
  header.pax = pax;
453323
454313
  return header;
453324
454314
  };
453325
- var Source2 = function(self2, offset2) {
454315
+ var Source4 = function(self2, offset2) {
453326
454316
  this._parent = self2;
453327
454317
  this.offset = offset2;
453328
454318
  PassThrough2.call(this);
453329
454319
  };
453330
- util2.inherits(Source2, PassThrough2);
453331
- Source2.prototype.destroy = function(err) {
454320
+ util2.inherits(Source4, PassThrough2);
454321
+ Source4.prototype.destroy = function(err) {
453332
454322
  this._parent.destroy(err);
453333
454323
  };
453334
454324
  var Extract = function(opts) {
@@ -453456,7 +454446,7 @@ var require_extract3 = __commonJS({
453456
454446
  self2.emit("entry", header, emptyStream(self2, offset2), onunlock);
453457
454447
  return;
453458
454448
  }
453459
- self2._stream = new Source2(self2, offset2);
454449
+ self2._stream = new Source4(self2, offset2);
453460
454450
  self2.emit("entry", header, self2._stream, onunlock);
453461
454451
  self2._parse(header.size, onstreamend);
453462
454452
  oncontinue();
@@ -1210919,6 +1211909,7 @@ __export(generators_yml_exports, {
1210919
1211909
  getGeneratorNameOrThrow: () => getGeneratorNameOrThrow,
1210920
1211910
  getLatestGeneratorVersion: () => getLatestGeneratorVersion,
1210921
1211911
  getPathToGeneratorsConfiguration: () => getPathToGeneratorsConfiguration,
1211912
+ isRawProtobufAPIDefinitionSchema: () => isRawProtobufAPIDefinitionSchema,
1210922
1211913
  loadGeneratorsConfiguration: () => loadGeneratorsConfiguration,
1210923
1211914
  loadRawGeneratorsConfiguration: () => loadRawGeneratorsConfiguration,
1210924
1211915
  updateGeneratorGroup: () => updateGeneratorGroup,
@@ -1211209,6 +1212200,11 @@ var GenerationLanguage = {
1211209
1212200
  SWIFT: "swift"
1211210
1212201
  };
1211211
1212202
 
1212203
+ // pnp:/home/runner/work/fern/fern/packages/cli/configuration/lib/generators-yml/isRawProtobufAPIDefinitionSchema.js
1212204
+ function isRawProtobufAPIDefinitionSchema(rawApiConfiguration) {
1212205
+ return typeof rawApiConfiguration !== "string" && "proto" in rawApiConfiguration;
1212206
+ }
1212207
+
1211212
1212208
  // pnp:/home/runner/work/fern/fern/packages/cli/configuration/lib/generators-yml/loadGeneratorsConfiguration.js
1211213
1212209
  var import_promises11 = require("fs/promises");
1211214
1212210
  var import_path12 = __toESM(require("path"));
@@ -1211232,11 +1212228,19 @@ var APIDefintionWithOverridesSchema = z.object({
1211232
1212228
  audiences: z.optional(z.array(z.string())).describe("Audiences that you would like to filter to"),
1211233
1212229
  settings: z.optional(APIDefinitionSettingsSchema)
1211234
1212230
  });
1211235
- var APIDefinitionList = z.array(z.union([APIDefinitionPathSchema, APIDefintionWithOverridesSchema]));
1212231
+ var ProtobufDefinitionSchema = z.strictObject({
1212232
+ root: z.string().describe("The path to the `.proto` directroy root (e.g. `proto`)."),
1212233
+ target: z.string().describe("The path to the target `.proto` file that defines the API (e.g. `proto/user/v1/user.proto`).")
1212234
+ });
1212235
+ var ProtobufAPIDefinitionSchema = z.strictObject({
1212236
+ proto: ProtobufDefinitionSchema
1212237
+ });
1212238
+ var APIDefinitionList = z.array(z.union([APIDefinitionPathSchema, APIDefintionWithOverridesSchema, ProtobufAPIDefinitionSchema]));
1211236
1212239
  var APIConfigurationSchema = z.union([
1211237
1212240
  APIDefinitionPathSchema,
1211238
1212241
  APIDefintionWithOverridesSchema,
1211239
- APIDefinitionList
1212242
+ APIDefinitionList,
1212243
+ ProtobufAPIDefinitionSchema
1211240
1212244
  ]);
1211241
1212245
 
1211242
1212246
  // pnp:/home/runner/work/fern/fern/packages/cli/configuration/lib/generators-yml/schemas/LocalFileSystemOutputLocationSchema.js
@@ -1211516,6 +1212520,12 @@ async function parseAPIConfiguration(rawGeneratorsConfiguration) {
1211516
1212520
  const apiConfiguration = rawGeneratorsConfiguration.api;
1211517
1212521
  const apiDefinitions = [];
1211518
1212522
  if (apiConfiguration != null) {
1212523
+ if (isRawProtobufAPIDefinitionSchema(apiConfiguration)) {
1212524
+ return {
1212525
+ type: "singleNamespace",
1212526
+ definitions: apiDefinitions
1212527
+ };
1212528
+ }
1211519
1212529
  if (typeof apiConfiguration === "string") {
1211520
1212530
  apiDefinitions.push({
1211521
1212531
  path: apiConfiguration,
@@ -1211526,6 +1212536,9 @@ async function parseAPIConfiguration(rawGeneratorsConfiguration) {
1211526
1212536
  });
1211527
1212537
  } else if (Array.isArray(apiConfiguration)) {
1211528
1212538
  for (const definition3 of apiConfiguration) {
1212539
+ if (isRawProtobufAPIDefinitionSchema(definition3)) {
1212540
+ continue;
1212541
+ }
1211529
1212542
  if (typeof definition3 === "string") {
1211530
1212543
  apiDefinitions.push({
1211531
1212544
  path: definition3,
@@ -1214385,7 +1215398,7 @@ var AccessTokenPosthogManager = class {
1214385
1215398
  properties: {
1214386
1215399
  ...event,
1214387
1215400
  ...event.properties,
1214388
- version: "0.37.6",
1215401
+ version: "0.37.7",
1214389
1215402
  usingAccessToken: true
1214390
1215403
  }
1214391
1215404
  });
@@ -1214447,7 +1215460,7 @@ var UserPosthogManager = class {
1214447
1215460
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1214448
1215461
  event: "CLI",
1214449
1215462
  properties: {
1214450
- version: "0.37.6",
1215463
+ version: "0.37.7",
1214451
1215464
  ...event,
1214452
1215465
  ...event.properties
1214453
1215466
  }
@@ -1216439,7 +1217452,8 @@ async function visitHttpService({ service, visitor, nodePath }) {
1216439
1217452
  await visitEndpoint({ endpointId, endpoint, service, visitor, nodePathForEndpoint });
1216440
1217453
  }
1216441
1217454
  },
1216442
- idempotent: noop
1217455
+ idempotent: noop,
1217456
+ transport: noop
1216443
1217457
  });
1216444
1217458
  }
1216445
1217459
  async function visitEndpoint({ endpointId, endpoint, service, visitor, nodePathForEndpoint }) {
@@ -1216938,7 +1217952,8 @@ async function visitTypeDeclaration({ typeName, declaration, visitor, nodePathFo
1216938
1217952
  availability: noop,
1216939
1217953
  audiences: noop,
1216940
1217954
  examples: visitExamples,
1216941
- validation: noop
1217955
+ validation: noop,
1217956
+ encoding: noop
1216942
1217957
  });
1216943
1217958
  }
1216944
1217959
  },
@@ -1216987,6 +1218002,7 @@ async function visitTypeDeclaration({ typeName, declaration, visitor, nodePathFo
1216987
1218002
  ["extra-properties"]: noop,
1216988
1218003
  availability: noop,
1216989
1218004
  audiences: noop,
1218005
+ encoding: noop,
1216990
1218006
  examples: visitExamples
1216991
1218007
  });
1216992
1218008
  },
@@ -1217028,6 +1218044,7 @@ async function visitTypeDeclaration({ typeName, declaration, visitor, nodePathFo
1217028
1218044
  "base-properties": noop,
1217029
1218045
  availability: noop,
1217030
1218046
  audiences: noop,
1218047
+ encoding: noop,
1217031
1218048
  examples: visitExamples
1217032
1218049
  });
1217033
1218050
  },
@@ -1217050,6 +1218067,7 @@ async function visitTypeDeclaration({ typeName, declaration, visitor, nodePathFo
1217050
1218067
  },
1217051
1218068
  availability: noop,
1217052
1218069
  audiences: noop,
1218070
+ encoding: noop,
1217053
1218071
  examples: visitExamples
1217054
1218072
  });
1217055
1218073
  },
@@ -1217075,6 +1218093,7 @@ async function visitTypeDeclaration({ typeName, declaration, visitor, nodePathFo
1217075
1218093
  availability: noop,
1217076
1218094
  audiences: noop,
1217077
1218095
  default: noop,
1218096
+ encoding: noop,
1217078
1218097
  examples: visitExamples
1217079
1218098
  });
1217080
1218099
  }
@@ -1227247,6 +1228266,7 @@ __export(schemas_exports3, {
1227247
1228266
  DeclarationWithoutDocsSchema: () => DeclarationWithoutDocsSchema,
1227248
1228267
  DefinitionFileSchema: () => DefinitionFileSchema,
1227249
1228268
  DiscriminatedUnionSchema: () => DiscriminatedUnionSchema,
1228269
+ EncodingSchema: () => EncodingSchema,
1227250
1228270
  EnumSchema: () => EnumSchema,
1227251
1228271
  EnumValueSchema: () => EnumValueSchema,
1227252
1228272
  EnvironmentSchema: () => EnvironmentSchema,
@@ -1227265,6 +1228285,7 @@ __export(schemas_exports3, {
1227265
1228285
  ExampleTypeValueSchema: () => ExampleTypeValueSchema,
1227266
1228286
  ExampleWebSocketSession: () => ExampleWebSocketSession,
1227267
1228287
  ExampleWebhookCallSchema: () => ExampleWebhookCallSchema,
1228288
+ GrpcSchema: () => GrpcSchema,
1227268
1228289
  HeaderAuthSchemeSchema: () => HeaderAuthSchemeSchema,
1227269
1228290
  HttpEndpointSchema: () => HttpEndpointSchema,
1227270
1228291
  HttpHeaderSchema: () => HttpHeaderSchema,
@@ -1227293,6 +1228314,7 @@ __export(schemas_exports3, {
1227293
1228314
  PackageMarkerFileSchema: () => PackageMarkerFileSchema,
1227294
1228315
  PaginationSchema: () => PaginationSchema,
1227295
1228316
  PropertyErrorDiscriminationSchema: () => PropertyErrorDiscriminationSchema,
1228317
+ ProtobufTypeSchema: () => ProtobufTypeSchema,
1227296
1228318
  ResponseErrorsSchema: () => ResponseErrorsSchema,
1227297
1228319
  RootApiFileSchema: () => RootApiFileSchema,
1227298
1228320
  SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema,
@@ -1227301,6 +1228323,7 @@ __export(schemas_exports3, {
1227301
1228323
  StatusCodeErrorDiscriminationSchema: () => StatusCodeErrorDiscriminationSchema,
1227302
1228324
  StringValidationSchema: () => StringValidationSchema,
1227303
1228325
  SupportedSdkLanguageSchema: () => SupportedSdkLanguageSchema,
1228326
+ TransportSchema: () => TransportSchema,
1227304
1228327
  TypeDeclarationSchema: () => TypeDeclarationSchema,
1227305
1228328
  TypeReferenceSchema: () => TypeReferenceSchema,
1227306
1228329
  TypeReferenceWithDocsSchema: () => TypeReferenceWithDocsSchema,
@@ -1227348,6 +1228371,16 @@ var DeclarationWithoutDocsSchema = z.strictObject({
1227348
1228371
  });
1227349
1228372
  var DeclarationSchema = WithDocsSchema.extend(DeclarationWithoutDocsSchema.shape);
1227350
1228373
 
1228374
+ // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/ProtobufTypeSchema.js
1228375
+ var ProtobufTypeSchema = z.strictObject({
1228376
+ type: z.optional(z.string()).describe("The name of the Protobuf type (e.g. google.protobuf.Struct).")
1228377
+ });
1228378
+
1228379
+ // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/EncodingSchema.js
1228380
+ var EncodingSchema = z.strictObject({
1228381
+ proto: z.optional(ProtobufTypeSchema)
1228382
+ });
1228383
+
1227351
1228384
  // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/ExampleTypeValueSchema.js
1227352
1228385
  var ExampleTypeValueSchema = z.unknown();
1227353
1228386
 
@@ -1227366,7 +1228399,8 @@ var ExampleTypeSchema = WithNameAndDocsSchema.extend({
1227366
1228399
 
1227367
1228400
  // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/BaseTypeDeclarationSchema.js
1227368
1228401
  var BaseTypeDeclarationSchema = DeclarationSchema.extend({
1227369
- examples: z.optional(z.array(ExampleTypeSchema))
1228402
+ examples: z.optional(z.array(ExampleTypeSchema)),
1228403
+ encoding: z.optional(EncodingSchema)
1227370
1228404
  });
1227371
1228405
 
1227372
1228406
  // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/NumberValidationSchema.js
@@ -1227590,12 +1228624,14 @@ var EnumSchema = BaseTypeDeclarationSchema.extend({
1227590
1228624
 
1227591
1228625
  // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/MultipleBaseUrlsEnvironmentSchema.js
1227592
1228626
  var MultipleBaseUrlsEnvironmentSchema = WithDocsSchema.extend({
1227593
- urls: z.record(z.string())
1228627
+ urls: z.record(z.string()),
1228628
+ audiences: z.optional(z.array(z.string()))
1227594
1228629
  });
1227595
1228630
 
1227596
1228631
  // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/SingleBaseUrlEnvironmentSchema.js
1227597
1228632
  var SingleBaseUrlEnvironmentSchema = WithDocsSchema.extend({
1227598
- url: z.string()
1228633
+ url: z.string(),
1228634
+ audiences: z.optional(z.array(z.string()))
1227599
1228635
  });
1227600
1228636
 
1227601
1228637
  // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/EnvironmentSchema.js
@@ -1227825,6 +1228861,16 @@ var HttpEndpointSchema = DeclarationSchema.extend({
1227825
1228861
  });
1227826
1228862
  var HttpMethodSchema = z.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]);
1227827
1228863
 
1228864
+ // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/GrpcSchema.js
1228865
+ var GrpcSchema = z.strictObject({
1228866
+ "service-name": z.string().describe("The name of the gRPC service.")
1228867
+ });
1228868
+
1228869
+ // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/TransportSchema.js
1228870
+ var TransportSchema = z.strictObject({
1228871
+ grpc: z.optional(GrpcSchema)
1228872
+ });
1228873
+
1227828
1228874
  // pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/HttpServiceSchema.js
1227829
1228875
  var HttpServiceSchema = DeclarationWithoutDocsSchema.extend({
1227830
1228876
  auth: z.boolean(),
@@ -1227834,6 +1228880,7 @@ var HttpServiceSchema = DeclarationWithoutDocsSchema.extend({
1227834
1228880
  "path-parameters": z.optional(z.record(z.string(), HttpPathParameterSchema)),
1227835
1228881
  idempotent: z.optional(z.boolean()),
1227836
1228882
  headers: z.optional(z.record(HttpHeaderSchema)),
1228883
+ transport: z.optional(TransportSchema),
1227837
1228884
  endpoints: z.record(HttpEndpointSchema)
1227838
1228885
  });
1227839
1228886
 
@@ -1229994,7 +1231041,9 @@ var FernOpenAPIExtension = {
1229994
1231041
  IDEMPOTENT: "x-fern-idempotent",
1229995
1231042
  FERN_PROPERTY_NAME: "x-fern-property-name",
1229996
1231043
  IS_UNDISCRIMINATED: "x-fern-undiscriminated",
1229997
- FERN_VERSION: "x-fern-version"
1231044
+ FERN_VERSION: "x-fern-version",
1231045
+ ENCODING: "x-fern-encoding",
1231046
+ TRANSPORT: "x-fern-transport"
1229998
1231047
  };
1229999
1231048
 
1230000
1231049
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/utils/isReferenceObject.js
@@ -1243347,10 +1244396,10 @@ var CliContext = class {
1243347
1244396
  return "fern-api";
1243348
1244397
  }
1243349
1244398
  getPackageVersion() {
1243350
- if ("0.37.6" == null) {
1244399
+ if ("0.37.7" == null) {
1243351
1244400
  this.logger.error("CLI_VERSION is not defined");
1243352
1244401
  }
1243353
- return "0.37.6";
1244402
+ return "0.37.7";
1243354
1244403
  }
1243355
1244404
  getCliName() {
1243356
1244405
  if ("fern" == null) {
@@ -1245037,7 +1246086,7 @@ function validateObjectExample({ typeName, typeNameForBreadcrumb, rawObject, fil
1245037
1246086
  smartCasing: false
1245038
1246087
  });
1245039
1246088
  const allPropertiesByWireKey = keyBy_default(allPropertiesForObject, (property5) => property5.wireKey);
1245040
- const requiredProperties = allPropertiesForObject.filter((property5) => !property5.isOptional);
1246089
+ const requiredProperties = allPropertiesForObject.filter((property5) => !property5.isOptional && property5.resolvedPropertyType._type !== "unknown");
1245041
1246090
  for (const requiredProperty of requiredProperties) {
1245042
1246091
  if (requiredProperty.resolvedPropertyType._type === "container" && requiredProperty.resolvedPropertyType.container._type === "literal") {
1245043
1246092
  continue;
@@ -1246910,6 +1247959,8 @@ async function convertHttpService({ rootDefaultUrl, rootPathParameters, serviceD
1246910
1247959
  basePath: constructHttpPath(serviceDefinition["base-path"]),
1246911
1247960
  headers: serviceDefinition.headers != null ? await Promise.all(Object.entries(serviceDefinition.headers).map(([headerKey, header]) => convertHttpHeader({ headerKey, header, file }))) : [],
1246912
1247961
  pathParameters: servicePathParameters,
1247962
+ encoding: void 0,
1247963
+ transport: void 0,
1246913
1247964
  endpoints: await Promise.all(Object.entries(serviceDefinition.endpoints).map(async ([endpointKey, endpoint]) => {
1246914
1247965
  var _a5, _b4;
1246915
1247966
  const endpointPathParameters = await convertPathParameters2({
@@ -1248264,6 +1249315,8 @@ async function convertTypeDeclaration({ typeName, typeDeclaration, file, typeRes
1248264
1249315
  name: declaredTypeName,
1248265
1249316
  shape: await convertType({ typeDeclaration, file, typeResolver }),
1248266
1249317
  referencedTypes: new Set(referencedTypes.map((referencedType) => referencedType.typeId)),
1249318
+ encoding: void 0,
1249319
+ source: void 0,
1248267
1249320
  userProvidedExamples: typeof typeDeclaration !== "string" && typeDeclaration.examples != null ? typeDeclaration.examples.map((example) => ({
1248268
1249321
  name: example.name != null ? file.casingsGenerator.generateName(example.name) : void 0,
1248269
1249322
  docs: example.docs,
@@ -1248389,8 +1249442,7 @@ var ExampleGenerator = class {
1248389
1249442
  const examples = [
1248390
1249443
  ...endpoint.userSpecifiedExamples.map((userSpecified) => userSpecified.example).filter(isNonNullish)
1248391
1249444
  ];
1248392
- return {
1248393
- url: endpoint.path.head,
1249445
+ const exampleWithoutUrl = {
1248394
1249446
  rootPathParameters: rootPathParameters.map((p2) => this.generatePathParameterExample({
1248395
1249447
  pathParameter: p2,
1248396
1249448
  maybePathParameterExample: examples.flatMap((example) => example.rootPathParameters).find((rp) => rp.name === p2.name)
@@ -1248422,6 +1249474,26 @@ var ExampleGenerator = class {
1248422
1249474
  name: void 0,
1248423
1249475
  docs: void 0
1248424
1249476
  };
1249477
+ const allPathParameters = [
1249478
+ ...exampleWithoutUrl.rootPathParameters,
1249479
+ ...exampleWithoutUrl.servicePathParameters,
1249480
+ ...exampleWithoutUrl.endpointPathParameters
1249481
+ ];
1249482
+ const pathParameterStringsByName = this.examplePathParametersToRecord(allPathParameters);
1249483
+ const url = endpoint.fullPath.head + endpoint.fullPath.parts.map((pathPart) => pathParameterStringsByName[pathPart.pathParameter] + pathPart.tail).join("");
1249484
+ return {
1249485
+ url: url.startsWith("/") || url === "" ? url : `/${url}`,
1249486
+ ...exampleWithoutUrl
1249487
+ };
1249488
+ }
1249489
+ examplePathParametersToRecord(examplePathParameters) {
1249490
+ const result2 = {};
1249491
+ examplePathParameters.forEach((examplePathParameter) => {
1249492
+ const value = examplePathParameter.value.jsonExample;
1249493
+ const stringValue = typeof value === "string" ? value : JSON.stringify(value);
1249494
+ result2[examplePathParameter.name.originalName] = stringValue;
1249495
+ });
1249496
+ return result2;
1248425
1249497
  }
1248426
1249498
  generateEndpointExamples(endpoint, rootPathParameters, servicePathParameters, serviceHeaders) {
1248427
1249499
  var _a5;
@@ -1249021,6 +1250093,7 @@ function getAllPropertiesForObject2({ objectTypeDeclaration, ir }) {
1249021
1250093
 
1249022
1250094
  // pnp:/home/runner/work/fern/fern/packages/cli/generation/ir-generator/lib/filtered-ir/FilteredIr.js
1249023
1250095
  var FilteredIrImpl = class {
1250096
+ environments = /* @__PURE__ */ new Set();
1249024
1250097
  types = /* @__PURE__ */ new Set();
1249025
1250098
  properties;
1249026
1250099
  errors = /* @__PURE__ */ new Set();
@@ -1249031,7 +1250104,8 @@ var FilteredIrImpl = class {
1249031
1250104
  webhooks = /* @__PURE__ */ new Set();
1249032
1250105
  webhookPayloadProperties;
1249033
1250106
  subpackages = /* @__PURE__ */ new Set();
1249034
- constructor({ types: types3, errors, services, endpoints, webhooks, subpackages, queryParameters, requestProperties, webhookPayloadProperties, properties }) {
1250107
+ constructor({ types: types3, properties, errors, environments, services, endpoints, webhooks, subpackages, queryParameters, requestProperties, webhookPayloadProperties }) {
1250108
+ this.environments = environments;
1249035
1250109
  this.types = types3;
1249036
1250110
  this.properties = properties;
1249037
1250111
  this.errors = errors;
@@ -1249074,6 +1250148,9 @@ var FilteredIrImpl = class {
1249074
1250148
  const serviceId = IdGenerator.generateServiceId(service.name);
1249075
1250149
  return this.services.has(serviceId);
1249076
1250150
  }
1250151
+ hasEnvironmentId(environmentId) {
1250152
+ return this.environments.has(environmentId);
1250153
+ }
1249077
1250154
  hasEndpoint(endpoint) {
1249078
1250155
  return this.endpoints.has(endpoint.id);
1249079
1250156
  }
@@ -1249121,6 +1250198,7 @@ var IrGraph = class {
1249121
1250198
  webhooks = {};
1249122
1250199
  audiences;
1249123
1250200
  typesReferencedByService = {};
1250201
+ environmentsNeededForAudience = /* @__PURE__ */ new Set();
1249124
1250202
  typesNeededForAudience = /* @__PURE__ */ new Set();
1249125
1250203
  servicesNeededForAudience = /* @__PURE__ */ new Set();
1249126
1250204
  endpointsNeededForAudience = /* @__PURE__ */ new Set();
@@ -1249157,6 +1250235,13 @@ var IrGraph = class {
1249157
1250235
  });
1249158
1250236
  }
1249159
1250237
  }
1250238
+ markEnvironmentForAudiences(environment, audiences) {
1250239
+ if (environment) {
1250240
+ if (this.hasAudience(audiences)) {
1250241
+ this.environmentsNeededForAudience.add(environment.id);
1250242
+ }
1250243
+ }
1250244
+ }
1249160
1250245
  getTypesReferencedByService() {
1249161
1250246
  return this.typesReferencedByService;
1249162
1250247
  }
@@ -1249450,6 +1250535,7 @@ var IrGraph = class {
1249450
1250535
  errors: errorIds,
1249451
1250536
  requestProperties,
1249452
1250537
  queryParameters,
1250538
+ environments: this.environmentsNeededForAudience,
1249453
1250539
  services: this.servicesNeededForAudience,
1249454
1250540
  endpoints: this.endpointsNeededForAudience,
1249455
1250541
  webhooks: this.webhooksNeededForAudience,
@@ -1250704,6 +1251790,18 @@ var _VariableResolverImpl = class {
1250704
1251790
  var VariableResolverImpl = _VariableResolverImpl;
1250705
1251791
  __publicField(VariableResolverImpl, "VARIABLE_PREFIX", "$");
1250706
1251792
 
1251793
+ // pnp:/home/runner/work/fern/fern/packages/cli/generation/ir-generator/lib/utils/getEnvironmentsByAudience.js
1251794
+ function getAudienceForEnvironment(environmentId, rawEnvironments) {
1251795
+ if (rawEnvironments) {
1251796
+ for (const [envId, environment] of Object.entries(rawEnvironments)) {
1251797
+ if (typeof environment !== "string" && envId === environmentId) {
1251798
+ return environment.audiences;
1251799
+ }
1251800
+ }
1251801
+ }
1251802
+ return void 0;
1251803
+ }
1251804
+
1250707
1251805
  // pnp:/home/runner/work/fern/fern/packages/cli/generation/ir-generator/lib/generateIntermediateRepresentation.js
1250708
1251806
  async function generateIntermediateRepresentation({ fdrApiDefinitionId, workspace, generationLanguage, keywords: keywords3, smartCasing, disableExamples, audiences, readme }) {
1250709
1251807
  const casingsGenerator = constructCasingsGenerator({ generationLanguage, keywords: keywords3, smartCasing });
@@ -1250770,7 +1251868,8 @@ async function generateIntermediateRepresentation({ fdrApiDefinitionId, workspac
1250770
1251868
  },
1250771
1251869
  webhookGroups: {},
1250772
1251870
  websocketChannels: {},
1250773
- readmeConfig: void 0
1251871
+ readmeConfig: void 0,
1251872
+ sourceConfig: void 0
1250774
1251873
  };
1250775
1251874
  const packageTreeGenerator = new PackageTreeGenerator();
1250776
1251875
  const visitDefinitionFile = async (file) => {
@@ -1250965,6 +1252064,13 @@ async function generateIntermediateRepresentation({ fdrApiDefinitionId, workspac
1250965
1252064
  });
1250966
1252065
  intermediateRepresentation.serviceTypeReferenceInfo = computeServiceTypeReferenceInfo(irGraph);
1250967
1252066
  const intermediateRepresentationWithGeneratedExamples = new ExampleGenerator(intermediateRepresentation).enrichWithAutogeneratedExamples();
1252067
+ const environments = convertEnvironments({
1252068
+ casingsGenerator,
1252069
+ rawApiFileSchema: workspace.definition.rootApiFile.contents
1252070
+ });
1252071
+ environments == null ? void 0 : environments.environments.environments.forEach((environment) => {
1252072
+ irGraph.markEnvironmentForAudiences(environment, getAudienceForEnvironment(environment.id, workspace.definition.rootApiFile.contents.environments) ?? []);
1252073
+ });
1250968
1252074
  const filteredIr = !irGraph.hasNoAudiences() ? irGraph.build() : void 0;
1250969
1252075
  const intermediateRepresentationForAudiences = filterIntermediateRepresentationForAudiences(intermediateRepresentationWithGeneratedExamples, filteredIr);
1250970
1252076
  const isAuthMandatory = workspace.definition.rootApiFile.contents.auth != null && Object.values(intermediateRepresentationForAudiences.services).every((service) => {
@@ -1251070,8 +1252176,27 @@ function filterIntermediateRepresentationForAudiences(intermediateRepresentation
1251070
1252176
  });
1251071
1252177
  return [webhookGroupId, filteredWebhooks];
1251072
1252178
  }));
1252179
+ const filteredEnvironmentsConfig = intermediateRepresentation.environments;
1252180
+ if (filteredEnvironmentsConfig) {
1252181
+ switch (filteredEnvironmentsConfig.environments.type) {
1252182
+ case "singleBaseUrl": {
1252183
+ filteredEnvironmentsConfig.environments.environments = filteredEnvironmentsConfig.environments.environments.filter((environment) => filteredIr.hasEnvironmentId(environment.id));
1252184
+ break;
1252185
+ }
1252186
+ case "multipleBaseUrls": {
1252187
+ filteredEnvironmentsConfig.environments.environments = filteredEnvironmentsConfig.environments.environments.filter((environment) => filteredIr.hasEnvironmentId(environment.id));
1252188
+ break;
1252189
+ }
1252190
+ }
1252191
+ if (filteredEnvironmentsConfig.defaultEnvironment) {
1252192
+ if (!filteredIr.hasEnvironmentId(filteredEnvironmentsConfig.defaultEnvironment)) {
1252193
+ filteredEnvironmentsConfig.defaultEnvironment = void 0;
1252194
+ }
1252195
+ }
1252196
+ }
1251073
1252197
  return {
1251074
1252198
  ...intermediateRepresentation,
1252199
+ environments: filteredEnvironmentsConfig,
1251075
1252200
  types: filteredTypesAndProperties,
1251076
1252201
  errors: pickBy_default(intermediateRepresentation.errors, (error) => filteredIr.hasError(error)),
1251077
1252202
  services: mapValues_default2(pickBy_default(intermediateRepresentation.services, (httpService) => filteredIr.hasService(httpService)), (httpService) => ({
@@ -1297949,6 +1299074,9 @@ async function updateApiSpec({
1297949
1299074
  apis = [generatorConfig.api];
1297950
1299075
  }
1297951
1299076
  for (const api of apis) {
1299077
+ if (generators_yml_exports.isRawProtobufAPIDefinitionSchema(api)) {
1299078
+ continue;
1299079
+ }
1297952
1299080
  if (typeof api !== "string" && api.origin != null) {
1297953
1299081
  cliContext.logger.info(`Origin found, fetching spec from ${api.origin}`);
1297954
1299082
  await fetchAndWriteFile(