palbase 0.52.4 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/ai/index.js +2 -2
  2. package/dist/backend/engine.js +2 -2
  3. package/dist/backend/env.js +1 -1
  4. package/dist/backend/index.js +11 -11
  5. package/dist/backend/stack.js +1 -1
  6. package/dist/backend/test.js +2 -2
  7. package/dist/chunks/{OX35EL23.js → 32AWVXY4.js} +2 -2
  8. package/dist/chunks/{IAOUEMQZ.js → 6SN3KZCW.js} +2 -2
  9. package/dist/chunks/{Y5QCPCHW.js → 75G55FTC.js} +2 -2
  10. package/dist/chunks/{2YNLJAG5.js → 7KMVOYCX.js} +1 -1
  11. package/dist/chunks/{4NILQCHQ.js → BIS2THM6.js} +1 -1
  12. package/dist/chunks/{7GD3L3PE.js → EGGKWNZS.js} +2 -2
  13. package/dist/chunks/{RFO74P2O.js → FMTQXSLJ.js} +1 -1
  14. package/dist/chunks/{OVBMWRJE.js → FZZQSJPG.js} +1 -1
  15. package/dist/chunks/{IRNNGVIR.js → GJ3LSG5Q.js} +1 -1
  16. package/dist/chunks/ILYVKEKJ.js +2 -0
  17. package/dist/chunks/{SER5LGIQ.js → JRHFGRSW.js} +2 -2
  18. package/dist/chunks/{T3VXSKEG.js → K6O736P4.js} +2 -2
  19. package/dist/chunks/{6CQFSNLY.js → M7RWXU5E.js} +2 -2
  20. package/dist/chunks/{WSPAP2CG.js → MOBVVKUC.js} +2 -2
  21. package/dist/chunks/{P7KXATI4.js → PVE3FGTC.js} +2 -2
  22. package/dist/chunks/{C64DV7YH.js → Q2B5DZ3C.js} +2 -2
  23. package/dist/chunks/{NWSACFNU.js → SWYLV52S.js} +1 -1
  24. package/dist/chunks/{DXBUBVLA.js → TTWDZWXB.js} +2 -2
  25. package/dist/chunks/{2JWR4TOH.js → UECFUXQQ.js} +2 -2
  26. package/dist/chunks/{PKKXILGV.js → UI4LIYOW.js} +1 -1
  27. package/dist/chunks/{WZHBF3BR.js → XLTUKXYS.js} +2 -2
  28. package/dist/chunks/{HI5LYPKI.js → XMTXQBLL.js} +2 -2
  29. package/dist/chunks/{KYM3FOIG.js → XZMRSDH7.js} +2 -2
  30. package/dist/cli.js +528 -151
  31. package/dist/cloud/index.js +2 -2
  32. package/dist/refuse/ai.js +1 -1
  33. package/dist/refuse/backend.js +1 -1
  34. package/dist/refuse/cloud.js +1 -1
  35. package/dist/refuse/server.js +1 -1
  36. package/dist/server/index.js +2 -2
  37. package/dist/server/testing.js +2 -2
  38. package/dist/web/index.js +2 -2
  39. package/dist/web/message.js +2 -2
  40. package/dist/web/palbe.js +2 -2
  41. package/dist/web/paywall.js +2 -2
  42. package/dist/web/push-sw.js +1 -1
  43. package/dist/web/ssr.js +2 -2
  44. package/dist/web/vite.js +2 -2
  45. package/package.json +2 -2
  46. package/types/backend/src/database.d.ts +15 -8
  47. package/types/backend/src/db-env.d.ts +2 -0
  48. package/types/backend/src/index.d.ts +2 -0
  49. package/types/backend/src/runtime.d.ts +3 -3
  50. package/types/cloud/src/generated/project.d.ts +1 -1
  51. package/types/internal/src/modules/events.d.ts +2 -2
  52. package/types/internal/src/modules/stores.d.ts +628 -20
  53. package/dist/chunks/SXRHHF3J.js +0 -2
