adapty 0.1.5 → 0.3.0-beta.0

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.
Files changed (39) hide show
  1. package/README.md +12 -4
  2. package/dist/commands/access-levels/create.d.ts +2 -1
  3. package/dist/commands/access-levels/create.js +3 -2
  4. package/dist/commands/access-levels/get.d.ts +2 -7
  5. package/dist/commands/access-levels/list.d.ts +2 -7
  6. package/dist/commands/access-levels/update.d.ts +2 -1
  7. package/dist/commands/access-levels/update.js +3 -2
  8. package/dist/commands/apps/create.d.ts +2 -1
  9. package/dist/commands/apps/create.js +1 -2
  10. package/dist/commands/apps/get.d.ts +2 -11
  11. package/dist/commands/apps/list.d.ts +2 -7
  12. package/dist/commands/apps/update.d.ts +2 -8
  13. package/dist/commands/paywalls/create.d.ts +2 -1
  14. package/dist/commands/paywalls/create.js +3 -2
  15. package/dist/commands/paywalls/get.d.ts +2 -7
  16. package/dist/commands/paywalls/list.d.ts +2 -6
  17. package/dist/commands/paywalls/placements.d.ts +18 -0
  18. package/dist/commands/paywalls/placements.js +25 -0
  19. package/dist/commands/paywalls/update.d.ts +2 -1
  20. package/dist/commands/paywalls/update.js +3 -2
  21. package/dist/commands/placements/create.d.ts +4 -2
  22. package/dist/commands/placements/create.js +29 -6
  23. package/dist/commands/placements/get.d.ts +2 -8
  24. package/dist/commands/placements/list.d.ts +2 -7
  25. package/dist/commands/placements/update.d.ts +4 -2
  26. package/dist/commands/placements/update.js +32 -6
  27. package/dist/commands/products/create.d.ts +6 -1
  28. package/dist/commands/products/create.js +36 -6
  29. package/dist/commands/products/get.d.ts +2 -9
  30. package/dist/commands/products/list.d.ts +2 -7
  31. package/dist/commands/products/update.d.ts +2 -1
  32. package/dist/commands/segments/get.d.ts +14 -0
  33. package/dist/commands/segments/get.js +25 -0
  34. package/dist/commands/segments/list.d.ts +14 -0
  35. package/dist/commands/segments/list.js +20 -0
  36. package/dist/lib/api-schemas.d.ts +103 -0
  37. package/dist/lib/api-schemas.js +7 -0
  38. package/oclif.manifest.json +396 -199
  39. package/package.json +4 -1
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "commands": {
3
- "apps:create": {
3
+ "access-levels:create": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "Create a new Adapty app",
6
+ "description": "Create a custom access level",
7
7
  "examples": [
8
- "<%= config.bin %> apps create --title \"My App\" --platform ios --apple-bundle-id com.example.app",
9
- "<%= config.bin %> apps create --title \"My App\" --platform ios --platform android --apple-bundle-id com.example.app --google-bundle-id com.example.app"
8
+ "<%= config.bin %> access-levels create --app 550e8400-... --sdk-id vip --title \"VIP Access\""
10
9
  ],
11
10
  "flags": {
12
11
  "json": {
@@ -16,34 +15,24 @@
16
15
  "allowNo": false,
17
16
  "type": "boolean"
18
17
  },
19
- "apple-bundle-id": {
20
- "description": "Apple bundle ID (required with --platform ios)",
21
- "name": "apple-bundle-id",
22
- "hasDynamicHelp": false,
23
- "multiple": false,
24
- "type": "option"
25
- },
26
- "google-bundle-id": {
27
- "description": "Google bundle ID (required with --platform android)",
28
- "name": "google-bundle-id",
18
+ "app": {
19
+ "description": "App ID (UUID)",
20
+ "name": "app",
21
+ "required": true,
29
22
  "hasDynamicHelp": false,
30
23
  "multiple": false,
31
24
  "type": "option"
32
25
  },
33
- "platform": {
34
- "description": "Platform (ios, android). Repeat for multiple.",
35
- "name": "platform",
26
+ "sdk-id": {
27
+ "description": "Access level SDK identifier",
28
+ "name": "sdk-id",
36
29
  "required": true,
37
30
  "hasDynamicHelp": false,
38
- "multiple": true,
39
- "options": [
40
- "ios",
41
- "android"
42
- ],
31
+ "multiple": false,
43
32
  "type": "option"
44
33
  },
45
34
  "title": {
46
- "description": "App title",
35
+ "description": "Access level title",
47
36
  "name": "title",
48
37
  "required": true,
49
38
  "hasDynamicHelp": false,
@@ -53,7 +42,7 @@
53
42
  },
54
43
  "hasDynamicHelp": false,
55
44
  "hiddenAliases": [],
56
- "id": "apps:create",
45
+ "id": "access-levels:create",
57
46
  "pluginAlias": "adapty",
58
47
  "pluginName": "adapty",
59
48
  "pluginType": "core",
@@ -63,22 +52,22 @@
63
52
  "relativePath": [
64
53
  "dist",
65
54
  "commands",
66
- "apps",
55
+ "access-levels",
67
56
  "create.js"
68
57
  ]
69
58
  },
70
- "apps:get": {
59
+ "access-levels:get": {
71
60
  "aliases": [],
72
61
  "args": {
73
- "app_id": {
74
- "description": "App ID (UUID)",
75
- "name": "app_id",
62
+ "access_level_id": {
63
+ "description": "Access Level ID (UUID)",
64
+ "name": "access_level_id",
76
65
  "required": true
77
66
  }
78
67
  },
79
- "description": "Get app details",
68
+ "description": "Get access level details",
80
69
  "examples": [
81
- "<%= config.bin %> apps get 550e8400-e29b-41d4-a716-446655440000"
70
+ "<%= config.bin %> access-levels get --app UUID 550e8400-e29b-41d4-a716-446655440000"
82
71
  ],
83
72
  "flags": {
84
73
  "json": {
@@ -87,11 +76,19 @@
87
76
  "name": "json",
88
77
  "allowNo": false,
89
78
  "type": "boolean"
79
+ },
80
+ "app": {
81
+ "description": "App ID (UUID)",
82
+ "name": "app",
83
+ "required": true,
84
+ "hasDynamicHelp": false,
85
+ "multiple": false,
86
+ "type": "option"
90
87
  }
91
88
  },
92
89
  "hasDynamicHelp": false,
93
90
  "hiddenAliases": [],
94
- "id": "apps:get",
91
+ "id": "access-levels:get",
95
92
  "pluginAlias": "adapty",
96
93
  "pluginName": "adapty",
97
94
  "pluginType": "core",
@@ -101,17 +98,16 @@
101
98
  "relativePath": [
102
99
  "dist",
103
100
  "commands",
104
- "apps",
101
+ "access-levels",
105
102
  "get.js"
106
103
  ]
107
104
  },
108
- "apps:list": {
105
+ "access-levels:list": {
109
106
  "aliases": [],
110
107
  "args": {},
111
- "description": "List Adapty apps",
108
+ "description": "List access levels for an app",
112
109
  "examples": [
113
- "<%= config.bin %> apps list",
114
- "<%= config.bin %> apps list --page 2 --page-size 10"
110
+ "<%= config.bin %> access-levels list --app 550e8400-e29b-41d4-a716-446655440000"
115
111
  ],
116
112
  "flags": {
117
113
  "json": {
@@ -121,6 +117,14 @@
121
117
  "allowNo": false,
122
118
  "type": "boolean"
123
119
  },
120
+ "app": {
121
+ "description": "App ID (UUID)",
122
+ "name": "app",
123
+ "required": true,
124
+ "hasDynamicHelp": false,
125
+ "multiple": false,
126
+ "type": "option"
127
+ },
124
128
  "page": {
125
129
  "description": "Page number",
126
130
  "name": "page",
@@ -140,7 +144,7 @@
140
144
  },
141
145
  "hasDynamicHelp": false,
142
146
  "hiddenAliases": [],
143
- "id": "apps:list",
147
+ "id": "access-levels:list",
144
148
  "pluginAlias": "adapty",
145
149
  "pluginName": "adapty",
146
150
  "pluginType": "core",
@@ -150,22 +154,22 @@
150
154
  "relativePath": [
151
155
  "dist",
152
156
  "commands",
153
- "apps",
157
+ "access-levels",
154
158
  "list.js"
155
159
  ]
156
160
  },
157
- "apps:update": {
161
+ "access-levels:update": {
158
162
  "aliases": [],
159
163
  "args": {
160
- "app_id": {
161
- "description": "App ID (UUID)",
162
- "name": "app_id",
164
+ "access_level_id": {
165
+ "description": "Access Level ID (UUID)",
166
+ "name": "access_level_id",
163
167
  "required": true
164
168
  }
165
169
  },
166
- "description": "Update an app",
170
+ "description": "Update an access level",
167
171
  "examples": [
168
- "<%= config.bin %> apps update 550e8400-... --title \"My App\""
172
+ "<%= config.bin %> access-levels update --app UUID 550e8400-... --title \"VIP Access\""
169
173
  ],
170
174
  "flags": {
171
175
  "json": {
@@ -175,23 +179,18 @@
175
179
  "allowNo": false,
176
180
  "type": "boolean"
177
181
  },
178
- "apple-bundle-id": {
179
- "description": "Apple bundle ID",
180
- "name": "apple-bundle-id",
181
- "hasDynamicHelp": false,
182
- "multiple": false,
183
- "type": "option"
184
- },
185
- "google-bundle-id": {
186
- "description": "Google bundle ID",
187
- "name": "google-bundle-id",
182
+ "app": {
183
+ "description": "App ID (UUID)",
184
+ "name": "app",
185
+ "required": true,
188
186
  "hasDynamicHelp": false,
189
187
  "multiple": false,
190
188
  "type": "option"
191
189
  },
192
190
  "title": {
193
- "description": "App title",
191
+ "description": "Access level title",
194
192
  "name": "title",
193
+ "required": true,
195
194
  "hasDynamicHelp": false,
196
195
  "multiple": false,
197
196
  "type": "option"
@@ -199,7 +198,7 @@
199
198
  },
200
199
  "hasDynamicHelp": false,
201
200
  "hiddenAliases": [],
202
- "id": "apps:update",
201
+ "id": "access-levels:update",
203
202
  "pluginAlias": "adapty",
204
203
  "pluginName": "adapty",
205
204
  "pluginType": "core",
@@ -209,16 +208,17 @@
209
208
  "relativePath": [
210
209
  "dist",
211
210
  "commands",
212
- "apps",
211
+ "access-levels",
213
212
  "update.js"
214
213
  ]
215
214
  },
216
- "access-levels:create": {
215
+ "apps:create": {
217
216
  "aliases": [],
218
217
  "args": {},
219
- "description": "Create a custom access level",
218
+ "description": "Create a new Adapty app",
220
219
  "examples": [
221
- "<%= config.bin %> access-levels create --app 550e8400-... --sdk-id vip --title \"VIP Access\""
220
+ "<%= config.bin %> apps create --title \"My App\" --platform ios --apple-bundle-id com.example.app",
221
+ "<%= config.bin %> apps create --title \"My App\" --platform ios --platform android --apple-bundle-id com.example.app --google-bundle-id com.example.app"
222
222
  ],
223
223
  "flags": {
224
224
  "json": {
@@ -228,24 +228,34 @@
228
228
  "allowNo": false,
229
229
  "type": "boolean"
230
230
  },
231
- "app": {
232
- "description": "App ID (UUID)",
233
- "name": "app",
234
- "required": true,
231
+ "apple-bundle-id": {
232
+ "description": "Apple bundle ID (required with --platform ios)",
233
+ "name": "apple-bundle-id",
235
234
  "hasDynamicHelp": false,
236
235
  "multiple": false,
237
236
  "type": "option"
238
237
  },
239
- "sdk-id": {
240
- "description": "Access level SDK identifier",
241
- "name": "sdk-id",
242
- "required": true,
238
+ "google-bundle-id": {
239
+ "description": "Google bundle ID (required with --platform android)",
240
+ "name": "google-bundle-id",
243
241
  "hasDynamicHelp": false,
244
242
  "multiple": false,
245
243
  "type": "option"
246
244
  },
245
+ "platform": {
246
+ "description": "Platform (ios, android). Repeat for multiple.",
247
+ "name": "platform",
248
+ "required": true,
249
+ "hasDynamicHelp": false,
250
+ "multiple": true,
251
+ "options": [
252
+ "ios",
253
+ "android"
254
+ ],
255
+ "type": "option"
256
+ },
247
257
  "title": {
248
- "description": "Access level title",
258
+ "description": "App title",
249
259
  "name": "title",
250
260
  "required": true,
251
261
  "hasDynamicHelp": false,
@@ -255,7 +265,7 @@
255
265
  },
256
266
  "hasDynamicHelp": false,
257
267
  "hiddenAliases": [],
258
- "id": "access-levels:create",
268
+ "id": "apps:create",
259
269
  "pluginAlias": "adapty",
260
270
  "pluginName": "adapty",
261
271
  "pluginType": "core",
@@ -265,22 +275,22 @@
265
275
  "relativePath": [
266
276
  "dist",
267
277
  "commands",
268
- "access-levels",
278
+ "apps",
269
279
  "create.js"
270
280
  ]
271
281
  },
272
- "access-levels:get": {
282
+ "apps:get": {
273
283
  "aliases": [],
274
284
  "args": {
275
- "access_level_id": {
276
- "description": "Access Level ID (UUID)",
277
- "name": "access_level_id",
285
+ "app_id": {
286
+ "description": "App ID (UUID)",
287
+ "name": "app_id",
278
288
  "required": true
279
289
  }
280
290
  },
281
- "description": "Get access level details",
291
+ "description": "Get app details",
282
292
  "examples": [
283
- "<%= config.bin %> access-levels get --app UUID 550e8400-e29b-41d4-a716-446655440000"
293
+ "<%= config.bin %> apps get 550e8400-e29b-41d4-a716-446655440000"
284
294
  ],
285
295
  "flags": {
286
296
  "json": {
@@ -289,19 +299,11 @@
289
299
  "name": "json",
290
300
  "allowNo": false,
291
301
  "type": "boolean"
292
- },
293
- "app": {
294
- "description": "App ID (UUID)",
295
- "name": "app",
296
- "required": true,
297
- "hasDynamicHelp": false,
298
- "multiple": false,
299
- "type": "option"
300
302
  }
301
303
  },
302
304
  "hasDynamicHelp": false,
303
305
  "hiddenAliases": [],
304
- "id": "access-levels:get",
306
+ "id": "apps:get",
305
307
  "pluginAlias": "adapty",
306
308
  "pluginName": "adapty",
307
309
  "pluginType": "core",
@@ -311,16 +313,17 @@
311
313
  "relativePath": [
312
314
  "dist",
313
315
  "commands",
314
- "access-levels",
316
+ "apps",
315
317
  "get.js"
316
318
  ]
317
319
  },
318
- "access-levels:list": {
320
+ "apps:list": {
319
321
  "aliases": [],
320
322
  "args": {},
321
- "description": "List access levels for an app",
323
+ "description": "List Adapty apps",
322
324
  "examples": [
323
- "<%= config.bin %> access-levels list --app 550e8400-e29b-41d4-a716-446655440000"
325
+ "<%= config.bin %> apps list",
326
+ "<%= config.bin %> apps list --page 2 --page-size 10"
324
327
  ],
325
328
  "flags": {
326
329
  "json": {
@@ -330,14 +333,6 @@
330
333
  "allowNo": false,
331
334
  "type": "boolean"
332
335
  },
333
- "app": {
334
- "description": "App ID (UUID)",
335
- "name": "app",
336
- "required": true,
337
- "hasDynamicHelp": false,
338
- "multiple": false,
339
- "type": "option"
340
- },
341
336
  "page": {
342
337
  "description": "Page number",
343
338
  "name": "page",
@@ -357,7 +352,7 @@
357
352
  },
358
353
  "hasDynamicHelp": false,
359
354
  "hiddenAliases": [],
360
- "id": "access-levels:list",
355
+ "id": "apps:list",
361
356
  "pluginAlias": "adapty",
362
357
  "pluginName": "adapty",
363
358
  "pluginType": "core",
@@ -367,22 +362,22 @@
367
362
  "relativePath": [
368
363
  "dist",
369
364
  "commands",
370
- "access-levels",
365
+ "apps",
371
366
  "list.js"
372
367
  ]
373
368
  },
374
- "access-levels:update": {
369
+ "apps:update": {
375
370
  "aliases": [],
376
371
  "args": {
377
- "access_level_id": {
378
- "description": "Access Level ID (UUID)",
379
- "name": "access_level_id",
372
+ "app_id": {
373
+ "description": "App ID (UUID)",
374
+ "name": "app_id",
380
375
  "required": true
381
376
  }
382
377
  },
383
- "description": "Update an access level",
378
+ "description": "Update an app",
384
379
  "examples": [
385
- "<%= config.bin %> access-levels update --app UUID 550e8400-... --title \"VIP Access\""
380
+ "<%= config.bin %> apps update 550e8400-... --title \"My App\""
386
381
  ],
387
382
  "flags": {
388
383
  "json": {
@@ -392,18 +387,23 @@
392
387
  "allowNo": false,
393
388
  "type": "boolean"
394
389
  },
395
- "app": {
396
- "description": "App ID (UUID)",
397
- "name": "app",
398
- "required": true,
390
+ "apple-bundle-id": {
391
+ "description": "Apple bundle ID",
392
+ "name": "apple-bundle-id",
393
+ "hasDynamicHelp": false,
394
+ "multiple": false,
395
+ "type": "option"
396
+ },
397
+ "google-bundle-id": {
398
+ "description": "Google bundle ID",
399
+ "name": "google-bundle-id",
399
400
  "hasDynamicHelp": false,
400
401
  "multiple": false,
401
402
  "type": "option"
402
403
  },
403
404
  "title": {
404
- "description": "Access level title",
405
+ "description": "App title",
405
406
  "name": "title",
406
- "required": true,
407
407
  "hasDynamicHelp": false,
408
408
  "multiple": false,
409
409
  "type": "option"
@@ -411,7 +411,7 @@
411
411
  },
412
412
  "hasDynamicHelp": false,
413
413
  "hiddenAliases": [],
414
- "id": "access-levels:update",
414
+ "id": "apps:update",
415
415
  "pluginAlias": "adapty",
416
416
  "pluginName": "adapty",
417
417
  "pluginType": "core",
@@ -421,7 +421,7 @@
421
421
  "relativePath": [
422
422
  "dist",
423
423
  "commands",
424
- "access-levels",
424
+ "apps",
425
425
  "update.js"
426
426
  ]
427
427
  },
@@ -577,12 +577,13 @@
577
577
  "whoami.js"
578
578
  ]
579
579
  },
580
- "paywalls:create": {
580
+ "placements:create": {
581
581
  "aliases": [],
582
582
  "args": {},
583
- "description": "Create a paywall with products",
583
+ "description": "Create a placement with a paywall",
584
584
  "examples": [
585
- "<%= config.bin %> paywalls create --app UUID --title \"Default Paywall\" --product-id UUID1 --product-id UUID2"
585
+ "<%= config.bin %> placements create --app UUID --title \"Default\" --developer-id default --audiences '[{\"segment_ids\":[],\"paywall_id\":\"PAYWALL_UUID\",\"priority\":0}]'",
586
+ "<%= config.bin %> placements create --app UUID --title \"Default\" --developer-id default --paywall-id PAYWALL_UUID"
586
587
  ],
587
588
  "flags": {
588
589
  "json": {
@@ -600,16 +601,30 @@
600
601
  "multiple": false,
601
602
  "type": "option"
602
603
  },
603
- "product-id": {
604
- "description": "Product ID (UUID). Repeat for multiple.",
605
- "name": "product-id",
604
+ "audiences": {
605
+ "description": "JSON array of audience entries: [{segment_ids, paywall_id, priority}]",
606
+ "name": "audiences",
607
+ "hasDynamicHelp": false,
608
+ "multiple": false,
609
+ "type": "option"
610
+ },
611
+ "developer-id": {
612
+ "description": "Developer ID for the placement",
613
+ "name": "developer-id",
606
614
  "required": true,
607
615
  "hasDynamicHelp": false,
608
- "multiple": true,
616
+ "multiple": false,
617
+ "type": "option"
618
+ },
619
+ "paywall-id": {
620
+ "description": "Paywall ID (UUID). DEPRECATED: use --audiences.",
621
+ "name": "paywall-id",
622
+ "hasDynamicHelp": false,
623
+ "multiple": false,
609
624
  "type": "option"
610
625
  },
611
626
  "title": {
612
- "description": "Paywall title",
627
+ "description": "Placement title",
613
628
  "name": "title",
614
629
  "required": true,
615
630
  "hasDynamicHelp": false,
@@ -619,7 +634,7 @@
619
634
  },
620
635
  "hasDynamicHelp": false,
621
636
  "hiddenAliases": [],
622
- "id": "paywalls:create",
637
+ "id": "placements:create",
623
638
  "pluginAlias": "adapty",
624
639
  "pluginName": "adapty",
625
640
  "pluginType": "core",
@@ -629,22 +644,22 @@
629
644
  "relativePath": [
630
645
  "dist",
631
646
  "commands",
632
- "paywalls",
647
+ "placements",
633
648
  "create.js"
634
649
  ]
635
650
  },
636
- "paywalls:get": {
651
+ "placements:get": {
637
652
  "aliases": [],
638
653
  "args": {
639
- "paywall_id": {
640
- "description": "Paywall ID (UUID)",
641
- "name": "paywall_id",
654
+ "placement_id": {
655
+ "description": "Placement ID (UUID)",
656
+ "name": "placement_id",
642
657
  "required": true
643
658
  }
644
659
  },
645
- "description": "Get paywall details",
660
+ "description": "Get placement details",
646
661
  "examples": [
647
- "<%= config.bin %> paywalls get --app UUID 550e8400-e29b-41d4-a716-446655440000"
662
+ "<%= config.bin %> placements get --app UUID 550e8400-e29b-41d4-a716-446655440000"
648
663
  ],
649
664
  "flags": {
650
665
  "json": {
@@ -665,7 +680,7 @@
665
680
  },
666
681
  "hasDynamicHelp": false,
667
682
  "hiddenAliases": [],
668
- "id": "paywalls:get",
683
+ "id": "placements:get",
669
684
  "pluginAlias": "adapty",
670
685
  "pluginName": "adapty",
671
686
  "pluginType": "core",
@@ -675,16 +690,16 @@
675
690
  "relativePath": [
676
691
  "dist",
677
692
  "commands",
678
- "paywalls",
693
+ "placements",
679
694
  "get.js"
680
695
  ]
681
696
  },
682
- "paywalls:list": {
697
+ "placements:list": {
683
698
  "aliases": [],
684
699
  "args": {},
685
- "description": "List paywalls for an app",
700
+ "description": "List placements for an app",
686
701
  "examples": [
687
- "<%= config.bin %> paywalls list --app 550e8400-..."
702
+ "<%= config.bin %> placements list --app 550e8400-..."
688
703
  ],
689
704
  "flags": {
690
705
  "json": {
@@ -721,7 +736,7 @@
721
736
  },
722
737
  "hasDynamicHelp": false,
723
738
  "hiddenAliases": [],
724
- "id": "paywalls:list",
739
+ "id": "placements:list",
725
740
  "pluginAlias": "adapty",
726
741
  "pluginName": "adapty",
727
742
  "pluginType": "core",
@@ -731,22 +746,23 @@
731
746
  "relativePath": [
732
747
  "dist",
733
748
  "commands",
734
- "paywalls",
749
+ "placements",
735
750
  "list.js"
736
751
  ]
737
752
  },
738
- "paywalls:update": {
753
+ "placements:update": {
739
754
  "aliases": [],
740
755
  "args": {
741
- "paywall_id": {
742
- "description": "Paywall ID (UUID)",
743
- "name": "paywall_id",
756
+ "placement_id": {
757
+ "description": "Placement ID (UUID)",
758
+ "name": "placement_id",
744
759
  "required": true
745
760
  }
746
761
  },
747
- "description": "Update a paywall",
762
+ "description": "Update a placement",
748
763
  "examples": [
749
- "<%= config.bin %> paywalls update --app UUID 550e8400-... --title \"Default Paywall\" --product-id UUID1 --product-id UUID2"
764
+ "<%= config.bin %> placements update --app UUID 550e8400-... --title \"Default\" --developer-id default --audiences '[{\"segment_ids\":[],\"paywall_id\":\"PAYWALL_UUID\",\"priority\":0}]'",
765
+ "<%= config.bin %> placements update --app UUID 550e8400-... --title \"Default\" --developer-id default --paywall-id PAYWALL_UUID"
750
766
  ],
751
767
  "flags": {
752
768
  "json": {
@@ -764,16 +780,30 @@
764
780
  "multiple": false,
765
781
  "type": "option"
766
782
  },
767
- "product-id": {
768
- "description": "Product ID (UUID). Repeat for multiple.",
769
- "name": "product-id",
783
+ "audiences": {
784
+ "description": "JSON array of audience entries: [{segment_ids, paywall_id, priority}]",
785
+ "name": "audiences",
786
+ "hasDynamicHelp": false,
787
+ "multiple": false,
788
+ "type": "option"
789
+ },
790
+ "developer-id": {
791
+ "description": "Developer ID for the placement",
792
+ "name": "developer-id",
770
793
  "required": true,
771
794
  "hasDynamicHelp": false,
772
- "multiple": true,
795
+ "multiple": false,
796
+ "type": "option"
797
+ },
798
+ "paywall-id": {
799
+ "description": "Paywall ID (UUID). DEPRECATED: use --audiences.",
800
+ "name": "paywall-id",
801
+ "hasDynamicHelp": false,
802
+ "multiple": false,
773
803
  "type": "option"
774
804
  },
775
805
  "title": {
776
- "description": "Paywall title",
806
+ "description": "Placement title",
777
807
  "name": "title",
778
808
  "required": true,
779
809
  "hasDynamicHelp": false,
@@ -783,7 +813,7 @@
783
813
  },
784
814
  "hasDynamicHelp": false,
785
815
  "hiddenAliases": [],
786
- "id": "paywalls:update",
816
+ "id": "placements:update",
787
817
  "pluginAlias": "adapty",
788
818
  "pluginName": "adapty",
789
819
  "pluginType": "core",
@@ -793,16 +823,16 @@
793
823
  "relativePath": [
794
824
  "dist",
795
825
  "commands",
796
- "paywalls",
826
+ "placements",
797
827
  "update.js"
798
828
  ]
799
829
  },
800
- "placements:create": {
830
+ "paywalls:create": {
801
831
  "aliases": [],
802
832
  "args": {},
803
- "description": "Create a placement with a paywall",
833
+ "description": "Create a paywall with products",
804
834
  "examples": [
805
- "<%= config.bin %> placements create --app UUID --title \"Default\" --developer-id default --paywall-id UUID"
835
+ "<%= config.bin %> paywalls create --app UUID --title \"Default Paywall\" --product-id UUID1 --product-id UUID2"
806
836
  ],
807
837
  "flags": {
808
838
  "json": {
@@ -820,24 +850,16 @@
820
850
  "multiple": false,
821
851
  "type": "option"
822
852
  },
823
- "developer-id": {
824
- "description": "Developer ID for the placement",
825
- "name": "developer-id",
826
- "required": true,
827
- "hasDynamicHelp": false,
828
- "multiple": false,
829
- "type": "option"
830
- },
831
- "paywall-id": {
832
- "description": "Paywall ID (UUID)",
833
- "name": "paywall-id",
853
+ "product-id": {
854
+ "description": "Product ID (UUID). Repeat for multiple.",
855
+ "name": "product-id",
834
856
  "required": true,
835
857
  "hasDynamicHelp": false,
836
- "multiple": false,
858
+ "multiple": true,
837
859
  "type": "option"
838
860
  },
839
861
  "title": {
840
- "description": "Placement title",
862
+ "description": "Paywall title",
841
863
  "name": "title",
842
864
  "required": true,
843
865
  "hasDynamicHelp": false,
@@ -847,7 +869,7 @@
847
869
  },
848
870
  "hasDynamicHelp": false,
849
871
  "hiddenAliases": [],
850
- "id": "placements:create",
872
+ "id": "paywalls:create",
851
873
  "pluginAlias": "adapty",
852
874
  "pluginName": "adapty",
853
875
  "pluginType": "core",
@@ -857,22 +879,22 @@
857
879
  "relativePath": [
858
880
  "dist",
859
881
  "commands",
860
- "placements",
882
+ "paywalls",
861
883
  "create.js"
862
884
  ]
863
885
  },
864
- "placements:get": {
886
+ "paywalls:get": {
865
887
  "aliases": [],
866
888
  "args": {
867
- "placement_id": {
868
- "description": "Placement ID (UUID)",
869
- "name": "placement_id",
889
+ "paywall_id": {
890
+ "description": "Paywall ID (UUID)",
891
+ "name": "paywall_id",
870
892
  "required": true
871
893
  }
872
894
  },
873
- "description": "Get placement details",
895
+ "description": "Get paywall details",
874
896
  "examples": [
875
- "<%= config.bin %> placements get --app UUID 550e8400-e29b-41d4-a716-446655440000"
897
+ "<%= config.bin %> paywalls get --app UUID 550e8400-e29b-41d4-a716-446655440000"
876
898
  ],
877
899
  "flags": {
878
900
  "json": {
@@ -893,7 +915,7 @@
893
915
  },
894
916
  "hasDynamicHelp": false,
895
917
  "hiddenAliases": [],
896
- "id": "placements:get",
918
+ "id": "paywalls:get",
897
919
  "pluginAlias": "adapty",
898
920
  "pluginName": "adapty",
899
921
  "pluginType": "core",
@@ -903,16 +925,16 @@
903
925
  "relativePath": [
904
926
  "dist",
905
927
  "commands",
906
- "placements",
928
+ "paywalls",
907
929
  "get.js"
908
930
  ]
909
931
  },
910
- "placements:list": {
932
+ "paywalls:list": {
911
933
  "aliases": [],
912
934
  "args": {},
913
- "description": "List placements for an app",
935
+ "description": "List paywalls for an app",
914
936
  "examples": [
915
- "<%= config.bin %> placements list --app 550e8400-..."
937
+ "<%= config.bin %> paywalls list --app 550e8400-..."
916
938
  ],
917
939
  "flags": {
918
940
  "json": {
@@ -949,7 +971,7 @@
949
971
  },
950
972
  "hasDynamicHelp": false,
951
973
  "hiddenAliases": [],
952
- "id": "placements:list",
974
+ "id": "paywalls:list",
953
975
  "pluginAlias": "adapty",
954
976
  "pluginName": "adapty",
955
977
  "pluginType": "core",
@@ -959,22 +981,22 @@
959
981
  "relativePath": [
960
982
  "dist",
961
983
  "commands",
962
- "placements",
984
+ "paywalls",
963
985
  "list.js"
964
986
  ]
965
987
  },
966
- "placements:update": {
988
+ "paywalls:placements": {
967
989
  "aliases": [],
968
990
  "args": {
969
- "placement_id": {
970
- "description": "Placement ID (UUID)",
971
- "name": "placement_id",
991
+ "paywall_id": {
992
+ "description": "Paywall ID (UUID)",
993
+ "name": "paywall_id",
972
994
  "required": true
973
995
  }
974
996
  },
975
- "description": "Update a placement",
997
+ "description": "List placements that currently use this paywall",
976
998
  "examples": [
977
- "<%= config.bin %> placements update --app UUID 550e8400-... --title \"Default\" --developer-id default --paywall-id UUID"
999
+ "<%= config.bin %> paywalls placements --app UUID 770e8400-e29b-41d4-a716-446655440002"
978
1000
  ],
979
1001
  "flags": {
980
1002
  "json": {
@@ -991,25 +1013,63 @@
991
1013
  "hasDynamicHelp": false,
992
1014
  "multiple": false,
993
1015
  "type": "option"
1016
+ }
1017
+ },
1018
+ "hasDynamicHelp": false,
1019
+ "hiddenAliases": [],
1020
+ "id": "paywalls:placements",
1021
+ "pluginAlias": "adapty",
1022
+ "pluginName": "adapty",
1023
+ "pluginType": "core",
1024
+ "strict": true,
1025
+ "enableJsonFlag": true,
1026
+ "isESM": true,
1027
+ "relativePath": [
1028
+ "dist",
1029
+ "commands",
1030
+ "paywalls",
1031
+ "placements.js"
1032
+ ]
1033
+ },
1034
+ "paywalls:update": {
1035
+ "aliases": [],
1036
+ "args": {
1037
+ "paywall_id": {
1038
+ "description": "Paywall ID (UUID)",
1039
+ "name": "paywall_id",
1040
+ "required": true
1041
+ }
1042
+ },
1043
+ "description": "Update a paywall",
1044
+ "examples": [
1045
+ "<%= config.bin %> paywalls update --app UUID 550e8400-... --title \"Default Paywall\" --product-id UUID1 --product-id UUID2"
1046
+ ],
1047
+ "flags": {
1048
+ "json": {
1049
+ "description": "Format output as json.",
1050
+ "helpGroup": "GLOBAL",
1051
+ "name": "json",
1052
+ "allowNo": false,
1053
+ "type": "boolean"
994
1054
  },
995
- "developer-id": {
996
- "description": "Developer ID for the placement",
997
- "name": "developer-id",
1055
+ "app": {
1056
+ "description": "App ID (UUID)",
1057
+ "name": "app",
998
1058
  "required": true,
999
1059
  "hasDynamicHelp": false,
1000
1060
  "multiple": false,
1001
1061
  "type": "option"
1002
1062
  },
1003
- "paywall-id": {
1004
- "description": "Paywall ID (UUID)",
1005
- "name": "paywall-id",
1063
+ "product-id": {
1064
+ "description": "Product ID (UUID). Repeat for multiple.",
1065
+ "name": "product-id",
1006
1066
  "required": true,
1007
1067
  "hasDynamicHelp": false,
1008
- "multiple": false,
1068
+ "multiple": true,
1009
1069
  "type": "option"
1010
1070
  },
1011
1071
  "title": {
1012
- "description": "Placement title",
1072
+ "description": "Paywall title",
1013
1073
  "name": "title",
1014
1074
  "required": true,
1015
1075
  "hasDynamicHelp": false,
@@ -1019,7 +1079,7 @@
1019
1079
  },
1020
1080
  "hasDynamicHelp": false,
1021
1081
  "hiddenAliases": [],
1022
- "id": "placements:update",
1082
+ "id": "paywalls:update",
1023
1083
  "pluginAlias": "adapty",
1024
1084
  "pluginName": "adapty",
1025
1085
  "pluginType": "core",
@@ -1029,7 +1089,7 @@
1029
1089
  "relativePath": [
1030
1090
  "dist",
1031
1091
  "commands",
1032
- "placements",
1092
+ "paywalls",
1033
1093
  "update.js"
1034
1094
  ]
1035
1095
  },
@@ -1066,6 +1126,7 @@
1066
1126
  },
1067
1127
  "android-base-plan-id": {
1068
1128
  "description": "Android base plan ID",
1129
+ "helpGroup": "STORE BINDINGS",
1069
1130
  "name": "android-base-plan-id",
1070
1131
  "hasDynamicHelp": false,
1071
1132
  "multiple": false,
@@ -1073,6 +1134,7 @@
1073
1134
  },
1074
1135
  "android-product-id": {
1075
1136
  "description": "Android product ID",
1137
+ "helpGroup": "STORE BINDINGS",
1076
1138
  "name": "android-product-id",
1077
1139
  "hasDynamicHelp": false,
1078
1140
  "multiple": false,
@@ -1080,11 +1142,28 @@
1080
1142
  },
1081
1143
  "ios-product-id": {
1082
1144
  "description": "iOS product ID",
1145
+ "helpGroup": "STORE BINDINGS",
1083
1146
  "name": "ios-product-id",
1084
1147
  "hasDynamicHelp": false,
1085
1148
  "multiple": false,
1086
1149
  "type": "option"
1087
1150
  },
1151
+ "paddle-price-id": {
1152
+ "description": "Paddle price ID (requires --paddle-product-id)",
1153
+ "helpGroup": "STORE BINDINGS",
1154
+ "name": "paddle-price-id",
1155
+ "hasDynamicHelp": false,
1156
+ "multiple": false,
1157
+ "type": "option"
1158
+ },
1159
+ "paddle-product-id": {
1160
+ "description": "Paddle product ID (requires --paddle-price-id)",
1161
+ "helpGroup": "STORE BINDINGS",
1162
+ "name": "paddle-product-id",
1163
+ "hasDynamicHelp": false,
1164
+ "multiple": false,
1165
+ "type": "option"
1166
+ },
1088
1167
  "period": {
1089
1168
  "description": "Subscription period (weekly, monthly, two_months, trimonthly, semiannual, annual, lifetime)",
1090
1169
  "name": "period",
@@ -1093,6 +1172,22 @@
1093
1172
  "multiple": false,
1094
1173
  "type": "option"
1095
1174
  },
1175
+ "stripe-price-id": {
1176
+ "description": "Stripe price ID (requires --stripe-product-id)",
1177
+ "helpGroup": "STORE BINDINGS",
1178
+ "name": "stripe-price-id",
1179
+ "hasDynamicHelp": false,
1180
+ "multiple": false,
1181
+ "type": "option"
1182
+ },
1183
+ "stripe-product-id": {
1184
+ "description": "Stripe product ID (requires --stripe-price-id)",
1185
+ "helpGroup": "STORE BINDINGS",
1186
+ "name": "stripe-product-id",
1187
+ "hasDynamicHelp": false,
1188
+ "multiple": false,
1189
+ "type": "option"
1190
+ },
1096
1191
  "title": {
1097
1192
  "description": "Product title",
1098
1193
  "name": "title",
@@ -1281,7 +1376,109 @@
1281
1376
  "products",
1282
1377
  "update.js"
1283
1378
  ]
1379
+ },
1380
+ "segments:get": {
1381
+ "aliases": [],
1382
+ "args": {
1383
+ "segment_id": {
1384
+ "description": "Segment ID (UUID)",
1385
+ "name": "segment_id",
1386
+ "required": true
1387
+ }
1388
+ },
1389
+ "description": "Get segment details",
1390
+ "examples": [
1391
+ "<%= config.bin %> segments get --app UUID 550e8400-e29b-41d4-a716-446655440000"
1392
+ ],
1393
+ "flags": {
1394
+ "json": {
1395
+ "description": "Format output as json.",
1396
+ "helpGroup": "GLOBAL",
1397
+ "name": "json",
1398
+ "allowNo": false,
1399
+ "type": "boolean"
1400
+ },
1401
+ "app": {
1402
+ "description": "App ID (UUID)",
1403
+ "name": "app",
1404
+ "required": true,
1405
+ "hasDynamicHelp": false,
1406
+ "multiple": false,
1407
+ "type": "option"
1408
+ }
1409
+ },
1410
+ "hasDynamicHelp": false,
1411
+ "hiddenAliases": [],
1412
+ "id": "segments:get",
1413
+ "pluginAlias": "adapty",
1414
+ "pluginName": "adapty",
1415
+ "pluginType": "core",
1416
+ "strict": true,
1417
+ "enableJsonFlag": true,
1418
+ "isESM": true,
1419
+ "relativePath": [
1420
+ "dist",
1421
+ "commands",
1422
+ "segments",
1423
+ "get.js"
1424
+ ]
1425
+ },
1426
+ "segments:list": {
1427
+ "aliases": [],
1428
+ "args": {},
1429
+ "description": "List segments for an app",
1430
+ "examples": [
1431
+ "<%= config.bin %> segments list --app 550e8400-..."
1432
+ ],
1433
+ "flags": {
1434
+ "json": {
1435
+ "description": "Format output as json.",
1436
+ "helpGroup": "GLOBAL",
1437
+ "name": "json",
1438
+ "allowNo": false,
1439
+ "type": "boolean"
1440
+ },
1441
+ "app": {
1442
+ "description": "App ID (UUID)",
1443
+ "name": "app",
1444
+ "required": true,
1445
+ "hasDynamicHelp": false,
1446
+ "multiple": false,
1447
+ "type": "option"
1448
+ },
1449
+ "page": {
1450
+ "description": "Page number",
1451
+ "name": "page",
1452
+ "default": 1,
1453
+ "hasDynamicHelp": false,
1454
+ "multiple": false,
1455
+ "type": "option"
1456
+ },
1457
+ "page-size": {
1458
+ "description": "Items per page (max 100)",
1459
+ "name": "page-size",
1460
+ "default": 20,
1461
+ "hasDynamicHelp": false,
1462
+ "multiple": false,
1463
+ "type": "option"
1464
+ }
1465
+ },
1466
+ "hasDynamicHelp": false,
1467
+ "hiddenAliases": [],
1468
+ "id": "segments:list",
1469
+ "pluginAlias": "adapty",
1470
+ "pluginName": "adapty",
1471
+ "pluginType": "core",
1472
+ "strict": true,
1473
+ "enableJsonFlag": true,
1474
+ "isESM": true,
1475
+ "relativePath": [
1476
+ "dist",
1477
+ "commands",
1478
+ "segments",
1479
+ "list.js"
1480
+ ]
1284
1481
  }
1285
1482
  },
1286
- "version": "0.1.5"
1483
+ "version": "0.3.0-beta.0"
1287
1484
  }