@roxyapi/sdk 1.2.7 → 1.2.8
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/factory.cjs +105 -1
- package/dist/factory.js +104 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +41 -1
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/types.gen.d.ts +930 -0
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/sdk.gen.ts +110 -1
- package/src/types.gen.ts +960 -0
- package/src/version.ts +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -20196,6 +20196,936 @@ export type GetCrystalsByIdResponses = {
|
|
|
20196
20196
|
};
|
|
20197
20197
|
};
|
|
20198
20198
|
export type GetCrystalsByIdResponse = GetCrystalsByIdResponses[keyof GetCrystalsByIdResponses];
|
|
20199
|
+
export type PostBiorhythmReadingData = {
|
|
20200
|
+
body?: {
|
|
20201
|
+
/**
|
|
20202
|
+
* Birth date of the person in YYYY-MM-DD format. This is the anchor for all biorhythm cycle calculations.
|
|
20203
|
+
*/
|
|
20204
|
+
birthDate: string;
|
|
20205
|
+
/**
|
|
20206
|
+
* Date to calculate the reading for in YYYY-MM-DD format. Defaults to today (UTC) if omitted.
|
|
20207
|
+
*/
|
|
20208
|
+
targetDate?: string;
|
|
20209
|
+
};
|
|
20210
|
+
path?: never;
|
|
20211
|
+
query?: {
|
|
20212
|
+
/**
|
|
20213
|
+
* Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English.
|
|
20214
|
+
*/
|
|
20215
|
+
lang?: 'en' | 'tr' | 'de' | 'es' | 'hi' | 'pt' | 'fr' | 'ru';
|
|
20216
|
+
};
|
|
20217
|
+
url: '/biorhythm/reading';
|
|
20218
|
+
};
|
|
20219
|
+
export type PostBiorhythmReadingErrors = {
|
|
20220
|
+
/**
|
|
20221
|
+
* Validation error (missing or invalid parameters)
|
|
20222
|
+
*/
|
|
20223
|
+
400: {
|
|
20224
|
+
/**
|
|
20225
|
+
* Human-readable error message. May change wording.
|
|
20226
|
+
*/
|
|
20227
|
+
error: string;
|
|
20228
|
+
/**
|
|
20229
|
+
* Machine-readable error code. Stable identifier.
|
|
20230
|
+
*/
|
|
20231
|
+
code: string;
|
|
20232
|
+
};
|
|
20233
|
+
/**
|
|
20234
|
+
* Invalid or missing API key
|
|
20235
|
+
*/
|
|
20236
|
+
401: {
|
|
20237
|
+
/**
|
|
20238
|
+
* Human-readable error message. May change wording.
|
|
20239
|
+
*/
|
|
20240
|
+
error: string;
|
|
20241
|
+
/**
|
|
20242
|
+
* Machine-readable error code. Stable identifier.
|
|
20243
|
+
*/
|
|
20244
|
+
code: string;
|
|
20245
|
+
};
|
|
20246
|
+
/**
|
|
20247
|
+
* Monthly rate limit exceeded
|
|
20248
|
+
*/
|
|
20249
|
+
429: {
|
|
20250
|
+
/**
|
|
20251
|
+
* Human-readable error message. May change wording.
|
|
20252
|
+
*/
|
|
20253
|
+
error: string;
|
|
20254
|
+
/**
|
|
20255
|
+
* Machine-readable error code. Stable identifier.
|
|
20256
|
+
*/
|
|
20257
|
+
code: string;
|
|
20258
|
+
};
|
|
20259
|
+
/**
|
|
20260
|
+
* Internal server error
|
|
20261
|
+
*/
|
|
20262
|
+
500: {
|
|
20263
|
+
/**
|
|
20264
|
+
* Human-readable error message. May change wording.
|
|
20265
|
+
*/
|
|
20266
|
+
error: string;
|
|
20267
|
+
/**
|
|
20268
|
+
* Machine-readable error code. Stable identifier.
|
|
20269
|
+
*/
|
|
20270
|
+
code: string;
|
|
20271
|
+
};
|
|
20272
|
+
};
|
|
20273
|
+
export type PostBiorhythmReadingError = PostBiorhythmReadingErrors[keyof PostBiorhythmReadingErrors];
|
|
20274
|
+
export type PostBiorhythmReadingResponses = {
|
|
20275
|
+
/**
|
|
20276
|
+
* Complete biorhythm reading with all 10 cycles, energy rating, interpretation, and critical alerts
|
|
20277
|
+
*/
|
|
20278
|
+
200: {
|
|
20279
|
+
/**
|
|
20280
|
+
* Birth date used for this calculation (YYYY-MM-DD).
|
|
20281
|
+
*/
|
|
20282
|
+
birthDate: string;
|
|
20283
|
+
/**
|
|
20284
|
+
* Date this reading is for (YYYY-MM-DD).
|
|
20285
|
+
*/
|
|
20286
|
+
targetDate: string;
|
|
20287
|
+
/**
|
|
20288
|
+
* Total days alive from birth date to target date. This is the basis for all cycle calculations.
|
|
20289
|
+
*/
|
|
20290
|
+
daysSinceBirth: number;
|
|
20291
|
+
/**
|
|
20292
|
+
* All 10 biorhythm cycle readings. Keys: physical, emotional, intellectual, intuitive, aesthetic, awareness, spiritual, passion, mastery, wisdom.
|
|
20293
|
+
*/
|
|
20294
|
+
cycles: {
|
|
20295
|
+
[key: string]: {
|
|
20296
|
+
/**
|
|
20297
|
+
* Percentage position in the cycle from -100 (trough) to 100 (peak). 0 represents a critical zero crossing.
|
|
20298
|
+
*/
|
|
20299
|
+
value: number;
|
|
20300
|
+
/**
|
|
20301
|
+
* Raw sine wave value before percentage conversion, ranging from -1.0 to 1.0.
|
|
20302
|
+
*/
|
|
20303
|
+
rawValue: number;
|
|
20304
|
+
/**
|
|
20305
|
+
* Current phase of the cycle. One of: peak, high, rising, critical_ascending, critical_descending, falling, low, trough.
|
|
20306
|
+
*/
|
|
20307
|
+
phase: string;
|
|
20308
|
+
/**
|
|
20309
|
+
* Human-readable phase name for display in UIs, dashboards, and reports.
|
|
20310
|
+
*/
|
|
20311
|
+
phaseLabel: string;
|
|
20312
|
+
/**
|
|
20313
|
+
* Current day position within the cycle (1-based). Ranges from 1 to the cycle period length.
|
|
20314
|
+
*/
|
|
20315
|
+
dayInCycle: number;
|
|
20316
|
+
/**
|
|
20317
|
+
* Number of days until the next peak (100%) in this cycle.
|
|
20318
|
+
*/
|
|
20319
|
+
daysUntilPeak: number;
|
|
20320
|
+
/**
|
|
20321
|
+
* Number of days until the next trough (-100%) in this cycle.
|
|
20322
|
+
*/
|
|
20323
|
+
daysUntilTrough: number;
|
|
20324
|
+
/**
|
|
20325
|
+
* Number of days until the next zero crossing in this cycle.
|
|
20326
|
+
*/
|
|
20327
|
+
daysUntilCritical: number;
|
|
20328
|
+
/**
|
|
20329
|
+
* Short-term direction of the cycle. One of: rising, falling, peaking, bottoming.
|
|
20330
|
+
*/
|
|
20331
|
+
trend: string;
|
|
20332
|
+
/**
|
|
20333
|
+
* Editorial 2-3 sentence reading specific to this cycle at its current phase position.
|
|
20334
|
+
*/
|
|
20335
|
+
interpretation: string;
|
|
20336
|
+
};
|
|
20337
|
+
};
|
|
20338
|
+
/**
|
|
20339
|
+
* Overall energy score from 1 (deep recovery) to 10 (peak performance), derived from the three primary cycle positions.
|
|
20340
|
+
*/
|
|
20341
|
+
energyRating: number;
|
|
20342
|
+
/**
|
|
20343
|
+
* Summary phase label. One of: high_energy, mixed, recovery, critical.
|
|
20344
|
+
*/
|
|
20345
|
+
overallPhase: string;
|
|
20346
|
+
/**
|
|
20347
|
+
* Editorial 3-5 sentence reading combining all cycle states into a coherent daily assessment.
|
|
20348
|
+
*/
|
|
20349
|
+
interpretation: string;
|
|
20350
|
+
/**
|
|
20351
|
+
* Actionable 1-2 sentence guidance for the day based on the combined cycle analysis.
|
|
20352
|
+
*/
|
|
20353
|
+
advice: string;
|
|
20354
|
+
/**
|
|
20355
|
+
* Critical day alerts. Present only when one or more primary cycles are at or near zero crossing.
|
|
20356
|
+
*/
|
|
20357
|
+
criticalAlerts: Array<{
|
|
20358
|
+
/**
|
|
20359
|
+
* Which cycle is at or near zero crossing.
|
|
20360
|
+
*/
|
|
20361
|
+
cycle: string;
|
|
20362
|
+
/**
|
|
20363
|
+
* Alert type. zero_crossing when a cycle crosses zero, approaching_critical when within 1 day of zero.
|
|
20364
|
+
*/
|
|
20365
|
+
type: string;
|
|
20366
|
+
/**
|
|
20367
|
+
* Whether the cycle is rising through zero (ascending) or falling through zero (descending).
|
|
20368
|
+
*/
|
|
20369
|
+
direction: string;
|
|
20370
|
+
/**
|
|
20371
|
+
* Specific advisory text for this critical alert.
|
|
20372
|
+
*/
|
|
20373
|
+
advisory: string;
|
|
20374
|
+
}>;
|
|
20375
|
+
};
|
|
20376
|
+
};
|
|
20377
|
+
export type PostBiorhythmReadingResponse = PostBiorhythmReadingResponses[keyof PostBiorhythmReadingResponses];
|
|
20378
|
+
export type PostBiorhythmForecastData = {
|
|
20379
|
+
body?: {
|
|
20380
|
+
/**
|
|
20381
|
+
* Birth date of the person in YYYY-MM-DD format.
|
|
20382
|
+
*/
|
|
20383
|
+
birthDate: string;
|
|
20384
|
+
/**
|
|
20385
|
+
* Start date of the forecast range in YYYY-MM-DD format. Defaults to today (UTC).
|
|
20386
|
+
*/
|
|
20387
|
+
startDate?: string;
|
|
20388
|
+
/**
|
|
20389
|
+
* End date of the forecast range in YYYY-MM-DD format. Defaults to startDate + 30 days. Maximum range: 90 days.
|
|
20390
|
+
*/
|
|
20391
|
+
endDate?: string;
|
|
20392
|
+
};
|
|
20393
|
+
path?: never;
|
|
20394
|
+
query?: {
|
|
20395
|
+
/**
|
|
20396
|
+
* Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English.
|
|
20397
|
+
*/
|
|
20398
|
+
lang?: 'en' | 'tr' | 'de' | 'es' | 'hi' | 'pt' | 'fr' | 'ru';
|
|
20399
|
+
};
|
|
20400
|
+
url: '/biorhythm/forecast';
|
|
20401
|
+
};
|
|
20402
|
+
export type PostBiorhythmForecastErrors = {
|
|
20403
|
+
/**
|
|
20404
|
+
* Validation error (missing or invalid parameters)
|
|
20405
|
+
*/
|
|
20406
|
+
400: {
|
|
20407
|
+
/**
|
|
20408
|
+
* Human-readable error message. May change wording.
|
|
20409
|
+
*/
|
|
20410
|
+
error: string;
|
|
20411
|
+
/**
|
|
20412
|
+
* Machine-readable error code. Stable identifier.
|
|
20413
|
+
*/
|
|
20414
|
+
code: string;
|
|
20415
|
+
};
|
|
20416
|
+
/**
|
|
20417
|
+
* Invalid or missing API key
|
|
20418
|
+
*/
|
|
20419
|
+
401: {
|
|
20420
|
+
/**
|
|
20421
|
+
* Human-readable error message. May change wording.
|
|
20422
|
+
*/
|
|
20423
|
+
error: string;
|
|
20424
|
+
/**
|
|
20425
|
+
* Machine-readable error code. Stable identifier.
|
|
20426
|
+
*/
|
|
20427
|
+
code: string;
|
|
20428
|
+
};
|
|
20429
|
+
/**
|
|
20430
|
+
* Monthly rate limit exceeded
|
|
20431
|
+
*/
|
|
20432
|
+
429: {
|
|
20433
|
+
/**
|
|
20434
|
+
* Human-readable error message. May change wording.
|
|
20435
|
+
*/
|
|
20436
|
+
error: string;
|
|
20437
|
+
/**
|
|
20438
|
+
* Machine-readable error code. Stable identifier.
|
|
20439
|
+
*/
|
|
20440
|
+
code: string;
|
|
20441
|
+
};
|
|
20442
|
+
/**
|
|
20443
|
+
* Internal server error
|
|
20444
|
+
*/
|
|
20445
|
+
500: {
|
|
20446
|
+
/**
|
|
20447
|
+
* Human-readable error message. May change wording.
|
|
20448
|
+
*/
|
|
20449
|
+
error: string;
|
|
20450
|
+
/**
|
|
20451
|
+
* Machine-readable error code. Stable identifier.
|
|
20452
|
+
*/
|
|
20453
|
+
code: string;
|
|
20454
|
+
};
|
|
20455
|
+
};
|
|
20456
|
+
export type PostBiorhythmForecastError = PostBiorhythmForecastErrors[keyof PostBiorhythmForecastErrors];
|
|
20457
|
+
export type PostBiorhythmForecastResponses = {
|
|
20458
|
+
/**
|
|
20459
|
+
* Biorhythm forecast with daily readings, summary, and best/worst day identification
|
|
20460
|
+
*/
|
|
20461
|
+
200: {
|
|
20462
|
+
/**
|
|
20463
|
+
* Birth date used for this calculation.
|
|
20464
|
+
*/
|
|
20465
|
+
birthDate: string;
|
|
20466
|
+
/**
|
|
20467
|
+
* First day of the forecast range.
|
|
20468
|
+
*/
|
|
20469
|
+
startDate: string;
|
|
20470
|
+
/**
|
|
20471
|
+
* Last day of the forecast range.
|
|
20472
|
+
*/
|
|
20473
|
+
endDate: string;
|
|
20474
|
+
/**
|
|
20475
|
+
* Number of days in the forecast range.
|
|
20476
|
+
*/
|
|
20477
|
+
totalDays: number;
|
|
20478
|
+
summary: {
|
|
20479
|
+
/**
|
|
20480
|
+
* Date with the highest average primary cycle values in the range. Best day for demanding activities.
|
|
20481
|
+
*/
|
|
20482
|
+
bestDay: string;
|
|
20483
|
+
/**
|
|
20484
|
+
* Date with the lowest average primary cycle values in the range. Best scheduled as a rest day.
|
|
20485
|
+
*/
|
|
20486
|
+
worstDay: string;
|
|
20487
|
+
/**
|
|
20488
|
+
* Total number of days where at least one primary cycle crosses zero in the range.
|
|
20489
|
+
*/
|
|
20490
|
+
criticalDayCount: number;
|
|
20491
|
+
/**
|
|
20492
|
+
* Average energy rating (1-10) across the entire forecast period.
|
|
20493
|
+
*/
|
|
20494
|
+
averageEnergy: number;
|
|
20495
|
+
/**
|
|
20496
|
+
* Overview guidance for the entire forecast period based on average energy and cycle patterns.
|
|
20497
|
+
*/
|
|
20498
|
+
periodAdvice: string;
|
|
20499
|
+
};
|
|
20500
|
+
/**
|
|
20501
|
+
* Array of daily readings, one per day in the forecast range.
|
|
20502
|
+
*/
|
|
20503
|
+
days: Array<{
|
|
20504
|
+
/**
|
|
20505
|
+
* Date of this daily reading (YYYY-MM-DD).
|
|
20506
|
+
*/
|
|
20507
|
+
date: string;
|
|
20508
|
+
/**
|
|
20509
|
+
* Days from birth date to this date.
|
|
20510
|
+
*/
|
|
20511
|
+
daysSinceBirth: number;
|
|
20512
|
+
/**
|
|
20513
|
+
* Physical cycle value (-100 to 100).
|
|
20514
|
+
*/
|
|
20515
|
+
physical: number;
|
|
20516
|
+
/**
|
|
20517
|
+
* Emotional cycle value (-100 to 100).
|
|
20518
|
+
*/
|
|
20519
|
+
emotional: number;
|
|
20520
|
+
/**
|
|
20521
|
+
* Intellectual cycle value (-100 to 100).
|
|
20522
|
+
*/
|
|
20523
|
+
intellectual: number;
|
|
20524
|
+
/**
|
|
20525
|
+
* Intuitive cycle value (-100 to 100).
|
|
20526
|
+
*/
|
|
20527
|
+
intuitive: number;
|
|
20528
|
+
/**
|
|
20529
|
+
* Energy rating for this day (1-10).
|
|
20530
|
+
*/
|
|
20531
|
+
energyRating: number;
|
|
20532
|
+
/**
|
|
20533
|
+
* True if any primary cycle crosses zero on this day.
|
|
20534
|
+
*/
|
|
20535
|
+
isCritical: boolean;
|
|
20536
|
+
/**
|
|
20537
|
+
* Which primary cycles are critical on this day. Empty array if none.
|
|
20538
|
+
*/
|
|
20539
|
+
criticalCycles: Array<string>;
|
|
20540
|
+
}>;
|
|
20541
|
+
};
|
|
20542
|
+
};
|
|
20543
|
+
export type PostBiorhythmForecastResponse = PostBiorhythmForecastResponses[keyof PostBiorhythmForecastResponses];
|
|
20544
|
+
export type PostBiorhythmCriticalDaysData = {
|
|
20545
|
+
body?: {
|
|
20546
|
+
/**
|
|
20547
|
+
* Birth date of the person in YYYY-MM-DD format.
|
|
20548
|
+
*/
|
|
20549
|
+
birthDate: string;
|
|
20550
|
+
/**
|
|
20551
|
+
* Start date of the search range in YYYY-MM-DD format. Defaults to today (UTC).
|
|
20552
|
+
*/
|
|
20553
|
+
startDate?: string;
|
|
20554
|
+
/**
|
|
20555
|
+
* End date of the search range in YYYY-MM-DD format. Defaults to startDate + 90 days. Maximum range: 180 days.
|
|
20556
|
+
*/
|
|
20557
|
+
endDate?: string;
|
|
20558
|
+
};
|
|
20559
|
+
path?: never;
|
|
20560
|
+
query?: {
|
|
20561
|
+
/**
|
|
20562
|
+
* Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English.
|
|
20563
|
+
*/
|
|
20564
|
+
lang?: 'en' | 'tr' | 'de' | 'es' | 'hi' | 'pt' | 'fr' | 'ru';
|
|
20565
|
+
};
|
|
20566
|
+
url: '/biorhythm/critical-days';
|
|
20567
|
+
};
|
|
20568
|
+
export type PostBiorhythmCriticalDaysErrors = {
|
|
20569
|
+
/**
|
|
20570
|
+
* Validation error (missing or invalid parameters)
|
|
20571
|
+
*/
|
|
20572
|
+
400: {
|
|
20573
|
+
/**
|
|
20574
|
+
* Human-readable error message. May change wording.
|
|
20575
|
+
*/
|
|
20576
|
+
error: string;
|
|
20577
|
+
/**
|
|
20578
|
+
* Machine-readable error code. Stable identifier.
|
|
20579
|
+
*/
|
|
20580
|
+
code: string;
|
|
20581
|
+
};
|
|
20582
|
+
/**
|
|
20583
|
+
* Invalid or missing API key
|
|
20584
|
+
*/
|
|
20585
|
+
401: {
|
|
20586
|
+
/**
|
|
20587
|
+
* Human-readable error message. May change wording.
|
|
20588
|
+
*/
|
|
20589
|
+
error: string;
|
|
20590
|
+
/**
|
|
20591
|
+
* Machine-readable error code. Stable identifier.
|
|
20592
|
+
*/
|
|
20593
|
+
code: string;
|
|
20594
|
+
};
|
|
20595
|
+
/**
|
|
20596
|
+
* Monthly rate limit exceeded
|
|
20597
|
+
*/
|
|
20598
|
+
429: {
|
|
20599
|
+
/**
|
|
20600
|
+
* Human-readable error message. May change wording.
|
|
20601
|
+
*/
|
|
20602
|
+
error: string;
|
|
20603
|
+
/**
|
|
20604
|
+
* Machine-readable error code. Stable identifier.
|
|
20605
|
+
*/
|
|
20606
|
+
code: string;
|
|
20607
|
+
};
|
|
20608
|
+
/**
|
|
20609
|
+
* Internal server error
|
|
20610
|
+
*/
|
|
20611
|
+
500: {
|
|
20612
|
+
/**
|
|
20613
|
+
* Human-readable error message. May change wording.
|
|
20614
|
+
*/
|
|
20615
|
+
error: string;
|
|
20616
|
+
/**
|
|
20617
|
+
* Machine-readable error code. Stable identifier.
|
|
20618
|
+
*/
|
|
20619
|
+
code: string;
|
|
20620
|
+
};
|
|
20621
|
+
};
|
|
20622
|
+
export type PostBiorhythmCriticalDaysError = PostBiorhythmCriticalDaysErrors[keyof PostBiorhythmCriticalDaysErrors];
|
|
20623
|
+
export type PostBiorhythmCriticalDaysResponses = {
|
|
20624
|
+
/**
|
|
20625
|
+
* Critical days with zero crossing details, severity levels, and advisory text
|
|
20626
|
+
*/
|
|
20627
|
+
200: {
|
|
20628
|
+
/**
|
|
20629
|
+
* Birth date used for this calculation.
|
|
20630
|
+
*/
|
|
20631
|
+
birthDate: string;
|
|
20632
|
+
/**
|
|
20633
|
+
* Start of the search range.
|
|
20634
|
+
*/
|
|
20635
|
+
startDate: string;
|
|
20636
|
+
/**
|
|
20637
|
+
* End of the search range.
|
|
20638
|
+
*/
|
|
20639
|
+
endDate: string;
|
|
20640
|
+
/**
|
|
20641
|
+
* Total count of critical day events in the range. A double critical day counts as two events.
|
|
20642
|
+
*/
|
|
20643
|
+
totalCriticalDays: number;
|
|
20644
|
+
/**
|
|
20645
|
+
* All critical day events in the range, sorted by date.
|
|
20646
|
+
*/
|
|
20647
|
+
criticalDays: Array<{
|
|
20648
|
+
/**
|
|
20649
|
+
* Date of the zero crossing (YYYY-MM-DD).
|
|
20650
|
+
*/
|
|
20651
|
+
date: string;
|
|
20652
|
+
/**
|
|
20653
|
+
* Which primary cycle crosses zero on this date.
|
|
20654
|
+
*/
|
|
20655
|
+
cycle: string;
|
|
20656
|
+
/**
|
|
20657
|
+
* Cycle period in days.
|
|
20658
|
+
*/
|
|
20659
|
+
period: number;
|
|
20660
|
+
/**
|
|
20661
|
+
* Whether the cycle is rising through zero (ascending) or falling through zero (descending).
|
|
20662
|
+
*/
|
|
20663
|
+
direction: string;
|
|
20664
|
+
/**
|
|
20665
|
+
* How many primary cycles are critical on this date. single, double, or triple.
|
|
20666
|
+
*/
|
|
20667
|
+
severity: string;
|
|
20668
|
+
/**
|
|
20669
|
+
* Advisory text explaining the significance of this critical day and recommended precautions.
|
|
20670
|
+
*/
|
|
20671
|
+
advisory: string;
|
|
20672
|
+
}>;
|
|
20673
|
+
/**
|
|
20674
|
+
* Dates where 2 or more primary cycles cross zero simultaneously. These are particularly significant days requiring extra caution.
|
|
20675
|
+
*/
|
|
20676
|
+
doubleCriticalDays: Array<string>;
|
|
20677
|
+
/**
|
|
20678
|
+
* Date where all 3 primary cycles cross zero simultaneously. Extremely rare event. Null if none found in range.
|
|
20679
|
+
*/
|
|
20680
|
+
tripleCriticalDay: string;
|
|
20681
|
+
};
|
|
20682
|
+
};
|
|
20683
|
+
export type PostBiorhythmCriticalDaysResponse = PostBiorhythmCriticalDaysResponses[keyof PostBiorhythmCriticalDaysResponses];
|
|
20684
|
+
export type PostBiorhythmCompatibilityData = {
|
|
20685
|
+
body?: {
|
|
20686
|
+
person1: {
|
|
20687
|
+
/**
|
|
20688
|
+
* Birth date of person 1 in YYYY-MM-DD format.
|
|
20689
|
+
*/
|
|
20690
|
+
birthDate: string;
|
|
20691
|
+
};
|
|
20692
|
+
person2: {
|
|
20693
|
+
/**
|
|
20694
|
+
* Birth date of person 2 in YYYY-MM-DD format.
|
|
20695
|
+
*/
|
|
20696
|
+
birthDate: string;
|
|
20697
|
+
};
|
|
20698
|
+
/**
|
|
20699
|
+
* Date to evaluate compatibility on in YYYY-MM-DD format. Defaults to today (UTC). Compatibility varies by day since biorhythm cycles are continuous.
|
|
20700
|
+
*/
|
|
20701
|
+
targetDate?: string;
|
|
20702
|
+
};
|
|
20703
|
+
path?: never;
|
|
20704
|
+
query?: {
|
|
20705
|
+
/**
|
|
20706
|
+
* Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English.
|
|
20707
|
+
*/
|
|
20708
|
+
lang?: 'en' | 'tr' | 'de' | 'es' | 'hi' | 'pt' | 'fr' | 'ru';
|
|
20709
|
+
};
|
|
20710
|
+
url: '/biorhythm/compatibility';
|
|
20711
|
+
};
|
|
20712
|
+
export type PostBiorhythmCompatibilityErrors = {
|
|
20713
|
+
/**
|
|
20714
|
+
* Validation error (missing or invalid parameters)
|
|
20715
|
+
*/
|
|
20716
|
+
400: {
|
|
20717
|
+
/**
|
|
20718
|
+
* Human-readable error message. May change wording.
|
|
20719
|
+
*/
|
|
20720
|
+
error: string;
|
|
20721
|
+
/**
|
|
20722
|
+
* Machine-readable error code. Stable identifier.
|
|
20723
|
+
*/
|
|
20724
|
+
code: string;
|
|
20725
|
+
};
|
|
20726
|
+
/**
|
|
20727
|
+
* Invalid or missing API key
|
|
20728
|
+
*/
|
|
20729
|
+
401: {
|
|
20730
|
+
/**
|
|
20731
|
+
* Human-readable error message. May change wording.
|
|
20732
|
+
*/
|
|
20733
|
+
error: string;
|
|
20734
|
+
/**
|
|
20735
|
+
* Machine-readable error code. Stable identifier.
|
|
20736
|
+
*/
|
|
20737
|
+
code: string;
|
|
20738
|
+
};
|
|
20739
|
+
/**
|
|
20740
|
+
* Monthly rate limit exceeded
|
|
20741
|
+
*/
|
|
20742
|
+
429: {
|
|
20743
|
+
/**
|
|
20744
|
+
* Human-readable error message. May change wording.
|
|
20745
|
+
*/
|
|
20746
|
+
error: string;
|
|
20747
|
+
/**
|
|
20748
|
+
* Machine-readable error code. Stable identifier.
|
|
20749
|
+
*/
|
|
20750
|
+
code: string;
|
|
20751
|
+
};
|
|
20752
|
+
/**
|
|
20753
|
+
* Internal server error
|
|
20754
|
+
*/
|
|
20755
|
+
500: {
|
|
20756
|
+
/**
|
|
20757
|
+
* Human-readable error message. May change wording.
|
|
20758
|
+
*/
|
|
20759
|
+
error: string;
|
|
20760
|
+
/**
|
|
20761
|
+
* Machine-readable error code. Stable identifier.
|
|
20762
|
+
*/
|
|
20763
|
+
code: string;
|
|
20764
|
+
};
|
|
20765
|
+
};
|
|
20766
|
+
export type PostBiorhythmCompatibilityError = PostBiorhythmCompatibilityErrors[keyof PostBiorhythmCompatibilityErrors];
|
|
20767
|
+
export type PostBiorhythmCompatibilityResponses = {
|
|
20768
|
+
/**
|
|
20769
|
+
* Biorhythm compatibility analysis with per-cycle alignment, overall score, and relationship guidance
|
|
20770
|
+
*/
|
|
20771
|
+
200: {
|
|
20772
|
+
person1: {
|
|
20773
|
+
/**
|
|
20774
|
+
* Birth date of person 1.
|
|
20775
|
+
*/
|
|
20776
|
+
birthDate: string;
|
|
20777
|
+
};
|
|
20778
|
+
person2: {
|
|
20779
|
+
/**
|
|
20780
|
+
* Birth date of person 2.
|
|
20781
|
+
*/
|
|
20782
|
+
birthDate: string;
|
|
20783
|
+
};
|
|
20784
|
+
/**
|
|
20785
|
+
* Date this compatibility was calculated for.
|
|
20786
|
+
*/
|
|
20787
|
+
targetDate: string;
|
|
20788
|
+
/**
|
|
20789
|
+
* Overall compatibility score from 0 (fully opposed) to 100 (perfectly synchronized).
|
|
20790
|
+
*/
|
|
20791
|
+
overallScore: number;
|
|
20792
|
+
/**
|
|
20793
|
+
* Compatibility rating label. One of: Highly Aligned, Well Aligned, Moderately Aligned, Misaligned, Opposed.
|
|
20794
|
+
*/
|
|
20795
|
+
rating: string;
|
|
20796
|
+
/**
|
|
20797
|
+
* Per-cycle compatibility analysis for physical, emotional, and intellectual cycles.
|
|
20798
|
+
*/
|
|
20799
|
+
cycles: {
|
|
20800
|
+
[key: string]: {
|
|
20801
|
+
/**
|
|
20802
|
+
* Person 1 cycle value on the target date (-100 to 100).
|
|
20803
|
+
*/
|
|
20804
|
+
person1Value: number;
|
|
20805
|
+
/**
|
|
20806
|
+
* Person 2 cycle value on the target date (-100 to 100).
|
|
20807
|
+
*/
|
|
20808
|
+
person2Value: number;
|
|
20809
|
+
/**
|
|
20810
|
+
* Absolute difference between the two values (0-200). Lower values indicate better alignment.
|
|
20811
|
+
*/
|
|
20812
|
+
difference: number;
|
|
20813
|
+
/**
|
|
20814
|
+
* Alignment score from 0 (perfectly opposed) to 100 (perfectly in sync).
|
|
20815
|
+
*/
|
|
20816
|
+
alignment: number;
|
|
20817
|
+
/**
|
|
20818
|
+
* Alignment phase. One of: in_sync, complementary, neutral, opposing.
|
|
20819
|
+
*/
|
|
20820
|
+
phase: string;
|
|
20821
|
+
/**
|
|
20822
|
+
* Human-readable description of how this cycle alignment affects the relationship.
|
|
20823
|
+
*/
|
|
20824
|
+
description: string;
|
|
20825
|
+
};
|
|
20826
|
+
};
|
|
20827
|
+
/**
|
|
20828
|
+
* Relationship strengths based on the compatibility profile.
|
|
20829
|
+
*/
|
|
20830
|
+
strengths: Array<string>;
|
|
20831
|
+
/**
|
|
20832
|
+
* Potential relationship challenges to be aware of.
|
|
20833
|
+
*/
|
|
20834
|
+
challenges: Array<string>;
|
|
20835
|
+
/**
|
|
20836
|
+
* Practical relationship guidance based on the combined cycle analysis.
|
|
20837
|
+
*/
|
|
20838
|
+
advice: string;
|
|
20839
|
+
dailySync: {
|
|
20840
|
+
/**
|
|
20841
|
+
* Absolute difference in physical cycle values (0-200). Lower = more aligned.
|
|
20842
|
+
*/
|
|
20843
|
+
physicalDiff: number;
|
|
20844
|
+
/**
|
|
20845
|
+
* Absolute difference in emotional cycle values (0-200). Lower = more aligned.
|
|
20846
|
+
*/
|
|
20847
|
+
emotionalDiff: number;
|
|
20848
|
+
/**
|
|
20849
|
+
* Absolute difference in intellectual cycle values (0-200). Lower = more aligned.
|
|
20850
|
+
*/
|
|
20851
|
+
intellectualDiff: number;
|
|
20852
|
+
};
|
|
20853
|
+
};
|
|
20854
|
+
};
|
|
20855
|
+
export type PostBiorhythmCompatibilityResponse = PostBiorhythmCompatibilityResponses[keyof PostBiorhythmCompatibilityResponses];
|
|
20856
|
+
export type PostBiorhythmPhasesData = {
|
|
20857
|
+
body?: {
|
|
20858
|
+
/**
|
|
20859
|
+
* Birth date of the person in YYYY-MM-DD format.
|
|
20860
|
+
*/
|
|
20861
|
+
birthDate: string;
|
|
20862
|
+
/**
|
|
20863
|
+
* Date to get phase information for in YYYY-MM-DD format. Defaults to today (UTC).
|
|
20864
|
+
*/
|
|
20865
|
+
targetDate?: string;
|
|
20866
|
+
};
|
|
20867
|
+
path?: never;
|
|
20868
|
+
query?: {
|
|
20869
|
+
/**
|
|
20870
|
+
* Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English.
|
|
20871
|
+
*/
|
|
20872
|
+
lang?: 'en' | 'tr' | 'de' | 'es' | 'hi' | 'pt' | 'fr' | 'ru';
|
|
20873
|
+
};
|
|
20874
|
+
url: '/biorhythm/phases';
|
|
20875
|
+
};
|
|
20876
|
+
export type PostBiorhythmPhasesErrors = {
|
|
20877
|
+
/**
|
|
20878
|
+
* Validation error (missing or invalid parameters)
|
|
20879
|
+
*/
|
|
20880
|
+
400: {
|
|
20881
|
+
/**
|
|
20882
|
+
* Human-readable error message. May change wording.
|
|
20883
|
+
*/
|
|
20884
|
+
error: string;
|
|
20885
|
+
/**
|
|
20886
|
+
* Machine-readable error code. Stable identifier.
|
|
20887
|
+
*/
|
|
20888
|
+
code: string;
|
|
20889
|
+
};
|
|
20890
|
+
/**
|
|
20891
|
+
* Invalid or missing API key
|
|
20892
|
+
*/
|
|
20893
|
+
401: {
|
|
20894
|
+
/**
|
|
20895
|
+
* Human-readable error message. May change wording.
|
|
20896
|
+
*/
|
|
20897
|
+
error: string;
|
|
20898
|
+
/**
|
|
20899
|
+
* Machine-readable error code. Stable identifier.
|
|
20900
|
+
*/
|
|
20901
|
+
code: string;
|
|
20902
|
+
};
|
|
20903
|
+
/**
|
|
20904
|
+
* Monthly rate limit exceeded
|
|
20905
|
+
*/
|
|
20906
|
+
429: {
|
|
20907
|
+
/**
|
|
20908
|
+
* Human-readable error message. May change wording.
|
|
20909
|
+
*/
|
|
20910
|
+
error: string;
|
|
20911
|
+
/**
|
|
20912
|
+
* Machine-readable error code. Stable identifier.
|
|
20913
|
+
*/
|
|
20914
|
+
code: string;
|
|
20915
|
+
};
|
|
20916
|
+
/**
|
|
20917
|
+
* Internal server error
|
|
20918
|
+
*/
|
|
20919
|
+
500: {
|
|
20920
|
+
/**
|
|
20921
|
+
* Human-readable error message. May change wording.
|
|
20922
|
+
*/
|
|
20923
|
+
error: string;
|
|
20924
|
+
/**
|
|
20925
|
+
* Machine-readable error code. Stable identifier.
|
|
20926
|
+
*/
|
|
20927
|
+
code: string;
|
|
20928
|
+
};
|
|
20929
|
+
};
|
|
20930
|
+
export type PostBiorhythmPhasesError = PostBiorhythmPhasesErrors[keyof PostBiorhythmPhasesErrors];
|
|
20931
|
+
export type PostBiorhythmPhasesResponses = {
|
|
20932
|
+
/**
|
|
20933
|
+
* Phase information for all 10 cycles with summary
|
|
20934
|
+
*/
|
|
20935
|
+
200: {
|
|
20936
|
+
/**
|
|
20937
|
+
* Birth date used for this calculation.
|
|
20938
|
+
*/
|
|
20939
|
+
birthDate: string;
|
|
20940
|
+
/**
|
|
20941
|
+
* Date this phase info is for.
|
|
20942
|
+
*/
|
|
20943
|
+
targetDate: string;
|
|
20944
|
+
/**
|
|
20945
|
+
* Total days alive from birth date to target date.
|
|
20946
|
+
*/
|
|
20947
|
+
daysSinceBirth: number;
|
|
20948
|
+
/**
|
|
20949
|
+
* Phase information for all 10 cycles keyed by cycle ID.
|
|
20950
|
+
*/
|
|
20951
|
+
phases: {
|
|
20952
|
+
[key: string]: {
|
|
20953
|
+
/**
|
|
20954
|
+
* Cycle value from -100 to 100.
|
|
20955
|
+
*/
|
|
20956
|
+
value: number;
|
|
20957
|
+
/**
|
|
20958
|
+
* Current phase identifier.
|
|
20959
|
+
*/
|
|
20960
|
+
phase: string;
|
|
20961
|
+
/**
|
|
20962
|
+
* Human-readable phase label.
|
|
20963
|
+
*/
|
|
20964
|
+
phaseLabel: string;
|
|
20965
|
+
/**
|
|
20966
|
+
* Current day position within the cycle.
|
|
20967
|
+
*/
|
|
20968
|
+
dayInCycle: number;
|
|
20969
|
+
/**
|
|
20970
|
+
* Cycle period in days. 0 for composite cycles (passion, mastery, wisdom).
|
|
20971
|
+
*/
|
|
20972
|
+
totalDays: number;
|
|
20973
|
+
/**
|
|
20974
|
+
* Days until next zero crossing.
|
|
20975
|
+
*/
|
|
20976
|
+
daysUntilCritical: number;
|
|
20977
|
+
/**
|
|
20978
|
+
* Short-term direction: rising, falling, peaking, or bottoming.
|
|
20979
|
+
*/
|
|
20980
|
+
trend: string;
|
|
20981
|
+
};
|
|
20982
|
+
};
|
|
20983
|
+
/**
|
|
20984
|
+
* Quick overview string summarizing the current state of all cycles.
|
|
20985
|
+
*/
|
|
20986
|
+
summary: string;
|
|
20987
|
+
};
|
|
20988
|
+
};
|
|
20989
|
+
export type PostBiorhythmPhasesResponse = PostBiorhythmPhasesResponses[keyof PostBiorhythmPhasesResponses];
|
|
20990
|
+
export type PostBiorhythmDailyData = {
|
|
20991
|
+
body?: {
|
|
20992
|
+
/**
|
|
20993
|
+
* Optional seed for reproducible readings. Same seed + same date = same reading every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
|
|
20994
|
+
*/
|
|
20995
|
+
seed?: string;
|
|
20996
|
+
/**
|
|
20997
|
+
* Date for the reading in YYYY-MM-DD format. Defaults to today (UTC). Useful for viewing past daily readings or pre-generating future ones.
|
|
20998
|
+
*/
|
|
20999
|
+
date?: string;
|
|
21000
|
+
};
|
|
21001
|
+
path?: never;
|
|
21002
|
+
query?: {
|
|
21003
|
+
/**
|
|
21004
|
+
* Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English.
|
|
21005
|
+
*/
|
|
21006
|
+
lang?: 'en' | 'tr' | 'de' | 'es' | 'hi' | 'pt' | 'fr' | 'ru';
|
|
21007
|
+
};
|
|
21008
|
+
url: '/biorhythm/daily';
|
|
21009
|
+
};
|
|
21010
|
+
export type PostBiorhythmDailyErrors = {
|
|
21011
|
+
/**
|
|
21012
|
+
* Validation error (missing or invalid parameters)
|
|
21013
|
+
*/
|
|
21014
|
+
400: {
|
|
21015
|
+
/**
|
|
21016
|
+
* Human-readable error message. May change wording.
|
|
21017
|
+
*/
|
|
21018
|
+
error: string;
|
|
21019
|
+
/**
|
|
21020
|
+
* Machine-readable error code. Stable identifier.
|
|
21021
|
+
*/
|
|
21022
|
+
code: string;
|
|
21023
|
+
};
|
|
21024
|
+
/**
|
|
21025
|
+
* Invalid or missing API key
|
|
21026
|
+
*/
|
|
21027
|
+
401: {
|
|
21028
|
+
/**
|
|
21029
|
+
* Human-readable error message. May change wording.
|
|
21030
|
+
*/
|
|
21031
|
+
error: string;
|
|
21032
|
+
/**
|
|
21033
|
+
* Machine-readable error code. Stable identifier.
|
|
21034
|
+
*/
|
|
21035
|
+
code: string;
|
|
21036
|
+
};
|
|
21037
|
+
/**
|
|
21038
|
+
* Monthly rate limit exceeded
|
|
21039
|
+
*/
|
|
21040
|
+
429: {
|
|
21041
|
+
/**
|
|
21042
|
+
* Human-readable error message. May change wording.
|
|
21043
|
+
*/
|
|
21044
|
+
error: string;
|
|
21045
|
+
/**
|
|
21046
|
+
* Machine-readable error code. Stable identifier.
|
|
21047
|
+
*/
|
|
21048
|
+
code: string;
|
|
21049
|
+
};
|
|
21050
|
+
/**
|
|
21051
|
+
* Internal server error
|
|
21052
|
+
*/
|
|
21053
|
+
500: {
|
|
21054
|
+
/**
|
|
21055
|
+
* Human-readable error message. May change wording.
|
|
21056
|
+
*/
|
|
21057
|
+
error: string;
|
|
21058
|
+
/**
|
|
21059
|
+
* Machine-readable error code. Stable identifier.
|
|
21060
|
+
*/
|
|
21061
|
+
code: string;
|
|
21062
|
+
};
|
|
21063
|
+
};
|
|
21064
|
+
export type PostBiorhythmDailyError = PostBiorhythmDailyErrors[keyof PostBiorhythmDailyErrors];
|
|
21065
|
+
export type PostBiorhythmDailyResponses = {
|
|
21066
|
+
/**
|
|
21067
|
+
* Daily biorhythm reading with spotlight cycle and actionable guidance
|
|
21068
|
+
*/
|
|
21069
|
+
200: {
|
|
21070
|
+
/**
|
|
21071
|
+
* Date this daily reading is for (YYYY-MM-DD, UTC).
|
|
21072
|
+
*/
|
|
21073
|
+
date: string;
|
|
21074
|
+
/**
|
|
21075
|
+
* Computed seed used for this reading. Same seed always produces the same reading.
|
|
21076
|
+
*/
|
|
21077
|
+
seed: string;
|
|
21078
|
+
/**
|
|
21079
|
+
* Overall energy score from 1 to 10.
|
|
21080
|
+
*/
|
|
21081
|
+
energyRating: number;
|
|
21082
|
+
/**
|
|
21083
|
+
* Summary phase. One of: high_energy, mixed, recovery, critical.
|
|
21084
|
+
*/
|
|
21085
|
+
overallPhase: string;
|
|
21086
|
+
spotlight: {
|
|
21087
|
+
/**
|
|
21088
|
+
* Which primary cycle is featured as the daily spotlight.
|
|
21089
|
+
*/
|
|
21090
|
+
cycle: string;
|
|
21091
|
+
/**
|
|
21092
|
+
* Current value of the spotlight cycle (-100 to 100).
|
|
21093
|
+
*/
|
|
21094
|
+
value: number;
|
|
21095
|
+
/**
|
|
21096
|
+
* Current phase of the spotlight cycle.
|
|
21097
|
+
*/
|
|
21098
|
+
phase: string;
|
|
21099
|
+
/**
|
|
21100
|
+
* Personalized message about the spotlight cycle and what it means for today.
|
|
21101
|
+
*/
|
|
21102
|
+
message: string;
|
|
21103
|
+
};
|
|
21104
|
+
quickRead: {
|
|
21105
|
+
/**
|
|
21106
|
+
* Physical cycle value (-100 to 100).
|
|
21107
|
+
*/
|
|
21108
|
+
physical: number;
|
|
21109
|
+
/**
|
|
21110
|
+
* Emotional cycle value (-100 to 100).
|
|
21111
|
+
*/
|
|
21112
|
+
emotional: number;
|
|
21113
|
+
/**
|
|
21114
|
+
* Intellectual cycle value (-100 to 100).
|
|
21115
|
+
*/
|
|
21116
|
+
intellectual: number;
|
|
21117
|
+
};
|
|
21118
|
+
/**
|
|
21119
|
+
* Concise daily biorhythm message combining energy rating and spotlight cycle.
|
|
21120
|
+
*/
|
|
21121
|
+
dailyMessage: string;
|
|
21122
|
+
/**
|
|
21123
|
+
* Actionable 1-2 sentence guidance for the day.
|
|
21124
|
+
*/
|
|
21125
|
+
advice: string;
|
|
21126
|
+
};
|
|
21127
|
+
};
|
|
21128
|
+
export type PostBiorhythmDailyResponse = PostBiorhythmDailyResponses[keyof PostBiorhythmDailyResponses];
|
|
20199
21129
|
export type GetLocationSearchData = {
|
|
20200
21130
|
body?: never;
|
|
20201
21131
|
path?: never;
|