@appwrite.io/console 15.8.0 → 16.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.
Files changed (54) hide show
  1. package/README.md +5 -6
  2. package/dist/cjs/package.json +1 -1
  3. package/dist/cjs/sdk.js +8360 -4537
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/package.json +1 -1
  6. package/dist/esm/sdk.js +8359 -4538
  7. package/dist/esm/sdk.js.map +1 -1
  8. package/dist/iife/sdk.js +8360 -4537
  9. package/package.json +59 -50
  10. package/types/client.d.ts +13 -2
  11. package/types/enums/{addon.d.ts → addon-key.d.ts} +1 -1
  12. package/types/enums/authentication-factor.d.ts +2 -1
  13. package/types/enums/build-runtime.d.ts +4 -1
  14. package/types/enums/embedding-model.d.ts +1 -3
  15. package/types/enums/execution-resource-type.d.ts +4 -0
  16. package/types/enums/image-gravity.d.ts +1 -0
  17. package/types/enums/invalidation-type.d.ts +5 -0
  18. package/types/enums/o-auth-provider.d.ts +5 -0
  19. package/types/enums/project-key-scopes.d.ts +20 -3
  20. package/types/enums/project-o-auth-provider-id.d.ts +5 -0
  21. package/types/enums/project-policy-id.d.ts +1 -0
  22. package/types/enums/query-suggestion-resource.d.ts +5 -1
  23. package/types/enums/runtime.d.ts +4 -1
  24. package/types/enums/usage-event-dimension.d.ts +27 -0
  25. package/types/enums/usage-event-metric.d.ts +55 -0
  26. package/types/enums/usage-gauge-dimension.d.ts +7 -0
  27. package/types/enums/usage-gauge-metric.d.ts +50 -0
  28. package/types/enums/usage-interval.d.ts +7 -0
  29. package/types/enums/usage-order-by.d.ts +4 -0
  30. package/types/enums/usage-order-direction.d.ts +4 -0
  31. package/types/index.d.ts +19 -6
  32. package/types/models.d.ts +764 -313
  33. package/types/services/account.d.ts +8 -8
  34. package/types/services/affiliates.d.ts +162 -0
  35. package/types/services/apps.d.ts +6 -6
  36. package/types/services/avatars.d.ts +44 -0
  37. package/types/services/databases.d.ts +8 -8
  38. package/types/services/documents-db.d.ts +13 -7
  39. package/types/services/domains.d.ts +82 -54
  40. package/types/services/embeddings.d.ts +31 -0
  41. package/types/services/functions.d.ts +6 -6
  42. package/types/services/mongo.d.ts +17 -23
  43. package/types/services/mysql.d.ts +17 -23
  44. package/types/services/organizations.d.ts +5 -5
  45. package/types/services/postgresql.d.ts +17 -23
  46. package/types/services/project.d.ts +171 -15
  47. package/types/services/proxy.d.ts +30 -0
  48. package/types/services/sites.d.ts +15 -8
  49. package/types/services/storage.d.ts +6 -6
  50. package/types/services/tables-db.d.ts +37 -12
  51. package/types/services/usage.d.ts +52 -38
  52. package/types/services/users.d.ts +24 -2
  53. package/types/services/vectors-db.d.ts +15 -34
  54. package/types/services/waf.d.ts +11 -2
