@ticketlayer/backstage 1.1.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/dist/client.d.ts CHANGED
@@ -7,6 +7,7 @@ type CreateRoleRequest = components['schemas']['CreateRoleRequest'];
7
7
  type CreateSubscriptionRequest = components['schemas']['CreateSubscriptionRequest'];
8
8
  type CreateUserInvitationRequest = components['schemas']['CreateUserInvitationRequest'];
9
9
  type CreateWebhookEndpoint = components['schemas']['CreateWebhookEndpoint'];
10
+ type GrantSalesChannelAccessRequest = components['schemas']['GrantSalesChannelAccessRequest'];
10
11
  type LoginRequest = components['schemas']['LoginRequest'];
11
12
  type RedeemInvitationRequest = components['schemas']['RedeemInvitationRequest'];
12
13
  type RefreshTokenRequest = components['schemas']['RefreshTokenRequest'];
@@ -22,7 +23,12 @@ type ValidateLayoutChangesRequest = components['schemas']['ValidateLayoutChanges
22
23
  export declare class BackstageAPIError extends Error {
23
24
  readonly code: string;
24
25
  readonly statusCode: number;
25
- constructor(message: string, code: string, statusCode: number);
26
+ readonly moreInfo?: string;
27
+ readonly requestId?: string;
28
+ constructor(message: string, code: string, statusCode: number, details?: {
29
+ moreInfo?: string;
30
+ requestId?: string;
31
+ });
26
32
  isPermissionDenied(): boolean;
27
33
  isAuthenticationError(): boolean;
28
34
  isSessionExpired(): boolean;
@@ -948,8 +954,11 @@ export declare class BackstageClient {
948
954
  venueId?: any;
949
955
  venueName?: any;
950
956
  timezone?: string;
951
- onSaleDate?: string;
952
- offSaleDate?: string;
957
+ rules?: {
958
+ discoverable?: components["schemas"]["ListingRule"];
959
+ visible?: components["schemas"]["ListingRule"];
960
+ sellable?: components["schemas"]["ListingRule"];
961
+ };
953
962
  tags?: string[];
954
963
  ticketTypes?: {
955
964
  id?: string;
@@ -985,8 +994,7 @@ export declare class BackstageClient {
985
994
  status: "draft" | "published" | "on_sale" | "sold_out" | "completed" | "cancelled";
986
995
  venueId?: string;
987
996
  timezone: string;
988
- onSaleDate?: string;
989
- offSaleDate?: string;
997
+ rules: components["schemas"]["ListingRules"];
990
998
  occurrenceCount: number;
991
999
  ticketCount: number;
992
1000
  productCount: number;
@@ -1005,30 +1013,15 @@ export declare class BackstageClient {
1005
1013
  page?: string;
1006
1014
  limit?: string;
1007
1015
  }) => Promise<{
1008
- events: components["schemas"]["Event"][];
1016
+ events: components["schemas"]["EventInChannel"][];
1009
1017
  pagination: components["schemas"]["Pagination"];
1018
+ channel: components["schemas"]["ChannelContext"];
1010
1019
  }>;
1011
1020
  get: (id: string, options?: {
1012
1021
  expand?: string;
1013
1022
  }) => Promise<{
1014
- id: string;
1015
- organisationId: string;
1016
- accountId: string;
1017
- name: string;
1018
- description?: string;
1019
- status: "draft" | "published" | "on_sale" | "sold_out" | "completed" | "cancelled";
1020
- venueId?: string;
1021
- timezone: string;
1022
- onSaleDate?: string;
1023
- offSaleDate?: string;
1024
- occurrenceCount: number;
1025
- ticketCount: number;
1026
- productCount: number;
1027
- tags: string[];
1028
- isDeleted: boolean;
1029
- createdAt: string;
1030
- updatedAt: string;
1031
- createdBy?: string;
1023
+ event: components["schemas"]["EventInChannel"];
1024
+ channel: components["schemas"]["ChannelContext"] & unknown;
1032
1025
  }>;
1033
1026
  update: (id: string, request: {
1034
1027
  name?: string;
@@ -1042,8 +1035,11 @@ export declare class BackstageClient {
1042
1035
  venueId?: any;
1043
1036
  venueName?: any;
1044
1037
  timezone?: string;
1045
- onSaleDate?: any;
1046
- offSaleDate?: any;
1038
+ rules?: {
1039
+ discoverable?: components["schemas"]["ListingRule"];
1040
+ visible?: components["schemas"]["ListingRule"];
1041
+ sellable?: components["schemas"]["ListingRule"];
1042
+ };
1047
1043
  tags?: string[];
1048
1044
  ticketTypes?: {
1049
1045
  id?: string;
@@ -1079,8 +1075,7 @@ export declare class BackstageClient {
1079
1075
  status: "draft" | "published" | "on_sale" | "sold_out" | "completed" | "cancelled";
1080
1076
  venueId?: string;
1081
1077
  timezone: string;
1082
- onSaleDate?: string;
1083
- offSaleDate?: string;
1078
+ rules: components["schemas"]["ListingRules"];
1084
1079
  occurrenceCount: number;
1085
1080
  ticketCount: number;
1086
1081
  productCount: number;
@@ -2270,6 +2265,18 @@ export declare class BackstageClient {
2270
2265
  totalPages: number;
2271
2266
  };
2272
2267
  }>;
2268
+ match: (request: {
2269
+ email?: string;
2270
+ phone?: string;
2271
+ }) => Promise<{
2272
+ id: string;
2273
+ accountId: string | null;
2274
+ firstName: string | null;
2275
+ lastInitial: string | null;
2276
+ maskedEmail: string;
2277
+ maskedPhone: string | null;
2278
+ isBlocked: boolean;
2279
+ } | null>;
2273
2280
  get: (customerId: string) => Promise<{
2274
2281
  id: string;
2275
2282
  organisationId: string;
@@ -2865,7 +2872,7 @@ export declare class BackstageClient {
2865
2872
  printPass: (orderId: string, passId: string, request: {
2866
2873
  printerId: string;
2867
2874
  type?: "print.ticket" | "print.label" | "print.receipt";
2868
- }) => Promise<any>;
2875
+ }) => Promise<string>;
2869
2876
  };
2870
2877
  payments: {
2871
2878
  create: (request: {
@@ -3017,8 +3024,26 @@ export declare class BackstageClient {
3017
3024
  }>;
3018
3025
  getTicketlayerPay: (options?: {
3019
3026
  refresh?: "0" | "1" | "true" | "false";
3020
- }) => Promise<any>;
3021
- createTicketlayerPayOnboardingSession: () => Promise<any>;
3027
+ }) => Promise<{
3028
+ enabled: boolean;
3029
+ providerId: string | null;
3030
+ providerStatus: "active" | "inactive" | "pending_setup" | null;
3031
+ connectedAccountId: string | null;
3032
+ onboardingStatus: "not_started" | "in_progress" | "pending_verification" | "complete" | "restricted" | "disabled" | null;
3033
+ chargesEnabled: boolean;
3034
+ payoutsEnabled: boolean;
3035
+ detailsSubmitted: boolean;
3036
+ disabledReason: string | null;
3037
+ requirements: components["schemas"]["ConnectedAccountRequirements"];
3038
+ applicationFee: components["schemas"]["ApplicationFee"];
3039
+ lastSyncedAt: string | null;
3040
+ }>;
3041
+ createTicketlayerPayOnboardingSession: () => Promise<{
3042
+ clientSecret: string;
3043
+ expiresAt: string;
3044
+ publishableKey: string;
3045
+ connectedAccountId: string;
3046
+ }>;
3022
3047
  createTicketlayerPayOnboardingLink: (request: {
3023
3048
  returnUrl: string;
3024
3049
  refreshUrl: string;
@@ -3038,11 +3063,58 @@ export declare class BackstageClient {
3038
3063
  provider: components["schemas"]["StripeConnectProvider"];
3039
3064
  created: boolean;
3040
3065
  }>;
3041
- getStripeConnect: () => Promise<any>;
3042
- listAccounts: (providerId: string) => Promise<any>;
3066
+ getStripeConnect: () => Promise<{
3067
+ id: string;
3068
+ name: string;
3069
+ status: "active" | "inactive" | "pending_setup";
3070
+ defaultMode: "direct" | "connected";
3071
+ publishableKey: string | null;
3072
+ platformAccountId: string | null;
3073
+ platformCountry: string | null;
3074
+ platformCurrency: string | null;
3075
+ livemode: boolean;
3076
+ applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
3077
+ refundApplicationFee: boolean;
3078
+ webhookRegistered: boolean;
3079
+ connectWebhookRegistered: boolean;
3080
+ webhookRegistrationError: string | null;
3081
+ createdAt: string;
3082
+ updatedAt: string;
3083
+ } & Record<string, never>>;
3084
+ listAccounts: (providerId: string) => Promise<{
3085
+ id: string;
3086
+ providerId: string;
3087
+ accountId: string;
3088
+ mode: "direct" | "connected";
3089
+ connectedAccountId: string | null;
3090
+ onboardingStatus: "not_started" | "in_progress" | "pending_verification" | "complete" | "restricted" | "disabled" | null;
3091
+ chargesEnabled: boolean;
3092
+ payoutsEnabled: boolean;
3093
+ detailsSubmitted: boolean;
3094
+ disabledReason: string | null;
3095
+ requirements: components["schemas"]["ConnectedAccountRequirements"];
3096
+ lastSyncedAt: string | null;
3097
+ createdAt: string;
3098
+ updatedAt: string;
3099
+ }[]>;
3043
3100
  getAccount: (providerId: string, accountId: string, options?: {
3044
3101
  refresh?: "0" | "1" | "true" | "false";
3045
- }) => Promise<any>;
3102
+ }) => Promise<{
3103
+ id: string;
3104
+ providerId: string;
3105
+ accountId: string;
3106
+ mode: "direct" | "connected";
3107
+ connectedAccountId: string | null;
3108
+ onboardingStatus: "not_started" | "in_progress" | "pending_verification" | "complete" | "restricted" | "disabled" | null;
3109
+ chargesEnabled: boolean;
3110
+ payoutsEnabled: boolean;
3111
+ detailsSubmitted: boolean;
3112
+ disabledReason: string | null;
3113
+ requirements: components["schemas"]["ConnectedAccountRequirements"];
3114
+ lastSyncedAt: string | null;
3115
+ createdAt: string;
3116
+ updatedAt: string;
3117
+ } & Record<string, never>>;
3046
3118
  setAccountMode: (providerId: string, accountId: string, request: {
3047
3119
  mode: "direct" | "connected";
3048
3120
  connectedAccountId?: string;
@@ -3050,8 +3122,28 @@ export declare class BackstageClient {
3050
3122
  contactEmail?: string;
3051
3123
  country?: string;
3052
3124
  currency?: string;
3053
- }) => Promise<any>;
3054
- createAccountOnboardingSession: (providerId: string, accountId: string) => Promise<any>;
3125
+ }) => Promise<{
3126
+ id: string;
3127
+ providerId: string;
3128
+ accountId: string;
3129
+ mode: "direct" | "connected";
3130
+ connectedAccountId: string | null;
3131
+ onboardingStatus: "not_started" | "in_progress" | "pending_verification" | "complete" | "restricted" | "disabled" | null;
3132
+ chargesEnabled: boolean;
3133
+ payoutsEnabled: boolean;
3134
+ detailsSubmitted: boolean;
3135
+ disabledReason: string | null;
3136
+ requirements: components["schemas"]["ConnectedAccountRequirements"];
3137
+ lastSyncedAt: string | null;
3138
+ createdAt: string;
3139
+ updatedAt: string;
3140
+ }>;
3141
+ createAccountOnboardingSession: (providerId: string, accountId: string) => Promise<{
3142
+ clientSecret: string;
3143
+ expiresAt: string;
3144
+ publishableKey: string;
3145
+ connectedAccountId: string;
3146
+ }>;
3055
3147
  createAccountOnboardingLink: (providerId: string, accountId: string, request: {
3056
3148
  returnUrl: string;
3057
3149
  refreshUrl: string;
@@ -3287,6 +3379,7 @@ export declare class BackstageClient {
3287
3379
  id: string;
3288
3380
  channelId: string;
3289
3381
  keyType: "publishable" | "secret";
3382
+ mode: "live" | "test";
3290
3383
  name: string;
3291
3384
  publishableKey: string | null;
3292
3385
  last4: string;
@@ -3306,75 +3399,67 @@ export declare class BackstageClient {
3306
3399
  listings: {
3307
3400
  create: (request: {
3308
3401
  eventId: string;
3309
- saleStartsAt?: string;
3310
- saleEndsAt?: string;
3402
+ rules?: {
3403
+ discoverable?: any;
3404
+ visible?: any;
3405
+ sellable?: any;
3406
+ };
3311
3407
  }) => Promise<{
3312
3408
  id: string;
3313
- organisationId: string;
3314
3409
  channelId: string;
3315
3410
  eventId: string;
3316
- saleStartsAt: string | null;
3317
- saleEndsAt: string | null;
3318
- isActive: boolean;
3319
- createdBy: string | null;
3411
+ rules: components["schemas"]["ListingRuleOverrides"];
3412
+ effective: components["schemas"]["ListingRules"];
3413
+ state: components["schemas"]["ListingState"];
3320
3414
  createdAt: string;
3321
3415
  updatedAt: string;
3322
3416
  }>;
3323
3417
  list: () => Promise<{
3324
3418
  id: string;
3325
- organisationId: string;
3326
3419
  channelId: string;
3327
3420
  eventId: string;
3328
- saleStartsAt: string | null;
3329
- saleEndsAt: string | null;
3330
- isActive: boolean;
3331
- createdBy: string | null;
3421
+ rules: components["schemas"]["ListingRuleOverrides"];
3422
+ effective: components["schemas"]["ListingRules"];
3423
+ state: components["schemas"]["ListingState"];
3332
3424
  createdAt: string;
3333
3425
  updatedAt: string;
3334
3426
  }[]>;
3335
- delete: (listingId: string) => Promise<boolean>;
3336
- };
3337
- carts: {
3338
- create: (request: {
3339
- customerId?: string;
3340
- metadata?: Record<string, any>;
3341
- }) => Promise<{
3342
- cart: components["schemas"]["StaffCart"];
3343
- items: components["schemas"]["StaffCartItem"][];
3344
- }>;
3345
- get: (cartId: string) => Promise<{
3346
- cart: components["schemas"]["StaffCart"];
3347
- items: components["schemas"]["StaffCartItem"][];
3348
- }>;
3349
- addItem: (cartId: string, request: {
3350
- eventOccurrenceId: string;
3351
- categoryId: string;
3352
- ticketTypeId: string;
3353
- quantity?: number;
3354
- eventLayoutAreaId?: string;
3355
- eventLayoutSeatIds?: string[];
3356
- }) => Promise<{
3357
- cart: components["schemas"]["StaffCart"];
3358
- items: components["schemas"]["StaffCartItem"][];
3359
- }>;
3360
- removeItem: (cartId: string, itemId: string) => Promise<{
3361
- cart: components["schemas"]["StaffCart"];
3362
- items: components["schemas"]["StaffCartItem"][];
3363
- }>;
3364
- checkout: (cartId: string, request: {
3365
- customerId?: string;
3366
- customerNotes?: string;
3367
- metadata?: Record<string, any>;
3368
- discount?: {
3369
- amount?: number;
3370
- percent?: number;
3371
- label?: string;
3372
- reason: string;
3427
+ update: (listingId: string, request: {
3428
+ rules?: {
3429
+ discoverable?: any;
3430
+ visible?: any;
3431
+ sellable?: any;
3373
3432
  };
3374
3433
  }) => Promise<{
3375
- cart: components["schemas"]["StaffCart"];
3376
- order: components["schemas"]["StaffSalesOrder"];
3434
+ id: string;
3435
+ channelId: string;
3436
+ eventId: string;
3437
+ rules: components["schemas"]["ListingRuleOverrides"];
3438
+ effective: components["schemas"]["ListingRules"];
3439
+ state: components["schemas"]["ListingState"];
3440
+ createdAt: string;
3441
+ updatedAt: string;
3442
+ }>;
3443
+ delete: (listingId: string) => Promise<boolean>;
3444
+ };
3445
+ channelaccess: {
3446
+ list: () => Promise<{
3447
+ id: string;
3448
+ organisationId: string;
3449
+ salesChannelId: string;
3450
+ subjectType: "user" | "role";
3451
+ subjectId: string;
3452
+ createdAt: string;
3453
+ }[]>;
3454
+ grant: (request: GrantSalesChannelAccessRequest) => Promise<{
3455
+ id: string;
3456
+ organisationId: string;
3457
+ salesChannelId: string;
3458
+ subjectType: "user" | "role";
3459
+ subjectId: string;
3460
+ createdAt: string;
3377
3461
  }>;
3462
+ revoke: (accessId: string) => Promise<boolean>;
3378
3463
  };
3379
3464
  }) & {
3380
3465
  create: (request: {
@@ -3415,6 +3500,7 @@ export declare class BackstageClient {
3415
3500
  checkoutTtlSeconds?: number;
3416
3501
  receivingAccountId?: string;
3417
3502
  feeProfileId?: string;
3503
+ autoList?: boolean;
3418
3504
  }) => Promise<{
3419
3505
  id: string;
3420
3506
  organisationId: string;
@@ -3456,6 +3542,7 @@ export declare class BackstageClient {
3456
3542
  receivingAccountId: string;
3457
3543
  feeProfileId: string | null;
3458
3544
  brandId: string | null;
3545
+ autoList: boolean;
3459
3546
  isActive: boolean;
3460
3547
  isDeleted: boolean;
3461
3548
  deletedAt: string | null;
@@ -3503,6 +3590,7 @@ export declare class BackstageClient {
3503
3590
  receivingAccountId: string;
3504
3591
  feeProfileId: string | null;
3505
3592
  brandId: string | null;
3593
+ autoList: boolean;
3506
3594
  isActive: boolean;
3507
3595
  isDeleted: boolean;
3508
3596
  deletedAt: string | null;
@@ -3550,6 +3638,7 @@ export declare class BackstageClient {
3550
3638
  receivingAccountId: string;
3551
3639
  feeProfileId: string | null;
3552
3640
  brandId: string | null;
3641
+ autoList: boolean;
3553
3642
  isActive: boolean;
3554
3643
  isDeleted: boolean;
3555
3644
  deletedAt: string | null;
@@ -3593,6 +3682,7 @@ export declare class BackstageClient {
3593
3682
  feeProfileId?: any;
3594
3683
  paymentProviderId?: any;
3595
3684
  brandId?: any;
3685
+ autoList?: boolean;
3596
3686
  isActive?: boolean;
3597
3687
  }) => Promise<{
3598
3688
  id: string;
@@ -3635,6 +3725,7 @@ export declare class BackstageClient {
3635
3725
  receivingAccountId: string;
3636
3726
  feeProfileId: string | null;
3637
3727
  brandId: string | null;
3728
+ autoList: boolean;
3638
3729
  isActive: boolean;
3639
3730
  isDeleted: boolean;
3640
3731
  deletedAt: string | null;
@@ -3642,62 +3733,57 @@ export declare class BackstageClient {
3642
3733
  updatedAt: string;
3643
3734
  }>;
3644
3735
  delete: (channelId: string) => Promise<boolean>;
3645
- getCatalogue: (channelId: string) => Promise<{
3646
- channel: components["schemas"]["SalesChannelSummary"];
3647
- listings: components["schemas"]["SalesListing"][];
3648
- }>;
3649
- getCatalogueEvent: (channelId: string, eventId: string) => Promise<{
3650
- id: string;
3651
- name: string;
3652
- subtitle: string | null;
3653
- description: string | null;
3654
- shortDescription: string | null;
3655
- status: string;
3656
- imageUrl: string | null;
3657
- heroImageUrl: string | null;
3658
- presentation: {
3659
- heroLayout?: {
3660
- type: "hero" | "cinema";
3661
- size: "small" | "medium" | "large";
3662
- };
3663
- cinemaGradient?: {
3664
- strength: 20 | 50 | 70;
3665
- position: "bottom" | "center";
3666
- };
3667
- twoColumnSplit?: [number, number];
3668
- navbar?: {
3669
- transparent?: boolean;
3670
- };
3671
- buttonSize?: "small" | "medium" | "large";
3672
- } | null;
3673
- venueId: string | null;
3674
- venueName: string | null;
3675
- venueCity: string | null;
3676
- priceFrom: number | null;
3677
- currency: string | null;
3678
- timezone: string;
3679
- occurrences: {
3680
- id: string;
3681
- startsAt: string | null;
3682
- endsAt: string | null;
3683
- timezone: string;
3684
- startDate: string;
3685
- startTime: string;
3686
- endDate: string;
3687
- endTime: string;
3688
- status: string;
3689
- ticketTypes: {
3690
- ticketTypeId: string;
3691
- ticketTypeName: string;
3692
- description: string | null;
3693
- categoryId: string;
3694
- categoryName: string;
3695
- unitPrice: number;
3696
- currency: string;
3697
- }[];
3736
+ mySalesChannels: () => Promise<{
3737
+ scope: "channel" | "all";
3738
+ channels: components["schemas"]["SalesChannelSummary"][];
3739
+ permissions: {
3740
+ permission: string;
3741
+ scope: "channel" | "all";
3698
3742
  }[];
3699
3743
  }>;
3700
3744
  };
3745
+ carts: {
3746
+ create: (request: {
3747
+ customerId?: string;
3748
+ metadata?: Record<string, any>;
3749
+ }) => Promise<{
3750
+ cart: components["schemas"]["StaffCart"];
3751
+ items: components["schemas"]["StaffCartItem"][];
3752
+ }>;
3753
+ get: (cartId: string) => Promise<{
3754
+ cart: components["schemas"]["StaffCart"];
3755
+ items: components["schemas"]["StaffCartItem"][];
3756
+ }>;
3757
+ addItem: (cartId: string, request: {
3758
+ eventOccurrenceId: string;
3759
+ categoryId: string;
3760
+ ticketTypeId: string;
3761
+ quantity?: number;
3762
+ eventLayoutAreaId?: string;
3763
+ eventLayoutSeatIds?: string[];
3764
+ }) => Promise<{
3765
+ cart: components["schemas"]["StaffCart"];
3766
+ items: components["schemas"]["StaffCartItem"][];
3767
+ }>;
3768
+ removeItem: (cartId: string, itemId: string) => Promise<{
3769
+ cart: components["schemas"]["StaffCart"];
3770
+ items: components["schemas"]["StaffCartItem"][];
3771
+ }>;
3772
+ checkout: (cartId: string, request: {
3773
+ customerId?: string;
3774
+ customerNotes?: string;
3775
+ metadata?: Record<string, any>;
3776
+ discount?: {
3777
+ amount?: number;
3778
+ percent?: number;
3779
+ label?: string;
3780
+ reason: string;
3781
+ };
3782
+ }) => Promise<{
3783
+ cart: components["schemas"]["StaffCart"];
3784
+ order: components["schemas"]["StaffSalesOrder"];
3785
+ }>;
3786
+ };
3701
3787
  presaleCodes: {
3702
3788
  create: (request: {
3703
3789
  accountId: string;
@@ -4389,9 +4475,81 @@ export declare class BackstageClient {
4389
4475
  validFrom?: string;
4390
4476
  validUntil?: string;
4391
4477
  isTest?: boolean;
4392
- }) => Promise<any>;
4393
- list: () => Promise<any>;
4394
- get: (configId: string) => Promise<any>;
4478
+ }) => Promise<{
4479
+ id: string;
4480
+ name: string;
4481
+ status: string;
4482
+ accountId: string;
4483
+ eventFilter: {
4484
+ mode: "all" | "events" | "occurrences";
4485
+ eventIds?: string[];
4486
+ occurrenceIds?: string[];
4487
+ };
4488
+ entitlementFilter: {
4489
+ types?: string[];
4490
+ ticketTypeIds?: string[];
4491
+ entitlementIds?: string[];
4492
+ tags?: string[];
4493
+ } | null;
4494
+ allowedKinds: ("validate" | "redeem" | "reverse")[];
4495
+ gates: string[] | null;
4496
+ validFrom: string | null;
4497
+ validUntil: string | null;
4498
+ isTest: boolean;
4499
+ deviceIds?: string[];
4500
+ createdAt: string;
4501
+ updatedAt: string;
4502
+ }>;
4503
+ list: () => Promise<{
4504
+ id: string;
4505
+ name: string;
4506
+ status: string;
4507
+ accountId: string;
4508
+ eventFilter: {
4509
+ mode: "all" | "events" | "occurrences";
4510
+ eventIds?: string[];
4511
+ occurrenceIds?: string[];
4512
+ };
4513
+ entitlementFilter: {
4514
+ types?: string[];
4515
+ ticketTypeIds?: string[];
4516
+ entitlementIds?: string[];
4517
+ tags?: string[];
4518
+ } | null;
4519
+ allowedKinds: ("validate" | "redeem" | "reverse")[];
4520
+ gates: string[] | null;
4521
+ validFrom: string | null;
4522
+ validUntil: string | null;
4523
+ isTest: boolean;
4524
+ deviceIds?: string[];
4525
+ createdAt: string;
4526
+ updatedAt: string;
4527
+ }[]>;
4528
+ get: (configId: string) => Promise<{
4529
+ id: string;
4530
+ name: string;
4531
+ status: string;
4532
+ accountId: string;
4533
+ eventFilter: {
4534
+ mode: "all" | "events" | "occurrences";
4535
+ eventIds?: string[];
4536
+ occurrenceIds?: string[];
4537
+ };
4538
+ entitlementFilter: {
4539
+ types?: string[];
4540
+ ticketTypeIds?: string[];
4541
+ entitlementIds?: string[];
4542
+ tags?: string[];
4543
+ } | null;
4544
+ allowedKinds: ("validate" | "redeem" | "reverse")[];
4545
+ gates: string[] | null;
4546
+ validFrom: string | null;
4547
+ validUntil: string | null;
4548
+ isTest: boolean;
4549
+ deviceIds?: string[];
4550
+ createdAt: string;
4551
+ updatedAt: string;
4552
+ }>;
4395
4553
  update: (configId: string, request: {
4396
4554
  accountId?: string;
4397
4555
  name?: string;
@@ -4412,17 +4570,80 @@ export declare class BackstageClient {
4412
4570
  validUntil?: string;
4413
4571
  isTest?: boolean;
4414
4572
  status?: "active" | "archived";
4415
- }) => Promise<any>;
4416
- delete: (configId: string) => Promise<any>;
4573
+ }) => Promise<{
4574
+ id: string;
4575
+ name: string;
4576
+ status: string;
4577
+ accountId: string;
4578
+ eventFilter: {
4579
+ mode: "all" | "events" | "occurrences";
4580
+ eventIds?: string[];
4581
+ occurrenceIds?: string[];
4582
+ };
4583
+ entitlementFilter: {
4584
+ types?: string[];
4585
+ ticketTypeIds?: string[];
4586
+ entitlementIds?: string[];
4587
+ tags?: string[];
4588
+ } | null;
4589
+ allowedKinds: ("validate" | "redeem" | "reverse")[];
4590
+ gates: string[] | null;
4591
+ validFrom: string | null;
4592
+ validUntil: string | null;
4593
+ isTest: boolean;
4594
+ deviceIds?: string[];
4595
+ createdAt: string;
4596
+ updatedAt: string;
4597
+ }>;
4598
+ delete: (configId: string) => Promise<boolean>;
4417
4599
  setDevices: (configId: string, request: {
4418
4600
  deviceIds: string[];
4419
- }) => Promise<any>;
4601
+ }) => Promise<string[]>;
4420
4602
  };
4421
4603
  scan: {
4422
- config: () => Promise<any>;
4604
+ config: () => Promise<{
4605
+ id: string;
4606
+ name: string;
4607
+ eventFilter: {
4608
+ [key: string]: unknown;
4609
+ };
4610
+ entitlementFilter: {
4611
+ [key: string]: unknown;
4612
+ } | null;
4613
+ allowedKinds: string[];
4614
+ gates: string[] | null;
4615
+ validFrom: string | null;
4616
+ validUntil: string | null;
4617
+ isTest: boolean;
4618
+ configVersion: string;
4619
+ }>;
4423
4620
  manifest: (options?: {
4424
4621
  since?: string;
4425
- }) => Promise<any>;
4622
+ }) => Promise<{
4623
+ entitlements: {
4624
+ barcode: string;
4625
+ passId: string;
4626
+ entitlementId: string;
4627
+ occurrenceId: string | null;
4628
+ holderName: string | null;
4629
+ ticketTypeName: string;
4630
+ type: string;
4631
+ seatLabel: string | null;
4632
+ orderRef: string;
4633
+ passStatus: string;
4634
+ entitlementStatus: string;
4635
+ redemptionLimit: number | null;
4636
+ redemptionCount: number;
4637
+ rulesSummary?: unknown;
4638
+ updatedAt: string;
4639
+ }[];
4640
+ redemptions: {
4641
+ [key: string]: unknown;
4642
+ }[];
4643
+ nextCursor: string;
4644
+ hasMore: boolean;
4645
+ full: boolean;
4646
+ }>;
4426
4647
  operations: (request: {
4427
4648
  operations: ({
4428
4649
  opId: string;
@@ -4441,7 +4662,24 @@ export declare class BackstageClient {
4441
4662
  };
4442
4663
  hopPath?: string[];
4443
4664
  })[];
4444
- }) => Promise<any>;
4665
+ }) => Promise<{
4666
+ opId: string;
4667
+ outcome: "valid" | "duplicate" | "rejected" | "reversed";
4668
+ reason?: string;
4669
+ holderName?: string | null;
4670
+ ticketTypeName?: string;
4671
+ seatLabel?: string | null;
4672
+ orderRef?: string;
4673
+ entitlement?: {
4674
+ [key: string]: unknown;
4675
+ };
4676
+ conflict?: {
4677
+ [key: string]: unknown;
4678
+ };
4679
+ redemption?: {
4680
+ [key: string]: unknown;
4681
+ };
4682
+ }[]>;
4445
4683
  };
4446
4684
  scans: {
4447
4685
  list: (options?: {
@@ -4452,13 +4690,34 @@ export declare class BackstageClient {
4452
4690
  from?: string;
4453
4691
  to?: string;
4454
4692
  limit?: number;
4455
- }) => Promise<any>;
4456
- reverse: (redemptionId: string, request: {
4457
- reason?: string;
4458
- }) => Promise<any>;
4459
- };
4460
- assets: {
4461
- list: (options?: {
4693
+ }) => Promise<{
4694
+ id: string;
4695
+ status: string;
4696
+ entitlementId: string;
4697
+ passId: string;
4698
+ barcode: string;
4699
+ holderName: string | null;
4700
+ ticketTypeName: string;
4701
+ seatLabel: string | null;
4702
+ occurrenceId: string | null;
4703
+ gate: string | null;
4704
+ deviceId: string | null;
4705
+ reason: string | null;
4706
+ occurredAt: string | null;
4707
+ createdAt: string;
4708
+ }[]>;
4709
+ reverse: (redemptionId: string, request: {
4710
+ reason?: string;
4711
+ }) => Promise<{
4712
+ id: string;
4713
+ status: string;
4714
+ entitlementId: string;
4715
+ reversedAt: string | null;
4716
+ reversalReason: string | null;
4717
+ }>;
4718
+ };
4719
+ assets: {
4720
+ list: (options?: {
4462
4721
  q?: string;
4463
4722
  purpose?: string;
4464
4723
  ownerType?: string;
@@ -4560,8 +4819,27 @@ export declare class BackstageClient {
4560
4819
  hostname?: string;
4561
4820
  arch?: string;
4562
4821
  };
4563
- }) => Promise<any>;
4564
- getStatus: (pairingId: string) => Promise<any>;
4822
+ }) => Promise<{
4823
+ pairingId: string;
4824
+ userCode: string;
4825
+ deviceCode: string;
4826
+ verificationUrl: string;
4827
+ verificationUrlComplete: string;
4828
+ expiresAt: string;
4829
+ pollIntervalSeconds: number;
4830
+ }>;
4831
+ getStatus: (pairingId: string) => Promise<{
4832
+ status: string;
4833
+ claimedBy?: {
4834
+ organisationId: string;
4835
+ organisationName?: string;
4836
+ location?: {
4837
+ id: string;
4838
+ name: string;
4839
+ };
4840
+ };
4841
+ grantSummary?: string;
4842
+ }>;
4565
4843
  claim: (request: {
4566
4844
  userCode: string;
4567
4845
  name: string;
@@ -4571,23 +4849,64 @@ export declare class BackstageClient {
4571
4849
  accountId: string;
4572
4850
  roleId: string;
4573
4851
  }[];
4574
- }) => Promise<any>;
4852
+ }) => Promise<{
4853
+ pairingId: string;
4854
+ status: string;
4855
+ deviceInfo: {
4856
+ type: string;
4857
+ name?: string;
4858
+ platform?: {
4859
+ [key: string]: unknown;
4860
+ };
4861
+ };
4862
+ }>;
4575
4863
  confirm: (pairingId: string, request: {
4576
4864
  deviceCode: string;
4577
- }) => Promise<any>;
4865
+ }) => Promise<{
4866
+ deviceId: string;
4867
+ deviceSecret: string;
4868
+ }>;
4578
4869
  reject: (pairingId: string, request: {
4579
4870
  deviceCode: string;
4580
- }) => Promise<any>;
4871
+ }) => Promise<string>;
4581
4872
  };
4582
4873
  deviceAuth: {
4583
4874
  issueToken: (request: {
4584
4875
  deviceId: string;
4585
4876
  deviceSecret: string;
4586
- }) => Promise<any>;
4587
- jwks: () => Promise<any>;
4877
+ }) => Promise<{
4878
+ token: string;
4879
+ expiresInSeconds: number;
4880
+ }>;
4881
+ jwks: () => Promise<{
4882
+ keys: {
4883
+ [key: string]: unknown;
4884
+ }[];
4885
+ version: number;
4886
+ }>;
4588
4887
  };
4589
4888
  deviceSelf: {
4590
- getMe: () => Promise<any>;
4889
+ getMe: () => Promise<{
4890
+ device: {
4891
+ id: string;
4892
+ name: string;
4893
+ type: string;
4894
+ organisationId: string;
4895
+ accountId: string;
4896
+ location: {
4897
+ id: string;
4898
+ name: string;
4899
+ } | null;
4900
+ };
4901
+ roles: {
4902
+ accountId: string;
4903
+ roleId: string;
4904
+ }[];
4905
+ config: {
4906
+ corsAllowlist: string[];
4907
+ localHostname: string | null;
4908
+ };
4909
+ }>;
4591
4910
  heartbeat: (request: {
4592
4911
  appVersion?: string;
4593
4912
  localPort?: number;
@@ -4599,7 +4918,12 @@ export declare class BackstageClient {
4599
4918
  clientKey: string;
4600
4919
  status: Record<string, any>;
4601
4920
  }[];
4602
- }) => Promise<any>;
4921
+ }) => Promise<{
4922
+ serverTime: string;
4923
+ commandsPending: number;
4924
+ certificateRenewalDue: boolean;
4925
+ jwksVersion: number;
4926
+ }>;
4603
4927
  declarePeripherals: (request: {
4604
4928
  peripherals: ({
4605
4929
  clientKey: string;
@@ -4615,17 +4939,29 @@ export declare class BackstageClient {
4615
4939
  };
4616
4940
  provider?: string;
4617
4941
  })[];
4618
- }) => Promise<any>;
4942
+ }) => Promise<{
4943
+ clientKey: string;
4944
+ deviceId: string;
4945
+ }[]>;
4619
4946
  fetchCommands: (options?: {
4620
4947
  wait?: number;
4621
- }) => Promise<any>;
4948
+ }) => Promise<{
4949
+ id: string;
4950
+ type: string;
4951
+ payload: {
4952
+ [key: string]: unknown;
4953
+ };
4954
+ peripheralId: string | null;
4955
+ expiresAt: string;
4956
+ createdAt: string;
4957
+ }[]>;
4622
4958
  reportProgress: (commandId: string, request: {
4623
4959
  progress: Record<string, any>;
4624
- }) => Promise<any>;
4960
+ }) => Promise<boolean>;
4625
4961
  reportResult: (commandId: string, request: {
4626
4962
  status: "completed" | "failed";
4627
4963
  result?: Record<string, any>;
4628
- }) => Promise<any>;
4964
+ }) => Promise<string>;
4629
4965
  ingestEvents: (request: {
4630
4966
  events: {
4631
4967
  id: string;
@@ -4633,63 +4969,375 @@ export declare class BackstageClient {
4633
4969
  occurredAt: string;
4634
4970
  payload?: Record<string, any>;
4635
4971
  }[];
4636
- }) => Promise<any>;
4637
- getCertificate: () => Promise<any>;
4972
+ }) => Promise<{
4973
+ id: string;
4974
+ outcome: "accepted" | "duplicate";
4975
+ }[]>;
4976
+ getCertificate: () => Promise<{
4977
+ hostname: string;
4978
+ certPem: string;
4979
+ privateKeyPem: string;
4980
+ notAfter: string;
4981
+ }>;
4638
4982
  };
