@robosystems/client 0.1.18 → 0.1.20
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/bin/create-feature +104 -0
- package/client/utils.gen.js +14 -1
- package/client/utils.gen.ts +23 -2
- package/core/bodySerializer.gen.js +3 -0
- package/core/bodySerializer.gen.ts +2 -0
- package/package.json +8 -2
- package/sdk/client/utils.gen.js +14 -1
- package/sdk/client/utils.gen.ts +23 -2
- package/sdk/core/bodySerializer.gen.js +3 -0
- package/sdk/core/bodySerializer.gen.ts +2 -0
- package/sdk/sdk.gen.d.ts +153 -115
- package/sdk/sdk.gen.js +315 -185
- package/sdk/sdk.gen.ts +314 -184
- package/sdk/types.gen.d.ts +678 -192
- package/sdk/types.gen.ts +713 -193
- package/sdk-extensions/README.md +2 -3
- package/sdk.gen.d.ts +153 -115
- package/sdk.gen.js +315 -185
- package/sdk.gen.ts +314 -184
- package/types.gen.d.ts +678 -192
- package/types.gen.ts +713 -193
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
# Create feature branch script - local Git operations
|
|
5
|
+
# Creates a new feature/bugfix/hotfix branch locally and pushes to remote
|
|
6
|
+
# Usage: ./bin/create-feature [feature|bugfix|hotfix|chore|refactor] [branch-name] [base-branch]
|
|
7
|
+
|
|
8
|
+
# Default values
|
|
9
|
+
BRANCH_TYPE=${1:-feature}
|
|
10
|
+
BRANCH_NAME=${2:-}
|
|
11
|
+
BASE_BRANCH=${3:-main}
|
|
12
|
+
|
|
13
|
+
# Validate branch type
|
|
14
|
+
if [[ "$BRANCH_TYPE" != "feature" && "$BRANCH_TYPE" != "bugfix" && "$BRANCH_TYPE" != "hotfix" && "$BRANCH_TYPE" != "chore" && "$BRANCH_TYPE" != "refactor" ]]; then
|
|
15
|
+
echo "❌ Invalid branch type: $BRANCH_TYPE"
|
|
16
|
+
echo "Valid types: feature, bugfix, hotfix, chore, refactor"
|
|
17
|
+
exit 1
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
# Check if branch name was provided
|
|
21
|
+
if [ -z "$BRANCH_NAME" ]; then
|
|
22
|
+
echo "❌ Branch name is required"
|
|
23
|
+
echo "Usage: $0 [type] [name] [base_branch]"
|
|
24
|
+
echo "Example: $0 feature add-user-auth main"
|
|
25
|
+
exit 1
|
|
26
|
+
fi
|
|
27
|
+
|
|
28
|
+
# Sanitize branch name
|
|
29
|
+
SANITIZED_NAME=$(echo "$BRANCH_NAME" | sed 's/[^a-zA-Z0-9._-]/-/g' | sed 's/--*/-/g' | sed 's/^-//;s/-$//')
|
|
30
|
+
FULL_BRANCH="${BRANCH_TYPE}/${SANITIZED_NAME}"
|
|
31
|
+
|
|
32
|
+
echo "🚀 Creating feature branch locally..."
|
|
33
|
+
echo "📋 Details:"
|
|
34
|
+
echo " Type: $BRANCH_TYPE"
|
|
35
|
+
echo " Name: $SANITIZED_NAME"
|
|
36
|
+
echo " Full Branch: $FULL_BRANCH"
|
|
37
|
+
echo " Base Branch: $BASE_BRANCH"
|
|
38
|
+
echo ""
|
|
39
|
+
|
|
40
|
+
# Check for uncommitted changes
|
|
41
|
+
if ! git diff --quiet || ! git diff --cached --quiet; then
|
|
42
|
+
echo "⚠️ You have uncommitted changes."
|
|
43
|
+
read -p "Do you want to stash them? (y/N): " -n 1 -r
|
|
44
|
+
echo
|
|
45
|
+
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
46
|
+
git stash push -m "Auto-stash before creating branch $FULL_BRANCH"
|
|
47
|
+
echo "✅ Changes stashed"
|
|
48
|
+
else
|
|
49
|
+
echo "❌ Please commit or stash your changes first"
|
|
50
|
+
exit 1
|
|
51
|
+
fi
|
|
52
|
+
fi
|
|
53
|
+
|
|
54
|
+
# Fetch latest changes from remote
|
|
55
|
+
echo "📥 Fetching latest changes from remote..."
|
|
56
|
+
git fetch origin
|
|
57
|
+
|
|
58
|
+
# Check if branch already exists (local or remote)
|
|
59
|
+
if git show-ref --verify --quiet refs/heads/$FULL_BRANCH; then
|
|
60
|
+
echo "❌ Branch $FULL_BRANCH already exists locally"
|
|
61
|
+
exit 1
|
|
62
|
+
fi
|
|
63
|
+
|
|
64
|
+
if git show-ref --verify --quiet refs/remotes/origin/$FULL_BRANCH; then
|
|
65
|
+
echo "❌ Branch $FULL_BRANCH already exists on remote"
|
|
66
|
+
echo "💡 To check it out: git checkout -b $FULL_BRANCH origin/$FULL_BRANCH"
|
|
67
|
+
exit 1
|
|
68
|
+
fi
|
|
69
|
+
|
|
70
|
+
# Check if base branch exists on remote
|
|
71
|
+
if ! git show-ref --verify --quiet refs/remotes/origin/$BASE_BRANCH; then
|
|
72
|
+
echo "❌ Base branch $BASE_BRANCH does not exist on remote"
|
|
73
|
+
echo "💡 Available branches:"
|
|
74
|
+
git branch -r | grep -v HEAD | sed 's/origin\///' | head -10
|
|
75
|
+
exit 1
|
|
76
|
+
fi
|
|
77
|
+
|
|
78
|
+
# Create and checkout the new branch from the base branch
|
|
79
|
+
echo "🔨 Creating branch $FULL_BRANCH from origin/$BASE_BRANCH..."
|
|
80
|
+
git checkout -b $FULL_BRANCH origin/$BASE_BRANCH
|
|
81
|
+
|
|
82
|
+
# Push the new branch to remote with upstream tracking
|
|
83
|
+
echo "📤 Pushing branch to remote..."
|
|
84
|
+
git push -u origin $FULL_BRANCH
|
|
85
|
+
|
|
86
|
+
echo ""
|
|
87
|
+
echo "🎉 Successfully created and checked out $FULL_BRANCH"
|
|
88
|
+
echo ""
|
|
89
|
+
echo "📝 Next steps:"
|
|
90
|
+
echo " 1. Make your changes and commit them"
|
|
91
|
+
echo " 2. Push your changes: git push"
|
|
92
|
+
echo " 3. Create a PR: gh pr create --base $BASE_BRANCH --title \"Your PR title\" --body \"Your PR description\""
|
|
93
|
+
echo " or use: npm run pr:create"
|
|
94
|
+
|
|
95
|
+
# Check if we had stashed changes
|
|
96
|
+
if git stash list | grep -q "Auto-stash before creating branch $FULL_BRANCH"; then
|
|
97
|
+
echo ""
|
|
98
|
+
read -p "Do you want to apply your stashed changes? (y/N): " -n 1 -r
|
|
99
|
+
echo
|
|
100
|
+
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
101
|
+
git stash pop
|
|
102
|
+
echo "✅ Stashed changes applied"
|
|
103
|
+
fi
|
|
104
|
+
fi
|
package/client/utils.gen.js
CHANGED
|
@@ -135,8 +135,22 @@ const getParseAs = (contentType) => {
|
|
|
135
135
|
return;
|
|
136
136
|
};
|
|
137
137
|
exports.getParseAs = getParseAs;
|
|
138
|
+
const checkForExistence = (options, name) => {
|
|
139
|
+
if (!name) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
if (options.headers.has(name) ||
|
|
143
|
+
options.query?.[name] ||
|
|
144
|
+
options.headers.get('Cookie')?.includes(`${name}=`)) {
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
return false;
|
|
148
|
+
};
|
|
138
149
|
const setAuthParams = async ({ security, ...options }) => {
|
|
139
150
|
for (const auth of security) {
|
|
151
|
+
if (checkForExistence(options, auth.name)) {
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
140
154
|
const token = await (0, auth_gen_1.getAuthToken)(auth, options.auth);
|
|
141
155
|
if (!token) {
|
|
142
156
|
continue;
|
|
@@ -157,7 +171,6 @@ const setAuthParams = async ({ security, ...options }) => {
|
|
|
157
171
|
options.headers.set(name, token);
|
|
158
172
|
break;
|
|
159
173
|
}
|
|
160
|
-
return;
|
|
161
174
|
}
|
|
162
175
|
};
|
|
163
176
|
exports.setAuthParams = setAuthParams;
|
package/client/utils.gen.ts
CHANGED
|
@@ -188,6 +188,25 @@ export const getParseAs = (
|
|
|
188
188
|
return;
|
|
189
189
|
};
|
|
190
190
|
|
|
191
|
+
const checkForExistence = (
|
|
192
|
+
options: Pick<RequestOptions, 'auth' | 'query'> & {
|
|
193
|
+
headers: Headers;
|
|
194
|
+
},
|
|
195
|
+
name?: string,
|
|
196
|
+
): boolean => {
|
|
197
|
+
if (!name) {
|
|
198
|
+
return false;
|
|
199
|
+
}
|
|
200
|
+
if (
|
|
201
|
+
options.headers.has(name) ||
|
|
202
|
+
options.query?.[name] ||
|
|
203
|
+
options.headers.get('Cookie')?.includes(`${name}=`)
|
|
204
|
+
) {
|
|
205
|
+
return true;
|
|
206
|
+
}
|
|
207
|
+
return false;
|
|
208
|
+
};
|
|
209
|
+
|
|
191
210
|
export const setAuthParams = async ({
|
|
192
211
|
security,
|
|
193
212
|
...options
|
|
@@ -196,6 +215,10 @@ export const setAuthParams = async ({
|
|
|
196
215
|
headers: Headers;
|
|
197
216
|
}) => {
|
|
198
217
|
for (const auth of security) {
|
|
218
|
+
if (checkForExistence(options, auth.name)) {
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
|
|
199
222
|
const token = await getAuthToken(auth, options.auth);
|
|
200
223
|
|
|
201
224
|
if (!token) {
|
|
@@ -219,8 +242,6 @@ export const setAuthParams = async ({
|
|
|
219
242
|
options.headers.set(name, token);
|
|
220
243
|
break;
|
|
221
244
|
}
|
|
222
|
-
|
|
223
|
-
return;
|
|
224
245
|
}
|
|
225
246
|
};
|
|
226
247
|
|
|
@@ -6,6 +6,9 @@ const serializeFormDataPair = (data, key, value) => {
|
|
|
6
6
|
if (typeof value === 'string' || value instanceof Blob) {
|
|
7
7
|
data.append(key, value);
|
|
8
8
|
}
|
|
9
|
+
else if (value instanceof Date) {
|
|
10
|
+
data.append(key, value.toISOString());
|
|
11
|
+
}
|
|
9
12
|
else {
|
|
10
13
|
data.append(key, JSON.stringify(value));
|
|
11
14
|
}
|
|
@@ -23,6 +23,8 @@ const serializeFormDataPair = (
|
|
|
23
23
|
): void => {
|
|
24
24
|
if (typeof value === 'string' || value instanceof Blob) {
|
|
25
25
|
data.append(key, value);
|
|
26
|
+
} else if (value instanceof Date) {
|
|
27
|
+
data.append(key, value.toISOString());
|
|
26
28
|
} else {
|
|
27
29
|
data.append(key, JSON.stringify(value));
|
|
28
30
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robosystems/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "TypeScript client library for RoboSystems Financial Knowledge Graph API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"create-feature": "./bin/create-feature"
|
|
9
|
+
},
|
|
7
10
|
"exports": {
|
|
8
11
|
".": {
|
|
9
12
|
"types": "./index.d.ts",
|
|
@@ -68,6 +71,9 @@
|
|
|
68
71
|
"lint:fix": "eslint . --fix",
|
|
69
72
|
"typecheck": "tsc --noEmit",
|
|
70
73
|
"validate": "npm run format:check && npm run lint && npm run typecheck",
|
|
74
|
+
"feature:create": "./bin/create-feature",
|
|
75
|
+
"release:create": "./bin/create-release",
|
|
76
|
+
"pr:create": "./bin/create-pr",
|
|
71
77
|
"validate:fix": "npm run format && npm run lint:fix && npm run typecheck",
|
|
72
78
|
"test": "npm run validate",
|
|
73
79
|
"test:all": "npm run validate && npm run build",
|
|
@@ -108,7 +114,7 @@
|
|
|
108
114
|
"eslint-plugin-prettier": "^5.0.0",
|
|
109
115
|
"prettier": "^3.0.0",
|
|
110
116
|
"prettier-plugin-organize-imports": "^4.0.0",
|
|
111
|
-
"typescript": "
|
|
117
|
+
"typescript": "5.5.4"
|
|
112
118
|
},
|
|
113
119
|
"publishConfig": {
|
|
114
120
|
"access": "public",
|
package/sdk/client/utils.gen.js
CHANGED
|
@@ -135,8 +135,22 @@ const getParseAs = (contentType) => {
|
|
|
135
135
|
return;
|
|
136
136
|
};
|
|
137
137
|
exports.getParseAs = getParseAs;
|
|
138
|
+
const checkForExistence = (options, name) => {
|
|
139
|
+
if (!name) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
if (options.headers.has(name) ||
|
|
143
|
+
options.query?.[name] ||
|
|
144
|
+
options.headers.get('Cookie')?.includes(`${name}=`)) {
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
return false;
|
|
148
|
+
};
|
|
138
149
|
const setAuthParams = async ({ security, ...options }) => {
|
|
139
150
|
for (const auth of security) {
|
|
151
|
+
if (checkForExistence(options, auth.name)) {
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
140
154
|
const token = await (0, auth_gen_1.getAuthToken)(auth, options.auth);
|
|
141
155
|
if (!token) {
|
|
142
156
|
continue;
|
|
@@ -157,7 +171,6 @@ const setAuthParams = async ({ security, ...options }) => {
|
|
|
157
171
|
options.headers.set(name, token);
|
|
158
172
|
break;
|
|
159
173
|
}
|
|
160
|
-
return;
|
|
161
174
|
}
|
|
162
175
|
};
|
|
163
176
|
exports.setAuthParams = setAuthParams;
|
package/sdk/client/utils.gen.ts
CHANGED
|
@@ -188,6 +188,25 @@ export const getParseAs = (
|
|
|
188
188
|
return;
|
|
189
189
|
};
|
|
190
190
|
|
|
191
|
+
const checkForExistence = (
|
|
192
|
+
options: Pick<RequestOptions, 'auth' | 'query'> & {
|
|
193
|
+
headers: Headers;
|
|
194
|
+
},
|
|
195
|
+
name?: string,
|
|
196
|
+
): boolean => {
|
|
197
|
+
if (!name) {
|
|
198
|
+
return false;
|
|
199
|
+
}
|
|
200
|
+
if (
|
|
201
|
+
options.headers.has(name) ||
|
|
202
|
+
options.query?.[name] ||
|
|
203
|
+
options.headers.get('Cookie')?.includes(`${name}=`)
|
|
204
|
+
) {
|
|
205
|
+
return true;
|
|
206
|
+
}
|
|
207
|
+
return false;
|
|
208
|
+
};
|
|
209
|
+
|
|
191
210
|
export const setAuthParams = async ({
|
|
192
211
|
security,
|
|
193
212
|
...options
|
|
@@ -196,6 +215,10 @@ export const setAuthParams = async ({
|
|
|
196
215
|
headers: Headers;
|
|
197
216
|
}) => {
|
|
198
217
|
for (const auth of security) {
|
|
218
|
+
if (checkForExistence(options, auth.name)) {
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
|
|
199
222
|
const token = await getAuthToken(auth, options.auth);
|
|
200
223
|
|
|
201
224
|
if (!token) {
|
|
@@ -219,8 +242,6 @@ export const setAuthParams = async ({
|
|
|
219
242
|
options.headers.set(name, token);
|
|
220
243
|
break;
|
|
221
244
|
}
|
|
222
|
-
|
|
223
|
-
return;
|
|
224
245
|
}
|
|
225
246
|
};
|
|
226
247
|
|
|
@@ -6,6 +6,9 @@ const serializeFormDataPair = (data, key, value) => {
|
|
|
6
6
|
if (typeof value === 'string' || value instanceof Blob) {
|
|
7
7
|
data.append(key, value);
|
|
8
8
|
}
|
|
9
|
+
else if (value instanceof Date) {
|
|
10
|
+
data.append(key, value.toISOString());
|
|
11
|
+
}
|
|
9
12
|
else {
|
|
10
13
|
data.append(key, JSON.stringify(value));
|
|
11
14
|
}
|
|
@@ -23,6 +23,8 @@ const serializeFormDataPair = (
|
|
|
23
23
|
): void => {
|
|
24
24
|
if (typeof value === 'string' || value instanceof Blob) {
|
|
25
25
|
data.append(key, value);
|
|
26
|
+
} else if (value instanceof Date) {
|
|
27
|
+
data.append(key, value.toISOString());
|
|
26
28
|
} else {
|
|
27
29
|
data.append(key, JSON.stringify(value));
|
|
28
30
|
}
|
package/sdk/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from './client';
|
|
2
|
-
import type { RegisterUserData, RegisterUserResponses, RegisterUserErrors, LoginUserData, LoginUserResponses, LoginUserErrors, LogoutUserData, LogoutUserResponses, LogoutUserErrors, GetCurrentAuthUserData, GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, RefreshSessionData, RefreshSessionResponses, RefreshSessionErrors, GenerateSsoTokenData, GenerateSsoTokenResponses, GenerateSsoTokenErrors, SsoLoginData, SsoLoginResponses, SsoLoginErrors, SsoTokenExchangeData, SsoTokenExchangeResponses, SsoTokenExchangeErrors, CompleteSsoAuthData, CompleteSsoAuthResponses, CompleteSsoAuthErrors, GetPasswordPolicyData, GetPasswordPolicyResponses, CheckPasswordStrengthData, CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, GetCaptchaConfigData, GetCaptchaConfigResponses, GetServiceStatusData, GetServiceStatusResponses, GetCurrentUserData, GetCurrentUserResponses, GetCurrentUserErrors, UpdateUserData, UpdateUserResponses, UpdateUserErrors, GetUserGraphsData, GetUserGraphsResponses, GetUserGraphsErrors, SelectUserGraphData, SelectUserGraphResponses, SelectUserGraphErrors, GetAllCreditSummariesData, GetAllCreditSummariesResponses, GetAllCreditSummariesErrors, UpdateUserPasswordData, UpdateUserPasswordResponses, UpdateUserPasswordErrors, ListUserApiKeysData, ListUserApiKeysResponses, ListUserApiKeysErrors, CreateUserApiKeyData, CreateUserApiKeyResponses, CreateUserApiKeyErrors, RevokeUserApiKeyData, RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, UpdateUserApiKeyData, UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, GetUserLimitsData, GetUserLimitsResponses, GetUserLimitsErrors, GetUserUsageData, GetUserUsageResponses, GetUserUsageErrors, GetAllSharedRepositoryLimitsData, GetAllSharedRepositoryLimitsResponses, GetAllSharedRepositoryLimitsErrors, GetSharedRepositoryLimitsData, GetSharedRepositoryLimitsResponses, GetSharedRepositoryLimitsErrors, GetUserUsageOverviewData, GetUserUsageOverviewResponses, GetUserUsageOverviewErrors, GetDetailedUserAnalyticsData, GetDetailedUserAnalyticsResponses, GetDetailedUserAnalyticsErrors, GetUserSharedSubscriptionsData, GetUserSharedSubscriptionsResponses, GetUserSharedSubscriptionsErrors, SubscribeToSharedRepositoryData, SubscribeToSharedRepositoryResponses, SubscribeToSharedRepositoryErrors, UpgradeSharedRepositorySubscriptionData, UpgradeSharedRepositorySubscriptionResponses, UpgradeSharedRepositorySubscriptionErrors, CancelSharedRepositorySubscriptionData, CancelSharedRepositorySubscriptionResponses, CancelSharedRepositorySubscriptionErrors, GetSharedRepositoryCreditsData, GetSharedRepositoryCreditsResponses, GetSharedRepositoryCreditsErrors, GetRepositoryCreditsData, GetRepositoryCreditsResponses, GetRepositoryCreditsErrors, ListConnectionsData, ListConnectionsResponses, ListConnectionsErrors, CreateConnectionData, CreateConnectionResponses, CreateConnectionErrors, DeleteConnectionData, DeleteConnectionResponses, DeleteConnectionErrors, GetConnectionData, GetConnectionResponses, GetConnectionErrors,
|
|
2
|
+
import type { RegisterUserData, RegisterUserResponses, RegisterUserErrors, LoginUserData, LoginUserResponses, LoginUserErrors, LogoutUserData, LogoutUserResponses, LogoutUserErrors, GetCurrentAuthUserData, GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, RefreshSessionData, RefreshSessionResponses, RefreshSessionErrors, GenerateSsoTokenData, GenerateSsoTokenResponses, GenerateSsoTokenErrors, SsoLoginData, SsoLoginResponses, SsoLoginErrors, SsoTokenExchangeData, SsoTokenExchangeResponses, SsoTokenExchangeErrors, CompleteSsoAuthData, CompleteSsoAuthResponses, CompleteSsoAuthErrors, GetPasswordPolicyData, GetPasswordPolicyResponses, CheckPasswordStrengthData, CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, GetCaptchaConfigData, GetCaptchaConfigResponses, GetServiceStatusData, GetServiceStatusResponses, GetCurrentUserData, GetCurrentUserResponses, GetCurrentUserErrors, UpdateUserData, UpdateUserResponses, UpdateUserErrors, GetUserGraphsData, GetUserGraphsResponses, GetUserGraphsErrors, SelectUserGraphData, SelectUserGraphResponses, SelectUserGraphErrors, GetAllCreditSummariesData, GetAllCreditSummariesResponses, GetAllCreditSummariesErrors, UpdateUserPasswordData, UpdateUserPasswordResponses, UpdateUserPasswordErrors, ListUserApiKeysData, ListUserApiKeysResponses, ListUserApiKeysErrors, CreateUserApiKeyData, CreateUserApiKeyResponses, CreateUserApiKeyErrors, RevokeUserApiKeyData, RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, UpdateUserApiKeyData, UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, GetUserLimitsData, GetUserLimitsResponses, GetUserLimitsErrors, GetUserUsageData, GetUserUsageResponses, GetUserUsageErrors, GetAllSharedRepositoryLimitsData, GetAllSharedRepositoryLimitsResponses, GetAllSharedRepositoryLimitsErrors, GetSharedRepositoryLimitsData, GetSharedRepositoryLimitsResponses, GetSharedRepositoryLimitsErrors, GetUserUsageOverviewData, GetUserUsageOverviewResponses, GetUserUsageOverviewErrors, GetDetailedUserAnalyticsData, GetDetailedUserAnalyticsResponses, GetDetailedUserAnalyticsErrors, GetUserSharedSubscriptionsData, GetUserSharedSubscriptionsResponses, GetUserSharedSubscriptionsErrors, SubscribeToSharedRepositoryData, SubscribeToSharedRepositoryResponses, SubscribeToSharedRepositoryErrors, UpgradeSharedRepositorySubscriptionData, UpgradeSharedRepositorySubscriptionResponses, UpgradeSharedRepositorySubscriptionErrors, CancelSharedRepositorySubscriptionData, CancelSharedRepositorySubscriptionResponses, CancelSharedRepositorySubscriptionErrors, GetSharedRepositoryCreditsData, GetSharedRepositoryCreditsResponses, GetSharedRepositoryCreditsErrors, GetRepositoryCreditsData, GetRepositoryCreditsResponses, GetRepositoryCreditsErrors, GetConnectionOptionsData, GetConnectionOptionsResponses, GetConnectionOptionsErrors, SyncConnectionData, SyncConnectionResponses, SyncConnectionErrors, CreateLinkTokenData, CreateLinkTokenResponses, CreateLinkTokenErrors, ExchangeLinkTokenData, ExchangeLinkTokenResponses, ExchangeLinkTokenErrors, InitOAuthData, InitOAuthResponses, InitOAuthErrors, OauthCallbackData, OauthCallbackResponses, OauthCallbackErrors, ListConnectionsData, ListConnectionsResponses, ListConnectionsErrors, CreateConnectionData, CreateConnectionResponses, CreateConnectionErrors, DeleteConnectionData, DeleteConnectionResponses, DeleteConnectionErrors, GetConnectionData, GetConnectionResponses, GetConnectionErrors, AutoSelectAgentData, AutoSelectAgentResponses, AutoSelectAgentErrors, ExecuteSpecificAgentData, ExecuteSpecificAgentResponses, ExecuteSpecificAgentErrors, BatchProcessQueriesData, BatchProcessQueriesResponses, BatchProcessQueriesErrors, ListAgentsData, ListAgentsResponses, ListAgentsErrors, GetAgentMetadataData, GetAgentMetadataResponses, GetAgentMetadataErrors, RecommendAgentData, RecommendAgentResponses, RecommendAgentErrors, ListMcpToolsData, ListMcpToolsResponses, ListMcpToolsErrors, CallMcpToolData, CallMcpToolResponses, CallMcpToolErrors, ListBackupsData, ListBackupsResponses, ListBackupsErrors, CreateBackupData, CreateBackupResponses, CreateBackupErrors, ExportBackupData, ExportBackupResponses, ExportBackupErrors, GetBackupDownloadUrlData, GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, RestoreBackupData, RestoreBackupResponses, RestoreBackupErrors, GetBackupStatsData, GetBackupStatsResponses, GetBackupStatsErrors, GetGraphMetricsData, GetGraphMetricsResponses, GetGraphMetricsErrors, GetGraphUsageStatsData, GetGraphUsageStatsResponses, GetGraphUsageStatsErrors, ExecuteCypherQueryData, ExecuteCypherQueryResponses, ExecuteCypherQueryErrors, GetGraphSchemaInfoData, GetGraphSchemaInfoResponses, GetGraphSchemaInfoErrors, ValidateSchemaData, ValidateSchemaResponses, ValidateSchemaErrors, ExportGraphSchemaData, ExportGraphSchemaResponses, ExportGraphSchemaErrors, ListSchemaExtensionsData, ListSchemaExtensionsResponses, ListSchemaExtensionsErrors, GetCurrentGraphBillData, GetCurrentGraphBillResponses, GetCurrentGraphBillErrors, GetGraphUsageDetailsData, GetGraphUsageDetailsResponses, GetGraphUsageDetailsErrors, GetGraphBillingHistoryData, GetGraphBillingHistoryResponses, GetGraphBillingHistoryErrors, GetGraphMonthlyBillData, GetGraphMonthlyBillResponses, GetGraphMonthlyBillErrors, GetCreditSummaryData, GetCreditSummaryResponses, GetCreditSummaryErrors, ListCreditTransactionsData, ListCreditTransactionsResponses, ListCreditTransactionsErrors, CheckCreditBalanceData, CheckCreditBalanceResponses, CheckCreditBalanceErrors, GetStorageUsageData, GetStorageUsageResponses, GetStorageUsageErrors, CheckStorageLimitsData, CheckStorageLimitsResponses, CheckStorageLimitsErrors, GetDatabaseHealthData, GetDatabaseHealthResponses, GetDatabaseHealthErrors, GetDatabaseInfoData, GetDatabaseInfoResponses, GetDatabaseInfoErrors, GetGraphLimitsData, GetGraphLimitsResponses, GetGraphLimitsErrors, ListSubgraphsData, ListSubgraphsResponses, ListSubgraphsErrors, CreateSubgraphData, CreateSubgraphResponses, CreateSubgraphErrors, DeleteSubgraphData, DeleteSubgraphResponses, DeleteSubgraphErrors, GetSubgraphInfoData, GetSubgraphInfoResponses, GetSubgraphInfoErrors, GetSubgraphQuotaData, GetSubgraphQuotaResponses, GetSubgraphQuotaErrors, CopyDataToGraphData, CopyDataToGraphResponses, CopyDataToGraphErrors, CreateGraphData, CreateGraphResponses, CreateGraphErrors, GetAvailableExtensionsData, GetAvailableExtensionsResponses, GetServiceOfferingsData, GetServiceOfferingsResponses, GetServiceOfferingsErrors, StreamOperationEventsData, StreamOperationEventsResponses, StreamOperationEventsErrors, GetOperationStatusData, GetOperationStatusResponses, GetOperationStatusErrors, CancelOperationData, CancelOperationResponses, CancelOperationErrors } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -202,79 +202,6 @@ export declare const getSharedRepositoryCredits: <ThrowOnError extends boolean =
|
|
|
202
202
|
* Get credit balance for a specific shared repository
|
|
203
203
|
*/
|
|
204
204
|
export declare const getRepositoryCredits: <ThrowOnError extends boolean = false>(options: Options<GetRepositoryCreditsData, ThrowOnError>) => import("./client").RequestResult<GetRepositoryCreditsResponses, GetRepositoryCreditsErrors, ThrowOnError, "fields">;
|
|
205
|
-
/**
|
|
206
|
-
* List Connections
|
|
207
|
-
* List all data connections in the graph.
|
|
208
|
-
*
|
|
209
|
-
* Returns active and inactive connections with their current status.
|
|
210
|
-
* Connections can be filtered by:
|
|
211
|
-
* - **Entity**: Show connections for a specific entity
|
|
212
|
-
* - **Provider**: Filter by connection type (sec, quickbooks, plaid)
|
|
213
|
-
*
|
|
214
|
-
* Each connection shows:
|
|
215
|
-
* - Current sync status and health
|
|
216
|
-
* - Last successful sync timestamp
|
|
217
|
-
* - Configuration metadata
|
|
218
|
-
* - Error messages if any
|
|
219
|
-
*
|
|
220
|
-
* No credits are consumed for listing connections.
|
|
221
|
-
*/
|
|
222
|
-
export declare const listConnections: <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>) => import("./client").RequestResult<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError, "fields">;
|
|
223
|
-
/**
|
|
224
|
-
* Create Connection
|
|
225
|
-
* Create a new data connection for external system integration.
|
|
226
|
-
*
|
|
227
|
-
* This endpoint initiates connections to external data sources:
|
|
228
|
-
*
|
|
229
|
-
* **SEC Connections**:
|
|
230
|
-
* - Provide entity CIK for automatic filing retrieval
|
|
231
|
-
* - No authentication needed
|
|
232
|
-
* - Begins immediate data sync
|
|
233
|
-
*
|
|
234
|
-
* **QuickBooks Connections**:
|
|
235
|
-
* - Returns OAuth URL for authorization
|
|
236
|
-
* - Requires admin permissions in QuickBooks
|
|
237
|
-
* - Complete with OAuth callback
|
|
238
|
-
*
|
|
239
|
-
* **Plaid Connections**:
|
|
240
|
-
* - Returns Plaid Link token
|
|
241
|
-
* - User completes bank authentication
|
|
242
|
-
* - Exchange public token for access
|
|
243
|
-
*
|
|
244
|
-
* Note:
|
|
245
|
-
* This operation is FREE - no credit consumption required.
|
|
246
|
-
*/
|
|
247
|
-
export declare const createConnection: <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => import("./client").RequestResult<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError, "fields">;
|
|
248
|
-
/**
|
|
249
|
-
* Delete Connection
|
|
250
|
-
* Delete a data connection and clean up related resources.
|
|
251
|
-
*
|
|
252
|
-
* This operation:
|
|
253
|
-
* - Removes the connection configuration
|
|
254
|
-
* - Preserves any imported data in the graph
|
|
255
|
-
* - Performs provider-specific cleanup
|
|
256
|
-
* - Revokes stored credentials
|
|
257
|
-
*
|
|
258
|
-
* Note:
|
|
259
|
-
* This operation is FREE - no credit consumption required.
|
|
260
|
-
*
|
|
261
|
-
* Only users with admin role can delete connections.
|
|
262
|
-
*/
|
|
263
|
-
export declare const deleteConnection: <ThrowOnError extends boolean = false>(options: Options<DeleteConnectionData, ThrowOnError>) => import("./client").RequestResult<DeleteConnectionResponses, DeleteConnectionErrors, ThrowOnError, "fields">;
|
|
264
|
-
/**
|
|
265
|
-
* Get Connection
|
|
266
|
-
* Get detailed information about a specific connection.
|
|
267
|
-
*
|
|
268
|
-
* Returns comprehensive connection details including:
|
|
269
|
-
* - Current status and health indicators
|
|
270
|
-
* - Authentication state
|
|
271
|
-
* - Sync history and statistics
|
|
272
|
-
* - Error details if any
|
|
273
|
-
* - Provider-specific metadata
|
|
274
|
-
*
|
|
275
|
-
* No credits are consumed for viewing connection details.
|
|
276
|
-
*/
|
|
277
|
-
export declare const getConnection: <ThrowOnError extends boolean = false>(options: Options<GetConnectionData, ThrowOnError>) => import("./client").RequestResult<GetConnectionResponses, GetConnectionErrors, ThrowOnError, "fields">;
|
|
278
205
|
/**
|
|
279
206
|
* List Connection Options
|
|
280
207
|
* Get metadata about all available data connection providers.
|
|
@@ -400,56 +327,167 @@ export declare const initOAuth: <ThrowOnError extends boolean = false>(options:
|
|
|
400
327
|
*/
|
|
401
328
|
export declare const oauthCallback: <ThrowOnError extends boolean = false>(options: Options<OauthCallbackData, ThrowOnError>) => import("./client").RequestResult<OauthCallbackResponses, OauthCallbackErrors, ThrowOnError, "fields">;
|
|
402
329
|
/**
|
|
403
|
-
*
|
|
404
|
-
*
|
|
330
|
+
* List Connections
|
|
331
|
+
* List all data connections in the graph.
|
|
405
332
|
*
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
* -
|
|
409
|
-
* -
|
|
410
|
-
* - Generate insights from balance sheets and income statements
|
|
411
|
-
* - Answer complex financial queries with contextual understanding
|
|
333
|
+
* Returns active and inactive connections with their current status.
|
|
334
|
+
* Connections can be filtered by:
|
|
335
|
+
* - **Entity**: Show connections for a specific entity
|
|
336
|
+
* - **Provider**: Filter by connection type (sec, quickbooks, plaid)
|
|
412
337
|
*
|
|
413
|
-
*
|
|
414
|
-
* -
|
|
415
|
-
* -
|
|
338
|
+
* Each connection shows:
|
|
339
|
+
* - Current sync status and health
|
|
340
|
+
* - Last successful sync timestamp
|
|
341
|
+
* - Configuration metadata
|
|
342
|
+
* - Error messages if any
|
|
416
343
|
*
|
|
417
|
-
*
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
-
* console.log('Analysis:', data.message);
|
|
424
|
-
* };
|
|
425
|
-
* ```
|
|
344
|
+
* No credits are consumed for listing connections.
|
|
345
|
+
*/
|
|
346
|
+
export declare const listConnections: <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>) => import("./client").RequestResult<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError, "fields">;
|
|
347
|
+
/**
|
|
348
|
+
* Create Connection
|
|
349
|
+
* Create a new data connection for external system integration.
|
|
426
350
|
*
|
|
427
|
-
*
|
|
428
|
-
* - Maximum 5 concurrent SSE connections per user
|
|
429
|
-
* - Rate limited to 10 new connections per minute
|
|
430
|
-
* - Automatic circuit breaker for Redis failures
|
|
431
|
-
* - Graceful degradation with fallback to polling if SSE unavailable
|
|
351
|
+
* This endpoint initiates connections to external data sources:
|
|
432
352
|
*
|
|
433
|
-
* **
|
|
434
|
-
* -
|
|
435
|
-
* -
|
|
436
|
-
* -
|
|
437
|
-
* - `operation_error`: Analysis failed
|
|
353
|
+
* **SEC Connections**:
|
|
354
|
+
* - Provide entity CIK for automatic filing retrieval
|
|
355
|
+
* - No authentication needed
|
|
356
|
+
* - Begins immediate data sync
|
|
438
357
|
*
|
|
439
|
-
* **
|
|
440
|
-
* -
|
|
441
|
-
* -
|
|
442
|
-
* -
|
|
358
|
+
* **QuickBooks Connections**:
|
|
359
|
+
* - Returns OAuth URL for authorization
|
|
360
|
+
* - Requires admin permissions in QuickBooks
|
|
361
|
+
* - Complete with OAuth callback
|
|
443
362
|
*
|
|
444
|
-
* **
|
|
445
|
-
* -
|
|
446
|
-
* -
|
|
447
|
-
* -
|
|
448
|
-
*
|
|
363
|
+
* **Plaid Connections**:
|
|
364
|
+
* - Returns Plaid Link token
|
|
365
|
+
* - User completes bank authentication
|
|
366
|
+
* - Exchange public token for access
|
|
367
|
+
*
|
|
368
|
+
* Note:
|
|
369
|
+
* This operation is FREE - no credit consumption required.
|
|
370
|
+
*/
|
|
371
|
+
export declare const createConnection: <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => import("./client").RequestResult<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError, "fields">;
|
|
372
|
+
/**
|
|
373
|
+
* Delete Connection
|
|
374
|
+
* Delete a data connection and clean up related resources.
|
|
375
|
+
*
|
|
376
|
+
* This operation:
|
|
377
|
+
* - Removes the connection configuration
|
|
378
|
+
* - Preserves any imported data in the graph
|
|
379
|
+
* - Performs provider-specific cleanup
|
|
380
|
+
* - Revokes stored credentials
|
|
381
|
+
*
|
|
382
|
+
* Note:
|
|
383
|
+
* This operation is FREE - no credit consumption required.
|
|
384
|
+
*
|
|
385
|
+
* Only users with admin role can delete connections.
|
|
386
|
+
*/
|
|
387
|
+
export declare const deleteConnection: <ThrowOnError extends boolean = false>(options: Options<DeleteConnectionData, ThrowOnError>) => import("./client").RequestResult<DeleteConnectionResponses, DeleteConnectionErrors, ThrowOnError, "fields">;
|
|
388
|
+
/**
|
|
389
|
+
* Get Connection
|
|
390
|
+
* Get detailed information about a specific connection.
|
|
391
|
+
*
|
|
392
|
+
* Returns comprehensive connection details including:
|
|
393
|
+
* - Current status and health indicators
|
|
394
|
+
* - Authentication state
|
|
395
|
+
* - Sync history and statistics
|
|
396
|
+
* - Error details if any
|
|
397
|
+
* - Provider-specific metadata
|
|
398
|
+
*
|
|
399
|
+
* No credits are consumed for viewing connection details.
|
|
400
|
+
*/
|
|
401
|
+
export declare const getConnection: <ThrowOnError extends boolean = false>(options: Options<GetConnectionData, ThrowOnError>) => import("./client").RequestResult<GetConnectionResponses, GetConnectionErrors, ThrowOnError, "fields">;
|
|
402
|
+
/**
|
|
403
|
+
* Auto-select agent for query
|
|
404
|
+
* Automatically select the best agent for your query.
|
|
405
|
+
*
|
|
406
|
+
* The orchestrator will:
|
|
407
|
+
* 1. Enrich context with RAG if enabled
|
|
408
|
+
* 2. Evaluate all available agents
|
|
409
|
+
* 3. Select the best match based on confidence scores
|
|
410
|
+
* 4. Execute the query with the selected agent
|
|
411
|
+
*
|
|
412
|
+
* Use this endpoint when you want the system to intelligently route your query.
|
|
413
|
+
*/
|
|
414
|
+
export declare const autoSelectAgent: <ThrowOnError extends boolean = false>(options: Options<AutoSelectAgentData, ThrowOnError>) => import("./client").RequestResult<AutoSelectAgentResponses, AutoSelectAgentErrors, ThrowOnError, "fields">;
|
|
415
|
+
/**
|
|
416
|
+
* Execute specific agent
|
|
417
|
+
* Execute a specific agent type directly.
|
|
418
|
+
*
|
|
419
|
+
* Available agents:
|
|
420
|
+
* - **financial**: Financial analysis, SEC filings, accounting data
|
|
421
|
+
* - **research**: Deep research and comprehensive analysis
|
|
422
|
+
* - **rag**: Fast retrieval without AI (no credits required)
|
|
423
|
+
*
|
|
424
|
+
* Use this endpoint when you know which agent you want to use.
|
|
425
|
+
*/
|
|
426
|
+
export declare const executeSpecificAgent: <ThrowOnError extends boolean = false>(options: Options<ExecuteSpecificAgentData, ThrowOnError>) => import("./client").RequestResult<ExecuteSpecificAgentResponses, ExecuteSpecificAgentErrors, ThrowOnError, "fields">;
|
|
427
|
+
/**
|
|
428
|
+
* Batch process multiple queries
|
|
429
|
+
* Process multiple queries either sequentially or in parallel.
|
|
430
|
+
*
|
|
431
|
+
* **Features:**
|
|
432
|
+
* - Process up to 10 queries in a single request
|
|
433
|
+
* - Sequential or parallel execution modes
|
|
434
|
+
* - Automatic error handling per query
|
|
435
|
+
* - Credit checking before execution
|
|
436
|
+
*
|
|
437
|
+
* **Use Cases:**
|
|
438
|
+
* - Bulk analysis of multiple entities
|
|
439
|
+
* - Comparative analysis across queries
|
|
440
|
+
* - Automated report generation
|
|
441
|
+
*
|
|
442
|
+
* Returns individual results for each query with execution metrics.
|
|
443
|
+
*/
|
|
444
|
+
export declare const batchProcessQueries: <ThrowOnError extends boolean = false>(options: Options<BatchProcessQueriesData, ThrowOnError>) => import("./client").RequestResult<BatchProcessQueriesResponses, BatchProcessQueriesErrors, ThrowOnError, "fields">;
|
|
445
|
+
/**
|
|
446
|
+
* List available agents
|
|
447
|
+
* Get a comprehensive list of all available agents with their metadata.
|
|
448
|
+
*
|
|
449
|
+
* **Returns:**
|
|
450
|
+
* - Agent types and names
|
|
451
|
+
* - Capabilities and supported modes
|
|
452
|
+
* - Version information
|
|
453
|
+
* - Credit requirements
|
|
454
|
+
*
|
|
455
|
+
* Use the optional `capability` filter to find agents with specific capabilities.
|
|
456
|
+
*/
|
|
457
|
+
export declare const listAgents: <ThrowOnError extends boolean = false>(options: Options<ListAgentsData, ThrowOnError>) => import("./client").RequestResult<ListAgentsResponses, ListAgentsErrors, ThrowOnError, "fields">;
|
|
458
|
+
/**
|
|
459
|
+
* Get agent metadata
|
|
460
|
+
* Get comprehensive metadata for a specific agent type.
|
|
461
|
+
*
|
|
462
|
+
* **Returns:**
|
|
463
|
+
* - Agent name and description
|
|
464
|
+
* - Version information
|
|
465
|
+
* - Supported capabilities and modes
|
|
466
|
+
* - Credit requirements
|
|
467
|
+
* - Author and tags
|
|
468
|
+
* - Configuration options
|
|
469
|
+
*
|
|
470
|
+
* Use this to understand agent capabilities before execution.
|
|
471
|
+
*/
|
|
472
|
+
export declare const getAgentMetadata: <ThrowOnError extends boolean = false>(options: Options<GetAgentMetadataData, ThrowOnError>) => import("./client").RequestResult<GetAgentMetadataResponses, GetAgentMetadataErrors, ThrowOnError, "fields">;
|
|
473
|
+
/**
|
|
474
|
+
* Get agent recommendations
|
|
475
|
+
* Get intelligent agent recommendations for a specific query.
|
|
476
|
+
*
|
|
477
|
+
* **How it works:**
|
|
478
|
+
* 1. Analyzes query content and structure
|
|
479
|
+
* 2. Evaluates agent capabilities
|
|
480
|
+
* 3. Calculates confidence scores
|
|
481
|
+
* 4. Returns ranked recommendations
|
|
482
|
+
*
|
|
483
|
+
* **Use this when:**
|
|
484
|
+
* - Unsure which agent to use
|
|
485
|
+
* - Need to understand agent suitability
|
|
486
|
+
* - Want confidence scores for decision making
|
|
449
487
|
*
|
|
450
|
-
*
|
|
488
|
+
* Returns top agents ranked by confidence with explanations.
|
|
451
489
|
*/
|
|
452
|
-
export declare const
|
|
490
|
+
export declare const recommendAgent: <ThrowOnError extends boolean = false>(options: Options<RecommendAgentData, ThrowOnError>) => import("./client").RequestResult<RecommendAgentResponses, RecommendAgentErrors, ThrowOnError, "fields">;
|
|
453
491
|
/**
|
|
454
492
|
* List MCP Tools
|
|
455
493
|
* Get available Model Context Protocol tools for graph analysis.
|