@ticketlayer/backstage 0.3.0 → 1.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 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
@@ -678,6 +678,7 @@ export declare class BackstageClient {
678
678
  userEmail: string;
679
679
  userFirstName?: string;
680
680
  userLastName?: string;
681
+ templateName?: "webflow-single-seller" | "venue" | "platform" | "developer";
681
682
  }) => Promise<{
682
683
  organisation: {
683
684
  id: string;
@@ -716,6 +717,13 @@ export declare class BackstageClient {
716
717
  updatedAt: string;
717
718
  }>;
718
719
  };
720
+ plan: {
721
+ get: () => Promise<{
722
+ id: string;
723
+ name: string;
724
+ entitlements: components["schemas"]["PlanEntitlements"];
725
+ }>;
726
+ };
719
727
  events: ((eventId: string) => {
720
728
  occurrences: {
721
729
  create: (request: {
@@ -3403,7 +3411,7 @@ export declare class BackstageClient {
3403
3411
  };
3404
3412
  receivingAccountId: string;
3405
3413
  feeProfileId: string | null;
3406
- themeId: string | null;
3414
+ brandId: string | null;
3407
3415
  isActive: boolean;
3408
3416
  isDeleted: boolean;
3409
3417
  deletedAt: string | null;
@@ -3450,7 +3458,7 @@ export declare class BackstageClient {
3450
3458
  };
3451
3459
  receivingAccountId: string;
3452
3460
  feeProfileId: string | null;
3453
- themeId: string | null;
3461
+ brandId: string | null;
3454
3462
  isActive: boolean;
3455
3463
  isDeleted: boolean;
3456
3464
  deletedAt: string | null;
@@ -3497,7 +3505,7 @@ export declare class BackstageClient {
3497
3505
  };
3498
3506
  receivingAccountId: string;
3499
3507
  feeProfileId: string | null;
3500
- themeId: string | null;
3508
+ brandId: string | null;
3501
3509
  isActive: boolean;
3502
3510
  isDeleted: boolean;
3503
3511
  deletedAt: string | null;
@@ -3540,7 +3548,7 @@ export declare class BackstageClient {
3540
3548
  receivingAccountId?: string;
3541
3549
  feeProfileId?: any;
3542
3550
  paymentProviderId?: any;
3543
- themeId?: any;
3551
+ brandId?: any;
3544
3552
  isActive?: boolean;
3545
3553
  }) => Promise<{
3546
3554
  id: string;
@@ -3582,7 +3590,7 @@ export declare class BackstageClient {
3582
3590
  };
3583
3591
  receivingAccountId: string;
3584
3592
  feeProfileId: string | null;
3585
- themeId: string | null;
3593
+ brandId: string | null;
3586
3594
  isActive: boolean;
3587
3595
  isDeleted: boolean;
3588
3596
  deletedAt: string | null;
@@ -3711,10 +3719,12 @@ export declare class BackstageClient {
3711
3719
  serviceFeePercent?: number;
3712
3720
  serviceFeeFixed?: number;
3713
3721
  serviceFeeLabel?: string;
3722
+ feeEarnerAccountId?: any;
3714
3723
  }) => Promise<{
3715
3724
  id: string;
3716
3725
  organisationId: string;
3717
3726
  name: string;
3727
+ feeEarnerAccountId: string | null;
3718
3728
  serviceFeeEnabled: boolean;
3719
3729
  serviceFeePercent: string | null;
3720
3730
  serviceFeeFixed: number | null;
@@ -3728,6 +3738,7 @@ export declare class BackstageClient {
3728
3738
  id: string;
3729
3739
  organisationId: string;
3730
3740
  name: string;
3741
+ feeEarnerAccountId: string | null;
3731
3742
  serviceFeeEnabled: boolean;
3732
3743
  serviceFeePercent: string | null;
3733
3744
  serviceFeeFixed: number | null;
@@ -3741,6 +3752,7 @@ export declare class BackstageClient {
3741
3752
  id: string;
3742
3753
  organisationId: string;
3743
3754
  name: string;
3755
+ feeEarnerAccountId: string | null;
3744
3756
  serviceFeeEnabled: boolean;
3745
3757
  serviceFeePercent: string | null;
3746
3758
  serviceFeeFixed: number | null;
@@ -3756,10 +3768,12 @@ export declare class BackstageClient {
3756
3768
  serviceFeePercent?: number;
3757
3769
  serviceFeeFixed?: number;
3758
3770
  serviceFeeLabel?: string;
3771
+ feeEarnerAccountId?: any;
3759
3772
  }) => Promise<{
3760
3773
  id: string;
3761
3774
  organisationId: string;
3762
3775
  name: string;
3776
+ feeEarnerAccountId: string | null;
3763
3777
  serviceFeeEnabled: boolean;
3764
3778
  serviceFeePercent: string | null;
3765
3779
  serviceFeeFixed: number | null;
@@ -3771,14 +3785,15 @@ export declare class BackstageClient {
3771
3785
  }>;
3772
3786
  delete: (profileId: string) => Promise<boolean>;
3773
3787
  };
3774
- themes: {
3788
+ brands: {
3775
3789
  list: () => Promise<{
3776
3790
  id: string;
3777
3791
  organisationId: string;
3792
+ accountId: string | null;
3778
3793
  name: string;
3779
3794
  description: string | null;
3780
- extendsThemeId: string | null;
3781
- isBaseTheme: boolean;
3795
+ extendsBrandId: string | null;
3796
+ isBaseBrand: boolean;
3782
3797
  isActive: boolean;
3783
3798
  brand: {
3784
3799
  logoUrl?: string;
@@ -3826,11 +3841,12 @@ export declare class BackstageClient {
3826
3841
  }[]>;
3827
3842
  create: (request: {
3828
3843
  name: string;
3844
+ accountId?: string;
3829
3845
  description?: string;
3830
- extendsThemeId?: string;
3831
- isBaseTheme?: boolean;
3846
+ extendsBrandId?: string;
3847
+ isBaseBrand?: boolean;
3832
3848
  isActive?: boolean;
3833
- brand?: components["schemas"]["ThemeBrandInput"];
3849
+ brand?: components["schemas"]["BrandIdentityInput"];
3834
3850
  colors?: components["schemas"]["ThemeColorsInput"];
3835
3851
  typography?: components["schemas"]["ThemeTypographyInput"];
3836
3852
  shape?: components["schemas"]["ThemeShapeInput"];
@@ -3838,10 +3854,11 @@ export declare class BackstageClient {
3838
3854
  }) => Promise<{
3839
3855
  id: string;
3840
3856
  organisationId: string;
3857
+ accountId: string | null;
3841
3858
  name: string;
3842
3859
  description: string | null;
3843
- extendsThemeId: string | null;
3844
- isBaseTheme: boolean;
3860
+ extendsBrandId: string | null;
3861
+ isBaseBrand: boolean;
3845
3862
  isActive: boolean;
3846
3863
  brand: {
3847
3864
  logoUrl?: string;
@@ -3890,10 +3907,11 @@ export declare class BackstageClient {
3890
3907
  get: (id: string) => Promise<{
3891
3908
  id: string;
3892
3909
  organisationId: string;
3910
+ accountId: string | null;
3893
3911
  name: string;
3894
3912
  description: string | null;
3895
- extendsThemeId: string | null;
3896
- isBaseTheme: boolean;
3913
+ extendsBrandId: string | null;
3914
+ isBaseBrand: boolean;
3897
3915
  isActive: boolean;
3898
3916
  brand: {
3899
3917
  logoUrl?: string;
@@ -3942,10 +3960,10 @@ export declare class BackstageClient {
3942
3960
  update: (id: string, request: {
3943
3961
  name?: string;
3944
3962
  description?: any;
3945
- extendsThemeId?: any;
3946
- isBaseTheme?: boolean;
3963
+ extendsBrandId?: any;
3964
+ isBaseBrand?: boolean;
3947
3965
  isActive?: boolean;
3948
- brand?: components["schemas"]["ThemeBrandInput"];
3966
+ brand?: components["schemas"]["BrandIdentityInput"];
3949
3967
  colors?: components["schemas"]["ThemeColorsInput"];
3950
3968
  typography?: components["schemas"]["ThemeTypographyInput"];
3951
3969
  shape?: components["schemas"]["ThemeShapeInput"];
@@ -3953,10 +3971,11 @@ export declare class BackstageClient {
3953
3971
  }) => Promise<{
3954
3972
  id: string;
3955
3973
  organisationId: string;
3974
+ accountId: string | null;
3956
3975
  name: string;
3957
3976
  description: string | null;
3958
- extendsThemeId: string | null;
3959
- isBaseTheme: boolean;
3977
+ extendsBrandId: string | null;
3978
+ isBaseBrand: boolean;
3960
3979
  isActive: boolean;
3961
3980
  brand: {
3962
3981
  logoUrl?: string;
@@ -4006,10 +4025,11 @@ export declare class BackstageClient {
4006
4025
  resolved: (id: string) => Promise<{
4007
4026
  id: string;
4008
4027
  organisationId: string;
4028
+ accountId: string | null;
4009
4029
  name: string;
4010
4030
  description: string | null;
4011
- extendsThemeId: string | null;
4012
- isBaseTheme: boolean;
4031
+ extendsBrandId: string | null;
4032
+ isBaseBrand: boolean;
4013
4033
  isActive: boolean;
4014
4034
  brand: {
4015
4035
  logoUrl?: string;
@@ -4122,7 +4142,7 @@ export declare class BackstageClient {
4122
4142
  scopeEventId: string | null;
4123
4143
  scopeTicketTypeId: string | null;
4124
4144
  scopeChannelId: string | null;
4125
- themeId: string | null;
4145
+ brandId: string | null;
4126
4146
  status: string;
4127
4147
  isDefault: boolean;
4128
4148
  createdAt: string;
@@ -4152,7 +4172,7 @@ export declare class BackstageClient {
4152
4172
  scopeEventId?: any;
4153
4173
  scopeTicketTypeId?: any;
4154
4174
  scopeChannelId?: any;
4155
- themeId?: any;
4175
+ brandId?: any;
4156
4176
  status?: "draft" | "active" | "archived";
4157
4177
  isDefault?: boolean;
4158
4178
  accountId?: any;
@@ -4190,7 +4210,7 @@ export declare class BackstageClient {
4190
4210
  scopeEventId: string | null;
4191
4211
  scopeTicketTypeId: string | null;
4192
4212
  scopeChannelId: string | null;
4193
- themeId: string | null;
4213
+ brandId: string | null;
4194
4214
  status: string;
4195
4215
  isDefault: boolean;
4196
4216
  createdAt: string;
@@ -4230,7 +4250,7 @@ export declare class BackstageClient {
4230
4250
  scopeEventId: string | null;
4231
4251
  scopeTicketTypeId: string | null;
4232
4252
  scopeChannelId: string | null;
4233
- themeId: string | null;
4253
+ brandId: string | null;
4234
4254
  status: string;
4235
4255
  isDefault: boolean;
4236
4256
  createdAt: string;
@@ -4260,7 +4280,7 @@ export declare class BackstageClient {
4260
4280
  scopeEventId?: any;
4261
4281
  scopeTicketTypeId?: any;
4262
4282
  scopeChannelId?: any;
4263
- themeId?: any;
4283
+ brandId?: any;
4264
4284
  status?: "draft" | "active" | "archived";
4265
4285
  isDefault?: boolean;
4266
4286
  }) => Promise<{
@@ -4297,7 +4317,7 @@ export declare class BackstageClient {
4297
4317
  scopeEventId: string | null;
4298
4318
  scopeTicketTypeId: string | null;
4299
4319
  scopeChannelId: string | null;
4300
- themeId: string | null;
4320
+ brandId: string | null;
4301
4321
  status: string;
4302
4322
  isDefault: boolean;
4303
4323
  createdAt: string;
@@ -4391,99 +4411,97 @@ export declare class BackstageClient {
4391
4411
  reason?: string;
4392
4412
  }) => Promise<any>;
4393
4413
  };
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
- };
4414
+ assets: {
4415
+ list: (options?: {
4416
+ q?: string;
4417
+ purpose?: string;
4418
+ ownerType?: string;
4419
+ ownerId?: string;
4420
+ accountId?: string;
4421
+ }) => Promise<{
4422
+ id: string;
4423
+ organisationId: string;
4424
+ accountId: string | null;
4425
+ name: string | null;
4426
+ purpose: string;
4427
+ ownerType: string | null;
4428
+ ownerId: string | null;
4429
+ filename: string | null;
4430
+ contentType: string;
4431
+ sizeBytes: number;
4432
+ storageDriver: string;
4433
+ storageBucket: string | null;
4434
+ storageKey: string;
4435
+ url: string;
4436
+ cdn: boolean;
4437
+ cdnUrl: string | null;
4438
+ visibility: string;
4439
+ metadata: {
4440
+ [key: string]: unknown;
4441
+ };
4442
+ uploadedBy: string | null;
4443
+ createdAt: string;
4444
+ updatedAt: string;
4445
+ }[]>;
4446
+ upload: (request: {
4447
+ name?: string;
4448
+ purpose?: "event_image" | "organisation_logo" | "account_logo" | "user_avatar" | "ticket_template_asset" | "rendered_pass" | "rendered_receipt" | "export" | "other";
4449
+ ownerType?: string;
4450
+ ownerId?: string;
4451
+ accountId?: string;
4452
+ visibility?: "public" | "private";
4453
+ cdn?: any;
4454
+ }) => Promise<{
4455
+ id: string;
4456
+ organisationId: string;
4457
+ accountId: string | null;
4458
+ name: string | null;
4459
+ purpose: string;
4460
+ ownerType: string | null;
4461
+ ownerId: string | null;
4462
+ filename: string | null;
4463
+ contentType: string;
4464
+ sizeBytes: number;
4465
+ storageDriver: string;
4466
+ storageBucket: string | null;
4467
+ storageKey: string;
4468
+ url: string;
4469
+ cdn: boolean;
4470
+ cdnUrl: string | null;
4471
+ visibility: string;
4472
+ metadata: {
4473
+ [key: string]: unknown;
4474
+ };
4475
+ uploadedBy: string | null;
4476
+ createdAt: string;
4477
+ updatedAt: string;
4478
+ }>;
4479
+ get: (id: string) => Promise<{
4480
+ id: string;
4481
+ organisationId: string;
4482
+ accountId: string | null;
4483
+ name: string | null;
4484
+ purpose: string;
4485
+ ownerType: string | null;
4486
+ ownerId: string | null;
4487
+ filename: string | null;
4488
+ contentType: string;
4489
+ sizeBytes: number;
4490
+ storageDriver: string;
4491
+ storageBucket: string | null;
4492
+ storageKey: string;
4493
+ url: string;
4494
+ cdn: boolean;
4495
+ cdnUrl: string | null;
4496
+ visibility: string;
4497
+ metadata: {
4498
+ [key: string]: unknown;
4499
+ };
4500
+ uploadedBy: string | null;
4501
+ createdAt: string;
4502
+ updatedAt: string;
4503
+ }>;
4504
+ delete: (id: string) => Promise<boolean>;
4487
4505
  };
4488
4506
  devicePairing: {
4489
4507
  start: (request: {
@@ -5025,12 +5043,29 @@ export declare class BackstageClient {
5025
5043
  get: (id: string) => Promise<any>;
5026
5044
  revokeConnection: (id: string) => Promise<any>;
5027
5045
  };
5046
+ clientVersions: {
5047
+ list: (options?: {
5048
+ days?: number;
5049
+ }) => Promise<{
5050
+ package: string;
5051
+ version: string;
5052
+ datedVersion: string;
5053
+ datedVersionStatus: "current" | "supported" | "deprecated" | "sunset" | "unknown";
5054
+ needsUpgrade: boolean;
5055
+ runtime: string;
5056
+ requestCount: number;
5057
+ firstSeenAt: string;
5058
+ lastSeenAt: string;
5059
+ }[]>;
5060
+ };
5028
5061
  sales: {
5029
5062
  resolveChannel: (options?: {
5030
- domain: string;
5063
+ domain?: string;
5064
+ key?: string;
5031
5065
  }) => Promise<{
5032
5066
  channel: components["schemas"]["SalesChannelSummary"];
5033
5067
  publishableKey: string | null;
5068
+ cacheVersion: string;
5034
5069
  }>;
5035
5070
  get: (eventId: string) => Promise<{
5036
5071
  id: string;