4639
4983
  devices: {
4640
- printers: () => Promise<any>;
4641
- mediaCatalog: () => Promise<any>;
4642
- getCommand: (commandId: string) => Promise<any>;
4984
+ printers: () => Promise<{
4985
+ id: string;
4986
+ name: string;
4987
+ location: {
4988
+ id: string;
4989
+ name: string;
4990
+ } | null;
4991
+ online: boolean;
4992
+ paperOut: boolean;
4993
+ detached: boolean;
4994
+ capabilities: {
4995
+ [key: string]: unknown;
4996
+ } | null;
4997
+ hostDeviceId: string | null;
4998
+ hostName: string | null;
4999
+ accountId: string;
5000
+ }[]>;
5001
+ mediaCatalog: () => Promise<{
5002
+ capabilities: {
5003
+ id: string;
5004
+ label: string;
5005
+ mediaKind: string;
5006
+ }[];
5007
+ media: {
5008
+ id: string;
5009
+ capability: string;
5010
+ label: string;
5011
+ widthMm: number;
5012
+ heightMm?: number;
5013
+ continuous: boolean;
5014
+ }[];
5015
+ }>;
5016
+ getCommand: (commandId: string) => Promise<{
5017
+ id: string;
5018
+ deviceId: string;
5019
+ peripheralId: string | null;
5020
+ type: string;
5021
+ status: string;
5022
+ payload: {
5023
+ [key: string]: unknown;
5024
+ };
5025
+ idempotencyKey: string | null;
5026
+ progress: {
5027
+ [key: string]: unknown;
5028
+ } | null;
5029
+ result: {
5030
+ [key: string]: unknown;
5031
+ } | null;
5032
+ createdBy: {
5033
+ type: string;
5034
+ id: string;
5035
+ } | null;
5036
+ expiresAt: string;
5037
+ createdAt: string;
5038
+ deliveredAt: string | null;
5039
+ completedAt: string | null;
5040
+ }>;
4643
5041
  list: (options?: {
4644
5042
  accountId?: string;
4645
5043
  type?: string;
4646
5044
  status?: "active" | "revoked";
4647
5045
  connectivity?: "unknown" | "online" | "offline";
4648
5046
  locationId?: string;
4649
- }) => Promise<any>;
4650
- get: (deviceId: string) => Promise<any>;
5047
+ }) => Promise<{
5048
+ id: string;
5049
+ name: string;
5050
+ type: string;
5051
+ status: string;
5052
+ connectivity: string;
5053
+ accountId: string;
5054
+ location: {
5055
+ id: string;
5056
+ name: string;
5057
+ } | null;
5058
+ hostDeviceId: string | null;
5059
+ attachment: string | null;
5060
+ clientKey: string | null;
5061
+ vendor: string | null;
5062
+ model: string | null;
5063
+ capabilities: {
5064
+ [key: string]: unknown;
5065
+ } | null;
5066
+ liveStatus: {
5067
+ [key: string]: unknown;
5068
+ } | null;
5069
+ platform: {
5070
+ [key: string]: unknown;
5071
+ } | null;
5072
+ appVersion: string | null;
5073
+ local: {
5074
+ hostname: string | null;
5075
+ port: number | null;
5076
+ } | null;
5077
+ lastSeenAt: string | null;
5078
+ online: boolean;
5079
+ createdAt: string;
5080
+ updatedAt: string;
5081
+ peripherals?: {
5082
+ id: string;
5083
+ name: string;
5084
+ type: string;
5085
+ }[];
5086
+ }[]>;
5087
+ get: (deviceId: string) => Promise<{
5088
+ id: string;
5089
+ name: string;
5090
+ type: string;
5091
+ status: string;
5092
+ connectivity: string;
5093
+ accountId: string;
5094
+ location: {
5095
+ id: string;
5096
+ name: string;
5097
+ } | null;
5098
+ hostDeviceId: string | null;
5099
+ attachment: string | null;
5100
+ clientKey: string | null;
5101
+ vendor: string | null;
5102
+ model: string | null;
5103
+ capabilities: {
5104
+ [key: string]: unknown;
5105
+ } | null;
5106
+ liveStatus: {
5107
+ [key: string]: unknown;
5108
+ } | null;
5109
+ platform: {
5110
+ [key: string]: unknown;
5111
+ } | null;
5112
+ appVersion: string | null;
5113
+ local: {
5114
+ hostname: string | null;
5115
+ port: number | null;
5116
+ } | null;
5117
+ lastSeenAt: string | null;
5118
+ online: boolean;
5119
+ createdAt: string;
5120
+ updatedAt: string;
5121
+ peripherals?: {
5122
+ id: string;
5123
+ name: string;
5124
+ type: string;
5125
+ }[];
5126
+ }>;
4651
5127
  update: (deviceId: string, request: {
4652
5128
  name?: string;
4653
5129
  locationId?: any;
4654
- }) => Promise<any>;
4655
- delete: (deviceId: string) => Promise<any>;
4656
- revoke: (deviceId: string) => Promise<any>;
5130
+ }) => Promise<{
5131
+ id: string;
5132
+ name: string;
5133
+ type: string;
5134
+ status: string;
5135
+ connectivity: string;
5136
+ accountId: string;
5137
+ location: {
5138
+ id: string;
5139
+ name: string;
5140
+ } | null;
5141
+ hostDeviceId: string | null;
5142
+ attachment: string | null;
5143
+ clientKey: string | null;
5144
+ vendor: string | null;
5145
+ model: string | null;
5146
+ capabilities: {
5147
+ [key: string]: unknown;
5148
+ } | null;
5149
+ liveStatus: {
5150
+ [key: string]: unknown;
5151
+ } | null;
5152
+ platform: {
5153
+ [key: string]: unknown;
5154
+ } | null;
5155
+ appVersion: string | null;
5156
+ local: {
5157
+ hostname: string | null;
5158
+ port: number | null;
5159
+ } | null;
5160
+ lastSeenAt: string | null;
5161
+ online: boolean;
5162
+ createdAt: string;
5163
+ updatedAt: string;
5164
+ peripherals?: {
5165
+ id: string;
5166
+ name: string;
5167
+ type: string;
5168
+ }[];
5169
+ }>;
5170
+ delete: (deviceId: string) => Promise<boolean>;
5171
+ revoke: (deviceId: string) => Promise<{
5172
+ id: string;
5173
+ name: string;
5174
+ type: string;
5175
+ status: string;
5176
+ connectivity: string;
5177
+ accountId: string;
5178
+ location: {
5179
+ id: string;
5180
+ name: string;
5181
+ } | null;
5182
+ hostDeviceId: string | null;
5183
+ attachment: string | null;
5184
+ clientKey: string | null;
5185
+ vendor: string | null;
5186
+ model: string | null;
5187
+ capabilities: {
5188
+ [key: string]: unknown;
5189
+ } | null;
5190
+ liveStatus: {
5191
+ [key: string]: unknown;
5192
+ } | null;
5193
+ platform: {
5194
+ [key: string]: unknown;
5195
+ } | null;
5196
+ appVersion: string | null;
5197
+ local: {
5198
+ hostname: string | null;
5199
+ port: number | null;
5200
+ } | null;
5201
+ lastSeenAt: string | null;
5202
+ online: boolean;
5203
+ createdAt: string;
5204
+ updatedAt: string;
5205
+ peripherals?: {
5206
+ id: string;
5207
+ name: string;
5208
+ type: string;
5209
+ }[];
5210
+ }>;
4657
5211
  assignRoles: (deviceId: string, request: {
4658
5212
  accountRoles: {
4659
5213
  accountId: string;
4660
5214
  roleId: string;
4661
5215
  }[];
4662
- }) => Promise<any>;
5216
+ }) => Promise<{
5217
+ accountId: string;
5218
+ roleId: string;
5219
+ }[]>;
4663
5220
  rotateCredential: (deviceId: string, request: {
4664
5221
  graceSeconds?: number;
4665
- }) => Promise<any>;
5222
+ }) => Promise<{
5223
+ credentialId: string;
5224
+ deviceSecret: string;
5225
+ }>;
4666
5226
  dispatchCommand: (deviceId: string, request: {
4667
5227
  type: string;
4668
5228
  payload?: Record<string, any>;
4669
5229
  peripheralId?: string;
4670
5230
  idempotencyKey?: string;
4671
- }) => Promise<any>;
4672
- listCommands: (deviceId: string) => Promise<any>;
4673
- listEvents: (deviceId: string) => Promise<any>;
5231
+ }) => Promise<{
5232
+ id: string;
5233
+ deviceId: string;
5234
+ peripheralId: string | null;
5235
+ type: string;
5236
+ status: string;
5237
+ payload: {
5238
+ [key: string]: unknown;
5239
+ };
5240
+ idempotencyKey: string | null;
5241
+ progress: {
5242
+ [key: string]: unknown;
5243
+ } | null;
5244
+ result: {
5245
+ [key: string]: unknown;
5246
+ } | null;
5247
+ createdBy: {
5248
+ type: string;
5249
+ id: string;
5250
+ } | null;
5251
+ expiresAt: string;
5252
+ createdAt: string;
5253
+ deliveredAt: string | null;
5254
+ completedAt: string | null;
5255
+ }>;
5256
+ listCommands: (deviceId: string) => Promise<{
5257
+ id: string;
5258
+ deviceId: string;
5259
+ peripheralId: string | null;
5260
+ type: string;
5261
+ status: string;
5262
+ payload: {
5263
+ [key: string]: unknown;
5264
+ };
5265
+ idempotencyKey: string | null;
5266
+ progress: {
5267
+ [key: string]: unknown;
5268
+ } | null;
5269
+ result: {
5270
+ [key: string]: unknown;
5271
+ } | null;
5272
+ createdBy: {
5273
+ type: string;
5274
+ id: string;
5275
+ } | null;
5276
+ expiresAt: string;
5277
+ createdAt: string;
5278
+ deliveredAt: string | null;
5279
+ completedAt: string | null;
5280
+ }[]>;
5281
+ listEvents: (deviceId: string) => Promise<{
5282
+ id: string;
5283
+ type: string;
5284
+ payload: {
5285
+ [key: string]: unknown;
5286
+ };
5287
+ occurredAt: string;
5288
+ receivedAt: string;
5289
+ }[]>;
4674
5290
  mintLocalToken: (deviceId: string, request: {
4675
5291
  allowedCommandTypes?: string[];
4676
5292
  ttlSeconds?: number;
4677
5293
  accountIds?: string[];
4678
- }) => Promise<any>;
5294
+ }) => Promise<{
5295
+ token: string;
5296
+ tokenId: string;
5297
+ expiresAt: string;
5298
+ }>;
4679
5299
  };
