@superwall/cli 1.7.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +192 -52
- package/dist/{setup-Bxj22rYi.js → apple-CkKlHBZ9.js} +82 -76
- package/dist/auth.d.ts +4 -19
- package/dist/auth.js +4 -2
- package/dist/{actions-B7ym3oVS.js → billing-XCZU_T46.js} +98 -28
- package/dist/{bind-YrJvuRF9.js → bind-drne__Ys.js} +38 -33
- package/dist/{build-DLoCW5Ri.js → build-Gpdq5QXP.js} +20 -26
- package/dist/{asc-Bf7zBbyS.js → client-BZ1UbpXz.js} +16 -15
- package/dist/client-DP6Rc0t_.js +176 -0
- package/dist/config-BO1Y87kV.js +105 -0
- package/dist/{notification-url-DuKF2659.js → create-BBrtgUgS.js} +235 -539
- package/dist/{create-pkANt1Gs.js → create-Cwc3SRWJ.js} +194 -168
- package/dist/create-Yvf2gStM.js +19 -0
- package/dist/doctor-C9ldpPFC.js +83 -0
- package/dist/{drivers-Qx9LxmRN.js → drivers-DNrx4LWA.js} +185 -172
- package/dist/entry.d.ts +0 -5
- package/dist/entry.js +28073 -1134
- package/dist/environment-DF1qKlny.js +58 -0
- package/dist/{existing-AVEfZu2A.js → existing-78LWSsqS.js} +12 -6
- package/dist/held-Cy8Wl4D1.js +1112 -0
- package/dist/held-Ddw1XSsr.js +16 -0
- package/dist/input-vi0bou04.js +42 -0
- package/dist/{integrate-brmhPG-S.js → integrate-DcJhpXy8.js} +277 -254
- package/dist/kinds-GFXB3sYu.js +11 -0
- package/dist/log-NVhVe_oe.js +62 -0
- package/dist/login-B2TsCE2H.js +53 -0
- package/dist/login-BoBe8Psl.js +16 -0
- package/dist/{login-Do4wFuLv.js → login-D0lh3_JI.js} +118 -55
- package/dist/lookup-D-nmmAbw.js +71 -0
- package/dist/migrate-Cfec564E.js +274 -0
- package/dist/notification-url-YDbq6FMA.js +100 -0
- package/dist/{open-studio-DOw-6ydc.js → open-Ba2vBl1_.js} +34 -43
- package/dist/org-D0g_q3mv.js +35 -0
- package/dist/output-Ggzq5_-t.js +122 -0
- package/dist/paths-DxSLdpOI.js +29 -0
- package/dist/playbook-DIeb7hne.js +53 -0
- package/dist/{asc-products-9JXtDxI4.js → products-DH_fK9tY.js} +6 -6
- package/dist/promote-COD4fYdz.js +91 -0
- package/dist/push-CncywhkQ.js +482 -0
- package/dist/push-CtD4FZQV.js +22 -0
- package/dist/registry-DSrosOYs.js +10228 -0
- package/dist/{reports-CfJqoava.js → reports-DdPq4blM.js} +7 -6
- package/dist/{resources-Bf9O1JNM.js → resources-Dqr01Dep.js} +150 -55
- package/dist/{run-DsVZ5snL.js → run-C9qg_QlC.js} +16 -22
- package/dist/scan-Cv5uOwVY.js +4 -0
- package/dist/{scan-zKsddO72.js → scan-DLrsrFS9.js} +48 -37
- package/dist/scope-V336uz8j.js +198 -0
- package/dist/screenshot-file-0UETadF8.js +16 -0
- package/dist/{selection-CxZoX4NT.js → selection-Rdw-ZUoG.js} +94 -51
- package/dist/send-BxD9yf6F.js +150 -0
- package/dist/{dev-DmB3XqaJ.js → server-D0tGG8C4.js} +82 -92
- package/dist/server-z1LH94R_.js +22 -0
- package/dist/session-1AV_Bs_d.js +6 -0
- package/dist/session-CFAmMhem.js +40 -0
- package/dist/session-D_nEWKXT.js +768 -0
- package/dist/skills/animate-onboarding/SKILL.md +467 -0
- package/dist/skills/animate-onboarding/references/engine.md +494 -0
- package/dist/skills/animate-onboarding/references/framework/Question.tsx +71 -0
- package/dist/skills/animate-onboarding/references/framework/README.md +40 -0
- package/dist/skills/animate-onboarding/references/framework/answers.ts +19 -0
- package/dist/skills/animate-onboarding/references/framework/flow.ts +80 -0
- package/dist/skills/animate-onboarding/references/framework/handoffs.ts +869 -0
- package/dist/skills/animate-onboarding/references/framework/layout.tsx +113 -0
- package/dist/skills/animate-onboarding/references/framework/motion.css +559 -0
- package/dist/skills/animate-onboarding/references/framework/useStoryRouter.ts +48 -0
- package/dist/skills/animate-onboarding/references/handoffs.md +375 -0
- package/dist/skills/animate-onboarding/references/imageReady.ts +92 -0
- package/dist/skills/animate-onboarding/references/morphFrame.ts +356 -0
- package/dist/skills/animate-onboarding/references/performance.md +41 -0
- package/dist/skills/animate-onboarding/references/web-runtime/README.md +17 -0
- package/dist/skills/animate-onboarding/references/web-runtime/handoffs.ts +858 -0
- package/dist/skills/animate-onboarding/references/web-runtime/story-motion.css +301 -0
- package/dist/skills/index.json +37 -0
- package/dist/skills/mobile-design/SKILL.md +447 -0
- package/dist/skills/mobile-design/references/responsive.md +162 -0
- package/dist/skills/onboarding-questions/SKILL.md +231 -0
- package/dist/skills/onboarding-questions/references/arpu-questions.md +139 -0
- package/dist/skills/onboarding-questions/references/craft.md +142 -0
- package/dist/skills/onboarding-questions/references/example-reflective.md +117 -0
- package/dist/skills/superwall/SKILL.md +82 -9
- package/dist/skills/superwall/references/api.md +153 -37
- package/dist/skills/superwall/references/apple-setup.md +316 -0
- package/dist/skills/superwall/references/asc.md +74 -38
- package/dist/skills/superwall/references/data-analytics.md +55 -21
- package/dist/skills/superwall/workflows/dashboard/playbook.md +3 -3
- package/dist/skills/superwall/workflows/dashboard/setup.md +8 -8
- package/dist/skills/superwall/workflows/migrate/adapty.md +6 -6
- package/dist/skills/superwall/workflows/migrate/playbook.md +4 -4
- package/dist/skills/superwall/workflows/migrate/qonversion.md +5 -5
- package/dist/skills/superwall/workflows/migrate/revenuecat.md +6 -6
- package/dist/skills/superwall/workflows/placements/android.md +2 -2
- package/dist/skills/superwall/workflows/placements/expo.md +2 -2
- package/dist/skills/superwall/workflows/placements/flutter.md +2 -2
- package/dist/skills/superwall/workflows/placements/ios.md +2 -2
- package/dist/skills/superwall/workflows/placements/playbook.md +2 -2
- package/dist/skills/superwall/workflows/placements/react-native.md +2 -2
- package/dist/skills/superwall/workflows/placements/strategy.md +2 -2
- package/dist/skills/superwall/workflows/review/playbook.md +1 -1
- package/dist/skills/superwall-editor/SKILL.md +61 -0
- package/dist/skills/superwall-editor/references/cli.md +135 -0
- package/dist/skills/superwall-editor/references/design.md +51 -0
- package/dist/skills/superwall-editor/references/native-elements.md +171 -0
- package/dist/skills/superwall-editor/references/workflow.md +65 -0
- package/dist/skills/superwall-editor/scripts/sw-editor.sh +662 -0
- package/dist/skills/superwall-framework/SKILL.md +78 -28
- package/dist/skills/superwall-framework/references/cli.md +58 -28
- package/dist/skills/superwall-framework/references/examples.md +4 -3
- package/dist/skills/superwall-framework/references/layout.md +30 -8
- package/dist/skills/superwall-framework/references/migrate-from-editor.md +1 -1
- package/dist/skills/superwall-framework/references/onboarding-state.md +245 -0
- package/dist/skills/wwdc/SKILL.md +22 -0
- package/dist/skills/wwdc/references/docs.md +52 -0
- package/dist/skills/wwdc/scripts/wwdc.sh +266 -0
- package/dist/{skills-DPzlnfCK.js → skills-BvFOa4y6.js} +99 -122
- package/dist/skills-DMG4bpKk.js +14 -0
- package/dist/{spawn-DSoTXy_j.js → spawn-DmmmHIP-.js} +14 -12
- package/dist/spinner-CneRK5rk.js +294 -0
- package/dist/storage-DYvmIOHa.d.ts +16 -0
- package/dist/storage-s2Dnz-yl.js +31 -0
- package/dist/storekit-DafAnGkM.js +16 -0
- package/dist/storekit-yY_kS2iR.js +47 -0
- package/dist/telemetry-DtG92m5O.js +56 -0
- package/dist/theme-DUsCh-Vd.js +25 -0
- package/dist/timing-BVxPrYq3.js +5 -0
- package/dist/{token-C0it-Xh7.js → token-DzRh7dI1.js} +6 -38
- package/dist/tools.d.ts +96 -0
- package/dist/tools.js +11178 -0
- package/dist/ui-D_qf3Gvw.js +53 -0
- package/dist/upgrade-Bt4Ouw1y.js +117 -0
- package/dist/upgrade-Cqy5orjb.js +7 -0
- package/package.json +10 -5
- package/dist/api-CZzirVMj.js +0 -151
- package/dist/api-output-aJNw7Syy.js +0 -20
- package/dist/app-DH6U8yuI.js +0 -190
- package/dist/asa-C-sQzPPn.js +0 -1194
- package/dist/asc-1ZBJ6DwS.js +0 -778
- package/dist/auth-YRhlV3DE.js +0 -140
- package/dist/billing-CCYHdApx.js +0 -80
- package/dist/bundle-id-CKxl_026.js +0 -121
- package/dist/command-CMIz81Da.js +0 -301
- package/dist/dev-DZy6pOnB.js +0 -22
- package/dist/doctor-H-hf-Yww.js +0 -88
- package/dist/feedback-CKf-rpBW.js +0 -152
- package/dist/hosted-CXe9TrWx.js +0 -32
- package/dist/migrate-C9ERDR6y.js +0 -284
- package/dist/org-sj7uyvp-.js +0 -40
- package/dist/output-C4o2gJ1K.js +0 -146
- package/dist/params-l3CrvRtR.js +0 -51
- package/dist/pipeline-BqzqZhX1.js +0 -977
- package/dist/print-skill-ZojRSybs.js +0 -74
- package/dist/promote-BG8X4Nv_.js +0 -88
- package/dist/publish-sxLh-G4G.js +0 -35
- package/dist/push-bQ6Vxtg8.js +0 -35
- package/dist/query-_FbybaH-.js +0 -53
- package/dist/resource-CGIwSd29.js +0 -323
- package/dist/revenue-provider-ebsRINY8.js +0 -100
- package/dist/scope-BvzD-kO4.js +0 -223
- package/dist/skills-D_R-lEsK.js +0 -64
- package/dist/spinner-TWa0hia6.js +0 -18
- package/dist/storekit-Cj9Cpjcz.js +0 -29
- package/dist/telemetry-DeA1mvnT.js +0 -169
- package/dist/ui-Dy0b-9L8.js +0 -27738
- package/dist/update-B2fWIc4q.js +0 -59
- package/dist/upgrade-BmzkTKrh.js +0 -72
- /package/dist/{devtools-8EgLo86w.js → devtools-ByZ6XYnn.js} +0 -0
package/README.md
CHANGED
|
@@ -29,8 +29,8 @@ package; everything below is what you get.
|
|
|
29
29
|
session. Where it can't open one (a server, or over SSH), it says so: open the
|
|
30
30
|
URL it prints on any device and approve the code there. In CI, log in without
|
|
31
31
|
a browser: `superwall login --api-key <key>`.
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
There are no organizations to pick: `superwall apps list` shows every app you
|
|
33
|
+
can open, grouped by organization, and commands take `--app <id|dashboard link>`.
|
|
34
34
|
Upgrade any time with `superwall upgrade` - the CLI also tells you when a new
|
|
35
35
|
version is out.
|
|
36
36
|
|
|
@@ -209,50 +209,87 @@ records a note in the source commit that rides along with every version, and
|
|
|
209
209
|
Renames are resolved, never guessed — interactively, or with
|
|
210
210
|
`push --rename old=new` in CI.
|
|
211
211
|
|
|
212
|
+
A push also saves the project's source to the app's repo. It applies your
|
|
213
|
+
changes on top of whatever teammates have published since your last push
|
|
214
|
+
(the commit it last synced to is in `superwall.lock`, so commit it), so two
|
|
215
|
+
people working on different paywalls never undo each other. If you both
|
|
216
|
+
changed the same file, or the repo has changes this project never synced
|
|
217
|
+
with, the push stops and names the files rather than overwriting their work;
|
|
218
|
+
`--overwrite-source` replaces the remote source with yours when you mean to.
|
|
219
|
+
|
|
212
220
|
The full reference — assets, localization, trials, transitions, web
|
|
213
221
|
checkout, troubleshooting — lives at
|
|
214
222
|
[superwall.com/docs/framework](https://superwall.com/docs/framework).
|
|
215
223
|
|
|
216
224
|
## Manage your account
|
|
217
225
|
|
|
218
|
-
Everything in the dashboard, from the terminal
|
|
226
|
+
Everything in the dashboard, from the terminal. Commands follow the API,
|
|
227
|
+
Stripe-style: `superwall <resource> <operation> [ids] [--field value]`.
|
|
219
228
|
|
|
220
229
|
```bash
|
|
221
|
-
superwall apps
|
|
222
|
-
superwall
|
|
230
|
+
superwall apps get <app> # everything about one app: bundle ID, Apple team, keys
|
|
231
|
+
superwall apps <app> # the same: an id where the operation goes means get
|
|
232
|
+
superwall apps update <app> --team-id <team-id>
|
|
233
|
+
superwall products create --identifier pro_monthly --price 9.99 --period month
|
|
223
234
|
superwall products storekit # generate a local .storekit file
|
|
224
|
-
superwall entitlements create pro
|
|
225
|
-
superwall campaigns create "Onboarding upsell" onboarding_complete
|
|
226
|
-
superwall campaigns
|
|
227
|
-
superwall
|
|
228
|
-
superwall
|
|
235
|
+
superwall entitlements create --identifier pro
|
|
236
|
+
superwall campaigns create --description "Onboarding upsell" --placement onboarding_complete
|
|
237
|
+
superwall campaigns placements create <campaign-id> --event-name onboarding_complete
|
|
238
|
+
superwall campaigns audiences readout <campaign-id> <audience-id>
|
|
239
|
+
superwall users subscriptions <app-user-id> --app <app>
|
|
240
|
+
superwall webhooks list --app <app>
|
|
229
241
|
superwall bootstrap # the whole account tree at a glance
|
|
230
242
|
```
|
|
231
243
|
|
|
232
|
-
`
|
|
233
|
-
`
|
|
234
|
-
|
|
235
|
-
|
|
244
|
+
Resources: `apps`, `products`, `entitlements` (+ `grants`),
|
|
245
|
+
`campaigns` (+ `placements`, `audiences`, `variants`), `paywalls`, `users`,
|
|
246
|
+
`webhooks`, `events`. Each has `list`, `get`, `create`, `update`, `delete` where
|
|
247
|
+
the API does, plus its own actions (`archive`, `publish`, `duplicate`, ...).
|
|
248
|
+
|
|
249
|
+
- Every command, and every subcommand of `asc`, `asa`, `setup` and `api`,
|
|
250
|
+
has its own `--help` page with only the flags
|
|
251
|
+
it takes. A group on its own (`superwall asc`) shows that page.
|
|
252
|
+
- `superwall <resource> --help` lists its operations;
|
|
253
|
+
`superwall <resource> <operation> --help` lists that operation's flags, read
|
|
254
|
+
from the live API reference, so new API fields work without a CLI update.
|
|
255
|
+
- A flag is a request field: `--event-name x` sends `event_name`. Anything else
|
|
256
|
+
goes in with `-d key=value` (`key:=json` for numbers and objects). A flag the
|
|
257
|
+
endpoint doesn't take is refused before anything is sent.
|
|
258
|
+
- `--app <id|name|link>` fills in the project, app and organization ids, so
|
|
259
|
+
nobody types `/v2/projects/{id}/applications/{application_id}`.
|
|
260
|
+
- `--dry-run` prints the request instead of sending it. Deleting, archiving and
|
|
261
|
+
other changes that can't be undone ask first, and need `--yes` outside a
|
|
262
|
+
terminal.
|
|
263
|
+
- Creating takes flags too (`--identifier`, `--name`, `--description`,
|
|
264
|
+
`--placement`), never positionals. One way to change a thing: an app's bundle
|
|
265
|
+
ID and revenue provider are `apps update` fields like any other.
|
|
266
|
+
- `list` is the default, so `superwall products` means `superwall products list`.
|
|
267
|
+
`--json` returns the API's response unformatted.
|
|
236
268
|
|
|
237
269
|
An app's bundle ID (package name on Android) decides which builds the SDK
|
|
238
|
-
treats as that app; any other build runs in test mode.
|
|
239
|
-
the app's SDK reported in the last 30 days,
|
|
270
|
+
treats as that app; any other build runs in test mode. `apps get` shows the one
|
|
271
|
+
saved and the IDs the app's SDK reported in the last 30 days, each marked live
|
|
272
|
+
or test mode. Change it like any other field:
|
|
240
273
|
|
|
241
274
|
```bash
|
|
242
|
-
superwall apps
|
|
243
|
-
superwall apps bundle-id com.acme.app
|
|
275
|
+
superwall apps get <app> # saved, and what the SDK reported
|
|
276
|
+
superwall apps update <app> --bundle-id com.acme.app # save it
|
|
244
277
|
```
|
|
245
278
|
|
|
246
|
-
When
|
|
247
|
-
|
|
248
|
-
terminal). An ID that is already saved is only replaced with `--replace`.
|
|
279
|
+
When builds the SDK reported would run in test mode under the new ID, it says
|
|
280
|
+
how many and asks first (`--yes` outside a terminal).
|
|
249
281
|
|
|
250
|
-
`setup apple
|
|
282
|
+
`setup apple` and `asc keys create purchase_key`
|
|
251
283
|
keep the In-App Purchase key and the app on one bundle ID. An app with none
|
|
252
284
|
gets the Apple app's (or the one `--bundle-id` names) saved with the key, both
|
|
253
285
|
or neither, and they say so and how many reported builds would run in test
|
|
254
286
|
mode. An app with a different bundle ID stops before anything is created or
|
|
255
|
-
saved, and points at `apps bundle-id <id
|
|
287
|
+
saved, and points at `apps update <app> --bundle-id <id>`.
|
|
288
|
+
|
|
289
|
+
Lists stay usable on big accounts: `--search <text>` matches ids, names and
|
|
290
|
+
identifiers, `--limit <n>` caps the rows, and a terminal shows the first 50 with
|
|
291
|
+
a count of the rest (`--json` returns everything unless `--limit` caps it).
|
|
292
|
+
`bootstrap --app <id>` loads one project instead of the whole account.
|
|
256
293
|
|
|
257
294
|
## Query your data
|
|
258
295
|
|
|
@@ -269,9 +306,35 @@ Use it for anything you'd build on raw data: ad hoc analysis, custom
|
|
|
269
306
|
dashboards, scheduled reports, agent workflows. `--json` returns ClickHouse's
|
|
270
307
|
native JSON envelope. Your session needs `data:read` access.
|
|
271
308
|
|
|
309
|
+
Many apps receive revenue from both the store and RevenueCat, so the same
|
|
310
|
+
purchase can arrive twice, and each app's revenue provider decides which one
|
|
311
|
+
its figures count. `--app <app>` passes that to the query as ClickHouse
|
|
312
|
+
parameters, so SQL counts revenue the way the dashboard does:
|
|
313
|
+
|
|
314
|
+
```sql
|
|
315
|
+
-- superwall query --file revenue.sql --app <app>
|
|
316
|
+
SELECT sum(price)
|
|
317
|
+
FROM open_revenue.attributed_events_by_ts_rep FINAL
|
|
318
|
+
WHERE applicationId = {app:UInt64}
|
|
319
|
+
AND (integration IN {revenue_integrations:Array(String)} OR source = 'sdk')
|
|
320
|
+
AND NOT (coalesce(integration, '') = 'revenue_cat' AND store = 'STRIPE')
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
`{revenue_provider:String}` holds the provider itself, and `--param name=value`
|
|
324
|
+
adds any other parameter.
|
|
325
|
+
|
|
272
326
|
## Call the API
|
|
273
327
|
|
|
274
|
-
|
|
328
|
+
`superwall api docs` searches the live API reference, so you can find any
|
|
329
|
+
endpoint and its exact body before calling it (no login needed):
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
superwall api docs variant # search by keyword
|
|
333
|
+
superwall api docs /v2/campaigns/123/audiences/9/variants post # one endpoint in full
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
Any Superwall API endpoint, authenticated with your session. A request that
|
|
337
|
+
fails names the reference entry to read:
|
|
275
338
|
|
|
276
339
|
```bash
|
|
277
340
|
superwall get /v2/products
|
|
@@ -332,16 +395,15 @@ superwall asc keys list --app <id> # which of the two keys th
|
|
|
332
395
|
superwall asc keys import --app <id> # reuse a key your organization already has
|
|
333
396
|
superwall asc keys create api_key --app <id> # sign in to Apple and create just this key
|
|
334
397
|
superwall asc keys create purchase_key --app <id>
|
|
335
|
-
superwall asc notification-url --app <id> # this app's Superwall URL
|
|
336
398
|
superwall asc notification-url check --app <id> # what Apple has, and whose it is
|
|
337
399
|
superwall asc notification-url set --app <id> # set it where Apple has none
|
|
338
400
|
```
|
|
339
401
|
|
|
340
402
|
`asc keys import` saves a key only when Apple confirms it for the app's bundle
|
|
341
403
|
ID. `asc keys create` does nothing when the app already has that key; pass
|
|
342
|
-
`--replace` to create another. `asc keys sources`
|
|
343
|
-
--from <app
|
|
344
|
-
<kind> --app <id>` removes one from an app. `superwall asc --help` says what
|
|
404
|
+
`--replace` to create another. `asc keys sources` lists the keys on your other
|
|
405
|
+
apps, `asc keys import <kind> --from <app>` reuses one of them, and
|
|
406
|
+
`asc keys delete <kind> --app <id>` removes one from an app. `superwall asc --help` says what
|
|
345
407
|
each command changes, what it never does, and its exit codes.
|
|
346
408
|
|
|
347
409
|
`asc notification-url check` says for production and sandbox whose URL Apple
|
|
@@ -349,17 +411,18 @@ has: this app's, another Superwall app's (named when you can read that app),
|
|
|
349
411
|
someone else's, or none. `asc notification-url set` never replaces a URL
|
|
350
412
|
another server holds. If RevenueCat or your own server receives Apple's
|
|
351
413
|
notifications today, keep it there and have it forward them to the URL
|
|
352
|
-
`
|
|
414
|
+
`apps get` shows. Both work with a `superwall login` session or
|
|
353
415
|
an API key.
|
|
354
416
|
|
|
355
417
|
Receiving Apple's notifications and choosing which revenue source your
|
|
356
418
|
dashboard counts are separate decisions. The second one is the revenue
|
|
357
|
-
provider
|
|
419
|
+
provider, and `superwall query --app <app>` hands it to your SQL (see Query
|
|
420
|
+
your data):
|
|
358
421
|
|
|
359
422
|
```bash
|
|
360
|
-
superwall
|
|
361
|
-
superwall revenue-provider
|
|
362
|
-
superwall revenue-provider
|
|
423
|
+
superwall apps get <app> # what is counted, and how many events each source sent
|
|
424
|
+
superwall apps update <app> --revenue-provider open_revenue # count the store's own events
|
|
425
|
+
superwall apps update <app> --revenue-provider revenue_cat # count RevenueCat's events
|
|
363
426
|
```
|
|
364
427
|
|
|
365
428
|
A change asks first in a terminal and needs `--yes` outside one.
|
|
@@ -368,12 +431,12 @@ Already have a key file? Save it on an app, or on your organization for the
|
|
|
368
431
|
signed proxy:
|
|
369
432
|
|
|
370
433
|
```bash
|
|
371
|
-
superwall asc keys
|
|
372
|
-
superwall asc keys
|
|
434
|
+
superwall asc keys create api_key --app <id> --key-id <id> --issuer <id> --key-file AuthKey.p8
|
|
435
|
+
superwall asc keys create --key-id <id> --issuer <id> --key-file AuthKey.p8
|
|
373
436
|
```
|
|
374
437
|
|
|
375
438
|
Saving an API key on an app also gives the organization a key for that Apple
|
|
376
|
-
team when it has none. `asc keys
|
|
439
|
+
team when it has none. `asc keys update --team <team id>` replaces the
|
|
377
440
|
organization's key for a team, and is refused unless Apple confirms the new key
|
|
378
441
|
belongs to the same team.
|
|
379
442
|
|
|
@@ -405,12 +468,79 @@ superwall asc post /v1/subscriptions \
|
|
|
405
468
|
• subscriptionPeriod "MONTHLY" not allowed — use ONE_WEEK|ONE_MONTH|…|ONE_YEAR
|
|
406
469
|
```
|
|
407
470
|
|
|
408
|
-
Fix the value and it goes through.
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
471
|
+
Fix the value and it goes through. Anything the commands below don't cover is
|
|
472
|
+
`asc get|post|patch|delete /v1/…`.
|
|
473
|
+
|
|
474
|
+
### Subscriptions and in-app purchases
|
|
475
|
+
|
|
476
|
+
What an app sells has its own commands, each with `list`, `get`, `create`,
|
|
477
|
+
`update` and `delete`. They take the App Store app as an id or a bundle ID, and
|
|
478
|
+
flags named after Apple's own fields:
|
|
479
|
+
|
|
480
|
+
```bash
|
|
481
|
+
superwall asc apps # your apps at Apple
|
|
482
|
+
superwall asc products com.acme.app # everything the app sells
|
|
483
|
+
superwall asc subscription-groups create --asc-app com.acme.app \
|
|
484
|
+
--reference-name Pro --display-name "Acme Pro"
|
|
485
|
+
superwall asc subscriptions list com.acme.app
|
|
486
|
+
superwall asc subscriptions get <id> # localizations, prices, offers, availability, what's missing
|
|
487
|
+
superwall asc iaps create --asc-app com.acme.app --product-id coins.100 --name "100 Coins" \
|
|
488
|
+
--in-app-purchase-type consumable --price 0.99 --display-name "100 Coins"
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
`asc subscriptions create` does everything Apple asks for before review, in
|
|
492
|
+
order: the subscription, its localization, where it's sold, its price in one
|
|
493
|
+
territory equalized to every other, and a free trial if you want one. It ends by
|
|
494
|
+
reading the subscription back and saying what's still missing:
|
|
495
|
+
|
|
496
|
+
```bash
|
|
497
|
+
superwall asc subscriptions create --group Pro --asc-app com.acme.app \
|
|
498
|
+
--product-id com.acme.pro.monthly --name "Pro Monthly" --subscription-period ONE_MONTH \
|
|
499
|
+
--price 9.99 --display-name "Pro" --description "Everything, monthly" --trial ONE_WEEK
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
The details have commands of their own:
|
|
503
|
+
|
|
504
|
+
```bash
|
|
505
|
+
superwall asc localizations add --subscription <id> --locale de-DE --name "Pro"
|
|
506
|
+
superwall asc prices points --subscription <id> --territory USA --price 9.99
|
|
507
|
+
superwall asc prices set --subscription <id> --price 12.99 --preserve-current-price
|
|
508
|
+
superwall asc offers create --subscription <id> --offer-mode FREE_TRIAL --duration TWO_WEEKS
|
|
509
|
+
superwall asc availability set --iap <id> --available-territories USA,CAN
|
|
510
|
+
superwall asc screenshots upload --subscription <id> paywall.png
|
|
511
|
+
superwall asc submit --asc-app com.acme.app --group <id> --subscription <id>
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
Every change takes `--dry-run`: it prints each request it would send, bodies
|
|
515
|
+
included, and changes nothing. Deletes ask first (`--yes` in scripts).
|
|
516
|
+
|
|
517
|
+
### Releases
|
|
518
|
+
|
|
519
|
+
The steps of an App Store release have commands too. A version is its id, or
|
|
520
|
+
its version string with `--asc-app` (and `--platform` off iOS):
|
|
521
|
+
|
|
522
|
+
```bash
|
|
523
|
+
superwall asc versions create --asc-app com.acme.app --version-string 1.3.0 --release-type MANUAL
|
|
524
|
+
superwall asc builds list com.acme.app --version-string 1.3.0 --processing-state VALID
|
|
525
|
+
superwall asc builds attach <build> 1.3.0 --asc-app com.acme.app
|
|
526
|
+
superwall asc metadata update 1.3.0 --asc-app com.acme.app --locale en-US --whats-new "Faster sync"
|
|
527
|
+
superwall asc release submit 1.3.0 --asc-app com.acme.app --subscription <id>
|
|
528
|
+
superwall asc release status 1.3.0 --asc-app com.acme.app # state, build, review submission, phased release
|
|
529
|
+
superwall asc release release 1.3.0 --asc-app com.acme.app # once it's pending developer release
|
|
530
|
+
superwall asc release phased pause 1.3.0 --asc-app com.acme.app
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
`asc release submit` puts the version in the app's review submission, with any
|
|
534
|
+
`--subscription`, `--iap` or `--group` alongside: Apple reviews an app's first
|
|
535
|
+
in-app purchases only together with a version. `asc versions delete` works only
|
|
536
|
+
while a version is still editable; it, `asc builds expire` and `asc release
|
|
537
|
+
release` ask first.
|
|
538
|
+
|
|
539
|
+
`asc get`, `asc post`, `asc patch`, `asc delete` and `asc docs` warn when an
|
|
540
|
+
endpoint is one Apple has replaced (the v1 subscription and in-app purchase
|
|
541
|
+
localizations, the v1 product submissions, `subscriptionAvailabilities`, the old
|
|
542
|
+
in-app purchase and version-submission endpoints, screenshot and preview sets),
|
|
543
|
+
and name the replacement.
|
|
414
544
|
|
|
415
545
|
## Apple Search Ads
|
|
416
546
|
|
|
@@ -456,6 +586,12 @@ asking. The framework itself is built to be written by agents: a plain npm
|
|
|
456
586
|
project, file-based routes, ordinary React state — conventions an agent
|
|
457
587
|
already knows, so it gets a paywall right on the first try.
|
|
458
588
|
|
|
589
|
+
## Upgrading to 2.0
|
|
590
|
+
|
|
591
|
+
2.0 renamed several commands; the old names are unknown commands now.
|
|
592
|
+
[The CLI guide](https://superwall.com/docs/agents/cli#upgrading-from-1x)
|
|
593
|
+
maps each one to its replacement.
|
|
594
|
+
|
|
459
595
|
## Channels
|
|
460
596
|
|
|
461
597
|
Set `SUPERWALL_CHANNEL=next` to opt into experimental and beta features:
|
|
@@ -479,16 +615,20 @@ linked to your account. Opt out with `SUPERWALL_TELEMETRY_DISABLED=1` or
|
|
|
479
615
|
packages/cli/
|
|
480
616
|
├── bin.ts the entry the `superwall` launcher runs
|
|
481
617
|
├── src/
|
|
482
|
-
│ ├──
|
|
483
|
-
│ ├──
|
|
484
|
-
│
|
|
485
|
-
│ │ ├──
|
|
486
|
-
│ │ ├──
|
|
487
|
-
│ │ ├──
|
|
488
|
-
│ │
|
|
489
|
-
│ ├──
|
|
490
|
-
│ │
|
|
491
|
-
│
|
|
618
|
+
│ ├── entry.ts main(): run the program, flush telemetry
|
|
619
|
+
│ ├── program/ the command system: defineCommand, parser, help, lifecycle
|
|
620
|
+
│ ├── commands/ registry.ts + one directory per section of `superwall --help`
|
|
621
|
+
│ │ ├── workflows/ integrate, review, migrate
|
|
622
|
+
│ │ ├── paywalls/ create, dev, build, push, promote, publish
|
|
623
|
+
│ │ ├── main/ bootstrap, apps, products, entitlements, campaigns, paywalls, users, webhooks, events
|
|
624
|
+
│ │ ├── analytics/ query
|
|
625
|
+
│ │ ├── api/ docs, get, post, patch, delete
|
|
626
|
+
│ │ ├── app-store-connect/ setup/, keys/, notification-url/, store/ (apps, products, …), api/ (get, post, …, docs)
|
|
627
|
+
│ │ ├── apple-search-ads/ asa (the catalog), keys, api/ (get, post, put, delete, docs)
|
|
628
|
+
│ │ ├── account/ login, logout, whoami
|
|
629
|
+
│ │ └── support/ doctor, feedback, skills, upgrade
|
|
630
|
+
│ ├── core/ the logic behind every command, by domain
|
|
631
|
+
│ └── ui/ the renderer: human output, --json envelopes, prompts, help layout
|
|
492
632
|
├── dist/skills/ the playbooks integrate/migrate/review run, bundled from superwall/skills at build
|
|
493
633
|
└── tests/ mirrors src/
|
|
494
634
|
```
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import "./
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
1
|
+
import "./token-DzRh7dI1.js";
|
|
2
|
+
import { t as blocks } from "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-DF1qKlny.js";
|
|
4
|
+
import "./storage-s2Dnz-yl.js";
|
|
5
|
+
import { t as ApiError } from "./client-DP6Rc0t_.js";
|
|
6
|
+
import { E as updateBundleId, a as chooseAppIntent, g as RefusedByApi, i as savedKey, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, s as resolveApp, y as findIntegrations } from "./held-Cy8Wl4D1.js";
|
|
7
|
+
import "./config-BO1Y87kV.js";
|
|
8
|
+
import { t as apiCall } from "./spinner-CneRK5rk.js";
|
|
9
|
+
import "./ui-D_qf3Gvw.js";
|
|
10
|
+
import "./paths-DxSLdpOI.js";
|
|
11
|
+
import "./resources-Dqr01Dep.js";
|
|
12
|
+
import "./org-D0g_q3mv.js";
|
|
13
|
+
import "./lookup-D-nmmAbw.js";
|
|
14
|
+
import "./scope-V336uz8j.js";
|
|
15
|
+
import "./client-BZ1UbpXz.js";
|
|
16
|
+
import "./timing-BVxPrYq3.js";
|
|
17
|
+
import { n as ensureNotificationUrl, r as environmentLines, t as describeNotificationUrl } from "./notification-url-YDbq6FMA.js";
|
|
18
|
+
import { a as chooseTeam, n as keyAccess, o as signIn, r as keyRole, s as appleDeps, t as createAndSaveKey } from "./create-BBrtgUgS.js";
|
|
17
19
|
|
|
18
|
-
//#region src/
|
|
20
|
+
//#region src/core/app-store-connect/setup/apple.ts
|
|
19
21
|
const STEPS = [
|
|
20
22
|
...KEY_KINDS,
|
|
21
23
|
"bundle_id",
|
|
@@ -26,12 +28,14 @@ const STEP_LABEL = {
|
|
|
26
28
|
bundle_id: "Bundle ID",
|
|
27
29
|
notification_url: "Server notification URL"
|
|
28
30
|
};
|
|
29
|
-
async function saveAppBundleId(ctx,
|
|
31
|
+
async function saveAppBundleId(ctx, resolved) {
|
|
30
32
|
try {
|
|
31
|
-
await apiCall(ctx, `Saving the bundle ID on ${
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
await apiCall(ctx, `Saving the bundle ID on ${resolved.name}`, () => {
|
|
34
|
+
return updateBundleId(ctx.api, resolved.applicationId, {
|
|
35
|
+
bundleId: resolved.bundleId,
|
|
36
|
+
replace: false
|
|
37
|
+
});
|
|
38
|
+
});
|
|
35
39
|
} catch (error) {
|
|
36
40
|
if (!(error instanceof ApiError) && !(error instanceof RefusedByApi)) throw error;
|
|
37
41
|
ctx.output.render(blocks.warning(`${STEP_LABEL.bundle_id}: ${error.message}`));
|
|
@@ -40,80 +44,95 @@ async function saveAppBundleId(ctx, app) {
|
|
|
40
44
|
detail: error.message
|
|
41
45
|
};
|
|
42
46
|
}
|
|
43
|
-
ctx.output.render(blocks.info(`Saved the bundle ID ${
|
|
47
|
+
ctx.output.render(blocks.info(`Saved the bundle ID ${resolved.bundleId} on \`${resolved.name}\``));
|
|
44
48
|
return {
|
|
45
49
|
status: "done",
|
|
46
|
-
detail: `${
|
|
50
|
+
detail: `${resolved.bundleId} (saved)`
|
|
47
51
|
};
|
|
48
52
|
}
|
|
49
|
-
async function
|
|
53
|
+
async function runSetupApple(ctx, { flags }) {
|
|
50
54
|
const { api } = ctx;
|
|
51
|
-
const
|
|
55
|
+
const deps = appleDeps;
|
|
56
|
+
const role = keyRole(flags.keyRole);
|
|
52
57
|
const skip = {
|
|
53
|
-
api_key:
|
|
54
|
-
purchase_key:
|
|
58
|
+
api_key: flags.skipApiKey,
|
|
59
|
+
purchase_key: flags.skipPurchaseKey,
|
|
55
60
|
bundle_id: false,
|
|
56
|
-
notification_url:
|
|
61
|
+
notification_url: flags.skipNotificationUrl
|
|
62
|
+
};
|
|
63
|
+
const appFlags = {
|
|
64
|
+
app: flags.app,
|
|
65
|
+
project: flags.project,
|
|
66
|
+
bundleId: flags.bundleId
|
|
57
67
|
};
|
|
58
|
-
const flags = appFlags(ctx);
|
|
59
68
|
ctx.output.render(blocks.intro("Set up Apple"));
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const session = await signIn(ctx, deps, "setup apple"
|
|
69
|
+
let intent;
|
|
70
|
+
if (!ctx.dryRun) intent = await chooseAppIntent(ctx, api, appFlags);
|
|
71
|
+
const session = await signIn(ctx, deps, "setup apple", {
|
|
72
|
+
appleId: flags.appleId,
|
|
73
|
+
password: flags.applePassword,
|
|
74
|
+
code: flags.code,
|
|
75
|
+
sms: flags.sms,
|
|
76
|
+
phone: flags.phone
|
|
77
|
+
});
|
|
63
78
|
if (!session) return;
|
|
64
|
-
const
|
|
65
|
-
ctx.output.render(blocks.info(`Apple team \`${
|
|
79
|
+
const appleTeam = await chooseTeam(ctx, session, flags.team);
|
|
80
|
+
ctx.output.render(blocks.info(`Apple team \`${appleTeam.name}\``));
|
|
66
81
|
if (ctx.dryRun || !intent) {
|
|
67
82
|
const access = {
|
|
68
83
|
api_key: await keyAccess(ctx, session, "api_key"),
|
|
69
84
|
purchase_key: await keyAccess(ctx, session, "purchase_key")
|
|
70
85
|
};
|
|
71
|
-
if (ctx.json) return
|
|
86
|
+
if (ctx.json) return ctx.output.data({
|
|
72
87
|
dryRun: true,
|
|
73
|
-
team,
|
|
88
|
+
team: appleTeam,
|
|
74
89
|
access
|
|
75
90
|
});
|
|
76
91
|
ctx.ui.report(KEY_KINDS.map((kind) => `${access[kind] === "ok" ? "✓" : "✗"} ${KEY_LABEL[kind]} ${access[kind]}`).join("\n"));
|
|
77
92
|
ctx.ui.info("[dry-run] nothing was created or changed.");
|
|
78
93
|
return;
|
|
79
94
|
}
|
|
80
|
-
const
|
|
95
|
+
const resolved = await resolveApp(ctx, api, session, intent, appFlags);
|
|
81
96
|
const appRef = {
|
|
82
|
-
projectId:
|
|
83
|
-
applicationId:
|
|
97
|
+
projectId: resolved.projectId,
|
|
98
|
+
applicationId: resolved.applicationId
|
|
84
99
|
};
|
|
85
|
-
ctx.output.render(blocks.info(`${
|
|
100
|
+
ctx.output.render(blocks.info(`${resolved.created ? "Created" : "Using"} \`${resolved.name}\` ${resolved.bundleId}`));
|
|
86
101
|
const results = {
|
|
87
102
|
api_key: { status: "skipped" },
|
|
88
103
|
purchase_key: { status: "skipped" },
|
|
89
104
|
bundle_id: {
|
|
90
105
|
status: "done",
|
|
91
|
-
detail:
|
|
106
|
+
detail: resolved.bundleId
|
|
92
107
|
},
|
|
93
108
|
notification_url: { status: "skipped" }
|
|
94
109
|
};
|
|
95
|
-
if (
|
|
96
|
-
const warning = await testModeWarning(ctx, api,
|
|
110
|
+
if (resolved.savedBundleId === null) {
|
|
111
|
+
const warning = await testModeWarning(ctx, api, resolved.applicationId, resolved.bundleId);
|
|
97
112
|
if (warning) ctx.output.render(blocks.warning(warning));
|
|
98
113
|
}
|
|
99
|
-
const saved = await
|
|
100
|
-
let bundleIdSaved =
|
|
114
|
+
const saved = await findIntegrations(api, resolved.applicationId);
|
|
115
|
+
let bundleIdSaved = resolved.savedBundleId !== null;
|
|
101
116
|
for (const kind of KEY_KINDS) {
|
|
102
117
|
if (skip[kind]) continue;
|
|
103
118
|
const existing = savedKey(saved, kind);
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
119
|
+
if (existing) {
|
|
120
|
+
results[kind] = {
|
|
121
|
+
status: "done",
|
|
122
|
+
detail: `${existing.key_id} (already saved)`
|
|
123
|
+
};
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
results[kind] = await createAndSaveKey(ctx, deps, api, session, resolved, kind, role);
|
|
127
|
+
if (kind === "purchase_key" && results[kind].status === "done" && !bundleIdSaved) {
|
|
109
128
|
bundleIdSaved = true;
|
|
110
129
|
results.bundle_id = {
|
|
111
130
|
status: "done",
|
|
112
|
-
detail: `${
|
|
131
|
+
detail: `${resolved.bundleId} (saved with the key)`
|
|
113
132
|
};
|
|
114
133
|
}
|
|
115
134
|
}
|
|
116
|
-
if (!bundleIdSaved) results.bundle_id = await saveAppBundleId(ctx,
|
|
135
|
+
if (!bundleIdSaved) results.bundle_id = await saveAppBundleId(ctx, resolved);
|
|
117
136
|
let notificationUrl;
|
|
118
137
|
if (!skip.notification_url) try {
|
|
119
138
|
const outcome = await ensureNotificationUrl(ctx, deps.sleep, api, appRef, { setRevenueProvider: false });
|
|
@@ -141,15 +160,15 @@ async function setupApple(ctx, deps) {
|
|
|
141
160
|
ctx.output.render(blocks.warning(`${STEP_LABEL.notification_url}: ${error.message}`));
|
|
142
161
|
}
|
|
143
162
|
const failed = STEPS.filter((step) => results[step].status === "failed");
|
|
144
|
-
if (ctx.json)
|
|
163
|
+
if (ctx.json) ctx.output.data({
|
|
145
164
|
status: failed.length === 0 ? "ok" : "partial",
|
|
146
|
-
team,
|
|
165
|
+
team: appleTeam,
|
|
147
166
|
app: {
|
|
148
|
-
id:
|
|
149
|
-
project_id:
|
|
150
|
-
name:
|
|
151
|
-
bundle_id:
|
|
152
|
-
created:
|
|
167
|
+
id: resolved.applicationId,
|
|
168
|
+
project_id: resolved.projectId,
|
|
169
|
+
name: resolved.name,
|
|
170
|
+
bundle_id: resolved.bundleId,
|
|
171
|
+
created: resolved.created
|
|
153
172
|
},
|
|
154
173
|
steps: results,
|
|
155
174
|
notification_url: notificationUrl ?? null,
|
|
@@ -166,24 +185,11 @@ async function setupApple(ctx, deps) {
|
|
|
166
185
|
const value = result.status === "failed" ? "not done" : result.detail ?? result.status;
|
|
167
186
|
return `${mark[result.status]} ${STEP_LABEL[step]} ${value}`;
|
|
168
187
|
}).join("\n"));
|
|
169
|
-
if (failed.length === 0) ctx.ui.success(`Apple is connected for \`${
|
|
188
|
+
if (failed.length === 0) ctx.ui.success(`Apple is connected for \`${resolved.name}\`.`);
|
|
170
189
|
else ctx.ui.warn("Partly done. What succeeded was saved; fix the items above and run it again.");
|
|
171
190
|
}
|
|
172
|
-
if (failed.length > 0)
|
|
191
|
+
if (failed.length > 0) ctx.fail();
|
|
173
192
|
}
|
|
174
193
|
|
|
175
194
|
//#endregion
|
|
176
|
-
|
|
177
|
-
const runSetup = defineCommand({
|
|
178
|
-
name: "setup",
|
|
179
|
-
auth: "required",
|
|
180
|
-
output: "both",
|
|
181
|
-
async run(ctx) {
|
|
182
|
-
const target = String(ctx.argv.target ?? "");
|
|
183
|
-
if (target === "apple") return setupApple(ctx, appleDeps);
|
|
184
|
-
throw new Error(`Unknown "setup ${target}". Use: setup apple`);
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
//#endregion
|
|
189
|
-
export { runSetup };
|
|
195
|
+
export { runSetupApple };
|
package/dist/auth.d.ts
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
apiKey?: string;
|
|
5
|
-
orgId?: string;
|
|
6
|
-
orgName?: string;
|
|
7
|
-
orgCount?: number;
|
|
8
|
-
userEmail?: string;
|
|
9
|
-
host: string;
|
|
10
|
-
createdAt: string;
|
|
11
|
-
accessToken?: string;
|
|
12
|
-
refreshToken?: string;
|
|
13
|
-
accessTokenExpiresAt?: number;
|
|
14
|
-
tokenEndpoint?: string;
|
|
15
|
-
oauthClientId?: string;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/core/auth/errors.d.ts
|
|
1
|
+
import { t as Session } from "./storage-DYvmIOHa.js";
|
|
2
|
+
|
|
3
|
+
//#region src/core/account/errors.d.ts
|
|
19
4
|
declare class NotLoggedInError extends Error {
|
|
20
5
|
constructor();
|
|
21
6
|
}
|
|
22
7
|
//#endregion
|
|
23
|
-
//#region src/core/
|
|
8
|
+
//#region src/core/account/token.d.ts
|
|
24
9
|
declare function getOAuthAccessToken(): Promise<string | null>;
|
|
25
10
|
declare function resolveAuthToken(session: Session): Promise<{
|
|
26
11
|
token: string;
|
package/dist/auth.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
1
|
+
import { n as resolveAuthToken, r as NotLoggedInError, t as getOAuthAccessToken } from "./token-DzRh7dI1.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-DF1qKlny.js";
|
|
4
|
+
import "./storage-s2Dnz-yl.js";
|
|
3
5
|
|
|
4
6
|
export { NotLoggedInError, getOAuthAccessToken, resolveAuthToken };
|