@photon-ai/dashboard-api 1.6.19 → 1.6.21
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 +35 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { Elysia } from 'elysia';
|
|
8
8
|
|
|
9
|
+
type CaptchaProvider = "google-recaptcha" | "turnstile";
|
|
10
|
+
|
|
9
11
|
type AccountType = "developer" | "organization";
|
|
10
12
|
|
|
11
13
|
interface BillingPrice {
|
|
@@ -388,6 +390,38 @@ declare const publicApp: Elysia<"", {
|
|
|
388
390
|
};
|
|
389
391
|
};
|
|
390
392
|
};
|
|
393
|
+
} & {
|
|
394
|
+
api: {
|
|
395
|
+
captcha: {
|
|
396
|
+
provider: {
|
|
397
|
+
get: {
|
|
398
|
+
body: unknown;
|
|
399
|
+
params: {};
|
|
400
|
+
query: {
|
|
401
|
+
action: "phone-otp-send" | "phone-otp-interactive" | "sign-up" | "sign-up-interactive" | "sign-in" | "password-reset";
|
|
402
|
+
};
|
|
403
|
+
headers: unknown;
|
|
404
|
+
response: {
|
|
405
|
+
200: {
|
|
406
|
+
provider: CaptchaProvider;
|
|
407
|
+
};
|
|
408
|
+
422: {
|
|
409
|
+
type: "validation";
|
|
410
|
+
on: string;
|
|
411
|
+
summary?: string;
|
|
412
|
+
message?: string;
|
|
413
|
+
found?: unknown;
|
|
414
|
+
property?: string;
|
|
415
|
+
expected?: string;
|
|
416
|
+
};
|
|
417
|
+
429: {
|
|
418
|
+
error: string;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
391
425
|
} & {
|
|
392
426
|
api: {
|
|
393
427
|
projects: {
|
|
@@ -3482,6 +3516,7 @@ declare const publicApp: Elysia<"", {
|
|
|
3482
3516
|
send: {
|
|
3483
3517
|
post: {
|
|
3484
3518
|
body: {
|
|
3519
|
+
browserId?: string | undefined;
|
|
3485
3520
|
captchaToken?: string | undefined;
|
|
3486
3521
|
phone: string;
|
|
3487
3522
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@photon-ai/dashboard-api",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.21",
|
|
4
4
|
"description": "Public API type contract for the Photon Dashboard. Use with @elysiajs/eden treaty for end-to-end type-safe API calls.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/photon-hq/dashboard",
|