@superwall/cli 2.1.0 → 2.1.1
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.
- package/README.md +3 -2
- package/dist/{apple-CSzNTGHM.js → apple-BHbX0jbn.js} +13 -13
- package/dist/auth.js +3 -3
- package/dist/{billing-C3Q8DBU2.js → billing-4zhIBFRQ.js} +3 -3
- package/dist/{bind-BumHTi9O.js → bind-CHLHmxgA.js} +4 -4
- package/dist/{build-Bpviiclc.js → build-5PQeSnNN.js} +6 -6
- package/dist/{client-BL0f_yGf.js → client-BIvOmWPC.js} +7 -3
- package/dist/{create-CfK3PeKA.js → create-BSNIFsnN.js} +6 -6
- package/dist/{create-BUcVG4Ab.js → create-VK-pNfN7.js} +22 -22
- package/dist/create-oj3zXvHZ.js +19 -0
- package/dist/{doctor-BWqIYcMn.js → doctor-9JS96QkX.js} +6 -6
- package/dist/{drivers-CPhdPkW5.js → drivers-BamBJ10Y.js} +3 -3
- package/dist/entry.js +19 -19
- package/dist/{environment-eBXjELoN.js → environment-eV7LEnSN.js} +15 -2
- package/dist/{existing-BltvQiX5.js → existing-C8dSYHGk.js} +2 -2
- package/dist/{held-DgnTFMl3.js → held-BMisHn8F.js} +6 -6
- package/dist/held-DeJW2gUk.js +16 -0
- package/dist/{integrate-BRsqoe01.js → integrate-VWtTNPCr.js} +21 -21
- package/dist/login-2JHCG6c1.js +16 -0
- package/dist/{login-BbTIrCFT.js → login-BimbukE5.js} +5 -5
- package/dist/{login-BCEH5q0U.js → login-BmwG14LC.js} +1 -1
- package/dist/{lookup-rr1AkCJA.js → lookup-k9EeOiZr.js} +2 -2
- package/dist/{migrate-C9X2Vz81.js → migrate-C86h6jeF.js} +21 -21
- package/dist/{notification-url-CV86qiKP.js → notification-url-BVaTgWZ5.js} +2 -2
- package/dist/{open-CcpXotHG.js → open-0tDCQOXC.js} +10 -10
- package/dist/{org-BQQDo7wm.js → org-DUwdrKPV.js} +2 -2
- package/dist/{paths-CRlU72cq.js → paths-BCbjCLP5.js} +1 -1
- package/dist/{playbook-DVMXN7fh.js → playbook-oov9yV0q.js} +10 -10
- package/dist/{promote-Da8xctzy.js → promote-DPGPamkE.js} +16 -16
- package/dist/push-Chp21y3a.js +22 -0
- package/dist/{push-D6R9icWN.js → push-Cz4lJ8Qd.js} +4 -4
- package/dist/{registry-BYVD-_h6.js → registry-CTczUigi.js} +365 -176
- package/dist/{resources-DLON3-61.js → resources-B1qKDVXd.js} +1 -1
- package/dist/{run-Co-BwhOg.js → run-DTPsVmFw.js} +2 -2
- package/dist/scan-B1SkkUi7.js +4 -0
- package/dist/{scan-CKuk-_6W.js → scan-Bb48xZqB.js} +1 -1
- package/dist/{scope-DV22_Ufm.js → scope-B6UYGuwn.js} +4 -4
- package/dist/{selection-C2_KbLuo.js → selection-BbNk9r1q.js} +3 -3
- package/dist/server-CwrZ-I1r.js +22 -0
- package/dist/{server-D0d2oP-5.js → server-EYBMKAG1.js} +6 -6
- package/dist/{session-C4rbE3VS.js → session-Crg9X-FI.js} +7 -7
- package/dist/session-DItGa4z0.js +6 -0
- package/dist/{session-B-Uz0cQ7.js → session-xG9E8J2N.js} +1 -1
- package/dist/skills/superwall-framework/SKILL.md +36 -4
- package/dist/skills/superwall-framework/references/examples.md +1 -0
- package/dist/skills/superwall-framework/references/migrate-from-editor.md +16 -3
- package/dist/{skills-CZcpnEnG.js → skills-BdMKE2uO.js} +4 -4
- package/dist/{skills-CLGJuMnF.js → skills-Dg3k6TRC.js} +8 -8
- package/dist/{spinner-C2U6QBJ9.js → spinner-Ba3XhlMb.js} +3 -3
- package/dist/{storage-6h9vyiAz.js → storage-DIkYajce.js} +1 -1
- package/dist/{storekit-CinJra3V.js → storekit-C2UzIIMs.js} +3 -3
- package/dist/storekit-DHNxDDpA.js +16 -0
- package/dist/{telemetry-DKyDhURo.js → telemetry-CVP8O6Y3.js} +1 -1
- package/dist/{token-DaxQgQkv.js → token-IWv2httm.js} +1 -1
- package/dist/tools.d.ts +3 -1
- package/dist/tools.js +378 -160
- package/dist/{upgrade-DPo0a4Es.js → upgrade-1t3aQUxh.js} +1 -1
- package/dist/{upgrade-ffseQDMx.js → upgrade-DLf0LJDh.js} +2 -2
- package/package.json +2 -2
- package/dist/create-BSfvpWoD.js +0 -19
- package/dist/held-CPve03KJ.js +0 -16
- package/dist/login-BPOONe7n.js +0 -16
- package/dist/push-BV-grvQg.js +0 -22
- package/dist/scan-B88OlWOt.js +0 -4
- package/dist/server-C4f6ccUr.js +0 -22
- package/dist/session-BuvArt1j.js +0 -6
- package/dist/storekit-CK9JmM2D.js +0 -16
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { a as stripAnsi, l as readJson, o as cache, r as formatJson, t as blocks } from "./output-Ggzq5_-t.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as readSession } from "./storage-
|
|
4
|
-
import { a as withQuery$1, t as ApiError } from "./client-
|
|
5
|
-
import { C as listKeySources, S as listBundleIdSuggestions, T as replaceRevenueProvider, _ as checkServerNotifications, b as importAppKey, c as resolveAscOrgApi, d as runAscDocs, f as parseParams, h as REVENUE_INTEGRATIONS, i as savedKey, l as resolveAscTeam, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, r as chooseKeyApp, t as upsertHeldKey, u as sendAscRequest, v as copyAppKey, w as removeAppKey, x as keyKind, y as findIntegrations } from "./held-
|
|
2
|
+
import { a as CHANNEL, g as TELEMETRY_KEY, h as TELEMETRY_HOST, t as API_HOST, v as VERSION, x as detectAgent } from "./environment-eV7LEnSN.js";
|
|
3
|
+
import { t as readSession } from "./storage-DIkYajce.js";
|
|
4
|
+
import { a as withQuery$1, t as ApiError } from "./client-BIvOmWPC.js";
|
|
5
|
+
import { C as listKeySources, S as listBundleIdSuggestions, T as replaceRevenueProvider, _ as checkServerNotifications, b as importAppKey, c as resolveAscOrgApi, d as runAscDocs, f as parseParams, h as REVENUE_INTEGRATIONS, i as savedKey, l as resolveAscTeam, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, r as chooseKeyApp, t as upsertHeldKey, u as sendAscRequest, v as copyAppKey, w as removeAppKey, x as keyKind, y as findIntegrations } from "./held-BMisHn8F.js";
|
|
6
6
|
import { n as readDefaultApp, r as readOnboardedApp, t as readAnonymousId, u as writeDefaultApp } from "./config-BO1Y87kV.js";
|
|
7
|
-
import { a as defineCommand, d as readInput, i as defineCatalog, r as UsageError, t as apiCall } from "./spinner-
|
|
7
|
+
import { a as defineCommand, d as readInput, i as defineCatalog, r as UsageError, t as apiCall } from "./spinner-Ba3XhlMb.js";
|
|
8
8
|
import { n as fg, t as THEME } from "./theme-DUsCh-Vd.js";
|
|
9
|
-
import { n as runWhoami } from "./session-
|
|
10
|
-
import { A as parseJson, M as listOrgGroups, O as isRecord, P as orgIdOf, i as createEntitlement, j as textField, l as isAppScoped, m as listResource, n as createApplication, o as createProduct, p as listProjects, r as createCampaign, s as createProject, t as RESOURCES, v as platformLabel, w as rowName } from "./resources-
|
|
11
|
-
import { n as orgForNewProject } from "./org-
|
|
12
|
-
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-
|
|
13
|
-
import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-
|
|
9
|
+
import { n as runWhoami } from "./session-xG9E8J2N.js";
|
|
10
|
+
import { A as parseJson, M as listOrgGroups, O as isRecord, P as orgIdOf, i as createEntitlement, j as textField, l as isAppScoped, m as listResource, n as createApplication, o as createProduct, p as listProjects, r as createCampaign, s as createProject, t as RESOURCES, v as platformLabel, w as rowName } from "./resources-B1qKDVXd.js";
|
|
11
|
+
import { n as orgForNewProject } from "./org-DUwdrKPV.js";
|
|
12
|
+
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-k9EeOiZr.js";
|
|
13
|
+
import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-B6UYGuwn.js";
|
|
14
14
|
import { a as listAscConfigs, i as findAppNotificationUrl, o as removeAscConfig, t as ascProxy } from "./client-BZ1UbpXz.js";
|
|
15
15
|
import { i as listUnimportedAscProducts, n as findAscAppId, r as listAscApps, t as ascTypeDisplay } from "./products-DH_fK9tY.js";
|
|
16
16
|
import { n as readResourceFlags, r as textOf, t as fieldName } from "./input-vi0bou04.js";
|
|
17
|
-
import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-
|
|
18
|
-
import { t as platformForIntegration } from "./bind-
|
|
17
|
+
import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-BVaTgWZ5.js";
|
|
18
|
+
import { t as platformForIntegration } from "./bind-CHLHmxgA.js";
|
|
19
19
|
import pc from "picocolors";
|
|
20
20
|
|
|
21
21
|
//#region src/ui/help-layout.ts
|
|
@@ -101,7 +101,7 @@ const command = defineCommand({
|
|
|
101
101
|
prompts: true,
|
|
102
102
|
mcp: false,
|
|
103
103
|
async run(ctx, input) {
|
|
104
|
-
const { runLogin } = await import("./login-
|
|
104
|
+
const { runLogin } = await import("./login-2JHCG6c1.js");
|
|
105
105
|
return runLogin(ctx, input);
|
|
106
106
|
}
|
|
107
107
|
});
|
|
@@ -117,7 +117,7 @@ const command$1 = defineCommand({
|
|
|
117
117
|
prompts: true,
|
|
118
118
|
mcp: false,
|
|
119
119
|
async run(ctx) {
|
|
120
|
-
const { runLogout } = await import("./session-
|
|
120
|
+
const { runLogout } = await import("./session-DItGa4z0.js");
|
|
121
121
|
return runLogout(ctx);
|
|
122
122
|
}
|
|
123
123
|
});
|
|
@@ -257,7 +257,9 @@ arrive twice. Count revenue the way the dashboard does:
|
|
|
257
257
|
WHERE applicationId = {app:UInt64}
|
|
258
258
|
AND (integration IN {revenue_integrations:Array(String)} OR source = 'sdk')
|
|
259
259
|
AND NOT (coalesce(integration, '') = 'revenue_cat' AND store = 'STRIPE')
|
|
260
|
-
--param name=value adds any other parameter
|
|
260
|
+
--param name=value adds any other parameter.
|
|
261
|
+
|
|
262
|
+
The backend forces SQL to readonly=1. Before executing SQL it may provision a ClickHouse user and role, persist credentials and reconcile access policies for the organization. SQL read-only mode does not prevent these setup changes.`,
|
|
261
263
|
args: { sql: {
|
|
262
264
|
describe: "SQL query (or pass it with --file / stdin)",
|
|
263
265
|
mcp: "required"
|
|
@@ -283,7 +285,7 @@ arrive twice. Count revenue the way the dashboard does:
|
|
|
283
285
|
auth: "required",
|
|
284
286
|
json: true,
|
|
285
287
|
prompts: false,
|
|
286
|
-
mcp: "
|
|
288
|
+
mcp: "write",
|
|
287
289
|
run(ctx, input) {
|
|
288
290
|
return runQuery(ctx, input);
|
|
289
291
|
}
|
|
@@ -616,6 +618,7 @@ const command$5 = defineCommand({
|
|
|
616
618
|
const command$6 = defineCommand({
|
|
617
619
|
name: "get",
|
|
618
620
|
summary: "Make GET requests to the Superwall API",
|
|
621
|
+
details: "Executes an arbitrary Superwall GET endpoint. Most retrieve account data, but the analytics query endpoint can provision credentials and reconcile existing access policies before running read-only SQL.",
|
|
619
622
|
args: { path: {
|
|
620
623
|
describe: "API path, e.g. /v2/products",
|
|
621
624
|
required: true
|
|
@@ -625,7 +628,7 @@ const command$6 = defineCommand({
|
|
|
625
628
|
auth: "required",
|
|
626
629
|
json: true,
|
|
627
630
|
prompts: false,
|
|
628
|
-
mcp: "
|
|
631
|
+
mcp: "write",
|
|
629
632
|
run(ctx, { args, flags }) {
|
|
630
633
|
return runApiRequest(ctx, ctx.api, {
|
|
631
634
|
verb: "get",
|
|
@@ -640,6 +643,7 @@ const command$6 = defineCommand({
|
|
|
640
643
|
const command$7 = defineCommand({
|
|
641
644
|
name: "patch",
|
|
642
645
|
summary: "Make PATCH requests to the Superwall API",
|
|
646
|
+
details: "Executes an arbitrary Superwall PATCH endpoint. Depending on the path, it overwrites account configuration or redirects webhook delivery to a caller-supplied HTTPS destination.",
|
|
643
647
|
args: { path: {
|
|
644
648
|
describe: "API path, e.g. /v2/products",
|
|
645
649
|
required: true
|
|
@@ -649,7 +653,7 @@ const command$7 = defineCommand({
|
|
|
649
653
|
auth: "required",
|
|
650
654
|
json: true,
|
|
651
655
|
prompts: false,
|
|
652
|
-
mcp: "
|
|
656
|
+
mcp: "destructive",
|
|
653
657
|
run(ctx, { args, flags }) {
|
|
654
658
|
return runApiRequest(ctx, ctx.api, {
|
|
655
659
|
verb: "patch",
|
|
@@ -664,6 +668,7 @@ const command$7 = defineCommand({
|
|
|
664
668
|
const command$8 = defineCommand({
|
|
665
669
|
name: "post",
|
|
666
670
|
summary: "Make POST requests to the Superwall API",
|
|
671
|
+
details: "Executes an arbitrary Superwall POST endpoint. Depending on the path, it can archive, reset, publish, resend events or create a webhook to a caller-supplied HTTPS destination. Repeating a call may repeat its effects.",
|
|
667
672
|
args: { path: {
|
|
668
673
|
describe: "API path, e.g. /v2/products",
|
|
669
674
|
required: true
|
|
@@ -673,7 +678,7 @@ const command$8 = defineCommand({
|
|
|
673
678
|
auth: "required",
|
|
674
679
|
json: true,
|
|
675
680
|
prompts: false,
|
|
676
|
-
mcp: "
|
|
681
|
+
mcp: "destructive",
|
|
677
682
|
run(ctx, { args, flags }) {
|
|
678
683
|
return runApiRequest(ctx, ctx.api, {
|
|
679
684
|
verb: "post",
|
|
@@ -741,7 +746,7 @@ function renderOperationHelp(spec, operation) {
|
|
|
741
746
|
});
|
|
742
747
|
const common = [[cmd("--app <app>"), "A Superwall app of the organization whose App Store Connect key to use"], [cmd("--team <id>"), "Apple team id, when your organization has several"]];
|
|
743
748
|
if (operation.effect !== "read") common.push([cmd("--dry-run"), "Print every request it would send; send no change"]);
|
|
744
|
-
if (operation.
|
|
749
|
+
if (operation.confirm) common.push([cmd("-y, --yes"), "Go ahead without asking"]);
|
|
745
750
|
common.push([cmd("--json"), "Machine-readable output"]);
|
|
746
751
|
return renderPage({
|
|
747
752
|
name: `${spec.name} ${operation.name}`,
|
|
@@ -1406,21 +1411,21 @@ function parseFlag(key, flag$1, raw) {
|
|
|
1406
1411
|
}
|
|
1407
1412
|
return parseChoice(key, flag$1, text);
|
|
1408
1413
|
}
|
|
1409
|
-
function parseArg(command$
|
|
1414
|
+
function parseArg(command$68, arg, word) {
|
|
1410
1415
|
if (word === void 0 || !arg.choices) return word;
|
|
1411
1416
|
const found = arg.choices.find((choice) => choice.toLowerCase() === word.toLowerCase());
|
|
1412
|
-
if (!found) throw new UsageError(`${command$
|
|
1417
|
+
if (!found) throw new UsageError(`${command$68} takes <${arg.name}> as one of: ${arg.choices.join(", ")} (not "${word}").`);
|
|
1413
1418
|
return found;
|
|
1414
1419
|
}
|
|
1415
|
-
function parseInput(command$
|
|
1420
|
+
function parseInput(command$68, operation, words, raw) {
|
|
1416
1421
|
const specs = operation.flags ?? {};
|
|
1417
|
-
for (const key of Object.keys(raw)) if (!(key in specs) && !(key in COMMON_FLAGS)) throw new UsageError(`${command$
|
|
1422
|
+
for (const key of Object.keys(raw)) if (!(key in specs) && !(key in COMMON_FLAGS)) throw new UsageError(`${command$68} has no --${kebab(key)}. Run superwall ${command$68} --help for its flags.`);
|
|
1418
1423
|
const flags = Object.fromEntries(Object.entries(specs).map(([key, flag$1]) => [key, parseFlag(key, flag$1, raw[key])]));
|
|
1419
|
-
for (const [key, flag$1] of Object.entries(specs)) if (flag$1.required && flags[key] === void 0) throw new UsageError(`${command$
|
|
1424
|
+
for (const [key, flag$1] of Object.entries(specs)) if (flag$1.required && flags[key] === void 0) throw new UsageError(`${command$68} needs --${kebab(key)}.`);
|
|
1420
1425
|
const specArgs = operation.args ?? [];
|
|
1421
|
-
if (words.length > specArgs.length) throw new UsageError(`${command$
|
|
1422
|
-
const args = Object.fromEntries(specArgs.map((arg, index) => [arg.name, parseArg(command$
|
|
1423
|
-
for (const arg of specArgs) if (arg.required && args[arg.name] === void 0) throw new UsageError(`${command$
|
|
1426
|
+
if (words.length > specArgs.length) throw new UsageError(`${command$68} doesn't take "${words.slice(specArgs.length).join(" ")}".`);
|
|
1427
|
+
const args = Object.fromEntries(specArgs.map((arg, index) => [arg.name, parseArg(command$68, arg, words[index])]));
|
|
1428
|
+
for (const arg of specArgs) if (arg.required && args[arg.name] === void 0) throw new UsageError(`${command$68} needs <${arg.name}>.`);
|
|
1424
1429
|
return {
|
|
1425
1430
|
args,
|
|
1426
1431
|
flags,
|
|
@@ -1701,6 +1706,7 @@ const command$10 = defineAscResource({
|
|
|
1701
1706
|
}, {
|
|
1702
1707
|
name: "set",
|
|
1703
1708
|
summary: "Sell it in these territories",
|
|
1709
|
+
details: "Replaces the set of available territories and can remove existing sale availability.",
|
|
1704
1710
|
flags: {
|
|
1705
1711
|
subscription: TARGET_FLAGS.subscription,
|
|
1706
1712
|
iap: TARGET_FLAGS.iap,
|
|
@@ -1715,7 +1721,7 @@ const command$10 = defineAscResource({
|
|
|
1715
1721
|
describe: "Also territories Apple adds later (default: with all)"
|
|
1716
1722
|
}
|
|
1717
1723
|
},
|
|
1718
|
-
effect: "
|
|
1724
|
+
effect: "destructive",
|
|
1719
1725
|
run: runAvailabilitySet
|
|
1720
1726
|
}],
|
|
1721
1727
|
examples: [["asc availability get --subscription <id>", "Where it is sold"], ["asc availability set --iap <id> --available-territories USA,CAN", "Sell it in two territories"]]
|
|
@@ -2135,6 +2141,7 @@ const command$11 = defineAscResource({
|
|
|
2135
2141
|
required: true
|
|
2136
2142
|
}, VERSION_ARG],
|
|
2137
2143
|
flags: VERSION_FLAGS,
|
|
2144
|
+
confirm: true,
|
|
2138
2145
|
effect: "destructive",
|
|
2139
2146
|
run: runBuildsAttach
|
|
2140
2147
|
},
|
|
@@ -2146,6 +2153,7 @@ const command$11 = defineAscResource({
|
|
|
2146
2153
|
describe: "The build's id",
|
|
2147
2154
|
required: true
|
|
2148
2155
|
}],
|
|
2156
|
+
confirm: true,
|
|
2149
2157
|
effect: "destructive",
|
|
2150
2158
|
run: runBuildsExpire
|
|
2151
2159
|
}
|
|
@@ -3013,6 +3021,7 @@ const command$15 = defineAscResource({
|
|
|
3013
3021
|
{
|
|
3014
3022
|
name: "update",
|
|
3015
3023
|
summary: "Change an in-app purchase",
|
|
3024
|
+
details: "PATCH replaces existing IAP fields, including family-sharing configuration when accepted by Apple.",
|
|
3016
3025
|
args: [{
|
|
3017
3026
|
name: "id",
|
|
3018
3027
|
describe: "The in-app purchase's id",
|
|
@@ -3034,7 +3043,7 @@ const command$15 = defineAscResource({
|
|
|
3034
3043
|
describe: "A note for App Review"
|
|
3035
3044
|
}
|
|
3036
3045
|
},
|
|
3037
|
-
effect: "
|
|
3046
|
+
effect: "destructive",
|
|
3038
3047
|
run: runIapsUpdate
|
|
3039
3048
|
},
|
|
3040
3049
|
{
|
|
@@ -3045,6 +3054,7 @@ const command$15 = defineAscResource({
|
|
|
3045
3054
|
describe: "The in-app purchase's id",
|
|
3046
3055
|
required: true
|
|
3047
3056
|
}],
|
|
3057
|
+
confirm: true,
|
|
3048
3058
|
effect: "destructive",
|
|
3049
3059
|
run: runIapsDelete
|
|
3050
3060
|
}
|
|
@@ -3101,6 +3111,7 @@ of the product; changes go to its editable version, and an approved product gets
|
|
|
3101
3111
|
{
|
|
3102
3112
|
name: "update",
|
|
3103
3113
|
summary: "Change the localization in --locale",
|
|
3114
|
+
details: "Overwrites the existing localization. Updating can also create a missing editable draft.",
|
|
3104
3115
|
flags: {
|
|
3105
3116
|
...TARGET_FLAGS,
|
|
3106
3117
|
locale: {
|
|
@@ -3125,7 +3136,7 @@ of the product; changes go to its editable version, and an approved product gets
|
|
|
3125
3136
|
describe: "The app name shown with a group (groups only)"
|
|
3126
3137
|
}
|
|
3127
3138
|
},
|
|
3128
|
-
effect: "
|
|
3139
|
+
effect: "destructive",
|
|
3129
3140
|
run: runLocalizationsUpdate
|
|
3130
3141
|
},
|
|
3131
3142
|
{
|
|
@@ -3140,6 +3151,7 @@ of the product; changes go to its editable version, and an approved product gets
|
|
|
3140
3151
|
required: true
|
|
3141
3152
|
}
|
|
3142
3153
|
},
|
|
3154
|
+
confirm: true,
|
|
3143
3155
|
effect: "destructive",
|
|
3144
3156
|
run: runLocalizationsDelete
|
|
3145
3157
|
}
|
|
@@ -3281,6 +3293,7 @@ const command$17 = defineAscResource({
|
|
|
3281
3293
|
{
|
|
3282
3294
|
name: "update",
|
|
3283
3295
|
summary: "Change the version's text in one locale",
|
|
3296
|
+
details: "PATCH overwrites existing App Store version localization text and URLs.",
|
|
3284
3297
|
args: [VERSION_ARG],
|
|
3285
3298
|
flags: {
|
|
3286
3299
|
...VERSION_FLAGS,
|
|
@@ -3292,7 +3305,7 @@ const command$17 = defineAscResource({
|
|
|
3292
3305
|
},
|
|
3293
3306
|
...METADATA_FIELDS
|
|
3294
3307
|
},
|
|
3295
|
-
effect: "
|
|
3308
|
+
effect: "destructive",
|
|
3296
3309
|
run: runMetadataUpdate
|
|
3297
3310
|
},
|
|
3298
3311
|
{
|
|
@@ -3416,7 +3429,7 @@ A purchase_key is for the app's bundle ID; an app with none gets --bundle-id sav
|
|
|
3416
3429
|
prompts: true,
|
|
3417
3430
|
mcp: false,
|
|
3418
3431
|
async run(ctx, input) {
|
|
3419
|
-
const { runAscKeysCreate } = await import("./create-
|
|
3432
|
+
const { runAscKeysCreate } = await import("./create-oj3zXvHZ.js");
|
|
3420
3433
|
return runAscKeysCreate(ctx, input);
|
|
3421
3434
|
}
|
|
3422
3435
|
});
|
|
@@ -3652,7 +3665,9 @@ const command$20 = defineCommand({
|
|
|
3652
3665
|
details: `Without --from it tries every key your organization has and saves the first Apple
|
|
3653
3666
|
confirms, both kinds when none is named; exit 1 when a kind is still missing. With --from
|
|
3654
3667
|
it copies that app's key. Never saves an unconfirmed key unless a person passes
|
|
3655
|
-
--allow-unconfirmed, and creates nothing at Apple
|
|
3668
|
+
--allow-unconfirmed, and creates nothing at Apple.
|
|
3669
|
+
|
|
3670
|
+
With --from, replaces the target app's saved key.`,
|
|
3656
3671
|
args: { kind: {
|
|
3657
3672
|
describe: "api_key or purchase_key (both when left out; needed with --from)",
|
|
3658
3673
|
choices: KEY_KINDS
|
|
@@ -3682,7 +3697,7 @@ it copies that app's key. Never saves an unconfirmed key unless a person passes
|
|
|
3682
3697
|
auth: "required",
|
|
3683
3698
|
json: true,
|
|
3684
3699
|
prompts: true,
|
|
3685
|
-
mcp: "
|
|
3700
|
+
mcp: "destructive",
|
|
3686
3701
|
run(ctx, { args, flags }) {
|
|
3687
3702
|
const kind = keyKind(args.kind);
|
|
3688
3703
|
const app$1 = {
|
|
@@ -3801,7 +3816,7 @@ With --app it saves the key you hold on that app instead, as asc keys create --k
|
|
|
3801
3816
|
prompts: true,
|
|
3802
3817
|
mcp: false,
|
|
3803
3818
|
async run(ctx, { args, flags }) {
|
|
3804
|
-
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-
|
|
3819
|
+
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-DeJW2gUk.js");
|
|
3805
3820
|
return upsertHeldKey$1(ctx, {
|
|
3806
3821
|
action: "update",
|
|
3807
3822
|
key: {
|
|
@@ -3859,7 +3874,9 @@ const command$25 = defineCommand({
|
|
|
3859
3874
|
name: "asc notification-url set",
|
|
3860
3875
|
summary: "Write this app's URL where Apple has none",
|
|
3861
3876
|
details: `Never replaces another server's URL: a conflict is reported and left alone (exit 1).
|
|
3862
|
-
It leaves the revenue provider alone unless --set-revenue-provider is passed
|
|
3877
|
+
It leaves the revenue provider alone unless --set-revenue-provider is passed.
|
|
3878
|
+
|
|
3879
|
+
Passing --set-revenue-provider overwrites the app's existing revenue-provider selection.`,
|
|
3863
3880
|
flags: {
|
|
3864
3881
|
setRevenueProvider: {
|
|
3865
3882
|
type: "boolean",
|
|
@@ -3880,7 +3897,7 @@ It leaves the revenue provider alone unless --set-revenue-provider is passed.`,
|
|
|
3880
3897
|
auth: "required",
|
|
3881
3898
|
json: true,
|
|
3882
3899
|
prompts: true,
|
|
3883
|
-
mcp: "
|
|
3900
|
+
mcp: "destructive",
|
|
3884
3901
|
run(ctx, input) {
|
|
3885
3902
|
return runAscNotificationUrlSet(ctx, input);
|
|
3886
3903
|
}
|
|
@@ -4050,6 +4067,7 @@ priced in --territory and equalized.`,
|
|
|
4050
4067
|
{
|
|
4051
4068
|
name: "create",
|
|
4052
4069
|
summary: "Create an introductory offer in every territory",
|
|
4070
|
+
details: "Creates introductory offers in the selected territories. New offers with overlapping dates overwrite existing introductory offers.",
|
|
4053
4071
|
flags: {
|
|
4054
4072
|
subscription: {
|
|
4055
4073
|
type: "string",
|
|
@@ -4102,12 +4120,13 @@ priced in --territory and equalized.`,
|
|
|
4102
4120
|
describe: "When it ends"
|
|
4103
4121
|
}
|
|
4104
4122
|
},
|
|
4105
|
-
effect: "
|
|
4123
|
+
effect: "destructive",
|
|
4106
4124
|
run: runOffersCreate
|
|
4107
4125
|
},
|
|
4108
4126
|
{
|
|
4109
4127
|
name: "update",
|
|
4110
4128
|
summary: "Change when one offer ends",
|
|
4129
|
+
details: "PATCH changes an existing introductory offer end date, potentially ending the offer earlier.",
|
|
4111
4130
|
args: [{
|
|
4112
4131
|
name: "id",
|
|
4113
4132
|
describe: "The offer's id",
|
|
@@ -4119,7 +4138,7 @@ priced in --territory and equalized.`,
|
|
|
4119
4138
|
describe: "When it ends",
|
|
4120
4139
|
required: true
|
|
4121
4140
|
} },
|
|
4122
|
-
effect: "
|
|
4141
|
+
effect: "destructive",
|
|
4123
4142
|
run: runOffersUpdate
|
|
4124
4143
|
},
|
|
4125
4144
|
{
|
|
@@ -4134,6 +4153,7 @@ priced in --territory and equalized.`,
|
|
|
4134
4153
|
value: "id",
|
|
4135
4154
|
describe: "Delete all of this subscription's offers"
|
|
4136
4155
|
} },
|
|
4156
|
+
confirm: true,
|
|
4137
4157
|
effect: "destructive",
|
|
4138
4158
|
run: runOffersDelete
|
|
4139
4159
|
}
|
|
@@ -4148,7 +4168,9 @@ const command$27 = defineCommand({
|
|
|
4148
4168
|
summary: "Any App Store Connect PATCH request, its body checked against Apple's schema",
|
|
4149
4169
|
details: `Each -d names an attribute or a relationship of the body; its type comes from Apple's
|
|
4150
4170
|
schema and its id from the path. A body the schema would refuse is stopped before it is
|
|
4151
|
-
sent (--force sends it as-is). superwall asc docs <path> patch lists the fields
|
|
4171
|
+
sent (--force sends it as-is). superwall asc docs <path> patch lists the fields.
|
|
4172
|
+
|
|
4173
|
+
Executes an arbitrary App Store Connect PATCH through the signed proxy, with schema validation unless force is set. It can overwrite attributes, relationships and distribution settings.`,
|
|
4152
4174
|
args: { path: {
|
|
4153
4175
|
describe: "The App Store Connect path, e.g. /v1/apps",
|
|
4154
4176
|
required: true
|
|
@@ -4177,7 +4199,7 @@ sent (--force sends it as-is). superwall asc docs <path> patch lists the fields.
|
|
|
4177
4199
|
auth: "required",
|
|
4178
4200
|
json: true,
|
|
4179
4201
|
prompts: true,
|
|
4180
|
-
mcp: "
|
|
4202
|
+
mcp: "destructive",
|
|
4181
4203
|
async run(ctx, { args, flags }) {
|
|
4182
4204
|
const response = await sendAscRequest(ctx, "patch", args.path, {
|
|
4183
4205
|
data: flags.d,
|
|
@@ -4195,7 +4217,9 @@ const command$28 = defineCommand({
|
|
|
4195
4217
|
summary: "Any App Store Connect POST request, its body checked against Apple's schema",
|
|
4196
4218
|
details: `Each -d names an attribute or a relationship of the body; its type comes from Apple's
|
|
4197
4219
|
schema. A body the schema would refuse is stopped before it is sent (--force sends it
|
|
4198
|
-
as-is). superwall asc docs <path> post lists the fields
|
|
4220
|
+
as-is). superwall asc docs <path> post lists the fields.
|
|
4221
|
+
|
|
4222
|
+
Executes an arbitrary App Store Connect POST through the signed proxy, with schema validation unless force is set. It can submit reviews, release versions or replace price schedules; repeating a call may repeat its effects.`,
|
|
4199
4223
|
args: { path: {
|
|
4200
4224
|
describe: "The App Store Connect path, e.g. /v1/apps",
|
|
4201
4225
|
required: true
|
|
@@ -4224,7 +4248,7 @@ as-is). superwall asc docs <path> post lists the fields.`,
|
|
|
4224
4248
|
auth: "required",
|
|
4225
4249
|
json: true,
|
|
4226
4250
|
prompts: true,
|
|
4227
|
-
mcp: "
|
|
4251
|
+
mcp: "destructive",
|
|
4228
4252
|
async run(ctx, { args, flags }) {
|
|
4229
4253
|
const response = await sendAscRequest(ctx, "post", args.path, {
|
|
4230
4254
|
data: flags.d,
|
|
@@ -4277,6 +4301,7 @@ an in-app purchase replaces its price schedule; Apple equalizes the other territ
|
|
|
4277
4301
|
{
|
|
4278
4302
|
name: "set",
|
|
4279
4303
|
summary: "Price it in one territory and equalize every other",
|
|
4304
|
+
details: "Replaces an IAP price schedule or updates subscription prices across available territories. Existing-subscriber price preservation is optional.",
|
|
4280
4305
|
flags: {
|
|
4281
4306
|
subscription: TARGET_FLAGS.subscription,
|
|
4282
4307
|
iap: TARGET_FLAGS.iap,
|
|
@@ -4301,7 +4326,7 @@ an in-app purchase replaces its price schedule; Apple equalizes the other territ
|
|
|
4301
4326
|
describe: "Subscriptions: when the price takes effect (default now)"
|
|
4302
4327
|
}
|
|
4303
4328
|
},
|
|
4304
|
-
effect: "
|
|
4329
|
+
effect: "destructive",
|
|
4305
4330
|
run: runPricesSet
|
|
4306
4331
|
}
|
|
4307
4332
|
],
|
|
@@ -4595,6 +4620,7 @@ release on before the version is released; pause, resume and complete steer it a
|
|
|
4595
4620
|
{
|
|
4596
4621
|
name: "submit",
|
|
4597
4622
|
summary: "Submit a version for App Review, with in-app products alongside",
|
|
4623
|
+
details: "Adds the version and optional products to a review submission and sets submitted=true, changing the existing review workflow.",
|
|
4598
4624
|
args: [VERSION_ARG],
|
|
4599
4625
|
flags: {
|
|
4600
4626
|
...VERSION_FLAGS,
|
|
@@ -4614,7 +4640,7 @@ release on before the version is released; pause, resume and complete steer it a
|
|
|
4614
4640
|
describe: "A subscription group to submit with it (repeatable)"
|
|
4615
4641
|
}
|
|
4616
4642
|
},
|
|
4617
|
-
effect: "
|
|
4643
|
+
effect: "destructive",
|
|
4618
4644
|
run: runReleaseSubmit
|
|
4619
4645
|
},
|
|
4620
4646
|
{
|
|
@@ -4622,12 +4648,14 @@ release on before the version is released; pause, resume and complete steer it a
|
|
|
4622
4648
|
summary: "Release a version that is pending developer release",
|
|
4623
4649
|
args: [VERSION_ARG],
|
|
4624
4650
|
flags: VERSION_FLAGS,
|
|
4651
|
+
confirm: true,
|
|
4625
4652
|
effect: "destructive",
|
|
4626
4653
|
run: runReleaseRelease
|
|
4627
4654
|
},
|
|
4628
4655
|
{
|
|
4629
4656
|
name: "phased",
|
|
4630
4657
|
summary: "Start, pause, resume or complete the version's phased release",
|
|
4658
|
+
details: "Starts, pauses, resumes or completes phased distribution. Completing releases to all users; other actions replace rollout state, subject to Apple’s transition guards.",
|
|
4631
4659
|
args: [{
|
|
4632
4660
|
name: "action",
|
|
4633
4661
|
describe: "What to do",
|
|
@@ -4635,7 +4663,7 @@ release on before the version is released; pause, resume and complete steer it a
|
|
|
4635
4663
|
choices: PHASED_ACTIONS
|
|
4636
4664
|
}, VERSION_ARG],
|
|
4637
4665
|
flags: VERSION_FLAGS,
|
|
4638
|
-
effect: "
|
|
4666
|
+
effect: "destructive",
|
|
4639
4667
|
run: runReleasePhased
|
|
4640
4668
|
},
|
|
4641
4669
|
{
|
|
@@ -4684,7 +4712,9 @@ const command$33 = defineCommand({
|
|
|
4684
4712
|
summary: "Submit subscriptions, groups and in-app purchases for App Review",
|
|
4685
4713
|
details: `Adds the latest version of each to the app's open review submission, or a new one,
|
|
4686
4714
|
then submits it. Apple reviews a first subscription or in-app purchase together with
|
|
4687
|
-
an app version
|
|
4715
|
+
an app version.
|
|
4716
|
+
|
|
4717
|
+
Starts Apple review for products/groups and submits the review submission. This is an outbound workflow transition, not only creation of a local draft.`,
|
|
4688
4718
|
flags: {
|
|
4689
4719
|
ascApp: {
|
|
4690
4720
|
type: "string",
|
|
@@ -4725,7 +4755,7 @@ an app version.`,
|
|
|
4725
4755
|
auth: "required",
|
|
4726
4756
|
json: true,
|
|
4727
4757
|
prompts: true,
|
|
4728
|
-
mcp: "
|
|
4758
|
+
mcp: "destructive",
|
|
4729
4759
|
run(ctx, { flags }) {
|
|
4730
4760
|
return runAscSubmit(ctx, {
|
|
4731
4761
|
ascApp: flags.ascApp,
|
|
@@ -4899,6 +4929,7 @@ const command$34 = defineAscResource({
|
|
|
4899
4929
|
{
|
|
4900
4930
|
name: "update",
|
|
4901
4931
|
summary: "Rename a group",
|
|
4932
|
+
details: "PATCH replaces the existing group reference name.",
|
|
4902
4933
|
args: [{
|
|
4903
4934
|
name: "id",
|
|
4904
4935
|
describe: "The subscription group's id",
|
|
@@ -4910,7 +4941,7 @@ const command$34 = defineAscResource({
|
|
|
4910
4941
|
describe: "The group's new name in App Store Connect",
|
|
4911
4942
|
required: true
|
|
4912
4943
|
} },
|
|
4913
|
-
effect: "
|
|
4944
|
+
effect: "destructive",
|
|
4914
4945
|
run: runSubscriptionGroupsUpdate
|
|
4915
4946
|
},
|
|
4916
4947
|
{
|
|
@@ -4921,6 +4952,7 @@ const command$34 = defineAscResource({
|
|
|
4921
4952
|
describe: "The subscription group's id",
|
|
4922
4953
|
required: true
|
|
4923
4954
|
}],
|
|
4955
|
+
confirm: true,
|
|
4924
4956
|
effect: "destructive",
|
|
4925
4957
|
run: runSubscriptionGroupsDelete
|
|
4926
4958
|
}
|
|
@@ -5037,7 +5069,7 @@ Exit codes
|
|
|
5037
5069
|
prompts: true,
|
|
5038
5070
|
mcp: false,
|
|
5039
5071
|
async run(ctx, input) {
|
|
5040
|
-
const { runSetupApple } = await import("./apple-
|
|
5072
|
+
const { runSetupApple } = await import("./apple-BHbX0jbn.js");
|
|
5041
5073
|
return runSetupApple(ctx, input);
|
|
5042
5074
|
}
|
|
5043
5075
|
});
|
|
@@ -5364,6 +5396,7 @@ state and what is still missing.`,
|
|
|
5364
5396
|
{
|
|
5365
5397
|
name: "update",
|
|
5366
5398
|
summary: "Change a subscription",
|
|
5399
|
+
details: "PATCH replaces subscription attributes, including period, group level and family-sharing configuration when accepted by Apple.",
|
|
5367
5400
|
args: [{
|
|
5368
5401
|
name: "id",
|
|
5369
5402
|
describe: "The subscription's id",
|
|
@@ -5396,7 +5429,7 @@ state and what is still missing.`,
|
|
|
5396
5429
|
describe: "A note for App Review"
|
|
5397
5430
|
}
|
|
5398
5431
|
},
|
|
5399
|
-
effect: "
|
|
5432
|
+
effect: "destructive",
|
|
5400
5433
|
run: runSubscriptionsUpdate
|
|
5401
5434
|
},
|
|
5402
5435
|
{
|
|
@@ -5407,6 +5440,7 @@ state and what is still missing.`,
|
|
|
5407
5440
|
describe: "The subscription's id",
|
|
5408
5441
|
required: true
|
|
5409
5442
|
}],
|
|
5443
|
+
confirm: true,
|
|
5410
5444
|
effect: "destructive",
|
|
5411
5445
|
run: runSubscriptionsDelete
|
|
5412
5446
|
}
|
|
@@ -5506,6 +5540,7 @@ off iOS, --platform. --earliest-release-date (2026-11-01T08:00:00-07:00) goes wi
|
|
|
5506
5540
|
{
|
|
5507
5541
|
name: "update",
|
|
5508
5542
|
summary: "Change a version",
|
|
5543
|
+
details: "PATCH overwrites version fields, release type and earliest release date; it can change automatic-release behavior.",
|
|
5509
5544
|
args: [VERSION_ARG],
|
|
5510
5545
|
flags: {
|
|
5511
5546
|
...VERSION_FLAGS,
|
|
@@ -5531,7 +5566,7 @@ off iOS, --platform. --earliest-release-date (2026-11-01T08:00:00-07:00) goes wi
|
|
|
5531
5566
|
describe: "The copyright line"
|
|
5532
5567
|
}
|
|
5533
5568
|
},
|
|
5534
|
-
effect: "
|
|
5569
|
+
effect: "destructive",
|
|
5535
5570
|
run: runVersionsUpdate
|
|
5536
5571
|
},
|
|
5537
5572
|
{
|
|
@@ -5539,6 +5574,7 @@ off iOS, --platform. --earliest-release-date (2026-11-01T08:00:00-07:00) goes wi
|
|
|
5539
5574
|
summary: "Delete a version while it is still editable",
|
|
5540
5575
|
args: [VERSION_ARG],
|
|
5541
5576
|
flags: VERSION_FLAGS,
|
|
5577
|
+
confirm: true,
|
|
5542
5578
|
effect: "destructive",
|
|
5543
5579
|
run: runVersionsDelete
|
|
5544
5580
|
}
|
|
@@ -5628,31 +5664,32 @@ const LIST_QUERY = [
|
|
|
5628
5664
|
"offset",
|
|
5629
5665
|
"all"
|
|
5630
5666
|
];
|
|
5631
|
-
const op = (group$1, action, method, path, summary, doc, rest = {}) => ({
|
|
5667
|
+
const op = (group$1, action, effect, method, path, summary, doc, rest = {}) => ({
|
|
5632
5668
|
group: group$1,
|
|
5633
5669
|
action,
|
|
5634
5670
|
method,
|
|
5635
5671
|
path,
|
|
5636
5672
|
summary,
|
|
5637
5673
|
doc,
|
|
5638
|
-
...rest
|
|
5674
|
+
...rest,
|
|
5675
|
+
effect
|
|
5639
5676
|
});
|
|
5640
5677
|
const list$1 = (group$1, path, summary, doc, rest = {}) => {
|
|
5641
|
-
return op(group$1, "list", "GET", path, summary, doc, {
|
|
5678
|
+
return op(group$1, "list", "read", "GET", path, summary, doc, {
|
|
5642
5679
|
paged: "query",
|
|
5643
5680
|
query: LIST_QUERY,
|
|
5644
5681
|
...rest
|
|
5645
5682
|
});
|
|
5646
5683
|
};
|
|
5647
5684
|
const byId = (group$1, path, summary, doc, rest = {}) => {
|
|
5648
|
-
return op(group$1, "get", "GET", path, summary, doc, {
|
|
5685
|
+
return op(group$1, "get", "read", "GET", path, summary, doc, {
|
|
5649
5686
|
positional: "id",
|
|
5650
5687
|
query: ["fields"],
|
|
5651
5688
|
...rest
|
|
5652
5689
|
});
|
|
5653
5690
|
};
|
|
5654
5691
|
const find = (group$1, path, summary, doc, rest = {}) => {
|
|
5655
|
-
return op(group$1, "find", "POST", path, summary, doc, {
|
|
5692
|
+
return op(group$1, "find", "read", "POST", path, summary, doc, {
|
|
5656
5693
|
body: "selector",
|
|
5657
5694
|
paged: "selector",
|
|
5658
5695
|
query: SELECTOR_QUERY,
|
|
@@ -5663,45 +5700,51 @@ const ASA_OPERATIONS = [
|
|
|
5663
5700
|
list$1("campaigns", "/campaigns", "List campaigns", "get-all-campaigns"),
|
|
5664
5701
|
byId("campaigns", "/campaigns/{id}", "Get a campaign", "get-a-campaign"),
|
|
5665
5702
|
find("campaigns", "/campaigns/find", "Find campaigns with a selector", "find-campaigns"),
|
|
5666
|
-
op("campaigns", "create", "POST", "/campaigns", "Create a campaign", "create-a-campaign", {
|
|
5703
|
+
op("campaigns", "create", "destructive", "POST", "/campaigns", "Create a campaign", "create-a-campaign", {
|
|
5704
|
+
details: "Creates a campaign with a budget and caller-selected status. ENABLED permits advertising once Apple’s serving requirements are met; this is not restricted to paused drafts.",
|
|
5667
5705
|
body: "object",
|
|
5668
5706
|
flags: CAMPAIGN_FIELDS
|
|
5669
5707
|
}),
|
|
5670
|
-
op("campaigns", "update", "PUT", "/campaigns/{id}", "Update a campaign", "update-a-campaign", {
|
|
5708
|
+
op("campaigns", "update", "destructive", "PUT", "/campaigns/{id}", "Update a campaign", "update-a-campaign", {
|
|
5709
|
+
details: "Overwrites campaign status, countries and daily/lifetime budgets; can enable spending or pause delivery.",
|
|
5671
5710
|
positional: "id",
|
|
5672
5711
|
body: "object",
|
|
5673
5712
|
envelope: "campaign",
|
|
5674
5713
|
flags: CAMPAIGN_FIELDS
|
|
5675
5714
|
}),
|
|
5676
|
-
op("campaigns", "delete", "DELETE", "/campaigns/{id}", "Delete a campaign", "delete-a-campaign", { positional: "id" }),
|
|
5715
|
+
op("campaigns", "delete", "destructive", "DELETE", "/campaigns/{id}", "Delete a campaign", "delete-a-campaign", { positional: "id" }),
|
|
5677
5716
|
list$1("adgroups", "/campaigns/{campaign}/adgroups", "List ad groups in a campaign", "get-all-ad-groups"),
|
|
5678
5717
|
byId("adgroups", "/campaigns/{campaign}/adgroups/{id}", "Get an ad group", "get-an-ad-group"),
|
|
5679
5718
|
find("adgroups", "/campaigns/{campaign}/adgroups/find", "Find ad groups in a campaign", "find-ad-groups"),
|
|
5680
5719
|
find("adgroups", "/adgroups/find", "Find ad groups across the org", "find-ad-groups-(org-level)"),
|
|
5681
|
-
op("adgroups", "create", "POST", "/campaigns/{campaign}/adgroups", "Create an ad group", "create-an-ad-group", {
|
|
5720
|
+
op("adgroups", "create", "destructive", "POST", "/campaigns/{campaign}/adgroups", "Create an ad group", "create-an-ad-group", {
|
|
5721
|
+
details: "Creates a bid-bearing ad group. An enabled group in an eligible live campaign can begin serving and spending immediately.",
|
|
5682
5722
|
body: "object",
|
|
5683
5723
|
flags: ADGROUP_FIELDS
|
|
5684
5724
|
}),
|
|
5685
|
-
op("adgroups", "update", "PUT", "/campaigns/{campaign}/adgroups/{id}", "Update an ad group", "update-an-ad-group", {
|
|
5725
|
+
op("adgroups", "update", "destructive", "PUT", "/campaigns/{campaign}/adgroups/{id}", "Update an ad group", "update-an-ad-group", {
|
|
5726
|
+
details: "Overwrites ad-group status, bids, CPA goal, dates and Search Match behavior.",
|
|
5686
5727
|
positional: "id",
|
|
5687
5728
|
body: "object",
|
|
5688
5729
|
flags: ADGROUP_FIELDS
|
|
5689
5730
|
}),
|
|
5690
|
-
op("adgroups", "delete", "DELETE", "/campaigns/{campaign}/adgroups/{id}", "Delete an ad group", "delete-an-ad-group", { positional: "id" }),
|
|
5731
|
+
op("adgroups", "delete", "destructive", "DELETE", "/campaigns/{campaign}/adgroups/{id}", "Delete an ad group", "delete-an-ad-group", { positional: "id" }),
|
|
5691
5732
|
list$1("keywords", "/campaigns/{campaign}/adgroups/{adgroup}/targetingkeywords", "List targeting keywords in an ad group", "get-all-targeting-keywords-in-an-ad-group"),
|
|
5692
5733
|
byId("keywords", "/campaigns/{campaign}/adgroups/{adgroup}/targetingkeywords/{id}", "Get a targeting keyword", "get-a-targeting-keyword-in-an-ad-group"),
|
|
5693
5734
|
find("keywords", "/campaigns/{campaign}/adgroups/targetingkeywords/find", "Find targeting keywords across a campaign", "find-targeting-keywords-in-a-campaign"),
|
|
5694
|
-
op("keywords", "create", "POST", "/campaigns/{campaign}/adgroups/{adgroup}/targetingkeywords/bulk", "Create targeting keywords (bulk)", "create-targeting-keywords", {
|
|
5735
|
+
op("keywords", "create", "destructive", "POST", "/campaigns/{campaign}/adgroups/{adgroup}/targetingkeywords/bulk", "Create targeting keywords (bulk)", "create-targeting-keywords", {
|
|
5736
|
+
details: "Creates targeting keywords, which can be ACTIVE with bids in a live ad group and enable spending.",
|
|
5695
5737
|
body: "array",
|
|
5696
5738
|
flags: KEYWORD_FIELDS
|
|
5697
5739
|
}),
|
|
5698
|
-
op("keywords", "update", "PUT", "/campaigns/{campaign}/adgroups/{adgroup}/targetingkeywords/bulk", "Update targeting keywords (bulk)", "update-targeting-keywords", {
|
|
5740
|
+
op("keywords", "update", "destructive", "PUT", "/campaigns/{campaign}/adgroups/{adgroup}/targetingkeywords/bulk", "Update targeting keywords (bulk)", "update-targeting-keywords", {
|
|
5741
|
+
details: "Bulk-overwrites targeting keyword status, match type or bids.",
|
|
5699
5742
|
positional: "id",
|
|
5700
5743
|
body: "array",
|
|
5701
5744
|
flags: KEYWORD_FIELDS
|
|
5702
5745
|
}),
|
|
5703
|
-
op("keywords", "delete", "DELETE", "/campaigns/{campaign}/adgroups/{adgroup}/targetingkeywords/{id}", "Delete a targeting keyword", "delete-a-targeting-keyword", { positional: "ids" }),
|
|
5704
|
-
op("keywords", "delete", "POST", "/campaigns/{campaign}/adgroups/{adgroup}/targetingkeywords/delete/bulk", "Delete targeting keywords (bulk)", "delete-targeting-keywords", {
|
|
5746
|
+
op("keywords", "delete", "destructive", "DELETE", "/campaigns/{campaign}/adgroups/{adgroup}/targetingkeywords/{id}", "Delete a targeting keyword", "delete-a-targeting-keyword", { positional: "ids" }),
|
|
5747
|
+
op("keywords", "delete", "destructive", "POST", "/campaigns/{campaign}/adgroups/{adgroup}/targetingkeywords/delete/bulk", "Delete targeting keywords (bulk)", "delete-targeting-keywords", {
|
|
5705
5748
|
positional: "ids",
|
|
5706
5749
|
body: "ids"
|
|
5707
5750
|
}),
|
|
@@ -5711,29 +5754,31 @@ const ASA_OPERATIONS = [
|
|
|
5711
5754
|
byId("negative-keywords", "/campaigns/{campaign}/adgroups/{adgroup}/negativekeywords/{id}", "Get an ad group negative keyword", "get-an-ad-group-negative-keyword"),
|
|
5712
5755
|
find("negative-keywords", "/campaigns/{campaign}/negativekeywords/find", "Find campaign negative keywords", "find-campaign-negative-keywords"),
|
|
5713
5756
|
find("negative-keywords", "/campaigns/{campaign}/adgroups/negativekeywords/find", "Find ad group negative keywords across a campaign", "find-ad-group-negative-keywords", { level: "adgroup" }),
|
|
5714
|
-
op("negative-keywords", "create", "POST", "/campaigns/{campaign}/negativekeywords/bulk", "Create campaign negative keywords (bulk)", "create-campaign-negative-keywords", {
|
|
5757
|
+
op("negative-keywords", "create", "write", "POST", "/campaigns/{campaign}/negativekeywords/bulk", "Create campaign negative keywords (bulk)", "create-campaign-negative-keywords", {
|
|
5715
5758
|
body: "array",
|
|
5716
5759
|
flags: NEGATIVE_FIELDS
|
|
5717
5760
|
}),
|
|
5718
|
-
op("negative-keywords", "create", "POST", "/campaigns/{campaign}/adgroups/{adgroup}/negativekeywords/bulk", "Create ad group negative keywords (bulk)", "create-ad-group-negative-keywords", {
|
|
5761
|
+
op("negative-keywords", "create", "write", "POST", "/campaigns/{campaign}/adgroups/{adgroup}/negativekeywords/bulk", "Create ad group negative keywords (bulk)", "create-ad-group-negative-keywords", {
|
|
5719
5762
|
body: "array",
|
|
5720
5763
|
flags: NEGATIVE_FIELDS
|
|
5721
5764
|
}),
|
|
5722
|
-
op("negative-keywords", "update", "PUT", "/campaigns/{campaign}/negativekeywords/bulk", "Update campaign negative keywords (bulk)", "update-campaign-negative-keywords", {
|
|
5765
|
+
op("negative-keywords", "update", "destructive", "PUT", "/campaigns/{campaign}/negativekeywords/bulk", "Update campaign negative keywords (bulk)", "update-campaign-negative-keywords", {
|
|
5766
|
+
details: "Bulk-overwrites negative keyword configuration and can change which traffic is excluded.",
|
|
5723
5767
|
positional: "id",
|
|
5724
5768
|
body: "array",
|
|
5725
5769
|
flags: NEGATIVE_FIELDS
|
|
5726
5770
|
}),
|
|
5727
|
-
op("negative-keywords", "update", "PUT", "/campaigns/{campaign}/adgroups/{adgroup}/negativekeywords/bulk", "Update ad group negative keywords (bulk)", "update-ad-group-negative-keywords", {
|
|
5771
|
+
op("negative-keywords", "update", "destructive", "PUT", "/campaigns/{campaign}/adgroups/{adgroup}/negativekeywords/bulk", "Update ad group negative keywords (bulk)", "update-ad-group-negative-keywords", {
|
|
5772
|
+
details: "Bulk-overwrites negative keyword configuration and can change which traffic is excluded.",
|
|
5728
5773
|
positional: "id",
|
|
5729
5774
|
body: "array",
|
|
5730
5775
|
flags: NEGATIVE_FIELDS
|
|
5731
5776
|
}),
|
|
5732
|
-
op("negative-keywords", "delete", "POST", "/campaigns/{campaign}/negativekeywords/delete/bulk", "Delete campaign negative keywords", "delete-campaign-negative-keywords", {
|
|
5777
|
+
op("negative-keywords", "delete", "destructive", "POST", "/campaigns/{campaign}/negativekeywords/delete/bulk", "Delete campaign negative keywords", "delete-campaign-negative-keywords", {
|
|
5733
5778
|
positional: "ids",
|
|
5734
5779
|
body: "ids"
|
|
5735
5780
|
}),
|
|
5736
|
-
op("negative-keywords", "delete", "POST", "/campaigns/{campaign}/adgroups/{adgroup}/negativekeywords/delete/bulk", "Delete ad group negative keywords", "delete-ad-group-negative-keywords", {
|
|
5781
|
+
op("negative-keywords", "delete", "destructive", "POST", "/campaigns/{campaign}/adgroups/{adgroup}/negativekeywords/delete/bulk", "Delete ad group negative keywords", "delete-ad-group-negative-keywords", {
|
|
5737
5782
|
positional: "ids",
|
|
5738
5783
|
body: "ids"
|
|
5739
5784
|
}),
|
|
@@ -5741,20 +5786,22 @@ const ASA_OPERATIONS = [
|
|
|
5741
5786
|
byId("ads", "/campaigns/{campaign}/adgroups/{adgroup}/ads/{id}", "Get an ad", "get-an-ad"),
|
|
5742
5787
|
find("ads", "/campaigns/{campaign}/ads/find", "Find ads in a campaign", "find-ads"),
|
|
5743
5788
|
find("ads", "/ads/find", "Find ads across the org", "find-ads-(org-level)"),
|
|
5744
|
-
op("ads", "create", "POST", "/campaigns/{campaign}/adgroups/{adgroup}/ads", "Create an ad", "create-an-ad", {
|
|
5789
|
+
op("ads", "create", "destructive", "POST", "/campaigns/{campaign}/adgroups/{adgroup}/ads", "Create an ad", "create-an-ad", {
|
|
5790
|
+
details: "Creates an ad assigned to a creative. An ENABLED ad in an eligible live group can begin serving and spending immediately.",
|
|
5745
5791
|
body: "object",
|
|
5746
5792
|
flags: AD_FIELDS
|
|
5747
5793
|
}),
|
|
5748
|
-
op("ads", "update", "PUT", "/campaigns/{campaign}/adgroups/{adgroup}/ads/{id}", "Update an ad", "update-an-ad", {
|
|
5794
|
+
op("ads", "update", "destructive", "PUT", "/campaigns/{campaign}/adgroups/{adgroup}/ads/{id}", "Update an ad", "update-an-ad", {
|
|
5795
|
+
details: "Overwrites ad status/name; pausing or enabling changes delivery.",
|
|
5749
5796
|
positional: "id",
|
|
5750
5797
|
body: "object",
|
|
5751
5798
|
flags: [NAME, STATUS]
|
|
5752
5799
|
}),
|
|
5753
|
-
op("ads", "delete", "DELETE", "/campaigns/{campaign}/adgroups/{adgroup}/ads/{id}", "Delete an ad", "delete-an-ad", { positional: "id" }),
|
|
5800
|
+
op("ads", "delete", "destructive", "DELETE", "/campaigns/{campaign}/adgroups/{adgroup}/ads/{id}", "Delete an ad", "delete-an-ad", { positional: "id" }),
|
|
5754
5801
|
list$1("creatives", "/creatives", "List creatives", "get-all-creatives"),
|
|
5755
5802
|
byId("creatives", "/creatives/{id}", "Get a creative", "get-a-creative", { query: ["fields", "include-deleted-assets"] }),
|
|
5756
5803
|
find("creatives", "/creatives/find", "Find creatives with a selector", "find-creatives"),
|
|
5757
|
-
op("creatives", "create", "POST", "/creatives", "Create a creative", "create-a-creative", {
|
|
5804
|
+
op("creatives", "create", "write", "POST", "/creatives", "Create a creative", "create-a-creative", {
|
|
5758
5805
|
body: "object",
|
|
5759
5806
|
flags: [
|
|
5760
5807
|
ADAM_ID,
|
|
@@ -5772,7 +5819,7 @@ const ASA_OPERATIONS = [
|
|
|
5772
5819
|
]
|
|
5773
5820
|
}),
|
|
5774
5821
|
byId("product-pages", "/apps/{adamId}/product-pages/{id}", "Get a product page", "get-product-pages-by-identifier", { query: ["adam-id"] }),
|
|
5775
|
-
op("product-pages", "locales", "GET", "/apps/{adamId}/product-pages/{id}/locale-details", "Get a product page's locales", "get-product-page-locales", {
|
|
5822
|
+
op("product-pages", "locales", "read", "GET", "/apps/{adamId}/product-pages/{id}/locale-details", "Get a product page's locales", "get-product-page-locales", {
|
|
5776
5823
|
positional: "id",
|
|
5777
5824
|
query: [
|
|
5778
5825
|
"adam-id",
|
|
@@ -5781,45 +5828,46 @@ const ASA_OPERATIONS = [
|
|
|
5781
5828
|
"expand"
|
|
5782
5829
|
]
|
|
5783
5830
|
}),
|
|
5784
|
-
op("product-pages", "countries", "GET", "/countries-or-regions", "List supported countries or regions", "get-supported-countries-or-regions", { query: ["countries"] }),
|
|
5785
|
-
op("product-pages", "device-sizes", "GET", "/creativeappmappings/devices", "List app preview device sizes", "get-app-preview-device-sizes"),
|
|
5831
|
+
op("product-pages", "countries", "read", "GET", "/countries-or-regions", "List supported countries or regions", "get-supported-countries-or-regions", { query: ["countries"] }),
|
|
5832
|
+
op("product-pages", "device-sizes", "read", "GET", "/creativeappmappings/devices", "List app preview device sizes", "get-app-preview-device-sizes"),
|
|
5786
5833
|
find("ad-rejections", "/product-page-reasons/find", "Find ad creative rejection reasons", "find-ad-creative-rejection-reasons"),
|
|
5787
5834
|
byId("ad-rejections", "/product-page-reasons/{id}", "Get an ad creative rejection reason", "gets-a-product-page-reason"),
|
|
5788
5835
|
find("ad-rejections", "/apps/{adamId}/assets/find", "Find an app's assets", "find-app-assets", {
|
|
5789
5836
|
action: "assets",
|
|
5837
|
+
details: "Retrieves asset metadata with a selector using POST; does not modify assets or start a job.",
|
|
5790
5838
|
query: [...SELECTOR_QUERY, "adam-id"]
|
|
5791
5839
|
}),
|
|
5792
|
-
op("reports", "campaigns", "POST", "/reports/campaigns", "Campaign-level report", "get-campaign-level-reports", {
|
|
5840
|
+
op("reports", "campaigns", "read", "POST", "/reports/campaigns", "Campaign-level report", "get-campaign-level-reports", {
|
|
5793
5841
|
body: "report",
|
|
5794
5842
|
flags: REPORT_FLAGS
|
|
5795
5843
|
}),
|
|
5796
|
-
op("reports", "adgroups", "POST", "/reports/campaigns/{campaign}/adgroups", "Ad group-level report", "get-ad-group-level-reports", {
|
|
5844
|
+
op("reports", "adgroups", "read", "POST", "/reports/campaigns/{campaign}/adgroups", "Ad group-level report", "get-ad-group-level-reports", {
|
|
5797
5845
|
body: "report",
|
|
5798
5846
|
flags: REPORT_FLAGS
|
|
5799
5847
|
}),
|
|
5800
|
-
op("reports", "keywords", "POST", "/reports/campaigns/{campaign}/keywords", "Keyword-level report", "get-keyword-level-reports", {
|
|
5848
|
+
op("reports", "keywords", "read", "POST", "/reports/campaigns/{campaign}/keywords", "Keyword-level report", "get-keyword-level-reports", {
|
|
5801
5849
|
body: "report",
|
|
5802
5850
|
flags: REPORT_FLAGS
|
|
5803
5851
|
}),
|
|
5804
|
-
op("reports", "keywords", "POST", "/reports/campaigns/{campaign}/adgroups/{adgroup}/keywords", "Keyword-level report within an ad group", "get-keyword-level-within-ad-group-reports", {
|
|
5852
|
+
op("reports", "keywords", "read", "POST", "/reports/campaigns/{campaign}/adgroups/{adgroup}/keywords", "Keyword-level report within an ad group", "get-keyword-level-within-ad-group-reports", {
|
|
5805
5853
|
body: "report",
|
|
5806
5854
|
flags: REPORT_FLAGS
|
|
5807
5855
|
}),
|
|
5808
|
-
op("reports", "searchterms", "POST", "/reports/campaigns/{campaign}/searchterms", "Search term-level report", "get-search-term-level-reports", {
|
|
5856
|
+
op("reports", "searchterms", "read", "POST", "/reports/campaigns/{campaign}/searchterms", "Search term-level report", "get-search-term-level-reports", {
|
|
5809
5857
|
body: "report",
|
|
5810
5858
|
flags: REPORT_FLAGS
|
|
5811
5859
|
}),
|
|
5812
|
-
op("reports", "searchterms", "POST", "/reports/campaigns/{campaign}/adgroups/{adgroup}/searchterms", "Search term-level report within an ad group", "get-search-term-level-within-ad-group-reports", {
|
|
5860
|
+
op("reports", "searchterms", "read", "POST", "/reports/campaigns/{campaign}/adgroups/{adgroup}/searchterms", "Search term-level report within an ad group", "get-search-term-level-within-ad-group-reports", {
|
|
5813
5861
|
body: "report",
|
|
5814
5862
|
flags: REPORT_FLAGS
|
|
5815
5863
|
}),
|
|
5816
|
-
op("reports", "ads", "POST", "/reports/campaigns/{campaign}/ads", "Ad-level report", "get-ad-level-reports", {
|
|
5864
|
+
op("reports", "ads", "read", "POST", "/reports/campaigns/{campaign}/ads", "Ad-level report", "get-ad-level-reports", {
|
|
5817
5865
|
body: "report",
|
|
5818
5866
|
flags: REPORT_FLAGS
|
|
5819
5867
|
}),
|
|
5820
5868
|
list$1("impression-share", "/custom-reports", "List impression share reports", "get-all-impression-share-reports"),
|
|
5821
5869
|
byId("impression-share", "/custom-reports/{id}", "Get an impression share report", "get-a-single-impression-share-report"),
|
|
5822
|
-
op("impression-share", "create", "POST", "/custom-reports", "Request an impression share report", "impression-share-report", {
|
|
5870
|
+
op("impression-share", "create", "write", "POST", "/custom-reports", "Request an impression share report", "impression-share-report", {
|
|
5823
5871
|
body: "object",
|
|
5824
5872
|
flags: [
|
|
5825
5873
|
NAME,
|
|
@@ -5830,7 +5878,7 @@ const ASA_OPERATIONS = [
|
|
|
5830
5878
|
flag("metrics", "metrics", "list", "Comma-separated metrics")
|
|
5831
5879
|
]
|
|
5832
5880
|
}),
|
|
5833
|
-
op("apps", "search", "GET", "/search/apps", "Search the App Store for apps", "search-for-ios-apps", {
|
|
5881
|
+
op("apps", "search", "read", "GET", "/search/apps", "Search the App Store for apps", "search-for-ios-apps", {
|
|
5834
5882
|
positional: "query",
|
|
5835
5883
|
paged: "query",
|
|
5836
5884
|
query: [
|
|
@@ -5842,11 +5890,12 @@ const ASA_OPERATIONS = [
|
|
|
5842
5890
|
}),
|
|
5843
5891
|
find("apps", "/apps/{adamId}/eligibilities/find", "Find an app's eligibility records", "find-app-eligibility-records", {
|
|
5844
5892
|
action: "eligibility",
|
|
5893
|
+
details: "Retrieves app eligibility records using POST; does not change eligibility or start a job.",
|
|
5845
5894
|
positional: "adam-id"
|
|
5846
5895
|
}),
|
|
5847
|
-
op("apps", "get", "GET", "/apps/{adamId}", "Get app details", "get-app-details", { positional: "adam-id" }),
|
|
5848
|
-
op("apps", "localized", "GET", "/apps/{adamId}/locale-details", "Get localized app details", "get-localized-app-details", { positional: "adam-id" }),
|
|
5849
|
-
op("geo", "search", "GET", "/search/geo", "Search geolocations", "search-for-geolocations", {
|
|
5896
|
+
op("apps", "get", "read", "GET", "/apps/{adamId}", "Get app details", "get-app-details", { positional: "adam-id" }),
|
|
5897
|
+
op("apps", "localized", "read", "GET", "/apps/{adamId}/locale-details", "Get localized app details", "get-localized-app-details", { positional: "adam-id" }),
|
|
5898
|
+
op("geo", "search", "read", "GET", "/search/geo", "Search geolocations", "search-for-geolocations", {
|
|
5850
5899
|
positional: "query",
|
|
5851
5900
|
paged: "query",
|
|
5852
5901
|
query: [
|
|
@@ -5857,20 +5906,25 @@ const ASA_OPERATIONS = [
|
|
|
5857
5906
|
"all"
|
|
5858
5907
|
]
|
|
5859
5908
|
}),
|
|
5860
|
-
op("geo", "get", "POST", "/search/geo", "Look up geolocations by id", "get-a-list-of-geo-locations", {
|
|
5909
|
+
op("geo", "get", "read", "POST", "/search/geo", "Look up geolocations by id", "get-a-list-of-geo-locations", {
|
|
5910
|
+
details: "Retrieves geolocations by ID using POST; does not create locations or start a job.",
|
|
5861
5911
|
positional: "ids",
|
|
5862
5912
|
body: "geo",
|
|
5863
5913
|
query: ["entity"]
|
|
5864
5914
|
}),
|
|
5865
5915
|
list$1("budget-orders", "/budgetorders", "List budget orders", "get-all-budget-orders"),
|
|
5866
5916
|
byId("budget-orders", "/budgetorders/{id}", "Get a budget order", "get-a-budget-order"),
|
|
5867
|
-
op("budget-orders", "create", "POST", "/budgetorders", "Create a budget order", "create-a-budget-order", {
|
|
5868
|
-
|
|
5917
|
+
op("budget-orders", "create", "destructive", "POST", "/budgetorders", "Create a budget order", "create-a-budget-order", {
|
|
5918
|
+
details: "Creates a financial budget order for the organization. Apple can return it ACTIVE; the request is not restricted to a draft allocation.",
|
|
5919
|
+
body: "object"
|
|
5920
|
+
}),
|
|
5921
|
+
op("budget-orders", "update", "destructive", "PUT", "/budgetorders/{id}", "Update a budget order", "update-a-budget-order", {
|
|
5922
|
+
details: "Overwrites a financial budget order using an unrestricted request body.",
|
|
5869
5923
|
positional: "id",
|
|
5870
5924
|
body: "object"
|
|
5871
5925
|
}),
|
|
5872
|
-
op("acls", "list", "GET", "/acls", "List the orgs this API user can access", "get-user-acl"),
|
|
5873
|
-
op("me", "get", "GET", "/me", "Show the calling API user", "get-me-details")
|
|
5926
|
+
op("acls", "list", "read", "GET", "/acls", "List the orgs this API user can access", "get-user-acl"),
|
|
5927
|
+
op("me", "get", "read", "GET", "/me", "Show the calling API user", "get-me-details")
|
|
5874
5928
|
];
|
|
5875
5929
|
const PLACEHOLDERS = [
|
|
5876
5930
|
"campaign",
|
|
@@ -6070,7 +6124,7 @@ function renderAsaHelp(words) {
|
|
|
6070
6124
|
usage: formatAsaUsage(op$1),
|
|
6071
6125
|
summary: variants.map((variant) => variant.summary).join("; "),
|
|
6072
6126
|
flags: formatAsaFlags(op$1, variants),
|
|
6073
|
-
details: `Apple's schema for it: superwall asa docs ${group$1} ${action}`
|
|
6127
|
+
details: [...new Set(variants.map((variant) => variant.details).filter(Boolean)), `Apple's schema for it: superwall asa docs ${group$1} ${action}`].join("\n\n")
|
|
6074
6128
|
});
|
|
6075
6129
|
}
|
|
6076
6130
|
|
|
@@ -6867,17 +6921,17 @@ function toolOf$1(group$1, action) {
|
|
|
6867
6921
|
description: "Ad group negative keywords instead of the campaign's"
|
|
6868
6922
|
};
|
|
6869
6923
|
}
|
|
6870
|
-
const
|
|
6924
|
+
const effect = variants.some((variant) => variant.effect === "destructive") ? "destructive" : variants.every((variant) => variant.effect === "read") ? "read" : "write";
|
|
6871
6925
|
return {
|
|
6872
6926
|
words: [group$1, action],
|
|
6873
6927
|
summary: variants.map((variant) => variant.summary).join("; "),
|
|
6874
|
-
details: `Apple's schema for it: the asa_docs tool with "${group$1} ${action}"
|
|
6928
|
+
details: [...new Set(variants.map((variant) => variant.details).filter(Boolean)), `Apple's schema for it: the asa_docs tool with "${group$1} ${action}".`].join("\n\n"),
|
|
6875
6929
|
positionals,
|
|
6876
6930
|
input: {
|
|
6877
6931
|
properties,
|
|
6878
6932
|
required: [...new Set(required)]
|
|
6879
6933
|
},
|
|
6880
|
-
effect
|
|
6934
|
+
effect
|
|
6881
6935
|
};
|
|
6882
6936
|
}
|
|
6883
6937
|
async function listAsaTools() {
|
|
@@ -7529,6 +7583,7 @@ const command$42 = defineCommand({
|
|
|
7529
7583
|
const command$43 = defineCommand({
|
|
7530
7584
|
name: "asa post",
|
|
7531
7585
|
summary: "Any POST request to the Apple Search Ads API",
|
|
7586
|
+
details: "Executes an arbitrary Apple Ads POST. It can bulk-delete resources, activate advertising or create financial budget orders; repeating a call may repeat its effects.",
|
|
7532
7587
|
args: { path: {
|
|
7533
7588
|
describe: "Apple Search Ads API path, e.g. /campaigns (the /api/v5 prefix is added)",
|
|
7534
7589
|
required: true
|
|
@@ -7557,7 +7612,7 @@ const command$43 = defineCommand({
|
|
|
7557
7612
|
auth: "required",
|
|
7558
7613
|
json: true,
|
|
7559
7614
|
prompts: false,
|
|
7560
|
-
mcp: "
|
|
7615
|
+
mcp: "destructive",
|
|
7561
7616
|
async run(ctx, { args, flags }) {
|
|
7562
7617
|
const res = await runAsaRequest(ctx, ctx.api, {
|
|
7563
7618
|
verb: "post",
|
|
@@ -7575,6 +7630,7 @@ const command$43 = defineCommand({
|
|
|
7575
7630
|
const command$44 = defineCommand({
|
|
7576
7631
|
name: "asa put",
|
|
7577
7632
|
summary: "Any PUT request to the Apple Search Ads API",
|
|
7633
|
+
details: "Executes an arbitrary Apple Ads PUT. It can overwrite bids, targeting, budgets and delivery status.",
|
|
7578
7634
|
args: { path: {
|
|
7579
7635
|
describe: "Apple Search Ads API path, e.g. /campaigns (the /api/v5 prefix is added)",
|
|
7580
7636
|
required: true
|
|
@@ -7603,7 +7659,7 @@ const command$44 = defineCommand({
|
|
|
7603
7659
|
auth: "required",
|
|
7604
7660
|
json: true,
|
|
7605
7661
|
prompts: false,
|
|
7606
|
-
mcp: "
|
|
7662
|
+
mcp: "destructive",
|
|
7607
7663
|
async run(ctx, { args, flags }) {
|
|
7608
7664
|
const res = await runAsaRequest(ctx, ctx.api, {
|
|
7609
7665
|
verb: "put",
|
|
@@ -7646,7 +7702,7 @@ const command$45 = defineCommand({
|
|
|
7646
7702
|
mcp: false,
|
|
7647
7703
|
channel: "next",
|
|
7648
7704
|
async run(ctx, { args, flags }) {
|
|
7649
|
-
const { runBuildPipeline } = await import("./build-
|
|
7705
|
+
const { runBuildPipeline } = await import("./build-5PQeSnNN.js");
|
|
7650
7706
|
await runBuildPipeline({
|
|
7651
7707
|
output: ctx.output,
|
|
7652
7708
|
json: ctx.json
|
|
@@ -7708,7 +7764,7 @@ const command$46 = defineCommand({
|
|
|
7708
7764
|
mcp: false,
|
|
7709
7765
|
channel: "next",
|
|
7710
7766
|
async run(ctx, { args, flags }) {
|
|
7711
|
-
const { runCreate } = await import("./create-
|
|
7767
|
+
const { runCreate } = await import("./create-VK-pNfN7.js");
|
|
7712
7768
|
return runCreate(ctx, {
|
|
7713
7769
|
dir: args.dir,
|
|
7714
7770
|
...flags
|
|
@@ -7752,7 +7808,7 @@ const command$47 = defineCommand({
|
|
|
7752
7808
|
mcp: false,
|
|
7753
7809
|
channel: "next",
|
|
7754
7810
|
async run(ctx, { args, flags }) {
|
|
7755
|
-
const { runStudio } = await import("./server-
|
|
7811
|
+
const { runStudio } = await import("./server-CwrZ-I1r.js");
|
|
7756
7812
|
await runStudio({
|
|
7757
7813
|
dirs: args.dir,
|
|
7758
7814
|
port: flags.port,
|
|
@@ -7793,7 +7849,7 @@ const command$48 = defineCommand({
|
|
|
7793
7849
|
mcp: false,
|
|
7794
7850
|
channel: "next",
|
|
7795
7851
|
async run(ctx, input) {
|
|
7796
|
-
const { runPromote } = await import("./promote-
|
|
7852
|
+
const { runPromote } = await import("./promote-DPGPamkE.js");
|
|
7797
7853
|
return runPromote(ctx, input);
|
|
7798
7854
|
}
|
|
7799
7855
|
});
|
|
@@ -7838,7 +7894,7 @@ const command$49 = defineCommand({
|
|
|
7838
7894
|
mcp: false,
|
|
7839
7895
|
channel: "next",
|
|
7840
7896
|
async run(ctx, input) {
|
|
7841
|
-
const { runPush } = await import("./push-
|
|
7897
|
+
const { runPush } = await import("./push-Chp21y3a.js");
|
|
7842
7898
|
return runPush(ctx, input, true);
|
|
7843
7899
|
}
|
|
7844
7900
|
});
|
|
@@ -7883,7 +7939,7 @@ const command$50 = defineCommand({
|
|
|
7883
7939
|
mcp: false,
|
|
7884
7940
|
channel: "next",
|
|
7885
7941
|
async run(ctx, input) {
|
|
7886
|
-
const { runPush } = await import("./push-
|
|
7942
|
+
const { runPush } = await import("./push-Chp21y3a.js");
|
|
7887
7943
|
return runPush(ctx, input, false);
|
|
7888
7944
|
}
|
|
7889
7945
|
});
|
|
@@ -8000,7 +8056,7 @@ function resourceHelp(resource) {
|
|
|
8000
8056
|
})),
|
|
8001
8057
|
{
|
|
8002
8058
|
title: "Related",
|
|
8003
|
-
lines: table((resource.related ?? []).map(([command$
|
|
8059
|
+
lines: table((resource.related ?? []).map(([command$68, text]) => [`superwall ${command$68}`, pc.dim(text)]), ([left]) => left.length)
|
|
8004
8060
|
},
|
|
8005
8061
|
{
|
|
8006
8062
|
title: "Examples",
|
|
@@ -8272,7 +8328,7 @@ async function createApp(context, api, nameArg, fields) {
|
|
|
8272
8328
|
let name = nameArg;
|
|
8273
8329
|
let platform = textOf(fields.platform);
|
|
8274
8330
|
if (interactive && (!name || !platform)) {
|
|
8275
|
-
const { scanProject } = await import("./scan-
|
|
8331
|
+
const { scanProject } = await import("./scan-B1SkkUi7.js");
|
|
8276
8332
|
const detected = (await scanProject(context.installDir).catch(() => null))?.apps[0];
|
|
8277
8333
|
if (detected && !name && !platform) {
|
|
8278
8334
|
ui.info(`Detected \`${detected.framework.name}\`` + (detected.details ? ` · \`${detected.details}\`` : ""));
|
|
@@ -8511,7 +8567,7 @@ async function runResource(ctx, resource, action, value$1, value2, flags) {
|
|
|
8511
8567
|
if (action === "create") return create(ctx, ctx.api, resource, value$1, value2, flags);
|
|
8512
8568
|
if (action === "use" && resource === "apps") return useApp(ctx, ctx.api, value$1);
|
|
8513
8569
|
if (action === "storekit" && resource === "products") {
|
|
8514
|
-
const { writeStoreKit } = await import("./storekit-
|
|
8570
|
+
const { writeStoreKit } = await import("./storekit-DHNxDDpA.js");
|
|
8515
8571
|
return writeStoreKit(ctx, ctx.api, flags.fields.out);
|
|
8516
8572
|
}
|
|
8517
8573
|
throw new Error(`Unknown action "${action}" for ${resource}.`);
|
|
@@ -8525,15 +8581,15 @@ async function runOperation(ctx, owner, resource, op$1, args, flags) {
|
|
|
8525
8581
|
}
|
|
8526
8582
|
const toFlag = (field) => `--${field.replace(/_/g, "-")}`;
|
|
8527
8583
|
async function callOperation(context, owner, resource, op$1, ids, flags, merged = {}) {
|
|
8528
|
-
const command$
|
|
8584
|
+
const command$68 = `superwall ${owner === resource ? "" : `${owner.name} `}${resource.name} ${op$1.name}`;
|
|
8529
8585
|
const { method, path: template } = op$1;
|
|
8530
|
-
if (!method || !template) throw new Error(`${command$
|
|
8586
|
+
if (!method || !template) throw new Error(`${command$68} has no API endpoint.`);
|
|
8531
8587
|
const spec = await apiCall(context, "Loading the API reference", () => findSpec(op$1));
|
|
8532
8588
|
const args = [...ids];
|
|
8533
8589
|
const ctx = owner.appArg && args[0] && !context.target.app ? withApp(context, args.shift()) : context;
|
|
8534
8590
|
const positional = positionalParams(op$1);
|
|
8535
|
-
if (args.length < positional.length) throw new Error(`Usage: ${command$
|
|
8536
|
-
if (args.length > positional.length) throw new Error(`${command$
|
|
8591
|
+
if (args.length < positional.length) throw new Error(`Usage: ${command$68} ${usageOf(owner, op$1)}\nRun \`${command$68} --help\` for its flags.`);
|
|
8592
|
+
if (args.length > positional.length) throw new Error(`${command$68} takes ${positional.length || "no"} argument${positional.length === 1 ? "" : "s"}; got "${args.slice(positional.length).join(" ")}".`);
|
|
8537
8593
|
const pathValues = /* @__PURE__ */ new Map();
|
|
8538
8594
|
const query = {};
|
|
8539
8595
|
const queryNames = new Set(spec?.params.filter((param) => param.in === "query").map((param) => param.name));
|
|
@@ -8553,7 +8609,7 @@ async function callOperation(context, owner, resource, op$1, ids, flags, merged
|
|
|
8553
8609
|
if (queryParam) query[field] = coerce(raw, queryParam.type);
|
|
8554
8610
|
else if (bodyField) body[field] = coerce(raw, bodyField.type);
|
|
8555
8611
|
else if (!spec) (sendsBody ? body : query)[field] = raw;
|
|
8556
|
-
else throw new Error(`${command$
|
|
8612
|
+
else throw new Error(`${command$68} has no ${toFlag(field)}. \`${command$68} --help\` lists what it takes.`);
|
|
8557
8613
|
}
|
|
8558
8614
|
Object.assign(sendsBody ? body : query, parseParams(flags.data));
|
|
8559
8615
|
await fillScope(ctx, op$1, spec, pathValues, query, body);
|
|
@@ -8562,11 +8618,11 @@ async function callOperation(context, owner, resource, op$1, ids, flags, merged
|
|
|
8562
8618
|
});
|
|
8563
8619
|
if (missing$1.length > 0) {
|
|
8564
8620
|
const needs = missing$1.map((param) => `${toFlag(param.name)} <${param.type.replace(/"/g, "").replace(/ \| /g, "|")}>`);
|
|
8565
|
-
throw new Error(`${command$
|
|
8621
|
+
throw new Error(`${command$68} needs ${needs.join(" and ")}.`);
|
|
8566
8622
|
}
|
|
8567
8623
|
const url = withQuery(template.replace(/\{([^}]+)\}/g, (_, param) => {
|
|
8568
8624
|
const value$1 = pathValues.get(param);
|
|
8569
|
-
if (value$1 === void 0) throw new Error(`${command$
|
|
8625
|
+
if (value$1 === void 0) throw new Error(`${command$68} needs ${param}.`);
|
|
8570
8626
|
return encodeURIComponent(value$1);
|
|
8571
8627
|
}), query);
|
|
8572
8628
|
if (ctx.dryRun) return renderValue(ctx, {
|
|
@@ -8642,6 +8698,7 @@ function coerce(raw, type) {
|
|
|
8642
8698
|
return text;
|
|
8643
8699
|
}
|
|
8644
8700
|
if (type === "null") return null;
|
|
8701
|
+
if (text === "null" && type.split("|").some((part) => part.trim() === "null")) return null;
|
|
8645
8702
|
return typeof raw === "number" && !/\b(number|integer)\b/.test(type) ? text : raw;
|
|
8646
8703
|
}
|
|
8647
8704
|
function withQuery(path, params) {
|
|
@@ -8677,7 +8734,7 @@ async function dispatch(ctx, owner, words, flags) {
|
|
|
8677
8734
|
const nested = rest[0] ? findNested(owner, rest[0]) : void 0;
|
|
8678
8735
|
if (nested) rest = rest.slice(1);
|
|
8679
8736
|
const resource = nested ?? owner;
|
|
8680
|
-
const command$
|
|
8737
|
+
const command$68 = nested ? `${owner.name} ${nested.name}` : owner.name;
|
|
8681
8738
|
if (rest[0] && /^(\d+|https?:\/\/.*)$/.test(rest[0]) && findOperation(resource, "get")) rest = ["get", ...rest];
|
|
8682
8739
|
const [opName, ...args] = rest;
|
|
8683
8740
|
if (!opName) {
|
|
@@ -8689,7 +8746,7 @@ async function dispatch(ctx, owner, words, flags) {
|
|
|
8689
8746
|
if (!op$1) {
|
|
8690
8747
|
const known = resource.operations.map((candidate) => candidate.name);
|
|
8691
8748
|
const nestedNames = nested ? [] : (owner.nested ?? []).map((candidate) => candidate.name);
|
|
8692
|
-
throw new UsageError(`${command$
|
|
8749
|
+
throw new UsageError(`${command$68} has no "${opName}". It takes: ${[...known, ...nestedNames].join(", ")}.\nRun superwall ${command$68} --help for what each does.`, command$68);
|
|
8693
8750
|
}
|
|
8694
8751
|
await runOperation(ctx, owner, resource, op$1, args, flags);
|
|
8695
8752
|
}
|
|
@@ -8807,8 +8864,6 @@ async function toolOf(owner, resource, op$1, flags) {
|
|
|
8807
8864
|
if (!required.includes(name)) required.push(name);
|
|
8808
8865
|
}
|
|
8809
8866
|
for (const name of op$1.mcpOmit ?? []) delete properties[name];
|
|
8810
|
-
const readOnly = op$1.method === "GET" || op$1.name === "list" || op$1.name === "get";
|
|
8811
|
-
const effect = op$1.destructive ? "destructive" : readOnly ? "read" : "write";
|
|
8812
8867
|
return {
|
|
8813
8868
|
words,
|
|
8814
8869
|
summary: op$1.summary,
|
|
@@ -8818,7 +8873,7 @@ async function toolOf(owner, resource, op$1, flags) {
|
|
|
8818
8873
|
properties,
|
|
8819
8874
|
required
|
|
8820
8875
|
},
|
|
8821
|
-
effect: op$1.mcp ?? effect
|
|
8876
|
+
effect: op$1.mcp ?? op$1.effect
|
|
8822
8877
|
};
|
|
8823
8878
|
}
|
|
8824
8879
|
async function listResourceTools(owner, flags) {
|
|
@@ -8884,8 +8939,58 @@ function defineResource(resource) {
|
|
|
8884
8939
|
}
|
|
8885
8940
|
|
|
8886
8941
|
//#endregion
|
|
8887
|
-
//#region src/commands/main/
|
|
8942
|
+
//#region src/commands/main/annotations.ts
|
|
8888
8943
|
const command$51 = defineResource({
|
|
8944
|
+
name: "annotations",
|
|
8945
|
+
summary: "Releases, campaigns and incidents marked on an app's charts",
|
|
8946
|
+
operations: [
|
|
8947
|
+
{
|
|
8948
|
+
name: "list",
|
|
8949
|
+
summary: "Annotations of an app",
|
|
8950
|
+
effect: "read",
|
|
8951
|
+
details: "With --from and --to, only those overlapping that window.",
|
|
8952
|
+
method: "GET",
|
|
8953
|
+
path: "/v2/applications/{application_id}/chart_annotations",
|
|
8954
|
+
list: true
|
|
8955
|
+
},
|
|
8956
|
+
{
|
|
8957
|
+
name: "get",
|
|
8958
|
+
summary: "One annotation",
|
|
8959
|
+
effect: "read",
|
|
8960
|
+
method: "GET",
|
|
8961
|
+
path: "/v2/applications/{application_id}/chart_annotations/{chart_annotation_id}"
|
|
8962
|
+
},
|
|
8963
|
+
{
|
|
8964
|
+
name: "create",
|
|
8965
|
+
summary: "Mark a moment or a span on every chart of an app",
|
|
8966
|
+
effect: "write",
|
|
8967
|
+
method: "POST",
|
|
8968
|
+
path: "/v2/applications/{application_id}/chart_annotations"
|
|
8969
|
+
},
|
|
8970
|
+
{
|
|
8971
|
+
name: "update",
|
|
8972
|
+
summary: "Change an annotation",
|
|
8973
|
+
effect: "destructive",
|
|
8974
|
+
details: "Overwrites only the fields supplied. --end-at null turns a span into a point; --description null removes the description.",
|
|
8975
|
+
method: "PATCH",
|
|
8976
|
+
path: "/v2/applications/{application_id}/chart_annotations/{chart_annotation_id}"
|
|
8977
|
+
},
|
|
8978
|
+
{
|
|
8979
|
+
name: "delete",
|
|
8980
|
+
summary: "Delete an annotation",
|
|
8981
|
+
effect: "destructive",
|
|
8982
|
+
details: "Removes it from every chart of the app. This can't be undone.",
|
|
8983
|
+
method: "DELETE",
|
|
8984
|
+
path: "/v2/applications/{application_id}/chart_annotations/{chart_annotation_id}",
|
|
8985
|
+
destructive: true
|
|
8986
|
+
}
|
|
8987
|
+
],
|
|
8988
|
+
examples: [["annotations list --app <app>", "Everything marked on an app's charts"], ["annotations create --app <app> --label \"v4.2.0 released\" --start-at 2026-10-28T14:00:00Z", "Mark today's release"]]
|
|
8989
|
+
});
|
|
8990
|
+
|
|
8991
|
+
//#endregion
|
|
8992
|
+
//#region src/commands/main/apps.ts
|
|
8993
|
+
const command$52 = defineResource({
|
|
8889
8994
|
name: "apps",
|
|
8890
8995
|
summary: "Every app you can open",
|
|
8891
8996
|
appArg: true,
|
|
@@ -8893,6 +8998,7 @@ const command$51 = defineResource({
|
|
|
8893
8998
|
{
|
|
8894
8999
|
name: "list",
|
|
8895
9000
|
summary: "Every app, by organization and project",
|
|
9001
|
+
effect: "read",
|
|
8896
9002
|
handler: "resource",
|
|
8897
9003
|
usage: "",
|
|
8898
9004
|
flags: [["--search <text>", "Only projects or apps whose id, name or bundle ID contains this"], ["--limit <n>", "At most this many projects"]]
|
|
@@ -8900,12 +9006,14 @@ const command$51 = defineResource({
|
|
|
8900
9006
|
{
|
|
8901
9007
|
name: "get",
|
|
8902
9008
|
summary: "Everything about one app: bundle ID, Apple team, keys, URLs",
|
|
9009
|
+
effect: "read",
|
|
8903
9010
|
handler: "apps.get",
|
|
8904
9011
|
usage: "<app>"
|
|
8905
9012
|
},
|
|
8906
9013
|
{
|
|
8907
9014
|
name: "create",
|
|
8908
9015
|
summary: "Add an app to a project",
|
|
9016
|
+
effect: "write",
|
|
8909
9017
|
handler: "resource",
|
|
8910
9018
|
usage: "--name <name> --platform <platform>",
|
|
8911
9019
|
flags: [
|
|
@@ -8918,6 +9026,7 @@ const command$51 = defineResource({
|
|
|
8918
9026
|
{
|
|
8919
9027
|
name: "update",
|
|
8920
9028
|
summary: "Change its bundle ID, Apple team ID, URL scheme, support URL, ...",
|
|
9029
|
+
effect: "destructive",
|
|
8921
9030
|
handler: "apps.update",
|
|
8922
9031
|
method: "PATCH",
|
|
8923
9032
|
path: "/v2/projects/{id}/applications/{application_id}/settings",
|
|
@@ -8935,11 +9044,14 @@ const command$51 = defineResource({
|
|
|
8935
9044
|
run in test mode under it, it says how many and asks.
|
|
8936
9045
|
--revenue-provider chooses which events the dashboard's revenue figures count. Events from
|
|
8937
9046
|
both sources keep arriving and being stored; it says what changes and asks first.
|
|
8938
|
-
Outside a terminal both need --yes
|
|
9047
|
+
Outside a terminal both need --yes.
|
|
9048
|
+
|
|
9049
|
+
Overwrites app settings, including routing, revenue provider and bundle ID. Changing the bundle ID can put deployed builds into test mode.`
|
|
8939
9050
|
},
|
|
8940
9051
|
{
|
|
8941
9052
|
name: "use",
|
|
8942
9053
|
summary: "Make it the app commands use when --app is left out",
|
|
9054
|
+
effect: "write",
|
|
8943
9055
|
handler: "resource",
|
|
8944
9056
|
usage: "<app>",
|
|
8945
9057
|
mcp: false
|
|
@@ -8947,6 +9059,7 @@ Outside a terminal both need --yes.`
|
|
|
8947
9059
|
{
|
|
8948
9060
|
name: "statistics",
|
|
8949
9061
|
summary: "Users, revenue and conversion, as the dashboard's overview shows them",
|
|
9062
|
+
effect: "read",
|
|
8950
9063
|
method: "GET",
|
|
8951
9064
|
path: "/v2/projects/{id}/applications/{application_id}/statistics",
|
|
8952
9065
|
details: `The overview figures, computed as the dashboard computes them. Pass --environment and
|
|
@@ -8960,6 +9073,7 @@ For anything the overview doesn't show, run SQL with \`superwall query\`.`,
|
|
|
8960
9073
|
{
|
|
8961
9074
|
name: "transactions",
|
|
8962
9075
|
summary: "Its most recent transactions, as the dashboard lists them",
|
|
9076
|
+
effect: "read",
|
|
8963
9077
|
method: "GET",
|
|
8964
9078
|
path: "/v2/projects/{id}/applications/{application_id}/recent-transactions",
|
|
8965
9079
|
details: `The dashboard's recent-transactions list. Pass --environment, --from and --to.
|
|
@@ -8973,6 +9087,7 @@ To count, group or filter transactions, run SQL with \`superwall query\`.`,
|
|
|
8973
9087
|
{
|
|
8974
9088
|
name: "notices",
|
|
8975
9089
|
summary: "What the dashboard warns about on its overview",
|
|
9090
|
+
effect: "read",
|
|
8976
9091
|
method: "GET",
|
|
8977
9092
|
path: "/v2/projects/{id}/applications/{application_id}/overview-notices",
|
|
8978
9093
|
bind: {
|
|
@@ -9128,7 +9243,7 @@ function renderAccountTree(tree) {
|
|
|
9128
9243
|
|
|
9129
9244
|
//#endregion
|
|
9130
9245
|
//#region src/commands/main/bootstrap.ts
|
|
9131
|
-
const command$
|
|
9246
|
+
const command$53 = defineCommand({
|
|
9132
9247
|
name: "bootstrap",
|
|
9133
9248
|
summary: "Everything at once: projects, apps, campaigns, products",
|
|
9134
9249
|
details: "The complete account tree: organizations, projects, apps, campaigns and their placements,\npaywalls, products and entitlements.",
|
|
@@ -9161,25 +9276,28 @@ const command$52 = defineCommand({
|
|
|
9161
9276
|
|
|
9162
9277
|
//#endregion
|
|
9163
9278
|
//#region src/commands/main/campaigns.ts
|
|
9164
|
-
const command$
|
|
9279
|
+
const command$54 = defineResource({
|
|
9165
9280
|
name: "campaigns",
|
|
9166
9281
|
summary: "Who sees which paywall, and when",
|
|
9167
9282
|
operations: [
|
|
9168
9283
|
{
|
|
9169
9284
|
name: "list",
|
|
9170
9285
|
summary: "Campaigns of an app",
|
|
9286
|
+
effect: "read",
|
|
9171
9287
|
handler: "resource",
|
|
9172
9288
|
flags: LIST_FLAGS
|
|
9173
9289
|
},
|
|
9174
9290
|
{
|
|
9175
9291
|
name: "get",
|
|
9176
9292
|
summary: "One campaign with its audiences and placements",
|
|
9293
|
+
effect: "read",
|
|
9177
9294
|
method: "GET",
|
|
9178
9295
|
path: "/v2/campaigns/{id}"
|
|
9179
9296
|
},
|
|
9180
9297
|
{
|
|
9181
9298
|
name: "create",
|
|
9182
9299
|
summary: "Create a campaign that a placement triggers",
|
|
9300
|
+
effect: "write",
|
|
9183
9301
|
handler: "resource",
|
|
9184
9302
|
usage: "--description <text> --placement <placement>",
|
|
9185
9303
|
flags: [["--description <text>", "What the campaign is for"], ["--placement <name>", "The event that triggers it"]]
|
|
@@ -9187,12 +9305,15 @@ const command$53 = defineResource({
|
|
|
9187
9305
|
{
|
|
9188
9306
|
name: "update",
|
|
9189
9307
|
summary: "Change a campaign",
|
|
9308
|
+
details: "Overwrites supplied campaign fields, including description, notes and delivery mode.",
|
|
9309
|
+
effect: "destructive",
|
|
9190
9310
|
method: "PATCH",
|
|
9191
9311
|
path: "/v2/campaigns/{id}"
|
|
9192
9312
|
},
|
|
9193
9313
|
{
|
|
9194
9314
|
name: "archive",
|
|
9195
9315
|
summary: "Archive it",
|
|
9316
|
+
effect: "destructive",
|
|
9196
9317
|
method: "POST",
|
|
9197
9318
|
path: "/v2/campaigns/{id}/archive",
|
|
9198
9319
|
destructive: true
|
|
@@ -9200,18 +9321,22 @@ const command$53 = defineResource({
|
|
|
9200
9321
|
{
|
|
9201
9322
|
name: "unarchive",
|
|
9202
9323
|
summary: "Bring it back",
|
|
9324
|
+
effect: "write",
|
|
9203
9325
|
method: "POST",
|
|
9204
9326
|
path: "/v2/campaigns/{id}/unarchive"
|
|
9205
9327
|
},
|
|
9206
9328
|
{
|
|
9207
9329
|
name: "prioritize",
|
|
9208
9330
|
summary: "Put it first",
|
|
9331
|
+
details: "Enabling priority clears priority on other campaigns in the app before prioritizing this campaign.",
|
|
9332
|
+
effect: "destructive",
|
|
9209
9333
|
method: "POST",
|
|
9210
9334
|
path: "/v2/campaigns/{id}/prioritize"
|
|
9211
9335
|
},
|
|
9212
9336
|
{
|
|
9213
9337
|
name: "counts",
|
|
9214
9338
|
summary: "How many users each audience assigned",
|
|
9339
|
+
effect: "read",
|
|
9215
9340
|
method: "GET",
|
|
9216
9341
|
path: "/v2/campaigns/{id}/assignment-counts",
|
|
9217
9342
|
details: "Exactly what the dashboard shows. For anything else about revenue, users or events, run SQL with `query`."
|
|
@@ -9225,6 +9350,7 @@ const command$53 = defineResource({
|
|
|
9225
9350
|
{
|
|
9226
9351
|
name: "create",
|
|
9227
9352
|
summary: "Trigger it on an event",
|
|
9353
|
+
effect: "destructive",
|
|
9228
9354
|
method: "POST",
|
|
9229
9355
|
path: "/v2/campaigns/{id}/placements",
|
|
9230
9356
|
destructive: true
|
|
@@ -9232,12 +9358,15 @@ const command$53 = defineResource({
|
|
|
9232
9358
|
{
|
|
9233
9359
|
name: "update",
|
|
9234
9360
|
summary: "Change a placement",
|
|
9361
|
+
details: "Changes event name, enabled state or delivery mode and refreshes live configuration. Can stop or redirect an existing trigger.",
|
|
9362
|
+
effect: "destructive",
|
|
9235
9363
|
method: "PATCH",
|
|
9236
9364
|
path: "/v2/campaigns/{id}/placements/{placement_id}"
|
|
9237
9365
|
},
|
|
9238
9366
|
{
|
|
9239
9367
|
name: "delete",
|
|
9240
9368
|
summary: "Stop triggering it on an event",
|
|
9369
|
+
effect: "destructive",
|
|
9241
9370
|
method: "DELETE",
|
|
9242
9371
|
path: "/v2/campaigns/{id}/placements/{placement_id}",
|
|
9243
9372
|
destructive: true
|
|
@@ -9251,12 +9380,15 @@ const command$53 = defineResource({
|
|
|
9251
9380
|
{
|
|
9252
9381
|
name: "create",
|
|
9253
9382
|
summary: "Add an audience",
|
|
9383
|
+
details: "Appends an audience after existing audiences. It is enabled unless disabled explicitly; existing audience precedence is preserved.",
|
|
9384
|
+
effect: "write",
|
|
9254
9385
|
method: "POST",
|
|
9255
9386
|
path: "/v2/campaigns/{id}/audiences"
|
|
9256
9387
|
},
|
|
9257
9388
|
{
|
|
9258
9389
|
name: "update",
|
|
9259
9390
|
summary: "Change its rules or name",
|
|
9391
|
+
effect: "destructive",
|
|
9260
9392
|
method: "PATCH",
|
|
9261
9393
|
path: "/v2/campaigns/{id}/audiences/{audience_id}",
|
|
9262
9394
|
destructive: true
|
|
@@ -9264,6 +9396,7 @@ const command$53 = defineResource({
|
|
|
9264
9396
|
{
|
|
9265
9397
|
name: "delete",
|
|
9266
9398
|
summary: "Remove an audience",
|
|
9399
|
+
effect: "destructive",
|
|
9267
9400
|
method: "DELETE",
|
|
9268
9401
|
path: "/v2/campaigns/{id}/audiences/{audience_id}",
|
|
9269
9402
|
destructive: true
|
|
@@ -9271,18 +9404,23 @@ const command$53 = defineResource({
|
|
|
9271
9404
|
{
|
|
9272
9405
|
name: "duplicate",
|
|
9273
9406
|
summary: "Copy an audience",
|
|
9407
|
+
details: "Copies the audience and variants into a paused audience immediately after the source. Legacy or duplicate ranks can trigger a rewrite of existing audience ranks.",
|
|
9408
|
+
effect: "destructive",
|
|
9274
9409
|
method: "POST",
|
|
9275
9410
|
path: "/v2/campaigns/{id}/audiences/{audience_id}/duplicate"
|
|
9276
9411
|
},
|
|
9277
9412
|
{
|
|
9278
9413
|
name: "reorder",
|
|
9279
9414
|
summary: "Set the order audiences are matched in",
|
|
9415
|
+
details: "Replaces matching precedence for existing audiences; existing users may match a different audience.",
|
|
9416
|
+
effect: "destructive",
|
|
9280
9417
|
method: "PUT",
|
|
9281
9418
|
path: "/v2/campaigns/{id}/audiences/order"
|
|
9282
9419
|
},
|
|
9283
9420
|
{
|
|
9284
9421
|
name: "reset",
|
|
9285
9422
|
summary: "Forget who was assigned to it",
|
|
9423
|
+
effect: "destructive",
|
|
9286
9424
|
method: "POST",
|
|
9287
9425
|
path: "/v2/campaigns/{id}/audiences/{audience_id}/reset",
|
|
9288
9426
|
destructive: true
|
|
@@ -9290,6 +9428,7 @@ const command$53 = defineResource({
|
|
|
9290
9428
|
{
|
|
9291
9429
|
name: "readout",
|
|
9292
9430
|
summary: "How its variants are doing: conversion and revenue per variant",
|
|
9431
|
+
effect: "read",
|
|
9293
9432
|
method: "GET",
|
|
9294
9433
|
path: "/v2/campaigns/{id}/audiences/{audience_id}/readout",
|
|
9295
9434
|
details: "Exactly what the dashboard shows. For anything else about revenue, users or events, run SQL with `query`."
|
|
@@ -9297,6 +9436,7 @@ const command$53 = defineResource({
|
|
|
9297
9436
|
{
|
|
9298
9437
|
name: "users",
|
|
9299
9438
|
summary: "Users it matched",
|
|
9439
|
+
effect: "read",
|
|
9300
9440
|
method: "GET",
|
|
9301
9441
|
path: "/v2/campaigns/{id}/audiences/{audience_id}/users",
|
|
9302
9442
|
list: true
|
|
@@ -9304,6 +9444,7 @@ const command$53 = defineResource({
|
|
|
9304
9444
|
{
|
|
9305
9445
|
name: "purchasers",
|
|
9306
9446
|
summary: "Users who bought after seeing it",
|
|
9447
|
+
effect: "read",
|
|
9307
9448
|
method: "GET",
|
|
9308
9449
|
path: "/v2/campaigns/{id}/audiences/{audience_id}/purchasers",
|
|
9309
9450
|
details: "Exactly what the dashboard shows. For anything else about revenue, users or events, run SQL with `query`.",
|
|
@@ -9318,12 +9459,15 @@ const command$53 = defineResource({
|
|
|
9318
9459
|
{
|
|
9319
9460
|
name: "create",
|
|
9320
9461
|
summary: "Add a variant",
|
|
9462
|
+
details: "Adding the first treatment without a percentage gives it 100% and zeroes existing variant weights, including the holdout. This can change live traffic.",
|
|
9463
|
+
effect: "destructive",
|
|
9321
9464
|
method: "POST",
|
|
9322
9465
|
path: "/v2/campaigns/{id}/audiences/{audience_id}/variants"
|
|
9323
9466
|
},
|
|
9324
9467
|
{
|
|
9325
9468
|
name: "update",
|
|
9326
9469
|
summary: "Change its paywall",
|
|
9470
|
+
effect: "destructive",
|
|
9327
9471
|
method: "PATCH",
|
|
9328
9472
|
path: "/v2/campaigns/{id}/audiences/{audience_id}/variants/{variant_id}",
|
|
9329
9473
|
destructive: true
|
|
@@ -9331,6 +9475,7 @@ const command$53 = defineResource({
|
|
|
9331
9475
|
{
|
|
9332
9476
|
name: "delete",
|
|
9333
9477
|
summary: "Remove a variant",
|
|
9478
|
+
effect: "destructive",
|
|
9334
9479
|
method: "DELETE",
|
|
9335
9480
|
path: "/v2/campaigns/{id}/audiences/{audience_id}/variants/{variant_id}",
|
|
9336
9481
|
destructive: true
|
|
@@ -9338,6 +9483,8 @@ const command$53 = defineResource({
|
|
|
9338
9483
|
{
|
|
9339
9484
|
name: "weights",
|
|
9340
9485
|
summary: "Set each variant's share of traffic",
|
|
9486
|
+
details: "Overwrites allocation percentages for existing variants and changes live traffic distribution.",
|
|
9487
|
+
effect: "destructive",
|
|
9341
9488
|
method: "PUT",
|
|
9342
9489
|
path: "/v2/campaigns/{id}/audiences/{audience_id}/weights"
|
|
9343
9490
|
}
|
|
@@ -9354,25 +9501,28 @@ const command$53 = defineResource({
|
|
|
9354
9501
|
|
|
9355
9502
|
//#endregion
|
|
9356
9503
|
//#region src/commands/main/entitlements.ts
|
|
9357
|
-
const command$
|
|
9504
|
+
const command$55 = defineResource({
|
|
9358
9505
|
name: "entitlements",
|
|
9359
9506
|
summary: "What a purchase unlocks",
|
|
9360
9507
|
operations: [
|
|
9361
9508
|
{
|
|
9362
9509
|
name: "list",
|
|
9363
9510
|
summary: "Entitlements of a project",
|
|
9511
|
+
effect: "read",
|
|
9364
9512
|
handler: "resource",
|
|
9365
9513
|
flags: LIST_FLAGS
|
|
9366
9514
|
},
|
|
9367
9515
|
{
|
|
9368
9516
|
name: "get",
|
|
9369
9517
|
summary: "One entitlement",
|
|
9518
|
+
effect: "read",
|
|
9370
9519
|
method: "GET",
|
|
9371
9520
|
path: "/v2/entitlements/{id}"
|
|
9372
9521
|
},
|
|
9373
9522
|
{
|
|
9374
9523
|
name: "create",
|
|
9375
9524
|
summary: "Create an entitlement",
|
|
9525
|
+
effect: "write",
|
|
9376
9526
|
handler: "resource",
|
|
9377
9527
|
usage: "--identifier <identifier>",
|
|
9378
9528
|
flags: [["--identifier <id>", "What the SDK checks for, e.g. pro"]]
|
|
@@ -9380,12 +9530,15 @@ const command$54 = defineResource({
|
|
|
9380
9530
|
{
|
|
9381
9531
|
name: "update",
|
|
9382
9532
|
summary: "Change an entitlement",
|
|
9533
|
+
details: "Can rename the SDK entitlement identifier and replace its product associations, in addition to overwriting text and metadata.",
|
|
9534
|
+
effect: "destructive",
|
|
9383
9535
|
method: "PATCH",
|
|
9384
9536
|
path: "/v2/entitlements/{id}"
|
|
9385
9537
|
},
|
|
9386
9538
|
{
|
|
9387
9539
|
name: "delete",
|
|
9388
9540
|
summary: "Delete an entitlement",
|
|
9541
|
+
effect: "destructive",
|
|
9389
9542
|
method: "DELETE",
|
|
9390
9543
|
path: "/v2/entitlements/{id}",
|
|
9391
9544
|
destructive: true
|
|
@@ -9398,6 +9551,7 @@ const command$54 = defineResource({
|
|
|
9398
9551
|
{
|
|
9399
9552
|
name: "list",
|
|
9400
9553
|
summary: "Grants of an entitlement",
|
|
9554
|
+
effect: "read",
|
|
9401
9555
|
method: "GET",
|
|
9402
9556
|
path: "/v2/entitlements/{id}/grants",
|
|
9403
9557
|
list: true
|
|
@@ -9405,6 +9559,7 @@ const command$54 = defineResource({
|
|
|
9405
9559
|
{
|
|
9406
9560
|
name: "create",
|
|
9407
9561
|
summary: "Grant an existing entitlement manually to a device, optionally linked to an app user ID",
|
|
9562
|
+
effect: "write",
|
|
9408
9563
|
details: "Grants promotional access, optionally until an expiry time, without charging the user or creating a paid subscription. Returns an error when an active grant already exists.",
|
|
9409
9564
|
method: "POST",
|
|
9410
9565
|
path: "/v2/entitlements/{id}/grants"
|
|
@@ -9412,6 +9567,7 @@ const command$54 = defineResource({
|
|
|
9412
9567
|
{
|
|
9413
9568
|
name: "delete",
|
|
9414
9569
|
summary: "Take a grant back",
|
|
9570
|
+
effect: "destructive",
|
|
9415
9571
|
method: "DELETE",
|
|
9416
9572
|
path: "/v2/entitlements/{id}/grants/{grant_id}",
|
|
9417
9573
|
destructive: true
|
|
@@ -9423,13 +9579,14 @@ const command$54 = defineResource({
|
|
|
9423
9579
|
|
|
9424
9580
|
//#endregion
|
|
9425
9581
|
//#region src/commands/main/events.ts
|
|
9426
|
-
const command$
|
|
9582
|
+
const command$56 = defineResource({
|
|
9427
9583
|
name: "events",
|
|
9428
9584
|
summary: "Events sent to your webhooks",
|
|
9429
9585
|
operations: [
|
|
9430
9586
|
{
|
|
9431
9587
|
name: "list",
|
|
9432
9588
|
summary: "Recent events",
|
|
9589
|
+
effect: "read",
|
|
9433
9590
|
method: "GET",
|
|
9434
9591
|
path: "/v2/projects/{project_id}/events",
|
|
9435
9592
|
list: true
|
|
@@ -9437,12 +9594,14 @@ const command$55 = defineResource({
|
|
|
9437
9594
|
{
|
|
9438
9595
|
name: "get",
|
|
9439
9596
|
summary: "One event",
|
|
9597
|
+
effect: "read",
|
|
9440
9598
|
method: "GET",
|
|
9441
9599
|
path: "/v2/projects/{project_id}/events/{event_id}"
|
|
9442
9600
|
},
|
|
9443
9601
|
{
|
|
9444
9602
|
name: "attempts",
|
|
9445
9603
|
summary: "Its delivery attempts",
|
|
9604
|
+
effect: "read",
|
|
9446
9605
|
method: "GET",
|
|
9447
9606
|
path: "/v2/projects/{project_id}/events/{event_id}/attempts",
|
|
9448
9607
|
list: true
|
|
@@ -9450,6 +9609,8 @@ const command$55 = defineResource({
|
|
|
9450
9609
|
{
|
|
9451
9610
|
name: "retry",
|
|
9452
9611
|
summary: "Deliver it again",
|
|
9612
|
+
details: "Resends an event to its configured webhook destination. Delivery cannot be recalled and may duplicate downstream processing.",
|
|
9613
|
+
effect: "destructive",
|
|
9453
9614
|
method: "POST",
|
|
9454
9615
|
path: "/v2/projects/{project_id}/events/{event_id}/retry"
|
|
9455
9616
|
}
|
|
@@ -9459,37 +9620,42 @@ const command$55 = defineResource({
|
|
|
9459
9620
|
|
|
9460
9621
|
//#endregion
|
|
9461
9622
|
//#region src/commands/main/paywalls.ts
|
|
9462
|
-
const command$
|
|
9623
|
+
const command$57 = defineResource({
|
|
9463
9624
|
name: "paywalls",
|
|
9464
9625
|
summary: "Paywalls in the dashboard",
|
|
9465
9626
|
operations: [
|
|
9466
9627
|
{
|
|
9467
9628
|
name: "list",
|
|
9468
9629
|
summary: "Paywalls of an app",
|
|
9630
|
+
effect: "read",
|
|
9469
9631
|
handler: "resource",
|
|
9470
9632
|
flags: LIST_FLAGS
|
|
9471
9633
|
},
|
|
9472
9634
|
{
|
|
9473
9635
|
name: "get",
|
|
9474
9636
|
summary: "One paywall",
|
|
9637
|
+
effect: "read",
|
|
9475
9638
|
method: "GET",
|
|
9476
9639
|
path: "/v2/paywalls/{id}"
|
|
9477
9640
|
},
|
|
9478
9641
|
{
|
|
9479
9642
|
name: "create",
|
|
9480
9643
|
summary: "Create a paywall",
|
|
9644
|
+
effect: "write",
|
|
9481
9645
|
method: "POST",
|
|
9482
9646
|
path: "/v2/paywalls"
|
|
9483
9647
|
},
|
|
9484
9648
|
{
|
|
9485
9649
|
name: "duplicate",
|
|
9486
9650
|
summary: "Copy a paywall",
|
|
9651
|
+
effect: "write",
|
|
9487
9652
|
method: "POST",
|
|
9488
9653
|
path: "/v2/paywalls/{id}/duplicate"
|
|
9489
9654
|
},
|
|
9490
9655
|
{
|
|
9491
9656
|
name: "publish",
|
|
9492
9657
|
summary: "Publish the latest saved draft of a paywall",
|
|
9658
|
+
effect: "destructive",
|
|
9493
9659
|
details: "Replaces its currently deployed version and refreshes app configuration. This can change the paywall shown to users by campaigns that use it.",
|
|
9494
9660
|
method: "POST",
|
|
9495
9661
|
path: "/v2/paywalls/{id}/publish",
|
|
@@ -9498,6 +9664,7 @@ const command$56 = defineResource({
|
|
|
9498
9664
|
{
|
|
9499
9665
|
name: "archive",
|
|
9500
9666
|
summary: "Archive it",
|
|
9667
|
+
effect: "destructive",
|
|
9501
9668
|
method: "POST",
|
|
9502
9669
|
path: "/v2/paywalls/{id}/archive",
|
|
9503
9670
|
destructive: true
|
|
@@ -9505,12 +9672,14 @@ const command$56 = defineResource({
|
|
|
9505
9672
|
{
|
|
9506
9673
|
name: "unarchive",
|
|
9507
9674
|
summary: "Bring it back",
|
|
9675
|
+
effect: "write",
|
|
9508
9676
|
method: "POST",
|
|
9509
9677
|
path: "/v2/paywalls/{id}/unarchive"
|
|
9510
9678
|
},
|
|
9511
9679
|
{
|
|
9512
9680
|
name: "versions",
|
|
9513
9681
|
summary: "Versions pushed from code",
|
|
9682
|
+
effect: "read",
|
|
9514
9683
|
method: "GET",
|
|
9515
9684
|
path: "/v2/paywalls/{id}/versions",
|
|
9516
9685
|
list: true
|
|
@@ -9521,25 +9690,28 @@ const command$56 = defineResource({
|
|
|
9521
9690
|
|
|
9522
9691
|
//#endregion
|
|
9523
9692
|
//#region src/commands/main/products.ts
|
|
9524
|
-
const command$
|
|
9693
|
+
const command$58 = defineResource({
|
|
9525
9694
|
name: "products",
|
|
9526
9695
|
summary: "Products and their store prices",
|
|
9527
9696
|
operations: [
|
|
9528
9697
|
{
|
|
9529
9698
|
name: "list",
|
|
9530
9699
|
summary: "Products of a project",
|
|
9700
|
+
effect: "read",
|
|
9531
9701
|
handler: "resource",
|
|
9532
9702
|
flags: LIST_FLAGS
|
|
9533
9703
|
},
|
|
9534
9704
|
{
|
|
9535
9705
|
name: "get",
|
|
9536
9706
|
summary: "One product",
|
|
9707
|
+
effect: "read",
|
|
9537
9708
|
method: "GET",
|
|
9538
9709
|
path: "/v2/products/{id}"
|
|
9539
9710
|
},
|
|
9540
9711
|
{
|
|
9541
9712
|
name: "create",
|
|
9542
9713
|
summary: "Create a product",
|
|
9714
|
+
effect: "write",
|
|
9543
9715
|
handler: "resource",
|
|
9544
9716
|
usage: "--identifier <identifier>",
|
|
9545
9717
|
flags: [
|
|
@@ -9556,6 +9728,7 @@ const command$57 = defineResource({
|
|
|
9556
9728
|
{
|
|
9557
9729
|
name: "update",
|
|
9558
9730
|
summary: "Change a product",
|
|
9731
|
+
effect: "destructive",
|
|
9559
9732
|
method: "PATCH",
|
|
9560
9733
|
path: "/v2/products/{id}",
|
|
9561
9734
|
destructive: true
|
|
@@ -9563,6 +9736,7 @@ const command$57 = defineResource({
|
|
|
9563
9736
|
{
|
|
9564
9737
|
name: "delete",
|
|
9565
9738
|
summary: "Delete a product",
|
|
9739
|
+
effect: "destructive",
|
|
9566
9740
|
method: "DELETE",
|
|
9567
9741
|
path: "/v2/products/{id}",
|
|
9568
9742
|
destructive: true
|
|
@@ -9570,12 +9744,14 @@ const command$57 = defineResource({
|
|
|
9570
9744
|
{
|
|
9571
9745
|
name: "impact",
|
|
9572
9746
|
summary: "What deleting it would break",
|
|
9747
|
+
effect: "read",
|
|
9573
9748
|
method: "GET",
|
|
9574
9749
|
path: "/v2/products/{id}/delete-impact"
|
|
9575
9750
|
},
|
|
9576
9751
|
{
|
|
9577
9752
|
name: "storekit",
|
|
9578
9753
|
summary: "Write a StoreKit configuration file for Xcode",
|
|
9754
|
+
effect: "write",
|
|
9579
9755
|
handler: "resource",
|
|
9580
9756
|
flags: [["--out <file>", "Where to write it"]],
|
|
9581
9757
|
mcp: false
|
|
@@ -9586,13 +9762,14 @@ const command$57 = defineResource({
|
|
|
9586
9762
|
|
|
9587
9763
|
//#endregion
|
|
9588
9764
|
//#region src/commands/main/users.ts
|
|
9589
|
-
const command$
|
|
9765
|
+
const command$59 = defineResource({
|
|
9590
9766
|
name: "users",
|
|
9591
9767
|
summary: "Your app's users: subscriptions, entitlements, attributes",
|
|
9592
9768
|
operations: [
|
|
9593
9769
|
{
|
|
9594
9770
|
name: "get",
|
|
9595
9771
|
summary: "Find a user by app user ID",
|
|
9772
|
+
effect: "read",
|
|
9596
9773
|
method: "GET",
|
|
9597
9774
|
path: "/v2/users/resolve",
|
|
9598
9775
|
args: ["app_user_id"]
|
|
@@ -9600,6 +9777,7 @@ const command$58 = defineResource({
|
|
|
9600
9777
|
{
|
|
9601
9778
|
name: "subscriptions",
|
|
9602
9779
|
summary: "Every subscription they have had, one row each",
|
|
9780
|
+
effect: "read",
|
|
9603
9781
|
method: "GET",
|
|
9604
9782
|
path: "/v3/users/{app_user_id}/subscriptions",
|
|
9605
9783
|
details: "The full history. For a one-glance answer (are they paying, status, lifetime value), use summary."
|
|
@@ -9607,6 +9785,7 @@ const command$58 = defineResource({
|
|
|
9607
9785
|
{
|
|
9608
9786
|
name: "summary",
|
|
9609
9787
|
summary: "One answer: are they paying, their status, spend, MRR and lifetime value",
|
|
9788
|
+
effect: "read",
|
|
9610
9789
|
method: "GET",
|
|
9611
9790
|
path: "/v2/users/{app_user_id}/subscription-summary",
|
|
9612
9791
|
details: "For every subscription they have had, use subscriptions."
|
|
@@ -9614,30 +9793,36 @@ const command$58 = defineResource({
|
|
|
9614
9793
|
{
|
|
9615
9794
|
name: "entitlements",
|
|
9616
9795
|
summary: "What they have access to now",
|
|
9796
|
+
effect: "read",
|
|
9617
9797
|
method: "GET",
|
|
9618
9798
|
path: "/v2/users/{app_user_id}/active-entitlements"
|
|
9619
9799
|
},
|
|
9620
9800
|
{
|
|
9621
9801
|
name: "attributes",
|
|
9622
9802
|
summary: "Attributes the SDK set on them",
|
|
9803
|
+
effect: "read",
|
|
9623
9804
|
method: "GET",
|
|
9624
9805
|
path: "/v3/users/{app_user_id}/attributes"
|
|
9625
9806
|
},
|
|
9626
9807
|
{
|
|
9627
9808
|
name: "update",
|
|
9628
9809
|
summary: "Set attributes on them",
|
|
9810
|
+
details: "Queues attribute updates that replace stored user attribute values and can change audience matching.",
|
|
9811
|
+
effect: "destructive",
|
|
9629
9812
|
method: "POST",
|
|
9630
9813
|
path: "/v3/users/{app_user_id}/attributes"
|
|
9631
9814
|
},
|
|
9632
9815
|
{
|
|
9633
9816
|
name: "aliases",
|
|
9634
9817
|
summary: "Their other IDs",
|
|
9818
|
+
effect: "read",
|
|
9635
9819
|
method: "GET",
|
|
9636
9820
|
path: "/v3/users/{app_user_id}/aliases"
|
|
9637
9821
|
},
|
|
9638
9822
|
{
|
|
9639
9823
|
name: "events",
|
|
9640
9824
|
summary: "What they did, newest first",
|
|
9825
|
+
effect: "read",
|
|
9641
9826
|
method: "GET",
|
|
9642
9827
|
path: "/v2/users/{app_user_id}/events",
|
|
9643
9828
|
list: true
|
|
@@ -9648,13 +9833,14 @@ const command$58 = defineResource({
|
|
|
9648
9833
|
|
|
9649
9834
|
//#endregion
|
|
9650
9835
|
//#region src/commands/main/webhooks.ts
|
|
9651
|
-
const command$
|
|
9836
|
+
const command$60 = defineResource({
|
|
9652
9837
|
name: "webhooks",
|
|
9653
9838
|
summary: "Endpoints that receive your events",
|
|
9654
9839
|
operations: [
|
|
9655
9840
|
{
|
|
9656
9841
|
name: "list",
|
|
9657
9842
|
summary: "Webhook endpoints of a project",
|
|
9843
|
+
effect: "read",
|
|
9658
9844
|
method: "GET",
|
|
9659
9845
|
path: "/v2/projects/{project_id}/webhook_endpoints",
|
|
9660
9846
|
list: true
|
|
@@ -9662,12 +9848,14 @@ const command$59 = defineResource({
|
|
|
9662
9848
|
{
|
|
9663
9849
|
name: "get",
|
|
9664
9850
|
summary: "One endpoint",
|
|
9851
|
+
effect: "read",
|
|
9665
9852
|
method: "GET",
|
|
9666
9853
|
path: "/v2/projects/{project_id}/webhook_endpoints/{endpoint_id}"
|
|
9667
9854
|
},
|
|
9668
9855
|
{
|
|
9669
9856
|
name: "create",
|
|
9670
9857
|
summary: "Add an endpoint",
|
|
9858
|
+
effect: "write",
|
|
9671
9859
|
details: "Delivers subscribed events to the HTTPS URL you specify.",
|
|
9672
9860
|
method: "POST",
|
|
9673
9861
|
path: "/v2/projects/{project_id}/webhook_endpoints"
|
|
@@ -9675,13 +9863,17 @@ const command$59 = defineResource({
|
|
|
9675
9863
|
{
|
|
9676
9864
|
name: "update",
|
|
9677
9865
|
summary: "Change an endpoint",
|
|
9678
|
-
|
|
9866
|
+
effect: "destructive",
|
|
9867
|
+
details: `Changes where or which subscribed events are delivered; the destination can be any HTTPS URL you specify.
|
|
9868
|
+
|
|
9869
|
+
Overwrites destination, filters, headers and disabled state; can stop or redirect existing event delivery.`,
|
|
9679
9870
|
method: "PATCH",
|
|
9680
9871
|
path: "/v2/projects/{project_id}/webhook_endpoints/{endpoint_id}"
|
|
9681
9872
|
},
|
|
9682
9873
|
{
|
|
9683
9874
|
name: "delete",
|
|
9684
9875
|
summary: "Remove an endpoint",
|
|
9876
|
+
effect: "destructive",
|
|
9685
9877
|
method: "DELETE",
|
|
9686
9878
|
path: "/v2/projects/{project_id}/webhook_endpoints/{endpoint_id}",
|
|
9687
9879
|
destructive: true
|
|
@@ -9689,6 +9881,7 @@ const command$59 = defineResource({
|
|
|
9689
9881
|
{
|
|
9690
9882
|
name: "rotate-secret",
|
|
9691
9883
|
summary: "Issue a new signing secret",
|
|
9884
|
+
effect: "destructive",
|
|
9692
9885
|
method: "POST",
|
|
9693
9886
|
path: "/v2/projects/{project_id}/webhook_endpoints/{endpoint_id}/rotate_secret",
|
|
9694
9887
|
destructive: true
|
|
@@ -9696,6 +9889,7 @@ const command$59 = defineResource({
|
|
|
9696
9889
|
{
|
|
9697
9890
|
name: "attempts",
|
|
9698
9891
|
summary: "Its delivery attempts",
|
|
9892
|
+
effect: "read",
|
|
9699
9893
|
method: "GET",
|
|
9700
9894
|
path: "/v2/projects/{project_id}/webhook_endpoints/{endpoint_id}/attempts",
|
|
9701
9895
|
list: true
|
|
@@ -9703,6 +9897,7 @@ const command$59 = defineResource({
|
|
|
9703
9897
|
{
|
|
9704
9898
|
name: "stats",
|
|
9705
9899
|
summary: "Its delivery statistics",
|
|
9900
|
+
effect: "read",
|
|
9706
9901
|
method: "GET",
|
|
9707
9902
|
path: "/v2/projects/{project_id}/webhook_endpoints/{endpoint_id}/stats"
|
|
9708
9903
|
}
|
|
@@ -9712,7 +9907,7 @@ const command$59 = defineResource({
|
|
|
9712
9907
|
|
|
9713
9908
|
//#endregion
|
|
9714
9909
|
//#region src/commands/support/doctor.ts
|
|
9715
|
-
const command$
|
|
9910
|
+
const command$61 = defineCommand({
|
|
9716
9911
|
name: "doctor",
|
|
9717
9912
|
summary: "Check the health of your Superwall integration",
|
|
9718
9913
|
flags: { installDir },
|
|
@@ -9722,7 +9917,7 @@ const command$60 = defineCommand({
|
|
|
9722
9917
|
prompts: true,
|
|
9723
9918
|
mcp: false,
|
|
9724
9919
|
async run(ctx) {
|
|
9725
|
-
const { runDoctor } = await import("./doctor-
|
|
9920
|
+
const { runDoctor } = await import("./doctor-9JS96QkX.js");
|
|
9726
9921
|
return runDoctor(ctx);
|
|
9727
9922
|
}
|
|
9728
9923
|
});
|
|
@@ -9758,15 +9953,6 @@ function linkedApp(cwd = proc?.cwd() ?? "") {
|
|
|
9758
9953
|
applicationId: app$1?.applicationId
|
|
9759
9954
|
};
|
|
9760
9955
|
}
|
|
9761
|
-
const AGENT_ENV = [
|
|
9762
|
-
["CLAUDECODE", "claude-code"],
|
|
9763
|
-
["CODEX_SANDBOX", "codex"],
|
|
9764
|
-
["CURSOR_AGENT", "cursor"],
|
|
9765
|
-
["GEMINI_CLI", "gemini-cli"]
|
|
9766
|
-
];
|
|
9767
|
-
function detectAgent(env = proc?.env ?? {}) {
|
|
9768
|
-
return AGENT_ENV.find(([key]) => env[key])?.[1];
|
|
9769
|
-
}
|
|
9770
9956
|
function readAttachments(paths) {
|
|
9771
9957
|
if (paths.length > MAX_FILES) throw new Error(`Attach at most ${MAX_FILES} files.`);
|
|
9772
9958
|
return paths.map((path) => {
|
|
@@ -9877,10 +10063,12 @@ async function runFeedback(ctx, { args, flags }) {
|
|
|
9877
10063
|
|
|
9878
10064
|
//#endregion
|
|
9879
10065
|
//#region src/commands/support/feedback.ts
|
|
9880
|
-
const command$
|
|
10066
|
+
const command$62 = defineCommand({
|
|
9881
10067
|
name: "feedback",
|
|
9882
10068
|
summary: "Report a bug or send feedback to the Superwall team",
|
|
9883
|
-
details:
|
|
10069
|
+
details: `Goes straight to the Superwall team. Pass the app it happened in so the team can find the account. Report anything you confirm doesn't work, as a reproducible report with every ID and version in context. Without a shell, paste the relevant part of a log into the message: a tool cannot attach files.
|
|
10070
|
+
|
|
10071
|
+
Sends the supplied message and context to the Superwall team as a persisted event. Sending cannot be undone; repeating the call can send duplicate feedback.`,
|
|
9884
10072
|
args: { message: { describe: "What happened: what you ran, what you expected, what you got (asked when left out)" } },
|
|
9885
10073
|
flags: {
|
|
9886
10074
|
title: {
|
|
@@ -9930,13 +10118,13 @@ const command$61 = defineCommand({
|
|
|
9930
10118
|
auth: "optional",
|
|
9931
10119
|
json: true,
|
|
9932
10120
|
prompts: true,
|
|
9933
|
-
mcp: "
|
|
10121
|
+
mcp: "destructive",
|
|
9934
10122
|
run: (ctx, input) => runFeedback(ctx, input)
|
|
9935
10123
|
});
|
|
9936
10124
|
|
|
9937
10125
|
//#endregion
|
|
9938
10126
|
//#region src/commands/support/skills.ts
|
|
9939
|
-
const command$
|
|
10127
|
+
const command$63 = defineCommand({
|
|
9940
10128
|
name: "skills",
|
|
9941
10129
|
summary: "Install or update the Superwall agent skills for your coding agents",
|
|
9942
10130
|
flags: {
|
|
@@ -9965,14 +10153,14 @@ const command$62 = defineCommand({
|
|
|
9965
10153
|
prompts: true,
|
|
9966
10154
|
mcp: false,
|
|
9967
10155
|
async run(ctx, input) {
|
|
9968
|
-
const { runSkills } = await import("./skills-
|
|
10156
|
+
const { runSkills } = await import("./skills-Dg3k6TRC.js");
|
|
9969
10157
|
return runSkills(ctx, input);
|
|
9970
10158
|
}
|
|
9971
10159
|
});
|
|
9972
10160
|
|
|
9973
10161
|
//#endregion
|
|
9974
10162
|
//#region src/commands/support/upgrade.ts
|
|
9975
|
-
const command$
|
|
10163
|
+
const command$64 = defineCommand({
|
|
9976
10164
|
name: "upgrade",
|
|
9977
10165
|
summary: "Update the CLI to the latest version",
|
|
9978
10166
|
examples: [["upgrade", "Install the latest version globally with npm"]],
|
|
@@ -9981,14 +10169,14 @@ const command$63 = defineCommand({
|
|
|
9981
10169
|
prompts: true,
|
|
9982
10170
|
mcp: false,
|
|
9983
10171
|
async run(ctx) {
|
|
9984
|
-
const { runUpgrade } = await import("./upgrade-
|
|
10172
|
+
const { runUpgrade } = await import("./upgrade-DLf0LJDh.js");
|
|
9985
10173
|
return runUpgrade(ctx);
|
|
9986
10174
|
}
|
|
9987
10175
|
});
|
|
9988
10176
|
|
|
9989
10177
|
//#endregion
|
|
9990
10178
|
//#region src/commands/workflows/integrate.ts
|
|
9991
|
-
const command$
|
|
10179
|
+
const command$65 = defineCommand({
|
|
9992
10180
|
name: "integrate",
|
|
9993
10181
|
summary: "Set up the SDK, placements, and dashboard in your app",
|
|
9994
10182
|
flags: {
|
|
@@ -10020,8 +10208,8 @@ const command$64 = defineCommand({
|
|
|
10020
10208
|
prompts: true,
|
|
10021
10209
|
mcp: false,
|
|
10022
10210
|
async run(ctx, { flags }) {
|
|
10023
|
-
const { runIntegrate } = await import("./integrate-
|
|
10024
|
-
const { printPlaybook } = await import("./playbook-
|
|
10211
|
+
const { runIntegrate } = await import("./integrate-VWtTNPCr.js");
|
|
10212
|
+
const { printPlaybook } = await import("./playbook-oov9yV0q.js");
|
|
10025
10213
|
if (flags.skill) return printPlaybook(ctx.installDir, "integrate");
|
|
10026
10214
|
await runIntegrate({
|
|
10027
10215
|
...ctx,
|
|
@@ -10033,7 +10221,7 @@ const command$64 = defineCommand({
|
|
|
10033
10221
|
|
|
10034
10222
|
//#endregion
|
|
10035
10223
|
//#region src/commands/workflows/migrate.ts
|
|
10036
|
-
const command$
|
|
10224
|
+
const command$66 = defineCommand({
|
|
10037
10225
|
name: "migrate",
|
|
10038
10226
|
summary: "Migrate from RevenueCat / Adapty / Qonversion",
|
|
10039
10227
|
summaryOn: { next: "Migrate from RevenueCat / Adapty / Qonversion, or rebuild a dashboard paywall or a native screen as code" },
|
|
@@ -10081,8 +10269,8 @@ const command$65 = defineCommand({
|
|
|
10081
10269
|
prompts: true,
|
|
10082
10270
|
mcp: false,
|
|
10083
10271
|
async run(ctx, { args, flags }) {
|
|
10084
|
-
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-
|
|
10085
|
-
const { printPlaybook } = await import("./playbook-
|
|
10272
|
+
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-C86h6jeF.js");
|
|
10273
|
+
const { printPlaybook } = await import("./playbook-oov9yV0q.js");
|
|
10086
10274
|
if (flags.screen !== void 0) return runScreenMigration(ctx, {
|
|
10087
10275
|
path: flags.screen,
|
|
10088
10276
|
screenshot: flags.screenshot
|
|
@@ -10095,7 +10283,7 @@ const command$65 = defineCommand({
|
|
|
10095
10283
|
|
|
10096
10284
|
//#endregion
|
|
10097
10285
|
//#region src/commands/workflows/review.ts
|
|
10098
|
-
const command$
|
|
10286
|
+
const command$67 = defineCommand({
|
|
10099
10287
|
name: "review",
|
|
10100
10288
|
summary: "Review an existing Superwall setup end to end",
|
|
10101
10289
|
flags: {
|
|
@@ -10116,8 +10304,8 @@ const command$66 = defineCommand({
|
|
|
10116
10304
|
prompts: true,
|
|
10117
10305
|
mcp: false,
|
|
10118
10306
|
async run(ctx, { flags }) {
|
|
10119
|
-
const { runReview } = await import("./integrate-
|
|
10120
|
-
const { printPlaybook } = await import("./playbook-
|
|
10307
|
+
const { runReview } = await import("./integrate-VWtTNPCr.js");
|
|
10308
|
+
const { printPlaybook } = await import("./playbook-oov9yV0q.js");
|
|
10121
10309
|
if (flags.skill) return printPlaybook(ctx.installDir, flags.fix ? "review-fix" : "review");
|
|
10122
10310
|
await runReview(ctx, flags.fix);
|
|
10123
10311
|
}
|
|
@@ -10131,9 +10319,9 @@ const GROUPS = [
|
|
|
10131
10319
|
title: "Workflows",
|
|
10132
10320
|
notes: ["Each takes --skill to print the playbook instead of running."],
|
|
10133
10321
|
commands: [
|
|
10134
|
-
command$
|
|
10135
|
-
command$
|
|
10136
|
-
command$
|
|
10322
|
+
command$65,
|
|
10323
|
+
command$67,
|
|
10324
|
+
command$66
|
|
10137
10325
|
]
|
|
10138
10326
|
},
|
|
10139
10327
|
{
|
|
@@ -10155,15 +10343,16 @@ const GROUPS = [
|
|
|
10155
10343
|
title: "Commands",
|
|
10156
10344
|
notes: ["superwall <command> --help lists its operations; <operation> --help, its flags."],
|
|
10157
10345
|
commands: [
|
|
10158
|
-
command$52,
|
|
10159
|
-
command$51,
|
|
10160
|
-
command$57,
|
|
10161
|
-
command$54,
|
|
10162
10346
|
command$53,
|
|
10163
|
-
command$
|
|
10347
|
+
command$52,
|
|
10164
10348
|
command$58,
|
|
10349
|
+
command$55,
|
|
10350
|
+
command$54,
|
|
10351
|
+
command$57,
|
|
10165
10352
|
command$59,
|
|
10166
|
-
command$
|
|
10353
|
+
command$60,
|
|
10354
|
+
command$56,
|
|
10355
|
+
command$51
|
|
10167
10356
|
]
|
|
10168
10357
|
},
|
|
10169
10358
|
{
|
|
@@ -10364,10 +10553,10 @@ proxy uses. No command prints a private key, and none revokes a key at Apple.`
|
|
|
10364
10553
|
id: "support",
|
|
10365
10554
|
title: "Support & updates",
|
|
10366
10555
|
commands: [
|
|
10367
|
-
command$
|
|
10368
|
-
command$62,
|
|
10556
|
+
command$61,
|
|
10369
10557
|
command$63,
|
|
10370
|
-
command$
|
|
10558
|
+
command$64,
|
|
10559
|
+
command$62
|
|
10371
10560
|
]
|
|
10372
10561
|
}
|
|
10373
10562
|
];
|
|
@@ -10377,7 +10566,7 @@ function visible(channel) {
|
|
|
10377
10566
|
function listGroups() {
|
|
10378
10567
|
return GROUPS.filter((group$1) => visible(group$1.channel)).map((group$1) => ({
|
|
10379
10568
|
...group$1,
|
|
10380
|
-
commands: group$1.commands.filter((command$
|
|
10569
|
+
commands: group$1.commands.filter((command$68) => visible(command$68.channel))
|
|
10381
10570
|
}));
|
|
10382
10571
|
}
|
|
10383
10572
|
|