@roxyapi/sdk 1.2.55 → 1.2.57
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/{chunk-HCC4GID6.js → chunk-25Y6CPVU.js} +19 -11
- package/dist/client/index.cjs +19 -11
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/utils.gen.d.ts +1 -1
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client.gen.d.ts +2 -2
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/core/auth.gen.d.ts +7 -0
- package/dist/core/auth.gen.d.ts.map +1 -1
- package/dist/core/params.gen.d.ts +2 -2
- package/dist/core/params.gen.d.ts.map +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -1
- package/dist/core/queryKeySerializer.gen.d.ts +1 -1
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
- package/dist/core/types.gen.d.ts +5 -0
- package/dist/core/types.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.d.ts.map +1 -1
- package/dist/factory.cjs +66 -2
- package/dist/factory.js +67 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +199 -175
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +2335 -608
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/docs/llms-full.txt +92 -7
- package/package.json +4 -4
- package/src/client/index.ts +2 -0
- package/src/client/utils.gen.ts +2 -2
- package/src/client.gen.ts +2 -2
- package/src/core/auth.gen.ts +7 -0
- package/src/core/params.gen.ts +21 -12
- package/src/core/pathSerializer.gen.ts +6 -6
- package/src/core/queryKeySerializer.gen.ts +1 -1
- package/src/core/types.gen.ts +6 -0
- package/src/core/utils.gen.ts +4 -4
- package/src/index.ts +1 -1
- package/src/sdk.gen.ts +244 -176
- package/src/types.gen.ts +2921 -1166
- package/src/version.ts +1 -1
|
@@ -59,7 +59,7 @@ var extraPrefixesMap = {
|
|
|
59
59
|
$query_: "query"
|
|
60
60
|
};
|
|
61
61
|
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
62
|
-
|
|
62
|
+
function buildKeyMap(fields, map) {
|
|
63
63
|
if (!map) {
|
|
64
64
|
map = /* @__PURE__ */ new Map();
|
|
65
65
|
}
|
|
@@ -80,22 +80,30 @@ var buildKeyMap = (fields, map) => {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
return map;
|
|
83
|
-
}
|
|
84
|
-
|
|
83
|
+
}
|
|
84
|
+
function stripEmptySlots(params) {
|
|
85
85
|
for (const [slot, value] of Object.entries(params)) {
|
|
86
|
+
if (slot === "body") continue;
|
|
86
87
|
if (value && typeof value === "object" && !Array.isArray(value) && !Object.keys(value).length) {
|
|
87
88
|
delete params[slot];
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
|
-
}
|
|
91
|
-
|
|
91
|
+
}
|
|
92
|
+
function buildClientParams(args, fields) {
|
|
92
93
|
const params = {
|
|
93
|
-
body: /* @__PURE__ */ Object.create(null),
|
|
94
94
|
headers: /* @__PURE__ */ Object.create(null),
|
|
95
95
|
path: /* @__PURE__ */ Object.create(null),
|
|
96
96
|
query: /* @__PURE__ */ Object.create(null)
|
|
97
97
|
};
|
|
98
98
|
const map = buildKeyMap(fields);
|
|
99
|
+
function writeSlot(slot, key, value) {
|
|
100
|
+
let record = params[slot];
|
|
101
|
+
if (record === void 0) {
|
|
102
|
+
record = /* @__PURE__ */ Object.create(null);
|
|
103
|
+
params[slot] = record;
|
|
104
|
+
}
|
|
105
|
+
record[key] = value;
|
|
106
|
+
}
|
|
99
107
|
let config;
|
|
100
108
|
for (const [index, arg] of args.entries()) {
|
|
101
109
|
if (fields[index]) {
|
|
@@ -109,7 +117,7 @@ var buildClientParams = (args, fields) => {
|
|
|
109
117
|
const field = map.get(config.key);
|
|
110
118
|
const name = field.map || config.key;
|
|
111
119
|
if (field.in) {
|
|
112
|
-
|
|
120
|
+
writeSlot(field.in, name, arg);
|
|
113
121
|
}
|
|
114
122
|
} else {
|
|
115
123
|
params.body = arg;
|
|
@@ -120,7 +128,7 @@ var buildClientParams = (args, fields) => {
|
|
|
120
128
|
if (field) {
|
|
121
129
|
if (field.in) {
|
|
122
130
|
const name = field.map || key;
|
|
123
|
-
|
|
131
|
+
writeSlot(field.in, name, value);
|
|
124
132
|
} else {
|
|
125
133
|
params[field.map] = value;
|
|
126
134
|
}
|
|
@@ -128,11 +136,11 @@ var buildClientParams = (args, fields) => {
|
|
|
128
136
|
const extra = extraPrefixes.find(([prefix]) => key.startsWith(prefix));
|
|
129
137
|
if (extra) {
|
|
130
138
|
const [prefix, slot] = extra;
|
|
131
|
-
|
|
139
|
+
writeSlot(slot, key.slice(prefix.length), value);
|
|
132
140
|
} else if ("allowExtra" in config && config.allowExtra) {
|
|
133
141
|
for (const [slot, allowed] of Object.entries(config.allowExtra)) {
|
|
134
142
|
if (allowed) {
|
|
135
|
-
|
|
143
|
+
writeSlot(slot, key, value);
|
|
136
144
|
break;
|
|
137
145
|
}
|
|
138
146
|
}
|
|
@@ -143,7 +151,7 @@ var buildClientParams = (args, fields) => {
|
|
|
143
151
|
}
|
|
144
152
|
stripEmptySlots(params);
|
|
145
153
|
return params;
|
|
146
|
-
}
|
|
154
|
+
}
|
|
147
155
|
|
|
148
156
|
// src/core/queryKeySerializer.gen.ts
|
|
149
157
|
var queryKeyJsonReplacer = (_key, value) => {
|
package/dist/client/index.cjs
CHANGED
|
@@ -92,7 +92,7 @@ var extraPrefixesMap = {
|
|
|
92
92
|
$query_: "query"
|
|
93
93
|
};
|
|
94
94
|
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
95
|
-
|
|
95
|
+
function buildKeyMap(fields, map) {
|
|
96
96
|
if (!map) {
|
|
97
97
|
map = /* @__PURE__ */ new Map();
|
|
98
98
|
}
|
|
@@ -113,22 +113,30 @@ var buildKeyMap = (fields, map) => {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
return map;
|
|
116
|
-
}
|
|
117
|
-
|
|
116
|
+
}
|
|
117
|
+
function stripEmptySlots(params) {
|
|
118
118
|
for (const [slot, value] of Object.entries(params)) {
|
|
119
|
+
if (slot === "body") continue;
|
|
119
120
|
if (value && typeof value === "object" && !Array.isArray(value) && !Object.keys(value).length) {
|
|
120
121
|
delete params[slot];
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
|
-
}
|
|
124
|
-
|
|
124
|
+
}
|
|
125
|
+
function buildClientParams(args, fields) {
|
|
125
126
|
const params = {
|
|
126
|
-
body: /* @__PURE__ */ Object.create(null),
|
|
127
127
|
headers: /* @__PURE__ */ Object.create(null),
|
|
128
128
|
path: /* @__PURE__ */ Object.create(null),
|
|
129
129
|
query: /* @__PURE__ */ Object.create(null)
|
|
130
130
|
};
|
|
131
131
|
const map = buildKeyMap(fields);
|
|
132
|
+
function writeSlot(slot, key, value) {
|
|
133
|
+
let record = params[slot];
|
|
134
|
+
if (record === void 0) {
|
|
135
|
+
record = /* @__PURE__ */ Object.create(null);
|
|
136
|
+
params[slot] = record;
|
|
137
|
+
}
|
|
138
|
+
record[key] = value;
|
|
139
|
+
}
|
|
132
140
|
let config;
|
|
133
141
|
for (const [index, arg] of args.entries()) {
|
|
134
142
|
if (fields[index]) {
|
|
@@ -142,7 +150,7 @@ var buildClientParams = (args, fields) => {
|
|
|
142
150
|
const field = map.get(config.key);
|
|
143
151
|
const name = field.map || config.key;
|
|
144
152
|
if (field.in) {
|
|
145
|
-
|
|
153
|
+
writeSlot(field.in, name, arg);
|
|
146
154
|
}
|
|
147
155
|
} else {
|
|
148
156
|
params.body = arg;
|
|
@@ -153,7 +161,7 @@ var buildClientParams = (args, fields) => {
|
|
|
153
161
|
if (field) {
|
|
154
162
|
if (field.in) {
|
|
155
163
|
const name = field.map || key;
|
|
156
|
-
|
|
164
|
+
writeSlot(field.in, name, value);
|
|
157
165
|
} else {
|
|
158
166
|
params[field.map] = value;
|
|
159
167
|
}
|
|
@@ -161,11 +169,11 @@ var buildClientParams = (args, fields) => {
|
|
|
161
169
|
const extra = extraPrefixes.find(([prefix]) => key.startsWith(prefix));
|
|
162
170
|
if (extra) {
|
|
163
171
|
const [prefix, slot] = extra;
|
|
164
|
-
|
|
172
|
+
writeSlot(slot, key.slice(prefix.length), value);
|
|
165
173
|
} else if ("allowExtra" in config && config.allowExtra) {
|
|
166
174
|
for (const [slot, allowed] of Object.entries(config.allowExtra)) {
|
|
167
175
|
if (allowed) {
|
|
168
|
-
|
|
176
|
+
writeSlot(slot, key, value);
|
|
169
177
|
break;
|
|
170
178
|
}
|
|
171
179
|
}
|
|
@@ -176,7 +184,7 @@ var buildClientParams = (args, fields) => {
|
|
|
176
184
|
}
|
|
177
185
|
stripEmptySlots(params);
|
|
178
186
|
return params;
|
|
179
|
-
}
|
|
187
|
+
}
|
|
180
188
|
|
|
181
189
|
// src/core/queryKeySerializer.gen.ts
|
|
182
190
|
var queryKeyJsonReplacer = (_key, value) => {
|
package/dist/client/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export type { QuerySerializerOptions } from '../core/bodySerializer.gen';
|
|
|
3
3
|
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from '../core/bodySerializer.gen';
|
|
4
4
|
export { buildClientParams } from '../core/params.gen';
|
|
5
5
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
|
|
6
|
+
export type { ServerSentEventsResult } from '../core/serverSentEvents.gen';
|
|
7
|
+
export type { ClientMeta } from '../core/types.gen';
|
|
6
8
|
export { createClient } from './client.gen';
|
|
7
9
|
export type { Client, ClientOptions, Config, CreateClientConfig, Options, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape, } from './types.gen';
|
|
8
10
|
export { createConfig, mergeHeaders } from './utils.gen';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,YAAY,EACV,MAAM,EACN,aAAa,EACb,MAAM,EACN,kBAAkB,EAClB,OAAO,EACP,cAAc,EACd,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,UAAU,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,YAAY,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,YAAY,EACV,MAAM,EACN,aAAa,EACb,MAAM,EACN,kBAAkB,EAClB,OAAO,EACP,cAAc,EACd,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,UAAU,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/client/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { QuerySerializerOptions } from '../core/bodySerializer.gen';
|
|
2
2
|
import type { Client, ClientOptions, Config, RequestOptions } from './types.gen';
|
|
3
|
-
export declare const createQuerySerializer: <T = unknown>({ parameters, ...args }?: QuerySerializerOptions) => (queryParams: T) => string;
|
|
3
|
+
export declare const createQuerySerializer: <T = unknown>({ parameters, ...args }?: QuerySerializerOptions) => ((queryParams: T) => string);
|
|
4
4
|
/**
|
|
5
5
|
* Infers parseAs value from provided Content-Type header.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.gen.d.ts","sourceRoot":"","sources":["../../src/client/utils.gen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAQzE,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEjF,eAAO,MAAM,qBAAqB,GAAI,CAAC,GAAG,OAAO,EAAE,0BAGhD,sBAA2B,
|
|
1
|
+
{"version":3,"file":"utils.gen.d.ts","sourceRoot":"","sources":["../../src/client/utils.gen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAQzE,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEjF,eAAO,MAAM,qBAAqB,GAAI,CAAC,GAAG,OAAO,EAAE,0BAGhD,sBAA2B,KAAG,CAAC,CAAC,WAAW,EAAE,CAAC,KAAK,MAAM,CA8C3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,aAAa,MAAM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,KAAK,IAAI,IAAI;IAIb,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;IAOrC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO;IAKzC,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM;IAOrD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,MAAM,GAAG,WAAW,GAAG,KAAK;IAS/E,GAAG,CAAC,EAAE,EAAE,WAAW,GAAG,MAAM;CAI7B;AAED,MAAM,WAAW,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO;IAChD,KAAK,EAAE,YAAY,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5D,OAAO,EAAE,YAAY,CAAC,cAAc,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;IACpD,QAAQ,EAAE,YAAY,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,kBAAkB,GAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,OAAK,UAAU,CACtE,GAAG,EACH,GAAG,EACH,GAAG,EACH,OAAO,CAKP,CAAC;AAkBH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,aAAa,GAAG,aAAa,EAClE,WAAU,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAM,KACtD,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAMxC,CAAC"}
|
package/dist/client.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ClientOptions, type Config } from './client';
|
|
1
|
+
import { type Client, type ClientOptions, type Config } from './client';
|
|
2
2
|
import type { ClientOptions as ClientOptions2 } from './types.gen';
|
|
3
3
|
/**
|
|
4
4
|
* The `createClientConfig()` function will be called on client initialization
|
|
@@ -9,5 +9,5 @@ import type { ClientOptions as ClientOptions2 } from './types.gen';
|
|
|
9
9
|
* to ensure your client always has the correct values.
|
|
10
10
|
*/
|
|
11
11
|
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
|
|
12
|
-
export declare const client:
|
|
12
|
+
export declare const client: Client;
|
|
13
13
|
//# sourceMappingURL=client.gen.d.ts.map
|
package/dist/client.gen.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../src/client.gen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,MAAM,EAA8B,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../src/client.gen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,MAAM,EAA8B,MAAM,UAAU,CAAC;AACpG,OAAO,KAAK,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,cAAc,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;AAEzJ,eAAO,MAAM,MAAM,EAAE,MAA8F,CAAC"}
|
package/dist/core/auth.gen.d.ts
CHANGED
|
@@ -6,6 +6,13 @@ export interface Auth {
|
|
|
6
6
|
* @default 'header'
|
|
7
7
|
*/
|
|
8
8
|
in?: 'header' | 'query' | 'cookie';
|
|
9
|
+
/**
|
|
10
|
+
* A unique identifier for the security scheme.
|
|
11
|
+
*
|
|
12
|
+
* Defined only when there are multiple security schemes whose `Auth`
|
|
13
|
+
* shape would otherwise be identical.
|
|
14
|
+
*/
|
|
15
|
+
key?: string;
|
|
9
16
|
/**
|
|
10
17
|
* Header or query parameter name.
|
|
11
18
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.gen.d.ts","sourceRoot":"","sources":["../../src/core/auth.gen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3C,MAAM,WAAW,IAAI;IACnB;;;;OAIG;IACH,EAAE,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACnC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC5B,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,GACvB,MAAM,IAAI,EACV,UAAU,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,GAAG,SAAS,KACrE,OAAO,CAAC,MAAM,GAAG,SAAS,CAgB5B,CAAC"}
|
|
1
|
+
{"version":3,"file":"auth.gen.d.ts","sourceRoot":"","sources":["../../src/core/auth.gen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3C,MAAM,WAAW,IAAI;IACnB;;;;OAIG;IACH,EAAE,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACnC;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC5B,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,GACvB,MAAM,IAAI,EACV,UAAU,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,GAAG,SAAS,KACrE,OAAO,CAAC,MAAM,GAAG,SAAS,CAgB5B,CAAC"}
|
|
@@ -34,11 +34,11 @@ export interface Fields {
|
|
|
34
34
|
}
|
|
35
35
|
export type FieldsConfig = ReadonlyArray<Field | Fields>;
|
|
36
36
|
interface Params {
|
|
37
|
-
body
|
|
37
|
+
body?: unknown;
|
|
38
38
|
headers: Record<string, unknown>;
|
|
39
39
|
path: Record<string, unknown>;
|
|
40
40
|
query: Record<string, unknown>;
|
|
41
41
|
}
|
|
42
|
-
export declare
|
|
42
|
+
export declare function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsConfig): Params;
|
|
43
43
|
export {};
|
|
44
44
|
//# sourceMappingURL=params.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"params.gen.d.ts","sourceRoot":"","sources":["../../src/core/params.gen.ts"],"names":[],"mappings":"AAEA,KAAK,IAAI,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAElD,MAAM,MAAM,KAAK,GACb;IACE,EAAE,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GACD;IACE,EAAE,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GACD;IACE;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,GAAG,EAAE,IAAI,CAAC;CACX,CAAC;AAEN,MAAM,WAAW,MA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,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAWD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,YAAY,GAAG,MAAM,CAwE5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pathSerializer.gen.d.ts","sourceRoot":"","sources":["../../src/core/pathSerializer.gen.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB,CAAC,CAAC,CAAE,SAAQ,yBAAyB,EAAE,iBAAiB,CAAC,CAAC,CAAC;CAAG;AAExF,UAAU,yBAAyB;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,GAAG,eAAe,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,WAAW,CAAC;AAC3D,KAAK,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,YAAY,CAAC;AAChD,KAAK,oBAAoB,GAAG,WAAW,GAAG,WAAW,CAAC;AAEtD,UAAU,uBAAwB,SAAQ,yBAAyB;IACjE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,qBAAqB,GAAI,OAAO,mBAAmB,
|
|
1
|
+
{"version":3,"file":"pathSerializer.gen.d.ts","sourceRoot":"","sources":["../../src/core/pathSerializer.gen.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB,CAAC,CAAC,CAAE,SAAQ,yBAAyB,EAAE,iBAAiB,CAAC,CAAC,C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tC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,KAAG,MAkCH,CAAC"}
|
|
@@ -7,7 +7,7 @@ export type JsonValue = null | string | number | boolean | JsonValue[] | {
|
|
|
7
7
|
/**
|
|
8
8
|
* Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.
|
|
9
9
|
*/
|
|
10
|
-
export declare const queryKeyJsonReplacer: (_key: string, value: unknown) =>
|
|
10
|
+
export declare const queryKeyJsonReplacer: (_key: string, value: unknown) => unknown | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Safely stringifies a value and parses it back into a JsonValue.
|
|
13
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryKeySerializer.gen.d.ts","sourceRoot":"","sources":["../../src/core/queryKeySerializer.gen.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB,IAAI,GACJ,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,EAAE,OAAO,OAAO,
|
|
1
|
+
{"version":3,"file":"queryKeySerializer.gen.d.ts","sourceRoot":"","sources":["../../src/core/queryKeySerializer.gen.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB,IAAI,GACJ,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,EAAE,OAAO,OAAO,KAAG,OAAO,GAAG,SAW7E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,OAAO,KAAG,SAAS,GAAG,SAUjE,CAAC;AAqCF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,OAAO,OAAO,KAAG,SAAS,GAAG,SAkCnE,CAAC"}
|
package/dist/core/types.gen.d.ts
CHANGED
|
@@ -71,6 +71,11 @@ export interface Config {
|
|
|
71
71
|
*/
|
|
72
72
|
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Arbitrary metadata passed through the `meta` request option.
|
|
76
|
+
*/
|
|
77
|
+
export interface ClientMeta {
|
|
78
|
+
}
|
|
74
79
|
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? [undefined] extends [T] ? false : true : false;
|
|
75
80
|
export type OmitNever<T extends Record<string, unknown>> = {
|
|
76
81
|
[K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true ? never : K]: T[K];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../src/core/types.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEpG,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,QAAQ,GACR,KAAK,GACL,MAAM,GACN,SAAS,GACT,OAAO,GACP,MAAM,GACN,KAAK,GACL,OAAO,CAAC;AAEZ,MAAM,MAAM,MAAM,CAChB,SAAS,GAAG,KAAK,EACjB,MAAM,GAAG,OAAO,EAChB,QAAQ,GAAG,KAAK,EAChB,UAAU,GAAG,KAAK,EAClB,KAAK,GAAG,KAAK,IACX;IACF;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC;IACrB,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,OAAO,EAAE,SAAS,CAAC;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;CACvC,GAA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AK,GACL,IAAI,GACN,KAAK,CAAC;AAEZ,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;KACxD,CAAC,IAAI,MAAM,CAAC,IAAI,8BAA8B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACtF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.gen.d.ts","sourceRoot":"","sources":["../../src/core/utils.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAQ5E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"utils.gen.d.ts","sourceRoot":"","sources":["../../src/core/utils.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAQ5E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,aAAa,EAAE,MAAsB,CAAC;AAEnD,eAAO,MAAM,qBAAqB,GAAI,qBAAqB,cAAc,KAAG,MAiE3E,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,uDAMpB;IACD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,eAAe,EAAE,eAAe,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;CACb,KAAG,MAcH,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,OAAO,CAuBV"}
|
package/dist/factory.cjs
CHANGED
|
@@ -1658,7 +1658,7 @@ var VedicAstrology = class extends HeyApiClient {
|
|
|
1658
1658
|
/**
|
|
1659
1659
|
* Get yoga details by ID - Vedic Yoga Glossary Entry
|
|
1660
1660
|
*
|
|
1661
|
-
* Look up the dictionary entry for a specific named yoga from the
|
|
1661
|
+
* Look up the dictionary entry for a specific named yoga from the 301-entry Vedic planetary-yoga glossary. Returns formation conditions, life results, and quality classification (Positive/Negative/Both). This is a glossary lookup against the static catalog; it does NOT analyze a birth chart. For chart-driven present/absent verdicts on the 44 detection-grade yogas (Gajakesari, the Pancha Mahapurusha set, and all 32 Nabhasa distribution yogas) call POST /yoga/detect with birth data.
|
|
1662
1662
|
*/
|
|
1663
1663
|
getYoga(options) {
|
|
1664
1664
|
return (options.client ?? this.client).get({
|
|
@@ -1823,6 +1823,22 @@ var VedicAstrology = class extends HeyApiClient {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
});
|
|
1825
1825
|
}
|
|
1826
|
+
/**
|
|
1827
|
+
* Cast a KP horary (Prashna) chart from a number 1-249 - KP Horary API
|
|
1828
|
+
*
|
|
1829
|
+
* Cast a Krishnamurti Paddhati horary chart, also called Prashna, from a number between 1 and 249 given by the querent plus the moment and place the question is judged. NO BIRTH DETAILS ARE NEEDED, which is what makes horary the KP answer when birth time is unknown or unreliable. The number maps to one of the 249 KP sub divisions and sets the Ascendant; the twelve Placidus cusps follow from that Ascendant at the given latitude, and every planetary position comes from the real sky at the moment of the question. Returns the Ascendant with its sub lord, all twelve cusps with star lord and sub lord, the nine grahas placed against those cusps, the five ruling planets for validating the chart, and four-level significators for judging which houses each graha supports. KP horary API, Prashna kundali calculator, 249 horary number chart, Krishnamurti Paddhati horary, cusp sub lord question answering.
|
|
1830
|
+
*/
|
|
1831
|
+
castKpHoraryChart(options) {
|
|
1832
|
+
return (options?.client ?? this.client).post({
|
|
1833
|
+
security: [{ name: "X-API-Key", type: "apiKey" }],
|
|
1834
|
+
url: "/vedic-astrology/kp/horary",
|
|
1835
|
+
...options,
|
|
1836
|
+
headers: {
|
|
1837
|
+
"Content-Type": "application/json",
|
|
1838
|
+
...options?.headers
|
|
1839
|
+
}
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1826
1842
|
/**
|
|
1827
1843
|
* Get planetary aspects (Drishti) - Mutual aspects between all planets
|
|
1828
1844
|
*
|
|
@@ -2103,6 +2119,54 @@ var VedicAstrology = class extends HeyApiClient {
|
|
|
2103
2119
|
}
|
|
2104
2120
|
});
|
|
2105
2121
|
}
|
|
2122
|
+
/**
|
|
2123
|
+
* Get Bhava Bala (house strength) for all twelve houses - Bhava Bala Calculator API
|
|
2124
|
+
*
|
|
2125
|
+
* Calculate Bhava Bala (house strength) for all twelve bhavas per Brihat Parashara Hora Shastra (BPHS) and BV Raman Graha and Bhava Balas. Returns the three classical components (Bhavadhipati Bala from the house lord Shadbala, Bhava Digbala from the rashi class and direction, Bhava Drishti Bala from aspects on the bhava madhya) plus totals in virupas and rupas and a strength ranking. Bhavas are built on unequal Sripati mid-cusps, so a house near a sign boundary is measured where it actually falls. Shadbala measures which graha is strong, Bhava Bala measures which life area is strong, and reading both together is how a practitioner separates a strong planet in a weak house from a weak planet in a strong one. Bhava Bala calculator API, house strength Vedic astrology, bhava bala virupas, Bhavadhipati Bala, Bhava Digbala, Sripati bhava madhya.
|
|
2126
|
+
*/
|
|
2127
|
+
calculateBhavaBala(options) {
|
|
2128
|
+
return (options?.client ?? this.client).post({
|
|
2129
|
+
security: [{ name: "X-API-Key", type: "apiKey" }],
|
|
2130
|
+
url: "/vedic-astrology/bhava-bala",
|
|
2131
|
+
...options,
|
|
2132
|
+
headers: {
|
|
2133
|
+
"Content-Type": "application/json",
|
|
2134
|
+
...options?.headers
|
|
2135
|
+
}
|
|
2136
|
+
});
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* Get the Bhav Chalit (Chalit Kundli) cusp-based house chart - Bhav Chalit API
|
|
2140
|
+
*
|
|
2141
|
+
* Calculate the Bhav Chalit chart, also written Bhava Chalit or Chalit Kundli, placing every graha by unequal Sripati bhava cusps instead of by whole sign. The Rashi (D1) chart treats a whole sign as a house, so a graha a degree from a sign boundary is shown in a house it does not actually occupy; the Chalit chart resolves that by measuring from the bhava sandhis, which is why practitioners check it before reading house results, house lordship strength or transit effects. Returns the twelve bhava boundaries with their madhyas and spans, every graha in both frames, and a moved flag on the placements that differ. Bhav Chalit API, Chalit Kundli calculator, bhava chalit chart, Sripati house cusps, cusp based house chart Vedic astrology.
|
|
2142
|
+
*/
|
|
2143
|
+
calculateBhavChalit(options) {
|
|
2144
|
+
return (options?.client ?? this.client).post({
|
|
2145
|
+
security: [{ name: "X-API-Key", type: "apiKey" }],
|
|
2146
|
+
url: "/vedic-astrology/bhav-chalit",
|
|
2147
|
+
...options,
|
|
2148
|
+
headers: {
|
|
2149
|
+
"Content-Type": "application/json",
|
|
2150
|
+
...options?.headers
|
|
2151
|
+
}
|
|
2152
|
+
});
|
|
2153
|
+
}
|
|
2154
|
+
/**
|
|
2155
|
+
* Heliacal rising and setting (udaya and asta) - Graha Asta Calculator API
|
|
2156
|
+
*
|
|
2157
|
+
* Calculate heliacal rising (udaya) and setting (asta) of the six visible grahas for any date and place, by the Surya Siddhanta rule. Returns whether each graha currently clears the solar glare, its separation from the Sun in classical degrees of time, and the dates its visibility last changed and next changes. This is the calculation behind Guru Asta and Shukra Asta, the periods classical muhurta withholds marriage and other auspicious ceremonies. Unlike a birth chart combustion flag it is location aware, because the angle the ecliptic makes with the local horizon decides how long a graha lingers after the Sun. Graha asta API, Guru Asta Shukra Asta dates, heliacal rising calculator, planetary combustion muhurta.
|
|
2158
|
+
*/
|
|
2159
|
+
getHeliacalVisibility(options) {
|
|
2160
|
+
return (options?.client ?? this.client).post({
|
|
2161
|
+
security: [{ name: "X-API-Key", type: "apiKey" }],
|
|
2162
|
+
url: "/vedic-astrology/heliacal",
|
|
2163
|
+
...options,
|
|
2164
|
+
headers: {
|
|
2165
|
+
"Content-Type": "application/json",
|
|
2166
|
+
...options?.headers
|
|
2167
|
+
}
|
|
2168
|
+
});
|
|
2169
|
+
}
|
|
2106
2170
|
};
|
|
2107
2171
|
var Forecast = class extends HeyApiClient {
|
|
2108
2172
|
/**
|
|
@@ -3457,7 +3521,7 @@ var Roxy = class _Roxy extends HeyApiClient {
|
|
|
3457
3521
|
};
|
|
3458
3522
|
|
|
3459
3523
|
// src/version.ts
|
|
3460
|
-
var VERSION = "1.2.
|
|
3524
|
+
var VERSION = "1.2.57";
|
|
3461
3525
|
|
|
3462
3526
|
// src/factory.ts
|
|
3463
3527
|
function createRoxy(auth) {
|
package/dist/factory.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient,
|
|
3
3
|
createConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-25Y6CPVU.js";
|
|
5
5
|
|
|
6
6
|
// src/client.gen.ts
|
|
7
7
|
var client = createClient(createConfig({ baseUrl: "https://roxyapi.com/api/v2" }));
|
|
@@ -837,7 +837,7 @@ var VedicAstrology = class extends HeyApiClient {
|
|
|
837
837
|
/**
|
|
838
838
|
* Get yoga details by ID - Vedic Yoga Glossary Entry
|
|
839
839
|
*
|
|
840
|
-
* Look up the dictionary entry for a specific named yoga from the
|
|
840
|
+
* Look up the dictionary entry for a specific named yoga from the 301-entry Vedic planetary-yoga glossary. Returns formation conditions, life results, and quality classification (Positive/Negative/Both). This is a glossary lookup against the static catalog; it does NOT analyze a birth chart. For chart-driven present/absent verdicts on the 44 detection-grade yogas (Gajakesari, the Pancha Mahapurusha set, and all 32 Nabhasa distribution yogas) call POST /yoga/detect with birth data.
|
|
841
841
|
*/
|
|
842
842
|
getYoga(options) {
|
|
843
843
|
return (options.client ?? this.client).get({
|
|
@@ -1002,6 +1002,22 @@ var VedicAstrology = class extends HeyApiClient {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Cast a KP horary (Prashna) chart from a number 1-249 - KP Horary API
|
|
1007
|
+
*
|
|
1008
|
+
* Cast a Krishnamurti Paddhati horary chart, also called Prashna, from a number between 1 and 249 given by the querent plus the moment and place the question is judged. NO BIRTH DETAILS ARE NEEDED, which is what makes horary the KP answer when birth time is unknown or unreliable. The number maps to one of the 249 KP sub divisions and sets the Ascendant; the twelve Placidus cusps follow from that Ascendant at the given latitude, and every planetary position comes from the real sky at the moment of the question. Returns the Ascendant with its sub lord, all twelve cusps with star lord and sub lord, the nine grahas placed against those cusps, the five ruling planets for validating the chart, and four-level significators for judging which houses each graha supports. KP horary API, Prashna kundali calculator, 249 horary number chart, Krishnamurti Paddhati horary, cusp sub lord question answering.
|
|
1009
|
+
*/
|
|
1010
|
+
castKpHoraryChart(options) {
|
|
1011
|
+
return (options?.client ?? this.client).post({
|
|
1012
|
+
security: [{ name: "X-API-Key", type: "apiKey" }],
|
|
1013
|
+
url: "/vedic-astrology/kp/horary",
|
|
1014
|
+
...options,
|
|
1015
|
+
headers: {
|
|
1016
|
+
"Content-Type": "application/json",
|
|
1017
|
+
...options?.headers
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1005
1021
|
/**
|
|
1006
1022
|
* Get planetary aspects (Drishti) - Mutual aspects between all planets
|
|
1007
1023
|
*
|
|
@@ -1282,6 +1298,54 @@ var VedicAstrology = class extends HeyApiClient {
|
|
|
1282
1298
|
}
|
|
1283
1299
|
});
|
|
1284
1300
|
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Get Bhava Bala (house strength) for all twelve houses - Bhava Bala Calculator API
|
|
1303
|
+
*
|
|
1304
|
+
* Calculate Bhava Bala (house strength) for all twelve bhavas per Brihat Parashara Hora Shastra (BPHS) and BV Raman Graha and Bhava Balas. Returns the three classical components (Bhavadhipati Bala from the house lord Shadbala, Bhava Digbala from the rashi class and direction, Bhava Drishti Bala from aspects on the bhava madhya) plus totals in virupas and rupas and a strength ranking. Bhavas are built on unequal Sripati mid-cusps, so a house near a sign boundary is measured where it actually falls. Shadbala measures which graha is strong, Bhava Bala measures which life area is strong, and reading both together is how a practitioner separates a strong planet in a weak house from a weak planet in a strong one. Bhava Bala calculator API, house strength Vedic astrology, bhava bala virupas, Bhavadhipati Bala, Bhava Digbala, Sripati bhava madhya.
|
|
1305
|
+
*/
|
|
1306
|
+
calculateBhavaBala(options) {
|
|
1307
|
+
return (options?.client ?? this.client).post({
|
|
1308
|
+
security: [{ name: "X-API-Key", type: "apiKey" }],
|
|
1309
|
+
url: "/vedic-astrology/bhava-bala",
|
|
1310
|
+
...options,
|
|
1311
|
+
headers: {
|
|
1312
|
+
"Content-Type": "application/json",
|
|
1313
|
+
...options?.headers
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Get the Bhav Chalit (Chalit Kundli) cusp-based house chart - Bhav Chalit API
|
|
1319
|
+
*
|
|
1320
|
+
* Calculate the Bhav Chalit chart, also written Bhava Chalit or Chalit Kundli, placing every graha by unequal Sripati bhava cusps instead of by whole sign. The Rashi (D1) chart treats a whole sign as a house, so a graha a degree from a sign boundary is shown in a house it does not actually occupy; the Chalit chart resolves that by measuring from the bhava sandhis, which is why practitioners check it before reading house results, house lordship strength or transit effects. Returns the twelve bhava boundaries with their madhyas and spans, every graha in both frames, and a moved flag on the placements that differ. Bhav Chalit API, Chalit Kundli calculator, bhava chalit chart, Sripati house cusps, cusp based house chart Vedic astrology.
|
|
1321
|
+
*/
|
|
1322
|
+
calculateBhavChalit(options) {
|
|
1323
|
+
return (options?.client ?? this.client).post({
|
|
1324
|
+
security: [{ name: "X-API-Key", type: "apiKey" }],
|
|
1325
|
+
url: "/vedic-astrology/bhav-chalit",
|
|
1326
|
+
...options,
|
|
1327
|
+
headers: {
|
|
1328
|
+
"Content-Type": "application/json",
|
|
1329
|
+
...options?.headers
|
|
1330
|
+
}
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* Heliacal rising and setting (udaya and asta) - Graha Asta Calculator API
|
|
1335
|
+
*
|
|
1336
|
+
* Calculate heliacal rising (udaya) and setting (asta) of the six visible grahas for any date and place, by the Surya Siddhanta rule. Returns whether each graha currently clears the solar glare, its separation from the Sun in classical degrees of time, and the dates its visibility last changed and next changes. This is the calculation behind Guru Asta and Shukra Asta, the periods classical muhurta withholds marriage and other auspicious ceremonies. Unlike a birth chart combustion flag it is location aware, because the angle the ecliptic makes with the local horizon decides how long a graha lingers after the Sun. Graha asta API, Guru Asta Shukra Asta dates, heliacal rising calculator, planetary combustion muhurta.
|
|
1337
|
+
*/
|
|
1338
|
+
getHeliacalVisibility(options) {
|
|
1339
|
+
return (options?.client ?? this.client).post({
|
|
1340
|
+
security: [{ name: "X-API-Key", type: "apiKey" }],
|
|
1341
|
+
url: "/vedic-astrology/heliacal",
|
|
1342
|
+
...options,
|
|
1343
|
+
headers: {
|
|
1344
|
+
"Content-Type": "application/json",
|
|
1345
|
+
...options?.headers
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1285
1349
|
};
|
|
1286
1350
|
var Forecast = class extends HeyApiClient {
|
|
1287
1351
|
/**
|
|
@@ -2636,7 +2700,7 @@ var Roxy = class _Roxy extends HeyApiClient {
|
|
|
2636
2700
|
};
|
|
2637
2701
|
|
|
2638
2702
|
// src/version.ts
|
|
2639
|
-
var VERSION = "1.2.
|
|
2703
|
+
var VERSION = "1.2.57";
|
|
2640
2704
|
|
|
2641
2705
|
// src/factory.ts
|
|
2642
2706
|
function createRoxy(auth) {
|