agentbase-web-sdk 2.6.0-fix1
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/LICENSE +0 -0
- package/README.md +41 -0
- package/dist/cjs/sdk.js +13833 -0
- package/dist/cjs/sdk.js.map +1 -0
- package/dist/esm/sdk.js +13805 -0
- package/dist/esm/sdk.js.map +1 -0
- package/dist/iife/sdk.js +17632 -0
- package/package.json +50 -0
- package/types/channel.d.ts +79 -0
- package/types/client.d.ts +289 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/browser-permission.d.ts +22 -0
- package/types/enums/browser.d.ts +16 -0
- package/types/enums/credit-card.d.ts +19 -0
- package/types/enums/distillation-message-role.d.ts +6 -0
- package/types/enums/distillation-mode.d.ts +4 -0
- package/types/enums/distillation-tool-status.d.ts +4 -0
- package/types/enums/execution-method.d.ts +9 -0
- package/types/enums/execution-status.d.ts +7 -0
- package/types/enums/execution-trigger.d.ts +5 -0
- package/types/enums/export-job-mode.d.ts +4 -0
- package/types/enums/export-mode.d.ts +3 -0
- package/types/enums/feedback-type.d.ts +5 -0
- package/types/enums/flag.d.ts +197 -0
- package/types/enums/format.d.ts +4 -0
- package/types/enums/image-format.d.ts +9 -0
- package/types/enums/image-gravity.d.ts +11 -0
- package/types/enums/kind.d.ts +6 -0
- package/types/enums/kinds.d.ts +6 -0
- package/types/enums/knowledge-base-data-source-document-import-result-status.d.ts +5 -0
- package/types/enums/memory-access-mode.d.ts +4 -0
- package/types/enums/memory-batch-operation.d.ts +5 -0
- package/types/enums/memory-bulk-delete-item-status.d.ts +4 -0
- package/types/enums/memory-bulk-delete-response-status.d.ts +4 -0
- package/types/enums/memory-handling-policy.d.ts +5 -0
- package/types/enums/memory-message-role.d.ts +5 -0
- package/types/enums/memory-record-kind.d.ts +5 -0
- package/types/enums/memory-record-sensitivity.d.ts +5 -0
- package/types/enums/memory-scope.d.ts +7 -0
- package/types/enums/memory-sensitivity.d.ts +6 -0
- package/types/enums/memory-share-subject-type.d.ts +4 -0
- package/types/enums/o-auth-provider.d.ts +45 -0
- package/types/enums/organization-project-deletion-deletion-status.d.ts +5 -0
- package/types/enums/organization-role.d.ts +8 -0
- package/types/enums/organization-usage-range.d.ts +5 -0
- package/types/enums/outcome.d.ts +6 -0
- package/types/enums/profile-extraction-mode.d.ts +4 -0
- package/types/enums/profile-type.d.ts +4 -0
- package/types/enums/project-deletion-restore-status.d.ts +3 -0
- package/types/enums/project-deletion-result-deletion-status.d.ts +5 -0
- package/types/enums/project-deletion-result-status.d.ts +5 -0
- package/types/enums/record-kind.d.ts +5 -0
- package/types/enums/retention-policy.d.ts +3 -0
- package/types/enums/scope.d.ts +5 -0
- package/types/enums/source-type.d.ts +6 -0
- package/types/enums/status.d.ts +17 -0
- package/types/enums/theme.d.ts +4 -0
- package/types/enums/timezone.d.ts +422 -0
- package/types/enums/transaction-action.d.ts +12 -0
- package/types/enums/validation-status.d.ts +6 -0
- package/types/enums/verification-source.d.ts +5 -0
- package/types/id.d.ts +20 -0
- package/types/index.d.ts +87 -0
- package/types/models.d.ts +2537 -0
- package/types/operator.d.ts +180 -0
- package/types/permission.d.ts +43 -0
- package/types/query.d.ts +442 -0
- package/types/role.d.ts +70 -0
- package/types/service.d.ts +11 -0
- package/types/services/account.d.ts +1267 -0
- package/types/services/ai-gateway.d.ts +738 -0
- package/types/services/avatars.d.ts +320 -0
- package/types/services/databases.d.ts +437 -0
- package/types/services/documents-db.d.ts +405 -0
- package/types/services/functions.d.ts +91 -0
- package/types/services/graphql.d.ts +43 -0
- package/types/services/knowledge-bases.d.ts +117 -0
- package/types/services/llm-gateway.d.ts +282 -0
- package/types/services/locale.d.ts +64 -0
- package/types/services/memory.d.ts +1765 -0
- package/types/services/messaging.d.ts +53 -0
- package/types/services/projects.d.ts +129 -0
- package/types/services/realtime.d.ts +197 -0
- package/types/services/self-hosted-organizations.d.ts +495 -0
- package/types/services/storage.d.ts +259 -0
- package/types/services/tables-db.d.ts +434 -0
- package/types/services/teams.d.ts +341 -0
- package/types/services/vectors-db.d.ts +297 -0
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agentbase-web-sdk",
|
|
3
|
+
"homepage": "[HOSTNAME]/support",
|
|
4
|
+
"description": "",
|
|
5
|
+
"version": "2.6.0-fix1",
|
|
6
|
+
"license": "",
|
|
7
|
+
"main": "dist/cjs/sdk.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/esm/sdk.js",
|
|
11
|
+
"require": "./dist/cjs/sdk.js",
|
|
12
|
+
"types": "./types/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"module": "dist/esm/sdk.js",
|
|
17
|
+
"types": "types/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"types"
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": ""
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "npm run build:types && npm run build:libs",
|
|
28
|
+
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types",
|
|
29
|
+
"build:libs": "rollup -c"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18.0.0"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"json-bigint": "1.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@rollup/plugin-commonjs": "29.0.2",
|
|
39
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
40
|
+
"@rollup/plugin-typescript": "12.3.0",
|
|
41
|
+
"@types/json-bigint": "1.0.4",
|
|
42
|
+
"playwright": "1.56.1",
|
|
43
|
+
"rollup": "4.60.1",
|
|
44
|
+
"serve-handler": "6.1.7",
|
|
45
|
+
"tslib": "2.8.1",
|
|
46
|
+
"typescript": "5.7.3"
|
|
47
|
+
},
|
|
48
|
+
"jsdelivr": "dist/iife/sdk.js",
|
|
49
|
+
"unpkg": "dist/iife/sdk.js"
|
|
50
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
interface Database {
|
|
2
|
+
_db: any;
|
|
3
|
+
}
|
|
4
|
+
interface Collection {
|
|
5
|
+
_coll: any;
|
|
6
|
+
}
|
|
7
|
+
interface Document {
|
|
8
|
+
_doc: any;
|
|
9
|
+
}
|
|
10
|
+
interface TablesDB {
|
|
11
|
+
_tdb: any;
|
|
12
|
+
}
|
|
13
|
+
interface Table {
|
|
14
|
+
_tbl: any;
|
|
15
|
+
}
|
|
16
|
+
interface Row {
|
|
17
|
+
_row: any;
|
|
18
|
+
}
|
|
19
|
+
interface Bucket {
|
|
20
|
+
_bkt: any;
|
|
21
|
+
}
|
|
22
|
+
interface File {
|
|
23
|
+
_file: any;
|
|
24
|
+
}
|
|
25
|
+
interface Func {
|
|
26
|
+
_fn: any;
|
|
27
|
+
}
|
|
28
|
+
interface Execution {
|
|
29
|
+
_exec: any;
|
|
30
|
+
}
|
|
31
|
+
interface Team {
|
|
32
|
+
_team: any;
|
|
33
|
+
}
|
|
34
|
+
interface Membership {
|
|
35
|
+
_mem: any;
|
|
36
|
+
}
|
|
37
|
+
interface Presence {
|
|
38
|
+
_presence: any;
|
|
39
|
+
}
|
|
40
|
+
interface Resolved {
|
|
41
|
+
_res: any;
|
|
42
|
+
}
|
|
43
|
+
type Actionable = Document | Row | File | Team | Membership | Presence;
|
|
44
|
+
export declare class Channel<T> {
|
|
45
|
+
private readonly segments;
|
|
46
|
+
_type: T;
|
|
47
|
+
private constructor();
|
|
48
|
+
private next;
|
|
49
|
+
private resolve;
|
|
50
|
+
toString(): string;
|
|
51
|
+
collection(this: Channel<Database>, id: string): Channel<Collection>;
|
|
52
|
+
document(this: Channel<Collection>, id?: string): Channel<Document>;
|
|
53
|
+
table(this: Channel<TablesDB>, id: string): Channel<Table>;
|
|
54
|
+
row(this: Channel<Table>, id?: string): Channel<Row>;
|
|
55
|
+
file(this: Channel<Bucket>, id?: string): Channel<File>;
|
|
56
|
+
create(this: Channel<Actionable>): Channel<Resolved>;
|
|
57
|
+
upsert(this: Channel<Document | Row | Presence>): Channel<Resolved>;
|
|
58
|
+
update(this: Channel<Actionable>): Channel<Resolved>;
|
|
59
|
+
delete(this: Channel<Actionable>): Channel<Resolved>;
|
|
60
|
+
static database(id: string): Channel<Database>;
|
|
61
|
+
static execution(id: string): Channel<Execution>;
|
|
62
|
+
static tablesdb(id: string): Channel<TablesDB>;
|
|
63
|
+
static bucket(id: string): Channel<Bucket>;
|
|
64
|
+
static function(id: string): Channel<Func>;
|
|
65
|
+
static team(id: string): Channel<Team>;
|
|
66
|
+
static membership(id: string): Channel<Membership>;
|
|
67
|
+
static presence(id: string): Channel<Presence>;
|
|
68
|
+
static account(): string;
|
|
69
|
+
static documents(): string;
|
|
70
|
+
static rows(): string;
|
|
71
|
+
static files(): string;
|
|
72
|
+
static executions(): string;
|
|
73
|
+
static teams(): string;
|
|
74
|
+
static memberships(): string;
|
|
75
|
+
static presences(): string;
|
|
76
|
+
}
|
|
77
|
+
export type ActionableChannel = Channel<Document> | Channel<Row> | Channel<File> | Channel<Execution> | Channel<Team> | Channel<Membership> | Channel<Presence>;
|
|
78
|
+
export type ResolvedChannel = Channel<Resolved>;
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { Models } from './models';
|
|
2
|
+
import { Channel, ActionableChannel, ResolvedChannel } from './channel';
|
|
3
|
+
import { Query } from './query';
|
|
4
|
+
export declare const JSONbig: {
|
|
5
|
+
parse: (text: string) => any;
|
|
6
|
+
stringify: {
|
|
7
|
+
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
8
|
+
(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Payload type representing a key-value pair with string keys and any values.
|
|
13
|
+
*/
|
|
14
|
+
type Payload = {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Headers type representing a key-value pair with string keys and string values.
|
|
19
|
+
*/
|
|
20
|
+
type Headers = {
|
|
21
|
+
[key: string]: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Realtime event response structure with generic payload type.
|
|
25
|
+
*/
|
|
26
|
+
type RealtimeResponseEvent<T extends unknown> = {
|
|
27
|
+
/**
|
|
28
|
+
* List of event names associated with the response.
|
|
29
|
+
*/
|
|
30
|
+
events: string[];
|
|
31
|
+
/**
|
|
32
|
+
* List of channel names associated with the response.
|
|
33
|
+
*/
|
|
34
|
+
channels: string[];
|
|
35
|
+
/**
|
|
36
|
+
* Timestamp indicating the time of the event.
|
|
37
|
+
*/
|
|
38
|
+
timestamp: string;
|
|
39
|
+
/**
|
|
40
|
+
* Payload containing event-specific data.
|
|
41
|
+
*/
|
|
42
|
+
payload: T;
|
|
43
|
+
/**
|
|
44
|
+
* Subscription IDs this event matches (from backend, optional).
|
|
45
|
+
*/
|
|
46
|
+
subscriptions?: string[];
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Type representing upload progress information.
|
|
50
|
+
*/
|
|
51
|
+
type SseStream = ReadableStream<Uint8Array>;
|
|
52
|
+
type UploadProgress = {
|
|
53
|
+
/**
|
|
54
|
+
* Identifier for the upload progress.
|
|
55
|
+
*/
|
|
56
|
+
$id: string;
|
|
57
|
+
/**
|
|
58
|
+
* Current progress of the upload (in percentage).
|
|
59
|
+
*/
|
|
60
|
+
progress: number;
|
|
61
|
+
/**
|
|
62
|
+
* Total size uploaded (in bytes) during the upload process.
|
|
63
|
+
*/
|
|
64
|
+
sizeUploaded: number;
|
|
65
|
+
/**
|
|
66
|
+
* Total number of chunks that need to be uploaded.
|
|
67
|
+
*/
|
|
68
|
+
chunksTotal: number;
|
|
69
|
+
/**
|
|
70
|
+
* Number of chunks that have been successfully uploaded.
|
|
71
|
+
*/
|
|
72
|
+
chunksUploaded: number;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Exception thrown by the package
|
|
76
|
+
*/
|
|
77
|
+
declare class AgentbaseException extends Error {
|
|
78
|
+
/**
|
|
79
|
+
* The error code associated with the exception.
|
|
80
|
+
*/
|
|
81
|
+
code: number;
|
|
82
|
+
/**
|
|
83
|
+
* The response string associated with the exception.
|
|
84
|
+
*/
|
|
85
|
+
response: string;
|
|
86
|
+
/**
|
|
87
|
+
* Error type.
|
|
88
|
+
* See [Error Types](/docs/response-codes#errorTypes) for more information.
|
|
89
|
+
*/
|
|
90
|
+
type: string;
|
|
91
|
+
/**
|
|
92
|
+
* Initializes a AppBase Exception.
|
|
93
|
+
*
|
|
94
|
+
* @param {string} message - The error message.
|
|
95
|
+
* @param {number} code - The error code. Default is 0.
|
|
96
|
+
* @param {string} type - The error type. Default is an empty string.
|
|
97
|
+
* @param {string} response - The response string. Default is an empty string.
|
|
98
|
+
*/
|
|
99
|
+
constructor(message: string, code?: number, type?: string, response?: string);
|
|
100
|
+
}
|
|
101
|
+
declare class Client {
|
|
102
|
+
static CHUNK_SIZE: number;
|
|
103
|
+
/**
|
|
104
|
+
* Holds configuration such as project.
|
|
105
|
+
*/
|
|
106
|
+
config: {
|
|
107
|
+
endpoint: string;
|
|
108
|
+
endpointRealtime: string;
|
|
109
|
+
project: string;
|
|
110
|
+
organization: string;
|
|
111
|
+
jwt: string;
|
|
112
|
+
locale: string;
|
|
113
|
+
session: string;
|
|
114
|
+
devkey: string;
|
|
115
|
+
impersonateuserid: string;
|
|
116
|
+
impersonateuseremail: string;
|
|
117
|
+
impersonateuserphone: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Custom headers for API requests.
|
|
121
|
+
*/
|
|
122
|
+
headers: Headers;
|
|
123
|
+
/**
|
|
124
|
+
* Get Headers
|
|
125
|
+
*
|
|
126
|
+
* Returns a copy of the current request headers, including any
|
|
127
|
+
* authentication headers. Handle with care.
|
|
128
|
+
*
|
|
129
|
+
* @returns {Headers}
|
|
130
|
+
*/
|
|
131
|
+
getHeaders(): Headers;
|
|
132
|
+
/**
|
|
133
|
+
* Set Endpoint
|
|
134
|
+
*
|
|
135
|
+
* Your project endpoint
|
|
136
|
+
*
|
|
137
|
+
* @param {string} endpoint
|
|
138
|
+
*
|
|
139
|
+
* @returns {this}
|
|
140
|
+
*/
|
|
141
|
+
setEndpoint(endpoint: string): this;
|
|
142
|
+
/**
|
|
143
|
+
* Set Realtime Endpoint
|
|
144
|
+
*
|
|
145
|
+
* @param {string} endpointRealtime
|
|
146
|
+
*
|
|
147
|
+
* @returns {this}
|
|
148
|
+
*/
|
|
149
|
+
setEndpointRealtime(endpointRealtime: string): this;
|
|
150
|
+
/**
|
|
151
|
+
* Set Project
|
|
152
|
+
*
|
|
153
|
+
* Your project ID
|
|
154
|
+
*
|
|
155
|
+
* @param value string
|
|
156
|
+
*
|
|
157
|
+
* @return {this}
|
|
158
|
+
*/
|
|
159
|
+
setProject(value: string): this;
|
|
160
|
+
/**
|
|
161
|
+
* Set Organization
|
|
162
|
+
*
|
|
163
|
+
* Your organization ID
|
|
164
|
+
*
|
|
165
|
+
* @param value string
|
|
166
|
+
*
|
|
167
|
+
* @return {this}
|
|
168
|
+
*/
|
|
169
|
+
setOrganization(value: string): this;
|
|
170
|
+
/**
|
|
171
|
+
* Set JWT
|
|
172
|
+
*
|
|
173
|
+
* Your secret JSON Web Token
|
|
174
|
+
*
|
|
175
|
+
* @param value string
|
|
176
|
+
*
|
|
177
|
+
* @return {this}
|
|
178
|
+
*/
|
|
179
|
+
setJWT(value: string): this;
|
|
180
|
+
/**
|
|
181
|
+
* Set Locale
|
|
182
|
+
*
|
|
183
|
+
* @param value string
|
|
184
|
+
*
|
|
185
|
+
* @return {this}
|
|
186
|
+
*/
|
|
187
|
+
setLocale(value: string): this;
|
|
188
|
+
/**
|
|
189
|
+
* Set Session
|
|
190
|
+
*
|
|
191
|
+
* The user session to authenticate with
|
|
192
|
+
*
|
|
193
|
+
* @param value string
|
|
194
|
+
*
|
|
195
|
+
* @return {this}
|
|
196
|
+
*/
|
|
197
|
+
setSession(value: string): this;
|
|
198
|
+
/**
|
|
199
|
+
* Set DevKey
|
|
200
|
+
*
|
|
201
|
+
* Your secret dev API key
|
|
202
|
+
*
|
|
203
|
+
* @param value string
|
|
204
|
+
*
|
|
205
|
+
* @return {this}
|
|
206
|
+
*/
|
|
207
|
+
setDevKey(value: string): this;
|
|
208
|
+
/**
|
|
209
|
+
* Set ImpersonateUserId
|
|
210
|
+
*
|
|
211
|
+
* Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
|
|
212
|
+
*
|
|
213
|
+
* @param value string
|
|
214
|
+
*
|
|
215
|
+
* @return {this}
|
|
216
|
+
*/
|
|
217
|
+
setImpersonateUserId(value: string): this;
|
|
218
|
+
/**
|
|
219
|
+
* Set ImpersonateUserEmail
|
|
220
|
+
*
|
|
221
|
+
* Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
|
|
222
|
+
*
|
|
223
|
+
* @param value string
|
|
224
|
+
*
|
|
225
|
+
* @return {this}
|
|
226
|
+
*/
|
|
227
|
+
setImpersonateUserEmail(value: string): this;
|
|
228
|
+
/**
|
|
229
|
+
* Set ImpersonateUserPhone
|
|
230
|
+
*
|
|
231
|
+
* Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
|
|
232
|
+
*
|
|
233
|
+
* @param value string
|
|
234
|
+
*
|
|
235
|
+
* @return {this}
|
|
236
|
+
*/
|
|
237
|
+
setImpersonateUserPhone(value: string): this;
|
|
238
|
+
private realtime;
|
|
239
|
+
/**
|
|
240
|
+
* Subscribes to AppBase events and passes you the payload in realtime.
|
|
241
|
+
*
|
|
242
|
+
* @deprecated Use the Realtime service instead.
|
|
243
|
+
* @see Realtime
|
|
244
|
+
*
|
|
245
|
+
* @param {string|string[]|Channel<any>|ActionableChannel|ResolvedChannel|(Channel<any>|ActionableChannel|ResolvedChannel)[]} channels
|
|
246
|
+
* Channel to subscribe - pass a single channel as a string or Channel builder instance, or multiple with an array.
|
|
247
|
+
*
|
|
248
|
+
* Possible channels are:
|
|
249
|
+
* - account
|
|
250
|
+
* - collections
|
|
251
|
+
* - collections.[ID]
|
|
252
|
+
* - collections.[ID].documents
|
|
253
|
+
* - documents
|
|
254
|
+
* - documents.[ID]
|
|
255
|
+
* - files
|
|
256
|
+
* - files.[ID]
|
|
257
|
+
* - executions
|
|
258
|
+
* - executions.[ID]
|
|
259
|
+
* - functions.[ID]
|
|
260
|
+
* - teams
|
|
261
|
+
* - teams.[ID]
|
|
262
|
+
* - memberships
|
|
263
|
+
* - memberships.[ID]
|
|
264
|
+
*
|
|
265
|
+
* You can also use Channel builders:
|
|
266
|
+
* - Channel.database('db').collection('col').document('doc').create()
|
|
267
|
+
* - Channel.bucket('bucket').file('file').update()
|
|
268
|
+
* - Channel.function('func').execution('exec').delete()
|
|
269
|
+
* - Channel.team('team').create()
|
|
270
|
+
* - Channel.membership('membership').update()
|
|
271
|
+
* @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update.
|
|
272
|
+
* @returns {() => void} Unsubscribes from events.
|
|
273
|
+
*/
|
|
274
|
+
subscribe<T extends unknown>(channels: string | string[] | Channel<any> | ActionableChannel | ResolvedChannel | (Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (payload: RealtimeResponseEvent<T>) => void, queries?: (string | Query)[]): () => void;
|
|
275
|
+
prepareRequest(method: string, url: URL, headers?: Headers, params?: Payload): {
|
|
276
|
+
uri: string;
|
|
277
|
+
options: RequestInit;
|
|
278
|
+
};
|
|
279
|
+
chunkedUpload(method: string, url: URL, headers: Headers | undefined, originalPayload: Payload | undefined, onProgress: (progress: UploadProgress) => void): Promise<any>;
|
|
280
|
+
ping(): Promise<unknown>;
|
|
281
|
+
call(method: string, url: URL, headers?: Headers, params?: Payload, responseType?: string): Promise<any>;
|
|
282
|
+
callStream(method: string, url: URL, headers?: Headers, params?: Payload): Promise<SseStream>;
|
|
283
|
+
static flatten(data: Payload, prefix?: string): Payload;
|
|
284
|
+
}
|
|
285
|
+
export { Client, AgentbaseException };
|
|
286
|
+
export { Query } from './query';
|
|
287
|
+
export type { Models, Payload, UploadProgress, SseStream };
|
|
288
|
+
export type { RealtimeResponseEvent };
|
|
289
|
+
export type { QueryTypes, QueryTypesList } from './query';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum BrowserPermission {
|
|
2
|
+
Geolocation = "geolocation",
|
|
3
|
+
Camera = "camera",
|
|
4
|
+
Microphone = "microphone",
|
|
5
|
+
Notifications = "notifications",
|
|
6
|
+
Midi = "midi",
|
|
7
|
+
Push = "push",
|
|
8
|
+
Clipboardread = "clipboard-read",
|
|
9
|
+
Clipboardwrite = "clipboard-write",
|
|
10
|
+
Paymenthandler = "payment-handler",
|
|
11
|
+
Usb = "usb",
|
|
12
|
+
Bluetooth = "bluetooth",
|
|
13
|
+
Accelerometer = "accelerometer",
|
|
14
|
+
Gyroscope = "gyroscope",
|
|
15
|
+
Magnetometer = "magnetometer",
|
|
16
|
+
Ambientlightsensor = "ambient-light-sensor",
|
|
17
|
+
Backgroundsync = "background-sync",
|
|
18
|
+
Persistentstorage = "persistent-storage",
|
|
19
|
+
Screenwakelock = "screen-wake-lock",
|
|
20
|
+
Webshare = "web-share",
|
|
21
|
+
Xrspatialtracking = "xr-spatial-tracking"
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum Browser {
|
|
2
|
+
AvantBrowser = "aa",
|
|
3
|
+
AndroidWebViewBeta = "an",
|
|
4
|
+
GoogleChrome = "ch",
|
|
5
|
+
GoogleChromeIOS = "ci",
|
|
6
|
+
GoogleChromeMobile = "cm",
|
|
7
|
+
Chromium = "cr",
|
|
8
|
+
MozillaFirefox = "ff",
|
|
9
|
+
Safari = "sf",
|
|
10
|
+
MobileSafari = "mf",
|
|
11
|
+
MicrosoftEdge = "ps",
|
|
12
|
+
MicrosoftEdgeIOS = "oi",
|
|
13
|
+
OperaMini = "om",
|
|
14
|
+
Opera = "op",
|
|
15
|
+
OperaNext = "on"
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum CreditCard {
|
|
2
|
+
AmericanExpress = "amex",
|
|
3
|
+
Argencard = "argencard",
|
|
4
|
+
Cabal = "cabal",
|
|
5
|
+
Cencosud = "cencosud",
|
|
6
|
+
DinersClub = "diners",
|
|
7
|
+
Discover = "discover",
|
|
8
|
+
Elo = "elo",
|
|
9
|
+
Hipercard = "hipercard",
|
|
10
|
+
JCB = "jcb",
|
|
11
|
+
Mastercard = "mastercard",
|
|
12
|
+
Naranja = "naranja",
|
|
13
|
+
TarjetaShopping = "targeta-shopping",
|
|
14
|
+
UnionPay = "unionpay",
|
|
15
|
+
Visa = "visa",
|
|
16
|
+
MIR = "mir",
|
|
17
|
+
Maestro = "maestro",
|
|
18
|
+
Rupay = "rupay"
|
|
19
|
+
}
|