4680
5300
  locations: {
4681
5301
  create: (request: {
4682
5302
  accountId: string;
4683
5303
  name: string;
4684
5304
  description?: string;
4685
- }) => Promise<any>;
4686
- list: () => Promise<any>;
4687
- get: (locationId: string) => Promise<any>;
5305
+ }) => Promise<{
5306
+ id: string;
5307
+ name: string;
5308
+ description: string | null;
5309
+ accountId: string;
5310
+ createdAt: string;
5311
+ updatedAt: string;
5312
+ }>;
5313
+ list: () => Promise<{
5314
+ id: string;
5315
+ name: string;
5316
+ description: string | null;
5317
+ accountId: string;
5318
+ createdAt: string;
5319
+ updatedAt: string;
5320
+ }[]>;
5321
+ get: (locationId: string) => Promise<{
5322
+ id: string;
5323
+ name: string;
5324
+ description: string | null;
5325
+ accountId: string;
5326
+ createdAt: string;
5327
+ updatedAt: string;
5328
+ }>;
4688
5329
  update: (locationId: string, request: {
4689
5330
  name?: string;
4690
5331
  description?: any;
4691
- }) => Promise<any>;
4692
- delete: (locationId: string) => Promise<any>;
5332
+ }) => Promise<{
5333
+ id: string;
5334
+ name: string;
5335
+ description: string | null;
5336
+ accountId: string;
5337
+ createdAt: string;
5338
+ updatedAt: string;
5339
+ }>;
5340
+ delete: (locationId: string) => Promise<boolean>;
4693
5341
  };
