@appwrite.io/console 11.0.0 → 12.1.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/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": "11.0.0",
5
+ "version": "12.1.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
package/types/client.d.ts CHANGED
@@ -114,12 +114,13 @@ declare class Client {
114
114
  locale: string;
115
115
  mode: string;
116
116
  cookie: string;
117
+ session: string;
118
+ devkey: string;
117
119
  impersonateuserid: string;
118
120
  impersonateuseremail: string;
119
121
  impersonateuserphone: string;
120
122
  platform: string;
121
123
  selfSigned: boolean;
122
- session?: string;
123
124
  };
124
125
  /**
125
126
  * Custom headers for API requests.
@@ -209,13 +210,33 @@ declare class Client {
209
210
  /**
210
211
  * Set Cookie
211
212
  *
212
- * The user cookie to authenticate with
213
+ * The user cookie to authenticate with. Used by SDKs that forward an incoming Cookie header in server-side runtimes.
213
214
  *
214
215
  * @param value string
215
216
  *
216
217
  * @return {this}
217
218
  */
218
219
  setCookie(value: string): this;
220
+ /**
221
+ * Set Session
222
+ *
223
+ * The user session to authenticate with
224
+ *
225
+ * @param value string
226
+ *
227
+ * @return {this}
228
+ */
229
+ setSession(value: string): this;
230
+ /**
231
+ * Set DevKey
232
+ *
233
+ * Your secret dev API key
234
+ *
235
+ * @param value string
236
+ *
237
+ * @return {this}
238
+ */
239
+ setDevKey(value: string): this;
219
240
  /**
220
241
  * Set ImpersonateUserId
221
242
  *
@@ -23,5 +23,6 @@ export declare enum AppwriteMigrationResource {
23
23
  Message = "message",
24
24
  Site = "site",
25
25
  Sitedeployment = "site-deployment",
26
- Sitevariable = "site-variable"
26
+ Sitevariable = "site-variable",
27
+ Backuppolicy = "backup-policy"
27
28
  }
@@ -79,6 +79,7 @@ export declare enum BuildRuntime {
79
79
  Go124 = "go-1.24",
80
80
  Go125 = "go-1.25",
81
81
  Go126 = "go-1.26",
82
+ Rust183 = "rust-1.83",
82
83
  Static1 = "static-1",
83
84
  Flutter324 = "flutter-3.24",
84
85
  Flutter327 = "flutter-3.27",
@@ -1,4 +1,4 @@
1
- export declare enum AuthMethod {
1
+ export declare enum MethodId {
2
2
  Emailpassword = "email-password",
3
3
  Magicurl = "magic-url",
4
4
  Emailotp = "email-otp",
@@ -14,9 +14,12 @@ export declare enum OAuthProvider {
14
14
  Etsy = "etsy",
15
15
  Facebook = "facebook",
16
16
  Figma = "figma",
17
+ Fusionauth = "fusionauth",
17
18
  Github = "github",
18
19
  Gitlab = "gitlab",
19
20
  Google = "google",
21
+ Keycloak = "keycloak",
22
+ Kick = "kick",
20
23
  Linkedin = "linkedin",
21
24
  Microsoft = "microsoft",
22
25
  Notion = "notion",
@@ -0,0 +1,11 @@
1
+ export declare enum PolicyId {
2
+ Passworddictionary = "password-dictionary",
3
+ Passwordhistory = "password-history",
4
+ Passwordpersonaldata = "password-personal-data",
5
+ Sessionalert = "session-alert",
6
+ Sessionduration = "session-duration",
7
+ Sessioninvalidation = "session-invalidation",
8
+ Sessionlimit = "session-limit",
9
+ Userlimit = "user-limit",
10
+ Membershipprivacy = "membership-privacy"
11
+ }
@@ -0,0 +1,74 @@
1
+ export declare enum QuerySuggestionResource {
2
+ Activities = "activities",
3
+ ActivityEvents = "activityevents",
4
+ Archives = "archives",
5
+ Credits = "credits",
6
+ DnsRecords = "dnsrecords",
7
+ Domains = "domains",
8
+ Invoices = "invoices",
9
+ PaymentMethods = "paymentmethods",
10
+ Policies = "policies",
11
+ Projects = "projects",
12
+ Restorations = "restorations",
13
+ TeamAggregations = "teamaggregations",
14
+ Teams = "teams",
15
+ Databases = "databases",
16
+ Tables = "tables",
17
+ Rows = "rows",
18
+ Schedules = "schedules",
19
+ Platforms = "platforms",
20
+ Keys = "keys",
21
+ DevKeys = "devkeys",
22
+ Webhooks = "webhooks",
23
+ Certificates = "certificates",
24
+ Realtime = "realtime",
25
+ Rules = "rules",
26
+ Installations = "installations",
27
+ Repositories = "repositories",
28
+ VcsComments = "vcscomments",
29
+ VcsCommentLocks = "vcscommentlocks",
30
+ Users = "users",
31
+ Cache = "cache",
32
+ Tokens = "tokens",
33
+ Authenticators = "authenticators",
34
+ Challenges = "challenges",
35
+ Sessions = "sessions",
36
+ Identities = "identities",
37
+ Memberships = "memberships",
38
+ Buckets = "buckets",
39
+ Providers = "providers",
40
+ Messages = "messages",
41
+ Topics = "topics",
42
+ Subscribers = "subscribers",
43
+ Targets = "targets",
44
+ Companies = "companies",
45
+ BillingAddresses = "billingaddresses",
46
+ BillingAggregations = "billingaggregations",
47
+ BillingAggregationResources = "billingaggregationresources",
48
+ BillingTeamProjectAggregations = "billingteamprojectaggregations",
49
+ BillingTeamAggregationsV2 = "billingteamaggregations_v2",
50
+ BillingTeamAggregationResources = "billingteamaggregationresources",
51
+ BillingInvoicesV2 = "billinginvoices_v2",
52
+ BillingAddons = "billingaddons",
53
+ Alerts = "alerts",
54
+ Payments = "payments",
55
+ BillingDiscounts = "billingdiscounts",
56
+ Sources = "sources",
57
+ Deals = "deals",
58
+ Blocks = "blocks",
59
+ Threats = "threats",
60
+ Feedbacks = "feedbacks",
61
+ ShInstallations = "sh_installations",
62
+ Attributes = "attributes",
63
+ Indexes = "indexes",
64
+ Functions = "functions",
65
+ Sites = "sites",
66
+ Deployments = "deployments",
67
+ Executions = "executions",
68
+ Variables = "variables",
69
+ Migrations = "migrations",
70
+ ResourceTokens = "resourcetokens",
71
+ Transactions = "transactions",
72
+ TransactionLogs = "transactionlogs",
73
+ Stats = "stats"
74
+ }
@@ -1,4 +1,13 @@
1
1
  export declare enum ResourceType {
2
+ Projects = "projects",
3
+ Functions = "functions",
4
+ Sites = "sites",
5
+ Databases = "databases",
6
+ Buckets = "buckets",
7
+ Providers = "providers",
8
+ Topics = "topics",
9
+ Subscribers = "subscribers",
10
+ Messages = "messages",
2
11
  Function = "function",
3
12
  Execution = "execution",
4
13
  Message = "message",
@@ -79,6 +79,7 @@ export declare enum Runtime {
79
79
  Go124 = "go-1.24",
80
80
  Go125 = "go-1.25",
81
81
  Go126 = "go-1.26",
82
+ Rust183 = "rust-1.83",
82
83
  Static1 = "static-1",
83
84
  Flutter324 = "flutter-3.24",
84
85
  Flutter327 = "flutter-3.27",
@@ -79,6 +79,7 @@ export declare enum Runtimes {
79
79
  Go124 = "go-1.24",
80
80
  Go125 = "go-1.25",
81
81
  Go126 = "go-1.26",
82
+ Rust183 = "rust-1.83",
82
83
  Static1 = "static-1",
83
84
  Flutter324 = "flutter-3.24",
84
85
  Flutter327 = "flutter-3.27",
@@ -2,73 +2,84 @@ export declare enum Scopes {
2
2
  Account = "account",
3
3
  TeamsRead = "teams.read",
4
4
  TeamsWrite = "teams.write",
5
- SessionsWrite = "sessions.write",
5
+ ProjectRead = "project.read",
6
+ ProjectWrite = "project.write",
7
+ KeysRead = "keys.read",
8
+ KeysWrite = "keys.write",
9
+ PlatformsRead = "platforms.read",
10
+ PlatformsWrite = "platforms.write",
11
+ MocksRead = "mocks.read",
12
+ MocksWrite = "mocks.write",
13
+ PoliciesRead = "policies.read",
14
+ PoliciesWrite = "policies.write",
15
+ ProjectPoliciesRead = "project.policies.read",
16
+ ProjectPoliciesWrite = "project.policies.write",
17
+ TemplatesRead = "templates.read",
18
+ TemplatesWrite = "templates.write",
19
+ Oauth2Read = "oauth2.read",
20
+ Oauth2Write = "oauth2.write",
6
21
  UsersRead = "users.read",
7
22
  UsersWrite = "users.write",
23
+ SessionsRead = "sessions.read",
24
+ SessionsWrite = "sessions.write",
8
25
  DatabasesRead = "databases.read",
9
26
  DatabasesWrite = "databases.write",
10
- CollectionsRead = "collections.read",
11
- CollectionsWrite = "collections.write",
12
27
  TablesRead = "tables.read",
13
28
  TablesWrite = "tables.write",
14
- AttributesRead = "attributes.read",
15
- AttributesWrite = "attributes.write",
16
29
  ColumnsRead = "columns.read",
17
30
  ColumnsWrite = "columns.write",
18
31
  IndexesRead = "indexes.read",
19
32
  IndexesWrite = "indexes.write",
20
- DocumentsRead = "documents.read",
21
- DocumentsWrite = "documents.write",
22
33
  RowsRead = "rows.read",
23
34
  RowsWrite = "rows.write",
24
- FilesRead = "files.read",
25
- FilesWrite = "files.write",
35
+ CollectionsRead = "collections.read",
36
+ CollectionsWrite = "collections.write",
37
+ AttributesRead = "attributes.read",
38
+ AttributesWrite = "attributes.write",
39
+ DocumentsRead = "documents.read",
40
+ DocumentsWrite = "documents.write",
26
41
  BucketsRead = "buckets.read",
27
42
  BucketsWrite = "buckets.write",
43
+ FilesRead = "files.read",
44
+ FilesWrite = "files.write",
45
+ TokensRead = "tokens.read",
46
+ TokensWrite = "tokens.write",
28
47
  FunctionsRead = "functions.read",
29
48
  FunctionsWrite = "functions.write",
49
+ ExecutionsRead = "executions.read",
50
+ ExecutionsWrite = "executions.write",
51
+ ExecutionRead = "execution.read",
52
+ ExecutionWrite = "execution.write",
30
53
  SitesRead = "sites.read",
31
54
  SitesWrite = "sites.write",
32
55
  LogRead = "log.read",
33
56
  LogWrite = "log.write",
34
- ExecutionRead = "execution.read",
35
- ExecutionWrite = "execution.write",
36
- LocaleRead = "locale.read",
37
- AvatarsRead = "avatars.read",
38
- HealthRead = "health.read",
39
57
  ProvidersRead = "providers.read",
40
58
  ProvidersWrite = "providers.write",
41
- MessagesRead = "messages.read",
42
- MessagesWrite = "messages.write",
43
59
  TopicsRead = "topics.read",
44
60
  TopicsWrite = "topics.write",
45
61
  SubscribersRead = "subscribers.read",
46
62
  SubscribersWrite = "subscribers.write",
47
63
  TargetsRead = "targets.read",
48
64
  TargetsWrite = "targets.write",
49
- RulesRead = "rules.read",
50
- RulesWrite = "rules.write",
51
- SchedulesRead = "schedules.read",
52
- SchedulesWrite = "schedules.write",
65
+ MessagesRead = "messages.read",
66
+ MessagesWrite = "messages.write",
67
+ WebhooksRead = "webhooks.read",
68
+ WebhooksWrite = "webhooks.write",
69
+ LocaleRead = "locale.read",
70
+ AvatarsRead = "avatars.read",
71
+ HealthRead = "health.read",
72
+ AssistantRead = "assistant.read",
53
73
  MigrationsRead = "migrations.read",
54
74
  MigrationsWrite = "migrations.write",
75
+ SchedulesRead = "schedules.read",
76
+ SchedulesWrite = "schedules.write",
55
77
  VcsRead = "vcs.read",
56
78
  VcsWrite = "vcs.write",
57
- AssistantRead = "assistant.read",
58
- TokensRead = "tokens.read",
59
- TokensWrite = "tokens.write",
60
- WebhooksRead = "webhooks.read",
61
- WebhooksWrite = "webhooks.write",
62
- ProjectRead = "project.read",
63
- ProjectWrite = "project.write",
64
- KeysRead = "keys.read",
65
- KeysWrite = "keys.write",
66
- PlatformsRead = "platforms.read",
67
- PlatformsWrite = "platforms.write",
68
- PoliciesWrite = "policies.write",
69
- TemplatesRead = "templates.read",
70
- TemplatesWrite = "templates.write",
71
- PoliciesRead = "policies.read",
79
+ RulesRead = "rules.read",
80
+ RulesWrite = "rules.write",
81
+ BackupsPoliciesRead = "backups.policies.read",
82
+ BackupsPoliciesWrite = "backups.policies.write",
72
83
  ArchivesRead = "archives.read",
73
84
  ArchivesWrite = "archives.write",
74
85
  RestorationsRead = "restorations.read",
package/types/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export { Functions } from './services/functions';
19
19
  export { Graphql } from './services/graphql';
20
20
  export { Health } from './services/health';
21
21
  export { Locale } from './services/locale';
22
+ export { Manager } from './services/manager';
22
23
  export { Messaging } from './services/messaging';
23
24
  export { Migrations } from './services/migrations';
24
25
  export { Organizations } from './services/organizations';
@@ -57,6 +58,7 @@ export { ImageFormat } from './enums/image-format';
57
58
  export { BackupServices } from './enums/backup-services';
58
59
  export { Platform } from './enums/platform';
59
60
  export { ConsoleResourceType } from './enums/console-resource-type';
61
+ export { QuerySuggestionResource } from './enums/query-suggestion-resource';
60
62
  export { UsageRange } from './enums/usage-range';
61
63
  export { RelationshipType } from './enums/relationship-type';
62
64
  export { RelationMutate } from './enums/relation-mutate';
@@ -73,6 +75,7 @@ export { VCSReferenceType } from './enums/vcs-reference-type';
73
75
  export { DeploymentDownloadType } from './enums/deployment-download-type';
74
76
  export { ExecutionMethod } from './enums/execution-method';
75
77
  export { Name } from './enums/name';
78
+ export { ResourceType } from './enums/resource-type';
76
79
  export { MessagePriority } from './enums/message-priority';
77
80
  export { SmtpEncryption } from './enums/smtp-encryption';
78
81
  export { AppwriteMigrationResource } from './enums/appwrite-migration-resource';
@@ -80,6 +83,8 @@ export { FirebaseMigrationResource } from './enums/firebase-migration-resource';
80
83
  export { NHostMigrationResource } from './enums/n-host-migration-resource';
81
84
  export { SupabaseMigrationResource } from './enums/supabase-migration-resource';
82
85
  export { Addon } from './enums/addon';
86
+ export { MethodId } from './enums/method-id';
87
+ export { PolicyId } from './enums/policy-id';
83
88
  export { ProtocolId } from './enums/protocol-id';
84
89
  export { ServiceId } from './enums/service-id';
85
90
  export { Secure } from './enums/secure';
@@ -87,8 +92,6 @@ export { EmailTemplateType } from './enums/email-template-type';
87
92
  export { EmailTemplateLocale } from './enums/email-template-locale';
88
93
  export { ProjectUsageRange } from './enums/project-usage-range';
89
94
  export { Region } from './enums/region';
90
- export { AuthMethod } from './enums/auth-method';
91
- export { ResourceType } from './enums/resource-type';
92
95
  export { Status } from './enums/status';
93
96
  export { StatusCode } from './enums/status-code';
94
97
  export { ProxyResourceType } from './enums/proxy-resource-type';