@roxyapi/sdk 1.0.0 → 1.0.4
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/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/factory.cjs +4 -1
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +4 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/factory.ts +3 -2
- package/src/version.ts +1 -0
- package/dist/index.cjs +0 -1054
- package/dist/index.js +0 -1020
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 RoxyAPI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# @roxyapi/sdk
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@roxyapi/sdk)
|
|
4
|
+
[](https://roxyapi.com/docs/sdk)
|
|
5
|
+
[](https://roxyapi.com/api-reference)
|
|
6
|
+
[](https://roxyapi.com/pricing)
|
|
7
|
+
|
|
3
8
|
TypeScript SDK for [RoxyAPI](https://roxyapi.com). 8 domains, 120+ endpoints, one API key.
|
|
4
9
|
|
|
5
10
|
Build astrology apps, tarot platforms, birth chart generators, and compatibility tools without writing a single calculation.
|
package/dist/factory.cjs
CHANGED
|
@@ -2673,6 +2673,9 @@ var Roxy = class _Roxy extends HeyApiClient {
|
|
|
2673
2673
|
}
|
|
2674
2674
|
};
|
|
2675
2675
|
|
|
2676
|
+
// src/version.ts
|
|
2677
|
+
var VERSION = "1.0.4";
|
|
2678
|
+
|
|
2676
2679
|
// src/factory.ts
|
|
2677
2680
|
function createRoxy(auth) {
|
|
2678
2681
|
const client2 = createClient(
|
|
@@ -2680,7 +2683,7 @@ function createRoxy(auth) {
|
|
|
2680
2683
|
baseUrl: "https://roxyapi.com/api/v2",
|
|
2681
2684
|
auth,
|
|
2682
2685
|
headers: {
|
|
2683
|
-
"X-SDK-Client":
|
|
2686
|
+
"X-SDK-Client": `roxy-sdk-typescript/${VERSION}`
|
|
2684
2687
|
}
|
|
2685
2688
|
})
|
|
2686
2689
|
);
|
package/dist/factory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,KAAK,SAAS,GAAG,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC;AAE3D;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAWhD"}
|
package/dist/factory.js
CHANGED
|
@@ -1839,6 +1839,9 @@ var Roxy = class _Roxy extends HeyApiClient {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
};
|
|
1841
1841
|
|
|
1842
|
+
// src/version.ts
|
|
1843
|
+
var VERSION = "1.0.4";
|
|
1844
|
+
|
|
1842
1845
|
// src/factory.ts
|
|
1843
1846
|
function createRoxy(auth) {
|
|
1844
1847
|
const client2 = createClient(
|
|
@@ -1846,7 +1849,7 @@ function createRoxy(auth) {
|
|
|
1846
1849
|
baseUrl: "https://roxyapi.com/api/v2",
|
|
1847
1850
|
auth,
|
|
1848
1851
|
headers: {
|
|
1849
|
-
"X-SDK-Client":
|
|
1852
|
+
"X-SDK-Client": `roxy-sdk-typescript/${VERSION}`
|
|
1850
1853
|
}
|
|
1851
1854
|
})
|
|
1852
1855
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roxyapi/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "TypeScript SDK for Roxy — the multi-domain spiritual intelligence API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"repository": {
|
|
49
49
|
"type": "git",
|
|
50
|
-
"url": "https://github.com/
|
|
50
|
+
"url": "git+https://github.com/RoxyAPI/sdk-typescript.git"
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://roxyapi.com/docs/sdk",
|
|
53
53
|
"bugs": {
|
|
54
|
-
"url": "https://github.com/
|
|
54
|
+
"url": "https://github.com/RoxyAPI/sdk-typescript/issues"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@biomejs/biome": "^2.4.9",
|
package/src/factory.ts
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export * from './index';
|
|
6
6
|
|
|
7
|
-
import { Roxy } from './sdk.gen';
|
|
8
7
|
import { createClient, createConfig } from './client';
|
|
8
|
+
import { Roxy } from './sdk.gen';
|
|
9
|
+
import { VERSION } from './version';
|
|
9
10
|
|
|
10
11
|
type AuthToken = string | (() => Promise<string> | string);
|
|
11
12
|
|
|
@@ -23,7 +24,7 @@ export function createRoxy(auth: AuthToken): Roxy {
|
|
|
23
24
|
baseUrl: 'https://roxyapi.com/api/v2',
|
|
24
25
|
auth,
|
|
25
26
|
headers: {
|
|
26
|
-
'X-SDK-Client':
|
|
27
|
+
'X-SDK-Client': `roxy-sdk-typescript/${VERSION}`,
|
|
27
28
|
},
|
|
28
29
|
}),
|
|
29
30
|
);
|
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '1.0.4';
|