4694
5342
  reports: {
4695
5343
  summary: (options?: {
@@ -5063,31 +5711,160 @@ export declare class BackstageClient {
5063
5711
  }>;
5064
5712
  };
5065
5713
  webhookEndpoints: {
5066
- create: (request: CreateWebhookEndpoint) => Promise<any>;
5714
+ create: (request: CreateWebhookEndpoint) => Promise<{
5715
+ endpoint: {
5716
+ id: string;
5717
+ accountId: string;
5718
+ url: string;
5719
+ description: string | null;
5720
+ eventTypes: string[];
5721
+ status: "enabled" | "disabled" | "auto_disabled";
5722
+ version: string;
5723
+ source: string;
5724
+ createdAt: string;
5725
+ updatedAt: string;
5726
+ };
5727
+ secret: string;
5728
+ }>;
5067
5729
  list: (options?: {
5068
5730
  accountId?: string;
5069
- }) => Promise<any>;
5070
- get: (endpointId: string) => Promise<any>;
5071
- update: (endpointId: string, request: UpdateWebhookEndpoint) => Promise<any>;
5072
- delete: (endpointId: string) => Promise<any>;
5731
+ }) => Promise<{
5732
+ id: string;
5733
+ accountId: string;
5734
+ url: string;
5735
+ description: string | null;
5736
+ eventTypes: string[];
5737
+ status: "enabled" | "disabled" | "auto_disabled";
5738
+ version: string;
5739
+ source: string;
5740
+ createdAt: string;
5741
+ updatedAt: string;
5742
+ }[]>;
5743
+ get: (endpointId: string) => Promise<{
5744
+ id: string;
5745
+ accountId: string;
5746
+ url: string;
5747
+ description: string | null;
5748
+ eventTypes: string[];
5749
+ status: "enabled" | "disabled" | "auto_disabled";
5750
+ version: string;
5751
+ source: string;
5752
+ createdAt: string;
5753
+ updatedAt: string;
5754
+ }>;
5755
+ update: (endpointId: string, request: UpdateWebhookEndpoint) => Promise<{
5756
+ id: string;
5757
+ accountId: string;
5758
+ url: string;
5759
+ description: string | null;
5760
+ eventTypes: string[];
5761
+ status: "enabled" | "disabled" | "auto_disabled";
5762
+ version: string;
5763
+ source: string;
5764
+ createdAt: string;
5765
+ updatedAt: string;
5766
+ }>;
5767
+ delete: (endpointId: string) => Promise<boolean>;
5073
5768
  test: (endpointId: string) => Promise<any>;
5074
5769
  };
