@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.
Files changed (55) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/sdk.js +1808 -412
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +1805 -413
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +4339 -944
  7. package/package.json +5 -2
  8. package/types/client.d.ts +24 -11
  9. package/types/enums/billing-plan-group.d.ts +2 -1
  10. package/types/enums/build-runtime.d.ts +3 -0
  11. package/types/enums/cache-database.d.ts +1 -2
  12. package/types/enums/conversation-type.d.ts +9 -0
  13. package/types/enums/framework.d.ts +1 -0
  14. package/types/enums/id-token-provider.d.ts +4 -0
  15. package/types/enums/o-auth-2-auth-0-prompt.d.ts +5 -0
  16. package/types/enums/o-auth-2-discord-prompt.d.ts +4 -0
  17. package/types/enums/o-auth-2-github-prompt.d.ts +3 -0
  18. package/types/enums/o-auth-2-kakao-prompt.d.ts +6 -0
  19. package/types/enums/o-auth-2-microsoft-prompt.d.ts +6 -0
  20. package/types/enums/o-auth-2-okta-prompt.d.ts +5 -0
  21. package/types/enums/o-auth-2-salesforce-prompt.d.ts +4 -0
  22. package/types/enums/o-auth-2-zoho-prompt.d.ts +3 -0
  23. package/types/enums/organization-key-scopes.d.ts +2 -4
  24. package/types/enums/project-email-template-id.d.ts +3 -1
  25. package/types/enums/project-key-scopes.d.ts +1 -0
  26. package/types/enums/project-o-auth-2-auth-0-prompt.d.ts +5 -0
  27. package/types/enums/project-o-auth-2-discord-prompt.d.ts +4 -0
  28. package/types/enums/project-o-auth-2-git-hub-prompt.d.ts +3 -0
  29. package/types/enums/project-o-auth-2-kakao-prompt.d.ts +6 -0
  30. package/types/enums/project-o-auth-2-microsoft-prompt.d.ts +6 -0
  31. package/types/enums/project-o-auth-2-okta-prompt.d.ts +5 -0
  32. package/types/enums/project-o-auth-2-salesforce-prompt.d.ts +4 -0
  33. package/types/enums/project-o-auth-2-zoho-prompt.d.ts +3 -0
  34. package/types/enums/project-policy-id.d.ts +1 -0
  35. package/types/enums/query-suggestion-resource.d.ts +1 -3
  36. package/types/enums/runtime.d.ts +3 -0
  37. package/types/index.d.ts +23 -2
  38. package/types/models.d.ts +271 -562
  39. package/types/services/account.d.ts +167 -24
  40. package/types/services/console.d.ts +2 -2
  41. package/types/services/databases.d.ts +4 -4
  42. package/types/services/growth.d.ts +100 -0
  43. package/types/services/manager.d.ts +39 -14
  44. package/types/services/messaging.d.ts +94 -8
  45. package/types/services/organization.d.ts +165 -0
  46. package/types/services/organizations.d.ts +0 -19
  47. package/types/services/project.d.ts +93 -50
  48. package/types/services/projects.d.ts +0 -94
  49. package/types/services/push.d.ts +153 -0
  50. package/types/services/storage.d.ts +4 -4
  51. package/types/services/tables-db.d.ts +37 -37
  52. package/types/services/teams.d.ts +0 -25
  53. package/types/services/users.d.ts +4 -29
  54. package/types/topic.d.ts +34 -0
  55. 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": "16.1.0",
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
- "json-bigint": "1.0.0"
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
  *
@@ -1,5 +1,6 @@
1
1
  export declare enum BillingPlanGroup {
2
- Starter = "starter",
2
+ Free = "free",
3
+ Start = "start",
3
4
  Pro = "pro",
4
5
  Scale = "scale"
5
6
  }
@@ -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,5 +1,4 @@
1
1
  export declare enum CacheDatabase {
2
2
  Console = "console",
3
- Project = "project",
4
- Logs = "logs"
3
+ Project = "project"
5
4
  }
@@ -0,0 +1,9 @@
1
+ export declare enum ConversationType {
2
+ Support = "support",
3
+ Feedback = "feedback",
4
+ Docs = "docs",
5
+ Enterprise = "enterprise",
6
+ Startup = "startup",
7
+ Partner = "partner",
8
+ Sponsorship = "sponsorship"
9
+ }
@@ -11,6 +11,7 @@ export declare enum Framework {
11
11
  Remix = "remix",
12
12
  Lynx = "lynx",
13
13
  Flutter = "flutter",
14
+ Jaspr = "jaspr",
14
15
  Reactnative = "react-native",
15
16
  Vite = "vite",
16
17
  Other = "other"
@@ -0,0 +1,4 @@
1
+ export declare enum IdTokenProvider {
2
+ Apple = "apple",
3
+ Google = "google"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum OAuth2Auth0Prompt {
2
+ None = "none",
3
+ Login = "login",
4
+ Consent = "consent"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum OAuth2DiscordPrompt {
2
+ None = "none",
3
+ Consent = "consent"
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum OAuth2GithubPrompt {
2
+ SelectAccount = "select_account"
3
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum OAuth2KakaoPrompt {
2
+ None = "none",
3
+ Login = "login",
4
+ Create = "create",
5
+ SelectAccount = "select_account"
6
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum OAuth2MicrosoftPrompt {
2
+ None = "none",
3
+ Login = "login",
4
+ Consent = "consent",
5
+ SelectAccount = "select_account"
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum OAuth2OktaPrompt {
2
+ None = "none",
3
+ Login = "login",
4
+ Consent = "consent"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum OAuth2SalesforcePrompt {
2
+ Login = "login",
3
+ Consent = "consent"
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum OAuth2ZohoPrompt {
2
+ Consent = "consent"
3
+ }
@@ -1,10 +1,8 @@
1
1
  export declare enum OrganizationKeyScopes {
2
2
  ProjectsRead = "projects.read",
3
3
  ProjectsWrite = "projects.write",
4
- DevKeysRead = "devKeys.read",
5
- DevKeysWrite = "devKeys.write",
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",
@@ -0,0 +1,5 @@
1
+ export declare enum ProjectOAuth2Auth0Prompt {
2
+ None = "none",
3
+ Login = "login",
4
+ Consent = "consent"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum ProjectOAuth2DiscordPrompt {
2
+ None = "none",
3
+ Consent = "consent"
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum ProjectOAuth2GitHubPrompt {
2
+ SelectAccount = "select_account"
3
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum ProjectOAuth2KakaoPrompt {
2
+ None = "none",
3
+ Login = "login",
4
+ Create = "create",
5
+ SelectAccount = "select_account"
6
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum ProjectOAuth2MicrosoftPrompt {
2
+ None = "none",
3
+ Login = "login",
4
+ Consent = "consent",
5
+ SelectAccount = "select_account"
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum ProjectOAuth2OktaPrompt {
2
+ None = "none",
3
+ Login = "login",
4
+ Consent = "consent"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum ProjectOAuth2SalesforcePrompt {
2
+ Login = "login",
3
+ Consent = "consent"
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum ProjectOAuth2ZohoPrompt {
2
+ Consent = "consent"
3
+ }
@@ -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",
@@ -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.0.x as shipped on Appwrite Cloud.
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';