@ticketlayer/backstage 1.0.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,10 +7,12 @@ 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'];
13
14
  type SavePaymentMethodRequest = components['schemas']['SavePaymentMethodRequest'];
15
+ type SignUpRequest = components['schemas']['SignUpRequest'];
14
16
  type UpdateAutoTopupRequest = components['schemas']['UpdateAutoTopupRequest'];
15
17
  type UpdateIdentityProviderRequest = components['schemas']['UpdateIdentityProviderRequest'];
16
18
  type UpdateOrganisationRequest = components['schemas']['UpdateOrganisationRequest'];
@@ -21,7 +23,12 @@ type ValidateLayoutChangesRequest = components['schemas']['ValidateLayoutChanges
21
23
  export declare class BackstageAPIError extends Error {
22
24
  readonly code: string;
23
25
  readonly statusCode: number;
24
- 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
+ });
25
32
  isPermissionDenied(): boolean;
26
33
  isAuthenticationError(): boolean;
27
34
  isSessionExpired(): boolean;
@@ -206,6 +213,26 @@ export declare class BackstageClient {
206
213
  };
207
214
  }>;
208
215
  };
216
+ signup: {
217
+ signUp: (request: SignUpRequest) => Promise<{
218
+ organisation: {
219
+ id: string;
220
+ name: string;
221
+ slug: string;
222
+ plan: string;
223
+ apiVersion: string;
224
+ };
225
+ owner: {
226
+ id: string;
227
+ email: string;
228
+ };
229
+ account: {
230
+ id: string;
231
+ name: string;
232
+ };
233
+ sandbox: components["schemas"]["SignUpSandbox"];
234
+ }>;
235
+ };
209
236
  me: {
210
237
  current: () => Promise<{
211
238
  id: string;
@@ -700,6 +727,7 @@ export declare class BackstageClient {
700
727
  [key: string]: unknown;
701
728
  };
702
729
  apiVersion: string;
730
+ testMode: boolean;
703
731
  createdAt: string;
704
732
  updatedAt: string;
705
733
  }>;
@@ -713,9 +741,20 @@ export declare class BackstageClient {
713
741
  [key: string]: unknown;
714
742
  };
715
743
  apiVersion: string;
744
+ testMode: boolean;
716
745
  createdAt: string;
717
746
  updatedAt: string;
718
747
  }>;
748
+ graduate: (id: string) => Promise<{
749
+ organisation: {
750
+ id: string;
751
+ name: string;
752
+ slug: string;
753
+ };
754
+ alreadyLive: boolean;
755
+ liveKeys: components["schemas"]["GraduatedChannelKey"][];
756
+ signupClaimsGraduated: number;
757
+ }>;
719
758
  };
