appbuild-oceanbase-console 1.10.2

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 (105) hide show
  1. package/LICENSE +12 -0
  2. package/README.md +191 -0
  3. package/dist/cjs/package.json +3 -0
  4. package/dist/cjs/sdk.js +27712 -0
  5. package/dist/cjs/sdk.js.map +1 -0
  6. package/dist/esm/package.json +3 -0
  7. package/dist/esm/sdk.js +27675 -0
  8. package/dist/esm/sdk.js.map +1 -0
  9. package/dist/iife/sdk.js +27716 -0
  10. package/package.json +47 -0
  11. package/types/client.d.ts +211 -0
  12. package/types/enums/adapter.d.ts +4 -0
  13. package/types/enums/api-service.d.ts +15 -0
  14. package/types/enums/api.d.ts +5 -0
  15. package/types/enums/attribute-status.d.ts +7 -0
  16. package/types/enums/auth-method.d.ts +9 -0
  17. package/types/enums/authentication-factor.d.ts +6 -0
  18. package/types/enums/authenticator-type.d.ts +3 -0
  19. package/types/enums/billing-plan.d.ts +10 -0
  20. package/types/enums/browser.d.ts +16 -0
  21. package/types/enums/build-runtime.d.ts +66 -0
  22. package/types/enums/column-status.d.ts +7 -0
  23. package/types/enums/compression.d.ts +5 -0
  24. package/types/enums/console-resource-type.d.ts +3 -0
  25. package/types/enums/credit-card.d.ts +19 -0
  26. package/types/enums/database-type.d.ts +4 -0
  27. package/types/enums/deployment-download-type.d.ts +4 -0
  28. package/types/enums/deployment-status.d.ts +7 -0
  29. package/types/enums/email-template-locale.d.ts +133 -0
  30. package/types/enums/email-template-type.d.ts +9 -0
  31. package/types/enums/execution-method.d.ts +9 -0
  32. package/types/enums/execution-status.d.ts +7 -0
  33. package/types/enums/execution-trigger.d.ts +5 -0
  34. package/types/enums/flag.d.ts +197 -0
  35. package/types/enums/framework.d.ts +17 -0
  36. package/types/enums/health-antivirus-status.d.ts +5 -0
  37. package/types/enums/health-check-status.d.ts +4 -0
  38. package/types/enums/image-format.d.ts +9 -0
  39. package/types/enums/image-gravity.d.ts +11 -0
  40. package/types/enums/index-status.d.ts +7 -0
  41. package/types/enums/index-type.d.ts +6 -0
  42. package/types/enums/message-priority.d.ts +4 -0
  43. package/types/enums/message-status.d.ts +7 -0
  44. package/types/enums/messaging-provider-type.d.ts +5 -0
  45. package/types/enums/name.d.ts +14 -0
  46. package/types/enums/o-auth-provider.d.ts +43 -0
  47. package/types/enums/output.d.ts +9 -0
  48. package/types/enums/password-hash.d.ts +13 -0
  49. package/types/enums/platform-type.d.ts +17 -0
  50. package/types/enums/platform.d.ts +4 -0
  51. package/types/enums/project-usage-range.d.ts +4 -0
  52. package/types/enums/proxy-resource-type.d.ts +4 -0
  53. package/types/enums/proxy-rule-deployment-resource-type.d.ts +4 -0
  54. package/types/enums/proxy-rule-status.d.ts +6 -0
  55. package/types/enums/region.d.ts +8 -0
  56. package/types/enums/relation-mutate.d.ts +5 -0
  57. package/types/enums/relationship-type.d.ts +6 -0
  58. package/types/enums/runtime.d.ts +66 -0
  59. package/types/enums/sms-template-locale.d.ts +133 -0
  60. package/types/enums/sms-template-type.d.ts +6 -0
  61. package/types/enums/smtp-encryption.d.ts +5 -0
  62. package/types/enums/smtp-secure.d.ts +4 -0
  63. package/types/enums/status-code.d.ts +6 -0
  64. package/types/enums/status.d.ts +4 -0
  65. package/types/enums/theme.d.ts +4 -0
  66. package/types/enums/timezone.d.ts +421 -0
  67. package/types/enums/type.d.ts +5 -0
  68. package/types/enums/usage-range.d.ts +5 -0
  69. package/types/enums/vcs-deployment-type.d.ts +5 -0
  70. package/types/enums/vcs-detection-type.d.ts +4 -0
  71. package/types/id.d.ts +20 -0
  72. package/types/index.d.ts +102 -0
  73. package/types/migrations.d.ts +240 -0
  74. package/types/models.d.ts +7945 -0
  75. package/types/operator.d.ts +180 -0
  76. package/types/permission.d.ts +43 -0
  77. package/types/query.d.ts +390 -0
  78. package/types/role.d.ts +70 -0
  79. package/types/sdk.d.ts +108 -0
  80. package/types/service.d.ts +11 -0
  81. package/types/services/account.d.ts +1413 -0
  82. package/types/services/assistant.d.ts +24 -0
  83. package/types/services/avatars.d.ts +319 -0
  84. package/types/services/backups.d.ts +276 -0
  85. package/types/services/console.d.ts +210 -0
  86. package/types/services/databases.d.ts +2119 -0
  87. package/types/services/domains.d.ts +1276 -0
  88. package/types/services/functions.d.ts +827 -0
  89. package/types/services/graphql.d.ts +43 -0
  90. package/types/services/health.d.ts +432 -0
  91. package/types/services/locale.d.ts +64 -0
  92. package/types/services/messaging.d.ts +1989 -0
  93. package/types/services/migrations.d.ts +413 -0
  94. package/types/services/organizations.d.ts +842 -0
  95. package/types/services/project.d.ts +130 -0
  96. package/types/services/projects.d.ts +1663 -0
  97. package/types/services/proxy.d.ts +190 -0
  98. package/types/services/realtime.d.ts +118 -0
  99. package/types/services/sites.d.ts +780 -0
  100. package/types/services/storage.d.ts +467 -0
  101. package/types/services/tables-db.d.ts +2034 -0
  102. package/types/services/teams.d.ts +366 -0
  103. package/types/services/tokens.d.ts +119 -0
  104. package/types/services/users.d.ts +1184 -0
  105. package/types/services/vcs.d.ts +249 -0
