@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.
- package/README.md +5 -6
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/sdk.js +8360 -4537
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/esm/sdk.js +8359 -4538
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +8360 -4537
- package/package.json +59 -50
- package/types/client.d.ts +13 -2
- package/types/enums/{addon.d.ts → addon-key.d.ts} +1 -1
- package/types/enums/authentication-factor.d.ts +2 -1
- package/types/enums/build-runtime.d.ts +4 -1
- package/types/enums/embedding-model.d.ts +1 -3
- package/types/enums/execution-resource-type.d.ts +4 -0
- package/types/enums/image-gravity.d.ts +1 -0
- package/types/enums/invalidation-type.d.ts +5 -0
- package/types/enums/o-auth-provider.d.ts +5 -0
- package/types/enums/project-key-scopes.d.ts +20 -3
- package/types/enums/project-o-auth-provider-id.d.ts +5 -0
- package/types/enums/project-policy-id.d.ts +1 -0
- package/types/enums/query-suggestion-resource.d.ts +5 -1
- package/types/enums/runtime.d.ts +4 -1
- package/types/enums/usage-event-dimension.d.ts +27 -0
- package/types/enums/usage-event-metric.d.ts +55 -0
- package/types/enums/usage-gauge-dimension.d.ts +7 -0
- package/types/enums/usage-gauge-metric.d.ts +50 -0
- package/types/enums/usage-interval.d.ts +7 -0
- package/types/enums/usage-order-by.d.ts +4 -0
- package/types/enums/usage-order-direction.d.ts +4 -0
- package/types/index.d.ts +19 -6
- package/types/models.d.ts +764 -313
- package/types/services/account.d.ts +8 -8
- package/types/services/affiliates.d.ts +162 -0
- package/types/services/apps.d.ts +6 -6
- package/types/services/avatars.d.ts +44 -0
- package/types/services/databases.d.ts +8 -8
- package/types/services/documents-db.d.ts +13 -7
- package/types/services/domains.d.ts +82 -54
- package/types/services/embeddings.d.ts +31 -0
- package/types/services/functions.d.ts +6 -6
- package/types/services/mongo.d.ts +17 -23
- package/types/services/mysql.d.ts +17 -23
- package/types/services/organizations.d.ts +5 -5
- package/types/services/postgresql.d.ts +17 -23
- package/types/services/project.d.ts +171 -15
- package/types/services/proxy.d.ts +30 -0
- package/types/services/sites.d.ts +15 -8
- package/types/services/storage.d.ts +6 -6
- package/types/services/tables-db.d.ts +37 -12
- package/types/services/usage.d.ts +52 -38
- package/types/services/users.d.ts +24 -2
- package/types/services/vectors-db.d.ts +15 -34
- package/types/services/waf.d.ts +11 -2
package/package.json
CHANGED
|
@@ -1,53 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
|
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
|
|
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;
|
|
@@ -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
|
}
|
|
@@ -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",
|
package/types/enums/runtime.d.ts
CHANGED
|
@@ -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,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
|
+
}
|