5075
5770
  webhookDeliveries: {
5076
5771
  list: (options?: {
5077
5772
  endpointId?: string;
5078
5773
  limit?: number;
5079
- }) => Promise<any>;
5080
- get: (deliveryId: string) => Promise<any>;
5081
- listInbound: () => Promise<any>;
5774
+ }) => Promise<{
5775
+ id: string;
5776
+ endpointId: string;
5777
+ eventType: string;
5778
+ sourceEventId: string;
5779
+ status: "pending" | "succeeded" | "failed";
5780
+ attempts: number;
5781
+ responseStatus: number | null;
5782
+ error: string | null;
5783
+ nextAttemptAt: string | null;
5784
+ lastAttemptAt: string | null;
5785
+ deliveredAt: string | null;
5786
+ createdAt: string;
5787
+ }[]>;
5788
+ get: (deliveryId: string) => Promise<{
5789
+ id: string;
5790
+ endpointId: string;
5791
+ eventType: string;
5792
+ sourceEventId: string;
5793
+ status: "pending" | "succeeded" | "failed";
5794
+ attempts: number;
5795
+ responseStatus: number | null;
5796
+ error: string | null;
5797
+ nextAttemptAt: string | null;
5798
+ lastAttemptAt: string | null;
5799
+ deliveredAt: string | null;
5800
+ createdAt: string;
5801
+ }>;
5802
+ listInbound: () => Promise<{
5803
+ id: string;
5804
+ provider: string;
5805
+ eventType: string | null;
5806
+ normalisedType: string | null;
5807
+ organisationId: string | null;
5808
+ verified: boolean;
5809
+ status: "received" | "processed" | "failed";
5810
+ attempts: number;
5811
+ error: string | null;
5812
+ receivedAt: string;
5813
+ processedAt: string | null;
5814
+ }[]>;
5082
5815
  };
