@fereai/sdk 0.2.1 → 0.3.0-dev.25
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/client.d.ts +0 -1
- package/dist/client.js +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/low-level.d.ts +1 -2
- package/dist/low-level.js +0 -3
- package/dist/types.d.ts +0 -8
- package/package.json +4 -2
package/dist/client.d.ts
CHANGED
|
@@ -38,7 +38,6 @@ export declare class FereClient {
|
|
|
38
38
|
getWallets: () => Promise<unknown>;
|
|
39
39
|
getHoldings: () => Promise<unknown>;
|
|
40
40
|
getCredits: () => Promise<import("./types.js").CreditsInfo>;
|
|
41
|
-
claimDailyCredits: () => Promise<import("./types.js").ClaimDailyCreditsResponse>;
|
|
42
41
|
getUser: () => Promise<UserResponse>;
|
|
43
42
|
getChains: () => Promise<unknown>;
|
|
44
43
|
getEarnInfo: () => Promise<unknown>;
|
package/dist/client.js
CHANGED
|
@@ -99,7 +99,6 @@ class FereClient {
|
|
|
99
99
|
getWallets = () => this.api.getWallets();
|
|
100
100
|
getHoldings = () => this.api.getHoldings();
|
|
101
101
|
getCredits = () => this.api.getCredits();
|
|
102
|
-
claimDailyCredits = () => this.api.claimDailyCredits();
|
|
103
102
|
getUser = () => this.api.getUser();
|
|
104
103
|
getChains = () => this.api.getChains();
|
|
105
104
|
getEarnInfo = () => this.api.getEarnInfo();
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { FereAPI } from "./low-level.js";
|
|
2
2
|
export { FereClient } from "./client.js";
|
|
3
3
|
export { AuthManager } from "./auth.js";
|
|
4
|
-
export type { ChatEvent, TaskResponse, TaskStatusResponse, SwapRequest, LimitOrderRequest, HooksRequest, DepositRequest, WithdrawRequest, CreditsInfo, WalletInfo, UserResponse,
|
|
4
|
+
export type { ChatEvent, TaskResponse, TaskStatusResponse, SwapRequest, LimitOrderRequest, HooksRequest, DepositRequest, WithdrawRequest, CreditsInfo, WalletInfo, UserResponse, } from "./types.js";
|
|
5
5
|
export { TaskTimeoutError } from "./types.js";
|
package/dist/low-level.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Low-level SDK — 1:1 typed wrappers around every gateway endpoint.
|
|
3
3
|
*/
|
|
4
|
-
import type { ChatEvent,
|
|
4
|
+
import type { ChatEvent, CreditsInfo, DepositRequest, HooksRequest, LimitOrderRequest, SwapRequest, TaskResponse, TaskStatusResponse, UserResponse, WithdrawRequest } from "./types.js";
|
|
5
5
|
export declare class FereAPI {
|
|
6
6
|
private readonly baseUrl;
|
|
7
7
|
private readonly auth;
|
|
@@ -53,7 +53,6 @@ export declare class FereAPI {
|
|
|
53
53
|
}): Promise<unknown>;
|
|
54
54
|
notificationStream(): AsyncGenerator<ChatEvent>;
|
|
55
55
|
getCredits(): Promise<CreditsInfo>;
|
|
56
|
-
claimDailyCredits(): Promise<ClaimDailyCreditsResponse>;
|
|
57
56
|
getUser(): Promise<UserResponse>;
|
|
58
57
|
getChains(): Promise<unknown>;
|
|
59
58
|
}
|
package/dist/low-level.js
CHANGED
|
@@ -275,9 +275,6 @@ class FereAPI {
|
|
|
275
275
|
async getCredits() {
|
|
276
276
|
return this.authedGet("/v1/credits");
|
|
277
277
|
}
|
|
278
|
-
async claimDailyCredits() {
|
|
279
|
-
return this.authedPost("/v1/credits/claim-daily", {});
|
|
280
|
-
}
|
|
281
278
|
async getUser() {
|
|
282
279
|
return this.authedGet("/v1/user");
|
|
283
280
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -29,14 +29,6 @@ export interface WalletInfo {
|
|
|
29
29
|
export interface CreditsInfo {
|
|
30
30
|
credits_available: number | null;
|
|
31
31
|
}
|
|
32
|
-
export interface ClaimDailyCreditsResponse {
|
|
33
|
-
success: boolean;
|
|
34
|
-
credits_claimed: number | null;
|
|
35
|
-
new_balance: number | null;
|
|
36
|
-
next_claim_available_at: string | null;
|
|
37
|
-
error: string | null;
|
|
38
|
-
current_balance: number | null;
|
|
39
|
-
}
|
|
40
32
|
export interface UserResponse {
|
|
41
33
|
name: string | null;
|
|
42
34
|
credits_available: number | null;
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fereai/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-dev.25",
|
|
4
4
|
"description": "TypeScript SDK for the FereAI Gateway API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
8
10
|
"scripts": {
|
|
9
11
|
"build": "tsc",
|
|
10
12
|
"prepublishOnly": "tsc"
|