@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,252 +0,0 @@
1
- import { Client } from '../client';
2
- import type { Models } from '../models';
3
- import { VCSDetectionType } from '../enums/vcs-detection-type';
4
- export declare class Vcs {
5
- client: Client;
6
- constructor(client: Client);
7
- /**
8
- * Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
9
- *
10
- * @param {string} params.installationId - Installation Id
11
- * @param {string} params.providerRepositoryId - Repository Id
12
- * @param {VCSDetectionType} params.type - Detector type. Must be one of the following: runtime, framework
13
- * @param {string} params.providerRootDirectory - Path to Root Directory
14
- * @throws {AppwriteException}
15
- * @returns {Promise<Models.DetectionFramework>}
16
- */
17
- createRepositoryDetection(params: {
18
- installationId: string;
19
- providerRepositoryId: string;
20
- type: VCSDetectionType;
21
- providerRootDirectory?: string;
22
- }): Promise<Models.DetectionFramework>;
23
- /**
24
- * Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
25
- *
26
- * @param {string} installationId - Installation Id
27
- * @param {string} providerRepositoryId - Repository Id
28
- * @param {VCSDetectionType} type - Detector type. Must be one of the following: runtime, framework
29
- * @param {string} providerRootDirectory - Path to Root Directory
30
- * @throws {AppwriteException}
31
- * @returns {Promise<Models.DetectionFramework>}
32
- * @deprecated Use the object parameter style method for a better developer experience.
33
- */
34
- createRepositoryDetection(installationId: string, providerRepositoryId: string, type: VCSDetectionType, providerRootDirectory?: string): Promise<Models.DetectionFramework>;
35
- /**
36
- * 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.
37
- *
38
- * @param {string} params.installationId - Installation Id
39
- * @param {VCSDetectionType} params.type - Detector type. Must be one of the following: runtime, framework
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
42
- * @throws {AppwriteException}
43
- * @returns {Promise<Models.ProviderRepositoryFrameworkList>}
44
- */
45
- listRepositories(params: {
46
- installationId: string;
47
- type: VCSDetectionType;
48
- search?: string;
49
- queries?: string[];
50
- }): Promise<Models.ProviderRepositoryFrameworkList>;
51
- /**
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.
53
- *
54
- * @param {string} installationId - Installation Id
55
- * @param {VCSDetectionType} type - Detector type. Must be one of the following: runtime, framework
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
58
- * @throws {AppwriteException}
59
- * @returns {Promise<Models.ProviderRepositoryFrameworkList>}
60
- * @deprecated Use the object parameter style method for a better developer experience.
61
- */
62
- listRepositories(installationId: string, type: VCSDetectionType, search?: string, queries?: string[]): Promise<Models.ProviderRepositoryFrameworkList>;
63
- /**
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.
65
- *
66
- * @param {string} params.installationId - Installation Id
67
- * @param {string} params.name - Repository name (slug)
68
- * @param {boolean} params.xprivate - Mark repository public or private
69
- * @throws {AppwriteException}
70
- * @returns {Promise<Models.ProviderRepository>}
71
- */
72
- createRepository(params: {
73
- installationId: string;
74
- name: string;
75
- xprivate: boolean;
76
- }): Promise<Models.ProviderRepository>;
77
- /**
78
- * 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.
79
- *
80
- * @param {string} installationId - Installation Id
81
- * @param {string} name - Repository name (slug)
82
- * @param {boolean} xprivate - Mark repository public or private
83
- * @throws {AppwriteException}
84
- * @returns {Promise<Models.ProviderRepository>}
85
- * @deprecated Use the object parameter style method for a better developer experience.
86
- */
87
- createRepository(installationId: string, name: string, xprivate: boolean): Promise<Models.ProviderRepository>;
88
- /**
89
- * Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
90
- *
91
- * @param {string} params.installationId - Installation Id
92
- * @param {string} params.providerRepositoryId - Repository Id
93
- * @throws {AppwriteException}
94
- * @returns {Promise<Models.ProviderRepository>}
95
- */
96
- getRepository(params: {
97
- installationId: string;
98
- providerRepositoryId: string;
99
- }): Promise<Models.ProviderRepository>;
100
- /**
101
- * Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
102
- *
103
- * @param {string} installationId - Installation Id
104
- * @param {string} providerRepositoryId - Repository Id
105
- * @throws {AppwriteException}
106
- * @returns {Promise<Models.ProviderRepository>}
107
- * @deprecated Use the object parameter style method for a better developer experience.
108
- */
109
- getRepository(installationId: string, providerRepositoryId: string): Promise<Models.ProviderRepository>;
110
- /**
111
- * Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
112
- *
113
- *
114
- * @param {string} params.installationId - Installation Id
115
- * @param {string} params.providerRepositoryId - Repository Id
116
- * @throws {AppwriteException}
117
- * @returns {Promise<Models.BranchList>}
118
- */
119
- listRepositoryBranches(params: {
120
- installationId: string;
121
- providerRepositoryId: string;
122
- }): Promise<Models.BranchList>;
123
- /**
124
- * Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
125
- *
126
- *
127
- * @param {string} installationId - Installation Id
128
- * @param {string} providerRepositoryId - Repository Id
129
- * @throws {AppwriteException}
130
- * @returns {Promise<Models.BranchList>}
131
- * @deprecated Use the object parameter style method for a better developer experience.
132
- */
133
- listRepositoryBranches(installationId: string, providerRepositoryId: string): Promise<Models.BranchList>;
134
- /**
135
- * Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
136
- *
137
- * @param {string} params.installationId - Installation Id
138
- * @param {string} params.providerRepositoryId - Repository Id
139
- * @param {string} params.providerRootDirectory - Path to get contents of nested directory
140
- * @param {string} params.providerReference - Git reference (branch, tag, commit) to get contents from
141
- * @throws {AppwriteException}
142
- * @returns {Promise<Models.VcsContentList>}
143
- */
144
- getRepositoryContents(params: {
145
- installationId: string;
146
- providerRepositoryId: string;
147
- providerRootDirectory?: string;
148
- providerReference?: string;
149
- }): Promise<Models.VcsContentList>;
150
- /**
151
- * Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
152
- *
153
- * @param {string} installationId - Installation Id
154
- * @param {string} providerRepositoryId - Repository Id
155
- * @param {string} providerRootDirectory - Path to get contents of nested directory
156
- * @param {string} providerReference - Git reference (branch, tag, commit) to get contents from
157
- * @throws {AppwriteException}
158
- * @returns {Promise<Models.VcsContentList>}
159
- * @deprecated Use the object parameter style method for a better developer experience.
160
- */
161
- getRepositoryContents(installationId: string, providerRepositoryId: string, providerRootDirectory?: string, providerReference?: string): Promise<Models.VcsContentList>;
162
- /**
163
- * Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work.
164
- *
165
- * @param {string} params.installationId - Installation Id
166
- * @param {string} params.repositoryId - VCS Repository Id
167
- * @param {string} params.providerPullRequestId - GitHub Pull Request Id
168
- * @throws {AppwriteException}
169
- * @returns {Promise<{}>}
170
- */
171
- updateExternalDeployments(params: {
172
- installationId: string;
173
- repositoryId: string;
174
- providerPullRequestId: string;
175
- }): Promise<{}>;
176
- /**
177
- * Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work.
178
- *
179
- * @param {string} installationId - Installation Id
180
- * @param {string} repositoryId - VCS Repository Id
181
- * @param {string} providerPullRequestId - GitHub Pull Request Id
182
- * @throws {AppwriteException}
183
- * @returns {Promise<{}>}
184
- * @deprecated Use the object parameter style method for a better developer experience.
185
- */
186
- updateExternalDeployments(installationId: string, repositoryId: string, providerPullRequestId: string): Promise<{}>;
187
- /**
188
- * List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
189
- *
190
- *
191
- * @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: provider, organization
192
- * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
193
- * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
194
- * @throws {AppwriteException}
195
- * @returns {Promise<Models.InstallationList>}
196
- */
197
- listInstallations(params?: {
198
- queries?: string[];
199
- search?: string;
200
- total?: boolean;
201
- }): Promise<Models.InstallationList>;
202
- /**
203
- * List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
204
- *
205
- *
206
- * @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: provider, organization
207
- * @param {string} search - Search term to filter your list results. Max length: 256 chars.
208
- * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
209
- * @throws {AppwriteException}
210
- * @returns {Promise<Models.InstallationList>}
211
- * @deprecated Use the object parameter style method for a better developer experience.
212
- */
213
- listInstallations(queries?: string[], search?: string, total?: boolean): Promise<Models.InstallationList>;
214
- /**
215
- * Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration.
216
- *
217
- * @param {string} params.installationId - Installation Id
218
- * @throws {AppwriteException}
219
- * @returns {Promise<Models.Installation>}
220
- */
221
- getInstallation(params: {
222
- installationId: string;
223
- }): Promise<Models.Installation>;
224
- /**
225
- * Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration.
226
- *
227
- * @param {string} installationId - Installation Id
228
- * @throws {AppwriteException}
229
- * @returns {Promise<Models.Installation>}
230
- * @deprecated Use the object parameter style method for a better developer experience.
231
- */
232
- getInstallation(installationId: string): Promise<Models.Installation>;
233
- /**
234
- * Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.
235
- *
236
- * @param {string} params.installationId - Installation Id
237
- * @throws {AppwriteException}
238
- * @returns {Promise<{}>}
239
- */
240
- deleteInstallation(params: {
241
- installationId: string;
242
- }): Promise<{}>;
243
- /**
244
- * Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.
245
- *
246
- * @param {string} installationId - Installation Id
247
- * @throws {AppwriteException}
248
- * @returns {Promise<{}>}
249
- * @deprecated Use the object parameter style method for a better developer experience.
250
- */
251
- deleteInstallation(installationId: string): Promise<{}>;
252
- }
@@ -1,165 +0,0 @@
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
- }