@appwrite.io/console 2.1.2 → 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 (137) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/sdk.js +2099 -520
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +2098 -521
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +2003 -444
  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 +3 -2
  68. package/src/channel.ts +138 -0
  69. package/src/client.ts +54 -9
  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 +10 -1
  81. package/src/models.ts +349 -1
  82. package/src/query.ts +42 -0
  83. package/src/services/account.ts +364 -56
  84. package/src/services/assistant.ts +1 -1
  85. package/src/services/avatars.ts +17 -16
  86. package/src/services/backups.ts +37 -36
  87. package/src/services/console.ts +11 -42
  88. package/src/services/databases.ts +1060 -280
  89. package/src/services/domains.ts +44 -44
  90. package/src/services/functions.ts +60 -57
  91. package/src/services/graphql.ts +2 -2
  92. package/src/services/health.ts +22 -20
  93. package/src/services/messaging.ts +56 -56
  94. package/src/services/migrations.ts +79 -78
  95. package/src/services/organizations.ts +466 -70
  96. package/src/services/project.ts +5 -5
  97. package/src/services/projects.ts +86 -85
  98. package/src/services/proxy.ts +8 -8
  99. package/src/services/realtime.ts +35 -12
  100. package/src/services/sites.ts +42 -40
  101. package/src/services/storage.ts +16 -16
  102. package/src/services/tables-db.ts +1050 -268
  103. package/src/services/teams.ts +31 -30
  104. package/src/services/tokens.ts +5 -5
  105. package/src/services/users.ts +49 -49
  106. package/src/services/vcs.ts +10 -10
  107. package/types/channel.d.ts +72 -0
  108. package/types/client.d.ts +11 -3
  109. package/types/enums/browser-permission.d.ts +22 -0
  110. package/types/enums/deployment-status.d.ts +1 -0
  111. package/types/enums/frameworks.d.ts +17 -0
  112. package/types/enums/order-by.d.ts +4 -0
  113. package/types/enums/resources.d.ts +13 -0
  114. package/types/enums/roles.d.ts +7 -0
  115. package/types/enums/runtimes.d.ts +66 -0
  116. package/types/enums/scopes.d.ts +65 -0
  117. package/types/enums/services.d.ts +5 -0
  118. package/types/enums/use-cases.d.ts +11 -0
  119. package/types/index.d.ts +10 -1
  120. package/types/models.d.ts +341 -1
  121. package/types/query.d.ts +30 -0
  122. package/types/services/account.d.ts +111 -0
  123. package/types/services/avatars.d.ts +5 -4
  124. package/types/services/backups.d.ts +13 -12
  125. package/types/services/console.d.ts +1 -13
  126. package/types/services/databases.d.ts +303 -8
  127. package/types/services/functions.d.ts +18 -15
  128. package/types/services/health.d.ts +2 -0
  129. package/types/services/migrations.d.ts +33 -32
  130. package/types/services/organizations.d.ts +161 -17
  131. package/types/services/projects.d.ts +13 -12
  132. package/types/services/realtime.d.ts +17 -8
  133. package/types/services/sites.d.ts +9 -7
  134. package/types/services/tables-db.d.ts +305 -8
  135. package/types/services/teams.d.ts +9 -8
  136. package/src/enums/billing-plan.ts +0 -17
  137. package/types/enums/billing-plan.d.ts +0 -17
@@ -3,5 +3,6 @@ export declare enum DeploymentStatus {
3
3
  Processing = "processing",
4
4
  Building = "building",
5
5
  Ready = "ready",
6
+ Canceled = "canceled",
6
7
  Failed = "failed"
7
8
  }
