@appwrite.io/console 2.1.3 → 2.2.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 (132) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/sdk.js +1564 -187
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +1565 -188
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +1564 -187
  8. package/docs/examples/account/create-key.md +15 -0
  9. package/docs/examples/account/delete-key.md +13 -0
  10. package/docs/examples/account/get-key.md +13 -0
  11. package/docs/examples/account/list-keys.md +13 -0
  12. package/docs/examples/account/update-key.md +16 -0
  13. package/docs/examples/avatars/get-screenshot.md +5 -5
  14. package/docs/examples/backups/create-archive.md +2 -2
  15. package/docs/examples/backups/create-policy.md +2 -2
  16. package/docs/examples/backups/create-restoration.md +2 -2
  17. package/docs/examples/console/{get-regions.md → list-regions.md} +1 -3
  18. package/docs/examples/databases/create-index.md +2 -2
  19. package/docs/examples/databases/create-longtext-attribute.md +18 -0
  20. package/docs/examples/databases/create-mediumtext-attribute.md +18 -0
  21. package/docs/examples/databases/create-text-attribute.md +18 -0
  22. package/docs/examples/databases/create-varchar-attribute.md +19 -0
  23. package/docs/examples/databases/update-collection.md +1 -1
  24. package/docs/examples/databases/update-longtext-attribute.md +18 -0
  25. package/docs/examples/databases/update-mediumtext-attribute.md +18 -0
  26. package/docs/examples/databases/update-text-attribute.md +18 -0
  27. package/docs/examples/databases/update-varchar-attribute.md +19 -0
  28. package/docs/examples/databases/update.md +1 -1
  29. package/docs/examples/functions/create.md +2 -2
  30. package/docs/examples/functions/list-templates.md +3 -3
  31. package/docs/examples/functions/update.md +2 -2
  32. package/docs/examples/migrations/create-appwrite-migration.md +2 -2
  33. package/docs/examples/migrations/create-firebase-migration.md +2 -2
  34. package/docs/examples/migrations/create-n-host-migration.md +2 -2
  35. package/docs/examples/migrations/create-supabase-migration.md +2 -2
  36. package/docs/examples/migrations/get-appwrite-report.md +2 -2
  37. package/docs/examples/migrations/get-firebase-report.md +2 -2
  38. package/docs/examples/migrations/get-n-host-report.md +2 -2
  39. package/docs/examples/migrations/get-supabase-report.md +2 -2
  40. package/docs/examples/organizations/create-key.md +16 -0
  41. package/docs/examples/organizations/create.md +2 -2
  42. package/docs/examples/organizations/delete-key.md +14 -0
  43. package/docs/examples/organizations/estimation-create-organization.md +2 -2
  44. package/docs/examples/organizations/estimation-update-plan.md +2 -2
  45. package/docs/examples/organizations/get-key.md +14 -0
  46. package/docs/examples/organizations/list-keys.md +14 -0
  47. package/docs/examples/organizations/list-regions.md +13 -0
  48. package/docs/examples/organizations/update-key.md +17 -0
  49. package/docs/examples/organizations/update-plan.md +2 -2
  50. package/docs/examples/projects/create-jwt.md +2 -2
  51. package/docs/examples/projects/create-key.md +2 -2
  52. package/docs/examples/projects/update-key.md +2 -2
  53. package/docs/examples/sites/list-templates.md +3 -3
  54. package/docs/examples/tablesdb/create-index.md +2 -2
  55. package/docs/examples/tablesdb/create-longtext-column.md +18 -0
  56. package/docs/examples/tablesdb/create-mediumtext-column.md +18 -0
  57. package/docs/examples/tablesdb/create-text-column.md +18 -0
  58. package/docs/examples/tablesdb/create-varchar-column.md +19 -0
  59. package/docs/examples/tablesdb/update-longtext-column.md +18 -0
  60. package/docs/examples/tablesdb/update-mediumtext-column.md +18 -0
  61. package/docs/examples/tablesdb/update-table.md +1 -1
  62. package/docs/examples/tablesdb/update-text-column.md +18 -0
  63. package/docs/examples/tablesdb/update-varchar-column.md +19 -0
  64. package/docs/examples/tablesdb/update.md +1 -1
  65. package/docs/examples/teams/create-membership.md +2 -2
  66. package/docs/examples/teams/update-membership.md +2 -2
  67. package/package.json +1 -1
  68. package/src/channel.ts +8 -4
  69. package/src/client.ts +3 -28
  70. package/src/enums/browser-permission.ts +22 -0
  71. package/src/enums/deployment-status.ts +1 -0
  72. package/src/enums/frameworks.ts +17 -0
  73. package/src/enums/order-by.ts +4 -0
  74. package/src/enums/resources.ts +13 -0
  75. package/src/enums/roles.ts +7 -0
  76. package/src/enums/runtimes.ts +66 -0
  77. package/src/enums/scopes.ts +65 -0
  78. package/src/enums/services.ts +5 -0
  79. package/src/enums/use-cases.ts +11 -0
  80. package/src/index.ts +9 -1
  81. package/src/models.ts +349 -1
  82. package/src/services/account.ts +364 -56
  83. package/src/services/assistant.ts +1 -1
  84. package/src/services/avatars.ts +17 -16
  85. package/src/services/backups.ts +37 -36
  86. package/src/services/console.ts +11 -42
  87. package/src/services/databases.ts +1060 -280
  88. package/src/services/domains.ts +44 -44
  89. package/src/services/functions.ts +60 -57
  90. package/src/services/graphql.ts +2 -2
  91. package/src/services/health.ts +22 -20
  92. package/src/services/messaging.ts +56 -56
  93. package/src/services/migrations.ts +79 -78
  94. package/src/services/organizations.ts +466 -70
  95. package/src/services/project.ts +5 -5
  96. package/src/services/projects.ts +86 -85
  97. package/src/services/proxy.ts +8 -8
  98. package/src/services/sites.ts +42 -40
  99. package/src/services/storage.ts +16 -16
  100. package/src/services/tables-db.ts +1050 -268
  101. package/src/services/teams.ts +31 -30
  102. package/src/services/tokens.ts +5 -5
  103. package/src/services/users.ts +49 -49
  104. package/src/services/vcs.ts +10 -10
  105. package/types/channel.d.ts +5 -4
  106. package/types/enums/browser-permission.d.ts +22 -0
  107. package/types/enums/deployment-status.d.ts +1 -0
  108. package/types/enums/frameworks.d.ts +17 -0
  109. package/types/enums/order-by.d.ts +4 -0
  110. package/types/enums/resources.d.ts +13 -0
  111. package/types/enums/roles.d.ts +7 -0
  112. package/types/enums/runtimes.d.ts +66 -0
  113. package/types/enums/scopes.d.ts +65 -0
  114. package/types/enums/services.d.ts +5 -0
  115. package/types/enums/use-cases.d.ts +11 -0
  116. package/types/index.d.ts +9 -1
  117. package/types/models.d.ts +341 -1
  118. package/types/services/account.d.ts +111 -0
  119. package/types/services/avatars.d.ts +5 -4
  120. package/types/services/backups.d.ts +13 -12
  121. package/types/services/console.d.ts +1 -13
  122. package/types/services/databases.d.ts +303 -8
  123. package/types/services/functions.d.ts +18 -15
  124. package/types/services/health.d.ts +2 -0
  125. package/types/services/migrations.d.ts +33 -32
  126. package/types/services/organizations.d.ts +161 -17
  127. package/types/services/projects.d.ts +13 -12
  128. package/types/services/sites.d.ts +9 -7
  129. package/types/services/tables-db.d.ts +305 -8
  130. package/types/services/teams.d.ts +9 -8
  131. package/src/enums/billing-plan.ts +0 -17
  132. package/types/enums/billing-plan.d.ts +0 -17
