appbuild-oceanbase-console 1.12.2 → 1.13.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 (53) hide show
  1. package/dist/cjs/package.json +3 -0
  2. package/dist/cjs/sdk.js +3837 -1017
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/package.json +3 -0
  5. package/dist/esm/sdk.js +3831 -1018
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +10131 -3554
  8. package/package.json +7 -2
  9. package/types/channel.d.ts +74 -0
  10. package/types/client.d.ts +84 -16
  11. package/types/enums/appwrite-migration-resource.d.ts +25 -0
  12. package/types/enums/backup-services.d.ts +5 -0
  13. package/types/enums/billing-plan-group.d.ts +5 -0
  14. package/types/enums/browser-permission.d.ts +22 -0
  15. package/types/enums/domain-purchase-status.d.ts +6 -0
  16. package/types/enums/domain-transfer-status-enum.d.ts +10 -0
  17. package/types/enums/filter-type.d.ts +4 -0
  18. package/types/enums/firebase-migration-resource.d.ts +12 -0
  19. package/types/enums/frameworks.d.ts +17 -0
  20. package/types/enums/n-host-migration-resource.d.ts +13 -0
  21. package/types/enums/order-by.d.ts +4 -0
  22. package/types/enums/registration-type.d.ts +6 -0
  23. package/types/enums/resource-type.d.ts +6 -0
  24. package/types/enums/runtimes.d.ts +180 -0
  25. package/types/enums/scopes.d.ts +70 -0
  26. package/types/enums/supabase-migration-resource.d.ts +13 -0
  27. package/types/enums/template-reference-type.d.ts +5 -0
  28. package/types/enums/use-cases.d.ts +11 -0
  29. package/types/enums/vcs-reference-type.d.ts +5 -0
  30. package/types/index.d.ts +119 -96
  31. package/types/migrations.d.ts +10 -9
  32. package/types/models.d.ts +1270 -136
  33. package/types/query.d.ts +60 -8
  34. package/types/services/account.d.ts +162 -39
  35. package/types/services/activities.d.ts +46 -0
  36. package/types/services/avatars.d.ts +9 -8
  37. package/types/services/backups.d.ts +13 -12
  38. package/types/services/console.d.ts +41 -3
  39. package/types/services/databases.d.ts +384 -68
  40. package/types/services/domains.d.ts +223 -0
  41. package/types/services/functions.d.ts +46 -31
  42. package/types/services/health.d.ts +49 -6
  43. package/types/services/messaging.d.ts +2 -2
  44. package/types/services/organizations.d.ts +203 -36
  45. package/types/services/projects.d.ts +151 -210
  46. package/types/services/realtime.d.ts +26 -10
  47. package/types/services/sites.d.ts +49 -29
  48. package/types/services/storage.d.ts +12 -12
  49. package/types/services/tables-db.d.ts +352 -34
  50. package/types/services/teams.d.ts +4 -4
  51. package/types/services/users.d.ts +26 -2
  52. package/types/services/vcs.d.ts +4 -1
  53. package/types/services/webhooks.d.ts +165 -0
@@ -10,7 +10,7 @@ export declare class Users {
10
10
  /**
11
11
  * Get a list of all the project's users. You can use the query params to filter your results.
12
12
  *
13
- * @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. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels
13
+ * @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. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels, impersonator
14
14
  * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
15
15
  * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
16
16
  * @throws {AppwriteException}
@@ -24,7 +24,7 @@ export declare class Users {
24
24
  /**
25
25
  * Get a list of all the project's users. You can use the query params to filter your results.
26
26
  *
27
- * @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. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels
27
+ * @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. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels, impersonator
28
28
  * @param {string} search - Search term to filter your list results. Max length: 256 chars.
29
29
  * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
30
30
  * @throws {AppwriteException}
@@ -411,6 +411,30 @@ export declare class Users {
411
411
  * @deprecated Use the object parameter style method for a better developer experience.
412
412
  */
413
413
  updateEmail<Preferences extends Models.Preferences = Models.DefaultPreferences>(userId: string, email: string): Promise<Models.User<Preferences>>;
414
+ /**
415
+ * Enable or disable whether a user can impersonate other users. When impersonation headers are used, the request runs as the target user for API behavior, while internal audit logs still attribute the action to the original impersonator and store the impersonated target details only in internal audit payload data.
416
+ *
417
+ *
418
+ * @param {string} params.userId - User ID.
419
+ * @param {boolean} params.impersonator - Whether the user can impersonate other users. When true, the user can browse project users to choose a target and can pass impersonation headers to act as that user. Internal audit logs still attribute impersonated actions to the original impersonator and store the target user details only in internal audit payload data.
420
+ * @throws {AppwriteException}
421
+ * @returns {Promise<Models.User<Preferences>>}
422
+ */
423
+ updateImpersonator<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
424
+ userId: string;
425
+ impersonator: boolean;
426
+ }): Promise<Models.User<Preferences>>;
427
+ /**
428
+ * Enable or disable whether a user can impersonate other users. When impersonation headers are used, the request runs as the target user for API behavior, while internal audit logs still attribute the action to the original impersonator and store the impersonated target details only in internal audit payload data.
429
+ *
430
+ *
431
+ * @param {string} userId - User ID.
432
+ * @param {boolean} impersonator - Whether the user can impersonate other users. When true, the user can browse project users to choose a target and can pass impersonation headers to act as that user. Internal audit logs still attribute impersonated actions to the original impersonator and store the target user details only in internal audit payload data.
433
+ * @throws {AppwriteException}
434
+ * @returns {Promise<Models.User<Preferences>>}
435
+ * @deprecated Use the object parameter style method for a better developer experience.
436
+ */
437
+ updateImpersonator<Preferences extends Models.Preferences = Models.DefaultPreferences>(userId: string, impersonator: boolean): Promise<Models.User<Preferences>>;
414
438
  /**
415
439
  * Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.
416
440
  *
@@ -38,6 +38,7 @@ export declare class Vcs {
38
38
  * @param {string} params.installationId - Installation Id
39
39
  * @param {VCSDetectionType} params.type - Detector type. Must be one of the following: runtime, framework
40
40
  * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
41
+ * @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). Only supported methods are limit and offset
41
42
  * @throws {AppwriteException}
42
43
  * @returns {Promise<Models.ProviderRepositoryFrameworkList>}
43
44
  */