package/package.json CHANGED
@@ -1,53 +1,62 @@
1
1
  {
2
- "name": "@appwrite.io/console",
3
- "homepage": "https://appwrite.io/support",
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": "15.8.0",
6
- "license": "BSD-3-Clause",
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"
2
+ "name": "@appwrite.io/console",
3
+ "homepage": "https://appwrite.io/support",
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",
6
+ "license": "BSD-3-Clause",
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"
13
15
  },
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": "https://github.com/appwrite/sdk-for-console"
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.3",
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.62.3",
44
- "serve-handler": "6.1.7",
45
- "tslib": "2.8.1",
46
- "typescript": "5.9.3"
47
- },
48
- "overrides": {
49
- "brace-expansion": "5.0.8"
50
- },
51
- "jsdelivr": "dist/iife/sdk.js",
52
- "unpkg": "dist/iife/sdk.js"
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": "https://github.com/appwrite/sdk-for-console"
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
+ "format": "prettier --write .",
31
+ "format:check": "prettier --check .",
32
+ "lint": "eslint .",
33
+ "lint:fix": "eslint --fix .",
34
+ "analyse": "tsc --noEmit"
35
+ },
36
+ "engines": {
37
+ "node": ">=18.0.0"
38
+ },
39
+ "dependencies": {
40
+ "json-bigint": "1.0.0"
41
+ },
42
+ "devDependencies": {
43
+ "@eslint/js": "10.0.1",
44
+ "@rollup/plugin-commonjs": "29.0.3",
45
+ "@rollup/plugin-node-resolve": "16.0.3",
46
+ "@rollup/plugin-typescript": "12.3.0",
47
+ "@types/json-bigint": "1.0.4",
48
+ "eslint": "10.10.0",
49
+ "playwright": "1.56.1",
50
+ "prettier": "3.9.6",
51
+ "rollup": "4.63.2",
52
+ "serve-handler": "6.1.7",
53
+ "tslib": "2.8.1",
54
+ "typescript": "5.9.3",
55
+ "typescript-eslint": "8.70.0"
56
+ },
57
+ "overrides": {
58
+ "brace-expansion": "5.0.9"
59
+ },
60
+ "jsdelivr": "dist/iife/sdk.js",
61
+ "unpkg": "dist/iife/sdk.js"
53
62
  }