@@ -0,0 +1,66 @@
1
+ export declare enum Runtimes {
2
+ Node145 = "node-14.5",
3
+ Node160 = "node-16.0",
4
+ Node180 = "node-18.0",
5
+ Node190 = "node-19.0",
6
+ Node200 = "node-20.0",
7
+ Node210 = "node-21.0",
8
+ Node22 = "node-22",
9
+ Php80 = "php-8.0",
10
+ Php81 = "php-8.1",
11
+ Php82 = "php-8.2",
12
+ Php83 = "php-8.3",
13
+ Ruby30 = "ruby-3.0",
14
+ Ruby31 = "ruby-3.1",
15
+ Ruby32 = "ruby-3.2",
16
+ Ruby33 = "ruby-3.3",
17
+ Python38 = "python-3.8",
18
+ Python39 = "python-3.9",
19
+ Python310 = "python-3.10",
20
+ Python311 = "python-3.11",
21
+ Python312 = "python-3.12",
22
+ Pythonml311 = "python-ml-3.11",
23
+ Pythonml312 = "python-ml-3.12",
24
+ Deno140 = "deno-1.40",
25
+ Deno146 = "deno-1.46",
26
+ Deno20 = "deno-2.0",
27
+ Dart215 = "dart-2.15",
28
+ Dart216 = "dart-2.16",
29
+ Dart217 = "dart-2.17",
30
+ Dart218 = "dart-2.18",
31
+ Dart219 = "dart-2.19",
32
+ Dart30 = "dart-3.0",
33
+ Dart31 = "dart-3.1",
34
+ Dart33 = "dart-3.3",
35
+ Dart35 = "dart-3.5",
36
+ Dart38 = "dart-3.8",
37
+ Dart39 = "dart-3.9",
38
+ Dotnet60 = "dotnet-6.0",
39
+ Dotnet70 = "dotnet-7.0",
40
+ Dotnet80 = "dotnet-8.0",
41
+ Java80 = "java-8.0",
42
+ Java110 = "java-11.0",
43
+ Java170 = "java-17.0",
44
+ Java180 = "java-18.0",
45
+ Java210 = "java-21.0",
46
+ Java22 = "java-22",
47
+ Swift55 = "swift-5.5",
48
+ Swift58 = "swift-5.8",
49
+ Swift59 = "swift-5.9",
50
+ Swift510 = "swift-5.10",
51
+ Kotlin16 = "kotlin-1.6",
52
+ Kotlin18 = "kotlin-1.8",
53
+ Kotlin19 = "kotlin-1.9",
54
+ Kotlin20 = "kotlin-2.0",
55
+ Cpp17 = "cpp-17",
56
+ Cpp20 = "cpp-20",
57
+ Bun10 = "bun-1.0",
58
+ Bun11 = "bun-1.1",
59
+ Go123 = "go-1.23",
60
+ Static1 = "static-1",
61
+ Flutter324 = "flutter-3.24",
62
+ Flutter327 = "flutter-3.27",
63
+ Flutter329 = "flutter-3.29",
64
+ Flutter332 = "flutter-3.32",
65
+ Flutter335 = "flutter-3.35"
66
+ }
@@ -0,0 +1,65 @@
1
+ export declare enum Scopes {
2
+ SessionsWrite = "sessions.write",
3
+ UsersRead = "users.read",
4
+ UsersWrite = "users.write",
5
+ TeamsRead = "teams.read",
6
+ TeamsWrite = "teams.write",
7
+ DatabasesRead = "databases.read",
8
+ DatabasesWrite = "databases.write",
9
+ CollectionsRead = "collections.read",
10
+ CollectionsWrite = "collections.write",
11
+ TablesRead = "tables.read",
12
+ TablesWrite = "tables.write",
13
+ AttributesRead = "attributes.read",
14
+ AttributesWrite = "attributes.write",
15
+ ColumnsRead = "columns.read",
16
+ ColumnsWrite = "columns.write",
17
+ IndexesRead = "indexes.read",
18
+ IndexesWrite = "indexes.write",
19
+ DocumentsRead = "documents.read",
20
+ DocumentsWrite = "documents.write",
21
+ RowsRead = "rows.read",
22
+ RowsWrite = "rows.write",
23
+ FilesRead = "files.read",
24
+ FilesWrite = "files.write",
25
+ BucketsRead = "buckets.read",
26
+ BucketsWrite = "buckets.write",
27
+ FunctionsRead = "functions.read",
28
+ FunctionsWrite = "functions.write",
29
+ SitesRead = "sites.read",
30
+ SitesWrite = "sites.write",
31
+ LogRead = "log.read",
32
+ LogWrite = "log.write",
33
+ ExecutionRead = "execution.read",
34
+ ExecutionWrite = "execution.write",
35
+ LocaleRead = "locale.read",
36
+ AvatarsRead = "avatars.read",
37
+ HealthRead = "health.read",
38
+ ProvidersRead = "providers.read",
39
+ ProvidersWrite = "providers.write",
40
+ MessagesRead = "messages.read",
41
+ MessagesWrite = "messages.write",
42
+ TopicsRead = "topics.read",
43
+ TopicsWrite = "topics.write",
44
+ SubscribersRead = "subscribers.read",
45
+ SubscribersWrite = "subscribers.write",
46
+ TargetsRead = "targets.read",
47
+ TargetsWrite = "targets.write",
48
+ RulesRead = "rules.read",
49
+ RulesWrite = "rules.write",
50
+ MigrationsRead = "migrations.read",
51
+ MigrationsWrite = "migrations.write",
52
+ VcsRead = "vcs.read",
53
+ VcsWrite = "vcs.write",
54
+ AssistantRead = "assistant.read",
55
+ TokensRead = "tokens.read",
56
+ TokensWrite = "tokens.write",
57
+ PoliciesWrite = "policies.write",
58
+ PoliciesRead = "policies.read",
59
+ ArchivesRead = "archives.read",
60
+ ArchivesWrite = "archives.write",
61
+ RestorationsRead = "restorations.read",
62
+ RestorationsWrite = "restorations.write",
63
+ DomainsRead = "domains.read",
64
+ DomainsWrite = "domains.write"
65
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum Services {
2
+ Databases = "databases",
3
+ Functions = "functions",
4
+ Storage = "storage"
5
+ }
@@ -0,0 +1,11 @@
1
+ export declare enum UseCases {
2
+ Portfolio = "portfolio",
3
+ Starter = "starter",
4
+ Events = "events",
5
+ Ecommerce = "ecommerce",
6
+ Documentation = "documentation",
7
+ Blog = "blog",
8
+ Ai = "ai",
9
+ Forms = "forms",
10
+ Dashboard = "dashboard"
11
+ }
package/types/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export { Role } from './role';
38
38
  export { ID } from './id';
39
39
  export { Channel } from './channel';
40
40
  export { Operator, Condition } from './operator';
41
+ export { Scopes } from './enums/scopes';
41
42
  export { AuthenticatorType } from './enums/authenticator-type';
42
43
  export { AuthenticationFactor } from './enums/authentication-factor';
43
44
  export { OAuthProvider } from './enums/o-auth-provider';
@@ -46,15 +47,20 @@ export { CreditCard } from './enums/credit-card';
46
47
  export { Flag } from './enums/flag';
47
48
  export { Theme } from './enums/theme';
48
49
  export { Timezone } from './enums/timezone';
50
+ export { BrowserPermission } from './enums/browser-permission';
49
51
  export { ImageFormat } from './enums/image-format';
52
+ export { Services } from './enums/services';
50
53
  export { Platform } from './enums/platform';
51
54
  export { ConsoleResourceType } from './enums/console-resource-type';
52
55
  export { UsageRange } from './enums/usage-range';
53
56
  export { RelationshipType } from './enums/relationship-type';
54
57
  export { RelationMutate } from './enums/relation-mutate';
55
58
  export { IndexType } from './enums/index-type';
59
+ export { OrderBy } from './enums/order-by';
56
60
  export { FilterType } from './enums/filter-type';
57
61
  export { Runtime } from './enums/runtime';
62
+ export { Runtimes } from './enums/runtimes';
63
+ export { UseCases } from './enums/use-cases';
58
64
  export { TemplateReferenceType } from './enums/template-reference-type';
59
65
  export { VCSReferenceType } from './enums/vcs-reference-type';
60
66
  export { DeploymentDownloadType } from './enums/deployment-download-type';
@@ -62,7 +68,7 @@ export { ExecutionMethod } from './enums/execution-method';
62
68
  export { Name } from './enums/name';
63
69
  export { MessagePriority } from './enums/message-priority';
64
70
  export { SmtpEncryption } from './enums/smtp-encryption';
65
- export { BillingPlan } from './enums/billing-plan';
71
+ export { Resources } from './enums/resources';
66
72
  export { ProjectUsageRange } from './enums/project-usage-range';
67
73
  export { Region } from './enums/region';
68
74
  export { Api } from './enums/api';
@@ -80,8 +86,10 @@ export { ProxyResourceType } from './enums/proxy-resource-type';
80
86
  export { Framework } from './enums/framework';
81
87
  export { BuildRuntime } from './enums/build-runtime';
82
88
  export { Adapter } from './enums/adapter';
89
+ export { Frameworks } from './enums/frameworks';
83
90
  export { Compression } from './enums/compression';
84
91
  export { ImageGravity } from './enums/image-gravity';
92
+ export { Roles } from './enums/roles';
85
93
  export { PasswordHash } from './enums/password-hash';
86
94
  export { MessagingProviderType } from './enums/messaging-provider-type';
87
95
  export { VCSDetectionType } from './enums/vcs-detection-type';
package/types/models.d.ts CHANGED
@@ -1376,6 +1376,174 @@ export declare namespace Models {
1376
1376
  */
1377
1377
  default?: any[];
1378
1378
  };
1379
+ /**
1380
+ * AttributeVarchar
1381
+ */
1382
+ export type AttributeVarchar = {
1383
+ /**
1384
+ * Attribute Key.
1385
+ */
1386
+ key: string;
1387
+ /**
1388
+ * Attribute type.
1389
+ */
1390
+ type: string;
1391
+ /**
1392
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1393
+ */
1394
+ status: AttributeStatus;
1395
+ /**
1396
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1397
+ */
1398
+ error: string;
1399
+ /**
1400
+ * Is attribute required?
1401
+ */
1402
+ required: boolean;
1403
+ /**
1404
+ * Is attribute an array?
1405
+ */
1406
+ array?: boolean;
1407
+ /**
1408
+ * Attribute creation date in ISO 8601 format.
1409
+ */
1410
+ $createdAt: string;
1411
+ /**
1412
+ * Attribute update date in ISO 8601 format.
1413
+ */
1414
+ $updatedAt: string;
1415
+ /**
1416
+ * Attribute size.
1417
+ */
1418
+ size: number;
1419
+ /**
1420
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1421
+ */
1422
+ default?: string;
1423
+ };
1424
+ /**
1425
+ * AttributeText
1426
+ */
1427
+ export type AttributeText = {
1428
+ /**
1429
+ * Attribute Key.
1430
+ */
1431
+ key: string;
1432
+ /**
1433
+ * Attribute type.
1434
+ */
1435
+ type: string;
1436
+ /**
1437
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1438
+ */
1439
+ status: AttributeStatus;
1440
+ /**
1441
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1442
+ */
1443
+ error: string;
1444
+ /**
1445
+ * Is attribute required?
1446
+ */
1447
+ required: boolean;
1448
+ /**
1449
+ * Is attribute an array?
1450
+ */
1451
+ array?: boolean;
1452
+ /**
1453
+ * Attribute creation date in ISO 8601 format.
1454
+ */
1455
+ $createdAt: string;
1456
+ /**
1457
+ * Attribute update date in ISO 8601 format.
1458
+ */
1459
+ $updatedAt: string;
1460
+ /**
1461
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1462
+ */
1463
+ default?: string;
1464
+ };
1465
+ /**
1466
+ * AttributeMediumtext
1467
+ */
1468
+ export type AttributeMediumtext = {
1469
+ /**
1470
+ * Attribute Key.
1471
+ */
1472
+ key: string;
1473
+ /**
1474
+ * Attribute type.
1475
+ */
1476
+ type: string;
1477
+ /**
1478
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1479
+ */
1480
+ status: AttributeStatus;
1481
+ /**
1482
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1483
+ */
1484
+ error: string;
1485
+ /**
1486
+ * Is attribute required?
1487
+ */
1488
+ required: boolean;
1489
+ /**
1490
+ * Is attribute an array?
1491
+ */
1492
+ array?: boolean;
1493
+ /**
1494
+ * Attribute creation date in ISO 8601 format.
1495
+ */
1496
+ $createdAt: string;
1497
+ /**
1498
+ * Attribute update date in ISO 8601 format.
1499
+ */
1500
+ $updatedAt: string;
1501
+ /**
1502
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1503
+ */
1504
+ default?: string;
1505
+ };
1506
+ /**
1507
+ * AttributeLongtext
1508
+ */
1509
+ export type AttributeLongtext = {
1510
+ /**
1511
+ * Attribute Key.
1512
+ */
1513
+ key: string;
1514
+ /**
1515
+ * Attribute type.
1516
+ */
1517
+ type: string;
1518
+ /**
1519
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1520
+ */
1521
+ status: AttributeStatus;
1522
+ /**
1523
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1524
+ */
1525
+ error: string;
1526
+ /**
1527
+ * Is attribute required?
1528
+ */
1529
+ required: boolean;
1530
+ /**
1531
+ * Is attribute an array?
1532
+ */
1533
+ array?: boolean;
1534
+ /**
1535
+ * Attribute creation date in ISO 8601 format.
1536
+ */
1537
+ $createdAt: string;
1538
+ /**
1539
+ * Attribute update date in ISO 8601 format.
1540
+ */
1541
+ $updatedAt: string;
1542
+ /**
1543
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
1544
+ */
1545
+ default?: string;
1546
+ };
1379
1547
  /**
1380
1548
  * Table
1381
1549
  */
@@ -2035,6 +2203,174 @@ export declare namespace Models {
2035
2203
  */
2036
2204
  default?: any[];
2037
2205
  };
2206
+ /**
2207
+ * ColumnVarchar
2208
+ */
2209
+ export type ColumnVarchar = {
2210
+ /**
2211
+ * Column Key.
2212
+ */
2213
+ key: string;
2214
+ /**
2215
+ * Column type.
2216
+ */
2217
+ type: string;
2218
+ /**
2219
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
2220
+ */
2221
+ status: ColumnStatus;
2222
+ /**
2223
+ * Error message. Displays error generated on failure of creating or deleting an column.
2224
+ */
2225
+ error: string;
2226
+ /**
2227
+ * Is column required?
2228
+ */
2229
+ required: boolean;
2230
+ /**
2231
+ * Is column an array?
2232
+ */
2233
+ array?: boolean;
2234
+ /**
2235
+ * Column creation date in ISO 8601 format.
2236
+ */
2237
+ $createdAt: string;
2238
+ /**
2239
+ * Column update date in ISO 8601 format.
2240
+ */
2241
+ $updatedAt: string;
2242
+ /**
2243
+ * Column size.
2244
+ */
2245
+ size: number;
2246
+ /**
2247
+ * Default value for column when not provided. Cannot be set when column is required.
2248
+ */
2249
+ default?: string;
2250
+ };
2251
+ /**
2252
+ * ColumnText
2253
+ */
2254
+ export type ColumnText = {
2255
+ /**
2256
+ * Column Key.
2257
+ */
2258
+ key: string;
2259
+ /**
2260
+ * Column type.
2261
+ */
2262
+ type: string;
2263
+ /**
2264
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
2265
+ */
2266
+ status: ColumnStatus;
2267
+ /**
2268
+ * Error message. Displays error generated on failure of creating or deleting an column.
2269
+ */
2270
+ error: string;
2271
+ /**
2272
+ * Is column required?
2273
+ */
2274
+ required: boolean;
2275
+ /**
2276
+ * Is column an array?
2277
+ */
2278
+ array?: boolean;
2279
+ /**
2280
+ * Column creation date in ISO 8601 format.
2281
+ */
2282
+ $createdAt: string;
2283
+ /**
2284
+ * Column update date in ISO 8601 format.
2285
+ */
2286
+ $updatedAt: string;
2287
+ /**
2288
+ * Default value for column when not provided. Cannot be set when column is required.
2289
+ */
2290
+ default?: string;
2291
+ };
2292
+ /**
2293
+ * ColumnMediumtext
2294
+ */
2295
+ export type ColumnMediumtext = {
2296
+ /**
2297
+ * Column Key.
2298
+ */
2299
+ key: string;
2300
+ /**
2301
+ * Column type.
2302
+ */
2303
+ type: string;
2304
+ /**
2305
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
2306
+ */
2307
+ status: ColumnStatus;
2308
+ /**
2309
+ * Error message. Displays error generated on failure of creating or deleting an column.
2310
+ */
2311
+ error: string;
2312
+ /**
2313
+ * Is column required?
2314
+ */
2315
+ required: boolean;
2316
+ /**
2317
+ * Is column an array?
2318
+ */
2319
+ array?: boolean;
2320
+ /**
2321
+ * Column creation date in ISO 8601 format.
2322
+ */
2323
+ $createdAt: string;
2324
+ /**
2325
+ * Column update date in ISO 8601 format.
2326
+ */
2327
+ $updatedAt: string;
2328
+ /**
2329
+ * Default value for column when not provided. Cannot be set when column is required.
2330
+ */
2331
+ default?: string;
2332
+ };
2333
+ /**
2334
+ * ColumnLongtext
2335
+ */
2336
+ export type ColumnLongtext = {
2337
+ /**
2338
+ * Column Key.
2339
+ */
2340
+ key: string;
2341
+ /**
2342
+ * Column type.
2343
+ */
2344
+ type: string;
2345
+ /**
2346
+ * Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
2347
+ */
2348
+ status: ColumnStatus;
2349
+ /**
2350
+ * Error message. Displays error generated on failure of creating or deleting an column.
2351
+ */
2352
+ error: string;
2353
+ /**
2354
+ * Is column required?
2355
+ */
2356
+ required: boolean;
2357
+ /**
2358
+ * Is column an array?
2359
+ */
2360
+ array?: boolean;
2361
+ /**
2362
+ * Column creation date in ISO 8601 format.
2363
+ */
2364
+ $createdAt: string;
2365
+ /**
2366
+ * Column update date in ISO 8601 format.
2367
+ */
2368
+ $updatedAt: string;
2369
+ /**
2370
+ * Default value for column when not provided. Cannot be set when column is required.
2371
+ */
2372
+ default?: string;
2373
+ };
2038
2374
  /**
2039
2375
  * Index
2040
2376
  */
@@ -3811,7 +4147,7 @@ export declare namespace Models {
3811
4147
  */
3812
4148
  screenshotDark: string;
3813
4149
  /**
3814
- * The deployment status. Possible values are "waiting", "processing", "building", "ready", and "failed".
4150
+ * The deployment status. Possible values are "waiting", "processing", "building", "ready", "canceled" and "failed".
3815
4151
  */
3816
4152
  status: DeploymentStatus;
3817
4153
  /**
@@ -6479,6 +6815,10 @@ export declare namespace Models {
6479
6815
  * Image Transformations
6480
6816
  */
6481
6817
  imageTransformations: number;
6818
+ /**
6819
+ * Screenshots generated
6820
+ */
6821
+ screenshotsGenerated: number;
6482
6822
  /**
6483
6823
  * Members
6484
6824
  */
@@ -1,5 +1,6 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
+ import { Scopes } from '../enums/scopes';
3
4
  import { AuthenticatorType } from '../enums/authenticator-type';
4
5
  import { AuthenticationFactor } from '../enums/authentication-factor';
5
6
  import { OAuthProvider } from '../enums/o-auth-provider';
@@ -300,6 +301,116 @@ export declare class Account {
300
301
  * @deprecated Use the object parameter style method for a better developer experience.
301
302
  */
302
303
  createJWT(duration?: number): Promise<Models.Jwt>;
304
+ /**
305
+ * Get a list of all API keys from the current account.
306
+ *
307
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
308
+ * @throws {AppwriteException}
309
+ * @returns {Promise<Models.KeyList>}
310
+ */
311
+ listKeys(params?: {
312
+ total?: boolean;
313
+ }): Promise<Models.KeyList>;
314
+ /**
315
+ * Get a list of all API keys from the current account.
316
+ *
317
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
318
+ * @throws {AppwriteException}
319
+ * @returns {Promise<Models.KeyList>}
320
+ * @deprecated Use the object parameter style method for a better developer experience.
321
+ */
322
+ listKeys(total?: boolean): Promise<Models.KeyList>;
323
+ /**
324
+ * Create a new account API key.
325
+ *
326
+ * @param {string} params.name - Key name. Max length: 128 chars.
327
+ * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
328
+ * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
329
+ * @throws {AppwriteException}
330
+ * @returns {Promise<Models.Key>}
331
+ */
332
+ createKey(params: {
333
+ name: string;
334
+ scopes: Scopes[];
335
+ expire?: string;
336
+ }): Promise<Models.Key>;
337
+ /**
338
+ * Create a new account API key.
339
+ *
340
+ * @param {string} name - Key name. Max length: 128 chars.
341
+ * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
342
+ * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
343
+ * @throws {AppwriteException}
344
+ * @returns {Promise<Models.Key>}
345
+ * @deprecated Use the object parameter style method for a better developer experience.
346
+ */
347
+ createKey(name: string, scopes: Scopes[], expire?: string): Promise<Models.Key>;
348
+ /**
349
+ * Get a key by its unique ID. This endpoint returns details about a specific API key in your account including it's scopes.
350
+ *
351
+ * @param {string} params.keyId - Key unique ID.
352
+ * @throws {AppwriteException}
353
+ * @returns {Promise<Models.Key>}
354
+ */
355
+ getKey(params: {
356
+ keyId: string;
357
+ }): Promise<Models.Key>;
358
+ /**
359
+ * Get a key by its unique ID. This endpoint returns details about a specific API key in your account including it's scopes.
360
+ *
361
+ * @param {string} keyId - Key unique ID.
362
+ * @throws {AppwriteException}
363
+ * @returns {Promise<Models.Key>}
364
+ * @deprecated Use the object parameter style method for a better developer experience.
365
+ */
366
+ getKey(keyId: string): Promise<Models.Key>;
367
+ /**
368
+ * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
369
+ *
370
+ * @param {string} params.keyId - Key unique ID.
371
+ * @param {string} params.name - Key name. Max length: 128 chars.
372
+ * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
373
+ * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
374
+ * @throws {AppwriteException}
375
+ * @returns {Promise<Models.Key>}
376
+ */
377
+ updateKey(params: {
378
+ keyId: string;
379
+ name: string;
380
+ scopes: Scopes[];
381
+ expire?: string;
382
+ }): Promise<Models.Key>;
383
+ /**
384
+ * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
385
+ *
386
+ * @param {string} keyId - Key unique ID.
387
+ * @param {string} name - Key name. Max length: 128 chars.
388
+ * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
389
+ * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
390
+ * @throws {AppwriteException}
391
+ * @returns {Promise<Models.Key>}
392
+ * @deprecated Use the object parameter style method for a better developer experience.
393
+ */
394
+ updateKey(keyId: string, name: string, scopes: Scopes[], expire?: string): Promise<Models.Key>;
395
+ /**
396
+ * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
397
+ *
398
+ * @param {string} params.keyId - Key unique ID.
399
+ * @throws {AppwriteException}
400
+ * @returns {Promise<{}>}
401
+ */
402
+ deleteKey(params: {
403
+ keyId: string;
404
+ }): Promise<{}>;
405
+ /**
406
+ * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
407
+ *
408
+ * @param {string} keyId - Key unique ID.
409
+ * @throws {AppwriteException}
410
+ * @returns {Promise<{}>}
411
+ * @deprecated Use the object parameter style method for a better developer experience.
412
+ */
413
+ deleteKey(keyId: string): Promise<{}>;
303
414
  /**
304
415
  * Get the list of latest security activity logs for the currently logged in user. Each log returns user IP address, location and date and time of log.
305
416
  *