5083
5816
  webhookEventTypes: {
5084
- list: () => Promise<any>;
5817
+ list: () => Promise<{
5818
+ type: string;
5819
+ description: string;
5820
+ }[]>;
5085
5821
  };
5086
5822
  integrations: {
5087
- list: () => Promise<any>;
5088
- listConnectedApps: () => Promise<any>;
5089
- get: (id: string) => Promise<any>;
5090
- revokeConnection: (id: string) => Promise<any>;
5823
+ list: () => Promise<{
5824
+ integrations: {
5825
+ id: string;
5826
+ kind: "connected_app" | "provider";
5827
+ name: string;
5828
+ description: string;
5829
+ category: string;
5830
+ logoUri: string | null;
5831
+ available: boolean;
5832
+ status: "connected" | "configured" | "not_connected" | "coming_soon";
5833
+ scopes?: string[];
5834
+ lastUsedAt?: string | null;
5835
+ capability?: string;
5836
+ configResource?: string;
5837
+ }[];
5838
+ categories: {
5839
+ id: string;
5840
+ label: string;
5841
+ order: number;
5842
+ blurb: string;
5843
+ }[];
5844
+ }>;
5845
+ listConnectedApps: () => Promise<{
5846
+ clientId: string;
5847
+ scopes: string[];
5848
+ status: "connected" | "revoked";
5849
+ firstSeenAt: string;
5850
+ lastSeenAt: string;
5851
+ revokedAt: string | null;
5852
+ }[]>;
5853
+ get: (id: string) => Promise<{
5854
+ id: string;
5855
+ kind: "connected_app" | "provider";
5856
+ name: string;
5857
+ description: string;
5858
+ category: string;
5859
+ logoUri: string | null;
5860
+ available: boolean;
5861
+ status: "connected" | "configured" | "not_connected" | "coming_soon";
5862
+ scopes?: string[];
5863
+ lastUsedAt?: string | null;
5864
+ capability?: string;
5865
+ configResource?: string;
5866
+ }>;
5867
+ revokeConnection: (id: string) => Promise<boolean>;
5091
5868
  };