@@ -698,11 +698,11 @@ export type CreatePackageRequest = {
698
698
  */
699
699
  export type DeliverRequest = {
700
700
  /**
701
- * The channel: testflight for an iOS app, play_internal (Play's internal testing) for an Android app.
701
+ * The channel: testflight for an iOS app, play_internal (Play's internal testing) for an Android app, or development (direct install) for either: the package signed for the phones of the people invited.
702
702
  */
703
- channel: "testflight" | "play_internal";
703
+ channel: "testflight" | "play_internal" | "development";
704
704
  /**
705
- * The groups it goes to once ready. TestFlight's alone: Play's internal testing reaches the testers its track lists in Play Console.
705
+ * The groups it goes to once ready: TestFlight groups for testflight, development groups for development — each of their people invited by a mailed link. Play's internal testing reaches the testers its track lists in Play Console.
706
706
  */
707
707
  groups?: string[];
708
708
  what_to_test?: WhatToTest;
@@ -716,9 +716,9 @@ export type Delivery = {
716
716
  */
717
717
  asc_build_id: string | null;
718
718
  /**
719
- * The channel: TestFlight, or Play's internal testing track.
719
+ * The channel: TestFlight, Play's internal testing track, or development (direct install).
720
720
  */
721
- channel: "testflight" | "play_internal";
721
+ channel: "testflight" | "play_internal" | "development";
722
722
  /**
723
723
  * When it was first sent.
724
724
  */
@@ -728,7 +728,7 @@ export type Delivery = {
728
728
  */
729
729
  error: string | null;
730
730
  /**
731
- * Why it failed: apple_agreement, apple_key_refused, certificate_limit, app_record_missing, manual_step, capability_missing, not_an_ipa, apple_refused, upload_failed, processing_failed, build_changed (the kept build is not the one uploaded), build_gone (no longer kept: builds are kept 90 days), step_timed_out (signing or handing it over took more than 45 minutes), worker_stopped (it stopped the module's worker three times), build_number_taken (App Store Connect has a build of this version and number this delivery did not upload: send a new package), gave_up (failed tries in a row; its error names the reference Palbase keeps the cause under). A Play delivery's: google_not_connected, google_no_access (Play Console has not invited the service account with the app), play_app_missing, first_release_manual (Play takes the app's first release only in Play Console: upload the signed bundle there, from its link), google_refused (Play's own words), no_upload_key, not_an_aab.
731
+ * Why it failed: apple_agreement, apple_key_refused, certificate_limit, app_record_missing, manual_step, capability_missing, not_an_ipa, apple_refused, upload_failed, processing_failed, build_changed (the kept build is not the one uploaded), build_gone (no longer kept: builds are kept 90 days), step_timed_out (signing or handing it over took more than 45 minutes), worker_stopped (it stopped the module's worker three times), build_number_taken (App Store Connect has a build of this version and number this delivery did not upload: send a new package), gave_up (failed tries in a row; its error names the reference Palbase keeps the cause under). A Play delivery's: google_not_connected, google_no_access (Play Console has not invited the service account with the app), play_app_missing, first_release_manual (Play takes the app's first release only in Play Console: upload the signed bundle there, from its link), google_refused (Play's own words), no_upload_key, not_an_aab. A development delivery's also: apple_not_connected, apple_unavailable (Apple answered with its own trouble: tried again), not_an_apk.
732
732
  */
733
733
  error_code: string | null;
734
734
  /**
@@ -756,9 +756,9 @@ export type Delivery = {
756
756
  */
757
757
  requested_by: string;
758
758
  /**
759
- * queued, signing, uploading, processing (Apple processes it), compliance (waits on the export compliance answer: POST /stores/packages/{id}/export-compliance), ready, failed.
759
+ * queued, signing, uploading, processing (Apple processes it), compliance (waits on the export compliance answer: POST /stores/packages/{id}/export-compliance), ready, failed. waiting: a development delivery no one invited has a phone for yet.
760
760
  */
761
- status: "queued" | "signing" | "uploading" | "processing" | "compliance" | "ready" | "failed";
761
+ status: "queued" | "signing" | "uploading" | "processing" | "compliance" | "ready" | "failed" | "waiting";
762
762
  /**
763
763
  * When it last moved.
764
764
  */
@@ -767,9 +767,13 @@ export type Delivery = {
767
767
  * The note testers read.
768
768
  */
769
769
  what_to_test: string | null;
770
+ /**
771
+ * A development delivery's: how many phones its build is signed for.
772
+ */
773
+ signed_devices?: number;
770
774
  };
771
775
  /**
772
- * stores.delivery.changed: a delivery moved: queued, signing, uploading, processing, compliance, ready or failed.
776
+ * stores.delivery.changed: a delivery moved: queued, signing, uploading, processing, compliance, ready, failed, or waiting (development: no phone yet, or its turn while the project has 10 under way).
773
777
  */
774
778
  export type DeliveryChangedEvent = {
775
779
  /**
@@ -803,7 +807,11 @@ export type DeliveryChangedEvent = {
803
807
  /**
804
808
  * Where it is now.
805
809
  */
806
- status: "queued" | "signing" | "uploading" | "processing" | "compliance" | "ready" | "failed";
810
+ status: "queued" | "signing" | "uploading" | "processing" | "compliance" | "ready" | "failed" | "waiting";
811
+ /**
812
+ * A development delivery's: how many phones its build is signed for.
813
+ */
814
+ signed_devices?: number;
807
815
  };
808
816
  /**
809
817
  * A package's deliveries.
@@ -1155,7 +1163,7 @@ export type GoogleChangedEvent = {
1155
1163
  status?: "invited" | "active" | "refused";
1156
1164
  };
1157
1165
  /**
1158
- * A group of people who test an app: in TestFlight an internal group (the account's App Store Connect users, who get a build at once) and an external one (everyone else, after Beta App Review).
1166
+ * A group of people who test an app. A TestFlight group is in TestFlight an internal group (the account's App Store Connect users, who get a build at once) and an external one (everyone else, after Beta App Review); a development group is Palbase's own list of the people a package is installed for directly.
1159
1167
  */
1160
1168
  export type Group = {
1161
1169
  /**
@@ -1190,6 +1198,10 @@ export type Group = {
1190
1198
  * When it last changed.
1191
1199
  */
1192
1200
  updated_at: string;
1201
+ /**
1202
+ * testflight (two groups at Apple) or development (Palbase's own, for direct install).
1203
+ */
1204
+ kind: "testflight" | "development";
1193
1205
  };
1194
1206
  /**
1195
1207
  * A package to give a group.
@@ -1228,6 +1240,10 @@ export type GroupChangedEvent = {
1228
1240
  * How many testers it holds.
1229
1241
  */
1230
1242
  testers?: number;
1243
+ /**
1244
+ * Its kind: testflight or development.
1245
+ */
1246
+ kind?: string;
1231
1247
  };
1232
1248
  /**
1233
1249
  * An app's groups.
@@ -1536,7 +1552,7 @@ export type Package = {
1536
1552
  */
1537
1553
  sha256: string | null;
1538
1554
  /**
1539
- * The certificate an Android bundle came signed with by its maker; absent when Palbase signs it with the app's upload key.
1555
+ * The certificate an Android bundle came signed with by its maker; absent when Palbase signs it with the app's upload key (an APK always is).
1540
1556
  */
1541
1557
  signer_fingerprint?: string;
1542
1558
  /**
@@ -1556,6 +1572,10 @@ export type Package = {
1556
1572
  * What the build says it is (CFBundleShortVersionString), once uploaded.
1557
1573
  */
1558
1574
  version: string | null;
1575
+ /**
1576
+ * The build's kind once it is uploaded: ipa; aab, an Android App Bundle, for Play; apk, an Android package, for a direct install.
1577
+ */
1578
+ format?: "ipa" | "aab" | "apk";
1559
1579
  };
1560
1580
  /**
1561
1581
  * One bundle of a build.
@@ -1599,13 +1619,17 @@ export type PackageChangedEvent = {
1599
1619
  */
1600
1620
  package_id: string;
1601
1621
  /**
1602
- * An Android bundle's signer (uploaded): palbase, with the app's upload key, or its maker.
1622
+ * An Android build's signer (uploaded): palbase, with the app's upload key, or — a bundle's — its maker.
1603
1623
  */
1604
1624
  signed_by?: "palbase" | "maker";
1605
1625
  /**
1606
1626
  * Its version (uploaded).
1607
1627
  */
1608
1628
  version?: string;
1629
+ /**
1630
+ * An Android package's kind (uploaded), when it is an APK for a direct install.
1631
+ */
1632
+ format?: "apk";
1609
1633
  };
1610
1634
  /**
1611
1635
  * A page of packages, newest first.
@@ -3038,6 +3062,430 @@ export type AppleSessionShare = {
3038
3062
  */
3039
3063
  shared_at: string;
3040
3064
  };