@@ -0,0 +1,17 @@
1
+ export declare enum Frameworks {
2
+ Analog = "analog",
3
+ Angular = "angular",
4
+ Nextjs = "nextjs",
5
+ React = "react",
6
+ Nuxt = "nuxt",
7
+ Vue = "vue",
8
+ Sveltekit = "sveltekit",
9
+ Astro = "astro",
10
+ Tanstackstart = "tanstack-start",
11
+ Remix = "remix",
12
+ Lynx = "lynx",
13
+ Flutter = "flutter",
14
+ Reactnative = "react-native",
15
+ Vite = "vite",
16
+ Other = "other"
17
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum OrderBy {
2
+ Asc = "asc",
3
+ Desc = "desc"
4
+ }
@@ -0,0 +1,13 @@
1
+ export declare enum Resources {
2
+ User = "user",
3
+ Database = "database",
4
+ Table = "table",
5
+ Column = "column",
6
+ Index = "index",
7
+ Row = "row",
8
+ Document = "document",
9
+ Attribute = "attribute",
10
+ Collection = "collection",
11
+ Bucket = "bucket",
12
+ File = "file"
13
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum Roles {
2
+ Developer = "developer",
3
+ Editor = "editor",
4
+ Analyst = "analyst",
5
+ Billing = "billing",
6
+ Owner = "owner"
7
+ }
@@ -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
@@ -36,7 +36,9 @@ export type { QueryTypes, QueryTypesList } from './query';
36
36
  export { Permission } from './permission';
37
37
  export { Role } from './role';
38
38
  export { ID } from './id';
39
+ export { Channel } from './channel';
39
40
  export { Operator, Condition } from './operator';
41
+ export { Scopes } from './enums/scopes';
40
42
  export { AuthenticatorType } from './enums/authenticator-type';
41
43
  export { AuthenticationFactor } from './enums/authentication-factor';
42
44
  export { OAuthProvider } from './enums/o-auth-provider';
@@ -45,15 +47,20 @@ export { CreditCard } from './enums/credit-card';
45
47
  export { Flag } from './enums/flag';
46
48
  export { Theme } from './enums/theme';
47
49
  export { Timezone } from './enums/timezone';
50
+ export { BrowserPermission } from './enums/browser-permission';
48
51
  export { ImageFormat } from './enums/image-format';
52
+ export { Services } from './enums/services';
49
53
  export { Platform } from './enums/platform';
50
54
  export { ConsoleResourceType } from './enums/console-resource-type';
51
55
  export { UsageRange } from './enums/usage-range';
52
56
  export { RelationshipType } from './enums/relationship-type';
53
57
  export { RelationMutate } from './enums/relation-mutate';
54
58
  export { IndexType } from './enums/index-type';
59
+ export { OrderBy } from './enums/order-by';
55
60
  export { FilterType } from './enums/filter-type';
56
61
  export { Runtime } from './enums/runtime';
62
+ export { Runtimes } from './enums/runtimes';
63
+ export { UseCases } from './enums/use-cases';
57
64
  export { TemplateReferenceType } from './enums/template-reference-type';
58
65
  export { VCSReferenceType } from './enums/vcs-reference-type';
59
66
  export { DeploymentDownloadType } from './enums/deployment-download-type';
@@ -61,7 +68,7 @@ export { ExecutionMethod } from './enums/execution-method';
61
68
  export { Name } from './enums/name';
62
69
  export { MessagePriority } from './enums/message-priority';
63
70
  export { SmtpEncryption } from './enums/smtp-encryption';
64
- export { BillingPlan } from './enums/billing-plan';
71
+ export { Resources } from './enums/resources';
65
72
  export { ProjectUsageRange } from './enums/project-usage-range';
66
73
  export { Region } from './enums/region';
67
74
  export { Api } from './enums/api';
@@ -79,8 +86,10 @@ export { ProxyResourceType } from './enums/proxy-resource-type';
79
86
  export { Framework } from './enums/framework';
80
87
  export { BuildRuntime } from './enums/build-runtime';
81
88
  export { Adapter } from './enums/adapter';
89
+ export { Frameworks } from './enums/frameworks';
82
90
  export { Compression } from './enums/compression';
83
91
  export { ImageGravity } from './enums/image-gravity';
92
+ export { Roles } from './enums/roles';
84
93
  export { PasswordHash } from './enums/password-hash';
85
94
  export { MessagingProviderType } from './enums/messaging-provider-type';
86
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
  */
package/types/query.d.ts CHANGED
@@ -39,6 +39,14 @@ export declare class Query {
39
39
  * @returns {string}
40
40
  */
41
41
  static notEqual: (attribute: string, value: QueryTypes) => string;
42
+ /**
43
+ * Filter resources where attribute matches a regular expression pattern.
44
+ *
45
+ * @param {string} attribute The attribute to filter on.
46
+ * @param {string} pattern The regular expression pattern to match.
47
+ * @returns {string}
48
+ */
49
+ static regex: (attribute: string, pattern: string) => string;
42
50
  /**
43
51
  * Filter resources where attribute is less than value.
44
52
  *
@@ -85,6 +93,20 @@ export declare class Query {
85
93
  * @returns {string}
86
94
  */
87
95
  static isNotNull: (attribute: string) => string;
96
+ /**
97
+ * Filter resources where the specified attributes exist.
98
+ *
99
+ * @param {string[]} attributes The list of attributes that must exist.
100
+ * @returns {string}
101
+ */
102
+ static exists: (attributes: string[]) => string;
103
+ /**
104
+ * Filter resources where the specified attributes do not exist.
105
+ *
106
+ * @param {string[]} attributes The list of attributes that must not exist.
107
+ * @returns {string}
108
+ */
109
+ static notExists: (attributes: string[]) => string;
88
110
  /**
89
111
  * Filter resources where attribute is between start and end (inclusive).
90
112
  *
@@ -282,6 +304,14 @@ export declare class Query {
282
304
  * @returns {string}
283
305
  */
284
306
  static and: (queries: string[]) => string;
307
+ /**
308
+ * Filter array elements where at least one element matches all the specified queries.
309
+ *
310
+ * @param {string} attribute The attribute containing the array to filter on.
311
+ * @param {string[]} queries The list of query strings to match against array elements.
312
+ * @returns {string}
313
+ */
314
+ static elemMatch: (attribute: string, queries: string[]) => string;
285
315
  /**
286
316
  * Filter resources where attribute is at a specific distance from the given coordinates.
287
317
  *