Skip to content

Commit 12786d7

Browse files
committed
Add 1.8.x support
1 parent 2604c29 commit 12786d7

File tree

5 files changed

+40
-40
lines changed

5 files changed

+40
-40
lines changed

lib/commands/account.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,7 @@ account
20572057

20582058
account
20592059
.command(`create-mfa-authenticator`)
2060-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'create-mfa-authenticator' instead] Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.`)
2060+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account create-mfa-authenticator' instead] Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.`)
20612061
.requiredOption(`--type <type>`, `Type of authenticator. Must be 'totp'`)
20622062
.action(actionRunner(accountCreateMfaAuthenticator))
20632063

@@ -2069,7 +2069,7 @@ account
20692069

20702070
account
20712071
.command(`update-mfa-authenticator`)
2072-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-mfa-authenticator' instead] Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.`)
2072+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account update-mfa-authenticator' instead] Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.`)
20732073
.requiredOption(`--type <type>`, `Type of authenticator.`)
20742074
.requiredOption(`--otp <otp>`, `Valid verification token.`)
20752075
.action(actionRunner(accountUpdateMfaAuthenticator))
@@ -2083,7 +2083,7 @@ account
20832083

20842084
account
20852085
.command(`delete-mfa-authenticator`)
2086-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'delete-mfa-authenticator' instead] Delete an authenticator for a user by ID.`)
2086+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account delete-mfa-authenticator' instead] Delete an authenticator for a user by ID.`)
20872087
.requiredOption(`--type <type>`, `Type of authenticator.`)
20882088
.action(actionRunner(accountDeleteMfaAuthenticator))
20892089

@@ -2095,7 +2095,7 @@ account
20952095

20962096
account
20972097
.command(`create-mfa-challenge`)
2098-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'create-mfa-challenge' instead] Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.`)
2098+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account create-mfa-challenge' instead] Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.`)
20992099
.requiredOption(`--factor <factor>`, `Factor used for verification. Must be one of following: 'email', 'phone', 'totp', 'recoveryCode'.`)
21002100
.action(actionRunner(accountCreateMfaChallenge))
21012101

@@ -2107,7 +2107,7 @@ account
21072107

21082108
account
21092109
.command(`update-mfa-challenge`)
2110-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-mfa-challenge' instead] Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.`)
2110+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account update-mfa-challenge' instead] Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.`)
21112111
.requiredOption(`--challenge-id <challenge-id>`, `ID of the challenge.`)
21122112
.requiredOption(`--otp <otp>`, `Valid verification token.`)
21132113
.action(actionRunner(accountUpdateMfaChallenge))
@@ -2121,7 +2121,7 @@ account
21212121

21222122
account
21232123
.command(`list-mfa-factors`)
2124-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'list-mfa-factors' instead] List the factors available on the account to be used as a MFA challange.`)
2124+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account list-mfa-factors' instead] List the factors available on the account to be used as a MFA challange.`)
21252125
.action(actionRunner(accountListMfaFactors))
21262126

21272127
account
@@ -2131,7 +2131,7 @@ account
21312131

21322132
account
21332133
.command(`get-mfa-recovery-codes`)
2134-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'get-mfa-recovery-codes' instead] Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.`)
2134+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account get-mfa-recovery-codes' instead] Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.`)
21352135
.action(actionRunner(accountGetMfaRecoveryCodes))
21362136

21372137
account
@@ -2141,7 +2141,7 @@ account
21412141

21422142
account
21432143
.command(`create-mfa-recovery-codes`)
2144-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'create-mfa-recovery-codes' instead] Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.`)
2144+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account create-mfa-recovery-codes' instead] Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.`)
21452145
.action(actionRunner(accountCreateMfaRecoveryCodes))
21462146

21472147
account
@@ -2151,7 +2151,7 @@ account
21512151

