|
2622 | 2622 | "tags": [ |
2623 | 2623 | "account" |
2624 | 2624 | ], |
2625 | | - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).", |
| 2625 | + "description": "Sends the user an email with a secret key for creating a session. If the email address has never been used, a **new account is created** using the provided `userId`. Otherwise, if the email address is already attached to an account, the **user ID is ignored**. Then, the user will receive an email with the one-time password. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", |
2626 | 2626 | "responses": { |
2627 | 2627 | "201": { |
2628 | 2628 | "description": "Token", |
|
2673 | 2673 | "properties": { |
2674 | 2674 | "userId": { |
2675 | 2675 | "type": "string", |
2676 | | - "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", |
| 2676 | + "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", |
2677 | 2677 | "x-example": "<USER_ID>" |
2678 | 2678 | }, |
2679 | 2679 | "email": { |
|
2755 | 2755 | "properties": { |
2756 | 2756 | "userId": { |
2757 | 2757 | "type": "string", |
2758 | | - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", |
| 2758 | + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", |
2759 | 2759 | "x-example": "<USER_ID>" |
2760 | 2760 | }, |
2761 | 2761 | "email": { |
|
2977 | 2977 | "properties": { |
2978 | 2978 | "userId": { |
2979 | 2979 | "type": "string", |
2980 | | - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", |
| 2980 | + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the phone number has never been used, a new account is created using the provided userId. Otherwise, if the phone number is already attached to an account, the user ID is ignored.", |
2981 | 2981 | "x-example": "<USER_ID>" |
2982 | 2982 | }, |
2983 | 2983 | "phone": { |
|
3440 | 3440 | "parameters": [ |
3441 | 3441 | { |
3442 | 3442 | "name": "code", |
3443 | | - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", |
| 3443 | + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", |
3444 | 3444 | "required": true, |
3445 | 3445 | "schema": { |
3446 | 3446 | "type": "string", |
|
3458 | 3458 | "mastercard", |
3459 | 3459 | "naranja", |
3460 | 3460 | "targeta-shopping", |
3461 | | - "union-china-pay", |
| 3461 | + "unionpay", |
3462 | 3462 | "visa", |
3463 | 3463 | "mir", |
3464 | 3464 | "maestro", |
|
3478 | 3478 | "Mastercard", |
3479 | 3479 | "Naranja", |
3480 | 3480 | "Tarjeta Shopping", |
3481 | | - "Union China Pay", |
| 3481 | + "Union Pay", |
3482 | 3482 | "Visa", |
3483 | 3483 | "MIR", |
3484 | 3484 | "Maestro", |
|
9847 | 9847 | "description": "Function ID.", |
9848 | 9848 | "x-example": "5e5ea6g16897e" |
9849 | 9849 | }, |
| 9850 | + "deploymentId": { |
| 9851 | + "type": "string", |
| 9852 | + "description": "Function's deployment ID used to create the execution.", |
| 9853 | + "x-example": "5e5ea5c16897e" |
| 9854 | + }, |
9850 | 9855 | "trigger": { |
9851 | 9856 | "type": "string", |
9852 | 9857 | "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", |
|
9931 | 9936 | "$updatedAt", |
9932 | 9937 | "$permissions", |
9933 | 9938 | "functionId", |
| 9939 | + "deploymentId", |
9934 | 9940 | "trigger", |
9935 | 9941 | "status", |
9936 | 9942 | "requestMethod", |
|
9951 | 9957 | "any" |
9952 | 9958 | ], |
9953 | 9959 | "functionId": "5e5ea6g16897e", |
| 9960 | + "deploymentId": "5e5ea5c16897e", |
9954 | 9961 | "trigger": "http", |
9955 | 9962 | "status": "processing", |
9956 | 9963 | "requestMethod": "GET", |
|
0 commit comments