@appwrite.io/console 8.0.0 → 8.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 (124) hide show
  1. package/.github/workflows/publish.yml +1 -1
  2. package/CHANGELOG.md +8 -0
  3. package/README.md +1 -1
  4. package/dist/cjs/sdk.js +12 -1
  5. package/package.json +1 -1
  6. package/src/client.ts +13 -1
  7. package/src/models.ts +122 -0
  8. package/src/services/vcs.ts +10 -10
  9. package/dist/cjs/sdk.js.map +0 -1
  10. package/dist/esm/sdk.js +0 -29694
  11. package/dist/esm/sdk.js.map +0 -1
  12. package/dist/iife/sdk.js +0 -33504
  13. package/types/channel.d.ts +0 -74
  14. package/types/client.d.ts +0 -293
  15. package/types/enums/adapter.d.ts +0 -4
  16. package/types/enums/api-service.d.ts +0 -15
  17. package/types/enums/api.d.ts +0 -5
  18. package/types/enums/appwrite-migration-resource.d.ts +0 -27
  19. package/types/enums/attribute-status.d.ts +0 -7
  20. package/types/enums/auth-method.d.ts +0 -9
  21. package/types/enums/authentication-factor.d.ts +0 -6
  22. package/types/enums/authenticator-type.d.ts +0 -3
  23. package/types/enums/backup-services.d.ts +0 -8
  24. package/types/enums/billing-plan-group.d.ts +0 -5
  25. package/types/enums/browser-permission.d.ts +0 -22
  26. package/types/enums/browser.d.ts +0 -16
  27. package/types/enums/build-runtime.d.ts +0 -88
  28. package/types/enums/column-status.d.ts +0 -7
  29. package/types/enums/compression.d.ts +0 -5
  30. package/types/enums/console-resource-type.d.ts +0 -3
  31. package/types/enums/credit-card.d.ts +0 -19
  32. package/types/enums/database-type.d.ts +0 -6
  33. package/types/enums/databases-index-type.d.ts +0 -6
  34. package/types/enums/deployment-download-type.d.ts +0 -4
  35. package/types/enums/deployment-status.d.ts +0 -8
  36. package/types/enums/domain-purchase-status.d.ts +0 -6
  37. package/types/enums/domain-transfer-status-enum.d.ts +0 -10
  38. package/types/enums/email-template-locale.d.ts +0 -133
  39. package/types/enums/email-template-type.d.ts +0 -9
  40. package/types/enums/execution-method.d.ts +0 -9
  41. package/types/enums/execution-status.d.ts +0 -7
  42. package/types/enums/execution-trigger.d.ts +0 -5
  43. package/types/enums/filter-type.d.ts +0 -4
  44. package/types/enums/firebase-migration-resource.d.ts +0 -12
  45. package/types/enums/flag.d.ts +0 -197
  46. package/types/enums/framework.d.ts +0 -17
  47. package/types/enums/frameworks.d.ts +0 -17
  48. package/types/enums/health-antivirus-status.d.ts +0 -5
  49. package/types/enums/health-check-status.d.ts +0 -4
  50. package/types/enums/image-format.d.ts +0 -9
  51. package/types/enums/image-gravity.d.ts +0 -11
  52. package/types/enums/index-status.d.ts +0 -7
  53. package/types/enums/message-priority.d.ts +0 -4
  54. package/types/enums/message-status.d.ts +0 -7
  55. package/types/enums/messaging-provider-type.d.ts +0 -5
  56. package/types/enums/n-host-migration-resource.d.ts +0 -13
  57. package/types/enums/name.d.ts +0 -15
  58. package/types/enums/o-auth-provider.d.ts +0 -41
  59. package/types/enums/order-by.d.ts +0 -4
  60. package/types/enums/password-hash.d.ts +0 -13
  61. package/types/enums/platform-type.d.ts +0 -17
  62. package/types/enums/platform.d.ts +0 -4
  63. package/types/enums/project-usage-range.d.ts +0 -4
  64. package/types/enums/proxy-resource-type.d.ts +0 -4
  65. package/types/enums/proxy-rule-deployment-resource-type.d.ts +0 -4
  66. package/types/enums/proxy-rule-status.d.ts +0 -6
  67. package/types/enums/region.d.ts +0 -8
  68. package/types/enums/registration-type.d.ts +0 -6
  69. package/types/enums/relation-mutate.d.ts +0 -5
  70. package/types/enums/relationship-type.d.ts +0 -6
  71. package/types/enums/resource-type.d.ts +0 -6
  72. package/types/enums/runtime.d.ts +0 -88
  73. package/types/enums/runtimes.d.ts +0 -88
  74. package/types/enums/scopes.d.ts +0 -81
  75. package/types/enums/sms-template-locale.d.ts +0 -133
  76. package/types/enums/sms-template-type.d.ts +0 -6
  77. package/types/enums/smtp-encryption.d.ts +0 -5
  78. package/types/enums/smtp-secure.d.ts +0 -4
  79. package/types/enums/status-code.d.ts +0 -6
  80. package/types/enums/status.d.ts +0 -3
  81. package/types/enums/supabase-migration-resource.d.ts +0 -13
  82. package/types/enums/tables-db-index-type.d.ts +0 -6
  83. package/types/enums/template-reference-type.d.ts +0 -5
  84. package/types/enums/theme.d.ts +0 -4
  85. package/types/enums/timezone.d.ts +0 -421
  86. package/types/enums/usage-range.d.ts +0 -5
  87. package/types/enums/use-cases.d.ts +0 -16
  88. package/types/enums/vcs-detection-type.d.ts +0 -4
  89. package/types/enums/vcs-reference-type.d.ts +0 -5
  90. package/types/id.d.ts +0 -20
  91. package/types/index.d.ts +0 -118
  92. package/types/models.d.ts +0 -9120
  93. package/types/operator.d.ts +0 -180
  94. package/types/permission.d.ts +0 -43
  95. package/types/query.d.ts +0 -442
  96. package/types/role.d.ts +0 -70
  97. package/types/service.d.ts +0 -11
  98. package/types/services/account.d.ts +0 -1536
  99. package/types/services/activities.d.ts +0 -46
  100. package/types/services/assistant.d.ts +0 -24
  101. package/types/services/avatars.d.ts +0 -320
  102. package/types/services/backups.d.ts +0 -277
  103. package/types/services/console.d.ts +0 -248
  104. package/types/services/databases.d.ts +0 -2435
  105. package/types/services/domains.d.ts +0 -1527
  106. package/types/services/functions.d.ts +0 -842
  107. package/types/services/graphql.d.ts +0 -43
  108. package/types/services/health.d.ts +0 -475
  109. package/types/services/locale.d.ts +0 -64
  110. package/types/services/messaging.d.ts +0 -1989
  111. package/types/services/migrations.d.ts +0 -417
  112. package/types/services/organizations.d.ts +0 -1009
  113. package/types/services/project.d.ts +0 -148
  114. package/types/services/projects.d.ts +0 -1626
  115. package/types/services/proxy.d.ts +0 -190
  116. package/types/services/realtime.d.ts +0 -134
  117. package/types/services/sites.d.ts +0 -800
  118. package/types/services/storage.d.ts +0 -467
  119. package/types/services/tables-db.d.ts +0 -2352
  120. package/types/services/teams.d.ts +0 -366
  121. package/types/services/tokens.d.ts +0 -119
  122. package/types/services/users.d.ts +0 -1208
  123. package/types/services/vcs.d.ts +0 -252
  124. package/types/services/webhooks.d.ts +0 -165
