1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

chore: generate sdks and examples

This commit is contained in:
Steven Nguyen 2024-05-20 15:24:54 -07:00
parent 14ec9334a0
commit 5a618840b9
No known key found for this signature in database
41 changed files with 50 additions and 73 deletions

View file

@ -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>"
)

View file

@ -2,6 +2,7 @@ mutation {
accountCreateAnonymousSession {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -5,6 +5,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -5,6 +5,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -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
}
}

View file

@ -4,6 +4,7 @@ query {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -3,5 +3,6 @@ query {
totp
phone
email
recoveryCode
}
}

View file

@ -4,6 +4,7 @@ query {
sessions {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -5,6 +5,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -5,6 +5,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -4,6 +4,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -10,3 +10,4 @@ appwrite messaging updateEmail \

View file

@ -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);

View file

@ -19,4 +19,5 @@ Message result = await messaging.updateEmail(
cc: [], // (optional)
bcc: [], // (optional)
scheduledAt: '', // (optional)
attachments: [], // (optional)
);

View file

@ -18,5 +18,6 @@ const response = await messaging.updateEmail(
false, // html (optional)
[], // cc (optional)
[], // bcc (optional)
'' // scheduledAt (optional)
'', // scheduledAt (optional)
[] // attachments (optional)
);

View file

@ -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
);

View file

@ -2,6 +2,7 @@ mutation {
accountCreateAnonymousSession {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -5,6 +5,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -5,6 +5,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -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
}
}

View file

@ -4,6 +4,7 @@ query {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -3,5 +3,6 @@ query {
totp
phone
email
recoveryCode
}
}

View file

@ -4,6 +4,7 @@ query {
sessions {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -5,6 +5,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -5,6 +5,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -4,6 +4,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -10,7 +10,8 @@ mutation {
html: false,
cc: [],
bcc: [],
scheduledAt: ""
scheduledAt: "",
attachments: []
) {
_id
_createdAt

View file

@ -4,6 +4,7 @@ mutation {
) {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -5,5 +5,6 @@ query {
totp
phone
email
recoveryCode
}
}

View file

@ -6,6 +6,7 @@ query {
sessions {
_id
_createdAt
_updatedAt
userId
expire
provider

View file

@ -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();

View file

@ -20,5 +20,6 @@ val response = messaging.updateEmail(
html = false, // optional
cc = listOf(), // optional
bcc = listOf(), // optional
scheduledAt = "" // optional
scheduledAt = "", // optional
attachments = listOf() // optional
)

View file

@ -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)

View file

@ -18,5 +18,6 @@ const result = await messaging.updateEmail(
false, // html (optional)
[], // cc (optional)
[], // bcc (optional)
'' // scheduledAt (optional)
'', // scheduledAt (optional)
[] // attachments (optional)
);

View file

@ -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)
);

View file

@ -21,5 +21,6 @@ $result = $messaging->updateEmail(
html: false, // optional
cc: [], // optional
bcc: [], // optional
scheduledAt: '' // optional
scheduledAt: '', // optional
attachments: [] // optional
);

View file

@ -18,5 +18,6 @@ result = messaging.update_email(
html = False, # optional
cc = [], # optional
bcc = [], # optional
scheduled_at = '' # optional
scheduled_at = '', # optional
attachments = [] # optional
)

View file

@ -15,5 +15,6 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
"html": false,
"cc": [],
"bcc": [],
"scheduledAt":
"scheduledAt": ,
"attachments": []
}

View file

@ -20,5 +20,6 @@ result = messaging.update_email(
html: false, # optional
cc: [], # optional
bcc: [], # optional
scheduled_at: '' # optional
scheduled_at: '', # optional
attachments: [] # optional
)

View file

@ -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>"
)

View file

@ -18,6 +18,7 @@ let message = try await messaging.updateEmail(
html: false, // optional
cc: [], // optional
bcc: [], // optional
scheduledAt: "" // optional
scheduledAt: "", // optional
attachments: [] // optional
)