3065
+ /**
3066
+ * A PNG image.
3067
+ */
3068
+ export type IconFile = Blob;
3069
+ /**
3070
+ * A signed Apple configuration profile (.mobileconfig).
3071
+ */
3072
+ export type MobileConfig = Blob;
3073
+ /**
3074
+ * A phone's answer to a Profile Service profile: its attributes as a plist, signed by the phone (CMS).
3075
+ */
3076
+ export type PhoneAnswer = Blob;
3077
+ /**
3078
+ * The manifest iOS installs a build from (itms-services), a plist.
3079
+ */
3080
+ export type InstallManifest = string;
3081
+ /**
3082
+ * A signed build: an .ipa, or an Android .apk.
3083
+ */
3084
+ export type BuildFile = Blob;
3085
+ /**
3086
+ * One of the person's phones, on their install page.
3087
+ */
3088
+ export type InstallPhone = {
3089
+ /**
3090
+ * Its state in the page's language.
3091
+ */
3092
+ label: string;
3093
+ /**
3094
+ * Its model and the end of its UDID.
3095
+ */
3096
+ name: string;
3097
+ /**
3098
+ * ready (the build installs on it), preparing, processing (Apple is processing it: up to 72 hours), refused (Apple does not take it).
3099
+ */
3100
+ state: "ready" | "preparing" | "processing" | "refused";
3101
+ };
3102
+ /**
3103
+ * A person's install page as it is now: the step they are at, what to do, their phones, and the links that take them on.
3104
+ */
3105
+ export type InstallStatus = {
3106
+ /**
3107
+ * The registration profile's address (an iPhone's).
3108
+ */
3109
+ enroll?: string;
3110
+ /**
3111
+ * The page's heading, in its language.
3112
+ */
3113
+ head: string;
3114
+ /**
3115
+ * The install link: itms-services for an iPhone, the build's address for an Android phone.
3116
+ */
3117
+ install?: string;
3118
+ /**
3119
+ * What to do, or why it stopped, in the page's language.
3120
+ */
3121
+ message: string;
3122
+ /**
3123
+ * The person's phones.
3124
+ */
3125
+ phones: InstallPhone[];
3126
+ /**
3127
+ * How a failed page is tried again: again asks for the delivery to be tried (POST /stores/install/retry), enroll registers the phone once more. Absent when trying again changes nothing (the build is not one that can be signed, or is no longer kept).
3128
+ */
3129
+ retry?: "again" | "enroll";
3130
+ /**
3131
+ * need_enroll, preparing, processing, ready or failed.
3132
+ */
3133
+ state: "need_enroll" | "preparing" | "processing" | "ready" | "failed";
3134
+ /**
3135
+ * The step the page shows: 1 register, 2 signing, 3 ready (an Android phone's: 1 preparing, 2 ready).
3136
+ */
3137
+ step: number;
3138
+ };
3139
+ /**
3140
+ * One of an invited person's phones, as the package's build covers it.
3141
+ */
3142
+ export type InvitationDevice = {
3143
+ /**
3144
+ * The device.
3145
+ */
3146
+ device_id: string;
3147
+ /**
3148
+ * Its model: iPhone18,1.
3149
+ */
3150
+ product: string | null;
3151
+ /**
3152
+ * The package's current build installs on it.
3153
+ */
3154
+ signed: boolean;
3155
+ /**
3156
+ * registering (to be registered at Apple), enabled, processing (Apple holds it out of profiles for now, up to 72 hours), refused.
3157
+ */
3158
+ status: "registering" | "enabled" | "processing" | "refused";
3159
+ /**
3160
+ * Its UDID.
3161
+ */
3162
+ udid: string;
3163
+ };
3164
+ /**
3165
+ * A person invited to install a package directly: one link, working until it expires or is revoked.
3166
+ */
3167
+ export type Invitation = {
3168
+ /**
3169
+ * The package's app.
3170
+ */
3171
+ app_id: string;
3172
+ /**
3173
+ * The channel: development.
3174
+ */
3175
+ channel: "development";
3176
+ /**
3177
+ * Who invited them.
3178
+ */
3179
+ created_by: string;
3180
+ /**
3181
+ * The person's phones.
3182
+ */
3183
+ devices: InvitationDevice[];
3184
+ /**
3185
+ * When a phone of theirs took the build to install it.
3186
+ */
3187
+ downloaded_at: string | null;
3188
+ /**
3189
+ * Their address.
3190
+ */
3191
+ email: string;
3192
+ /**
3193
+ * When a phone of theirs registered.
3194
+ */
3195
+ enrolled_at: string | null;
3196
+ /**
3197
+ * When the link stops working.
3198
+ */
3199
+ expires_at: string;
3200
+ /**
3201
+ * The development group it came by; null for a person invited by name.
3202
+ */
3203
+ group_id: string | null;
3204
+ /**
3205
+ * The invitation's id.
3206
+ */
3207
+ id: string;
3208
+ /**
3209
+ * When they were invited (or the link was made again).
3210
+ */
3211
+ invited_at: string;
3212
+ /**
3213
+ * The mail's and the page's language; the project's when null.
3214
+ */
3215
+ locale: string | null;
3216
+ /**
3217
+ * The mail: none (the link handed to the caller), requested, queued (the platform's mail took it: a message), failed (refused: mail_error).
3218
+ */
3219
+ mail: "none" | "requested" | "queued" | "failed";
3220
+ /**
3221
+ * Why the mail was refused.
3222
+ */
3223
+ mail_error: string | null;
3224
+ /**
3225
+ * When the link was first opened.
3226
+ */
3227
+ opened_at: string | null;
3228
+ /**
3229
+ * The package.
3230
+ */
3231
+ package_id: string;
3232
+ /**
3233
+ * When it was revoked.
3234
+ */
3235
+ revoked_at: string | null;
3236
+ /**
3237
+ * How far the person got: invited, opened (the link), enrolled (a phone of theirs registered), downloaded (a phone took the build to install it); or revoked, or expired.
3238
+ */
3239
+ status: "invited" | "opened" | "enrolled" | "downloaded" | "revoked" | "expired";
3240
+ };
3241
+ /**
3242
+ * A package's invitations.
3243
+ */
3244
+ export type InvitationPage = {
3245
+ /**
3246
+ * Its invitations, oldest first.
3247
+ */
3248
+ invitations: Invitation[];
3249
+ };
3250
+ /**
3251
+ * One person invited to install a package.
3252
+ */
3253
+ export type InviteRequest = {
3254
+ /**
3255
+ * Their address.
3256
+ */
3257
+ email: string;
3258
+ /**
3259
+ * The mail's and the page's language (en, tr…); the project's when none.
3260
+ */
3261
+ locale?: string;
3262
+ /**
3263
+ * Mail the link to them (the default); false answers it only, for the caller to hand over.
3264
+ */
3265
+ mail?: boolean;
3266
+ };
3267
+ /**
3268
+ * A phone registered for the project's development builds.
3269
+ */
3270
+ export type Device = {
3271
+ /**
3272
+ * When it registered.
3273
+ */
3274
+ created_at: string;
3275
+ /**
3276
+ * The device's id.
3277
+ */
3278
+ id: string;
3279
+ /**
3280
+ * Apple refused it because the account's yearly device limit is reached.
3281
+ */
3282
+ limit: boolean;
3283
+ /**
3284
+ * The iOS build it ran when it registered.
3285
+ */
3286
+ os_version: string | null;
3287
+ /**
3288
+ * Whose phone it is: the people it registered for.
3289
+ */
3290
+ people: string[];
3291
+ /**
3292
+ * Its platform.
3293
+ */
3294
+ platform: "ios";
3295
+ /**
3296
+ * Its model: iPhone18,1.
3297
+ */
3298
+ product: string | null;
3299
+ /**
3300
+ * Why Apple refuses it, in Apple's words.
3301
+ */
3302
+ refusal: string | null;
3303
+ /**
3304
+ * registering (to be registered at Apple when a build is signed for it), enabled, processing (Apple holds it out of profiles for now: a new membership's 11th to 100th device, 24 to 72 hours), refused.
3305
+ */
3306
+ status: "registering" | "enabled" | "processing" | "refused";
3307
+ /**
3308
+ * Its UDID.
3309
+ */
3310
+ udid: string;
3311
+ /**
3312
+ * When it last changed.
3313
+ */
3314
+ updated_at: string;
3315
+ };
3316
+ /**
3317
+ * The project's phones.
3318
+ */
3319
+ export type DevicePage = {
3320
+ /**
3321
+ * Its phones, oldest first.
3322
+ */
3323
+ devices: Device[];
3324
+ };
3325
+ /**
3326
+ * stores.invitation.changed: a person was invited to install a package, opened its link, registered a phone, took the build, was mailed, or was revoked. Never the person's address: GET /stores/packages/{package_id}/invitations reads it.
3327
+ */
3328
+ export type InvitationChangedEvent = {
3329
+ /**
3330
+ * The package's app.
3331
+ */
3332
+ app_id: string;
3333
+ /**
3334
+ * What happened.
3335
+ */
3336
+ change: "invited" | "renewed" | "mailed" | "mail_failed" | "opened" | "enrolled" | "phone_refused" | "downloaded" | "revoked";
3337
+ /**
3338
+ * The channel.
3339
+ */
3340
+ channel: string;
3341
+ /**
3342
+ * The invitation.
3343
+ */
3344
+ invitation_id: string;
3345
+ /**
3346
+ * The mail's state.
3347
+ */
3348
+ mail: string;
3349
+ /**
3350
+ * Why the mail was refused.
3351
+ */
3352
+ mail_error?: string;
3353
+ /**
3354
+ * The package.
3355
+ */
3356
+ package_id: string;
3357
+ /**
3358
+ * How far the person got now.
3359
+ */
3360
+ status: string;
3361
+ };
3362
+ /**
3363
+ * stores.device.changed: a phone registered for development builds, Apple took it, is processing it, or refused it. Never its UDID or whose it is: GET /stores/devices reads them.
3364
+ */
3365
+ export type DeviceChangedEvent = {
3366
+ /**
3367
+ * What happened: registered (a new phone), enrolled (a known phone registered for someone again), or its new status.
3368
+ */
3369
+ change: "registered" | "enrolled" | "enabled" | "processing" | "refused";
3370
+ /**
3371
+ * The device.
3372
+ */
3373
+ device_id: string;
3374
+ /**
3375
+ * Apple refused it for the account's yearly limit.
3376
+ */
3377
+ limit: boolean;
3378
+ /**
3379
+ * Its platform.
3380
+ */
3381
+ platform: string;
3382
+ /**
3383
+ * Its model.
3384
+ */
3385
+ product?: string;
3386
+ /**
3387
+ * Why Apple refuses it, in Apple's words.
3388
+ */
3389
+ refusal?: string;
3390
+ /**
3391
+ * Its status now.
3392
+ */
3393
+ status: string;
3394
+ };
3395
+ /**
3396
+ * A group to make: its name and its kind.
3397
+ */
3398
+ export type CreateGroupRequest = {
3399
+ /**
3400
+ * testflight (an iOS app's when none is named): two groups at Apple, whose people Apple mails TestFlight's invitations; or development (an Android app's): Palbase's own list of the people a package is installed for directly, of which Apple knows nothing.
3401
+ */
3402
+ kind?: "testflight" | "development";
3403
+ /**
3404
+ * Its name: 1 to 40 characters on one line.
3405
+ */
3406
+ name: string;
3407
+ };
3408
+ /**
3409
+ * A person invited to install a package, with their link: answered to whoever invites, never listed.
3410
+ */
3411
+ export type InvitationLink = {
3412
+ /**
3413
+ * The package's app.
3414
+ */
3415
+ app_id: string;
3416
+ /**
3417
+ * The channel: development.
3418
+ */
3419
+ channel: "development";
3420
+ /**
3421
+ * Who invited them.
3422
+ */
3423
+ created_by: string;
3424
+ /**
3425
+ * The person's phones.
3426
+ */
3427
+ devices: InvitationDevice[];
3428
+ /**
3429
+ * When a phone of theirs took the build to install it.
3430
+ */
3431
+ downloaded_at: string | null;
3432
+ /**
3433
+ * Their address.
3434
+ */
3435
+ email: string;
3436
+ /**
3437
+ * When a phone of theirs registered.
3438
+ */
3439
+ enrolled_at: string | null;
3440
+ /**
3441
+ * When the link stops working.
3442
+ */
3443
+ expires_at: string;
3444
+ /**
3445
+ * The development group it came by; null for a person invited by name.
3446
+ */
3447
+ group_id: string | null;
3448
+ /**
3449
+ * The invitation's id.
3450
+ */
3451
+ id: string;
3452
+ /**
3453
+ * When they were invited (or the link was made again).
3454
+ */
3455
+ invited_at: string;
3456
+ /**
3457
+ * The mail's and the page's language; the project's when null.
3458
+ */
3459
+ locale: string | null;
3460
+ /**
3461
+ * The mail: none (the link handed to the caller), requested, queued (the platform's mail took it: a message), failed (refused: mail_error).
3462
+ */
3463
+ mail: "none" | "requested" | "queued" | "failed";
3464
+ /**
3465
+ * Why the mail was refused.
3466
+ */
3467
+ mail_error: string | null;
3468
+ /**
3469
+ * When the link was first opened.
3470
+ */
3471
+ opened_at: string | null;
3472
+ /**
3473
+ * The package.
3474
+ */
3475
+ package_id: string;
3476
+ /**
3477
+ * When it was revoked.
3478
+ */
3479
+ revoked_at: string | null;
3480
+ /**
3481
+ * How far the person got: invited, opened (the link), enrolled (a phone of theirs registered), downloaded (a phone took the build to install it); or revoked, or expired.
3482
+ */
3483
+ status: "invited" | "opened" | "enrolled" | "downloaded" | "revoked" | "expired";
3484
+ /**
3485
+ * The link: answered to whoever invites, never listed. It works until expires_at (an environment's token: no later than the token ends).
3486
+ */
3487
+ url: string;
3488
+ };
3041
3489
  /** The events this module sends the project's webhooks (x-palbase-events), by type: each one's payload, the event's data. */