@@ -1,277 +0,0 @@
1
- import { Client } from '../client';
2
- import type { Models } from '../models';
3
- import { BackupServices } from '../enums/backup-services';
4
- export declare class Backups {
5
- client: Client;
6
- constructor(client: Client);
7
- /**
8
- * List all archives for a project.
9
- *
10
- * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
11
- * @throws {AppwriteException}
12
- * @returns {Promise<Models.BackupArchiveList>}
13
- */
14
- listArchives(params?: {
15
- queries?: string[];
16
- }): Promise<Models.BackupArchiveList>;
17
- /**
18
- * List all archives for a project.
19
- *
20
- * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
21
- * @throws {AppwriteException}
22
- * @returns {Promise<Models.BackupArchiveList>}
23
- * @deprecated Use the object parameter style method for a better developer experience.
24
- */
25
- listArchives(queries?: string[]): Promise<Models.BackupArchiveList>;
26
- /**
27
- * Create a new archive asynchronously for a project.
28
- *
29
- * @param {BackupServices[]} params.services - Array of services to backup
30
- * @param {string} params.resourceId - Resource ID. When set, only this single resource will be backed up.
31
- * @throws {AppwriteException}
32
- * @returns {Promise<Models.BackupArchive>}
33
- */
34
- createArchive(params: {
35
- services: BackupServices[];
36
- resourceId?: string;
37
- }): Promise<Models.BackupArchive>;
38
- /**
39
- * Create a new archive asynchronously for a project.
40
- *
41
- * @param {BackupServices[]} services - Array of services to backup
42
- * @param {string} resourceId - Resource ID. When set, only this single resource will be backed up.
43
- * @throws {AppwriteException}
44
- * @returns {Promise<Models.BackupArchive>}
45
- * @deprecated Use the object parameter style method for a better developer experience.
46
- */
47
- createArchive(services: BackupServices[], resourceId?: string): Promise<Models.BackupArchive>;
48
- /**
49
- * Get a backup archive using it's ID.
50
- *
51
- * @param {string} params.archiveId - Archive ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
52
- * @throws {AppwriteException}
53
- * @returns {Promise<Models.BackupArchive>}
54
- */
55
- getArchive(params: {
56
- archiveId: string;
57
- }): Promise<Models.BackupArchive>;
58
- /**
59
- * Get a backup archive using it's ID.
60
- *
61
- * @param {string} archiveId - Archive ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
62
- * @throws {AppwriteException}
63
- * @returns {Promise<Models.BackupArchive>}
64
- * @deprecated Use the object parameter style method for a better developer experience.
65
- */
66
- getArchive(archiveId: string): Promise<Models.BackupArchive>;
67
- /**
68
- * Delete an existing archive for a project.
69
- *
70
- * @param {string} params.archiveId - Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
71
- * @throws {AppwriteException}
72
- * @returns {Promise<{}>}
73
- */
74
- deleteArchive(params: {
75
- archiveId: string;
76
- }): Promise<{}>;
77
- /**
78
- * Delete an existing archive for a project.
79
- *
80
- * @param {string} archiveId - Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
81
- * @throws {AppwriteException}
82
- * @returns {Promise<{}>}
83
- * @deprecated Use the object parameter style method for a better developer experience.
84
- */
85
- deleteArchive(archiveId: string): Promise<{}>;
86
- /**
87
- * List all policies for a project.
88
- *
89
- * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
90
- * @throws {AppwriteException}
91
- * @returns {Promise<Models.BackupPolicyList>}
92
- */
93
- listPolicies(params?: {
94
- queries?: string[];
95
- }): Promise<Models.BackupPolicyList>;
96
- /**
97
- * List all policies for a project.
98
- *
99
- * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
100
- * @throws {AppwriteException}
101
- * @returns {Promise<Models.BackupPolicyList>}
102
- * @deprecated Use the object parameter style method for a better developer experience.
103
- */
104
- listPolicies(queries?: string[]): Promise<Models.BackupPolicyList>;
105
- /**
106
- * Create a new backup policy.
107
- *
108
- * @param {string} params.policyId - Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
109
- * @param {BackupServices[]} params.services - Array of services to backup
110
- * @param {number} params.retention - Days to keep backups before deletion
111
- * @param {string} params.schedule - Schedule CRON syntax.
112
- * @param {string} params.name - Policy name. Max length: 128 chars.
113
- * @param {string} params.resourceId - Resource ID. When set, only this single resource will be backed up.
114
- * @param {boolean} params.enabled - Is policy enabled? When set to 'disabled', no backups will be taken
115
- * @throws {AppwriteException}
116
- * @returns {Promise<Models.BackupPolicy>}
117
- */
118
- createPolicy(params: {
119
- policyId: string;
120
- services: BackupServices[];
121
- retention: number;
122
- schedule: string;
123
- name?: string;
124
- resourceId?: string;
125
- enabled?: boolean;
126
- }): Promise<Models.BackupPolicy>;
127
- /**
128
- * Create a new backup policy.
129
- *
130
- * @param {string} policyId - Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
131
- * @param {BackupServices[]} services - Array of services to backup
132
- * @param {number} retention - Days to keep backups before deletion
133
- * @param {string} schedule - Schedule CRON syntax.
134
- * @param {string} name - Policy name. Max length: 128 chars.
135
- * @param {string} resourceId - Resource ID. When set, only this single resource will be backed up.
136
- * @param {boolean} enabled - Is policy enabled? When set to 'disabled', no backups will be taken
137
- * @throws {AppwriteException}
138
- * @returns {Promise<Models.BackupPolicy>}
139
- * @deprecated Use the object parameter style method for a better developer experience.
140
- */
141
- createPolicy(policyId: string, services: BackupServices[], retention: number, schedule: string, name?: string, resourceId?: string, enabled?: boolean): Promise<Models.BackupPolicy>;
142
- /**
143
- * Get a backup policy using it's ID.
144
- *
145
- * @param {string} params.policyId - Policy ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
146
- * @throws {AppwriteException}
147
- * @returns {Promise<Models.BackupPolicy>}
148
- */
149
- getPolicy(params: {
150
- policyId: string;
151
- }): Promise<Models.BackupPolicy>;
152
- /**
153
- * Get a backup policy using it's ID.
154
- *
155
- * @param {string} policyId - Policy ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
156
- * @throws {AppwriteException}
157
- * @returns {Promise<Models.BackupPolicy>}
158
- * @deprecated Use the object parameter style method for a better developer experience.
159
- */
160
- getPolicy(policyId: string): Promise<Models.BackupPolicy>;
161
- /**
162
- * Update an existing policy using it's ID.
163
- *
164
- * @param {string} params.policyId - Policy ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
165
- * @param {string} params.name - Policy name. Max length: 128 chars.
166
- * @param {number} params.retention - Days to keep backups before deletion
167
- * @param {string} params.schedule - Cron expression
168
- * @param {boolean} params.enabled - Is Backup enabled? When set to 'disabled', No backup will be taken
169
- * @throws {AppwriteException}
170
- * @returns {Promise<Models.BackupPolicy>}
171
- */
172
- updatePolicy(params: {
173
- policyId: string;
174
- name?: string;
175
- retention?: number;
176
- schedule?: string;
177
- enabled?: boolean;
178
- }): Promise<Models.BackupPolicy>;
179
- /**
180
- * Update an existing policy using it's ID.
181
- *
182
- * @param {string} policyId - Policy ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
183
- * @param {string} name - Policy name. Max length: 128 chars.
184
- * @param {number} retention - Days to keep backups before deletion
185
- * @param {string} schedule - Cron expression
186
- * @param {boolean} enabled - Is Backup enabled? When set to 'disabled', No backup will be taken
187
- * @throws {AppwriteException}
188
- * @returns {Promise<Models.BackupPolicy>}
189
- * @deprecated Use the object parameter style method for a better developer experience.
190
- */
191
- updatePolicy(policyId: string, name?: string, retention?: number, schedule?: string, enabled?: boolean): Promise<Models.BackupPolicy>;
192
- /**
193
- * Delete a policy using it's ID.
194
- *
195
- * @param {string} params.policyId - Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
196
- * @throws {AppwriteException}
197
- * @returns {Promise<{}>}
198
- */
199
- deletePolicy(params: {
200
- policyId: string;
201
- }): Promise<{}>;
202
- /**
203
- * Delete a policy using it's ID.
204
- *
205
- * @param {string} policyId - Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
206
- * @throws {AppwriteException}
207
- * @returns {Promise<{}>}
208
- * @deprecated Use the object parameter style method for a better developer experience.
209
- */
210
- deletePolicy(policyId: string): Promise<{}>;
211
- /**
212
- * Create and trigger a new restoration for a backup on a project.
213
- *
214
- * @param {string} params.archiveId - Backup archive ID to restore
215
- * @param {BackupServices[]} params.services - Array of services to restore
216
- * @param {string} params.newResourceId - Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
217
- * @param {string} params.newResourceName - Database name. Max length: 128 chars.
218
- * @throws {AppwriteException}
219
- * @returns {Promise<Models.BackupRestoration>}
220
- */
221
- createRestoration(params: {
222
- archiveId: string;
223
- services: BackupServices[];
224
- newResourceId?: string;
225
- newResourceName?: string;
226
- }): Promise<Models.BackupRestoration>;
227
- /**
228
- * Create and trigger a new restoration for a backup on a project.
229
- *
230
- * @param {string} archiveId - Backup archive ID to restore
231
- * @param {BackupServices[]} services - Array of services to restore
232
- * @param {string} newResourceId - Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
233
- * @param {string} newResourceName - Database name. Max length: 128 chars.
234
- * @throws {AppwriteException}
235
- * @returns {Promise<Models.BackupRestoration>}
236
- * @deprecated Use the object parameter style method for a better developer experience.
237
- */
238
- createRestoration(archiveId: string, services: BackupServices[], newResourceId?: string, newResourceName?: string): Promise<Models.BackupRestoration>;
239
- /**
240
- * List all backup restorations for a project.
241
- *
242
- * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
243
- * @throws {AppwriteException}
244
- * @returns {Promise<Models.BackupRestorationList>}
245
- */
246
- listRestorations(params?: {
247
- queries?: string[];
248
- }): Promise<Models.BackupRestorationList>;
249
- /**
250
- * List all backup restorations for a project.
251
- *
252
- * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
253
- * @throws {AppwriteException}
254
- * @returns {Promise<Models.BackupRestorationList>}
255
- * @deprecated Use the object parameter style method for a better developer experience.
256
- */
257
- listRestorations(queries?: string[]): Promise<Models.BackupRestorationList>;
258
- /**
259
- * Get the current status of a backup restoration.
260
- *
261
- * @param {string} params.restorationId - Restoration ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
262
- * @throws {AppwriteException}
263
- * @returns {Promise<Models.BackupRestoration>}
264
- */
265
- getRestoration(params: {
266
- restorationId: string;
267
- }): Promise<Models.BackupRestoration>;
268
- /**
269
- * Get the current status of a backup restoration.
270
- *
271
- * @param {string} restorationId - Restoration ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
272
- * @throws {AppwriteException}
273
- * @returns {Promise<Models.BackupRestoration>}
274
- * @deprecated Use the object parameter style method for a better developer experience.
275
- */
276
- getRestoration(restorationId: string): Promise<Models.BackupRestoration>;
277
- }
@@ -1,248 +0,0 @@
1
- import { Client } from '../client';
2
- import type { Models } from '../models';
3
- import { Platform } from '../enums/platform';
4
- import { ConsoleResourceType } from '../enums/console-resource-type';
5
- export declare class Console {
6
- client: Client;
7
- constructor(client: Client);
8
- /**
9
- * Receive the details of a campaign using its ID.
10
- *
11
- * @param {string} params.campaignId - ID of the campaign
12
- * @throws {AppwriteException}
13
- * @returns {Promise<Models.Campaign>}
14
- */
15
- getCampaign(params: {
16
- campaignId: string;
17
- }): Promise<Models.Campaign>;
18
- /**
19
- * Receive the details of a campaign using its ID.
20
- *
21
- * @param {string} campaignId - ID of the campaign
22
- * @throws {AppwriteException}
23
- * @returns {Promise<Models.Campaign>}
24
- * @deprecated Use the object parameter style method for a better developer experience.
25
- */
26
- getCampaign(campaignId: string): Promise<Models.Campaign>;
27
- /**
28
- * Get the details of a coupon using it's coupon ID.
29
- *
30
- * @param {string} params.couponId - ID of the coupon
31
- * @throws {AppwriteException}
32
- * @returns {Promise<Models.Coupon>}
33
- */
34
- getCoupon(params: {
35
- couponId: string;
36
- }): Promise<Models.Coupon>;
37
- /**
38
- * Get the details of a coupon using it's coupon ID.
39
- *
40
- * @param {string} couponId - ID of the coupon
41
- * @throws {AppwriteException}
42
- * @returns {Promise<Models.Coupon>}
43
- * @deprecated Use the object parameter style method for a better developer experience.
44
- */
45
- getCoupon(couponId: string): Promise<Models.Coupon>;
46
- /**
47
- * Return a list of all available plans.
48
- *
49
- * @param {Platform} params.platform - Platform type
50
- * @throws {AppwriteException}
51
- * @returns {Promise<Models.BillingPlanList>}
52
- */
53
- getPlans(params?: {
54
- platform?: Platform;
55
- }): Promise<Models.BillingPlanList>;
56
- /**
57
- * Return a list of all available plans.
58
- *
59
- * @param {Platform} platform - Platform type
60
- * @throws {AppwriteException}
61
- * @returns {Promise<Models.BillingPlanList>}
62
- * @deprecated Use the object parameter style method for a better developer experience.
63
- */
64
- getPlans(platform?: Platform): Promise<Models.BillingPlanList>;
65
- /**
66
- * Get the details of a plan using its plan ID.
67
- *
68
- * @param {string} params.planId - Plan id
69
- * @throws {AppwriteException}
70
- * @returns {Promise<Models.BillingPlan>}
71
- */
72
- getPlan(params: {
73
- planId: string;
74
- }): Promise<Models.BillingPlan>;
75
- /**
76
- * Get the details of a plan using its plan ID.
77
- *
78
- * @param {string} planId - Plan id
79
- * @throws {AppwriteException}
80
- * @returns {Promise<Models.BillingPlan>}
81
- * @deprecated Use the object parameter style method for a better developer experience.
82
- */
83
- getPlan(planId: string): Promise<Models.BillingPlan>;
84
- /**
85
- * Receive the details of a program using its ID.
86
- *
87
- * @param {string} params.programId - ID of the program
88
- * @throws {AppwriteException}
89
- * @returns {Promise<Models.Program>}
90
- */
91
- getProgram(params: {
92
- programId: string;
93
- }): Promise<Models.Program>;
94
- /**
95
- * Receive the details of a program using its ID.
96
- *
97
- * @param {string} programId - ID of the program
98
- * @throws {AppwriteException}
99
- * @returns {Promise<Models.Program>}
100
- * @deprecated Use the object parameter style method for a better developer experience.
101
- */
102
- getProgram(programId: string): Promise<Models.Program>;
103
- /**
104
- * Create a new membership for an account to a program.
105
- *
106
- * @param {string} params.programId - ID of the program
107
- * @throws {AppwriteException}
108
- * @returns {Promise<Models.Organization<Preferences>>}
109
- */
110
- createProgramMembership<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
111
- programId: string;
112
- }): Promise<Models.Organization<Preferences>>;
113
- /**
114
- * Create a new membership for an account to a program.
115
- *
116
- * @param {string} programId - ID of the program
117
- * @throws {AppwriteException}
118
- * @returns {Promise<Models.Organization<Preferences>>}
119
- * @deprecated Use the object parameter style method for a better developer experience.
120
- */
121
- createProgramMembership<Preferences extends Models.Preferences = Models.DefaultPreferences>(programId: string): Promise<Models.Organization<Preferences>>;
122
- /**
123
- * Get all available regions for the console.
124
- *
125
- * @throws {AppwriteException}
126
- * @returns {Promise<Models.ConsoleRegionList>}
127
- */
128
- listRegions(): Promise<Models.ConsoleRegionList>;
129
- /**
130
- * Check if a resource ID is available.
131
- *
132
- * @param {string} params.value - Resource value.
133
- * @param {ConsoleResourceType} params.type - Resource type.
134
- * @throws {AppwriteException}
135
- * @returns {Promise<{}>}
136
- */
137
- getResource(params: {
138
- value: string;
139
- type: ConsoleResourceType;
140
- }): Promise<{}>;
141
- /**
142
- * Check if a resource ID is available.
143
- *
144
- * @param {string} value - Resource value.
145
- * @param {ConsoleResourceType} type - Resource type.
146
- * @throws {AppwriteException}
147
- * @returns {Promise<{}>}
148
- * @deprecated Use the object parameter style method for a better developer experience.
149
- */
150
- getResource(value: string, type: ConsoleResourceType): Promise<{}>;
151
- /**
152
- * Create a new source.
153
- *
154
- * @param {string} params.ref - Ref param
155
- * @param {string} params.referrer - Referrer
156
- * @param {string} params.utmSource - Utm source
157
- * @param {string} params.utmCampaign - Utm campaign
158
- * @param {string} params.utmMedium - Utm medium
159
- * @throws {AppwriteException}
160
- * @returns {Promise<{}>}
161
- */
162
- createSource(params?: {
163
- ref?: string;
164
- referrer?: string;
165
- utmSource?: string;
166
- utmCampaign?: string;
167
- utmMedium?: string;
168
- }): Promise<{}>;
169
- /**
170
- * Create a new source.
171
- *
172
- * @param {string} ref - Ref param
173
- * @param {string} referrer - Referrer
174
- * @param {string} utmSource - Utm source
175
- * @param {string} utmCampaign - Utm campaign
176
- * @param {string} utmMedium - Utm medium
177
- * @throws {AppwriteException}
178
- * @returns {Promise<{}>}
179
- * @deprecated Use the object parameter style method for a better developer experience.
180
- */
181
- createSource(ref?: string, referrer?: string, utmSource?: string, utmCampaign?: string, utmMedium?: string): Promise<{}>;
182
- /**
183
- * Suggests column names and their size limits based on the provided table name. The API will also analyze other tables in the same database to provide context-aware suggestions, ensuring consistency across schema design. Users may optionally provide custom context to further refine the suggestions.
184
- *
185
- * @param {string} params.databaseId - Database ID.
186
- * @param {string} params.tableId - Table ID.
187
- * @param {string} params.context - Optional user provided context to refine suggestions.
188
- * @param {number} params.min - Minimum number of suggestions to generate.
189
- * @param {number} params.max - Maximum number of suggestions to generate.
190
- * @throws {AppwriteException}
191
- * @returns {Promise<Models.ColumnList>}
192
- */
193
- suggestColumns(params: {
194
- databaseId: string;
195
- tableId: string;
196
- context?: string;
197
- min?: number;
198
- max?: number;
199
- }): Promise<Models.ColumnList>;
200
- /**
201
- * Suggests column names and their size limits based on the provided table name. The API will also analyze other tables in the same database to provide context-aware suggestions, ensuring consistency across schema design. Users may optionally provide custom context to further refine the suggestions.
202
- *
203
- * @param {string} databaseId - Database ID.
204
- * @param {string} tableId - Table ID.
205
- * @param {string} context - Optional user provided context to refine suggestions.
206
- * @param {number} min - Minimum number of suggestions to generate.
207
- * @param {number} max - Maximum number of suggestions to generate.
208
- * @throws {AppwriteException}
209
- * @returns {Promise<Models.ColumnList>}
210
- * @deprecated Use the object parameter style method for a better developer experience.
211
- */
212
- suggestColumns(databaseId: string, tableId: string, context?: string, min?: number, max?: number): Promise<Models.ColumnList>;
213
- /**
214
- * Suggests database indexes for table columns based on the provided table structure and existing columns. The API will also analyze the table's column types, names, and patterns to recommend optimal indexes that improve query performance for common database operations like filtering, sorting, and searching.
215
- *
216
- * @param {string} params.databaseId - Database ID.
217
- * @param {string} params.tableId - Table ID.
218
- * @param {number} params.min - Minimum number of suggestions to generate.
219
- * @param {number} params.max - Maximum number of suggestions to generate.
220
- * @throws {AppwriteException}
221
- * @returns {Promise<Models.ColumnIndexList>}
222
- */
223
- suggestIndexes(params: {
224
- databaseId: string;
225
- tableId: string;
226
- min?: number;
227
- max?: number;
228
- }): Promise<Models.ColumnIndexList>;
229
- /**
230
- * Suggests database indexes for table columns based on the provided table structure and existing columns. The API will also analyze the table's column types, names, and patterns to recommend optimal indexes that improve query performance for common database operations like filtering, sorting, and searching.
231
- *
232
- * @param {string} databaseId - Database ID.
233
- * @param {string} tableId - Table ID.
234
- * @param {number} min - Minimum number of suggestions to generate.
235
- * @param {number} max - Maximum number of suggestions to generate.
236
- * @throws {AppwriteException}
237
- * @returns {Promise<Models.ColumnIndexList>}
238
- * @deprecated Use the object parameter style method for a better developer experience.
239
- */
240
- suggestIndexes(databaseId: string, tableId: string, min?: number, max?: number): Promise<Models.ColumnIndexList>;
241
- /**
242
- * Get all Environment Variables that are relevant for the console.
243
- *
244
- * @throws {AppwriteException}
245
- * @returns {Promise<Models.ConsoleVariables>}
246
- */
247
- variables(): Promise<Models.ConsoleVariables>;
248
- }