@qapps/aurateam-sdk 0.3.1
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.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/package.json +26 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { paths } from "./api.d.ts";
|
|
2
|
+
export type { paths };
|
|
3
|
+
export declare function createAuraTeamClient(options: {
|
|
4
|
+
baseUrl: string;
|
|
5
|
+
token?: string;
|
|
6
|
+
apiKey?: string;
|
|
7
|
+
}): import("openapi-fetch").Client<paths, `${string}/${string}`>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,YAAY,EAAE,KAAK,EAAE,CAAC;AAEtB,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,gEASA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createAuraTeamClient = createAuraTeamClient;
|
|
7
|
+
/**
|
|
8
|
+
* AuraTeam Platform SDK — auto-generated typed client.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* import { createAuraTeamClient } from "@qapps/aurateam-sdk";
|
|
12
|
+
* const client = createAuraTeamClient({ baseUrl: "http://localhost:8200" });
|
|
13
|
+
* const { data } = await client.GET("/health");
|
|
14
|
+
*/
|
|
15
|
+
const openapi_fetch_1 = __importDefault(require("openapi-fetch"));
|
|
16
|
+
function createAuraTeamClient(options) {
|
|
17
|
+
const headers = {};
|
|
18
|
+
if (options.token)
|
|
19
|
+
headers["Authorization"] = `Bearer ${options.token}`;
|
|
20
|
+
if (options.apiKey)
|
|
21
|
+
headers["X-API-Key"] = options.apiKey;
|
|
22
|
+
return (0, openapi_fetch_1.default)({
|
|
23
|
+
baseUrl: options.baseUrl,
|
|
24
|
+
headers,
|
|
25
|
+
});
|
|
26
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@qapps/aurateam-sdk",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "AuraTeam Platform TypeScript SDK — auto-generated from OpenAPI spec",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": ["dist"],
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/ExaCall-LLC/aurateam-platform.git",
|
|
18
|
+
"directory": "sdks/typescript"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"openapi-fetch": "^0.13.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"typescript": "^5.7.0"
|
|
25
|
+
}
|
|
26
|
+
}
|