@@ -45,6 +46,7 @@ export declare class Vcs {
45
46
  installationId: string;
46
47
  type: VCSDetectionType;
47
48
  search?: string;
49
+ queries?: string[];
48
50
  }): Promise<Models.ProviderRepositoryFrameworkList>;
49
51
  /**
50
52
  * Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.
@@ -52,11 +54,12 @@ export declare class Vcs {
52
54
  * @param {string} installationId - Installation Id
53
55
  * @param {VCSDetectionType} type - Detector type. Must be one of the following: runtime, framework
54
56
  * @param {string} search - Search term to filter your list results. Max length: 256 chars.
57
+ * @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). Only supported methods are limit and offset
55
58
  * @throws {AppwriteException}
56
59
  * @returns {Promise<Models.ProviderRepositoryFrameworkList>}
57
60
  * @deprecated Use the object parameter style method for a better developer experience.
58
61
  */
59
- listRepositories(installationId: string, type: VCSDetectionType, search?: string): Promise<Models.ProviderRepositoryFrameworkList>;
62
+ listRepositories(installationId: string, type: VCSDetectionType, search?: string, queries?: string[]): Promise<Models.ProviderRepositoryFrameworkList>;
60
63
  /**
61
64
  * Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation.
62
65
  *
@@ -0,0 +1,165 @@
1
+ import { Client } from '../client';
2
+ import type { Models } from '../models';
3
+ export declare class Webhooks {
4
+ client: Client;
5
+ constructor(client: Client);
6
+ /**
7
+ * Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
8
+ *
9
+ * @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. You may filter on the following attributes: name, url, httpUser, security, events, enabled, logs, attempts
10
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
11
+ * @throws {AppwriteException}
12
+ * @returns {Promise<Models.WebhookList>}
13
+ */
14
+ list(params?: {
15
+ queries?: string[];
16
+ total?: boolean;
17
+ }): Promise<Models.WebhookList>;
18
+ /**
19
+ * Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
20
+ *
21
+ * @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. You may filter on the following attributes: name, url, httpUser, security, events, enabled, logs, attempts
22
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
23
+ * @throws {AppwriteException}
24
+ * @returns {Promise<Models.WebhookList>}
25
+ * @deprecated Use the object parameter style method for a better developer experience.
26
+ */
27
+ list(queries?: string[], total?: boolean): Promise<Models.WebhookList>;
28
+ /**
29
+ * Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
30
+ *
31
+ * @param {string} params.webhookId - Webhook 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.
32
+ * @param {string} params.url - Webhook URL.
33
+ * @param {string} params.name - Webhook name. Max length: 128 chars.
34
+ * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
35
+ * @param {boolean} params.enabled - Enable or disable a webhook.
36
+ * @param {boolean} params.security - Certificate verification, false for disabled or true for enabled.
37
+ * @param {string} params.httpUser - Webhook HTTP user. Max length: 256 chars.
38
+ * @param {string} params.httpPass - Webhook HTTP password. Max length: 256 chars.
39
+ * @throws {AppwriteException}
40
+ * @returns {Promise<Models.Webhook>}
41
+ */
42
+ create(params: {
43
+ webhookId: string;
44
+ url: string;
45
+ name: string;
46
+ events: string[];
47
+ enabled?: boolean;
48
+ security?: boolean;
49
+ httpUser?: string;
50
+ httpPass?: string;
51
+ }): Promise<Models.Webhook>;
52
+ /**
53
+ * Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
54
+ *
55
+ * @param {string} webhookId - Webhook 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.
56
+ * @param {string} url - Webhook URL.
57
+ * @param {string} name - Webhook name. Max length: 128 chars.
58
+ * @param {string[]} events - Events list. Maximum of 100 events are allowed.
59
+ * @param {boolean} enabled - Enable or disable a webhook.
60
+ * @param {boolean} security - Certificate verification, false for disabled or true for enabled.
61
+ * @param {string} httpUser - Webhook HTTP user. Max length: 256 chars.
62
+ * @param {string} httpPass - Webhook HTTP password. Max length: 256 chars.
63
+ * @throws {AppwriteException}
64
+ * @returns {Promise<Models.Webhook>}
65
+ * @deprecated Use the object parameter style method for a better developer experience.
66
+ */
67
+ create(webhookId: string, url: string, name: string, events: string[], enabled?: boolean, security?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
68
+ /**
69
+ * Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
70
+ *
71
+ * @param {string} params.webhookId - Webhook ID.
72
+ * @throws {AppwriteException}
73
+ * @returns {Promise<Models.Webhook>}
74
+ */
75
+ get(params: {
76
+ webhookId: string;
77
+ }): Promise<Models.Webhook>;
78
+ /**
79
+ * Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
80
+ *
81
+ * @param {string} webhookId - Webhook ID.
82
+ * @throws {AppwriteException}
83
+ * @returns {Promise<Models.Webhook>}
84
+ * @deprecated Use the object parameter style method for a better developer experience.
85
+ */
86
+ get(webhookId: string): Promise<Models.Webhook>;
87
+ /**
88
+ * Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
89
+ *
90
+ * @param {string} params.webhookId - Webhook ID.
91
+ * @param {string} params.name - Webhook name. Max length: 128 chars.
92
+ * @param {string} params.url - Webhook URL.
93
+ * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
94
+ * @param {boolean} params.enabled - Enable or disable a webhook.
95
+ * @param {boolean} params.security - Certificate verification, false for disabled or true for enabled.
96
+ * @param {string} params.httpUser - Webhook HTTP user. Max length: 256 chars.
97
+ * @param {string} params.httpPass - Webhook HTTP password. Max length: 256 chars.
98
+ * @throws {AppwriteException}
99
+ * @returns {Promise<Models.Webhook>}
100
+ */
101
+ update(params: {
102
+ webhookId: string;
103
+ name: string;
104
+ url: string;
105
+ events: string[];
106
+ enabled?: boolean;
107
+ security?: boolean;
108
+ httpUser?: string;
109
+ httpPass?: string;
110
+ }): Promise<Models.Webhook>;
111
+ /**
112
+ * Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
113
+ *
114
+ * @param {string} webhookId - Webhook ID.
115
+ * @param {string} name - Webhook name. Max length: 128 chars.
116
+ * @param {string} url - Webhook URL.
117
+ * @param {string[]} events - Events list. Maximum of 100 events are allowed.
118
+ * @param {boolean} enabled - Enable or disable a webhook.
119
+ * @param {boolean} security - Certificate verification, false for disabled or true for enabled.
120
+ * @param {string} httpUser - Webhook HTTP user. Max length: 256 chars.
121
+ * @param {string} httpPass - Webhook HTTP password. Max length: 256 chars.
122
+ * @throws {AppwriteException}
123
+ * @returns {Promise<Models.Webhook>}
124
+ * @deprecated Use the object parameter style method for a better developer experience.
125
+ */
126
+ update(webhookId: string, name: string, url: string, events: string[], enabled?: boolean, security?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
127
+ /**
128
+ * Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
129
+ *
130
+ * @param {string} params.webhookId - Webhook ID.
131
+ * @throws {AppwriteException}
132
+ * @returns {Promise<{}>}
133
+ */
134
+ delete(params: {
135
+ webhookId: string;
136
+ }): Promise<{}>;
137
+ /**
138
+ * Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
139
+ *
140
+ * @param {string} webhookId - Webhook ID.
141
+ * @throws {AppwriteException}
142
+ * @returns {Promise<{}>}
143
+ * @deprecated Use the object parameter style method for a better developer experience.
144
+ */
145
+ delete(webhookId: string): Promise<{}>;
146
+ /**
147
+ * Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook.
148
+ *
149
+ * @param {string} params.webhookId - Webhook ID.
150
+ * @throws {AppwriteException}
151
+ * @returns {Promise<Models.Webhook>}
152
+ */
153
+ updateSignature(params: {
154
+ webhookId: string;
155
+ }): Promise<Models.Webhook>;
156
+ /**
157
+ * Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook.
158
+ *
159
+ * @param {string} webhookId - Webhook ID.
160
+ * @throws {AppwriteException}
161
+ * @returns {Promise<Models.Webhook>}
162
+ * @deprecated Use the object parameter style method for a better developer experience.
163
+ */
164
+ updateSignature(webhookId: string): Promise<Models.Webhook>;
165
+ }