21522152
account
21532153
.command(`update-mfa-recovery-codes`)
2154-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-mfa-recovery-codes' instead] Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.`)
2154+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account update-mfa-recovery-codes' instead] Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.`)
21552155
.action(actionRunner(accountUpdateMfaRecoveryCodes))
21562156

21572157
account

lib/commands/messaging.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3009,7 +3009,7 @@ messaging
30093009

30103010
messaging
30113011
.command(`create-sms`)
3012-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'create-sms' instead] Create a new SMS message.`)
3012+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'messaging create-sms' instead] Create a new SMS message.`)
30133013
.requiredOption(`--message-id <message-id>`, `Message 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.`)
30143014
.requiredOption(`--content <content>`, `SMS Content.`)
30153015
.option(`--topics [topics...]`, `List of Topic IDs.`)
@@ -3033,7 +3033,7 @@ messaging
30333033

30343034
messaging
30353035
.command(`update-sms`)
3036-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-sms' instead] Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. `)
3036+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'messaging update-sms' instead] Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. `)
30373037
.requiredOption(`--message-id <message-id>`, `Message ID.`)
30383038
.option(`--topics [topics...]`, `List of Topic IDs.`)
30393039
.option(`--users [users...]`, `List of User IDs.`)
@@ -3093,7 +3093,7 @@ messaging
30933093

30943094
messaging
30953095
.command(`create-apns-provider`)
3096-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'create-apns-provider' instead] Create a new Apple Push Notification service provider.`)
3096+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'messaging create-apns-provider' instead] Create a new Apple Push Notification service provider.`)
30973097
.requiredOption(`--provider-id <provider-id>`, `Provider 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.`)
30983098
.requiredOption(`--name <name>`, `Provider name.`)
30993099
.option(`--auth-key <auth-key>`, `APNS authentication key.`)
@@ -3119,7 +3119,7 @@ messaging
31193119

31203120
messaging
31213121
.command(`update-apns-provider`)
3122-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-apns-provider' instead] Update a Apple Push Notification service provider by its unique ID.`)
3122+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'messaging update-apns-provider' instead] Update a Apple Push Notification service provider by its unique ID.`)
31233123
.requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
31243124
.option(`--name <name>`, `Provider name.`)
31253125
.option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
@@ -3145,7 +3145,7 @@ messaging
31453145

31463146
messaging
31473147
.command(`create-fcm-provider`)
3148-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'create-fcm-provider' instead] Create a new Firebase Cloud Messaging provider.`)
3148+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'messaging create-fcm-provider' instead] Create a new Firebase Cloud Messaging provider.`)
31493149
.requiredOption(`--provider-id <provider-id>`, `Provider 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.`)
31503150
.requiredOption(`--name <name>`, `Provider name.`)
31513151
.option(`--service-account-json <service-account-json>`, `FCM service account JSON.`)
@@ -3163,7 +3163,7 @@ messaging
31633163

31643164
messaging
31653165
.command(`update-fcm-provider`)
3166-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-fcm-provider' instead] Update a Firebase Cloud Messaging provider by its unique ID.`)
3166+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'messaging update-fcm-provider' instead] Update a Firebase Cloud Messaging provider by its unique ID.`)
31673167
.requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
31683168
.option(`--name <name>`, `Provider name.`)
31693169
.option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
@@ -3259,7 +3259,7 @@ messaging
32593259

32603260
messaging
32613261
.command(`create-smtp-provider`)
3262-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'create-smtp-provider' instead] Create a new SMTP provider.`)
3262+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'messaging create-smtp-provider' instead] Create a new SMTP provider.`)
32633263
.requiredOption(`--provider-id <provider-id>`, `Provider 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.`)
32643264
.requiredOption(`--name <name>`, `Provider name.`)
32653265
.requiredOption(`--host <host>`, `SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as 'smtp1.example.com:25;smtp2.example.com'. You can also specify encryption type, for example: 'tls://smtp1.example.com:587;ssl://smtp2.example.com:465"'. Hosts will be tried in order.`)
@@ -3297,7 +3297,7 @@ messaging
32973297

32983298
messaging
32993299
.command(`update-smtp-provider`)
3300-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-smtp-provider' instead] Update a SMTP provider by its unique ID.`)
3300+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'messaging update-smtp-provider' instead] Update a SMTP provider by its unique ID.`)
33013301
.requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
33023302
.option(`--name <name>`, `Provider name.`)
33033303
.option(`--host <host>`, `SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as 'smtp1.example.com:25;smtp2.example.com'. You can also specify encryption type, for example: 'tls://smtp1.example.com:587;ssl://smtp2.example.com:465"'. Hosts will be tried in order.`)

lib/commands/projects.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,7 +2514,7 @@ projects
25142514

25152515
projects
25162516
.command(`update-api-status`)
2517-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-api-status' instead] Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.`)
2517+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'projects update-api-status' instead] Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.`)
25182518
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
25192519
.requiredOption(`--api <api>`, `API name.`)
25202520
.requiredOption(`--status [value]`, `API status.`, (value) => value === undefined ? true : parseBool(value))
@@ -2530,7 +2530,7 @@ projects
25302530

25312531
projects
25322532
.command(`update-api-status-all`)
2533-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-api-status-all' instead] Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.`)
2533+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'projects update-api-status-all' instead] Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.`)
25342534
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
25352535
.requiredOption(`--status [value]`, `API status.`, (value) => value === undefined ? true : parseBool(value))
25362536
.action(actionRunner(projectsUpdateApiStatusAll))
@@ -2782,7 +2782,7 @@ projects
27822782

27832783
projects
27842784
.command(`update-smtp`)
2785-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-smtp' instead] Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. `)
2785+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'projects update-smtp' instead] Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. `)
27862786
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
27872787
.requiredOption(`--enabled [value]`, `Enable custom SMTP service`, (value) => value === undefined ? true : parseBool(value))
27882788
.option(`--sender-name <sender-name>`, `Name of the email sender`)
@@ -2812,7 +2812,7 @@ projects
28122812

28132813
projects
28142814
.command(`create-smtp-test`)
2815-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'create-smtp-test' instead] Send a test email to verify SMTP configuration. `)
2815+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'projects create-smtp-test' instead] Send a test email to verify SMTP configuration. `)
28162816
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
28172817
.requiredOption(`--emails [emails...]`, `Array of emails to send test email to. Maximum of 10 emails are allowed.`)
28182818
.requiredOption(`--sender-name <sender-name>`, `Name of the email sender`)
@@ -2878,7 +2878,7 @@ projects
28782878

28792879
projects
28802880
.command(`get-sms-template`)
2881-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'get-sms-template' instead] Get a custom SMS template for the specified locale and type returning it's contents.`)
2881+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'projects get-sms-template' instead] Get a custom SMS template for the specified locale and type returning it's contents.`)
28822882
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
28832883
.requiredOption(`--type <type>`, `Template type`)
28842884
.requiredOption(`--locale <locale>`, `Template locale`)
@@ -2894,7 +2894,7 @@ projects
28942894

28952895
projects
28962896
.command(`update-sms-template`)
2897-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'update-sms-template' instead] Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. `)
2897+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'projects update-sms-template' instead] Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. `)
28982898
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
28992899
.requiredOption(`--type <type>`, `Template type`)
29002900
.requiredOption(`--locale <locale>`, `Template locale`)
@@ -2912,7 +2912,7 @@ projects
29122912

29132913
projects
29142914
.command(`delete-sms-template`)
2915-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'delete-sms-template' instead] Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. `)
2915+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'projects delete-sms-template' instead] Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. `)
29162916
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
29172917
.requiredOption(`--type <type>`, `Template type`)
29182918
.requiredOption(`--locale <locale>`, `Template locale`)

0 commit comments

Comments
 (0)