@ticketlayer/backstage 0.3.0 → 1.1.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 CHANGED
@@ -52,8 +52,8 @@ npm test # node --test against dist/
52
52
  `src/client.ts` is generated by `backstage-sdk-tooling` (`tt sdk local`);
53
53
  do not edit it by hand. Releases are driven by changesets and
54
54
  `.github/workflows/release.yml`, which publishes to npm through trusted
55
- publishing once
56
- `NPM_TOKEN` is set. `CLAUDE.md` is the working agreement.
55
+ publishing: a GitHub OIDC token, no npm secret. `latest` is 0.3.0.
56
+ `CLAUDE.md` is the working agreement.
57
57
 
58
58
  ## Embedding Backstage widgets in your app
59
59
 
package/dist/client.d.ts CHANGED
@@ -11,6 +11,7 @@ type LoginRequest = components['schemas']['LoginRequest'];
11
11
  type RedeemInvitationRequest = components['schemas']['RedeemInvitationRequest'];
12
12
  type RefreshTokenRequest = components['schemas']['RefreshTokenRequest'];
13
13
  type SavePaymentMethodRequest = components['schemas']['SavePaymentMethodRequest'];
14
+ type SignUpRequest = components['schemas']['SignUpRequest'];
14
15
  type UpdateAutoTopupRequest = components['schemas']['UpdateAutoTopupRequest'];
15
16
  type UpdateIdentityProviderRequest = components['schemas']['UpdateIdentityProviderRequest'];
16
17
  type UpdateOrganisationRequest = components['schemas']['UpdateOrganisationRequest'];
@@ -206,6 +207,26 @@ export declare class BackstageClient {
206
207
  };
207
208
  }>;
208
209
  };
210
+ signup: {
211
+ signUp: (request: SignUpRequest) => Promise<{
212
+ organisation: {
213
+ id: string;
214
+ name: string;
215
+ slug: string;
216
+ plan: string;
217
+ apiVersion: string;
218
+ };
219
+ owner: {
220
+ id: string;
221
+ email: string;
222
+ };
223
+ account: {
224
+ id: string;
225
+ name: string;
226
+ };
227
+ sandbox: components["schemas"]["SignUpSandbox"];
228
+ }>;
229
+ };
209
230
  me: {
210
231
  current: () => Promise<{
211
232
  id: string;
@@ -678,6 +699,7 @@ export declare class BackstageClient {
678
699
  userEmail: string;
679
700
  userFirstName?: string;
680
701
  userLastName?: string;
702
+ templateName?: "webflow-single-seller" | "venue" | "platform" | "developer";
681
703
  }) => Promise<{
682
704
  organisation: {
683
705
  id: string;
@@ -699,6 +721,7 @@ export declare class BackstageClient {
699
721
  [key: string]: unknown;
700
722
  };
701
723
  apiVersion: string;
724
+ testMode: boolean;
702
725
  createdAt: string;
703
726
  updatedAt: string;
704
727
  }>;
@@ -712,9 +735,27 @@ export declare class BackstageClient {
712
735
  [key: string]: unknown;
713
736
  };
714
737
  apiVersion: string;
738
+ testMode: boolean;
715
739
  createdAt: string;
716
740
  updatedAt: string;
717
741
  }>;
742
+ graduate: (id: string) => Promise<{
743
+ organisation: {
744
+ id: string;
745
+ name: string;
746
+ slug: string;
747
+ };
748
+ alreadyLive: boolean;
749
+ liveKeys: components["schemas"]["GraduatedChannelKey"][];
750
+ signupClaimsGraduated: number;
751
+ }>;
752
+ };
753
+ plan: {
754
+ get: () => Promise<{
755
+ id: string;
756
+ name: string;
757
+ entitlements: components["schemas"]["PlanEntitlements"];
758
+ }>;
718
759
  };
