@@ -26,19 +26,6 @@ export const project = new Command("project")
2626 helpWidth : process . stdout . columns || 80 ,
2727 } ) ;
2828
29- const projectUpdateAuthMethodCommand = project
30- . command ( `update-auth-method` )
31- . description ( `Update properties of a specific auth method. Use this endpoint to enable or disable a method in your project. ` )
32- . requiredOption ( `--method-id <method-id>` , `Auth Method ID. Possible values: email-password,magic-url,email-otp,anonymous,invites,jwt,phone` )
33- . requiredOption ( `--enabled <enabled>` , `Auth method status.` , parseBool )
34- . action (
35- actionRunner (
36- async ( { methodId, enabled } ) =>
37- parse ( await ( await getProjectClient ( ) ) . updateAuthMethod ( methodId , enabled ) ) ,
38- ) ,
39- ) ;
40-
41-
4229const projectUpdateCanonicalEmailsCommand = project
4330 . command ( `update-canonical-emails` )
4431 . description ( `Configure if canonical emails (alias subaddresses and emails with suffixes) are allowed during new users sign-ups in this project.` )
@@ -159,73 +146,6 @@ const projectUpdateLabelsCommand = project
159146 ) ;
160147
161148
162- const projectListMockPhonesCommand = project
163- . command ( `list-mock-phones` )
164- . description ( `Get a list of all mock phones in the project. This endpoint returns an array of all mock phones and their OTPs.` )
165- . option (
166- `--total [value]` ,
167- `When set to false, the total count returned will be 0 and will not be calculated.` ,
168- ( value : string | undefined ) =>
169- value === undefined ? true : parseBool ( value ) ,
170- )
171- . action (
172- actionRunner (
173- async ( { total } ) =>
174- parse ( await ( await getProjectClient ( ) ) . listMockPhones ( total ) ) ,
175- ) ,
176- ) ;
177-
178-
179- const projectCreateMockPhoneCommand = project
180- . command ( `create-mock-phone` )
181- . description ( `Create a new mock phone for your project. Use this endpoint to register a mock phone number and its sign-in OTP for your testers.` )
182- . requiredOption ( `--number <number>` , `Phone number to associate with the mock phone. Must be a valid E.164 formatted phone number.` )
183- . requiredOption ( `--otp <otp>` , `One-time password (OTP) to associate with the mock phone. Must be a 6-digit numeric code.` )
184- . action (
185- actionRunner (
186- async ( { number, otp } ) =>
187- parse ( await ( await getProjectClient ( ) ) . createMockPhone ( number , otp ) ) ,
188- ) ,
189- ) ;
190-
191-
192- const projectGetMockPhoneCommand = project
193- . command ( `get-mock-phone` )
194- . description ( `Get a mock phone by its unique number. This endpoint returns the mock phone's OTP.` )
195- . requiredOption ( `--number <number>` , `Phone number associated with the mock phone. Must be a valid E.164 formatted phone number.` )
196- . action (
197- actionRunner (
198- async ( { number } ) =>
199- parse ( await ( await getProjectClient ( ) ) . getMockPhone ( number ) ) ,
200- ) ,
201- ) ;
202-
203-
204- const projectUpdateMockPhoneCommand = project
205- . command ( `update-mock-phone` )
206- . description ( `Update a mock phone by its unique number. Use this endpoint to update the mock phone's OTP.` )
207- . requiredOption ( `--number <number>` , `Phone number associated with the mock phone. Must be a valid E.164 formatted phone number.` )
208- . requiredOption ( `--otp <otp>` , `One-time password (OTP) to associate with the mock phone. Must be a 6-digit numeric code.` )
209- . action (
210- actionRunner (
211- async ( { number, otp } ) =>
212- parse ( await ( await getProjectClient ( ) ) . updateMockPhone ( number , otp ) ) ,
213- ) ,
214- ) ;
215-
216-
217- const projectDeleteMockPhoneCommand = project
218- . command ( `delete-mock-phone` )
219- . description ( `Delete a mock phone by its unique number. This endpoint removes the mock phone and its OTP configuration from the project.` )
220- . requiredOption ( `--number <number>` , `Phone number associated with the mock phone. Must be a valid E.164 formatted phone number.` )
221- . action (
222- actionRunner (
223- async ( { number } ) =>
224- parse ( await ( await getProjectClient ( ) ) . deleteMockPhone ( number ) ) ,
225- ) ,
226- ) ;
227-
228-
229149const projectListPlatformsCommand = project
230150 . command ( `list-platforms` )
231151 . description ( `Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.` )
@@ -611,23 +531,6 @@ const projectCreateSMTPTestCommand = project
611531 ) ;
612532
613533
614- const projectListEmailTemplatesCommand = project
615- . command ( `list-email-templates` )
616- . description ( `Get a list of all custom email templates configured for the project. This endpoint returns an array of all configured email templates and their locales.` )
617- . option (
618- `--total [value]` ,
619- `When set to false, the total count returned will be 0 and will not be calculated.` ,
620- ( value : string | undefined ) =>
621- value === undefined ? true : parseBool ( value ) ,
622- )
623- . action (
624- actionRunner (
625- async ( { total } ) =>
626- parse ( await ( await getProjectClient ( ) ) . listEmailTemplates ( total ) ) ,
627- ) ,
628- ) ;
629-
630-
631534const projectUpdateEmailTemplateCommand = project
632535 . command ( `update-email-template` )
633536 . description ( `Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.` )
0 commit comments