@appwrite.io/console 9.0.0 → 10.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/README.md +1 -1
- package/dist/cjs/sdk.js +12690 -10242
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +12689 -10243
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +11757 -9309
- package/package.json +1 -1
- package/types/enums/build-runtime.d.ts +3 -0
- package/types/enums/documents-db-index-type.d.ts +5 -0
- package/types/enums/model.d.ts +3 -0
- package/types/enums/runtime.d.ts +3 -0
- package/types/enums/runtimes.d.ts +3 -0
- package/types/enums/vectors-db-index-type.d.ts +8 -0
- package/types/index.d.ts +5 -0
- package/types/models.d.ts +338 -1
- package/types/services/documents-db.d.ts +937 -0
- package/types/services/organizations.d.ts +2 -2
- package/types/services/vectors-db.d.ts +905 -0
- package/types/services/webhooks.d.ts +8 -2
|
@@ -36,6 +36,7 @@ export declare class Webhooks {
|
|
|
36
36
|
* @param {boolean} params.tls - Certificate verification, false for disabled or true for enabled.
|
|
37
37
|
* @param {string} params.authUsername - Webhook HTTP user. Max length: 256 chars.
|
|
38
38
|
* @param {string} params.authPassword - Webhook HTTP password. Max length: 256 chars.
|
|
39
|
+
* @param {string} params.secret - Webhook secret key. If not provided, a new key will be generated automatically. Key must be at least 8 characters long, and at max 256 characters.
|
|
39
40
|
* @throws {AppwriteException}
|
|
40
41
|
* @returns {Promise<Models.Webhook>}
|
|
41
42
|
*/
|
|
@@ -48,6 +49,7 @@ export declare class Webhooks {
|
|
|
48
49
|
tls?: boolean;
|
|
49
50
|
authUsername?: string;
|
|
50
51
|
authPassword?: string;
|
|
52
|
+
secret?: string;
|
|
51
53
|
}): Promise<Models.Webhook>;
|
|
52
54
|
/**
|
|
53
55
|
* Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
|
|
@@ -60,11 +62,12 @@ export declare class Webhooks {
|
|
|
60
62
|
* @param {boolean} tls - Certificate verification, false for disabled or true for enabled.
|
|
61
63
|
* @param {string} authUsername - Webhook HTTP user. Max length: 256 chars.
|
|
62
64
|
* @param {string} authPassword - Webhook HTTP password. Max length: 256 chars.
|
|
65
|
+
* @param {string} secret - Webhook secret key. If not provided, a new key will be generated automatically. Key must be at least 8 characters long, and at max 256 characters.
|
|
63
66
|
* @throws {AppwriteException}
|
|
64
67
|
* @returns {Promise<Models.Webhook>}
|
|
65
68
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
66
69
|
*/
|
|
67
|
-
create(webhookId: string, url: string, name: string, events: string[], enabled?: boolean, tls?: boolean, authUsername?: string, authPassword?: string): Promise<Models.Webhook>;
|
|
70
|
+
create(webhookId: string, url: string, name: string, events: string[], enabled?: boolean, tls?: boolean, authUsername?: string, authPassword?: string, secret?: string): Promise<Models.Webhook>;
|
|
68
71
|
/**
|
|
69
72
|
* Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
|
|
70
73
|
*
|
|
@@ -147,19 +150,22 @@ export declare class Webhooks {
|
|
|
147
150
|
* Update the webhook signing key. This endpoint can be used to regenerate the signing key used to sign and validate payload deliveries for a specific webhook.
|
|
148
151
|
*
|
|
149
152
|
* @param {string} params.webhookId - Webhook ID.
|
|
153
|
+
* @param {string} params.secret - Webhook secret key. If not provided, a new key will be generated automatically. Key must be at least 8 characters long, and at max 256 characters.
|
|
150
154
|
* @throws {AppwriteException}
|
|
151
155
|
* @returns {Promise<Models.Webhook>}
|
|
152
156
|
*/
|
|
153
157
|
updateSecret(params: {
|
|
154
158
|
webhookId: string;
|
|
159
|
+
secret?: string;
|
|
155
160
|
}): Promise<Models.Webhook>;
|
|
156
161
|
/**
|
|
157
162
|
* Update the webhook signing key. This endpoint can be used to regenerate the signing key used to sign and validate payload deliveries for a specific webhook.
|
|
158
163
|
*
|
|
159
164
|
* @param {string} webhookId - Webhook ID.
|
|
165
|
+
* @param {string} secret - Webhook secret key. If not provided, a new key will be generated automatically. Key must be at least 8 characters long, and at max 256 characters.
|
|
160
166
|
* @throws {AppwriteException}
|
|
161
167
|
* @returns {Promise<Models.Webhook>}
|
|
162
168
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
163
169
|
*/
|
|
164
|
-
updateSecret(webhookId: string): Promise<Models.Webhook>;
|
|
170
|
+
updateSecret(webhookId: string, secret?: string): Promise<Models.Webhook>;
|
|
165
171
|
}
|