3042
3490
  export interface Events {
3043
3491
  /**
@@ -3061,7 +3509,7 @@ export interface Events {
3061
3509
  */
3062
3510
  "stores.build.changed": BuildChangedEvent;
3063
3511
  /**
3064
- * stores.delivery.changed: a delivery moved: queued, signing, uploading, processing, compliance, ready or failed.
3512
+ * stores.delivery.changed: a delivery moved: queued, signing, uploading, processing, compliance, ready, failed, or waiting (development: no phone yet, or its turn while the project has 10 under way).
3065
3513
  */
3066
3514
  "stores.delivery.changed": DeliveryChangedEvent;
3067
3515
  /**
@@ -3132,6 +3580,14 @@ export interface Events {
3132
3580
  * stores.apple.key.revoked: a key Palbase made at Apple for the environment was revoked there. Never the key.
3133
3581
  */
3134
3582
  "stores.apple.key.revoked": AppleKeyRevokedEvent;
3583
+ /**
3584
+ * stores.invitation.changed: a person was invited to install a package, opened its link, registered a phone, took the build, was mailed, or was revoked. Never the person's address: GET /stores/packages/{package_id}/invitations reads it.
3585
+ */
3586
+ "stores.invitation.changed": InvitationChangedEvent;
3587
+ /**
3588
+ * stores.device.changed: a phone registered for development builds, Apple took it, is processing it, or refused it. Never its UDID or whose it is: GET /stores/devices reads them.
3589
+ */
3590
+ "stores.device.changed": DeviceChangedEvent;
3135
3591
  }