5092
5869
  clientVersions: {
5093
5870
  list: (options?: {
@@ -5150,289 +5927,6 @@ export declare class BackstageClient {
5150
5927
  payable: components["schemas"]["LedgerCounterpartyBalance"];
5151
5928
  }>;
5152
5929
  };
5153
- sales: {
5154
- resolveChannel: (options?: {
5155
- domain?: string;
5156
- key?: string;
5157
- }) => Promise<{
5158
- channel: components["schemas"]["SalesChannelSummary"];
5159
- publishableKey: string | null;
5160
- cacheVersion: string;
5161
- }>;
5162
- get: (eventId: string) => Promise<{
5163
- id: string;
5164
- name: string;
5165
- subtitle: string | null;
5166
- description: string | null;
5167
- shortDescription: string | null;
5168
- status: string;
5169
- imageUrl: string | null;
5170
- heroImageUrl: string | null;
5171
- presentation: {
5172
- heroLayout?: {
5173
- type: "hero" | "cinema";
5174
- size: "small" | "medium" | "large";
5175
- };
5176
- cinemaGradient?: {
5177
- strength: 20 | 50 | 70;
5178
- position: "bottom" | "center";
5179
- };
5180
- twoColumnSplit?: [number, number];
5181
- navbar?: {
5182
- transparent?: boolean;
5183
- };
5184
- buttonSize?: "small" | "medium" | "large";
5185
- } | null;
5186
- venueId: string | null;
5187
- venueName: string | null;
5188
- venueCity: string | null;
5189
- priceFrom: number | null;
5190
- currency: string | null;
5191
- timezone: string;
5192
- occurrences: {
5193
- id: string;
5194
- startsAt: string | null;
5195
- endsAt: string | null;
5196
- timezone: string;
5197
- startDate: string;
5198
- startTime: string;
5199
- endDate: string;
5200
- endTime: string;
5201
- status: string;
5202
- ticketTypes: {
5203
- ticketTypeId: string;
5204
- ticketTypeName: string;
5205
- description: string | null;
5206
- categoryId: string;
5207
- categoryName: string;
5208
- unitPrice: number;
5209
- currency: string;
5210
- }[];
5211
- }[];
5212
- }>;
5213
- getTheme: () => Promise<{
5214
- id: string;
5215
- name: string;
5216
- brand: {
5217
- [key: string]: unknown;
5218
- };
5219
- colors: {
5220
- [key: string]: unknown;
5221
- };
5222
- typography: {
5223
- [key: string]: unknown;
5224
- };
5225
- shape: {
5226
- [key: string]: unknown;
5227
- };
5228
- design?: {
5229
- [key: string]: unknown;
5230
- } | null;
5231
- }>;
5232
- };
5233
- salesCustomerAuth: {
5234
- magicLink: (request: {
5235
- email?: string;
5236
- phone?: string;
5237
- }) => Promise<boolean>;
5238
- };
5239
- salesCustomerTokens: {
5240
- create: (request: {
5241
- proof: any;
5242
- }) => Promise<{
5243
- customerToken: string;
5244
- expiresIn: number;
5245
- customer: components["schemas"]["SalesCustomer"];
5246
- }>;
5247
- refresh: () => Promise<{
5248
- customerToken: string;
5249
- expiresIn: number;
5250
- customer: components["schemas"]["SalesCustomer"];
5251
- }>;
5252
- };
5253
- salesListings: {
5254
- list: () => Promise<{
5255
- channel: components["schemas"]["SalesChannelSummary"];
5256
- listings: components["schemas"]["SalesListing"][];
5257
- }>;
5258
- };
5259
- salesCarts: {
5260
- create: (request: {
5261
- metadata?: Record<string, any>;
5262
- }) => Promise<{
5263
- id: string;
5264
- status: string;
5265
- currency: string | null;
5266
- expiresAt: string;
5267
- orderId: string | null;
5268
- items: components["schemas"]["SalesCartItem"][];
5269
- itemsSubtotal: number;
5270
- }>;
5271
- get: (cartId: string) => Promise<{
5272
- id: string;
5273
- status: string;
5274
- currency: string | null;
5275
- expiresAt: string;
5276
- orderId: string | null;
5277
- items: components["schemas"]["SalesCartItem"][];
5278
- itemsSubtotal: number;
5279
- }>;
5280
- addItem: (cartId: string, request: {
5281
- eventOccurrenceId: string;
5282
- categoryId: string;
5283
- ticketTypeId: string;
5284
- quantity?: number;
5285
- eventLayoutAreaId?: string;
5286
- eventLayoutSeatIds?: string[];
5287
- }) => Promise<{
5288
- id: string;
5289
- status: string;
5290
- currency: string | null;
5291
- expiresAt: string;
5292
- orderId: string | null;
5293
- items: components["schemas"]["SalesCartItem"][];
5294
- itemsSubtotal: number;
5295
- }>;
5296
- removeItem: (cartId: string, itemId: string) => Promise<{
5297
- id: string;
5298
- status: string;
5299
- currency: string | null;
5300
- expiresAt: string;
5301
- orderId: string | null;
5302
- items: components["schemas"]["SalesCartItem"][];
5303
- itemsSubtotal: number;
5304
- }>;
5305
- checkout: (cartId: string, request: {
5306
- customerNotes?: string;
5307
- metadata?: Record<string, any>;
5308
- customer?: {
5309
- email: string;
5310
- firstName?: string;
5311
- lastName?: string;
5312
- phone?: string;
5313
- marketingConsent?: boolean;
5314
- };
5315
- }) => Promise<{
5316
- cart: components["schemas"]["SalesCart"];
5317
- order: components["schemas"]["SalesOrder"];
5318
- orderAccessToken: string;
5319
- }>;
5320
- };
5321
- salesMyOrders: {
5322
- list: () => Promise<{
5323
- id: string;
5324
- orderNumber: string;
5325
- status: string;
5326
- paymentStatus: string;
5327
- currency: string;
5328
- items: components["schemas"]["SalesOrderItem"][];
5329
- subtotal: number;
5330
- totalFees: number;
5331
- totalTax: number;
5332
- total: number;
5333
- tickets: components["schemas"]["SalesTicket"][];
5334
- isTest: boolean;
5335
- expiresAt: string | null;
5336
- createdAt: string;
5337
- }[]>;
5338
- };
5339
- salesOrders: {
5340
- get: (orderId: string) => Promise<{
5341
- id: string;
5342
- orderNumber: string;
5343
- status: string;
5344
- paymentStatus: string;
5345
- currency: string;
5346
- items: components["schemas"]["SalesOrderItem"][];
5347
- subtotal: number;
5348
- totalFees: number;
5349
- totalTax: number;
5350
- total: number;
5351
- tickets: components["schemas"]["SalesTicket"][];
5352
- isTest: boolean;
5353
- expiresAt: string | null;
5354
- createdAt: string;
5355
- }>;
5356
- ticketPdf: (orderId: string, passId: string) => Promise<any>;
5357
- };
5358
- salesOrderPayments: {
5359
- create: (orderId: string, request: {
5360
- paymentType?: "online_card" | "online_bank_transfer" | "online_wallet";
5361
- returnUrl?: string;
5362
- }) => Promise<{
5363
- id: string;
5364
- orderId: string;
5365
- status: string;
5366
- paymentType: string;
5367
- amount: number;
5368
- currency: string;
5369
- providerClientSecret: string | null;
5370
- externalPaymentUrl: string | null;
5371
- publishableKey: string | null;
5372
- connectedAccountId: string | null;
5373
- providerType: string | null;
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
- }>;
5384
- };
5385
- salesRefundRequests: {
5386
- create: (orderId: string, request: {
5387
- type: "refund" | "exchange";
5388
- reason?: string;
5389
- }) => Promise<{
5390
- id: string;
5391
- orderId: string;
5392
- type: string;
5393
- status: string;
5394
- reason: string | null;
5395
- createdAt: string;
5396
- }>;
5397
- };
5398
- salesCustomers: {
5399
- create: (request: {
5400
- email: string;
5401
- firstName?: string;
5402
- lastName?: string;
5403
- phone?: string;
5404
- marketingConsent?: boolean;
5405
- }) => Promise<{
5406
- id: string;
5407
- email: string;
5408
- firstName: string | null;
5409
- lastName: string | null;
5410
- }>;
5411
- get: (customerId: string) => Promise<{
5412
- id: string;
5413
- email: string;
5414
- firstName: string | null;
5415
- lastName: string | null;
5416
- }>;
5417
- update: (customerId: string, request: {
5418
- firstName?: string;
5419
- lastName?: string;
5420
- phone?: string;
5421
- }) => Promise<{
5422
- id: string;
5423
- email: string;
5424
- firstName: string | null;
5425
- lastName: string | null;
5426
- }>;
5427
- };
5428
- salesPresaleCodes: {
5429
- redeem: (request: {
5430
- code: string;
5431
- }) => Promise<{
5432
- benefit: string;
5433
- alreadyHeld: boolean;
5434
- }>;
5435
- };
5436
5930
  }
5437
5931
  export {};
5438
5932
  //# sourceMappingURL=client.d.ts.map