@mailmodo/cli 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,7 +63,7 @@ export default class Login extends BaseCommand {
63
63
  }
64
64
  const trimmedKey = apiKey.trim();
65
65
  const client = new ApiClient(trimmedKey);
66
- const response = await this.withApiSpinner({ json: flags.json, text: ' Validating API key...' }, () => client.post(API_ENDPOINTS.AUTH_VALIDATE, {}));
66
+ const response = await this.withApiSpinner({ json: flags.json, text: ' Validating API key...' }, () => client.get(API_ENDPOINTS.AUTH_VALIDATE));
67
67
  if (!response.ok) {
68
68
  this.handleApiError(response);
69
69
  }
@@ -1,22 +1,22 @@
1
1
  export declare const API_BASE_URL: string;
2
2
  export declare const API_ENDPOINTS: Readonly<{
3
- ANALYTICS: "/api/analytics";
4
- ANALYZE: "/api/analyze";
5
- ASSETS_LOGO: "/api/assets/logo";
6
- AUTH_VALIDATE: "/api/auth/validate";
7
- BILLING_CAP: "/api/billing/cap";
8
- BILLING_STATUS: "/api/billing/status";
9
- CONTACTS: "/api/contacts";
10
- CONTACTS_EXPORT: "/api/contacts/export";
11
- DOMAIN: "/api/domain";
12
- DOMAIN_STATUS: "/api/domain/status";
13
- DOMAIN_VERIFY: "/api/domain/verify";
14
- EDIT: "/api/edit";
15
- EVENTS: "/api/events";
16
- GENERATE: "/api/generate";
17
- LOGS: "/api/logs";
18
- PREVIEW: "/api/preview";
19
- SEQUENCES: "/api/sequences";
3
+ ANALYTICS: "/analytics";
4
+ ANALYZE: "/analyze";
5
+ ASSETS_LOGO: "/assets/logo";
6
+ AUTH_VALIDATE: "/auth/validate";
7
+ BILLING_CAP: "/billing/cap";
8
+ BILLING_STATUS: "/billing/status";
9
+ CONTACTS: "/contacts";
10
+ CONTACTS_EXPORT: "/contacts/export";
11
+ DOMAIN: "/domain";
12
+ DOMAIN_STATUS: "/domain/status";
13
+ DOMAIN_VERIFY: "/domain/verify";
14
+ EDIT: "/edit";
15
+ EVENTS: "/events";
16
+ GENERATE: "/generate";
17
+ LOGS: "/logs";
18
+ PREVIEW: "/preview";
19
+ SEQUENCES: "/sequences";
20
20
  }>;
21
21
  export declare const SIGNUP_URL = "https://mailmodo.com/cli";
22
22
  export declare const DOCS_URL = "https://mailmodo.com/docs/cli";
@@ -5,23 +5,23 @@ export const API_BASE_URL = process.env.MAILMODO_DEV_TSX
5
5
  ? DEV_API_BASE_URL
6
6
  : PRODUCTION_API_BASE_URL;
7
7
  export const API_ENDPOINTS = Object.freeze({
8
- ANALYTICS: '/api/analytics',
9
- ANALYZE: '/api/analyze',
10
- ASSETS_LOGO: '/api/assets/logo',
11
- AUTH_VALIDATE: '/api/auth/validate',
12
- BILLING_CAP: '/api/billing/cap',
13
- BILLING_STATUS: '/api/billing/status',
14
- CONTACTS: '/api/contacts',
15
- CONTACTS_EXPORT: '/api/contacts/export',
16
- DOMAIN: '/api/domain',
17
- DOMAIN_STATUS: '/api/domain/status',
18
- DOMAIN_VERIFY: '/api/domain/verify',
19
- EDIT: '/api/edit',
20
- EVENTS: '/api/events',
21
- GENERATE: '/api/generate',
22
- LOGS: '/api/logs',
23
- PREVIEW: '/api/preview',
24
- SEQUENCES: '/api/sequences',
8
+ ANALYTICS: '/analytics',
9
+ ANALYZE: '/analyze',
10
+ ASSETS_LOGO: '/assets/logo',
11
+ AUTH_VALIDATE: '/auth/validate',
12
+ BILLING_CAP: '/billing/cap',
13
+ BILLING_STATUS: '/billing/status',
14
+ CONTACTS: '/contacts',
15
+ CONTACTS_EXPORT: '/contacts/export',
16
+ DOMAIN: '/domain',
17
+ DOMAIN_STATUS: '/domain/status',
18
+ DOMAIN_VERIFY: '/domain/verify',
19
+ EDIT: '/edit',
20
+ EVENTS: '/events',
21
+ GENERATE: '/generate',
22
+ LOGS: '/logs',
23
+ PREVIEW: '/preview',
24
+ SEQUENCES: '/sequences',
25
25
  });
26
26
  export const SIGNUP_URL = 'https://mailmodo.com/cli';
27
27
  export const DOCS_URL = 'https://mailmodo.com/docs/cli';
@@ -205,19 +205,13 @@
205
205
  "index.js"
206
206
  ]
207
207
  },