package/types/client.d.ts CHANGED
@@ -23,7 +23,7 @@ type Headers = {
23
23
  /**
24
24
  * Realtime event response structure with generic payload type.
25
25
  */
26
- type RealtimeResponseEvent<T extends unknown> = {
26
+ type RealtimeResponseEvent<T> = {
27
27
  /**
28
28
  * List of event names associated with the response.
29
29
  */
@@ -110,6 +110,7 @@ declare class Client {
110
110
  endpointRealtime: string;
111
111
  project: string;
112
112
  key: string;
113
+ organization: string;
113
114
  jwt: string;
114
115
  bearer: string;
115
116
  locale: string;
@@ -194,6 +195,16 @@ declare class Client {
194
195
  * @return {this}
195
196
  */
196
197
  setKey(value: string): this;
198
+ /**
199
+ * Set Organization
200
+ *
201
+ * Your organization ID
202
+ *
203
+ * @param value string
204
+ *
205
+ * @return {this}
206
+ */
207
+ setOrganization(value: string): this;
197
208
  /**
198
209
  * Set JWT
199
210
  *
@@ -336,7 +347,7 @@ declare class Client {
336
347
  * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update.
337
348
  * @returns {() => void} Unsubscribes from events.
338
349
  */
339
- subscribe<T extends unknown>(channels: string | string[] | Channel<any> | ActionableChannel | ResolvedChannel | (Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (payload: RealtimeResponseEvent<T>) => void, queries?: (string | Query)[]): () => void;
350
+ subscribe<T>(channels: string | string[] | Channel<any> | ActionableChannel | ResolvedChannel | (Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (payload: RealtimeResponseEvent<T>) => void, queries?: (string | Query)[]): () => void;
340
351
  prepareRequest(method: string, url: URL, headers?: Headers, params?: Payload): {
341
352
  uri: string;
342
353
  options: RequestInit;
@@ -1,4 +1,4 @@
1
- export declare enum Addon {
1
+ export declare enum AddonKey {
2
2
  Baa = "baa",
3
3
  Premiumgeodb = "premiumgeodb",
4
4
  Premiumgeodborg = "premiumgeodborg",
@@ -2,5 +2,6 @@ export declare enum AuthenticationFactor {
2
2
  Email = "email",
3
3
  Phone = "phone",
4
4
  Totp = "totp",
5
- Recoverycode = "recoverycode"
5
+ Recoverycode = "recoverycode",
6
+ Custom = "custom"
6
7
  }
@@ -50,6 +50,7 @@ export declare enum BuildRuntime {
50
50
  Dart310 = "dart-3.10",
51
51
  Dart311 = "dart-3.11",
52
52
  Dart312 = "dart-3.12",
53
+ Dart313 = "dart-3.13",
53
54
  Dotnet60 = "dotnet-6.0",
54
55
  Dotnet70 = "dotnet-7.0",
55
56
  Dotnet80 = "dotnet-8.0",
@@ -77,6 +78,7 @@ export declare enum BuildRuntime {
77
78
  Bun11 = "bun-1.1",
78
79
  Bun12 = "bun-1.2",
79
80
  Bun13 = "bun-1.3",
81
+ Bun14 = "bun-1.4",
80
82
  Go123 = "go-1.23",
81
83
  Go124 = "go-1.24",
82
84
  Go125 = "go-1.25",
@@ -90,5 +92,6 @@ export declare enum BuildRuntime {
90
92
  Flutter335 = "flutter-3.35",
91
93
  Flutter338 = "flutter-3.38",
92
94
  Flutter341 = "flutter-3.41",
93
- Flutter344 = "flutter-3.44"
95
+ Flutter344 = "flutter-3.44",
96
+ Flutter347 = "flutter-3.47"
94
97
  }
@@ -1,6 +1,4 @@
1
1
  export declare enum EmbeddingModel {
2
2
  Nomicembedtext = "nomic-embed-text",
3
- Embeddinggemma = "embedding-gemma",
4
- Allminilm = "all-minilm",
5
- Bgesmall = "bge-small"
3
+ Allminilm = "all-minilm"
6
4
  }
@@ -0,0 +1,4 @@
1
+ export declare enum ExecutionResourceType {
2
+ Functions = "functions",
3
+ Sites = "sites"
4
+ }
@@ -1,4 +1,5 @@
1
1
  export declare enum ImageGravity {
2
+ Auto = "auto",
2
3
  Center = "center",
3
4
  Topleft = "top-left",
4
5
  Top = "top",
@@ -0,0 +1,5 @@
1
+ export declare enum InvalidationType {
2
+ Tag = "tag",
3
+ Path = "path",
4
+ All = "all"
5
+ }
@@ -8,6 +8,7 @@ export declare enum OAuthProvider {
8
8
  Bitbucket = "bitbucket",
9
9
  Bitly = "bitly",
10
10
  Box = "box",
11
+ Cloudflare = "cloudflare",
11
12
  Dailymotion = "dailymotion",
12
13
  Discord = "discord",
13
14
  Disqus = "disqus",
@@ -19,6 +20,8 @@ export declare enum OAuthProvider {
19
20
  Github = "github",
20
21
  Gitlab = "gitlab",
21
22
  Google = "google",
23
+ Huggingface = "huggingface",
24
+ Kakao = "kakao",
22
25
  Keycloak = "keycloak",
23
26
  Kick = "kick",
24
27
  Linkedin = "linkedin",
@@ -29,10 +32,12 @@ export declare enum OAuthProvider {
29
32
  Paypal = "paypal",
30
33
  PaypalSandbox = "paypalSandbox",
31
34
  Podio = "podio",
35
+ Resend = "resend",
32
36
  Salesforce = "salesforce",
33
37
  Slack = "slack",
34
38
  Spotify = "spotify",
35
39
  Stripe = "stripe",
40
+ Tiktok = "tiktok",
36
41
  Tradeshift = "tradeshift",
37
42
  TradeshiftBox = "tradeshiftBox",
38
43
  Twitch = "twitch",
@@ -1,6 +1,7 @@
1
1
  export declare enum ProjectKeyScopes {
2
2
  ProjectRead = "project.read",
3
3
  ProjectWrite = "project.write",
4
+ UsageRead = "usage.read",
4
5
  KeysRead = "keys.read",
5
6
  KeysWrite = "keys.write",
6
7
  PlatformsRead = "platforms.read",
@@ -33,12 +34,29 @@ export declare enum ProjectKeyScopes {
33
34
  IndexesWrite = "indexes.write",
34
35
  RowsRead = "rows.read",
35
36
  RowsWrite = "rows.write",
37
+ EmbeddingsWrite = "embeddings.write",
36
38
  CollectionsRead = "collections.read",
37
39
  CollectionsWrite = "collections.write",
38
40
  AttributesRead = "attributes.read",
39
41
  AttributesWrite = "attributes.write",
40
42
  DocumentsRead = "documents.read",
41
43
  DocumentsWrite = "documents.write",
44
+ DocumentsdbRead = "documentsdb.read",
45
+ DocumentsdbWrite = "documentsdb.write",
46
+ DocumentsdbCollectionsRead = "documentsdb.collections.read",
47
+ DocumentsdbCollectionsWrite = "documentsdb.collections.write",
48
+ DocumentsdbDocumentsRead = "documentsdb.documents.read",
49
+ DocumentsdbDocumentsWrite = "documentsdb.documents.write",
50
+ DocumentsdbIndexesRead = "documentsdb.indexes.read",
51
+ DocumentsdbIndexesWrite = "documentsdb.indexes.write",
52
+ VectorsdbRead = "vectorsdb.read",
53
+ VectorsdbWrite = "vectorsdb.write",
54
+ VectorsdbCollectionsRead = "vectorsdb.collections.read",
55
+ VectorsdbCollectionsWrite = "vectorsdb.collections.write",
56
+ VectorsdbDocumentsRead = "vectorsdb.documents.read",
57
+ VectorsdbDocumentsWrite = "vectorsdb.documents.write",
58
+ VectorsdbIndexesRead = "vectorsdb.indexes.read",
59
+ VectorsdbIndexesWrite = "vectorsdb.indexes.write",
42
60
  BucketsRead = "buckets.read",
43
61
  BucketsWrite = "buckets.write",
44
62
  FilesRead = "files.read",
@@ -91,16 +109,15 @@ export declare enum ProjectKeyScopes {
91
109
  ArchivesWrite = "archives.write",
92
110
  RestorationsRead = "restorations.read",
93
111
  RestorationsWrite = "restorations.write",
94
- DedicatedDatabasesExecute = "dedicatedDatabases.execute",
95
112
  DomainsRead = "domains.read",
96
113
  DomainsWrite = "domains.write",
97
114
  WafRulesRead = "wafRules.read",
98
115
  WafRulesWrite = "wafRules.write",
99
116
  EventsRead = "events.read",
117
+ ProxyInvalidationsWrite = "proxy.invalidations.write",
100
118
  AppsRead = "apps.read",
101
119
  AppsWrite = "apps.write",
102
120
  Oauth2Read = "oauth2.read",
103
121
  Oauth2Write = "oauth2.write",
104
- Oauth2Introspect = "oauth2.introspect",
105
- UsageRead = "usage.read"
122
+ Oauth2Introspect = "oauth2.introspect"
106
123
  }
@@ -8,6 +8,7 @@ export declare enum ProjectOAuthProviderId {
8
8
  Bitbucket = "bitbucket",
9
9
  Bitly = "bitly",
10
10
  Box = "box",
11
+ Cloudflare = "cloudflare",
11
12
  Dailymotion = "dailymotion",
12
13
  Discord = "discord",
13
14
  Disqus = "disqus",
@@ -19,6 +20,8 @@ export declare enum ProjectOAuthProviderId {
19
20
  Github = "github",
20
21
  Gitlab = "gitlab",
21
22
  Google = "google",
23
+ Huggingface = "huggingface",
24
+ Kakao = "kakao",
22
25
  Keycloak = "keycloak",
23
26
  Kick = "kick",
24
27
  Linkedin = "linkedin",
@@ -29,10 +32,12 @@ export declare enum ProjectOAuthProviderId {
29
32
  Paypal = "paypal",
30
33
  PaypalSandbox = "paypalSandbox",
31
34
  Podio = "podio",
35
+ Resend = "resend",
32
36
  Salesforce = "salesforce",
33
37
  Slack = "slack",
34
38
  Spotify = "spotify",
35
39
  Stripe = "stripe",
40
+ Tiktok = "tiktok",
36
41
  Tradeshift = "tradeshift",
37
42
  TradeshiftBox = "tradeshiftBox",
38
43
  Twitch = "twitch",
@@ -9,6 +9,7 @@ export declare enum ProjectPolicyId {
9
9
  Sessionlimit = "session-limit",
10
10
  Userlimit = "user-limit",
11
11
  Membershipprivacy = "membership-privacy",
12
+ Mfafactors = "mfa-factors",
12
13
  Denyaliasedemail = "deny-aliased-email",
13
14
  Denydisposableemail = "deny-disposable-email",
14
15
  Denyfreeemail = "deny-free-email",
@@ -57,6 +57,7 @@ export declare enum QuerySuggestionResource {
57
57
  Alerts = "alerts",
58
58
  Payments = "payments",
59
59
  BillingDiscounts = "billingdiscounts",
60
+ ResourcesDeleted = "resourcesdeleted",
60
61
  Sources = "sources",
61
62
  Deals = "deals",
62
63
  Blocks = "blocks",
@@ -67,6 +68,9 @@ export declare enum QuerySuggestionResource {
67
68
  ShInstallations = "sh_installations",
68
69
  MigrationDatabases = "migrationdatabases",
69
70
  MigrationProjects = "migrationprojects",
71
+ AffiliateLinks = "affiliatelinks",
72
+ AffiliateReferrals = "affiliatereferrals",
73
+ AffiliateRewards = "affiliaterewards",
70
74
  Apps = "apps",
71
75
  AppSecrets = "appsecrets",
72
76
  AppInstallations = "appinstallations",
@@ -79,13 +83,13 @@ export declare enum QuerySuggestionResource {
79
83
  Functions = "functions",
80
84
  Sites = "sites",
81
85
  Deployments = "deployments",
86
+ Executions = "executions",
82
87
  Variables = "variables",
83
88
  Migrations = "migrations",
84
89
  ResourceTokens = "resourcetokens",
85
90
  Transactions = "transactions",
86
91
  TransactionLogs = "transactionlogs",
87
92
  Stats = "stats",
88
- Executions = "executions",
89
93
  DedicatedDatabases = "dedicateddatabases",
90
94
  DedicatedDatabaseConfigs = "dedicateddatabaseconfigs",
91
95
  DedicatedDatabaseRuntimes = "dedicateddatabaseruntimes",
@@ -50,6 +50,7 @@ export declare enum Runtime {
50
50
  Dart310 = "dart-3.10",
51
51
  Dart311 = "dart-3.11",
52
52
  Dart312 = "dart-3.12",
53
+ Dart313 = "dart-3.13",
53
54
  Dotnet60 = "dotnet-6.0",
54
55
  Dotnet70 = "dotnet-7.0",
55
56
  Dotnet80 = "dotnet-8.0",
@@ -77,6 +78,7 @@ export declare enum Runtime {
77
78
  Bun11 = "bun-1.1",
78
79
  Bun12 = "bun-1.2",
79
80
  Bun13 = "bun-1.3",
81
+ Bun14 = "bun-1.4",
80
82
  Go123 = "go-1.23",
81
83
  Go124 = "go-1.24",
82
84
  Go125 = "go-1.25",
@@ -90,5 +92,6 @@ export declare enum Runtime {
90
92
  Flutter335 = "flutter-3.35",
91
93
  Flutter338 = "flutter-3.38",
92
94
  Flutter341 = "flutter-3.41",
93
- Flutter344 = "flutter-3.44"
95
+ Flutter344 = "flutter-3.44",
96
+ Flutter347 = "flutter-3.47"
94
97
  }
@@ -0,0 +1,27 @@
1
+ export declare enum UsageEventDimension {
2
+ Path = "path",
3
+ Method = "method",
4
+ Status = "status",
5
+ Service = "service",
6
+ ResourceType = "resourceType",
7
+ Country = "country",
8
+ ContinentCode = "continentCode",
9
+ City = "city",
10
+ Region = "region",
11
+ Hostname = "hostname",
12
+ Ip = "ip",
13
+ OsName = "osName",
14
+ ClientType = "clientType",
15
+ ClientName = "clientName",
16
+ DeviceName = "deviceName",
17
+ Sdk = "sdk",
18
+ SdkVersion = "sdkVersion",
19
+ TeamId = "teamId",
20
+ ResourceId = "resourceId",
21
+ Isp = "isp",
22
+ AutonomousSystemNumber = "autonomousSystemNumber",
23
+ AutonomousSystemOrganization = "autonomousSystemOrganization",
24
+ ConnectionType = "connectionType",
25
+ ConnectionUsageType = "connectionUsageType",
26
+ ConnectionOrganization = "connectionOrganization"
27
+ }
@@ -0,0 +1,55 @@
1
+ export declare enum UsageEventMetric {
2
+ NetworkRequests = "network.requests",
3
+ NetworkInbound = "network.inbound",
4
+ NetworkOutbound = "network.outbound",
5
+ WebhooksEventsSent = "webhooks.events.sent",
6
+ WebhooksEventsFailed = "webhooks.events.failed",
7
+ AuthMethodPhone = "auth.method.phone",
8
+ MessagesSent = "messages.sent",
9
+ MessagesSmsSent = "messages.sms.sent",
10
+ Executions = "executions",
11
+ ExecutionsCompute = "executions.compute",
12
+ ExecutionsMbSeconds = "executions.mbSeconds",
13
+ FunctionsExecutions = "functions.executions",
14
+ SitesExecutions = "sites.executions",
15
+ FunctionsExecutionsCompute = "functions.executions.compute",
16
+ SitesExecutionsCompute = "sites.executions.compute",
17
+ FunctionsExecutionsMbSeconds = "functions.executions.mbSeconds",
18
+ SitesExecutionsMbSeconds = "sites.executions.mbSeconds",
19
+ Builds = "builds",
20
+ BuildsSuccess = "builds.success",
21
+ BuildsFailed = "builds.failed",
22
+ BuildsCompute = "builds.compute",
23
+ BuildsComputeSuccess = "builds.compute.success",
24
+ BuildsComputeFailed = "builds.compute.failed",
25
+ BuildsMbSeconds = "builds.mbSeconds",
26
+ FunctionsBuildsMbSeconds = "functions.builds.mbSeconds",
27
+ SitesBuildsMbSeconds = "sites.builds.mbSeconds",
28
+ DatabasesOperationsReads = "databases.operations.reads",
29
+ DatabasesOperationsWrites = "databases.operations.writes",
30
+ DocumentsdbDatabasesOperationsReads = "documentsdb.databases.operations.reads",
31
+ DocumentsdbDatabasesOperationsWrites = "documentsdb.databases.operations.writes",
32
+ VectorsdbDatabasesOperationsReads = "vectorsdb.databases.operations.reads",
33
+ VectorsdbDatabasesOperationsWrites = "vectorsdb.databases.operations.writes",
34
+ FilesImagesTransformed = "files.imagesTransformed",
35
+ AvatarsScreenshotsGenerated = "avatars.screenshotsGenerated",
36
+ RealtimeMessagesSent = "realtime.messages.sent",
37
+ RealtimeInbound = "realtime.inbound",
38
+ RealtimeOutbound = "realtime.outbound",
39
+ EmbeddingsText = "embeddings.text",
40
+ EmbeddingsTextTotalTokens = "embeddings.text.totalTokens",
41
+ EmbeddingsTextTotalDuration = "embeddings.text.totalDuration",
42
+ EmbeddingsTextTotalErrors = "embeddings.text.totalErrors",
43
+ WafRequestsDenied = "waf.requests.denied",
44
+ WafRequestsChallenged = "waf.requests.challenged",
45
+ WafRequestsRateLimited = "waf.requests.rateLimited",
46
+ WafRequestsRedirected = "waf.requests.redirected",
47
+ WafRequestsChallengeSolved = "waf.requests.challengeSolved",
48
+ WafChallengeSolveTimeMs = "waf.challenge.solveTimeMs",
49
+ AffiliatesClicks = "affiliates.clicks",
50
+ AffiliatesSignups = "affiliates.signups",
51
+ AffiliatesConversions = "affiliates.conversions",
52
+ DedicatedDatabasesInbound = "dedicatedDatabases.inbound",
53
+ DedicatedDatabasesOutbound = "dedicatedDatabases.outbound",
54
+ DedicatedDatabasesCompute = "dedicatedDatabases.compute"
55
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum UsageGaugeDimension {
2
+ ResourceId = "resourceId",
3
+ TeamId = "teamId",
4
+ Service = "service",
5
+ ResourceType = "resourceType",
6
+ Ordinal = "ordinal"
7
+ }
@@ -0,0 +1,50 @@
1
+ export declare enum UsageGaugeMetric {
2
+ Teams = "teams",
3
+ Users = "users",
4
+ Messages = "messages",
5
+ Sessions = "sessions",
6
+ Databases = "databases",
7
+ Collections = "collections",
8
+ Documents = "documents",
9
+ DatabasesStorage = "databases.storage",
10
+ DocumentsdbDatabases = "documentsdb.databases",
11
+ DocumentsdbCollections = "documentsdb.collections",
12
+ DocumentsdbDocuments = "documentsdb.documents",
13
+ DocumentsdbDatabasesStorage = "documentsdb.databases.storage",
14
+ VectorsdbDatabases = "vectorsdb.databases",
15
+ VectorsdbCollections = "vectorsdb.collections",
16
+ VectorsdbDocuments = "vectorsdb.documents",
17
+ VectorsdbDatabasesStorage = "vectorsdb.databases.storage",
18
+ Buckets = "buckets",
19
+ Files = "files",
20
+ FilesStorage = "files.storage",
21
+ Sites = "sites",
22
+ Functions = "functions",
23
+ Deployments = "deployments",
24
+ DeploymentsStorage = "deployments.storage",
25
+ Builds = "builds",
26
+ BuildsStorage = "builds.storage",
27
+ UsersMau = "users.mau",
28
+ UsersDau = "users.dau",
29
+ UsersWau = "users.wau",
30
+ Webhooks = "webhooks",
31
+ Platforms = "platforms",
32
+ Providers = "providers",
33
+ Topics = "topics",
34
+ Targets = "targets",
35
+ Keys = "keys",
36
+ Domains = "domains",
37
+ RealtimeConnections = "realtime.connections",
38
+ BackupsPolicies = "backups.policies",
39
+ BackupsStorage = "backups.storage",
40
+ DedicatedDatabasesStorage = "dedicatedDatabases.storage",
41
+ DedicatedDatabasesConnections = "dedicatedDatabases.connections",
42
+ DedicatedDatabasesCpu = "dedicatedDatabases.cpu",
43
+ DedicatedDatabasesMemory = "dedicatedDatabases.memory",
44
+ DedicatedDatabasesQps = "dedicatedDatabases.qps",
45
+ DedicatedDatabasesIopsRead = "dedicatedDatabases.iopsRead",
46
+ DedicatedDatabasesIopsWrite = "dedicatedDatabases.iopsWrite",
47
+ Apps = "apps",
48
+ AppsUsers = "apps.users",
49
+ AppsInstallations = "apps.installations"
50
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum UsageInterval {
2
+ OneMinute = "1m",
3
+ FifteenMinutes = "15m",
4
+ ThirtyMinutes = "30m",
5
+ OneHour = "1h",
6
+ OneDay = "1d"
7
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum UsageOrderBy {
2
+ Time = "time",
3
+ Value = "value"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum UsageOrderDirection {
2
+ Asc = "asc",
3
+ Desc = "desc"
4
+ }