719
760
  events: ((eventId: string) => {
720
761
  occurrences: {
@@ -2951,6 +2992,17 @@ export declare class BackstageClient {
2951
2992
  createdAt: string;
2952
2993
  updatedAt: string;
2953
2994
  }[]>;
2995
+ confirmSandbox: (paymentId: string, request: {
2996
+ token?: string;
2997
+ }) => Promise<{
2998
+ paymentId: string;
2999
+ token: string;
3000
+ outcome: "succeeded" | "failed";
3001
+ webhookEventId: string;
3002
+ ingestStatus: "received" | "duplicate";
3003
+ failureCode?: string;
3004
+ failureMessage?: string;
3005
+ }>;
2954
3006
  };
2955
3007
  paymentProviders: {
2956
3008
  enableTicketlayerPay: (request: {
@@ -3010,7 +3062,7 @@ export declare class BackstageClient {
3010
3062
  }>;
3011
3063
  create: (request: {
3012
3064
  accountId?: string;
3013
- type: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer";
3065
+ type: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer" | "sandbox";
3014
3066
  name: string;
3015
3067
  description?: string;
3016
3068
  integrationType?: "ticketlayer_pay" | "self_service";
@@ -3065,7 +3117,7 @@ export declare class BackstageClient {
3065
3117
  }>;
3066
3118
  list: (options?: {
3067
3119
  accountId?: string;
3068
- type?: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer";
3120
+ type?: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer" | "sandbox";
3069
3121
  status?: "active" | "inactive" | "pending_setup";
3070
3122
  paymentType?: "online_card" | "online_bank_transfer" | "online_wallet" | "in_person_card" | "in_person_cash" | "bank_transfer" | "cheque";
3071
3123
  isDefault?: string;
@@ -3403,7 +3455,7 @@ export declare class BackstageClient {
3403
3455
  };
3404
3456
  receivingAccountId: string;
3405
3457
  feeProfileId: string | null;
3406
- themeId: string | null;
3458
+ brandId: string | null;
3407
3459
  isActive: boolean;
3408
3460
  isDeleted: boolean;
3409
3461
  deletedAt: string | null;
@@ -3450,7 +3502,7 @@ export declare class BackstageClient {
3450
3502
  };
3451
3503
  receivingAccountId: string;
3452
3504
  feeProfileId: string | null;
3453
- themeId: string | null;
3505
+ brandId: string | null;
3454
3506
  isActive: boolean;
3455
3507
  isDeleted: boolean;
3456
3508
  deletedAt: string | null;
@@ -3497,7 +3549,7 @@ export declare class BackstageClient {
3497
3549
  };
3498
3550
  receivingAccountId: string;
3499
3551
  feeProfileId: string | null;
3500
- themeId: string | null;
3552
+ brandId: string | null;
3501
3553
  isActive: boolean;
3502
3554
  isDeleted: boolean;
3503
3555
  deletedAt: string | null;
@@ -3540,7 +3592,7 @@ export declare class BackstageClient {
3540
3592
  receivingAccountId?: string;
3541
3593
  feeProfileId?: any;
3542
3594
  paymentProviderId?: any;
3543
- themeId?: any;
3595
+ brandId?: any;
3544
3596
  isActive?: boolean;
3545
3597
  }) => Promise<{
3546
3598
  id: string;
@@ -3582,7 +3634,7 @@ export declare class BackstageClient {
3582
3634
  };
3583
3635
  receivingAccountId: string;
3584
3636
  feeProfileId: string | null;
3585
- themeId: string | null;
3637
+ brandId: string | null;
3586
3638
  isActive: boolean;
3587
3639
  isDeleted: boolean;
3588
3640
  deletedAt: string | null;
@@ -3711,10 +3763,12 @@ export declare class BackstageClient {
3711
3763
  serviceFeePercent?: number;
3712
3764
  serviceFeeFixed?: number;
3713
3765
  serviceFeeLabel?: string;
3766
+ feeEarnerAccountId?: any;
3714
3767
  }) => Promise<{
3715
3768
  id: string;
3716
3769
  organisationId: string;
3717
3770
  name: string;
3771
+ feeEarnerAccountId: string | null;
3718
3772
  serviceFeeEnabled: boolean;
3719
3773
  serviceFeePercent: string | null;
3720
3774
  serviceFeeFixed: number | null;
@@ -3728,6 +3782,7 @@ export declare class BackstageClient {
3728
3782
  id: string;
3729
3783
  organisationId: string;
3730
3784
  name: string;
3785
+ feeEarnerAccountId: string | null;
3731
3786
  serviceFeeEnabled: boolean;
3732
3787
  serviceFeePercent: string | null;
3733
3788
  serviceFeeFixed: number | null;
@@ -3741,6 +3796,7 @@ export declare class BackstageClient {
3741
3796
  id: string;
3742
3797
  organisationId: string;
3743
3798
  name: string;
3799
+ feeEarnerAccountId: string | null;
3744
3800
  serviceFeeEnabled: boolean;
3745
3801
  serviceFeePercent: string | null;
3746
3802
  serviceFeeFixed: number | null;
@@ -3756,10 +3812,12 @@ export declare class BackstageClient {
3756
3812
  serviceFeePercent?: number;
3757
3813
  serviceFeeFixed?: number;
3758
3814
  serviceFeeLabel?: string;
3815
+ feeEarnerAccountId?: any;
3759
3816
  }) => Promise<{
3760
3817
  id: string;
3761
3818
  organisationId: string;
3762
3819
  name: string;
3820
+ feeEarnerAccountId: string | null;
3763
3821
  serviceFeeEnabled: boolean;
3764
3822
  serviceFeePercent: string | null;
3765
3823
  serviceFeeFixed: number | null;
@@ -3771,14 +3829,15 @@ export declare class BackstageClient {
3771
3829
  }>;
3772
3830
  delete: (profileId: string) => Promise<boolean>;
3773
3831
  };
3774
- themes: {
3832
+ brands: {
3775
3833
  list: () => Promise<{
3776
3834
  id: string;
3777
3835
  organisationId: string;
3836
+ accountId: string | null;
3778
3837
  name: string;
3779
3838
  description: string | null;
3780
- extendsThemeId: string | null;
3781
- isBaseTheme: boolean;
3839
+ extendsBrandId: string | null;
3840
+ isBaseBrand: boolean;
3782
3841
  isActive: boolean;
3783
3842
  brand: {
3784
3843
  logoUrl?: string;
@@ -3826,11 +3885,12 @@ export declare class BackstageClient {
3826
3885
  }[]>;
3827
3886
  create: (request: {
3828
3887
  name: string;
3888
+ accountId?: string;
3829
3889
  description?: string;
3830
- extendsThemeId?: string;
3831
- isBaseTheme?: boolean;
3890
+ extendsBrandId?: string;
3891
+ isBaseBrand?: boolean;
3832
3892
  isActive?: boolean;
3833
- brand?: components["schemas"]["ThemeBrandInput"];
3893
+ brand?: components["schemas"]["BrandIdentityInput"];
3834
3894
  colors?: components["schemas"]["ThemeColorsInput"];
3835
3895
  typography?: components["schemas"]["ThemeTypographyInput"];
3836
3896
  shape?: components["schemas"]["ThemeShapeInput"];
@@ -3838,10 +3898,11 @@ export declare class BackstageClient {
3838
3898
  }) => Promise<{
3839
3899
  id: string;
3840
3900
  organisationId: string;
3901
+ accountId: string | null;
3841
3902
  name: string;
3842
3903
  description: string | null;
3843
- extendsThemeId: string | null;
3844
- isBaseTheme: boolean;
3904
+ extendsBrandId: string | null;
3905
+ isBaseBrand: boolean;
3845
3906
  isActive: boolean;
3846
3907
  brand: {
3847
3908
  logoUrl?: string;
@@ -3890,10 +3951,11 @@ export declare class BackstageClient {
3890
3951
  get: (id: string) => Promise<{
3891
3952
  id: string;
3892
3953
  organisationId: string;
3954
+ accountId: string | null;
3893
3955
  name: string;
3894
3956
  description: string | null;
3895
- extendsThemeId: string | null;
3896
- isBaseTheme: boolean;
3957
+ extendsBrandId: string | null;
3958
+ isBaseBrand: boolean;
3897
3959
  isActive: boolean;
3898
3960
  brand: {
3899
3961
  logoUrl?: string;
@@ -3942,10 +4004,10 @@ export declare class BackstageClient {
3942
4004
  update: (id: string, request: {
3943
4005
  name?: string;
3944
4006
  description?: any;
3945
- extendsThemeId?: any;
3946
- isBaseTheme?: boolean;
4007
+ extendsBrandId?: any;
4008
+ isBaseBrand?: boolean;
3947
4009
  isActive?: boolean;
3948
- brand?: components["schemas"]["ThemeBrandInput"];
4010
+ brand?: components["schemas"]["BrandIdentityInput"];
3949
4011
  colors?: components["schemas"]["ThemeColorsInput"];
3950
4012
  typography?: components["schemas"]["ThemeTypographyInput"];
3951
4013
  shape?: components["schemas"]["ThemeShapeInput"];
@@ -3953,10 +4015,11 @@ export declare class BackstageClient {
3953
4015
  }) => Promise<{
3954
4016
  id: string;
3955
4017
  organisationId: string;
4018
+ accountId: string | null;
3956
4019
  name: string;
3957
4020
  description: string | null;
3958
- extendsThemeId: string | null;
3959
- isBaseTheme: boolean;
4021
+ extendsBrandId: string | null;
4022
+ isBaseBrand: boolean;
3960
4023
  isActive: boolean;
3961
4024
  brand: {
3962
4025
  logoUrl?: string;
@@ -4006,10 +4069,11 @@ export declare class BackstageClient {
4006
4069
  resolved: (id: string) => Promise<{
4007
4070
  id: string;
4008
4071
  organisationId: string;
4072
+ accountId: string | null;
4009
4073
  name: string;
4010
4074
  description: string | null;
4011
- extendsThemeId: string | null;
4012
- isBaseTheme: boolean;
4075
+ extendsBrandId: string | null;
4076
+ isBaseBrand: boolean;
4013
4077
  isActive: boolean;
4014
4078
  brand: {
4015
4079
  logoUrl?: string;
@@ -4122,7 +4186,7 @@ export declare class BackstageClient {
4122
4186
  scopeEventId: string | null;
4123
4187
  scopeTicketTypeId: string | null;
4124
4188
  scopeChannelId: string | null;
4125
- themeId: string | null;
4189
+ brandId: string | null;
4126
4190
  status: string;
4127
4191
  isDefault: boolean;
4128
4192
  createdAt: string;
@@ -4152,7 +4216,7 @@ export declare class BackstageClient {
4152
4216
  scopeEventId?: any;
4153
4217
  scopeTicketTypeId?: any;
4154
4218
  scopeChannelId?: any;
4155
- themeId?: any;
4219
+ brandId?: any;
4156
4220
  status?: "draft" | "active" | "archived";
4157
4221
  isDefault?: boolean;
4158
4222
  accountId?: any;
@@ -4190,7 +4254,7 @@ export declare class BackstageClient {
4190
4254
  scopeEventId: string | null;
4191
4255
  scopeTicketTypeId: string | null;
4192
4256
  scopeChannelId: string | null;
4193
- themeId: string | null;
4257
+ brandId: string | null;
4194
4258
  status: string;
4195
4259
  isDefault: boolean;
4196
4260
  createdAt: string;
@@ -4230,7 +4294,7 @@ export declare class BackstageClient {
4230
4294
  scopeEventId: string | null;
4231
4295
  scopeTicketTypeId: string | null;
4232
4296
  scopeChannelId: string | null;
4233
- themeId: string | null;
4297
+ brandId: string | null;
4234
4298
  status: string;
4235
4299
  isDefault: boolean;
4236
4300
  createdAt: string;
@@ -4260,7 +4324,7 @@ export declare class BackstageClient {
4260
4324
  scopeEventId?: any;
4261
4325
  scopeTicketTypeId?: any;
4262
4326
  scopeChannelId?: any;
4263
- themeId?: any;
4327
+ brandId?: any;
4264
4328
  status?: "draft" | "active" | "archived";
4265
4329
  isDefault?: boolean;
4266
4330
  }) => Promise<{
@@ -4297,7 +4361,7 @@ export declare class BackstageClient {
4297
4361
  scopeEventId: string | null;
4298
4362
  scopeTicketTypeId: string | null;
4299
4363
  scopeChannelId: string | null;
4300
- themeId: string | null;
4364
+ brandId: string | null;
4301
4365
  status: string;
4302
4366
  isDefault: boolean;
4303
4367
  createdAt: string;
@@ -4324,6 +4388,7 @@ export declare class BackstageClient {
4324
4388
  gates?: string[];
4325
4389
  validFrom?: string;
4326
4390
  validUntil?: string;
4391
+ isTest?: boolean;
4327
4392
  }) => Promise<any>;
4328
4393
  list: () => Promise<any>;
4329
4394
  get: (configId: string) => Promise<any>;
@@ -4345,6 +4410,7 @@ export declare class BackstageClient {
4345
4410
  gates?: string[];
4346
4411
  validFrom?: string;
4347
4412
  validUntil?: string;
4413
+ isTest?: boolean;
4348
4414
  status?: "active" | "archived";
4349
4415
  }) => Promise<any>;
4350
4416
  delete: (configId: string) => Promise<any>;
@@ -4391,99 +4457,97 @@ export declare class BackstageClient {
4391
4457
  reason?: string;
4392
4458
  }) => Promise<any>;
4393
4459
  };
4394
- assets: (assetId: string) => {
4395
- assets: {
4396
- list: (options?: {
4397
- q?: string;
4398
- purpose?: string;
4399
- ownerType?: string;
4400
- ownerId?: string;
4401
- accountId?: string;
4402
- }) => Promise<{
4403
- id: string;
4404
- organisationId: string;
4405
- accountId: string | null;
4406
- name: string | null;
4407
- purpose: string;
4408
- ownerType: string | null;
4409
- ownerId: string | null;
4410
- filename: string | null;
4411
- contentType: string;
4412
- sizeBytes: number;
4413
- storageDriver: string;
4414
- storageBucket: string | null;
4415
- storageKey: string;
4416
- url: string;
4417
- cdn: boolean;
4418
- cdnUrl: string | null;
4419
- visibility: string;
4420
- metadata: {
4421
- [key: string]: unknown;
4422
- };
4423
- uploadedBy: string | null;
4424
- createdAt: string;
4425
- updatedAt: string;
4426
- }[]>;
4427
- upload: (request: {
4428
- name?: string;
4429
- purpose?: "event_image" | "organisation_logo" | "account_logo" | "user_avatar" | "ticket_template_asset" | "rendered_pass" | "rendered_receipt" | "export" | "other";
4430
- ownerType?: string;
4431
- ownerId?: string;
4432
- accountId?: string;
4433
- visibility?: "public" | "private";
4434
- cdn?: any;
4435
- }) => Promise<{
4436
- id: string;
4437
- organisationId: string;
4438
- accountId: string | null;
4439
- name: string | null;
4440
- purpose: string;
4441
- ownerType: string | null;
4442
- ownerId: string | null;
4443
- filename: string | null;
4444
- contentType: string;
4445
- sizeBytes: number;
4446
- storageDriver: string;
4447
- storageBucket: string | null;
4448
- storageKey: string;
4449
- url: string;
4450
- cdn: boolean;
4451
- cdnUrl: string | null;
4452
- visibility: string;
4453
- metadata: {
4454
- [key: string]: unknown;
4455
- };
4456
- uploadedBy: string | null;
4457
- createdAt: string;
4458
- updatedAt: string;
4459
- }>;
4460
- get: (id: string) => Promise<{
4461
- id: string;
4462
- organisationId: string;
4463
- accountId: string | null;
4464
- name: string | null;
4465
- purpose: string;
4466
- ownerType: string | null;
4467
- ownerId: string | null;
4468
- filename: string | null;
4469
- contentType: string;
4470
- sizeBytes: number;
4471
- storageDriver: string;
4472
- storageBucket: string | null;
4473
- storageKey: string;
4474
- url: string;
4475
- cdn: boolean;
4476
- cdnUrl: string | null;
4477
- visibility: string;
4478
- metadata: {
4479
- [key: string]: unknown;
4480
- };
4481
- uploadedBy: string | null;
4482
- createdAt: string;
4483
- updatedAt: string;
4484
- }>;
4485
- delete: (id: string) => Promise<boolean>;
4486
- };
4460
+ assets: {
4461
+ list: (options?: {
4462
+ q?: string;
4463
+ purpose?: string;
4464
+ ownerType?: string;
4465
+ ownerId?: string;
4466
+ accountId?: string;
4467
+ }) => Promise<{
4468
+ id: string;
4469
+ organisationId: string;
4470
+ accountId: string | null;
4471
+ name: string | null;
4472
+ purpose: string;
4473
+ ownerType: string | null;
4474
+ ownerId: string | null;
4475
+ filename: string | null;
4476
+ contentType: string;
4477
+ sizeBytes: number;
4478
+ storageDriver: string;
4479
+ storageBucket: string | null;
4480
+ storageKey: string;
4481
+ url: string;
4482
+ cdn: boolean;
4483
+ cdnUrl: string | null;
4484
+ visibility: string;
4485
+ metadata: {
4486
+ [key: string]: unknown;
4487
+ };
4488
+ uploadedBy: string | null;
4489
+ createdAt: string;
4490
+ updatedAt: string;
4491
+ }[]>;
4492
+ upload: (request: {
4493
+ name?: string;
4494
+ purpose?: "event_image" | "organisation_logo" | "account_logo" | "user_avatar" | "ticket_template_asset" | "rendered_pass" | "rendered_receipt" | "export" | "other";
4495
+ ownerType?: string;
4496
+ ownerId?: string;
4497
+ accountId?: string;
4498
+ visibility?: "public" | "private";
4499
+ cdn?: any;
4500
+ }) => Promise<{
4501
+ id: string;
4502
+ organisationId: string;
4503
+ accountId: string | null;
4504
+ name: string | null;
4505
+ purpose: string;
4506
+ ownerType: string | null;
4507
+ ownerId: string | null;
4508
+ filename: string | null;
4509
+ contentType: string;
4510
+ sizeBytes: number;
4511
+ storageDriver: string;
4512
+ storageBucket: string | null;
4513
+ storageKey: string;
4514
+ url: string;
4515
+ cdn: boolean;
4516
+ cdnUrl: string | null;
4517
+ visibility: string;
4518
+ metadata: {
4519
+ [key: string]: unknown;
4520
+ };
4521
+ uploadedBy: string | null;
4522
+ createdAt: string;
4523
+ updatedAt: string;
4524
+ }>;
4525
+ get: (id: string) => Promise<{
4526
+ id: string;
4527
+ organisationId: string;
4528
+ accountId: string | null;
4529
+ name: string | null;
4530
+ purpose: string;
4531
+ ownerType: string | null;
4532
+ ownerId: string | null;
4533
+ filename: string | null;
4534
+ contentType: string;
4535
+ sizeBytes: number;
4536
+ storageDriver: string;
4537
+ storageBucket: string | null;
4538
+ storageKey: string;
4539
+ url: string;
4540
+ cdn: boolean;
4541
+ cdnUrl: string | null;
4542
+ visibility: string;
4543
+ metadata: {
4544
+ [key: string]: unknown;
4545
+ };
4546
+ uploadedBy: string | null;
4547
+ createdAt: string;
4548
+ updatedAt: string;
4549
+ }>;
4550
+ delete: (id: string) => Promise<boolean>;
4487
4551
  };
4488
4552
  devicePairing: {
4489
4553
  start: (request: {
@@ -5025,12 +5089,75 @@ export declare class BackstageClient {
5025
5089
  get: (id: string) => Promise<any>;
5026
5090
  revokeConnection: (id: string) => Promise<any>;
5027
5091
  };
5092
+ clientVersions: {
5093
+ list: (options?: {
5094
+ days?: number;
5095
+ }) => Promise<{
5096
+ package: string;
5097
+ version: string;
5098
+ datedVersion: string;
5099
+ datedVersionStatus: "current" | "supported" | "deprecated" | "sunset" | "unknown";
5100
+ needsUpgrade: boolean;
5101
+ runtime: string;
5102
+ requestCount: number;
5103
+ firstSeenAt: string;
5104
+ lastSeenAt: string;
5105
+ }[]>;
5106
+ };
5107
+ ledger: {
5108
+ balances: (options?: {
5109
+ accountId: string;
5110
+ currency?: string;
5111
+ asOf?: string;
5112
+ }) => Promise<{
5113
+ accountId: string;
5114
+ asOf: string | null;
5115
+ counterparties: components["schemas"]["LedgerCounterpartyBalance"][];
5116
+ totals: {
5117
+ currency: string;
5118
+ owes: number;
5119
+ owed: number;
5120
+ net: number;
5121
+ }[];
5122
+ }>;
5123
+ statement: (options?: {
5124
+ accountId: string;
5125
+ counterpartyAccountId?: string;
5126
+ currency: string;
5127
+ from?: string;
5128
+ to?: string;
5129
+ }) => Promise<{
5130
+ accountId: string;
5131
+ path: string;
5132
+ currency: string;
5133
+ from: string | null;
5134
+ to: string | null;
5135
+ openingBalance: number;
5136
+ closingBalance: number;
5137
+ lines: components["schemas"]["LedgerStatementLine"][];
5138
+ }>;
5139
+ createSettlement: (request: {
5140
+ payerAccountId: string;
5141
+ payeeAccountId: string;
5142
+ currency: string;
5143
+ amount: number;
5144
+ method: "bank_transfer" | "internal_offset" | "cash" | "other";
5145
+ reference?: string;
5146
+ paidAt?: string;
5147
+ note?: string;
5148
+ }) => Promise<{
5149
+ settlement: components["schemas"]["Settlement"];
5150
+ payable: components["schemas"]["LedgerCounterpartyBalance"];
5151
+ }>;
5152
+ };
5028
5153
  sales: {
5029
5154
  resolveChannel: (options?: {
5030
- domain: string;
5155
+ domain?: string;
5156
+ key?: string;
5031
5157
  }) => Promise<{
5032
5158
  channel: components["schemas"]["SalesChannelSummary"];
5033
5159
  publishableKey: string | null;
5160
+ cacheVersion: string;
5034
5161
  }>;
5035
5162
  get: (eventId: string) => Promise<{
5036
5163
  id: string;
@@ -5204,6 +5331,7 @@ export declare class BackstageClient {
5204
5331
  totalTax: number;
5205
5332
  total: number;
5206
5333
  tickets: components["schemas"]["SalesTicket"][];
5334
+ isTest: boolean;
5207
5335
  expiresAt: string | null;
5208
5336
  createdAt: string;
5209
5337
  }[]>;
@@ -5221,6 +5349,7 @@ export declare class BackstageClient {
5221
5349
  totalTax: number;
5222
5350
  total: number;
5223
5351
  tickets: components["schemas"]["SalesTicket"][];
5352
+ isTest: boolean;
5224
5353
  expiresAt: string | null;
5225
5354
  createdAt: string;
5226
5355
  }>;
@@ -5243,6 +5372,15 @@ export declare class BackstageClient {
5243
5372
  connectedAccountId: string | null;
5244
5373
  providerType: string | null;
5245
5374
  }>;
5375
+ confirmSandbox: (orderId: string, paymentId: string, request: {
5376
+ token?: string;
5377
+ }) => Promise<{
5378
+ paymentId: string;
5379
+ outcome: "succeeded" | "failed";
5380
+ ingestStatus: "received" | "duplicate";
5381
+ failureCode: string | null;
5382
+ failureMessage: string | null;
5383
+ }>;
5246
5384
  };
5247
5385
  salesRefundRequests: {
5248
5386
  create: (orderId: string, request: {