208
- "edit": {
208
+ "emails": {
209
209
  "aliases": [],
210
- "args": {
211
- "id": {
212
- "description": "Email ID to edit",
213
- "name": "id",
214
- "required": true
215
- }
216
- },
217
- "description": "Edit an email using AI-assisted natural language changes",
210
+ "args": {},
211
+ "description": "List and view configured email sequences",
218
212
  "examples": [
219
- "<%= config.bin %> edit welcome",
220
- "<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
213
+ "<%= config.bin %> emails",
214
+ "<%= config.bin %> emails --json"
221
215
  ],
222
216
  "flags": {
223
217
  "json": {
@@ -232,18 +226,11 @@
232
226
  "name": "yes",
233
227
  "allowNo": false,
234
228
  "type": "boolean"
235
- },
236
- "change": {
237
- "description": "Natural language description of the change",
238
- "name": "change",
239
- "hasDynamicHelp": false,
240
- "multiple": false,
241
- "type": "option"
242
229
  }
243
230
  },
244
231
  "hasDynamicHelp": false,
245
232
  "hiddenAliases": [],
246
- "id": "edit",
233
+ "id": "emails",
247
234
  "pluginAlias": "@mailmodo/cli",
248
235
  "pluginName": "@mailmodo/cli",
249
236
  "pluginType": "core",
@@ -253,17 +240,23 @@
253
240
  "relativePath": [
254
241
  "dist",
255
242
  "commands",
256
- "edit",
243
+ "emails",
257
244
  "index.js"
258
245
  ]
259
246
  },
260
- "emails": {
247
+ "edit": {
261
248
  "aliases": [],
262
- "args": {},
263
- "description": "List and view configured email sequences",
249
+ "args": {
250
+ "id": {
251
+ "description": "Email ID to edit",
252
+ "name": "id",
253
+ "required": true
254
+ }
255
+ },
256
+ "description": "Edit an email using AI-assisted natural language changes",
264
257
  "examples": [
265
- "<%= config.bin %> emails",
266
- "<%= config.bin %> emails --json"
258
+ "<%= config.bin %> edit welcome",
259
+ "<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
267
260
  ],
268
261
  "flags": {
269
262
  "json": {
@@ -278,11 +271,18 @@
278
271
  "name": "yes",
279
272
  "allowNo": false,
280
273
  "type": "boolean"
274
+ },
275
+ "change": {
276
+ "description": "Natural language description of the change",
277
+ "name": "change",
278
+ "hasDynamicHelp": false,
279
+ "multiple": false,
280
+ "type": "option"
281
281
  }
282
282
  },
283
283
  "hasDynamicHelp": false,
284
284
  "hiddenAliases": [],
285
- "id": "emails",
285
+ "id": "edit",
286
286
  "pluginAlias": "@mailmodo/cli",
287
287
  "pluginName": "@mailmodo/cli",
288
288
  "pluginType": "core",
@@ -292,7 +292,7 @@
292
292
  "relativePath": [
293
293
  "dist",
294
294
  "commands",
295
- "emails",
295
+ "edit",
296
296
  "index.js"
297
297
  ]
298
298
  },
@@ -531,13 +531,14 @@
531
531
  "index.js"
532
532
  ]
533
533
  },
534
- "status": {
534
+ "settings": {
535
535
  "aliases": [],
536
536
  "args": {},
537
- "description": "View email performance metrics and quota usage",
537
+ "description": "View and update project settings",
538
538
  "examples": [
539
- "<%= config.bin %> status",
540
- "<%= config.bin %> status --json"
539
+ "<%= config.bin %> settings",
540
+ "<%= config.bin %> settings --set brand_color=#0F3460",
541
+ "<%= config.bin %> settings --json"
541
542
  ],
542
543
  "flags": {
543
544
  "json": {
@@ -552,11 +553,18 @@
552
553
  "name": "yes",
553
554
  "allowNo": false,
554
555
  "type": "boolean"
556
+ },
557
+ "set": {
558
+ "description": "Set a setting (format: key=value)",
559
+ "name": "set",
560
+ "hasDynamicHelp": false,
561
+ "multiple": false,
562
+ "type": "option"
555
563
  }
556
564
  },
557
565
  "hasDynamicHelp": false,
558
566
  "hiddenAliases": [],
559
- "id": "status",
567
+ "id": "settings",
560
568
  "pluginAlias": "@mailmodo/cli",
561
569
  "pluginName": "@mailmodo/cli",
562
570
  "pluginType": "core",
@@ -566,18 +574,17 @@
566
574
  "relativePath": [
567
575
  "dist",
568
576
  "commands",
569
- "status",
577
+ "settings",
570
578
  "index.js"
571
579
  ]
572
580
  },
573
- "settings": {
581
+ "status": {
574
582
  "aliases": [],
575
583
  "args": {},
576
- "description": "View and update project settings",
584
+ "description": "View email performance metrics and quota usage",
577
585
  "examples": [
578
- "<%= config.bin %> settings",
579
- "<%= config.bin %> settings --set brand_color=#0F3460",
580
- "<%= config.bin %> settings --json"
586
+ "<%= config.bin %> status",
587
+ "<%= config.bin %> status --json"
581
588
  ],
582
589
  "flags": {
583
590
  "json": {
@@ -592,18 +599,11 @@
592
599
  "name": "yes",
593
600
  "allowNo": false,
594
601
  "type": "boolean"
595
- },
596
- "set": {
597
- "description": "Set a setting (format: key=value)",
598
- "name": "set",
599
- "hasDynamicHelp": false,
600
- "multiple": false,
601
- "type": "option"
602
602
  }
603
603
  },
604
604
  "hasDynamicHelp": false,
605
605
  "hiddenAliases": [],
606
- "id": "settings",
606
+ "id": "status",
607
607
  "pluginAlias": "@mailmodo/cli",
608
608
  "pluginName": "@mailmodo/cli",
609
609
  "pluginType": "core",
@@ -613,10 +613,10 @@
613
613
  "relativePath": [
614
614
  "dist",
615
615
  "commands",
616
- "settings",
616
+ "status",
617
617
  "index.js"
618
618
  ]
619
619
  }
620
620
  },
621
- "version": "0.0.10"
621
+ "version": "0.0.11"
622
622
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mailmodo/cli",
3
3
  "description": "Email lifecycle automation for the AI-native builder generation.",
4
- "version": "0.0.10",
4
+ "version": "0.0.11",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"