@fern-api/fern-api-dev 5.95.0 → 5.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +547 -196
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -58486,6 +58486,8 @@ var init_OAuthSchemeSchema2 = __esm({
|
|
|
58486
58486
|
"token-url": schemas_exports.string().optional(),
|
|
58487
58487
|
"refresh-url": schemas_exports.string().optional(),
|
|
58488
58488
|
"redirect-uri": RedirectUriSchema.optional(),
|
|
58489
|
+
"success-redirect-url": schemas_exports.string().optional(),
|
|
58490
|
+
"error-redirect-url": schemas_exports.string().optional(),
|
|
58489
58491
|
pkce: OAuthPkceSchema.optional(),
|
|
58490
58492
|
"authorization-parameters": schemas_exports.record(schemas_exports.string(), schemas_exports.string()).optional(),
|
|
58491
58493
|
"device-authorization-parameters": schemas_exports.record(schemas_exports.string(), schemas_exports.string()).optional(),
|
|
@@ -73891,6 +73893,8 @@ var init_OAuthAuthorizationCode2 = __esm({
|
|
|
73891
73893
|
refreshUrl: schemas_exports3.string().optional(),
|
|
73892
73894
|
redirectUri: schemas_exports3.string().optional(),
|
|
73893
73895
|
redirectUriBackupPorts: schemas_exports3.list(schemas_exports3.number()).optional(),
|
|
73896
|
+
successRedirectUrl: schemas_exports3.string().optional(),
|
|
73897
|
+
errorRedirectUrl: schemas_exports3.string().optional(),
|
|
73894
73898
|
scopes: schemas_exports3.list(schemas_exports3.string()).optional(),
|
|
73895
73899
|
pkce: OAuthPkceConfiguration,
|
|
73896
73900
|
authorizationParameters: schemas_exports3.record(schemas_exports3.string(), schemas_exports3.string()).optional(),
|
|
@@ -129783,6 +129787,8 @@ var init_OAuthSchemeSchema4 = __esm({
|
|
|
129783
129787
|
"token-url": schemas_exports8.string().optional(),
|
|
129784
129788
|
"refresh-url": schemas_exports8.string().optional(),
|
|
129785
129789
|
"redirect-uri": RedirectUriSchema2.optional(),
|
|
129790
|
+
"success-redirect-url": schemas_exports8.string().optional(),
|
|
129791
|
+
"error-redirect-url": schemas_exports8.string().optional(),
|
|
129786
129792
|
pkce: OAuthPkceSchema2.optional(),
|
|
129787
129793
|
"authorization-parameters": schemas_exports8.record(schemas_exports8.string(), schemas_exports8.string()).optional(),
|
|
129788
129794
|
"device-authorization-parameters": schemas_exports8.record(schemas_exports8.string(), schemas_exports8.string()).optional(),
|
|
@@ -147072,10 +147078,9 @@ function buildEndpoint({ endpoint: endpoint3, declarationFile, context: context3
|
|
|
147072
147078
|
});
|
|
147073
147079
|
}
|
|
147074
147080
|
});
|
|
147075
|
-
|
|
147076
|
-
if (examples.length > 0) {
|
|
147081
|
+
if (endpoint3.examples.length > 0) {
|
|
147077
147082
|
convertedEndpoint.examples = convertEndpointExamples({
|
|
147078
|
-
endpointExamples: examples,
|
|
147083
|
+
endpointExamples: endpoint3.examples,
|
|
147079
147084
|
context: context3,
|
|
147080
147085
|
pathParameterRenames
|
|
147081
147086
|
});
|
|
@@ -147119,21 +147124,6 @@ function convertEndpointAuth({ endpoint: endpoint3, context: context3 }) {
|
|
|
147119
147124
|
}
|
|
147120
147125
|
return endpoint3.security;
|
|
147121
147126
|
}
|
|
147122
|
-
function filterExamplesThatOmitTheBody({ endpoint: endpoint3, context: context3 }) {
|
|
147123
|
-
if (endpoint3.request == null || !isOptionalJsonBody(endpoint3.request)) {
|
|
147124
|
-
return endpoint3.examples;
|
|
147125
|
-
}
|
|
147126
|
-
return endpoint3.examples.filter((example) => {
|
|
147127
|
-
const rawExample = example.type === "full" ? void 0 : example.value;
|
|
147128
|
-
const name2 = example.type === "full" ? example.name : rawExample?.name;
|
|
147129
|
-
const hasRequest = example.type === "full" ? example.request != null : rawExample?.request != null;
|
|
147130
|
-
if (hasRequest) {
|
|
147131
|
-
return true;
|
|
147132
|
-
}
|
|
147133
|
-
context3.logger.debug(`Skipping the example${name2 != null ? ` "${name2}"` : ""} for ${endpoint3.method} ${endpoint3.path}: it has no request body, and the SDKs describe the body as required.`);
|
|
147134
|
-
return false;
|
|
147135
|
-
});
|
|
147136
|
-
}
|
|
147137
147127
|
function convertEndpointExamples({ endpointExamples, context: context3, pathParameterRenames }) {
|
|
147138
147128
|
return endpointExamples.map((endpointExample) => {
|
|
147139
147129
|
try {
|
|
@@ -278078,6 +278068,8 @@ function generateOAuth({ key: key2, file: file4, docs: docs2, rawScheme, propert
|
|
|
278078
278068
|
refreshUrl: rawScheme["refresh-url"],
|
|
278079
278069
|
redirectUri: getRedirectUri(rawScheme["redirect-uri"]),
|
|
278080
278070
|
redirectUriBackupPorts: getRedirectUriBackupPorts(rawScheme["redirect-uri"]),
|
|
278071
|
+
successRedirectUrl: rawScheme["success-redirect-url"],
|
|
278072
|
+
errorRedirectUrl: rawScheme["error-redirect-url"],
|
|
278081
278073
|
scopes: rawScheme.scopes,
|
|
278082
278074
|
pkce: { method: OAuthPkceMethod.S256 },
|
|
278083
278075
|
authorizationParameters: rawScheme["authorization-parameters"],
|
|
@@ -324678,6 +324670,28 @@ var init_api_yml_schema = __esm({
|
|
|
324678
324670
|
],
|
|
324679
324671
|
description: "The loopback redirect (callback) URI for the authorization-code flow. Must be a loopback host over http \u2014 `127.0.0.1` (recommended, RFC 8252 \xA77.3) or `localhost` \u2014 with any path; the generated CLI binds and sends this URI exactly, so it must match the redirect registered with the authorization server (e.g. `http://127.0.0.1:8484/callback` or `http://localhost:8484/callback`). Provide a bare string to pin a single port, or an object with `url` plus `ports` to add backup ports tried when the primary is busy. Omit it entirely to use an ephemeral (OS-assigned) port."
|
|
324680
324672
|
},
|
|
324673
|
+
"success-redirect-url": {
|
|
324674
|
+
oneOf: [
|
|
324675
|
+
{
|
|
324676
|
+
type: "string"
|
|
324677
|
+
},
|
|
324678
|
+
{
|
|
324679
|
+
type: "null"
|
|
324680
|
+
}
|
|
324681
|
+
],
|
|
324682
|
+
description: "A page the generated CLI redirects the browser to once it captures the authorization code, for the authorization-code flow. Must be an absolute http(s) URL. This is not an OAuth `redirect_uri` and does not need registering with the authorization server \u2014 the redirect happens on the loopback listener after the code is captured, and no `code` or `state` is forwarded. Omit it to serve the CLI's built-in success page."
|
|
324683
|
+
},
|
|
324684
|
+
"error-redirect-url": {
|
|
324685
|
+
oneOf: [
|
|
324686
|
+
{
|
|
324687
|
+
type: "string"
|
|
324688
|
+
},
|
|
324689
|
+
{
|
|
324690
|
+
type: "null"
|
|
324691
|
+
}
|
|
324692
|
+
],
|
|
324693
|
+
description: "A page the generated CLI redirects the browser to when authorization fails (the user denies consent, or the callback is unusable), for the authorization-code flow. Must be an absolute http(s) URL. The `error` and `error_description` query parameters are appended so the page can explain what happened \u2014 merged into any query string already on the URL, and inserted before a fragment if there is one. Omit it to serve the CLI's built-in failure page."
|
|
324694
|
+
},
|
|
324681
324695
|
pkce: {
|
|
324682
324696
|
oneOf: [
|
|
324683
324697
|
{
|
|
@@ -691840,13 +691854,13 @@ var ValidOauthRule = {
|
|
|
691840
691854
|
if (oauth.type === "authorization-code" || oauth.type === "device-code") {
|
|
691841
691855
|
return validatePublicClientFlow(oauth);
|
|
691842
691856
|
}
|
|
691857
|
+
violations.push(...rejectCallbackRedirectUrls(oauth));
|
|
691843
691858
|
if (oauth["get-token"] == null) {
|
|
691844
|
-
|
|
691845
|
-
|
|
691846
|
-
|
|
691847
|
-
|
|
691848
|
-
|
|
691849
|
-
];
|
|
691859
|
+
violations.push({
|
|
691860
|
+
severity: "fatal",
|
|
691861
|
+
message: "OAuth client-credentials flow requires a `get-token` endpoint."
|
|
691862
|
+
});
|
|
691863
|
+
return violations;
|
|
691850
691864
|
}
|
|
691851
691865
|
const tokenEndpointReference = oauth["get-token"].endpoint;
|
|
691852
691866
|
const resolvedTokenEndpoint = endpointResolver.resolveEndpoint({
|
|
@@ -691949,6 +691963,15 @@ function validatePublicClientFlow(oauth) {
|
|
|
691949
691963
|
}
|
|
691950
691964
|
}
|
|
691951
691965
|
}
|
|
691966
|
+
for (const field5 of CALLBACK_REDIRECT_URL_FIELDS) {
|
|
691967
|
+
const url3 = oauth[field5];
|
|
691968
|
+
if (url3 != null) {
|
|
691969
|
+
const urlError = validateCallbackRedirectUrl({ field: field5, url: url3 });
|
|
691970
|
+
if (urlError != null) {
|
|
691971
|
+
violations.push({ severity: "fatal", message: urlError });
|
|
691972
|
+
}
|
|
691973
|
+
}
|
|
691974
|
+
}
|
|
691952
691975
|
} else {
|
|
691953
691976
|
if (oauth["redirect-uri"] != null) {
|
|
691954
691977
|
violations.push({
|
|
@@ -691962,9 +691985,41 @@ function validatePublicClientFlow(oauth) {
|
|
|
691962
691985
|
message: "OAuth device-code flow does not use PKCE; remove `pkce` (it applies only to the authorization-code flow)."
|
|
691963
691986
|
});
|
|
691964
691987
|
}
|
|
691988
|
+
violations.push(...rejectCallbackRedirectUrls(oauth));
|
|
691965
691989
|
}
|
|
691966
691990
|
return violations;
|
|
691967
691991
|
}
|
|
691992
|
+
var CALLBACK_REDIRECT_URL_FIELDS = ["success-redirect-url", "error-redirect-url"];
|
|
691993
|
+
function rejectCallbackRedirectUrls(oauth) {
|
|
691994
|
+
return CALLBACK_REDIRECT_URL_FIELDS.filter((field5) => oauth[field5] != null).map((field5) => ({
|
|
691995
|
+
severity: "fatal",
|
|
691996
|
+
message: `OAuth ${oauth.type} flow has no browser callback; remove \`${field5}\` (it applies only to the authorization-code flow).`
|
|
691997
|
+
}));
|
|
691998
|
+
}
|
|
691999
|
+
function validateCallbackRedirectUrl({ field: field5, url: url3 }) {
|
|
692000
|
+
let parsed;
|
|
692001
|
+
try {
|
|
692002
|
+
parsed = new URL(url3);
|
|
692003
|
+
} catch {
|
|
692004
|
+
return `OAuth ${field5} '${url3}' is not a valid URL. Use an absolute http(s) URL, e.g. https://acme.com/cli/welcome.`;
|
|
692005
|
+
}
|
|
692006
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
|
|
692007
|
+
return `OAuth ${field5} '${url3}' must use http or https \u2014 the generated CLI redirects the browser to it.`;
|
|
692008
|
+
}
|
|
692009
|
+
if (containsControlCharacter(url3)) {
|
|
692010
|
+
return `OAuth ${field5} '${url3}' must not contain control characters.`;
|
|
692011
|
+
}
|
|
692012
|
+
return void 0;
|
|
692013
|
+
}
|
|
692014
|
+
function containsControlCharacter(value2) {
|
|
692015
|
+
for (let index3 = 0; index3 < value2.length; index3++) {
|
|
692016
|
+
const charCode = value2.charCodeAt(index3);
|
|
692017
|
+
if (charCode <= 31 || charCode === 127) {
|
|
692018
|
+
return true;
|
|
692019
|
+
}
|
|
692020
|
+
}
|
|
692021
|
+
return false;
|
|
692022
|
+
}
|
|
691968
692023
|
function validateRedirectUri(redirectUri) {
|
|
691969
692024
|
let parsed;
|
|
691970
692025
|
try {
|
|
@@ -702983,7 +703038,7 @@ var AccessTokenPosthogManager = class {
|
|
|
702983
703038
|
properties: {
|
|
702984
703039
|
...event,
|
|
702985
703040
|
...event.properties,
|
|
702986
|
-
version: "5.
|
|
703041
|
+
version: "5.96.0",
|
|
702987
703042
|
usingAccessToken: true,
|
|
702988
703043
|
...getRunIdProperties()
|
|
702989
703044
|
}
|
|
@@ -703049,7 +703104,7 @@ var UserPosthogManager = class {
|
|
|
703049
703104
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
703050
703105
|
event: "CLI",
|
|
703051
703106
|
properties: {
|
|
703052
|
-
version: "5.
|
|
703107
|
+
version: "5.96.0",
|
|
703053
703108
|
...event,
|
|
703054
703109
|
...event.properties,
|
|
703055
703110
|
usingAccessToken: false,
|
|
@@ -884215,7 +884270,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
884215
884270
|
var LOGS_FOLDER_NAME = "logs";
|
|
884216
884271
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
884217
884272
|
function getCliSource() {
|
|
884218
|
-
const version7 = "5.
|
|
884273
|
+
const version7 = "5.96.0";
|
|
884219
884274
|
return `cli@${version7}`;
|
|
884220
884275
|
}
|
|
884221
884276
|
var DebugLogger = class {
|
|
@@ -909531,7 +909586,7 @@ var LegacyDocsPublisher = class {
|
|
|
909531
909586
|
previewId,
|
|
909532
909587
|
disableTemplates: void 0,
|
|
909533
909588
|
skipUpload,
|
|
909534
|
-
cliVersion: "5.
|
|
909589
|
+
cliVersion: "5.96.0",
|
|
909535
909590
|
loginCommand: "fern auth login"
|
|
909536
909591
|
});
|
|
909537
909592
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -915441,7 +915496,7 @@ function fail(message) {
|
|
|
915441
915496
|
throw new Error(message ?? "Assertion failed");
|
|
915442
915497
|
}
|
|
915443
915498
|
|
|
915444
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915499
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/index.mjs
|
|
915445
915500
|
var api_exports22 = {};
|
|
915446
915501
|
__export(api_exports22, {
|
|
915447
915502
|
ApiDefinitionSource: () => ApiDefinitionSource29,
|
|
@@ -915483,6 +915538,8 @@ __export(api_exports22, {
|
|
|
915483
915538
|
NamedTypeDefault: () => NamedTypeDefault29,
|
|
915484
915539
|
NonStreamHttpResponseBody: () => NonStreamHttpResponseBody29,
|
|
915485
915540
|
OAuthConfiguration: () => OAuthConfiguration29,
|
|
915541
|
+
OAuthPkceMethod: () => OAuthPkceMethod3,
|
|
915542
|
+
OAuthPublicClientId: () => OAuthPublicClientId3,
|
|
915486
915543
|
ObjectPropertyAccess: () => ObjectPropertyAccess42,
|
|
915487
915544
|
Pagination: () => Pagination32,
|
|
915488
915545
|
PathParameterLocation: () => PathParameterLocation29,
|
|
@@ -915540,18 +915597,20 @@ __export(api_exports22, {
|
|
|
915540
915597
|
websocket: () => websocket_exports33
|
|
915541
915598
|
});
|
|
915542
915599
|
|
|
915543
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915600
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/audience/index.mjs
|
|
915544
915601
|
var audience_exports19 = {};
|
|
915545
915602
|
|
|
915546
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915603
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/auth/index.mjs
|
|
915547
915604
|
var auth_exports63 = {};
|
|
915548
915605
|
__export(auth_exports63, {
|
|
915549
915606
|
AuthScheme: () => AuthScheme29,
|
|
915550
915607
|
AuthSchemesRequirement: () => AuthSchemesRequirement29,
|
|
915551
|
-
OAuthConfiguration: () => OAuthConfiguration29
|
|
915608
|
+
OAuthConfiguration: () => OAuthConfiguration29,
|
|
915609
|
+
OAuthPkceMethod: () => OAuthPkceMethod3,
|
|
915610
|
+
OAuthPublicClientId: () => OAuthPublicClientId3
|
|
915552
915611
|
});
|
|
915553
915612
|
|
|
915554
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915613
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/auth/types/AuthScheme.mjs
|
|
915555
915614
|
var AuthScheme29 = {
|
|
915556
915615
|
bearer: (value2) => {
|
|
915557
915616
|
return Object.assign(Object.assign({}, value2), { type: "bearer", _visit: function(visitor) {
|
|
@@ -915596,7 +915655,7 @@ var AuthScheme29 = {
|
|
|
915596
915655
|
}
|
|
915597
915656
|
};
|
|
915598
915657
|
|
|
915599
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915658
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/auth/types/AuthSchemesRequirement.mjs
|
|
915600
915659
|
var AuthSchemesRequirementValues15 = {
|
|
915601
915660
|
All: "ALL",
|
|
915602
915661
|
Any: "ANY",
|
|
@@ -915615,30 +915674,89 @@ var AuthSchemesRequirement29 = Object.assign(Object.assign({}, AuthSchemesRequir
|
|
|
915615
915674
|
}
|
|
915616
915675
|
} });
|
|
915617
915676
|
|
|
915618
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915677
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/auth/types/OAuthConfiguration.mjs
|
|
915619
915678
|
var OAuthConfiguration29 = {
|
|
915620
915679
|
clientCredentials: (value2) => {
|
|
915621
915680
|
return Object.assign(Object.assign({}, value2), { type: "clientCredentials", _visit: function(visitor) {
|
|
915622
915681
|
return OAuthConfiguration29._visit(this, visitor);
|
|
915623
915682
|
} });
|
|
915624
915683
|
},
|
|
915684
|
+
authorizationCode: (value2) => {
|
|
915685
|
+
return Object.assign(Object.assign({}, value2), { type: "authorizationCode", _visit: function(visitor) {
|
|
915686
|
+
return OAuthConfiguration29._visit(this, visitor);
|
|
915687
|
+
} });
|
|
915688
|
+
},
|
|
915689
|
+
deviceCode: (value2) => {
|
|
915690
|
+
return Object.assign(Object.assign({}, value2), { type: "deviceCode", _visit: function(visitor) {
|
|
915691
|
+
return OAuthConfiguration29._visit(this, visitor);
|
|
915692
|
+
} });
|
|
915693
|
+
},
|
|
915625
915694
|
_visit: (value2, visitor) => {
|
|
915626
915695
|
switch (value2.type) {
|
|
915627
915696
|
case "clientCredentials":
|
|
915628
915697
|
return visitor.clientCredentials(value2);
|
|
915698
|
+
case "authorizationCode":
|
|
915699
|
+
return visitor.authorizationCode(value2);
|
|
915700
|
+
case "deviceCode":
|
|
915701
|
+
return visitor.deviceCode(value2);
|
|
915702
|
+
default:
|
|
915703
|
+
return visitor._other(value2);
|
|
915704
|
+
}
|
|
915705
|
+
}
|
|
915706
|
+
};
|
|
915707
|
+
|
|
915708
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/auth/types/OAuthPkceMethod.mjs
|
|
915709
|
+
var OAuthPkceMethodValues2 = {
|
|
915710
|
+
S256: "S256"
|
|
915711
|
+
};
|
|
915712
|
+
var OAuthPkceMethod3 = Object.assign(Object.assign({}, OAuthPkceMethodValues2), { _visit: (value2, visitor) => {
|
|
915713
|
+
switch (value2) {
|
|
915714
|
+
case OAuthPkceMethod3.S256:
|
|
915715
|
+
return visitor.s256();
|
|
915716
|
+
default:
|
|
915717
|
+
return visitor._other();
|
|
915718
|
+
}
|
|
915719
|
+
} });
|
|
915720
|
+
|
|
915721
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/auth/types/OAuthPublicClientId.mjs
|
|
915722
|
+
var OAuthPublicClientId3 = {
|
|
915723
|
+
literal: (value2) => {
|
|
915724
|
+
return {
|
|
915725
|
+
value: value2,
|
|
915726
|
+
type: "literal",
|
|
915727
|
+
_visit: function(visitor) {
|
|
915728
|
+
return OAuthPublicClientId3._visit(this, visitor);
|
|
915729
|
+
}
|
|
915730
|
+
};
|
|
915731
|
+
},
|
|
915732
|
+
environmentVariable: (value2) => {
|
|
915733
|
+
return {
|
|
915734
|
+
value: value2,
|
|
915735
|
+
type: "environmentVariable",
|
|
915736
|
+
_visit: function(visitor) {
|
|
915737
|
+
return OAuthPublicClientId3._visit(this, visitor);
|
|
915738
|
+
}
|
|
915739
|
+
};
|
|
915740
|
+
},
|
|
915741
|
+
_visit: (value2, visitor) => {
|
|
915742
|
+
switch (value2.type) {
|
|
915743
|
+
case "literal":
|
|
915744
|
+
return visitor.literal(value2.value);
|
|
915745
|
+
case "environmentVariable":
|
|
915746
|
+
return visitor.environmentVariable(value2.value);
|
|
915629
915747
|
default:
|
|
915630
915748
|
return visitor._other(value2);
|
|
915631
915749
|
}
|
|
915632
915750
|
}
|
|
915633
915751
|
};
|
|
915634
915752
|
|
|
915635
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915753
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/commons/index.mjs
|
|
915636
915754
|
var commons_exports58 = {};
|
|
915637
915755
|
__export(commons_exports58, {
|
|
915638
915756
|
AvailabilityStatus: () => AvailabilityStatus29
|
|
915639
915757
|
});
|
|
915640
915758
|
|
|
915641
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915759
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/commons/types/AvailabilityStatus.mjs
|
|
915642
915760
|
var AvailabilityStatusValues15 = {
|
|
915643
915761
|
InDevelopment: "IN_DEVELOPMENT",
|
|
915644
915762
|
PreRelease: "PRE_RELEASE",
|
|
@@ -915672,10 +915790,10 @@ var AvailabilityStatus29 = Object.assign(Object.assign({}, AvailabilityStatusVal
|
|
|
915672
915790
|
}
|
|
915673
915791
|
} });
|
|
915674
915792
|
|
|
915675
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915793
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/constants/index.mjs
|
|
915676
915794
|
var constants_exports29 = {};
|
|
915677
915795
|
|
|
915678
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915796
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/index.mjs
|
|
915679
915797
|
var dynamic_exports29 = {};
|
|
915680
915798
|
__export(dynamic_exports29, {
|
|
915681
915799
|
Auth: () => Auth29,
|
|
@@ -915708,14 +915826,14 @@ __export(dynamic_exports29, {
|
|
|
915708
915826
|
variables: () => variables_exports45
|
|
915709
915827
|
});
|
|
915710
915828
|
|
|
915711
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915829
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/auth/index.mjs
|
|
915712
915830
|
var auth_exports64 = {};
|
|
915713
915831
|
__export(auth_exports64, {
|
|
915714
915832
|
Auth: () => Auth29,
|
|
915715
915833
|
AuthValues: () => AuthValues29
|
|
915716
915834
|
});
|
|
915717
915835
|
|
|
915718
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915836
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/auth/types/Auth.mjs
|
|
915719
915837
|
var Auth29 = {
|
|
915720
915838
|
basic: (value2) => {
|
|
915721
915839
|
return Object.assign(Object.assign({}, value2), { type: "basic", _visit: function(visitor) {
|
|
@@ -915760,7 +915878,7 @@ var Auth29 = {
|
|
|
915760
915878
|
}
|
|
915761
915879
|
};
|
|
915762
915880
|
|
|
915763
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915881
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/auth/types/AuthValues.mjs
|
|
915764
915882
|
var AuthValues29 = {
|
|
915765
915883
|
basic: (value2) => {
|
|
915766
915884
|
return Object.assign(Object.assign({}, value2), { type: "basic", _visit: function(visitor) {
|
|
@@ -915805,13 +915923,13 @@ var AuthValues29 = {
|
|
|
915805
915923
|
}
|
|
915806
915924
|
};
|
|
915807
915925
|
|
|
915808
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915926
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/commons/index.mjs
|
|
915809
915927
|
var commons_exports59 = {};
|
|
915810
915928
|
|
|
915811
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915929
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/declaration/index.mjs
|
|
915812
915930
|
var declaration_exports29 = {};
|
|
915813
915931
|
|
|
915814
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915932
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/endpoints/index.mjs
|
|
915815
915933
|
var endpoints_exports29 = {};
|
|
915816
915934
|
__export(endpoints_exports29, {
|
|
915817
915935
|
FileUploadRequestBodyProperty: () => FileUploadRequestBodyProperty29,
|
|
@@ -915821,7 +915939,7 @@ __export(endpoints_exports29, {
|
|
|
915821
915939
|
Response: () => Response43
|
|
915822
915940
|
});
|
|
915823
915941
|
|
|
915824
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915942
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.mjs
|
|
915825
915943
|
var FileUploadRequestBodyProperty29 = {
|
|
915826
915944
|
file: (value2) => {
|
|
915827
915945
|
return Object.assign(Object.assign({}, value2), { type: "file", _visit: function(visitor) {
|
|
@@ -915852,7 +915970,7 @@ var FileUploadRequestBodyProperty29 = {
|
|
|
915852
915970
|
}
|
|
915853
915971
|
};
|
|
915854
915972
|
|
|
915855
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
915973
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.mjs
|
|
915856
915974
|
var InlinedRequestBody43 = {
|
|
915857
915975
|
properties: (value2) => {
|
|
915858
915976
|
return {
|
|
@@ -915887,7 +916005,7 @@ var InlinedRequestBody43 = {
|
|
|
915887
916005
|
}
|
|
915888
916006
|
};
|
|
915889
916007
|
|
|
915890
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916008
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.mjs
|
|
915891
916009
|
var ReferencedRequestBodyType29 = {
|
|
915892
916010
|
bytes: () => {
|
|
915893
916011
|
return {
|
|
@@ -915918,7 +916036,7 @@ var ReferencedRequestBodyType29 = {
|
|
|
915918
916036
|
}
|
|
915919
916037
|
};
|
|
915920
916038
|
|
|
915921
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916039
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/endpoints/types/Request.mjs
|
|
915922
916040
|
var Request35 = {
|
|
915923
916041
|
body: (value2) => {
|
|
915924
916042
|
return Object.assign(Object.assign({}, value2), { type: "body", _visit: function(visitor) {
|
|
@@ -915942,7 +916060,7 @@ var Request35 = {
|
|
|
915942
916060
|
}
|
|
915943
916061
|
};
|
|
915944
916062
|
|
|
915945
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916063
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/endpoints/types/Response.mjs
|
|
915946
916064
|
var Response43 = {
|
|
915947
916065
|
json: () => {
|
|
915948
916066
|
return {
|
|
@@ -916012,13 +916130,13 @@ var Response43 = {
|
|
|
916012
916130
|
}
|
|
916013
916131
|
};
|
|
916014
916132
|
|
|
916015
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916133
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/environment/index.mjs
|
|
916016
916134
|
var environment_exports55 = {};
|
|
916017
916135
|
__export(environment_exports55, {
|
|
916018
916136
|
Environments: () => Environments43
|
|
916019
916137
|
});
|
|
916020
916138
|
|
|
916021
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916139
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/environment/types/Environments.mjs
|
|
916022
916140
|
var Environments43 = {
|
|
916023
916141
|
singleBaseUrl: (value2) => {
|
|
916024
916142
|
return Object.assign(Object.assign({}, value2), { type: "singleBaseUrl", _visit: function(visitor) {
|
|
@@ -916042,13 +916160,13 @@ var Environments43 = {
|
|
|
916042
916160
|
}
|
|
916043
916161
|
};
|
|
916044
916162
|
|
|
916045
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916163
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/http/index.mjs
|
|
916046
916164
|
var http_exports43 = {};
|
|
916047
916165
|
__export(http_exports43, {
|
|
916048
916166
|
HttpMethod: () => HttpMethod47
|
|
916049
916167
|
});
|
|
916050
916168
|
|
|
916051
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916169
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/http/types/HttpMethod.mjs
|
|
916052
916170
|
var HttpMethodValues23 = {
|
|
916053
916171
|
Get: "GET",
|
|
916054
916172
|
Post: "POST",
|
|
@@ -916076,14 +916194,14 @@ var HttpMethod47 = Object.assign(Object.assign({}, HttpMethodValues23), { _visit
|
|
|
916076
916194
|
}
|
|
916077
916195
|
} });
|
|
916078
916196
|
|
|
916079
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916197
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/ir/index.mjs
|
|
916080
916198
|
var ir_exports57 = {};
|
|
916081
916199
|
__export(ir_exports57, {
|
|
916082
916200
|
GeneratorOutputConfig: () => GeneratorOutputConfig35,
|
|
916083
916201
|
PublishInfo: () => PublishInfo21
|
|
916084
916202
|
});
|
|
916085
916203
|
|
|
916086
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916204
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/ir/types/GeneratorOutputConfig.mjs
|
|
916087
916205
|
var GeneratorOutputConfig35 = {
|
|
916088
916206
|
publish: (value2) => {
|
|
916089
916207
|
return {
|
|
@@ -916114,7 +916232,7 @@ var GeneratorOutputConfig35 = {
|
|
|
916114
916232
|
}
|
|
916115
916233
|
};
|
|
916116
916234
|
|
|
916117
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916235
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/ir/types/PublishInfo.mjs
|
|
916118
916236
|
var PublishInfo21 = {
|
|
916119
916237
|
go: (value2) => {
|
|
916120
916238
|
return Object.assign(Object.assign({}, value2), { type: "go", _visit: function(visitor) {
|
|
@@ -916180,13 +916298,13 @@ var PublishInfo21 = {
|
|
|
916180
916298
|
}
|
|
916181
916299
|
};
|
|
916182
916300
|
|
|
916183
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916301
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/snippets/index.mjs
|
|
916184
916302
|
var snippets_exports29 = {};
|
|
916185
916303
|
__export(snippets_exports29, {
|
|
916186
916304
|
ErrorSeverity: () => ErrorSeverity29
|
|
916187
916305
|
});
|
|
916188
916306
|
|
|
916189
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916307
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/snippets/types/ErrorSeverity.mjs
|
|
916190
916308
|
var ErrorSeverityValues15 = {
|
|
916191
916309
|
Critical: "CRITICAL",
|
|
916192
916310
|
Warning: "WARNING"
|
|
@@ -916202,7 +916320,7 @@ var ErrorSeverity29 = Object.assign(Object.assign({}, ErrorSeverityValues15), {
|
|
|
916202
916320
|
}
|
|
916203
916321
|
} });
|
|
916204
916322
|
|
|
916205
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916323
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/types/index.mjs
|
|
916206
916324
|
var types_exports66 = {};
|
|
916207
916325
|
__export(types_exports66, {
|
|
916208
916326
|
LiteralType: () => LiteralType29,
|
|
@@ -916213,7 +916331,7 @@ __export(types_exports66, {
|
|
|
916213
916331
|
TypeReference: () => TypeReference57
|
|
916214
916332
|
});
|
|
916215
916333
|
|
|
916216
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916334
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/types/types/LiteralType.mjs
|
|
916217
916335
|
var LiteralType29 = {
|
|
916218
916336
|
boolean: (value2) => {
|
|
916219
916337
|
return {
|
|
@@ -916245,7 +916363,7 @@ var LiteralType29 = {
|
|
|
916245
916363
|
}
|
|
916246
916364
|
};
|
|
916247
916365
|
|
|
916248
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916366
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/types/types/NamedType.mjs
|
|
916249
916367
|
var NamedType43 = {
|
|
916250
916368
|
alias: (value2) => {
|
|
916251
916369
|
return Object.assign(Object.assign({}, value2), { type: "alias", _visit: function(visitor) {
|
|
@@ -916290,7 +916408,7 @@ var NamedType43 = {
|
|
|
916290
916408
|
}
|
|
916291
916409
|
};
|
|
916292
916410
|
|
|
916293
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916411
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.mjs
|
|
916294
916412
|
var ObjectPropertyAccessValues20 = {
|
|
916295
916413
|
ReadOnly: "READ_ONLY",
|
|
916296
916414
|
WriteOnly: "WRITE_ONLY"
|
|
@@ -916306,7 +916424,7 @@ var ObjectPropertyAccess41 = Object.assign(Object.assign({}, ObjectPropertyAcces
|
|
|
916306
916424
|
}
|
|
916307
916425
|
} });
|
|
916308
916426
|
|
|
916309
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916427
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.mjs
|
|
916310
916428
|
var PrimitiveTypeV1Values22 = {
|
|
916311
916429
|
Integer: "INTEGER",
|
|
916312
916430
|
/**
|
|
@@ -916360,7 +916478,7 @@ var PrimitiveTypeV143 = Object.assign(Object.assign({}, PrimitiveTypeV1Values22)
|
|
|
916360
916478
|
}
|
|
916361
916479
|
} });
|
|
916362
916480
|
|
|
916363
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916481
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.mjs
|
|
916364
916482
|
var SingleDiscriminatedUnionType29 = {
|
|
916365
916483
|
samePropertiesAsObject: (value2) => {
|
|
916366
916484
|
return Object.assign(Object.assign({}, value2), { type: "samePropertiesAsObject", _visit: function(visitor) {
|
|
@@ -916391,7 +916509,7 @@ var SingleDiscriminatedUnionType29 = {
|
|
|
916391
916509
|
}
|
|
916392
916510
|
};
|
|
916393
916511
|
|
|
916394
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916512
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/types/types/TypeReference.mjs
|
|
916395
916513
|
var TypeReference57 = {
|
|
916396
916514
|
list: (value2) => {
|
|
916397
916515
|
return {
|
|
@@ -916495,16 +916613,16 @@ var TypeReference57 = {
|
|
|
916495
916613
|
}
|
|
916496
916614
|
};
|
|
916497
916615
|
|
|
916498
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916616
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/dynamic/resources/variables/index.mjs
|
|
916499
916617
|
var variables_exports45 = {};
|
|
916500
916618
|
|
|
916501
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916619
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/environment/index.mjs
|
|
916502
916620
|
var environment_exports56 = {};
|
|
916503
916621
|
__export(environment_exports56, {
|
|
916504
916622
|
Environments: () => Environments44
|
|
916505
916623
|
});
|
|
916506
916624
|
|
|
916507
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916625
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/environment/types/Environments.mjs
|
|
916508
916626
|
var Environments44 = {
|
|
916509
916627
|
singleBaseUrl: (value2) => {
|
|
916510
916628
|
return Object.assign(Object.assign({}, value2), { type: "singleBaseUrl", _visit: function(visitor) {
|
|
@@ -916528,13 +916646,13 @@ var Environments44 = {
|
|
|
916528
916646
|
}
|
|
916529
916647
|
};
|
|
916530
916648
|
|
|
916531
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916649
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/errors/index.mjs
|
|
916532
916650
|
var errors_exports32 = {};
|
|
916533
916651
|
__export(errors_exports32, {
|
|
916534
916652
|
ErrorDeclarationDiscriminantValue: () => ErrorDeclarationDiscriminantValue29
|
|
916535
916653
|
});
|
|
916536
916654
|
|
|
916537
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916655
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/errors/types/ErrorDeclarationDiscriminantValue.mjs
|
|
916538
916656
|
var ErrorDeclarationDiscriminantValue29 = {
|
|
916539
916657
|
property: (value2) => {
|
|
916540
916658
|
return {
|
|
@@ -916565,7 +916683,7 @@ var ErrorDeclarationDiscriminantValue29 = {
|
|
|
916565
916683
|
}
|
|
916566
916684
|
};
|
|
916567
916685
|
|
|
916568
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916686
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/examples/index.mjs
|
|
916569
916687
|
var examples_exports25 = {};
|
|
916570
916688
|
__export(examples_exports25, {
|
|
916571
916689
|
V2AuthValues: () => V2AuthValues21,
|
|
@@ -916573,7 +916691,7 @@ __export(examples_exports25, {
|
|
|
916573
916691
|
V2HttpEndpointResponseBody: () => V2HttpEndpointResponseBody21
|
|
916574
916692
|
});
|
|
916575
916693
|
|
|
916576
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916694
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/examples/types/V2AuthValues.mjs
|
|
916577
916695
|
var V2AuthValues21 = {
|
|
916578
916696
|
basic: (value2) => {
|
|
916579
916697
|
return Object.assign(Object.assign({}, value2), { type: "basic", _visit: function(visitor) {
|
|
@@ -916611,7 +916729,7 @@ var V2AuthValues21 = {
|
|
|
916611
916729
|
}
|
|
916612
916730
|
};
|
|
916613
916731
|
|
|
916614
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916732
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/examples/types/V2EndpointLocationHttpMethod.mjs
|
|
916615
916733
|
var V2EndpointLocationHttpMethodValues11 = {
|
|
916616
916734
|
Get: "GET",
|
|
916617
916735
|
Post: "POST",
|
|
@@ -916639,7 +916757,7 @@ var V2EndpointLocationHttpMethod21 = Object.assign(Object.assign({}, V2EndpointL
|
|
|
916639
916757
|
}
|
|
916640
916758
|
} });
|
|
916641
916759
|
|
|
916642
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916760
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/examples/types/V2HttpEndpointResponseBody.mjs
|
|
916643
916761
|
var V2HttpEndpointResponseBody21 = {
|
|
916644
916762
|
error: (value2) => {
|
|
916645
916763
|
return {
|
|
@@ -916682,7 +916800,7 @@ var V2HttpEndpointResponseBody21 = {
|
|
|
916682
916800
|
}
|
|
916683
916801
|
};
|
|
916684
916802
|
|
|
916685
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916803
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/generatorExec/index.mjs
|
|
916686
916804
|
var generatorExec_exports29 = {};
|
|
916687
916805
|
__export(generatorExec_exports29, {
|
|
916688
916806
|
GeneratorEnvironment: () => GeneratorEnvironment29,
|
|
@@ -916694,7 +916812,7 @@ __export(generatorExec_exports29, {
|
|
|
916694
916812
|
config: () => config_exports29
|
|
916695
916813
|
});
|
|
916696
916814
|
|
|
916697
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916815
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/generatorExec/resources/config/index.mjs
|
|
916698
916816
|
var config_exports29 = {};
|
|
916699
916817
|
__export(config_exports29, {
|
|
916700
916818
|
GeneratorEnvironment: () => GeneratorEnvironment29,
|
|
@@ -916705,7 +916823,7 @@ __export(config_exports29, {
|
|
|
916705
916823
|
OutputMode: () => OutputMode31
|
|
916706
916824
|
});
|
|
916707
916825
|
|
|
916708
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916826
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorEnvironment.mjs
|
|
916709
916827
|
var GeneratorEnvironment29 = {
|
|
916710
916828
|
local: () => {
|
|
916711
916829
|
return {
|
|
@@ -916732,7 +916850,7 @@ var GeneratorEnvironment29 = {
|
|
|
916732
916850
|
}
|
|
916733
916851
|
};
|
|
916734
916852
|
|
|
916735
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916853
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishTarget.mjs
|
|
916736
916854
|
var GeneratorPublishTarget29 = {
|
|
916737
916855
|
maven: (value2) => {
|
|
916738
916856
|
return Object.assign(Object.assign({}, value2), { type: "maven", _visit: function(visitor) {
|
|
@@ -916791,7 +916909,7 @@ var GeneratorPublishTarget29 = {
|
|
|
916791
916909
|
}
|
|
916792
916910
|
};
|
|
916793
916911
|
|
|
916794
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916912
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/generatorExec/resources/config/types/GithubPublishInfo.mjs
|
|
916795
916913
|
var GithubPublishInfo31 = {
|
|
916796
916914
|
npm: (value2) => {
|
|
916797
916915
|
return Object.assign(Object.assign({}, value2), { type: "npm", _visit: function(visitor) {
|
|
@@ -916850,7 +916968,7 @@ var GithubPublishInfo31 = {
|
|
|
916850
916968
|
}
|
|
916851
916969
|
};
|
|
916852
916970
|
|
|
916853
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916971
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/generatorExec/resources/config/types/LicenseConfig.mjs
|
|
916854
916972
|
var LicenseConfig29 = {
|
|
916855
916973
|
basic: (value2) => {
|
|
916856
916974
|
return Object.assign(Object.assign({}, value2), { type: "basic", _visit: function(visitor) {
|
|
@@ -916874,7 +916992,7 @@ var LicenseConfig29 = {
|
|
|
916874
916992
|
}
|
|
916875
916993
|
};
|
|
916876
916994
|
|
|
916877
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
916995
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/generatorExec/resources/config/types/LicenseId.mjs
|
|
916878
916996
|
var LicenseIdValues15 = {
|
|
916879
916997
|
Mit: "MIT",
|
|
916880
916998
|
Apache2: "Apache-2.0"
|
|
@@ -916890,7 +917008,7 @@ var LicenseId29 = Object.assign(Object.assign({}, LicenseIdValues15), { _visit:
|
|
|
916890
917008
|
}
|
|
916891
917009
|
} });
|
|
916892
917010
|
|
|
916893
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917011
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/generatorExec/resources/config/types/OutputMode.mjs
|
|
916894
917012
|
var OutputMode31 = {
|
|
916895
917013
|
publish: (value2) => {
|
|
916896
917014
|
return Object.assign(Object.assign({}, value2), { type: "publish", _visit: function(visitor) {
|
|
@@ -916924,14 +917042,14 @@ var OutputMode31 = {
|
|
|
916924
917042
|
}
|
|
916925
917043
|
};
|
|
916926
917044
|
|
|
916927
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917045
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/globalParameters/index.mjs
|
|
916928
917046
|
var globalParameters_exports5 = {};
|
|
916929
917047
|
__export(globalParameters_exports5, {
|
|
916930
917048
|
GlobalParameterApplyMode: () => GlobalParameterApplyMode3,
|
|
916931
917049
|
GlobalParameterLocation: () => GlobalParameterLocation3
|
|
916932
917050
|
});
|
|
916933
917051
|
|
|
916934
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917052
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/globalParameters/types/GlobalParameterApplyMode.mjs
|
|
916935
917053
|
var GlobalParameterApplyModeValues2 = {
|
|
916936
917054
|
Explicit: "explicit",
|
|
916937
917055
|
Auto: "auto"
|
|
@@ -916947,7 +917065,7 @@ var GlobalParameterApplyMode3 = Object.assign(Object.assign({}, GlobalParameterA
|
|
|
916947
917065
|
}
|
|
916948
917066
|
} });
|
|
916949
917067
|
|
|
916950
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917068
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/globalParameters/types/GlobalParameterLocation.mjs
|
|
916951
917069
|
var GlobalParameterLocationValues2 = {
|
|
916952
917070
|
Header: "header",
|
|
916953
917071
|
Query: "query",
|
|
@@ -916969,7 +917087,7 @@ var GlobalParameterLocation3 = Object.assign(Object.assign({}, GlobalParameterLo
|
|
|
916969
917087
|
}
|
|
916970
917088
|
} });
|
|
916971
917089
|
|
|
916972
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917090
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/index.mjs
|
|
916973
917091
|
var http_exports44 = {};
|
|
916974
917092
|
__export(http_exports44, {
|
|
916975
917093
|
ExampleCodeSample: () => ExampleCodeSample29,
|
|
@@ -916996,7 +917114,7 @@ __export(http_exports44, {
|
|
|
916996
917114
|
Transport: () => Transport29
|
|
916997
917115
|
});
|
|
916998
917116
|
|
|
916999
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917117
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/ExampleCodeSample.mjs
|
|
917000
917118
|
var ExampleCodeSample29 = {
|
|
917001
917119
|
language: (value2) => {
|
|
917002
917120
|
return Object.assign(Object.assign({}, value2), { type: "language", _visit: function(visitor) {
|
|
@@ -917020,7 +917138,7 @@ var ExampleCodeSample29 = {
|
|
|
917020
917138
|
}
|
|
917021
917139
|
};
|
|
917022
917140
|
|
|
917023
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917141
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/ExampleEndpointSuccessResponse.mjs
|
|
917024
917142
|
var ExampleEndpointSuccessResponse29 = {
|
|
917025
917143
|
body: (value2) => {
|
|
917026
917144
|
return {
|
|
@@ -917063,7 +917181,7 @@ var ExampleEndpointSuccessResponse29 = {
|
|
|
917063
917181
|
}
|
|
917064
917182
|
};
|
|
917065
917183
|
|
|
917066
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917184
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/ExampleQueryParameterShape.mjs
|
|
917067
917185
|
var ExampleQueryParameterShape29 = {
|
|
917068
917186
|
single: () => {
|
|
917069
917187
|
return {
|
|
@@ -917103,7 +917221,7 @@ var ExampleQueryParameterShape29 = {
|
|
|
917103
917221
|
}
|
|
917104
917222
|
};
|
|
917105
917223
|
|
|
917106
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917224
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/ExampleRequestBody.mjs
|
|
917107
917225
|
var ExampleRequestBody29 = {
|
|
917108
917226
|
inlinedRequestBody: (value2) => {
|
|
917109
917227
|
return Object.assign(Object.assign({}, value2), { type: "inlinedRequestBody", _visit: function(visitor) {
|
|
@@ -917127,7 +917245,7 @@ var ExampleRequestBody29 = {
|
|
|
917127
917245
|
}
|
|
917128
917246
|
};
|
|
917129
917247
|
|
|
917130
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917248
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/ExampleResponse.mjs
|
|
917131
917249
|
var ExampleResponse29 = {
|
|
917132
917250
|
ok: (value2) => {
|
|
917133
917251
|
return {
|
|
@@ -917155,7 +917273,7 @@ var ExampleResponse29 = {
|
|
|
917155
917273
|
}
|
|
917156
917274
|
};
|
|
917157
917275
|
|
|
917158
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917276
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/FileProperty.mjs
|
|
917159
917277
|
var FileProperty29 = {
|
|
917160
917278
|
file: (value2) => {
|
|
917161
917279
|
return Object.assign(Object.assign({}, value2), { type: "file", _visit: function(visitor) {
|
|
@@ -917179,7 +917297,7 @@ var FileProperty29 = {
|
|
|
917179
917297
|
}
|
|
917180
917298
|
};
|
|
917181
917299
|
|
|
917182
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917300
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/FileUploadBodyPropertyEncoding.mjs
|
|
917183
917301
|
var FileUploadBodyPropertyEncodingValues13 = {
|
|
917184
917302
|
Exploded: "exploded",
|
|
917185
917303
|
Json: "json",
|
|
@@ -917198,7 +917316,7 @@ var FileUploadBodyPropertyEncoding25 = Object.assign(Object.assign({}, FileUploa
|
|
|
917198
917316
|
}
|
|
917199
917317
|
} });
|
|
917200
917318
|
|
|
917201
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917319
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/FileUploadRequestProperty.mjs
|
|
917202
917320
|
var FileUploadRequestProperty29 = {
|
|
917203
917321
|
file: (value2) => {
|
|
917204
917322
|
return {
|
|
@@ -917226,7 +917344,7 @@ var FileUploadRequestProperty29 = {
|
|
|
917226
917344
|
}
|
|
917227
917345
|
};
|
|
917228
917346
|
|
|
917229
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917347
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/HttpEndpointSource.mjs
|
|
917230
917348
|
var HttpEndpointSource21 = {
|
|
917231
917349
|
proto: (value2) => {
|
|
917232
917350
|
return Object.assign(Object.assign({}, value2), { type: "proto", _visit: function(visitor) {
|
|
@@ -917263,7 +917381,7 @@ var HttpEndpointSource21 = {
|
|
|
917263
917381
|
}
|
|
917264
917382
|
};
|
|
917265
917383
|
|
|
917266
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917384
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/HttpMethod.mjs
|
|
917267
917385
|
var HttpMethodValues24 = {
|
|
917268
917386
|
Get: "GET",
|
|
917269
917387
|
Post: "POST",
|
|
@@ -917291,7 +917409,7 @@ var HttpMethod48 = Object.assign(Object.assign({}, HttpMethodValues24), { _visit
|
|
|
917291
917409
|
}
|
|
917292
917410
|
} });
|
|
917293
917411
|
|
|
917294
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917412
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/HttpRequestBody.mjs
|
|
917295
917413
|
var HttpRequestBody29 = {
|
|
917296
917414
|
inlinedRequestBody: (value2) => {
|
|
917297
917415
|
return Object.assign(Object.assign({}, value2), { type: "inlinedRequestBody", _visit: function(visitor) {
|
|
@@ -917329,7 +917447,7 @@ var HttpRequestBody29 = {
|
|
|
917329
917447
|
}
|
|
917330
917448
|
};
|
|
917331
917449
|
|
|
917332
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917450
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/HttpResponseBody.mjs
|
|
917333
917451
|
var HttpResponseBody29 = {
|
|
917334
917452
|
json: (value2) => {
|
|
917335
917453
|
return {
|
|
@@ -917389,7 +917507,7 @@ var HttpResponseBody29 = {
|
|
|
917389
917507
|
}
|
|
917390
917508
|
};
|
|
917391
917509
|
|
|
917392
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917510
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/JsonResponse.mjs
|
|
917393
917511
|
var JsonResponse30 = {
|
|
917394
917512
|
response: (value2) => {
|
|
917395
917513
|
return Object.assign(Object.assign({}, value2), { type: "response", _visit: function(visitor) {
|
|
@@ -917413,7 +917531,7 @@ var JsonResponse30 = {
|
|
|
917413
917531
|
}
|
|
917414
917532
|
};
|
|
917415
917533
|
|
|
917416
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917534
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/NonStreamHttpResponseBody.mjs
|
|
917417
917535
|
var NonStreamHttpResponseBody29 = {
|
|
917418
917536
|
json: (value2) => {
|
|
917419
917537
|
return {
|
|
@@ -917455,7 +917573,7 @@ var NonStreamHttpResponseBody29 = {
|
|
|
917455
917573
|
}
|
|
917456
917574
|
};
|
|
917457
917575
|
|
|
917458
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917576
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/Pagination.mjs
|
|
917459
917577
|
var Pagination32 = {
|
|
917460
917578
|
cursor: (value2) => {
|
|
917461
917579
|
return Object.assign(Object.assign({}, value2), { type: "cursor", _visit: function(visitor) {
|
|
@@ -917500,7 +917618,7 @@ var Pagination32 = {
|
|
|
917500
917618
|
}
|
|
917501
917619
|
};
|
|
917502
917620
|
|
|
917503
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917621
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/PathParameterLocation.mjs
|
|
917504
917622
|
var PathParameterLocationValues15 = {
|
|
917505
917623
|
Root: "ROOT",
|
|
917506
917624
|
Service: "SERVICE",
|
|
@@ -917519,7 +917637,7 @@ var PathParameterLocation29 = Object.assign(Object.assign({}, PathParameterLocat
|
|
|
917519
917637
|
}
|
|
917520
917638
|
} });
|
|
917521
917639
|
|
|
917522
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917640
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/RequestPropertyValue.mjs
|
|
917523
917641
|
var RequestPropertyValue29 = {
|
|
917524
917642
|
query: (value2) => {
|
|
917525
917643
|
return Object.assign(Object.assign({}, value2), { type: "query", _visit: function(visitor) {
|
|
@@ -917543,7 +917661,7 @@ var RequestPropertyValue29 = {
|
|
|
917543
917661
|
}
|
|
917544
917662
|
};
|
|
917545
917663
|
|
|
917546
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917664
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/SdkRequestBodyType.mjs
|
|
917547
917665
|
var SdkRequestBodyType29 = {
|
|
917548
917666
|
typeReference: (value2) => {
|
|
917549
917667
|
return Object.assign(Object.assign({}, value2), { type: "typeReference", _visit: function(visitor) {
|
|
@@ -917567,7 +917685,7 @@ var SdkRequestBodyType29 = {
|
|
|
917567
917685
|
}
|
|
917568
917686
|
};
|
|
917569
917687
|
|
|
917570
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917688
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/SdkRequestShape.mjs
|
|
917571
917689
|
var SdkRequestShape29 = {
|
|
917572
917690
|
justRequestBody: (value2) => {
|
|
917573
917691
|
return {
|
|
@@ -917595,7 +917713,7 @@ var SdkRequestShape29 = {
|
|
|
917595
917713
|
}
|
|
917596
917714
|
};
|
|
917597
917715
|
|
|
917598
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917716
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/StreamingResponse.mjs
|
|
917599
917717
|
var StreamingResponse29 = {
|
|
917600
917718
|
json: (value2) => {
|
|
917601
917719
|
return Object.assign(Object.assign({}, value2), { type: "json", _visit: function(visitor) {
|
|
@@ -917626,7 +917744,7 @@ var StreamingResponse29 = {
|
|
|
917626
917744
|
}
|
|
917627
917745
|
};
|
|
917628
917746
|
|
|
917629
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917747
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/SupportedSdkLanguage.mjs
|
|
917630
917748
|
var SupportedSdkLanguageValues16 = {
|
|
917631
917749
|
Curl: "curl",
|
|
917632
917750
|
Python: "python",
|
|
@@ -917669,7 +917787,7 @@ var SupportedSdkLanguage31 = Object.assign(Object.assign({}, SupportedSdkLanguag
|
|
|
917669
917787
|
}
|
|
917670
917788
|
} });
|
|
917671
917789
|
|
|
917672
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917790
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/http/types/Transport.mjs
|
|
917673
917791
|
var Transport29 = {
|
|
917674
917792
|
http: () => {
|
|
917675
917793
|
return {
|
|
@@ -917696,7 +917814,7 @@ var Transport29 = {
|
|
|
917696
917814
|
}
|
|
917697
917815
|
};
|
|
917698
917816
|
|
|
917699
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917817
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/ir/index.mjs
|
|
917700
917818
|
var ir_exports58 = {};
|
|
917701
917819
|
__export(ir_exports58, {
|
|
917702
917820
|
ApiDefinitionSource: () => ApiDefinitionSource29,
|
|
@@ -917706,7 +917824,7 @@ __export(ir_exports58, {
|
|
|
917706
917824
|
InvocationSource: () => InvocationSource5
|
|
917707
917825
|
});
|
|
917708
917826
|
|
|
917709
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917827
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/ir/types/ApiDefinitionSource.mjs
|
|
917710
917828
|
var ApiDefinitionSource29 = {
|
|
917711
917829
|
proto: (value2) => {
|
|
917712
917830
|
return Object.assign(Object.assign({}, value2), { type: "proto", _visit: function(visitor) {
|
|
@@ -917733,7 +917851,7 @@ var ApiDefinitionSource29 = {
|
|
|
917733
917851
|
}
|
|
917734
917852
|
};
|
|
917735
917853
|
|
|
917736
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917854
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/ir/types/ApiVersionScheme.mjs
|
|
917737
917855
|
var ApiVersionScheme29 = {
|
|
917738
917856
|
header: (value2) => {
|
|
917739
917857
|
return Object.assign(Object.assign({}, value2), { type: "header", _visit: function(visitor) {
|
|
@@ -917750,7 +917868,7 @@ var ApiVersionScheme29 = {
|
|
|
917750
917868
|
}
|
|
917751
917869
|
};
|
|
917752
917870
|
|
|
917753
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917871
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/ir/types/ErrorDiscriminationStrategy.mjs
|
|
917754
917872
|
var ErrorDiscriminationStrategy29 = {
|
|
917755
917873
|
statusCode: () => {
|
|
917756
917874
|
return {
|
|
@@ -917777,7 +917895,7 @@ var ErrorDiscriminationStrategy29 = {
|
|
|
917777
917895
|
}
|
|
917778
917896
|
};
|
|
917779
917897
|
|
|
917780
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917898
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/ir/types/ExampleStyle.mjs
|
|
917781
917899
|
var ExampleStyleValues7 = {
|
|
917782
917900
|
Minimal: "minimal",
|
|
917783
917901
|
Comprehensive: "comprehensive"
|
|
@@ -917793,7 +917911,7 @@ var ExampleStyle15 = Object.assign(Object.assign({}, ExampleStyleValues7), { _vi
|
|
|
917793
917911
|
}
|
|
917794
917912
|
} });
|
|
917795
917913
|
|
|
917796
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917914
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/ir/types/InvocationSource.mjs
|
|
917797
917915
|
var InvocationSourceValues3 = {
|
|
917798
917916
|
Autopilot: "autopilot",
|
|
917799
917917
|
Autorelease: "autorelease",
|
|
@@ -917815,7 +917933,7 @@ var InvocationSource5 = Object.assign(Object.assign({}, InvocationSourceValues3)
|
|
|
917815
917933
|
}
|
|
917816
917934
|
} });
|
|
917817
917935
|
|
|
917818
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917936
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/proto/index.mjs
|
|
917819
917937
|
var proto_exports29 = {};
|
|
917820
917938
|
__export(proto_exports29, {
|
|
917821
917939
|
ProtobufMethodType: () => ProtobufMethodType19,
|
|
@@ -917823,7 +917941,7 @@ __export(proto_exports29, {
|
|
|
917823
917941
|
WellKnownProtobufType: () => WellKnownProtobufType29
|
|
917824
917942
|
});
|
|
917825
917943
|
|
|
917826
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917944
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/proto/types/ProtobufMethodType.mjs
|
|
917827
917945
|
var ProtobufMethodTypeValues10 = {
|
|
917828
917946
|
Unary: "UNARY",
|
|
917829
917947
|
ClientStream: "CLIENT_STREAM",
|
|
@@ -917845,7 +917963,7 @@ var ProtobufMethodType19 = Object.assign(Object.assign({}, ProtobufMethodTypeVal
|
|
|
917845
917963
|
}
|
|
917846
917964
|
} });
|
|
917847
917965
|
|
|
917848
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917966
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/proto/types/ProtobufType.mjs
|
|
917849
917967
|
var ProtobufType29 = {
|
|
917850
917968
|
wellKnown: (value2) => {
|
|
917851
917969
|
return {
|
|
@@ -917873,7 +917991,7 @@ var ProtobufType29 = {
|
|
|
917873
917991
|
}
|
|
917874
917992
|
};
|
|
917875
917993
|
|
|
917876
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
917994
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/proto/types/WellKnownProtobufType.mjs
|
|
917877
917995
|
var WellKnownProtobufType29 = {
|
|
917878
917996
|
any: () => {
|
|
917879
917997
|
return {
|
|
@@ -918183,14 +918301,14 @@ var WellKnownProtobufType29 = {
|
|
|
918183
918301
|
}
|
|
918184
918302
|
};
|
|
918185
918303
|
|
|
918186
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918304
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/publish/index.mjs
|
|
918187
918305
|
var publish_exports29 = {};
|
|
918188
918306
|
__export(publish_exports29, {
|
|
918189
918307
|
PublishTarget: () => PublishTarget29,
|
|
918190
918308
|
PublishingConfig: () => PublishingConfig29
|
|
918191
918309
|
});
|
|
918192
918310
|
|
|
918193
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918311
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/publish/types/PublishingConfig.mjs
|
|
918194
918312
|
var PublishingConfig29 = {
|
|
918195
918313
|
github: (value2) => {
|
|
918196
918314
|
return Object.assign(Object.assign({}, value2), { type: "github", _visit: function(visitor) {
|
|
@@ -918221,7 +918339,7 @@ var PublishingConfig29 = {
|
|
|
918221
918339
|
}
|
|
918222
918340
|
};
|
|
918223
918341
|
|
|
918224
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918342
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/publish/types/PublishTarget.mjs
|
|
918225
918343
|
var PublishTarget29 = {
|
|
918226
918344
|
postman: (value2) => {
|
|
918227
918345
|
return Object.assign(Object.assign({}, value2), { type: "postman", _visit: function(visitor) {
|
|
@@ -918253,6 +918371,21 @@ var PublishTarget29 = {
|
|
|
918253
918371
|
return PublishTarget29._visit(this, visitor);
|
|
918254
918372
|
} });
|
|
918255
918373
|
},
|
|
918374
|
+
nuget: (value2) => {
|
|
918375
|
+
return Object.assign(Object.assign({}, value2), { type: "nuget", _visit: function(visitor) {
|
|
918376
|
+
return PublishTarget29._visit(this, visitor);
|
|
918377
|
+
} });
|
|
918378
|
+
},
|
|
918379
|
+
rubygems: (value2) => {
|
|
918380
|
+
return Object.assign(Object.assign({}, value2), { type: "rubygems", _visit: function(visitor) {
|
|
918381
|
+
return PublishTarget29._visit(this, visitor);
|
|
918382
|
+
} });
|
|
918383
|
+
},
|
|
918384
|
+
packagist: (value2) => {
|
|
918385
|
+
return Object.assign(Object.assign({}, value2), { type: "packagist", _visit: function(visitor) {
|
|
918386
|
+
return PublishTarget29._visit(this, visitor);
|
|
918387
|
+
} });
|
|
918388
|
+
},
|
|
918256
918389
|
_visit: (value2, visitor) => {
|
|
918257
918390
|
switch (value2.type) {
|
|
918258
918391
|
case "postman":
|
|
@@ -918267,13 +918400,19 @@ var PublishTarget29 = {
|
|
|
918267
918400
|
return visitor.crates(value2);
|
|
918268
918401
|
case "go":
|
|
918269
918402
|
return visitor.go(value2);
|
|
918403
|
+
case "nuget":
|
|
918404
|
+
return visitor.nuget(value2);
|
|
918405
|
+
case "rubygems":
|
|
918406
|
+
return visitor.rubygems(value2);
|
|
918407
|
+
case "packagist":
|
|
918408
|
+
return visitor.packagist(value2);
|
|
918270
918409
|
default:
|
|
918271
918410
|
return visitor._other(value2);
|
|
918272
918411
|
}
|
|
918273
918412
|
}
|
|
918274
918413
|
};
|
|
918275
918414
|
|
|
918276
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918415
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/index.mjs
|
|
918277
918416
|
var types_exports67 = {};
|
|
918278
918417
|
__export(types_exports67, {
|
|
918279
918418
|
ContainerType: () => ContainerType29,
|
|
@@ -918296,7 +918435,7 @@ __export(types_exports67, {
|
|
|
918296
918435
|
UnionDiscriminatorContext: () => UnionDiscriminatorContext9
|
|
918297
918436
|
});
|
|
918298
918437
|
|
|
918299
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918438
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/ContainerType.mjs
|
|
918300
918439
|
var ContainerType29 = {
|
|
918301
918440
|
list: (value2) => {
|
|
918302
918441
|
return {
|
|
@@ -918368,7 +918507,7 @@ var ContainerType29 = {
|
|
|
918368
918507
|
}
|
|
918369
918508
|
};
|
|
918370
918509
|
|
|
918371
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918510
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/ExampleContainer.mjs
|
|
918372
918511
|
var ExampleContainer29 = {
|
|
918373
918512
|
list: (value2) => {
|
|
918374
918513
|
return Object.assign(Object.assign({}, value2), { type: "list", _visit: function(visitor) {
|
|
@@ -918420,7 +918559,7 @@ var ExampleContainer29 = {
|
|
|
918420
918559
|
}
|
|
918421
918560
|
};
|
|
918422
918561
|
|
|
918423
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918562
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/ExamplePrimitive.mjs
|
|
918424
918563
|
var ExamplePrimitive29 = {
|
|
918425
918564
|
integer: (value2) => {
|
|
918426
918565
|
return {
|
|
@@ -918576,7 +918715,7 @@ var ExamplePrimitive29 = {
|
|
|
918576
918715
|
}
|
|
918577
918716
|
};
|
|
918578
918717
|
|
|
918579
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918718
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/ExampleSingleUnionTypeProperties.mjs
|
|
918580
918719
|
var ExampleSingleUnionTypeProperties29 = {
|
|
918581
918720
|
samePropertiesAsObject: (value2) => {
|
|
918582
918721
|
return Object.assign(Object.assign({}, value2), { type: "samePropertiesAsObject", _visit: function(visitor) {
|
|
@@ -918610,7 +918749,7 @@ var ExampleSingleUnionTypeProperties29 = {
|
|
|
918610
918749
|
}
|
|
918611
918750
|
};
|
|
918612
918751
|
|
|
918613
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918752
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/ExampleTypeReferenceShape.mjs
|
|
918614
918753
|
var ExampleTypeReferenceShape29 = {
|
|
918615
918754
|
primitive: (value2) => {
|
|
918616
918755
|
return {
|
|
@@ -918660,7 +918799,7 @@ var ExampleTypeReferenceShape29 = {
|
|
|
918660
918799
|
}
|
|
918661
918800
|
};
|
|
918662
918801
|
|
|
918663
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918802
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/ExampleTypeShape.mjs
|
|
918664
918803
|
var ExampleTypeShape29 = {
|
|
918665
918804
|
alias: (value2) => {
|
|
918666
918805
|
return Object.assign(Object.assign({}, value2), { type: "alias", _visit: function(visitor) {
|
|
@@ -918705,7 +918844,7 @@ var ExampleTypeShape29 = {
|
|
|
918705
918844
|
}
|
|
918706
918845
|
};
|
|
918707
918846
|
|
|
918708
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918847
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/Literal.mjs
|
|
918709
918848
|
var Literal30 = {
|
|
918710
918849
|
string: (value2) => {
|
|
918711
918850
|
return {
|
|
@@ -918737,7 +918876,7 @@ var Literal30 = {
|
|
|
918737
918876
|
}
|
|
918738
918877
|
};
|
|
918739
918878
|
|
|
918740
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918879
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/NamedTypeDefault.mjs
|
|
918741
918880
|
var NamedTypeDefault29 = {
|
|
918742
918881
|
enum: (value2) => {
|
|
918743
918882
|
return Object.assign(Object.assign({}, value2), { type: "enum", _visit: function(visitor) {
|
|
@@ -918754,7 +918893,7 @@ var NamedTypeDefault29 = {
|
|
|
918754
918893
|
}
|
|
918755
918894
|
};
|
|
918756
918895
|
|
|
918757
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918896
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/ObjectPropertyAccess.mjs
|
|
918758
918897
|
var ObjectPropertyAccessValues21 = {
|
|
918759
918898
|
ReadOnly: "READ_ONLY",
|
|
918760
918899
|
WriteOnly: "WRITE_ONLY"
|
|
@@ -918770,7 +918909,7 @@ var ObjectPropertyAccess42 = Object.assign(Object.assign({}, ObjectPropertyAcces
|
|
|
918770
918909
|
}
|
|
918771
918910
|
} });
|
|
918772
918911
|
|
|
918773
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918912
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/PrimitiveTypeV1.mjs
|
|
918774
918913
|
var PrimitiveTypeV1Values23 = {
|
|
918775
918914
|
Integer: "INTEGER",
|
|
918776
918915
|
/**
|
|
@@ -918824,7 +918963,7 @@ var PrimitiveTypeV144 = Object.assign(Object.assign({}, PrimitiveTypeV1Values23)
|
|
|
918824
918963
|
}
|
|
918825
918964
|
} });
|
|
918826
918965
|
|
|
918827
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
918966
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/PrimitiveTypeV2.mjs
|
|
918828
918967
|
var PrimitiveTypeV229 = {
|
|
918829
918968
|
integer: (value2) => {
|
|
918830
918969
|
return Object.assign(Object.assign({}, value2), { type: "integer", _visit: function(visitor) {
|
|
@@ -918932,7 +919071,7 @@ var PrimitiveTypeV229 = {
|
|
|
918932
919071
|
}
|
|
918933
919072
|
};
|
|
918934
919073
|
|
|
918935
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919074
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/ResolvedTypeReference.mjs
|
|
918936
919075
|
var ResolvedTypeReference29 = {
|
|
918937
919076
|
container: (value2) => {
|
|
918938
919077
|
return {
|
|
@@ -918981,7 +919120,7 @@ var ResolvedTypeReference29 = {
|
|
|
918981
919120
|
}
|
|
918982
919121
|
};
|
|
918983
919122
|
|
|
918984
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919123
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/ShapeType.mjs
|
|
918985
919124
|
var ShapeTypeValues15 = {
|
|
918986
919125
|
Enum: "ENUM",
|
|
918987
919126
|
Object: "OBJECT",
|
|
@@ -919003,7 +919142,7 @@ var ShapeType29 = Object.assign(Object.assign({}, ShapeTypeValues15), { _visit:
|
|
|
919003
919142
|
}
|
|
919004
919143
|
} });
|
|
919005
919144
|
|
|
919006
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919145
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/SingleUnionTypeProperties.mjs
|
|
919007
919146
|
var SingleUnionTypeProperties29 = {
|
|
919008
919147
|
samePropertiesAsObject: (value2) => {
|
|
919009
919148
|
return Object.assign(Object.assign({}, value2), { propertiesType: "samePropertiesAsObject", _visit: function(visitor) {
|
|
@@ -919037,7 +919176,7 @@ var SingleUnionTypeProperties29 = {
|
|
|
919037
919176
|
}
|
|
919038
919177
|
};
|
|
919039
919178
|
|
|
919040
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919179
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/Source.mjs
|
|
919041
919180
|
var Source33 = {
|
|
919042
919181
|
proto: (value2) => {
|
|
919043
919182
|
return {
|
|
@@ -919058,7 +919197,7 @@ var Source33 = {
|
|
|
919058
919197
|
}
|
|
919059
919198
|
};
|
|
919060
919199
|
|
|
919061
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919200
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/Type.mjs
|
|
919062
919201
|
var Type30 = {
|
|
919063
919202
|
alias: (value2) => {
|
|
919064
919203
|
return Object.assign(Object.assign({}, value2), { type: "alias", _visit: function(visitor) {
|
|
@@ -919103,7 +919242,7 @@ var Type30 = {
|
|
|
919103
919242
|
}
|
|
919104
919243
|
};
|
|
919105
919244
|
|
|
919106
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919245
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/TypeReference.mjs
|
|
919107
919246
|
var TypeReference58 = {
|
|
919108
919247
|
container: (value2) => {
|
|
919109
919248
|
return {
|
|
@@ -919152,7 +919291,7 @@ var TypeReference58 = {
|
|
|
919152
919291
|
}
|
|
919153
919292
|
};
|
|
919154
919293
|
|
|
919155
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919294
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/types/types/UnionDiscriminatorContext.mjs
|
|
919156
919295
|
var UnionDiscriminatorContextValues4 = {
|
|
919157
919296
|
/**
|
|
919158
919297
|
* Discriminator is within the union data itself (e.g., data.type field) */
|
|
@@ -919172,10 +919311,10 @@ var UnionDiscriminatorContext9 = Object.assign(Object.assign({}, UnionDiscrimina
|
|
|
919172
919311
|
}
|
|
919173
919312
|
} });
|
|
919174
919313
|
|
|
919175
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919314
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/variables/index.mjs
|
|
919176
919315
|
var variables_exports46 = {};
|
|
919177
919316
|
|
|
919178
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919317
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/index.mjs
|
|
919179
919318
|
var webhooks_exports31 = {};
|
|
919180
919319
|
__export(webhooks_exports31, {
|
|
919181
919320
|
AsymmetricAlgorithm: () => AsymmetricAlgorithm9,
|
|
@@ -919192,7 +919331,7 @@ __export(webhooks_exports31, {
|
|
|
919192
919331
|
WebhookTimestampFormat: () => WebhookTimestampFormat9
|
|
919193
919332
|
});
|
|
919194
919333
|
|
|
919195
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919334
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/AsymmetricAlgorithm.mjs
|
|
919196
919335
|
var AsymmetricAlgorithmValues5 = {
|
|
919197
919336
|
RsaSha256: "RSA_SHA256",
|
|
919198
919337
|
RsaSha384: "RSA_SHA384",
|
|
@@ -919223,7 +919362,7 @@ var AsymmetricAlgorithm9 = Object.assign(Object.assign({}, AsymmetricAlgorithmVa
|
|
|
919223
919362
|
}
|
|
919224
919363
|
} });
|
|
919225
919364
|
|
|
919226
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919365
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/AsymmetricKeySource.mjs
|
|
919227
919366
|
var AsymmetricKeySource7 = {
|
|
919228
919367
|
jwks: (value2) => {
|
|
919229
919368
|
return Object.assign(Object.assign({}, value2), { type: "jwks", _visit: function(visitor) {
|
|
@@ -919247,7 +919386,7 @@ var AsymmetricKeySource7 = {
|
|
|
919247
919386
|
}
|
|
919248
919387
|
};
|
|
919249
919388
|
|
|
919250
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919389
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/HmacAlgorithm.mjs
|
|
919251
919390
|
var HmacAlgorithmValues4 = {
|
|
919252
919391
|
Sha256: "SHA256",
|
|
919253
919392
|
Sha1: "SHA1",
|
|
@@ -919269,7 +919408,7 @@ var HmacAlgorithm7 = Object.assign(Object.assign({}, HmacAlgorithmValues4), { _v
|
|
|
919269
919408
|
}
|
|
919270
919409
|
} });
|
|
919271
919410
|
|
|
919272
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919411
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/WebhookBodyHashAlgorithm.mjs
|
|
919273
919412
|
var WebhookBodyHashAlgorithmValues3 = {
|
|
919274
919413
|
Sha256: "SHA256",
|
|
919275
919414
|
Sha1: "SHA1",
|
|
@@ -919291,7 +919430,7 @@ var WebhookBodyHashAlgorithm5 = Object.assign(Object.assign({}, WebhookBodyHashA
|
|
|
919291
919430
|
}
|
|
919292
919431
|
} });
|
|
919293
919432
|
|
|
919294
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919433
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/WebhookBodyHashLocation.mjs
|
|
919295
919434
|
var WebhookBodyHashLocation5 = {
|
|
919296
919435
|
queryParameter: (value2) => {
|
|
919297
919436
|
return Object.assign(Object.assign({}, value2), { type: "queryParameter", _visit: function(visitor) {
|
|
@@ -919308,7 +919447,7 @@ var WebhookBodyHashLocation5 = {
|
|
|
919308
919447
|
}
|
|
919309
919448
|
};
|
|
919310
919449
|
|
|
919311
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919450
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/WebhookHttpMethod.mjs
|
|
919312
919451
|
var WebhookHttpMethodValues16 = {
|
|
919313
919452
|
Get: "GET",
|
|
919314
919453
|
Post: "POST"
|
|
@@ -919324,7 +919463,7 @@ var WebhookHttpMethod31 = Object.assign(Object.assign({}, WebhookHttpMethodValue
|
|
|
919324
919463
|
}
|
|
919325
919464
|
} });
|
|
919326
919465
|
|
|
919327
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919466
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/WebhookPayload.mjs
|
|
919328
919467
|
var WebhookPayload29 = {
|
|
919329
919468
|
inlinedPayload: (value2) => {
|
|
919330
919469
|
return Object.assign(Object.assign({}, value2), { type: "inlinedPayload", _visit: function(visitor) {
|
|
@@ -919348,7 +919487,7 @@ var WebhookPayload29 = {
|
|
|
919348
919487
|
}
|
|
919349
919488
|
};
|
|
919350
919489
|
|
|
919351
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919490
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/WebhookPayloadBodySort.mjs
|
|
919352
919491
|
var WebhookPayloadBodySortValues5 = {
|
|
919353
919492
|
Alphabetical: "ALPHABETICAL"
|
|
919354
919493
|
};
|
|
@@ -919361,7 +919500,7 @@ var WebhookPayloadBodySort9 = Object.assign(Object.assign({}, WebhookPayloadBody
|
|
|
919361
919500
|
}
|
|
919362
919501
|
} });
|
|
919363
919502
|
|
|
919364
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919503
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/WebhookPayloadComponent.mjs
|
|
919365
919504
|
var WebhookPayloadComponentValues5 = {
|
|
919366
919505
|
/**
|
|
919367
919506
|
* The raw request body. */
|
|
@@ -919391,7 +919530,7 @@ var WebhookPayloadComponent9 = Object.assign(Object.assign({}, WebhookPayloadCom
|
|
|
919391
919530
|
}
|
|
919392
919531
|
} });
|
|
919393
919532
|
|
|
919394
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919533
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/WebhookSignatureEncoding.mjs
|
|
919395
919534
|
var WebhookSignatureEncodingValues5 = {
|
|
919396
919535
|
Base64: "BASE64",
|
|
919397
919536
|
Hex: "HEX"
|
|
@@ -919407,7 +919546,7 @@ var WebhookSignatureEncoding9 = Object.assign(Object.assign({}, WebhookSignature
|
|
|
919407
919546
|
}
|
|
919408
919547
|
} });
|
|
919409
919548
|
|
|
919410
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919549
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/WebhookSignatureVerification.mjs
|
|
919411
919550
|
var WebhookSignatureVerification9 = {
|
|
919412
919551
|
hmac: (value2) => {
|
|
919413
919552
|
return Object.assign(Object.assign({}, value2), { type: "hmac", _visit: function(visitor) {
|
|
@@ -919431,7 +919570,7 @@ var WebhookSignatureVerification9 = {
|
|
|
919431
919570
|
}
|
|
919432
919571
|
};
|
|
919433
919572
|
|
|
919434
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919573
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/webhooks/types/WebhookTimestampFormat.mjs
|
|
919435
919574
|
var WebhookTimestampFormatValues5 = {
|
|
919436
919575
|
UnixSeconds: "UNIX_SECONDS",
|
|
919437
919576
|
UnixMillis: "UNIX_MILLIS",
|
|
@@ -919450,7 +919589,7 @@ var WebhookTimestampFormat9 = Object.assign(Object.assign({}, WebhookTimestampFo
|
|
|
919450
919589
|
}
|
|
919451
919590
|
} });
|
|
919452
919591
|
|
|
919453
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919592
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/websocket/index.mjs
|
|
919454
919593
|
var websocket_exports33 = {};
|
|
919455
919594
|
__export(websocket_exports33, {
|
|
919456
919595
|
ExampleWebSocketMessageBody: () => ExampleWebSocketMessageBody29,
|
|
@@ -919458,7 +919597,7 @@ __export(websocket_exports33, {
|
|
|
919458
919597
|
WebSocketMessageOrigin: () => WebSocketMessageOrigin30
|
|
919459
919598
|
});
|
|
919460
919599
|
|
|
919461
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919600
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/websocket/types/ExampleWebSocketMessageBody.mjs
|
|
919462
919601
|
var ExampleWebSocketMessageBody29 = {
|
|
919463
919602
|
inlinedBody: (value2) => {
|
|
919464
919603
|
return Object.assign(Object.assign({}, value2), { type: "inlinedBody", _visit: function(visitor) {
|
|
@@ -919482,7 +919621,7 @@ var ExampleWebSocketMessageBody29 = {
|
|
|
919482
919621
|
}
|
|
919483
919622
|
};
|
|
919484
919623
|
|
|
919485
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919624
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/websocket/types/WebSocketMessageBody.mjs
|
|
919486
919625
|
var WebSocketMessageBody29 = {
|
|
919487
919626
|
inlinedBody: (value2) => {
|
|
919488
919627
|
return Object.assign(Object.assign({}, value2), { type: "inlinedBody", _visit: function(visitor) {
|
|
@@ -919506,7 +919645,7 @@ var WebSocketMessageBody29 = {
|
|
|
919506
919645
|
}
|
|
919507
919646
|
};
|
|
919508
919647
|
|
|
919509
|
-
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.
|
|
919648
|
+
// ../../../node_modules/.pnpm/@fern-fern+ir-sdk@67.21.0/node_modules/@fern-fern/ir-sdk/dist/esm/api/resources/websocket/types/WebSocketMessageOrigin.mjs
|
|
919510
919649
|
var WebSocketMessageOriginValues15 = {
|
|
919511
919650
|
Client: "client",
|
|
919512
919651
|
Server: "server"
|
|
@@ -929215,6 +929354,8 @@ var Generation = class {
|
|
|
929215
929354
|
enableExplicitNullableOptional: () => this.customConfig["experimental-explicit-nullable-optional"] ?? false,
|
|
929216
929355
|
/** When true, generates Defaults nested class and WithDefaults() method for request records with default values. Default: false. */
|
|
929217
929356
|
useDefaultRequestParameterValues: () => this.customConfig["use-default-request-parameter-values"] ?? false,
|
|
929357
|
+
/** When true, an endpoint whose request body the API does not require takes that body as `Body? request = null`, and sends no body when the caller leaves it out. Default: false. */
|
|
929358
|
+
respectOptionalRequestBody: () => this.customConfig["respect-optional-request-body"] ?? false,
|
|
929218
929359
|
/** When true, redacts the response body in deserialization error exceptions and adds a custom ToString override to the base API exception. Default: false. */
|
|
929219
929360
|
redactResponseBodyOnError: () => this.customConfig["redact-response-body-on-error"] ?? false,
|
|
929220
929361
|
/** When true, generates inline types as nested classes inside a static Types class on the parent type, instead of as separate top-level files. Default: false. */
|
|
@@ -931901,7 +932042,7 @@ var EndpointSnippetGenerator = class extends WithGeneration {
|
|
|
931901
932042
|
const pathParameterArgs = this.getPathParameterArguments({ namedParameters: pathParameters, snippet });
|
|
931902
932043
|
this.context.errors.unscope();
|
|
931903
932044
|
this.context.errors.scope(Scope4.RequestBody);
|
|
931904
|
-
const bodyArg = request7.body != null ? this.getBodyRequestArg({ body: request7.body, value: snippet.requestBody }) : void 0;
|
|
932045
|
+
const bodyArg = request7.body != null && !this.callOmitsRequestBody({ request: request7, snippet }) ? this.getBodyRequestArg({ body: request7.body, value: snippet.requestBody }) : void 0;
|
|
931905
932046
|
this.context.errors.unscope();
|
|
931906
932047
|
if (pathParameterArgs.length > 0 && bodyArg != null) {
|
|
931907
932048
|
return [
|
|
@@ -931915,6 +932056,20 @@ var EndpointSnippetGenerator = class extends WithGeneration {
|
|
|
931915
932056
|
}
|
|
931916
932057
|
return args;
|
|
931917
932058
|
}
|
|
932059
|
+
/**
|
|
932060
|
+
* Whether the call leaves the body out entirely, which the parameter's null default allows.
|
|
932061
|
+
* Applies only to a body the caller may omit, and only once the generator opts in to that.
|
|
932062
|
+
*/
|
|
932063
|
+
callOmitsRequestBody({ request: request7, snippet }) {
|
|
932064
|
+
if (!this.settings.respectOptionalRequestBody) {
|
|
932065
|
+
return false;
|
|
932066
|
+
}
|
|
932067
|
+
if (request7.bodyRequired !== false) {
|
|
932068
|
+
return false;
|
|
932069
|
+
}
|
|
932070
|
+
const value2 = snippet.requestBody;
|
|
932071
|
+
return value2 == null || typeof value2 === "object" && !Array.isArray(value2) && Object.keys(value2).length === 0;
|
|
932072
|
+
}
|
|
931918
932073
|
getPathParameterArguments({ namedParameters, snippet }) {
|
|
931919
932074
|
const pathParameters = this.context.associateByWireValueOrDefault({
|
|
931920
932075
|
parameters: namedParameters,
|
|
@@ -933550,6 +933705,10 @@ var Type31 = class _Type extends AstNode2 {
|
|
|
933550
933705
|
isOptional() {
|
|
933551
933706
|
return this.internalType.type === "optional";
|
|
933552
933707
|
}
|
|
933708
|
+
/** Whether a value of this type can be compared to nil, and so can express its own absence. */
|
|
933709
|
+
isNilable() {
|
|
933710
|
+
return this.internalType.type === "optional" || NILABLE_TYPES.has(this.internalType.type);
|
|
933711
|
+
}
|
|
933553
933712
|
isIterable() {
|
|
933554
933713
|
return this.internalType.type === "slice" || this.internalType.type === "variadic";
|
|
933555
933714
|
}
|
|
@@ -933668,7 +933827,7 @@ var Type31 = class _Type extends AstNode2 {
|
|
|
933668
933827
|
});
|
|
933669
933828
|
}
|
|
933670
933829
|
static isAlreadyOptional(value2) {
|
|
933671
|
-
return value2.
|
|
933830
|
+
return value2.isNilable();
|
|
933672
933831
|
}
|
|
933673
933832
|
static isAlreadyVariadic(value2) {
|
|
933674
933833
|
return value2.internalType.type === "variadic";
|
|
@@ -935527,7 +935686,10 @@ var EndpointSnippetGenerator2 = class {
|
|
|
935527
935686
|
}
|
|
935528
935687
|
this.context.errors.unscope();
|
|
935529
935688
|
this.context.errors.scope(Scope4.RequestBody);
|
|
935530
|
-
const requestArg = request7.body != null ? this.
|
|
935689
|
+
const requestArg = request7.body != null ? this.callOmitsRequestBody({ request: request7, snippet }) ? (
|
|
935690
|
+
// Go has no optional parameters, so a call that leaves the body out passes nil.
|
|
935691
|
+
go_exports.TypeInstantiation.nop()
|
|
935692
|
+
) : this.getBodyRequestArg({ body: request7.body, value: snippet.requestBody }) : void 0;
|
|
935531
935693
|
this.context.errors.unscope();
|
|
935532
935694
|
return { otherArgs, requestArg };
|
|
935533
935695
|
}
|
|
@@ -935660,6 +935822,40 @@ var EndpointSnippetGenerator2 = class {
|
|
|
935660
935822
|
assertNever(body);
|
|
935661
935823
|
}
|
|
935662
935824
|
}
|
|
935825
|
+
/**
|
|
935826
|
+
* Whether the call leaves the body out entirely, which a nil argument expresses. Applies only to
|
|
935827
|
+
* a body the caller may omit, and only once the generator opts in to that. An example that
|
|
935828
|
+
* supplies nothing for the body reaches the snippet generator as an absent or empty value, since
|
|
935829
|
+
* that is how the importer spells it.
|
|
935830
|
+
*/
|
|
935831
|
+
callOmitsRequestBody({ request: request7, snippet }) {
|
|
935832
|
+
if (this.context.customConfig?.respectOptionalRequestBody !== true) {
|
|
935833
|
+
return false;
|
|
935834
|
+
}
|
|
935835
|
+
if (request7.bodyRequired !== false || request7.body == null) {
|
|
935836
|
+
return false;
|
|
935837
|
+
}
|
|
935838
|
+
if (!this.bodyParameterIsNilable({ body: request7.body })) {
|
|
935839
|
+
return false;
|
|
935840
|
+
}
|
|
935841
|
+
const value2 = snippet.requestBody;
|
|
935842
|
+
return value2 == null || typeof value2 === "object" && !Array.isArray(value2) && Object.keys(value2).length === 0;
|
|
935843
|
+
}
|
|
935844
|
+
/**
|
|
935845
|
+
* Whether the generated body parameter accepts nil, which mirrors the condition the SDK
|
|
935846
|
+
* generator applies before it lets a caller leave the body out. A value type keeps taking a
|
|
935847
|
+
* value, so an example for it must keep supplying one.
|
|
935848
|
+
*/
|
|
935849
|
+
bodyParameterIsNilable({ body }) {
|
|
935850
|
+
switch (body.type) {
|
|
935851
|
+
case "bytes":
|
|
935852
|
+
return true;
|
|
935853
|
+
case "typeReference":
|
|
935854
|
+
return this.context.dynamicTypeMapper.convert({ typeReference: body.value }).isNilable();
|
|
935855
|
+
default:
|
|
935856
|
+
assertNever(body);
|
|
935857
|
+
}
|
|
935858
|
+
}
|
|
935663
935859
|
getFileUploadRequestBodyStructFields({ filePropertyInfo }) {
|
|
935664
935860
|
const inlineFileProperties = this.context.customConfig?.inlineFileProperties ?? true;
|
|
935665
935861
|
if (inlineFileProperties) {
|
|
@@ -936055,6 +936251,7 @@ var BaseJavaCustomConfigSchema = external_exports2.object({
|
|
|
936055
936251
|
"inline-path-parameters": external_exports2.boolean().optional(),
|
|
936056
936252
|
"package-layout": external_exports2.enum(["flat", "nested"]).optional(),
|
|
936057
936253
|
"package-prefix": external_exports2.string().optional(),
|
|
936254
|
+
"respect-optional-request-body": external_exports2.boolean().optional(),
|
|
936058
936255
|
"use-local-date-for-dates": external_exports2.boolean().optional(),
|
|
936059
936256
|
// General options.
|
|
936060
936257
|
"custom-dependencies": external_exports2.array(external_exports2.string()).optional(),
|
|
@@ -939464,7 +939661,7 @@ var EndpointSnippetGenerator3 = class {
|
|
|
939464
939661
|
}
|
|
939465
939662
|
this.context.errors.unscope();
|
|
939466
939663
|
this.context.errors.scope(Scope4.RequestBody);
|
|
939467
|
-
if (request7.body != null) {
|
|
939664
|
+
if (request7.body != null && !this.callOmitsRequestBody({ request: request7, snippet })) {
|
|
939468
939665
|
args.push(this.getBodyRequestArg({ body: request7.body, value: snippet.requestBody }));
|
|
939469
939666
|
}
|
|
939470
939667
|
this.context.errors.unscope();
|
|
@@ -939474,6 +939671,20 @@ var EndpointSnippetGenerator3 = class {
|
|
|
939474
939671
|
}
|
|
939475
939672
|
return args;
|
|
939476
939673
|
}
|
|
939674
|
+
/**
|
|
939675
|
+
* Whether the call leaves the body out entirely, which the shorter overload accepts. Applies
|
|
939676
|
+
* only to a body the caller may omit, and only once the generator opts in to that.
|
|
939677
|
+
*/
|
|
939678
|
+
callOmitsRequestBody({ request: request7, snippet }) {
|
|
939679
|
+
if (this.context.customConfig?.["respect-optional-request-body"] !== true) {
|
|
939680
|
+
return false;
|
|
939681
|
+
}
|
|
939682
|
+
if (request7.bodyRequired !== false) {
|
|
939683
|
+
return false;
|
|
939684
|
+
}
|
|
939685
|
+
const value2 = snippet.requestBody;
|
|
939686
|
+
return value2 == null || typeof value2 === "object" && !Array.isArray(value2) && Object.keys(value2).length === 0;
|
|
939687
|
+
}
|
|
939477
939688
|
usesOptionalNullable() {
|
|
939478
939689
|
return this.context.customConfig?.["collapse-optional-nullable"] === true;
|
|
939479
939690
|
}
|
|
@@ -939712,7 +939923,13 @@ var EndpointSnippetGenerator3 = class {
|
|
|
939712
939923
|
getReferencedRequestBodyPropertyBuilderParameter({ body, value: value2 }) {
|
|
939713
939924
|
return {
|
|
939714
939925
|
name: this.context.getMethodName(body.bodyKey),
|
|
939715
|
-
|
|
939926
|
+
// The wrapped request requires the body, so an example that sends none still has to
|
|
939927
|
+
// build one. An empty record renders the body type's own empty builder, while the
|
|
939928
|
+
// other body types already render an empty value of their own from an absent one.
|
|
939929
|
+
value: this.getReferencedRequestBodyPropertyTypeLiteral({
|
|
939930
|
+
body: body.bodyType,
|
|
939931
|
+
value: body.bodyType.type === "typeReference" ? value2 ?? {} : value2
|
|
939932
|
+
})
|
|
939716
939933
|
};
|
|
939717
939934
|
}
|
|
939718
939935
|
getReferencedRequestBodyPropertyTypeLiteral({ body, value: value2 }) {
|
|
@@ -943179,7 +943396,8 @@ var EndpointSnippetGenerator4 = class {
|
|
|
943179
943396
|
}
|
|
943180
943397
|
this.context.errors.unscope();
|
|
943181
943398
|
this.context.errors.scope(Scope4.RequestBody);
|
|
943182
|
-
|
|
943399
|
+
const omitBody = optionalIrPathParameters.length === 0 && this.callOmitsRequestBody({ request: request7, snippet });
|
|
943400
|
+
if (request7.body != null && !omitBody) {
|
|
943183
943401
|
const bodyArg = this.getBodyRequestArg({ body: request7.body, value: snippet.requestBody });
|
|
943184
943402
|
if (!php_exports.TypeLiteral.isNop(bodyArg)) {
|
|
943185
943403
|
args.push(bodyArg);
|
|
@@ -943193,6 +943411,21 @@ var EndpointSnippetGenerator4 = class {
|
|
|
943193
943411
|
this.context.errors.unscope();
|
|
943194
943412
|
return args;
|
|
943195
943413
|
}
|
|
943414
|
+
/**
|
|
943415
|
+
* Whether the snippet's call leaves the request body out. `bodyRequired` absent means required,
|
|
943416
|
+
* so a snippet only drops the argument when the API says the body is optional, the generator is
|
|
943417
|
+
* configured to respect that, and the snippet supplies no body of its own.
|
|
943418
|
+
*/
|
|
943419
|
+
callOmitsRequestBody({ request: request7, snippet }) {
|
|
943420
|
+
if (this.context.customConfig?.respectOptionalRequestBody !== true) {
|
|
943421
|
+
return false;
|
|
943422
|
+
}
|
|
943423
|
+
if (request7.bodyRequired !== false) {
|
|
943424
|
+
return false;
|
|
943425
|
+
}
|
|
943426
|
+
const value2 = snippet.requestBody;
|
|
943427
|
+
return value2 == null || typeof value2 === "object" && !Array.isArray(value2) && Object.keys(value2).length === 0;
|
|
943428
|
+
}
|
|
943196
943429
|
getBodyRequestArg({ body, value: value2 }) {
|
|
943197
943430
|
switch (body.type) {
|
|
943198
943431
|
case "bytes": {
|
|
@@ -943322,7 +943555,12 @@ var EndpointSnippetGenerator4 = class {
|
|
|
943322
943555
|
getReferencedRequestBodyPropertyConstructorField({ body, value: value2 }) {
|
|
943323
943556
|
return {
|
|
943324
943557
|
name: this.context.getPropertyName(body.bodyKey),
|
|
943325
|
-
value: this.getReferencedRequestBodyPropertyTypeLiteral({
|
|
943558
|
+
value: this.getReferencedRequestBodyPropertyTypeLiteral({
|
|
943559
|
+
body: body.bodyType,
|
|
943560
|
+
// The generated wrapper requires the body, so an example that omits it still has to
|
|
943561
|
+
// construct one. Only an object body has an empty form to fall back on.
|
|
943562
|
+
value: body.bodyType.type === "typeReference" ? value2 ?? {} : value2
|
|
943563
|
+
})
|
|
943326
943564
|
};
|
|
943327
943565
|
}
|
|
943328
943566
|
getReferencedRequestBodyPropertyTypeLiteral({ body, value: value2 }) {
|
|
@@ -946134,8 +946372,8 @@ var EndpointSnippetGenerator5 = class {
|
|
|
946134
946372
|
this.context.errors.add({ severity: Severity.Warning, message });
|
|
946135
946373
|
}
|
|
946136
946374
|
getConstructorBasicAuthArg({ auth: auth8, values: values2 }) {
|
|
946137
|
-
const usernameOmitted =
|
|
946138
|
-
const passwordOmitted =
|
|
946375
|
+
const usernameOmitted = auth8.usernameOmit === true;
|
|
946376
|
+
const passwordOmitted = auth8.passwordOmit === true;
|
|
946139
946377
|
const args = [];
|
|
946140
946378
|
if (!usernameOmitted) {
|
|
946141
946379
|
args.push({
|
|
@@ -946264,8 +946502,9 @@ var EndpointSnippetGenerator5 = class {
|
|
|
946264
946502
|
const args = [];
|
|
946265
946503
|
this.context.errors.scope(Scope4.PathParameters);
|
|
946266
946504
|
const pathParameters = [...this.context.ir.pathParameters ?? [], ...request7.pathParameters ?? []];
|
|
946505
|
+
const omitsRequestBody = this.callOmitsRequestBody({ request: request7, snippet });
|
|
946267
946506
|
let bodyPropertyNames = /* @__PURE__ */ new Set();
|
|
946268
|
-
if (request7.body != null) {
|
|
946507
|
+
if (request7.body != null && !omitsRequestBody) {
|
|
946269
946508
|
const bodyArgs = this.getBodyRequestArgs({ body: request7.body, value: snippet.requestBody });
|
|
946270
946509
|
bodyPropertyNames = new Set(bodyArgs.map((arg) => arg.name));
|
|
946271
946510
|
if (request7.body.type === "typeReference") {
|
|
@@ -946295,12 +946534,26 @@ var EndpointSnippetGenerator5 = class {
|
|
|
946295
946534
|
}
|
|
946296
946535
|
this.context.errors.unscope();
|
|
946297
946536
|
this.context.errors.scope(Scope4.RequestBody);
|
|
946298
|
-
if (request7.body != null) {
|
|
946537
|
+
if (request7.body != null && !omitsRequestBody) {
|
|
946299
946538
|
args.push(...this.getBodyRequestArgs({ body: request7.body, value: snippet.requestBody }));
|
|
946300
946539
|
}
|
|
946301
946540
|
this.context.errors.unscope();
|
|
946302
946541
|
return args;
|
|
946303
946542
|
}
|
|
946543
|
+
/**
|
|
946544
|
+
* Whether the call leaves the body out entirely, which the sentinel default allows. Applies
|
|
946545
|
+
* only to a body the caller may omit, and only once the generator opts in to that.
|
|
946546
|
+
*/
|
|
946547
|
+
callOmitsRequestBody({ request: request7, snippet }) {
|
|
946548
|
+
if (this.context.customConfig.respect_optional_request_body !== true) {
|
|
946549
|
+
return false;
|
|
946550
|
+
}
|
|
946551
|
+
if (request7.bodyRequired !== false) {
|
|
946552
|
+
return false;
|
|
946553
|
+
}
|
|
946554
|
+
const value2 = snippet.requestBody;
|
|
946555
|
+
return value2 == null || typeof value2 === "object" && !Array.isArray(value2) && Object.keys(value2).length === 0;
|
|
946556
|
+
}
|
|
946304
946557
|
getBodyRequestArgs({ body, value: value2 }) {
|
|
946305
946558
|
switch (body.type) {
|
|
946306
946559
|
case "bytes":
|
|
@@ -949529,7 +949782,7 @@ var EndpointSnippetGenerator6 = class {
|
|
|
949529
949782
|
namedParameters: pathParameters,
|
|
949530
949783
|
values: snippet.pathParameters
|
|
949531
949784
|
}));
|
|
949532
|
-
if (request7.body != null && snippet.requestBody != null) {
|
|
949785
|
+
if (request7.body != null && snippet.requestBody != null && !this.callOmitsRequestBody({ request: request7, snippet })) {
|
|
949533
949786
|
switch (request7.body.type) {
|
|
949534
949787
|
case "bytes":
|
|
949535
949788
|
this.context.errors.add({
|
|
@@ -949578,6 +949831,21 @@ var EndpointSnippetGenerator6 = class {
|
|
|
949578
949831
|
}
|
|
949579
949832
|
return args;
|
|
949580
949833
|
}
|
|
949834
|
+
/**
|
|
949835
|
+
* When the generator is configured to respect optional request bodies and the IR marks
|
|
949836
|
+
* the body as optional, a snippet whose example has no body omits the body arguments
|
|
949837
|
+
* entirely rather than passing an empty object.
|
|
949838
|
+
*/
|
|
949839
|
+
callOmitsRequestBody({ request: request7, snippet }) {
|
|
949840
|
+
if (this.context.customConfig?.respectOptionalRequestBody !== true) {
|
|
949841
|
+
return false;
|
|
949842
|
+
}
|
|
949843
|
+
if (request7.bodyRequired !== false) {
|
|
949844
|
+
return false;
|
|
949845
|
+
}
|
|
949846
|
+
const value2 = snippet.requestBody;
|
|
949847
|
+
return value2 == null || typeof value2 === "object" && !Array.isArray(value2) && Object.keys(value2).length === 0;
|
|
949848
|
+
}
|
|
949581
949849
|
getBodyArgsForNonObjectType({ namedType, typeRef, bodyValue }) {
|
|
949582
949850
|
const args = [];
|
|
949583
949851
|
switch (namedType.type) {
|
|
@@ -960055,6 +960323,7 @@ var TypescriptCustomConfigSchema = external_exports2.strictObject({
|
|
|
960055
960323
|
useDefaultRequestParameterValues: external_exports2.optional(external_exports2.boolean()),
|
|
960056
960324
|
packageManager: external_exports2.optional(external_exports2.enum(["pnpm", "yarn"])),
|
|
960057
960325
|
flattenRequestParameters: external_exports2.optional(external_exports2.boolean()),
|
|
960326
|
+
respectOptionalRequestBody: external_exports2.optional(external_exports2.boolean()),
|
|
960058
960327
|
exportAllRequestsAtRoot: external_exports2.optional(external_exports2.boolean()),
|
|
960059
960328
|
customReadmeSections: external_exports2.optional(external_exports2.array(CustomReadmeSectionSchema2)),
|
|
960060
960329
|
testFramework: external_exports2.optional(external_exports2.enum(["jest", "vitest"])),
|
|
@@ -960993,18 +961262,39 @@ function resolveNaming({ namespaceExport, naming }) {
|
|
|
960993
961262
|
// ../../../generators/typescript-v2/dynamic-snippets/lib/context/DynamicTypeLiteralMapper.js
|
|
960994
961263
|
init_lib4();
|
|
960995
961264
|
|
|
960996
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961265
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/index.mjs
|
|
960997
961266
|
var api_exports23 = {};
|
|
960998
961267
|
__export(api_exports23, {
|
|
961268
|
+
AvailabilityStatus: () => AvailabilityStatus30,
|
|
961269
|
+
GlobalParameterApplyMode: () => GlobalParameterApplyMode4,
|
|
961270
|
+
GlobalParameterLocation: () => GlobalParameterLocation4,
|
|
961271
|
+
PrimitiveTypeV1: () => PrimitiveTypeV146,
|
|
960999
961272
|
commons: () => commons_exports60,
|
|
961000
961273
|
dynamic: () => dynamic_exports30,
|
|
961001
|
-
generatorExec: () => generatorExec_exports30
|
|
961274
|
+
generatorExec: () => generatorExec_exports30,
|
|
961275
|
+
globalParameters: () => globalParameters_exports6,
|
|
961276
|
+
types: () => types_exports69
|
|
961002
961277
|
});
|
|
961003
961278
|
|
|
961004
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961279
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/commons/index.mjs
|
|
961005
961280
|
var commons_exports60 = {};
|
|
961281
|
+
__export(commons_exports60, {
|
|
961282
|
+
AvailabilityStatus: () => AvailabilityStatus30
|
|
961283
|
+
});
|
|
961284
|
+
|
|
961285
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/commons/types/AvailabilityStatus.mjs
|
|
961286
|
+
var AvailabilityStatus30 = {
|
|
961287
|
+
InDevelopment: "IN_DEVELOPMENT",
|
|
961288
|
+
PreRelease: "PRE_RELEASE",
|
|
961289
|
+
GeneralAvailability: "GENERAL_AVAILABILITY",
|
|
961290
|
+
Deprecated: "DEPRECATED",
|
|
961291
|
+
Alpha: "ALPHA",
|
|
961292
|
+
Beta: "BETA",
|
|
961293
|
+
Preview: "PREVIEW",
|
|
961294
|
+
Legacy: "LEGACY"
|
|
961295
|
+
};
|
|
961006
961296
|
|
|
961007
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961297
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/index.mjs
|
|
961008
961298
|
var dynamic_exports30 = {};
|
|
961009
961299
|
__export(dynamic_exports30, {
|
|
961010
961300
|
ErrorSeverity: () => ErrorSeverity30,
|
|
@@ -961023,28 +961313,28 @@ __export(dynamic_exports30, {
|
|
|
961023
961313
|
variables: () => variables_exports47
|
|
961024
961314
|
});
|
|
961025
961315
|
|
|
961026
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961316
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/auth/index.mjs
|
|
961027
961317
|
var auth_exports65 = {};
|
|
961028
961318
|
|
|
961029
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961319
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/commons/index.mjs
|
|
961030
961320
|
var commons_exports61 = {};
|
|
961031
961321
|
|
|
961032
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961322
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/declaration/index.mjs
|
|
961033
961323
|
var declaration_exports30 = {};
|
|
961034
961324
|
|
|
961035
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961325
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/endpoints/index.mjs
|
|
961036
961326
|
var endpoints_exports30 = {};
|
|
961037
961327
|
|
|
961038
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961328
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/environment/index.mjs
|
|
961039
961329
|
var environment_exports57 = {};
|
|
961040
961330
|
|
|
961041
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961331
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/http/index.mjs
|
|
961042
961332
|
var http_exports45 = {};
|
|
961043
961333
|
__export(http_exports45, {
|
|
961044
961334
|
HttpMethod: () => HttpMethod49
|
|
961045
961335
|
});
|
|
961046
961336
|
|
|
961047
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961337
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/http/types/HttpMethod.mjs
|
|
961048
961338
|
var HttpMethod49 = {
|
|
961049
961339
|
Get: "GET",
|
|
961050
961340
|
Post: "POST",
|
|
@@ -961054,35 +961344,35 @@ var HttpMethod49 = {
|
|
|
961054
961344
|
Head: "HEAD"
|
|
961055
961345
|
};
|
|
961056
961346
|
|
|
961057
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961347
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/ir/index.mjs
|
|
961058
961348
|
var ir_exports59 = {};
|
|
961059
961349
|
|
|
961060
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961350
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/snippets/index.mjs
|
|
961061
961351
|
var snippets_exports30 = {};
|
|
961062
961352
|
__export(snippets_exports30, {
|
|
961063
961353
|
ErrorSeverity: () => ErrorSeverity30
|
|
961064
961354
|
});
|
|
961065
961355
|
|
|
961066
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961356
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/snippets/types/ErrorSeverity.mjs
|
|
961067
961357
|
var ErrorSeverity30 = {
|
|
961068
961358
|
Critical: "CRITICAL",
|
|
961069
961359
|
Warning: "WARNING"
|
|
961070
961360
|
};
|
|
961071
961361
|
|
|
961072
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961362
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/types/index.mjs
|
|
961073
961363
|
var types_exports68 = {};
|
|
961074
961364
|
__export(types_exports68, {
|
|
961075
961365
|
ObjectPropertyAccess: () => ObjectPropertyAccess43,
|
|
961076
961366
|
PrimitiveTypeV1: () => PrimitiveTypeV145
|
|
961077
961367
|
});
|
|
961078
961368
|
|
|
961079
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961369
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.mjs
|
|
961080
961370
|
var ObjectPropertyAccess43 = {
|
|
961081
961371
|
ReadOnly: "READ_ONLY",
|
|
961082
961372
|
WriteOnly: "WRITE_ONLY"
|
|
961083
961373
|
};
|
|
961084
961374
|
|
|
961085
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961375
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.mjs
|
|
961086
961376
|
var PrimitiveTypeV145 = {
|
|
961087
961377
|
Integer: "INTEGER",
|
|
961088
961378
|
/**
|
|
@@ -961102,28 +961392,75 @@ var PrimitiveTypeV145 = {
|
|
|
961102
961392
|
BigInteger: "BIG_INTEGER"
|
|
961103
961393
|
};
|
|
961104
961394
|
|
|
961105
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961395
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/dynamic/resources/variables/index.mjs
|
|
961106
961396
|
var variables_exports47 = {};
|
|
961107
961397
|
|
|
961108
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961398
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/generatorExec/index.mjs
|
|
961109
961399
|
var generatorExec_exports30 = {};
|
|
961110
961400
|
__export(generatorExec_exports30, {
|
|
961111
961401
|
LicenseId: () => LicenseId30,
|
|
961112
961402
|
config: () => config_exports30
|
|
961113
961403
|
});
|
|
961114
961404
|
|
|
961115
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961405
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/generatorExec/resources/config/index.mjs
|
|
961116
961406
|
var config_exports30 = {};
|
|
961117
961407
|
__export(config_exports30, {
|
|
961118
961408
|
LicenseId: () => LicenseId30
|
|
961119
961409
|
});
|
|
961120
961410
|
|
|
961121
|
-
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@
|
|
961411
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/generatorExec/resources/config/types/LicenseId.mjs
|
|
961122
961412
|
var LicenseId30 = {
|
|
961123
961413
|
Mit: "MIT",
|
|
961124
961414
|
Apache2: "Apache-2.0"
|
|
961125
961415
|
};
|
|
961126
961416
|
|
|
961417
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/globalParameters/index.mjs
|
|
961418
|
+
var globalParameters_exports6 = {};
|
|
961419
|
+
__export(globalParameters_exports6, {
|
|
961420
|
+
GlobalParameterApplyMode: () => GlobalParameterApplyMode4,
|
|
961421
|
+
GlobalParameterLocation: () => GlobalParameterLocation4
|
|
961422
|
+
});
|
|
961423
|
+
|
|
961424
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/globalParameters/types/GlobalParameterApplyMode.mjs
|
|
961425
|
+
var GlobalParameterApplyMode4 = {
|
|
961426
|
+
Explicit: "explicit",
|
|
961427
|
+
Auto: "auto"
|
|
961428
|
+
};
|
|
961429
|
+
|
|
961430
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/globalParameters/types/GlobalParameterLocation.mjs
|
|
961431
|
+
var GlobalParameterLocation4 = {
|
|
961432
|
+
Header: "header",
|
|
961433
|
+
Query: "query",
|
|
961434
|
+
Body: "body",
|
|
961435
|
+
Path: "path"
|
|
961436
|
+
};
|
|
961437
|
+
|
|
961438
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/types/index.mjs
|
|
961439
|
+
var types_exports69 = {};
|
|
961440
|
+
__export(types_exports69, {
|
|
961441
|
+
PrimitiveTypeV1: () => PrimitiveTypeV146
|
|
961442
|
+
});
|
|
961443
|
+
|
|
961444
|
+
// ../../../node_modules/.pnpm/@fern-api+dynamic-ir-sdk@67.21.0/node_modules/@fern-api/dynamic-ir-sdk/dist/esm/api/resources/types/types/PrimitiveTypeV1.mjs
|
|
961445
|
+
var PrimitiveTypeV146 = {
|
|
961446
|
+
Integer: "INTEGER",
|
|
961447
|
+
/**
|
|
961448
|
+
* Within the range -2^53 to 2^53 */
|
|
961449
|
+
Long: "LONG",
|
|
961450
|
+
Uint: "UINT",
|
|
961451
|
+
Uint64: "UINT_64",
|
|
961452
|
+
Float: "FLOAT",
|
|
961453
|
+
Double: "DOUBLE",
|
|
961454
|
+
Boolean: "BOOLEAN",
|
|
961455
|
+
String: "STRING",
|
|
961456
|
+
Date: "DATE",
|
|
961457
|
+
DateTime: "DATE_TIME",
|
|
961458
|
+
DateTimeRfc2822: "DATE_TIME_RFC_2822",
|
|
961459
|
+
Uuid: "UUID",
|
|
961460
|
+
Base64: "BASE_64",
|
|
961461
|
+
BigInteger: "BIG_INTEGER"
|
|
961462
|
+
};
|
|
961463
|
+
|
|
961127
961464
|
// ../../../generators/typescript-v2/dynamic-snippets/lib/context/DynamicTypeLiteralMapper.js
|
|
961128
961465
|
var UNION_VALUE_KEY2 = "value";
|
|
961129
961466
|
var DynamicTypeLiteralMapper7 = class {
|
|
@@ -962060,7 +962397,7 @@ var EndpointSnippetGenerator9 = class {
|
|
|
962060
962397
|
}
|
|
962061
962398
|
this.context.errors.unscope();
|
|
962062
962399
|
this.context.errors.scope(Scope4.RequestBody);
|
|
962063
|
-
if (request7.body != null) {
|
|
962400
|
+
if (request7.body != null && !this.callOmitsRequestBody({ request: request7, snippet })) {
|
|
962064
962401
|
const bodyArg = this.getBodyRequestArg({ body: request7.body, value: snippet.requestBody });
|
|
962065
962402
|
if (!typescript_exports.TypeLiteral.isNop(bodyArg)) {
|
|
962066
962403
|
args.push(bodyArg);
|
|
@@ -962069,6 +962406,20 @@ var EndpointSnippetGenerator9 = class {
|
|
|
962069
962406
|
this.context.errors.unscope();
|
|
962070
962407
|
return args;
|
|
962071
962408
|
}
|
|
962409
|
+
/**
|
|
962410
|
+
* Whether the call leaves the body out entirely, which the optional parameter allows. Applies
|
|
962411
|
+
* only to a body the caller may omit, and only once the generator opts in to that.
|
|
962412
|
+
*/
|
|
962413
|
+
callOmitsRequestBody({ request: request7, snippet }) {
|
|
962414
|
+
if (this.context.customConfig?.respectOptionalRequestBody !== true) {
|
|
962415
|
+
return false;
|
|
962416
|
+
}
|
|
962417
|
+
if (request7.bodyRequired !== false) {
|
|
962418
|
+
return false;
|
|
962419
|
+
}
|
|
962420
|
+
const value2 = snippet.requestBody;
|
|
962421
|
+
return value2 == null || typeof value2 === "object" && !Array.isArray(value2) && Object.keys(value2).length === 0;
|
|
962422
|
+
}
|
|
962072
962423
|
getBodyRequestArg({ body, value: value2 }) {
|
|
962073
962424
|
switch (body.type) {
|
|
962074
962425
|
case "bytes":
|
|
@@ -976451,7 +976802,7 @@ function getAutomationContextFromEnv() {
|
|
|
976451
976802
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
976452
976803
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
976453
976804
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
976454
|
-
cli_version: "5.
|
|
976805
|
+
cli_version: "5.96.0"
|
|
976455
976806
|
};
|
|
976456
976807
|
}
|
|
976457
976808
|
function isAutomationMode() {
|
|
@@ -977283,7 +977634,7 @@ var CliContext = class _CliContext {
|
|
|
977283
977634
|
if (false) {
|
|
977284
977635
|
this.logger.error("CLI_VERSION is not defined");
|
|
977285
977636
|
}
|
|
977286
|
-
return "5.
|
|
977637
|
+
return "5.96.0";
|
|
977287
977638
|
}
|
|
977288
977639
|
getCliName() {
|
|
977289
977640
|
if (false) {
|
|
@@ -995308,7 +995659,7 @@ function addDocsThemeCommand(cli, cliContext) {
|
|
|
995308
995659
|
function addDocsThemeDeleteCommand(cli, cliContext) {
|
|
995309
995660
|
cli.command(
|
|
995310
995661
|
"delete",
|
|
995311
|
-
|
|
995662
|
+
"Delete a theme from Fern's cloud",
|
|
995312
995663
|
(yargs) => yargs.option("name", {
|
|
995313
995664
|
alias: "n",
|
|
995314
995665
|
type: "string",
|