720
759
  plan: {
721
760
  get: () => Promise<{
@@ -915,8 +954,11 @@ export declare class BackstageClient {
915
954
  venueId?: any;
916
955
  venueName?: any;
917
956
  timezone?: string;
918
- onSaleDate?: string;
919
- offSaleDate?: string;
957
+ rules?: {
958
+ discoverable?: components["schemas"]["ListingRule"];
959
+ visible?: components["schemas"]["ListingRule"];
960
+ sellable?: components["schemas"]["ListingRule"];
961
+ };
920
962
  tags?: string[];
921
963
  ticketTypes?: {
922
964
  id?: string;
@@ -952,8 +994,7 @@ export declare class BackstageClient {
952
994
  status: "draft" | "published" | "on_sale" | "sold_out" | "completed" | "cancelled";
953
995
  venueId?: string;
954
996
  timezone: string;
955
- onSaleDate?: string;
956
- offSaleDate?: string;
997
+ rules: components["schemas"]["ListingRules"];
957
998
  occurrenceCount: number;
958
999
  ticketCount: number;
959
1000
  productCount: number;
@@ -972,30 +1013,15 @@ export declare class BackstageClient {
972
1013
  page?: string;
973
1014
  limit?: string;
974
1015
  }) => Promise<{
975
- events: components["schemas"]["Event"][];
1016
+ events: components["schemas"]["EventInChannel"][];
976
1017
  pagination: components["schemas"]["Pagination"];
1018
+ channel: components["schemas"]["ChannelContext"];
977
1019
  }>;
978
1020
  get: (id: string, options?: {
979
1021
  expand?: string;
980
1022
  }) => Promise<{
981
- id: string;
982
- organisationId: string;
983
- accountId: string;
984
- name: string;
985
- description?: string;
986
- status: "draft" | "published" | "on_sale" | "sold_out" | "completed" | "cancelled";
987
- venueId?: string;
988
- timezone: string;
989
- onSaleDate?: string;
990
- offSaleDate?: string;
991
- occurrenceCount: number;
992
- ticketCount: number;
993
- productCount: number;
994
- tags: string[];
995
- isDeleted: boolean;
996
- createdAt: string;
997
- updatedAt: string;
998
- createdBy?: string;
1023
+ event: components["schemas"]["EventInChannel"];
1024
+ channel: components["schemas"]["ChannelContext"] & unknown;
999
1025
  }>;
1000
1026
  update: (id: string, request: {
1001
1027
  name?: string;
@@ -1009,8 +1035,11 @@ export declare class BackstageClient {
1009
1035
  venueId?: any;
1010
1036
  venueName?: any;
1011
1037
  timezone?: string;
1012
- onSaleDate?: any;
1013
- offSaleDate?: any;
1038
+ rules?: {
1039
+ discoverable?: components["schemas"]["ListingRule"];
1040
+ visible?: components["schemas"]["ListingRule"];
1041
+ sellable?: components["schemas"]["ListingRule"];
1042
+ };
1014
1043
  tags?: string[];
1015
1044
  ticketTypes?: {
1016
1045
  id?: string;
@@ -1046,8 +1075,7 @@ export declare class BackstageClient {
1046
1075
  status: "draft" | "published" | "on_sale" | "sold_out" | "completed" | "cancelled";
1047
1076
  venueId?: string;
1048
1077
  timezone: string;
1049
- onSaleDate?: string;
1050
- offSaleDate?: string;
1078
+ rules: components["schemas"]["ListingRules"];
1051
1079
  occurrenceCount: number;
1052
1080
  ticketCount: number;
1053
1081
  productCount: number;
@@ -2237,6 +2265,18 @@ export declare class BackstageClient {
2237
2265
  totalPages: number;
2238
2266
  };
2239
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>;
2240
2280
  get: (customerId: string) => Promise<{
2241
2281
  id: string;
2242
2282
  organisationId: string;
@@ -2832,7 +2872,7 @@ export declare class BackstageClient {
2832
2872
  printPass: (orderId: string, passId: string, request: {
2833
2873
  printerId: string;
2834
2874
  type?: "print.ticket" | "print.label" | "print.receipt";
2835
- }) => Promise<any>;
2875
+ }) => Promise<string>;
2836
2876
  };
2837
2877
  payments: {
2838
2878
  create: (request: {
@@ -2959,6 +2999,17 @@ export declare class BackstageClient {
2959
2999
  createdAt: string;
2960
3000
  updatedAt: string;
2961
3001
  }[]>;
3002
+ confirmSandbox: (paymentId: string, request: {
3003
+ token?: string;
3004
+ }) => Promise<{
3005
+ paymentId: string;
3006
+ token: string;
3007
+ outcome: "succeeded" | "failed";
3008
+ webhookEventId: string;
3009
+ ingestStatus: "received" | "duplicate";
3010
+ failureCode?: string;
3011
+ failureMessage?: string;
3012
+ }>;
2962
3013
  };
2963
3014
  paymentProviders: {
2964
3015
  enableTicketlayerPay: (request: {
@@ -2973,8 +3024,26 @@ export declare class BackstageClient {
2973
3024
  }>;
2974
3025
  getTicketlayerPay: (options?: {
2975
3026
  refresh?: "0" | "1" | "true" | "false";
2976
- }) => Promise<any>;
2977
- 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
+ }>;
2978
3047
  createTicketlayerPayOnboardingLink: (request: {
2979
3048
  returnUrl: string;
2980
3049
  refreshUrl: string;
@@ -2994,11 +3063,58 @@ export declare class BackstageClient {
2994
3063
  provider: components["schemas"]["StripeConnectProvider"];
2995
3064
  created: boolean;
2996
3065
  }>;
2997
- getStripeConnect: () => Promise<any>;
2998
- 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
+ }[]>;
2999
3100
  getAccount: (providerId: string, accountId: string, options?: {
3000
3101
  refresh?: "0" | "1" | "true" | "false";
3001
- }) => 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>>;
3002
3118
  setAccountMode: (providerId: string, accountId: string, request: {
3003
3119
  mode: "direct" | "connected";
3004
3120
  connectedAccountId?: string;
@@ -3006,8 +3122,28 @@ export declare class BackstageClient {
3006
3122
  contactEmail?: string;
3007
3123
  country?: string;
3008
3124
  currency?: string;
3009
- }) => Promise<any>;
3010
- 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
+ }>;
3011
3147
  createAccountOnboardingLink: (providerId: string, accountId: string, request: {
3012
3148
  returnUrl: string;
3013
3149
  refreshUrl: string;
@@ -3018,7 +3154,7 @@ export declare class BackstageClient {
3018
3154
  }>;
3019
3155
  create: (request: {
3020
3156
  accountId?: string;
3021
- type: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer";
3157
+ type: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer" | "sandbox";
3022
3158
  name: string;
3023
3159
  description?: string;
3024
3160
  integrationType?: "ticketlayer_pay" | "self_service";
@@ -3073,7 +3209,7 @@ export declare class BackstageClient {
3073
3209
  }>;
3074
3210
  list: (options?: {
3075
3211
  accountId?: string;
3076
- type?: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer";
3212
+ type?: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer" | "sandbox";
3077
3213
  status?: "active" | "inactive" | "pending_setup";
3078
3214
  paymentType?: "online_card" | "online_bank_transfer" | "online_wallet" | "in_person_card" | "in_person_cash" | "bank_transfer" | "cheque";
3079
3215
  isDefault?: string;
@@ -3243,6 +3379,7 @@ export declare class BackstageClient {
3243
3379
  id: string;
3244
3380
  channelId: string;
3245
3381
  keyType: "publishable" | "secret";
3382
+ mode: "live" | "test";
3246
3383
  name: string;
3247
3384
  publishableKey: string | null;
3248
3385
  last4: string;
@@ -3262,75 +3399,67 @@ export declare class BackstageClient {
3262
3399
  listings: {
3263
3400
  create: (request: {
3264
3401
  eventId: string;
3265
- saleStartsAt?: string;
3266
- saleEndsAt?: string;
3402
+ rules?: {
3403
+ discoverable?: any;
3404
+ visible?: any;
3405
+ sellable?: any;
3406
+ };
3267
3407
  }) => Promise<{
3268
3408
  id: string;
3269
- organisationId: string;
3270
3409
  channelId: string;
3271
3410
  eventId: string;
3272
- saleStartsAt: string | null;
3273
- saleEndsAt: string | null;
3274
- isActive: boolean;
3275
- createdBy: string | null;
3411
+ rules: components["schemas"]["ListingRuleOverrides"];
3412
+ effective: components["schemas"]["ListingRules"];
3413
+ state: components["schemas"]["ListingState"];
3276
3414
  createdAt: string;
3277
3415
  updatedAt: string;
3278
3416
  }>;
3279
3417
  list: () => Promise<{
3280
3418
  id: string;
3281
- organisationId: string;
3282
3419
  channelId: string;
3283
3420
  eventId: string;
3284
- saleStartsAt: string | null;
3285
- saleEndsAt: string | null;
3286
- isActive: boolean;
3287
- createdBy: string | null;
3421
+ rules: components["schemas"]["ListingRuleOverrides"];
3422
+ effective: components["schemas"]["ListingRules"];
3423
+ state: components["schemas"]["ListingState"];
3288
3424
  createdAt: string;
3289
3425
  updatedAt: string;
3290
3426
  }[]>;
3291
- delete: (listingId: string) => Promise<boolean>;
3292
- };
3293
- carts: {
3294
- create: (request: {
3295
- customerId?: string;
3296
- metadata?: Record<string, any>;
3297
- }) => Promise<{
3298
- cart: components["schemas"]["StaffCart"];
3299
- items: components["schemas"]["StaffCartItem"][];
3300
- }>;
3301
- get: (cartId: string) => Promise<{
3302
- cart: components["schemas"]["StaffCart"];
3303
- items: components["schemas"]["StaffCartItem"][];
3304
- }>;
3305
- addItem: (cartId: string, request: {
3306
- eventOccurrenceId: string;
3307
- categoryId: string;
3308
- ticketTypeId: string;
3309
- quantity?: number;
3310
- eventLayoutAreaId?: string;
3311
- eventLayoutSeatIds?: string[];
3312
- }) => Promise<{
3313
- cart: components["schemas"]["StaffCart"];
3314
- items: components["schemas"]["StaffCartItem"][];
3315
- }>;
3316
- removeItem: (cartId: string, itemId: string) => Promise<{
3317
- cart: components["schemas"]["StaffCart"];
3318
- items: components["schemas"]["StaffCartItem"][];
3319
- }>;
3320
- checkout: (cartId: string, request: {
3321
- customerId?: string;
3322
- customerNotes?: string;
3323
- metadata?: Record<string, any>;
3324
- discount?: {
3325
- amount?: number;
3326
- percent?: number;
3327
- label?: string;
3328
- reason: string;
3427
+ update: (listingId: string, request: {
3428
+ rules?: {
3429
+ discoverable?: any;
3430
+ visible?: any;
3431
+ sellable?: any;
3329
3432
  };
3330
3433
  }) => Promise<{
3331
- cart: components["schemas"]["StaffCart"];
3332
- 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;
3333
3461
  }>;
3462
+ revoke: (accessId: string) => Promise<boolean>;
3334
3463
  };
3335
3464
  }) & {
3336
3465
  create: (request: {
@@ -3371,6 +3500,7 @@ export declare class BackstageClient {
3371
3500
  checkoutTtlSeconds?: number;
3372
3501
  receivingAccountId?: string;
3373
3502
  feeProfileId?: string;
3503
+ autoList?: boolean;
3374
3504
  }) => Promise<{
3375
3505
  id: string;
3376
3506
  organisationId: string;
@@ -3412,6 +3542,7 @@ export declare class BackstageClient {
3412
3542
  receivingAccountId: string;
3413
3543
  feeProfileId: string | null;
3414
3544
  brandId: string | null;
3545
+ autoList: boolean;
3415
3546
  isActive: boolean;
3416
3547
  isDeleted: boolean;
3417
3548
  deletedAt: string | null;
@@ -3459,6 +3590,7 @@ export declare class BackstageClient {
3459
3590
  receivingAccountId: string;
3460
3591
  feeProfileId: string | null;
3461
3592
  brandId: string | null;
3593
+ autoList: boolean;
3462
3594
  isActive: boolean;
3463
3595
  isDeleted: boolean;
3464
3596
  deletedAt: string | null;
@@ -3506,6 +3638,7 @@ export declare class BackstageClient {
3506
3638
  receivingAccountId: string;
3507
3639
  feeProfileId: string | null;
3508
3640
  brandId: string | null;
3641
+ autoList: boolean;
3509
3642
  isActive: boolean;
3510
3643
  isDeleted: boolean;
3511
3644
  deletedAt: string | null;
@@ -3549,6 +3682,7 @@ export declare class BackstageClient {
3549
3682
  feeProfileId?: any;
3550
3683
  paymentProviderId?: any;
3551
3684
  brandId?: any;
3685
+ autoList?: boolean;
3552
3686
  isActive?: boolean;
3553
3687
  }) => Promise<{
3554
3688
  id: string;
@@ -3591,6 +3725,7 @@ export declare class BackstageClient {
3591
3725
  receivingAccountId: string;
3592
3726
  feeProfileId: string | null;
3593
3727
  brandId: string | null;
3728
+ autoList: boolean;
3594
3729
  isActive: boolean;
3595
3730
  isDeleted: boolean;
3596
3731
  deletedAt: string | null;
@@ -3598,62 +3733,57 @@ export declare class BackstageClient {
3598
3733
  updatedAt: string;
3599
3734
  }>;
3600
3735
  delete: (channelId: string) => Promise<boolean>;
3601
- getCatalogue: (channelId: string) => Promise<{
3602
- channel: components["schemas"]["SalesChannelSummary"];
3603
- listings: components["schemas"]["SalesListing"][];
3604
- }>;
3605
- getCatalogueEvent: (channelId: string, eventId: string) => Promise<{
3606
- id: string;
3607
- name: string;
3608
- subtitle: string | null;
3609
- description: string | null;
3610
- shortDescription: string | null;
3611
- status: string;
3612
- imageUrl: string | null;
3613
- heroImageUrl: string | null;
3614
- presentation: {
3615
- heroLayout?: {
3616
- type: "hero" | "cinema";
3617
- size: "small" | "medium" | "large";
3618
- };
3619
- cinemaGradient?: {
3620
- strength: 20 | 50 | 70;
3621
- position: "bottom" | "center";
3622
- };
3623
- twoColumnSplit?: [number, number];
3624
- navbar?: {
3625
- transparent?: boolean;
3626
- };
3627
- buttonSize?: "small" | "medium" | "large";
3628
- } | null;
3629
- venueId: string | null;
3630
- venueName: string | null;
3631
- venueCity: string | null;
3632
- priceFrom: number | null;
3633
- currency: string | null;
3634
- timezone: string;
3635
- occurrences: {
3636
- id: string;
3637
- startsAt: string | null;
3638
- endsAt: string | null;
3639
- timezone: string;
3640
- startDate: string;
3641
- startTime: string;
3642
- endDate: string;
3643
- endTime: string;
3644
- status: string;
3645
- ticketTypes: {
3646
- ticketTypeId: string;
3647
- ticketTypeName: string;
3648
- description: string | null;
3649
- categoryId: string;
3650
- categoryName: string;
3651
- unitPrice: number;
3652
- currency: string;
3653
- }[];
3736
+ mySalesChannels: () => Promise<{
3737
+ scope: "channel" | "all";
3738
+ channels: components["schemas"]["SalesChannelSummary"][];
3739
+ permissions: {
3740
+ permission: string;
3741
+ scope: "channel" | "all";
3654
3742
  }[];
3655
3743
  }>;
3656
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
+ };
3657
3787
  presaleCodes: {
3658
3788
  create: (request: {
3659
3789
  accountId: string;
@@ -4344,9 +4474,82 @@ export declare class BackstageClient {
4344
4474
  gates?: string[];
4345
4475
  validFrom?: string;
4346
4476
  validUntil?: string;
4347
- }) => Promise<any>;
4348
- list: () => Promise<any>;
4349
- get: (configId: string) => Promise<any>;
4477
+ isTest?: boolean;
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
+ }>;
4350
4553
  update: (configId: string, request: {
4351
4554
  accountId?: string;
4352
4555
  name?: string;
@@ -4365,19 +4568,83 @@ export declare class BackstageClient {
4365
4568
  gates?: string[];
4366
4569
  validFrom?: string;
4367
4570
  validUntil?: string;
4571
+ isTest?: boolean;
4368
4572
  status?: "active" | "archived";
4369
- }) => Promise<any>;
4370
- 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>;
4371
4599
  setDevices: (configId: string, request: {
4372
4600
  deviceIds: string[];
4373
- }) => Promise<any>;
4601
+ }) => Promise<string[]>;
4374
4602
  };
4375
4603
  scan: {
4376
- 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
+ }>;
4377
4620
  manifest: (options?: {
4378
4621
  since?: string;
4379
- }) => Promise<any>;
4380
- operations: (request: {
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
+ }>;
4647
+ operations: (request: {
4381
4648
  operations: ({
4382
4649
  opId: string;
4383
4650
  kind: "validate" | "redeem" | "reverse";
@@ -4395,7 +4662,24 @@ export declare class BackstageClient {
4395
4662
  };
4396
4663
  hopPath?: string[];
4397
4664
  })[];
4398
- }) => 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
+ }[]>;
4399
4683
  };
4400
4684
  scans: {
4401
4685
  list: (options?: {
@@ -4406,10 +4690,31 @@ export declare class BackstageClient {
4406
4690
  from?: string;
4407
4691
  to?: string;
4408
4692
  limit?: number;
4409
- }) => Promise<any>;
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
+ }[]>;
4410
4709
  reverse: (redemptionId: string, request: {
4411
4710
  reason?: string;
4412
- }) => Promise<any>;
4711
+ }) => Promise<{
4712
+ id: string;
4713
+ status: string;
4714
+ entitlementId: string;
4715
+ reversedAt: string | null;
4716
+ reversalReason: string | null;
4717
+ }>;
4413
4718
  };
4414
4719
  assets: {
4415
4720
  list: (options?: {
@@ -4514,8 +4819,27 @@ export declare class BackstageClient {
4514
4819
  hostname?: string;
4515
4820
  arch?: string;
4516
4821
  };
4517
- }) => Promise<any>;
4518
- 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
+ }>;
4519
4843
  claim: (request: {
4520
4844
  userCode: string;
4521
4845
  name: string;
@@ -4525,23 +4849,64 @@ export declare class BackstageClient {
4525
4849
  accountId: string;
4526
4850
  roleId: string;
4527
4851
  }[];
4528
- }) => 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
+ }>;
4529
4863
  confirm: (pairingId: string, request: {
4530
4864
  deviceCode: string;
4531
- }) => Promise<any>;
4865
+ }) => Promise<{
4866
+ deviceId: string;
4867
+ deviceSecret: string;
4868
+ }>;
4532
4869
  reject: (pairingId: string, request: {
4533
4870
  deviceCode: string;
4534
- }) => Promise<any>;
4871
+ }) => Promise<string>;
4535
4872
  };
4536
4873
  deviceAuth: {
4537
4874
  issueToken: (request: {
4538
4875
  deviceId: string;
4539
4876
  deviceSecret: string;
4540
- }) => Promise<any>;
4541
- 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
+ }>;
4542
4887
  };
4543
4888
  deviceSelf: {
4544
- 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
+ }>;
4545
4910
  heartbeat: (request: {
4546
4911
  appVersion?: string;
4547
4912
  localPort?: number;
@@ -4553,7 +4918,12 @@ export declare class BackstageClient {
4553
4918
  clientKey: string;
4554
4919
  status: Record<string, any>;
4555
4920
  }[];
4556
- }) => Promise<any>;
4921
+ }) => Promise<{
4922
+ serverTime: string;
4923
+ commandsPending: number;
4924
+ certificateRenewalDue: boolean;
4925
+ jwksVersion: number;
4926
+ }>;
4557
4927
  declarePeripherals: (request: {
4558
4928
  peripherals: ({
4559
4929
  clientKey: string;
@@ -4569,17 +4939,29 @@ export declare class BackstageClient {
4569
4939
  };
4570
4940
  provider?: string;
4571
4941
  })[];
4572
- }) => Promise<any>;
4942
+ }) => Promise<{
4943
+ clientKey: string;
4944
+ deviceId: string;
4945
+ }[]>;
4573
4946
  fetchCommands: (options?: {
4574
4947
  wait?: number;
4575
- }) => 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
+ }[]>;
4576
4958
  reportProgress: (commandId: string, request: {
4577
4959
  progress: Record<string, any>;
4578
- }) => Promise<any>;
4960
+ }) => Promise<boolean>;
4579
4961
  reportResult: (commandId: string, request: {
4580
4962
  status: "completed" | "failed";
4581
4963
  result?: Record<string, any>;
4582
- }) => Promise<any>;
4964
+ }) => Promise<string>;
4583
4965
  ingestEvents: (request: {
4584
4966
  events: {
4585
4967
  id: string;
@@ -4587,63 +4969,375 @@ export declare class BackstageClient {
4587
4969
  occurredAt: string;
4588
4970
  payload?: Record<string, any>;
4589
4971
  }[];
4590
- }) => Promise<any>;
4591
- 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
+ }>;
4592
4982
  };
4593
4983
  devices: {
4594
- printers: () => Promise<any>;
4595
- mediaCatalog: () => Promise<any>;
4596
- 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
+ }>;
4597
5041
  list: (options?: {
4598
5042
  accountId?: string;
4599
5043
  type?: string;
4600
5044
  status?: "active" | "revoked";
4601
5045
  connectivity?: "unknown" | "online" | "offline";
4602
5046
  locationId?: string;
4603
- }) => Promise<any>;
4604
- 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
+ }>;
4605
5127
  update: (deviceId: string, request: {
4606
5128
  name?: string;
4607
5129
  locationId?: any;
4608
- }) => Promise<any>;
4609
- delete: (deviceId: string) => Promise<any>;
4610
- 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
+ }>;
4611
5211
  assignRoles: (deviceId: string, request: {
4612
5212
  accountRoles: {
4613
5213
  accountId: string;
4614
5214
  roleId: string;
4615
5215
  }[];
4616
- }) => Promise<any>;
5216
+ }) => Promise<{
5217
+ accountId: string;
5218
+ roleId: string;
5219
+ }[]>;
4617
5220
  rotateCredential: (deviceId: string, request: {
4618
5221
  graceSeconds?: number;
4619
- }) => Promise<any>;
5222
+ }) => Promise<{
5223
+ credentialId: string;
5224
+ deviceSecret: string;
5225
+ }>;
4620
5226
  dispatchCommand: (deviceId: string, request: {
4621
5227
  type: string;
4622
5228
  payload?: Record<string, any>;
4623
5229
  peripheralId?: string;
4624
5230
  idempotencyKey?: string;
4625
- }) => Promise<any>;
4626
- listCommands: (deviceId: string) => Promise<any>;
4627
- 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
+ }[]>;
4628
5290
  mintLocalToken: (deviceId: string, request: {
4629
5291
  allowedCommandTypes?: string[];
4630
5292
  ttlSeconds?: number;
4631
5293
  accountIds?: string[];
4632
- }) => Promise<any>;
5294
+ }) => Promise<{
5295
+ token: string;
5296
+ tokenId: string;
5297
+ expiresAt: string;
5298
+ }>;
4633
5299
  };
