@appwrite.io/console 16.1.0 → 18.0.0
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/README.md +3 -3
- package/dist/cjs/sdk.js +1808 -412
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1805 -413
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +4339 -944
- package/package.json +5 -2
- package/types/client.d.ts +24 -11
- package/types/enums/billing-plan-group.d.ts +2 -1
- package/types/enums/build-runtime.d.ts +3 -0
- package/types/enums/cache-database.d.ts +1 -2
- package/types/enums/conversation-type.d.ts +9 -0
- package/types/enums/framework.d.ts +1 -0
- package/types/enums/id-token-provider.d.ts +4 -0
- package/types/enums/o-auth-2-auth-0-prompt.d.ts +5 -0
- package/types/enums/o-auth-2-discord-prompt.d.ts +4 -0
- package/types/enums/o-auth-2-github-prompt.d.ts +3 -0
- package/types/enums/o-auth-2-kakao-prompt.d.ts +6 -0
- package/types/enums/o-auth-2-microsoft-prompt.d.ts +6 -0
- package/types/enums/o-auth-2-okta-prompt.d.ts +5 -0
- package/types/enums/o-auth-2-salesforce-prompt.d.ts +4 -0
- package/types/enums/o-auth-2-zoho-prompt.d.ts +3 -0
- package/types/enums/organization-key-scopes.d.ts +2 -4
- package/types/enums/project-email-template-id.d.ts +3 -1
- package/types/enums/project-key-scopes.d.ts +1 -0
- package/types/enums/project-o-auth-2-auth-0-prompt.d.ts +5 -0
- package/types/enums/project-o-auth-2-discord-prompt.d.ts +4 -0
- package/types/enums/project-o-auth-2-git-hub-prompt.d.ts +3 -0
- package/types/enums/project-o-auth-2-kakao-prompt.d.ts +6 -0
- package/types/enums/project-o-auth-2-microsoft-prompt.d.ts +6 -0
- package/types/enums/project-o-auth-2-okta-prompt.d.ts +5 -0
- package/types/enums/project-o-auth-2-salesforce-prompt.d.ts +4 -0
- package/types/enums/project-o-auth-2-zoho-prompt.d.ts +3 -0
- package/types/enums/project-policy-id.d.ts +1 -0
- package/types/enums/query-suggestion-resource.d.ts +1 -3
- package/types/enums/runtime.d.ts +3 -0
- package/types/index.d.ts +23 -2
- package/types/models.d.ts +271 -562
- package/types/services/account.d.ts +167 -24
- package/types/services/console.d.ts +2 -2
- package/types/services/databases.d.ts +4 -4
- package/types/services/growth.d.ts +100 -0
- package/types/services/manager.d.ts +39 -14
- package/types/services/messaging.d.ts +94 -8
- package/types/services/organization.d.ts +165 -0
- package/types/services/organizations.d.ts +0 -19
- package/types/services/project.d.ts +93 -50
- package/types/services/projects.d.ts +0 -94
- package/types/services/push.d.ts +153 -0
- package/types/services/storage.d.ts +4 -4
- package/types/services/tables-db.d.ts +37 -37
- package/types/services/teams.d.ts +0 -25
- package/types/services/users.d.ts +4 -29
- package/types/topic.d.ts +34 -0
- package/types/enums/project-usage-range.d.ts +0 -4
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@appwrite.io/console",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "18.0.0",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
|
@@ -37,7 +37,9 @@
|
|
|
37
37
|
"node": ">=18.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"
|
|
40
|
+
"buffer": "6.0.3",
|
|
41
|
+
"json-bigint": "1.0.0",
|
|
42
|
+
"mqtt": "5.15.2"
|
|
41
43
|
},
|
|
42
44
|
"devDependencies": {
|
|
43
45
|
"@eslint/js": "10.0.1",
|
|
@@ -49,6 +51,7 @@
|
|
|
49
51
|
"playwright": "1.56.1",
|
|
50
52
|
"prettier": "3.9.6",
|
|
51
53
|
"rollup": "4.63.2",
|
|
54
|
+
"rollup-plugin-polyfill-node": "0.13.0",
|
|
52
55
|
"serve-handler": "6.1.7",
|
|
53
56
|
"tslib": "2.8.1",
|
|
54
57
|
"typescript": "5.9.3",
|
package/types/client.d.ts
CHANGED
|
@@ -108,6 +108,8 @@ declare class Client {
|
|
|
108
108
|
config: {
|
|
109
109
|
endpoint: string;
|
|
110
110
|
endpointRealtime: string;
|
|
111
|
+
endpointPush: string;
|
|
112
|
+
pushClientId: string;
|
|
111
113
|
project: string;
|
|
112
114
|
key: string;
|
|
113
115
|
organization: string;
|
|
@@ -117,7 +119,6 @@ declare class Client {
|
|
|
117
119
|
mode: string;
|
|
118
120
|
cookie: string;
|
|
119
121
|
session: string;
|
|
120
|
-
devkey: string;
|
|
121
122
|
impersonateuserid: string;
|
|
122
123
|
impersonateuseremail: string;
|
|
123
124
|
impersonateuserphone: string;
|
|
@@ -156,6 +157,28 @@ declare class Client {
|
|
|
156
157
|
* @returns {this}
|
|
157
158
|
*/
|
|
158
159
|
setEndpointRealtime(endpointRealtime: string): this;
|
|
160
|
+
/**
|
|
161
|
+
* Set Push Endpoint
|
|
162
|
+
*
|
|
163
|
+
* The MQTT-over-WebSocket URL the AppwritePush service connects to.
|
|
164
|
+
*
|
|
165
|
+
* @param {string} endpointPush
|
|
166
|
+
*
|
|
167
|
+
* @returns {this}
|
|
168
|
+
*/
|
|
169
|
+
setPushEndpoint(endpointPush: string): this;
|
|
170
|
+
/**
|
|
171
|
+
* Set Push Client Id
|
|
172
|
+
*
|
|
173
|
+
* A stable client id for the AppwritePush service. The broker keys its
|
|
174
|
+
* offline-replay cursor on this id, so pass a stable value to resume replay across
|
|
175
|
+
* reloads/restarts. Defaults to a per-connection id when unset.
|
|
176
|
+
*
|
|
177
|
+
* @param {string} pushClientId
|
|
178
|
+
*
|
|
179
|
+
* @returns {this}
|
|
180
|
+
*/
|
|
181
|
+
setPushClientId(pushClientId: string): this;
|
|
159
182
|
/**
|
|
160
183
|
* Set self-signed
|
|
161
184
|
*
|
|
@@ -261,16 +284,6 @@ declare class Client {
|
|
|
261
284
|
* @return {this}
|
|
262
285
|
*/
|
|
263
286
|
setSession(value: string): this;
|
|
264
|
-
/**
|
|
265
|
-
* Set DevKey
|
|
266
|
-
*
|
|
267
|
-
* Your secret dev API key
|
|
268
|
-
*
|
|
269
|
-
* @param value string
|
|
270
|
-
*
|
|
271
|
-
* @return {this}
|
|
272
|
-
*/
|
|
273
|
-
setDevKey(value: string): this;
|
|
274
287
|
/**
|
|
275
288
|
* Set ImpersonateUserId
|
|
276
289
|
*
|
|
@@ -31,6 +31,9 @@ export declare enum BuildRuntime {
|
|
|
31
31
|
Pythonml311 = "python-ml-3.11",
|
|
32
32
|
Pythonml312 = "python-ml-3.12",
|
|
33
33
|
Pythonml313 = "python-ml-3.13",
|
|
34
|
+
Deno121 = "deno-1.21",
|
|
35
|
+
Deno124 = "deno-1.24",
|
|
36
|
+
Deno135 = "deno-1.35",
|
|
34
37
|
Deno140 = "deno-1.40",
|
|
35
38
|
Deno146 = "deno-1.46",
|
|
36
39
|
Deno20 = "deno-2.0",
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export declare enum OrganizationKeyScopes {
|
|
2
2
|
ProjectsRead = "projects.read",
|
|
3
3
|
ProjectsWrite = "projects.write",
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
OrganizationKeysRead = "organization.keys.read",
|
|
7
|
-
OrganizationKeysWrite = "organization.keys.write",
|
|
4
|
+
OrganizationProjectsKeysRead = "organization.projects.keys.read",
|
|
5
|
+
OrganizationProjectsKeysWrite = "organization.projects.keys.write",
|
|
8
6
|
OrganizationInstallationsRead = "organization.installations.read",
|
|
9
7
|
OrganizationInstallationsWrite = "organization.installations.write",
|
|
10
8
|
OrganizationMembershipsRead = "organization.memberships.read",
|
|
@@ -5,5 +5,7 @@ export declare enum ProjectEmailTemplateId {
|
|
|
5
5
|
Invitation = "invitation",
|
|
6
6
|
MfaChallenge = "mfaChallenge",
|
|
7
7
|
SessionAlert = "sessionAlert",
|
|
8
|
-
OtpSession = "otpSession"
|
|
8
|
+
OtpSession = "otpSession",
|
|
9
|
+
OtpVerification = "otpVerification",
|
|
10
|
+
OtpRecovery = "otpRecovery"
|
|
9
11
|
}
|
|
@@ -103,6 +103,7 @@ export declare enum ProjectKeyScopes {
|
|
|
103
103
|
ReportsWrite = "reports.write",
|
|
104
104
|
PresencesRead = "presences.read",
|
|
105
105
|
PresencesWrite = "presences.write",
|
|
106
|
+
DedicatedDatabasesExecute = "dedicatedDatabases.execute",
|
|
106
107
|
BackupsPoliciesRead = "backups.policies.read",
|
|
107
108
|
BackupsPoliciesWrite = "backups.policies.write",
|
|
108
109
|
ArchivesRead = "archives.read",
|
|
@@ -3,6 +3,7 @@ export declare enum ProjectPolicyId {
|
|
|
3
3
|
Passwordhistory = "password-history",
|
|
4
4
|
Passwordstrength = "password-strength",
|
|
5
5
|
Passwordpersonaldata = "password-personal-data",
|
|
6
|
+
Passwordpwned = "password-pwned",
|
|
6
7
|
Sessionalert = "session-alert",
|
|
7
8
|
Sessionduration = "session-duration",
|
|
8
9
|
Sessioninvalidation = "session-invalidation",
|
|
@@ -18,7 +18,6 @@ export declare enum QuerySuggestionResource {
|
|
|
18
18
|
Schedules = "schedules",
|
|
19
19
|
Platforms = "platforms",
|
|
20
20
|
Keys = "keys",
|
|
21
|
-
DevKeys = "devkeys",
|
|
22
21
|
Webhooks = "webhooks",
|
|
23
22
|
Notifications = "notifications",
|
|
24
23
|
Certificates = "certificates",
|
|
@@ -41,6 +40,7 @@ export declare enum QuerySuggestionResource {
|
|
|
41
40
|
Buckets = "buckets",
|
|
42
41
|
Providers = "providers",
|
|
43
42
|
Messages = "messages",
|
|
43
|
+
PushLedger = "pushledger",
|
|
44
44
|
Topics = "topics",
|
|
45
45
|
Subscribers = "subscribers",
|
|
46
46
|
Targets = "targets",
|
|
@@ -83,13 +83,11 @@ export declare enum QuerySuggestionResource {
|
|
|
83
83
|
Functions = "functions",
|
|
84
84
|
Sites = "sites",
|
|
85
85
|
Deployments = "deployments",
|
|
86
|
-
Executions = "executions",
|
|
87
86
|
Variables = "variables",
|
|
88
87
|
Migrations = "migrations",
|
|
89
88
|
ResourceTokens = "resourcetokens",
|
|
90
89
|
Transactions = "transactions",
|
|
91
90
|
TransactionLogs = "transactionlogs",
|
|
92
|
-
Stats = "stats",
|
|
93
91
|
DedicatedDatabases = "dedicateddatabases",
|
|
94
92
|
DedicatedDatabaseConfigs = "dedicateddatabaseconfigs",
|
|
95
93
|
DedicatedDatabaseRuntimes = "dedicateddatabaseruntimes",
|
package/types/enums/runtime.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ export declare enum Runtime {
|
|
|
31
31
|
Pythonml311 = "python-ml-3.11",
|
|
32
32
|
Pythonml312 = "python-ml-3.12",
|
|
33
33
|
Pythonml313 = "python-ml-3.13",
|
|
34
|
+
Deno121 = "deno-1.21",
|
|
35
|
+
Deno124 = "deno-1.24",
|
|
36
|
+
Deno135 = "deno-1.35",
|
|
34
37
|
Deno140 = "deno-1.40",
|
|
35
38
|
Deno146 = "deno-1.46",
|
|
36
39
|
Deno20 = "deno-2.0",
|
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Appwrite Console SDK
|
|
3
3
|
*
|
|
4
|
-
* This SDK targets Appwrite server version 2.
|
|
4
|
+
* This SDK targets Appwrite server version 2.3.x as shipped on Appwrite Cloud.
|
|
5
5
|
* Self-hosted releases can lag behind Cloud — if you run an older self-hosted
|
|
6
6
|
* build, use a matching older SDK from
|
|
7
7
|
* [previous releases](https://github.com/appwrite/sdk-for-console/releases)
|
|
@@ -22,6 +22,7 @@ export { Domains } from './services/domains';
|
|
|
22
22
|
export { Embeddings } from './services/embeddings';
|
|
23
23
|
export { Functions } from './services/functions';
|
|
24
24
|
export { Graphql } from './services/graphql';
|
|
25
|
+
export { Growth } from './services/growth';
|
|
25
26
|
export { Locale } from './services/locale';
|
|
26
27
|
export { Manager } from './services/manager';
|
|
27
28
|
export { Messaging } from './services/messaging';
|
|
@@ -50,17 +51,21 @@ export { VectorsDB } from './services/vectors-db';
|
|
|
50
51
|
export { Waf } from './services/waf';
|
|
51
52
|
export { Webhooks } from './services/webhooks';
|
|
52
53
|
export { Realtime } from './services/realtime';
|
|
54
|
+
export { Push } from './services/push';
|
|
53
55
|
export type { Models, Payload, RealtimeResponseEvent, UploadProgress, } from './client';
|
|
54
56
|
export type { RealtimeSubscription } from './services/realtime';
|
|
57
|
+
export type { PushMessage, PushSubscription, SubscribeOptions, MessageCallback, } from './services/push';
|
|
55
58
|
export type { QueryTypes, QueryTypesList } from './query';
|
|
56
59
|
export { Permission } from './permission';
|
|
57
60
|
export { Role } from './role';
|
|
58
61
|
export { ID } from './id';
|
|
62
|
+
export { Topic, ResolvedTopic } from './topic';
|
|
59
63
|
export { Channel } from './channel';
|
|
60
64
|
export { Operator, Condition } from './operator';
|
|
61
65
|
export { AccountKeyScopes } from './enums/account-key-scopes';
|
|
62
66
|
export { AuthenticatorType } from './enums/authenticator-type';
|
|
63
67
|
export { AuthenticationFactor } from './enums/authentication-factor';
|
|
68
|
+
export { IdTokenProvider } from './enums/id-token-provider';
|
|
64
69
|
export { OAuthProvider } from './enums/o-auth-provider';
|
|
65
70
|
export { Browser } from './enums/browser';
|
|
66
71
|
export { CreditCard } from './enums/credit-card';
|
|
@@ -90,6 +95,7 @@ export { TemplateReferenceType } from './enums/template-reference-type';
|
|
|
90
95
|
export { VCSReferenceType } from './enums/vcs-reference-type';
|
|
91
96
|
export { DeploymentDownloadType } from './enums/deployment-download-type';
|
|
92
97
|
export { ExecutionMethod } from './enums/execution-method';
|
|
98
|
+
export { ConversationType } from './enums/conversation-type';
|
|
93
99
|
export { BlockResourceType } from './enums/block-resource-type';
|
|
94
100
|
export { BlockMode } from './enums/block-mode';
|
|
95
101
|
export { Region } from './enums/region';
|
|
@@ -106,14 +112,21 @@ export { OrganizationKeyScopes } from './enums/organization-key-scopes';
|
|
|
106
112
|
export { AddonKey } from './enums/addon-key';
|
|
107
113
|
export { UsageRange } from './enums/usage-range';
|
|
108
114
|
export { ProjectAuthMethodId } from './enums/project-auth-method-id';
|
|
115
|
+
export { ProjectOAuth2Auth0Prompt } from './enums/project-o-auth-2-auth-0-prompt';
|
|
116
|
+
export { ProjectOAuth2DiscordPrompt } from './enums/project-o-auth-2-discord-prompt';
|
|
117
|
+
export { ProjectOAuth2GitHubPrompt } from './enums/project-o-auth-2-git-hub-prompt';
|
|
109
118
|
export { ProjectOAuth2GooglePrompt } from './enums/project-o-auth-2-google-prompt';
|
|
119
|
+
export { ProjectOAuth2KakaoPrompt } from './enums/project-o-auth-2-kakao-prompt';
|
|
120
|
+
export { ProjectOAuth2MicrosoftPrompt } from './enums/project-o-auth-2-microsoft-prompt';
|
|
110
121
|
export { ProjectOAuth2OidcPrompt } from './enums/project-o-auth-2-oidc-prompt';
|
|
122
|
+
export { ProjectOAuth2OktaPrompt } from './enums/project-o-auth-2-okta-prompt';
|
|
123
|
+
export { ProjectOAuth2SalesforcePrompt } from './enums/project-o-auth-2-salesforce-prompt';
|
|
124
|
+
export { ProjectOAuth2ZohoPrompt } from './enums/project-o-auth-2-zoho-prompt';
|
|
111
125
|
export { ProjectOAuthProviderId } from './enums/project-o-auth-provider-id';
|
|
112
126
|
export { ProjectPolicyId } from './enums/project-policy-id';
|
|
113
127
|
export { ProjectProtocolId } from './enums/project-protocol-id';
|
|
114
128
|
export { ProjectServiceId } from './enums/project-service-id';
|
|
115
129
|
export { ProjectSMTPSecure } from './enums/project-smtp-secure';
|
|
116
|
-
export { ProjectUsageRange } from './enums/project-usage-range';
|
|
117
130
|
export { ScheduleResourceType } from './enums/schedule-resource-type';
|
|
118
131
|
export { Status } from './enums/status';
|
|
119
132
|
export { InvalidationType } from './enums/invalidation-type';
|
|
@@ -148,8 +161,16 @@ export { DeploymentStatus } from './enums/deployment-status';
|
|
|
148
161
|
export { ExecutionResourceType } from './enums/execution-resource-type';
|
|
149
162
|
export { ExecutionTrigger } from './enums/execution-trigger';
|
|
150
163
|
export { ExecutionStatus } from './enums/execution-status';
|
|
164
|
+
export { OAuth2GithubPrompt } from './enums/o-auth-2-github-prompt';
|
|
165
|
+
export { OAuth2DiscordPrompt } from './enums/o-auth-2-discord-prompt';
|
|
151
166
|
export { OAuth2GooglePrompt } from './enums/o-auth-2-google-prompt';
|
|
167
|
+
export { OAuth2ZohoPrompt } from './enums/o-auth-2-zoho-prompt';
|
|
168
|
+
export { OAuth2SalesforcePrompt } from './enums/o-auth-2-salesforce-prompt';
|
|
169
|
+
export { OAuth2Auth0Prompt } from './enums/o-auth-2-auth-0-prompt';
|
|
152
170
|
export { OAuth2OidcPrompt } from './enums/o-auth-2-oidc-prompt';
|
|
171
|
+
export { OAuth2OktaPrompt } from './enums/o-auth-2-okta-prompt';
|
|
172
|
+
export { OAuth2MicrosoftPrompt } from './enums/o-auth-2-microsoft-prompt';
|
|
173
|
+
export { OAuth2KakaoPrompt } from './enums/o-auth-2-kakao-prompt';
|
|
153
174
|
export { PlatformType } from './enums/platform-type';
|
|
154
175
|
export { ProxyRuleDeploymentResourceType } from './enums/proxy-rule-deployment-resource-type';
|
|
155
176
|
export { ProxyRuleStatus } from './enums/proxy-rule-status';
|