@fiberai/sdk 0.0.60 → 0.0.61
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/dist/index.cjs +13 -1
- package/dist/index.js +13 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1111,8 +1111,20 @@ var createClient = (config = {}) => {
|
|
|
1111
1111
|
};
|
|
1112
1112
|
};
|
|
1113
1113
|
|
|
1114
|
+
// src/client-config.ts
|
|
1115
|
+
var clientAttributionHeaders = {
|
|
1116
|
+
"x-client-type": "SDK",
|
|
1117
|
+
"x-client-name": `fiberai-ts/${"0.0.61"}`
|
|
1118
|
+
};
|
|
1119
|
+
function createClientConfig(config) {
|
|
1120
|
+
return {
|
|
1121
|
+
...config,
|
|
1122
|
+
headers: mergeHeaders(clientAttributionHeaders, config.headers)
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1114
1126
|
// src/generated/client.gen.ts
|
|
1115
|
-
var client = createClient(createConfig({ baseUrl: "https://api.fiber.ai" }));
|
|
1127
|
+
var client = createClient(createClientConfig(createConfig({ baseUrl: "https://api.fiber.ai" })));
|
|
1116
1128
|
|
|
1117
1129
|
// src/generated/sdk.gen.ts
|
|
1118
1130
|
var getOpenApi = (options) => (options?.client ?? client).get({ url: "/openapi.json", ...options });
|
package/dist/index.js
CHANGED
|
@@ -825,8 +825,20 @@ var createClient = (config = {}) => {
|
|
|
825
825
|
};
|
|
826
826
|
};
|
|
827
827
|
|
|
828
|
+
// src/client-config.ts
|
|
829
|
+
var clientAttributionHeaders = {
|
|
830
|
+
"x-client-type": "SDK",
|
|
831
|
+
"x-client-name": `fiberai-ts/${"0.0.61"}`
|
|
832
|
+
};
|
|
833
|
+
function createClientConfig(config) {
|
|
834
|
+
return {
|
|
835
|
+
...config,
|
|
836
|
+
headers: mergeHeaders(clientAttributionHeaders, config.headers)
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
|
|
828
840
|
// src/generated/client.gen.ts
|
|
829
|
-
var client = createClient(createConfig({ baseUrl: "https://api.fiber.ai" }));
|
|
841
|
+
var client = createClient(createClientConfig(createConfig({ baseUrl: "https://api.fiber.ai" })));
|
|
830
842
|
|
|
831
843
|
// src/generated/sdk.gen.ts
|
|
832
844
|
var getOpenApi = (options) => (options?.client ?? client).get({ url: "/openapi.json", ...options });
|