4634
5300
  locations: {
4635
5301
  create: (request: {
4636
5302
  accountId: string;
4637
5303
  name: string;
4638
5304
  description?: string;
4639
- }) => Promise<any>;
4640
- list: () => Promise<any>;
4641
- 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
+ }>;
4642
5329
  update: (locationId: string, request: {
4643
5330
  name?: string;
4644
5331
  description?: any;
4645
- }) => Promise<any>;
4646
- 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>;
4647
5341
  };
4648
5342
  reports: {
4649
5343
  summary: (options?: {
@@ -5017,31 +5711,160 @@ export declare class BackstageClient {
5017
5711
  }>;
5018
5712
  };
5019
5713
  webhookEndpoints: {
5020
- 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
+ }>;
5021
5729
  list: (options?: {
5022
5730
  accountId?: string;
5023
- }) => Promise<any>;
5024
- get: (endpointId: string) => Promise<any>;
5025
- update: (endpointId: string, request: UpdateWebhookEndpoint) => Promise<any>;
5026
- 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>;
5027
5768
  test: (endpointId: string) => Promise<any>;
5028
5769
  };
5029
5770
  webhookDeliveries: {
5030
5771
  list: (options?: {
5031
5772
  endpointId?: string;
5032
5773
  limit?: number;
5033
- }) => Promise<any>;
5034
- get: (deliveryId: string) => Promise<any>;
5035
- 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
+ }[]>;
5036
5815
  };
