node-appwrite 21.0.0 → 22.0.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/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/client.js +37 -5
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +1505 -5
- package/dist/client.mjs.map +1 -1
- package/dist/enums/browser-permission.d.mts +24 -0
- package/dist/enums/browser-permission.d.ts +24 -0
- package/dist/enums/browser-permission.js +29 -0
- package/dist/enums/browser-permission.js.map +1 -0
- package/dist/enums/browser-permission.mjs +28 -0
- package/dist/enums/browser-permission.mjs.map +1 -0
- package/dist/enums/deployment-status.d.mts +1 -0
- package/dist/enums/deployment-status.d.ts +1 -0
- package/dist/enums/deployment-status.js +1 -0
- package/dist/enums/deployment-status.js.map +1 -1
- package/dist/enums/deployment-status.mjs +1 -0
- package/dist/enums/deployment-status.mjs.map +1 -1
- package/dist/enums/name.d.mts +1 -0
- package/dist/enums/name.d.ts +1 -0
- package/dist/enums/name.js +1 -0
- package/dist/enums/name.js.map +1 -1
- package/dist/enums/name.mjs +1 -0
- package/dist/enums/name.mjs.map +1 -1
- package/dist/enums/o-auth-provider.d.mts +1 -2
- package/dist/enums/o-auth-provider.d.ts +1 -2
- package/dist/enums/o-auth-provider.js +0 -1
- package/dist/enums/o-auth-provider.js.map +1 -1
- package/dist/enums/o-auth-provider.mjs +0 -1
- package/dist/enums/o-auth-provider.mjs.map +1 -1
- package/dist/enums/order-by.d.mts +6 -0
- package/dist/enums/order-by.d.ts +6 -0
- package/dist/enums/order-by.js +11 -0
- package/dist/enums/order-by.js.map +1 -0
- package/dist/enums/order-by.mjs +10 -0
- package/dist/enums/order-by.mjs.map +1 -0
- package/dist/enums/roles.d.mts +7 -0
- package/dist/enums/roles.d.ts +7 -0
- package/dist/enums/roles.js +12 -0
- package/dist/enums/roles.js.map +1 -0
- package/dist/enums/roles.mjs +11 -0
- package/dist/enums/roles.mjs.map +1 -0
- package/dist/enums/scopes.d.mts +59 -0
- package/dist/enums/scopes.d.ts +59 -0
- package/dist/enums/scopes.js +64 -0
- package/dist/enums/scopes.js.map +1 -0
- package/dist/enums/scopes.mjs +63 -0
- package/dist/enums/scopes.mjs.map +1 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +367 -6
- package/dist/models.d.ts +367 -6
- package/dist/query.d.mts +38 -8
- package/dist/query.d.ts +38 -8
- package/dist/query.js +48 -7
- package/dist/query.js.map +1 -1
- package/dist/query.mjs +44 -7
- package/dist/query.mjs.map +1 -1
- package/dist/services/account.d.mts +13 -1
- package/dist/services/account.d.ts +13 -1
- package/dist/services/account.js +13 -7
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +13 -7
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/avatars.d.mts +9 -8
- package/dist/services/avatars.d.ts +9 -8
- package/dist/services/avatars.js.map +1 -1
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/databases.d.mts +336 -35
- package/dist/services/databases.d.ts +336 -35
- package/dist/services/databases.js +480 -10
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +480 -10
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +9 -8
- package/dist/services/functions.d.ts +9 -8
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/graphql.js.map +1 -1
- package/dist/services/graphql.mjs.map +1 -1
- package/dist/services/health.d.mts +25 -6
- package/dist/services/health.d.ts +25 -6
- package/dist/services/health.js +27 -3
- package/dist/services/health.js.map +1 -1
- package/dist/services/health.mjs +27 -3
- package/dist/services/health.mjs.map +1 -1
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/sites.js.map +1 -1
- package/dist/services/sites.mjs.map +1 -1
- package/dist/services/storage.d.mts +12 -12
- package/dist/services/storage.d.ts +12 -12
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +336 -33
- package/dist/services/tables-db.d.ts +336 -33
- package/dist/services/tables-db.js +480 -7
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +480 -7
- package/dist/services/tables-db.mjs.map +1 -1
- package/dist/services/teams.d.mts +9 -8
- package/dist/services/teams.d.ts +9 -8
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/tokens.js.map +1 -1
- package/dist/services/tokens.mjs.map +1 -1
- package/dist/services/users.js.map +1 -1
- package/dist/services/users.mjs.map +1 -1
- package/package.json +4 -2
- package/dist/enums/output.d.mts +0 -11
- package/dist/enums/output.d.ts +0 -11
- package/dist/enums/output.js +0 -16
- package/dist/enums/output.js.map +0 -1
- package/dist/enums/output.mjs +0 -15
- package/dist/enums/output.mjs.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Client, UploadProgress } from '../client.mjs';
|
|
2
2
|
import { Models } from '../models.mjs';
|
|
3
3
|
import { Runtime } from '../enums/runtime.mjs';
|
|
4
|
+
import { Scopes } from '../enums/scopes.mjs';
|
|
4
5
|
import { TemplateReferenceType } from '../enums/template-reference-type.mjs';
|
|
5
6
|
import { VCSReferenceType } from '../enums/vcs-reference-type.mjs';
|
|
6
7
|
import { DeploymentDownloadType } from '../enums/deployment-download-type.mjs';
|
|
@@ -59,7 +60,7 @@ declare class Functions {
|
|
|
59
60
|
* @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
60
61
|
* @param {string} params.entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
61
62
|
* @param {string} params.commands - Build Commands.
|
|
62
|
-
* @param {
|
|
63
|
+
* @param {Scopes[]} params.scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
63
64
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
64
65
|
* @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function.
|
|
65
66
|
* @param {string} params.providerBranch - Production branch for the repo linked to the function.
|
|
@@ -81,7 +82,7 @@ declare class Functions {
|
|
|
81
82
|
logging?: boolean;
|
|
82
83
|
entrypoint?: string;
|
|
83
84
|
commands?: string;
|
|
84
|
-
scopes?:
|
|
85
|
+
scopes?: Scopes[];
|
|
85
86
|
installationId?: string;
|
|
86
87
|
providerRepositoryId?: string;
|
|
87
88
|
providerBranch?: string;
|
|
@@ -103,7 +104,7 @@ declare class Functions {
|
|
|
103
104
|
* @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
104
105
|
* @param {string} entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
105
106
|
* @param {string} commands - Build Commands.
|
|
106
|
-
* @param {
|
|
107
|
+
* @param {Scopes[]} scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
107
108
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
108
109
|
* @param {string} providerRepositoryId - Repository ID of the repo linked to the function.
|
|
109
110
|
* @param {string} providerBranch - Production branch for the repo linked to the function.
|
|
@@ -114,7 +115,7 @@ declare class Functions {
|
|
|
114
115
|
* @returns {Promise<Models.Function>}
|
|
115
116
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
116
117
|
*/
|
|
117
|
-
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?:
|
|
118
|
+
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
|
|
118
119
|
/**
|
|
119
120
|
* Get a list of all runtimes that are currently active on your instance.
|
|
120
121
|
*
|
|
@@ -162,7 +163,7 @@ declare class Functions {
|
|
|
162
163
|
* @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
163
164
|
* @param {string} params.entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
164
165
|
* @param {string} params.commands - Build Commands.
|
|
165
|
-
* @param {
|
|
166
|
+
* @param {Scopes[]} params.scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
166
167
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.
|
|
167
168
|
* @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function
|
|
168
169
|
* @param {string} params.providerBranch - Production branch for the repo linked to the function
|
|
@@ -184,7 +185,7 @@ declare class Functions {
|
|
|
184
185
|
logging?: boolean;
|
|
185
186
|
entrypoint?: string;
|
|
186
187
|
commands?: string;
|
|
187
|
-
scopes?:
|
|
188
|
+
scopes?: Scopes[];
|
|
188
189
|
installationId?: string;
|
|
189
190
|
providerRepositoryId?: string;
|
|
190
191
|
providerBranch?: string;
|
|
@@ -206,7 +207,7 @@ declare class Functions {
|
|
|
206
207
|
* @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
207
208
|
* @param {string} entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
208
209
|
* @param {string} commands - Build Commands.
|
|
209
|
-
* @param {
|
|
210
|
+
* @param {Scopes[]} scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
210
211
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.
|
|
211
212
|
* @param {string} providerRepositoryId - Repository ID of the repo linked to the function
|
|
212
213
|
* @param {string} providerBranch - Production branch for the repo linked to the function
|
|
@@ -217,7 +218,7 @@ declare class Functions {
|
|
|
217
218
|
* @returns {Promise<Models.Function>}
|
|
218
219
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
219
220
|
*/
|
|
220
|
-
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?:
|
|
221
|
+
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
|
|
221
222
|
/**
|
|
222
223
|
* Delete a function by its unique ID.
|
|
223
224
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Client, UploadProgress } from '../client.js';
|
|
2
2
|
import { Models } from '../models.js';
|
|
3
3
|
import { Runtime } from '../enums/runtime.js';
|
|
4
|
+
import { Scopes } from '../enums/scopes.js';
|
|
4
5
|
import { TemplateReferenceType } from '../enums/template-reference-type.js';
|
|
5
6
|
import { VCSReferenceType } from '../enums/vcs-reference-type.js';
|
|
6
7
|
import { DeploymentDownloadType } from '../enums/deployment-download-type.js';
|
|
@@ -59,7 +60,7 @@ declare class Functions {
|
|
|
59
60
|
* @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
60
61
|
* @param {string} params.entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
61
62
|
* @param {string} params.commands - Build Commands.
|
|
62
|
-
* @param {
|
|
63
|
+
* @param {Scopes[]} params.scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
63
64
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
64
65
|
* @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function.
|
|
65
66
|
* @param {string} params.providerBranch - Production branch for the repo linked to the function.
|
|
@@ -81,7 +82,7 @@ declare class Functions {
|
|
|
81
82
|
logging?: boolean;
|
|
82
83
|
entrypoint?: string;
|
|
83
84
|
commands?: string;
|
|
84
|
-
scopes?:
|
|
85
|
+
scopes?: Scopes[];
|
|
85
86
|
installationId?: string;
|
|
86
87
|
providerRepositoryId?: string;
|
|
87
88
|
providerBranch?: string;
|
|
@@ -103,7 +104,7 @@ declare class Functions {
|
|
|
103
104
|
* @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
104
105
|
* @param {string} entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
105
106
|
* @param {string} commands - Build Commands.
|
|
106
|
-
* @param {
|
|
107
|
+
* @param {Scopes[]} scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
107
108
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
108
109
|
* @param {string} providerRepositoryId - Repository ID of the repo linked to the function.
|
|
109
110
|
* @param {string} providerBranch - Production branch for the repo linked to the function.
|
|
@@ -114,7 +115,7 @@ declare class Functions {
|
|
|
114
115
|
* @returns {Promise<Models.Function>}
|
|
115
116
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
116
117
|
*/
|
|
117
|
-
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?:
|
|
118
|
+
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
|
|
118
119
|
/**
|
|
119
120
|
* Get a list of all runtimes that are currently active on your instance.
|
|
120
121
|
*
|
|
@@ -162,7 +163,7 @@ declare class Functions {
|
|
|
162
163
|
* @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
163
164
|
* @param {string} params.entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
164
165
|
* @param {string} params.commands - Build Commands.
|
|
165
|
-
* @param {
|
|
166
|
+
* @param {Scopes[]} params.scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
166
167
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.
|
|
167
168
|
* @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function
|
|
168
169
|
* @param {string} params.providerBranch - Production branch for the repo linked to the function
|
|
@@ -184,7 +185,7 @@ declare class Functions {
|
|
|
184
185
|
logging?: boolean;
|
|
185
186
|
entrypoint?: string;
|
|
186
187
|
commands?: string;
|
|
187
|
-
scopes?:
|
|
188
|
+
scopes?: Scopes[];
|
|
188
189
|
installationId?: string;
|
|
189
190
|
providerRepositoryId?: string;
|
|
190
191
|
providerBranch?: string;
|
|
@@ -206,7 +207,7 @@ declare class Functions {
|
|
|
206
207
|
* @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
207
208
|
* @param {string} entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
208
209
|
* @param {string} commands - Build Commands.
|
|
209
|
-
* @param {
|
|
210
|
+
* @param {Scopes[]} scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
210
211
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.
|
|
211
212
|
* @param {string} providerRepositoryId - Repository ID of the repo linked to the function
|
|
212
213
|
* @param {string} providerBranch - Production branch for the repo linked to the function
|
|
@@ -217,7 +218,7 @@ declare class Functions {
|
|
|
217
218
|
* @returns {Promise<Models.Function>}
|
|
218
219
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
219
220
|
*/
|
|
220
|
-
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?:
|
|
221
|
+
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
|
|
221
222
|
/**
|
|
222
223
|
* Delete a function by its unique ID.
|
|
223
224
|
*
|