@appwrite.io/console 13.1.0 → 13.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/sdk.js +4257 -690
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +4255 -691
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +4259 -692
- package/package.json +1 -1
- package/types/enums/{site-adapter.d.ts → adapter.d.ts} +1 -1
- package/types/enums/{organization-addon.d.ts → addon.d.ts} +1 -1
- package/types/enums/appwrite-migration-resource.d.ts +13 -1
- package/types/enums/{function-runtime.d.ts → build-runtime.d.ts} +1 -1
- package/types/enums/embedding-model.d.ts +4 -1
- package/types/enums/{site-framework.d.ts → framework.d.ts} +1 -1
- package/types/enums/{migration-on-duplicate.d.ts → on-duplicate.d.ts} +1 -1
- package/types/enums/project-key-scopes.d.ts +2 -0
- package/types/enums/project-policy-id.d.ts +5 -1
- package/types/enums/query-suggestion-resource.d.ts +3 -0
- package/types/enums/{site-build-runtime.d.ts → runtime.d.ts} +1 -1
- package/types/enums/{redirect-status-code.d.ts → status-code.d.ts} +1 -1
- package/types/enums/status.d.ts +3 -0
- package/types/index.d.ts +11 -8
- package/types/models.d.ts +1524 -19
- package/types/services/account.d.ts +2 -2
- package/types/services/advisor.d.ts +123 -0
- package/types/services/apps.d.ts +266 -0
- package/types/services/compute.d.ts +1171 -0
- package/types/services/functions.d.ts +13 -13
- package/types/services/health.d.ts +8 -0
- package/types/services/messaging.d.ts +92 -0
- package/types/services/migrations.d.ts +13 -13
- package/types/services/organizations.d.ts +5 -5
- package/types/services/project.d.ts +77 -6
- package/types/services/projects.d.ts +5 -5
- package/types/services/proxy.d.ts +5 -5
- package/types/services/sites.d.ts +27 -27
- package/types/enums/project-status.d.ts +0 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Client, UploadProgress } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { Framework } from '../enums/framework';
|
|
4
|
+
import { BuildRuntime } from '../enums/build-runtime';
|
|
5
|
+
import { Adapter } from '../enums/adapter';
|
|
6
6
|
import { SiteTemplateUseCase } from '../enums/site-template-use-case';
|
|
7
7
|
import { UsageRange } from '../enums/usage-range';
|
|
8
8
|
import { TemplateReferenceType } from '../enums/template-reference-type';
|
|
@@ -41,8 +41,8 @@ export declare class Sites {
|
|
|
41
41
|
*
|
|
42
42
|
* @param {string} params.siteId - Site 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.
|
|
43
43
|
* @param {string} params.name - Site name. Max length: 128 chars.
|
|
44
|
-
* @param {
|
|
45
|
-
* @param {
|
|
44
|
+
* @param {Framework} params.framework - Sites framework.
|
|
45
|
+
* @param {BuildRuntime} params.buildRuntime - Runtime to use during build step.
|
|
46
46
|
* @param {boolean} params.enabled - Is site enabled? When set to 'disabled', users cannot access the site but Server SDKs with and API key can still access the site. No data is lost when this is toggled.
|
|
47
47
|
* @param {boolean} params.logging - When disabled, request logs will exclude logs and errors, and site responses will be slightly faster.
|
|
48
48
|
* @param {number} params.timeout - Maximum request time in seconds.
|
|
@@ -50,7 +50,7 @@ export declare class Sites {
|
|
|
50
50
|
* @param {string} params.buildCommand - Build Command.
|
|
51
51
|
* @param {string} params.startCommand - Custom start command. Leave empty to use default.
|
|
52
52
|
* @param {string} params.outputDirectory - Output Directory for site.
|
|
53
|
-
* @param {
|
|
53
|
+
* @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
54
54
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
55
55
|
* @param {string} params.fallbackFile - Fallback file for single page application sites.
|
|
56
56
|
* @param {string} params.providerRepositoryId - Repository ID of the repo linked to the site.
|
|
@@ -68,8 +68,8 @@ export declare class Sites {
|
|
|
68
68
|
create(params: {
|
|
69
69
|
siteId: string;
|
|
70
70
|
name: string;
|
|
71
|
-
framework:
|
|
72
|
-
buildRuntime:
|
|
71
|
+
framework: Framework;
|
|
72
|
+
buildRuntime: BuildRuntime;
|
|
73
73
|
enabled?: boolean;
|
|
74
74
|
logging?: boolean;
|
|
75
75
|
timeout?: number;
|
|
@@ -77,7 +77,7 @@ export declare class Sites {
|
|
|
77
77
|
buildCommand?: string;
|
|
78
78
|
startCommand?: string;
|
|
79
79
|
outputDirectory?: string;
|
|
80
|
-
adapter?:
|
|
80
|
+
adapter?: Adapter;
|
|
81
81
|
installationId?: string;
|
|
82
82
|
fallbackFile?: string;
|
|
83
83
|
providerRepositoryId?: string;
|
|
@@ -95,8 +95,8 @@ export declare class Sites {
|
|
|
95
95
|
*
|
|
96
96
|
* @param {string} siteId - Site 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.
|
|
97
97
|
* @param {string} name - Site name. Max length: 128 chars.
|
|
98
|
-
* @param {
|
|
99
|
-
* @param {
|
|
98
|
+
* @param {Framework} framework - Sites framework.
|
|
99
|
+
* @param {BuildRuntime} buildRuntime - Runtime to use during build step.
|
|
100
100
|
* @param {boolean} enabled - Is site enabled? When set to 'disabled', users cannot access the site but Server SDKs with and API key can still access the site. No data is lost when this is toggled.
|
|
101
101
|
* @param {boolean} logging - When disabled, request logs will exclude logs and errors, and site responses will be slightly faster.
|
|
102
102
|
* @param {number} timeout - Maximum request time in seconds.
|
|
@@ -104,7 +104,7 @@ export declare class Sites {
|
|
|
104
104
|
* @param {string} buildCommand - Build Command.
|
|
105
105
|
* @param {string} startCommand - Custom start command. Leave empty to use default.
|
|
106
106
|
* @param {string} outputDirectory - Output Directory for site.
|
|
107
|
-
* @param {
|
|
107
|
+
* @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
108
108
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
109
109
|
* @param {string} fallbackFile - Fallback file for single page application sites.
|
|
110
110
|
* @param {string} providerRepositoryId - Repository ID of the repo linked to the site.
|
|
@@ -120,7 +120,7 @@ export declare class Sites {
|
|
|
120
120
|
* @returns {Promise<Models.Site>}
|
|
121
121
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
122
122
|
*/
|
|
123
|
-
create(siteId: string, name: string, framework:
|
|
123
|
+
create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Site>;
|
|
124
124
|
/**
|
|
125
125
|
* Get a list of all frameworks that are currently available on the server instance.
|
|
126
126
|
*
|
|
@@ -138,7 +138,7 @@ export declare class Sites {
|
|
|
138
138
|
/**
|
|
139
139
|
* List available site templates. You can use template details in [createSite](/docs/references/cloud/server-nodejs/sites#create) method.
|
|
140
140
|
*
|
|
141
|
-
* @param {
|
|
141
|
+
* @param {Framework[]} params.frameworks - List of frameworks allowed for filtering site templates. Maximum of 100 frameworks are allowed.
|
|
142
142
|
* @param {SiteTemplateUseCase[]} params.useCases - List of use cases allowed for filtering site templates. Maximum of 100 use cases are allowed.
|
|
143
143
|
* @param {number} params.limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
|
|
144
144
|
* @param {number} params.offset - Offset the list of returned templates. Maximum offset is 5000.
|
|
@@ -146,7 +146,7 @@ export declare class Sites {
|
|
|
146
146
|
* @returns {Promise<Models.TemplateSiteList>}
|
|
147
147
|
*/
|
|
148
148
|
listTemplates(params?: {
|
|
149
|
-
frameworks?:
|
|
149
|
+
frameworks?: Framework[];
|
|
150
150
|
useCases?: SiteTemplateUseCase[];
|
|
151
151
|
limit?: number;
|
|
152
152
|
offset?: number;
|
|
@@ -154,7 +154,7 @@ export declare class Sites {
|
|
|
154
154
|
/**
|
|
155
155
|
* List available site templates. You can use template details in [createSite](/docs/references/cloud/server-nodejs/sites#create) method.
|
|
156
156
|
*
|
|
157
|
-
* @param {
|
|
157
|
+
* @param {Framework[]} frameworks - List of frameworks allowed for filtering site templates. Maximum of 100 frameworks are allowed.
|
|
158
158
|
* @param {SiteTemplateUseCase[]} useCases - List of use cases allowed for filtering site templates. Maximum of 100 use cases are allowed.
|
|
159
159
|
* @param {number} limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
|
|
160
160
|
* @param {number} offset - Offset the list of returned templates. Maximum offset is 5000.
|
|
@@ -162,7 +162,7 @@ export declare class Sites {
|
|
|
162
162
|
* @returns {Promise<Models.TemplateSiteList>}
|
|
163
163
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
164
164
|
*/
|
|
165
|
-
listTemplates(frameworks?:
|
|
165
|
+
listTemplates(frameworks?: Framework[], useCases?: SiteTemplateUseCase[], limit?: number, offset?: number): Promise<Models.TemplateSiteList>;
|
|
166
166
|
/**
|
|
167
167
|
* Get a site template using ID. You can use template details in [createSite](/docs/references/cloud/server-nodejs/sites#create) method.
|
|
168
168
|
*
|
|
@@ -225,7 +225,7 @@ export declare class Sites {
|
|
|
225
225
|
*
|
|
226
226
|
* @param {string} params.siteId - Site ID.
|
|
227
227
|
* @param {string} params.name - Site name. Max length: 128 chars.
|
|
228
|
-
* @param {
|
|
228
|
+
* @param {Framework} params.framework - Sites framework.
|
|
229
229
|
* @param {boolean} params.enabled - Is site enabled? When set to 'disabled', users cannot access the site but Server SDKs with and API key can still access the site. No data is lost when this is toggled.
|
|
230
230
|
* @param {boolean} params.logging - When disabled, request logs will exclude logs and errors, and site responses will be slightly faster.
|
|
231
231
|
* @param {number} params.timeout - Maximum request time in seconds.
|
|
@@ -233,8 +233,8 @@ export declare class Sites {
|
|
|
233
233
|
* @param {string} params.buildCommand - Build Command.
|
|
234
234
|
* @param {string} params.startCommand - Custom start command. Leave empty to use default.
|
|
235
235
|
* @param {string} params.outputDirectory - Output Directory for site.
|
|
236
|
-
* @param {
|
|
237
|
-
* @param {
|
|
236
|
+
* @param {BuildRuntime} params.buildRuntime - Runtime to use during build step.
|
|
237
|
+
* @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
238
238
|
* @param {string} params.fallbackFile - Fallback file for single page application sites.
|
|
239
239
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
240
240
|
* @param {string} params.providerRepositoryId - Repository ID of the repo linked to the site.
|
|
@@ -252,7 +252,7 @@ export declare class Sites {
|
|
|
252
252
|
update(params: {
|
|
253
253
|
siteId: string;
|
|
254
254
|
name: string;
|
|
255
|
-
framework:
|
|
255
|
+
framework: Framework;
|
|
256
256
|
enabled?: boolean;
|
|
257
257
|
logging?: boolean;
|
|
258
258
|
timeout?: number;
|
|
@@ -260,8 +260,8 @@ export declare class Sites {
|
|
|
260
260
|
buildCommand?: string;
|
|
261
261
|
startCommand?: string;
|
|
262
262
|
outputDirectory?: string;
|
|
263
|
-
buildRuntime?:
|
|
264
|
-
adapter?:
|
|
263
|
+
buildRuntime?: BuildRuntime;
|
|
264
|
+
adapter?: Adapter;
|
|
265
265
|
fallbackFile?: string;
|
|
266
266
|
installationId?: string;
|
|
267
267
|
providerRepositoryId?: string;
|
|
@@ -279,7 +279,7 @@ export declare class Sites {
|
|
|
279
279
|
*
|
|
280
280
|
* @param {string} siteId - Site ID.
|
|
281
281
|
* @param {string} name - Site name. Max length: 128 chars.
|
|
282
|
-
* @param {
|
|
282
|
+
* @param {Framework} framework - Sites framework.
|
|
283
283
|
* @param {boolean} enabled - Is site enabled? When set to 'disabled', users cannot access the site but Server SDKs with and API key can still access the site. No data is lost when this is toggled.
|
|
284
284
|
* @param {boolean} logging - When disabled, request logs will exclude logs and errors, and site responses will be slightly faster.
|
|
285
285
|
* @param {number} timeout - Maximum request time in seconds.
|
|
@@ -287,8 +287,8 @@ export declare class Sites {
|
|
|
287
287
|
* @param {string} buildCommand - Build Command.
|
|
288
288
|
* @param {string} startCommand - Custom start command. Leave empty to use default.
|
|
289
289
|
* @param {string} outputDirectory - Output Directory for site.
|
|
290
|
-
* @param {
|
|
291
|
-
* @param {
|
|
290
|
+
* @param {BuildRuntime} buildRuntime - Runtime to use during build step.
|
|
291
|
+
* @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
292
292
|
* @param {string} fallbackFile - Fallback file for single page application sites.
|
|
293
293
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
294
294
|
* @param {string} providerRepositoryId - Repository ID of the repo linked to the site.
|
|
@@ -304,7 +304,7 @@ export declare class Sites {
|
|
|
304
304
|
* @returns {Promise<Models.Site>}
|
|
305
305
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
306
306
|
*/
|
|
307
|
-
update(siteId: string, name: string, framework:
|
|
307
|
+
update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Site>;
|
|
308
308
|
/**
|
|
309
309
|
* Delete a site by its unique ID.
|
|
310
310
|
*
|