3136
3592
  /** Palbase Stores */
3137
3593
  export declare function client(t: Transport): {
@@ -3321,7 +3777,7 @@ export declare function client(t: Transport): {
3321
3777
  /**
3322
3778
  * Make a group
3323
3779
  *
3324
- * Makes a group of testers and its two TestFlight groups. Emits `stores.group.changed` (created).
3780
+ * Makes a group of the app: a TestFlight group with its internal and external TestFlight groups (the app's App Store Connect record is needed), or a development group — Palbase's own, nothing at Apple — for direct install. Emits `stores.group.changed` (created).
3325
3781
  */
3326
3782
  createGroup(input: {
3327
3783
  path: {
@@ -3330,7 +3786,7 @@ export declare function client(t: Transport): {
3330
3786
  headers?: {
3331
3787
  "Idempotency-Key"?: string;
3332
3788
  };
3333
- body: GroupRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3789
+ body: CreateGroupRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3334
3790
  signal?: AbortSignal;
3335
3791
  }): Promise<Reply<201, Group>>;
3336
3792
  /**
@@ -3668,7 +4124,7 @@ export declare function client(t: Transport): {
3668
4124
  /**
3669
4125
  * Delete a group
3670
4126
  *
3671
- * Deletes a group and its TestFlight groups; its testers keep what other groups gave them. Emits `stores.group.changed` (deleted).
4127
+ * Deletes a group and its TestFlight groups; its testers keep what other groups gave them. A development group's people lose the install links it gave them (each revoked: `stores.invitation.changed`). Emits `stores.group.changed` (deleted).
3672
4128
  */
3673
4129
  deleteGroup(input: {
3674
4130
  path: {
@@ -3723,7 +4179,7 @@ export declare function client(t: Transport): {
3723
4179
  /**
3724
4180
  * Set a group's testers
3725
4181
  *
3726
- * Makes the group hold exactly the testers named: the account's App Store Connect users go to its internal TestFlight group (a build reaches them at once), everyone else to its external one (after Beta App Review). Apple mails each new tester. Emits `stores.group.changed` (testers).
4182
+ * Makes the group hold exactly the testers named: the account's App Store Connect users go to its internal TestFlight group (a build reaches them at once), everyone else to its external one (after Beta App Review). Apple mails each new tester. Emits `stores.group.changed` (testers). A development group holds its testers here alone — nothing goes to Apple —, and a person taken out of it loses the install links it gave them (each revoked).
3727
4183
  */
3728
4184
  setTesters(input: {
3729
4185
  path: {
@@ -3762,7 +4218,7 @@ export declare function client(t: Transport): {
3762
4218
  /**
3763
4219
  * Hand over a package's build
3764
4220
  *
3765
- * A build machine hands over the unsigned .ipa with the package's upload token (Palbase-Upload-Token header) and its Content-Length. It must be the app's — its bundle id, and the build number the package was given — or it is refused and the package keeps waiting for the right file. One upload of a package at a time, two of a project's at once (409 `upload_in_progress`); an upload ends within an hour, waits a minute at most for its next bytes and, after its first minute, keeps up 256 KiB a second on average (400 `upload_too_slow`). Sent again after it arrived, the same token answers 409 `package_uploaded`. Emits `stores.package.changed` (uploaded).
4221
+ * A build machine hands over the build — an iOS app's unsigned .ipa; an Android app's App Bundle (.aab) for Play, or its APK for a direct install, told by what the file holds — with the package's upload token (Palbase-Upload-Token header) and its Content-Length. It must be the app's — its bundle id, and the build number the package was given — or it is refused and the package keeps waiting for the right file. One upload of a package at a time, two of a project's at once (409 `upload_in_progress`); an upload ends within an hour, waits a minute at most for its next bytes and, after its first minute, keeps up 256 KiB a second on average (400 `upload_too_slow`). Sent again after it arrived, the same token answers 409 `package_uploaded`. Emits `stores.package.changed` (uploaded).
3766
4222
  */
3767
4223
  uploadArtifact(input: {
3768
4224
  path: {
@@ -3803,7 +4259,7 @@ export declare function client(t: Transport): {
3803
4259
  /**
3804
4260
  * Send a package to TestFlight
3805
4261
  *
3806
- * Signs the build with the Apple account's certificate (bundle by bundle), hands it to App Store Connect, follows Apple's processing and gives it to the groups named. Answers 202 at once; `stores.delivery.changed` says where it is. A project's builds are signed and handed over one at a time, and it has 10 deliveries under way at most (429 `too_many_deliveries`). Sending it again restarts one that failed, and changes nothing about one under way (200).
4262
+ * Signs the build with the Apple account's certificate (bundle by bundle), hands it to App Store Connect, follows Apple's processing and gives it to the groups named. Answers 202 at once; `stores.delivery.changed` says where it is. A project's builds are signed and handed over one at a time, and it has 10 deliveries under way at most (429 `too_many_deliveries`). Sending it again restarts one that failed, and changes nothing about one under way (200). To development (direct install): the people of the development groups named are each invited — mailed a link —, and the build is signed for their phones as they register; sent again, it invites who joined the groups since and those whose link expired. An Android app's APK goes to development alone, its bundle to Play alone (409 `not_an_apk`, `not_an_aab`); an APK is signed with the app's upload key and is ready for everyone invited at once — an Android phone registers nowhere.
3807
4263
  */
3808
4264
  deliver(input: {
3809
4265
  path: {
@@ -4137,5 +4593,157 @@ export declare function client(t: Transport): {
4137
4593
  }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4138
4594
  signal?: AbortSignal;
4139
4595
  }): Promise<Reply<204, undefined>>;
4596
+ /**
4597
+ * Open an invitation's install page
4598
+ *
4599
+ * The page a person's invitation link opens: on an iPhone it has the phone register itself, then installs the package's build signed for it; on an Android phone it downloads the build. It follows itself (GET /stores/install/status). Every link that is not a live invitation's — wrong, expired, revoked — is answered the same page.
4600
+ */
4601
+ getInstallPage(input: {
4602
+ query: {
4603
+ t: string; /** Why a registration could not be prepared, when the page was sent back from one: it says so until the person tries again. */
4604
+ e?: "apple_unavailable" | "apple_not_connected" | "certificate_limit" | "apple_agreement" | "apple_key_refused";
4605
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4606
+ signal?: AbortSignal;
4607
+ }): Promise<Reply<200, Response>>;
4608
+ /**
4609
+ * Read an install page's state
4610
+ *
4611
+ * A person's install page as it is now, for the page to follow: the step, what to do, their phones and the links that take them on. A look signs the build again for a phone of theirs it does not cover. A delivery that failed is tried again by a look once it has rested two minutes.
4612
+ */
4613
+ getInstallStatus(input: {
4614
+ query: {
4615
+ t: string;
4616
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4617
+ signal?: AbortSignal;
4618
+ }): Promise<Reply<200, InstallStatus>>;
4619
+ /**
4620
+ * Try a failed signing again
4621
+ *
4622
+ * Has a development delivery that failed signed again, from a person's page: the owner fixed what failed, or Apple came back. One that failed less than half a minute ago, or whose failure trying again does not change, is left as it is.
4623
+ */
4624
+ retryInstall(input: {
4625
+ query: {
4626
+ t: string;
4627
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4628
+ signal?: AbortSignal;
4629
+ }): Promise<Reply<204, undefined>>;
4630
+ /**
4631
+ * Download the registration profile
4632
+ *
4633
+ * The Profile Service profile that registers the iPhone opening it: signed with the Apple account's development certificate, asking for the phone's UDID, model and iOS build. iOS installs it in Settings and posts its answer to /stores/install/device. When it cannot be prepared, Safari is sent back to the install page, which says why.
4634
+ */
4635
+ getInstallEnrollment(input: {
4636
+ query: {
4637
+ t: string; /** p asks that the registering phone be answered with a signed profile (a shortcut to the install page) instead of a redirect to it. */
4638
+ a?: "p";
4639
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4640
+ signal?: AbortSignal;
4641
+ }): Promise<Reply<200, Response> | Reply<303, undefined>>;
4642
+ /**
4643
+ * Register a phone (its Profile Service answer)
4644
+ *
4645
+ * Takes a phone's answer to the registration profile: its UDID, read only once the phone's signature, Apple's certificate of the phone and the challenge check out. The phone becomes the invitation's person's — a person registers two new phones at most in 30 days, through whatever links they hold; a phone already theirs registers again freely — and the package is signed for it. The same answer sent again changes nothing. The phone is sent back to the install page (301), or — a=p — answered with a signed profile iOS installs: a shortcut to that page.
4646
+ */
4647
+ registerInstallDevice(input: {
4648
+ query: {
4649
+ t: string; /** p asks that the registering phone be answered with a signed profile (a shortcut to the install page) instead of a redirect to it. */
4650
+ a?: "p";
4651
+ };
4652
+ body: BodyInit;
4653
+ contentType?: string; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4654
+ signal?: AbortSignal;
4655
+ }): Promise<Reply<200, Response> | Reply<301, undefined>>;
4656
+ /**
4657
+ * Read an iOS build's install manifest
4658
+ *
4659
+ * The manifest iOS installs the package's build from (itms-services://?action=download-manifest).
4660
+ */
4661
+ getInstallManifest(input: {
4662
+ query: {
4663
+ t: string;
4664
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4665
+ signal?: AbortSignal;
4666
+ }): Promise<Reply<200, Response>>;
4667
+ /**
4668
+ * Download the build to install
4669
+ *
4670
+ * The package's build for the person's phone: the iOS build signed for the phones of the people invited, or the Android one. Its first download is said on the invitation (downloaded). A link holds three downloads at once on each of the module's replicas (429 `too_many_downloads`).
4671
+ */
4672
+ getInstallBuild(input: {
4673
+ query: {
4674
+ t: string;
4675
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4676
+ signal?: AbortSignal;
4677
+ }): Promise<Reply<200, Response>>;
4678
+ /**
4679
+ * Look at the build to install
4680
+ *
4681
+ * The build's size and type, as iOS's installer looks before it downloads: a look is no download.
4682
+ */
4683
+ headInstallBuild(input: {
4684
+ query: {
4685
+ t: string;
4686
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4687
+ signal?: AbortSignal;
4688
+ }): Promise<Reply<200, undefined>>;
4689
+ /**
4690
+ * Read a package's icon
4691
+ *
4692
+ * A package's icon, for its install page, its manifest and its invitations' mail: the app's own, read from its build, or Palbase's placeholder. Its address carries no invitation's token.
4693
+ */
4694
+ getInstallIcon(input?: {
4695
+ query?: {
4696
+ i?: string;
4697
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4698
+ signal?: AbortSignal;
4699
+ }): Promise<Reply<200, Response>>;
4700
+ /**
4701
+ * List a package's invitations
4702
+ *
4703
+ * The people invited to install the package directly: how far each got, their mail, and their phones as the package's build covers them. Links are not listed.
4704
+ */
4705
+ listInvitations(input: {
4706
+ path: {
4707
+ package_id: string;
4708
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4709
+ signal?: AbortSignal;
4710
+ }): Promise<Reply<200, InvitationPage>>;
4711
+ /**
4712
+ * Invite a person to install a package
4713
+ *
4714
+ * Invites one person by their address to install the package directly, and answers their link. A person invited already keeps their link — mailed again when mail is not false —; an expired or revoked invitation is made again, with a new link. The package gets its development delivery when it had none. Emits `stores.invitation.changed`. One mail is sent for each asking, when the shared sender's limits let it: a mail a limit holds waits and is sent when its window ends.
4715
+ */
4716
+ invitePerson(input: {
4717
+ path: {
4718
+ package_id: string;
4719
+ };
4720
+ headers?: {
4721
+ "Idempotency-Key"?: string;
4722
+ };
4723
+ body: InviteRequest; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4724
+ signal?: AbortSignal;
4725
+ }): Promise<Reply<200, InvitationLink> | Reply<201, InvitationLink>>;
4726
+ /**
4727
+ * Revoke an invitation
4728
+ *
4729
+ * Stops an invitation's link: its page, its build and its registration answer as no link's from now on. Emits `stores.invitation.changed` (revoked).
4730
+ */
4731
+ revokeInvitation(input: {
4732
+ path: {
4733
+ invitation_id: string;
4734
+ };
4735
+ headers?: {
4736
+ "Idempotency-Key"?: string;
4737
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4738
+ signal?: AbortSignal;
4739
+ }): Promise<Reply<204, undefined>>;
4740
+ /**
4741
+ * List the project's registered phones
4742
+ *
4743
+ * The phones registered for the project's development builds: whose each is, and where it stands at Apple — registering, enabled, processing (Apple holds a new membership's 11th to 100th device out of profiles for 24 to 72 hours) or refused, in Apple's words (limit: the account's yearly 100).
4744
+ */
4745
+ listDevices(input?: {
4746
+ signal?: AbortSignal;
4747
+ }): Promise<Reply<200, DevicePage>>;
4140
4748
  };
4141
4749
  export type Client = ReturnType<typeof client>;