@@ -0,0 +1,249 @@
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
+ * @throws {AppwriteException}
42
+ * @returns {Promise<Models.ProviderRepositoryFrameworkList>}
43
+ */
44
+ listRepositories(params: {
45
+ installationId: string;
46
+ type: VCSDetectionType;
47
+ search?: string;
48
+ }): Promise<Models.ProviderRepositoryFrameworkList>;
49
+ /**
50
+ * 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.
51
+ *
52
+ * @param {string} installationId - Installation Id
53
+ * @param {VCSDetectionType} type - Detector type. Must be one of the following: runtime, framework
54
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
55
+ * @throws {AppwriteException}
56
+ * @returns {Promise<Models.ProviderRepositoryFrameworkList>}
57
+ * @deprecated Use the object parameter style method for a better developer experience.
58
+ */
59
+ listRepositories(installationId: string, type: VCSDetectionType, search?: string): Promise<Models.ProviderRepositoryFrameworkList>;
60
+ /**
61
+ * 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
+ *
63
+ * @param {string} params.installationId - Installation Id
64
+ * @param {string} params.name - Repository name (slug)
65
+ * @param {boolean} params.xprivate - Mark repository public or private
66
+ * @throws {AppwriteException}
67
+ * @returns {Promise<Models.ProviderRepository>}
68
+ */
69
+ createRepository(params: {
70
+ installationId: string;
71
+ name: string;
72
+ xprivate: boolean;
73
+ }): Promise<Models.ProviderRepository>;
74
+ /**
75
+ * 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.
76
+ *
77
+ * @param {string} installationId - Installation Id
78
+ * @param {string} name - Repository name (slug)
79
+ * @param {boolean} xprivate - Mark repository public or private
80
+ * @throws {AppwriteException}
81
+ * @returns {Promise<Models.ProviderRepository>}
82
+ * @deprecated Use the object parameter style method for a better developer experience.
83
+ */
84
+ createRepository(installationId: string, name: string, xprivate: boolean): Promise<Models.ProviderRepository>;
85
+ /**
86
+ * 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.
87
+ *
88
+ * @param {string} params.installationId - Installation Id
89
+ * @param {string} params.providerRepositoryId - Repository Id
90
+ * @throws {AppwriteException}
91
+ * @returns {Promise<Models.ProviderRepository>}
92
+ */
93
+ getRepository(params: {
94
+ installationId: string;
95
+ providerRepositoryId: string;
96
+ }): Promise<Models.ProviderRepository>;
97
+ /**
98
+ * 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.
99
+ *
100
+ * @param {string} installationId - Installation Id
101
+ * @param {string} providerRepositoryId - Repository Id
102
+ * @throws {AppwriteException}
103
+ * @returns {Promise<Models.ProviderRepository>}
104
+ * @deprecated Use the object parameter style method for a better developer experience.
105
+ */
106
+ getRepository(installationId: string, providerRepositoryId: string): Promise<Models.ProviderRepository>;
107
+ /**
108
+ * 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.
109
+ *
110
+ *
111
+ * @param {string} params.installationId - Installation Id
112
+ * @param {string} params.providerRepositoryId - Repository Id
113
+ * @throws {AppwriteException}
114
+ * @returns {Promise<Models.BranchList>}
115
+ */
116
+ listRepositoryBranches(params: {
117
+ installationId: string;
118
+ providerRepositoryId: string;
119
+ }): Promise<Models.BranchList>;
120
+ /**
121
+ * 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.
122
+ *
123
+ *
124
+ * @param {string} installationId - Installation Id
125
+ * @param {string} providerRepositoryId - Repository Id
126
+ * @throws {AppwriteException}
127
+ * @returns {Promise<Models.BranchList>}
128
+ * @deprecated Use the object parameter style method for a better developer experience.
129
+ */
130
+ listRepositoryBranches(installationId: string, providerRepositoryId: string): Promise<Models.BranchList>;
131
+ /**
132
+ * 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.
133
+ *
134
+ * @param {string} params.installationId - Installation Id
135
+ * @param {string} params.providerRepositoryId - Repository Id
136
+ * @param {string} params.providerRootDirectory - Path to get contents of nested directory
137
+ * @param {string} params.providerReference - Git reference (branch, tag, commit) to get contents from
138
+ * @throws {AppwriteException}
139
+ * @returns {Promise<Models.VcsContentList>}
140
+ */
141
+ getRepositoryContents(params: {
142
+ installationId: string;
143
+ providerRepositoryId: string;
144
+ providerRootDirectory?: string;
145
+ providerReference?: string;
146
+ }): Promise<Models.VcsContentList>;
147
+ /**
148
+ * 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.
149
+ *
150
+ * @param {string} installationId - Installation Id
151
+ * @param {string} providerRepositoryId - Repository Id
152
+ * @param {string} providerRootDirectory - Path to get contents of nested directory
153
+ * @param {string} providerReference - Git reference (branch, tag, commit) to get contents from
154
+ * @throws {AppwriteException}
155
+ * @returns {Promise<Models.VcsContentList>}
156
+ * @deprecated Use the object parameter style method for a better developer experience.
157
+ */
158
+ getRepositoryContents(installationId: string, providerRepositoryId: string, providerRootDirectory?: string, providerReference?: string): Promise<Models.VcsContentList>;
159
+ /**
160
+ * 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.
161
+ *
162
+ * @param {string} params.installationId - Installation Id
163
+ * @param {string} params.repositoryId - VCS Repository Id
164
+ * @param {string} params.providerPullRequestId - GitHub Pull Request Id
165
+ * @throws {AppwriteException}
166
+ * @returns {Promise<{}>}
167
+ */
168
+ updateExternalDeployments(params: {
169
+ installationId: string;
170
+ repositoryId: string;
171
+ providerPullRequestId: string;
172
+ }): Promise<{}>;
173
+ /**
174
+ * 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.
175
+ *
176
+ * @param {string} installationId - Installation Id
177
+ * @param {string} repositoryId - VCS Repository Id
178
+ * @param {string} providerPullRequestId - GitHub Pull Request Id
179
+ * @throws {AppwriteException}
180
+ * @returns {Promise<{}>}
181
+ * @deprecated Use the object parameter style method for a better developer experience.
182
+ */
183
+ updateExternalDeployments(installationId: string, repositoryId: string, providerPullRequestId: string): Promise<{}>;
184
+ /**
185
+ * List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
186
+ *
187
+ *
188
+ * @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
189
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
190
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
191
+ * @throws {AppwriteException}
192
+ * @returns {Promise<Models.InstallationList>}
193
+ */
194
+ listInstallations(params?: {
195
+ queries?: string[];
196
+ search?: string;
197
+ total?: boolean;
198
+ }): Promise<Models.InstallationList>;
199
+ /**
200
+ * List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
201
+ *
202
+ *
203
+ * @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
204
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
205
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
206
+ * @throws {AppwriteException}
207
+ * @returns {Promise<Models.InstallationList>}
208
+ * @deprecated Use the object parameter style method for a better developer experience.
209
+ */
210
+ listInstallations(queries?: string[], search?: string, total?: boolean): Promise<Models.InstallationList>;
211
+ /**
212
+ * Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration.
213
+ *
214
+ * @param {string} params.installationId - Installation Id
215
+ * @throws {AppwriteException}
216
+ * @returns {Promise<Models.Installation>}
217
+ */
218
+ getInstallation(params: {
219
+ installationId: string;
220
+ }): Promise<Models.Installation>;
221
+ /**
222
+ * Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration.
223
+ *
224
+ * @param {string} installationId - Installation Id
225
+ * @throws {AppwriteException}
226
+ * @returns {Promise<Models.Installation>}
227
+ * @deprecated Use the object parameter style method for a better developer experience.
228
+ */
229
+ getInstallation(installationId: string): Promise<Models.Installation>;
230
+ /**
231
+ * Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.
232
+ *
233
+ * @param {string} params.installationId - Installation Id
234
+ * @throws {AppwriteException}
235
+ * @returns {Promise<{}>}
236
+ */
237
+ deleteInstallation(params: {
238
+ installationId: string;
239
+ }): Promise<{}>;
240
+ /**
241
+ * Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.
242
+ *
243
+ * @param {string} installationId - Installation Id
244
+ * @throws {AppwriteException}
245
+ * @returns {Promise<{}>}
246
+ * @deprecated Use the object parameter style method for a better developer experience.
247
+ */
248
+ deleteInstallation(installationId: string): Promise<{}>;
249
+ }