5037
5816
  webhookEventTypes: {
5038
- list: () => Promise<any>;
5817
+ list: () => Promise<{
5818
+ type: string;
5819
+ description: string;
5820
+ }[]>;
5039
5821
  };
5040
5822
  integrations: {
5041
- list: () => Promise<any>;
5042
- listConnectedApps: () => Promise<any>;
5043
- get: (id: string) => Promise<any>;
5044
- 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>;
5045
5868
  };
5046
5869
  clientVersions: {
5047
5870
  list: (options?: {
@@ -5058,276 +5881,50 @@ export declare class BackstageClient {
5058
5881
  lastSeenAt: string;
5059
5882
  }[]>;
5060
5883
  };
5061
- sales: {
5062
- resolveChannel: (options?: {
5063
- domain?: string;
5064
- key?: string;
5884
+ ledger: {
5885
+ balances: (options?: {
5886
+ accountId: string;
5887
+ currency?: string;
5888
+ asOf?: string;
5065
5889
  }) => Promise<{
5066
- channel: components["schemas"]["SalesChannelSummary"];
5067
- publishableKey: string | null;
5068
- cacheVersion: string;
5069
- }>;
5070
- get: (eventId: string) => Promise<{
5071
- id: string;
5072
- name: string;
5073
- subtitle: string | null;
5074
- description: string | null;
5075
- shortDescription: string | null;
5076
- status: string;
5077
- imageUrl: string | null;
5078
- heroImageUrl: string | null;
5079
- presentation: {
5080
- heroLayout?: {
5081
- type: "hero" | "cinema";
5082
- size: "small" | "medium" | "large";
5083
- };
5084
- cinemaGradient?: {
5085
- strength: 20 | 50 | 70;
5086
- position: "bottom" | "center";
5087
- };
5088
- twoColumnSplit?: [number, number];
5089
- navbar?: {
5090
- transparent?: boolean;
5091
- };
5092
- buttonSize?: "small" | "medium" | "large";
5093
- } | null;
5094
- venueId: string | null;
5095
- venueName: string | null;
5096
- venueCity: string | null;
5097
- priceFrom: number | null;
5098
- currency: string | null;
5099
- timezone: string;
5100
- occurrences: {
5101
- id: string;
5102
- startsAt: string | null;
5103
- endsAt: string | null;
5104
- timezone: string;
5105
- startDate: string;
5106
- startTime: string;
5107
- endDate: string;
5108
- endTime: string;
5109
- status: string;
5110
- ticketTypes: {
5111
- ticketTypeId: string;
5112
- ticketTypeName: string;
5113
- description: string | null;
5114
- categoryId: string;
5115
- categoryName: string;
5116
- unitPrice: number;
5117
- currency: string;
5118
- }[];
5890
+ accountId: string;
5891
+ asOf: string | null;
5892
+ counterparties: components["schemas"]["LedgerCounterpartyBalance"][];
5893
+ totals: {
5894
+ currency: string;
5895
+ owes: number;
5896
+ owed: number;
5897
+ net: number;
5119
5898
  }[];
5120
5899
  }>;
5121
- getTheme: () => Promise<{
5122
- id: string;
5123
- name: string;
5124
- brand: {
5125
- [key: string]: unknown;
5126
- };
5127
- colors: {
5128
- [key: string]: unknown;
5129
- };
5130
- typography: {
5131
- [key: string]: unknown;
5132
- };
5133
- shape: {
5134
- [key: string]: unknown;
5135
- };
5136
- design?: {
5137
- [key: string]: unknown;
5138
- } | null;
5139
- }>;
5140
- };
5141
- salesCustomerAuth: {
5142
- magicLink: (request: {
5143
- email?: string;
5144
- phone?: string;
5145
- }) => Promise<boolean>;
5146
- };
5147
- salesCustomerTokens: {
5148
- create: (request: {
5149
- proof: any;
5150
- }) => Promise<{
5151
- customerToken: string;
5152
- expiresIn: number;
5153
- customer: components["schemas"]["SalesCustomer"];
5154
- }>;
5155
- refresh: () => Promise<{
5156
- customerToken: string;
5157
- expiresIn: number;
5158
- customer: components["schemas"]["SalesCustomer"];
5159
- }>;
5160
- };
5161
- salesListings: {
5162
- list: () => Promise<{
5163
- channel: components["schemas"]["SalesChannelSummary"];
5164
- listings: components["schemas"]["SalesListing"][];
5165
- }>;
5166
- };
5167
- salesCarts: {
5168
- create: (request: {
5169
- metadata?: Record<string, any>;
5170
- }) => Promise<{
5171
- id: string;
5172
- status: string;
5173
- currency: string | null;
5174
- expiresAt: string;
5175
- orderId: string | null;
5176
- items: components["schemas"]["SalesCartItem"][];
5177
- itemsSubtotal: number;
5178
- }>;
5179
- get: (cartId: string) => Promise<{
5180
- id: string;
5181
- status: string;
5182
- currency: string | null;
5183
- expiresAt: string;
5184
- orderId: string | null;
5185
- items: components["schemas"]["SalesCartItem"][];
5186
- itemsSubtotal: number;
5187
- }>;
5188
- addItem: (cartId: string, request: {
5189
- eventOccurrenceId: string;
5190
- categoryId: string;
5191
- ticketTypeId: string;
5192
- quantity?: number;
5193
- eventLayoutAreaId?: string;
5194
- eventLayoutSeatIds?: string[];
5195
- }) => Promise<{
5196
- id: string;
5197
- status: string;
5198
- currency: string | null;
5199
- expiresAt: string;
5200
- orderId: string | null;
5201
- items: components["schemas"]["SalesCartItem"][];
5202
- itemsSubtotal: number;
5203
- }>;
5204
- removeItem: (cartId: string, itemId: string) => Promise<{
5205
- id: string;
5206
- status: string;
5207
- currency: string | null;
5208
- expiresAt: string;
5209
- orderId: string | null;
5210
- items: components["schemas"]["SalesCartItem"][];
5211
- itemsSubtotal: number;
5212
- }>;
5213
- checkout: (cartId: string, request: {
5214
- customerNotes?: string;
5215
- metadata?: Record<string, any>;
5216
- customer?: {
5217
- email: string;
5218
- firstName?: string;
5219
- lastName?: string;
5220
- phone?: string;
5221
- marketingConsent?: boolean;
5222
- };
5900
+ statement: (options?: {
5901
+ accountId: string;
5902
+ counterpartyAccountId?: string;
5903
+ currency: string;
5904
+ from?: string;
5905
+ to?: string;
5223
5906
  }) => Promise<{
5224
- cart: components["schemas"]["SalesCart"];
5225
- order: components["schemas"]["SalesOrder"];
5226
- orderAccessToken: string;
5227
- }>;
5228
- };
5229
- salesMyOrders: {
5230
- list: () => Promise<{
5231
- id: string;
5232
- orderNumber: string;
5233
- status: string;
5234
- paymentStatus: string;
5907
+ accountId: string;
5908
+ path: string;
5235
5909
  currency: string;
5236
- items: components["schemas"]["SalesOrderItem"][];
5237
- subtotal: number;
5238
- totalFees: number;
5239
- totalTax: number;
5240
- total: number;
5241
- tickets: components["schemas"]["SalesTicket"][];
5242
- expiresAt: string | null;
5243
- createdAt: string;
5244
- }[]>;
5245
- };
5246
- salesOrders: {
5247
- get: (orderId: string) => Promise<{
5248
- id: string;
5249
- orderNumber: string;
5250
- status: string;
5251
- paymentStatus: string;
5910
+ from: string | null;
5911
+ to: string | null;
5912
+ openingBalance: number;
5913
+ closingBalance: number;
5914
+ lines: components["schemas"]["LedgerStatementLine"][];
5915
+ }>;
5916
+ createSettlement: (request: {
5917
+ payerAccountId: string;
5918
+ payeeAccountId: string;
5252
5919
  currency: string;
5253
- items: components["schemas"]["SalesOrderItem"][];
5254
- subtotal: number;
5255
- totalFees: number;
5256
- totalTax: number;
5257
- total: number;
5258
- tickets: components["schemas"]["SalesTicket"][];
5259
- expiresAt: string | null;
5260
- createdAt: string;
5261
- }>;
5262
- ticketPdf: (orderId: string, passId: string) => Promise<any>;
5263
- };
5264
- salesOrderPayments: {
5265
- create: (orderId: string, request: {
5266
- paymentType?: "online_card" | "online_bank_transfer" | "online_wallet";
5267
- returnUrl?: string;
5268
- }) => Promise<{
5269
- id: string;
5270
- orderId: string;
5271
- status: string;
5272
- paymentType: string;
5273
5920
  amount: number;
5274
- currency: string;
5275
- providerClientSecret: string | null;
5276
- externalPaymentUrl: string | null;
5277
- publishableKey: string | null;
5278
- connectedAccountId: string | null;
5279
- providerType: string | null;
5280
- }>;
5281
- };
5282
- salesRefundRequests: {
5283
- create: (orderId: string, request: {
5284
- type: "refund" | "exchange";
5285
- reason?: string;
5286
- }) => Promise<{
5287
- id: string;
5288
- orderId: string;
5289
- type: string;
5290
- status: string;
5291
- reason: string | null;
5292
- createdAt: string;
5293
- }>;
5294
- };
5295
- salesCustomers: {
5296
- create: (request: {
5297
- email: string;
5298
- firstName?: string;
5299
- lastName?: string;
5300
- phone?: string;
5301
- marketingConsent?: boolean;
5302
- }) => Promise<{
5303
- id: string;
5304
- email: string;
5305
- firstName: string | null;
5306
- lastName: string | null;
5307
- }>;
5308
- get: (customerId: string) => Promise<{
5309
- id: string;
5310
- email: string;
5311
- firstName: string | null;
5312
- lastName: string | null;
5313
- }>;
5314
- update: (customerId: string, request: {
5315
- firstName?: string;
5316
- lastName?: string;
5317
- phone?: string;
5318
- }) => Promise<{
5319
- id: string;
5320
- email: string;
5321
- firstName: string | null;
5322
- lastName: string | null;
5323
- }>;
5324
- };
5325
- salesPresaleCodes: {
5326
- redeem: (request: {
5327
- code: string;
5921
+ method: "bank_transfer" | "internal_offset" | "cash" | "other";
5922
+ reference?: string;
5923
+ paidAt?: string;
5924
+ note?: string;
5328
5925
  }) => Promise<{
5329
- benefit: string;
5330
- alreadyHeld: boolean;
5926
+ settlement: components["schemas"]["Settlement"];
5927
+ payable: components["schemas"]["LedgerCounterpartyBalance"];
5331
5928
  }>;
5332
5929
  };
5333
5930
  }