chore: generate sdks and examples
This commit is contained in:
parent
14ec9334a0
commit
5a618840b9
|
@ -7,7 +7,7 @@ let client = Client()
|
|||
|
||||
let account = Account(client)
|
||||
|
||||
let user = try await account.deleteMfaAuthenticator(
|
||||
let result = try await account.deleteMfaAuthenticator(
|
||||
type: .totp,
|
||||
otp: "<OTP>"
|
||||
)
|
||||
|
|
|
@ -2,6 +2,7 @@ mutation {
|
|||
accountCreateAnonymousSession {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -5,6 +5,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -5,6 +5,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -3,35 +3,6 @@ mutation {
|
|||
type: "totp",
|
||||
otp: "<OTP>"
|
||||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
name
|
||||
password
|
||||
hash
|
||||
hashOptions
|
||||
registration
|
||||
status
|
||||
labels
|
||||
passwordUpdate
|
||||
email
|
||||
phone
|
||||
emailVerification
|
||||
phoneVerification
|
||||
mfa
|
||||
prefs {
|
||||
data
|
||||
}
|
||||
targets {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
name
|
||||
userId
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ query {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -3,5 +3,6 @@ query {
|
|||
totp
|
||||
phone
|
||||
email
|
||||
recoveryCode
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ query {
|
|||
sessions {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -5,6 +5,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -5,6 +5,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -4,6 +4,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -10,3 +10,4 @@ appwrite messaging updateEmail \
|
|||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@ const result = await messaging.updateEmail(
|
|||
false, // html (optional)
|
||||
[], // cc (optional)
|
||||
[], // bcc (optional)
|
||||
'' // scheduledAt (optional)
|
||||
'', // scheduledAt (optional)
|
||||
[] // attachments (optional)
|
||||
);
|
||||
|
||||
console.log(response);
|
||||
|
|
|
@ -19,4 +19,5 @@ Message result = await messaging.updateEmail(
|
|||
cc: [], // (optional)
|
||||
bcc: [], // (optional)
|
||||
scheduledAt: '', // (optional)
|
||||
attachments: [], // (optional)
|
||||
);
|
||||
|
|
|
@ -18,5 +18,6 @@ const response = await messaging.updateEmail(
|
|||
false, // html (optional)
|
||||
[], // cc (optional)
|
||||
[], // bcc (optional)
|
||||
'' // scheduledAt (optional)
|
||||
'', // scheduledAt (optional)
|
||||
[] // attachments (optional)
|
||||
);
|
||||
|
|
|
@ -20,5 +20,6 @@ Message result = await messaging.UpdateEmail(
|
|||
html: false, // optional
|
||||
cc: new List<string>(), // optional
|
||||
bcc: new List<string>(), // optional
|
||||
scheduledAt: "" // optional
|
||||
scheduledAt: "", // optional
|
||||
attachments: new List<string>() // optional
|
||||
);
|
|
@ -2,6 +2,7 @@ mutation {
|
|||
accountCreateAnonymousSession {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -5,6 +5,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -5,6 +5,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -3,35 +3,6 @@ mutation {
|
|||
type: "totp",
|
||||
otp: "<OTP>"
|
||||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
name
|
||||
password
|
||||
hash
|
||||
hashOptions
|
||||
registration
|
||||
status
|
||||
labels
|
||||
passwordUpdate
|
||||
email
|
||||
phone
|
||||
emailVerification
|
||||
phoneVerification
|
||||
mfa
|
||||
prefs {
|
||||
data
|
||||
}
|
||||
targets {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
name
|
||||
userId
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ query {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -3,5 +3,6 @@ query {
|
|||
totp
|
||||
phone
|
||||
email
|
||||
recoveryCode
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ query {
|
|||
sessions {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -5,6 +5,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -5,6 +5,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -4,6 +4,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -10,7 +10,8 @@ mutation {
|
|||
html: false,
|
||||
cc: [],
|
||||
bcc: [],
|
||||
scheduledAt: ""
|
||||
scheduledAt: "",
|
||||
attachments: []
|
||||
) {
|
||||
_id
|
||||
_createdAt
|
||||
|
|
|
@ -4,6 +4,7 @@ mutation {
|
|||
) {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -5,5 +5,6 @@ query {
|
|||
totp
|
||||
phone
|
||||
email
|
||||
recoveryCode
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ query {
|
|||
sessions {
|
||||
_id
|
||||
_createdAt
|
||||
_updatedAt
|
||||
userId
|
||||
expire
|
||||
provider
|
||||
|
|
|
@ -21,6 +21,7 @@ messaging.updateEmail(
|
|||
listOf(), // cc (optional)
|
||||
listOf(), // bcc (optional)
|
||||
"", // scheduledAt (optional)
|
||||
listOf(), // attachments (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
|
|
@ -20,5 +20,6 @@ val response = messaging.updateEmail(
|
|||
html = false, // optional
|
||||
cc = listOf(), // optional
|
||||
bcc = listOf(), // optional
|
||||
scheduledAt = "" // optional
|
||||
scheduledAt = "", // optional
|
||||
attachments = listOf() // optional
|
||||
)
|
||||
|
|
|
@ -10,7 +10,7 @@ const functions = new sdk.Functions(client);
|
|||
|
||||
const result = await functions.createDeployment(
|
||||
'<FUNCTION_ID>', // functionId
|
||||
InputFile.fromPath('/path/to/file.png', 'file.png'), // code
|
||||
InputFile.fromPath('/path/to/file', 'filename'), // code
|
||||
false, // activate
|
||||
'<ENTRYPOINT>', // entrypoint (optional)
|
||||
'<COMMANDS>' // commands (optional)
|
||||
|
|
|
@ -18,5 +18,6 @@ const result = await messaging.updateEmail(
|
|||
false, // html (optional)
|
||||
[], // cc (optional)
|
||||
[], // bcc (optional)
|
||||
'' // scheduledAt (optional)
|
||||
'', // scheduledAt (optional)
|
||||
[] // attachments (optional)
|
||||
);
|
||||
|
|
|
@ -11,6 +11,6 @@ const storage = new sdk.Storage(client);
|
|||
const result = await storage.createFile(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>', // fileId
|
||||
InputFile.fromPath('/path/to/file.png', 'file.png'), // file
|
||||
InputFile.fromPath('/path/to/file', 'filename'), // file
|
||||
["read("any")"] // permissions (optional)
|
||||
);
|
||||
|
|
|
@ -21,5 +21,6 @@ $result = $messaging->updateEmail(
|
|||
html: false, // optional
|
||||
cc: [], // optional
|
||||
bcc: [], // optional
|
||||
scheduledAt: '' // optional
|
||||
scheduledAt: '', // optional
|
||||
attachments: [] // optional
|
||||
);
|
|
@ -18,5 +18,6 @@ result = messaging.update_email(
|
|||
html = False, # optional
|
||||
cc = [], # optional
|
||||
bcc = [], # optional
|
||||
scheduled_at = '' # optional
|
||||
scheduled_at = '', # optional
|
||||
attachments = [] # optional
|
||||
)
|
||||
|
|
|
@ -15,5 +15,6 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
|
|||
"html": false,
|
||||
"cc": [],
|
||||
"bcc": [],
|
||||
"scheduledAt":
|
||||
"scheduledAt": ,
|
||||
"attachments": []
|
||||
}
|
||||
|
|
|
@ -20,5 +20,6 @@ result = messaging.update_email(
|
|||
html: false, # optional
|
||||
cc: [], # optional
|
||||
bcc: [], # optional
|
||||
scheduled_at: '' # optional
|
||||
scheduled_at: '', # optional
|
||||
attachments: [] # optional
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ let client = Client()
|
|||
|
||||
let account = Account(client)
|
||||
|
||||
let user = try await account.deleteMfaAuthenticator(
|
||||
let result = try await account.deleteMfaAuthenticator(
|
||||
type: .totp,
|
||||
otp: "<OTP>"
|
||||
)
|
||||
|
|
|
@ -18,6 +18,7 @@ let message = try await messaging.updateEmail(
|
|||
html: false, // optional
|
||||
cc: [], // optional
|
||||
bcc: [], // optional
|
||||
scheduledAt: "" // optional
|
||||
scheduledAt: "", // optional
|
||||
attachments: [] // optional
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue