@appwrite.io/console 0.5.0 → 0.6.0-rc.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.
- package/README.md +1 -1
- package/dist/cjs/sdk.js +2100 -112
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2100 -113
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2100 -112
- package/docs/examples/account/add-authenticator.md +18 -0
- package/docs/examples/account/create-challenge.md +18 -0
- package/docs/examples/account/{delete.md → list-providers.md} +1 -1
- package/docs/examples/account/update-challenge.md +18 -0
- package/docs/examples/account/update-m-f-a.md +18 -0
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/verify-authenticator.md +18 -0
- package/docs/examples/messaging/create-apns-provider.md +18 -0
- package/docs/examples/messaging/create-email-message.md +18 -0
- package/docs/examples/messaging/create-fcm-provider.md +18 -0
- package/docs/examples/messaging/create-mailgun-provider.md +18 -0
- package/docs/examples/messaging/create-msg91provider.md +18 -0
- package/docs/examples/messaging/create-push-message.md +18 -0
- package/docs/examples/messaging/create-s-m-s-message.md +18 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +18 -0
- package/docs/examples/messaging/create-subscriber.md +18 -0
- package/docs/examples/messaging/create-telesign-provider.md +18 -0
- package/docs/examples/messaging/create-textmagic-provider.md +18 -0
- package/docs/examples/messaging/create-topic.md +18 -0
- package/docs/examples/messaging/create-twilio-provider.md +18 -0
- package/docs/examples/messaging/create-vonage-provider.md +18 -0
- package/docs/examples/messaging/delete-provider.md +18 -0
- package/docs/examples/messaging/delete-subscriber.md +18 -0
- package/docs/examples/messaging/delete-topic.md +18 -0
- package/docs/examples/messaging/get-message.md +18 -0
- package/docs/examples/messaging/get-provider.md +18 -0
- package/docs/examples/messaging/get-subscriber.md +18 -0
- package/docs/examples/messaging/get-topic.md +18 -0
- package/docs/examples/messaging/list-message-logs.md +18 -0
- package/docs/examples/messaging/list-messages.md +18 -0
- package/docs/examples/messaging/list-provider-logs.md +18 -0
- package/docs/examples/messaging/list-providers.md +18 -0
- package/docs/examples/messaging/list-subscriber-logs.md +18 -0
- package/docs/examples/messaging/list-subscribers.md +18 -0
- package/docs/examples/messaging/list-topic-logs.md +18 -0
- package/docs/examples/messaging/list-topics.md +18 -0
- package/docs/examples/messaging/update-apns-provider.md +18 -0
- package/docs/examples/messaging/update-email.md +18 -0
- package/docs/examples/messaging/update-fcm-provider.md +18 -0
- package/docs/examples/messaging/update-mailgun-provider.md +18 -0
- package/docs/examples/messaging/update-msg91provider.md +18 -0
- package/docs/examples/messaging/update-push-notification.md +18 -0
- package/docs/examples/messaging/update-s-m-s.md +18 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +18 -0
- package/docs/examples/messaging/update-telesign-provider.md +18 -0
- package/docs/examples/messaging/update-textmagic-provider.md +18 -0
- package/docs/examples/messaging/update-topic.md +18 -0
- package/docs/examples/messaging/update-twilio-provider.md +18 -0
- package/docs/examples/messaging/update-vonage-provider.md +18 -0
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/projects/get-usage.md +18 -0
- package/docs/examples/projects/update-auth-mfa-factors.md +18 -0
- package/docs/examples/users/create-target.md +18 -0
- package/docs/examples/users/delete-target.md +18 -0
- package/docs/examples/users/get-target.md +18 -0
- package/docs/examples/users/list-targets.md +18 -0
- package/docs/examples/users/update-target.md +18 -0
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/index.ts +1 -0
- package/src/models.ts +534 -199
- package/src/services/account.ts +158 -18
- package/src/services/functions.ts +1 -1
- package/src/services/messaging.ts +1901 -0
- package/src/services/project.ts +4 -22
- package/src/services/projects.ts +58 -0
- package/src/services/storage.ts +1 -1
- package/src/services/users.ts +188 -1
- package/types/index.d.ts +1 -0
- package/types/models.d.ts +534 -199
- package/types/services/account.d.ts +56 -9
- package/types/services/functions.d.ts +1 -1
- package/types/services/messaging.d.ts +553 -0
- package/types/services/project.d.ts +2 -4
- package/types/services/projects.d.ts +20 -0
- package/types/services/storage.d.ts +1 -1
- package/types/services/users.d.ts +59 -1
|
@@ -31,15 +31,6 @@ export declare class Account extends Service {
|
|
|
31
31
|
* @returns {Promise}
|
|
32
32
|
*/
|
|
33
33
|
create<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
34
|
-
/**
|
|
35
|
-
* Delete account
|
|
36
|
-
*
|
|
37
|
-
* Delete the currently logged in user.
|
|
38
|
-
*
|
|
39
|
-
* @throws {AppwriteException}
|
|
40
|
-
* @returns {Promise}
|
|
41
|
-
*/
|
|
42
|
-
delete(): Promise<{}>;
|
|
43
34
|
/**
|
|
44
35
|
* Update email
|
|
45
36
|
*
|
|
@@ -102,6 +93,62 @@ export declare class Account extends Service {
|
|
|
102
93
|
* @returns {Promise}
|
|
103
94
|
*/
|
|
104
95
|
listLogs(queries?: string[]): Promise<Models.LogList>;
|
|
96
|
+
/**
|
|
97
|
+
* Update MFA
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @param {boolean} mfa
|
|
101
|
+
* @throws {AppwriteException}
|
|
102
|
+
* @returns {Promise}
|
|
103
|
+
*/
|
|
104
|
+
updateMFA<Preferences extends Models.Preferences>(mfa: boolean): Promise<Models.User<Preferences>>;
|
|
105
|
+
/**
|
|
106
|
+
* Create MFA Challenge
|
|
107
|
+
*
|
|
108
|
+
*
|
|
109
|
+
* @param {string} provider
|
|
110
|
+
* @throws {AppwriteException}
|
|
111
|
+
* @returns {Promise}
|
|
112
|
+
*/
|
|
113
|
+
createChallenge(provider: string): Promise<Models.MfaChallenge>;
|
|
114
|
+
/**
|
|
115
|
+
* Create MFA Challenge (confirmation)
|
|
116
|
+
*
|
|
117
|
+
*
|
|
118
|
+
* @param {string} challengeId
|
|
119
|
+
* @param {string} otp
|
|
120
|
+
* @throws {AppwriteException}
|
|
121
|
+
* @returns {Promise}
|
|
122
|
+
*/
|
|
123
|
+
updateChallenge(challengeId: string, otp: string): Promise<{}>;
|
|
124
|
+
/**
|
|
125
|
+
* List Providers
|
|
126
|
+
*
|
|
127
|
+
* Get the currently logged in user.
|
|
128
|
+
*
|
|
129
|
+
* @throws {AppwriteException}
|
|
130
|
+
* @returns {Promise}
|
|
131
|
+
*/
|
|
132
|
+
listProviders(): Promise<Models.MfaProviders>;
|
|
133
|
+
/**
|
|
134
|
+
* Add Authenticator
|
|
135
|
+
*
|
|
136
|
+
*
|
|
137
|
+
* @param {string} provider
|
|
138
|
+
* @throws {AppwriteException}
|
|
139
|
+
* @returns {Promise}
|
|
140
|
+
*/
|
|
141
|
+
addAuthenticator(provider: string): Promise<Models.MfaProvider>;
|
|
142
|
+
/**
|
|
143
|
+
* Verify Authenticator
|
|
144
|
+
*
|
|
145
|
+
*
|
|
146
|
+
* @param {string} provider
|
|
147
|
+
* @param {string} otp
|
|
148
|
+
* @throws {AppwriteException}
|
|
149
|
+
* @returns {Promise}
|
|
150
|
+
*/
|
|
151
|
+
verifyAuthenticator<Preferences extends Models.Preferences>(provider: string, otp: string): Promise<Models.User<Preferences>>;
|
|
105
152
|
/**
|
|
106
153
|
* Update name
|
|
107
154
|
*
|
|
@@ -258,7 +258,7 @@ export declare class Functions extends Service {
|
|
|
258
258
|
* @throws {AppwriteException}
|
|
259
259
|
* @returns {Promise}
|
|
260
260
|
*/
|
|
261
|
-
getFunctionUsage(functionId: string, range?: string): Promise<Models.
|
|
261
|
+
getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunctions>;
|
|
262
262
|
/**
|
|
263
263
|
* List variables
|
|
264
264
|
*
|
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
2
|
+
import { Client } from '../client';
|
|
3
|
+
import type { Models } from '../models';
|
|
4
|
+
export declare class Messaging extends Service {
|
|
5
|
+
constructor(client: Client);
|
|
6
|
+
/**
|
|
7
|
+
* List messages
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* @param {string} queries
|
|
11
|
+
* @param {string} search
|
|
12
|
+
* @throws {AppwriteException}
|
|
13
|
+
* @returns {Promise}
|
|
14
|
+
*/
|
|
15
|
+
listMessages(queries?: string, search?: string): Promise<Models.MessageList>;
|
|
16
|
+
/**
|
|
17
|
+
* Create an email.
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* @param {string} messageId
|
|
21
|
+
* @param {string} subject
|
|
22
|
+
* @param {string} content
|
|
23
|
+
* @param {string[]} topics
|
|
24
|
+
* @param {string[]} users
|
|
25
|
+
* @param {string[]} targets
|
|
26
|
+
* @param {string} description
|
|
27
|
+
* @param {string} status
|
|
28
|
+
* @param {boolean} html
|
|
29
|
+
* @param {string} scheduledAt
|
|
30
|
+
* @throws {AppwriteException}
|
|
31
|
+
* @returns {Promise}
|
|
32
|
+
*/
|
|
33
|
+
createEmailMessage(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], description?: string, status?: string, html?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
34
|
+
/**
|
|
35
|
+
* Update an email.
|
|
36
|
+
*
|
|
37
|
+
*
|
|
38
|
+
* @param {string} messageId
|
|
39
|
+
* @param {string[]} topics
|
|
40
|
+
* @param {string[]} users
|
|
41
|
+
* @param {string[]} targets
|
|
42
|
+
* @param {string} subject
|
|
43
|
+
* @param {string} description
|
|
44
|
+
* @param {string} content
|
|
45
|
+
* @param {string} status
|
|
46
|
+
* @param {boolean} html
|
|
47
|
+
* @param {string} scheduledAt
|
|
48
|
+
* @throws {AppwriteException}
|
|
49
|
+
* @returns {Promise}
|
|
50
|
+
*/
|
|
51
|
+
updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, description?: string, content?: string, status?: string, html?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a push notification.
|
|
54
|
+
*
|
|
55
|
+
*
|
|
56
|
+
* @param {string} messageId
|
|
57
|
+
* @param {string} title
|
|
58
|
+
* @param {string} body
|
|
59
|
+
* @param {string[]} topics
|
|
60
|
+
* @param {string[]} users
|
|
61
|
+
* @param {string[]} targets
|
|
62
|
+
* @param {string} description
|
|
63
|
+
* @param {object} data
|
|
64
|
+
* @param {string} action
|
|
65
|
+
* @param {string} icon
|
|
66
|
+
* @param {string} sound
|
|
67
|
+
* @param {string} color
|
|
68
|
+
* @param {string} tag
|
|
69
|
+
* @param {string} badge
|
|
70
|
+
* @param {string} status
|
|
71
|
+
* @param {string} scheduledAt
|
|
72
|
+
* @throws {AppwriteException}
|
|
73
|
+
* @returns {Promise}
|
|
74
|
+
*/
|
|
75
|
+
createPushMessage(messageId: string, title: string, body: string, topics?: string[], users?: string[], targets?: string[], description?: string, data?: object, action?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: string, status?: string, scheduledAt?: string): Promise<Models.Message>;
|
|
76
|
+
/**
|
|
77
|
+
* Update a push notification.
|
|
78
|
+
*
|
|
79
|
+
*
|
|
80
|
+
* @param {string} messageId
|
|
81
|
+
* @param {string[]} topics
|
|
82
|
+
* @param {string[]} users
|
|
83
|
+
* @param {string[]} targets
|
|
84
|
+
* @param {string} description
|
|
85
|
+
* @param {string} title
|
|
86
|
+
* @param {string} body
|
|
87
|
+
* @param {object} data
|
|
88
|
+
* @param {string} action
|
|
89
|
+
* @param {string} icon
|
|
90
|
+
* @param {string} sound
|
|
91
|
+
* @param {string} color
|
|
92
|
+
* @param {string} tag
|
|
93
|
+
* @param {string} badge
|
|
94
|
+
* @param {string} status
|
|
95
|
+
* @param {string} scheduledAt
|
|
96
|
+
* @throws {AppwriteException}
|
|
97
|
+
* @returns {Promise}
|
|
98
|
+
*/
|
|
99
|
+
updatePushNotification(messageId: string, topics?: string[], users?: string[], targets?: string[], description?: string, title?: string, body?: string, data?: object, action?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: string, status?: string, scheduledAt?: string): Promise<Models.Message>;
|
|
100
|
+
/**
|
|
101
|
+
* Create an SMS.
|
|
102
|
+
*
|
|
103
|
+
*
|
|
104
|
+
* @param {string} messageId
|
|
105
|
+
* @param {string} content
|
|
106
|
+
* @param {string[]} topics
|
|
107
|
+
* @param {string[]} users
|
|
108
|
+
* @param {string[]} targets
|
|
109
|
+
* @param {string} description
|
|
110
|
+
* @param {string} status
|
|
111
|
+
* @param {string} scheduledAt
|
|
112
|
+
* @throws {AppwriteException}
|
|
113
|
+
* @returns {Promise}
|
|
114
|
+
*/
|
|
115
|
+
createSMSMessage(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], description?: string, status?: string, scheduledAt?: string): Promise<Models.Message>;
|
|
116
|
+
/**
|
|
117
|
+
* Update an SMS.
|
|
118
|
+
*
|
|
119
|
+
*
|
|
120
|
+
* @param {string} messageId
|
|
121
|
+
* @param {string[]} topics
|
|
122
|
+
* @param {string[]} users
|
|
123
|
+
* @param {string[]} targets
|
|
124
|
+
* @param {string} description
|
|
125
|
+
* @param {string} content
|
|
126
|
+
* @param {string} status
|
|
127
|
+
* @param {string} scheduledAt
|
|
128
|
+
* @throws {AppwriteException}
|
|
129
|
+
* @returns {Promise}
|
|
130
|
+
*/
|
|
131
|
+
updateSMS(messageId: string, topics?: string[], users?: string[], targets?: string[], description?: string, content?: string, status?: string, scheduledAt?: string): Promise<Models.Message>;
|
|
132
|
+
/**
|
|
133
|
+
* Get a message
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
* @param {string} messageId
|
|
137
|
+
* @throws {AppwriteException}
|
|
138
|
+
* @returns {Promise}
|
|
139
|
+
*/
|
|
140
|
+
getMessage(messageId: string): Promise<Models.Message>;
|
|
141
|
+
/**
|
|
142
|
+
* List message logs
|
|
143
|
+
*
|
|
144
|
+
*
|
|
145
|
+
* @param {string} messageId
|
|
146
|
+
* @param {string[]} queries
|
|
147
|
+
* @throws {AppwriteException}
|
|
148
|
+
* @returns {Promise}
|
|
149
|
+
*/
|
|
150
|
+
listMessageLogs(messageId: string, queries?: string[]): Promise<Models.LogList>;
|
|
151
|
+
/**
|
|
152
|
+
* List providers
|
|
153
|
+
*
|
|
154
|
+
*
|
|
155
|
+
* @param {string} queries
|
|
156
|
+
* @param {string} search
|
|
157
|
+
* @throws {AppwriteException}
|
|
158
|
+
* @returns {Promise}
|
|
159
|
+
*/
|
|
160
|
+
listProviders(queries?: string, search?: string): Promise<Models.ProviderList>;
|
|
161
|
+
/**
|
|
162
|
+
* Create APNS provider
|
|
163
|
+
*
|
|
164
|
+
*
|
|
165
|
+
* @param {string} providerId
|
|
166
|
+
* @param {string} name
|
|
167
|
+
* @param {string} authKey
|
|
168
|
+
* @param {string} authKeyId
|
|
169
|
+
* @param {string} teamId
|
|
170
|
+
* @param {string} bundleId
|
|
171
|
+
* @param {string} endpoint
|
|
172
|
+
* @param {boolean} enabled
|
|
173
|
+
* @throws {AppwriteException}
|
|
174
|
+
* @returns {Promise}
|
|
175
|
+
*/
|
|
176
|
+
createApnsProvider(providerId: string, name: string, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, endpoint?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
177
|
+
/**
|
|
178
|
+
* Update APNS provider
|
|
179
|
+
*
|
|
180
|
+
*
|
|
181
|
+
* @param {string} providerId
|
|
182
|
+
* @param {string} name
|
|
183
|
+
* @param {boolean} enabled
|
|
184
|
+
* @param {string} authKey
|
|
185
|
+
* @param {string} authKeyId
|
|
186
|
+
* @param {string} teamId
|
|
187
|
+
* @param {string} bundleId
|
|
188
|
+
* @param {string} endpoint
|
|
189
|
+
* @throws {AppwriteException}
|
|
190
|
+
* @returns {Promise}
|
|
191
|
+
*/
|
|
192
|
+
updateApnsProvider(providerId: string, name?: string, enabled?: boolean, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, endpoint?: string): Promise<Models.Provider>;
|
|
193
|
+
/**
|
|
194
|
+
* Create FCM provider
|
|
195
|
+
*
|
|
196
|
+
*
|
|
197
|
+
* @param {string} providerId
|
|
198
|
+
* @param {string} name
|
|
199
|
+
* @param {string} serverKey
|
|
200
|
+
* @param {boolean} enabled
|
|
201
|
+
* @throws {AppwriteException}
|
|
202
|
+
* @returns {Promise}
|
|
203
|
+
*/
|
|
204
|
+
createFcmProvider(providerId: string, name: string, serverKey?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
205
|
+
/**
|
|
206
|
+
* Update FCM provider
|
|
207
|
+
*
|
|
208
|
+
*
|
|
209
|
+
* @param {string} providerId
|
|
210
|
+
* @param {string} name
|
|
211
|
+
* @param {boolean} enabled
|
|
212
|
+
* @param {string} serverKey
|
|
213
|
+
* @throws {AppwriteException}
|
|
214
|
+
* @returns {Promise}
|
|
215
|
+
*/
|
|
216
|
+
updateFcmProvider(providerId: string, name?: string, enabled?: boolean, serverKey?: string): Promise<Models.Provider>;
|
|
217
|
+
/**
|
|
218
|
+
* Create Mailgun provider
|
|
219
|
+
*
|
|
220
|
+
*
|
|
221
|
+
* @param {string} providerId
|
|
222
|
+
* @param {string} name
|
|
223
|
+
* @param {string} from
|
|
224
|
+
* @param {string} apiKey
|
|
225
|
+
* @param {string} domain
|
|
226
|
+
* @param {boolean} isEuRegion
|
|
227
|
+
* @param {boolean} enabled
|
|
228
|
+
* @throws {AppwriteException}
|
|
229
|
+
* @returns {Promise}
|
|
230
|
+
*/
|
|
231
|
+
createMailgunProvider(providerId: string, name: string, from?: string, apiKey?: string, domain?: string, isEuRegion?: boolean, enabled?: boolean): Promise<Models.Provider>;
|
|
232
|
+
/**
|
|
233
|
+
* Update Mailgun provider
|
|
234
|
+
*
|
|
235
|
+
*
|
|
236
|
+
* @param {string} providerId
|
|
237
|
+
* @param {string} name
|
|
238
|
+
* @param {boolean} enabled
|
|
239
|
+
* @param {boolean} isEuRegion
|
|
240
|
+
* @param {string} from
|
|
241
|
+
* @param {string} apiKey
|
|
242
|
+
* @param {string} domain
|
|
243
|
+
* @throws {AppwriteException}
|
|
244
|
+
* @returns {Promise}
|
|
245
|
+
*/
|
|
246
|
+
updateMailgunProvider(providerId: string, name?: string, enabled?: boolean, isEuRegion?: boolean, from?: string, apiKey?: string, domain?: string): Promise<Models.Provider>;
|
|
247
|
+
/**
|
|
248
|
+
* Create Msg91 provider
|
|
249
|
+
*
|
|
250
|
+
*
|
|
251
|
+
* @param {string} providerId
|
|
252
|
+
* @param {string} name
|
|
253
|
+
* @param {string} from
|
|
254
|
+
* @param {string} senderId
|
|
255
|
+
* @param {string} authKey
|
|
256
|
+
* @param {boolean} enabled
|
|
257
|
+
* @throws {AppwriteException}
|
|
258
|
+
* @returns {Promise}
|
|
259
|
+
*/
|
|
260
|
+
createMsg91Provider(providerId: string, name: string, from?: string, senderId?: string, authKey?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
261
|
+
/**
|
|
262
|
+
* Update Msg91 provider
|
|
263
|
+
*
|
|
264
|
+
*
|
|
265
|
+
* @param {string} providerId
|
|
266
|
+
* @param {string} name
|
|
267
|
+
* @param {boolean} enabled
|
|
268
|
+
* @param {string} senderId
|
|
269
|
+
* @param {string} authKey
|
|
270
|
+
* @param {string} from
|
|
271
|
+
* @throws {AppwriteException}
|
|
272
|
+
* @returns {Promise}
|
|
273
|
+
*/
|
|
274
|
+
updateMsg91Provider(providerId: string, name?: string, enabled?: boolean, senderId?: string, authKey?: string, from?: string): Promise<Models.Provider>;
|
|
275
|
+
/**
|
|
276
|
+
* Create Sendgrid provider
|
|
277
|
+
*
|
|
278
|
+
*
|
|
279
|
+
* @param {string} providerId
|
|
280
|
+
* @param {string} name
|
|
281
|
+
* @param {string} from
|
|
282
|
+
* @param {string} apiKey
|
|
283
|
+
* @param {boolean} enabled
|
|
284
|
+
* @throws {AppwriteException}
|
|
285
|
+
* @returns {Promise}
|
|
286
|
+
*/
|
|
287
|
+
createSendgridProvider(providerId: string, name: string, from?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
288
|
+
/**
|
|
289
|
+
* Update Sendgrid provider
|
|
290
|
+
*
|
|
291
|
+
*
|
|
292
|
+
* @param {string} providerId
|
|
293
|
+
* @param {string} name
|
|
294
|
+
* @param {boolean} enabled
|
|
295
|
+
* @param {string} apiKey
|
|
296
|
+
* @param {string} from
|
|
297
|
+
* @throws {AppwriteException}
|
|
298
|
+
* @returns {Promise}
|
|
299
|
+
*/
|
|
300
|
+
updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, from?: string): Promise<Models.Provider>;
|
|
301
|
+
/**
|
|
302
|
+
* Create Telesign provider
|
|
303
|
+
*
|
|
304
|
+
*
|
|
305
|
+
* @param {string} providerId
|
|
306
|
+
* @param {string} name
|
|
307
|
+
* @param {string} from
|
|
308
|
+
* @param {string} username
|
|
309
|
+
* @param {string} password
|
|
310
|
+
* @param {boolean} enabled
|
|
311
|
+
* @throws {AppwriteException}
|
|
312
|
+
* @returns {Promise}
|
|
313
|
+
*/
|
|
314
|
+
createTelesignProvider(providerId: string, name: string, from?: string, username?: string, password?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
315
|
+
/**
|
|
316
|
+
* Update Telesign provider
|
|
317
|
+
*
|
|
318
|
+
*
|
|
319
|
+
* @param {string} providerId
|
|
320
|
+
* @param {string} name
|
|
321
|
+
* @param {boolean} enabled
|
|
322
|
+
* @param {string} username
|
|
323
|
+
* @param {string} password
|
|
324
|
+
* @param {string} from
|
|
325
|
+
* @throws {AppwriteException}
|
|
326
|
+
* @returns {Promise}
|
|
327
|
+
*/
|
|
328
|
+
updateTelesignProvider(providerId: string, name?: string, enabled?: boolean, username?: string, password?: string, from?: string): Promise<Models.Provider>;
|
|
329
|
+
/**
|
|
330
|
+
* Create Textmagic provider
|
|
331
|
+
*
|
|
332
|
+
*
|
|
333
|
+
* @param {string} providerId
|
|
334
|
+
* @param {string} name
|
|
335
|
+
* @param {string} from
|
|
336
|
+
* @param {string} username
|
|
337
|
+
* @param {string} apiKey
|
|
338
|
+
* @param {boolean} enabled
|
|
339
|
+
* @throws {AppwriteException}
|
|
340
|
+
* @returns {Promise}
|
|
341
|
+
*/
|
|
342
|
+
createTextmagicProvider(providerId: string, name: string, from?: string, username?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
343
|
+
/**
|
|
344
|
+
* Update Textmagic provider
|
|
345
|
+
*
|
|
346
|
+
*
|
|
347
|
+
* @param {string} providerId
|
|
348
|
+
* @param {string} name
|
|
349
|
+
* @param {boolean} enabled
|
|
350
|
+
* @param {string} username
|
|
351
|
+
* @param {string} apiKey
|
|
352
|
+
* @param {string} from
|
|
353
|
+
* @throws {AppwriteException}
|
|
354
|
+
* @returns {Promise}
|
|
355
|
+
*/
|
|
356
|
+
updateTextmagicProvider(providerId: string, name?: string, enabled?: boolean, username?: string, apiKey?: string, from?: string): Promise<Models.Provider>;
|
|
357
|
+
/**
|
|
358
|
+
* Create Twilio provider
|
|
359
|
+
*
|
|
360
|
+
*
|
|
361
|
+
* @param {string} providerId
|
|
362
|
+
* @param {string} name
|
|
363
|
+
* @param {string} from
|
|
364
|
+
* @param {string} accountSid
|
|
365
|
+
* @param {string} authToken
|
|
366
|
+
* @param {boolean} enabled
|
|
367
|
+
* @throws {AppwriteException}
|
|
368
|
+
* @returns {Promise}
|
|
369
|
+
*/
|
|
370
|
+
createTwilioProvider(providerId: string, name: string, from?: string, accountSid?: string, authToken?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
371
|
+
/**
|
|
372
|
+
* Update Twilio provider
|
|
373
|
+
*
|
|
374
|
+
*
|
|
375
|
+
* @param {string} providerId
|
|
376
|
+
* @param {string} name
|
|
377
|
+
* @param {boolean} enabled
|
|
378
|
+
* @param {string} accountSid
|
|
379
|
+
* @param {string} authToken
|
|
380
|
+
* @param {string} from
|
|
381
|
+
* @throws {AppwriteException}
|
|
382
|
+
* @returns {Promise}
|
|
383
|
+
*/
|
|
384
|
+
updateTwilioProvider(providerId: string, name?: string, enabled?: boolean, accountSid?: string, authToken?: string, from?: string): Promise<Models.Provider>;
|
|
385
|
+
/**
|
|
386
|
+
* Create Vonage provider
|
|
387
|
+
*
|
|
388
|
+
*
|
|
389
|
+
* @param {string} providerId
|
|
390
|
+
* @param {string} name
|
|
391
|
+
* @param {string} from
|
|
392
|
+
* @param {string} apiKey
|
|
393
|
+
* @param {string} apiSecret
|
|
394
|
+
* @param {boolean} enabled
|
|
395
|
+
* @throws {AppwriteException}
|
|
396
|
+
* @returns {Promise}
|
|
397
|
+
*/
|
|
398
|
+
createVonageProvider(providerId: string, name: string, from?: string, apiKey?: string, apiSecret?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
399
|
+
/**
|
|
400
|
+
* Update Vonage provider
|
|
401
|
+
*
|
|
402
|
+
*
|
|
403
|
+
* @param {string} providerId
|
|
404
|
+
* @param {string} name
|
|
405
|
+
* @param {boolean} enabled
|
|
406
|
+
* @param {string} apiKey
|
|
407
|
+
* @param {string} apiSecret
|
|
408
|
+
* @param {string} from
|
|
409
|
+
* @throws {AppwriteException}
|
|
410
|
+
* @returns {Promise}
|
|
411
|
+
*/
|
|
412
|
+
updateVonageProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, apiSecret?: string, from?: string): Promise<Models.Provider>;
|
|
413
|
+
/**
|
|
414
|
+
* Get provider
|
|
415
|
+
*
|
|
416
|
+
*
|
|
417
|
+
* @param {string} providerId
|
|
418
|
+
* @throws {AppwriteException}
|
|
419
|
+
* @returns {Promise}
|
|
420
|
+
*/
|
|
421
|
+
getProvider(providerId: string): Promise<Models.Provider>;
|
|
422
|
+
/**
|
|
423
|
+
* Delete provider
|
|
424
|
+
*
|
|
425
|
+
*
|
|
426
|
+
* @param {string} providerId
|
|
427
|
+
* @throws {AppwriteException}
|
|
428
|
+
* @returns {Promise}
|
|
429
|
+
*/
|
|
430
|
+
deleteProvider(providerId: string): Promise<{}>;
|
|
431
|
+
/**
|
|
432
|
+
* List provider logs
|
|
433
|
+
*
|
|
434
|
+
*
|
|
435
|
+
* @param {string} providerId
|
|
436
|
+
* @param {string[]} queries
|
|
437
|
+
* @throws {AppwriteException}
|
|
438
|
+
* @returns {Promise}
|
|
439
|
+
*/
|
|
440
|
+
listProviderLogs(providerId: string, queries?: string[]): Promise<Models.LogList>;
|
|
441
|
+
/**
|
|
442
|
+
* List subscriber logs
|
|
443
|
+
*
|
|
444
|
+
*
|
|
445
|
+
* @param {string} subscriberId
|
|
446
|
+
* @param {string[]} queries
|
|
447
|
+
* @throws {AppwriteException}
|
|
448
|
+
* @returns {Promise}
|
|
449
|
+
*/
|
|
450
|
+
listSubscriberLogs(subscriberId: string, queries?: string[]): Promise<Models.LogList>;
|
|
451
|
+
/**
|
|
452
|
+
* List topics.
|
|
453
|
+
*
|
|
454
|
+
*
|
|
455
|
+
* @param {string} queries
|
|
456
|
+
* @param {string} search
|
|
457
|
+
* @throws {AppwriteException}
|
|
458
|
+
* @returns {Promise}
|
|
459
|
+
*/
|
|
460
|
+
listTopics(queries?: string, search?: string): Promise<Models.TopicList>;
|
|
461
|
+
/**
|
|
462
|
+
* Create a topic.
|
|
463
|
+
*
|
|
464
|
+
*
|
|
465
|
+
* @param {string} topicId
|
|
466
|
+
* @param {string} name
|
|
467
|
+
* @param {string} description
|
|
468
|
+
* @throws {AppwriteException}
|
|
469
|
+
* @returns {Promise}
|
|
470
|
+
*/
|
|
471
|
+
createTopic(topicId: string, name: string, description?: string): Promise<Models.Topic>;
|
|
472
|
+
/**
|
|
473
|
+
* Get a topic.
|
|
474
|
+
*
|
|
475
|
+
*
|
|
476
|
+
* @param {string} topicId
|
|
477
|
+
* @throws {AppwriteException}
|
|
478
|
+
* @returns {Promise}
|
|
479
|
+
*/
|
|
480
|
+
getTopic(topicId: string): Promise<Models.Topic>;
|
|
481
|
+
/**
|
|
482
|
+
* Update a topic.
|
|
483
|
+
*
|
|
484
|
+
*
|
|
485
|
+
* @param {string} topicId
|
|
486
|
+
* @param {string} name
|
|
487
|
+
* @param {string} description
|
|
488
|
+
* @throws {AppwriteException}
|
|
489
|
+
* @returns {Promise}
|
|
490
|
+
*/
|
|
491
|
+
updateTopic(topicId: string, name?: string, description?: string): Promise<Models.Topic>;
|
|
492
|
+
/**
|
|
493
|
+
* Delete a topic.
|
|
494
|
+
*
|
|
495
|
+
*
|
|
496
|
+
* @param {string} topicId
|
|
497
|
+
* @throws {AppwriteException}
|
|
498
|
+
* @returns {Promise}
|
|
499
|
+
*/
|
|
500
|
+
deleteTopic(topicId: string): Promise<{}>;
|
|
501
|
+
/**
|
|
502
|
+
* List topic logs
|
|
503
|
+
*
|
|
504
|
+
*
|
|
505
|
+
* @param {string} topicId
|
|
506
|
+
* @param {string[]} queries
|
|
507
|
+
* @throws {AppwriteException}
|
|
508
|
+
* @returns {Promise}
|
|
509
|
+
*/
|
|
510
|
+
listTopicLogs(topicId: string, queries?: string[]): Promise<Models.LogList>;
|
|
511
|
+
/**
|
|
512
|
+
* List subscribers.
|
|
513
|
+
*
|
|
514
|
+
*
|
|
515
|
+
* @param {string} topicId
|
|
516
|
+
* @param {string} queries
|
|
517
|
+
* @param {string} search
|
|
518
|
+
* @throws {AppwriteException}
|
|
519
|
+
* @returns {Promise}
|
|
520
|
+
*/
|
|
521
|
+
listSubscribers(topicId: string, queries?: string, search?: string): Promise<Models.SubscriberList>;
|
|
522
|
+
/**
|
|
523
|
+
* Create a subscriber.
|
|
524
|
+
*
|
|
525
|
+
*
|
|
526
|
+
* @param {string} topicId
|
|
527
|
+
* @param {string} subscriberId
|
|
528
|
+
* @param {string} targetId
|
|
529
|
+
* @throws {AppwriteException}
|
|
530
|
+
* @returns {Promise}
|
|
531
|
+
*/
|
|
532
|
+
createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber>;
|
|
533
|
+
/**
|
|
534
|
+
* Get a subscriber.
|
|
535
|
+
*
|
|
536
|
+
*
|
|
537
|
+
* @param {string} topicId
|
|
538
|
+
* @param {string} subscriberId
|
|
539
|
+
* @throws {AppwriteException}
|
|
540
|
+
* @returns {Promise}
|
|
541
|
+
*/
|
|
542
|
+
getSubscriber(topicId: string, subscriberId: string): Promise<Models.Subscriber>;
|
|
543
|
+
/**
|
|
544
|
+
* Delete a subscriber.
|
|
545
|
+
*
|
|
546
|
+
*
|
|
547
|
+
* @param {string} topicId
|
|
548
|
+
* @param {string} subscriberId
|
|
549
|
+
* @throws {AppwriteException}
|
|
550
|
+
* @returns {Promise}
|
|
551
|
+
*/
|
|
552
|
+
deleteSubscriber(topicId: string, subscriberId: string): Promise<{}>;
|
|
553
|
+
}
|
|
@@ -7,13 +7,11 @@ export declare class Project extends Service {
|
|
|
7
7
|
* Get usage stats for a project
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
|
-
* @param {string}
|
|
11
|
-
* @param {string} endDate
|
|
12
|
-
* @param {string} period
|
|
10
|
+
* @param {string} range
|
|
13
11
|
* @throws {AppwriteException}
|
|
14
12
|
* @returns {Promise}
|
|
15
13
|
*/
|
|
16
|
-
getUsage(
|
|
14
|
+
getUsage(range?: string): Promise<Models.UsageProject>;
|
|
17
15
|
/**
|
|
18
16
|
* List Variables
|
|
19
17
|
*
|
|
@@ -101,6 +101,16 @@ export declare class Projects extends Service {
|
|
|
101
101
|
* @returns {Promise}
|
|
102
102
|
*/
|
|
103
103
|
updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project>;
|
|
104
|
+
/**
|
|
105
|
+
* Update Project user minimum sessions factors
|
|
106
|
+
*
|
|
107
|
+
*
|
|
108
|
+
* @param {string} projectId
|
|
109
|
+
* @param {number} factors
|
|
110
|
+
* @throws {AppwriteException}
|
|
111
|
+
* @returns {Promise}
|
|
112
|
+
*/
|
|
113
|
+
updateAuthMfaFactors(projectId: string, factors: number): Promise<Models.Project>;
|
|
104
114
|
/**
|
|
105
115
|
* Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
|
|
106
116
|
*
|
|
@@ -387,6 +397,16 @@ export declare class Projects extends Service {
|
|
|
387
397
|
* @returns {Promise}
|
|
388
398
|
*/
|
|
389
399
|
deleteSmsTemplate(projectId: string, type: string, locale: string): Promise<Models.SmsTemplate>;
|
|
400
|
+
/**
|
|
401
|
+
* Get usage stats for a project
|
|
402
|
+
*
|
|
403
|
+
*
|
|
404
|
+
* @param {string} projectId
|
|
405
|
+
* @param {string} range
|
|
406
|
+
* @throws {AppwriteException}
|
|
407
|
+
* @returns {Promise}
|
|
408
|
+
*/
|
|
409
|
+
getUsage(projectId: string, range?: string): Promise<Models.UsageProject>;
|
|
390
410
|
/**
|
|
391
411
|
* List webhooks
|
|
392
412
|
*
|