@takaro/apiclient 0.0.0-dev.db86b98 → 0.0.0-dev.db9320f

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.
@@ -2264,6 +2264,30 @@ export interface DomainCreateInputDTO {
2264
2264
  * @memberof DomainCreateInputDTO
2265
2265
  */
2266
2266
  maxFunctionsInModule?: number;
2267
+ /**
2268
+ *
2269
+ * @type {number}
2270
+ * @memberof DomainCreateInputDTO
2271
+ */
2272
+ maxCustomRoles?: number;
2273
+ /**
2274
+ *
2275
+ * @type {number}
2276
+ * @memberof DomainCreateInputDTO
2277
+ */
2278
+ maxDiscordLinkedRoles?: number;
2279
+ /**
2280
+ *
2281
+ * @type {boolean}
2282
+ * @memberof DomainCreateInputDTO
2283
+ */
2284
+ skipBuiltinSeeding?: boolean;
2285
+ /**
2286
+ *
2287
+ * @type {string}
2288
+ * @memberof DomainCreateInputDTO
2289
+ */
2290
+ serverRegistrationToken?: string;
2267
2291
  }
2268
2292
 
2269
2293
  export const DomainCreateInputDTOStateEnum = {
@@ -2422,6 +2446,18 @@ export interface DomainOutputDTO {
2422
2446
  * @memberof DomainOutputDTO
2423
2447
  */
2424
2448
  maxFunctionsInModule: number;
2449
+ /**
2450
+ *
2451
+ * @type {number}
2452
+ * @memberof DomainOutputDTO
2453
+ */
2454
+ maxCustomRoles: number;
2455
+ /**
2456
+ *
2457
+ * @type {number}
2458
+ * @memberof DomainOutputDTO
2459
+ */
2460
+ maxDiscordLinkedRoles: number;
2425
2461
  /**
2426
2462
  *
2427
2463
  * @type {string}
@@ -2653,6 +2689,18 @@ export interface DomainUpdateInputDTO {
2653
2689
  * @memberof DomainUpdateInputDTO
2654
2690
  */
2655
2691
  maxFunctionsInModule?: number;
2692
+ /**
2693
+ *
2694
+ * @type {number}
2695
+ * @memberof DomainUpdateInputDTO
2696
+ */
2697
+ maxCustomRoles?: number;
2698
+ /**
2699
+ *
2700
+ * @type {number}
2701
+ * @memberof DomainUpdateInputDTO
2702
+ */
2703
+ maxDiscordLinkedRoles?: number;
2656
2704
  }
2657
2705
 
2658
2706
  export const DomainUpdateInputDTOStateEnum = {
@@ -2664,6 +2712,50 @@ export const DomainUpdateInputDTOStateEnum = {
2664
2712
  export type DomainUpdateInputDTOStateEnum =
2665
2713
  (typeof DomainUpdateInputDTOStateEnum)[keyof typeof DomainUpdateInputDTOStateEnum];
2666
2714
 
2715
+ /**
2716
+ *
2717
+ * @export
2718
+ * @interface EffectiveStorefrontConfigDTO
2719
+ */
2720
+ export interface EffectiveStorefrontConfigDTO {
2721
+ /**
2722
+ *
2723
+ * @type {string}
2724
+ * @memberof EffectiveStorefrontConfigDTO
2725
+ */
2726
+ templateId: string;
2727
+ /**
2728
+ *
2729
+ * @type {object}
2730
+ * @memberof EffectiveStorefrontConfigDTO
2731
+ */
2732
+ values: object;
2733
+ /**
2734
+ *
2735
+ * @type {object}
2736
+ * @memberof EffectiveStorefrontConfigDTO
2737
+ */
2738
+ schema: object;
2739
+ }
2740
+ /**
2741
+ *
2742
+ * @export
2743
+ * @interface EffectiveStorefrontConfigOutputDTOAPI
2744
+ */
2745
+ export interface EffectiveStorefrontConfigOutputDTOAPI {
2746
+ /**
2747
+ *
2748
+ * @type {EffectiveStorefrontConfigDTO}
2749
+ * @memberof EffectiveStorefrontConfigOutputDTOAPI
2750
+ */
2751
+ data: EffectiveStorefrontConfigDTO;
2752
+ /**
2753
+ *
2754
+ * @type {MetadataOutput}
2755
+ * @memberof EffectiveStorefrontConfigOutputDTOAPI
2756
+ */
2757
+ meta: MetadataOutput;
2758
+ }
2667
2759
  /**
2668
2760
  *
2669
2761
  * @export
@@ -3061,19 +3153,19 @@ export interface ErrorOutput {
3061
3153
  * @type {string}
3062
3154
  * @memberof ErrorOutput
3063
3155
  */
3064
- code: string;
3156
+ code?: string;
3065
3157
  /**
3066
3158
  *
3067
3159
  * @type {string}
3068
3160
  * @memberof ErrorOutput
3069
3161
  */
3070
- message: string;
3162
+ message?: string;
3071
3163
  /**
3072
3164
  *
3073
3165
  * @type {string}
3074
3166
  * @memberof ErrorOutput
3075
3167
  */
3076
- details: string;
3168
+ details?: string;
3077
3169
  }
3078
3170
  /**
3079
3171
  *
@@ -3086,7 +3178,7 @@ export interface EventChatMessage {
3086
3178
  * @type {IGamePlayer}
3087
3179
  * @memberof EventChatMessage
3088
3180
  */
3089
- player: IGamePlayer;
3181
+ player?: IGamePlayer;
3090
3182
  /**
3091
3183
  *
3092
3184
  * @type {string}
@@ -3219,6 +3311,7 @@ export const EventCreateDTOEventNameEnum = {
3219
3311
  PlayerInventoryChanged: 'player-inventory-changed',
3220
3312
  EventRateLimited: 'event-rate-limited',
3221
3313
  PlayerSyncSnapshot: 'player-sync-snapshot',
3314
+ InviteLinkCreated: 'invite-link-created',
3222
3315
  PlayerConnected: 'player-connected',
3223
3316
  PlayerDisconnected: 'player-disconnected',
3224
3317
  ChatMessage: 'chat-message',
@@ -3437,6 +3530,7 @@ export const EventExploreFiltersDTOEventNameEnum = {
3437
3530
  PlayerInventoryChanged: 'player-inventory-changed',
3438
3531
  EventRateLimited: 'event-rate-limited',
3439
3532
  PlayerSyncSnapshot: 'player-sync-snapshot',
3533
+ InviteLinkCreated: 'invite-link-created',
3440
3534
  PlayerConnected: 'player-connected',
3441
3535
  PlayerDisconnected: 'player-disconnected',
3442
3536
  ChatMessage: 'chat-message',
@@ -3807,6 +3901,7 @@ export const EventOutputDTOEventNameEnum = {
3807
3901
  PlayerInventoryChanged: 'player-inventory-changed',
3808
3902
  EventRateLimited: 'event-rate-limited',
3809
3903
  PlayerSyncSnapshot: 'player-sync-snapshot',
3904
+ InviteLinkCreated: 'invite-link-created',
3810
3905
  PlayerConnected: 'player-connected',
3811
3906
  PlayerDisconnected: 'player-disconnected',
3812
3907
  ChatMessage: 'chat-message',
@@ -3839,6 +3934,7 @@ export type EventOutputDTOMeta =
3839
3934
  | TakaroEventGameserverDeleted
3840
3935
  | TakaroEventGameserverUpdated
3841
3936
  | TakaroEventHookExecuted
3937
+ | TakaroEventInviteLinkCreated
3842
3938
  | TakaroEventModuleCreated
3843
3939
  | TakaroEventModuleDeleted
3844
3940
  | TakaroEventModuleInstalled
@@ -4046,6 +4142,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
4046
4142
  PlayerInventoryChanged: 'player-inventory-changed',
4047
4143
  EventRateLimited: 'event-rate-limited',
4048
4144
  PlayerSyncSnapshot: 'player-sync-snapshot',
4145
+ InviteLinkCreated: 'invite-link-created',
4049
4146
  PlayerConnected: 'player-connected',
4050
4147
  PlayerDisconnected: 'player-disconnected',
4051
4148
  ChatMessage: 'chat-message',
@@ -5540,6 +5637,7 @@ export const HookCreateDTOEventTypeEnum = {
5540
5637
  PlayerInventoryChanged: 'player-inventory-changed',
5541
5638
  EventRateLimited: 'event-rate-limited',
5542
5639
  PlayerSyncSnapshot: 'player-sync-snapshot',
5640
+ InviteLinkCreated: 'invite-link-created',
5543
5641
  } as const;
5544
5642
 
5545
5643
  export type HookCreateDTOEventTypeEnum = (typeof HookCreateDTOEventTypeEnum)[keyof typeof HookCreateDTOEventTypeEnum];
@@ -5703,6 +5801,7 @@ export const HookOutputDTOEventTypeEnum = {
5703
5801
  PlayerInventoryChanged: 'player-inventory-changed',
5704
5802
  EventRateLimited: 'event-rate-limited',
5705
5803
  PlayerSyncSnapshot: 'player-sync-snapshot',
5804
+ InviteLinkCreated: 'invite-link-created',
5706
5805
  } as const;
5707
5806
 
5708
5807
  export type HookOutputDTOEventTypeEnum = (typeof HookOutputDTOEventTypeEnum)[keyof typeof HookOutputDTOEventTypeEnum];
@@ -5811,6 +5910,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
5811
5910
  PlayerInventoryChanged: 'player-inventory-changed',
5812
5911
  EventRateLimited: 'event-rate-limited',
5813
5912
  PlayerSyncSnapshot: 'player-sync-snapshot',
5913
+ InviteLinkCreated: 'invite-link-created',
5814
5914
  } as const;
5815
5915
 
5816
5916
  export type HookSearchInputAllowedFiltersEventTypeEnum =
@@ -5991,6 +6091,7 @@ export const HookTriggerDTOEventTypeEnum = {
5991
6091
  PlayerInventoryChanged: 'player-inventory-changed',
5992
6092
  EventRateLimited: 'event-rate-limited',
5993
6093
  PlayerSyncSnapshot: 'player-sync-snapshot',
6094
+ InviteLinkCreated: 'invite-link-created',
5994
6095
  } as const;
5995
6096
 
5996
6097
  export type HookTriggerDTOEventTypeEnum =
@@ -6081,6 +6182,7 @@ export const HookUpdateDTOEventTypeEnum = {
6081
6182
  PlayerInventoryChanged: 'player-inventory-changed',
6082
6183
  EventRateLimited: 'event-rate-limited',
6083
6184
  PlayerSyncSnapshot: 'player-sync-snapshot',
6185
+ InviteLinkCreated: 'invite-link-created',
6084
6186
  } as const;
6085
6187
 
6086
6188
  export type HookUpdateDTOEventTypeEnum = (typeof HookUpdateDTOEventTypeEnum)[keyof typeof HookUpdateDTOEventTypeEnum];
@@ -6413,6 +6515,7 @@ export const IHookEventTypeEnum = {
6413
6515
  PlayerInventoryChanged: 'player-inventory-changed',
6414
6516
  EventRateLimited: 'event-rate-limited',
6415
6517
  PlayerSyncSnapshot: 'player-sync-snapshot',
6518
+ InviteLinkCreated: 'invite-link-created',
6416
6519
  } as const;
6417
6520
 
6418
6521
  export type IHookEventTypeEnum = (typeof IHookEventTypeEnum)[keyof typeof IHookEventTypeEnum];
@@ -6842,6 +6945,462 @@ export interface InviteCreateDTO {
6842
6945
  */
6843
6946
  email: string;
6844
6947
  }
6948
+ /**
6949
+ *
6950
+ * @export
6951
+ * @interface InviteLinkCreateInputDTO
6952
+ */
6953
+ export interface InviteLinkCreateInputDTO {
6954
+ /**
6955
+ *
6956
+ * @type {Array<string>}
6957
+ * @memberof InviteLinkCreateInputDTO
6958
+ */
6959
+ roleIds?: Array<string>;
6960
+ /**
6961
+ *
6962
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
6963
+ * @memberof InviteLinkCreateInputDTO
6964
+ */
6965
+ expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
6966
+ /**
6967
+ *
6968
+ * @type {number}
6969
+ * @memberof InviteLinkCreateInputDTO
6970
+ */
6971
+ maxUses?: number;
6972
+ }
6973
+ /**
6974
+ *
6975
+ * @export
6976
+ * @interface InviteLinkCreateResultDTO
6977
+ */
6978
+ export interface InviteLinkCreateResultDTO {
6979
+ /**
6980
+ *
6981
+ * @type {string}
6982
+ * @memberof InviteLinkCreateResultDTO
6983
+ */
6984
+ inviteUrl: string;
6985
+ /**
6986
+ *
6987
+ * @type {string}
6988
+ * @memberof InviteLinkCreateResultDTO
6989
+ */
6990
+ token: string;
6991
+ /**
6992
+ *
6993
+ * @type {string}
6994
+ * @memberof InviteLinkCreateResultDTO
6995
+ */
6996
+ id: string;
6997
+ /**
6998
+ *
6999
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7000
+ * @memberof InviteLinkCreateResultDTO
7001
+ */
7002
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7003
+ /**
7004
+ *
7005
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7006
+ * @memberof InviteLinkCreateResultDTO
7007
+ */
7008
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7009
+ /**
7010
+ *
7011
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7012
+ * @memberof InviteLinkCreateResultDTO
7013
+ */
7014
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7015
+ /**
7016
+ *
7017
+ * @type {number}
7018
+ * @memberof InviteLinkCreateResultDTO
7019
+ */
7020
+ maxUses?: number;
7021
+ /**
7022
+ *
7023
+ * @type {number}
7024
+ * @memberof InviteLinkCreateResultDTO
7025
+ */
7026
+ uses: number;
7027
+ /**
7028
+ *
7029
+ * @type {number}
7030
+ * @memberof InviteLinkCreateResultDTO
7031
+ */
7032
+ remaining?: number;
7033
+ /**
7034
+ *
7035
+ * @type {string}
7036
+ * @memberof InviteLinkCreateResultDTO
7037
+ */
7038
+ status: InviteLinkCreateResultDTOStatusEnum;
7039
+ /**
7040
+ *
7041
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7042
+ * @memberof InviteLinkCreateResultDTO
7043
+ */
7044
+ revokedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7045
+ /**
7046
+ *
7047
+ * @type {string}
7048
+ * @memberof InviteLinkCreateResultDTO
7049
+ */
7050
+ createdBy?: string;
7051
+ /**
7052
+ *
7053
+ * @type {Array<InviteLinkRoleDTO>}
7054
+ * @memberof InviteLinkCreateResultDTO
7055
+ */
7056
+ roles: Array<InviteLinkRoleDTO>;
7057
+ }
7058
+
7059
+ export const InviteLinkCreateResultDTOStatusEnum = {
7060
+ Active: 'ACTIVE',
7061
+ Revoked: 'REVOKED',
7062
+ Expired: 'EXPIRED',
7063
+ Depleted: 'DEPLETED',
7064
+ } as const;
7065
+
7066
+ export type InviteLinkCreateResultDTOStatusEnum =
7067
+ (typeof InviteLinkCreateResultDTOStatusEnum)[keyof typeof InviteLinkCreateResultDTOStatusEnum];
7068
+
7069
+ /**
7070
+ *
7071
+ * @export
7072
+ * @interface InviteLinkCreateResultDTOAPI
7073
+ */
7074
+ export interface InviteLinkCreateResultDTOAPI {
7075
+ /**
7076
+ *
7077
+ * @type {InviteLinkCreateResultDTO}
7078
+ * @memberof InviteLinkCreateResultDTOAPI
7079
+ */
7080
+ data: InviteLinkCreateResultDTO;
7081
+ /**
7082
+ *
7083
+ * @type {MetadataOutput}
7084
+ * @memberof InviteLinkCreateResultDTOAPI
7085
+ */
7086
+ meta: MetadataOutput;
7087
+ }
7088
+ /**
7089
+ *
7090
+ * @export
7091
+ * @interface InviteLinkOutputArrayDTOAPI
7092
+ */
7093
+ export interface InviteLinkOutputArrayDTOAPI {
7094
+ /**
7095
+ *
7096
+ * @type {Array<InviteLinkOutputDTO>}
7097
+ * @memberof InviteLinkOutputArrayDTOAPI
7098
+ */
7099
+ data: Array<InviteLinkOutputDTO>;
7100
+ /**
7101
+ *
7102
+ * @type {MetadataOutput}
7103
+ * @memberof InviteLinkOutputArrayDTOAPI
7104
+ */
7105
+ meta: MetadataOutput;
7106
+ }
7107
+ /**
7108
+ *
7109
+ * @export
7110
+ * @interface InviteLinkOutputDTO
7111
+ */
7112
+ export interface InviteLinkOutputDTO {
7113
+ /**
7114
+ *
7115
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7116
+ * @memberof InviteLinkOutputDTO
7117
+ */
7118
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7119
+ /**
7120
+ *
7121
+ * @type {number}
7122
+ * @memberof InviteLinkOutputDTO
7123
+ */
7124
+ maxUses?: number;
7125
+ /**
7126
+ *
7127
+ * @type {number}
7128
+ * @memberof InviteLinkOutputDTO
7129
+ */
7130
+ uses: number;
7131
+ /**
7132
+ *
7133
+ * @type {number}
7134
+ * @memberof InviteLinkOutputDTO
7135
+ */
7136
+ remaining?: number;
7137
+ /**
7138
+ *
7139
+ * @type {string}
7140
+ * @memberof InviteLinkOutputDTO
7141
+ */
7142
+ status: InviteLinkOutputDTOStatusEnum;
7143
+ /**
7144
+ *
7145
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7146
+ * @memberof InviteLinkOutputDTO
7147
+ */
7148
+ revokedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7149
+ /**
7150
+ *
7151
+ * @type {string}
7152
+ * @memberof InviteLinkOutputDTO
7153
+ */
7154
+ createdBy?: string;
7155
+ /**
7156
+ *
7157
+ * @type {Array<InviteLinkRoleDTO>}
7158
+ * @memberof InviteLinkOutputDTO
7159
+ */
7160
+ roles: Array<InviteLinkRoleDTO>;
7161
+ /**
7162
+ *
7163
+ * @type {string}
7164
+ * @memberof InviteLinkOutputDTO
7165
+ */
7166
+ id: string;
7167
+ /**
7168
+ *
7169
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7170
+ * @memberof InviteLinkOutputDTO
7171
+ */
7172
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7173
+ /**
7174
+ *
7175
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7176
+ * @memberof InviteLinkOutputDTO
7177
+ */
7178
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7179
+ }
7180
+
7181
+ export const InviteLinkOutputDTOStatusEnum = {
7182
+ Active: 'ACTIVE',
7183
+ Revoked: 'REVOKED',
7184
+ Expired: 'EXPIRED',
7185
+ Depleted: 'DEPLETED',
7186
+ } as const;
7187
+
7188
+ export type InviteLinkOutputDTOStatusEnum =
7189
+ (typeof InviteLinkOutputDTOStatusEnum)[keyof typeof InviteLinkOutputDTOStatusEnum];
7190
+
7191
+ /**
7192
+ *
7193
+ * @export
7194
+ * @interface InviteLinkOutputDTOAPI
7195
+ */
7196
+ export interface InviteLinkOutputDTOAPI {
7197
+ /**
7198
+ *
7199
+ * @type {InviteLinkOutputDTO}
7200
+ * @memberof InviteLinkOutputDTOAPI
7201
+ */
7202
+ data: InviteLinkOutputDTO;
7203
+ /**
7204
+ *
7205
+ * @type {MetadataOutput}
7206
+ * @memberof InviteLinkOutputDTOAPI
7207
+ */
7208
+ meta: MetadataOutput;
7209
+ }
7210
+ /**
7211
+ *
7212
+ * @export
7213
+ * @interface InviteLinkPreviewDTO
7214
+ */
7215
+ export interface InviteLinkPreviewDTO {
7216
+ /**
7217
+ *
7218
+ * @type {InviteLinkPreviewDomainDTO}
7219
+ * @memberof InviteLinkPreviewDTO
7220
+ */
7221
+ domain: InviteLinkPreviewDomainDTO;
7222
+ /**
7223
+ *
7224
+ * @type {Array<InviteLinkPreviewRoleDTO>}
7225
+ * @memberof InviteLinkPreviewDTO
7226
+ */
7227
+ roles: Array<InviteLinkPreviewRoleDTO>;
7228
+ /**
7229
+ *
7230
+ * @type {string}
7231
+ * @memberof InviteLinkPreviewDTO
7232
+ */
7233
+ status: InviteLinkPreviewDTOStatusEnum;
7234
+ /**
7235
+ *
7236
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7237
+ * @memberof InviteLinkPreviewDTO
7238
+ */
7239
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7240
+ /**
7241
+ *
7242
+ * @type {number}
7243
+ * @memberof InviteLinkPreviewDTO
7244
+ */
7245
+ remaining?: number;
7246
+ }
7247
+
7248
+ export const InviteLinkPreviewDTOStatusEnum = {
7249
+ Active: 'ACTIVE',
7250
+ Revoked: 'REVOKED',
7251
+ Expired: 'EXPIRED',
7252
+ Depleted: 'DEPLETED',
7253
+ } as const;
7254
+
7255
+ export type InviteLinkPreviewDTOStatusEnum =
7256
+ (typeof InviteLinkPreviewDTOStatusEnum)[keyof typeof InviteLinkPreviewDTOStatusEnum];
7257
+
7258
+ /**
7259
+ *
7260
+ * @export
7261
+ * @interface InviteLinkPreviewDTOAPI
7262
+ */
7263
+ export interface InviteLinkPreviewDTOAPI {
7264
+ /**
7265
+ *
7266
+ * @type {InviteLinkPreviewDTO}
7267
+ * @memberof InviteLinkPreviewDTOAPI
7268
+ */
7269
+ data: InviteLinkPreviewDTO;
7270
+ /**
7271
+ *
7272
+ * @type {MetadataOutput}
7273
+ * @memberof InviteLinkPreviewDTOAPI
7274
+ */
7275
+ meta: MetadataOutput;
7276
+ }
7277
+ /**
7278
+ *
7279
+ * @export
7280
+ * @interface InviteLinkPreviewDomainDTO
7281
+ */
7282
+ export interface InviteLinkPreviewDomainDTO {
7283
+ /**
7284
+ *
7285
+ * @type {string}
7286
+ * @memberof InviteLinkPreviewDomainDTO
7287
+ */
7288
+ id: string;
7289
+ /**
7290
+ *
7291
+ * @type {string}
7292
+ * @memberof InviteLinkPreviewDomainDTO
7293
+ */
7294
+ name: string;
7295
+ }
7296
+ /**
7297
+ *
7298
+ * @export
7299
+ * @interface InviteLinkPreviewRoleDTO
7300
+ */
7301
+ export interface InviteLinkPreviewRoleDTO {
7302
+ /**
7303
+ *
7304
+ * @type {string}
7305
+ * @memberof InviteLinkPreviewRoleDTO
7306
+ */
7307
+ id: string;
7308
+ /**
7309
+ *
7310
+ * @type {string}
7311
+ * @memberof InviteLinkPreviewRoleDTO
7312
+ */
7313
+ name: string;
7314
+ }
7315
+ /**
7316
+ *
7317
+ * @export
7318
+ * @interface InviteLinkRoleDTO
7319
+ */
7320
+ export interface InviteLinkRoleDTO {
7321
+ /**
7322
+ *
7323
+ * @type {string}
7324
+ * @memberof InviteLinkRoleDTO
7325
+ */
7326
+ roleId: string;
7327
+ /**
7328
+ *
7329
+ * @type {string}
7330
+ * @memberof InviteLinkRoleDTO
7331
+ */
7332
+ name: string;
7333
+ }
7334
+ /**
7335
+ *
7336
+ * @export
7337
+ * @interface InviteLinkSearchInputDTO
7338
+ */
7339
+ export interface InviteLinkSearchInputDTO {
7340
+ /**
7341
+ *
7342
+ * @type {string}
7343
+ * @memberof InviteLinkSearchInputDTO
7344
+ */
7345
+ sortBy?: string;
7346
+ /**
7347
+ *
7348
+ * @type {any}
7349
+ * @memberof InviteLinkSearchInputDTO
7350
+ */
7351
+ filters?: any;
7352
+ /**
7353
+ *
7354
+ * @type {any}
7355
+ * @memberof InviteLinkSearchInputDTO
7356
+ */
7357
+ search?: any;
7358
+ /**
7359
+ *
7360
+ * @type {any}
7361
+ * @memberof InviteLinkSearchInputDTO
7362
+ */
7363
+ greaterThan?: any;
7364
+ /**
7365
+ *
7366
+ * @type {any}
7367
+ * @memberof InviteLinkSearchInputDTO
7368
+ */
7369
+ lessThan?: any;
7370
+ /**
7371
+ *
7372
+ * @type {number}
7373
+ * @memberof InviteLinkSearchInputDTO
7374
+ */
7375
+ page?: number;
7376
+ /**
7377
+ *
7378
+ * @type {number}
7379
+ * @memberof InviteLinkSearchInputDTO
7380
+ */
7381
+ limit?: number;
7382
+ /**
7383
+ *
7384
+ * @type {string}
7385
+ * @memberof InviteLinkSearchInputDTO
7386
+ */
7387
+ sortDirection?: InviteLinkSearchInputDTOSortDirectionEnum;
7388
+ /**
7389
+ *
7390
+ * @type {Array<string>}
7391
+ * @memberof InviteLinkSearchInputDTO
7392
+ */
7393
+ extend?: Array<string>;
7394
+ }
7395
+
7396
+ export const InviteLinkSearchInputDTOSortDirectionEnum = {
7397
+ Asc: 'asc',
7398
+ Desc: 'desc',
7399
+ } as const;
7400
+
7401
+ export type InviteLinkSearchInputDTOSortDirectionEnum =
7402
+ (typeof InviteLinkSearchInputDTOSortDirectionEnum)[keyof typeof InviteLinkSearchInputDTOSortDirectionEnum];
7403
+
6845
7404
  /**
6846
7405
  *
6847
7406
  * @export
@@ -7593,7 +8152,7 @@ export interface MeOutputDTO {
7593
8152
  * @type {UserOutputWithRolesDTO}
7594
8153
  * @memberof MeOutputDTO
7595
8154
  */
7596
- user: UserOutputWithRolesDTO;
8155
+ user?: UserOutputWithRolesDTO;
7597
8156
  /**
7598
8157
  *
7599
8158
  * @type {Array<DomainOutputDTO>}
@@ -7605,7 +8164,7 @@ export interface MeOutputDTO {
7605
8164
  * @type {string}
7606
8165
  * @memberof MeOutputDTO
7607
8166
  */
7608
- domain: string;
8167
+ domain?: string;
7609
8168
  /**
7610
8169
  *
7611
8170
  * @type {PlayerOutputWithRolesDTO}
@@ -7767,7 +8326,7 @@ export interface MetadataOutput {
7767
8326
  * @type {ErrorOutput}
7768
8327
  * @memberof MetadataOutput
7769
8328
  */
7770
- error: ErrorOutput;
8329
+ error?: ErrorOutput;
7771
8330
  /**
7772
8331
  *
7773
8332
  * @type {number}
@@ -12035,6 +12594,19 @@ export const RecentOrderDTOStatusEnum = {
12035
12594
 
12036
12595
  export type RecentOrderDTOStatusEnum = (typeof RecentOrderDTOStatusEnum)[keyof typeof RecentOrderDTOStatusEnum];
12037
12596
 
12597
+ /**
12598
+ *
12599
+ * @export
12600
+ * @interface RedeemInputDTO
12601
+ */
12602
+ export interface RedeemInputDTO {
12603
+ /**
12604
+ *
12605
+ * @type {string}
12606
+ * @memberof RedeemInputDTO
12607
+ */
12608
+ token: string;
12609
+ }
12038
12610
  /**
12039
12611
  *
12040
12612
  * @export
@@ -12046,7 +12618,7 @@ export interface RedirectQs {
12046
12618
  * @type {string}
12047
12619
  * @memberof RedirectQs
12048
12620
  */
12049
- redirect: string;
12621
+ redirect?: string;
12050
12622
  }
12051
12623
  /**
12052
12624
  *
@@ -12847,7 +13419,7 @@ export interface RoleUpdateInputDTO {
12847
13419
  * @type {string}
12848
13420
  * @memberof RoleUpdateInputDTO
12849
13421
  */
12850
- linkedDiscordRoleId?: string;
13422
+ linkedDiscordRoleId?: string | null;
12851
13423
  }
12852
13424
  /**
12853
13425
  *
@@ -14053,6 +14625,25 @@ export interface ShopDeadStockItemDTO {
14053
14625
  */
14054
14626
  daysSinceLastSale?: number;
14055
14627
  }
14628
+ /**
14629
+ *
14630
+ * @export
14631
+ * @interface ShopImportFailureDTO
14632
+ */
14633
+ export interface ShopImportFailureDTO {
14634
+ /**
14635
+ *
14636
+ * @type {string}
14637
+ * @memberof ShopImportFailureDTO
14638
+ */
14639
+ name: string;
14640
+ /**
14641
+ *
14642
+ * @type {string}
14643
+ * @memberof ShopImportFailureDTO
14644
+ */
14645
+ reason: string;
14646
+ }
14056
14647
  /**
14057
14648
  *
14058
14649
  * @export
@@ -14078,6 +14669,44 @@ export interface ShopImportOptions {
14078
14669
  */
14079
14670
  gameServerId: string;
14080
14671
  }
14672
+ /**
14673
+ *
14674
+ * @export
14675
+ * @interface ShopImportResultDTO
14676
+ */
14677
+ export interface ShopImportResultDTO {
14678
+ /**
14679
+ *
14680
+ * @type {number}
14681
+ * @memberof ShopImportResultDTO
14682
+ */
14683
+ imported: number;
14684
+ /**
14685
+ *
14686
+ * @type {Array<ShopImportFailureDTO>}
14687
+ * @memberof ShopImportResultDTO
14688
+ */
14689
+ failed: Array<ShopImportFailureDTO>;
14690
+ }
14691
+ /**
14692
+ *
14693
+ * @export
14694
+ * @interface ShopImportResultDTOAPI
14695
+ */
14696
+ export interface ShopImportResultDTOAPI {
14697
+ /**
14698
+ *
14699
+ * @type {ShopImportResultDTO}
14700
+ * @memberof ShopImportResultDTOAPI
14701
+ */
14702
+ data: ShopImportResultDTO;
14703
+ /**
14704
+ *
14705
+ * @type {MetadataOutput}
14706
+ * @memberof ShopImportResultDTOAPI
14707
+ */
14708
+ meta: MetadataOutput;
14709
+ }
14081
14710
  /**
14082
14711
  *
14083
14712
  * @export
@@ -15220,6 +15849,175 @@ export interface SmallModuleVersionOutputDTO {
15220
15849
  */
15221
15850
  updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15222
15851
  }
15852
+ /**
15853
+ *
15854
+ * @export
15855
+ * @interface StorefrontConfigCreateDTO
15856
+ */
15857
+ export interface StorefrontConfigCreateDTO {
15858
+ /**
15859
+ *
15860
+ * @type {string}
15861
+ * @memberof StorefrontConfigCreateDTO
15862
+ */
15863
+ gameServerId: string;
15864
+ /**
15865
+ *
15866
+ * @type {string}
15867
+ * @memberof StorefrontConfigCreateDTO
15868
+ */
15869
+ templateId: string;
15870
+ /**
15871
+ *
15872
+ * @type {object}
15873
+ * @memberof StorefrontConfigCreateDTO
15874
+ */
15875
+ values?: object;
15876
+ }
15877
+ /**
15878
+ *
15879
+ * @export
15880
+ * @interface StorefrontConfigOutputDTO
15881
+ */
15882
+ export interface StorefrontConfigOutputDTO {
15883
+ /**
15884
+ *
15885
+ * @type {string}
15886
+ * @memberof StorefrontConfigOutputDTO
15887
+ */
15888
+ gameServerId: string;
15889
+ /**
15890
+ *
15891
+ * @type {string}
15892
+ * @memberof StorefrontConfigOutputDTO
15893
+ */
15894
+ templateId: string;
15895
+ /**
15896
+ *
15897
+ * @type {object}
15898
+ * @memberof StorefrontConfigOutputDTO
15899
+ */
15900
+ values: object;
15901
+ /**
15902
+ *
15903
+ * @type {string}
15904
+ * @memberof StorefrontConfigOutputDTO
15905
+ */
15906
+ id: string;
15907
+ /**
15908
+ *
15909
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
15910
+ * @memberof StorefrontConfigOutputDTO
15911
+ */
15912
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15913
+ /**
15914
+ *
15915
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
15916
+ * @memberof StorefrontConfigOutputDTO
15917
+ */
15918
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15919
+ }
15920
+ /**
15921
+ *
15922
+ * @export
15923
+ * @interface StorefrontConfigUpdateDTO
15924
+ */
15925
+ export interface StorefrontConfigUpdateDTO {
15926
+ /**
15927
+ *
15928
+ * @type {string}
15929
+ * @memberof StorefrontConfigUpdateDTO
15930
+ */
15931
+ templateId?: string;
15932
+ /**
15933
+ *
15934
+ * @type {object}
15935
+ * @memberof StorefrontConfigUpdateDTO
15936
+ */
15937
+ values?: object;
15938
+ }
15939
+ /**
15940
+ *
15941
+ * @export
15942
+ * @interface StorefrontConfigUpsertBody
15943
+ */
15944
+ export interface StorefrontConfigUpsertBody {
15945
+ /**
15946
+ *
15947
+ * @type {string}
15948
+ * @memberof StorefrontConfigUpsertBody
15949
+ */
15950
+ templateId: string;
15951
+ /**
15952
+ *
15953
+ * @type {object}
15954
+ * @memberof StorefrontConfigUpsertBody
15955
+ */
15956
+ values: object;
15957
+ }
15958
+ /**
15959
+ *
15960
+ * @export
15961
+ * @interface StorefrontConfigUpsertDTO
15962
+ */
15963
+ export interface StorefrontConfigUpsertDTO {
15964
+ /**
15965
+ *
15966
+ * @type {string}
15967
+ * @memberof StorefrontConfigUpsertDTO
15968
+ */
15969
+ templateId: string;
15970
+ /**
15971
+ *
15972
+ * @type {object}
15973
+ * @memberof StorefrontConfigUpsertDTO
15974
+ */
15975
+ values: object;
15976
+ }
15977
+ /**
15978
+ *
15979
+ * @export
15980
+ * @interface StorefrontTemplateDTO
15981
+ */
15982
+ export interface StorefrontTemplateDTO {
15983
+ /**
15984
+ *
15985
+ * @type {string}
15986
+ * @memberof StorefrontTemplateDTO
15987
+ */
15988
+ id: string;
15989
+ /**
15990
+ *
15991
+ * @type {string}
15992
+ * @memberof StorefrontTemplateDTO
15993
+ */
15994
+ name: string;
15995
+ /**
15996
+ *
15997
+ * @type {object}
15998
+ * @memberof StorefrontTemplateDTO
15999
+ */
16000
+ schema: object;
16001
+ }
16002
+ /**
16003
+ *
16004
+ * @export
16005
+ * @interface StorefrontTemplateOutputArrayDTOAPI
16006
+ */
16007
+ export interface StorefrontTemplateOutputArrayDTOAPI {
16008
+ /**
16009
+ *
16010
+ * @type {Array<StorefrontTemplateDTO>}
16011
+ * @memberof StorefrontTemplateOutputArrayDTOAPI
16012
+ */
16013
+ data: Array<StorefrontTemplateDTO>;
16014
+ /**
16015
+ *
16016
+ * @type {MetadataOutput}
16017
+ * @memberof StorefrontTemplateOutputArrayDTOAPI
16018
+ */
16019
+ meta: MetadataOutput;
16020
+ }
15223
16021
  /**
15224
16022
  *
15225
16023
  * @export
@@ -15541,6 +16339,49 @@ export interface TakaroEventHookExecuted {
15541
16339
  */
15542
16340
  timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15543
16341
  }
16342
+ /**
16343
+ *
16344
+ * @export
16345
+ * @interface TakaroEventInviteLinkCreated
16346
+ */
16347
+ export interface TakaroEventInviteLinkCreated {
16348
+ /**
16349
+ *
16350
+ * @type {string}
16351
+ * @memberof TakaroEventInviteLinkCreated
16352
+ */
16353
+ inviteLinkId: string;
16354
+ /**
16355
+ *
16356
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
16357
+ * @memberof TakaroEventInviteLinkCreated
16358
+ */
16359
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
16360
+ /**
16361
+ *
16362
+ * @type {number}
16363
+ * @memberof TakaroEventInviteLinkCreated
16364
+ */
16365
+ maxUses: number;
16366
+ /**
16367
+ *
16368
+ * @type {Array<string>}
16369
+ * @memberof TakaroEventInviteLinkCreated
16370
+ */
16371
+ roleIds: Array<string>;
16372
+ /**
16373
+ *
16374
+ * @type {boolean}
16375
+ * @memberof TakaroEventInviteLinkCreated
16376
+ */
16377
+ staffOrigin: boolean;
16378
+ /**
16379
+ *
16380
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
16381
+ * @memberof TakaroEventInviteLinkCreated
16382
+ */
16383
+ timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
16384
+ }
15544
16385
  /**
15545
16386
  *
15546
16387
  * @export
@@ -16830,6 +17671,38 @@ export interface UserAssignmentOutputDTO {
16830
17671
  */
16831
17672
  updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
16832
17673
  }
17674
+ /**
17675
+ *
17676
+ * @export
17677
+ * @interface UserCountOutputDTO
17678
+ */
17679
+ export interface UserCountOutputDTO {
17680
+ /**
17681
+ *
17682
+ * @type {number}
17683
+ * @memberof UserCountOutputDTO
17684
+ */
17685
+ count: number;
17686
+ }
17687
+ /**
17688
+ *
17689
+ * @export
17690
+ * @interface UserCountOutputDTOAPI
17691
+ */
17692
+ export interface UserCountOutputDTOAPI {
17693
+ /**
17694
+ *
17695
+ * @type {UserCountOutputDTO}
17696
+ * @memberof UserCountOutputDTOAPI
17697
+ */
17698
+ data: UserCountOutputDTO;
17699
+ /**
17700
+ *
17701
+ * @type {MetadataOutput}
17702
+ * @memberof UserCountOutputDTOAPI
17703
+ */
17704
+ meta: MetadataOutput;
17705
+ }
16833
17706
  /**
16834
17707
  *
16835
17708
  * @export
@@ -16867,6 +17740,37 @@ export interface UserCreateInputDTO {
16867
17740
  */
16868
17741
  isDashboardUser?: boolean;
16869
17742
  }
17743
+ /**
17744
+ *
17745
+ * @export
17746
+ * @interface UserCreateInviteDTO
17747
+ */
17748
+ export interface UserCreateInviteDTO {
17749
+ /**
17750
+ *
17751
+ * @type {string}
17752
+ * @memberof UserCreateInviteDTO
17753
+ */
17754
+ name: string;
17755
+ /**
17756
+ *
17757
+ * @type {string}
17758
+ * @memberof UserCreateInviteDTO
17759
+ */
17760
+ email: string;
17761
+ /**
17762
+ *
17763
+ * @type {string}
17764
+ * @memberof UserCreateInviteDTO
17765
+ */
17766
+ idpId?: string;
17767
+ /**
17768
+ *
17769
+ * @type {boolean}
17770
+ * @memberof UserCreateInviteDTO
17771
+ */
17772
+ isDashboardUser?: boolean;
17773
+ }
16870
17774
  /**
16871
17775
  *
16872
17776
  * @export
@@ -16970,13 +17874,25 @@ export interface UserOutputDTO {
16970
17874
  * @type {PlayerOutputWithRolesDTO}
16971
17875
  * @memberof UserOutputDTO
16972
17876
  */
16973
- player: PlayerOutputWithRolesDTO;
17877
+ player?: PlayerOutputWithRolesDTO;
16974
17878
  /**
16975
17879
  *
16976
17880
  * @type {boolean}
16977
17881
  * @memberof UserOutputDTO
16978
17882
  */
16979
17883
  isDashboardUser: boolean;
17884
+ /**
17885
+ *
17886
+ * @type {boolean}
17887
+ * @memberof UserOutputDTO
17888
+ */
17889
+ isSupportAccount: boolean;
17890
+ /**
17891
+ *
17892
+ * @type {string}
17893
+ * @memberof UserOutputDTO
17894
+ */
17895
+ inviteLinkId?: string;
16980
17896
  /**
16981
17897
  *
16982
17898
  * @type {string}
@@ -17086,13 +18002,44 @@ export interface UserOutputWithRolesDTO {
17086
18002
  * @type {PlayerOutputWithRolesDTO}
17087
18003
  * @memberof UserOutputWithRolesDTO
17088
18004
  */
17089
- player: PlayerOutputWithRolesDTO;
18005
+ player?: PlayerOutputWithRolesDTO;
17090
18006
  /**
17091
18007
  *
17092
18008
  * @type {boolean}
17093
18009
  * @memberof UserOutputWithRolesDTO
17094
18010
  */
17095
18011
  isDashboardUser: boolean;
18012
+ /**
18013
+ *
18014
+ * @type {boolean}
18015
+ * @memberof UserOutputWithRolesDTO
18016
+ */
18017
+ isSupportAccount: boolean;
18018
+ /**
18019
+ *
18020
+ * @type {string}
18021
+ * @memberof UserOutputWithRolesDTO
18022
+ */
18023
+ inviteLinkId?: string;
18024
+ }
18025
+ /**
18026
+ *
18027
+ * @export
18028
+ * @interface UserOutputWithRolesDTOAPI
18029
+ */
18030
+ export interface UserOutputWithRolesDTOAPI {
18031
+ /**
18032
+ *
18033
+ * @type {UserOutputWithRolesDTO}
18034
+ * @memberof UserOutputWithRolesDTOAPI
18035
+ */
18036
+ data: UserOutputWithRolesDTO;
18037
+ /**
18038
+ *
18039
+ * @type {MetadataOutput}
18040
+ * @memberof UserOutputWithRolesDTOAPI
18041
+ */
18042
+ meta: MetadataOutput;
17096
18043
  }
17097
18044
  /**
17098
18045
  *
@@ -18299,7 +19246,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
18299
19246
  };
18300
19247
  },
18301
19248
  /**
18302
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
19249
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
18303
19250
  * @summary Get module health scores
18304
19251
  * @param {string} [startDate]
18305
19252
  * @param {string} [endDate]
@@ -19486,7 +20433,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
19486
20433
  },
19487
20434
  /**
19488
20435
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
19489
- * @summary Get top modules by event volume
20436
+ * @summary Get top modules by execution volume
19490
20437
  * @param {string} [startDate]
19491
20438
  * @param {string} [endDate]
19492
20439
  * @param {string} [gameServerId]
@@ -20020,7 +20967,7 @@ export const AnalyticsApiFp = function (configuration?: Configuration) {
20020
20967
  )(axios, localVarOperationServerBasePath || basePath);
20021
20968
  },
20022
20969
  /**
20023
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
20970
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
20024
20971
  * @summary Get module health scores
20025
20972
  * @param {string} [startDate]
20026
20973
  * @param {string} [endDate]
@@ -20772,7 +21719,7 @@ export const AnalyticsApiFp = function (configuration?: Configuration) {
20772
21719
  },
20773
21720
  /**
20774
21721
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
20775
- * @summary Get top modules by event volume
21722
+ * @summary Get top modules by execution volume
20776
21723
  * @param {string} [startDate]
20777
21724
  * @param {string} [endDate]
20778
21725
  * @param {string} [gameServerId]
@@ -21094,7 +22041,7 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
21094
22041
  .then((request) => request(axios, basePath));
21095
22042
  },
21096
22043
  /**
21097
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
22044
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
21098
22045
  * @summary Get module health scores
21099
22046
  * @param {string} [startDate]
21100
22047
  * @param {string} [endDate]
@@ -21538,7 +22485,7 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
21538
22485
  },
21539
22486
  /**
21540
22487
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
21541
- * @summary Get top modules by event volume
22488
+ * @summary Get top modules by execution volume
21542
22489
  * @param {string} [startDate]
21543
22490
  * @param {string} [endDate]
21544
22491
  * @param {string} [gameServerId]
@@ -21857,7 +22804,7 @@ export class AnalyticsApi extends BaseAPI {
21857
22804
  }
21858
22805
 
21859
22806
  /**
21860
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
22807
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
21861
22808
  * @summary Get module health scores
21862
22809
  * @param {string} [startDate]
21863
22810
  * @param {string} [endDate]
@@ -22343,7 +23290,7 @@ export class AnalyticsApi extends BaseAPI {
22343
23290
 
22344
23291
  /**
22345
23292
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
22346
- * @summary Get top modules by event volume
23293
+ * @summary Get top modules by execution volume
22347
23294
  * @param {string} [startDate]
22348
23295
  * @param {string} [endDate]
22349
23296
  * @param {string} [gameServerId]
@@ -25590,6 +26537,52 @@ export const DomainApiAxiosParamCreator = function (configuration?: Configuratio
25590
26537
  options: localVarRequestOptions,
25591
26538
  };
25592
26539
  },
26540
+ /**
26541
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
26542
+ * @summary Create staff-recovery invite link for a domain
26543
+ * @param {string} id
26544
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
26545
+ * @param {*} [options] Override http request option.
26546
+ * @throws {RequiredError}
26547
+ */
26548
+ domainControllerCreateInviteLink: async (
26549
+ id: string,
26550
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
26551
+ options: RawAxiosRequestConfig = {},
26552
+ ): Promise<RequestArgs> => {
26553
+ // verify required parameter 'id' is not null or undefined
26554
+ assertParamExists('domainControllerCreateInviteLink', 'id', id);
26555
+ const localVarPath = `/domain/{id}/invite-link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
26556
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26557
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26558
+ let baseOptions;
26559
+ if (configuration) {
26560
+ baseOptions = configuration.baseOptions;
26561
+ }
26562
+
26563
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
26564
+ const localVarHeaderParameter = {} as any;
26565
+ const localVarQueryParameter = {} as any;
26566
+
26567
+ // authentication adminAuth required
26568
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
26569
+
26570
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26571
+
26572
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26573
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26574
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
26575
+ localVarRequestOptions.data = serializeDataIfNeeded(
26576
+ inviteLinkCreateInputDTO,
26577
+ localVarRequestOptions,
26578
+ configuration,
26579
+ );
26580
+
26581
+ return {
26582
+ url: toPathString(localVarUrlObj),
26583
+ options: localVarRequestOptions,
26584
+ };
26585
+ },
25593
26586
  /**
25594
26587
  * <br> OperationId: `DomainControllerGetOne`
25595
26588
  * @summary Get one
@@ -25862,6 +26855,35 @@ export const DomainApiFp = function (configuration?: Configuration) {
25862
26855
  configuration,
25863
26856
  )(axios, localVarOperationServerBasePath || basePath);
25864
26857
  },
26858
+ /**
26859
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
26860
+ * @summary Create staff-recovery invite link for a domain
26861
+ * @param {string} id
26862
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
26863
+ * @param {*} [options] Override http request option.
26864
+ * @throws {RequiredError}
26865
+ */
26866
+ async domainControllerCreateInviteLink(
26867
+ id: string,
26868
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
26869
+ options?: RawAxiosRequestConfig,
26870
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
26871
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerCreateInviteLink(
26872
+ id,
26873
+ inviteLinkCreateInputDTO,
26874
+ options,
26875
+ );
26876
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26877
+ const localVarOperationServerBasePath =
26878
+ operationServerMap['DomainApi.domainControllerCreateInviteLink']?.[localVarOperationServerIndex]?.url;
26879
+ return (axios, basePath) =>
26880
+ createRequestFunction(
26881
+ localVarAxiosArgs,
26882
+ globalAxios,
26883
+ BASE_PATH,
26884
+ configuration,
26885
+ )(axios, localVarOperationServerBasePath || basePath);
26886
+ },
25865
26887
  /**
25866
26888
  * <br> OperationId: `DomainControllerGetOne`
25867
26889
  * @summary Get one
@@ -26036,6 +27058,23 @@ export const DomainApiFactory = function (configuration?: Configuration, basePat
26036
27058
  .domainControllerCreate(domainCreateInputDTO, options)
26037
27059
  .then((request) => request(axios, basePath));
26038
27060
  },
27061
+ /**
27062
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
27063
+ * @summary Create staff-recovery invite link for a domain
27064
+ * @param {string} id
27065
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
27066
+ * @param {*} [options] Override http request option.
27067
+ * @throws {RequiredError}
27068
+ */
27069
+ domainControllerCreateInviteLink(
27070
+ id: string,
27071
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
27072
+ options?: RawAxiosRequestConfig,
27073
+ ): AxiosPromise<InviteLinkCreateResultDTOAPI> {
27074
+ return localVarFp
27075
+ .domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options)
27076
+ .then((request) => request(axios, basePath));
27077
+ },
26039
27078
  /**
26040
27079
  * <br> OperationId: `DomainControllerGetOne`
26041
27080
  * @summary Get one
@@ -26141,6 +27180,25 @@ export class DomainApi extends BaseAPI {
26141
27180
  .then((request) => request(this.axios, this.basePath));
26142
27181
  }
26143
27182
 
27183
+ /**
27184
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
27185
+ * @summary Create staff-recovery invite link for a domain
27186
+ * @param {string} id
27187
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
27188
+ * @param {*} [options] Override http request option.
27189
+ * @throws {RequiredError}
27190
+ * @memberof DomainApi
27191
+ */
27192
+ public domainControllerCreateInviteLink(
27193
+ id: string,
27194
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
27195
+ options?: RawAxiosRequestConfig,
27196
+ ) {
27197
+ return DomainApiFp(this.configuration)
27198
+ .domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options)
27199
+ .then((request) => request(this.axios, this.basePath));
27200
+ }
27201
+
26144
27202
  /**
26145
27203
  * <br> OperationId: `DomainControllerGetOne`
26146
27204
  * @summary Get one
@@ -27101,16 +28159,14 @@ export const ExternalAuthApiAxiosParamCreator = function (configuration?: Config
27101
28159
  /**
27102
28160
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
27103
28161
  * @summary Auth discord
27104
- * @param {string} redirect
28162
+ * @param {string} [redirect]
27105
28163
  * @param {*} [options] Override http request option.
27106
28164
  * @throws {RequiredError}
27107
28165
  */
27108
28166
  externalAuthControllerAuthDiscord: async (
27109
- redirect: string,
28167
+ redirect?: string,
27110
28168
  options: RawAxiosRequestConfig = {},
27111
28169
  ): Promise<RequestArgs> => {
27112
- // verify required parameter 'redirect' is not null or undefined
27113
- assertParamExists('externalAuthControllerAuthDiscord', 'redirect', redirect);
27114
28170
  const localVarPath = `/auth/discord`;
27115
28171
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27116
28172
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -27177,12 +28233,12 @@ export const ExternalAuthApiFp = function (configuration?: Configuration) {
27177
28233
  /**
27178
28234
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
27179
28235
  * @summary Auth discord
27180
- * @param {string} redirect
28236
+ * @param {string} [redirect]
27181
28237
  * @param {*} [options] Override http request option.
27182
28238
  * @throws {RequiredError}
27183
28239
  */
27184
28240
  async externalAuthControllerAuthDiscord(
27185
- redirect: string,
28241
+ redirect?: string,
27186
28242
  options?: RawAxiosRequestConfig,
27187
28243
  ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
27188
28244
  const localVarAxiosArgs = await localVarAxiosParamCreator.externalAuthControllerAuthDiscord(redirect, options);
@@ -27236,11 +28292,11 @@ export const ExternalAuthApiFactory = function (
27236
28292
  /**
27237
28293
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
27238
28294
  * @summary Auth discord
27239
- * @param {string} redirect
28295
+ * @param {string} [redirect]
27240
28296
  * @param {*} [options] Override http request option.
27241
28297
  * @throws {RequiredError}
27242
28298
  */
27243
- externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28299
+ externalAuthControllerAuthDiscord(redirect?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
27244
28300
  return localVarFp
27245
28301
  .externalAuthControllerAuthDiscord(redirect, options)
27246
28302
  .then((request) => request(axios, basePath));
@@ -27267,12 +28323,12 @@ export class ExternalAuthApi extends BaseAPI {
27267
28323
  /**
27268
28324
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
27269
28325
  * @summary Auth discord
27270
- * @param {string} redirect
28326
+ * @param {string} [redirect]
27271
28327
  * @param {*} [options] Override http request option.
27272
28328
  * @throws {RequiredError}
27273
28329
  * @memberof ExternalAuthApi
27274
28330
  */
27275
- public externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig) {
28331
+ public externalAuthControllerAuthDiscord(redirect?: string, options?: RawAxiosRequestConfig) {
27276
28332
  return ExternalAuthApiFp(this.configuration)
27277
28333
  .externalAuthControllerAuthDiscord(redirect, options)
27278
28334
  .then((request) => request(this.axios, this.basePath));
@@ -30461,17 +31517,681 @@ export const HookApiAxiosParamCreator = function (configuration?: Configuration)
30461
31517
  };
30462
31518
  },
30463
31519
  /**
30464
- * Search hooks Required permissions: `READ_MODULES`<br> OperationId: `HookControllerSearch`
31520
+ * Search hooks Required permissions: `READ_MODULES`<br> OperationId: `HookControllerSearch`
31521
+ * @summary Search
31522
+ * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO
31523
+ * @param {*} [options] Override http request option.
31524
+ * @throws {RequiredError}
31525
+ */
31526
+ hookControllerSearch: async (
31527
+ hookSearchInputDTO?: HookSearchInputDTO,
31528
+ options: RawAxiosRequestConfig = {},
31529
+ ): Promise<RequestArgs> => {
31530
+ const localVarPath = `/hook/search`;
31531
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31532
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31533
+ let baseOptions;
31534
+ if (configuration) {
31535
+ baseOptions = configuration.baseOptions;
31536
+ }
31537
+
31538
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
31539
+ const localVarHeaderParameter = {} as any;
31540
+ const localVarQueryParameter = {} as any;
31541
+
31542
+ // authentication domainAuth required
31543
+
31544
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31545
+
31546
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31547
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31548
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
31549
+ localVarRequestOptions.data = serializeDataIfNeeded(hookSearchInputDTO, localVarRequestOptions, configuration);
31550
+
31551
+ return {
31552
+ url: toPathString(localVarUrlObj),
31553
+ options: localVarRequestOptions,
31554
+ };
31555
+ },
31556
+ /**
31557
+ * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerTrigger`
31558
+ * @summary Trigger
31559
+ * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO
31560
+ * @param {*} [options] Override http request option.
31561
+ * @throws {RequiredError}
31562
+ */
31563
+ hookControllerTrigger: async (
31564
+ hookTriggerDTO?: HookTriggerDTO,
31565
+ options: RawAxiosRequestConfig = {},
31566
+ ): Promise<RequestArgs> => {
31567
+ const localVarPath = `/hook/trigger`;
31568
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31569
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31570
+ let baseOptions;
31571
+ if (configuration) {
31572
+ baseOptions = configuration.baseOptions;
31573
+ }
31574
+
31575
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
31576
+ const localVarHeaderParameter = {} as any;
31577
+ const localVarQueryParameter = {} as any;
31578
+
31579
+ // authentication domainAuth required
31580
+
31581
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31582
+
31583
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31584
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31585
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
31586
+ localVarRequestOptions.data = serializeDataIfNeeded(hookTriggerDTO, localVarRequestOptions, configuration);
31587
+
31588
+ return {
31589
+ url: toPathString(localVarUrlObj),
31590
+ options: localVarRequestOptions,
31591
+ };
31592
+ },
31593
+ /**
31594
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerUpdate`
31595
+ * @summary Update
31596
+ * @param {string} id
31597
+ * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO
31598
+ * @param {*} [options] Override http request option.
31599
+ * @throws {RequiredError}
31600
+ */
31601
+ hookControllerUpdate: async (
31602
+ id: string,
31603
+ hookUpdateDTO?: HookUpdateDTO,
31604
+ options: RawAxiosRequestConfig = {},
31605
+ ): Promise<RequestArgs> => {
31606
+ // verify required parameter 'id' is not null or undefined
31607
+ assertParamExists('hookControllerUpdate', 'id', id);
31608
+ const localVarPath = `/hook/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
31609
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31610
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31611
+ let baseOptions;
31612
+ if (configuration) {
31613
+ baseOptions = configuration.baseOptions;
31614
+ }
31615
+
31616
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
31617
+ const localVarHeaderParameter = {} as any;
31618
+ const localVarQueryParameter = {} as any;
31619
+
31620
+ // authentication domainAuth required
31621
+
31622
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31623
+
31624
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31625
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31626
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
31627
+ localVarRequestOptions.data = serializeDataIfNeeded(hookUpdateDTO, localVarRequestOptions, configuration);
31628
+
31629
+ return {
31630
+ url: toPathString(localVarUrlObj),
31631
+ options: localVarRequestOptions,
31632
+ };
31633
+ },
31634
+ };
31635
+ };
31636
+
31637
+ /**
31638
+ * HookApi - functional programming interface
31639
+ * @export
31640
+ */
31641
+ export const HookApiFp = function (configuration?: Configuration) {
31642
+ const localVarAxiosParamCreator = HookApiAxiosParamCreator(configuration);
31643
+ return {
31644
+ /**
31645
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerCreate`
31646
+ * @summary Create
31647
+ * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO
31648
+ * @param {*} [options] Override http request option.
31649
+ * @throws {RequiredError}
31650
+ */
31651
+ async hookControllerCreate(
31652
+ hookCreateDTO?: HookCreateDTO,
31653
+ options?: RawAxiosRequestConfig,
31654
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>> {
31655
+ const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerCreate(hookCreateDTO, options);
31656
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31657
+ const localVarOperationServerBasePath =
31658
+ operationServerMap['HookApi.hookControllerCreate']?.[localVarOperationServerIndex]?.url;
31659
+ return (axios, basePath) =>
31660
+ createRequestFunction(
31661
+ localVarAxiosArgs,
31662
+ globalAxios,
31663
+ BASE_PATH,
31664
+ configuration,
31665
+ )(axios, localVarOperationServerBasePath || basePath);
31666
+ },
31667
+ /**
31668
+ * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetExecutions`
31669
+ * @summary Get executions
31670
+ * @param {string} id
31671
+ * @param {any} [success]
31672
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
31673
+ * @param {*} [options] Override http request option.
31674
+ * @throws {RequiredError}
31675
+ */
31676
+ async hookControllerGetExecutions(
31677
+ id: string,
31678
+ success?: any,
31679
+ eventSearchInputDTO?: EventSearchInputDTO,
31680
+ options?: RawAxiosRequestConfig,
31681
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventOutputArrayDTOAPI>> {
31682
+ const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerGetExecutions(
31683
+ id,
31684
+ success,
31685
+ eventSearchInputDTO,
31686
+ options,
31687
+ );
31688
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31689
+ const localVarOperationServerBasePath =
31690
+ operationServerMap['HookApi.hookControllerGetExecutions']?.[localVarOperationServerIndex]?.url;
31691
+ return (axios, basePath) =>
31692
+ createRequestFunction(
31693
+ localVarAxiosArgs,
31694
+ globalAxios,
31695
+ BASE_PATH,
31696
+ configuration,
31697
+ )(axios, localVarOperationServerBasePath || basePath);
31698
+ },
31699
+ /**
31700
+ * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetOne`
31701
+ * @summary Get one
31702
+ * @param {string} id
31703
+ * @param {*} [options] Override http request option.
31704
+ * @throws {RequiredError}
31705
+ */
31706
+ async hookControllerGetOne(
31707
+ id: string,
31708
+ options?: RawAxiosRequestConfig,
31709
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>> {
31710
+ const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerGetOne(id, options);
31711
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31712
+ const localVarOperationServerBasePath =
31713
+ operationServerMap['HookApi.hookControllerGetOne']?.[localVarOperationServerIndex]?.url;
31714
+ return (axios, basePath) =>
31715
+ createRequestFunction(
31716
+ localVarAxiosArgs,
31717
+ globalAxios,
31718
+ BASE_PATH,
31719
+ configuration,
31720
+ )(axios, localVarOperationServerBasePath || basePath);
31721
+ },
31722
+ /**
31723
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerRemove`
31724
+ * @summary Remove
31725
+ * @param {string} id
31726
+ * @param {*} [options] Override http request option.
31727
+ * @throws {RequiredError}
31728
+ */
31729
+ async hookControllerRemove(
31730
+ id: string,
31731
+ options?: RawAxiosRequestConfig,
31732
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
31733
+ const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerRemove(id, options);
31734
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31735
+ const localVarOperationServerBasePath =
31736
+ operationServerMap['HookApi.hookControllerRemove']?.[localVarOperationServerIndex]?.url;
31737
+ return (axios, basePath) =>
31738
+ createRequestFunction(
31739
+ localVarAxiosArgs,
31740
+ globalAxios,
31741
+ BASE_PATH,
31742
+ configuration,
31743
+ )(axios, localVarOperationServerBasePath || basePath);
31744
+ },
31745
+ /**
31746
+ * Search hooks Required permissions: `READ_MODULES`<br> OperationId: `HookControllerSearch`
31747
+ * @summary Search
31748
+ * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO
31749
+ * @param {*} [options] Override http request option.
31750
+ * @throws {RequiredError}
31751
+ */
31752
+ async hookControllerSearch(
31753
+ hookSearchInputDTO?: HookSearchInputDTO,
31754
+ options?: RawAxiosRequestConfig,
31755
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputArrayDTOAPI>> {
31756
+ const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerSearch(hookSearchInputDTO, options);
31757
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31758
+ const localVarOperationServerBasePath =
31759
+ operationServerMap['HookApi.hookControllerSearch']?.[localVarOperationServerIndex]?.url;
31760
+ return (axios, basePath) =>
31761
+ createRequestFunction(
31762
+ localVarAxiosArgs,
31763
+ globalAxios,
31764
+ BASE_PATH,
31765
+ configuration,
31766
+ )(axios, localVarOperationServerBasePath || basePath);
31767
+ },
31768
+ /**
31769
+ * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerTrigger`
31770
+ * @summary Trigger
31771
+ * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO
31772
+ * @param {*} [options] Override http request option.
31773
+ * @throws {RequiredError}
31774
+ */
31775
+ async hookControllerTrigger(
31776
+ hookTriggerDTO?: HookTriggerDTO,
31777
+ options?: RawAxiosRequestConfig,
31778
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
31779
+ const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerTrigger(hookTriggerDTO, options);
31780
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31781
+ const localVarOperationServerBasePath =
31782
+ operationServerMap['HookApi.hookControllerTrigger']?.[localVarOperationServerIndex]?.url;
31783
+ return (axios, basePath) =>
31784
+ createRequestFunction(
31785
+ localVarAxiosArgs,
31786
+ globalAxios,
31787
+ BASE_PATH,
31788
+ configuration,
31789
+ )(axios, localVarOperationServerBasePath || basePath);
31790
+ },
31791
+ /**
31792
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerUpdate`
31793
+ * @summary Update
31794
+ * @param {string} id
31795
+ * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO
31796
+ * @param {*} [options] Override http request option.
31797
+ * @throws {RequiredError}
31798
+ */
31799
+ async hookControllerUpdate(
31800
+ id: string,
31801
+ hookUpdateDTO?: HookUpdateDTO,
31802
+ options?: RawAxiosRequestConfig,
31803
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>> {
31804
+ const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerUpdate(id, hookUpdateDTO, options);
31805
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31806
+ const localVarOperationServerBasePath =
31807
+ operationServerMap['HookApi.hookControllerUpdate']?.[localVarOperationServerIndex]?.url;
31808
+ return (axios, basePath) =>
31809
+ createRequestFunction(
31810
+ localVarAxiosArgs,
31811
+ globalAxios,
31812
+ BASE_PATH,
31813
+ configuration,
31814
+ )(axios, localVarOperationServerBasePath || basePath);
31815
+ },
31816
+ };
31817
+ };
31818
+
31819
+ /**
31820
+ * HookApi - factory interface
31821
+ * @export
31822
+ */
31823
+ export const HookApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
31824
+ const localVarFp = HookApiFp(configuration);
31825
+ return {
31826
+ /**
31827
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerCreate`
31828
+ * @summary Create
31829
+ * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO
31830
+ * @param {*} [options] Override http request option.
31831
+ * @throws {RequiredError}
31832
+ */
31833
+ hookControllerCreate(
31834
+ hookCreateDTO?: HookCreateDTO,
31835
+ options?: RawAxiosRequestConfig,
31836
+ ): AxiosPromise<HookOutputDTOAPI> {
31837
+ return localVarFp.hookControllerCreate(hookCreateDTO, options).then((request) => request(axios, basePath));
31838
+ },
31839
+ /**
31840
+ * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetExecutions`
31841
+ * @summary Get executions
31842
+ * @param {string} id
31843
+ * @param {any} [success]
31844
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
31845
+ * @param {*} [options] Override http request option.
31846
+ * @throws {RequiredError}
31847
+ */
31848
+ hookControllerGetExecutions(
31849
+ id: string,
31850
+ success?: any,
31851
+ eventSearchInputDTO?: EventSearchInputDTO,
31852
+ options?: RawAxiosRequestConfig,
31853
+ ): AxiosPromise<EventOutputArrayDTOAPI> {
31854
+ return localVarFp
31855
+ .hookControllerGetExecutions(id, success, eventSearchInputDTO, options)
31856
+ .then((request) => request(axios, basePath));
31857
+ },
31858
+ /**
31859
+ * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetOne`
31860
+ * @summary Get one
31861
+ * @param {string} id
31862
+ * @param {*} [options] Override http request option.
31863
+ * @throws {RequiredError}
31864
+ */
31865
+ hookControllerGetOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<HookOutputDTOAPI> {
31866
+ return localVarFp.hookControllerGetOne(id, options).then((request) => request(axios, basePath));
31867
+ },
31868
+ /**
31869
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerRemove`
31870
+ * @summary Remove
31871
+ * @param {string} id
31872
+ * @param {*} [options] Override http request option.
31873
+ * @throws {RequiredError}
31874
+ */
31875
+ hookControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
31876
+ return localVarFp.hookControllerRemove(id, options).then((request) => request(axios, basePath));
31877
+ },
31878
+ /**
31879
+ * Search hooks Required permissions: `READ_MODULES`<br> OperationId: `HookControllerSearch`
31880
+ * @summary Search
31881
+ * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO
31882
+ * @param {*} [options] Override http request option.
31883
+ * @throws {RequiredError}
31884
+ */
31885
+ hookControllerSearch(
31886
+ hookSearchInputDTO?: HookSearchInputDTO,
31887
+ options?: RawAxiosRequestConfig,
31888
+ ): AxiosPromise<HookOutputArrayDTOAPI> {
31889
+ return localVarFp.hookControllerSearch(hookSearchInputDTO, options).then((request) => request(axios, basePath));
31890
+ },
31891
+ /**
31892
+ * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerTrigger`
31893
+ * @summary Trigger
31894
+ * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO
31895
+ * @param {*} [options] Override http request option.
31896
+ * @throws {RequiredError}
31897
+ */
31898
+ hookControllerTrigger(hookTriggerDTO?: HookTriggerDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
31899
+ return localVarFp.hookControllerTrigger(hookTriggerDTO, options).then((request) => request(axios, basePath));
31900
+ },
31901
+ /**
31902
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerUpdate`
31903
+ * @summary Update
31904
+ * @param {string} id
31905
+ * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO
31906
+ * @param {*} [options] Override http request option.
31907
+ * @throws {RequiredError}
31908
+ */
31909
+ hookControllerUpdate(
31910
+ id: string,
31911
+ hookUpdateDTO?: HookUpdateDTO,
31912
+ options?: RawAxiosRequestConfig,
31913
+ ): AxiosPromise<HookOutputDTOAPI> {
31914
+ return localVarFp.hookControllerUpdate(id, hookUpdateDTO, options).then((request) => request(axios, basePath));
31915
+ },
31916
+ };
31917
+ };
31918
+
31919
+ /**
31920
+ * HookApi - object-oriented interface
31921
+ * @export
31922
+ * @class HookApi
31923
+ * @extends {BaseAPI}
31924
+ */
31925
+ export class HookApi extends BaseAPI {
31926
+ /**
31927
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerCreate`
31928
+ * @summary Create
31929
+ * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO
31930
+ * @param {*} [options] Override http request option.
31931
+ * @throws {RequiredError}
31932
+ * @memberof HookApi
31933
+ */
31934
+ public hookControllerCreate(hookCreateDTO?: HookCreateDTO, options?: RawAxiosRequestConfig) {
31935
+ return HookApiFp(this.configuration)
31936
+ .hookControllerCreate(hookCreateDTO, options)
31937
+ .then((request) => request(this.axios, this.basePath));
31938
+ }
31939
+
31940
+ /**
31941
+ * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetExecutions`
31942
+ * @summary Get executions
31943
+ * @param {string} id
31944
+ * @param {any} [success]
31945
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
31946
+ * @param {*} [options] Override http request option.
31947
+ * @throws {RequiredError}
31948
+ * @memberof HookApi
31949
+ */
31950
+ public hookControllerGetExecutions(
31951
+ id: string,
31952
+ success?: any,
31953
+ eventSearchInputDTO?: EventSearchInputDTO,
31954
+ options?: RawAxiosRequestConfig,
31955
+ ) {
31956
+ return HookApiFp(this.configuration)
31957
+ .hookControllerGetExecutions(id, success, eventSearchInputDTO, options)
31958
+ .then((request) => request(this.axios, this.basePath));
31959
+ }
31960
+
31961
+ /**
31962
+ * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetOne`
31963
+ * @summary Get one
31964
+ * @param {string} id
31965
+ * @param {*} [options] Override http request option.
31966
+ * @throws {RequiredError}
31967
+ * @memberof HookApi
31968
+ */
31969
+ public hookControllerGetOne(id: string, options?: RawAxiosRequestConfig) {
31970
+ return HookApiFp(this.configuration)
31971
+ .hookControllerGetOne(id, options)
31972
+ .then((request) => request(this.axios, this.basePath));
31973
+ }
31974
+
31975
+ /**
31976
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerRemove`
31977
+ * @summary Remove
31978
+ * @param {string} id
31979
+ * @param {*} [options] Override http request option.
31980
+ * @throws {RequiredError}
31981
+ * @memberof HookApi
31982
+ */
31983
+ public hookControllerRemove(id: string, options?: RawAxiosRequestConfig) {
31984
+ return HookApiFp(this.configuration)
31985
+ .hookControllerRemove(id, options)
31986
+ .then((request) => request(this.axios, this.basePath));
31987
+ }
31988
+
31989
+ /**
31990
+ * Search hooks Required permissions: `READ_MODULES`<br> OperationId: `HookControllerSearch`
31991
+ * @summary Search
31992
+ * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO
31993
+ * @param {*} [options] Override http request option.
31994
+ * @throws {RequiredError}
31995
+ * @memberof HookApi
31996
+ */
31997
+ public hookControllerSearch(hookSearchInputDTO?: HookSearchInputDTO, options?: RawAxiosRequestConfig) {
31998
+ return HookApiFp(this.configuration)
31999
+ .hookControllerSearch(hookSearchInputDTO, options)
32000
+ .then((request) => request(this.axios, this.basePath));
32001
+ }
32002
+
32003
+ /**
32004
+ * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerTrigger`
32005
+ * @summary Trigger
32006
+ * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO
32007
+ * @param {*} [options] Override http request option.
32008
+ * @throws {RequiredError}
32009
+ * @memberof HookApi
32010
+ */
32011
+ public hookControllerTrigger(hookTriggerDTO?: HookTriggerDTO, options?: RawAxiosRequestConfig) {
32012
+ return HookApiFp(this.configuration)
32013
+ .hookControllerTrigger(hookTriggerDTO, options)
32014
+ .then((request) => request(this.axios, this.basePath));
32015
+ }
32016
+
32017
+ /**
32018
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerUpdate`
32019
+ * @summary Update
32020
+ * @param {string} id
32021
+ * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO
32022
+ * @param {*} [options] Override http request option.
32023
+ * @throws {RequiredError}
32024
+ * @memberof HookApi
32025
+ */
32026
+ public hookControllerUpdate(id: string, hookUpdateDTO?: HookUpdateDTO, options?: RawAxiosRequestConfig) {
32027
+ return HookApiFp(this.configuration)
32028
+ .hookControllerUpdate(id, hookUpdateDTO, options)
32029
+ .then((request) => request(this.axios, this.basePath));
32030
+ }
32031
+ }
32032
+
32033
+ /**
32034
+ * InviteLinkApi - axios parameter creator
32035
+ * @export
32036
+ */
32037
+ export const InviteLinkApiAxiosParamCreator = function (configuration?: Configuration) {
32038
+ return {
32039
+ /**
32040
+ * Creates a new shareable invite link. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — copy the URL and distribute it securely. Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
32041
+ * @summary Create invite link
32042
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
32043
+ * @param {*} [options] Override http request option.
32044
+ * @throws {RequiredError}
32045
+ */
32046
+ inviteLinkControllerCreate: async (
32047
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
32048
+ options: RawAxiosRequestConfig = {},
32049
+ ): Promise<RequestArgs> => {
32050
+ const localVarPath = `/invite-link`;
32051
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32052
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32053
+ let baseOptions;
32054
+ if (configuration) {
32055
+ baseOptions = configuration.baseOptions;
32056
+ }
32057
+
32058
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
32059
+ const localVarHeaderParameter = {} as any;
32060
+ const localVarQueryParameter = {} as any;
32061
+
32062
+ // authentication domainAuth required
32063
+
32064
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32065
+
32066
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32067
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32068
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32069
+ localVarRequestOptions.data = serializeDataIfNeeded(
32070
+ inviteLinkCreateInputDTO,
32071
+ localVarRequestOptions,
32072
+ configuration,
32073
+ );
32074
+
32075
+ return {
32076
+ url: toPathString(localVarUrlObj),
32077
+ options: localVarRequestOptions,
32078
+ };
32079
+ },
32080
+ /**
32081
+ * <br> OperationId: `InviteLinkControllerPreview`
32082
+ * @summary Preview
32083
+ * @param {string} token
32084
+ * @param {*} [options] Override http request option.
32085
+ * @throws {RequiredError}
32086
+ */
32087
+ inviteLinkControllerPreview: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32088
+ // verify required parameter 'token' is not null or undefined
32089
+ assertParamExists('inviteLinkControllerPreview', 'token', token);
32090
+ const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
32091
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32092
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32093
+ let baseOptions;
32094
+ if (configuration) {
32095
+ baseOptions = configuration.baseOptions;
32096
+ }
32097
+
32098
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
32099
+ const localVarHeaderParameter = {} as any;
32100
+ const localVarQueryParameter = {} as any;
32101
+
32102
+ // authentication domainAuth required
32103
+
32104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32106
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32107
+
32108
+ return {
32109
+ url: toPathString(localVarUrlObj),
32110
+ options: localVarRequestOptions,
32111
+ };
32112
+ },
32113
+ /**
32114
+ * <br> OperationId: `InviteLinkControllerRedeem`
32115
+ * @summary Redeem
32116
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
32117
+ * @param {*} [options] Override http request option.
32118
+ * @throws {RequiredError}
32119
+ */
32120
+ inviteLinkControllerRedeem: async (
32121
+ redeemInputDTO?: RedeemInputDTO,
32122
+ options: RawAxiosRequestConfig = {},
32123
+ ): Promise<RequestArgs> => {
32124
+ const localVarPath = `/invite-link/redeem`;
32125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32126
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32127
+ let baseOptions;
32128
+ if (configuration) {
32129
+ baseOptions = configuration.baseOptions;
32130
+ }
32131
+
32132
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
32133
+ const localVarHeaderParameter = {} as any;
32134
+ const localVarQueryParameter = {} as any;
32135
+
32136
+ // authentication domainAuth required
32137
+
32138
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32139
+
32140
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32142
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32143
+ localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
32144
+
32145
+ return {
32146
+ url: toPathString(localVarUrlObj),
32147
+ options: localVarRequestOptions,
32148
+ };
32149
+ },
32150
+ /**
32151
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
32152
+ * @summary Revoke
32153
+ * @param {string} id
32154
+ * @param {*} [options] Override http request option.
32155
+ * @throws {RequiredError}
32156
+ */
32157
+ inviteLinkControllerRevoke: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32158
+ // verify required parameter 'id' is not null or undefined
32159
+ assertParamExists('inviteLinkControllerRevoke', 'id', id);
32160
+ const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
32161
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32162
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32163
+ let baseOptions;
32164
+ if (configuration) {
32165
+ baseOptions = configuration.baseOptions;
32166
+ }
32167
+
32168
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
32169
+ const localVarHeaderParameter = {} as any;
32170
+ const localVarQueryParameter = {} as any;
32171
+
32172
+ // authentication domainAuth required
32173
+
32174
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32175
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32176
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32177
+
32178
+ return {
32179
+ url: toPathString(localVarUrlObj),
32180
+ options: localVarRequestOptions,
32181
+ };
32182
+ },
32183
+ /**
32184
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
30465
32185
  * @summary Search
30466
- * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO
32186
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
30467
32187
  * @param {*} [options] Override http request option.
30468
32188
  * @throws {RequiredError}
30469
32189
  */
30470
- hookControllerSearch: async (
30471
- hookSearchInputDTO?: HookSearchInputDTO,
32190
+ inviteLinkControllerSearch: async (
32191
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
30472
32192
  options: RawAxiosRequestConfig = {},
30473
32193
  ): Promise<RequestArgs> => {
30474
- const localVarPath = `/hook/search`;
32194
+ const localVarPath = `/invite-link/search`;
30475
32195
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30476
32196
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30477
32197
  let baseOptions;
@@ -30490,85 +32210,11 @@ export const HookApiAxiosParamCreator = function (configuration?: Configuration)
30490
32210
  setSearchParams(localVarUrlObj, localVarQueryParameter);
30491
32211
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30492
32212
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
30493
- localVarRequestOptions.data = serializeDataIfNeeded(hookSearchInputDTO, localVarRequestOptions, configuration);
30494
-
30495
- return {
30496
- url: toPathString(localVarUrlObj),
30497
- options: localVarRequestOptions,
30498
- };
30499
- },
30500
- /**
30501
- * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerTrigger`
30502
- * @summary Trigger
30503
- * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO
30504
- * @param {*} [options] Override http request option.
30505
- * @throws {RequiredError}
30506
- */
30507
- hookControllerTrigger: async (
30508
- hookTriggerDTO?: HookTriggerDTO,
30509
- options: RawAxiosRequestConfig = {},
30510
- ): Promise<RequestArgs> => {
30511
- const localVarPath = `/hook/trigger`;
30512
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30513
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30514
- let baseOptions;
30515
- if (configuration) {
30516
- baseOptions = configuration.baseOptions;
30517
- }
30518
-
30519
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
30520
- const localVarHeaderParameter = {} as any;
30521
- const localVarQueryParameter = {} as any;
30522
-
30523
- // authentication domainAuth required
30524
-
30525
- localVarHeaderParameter['Content-Type'] = 'application/json';
30526
-
30527
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30528
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30529
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
30530
- localVarRequestOptions.data = serializeDataIfNeeded(hookTriggerDTO, localVarRequestOptions, configuration);
30531
-
30532
- return {
30533
- url: toPathString(localVarUrlObj),
30534
- options: localVarRequestOptions,
30535
- };
30536
- },
30537
- /**
30538
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerUpdate`
30539
- * @summary Update
30540
- * @param {string} id
30541
- * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO
30542
- * @param {*} [options] Override http request option.
30543
- * @throws {RequiredError}
30544
- */
30545
- hookControllerUpdate: async (
30546
- id: string,
30547
- hookUpdateDTO?: HookUpdateDTO,
30548
- options: RawAxiosRequestConfig = {},
30549
- ): Promise<RequestArgs> => {
30550
- // verify required parameter 'id' is not null or undefined
30551
- assertParamExists('hookControllerUpdate', 'id', id);
30552
- const localVarPath = `/hook/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
30553
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30554
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30555
- let baseOptions;
30556
- if (configuration) {
30557
- baseOptions = configuration.baseOptions;
30558
- }
30559
-
30560
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
30561
- const localVarHeaderParameter = {} as any;
30562
- const localVarQueryParameter = {} as any;
30563
-
30564
- // authentication domainAuth required
30565
-
30566
- localVarHeaderParameter['Content-Type'] = 'application/json';
30567
-
30568
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30569
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30570
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
30571
- localVarRequestOptions.data = serializeDataIfNeeded(hookUpdateDTO, localVarRequestOptions, configuration);
32213
+ localVarRequestOptions.data = serializeDataIfNeeded(
32214
+ inviteLinkSearchInputDTO,
32215
+ localVarRequestOptions,
32216
+ configuration,
32217
+ );
30572
32218
 
30573
32219
  return {
30574
32220
  url: toPathString(localVarUrlObj),
@@ -30579,27 +32225,30 @@ export const HookApiAxiosParamCreator = function (configuration?: Configuration)
30579
32225
  };
30580
32226
 
30581
32227
  /**
30582
- * HookApi - functional programming interface
32228
+ * InviteLinkApi - functional programming interface
30583
32229
  * @export
30584
32230
  */
30585
- export const HookApiFp = function (configuration?: Configuration) {
30586
- const localVarAxiosParamCreator = HookApiAxiosParamCreator(configuration);
32231
+ export const InviteLinkApiFp = function (configuration?: Configuration) {
32232
+ const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
30587
32233
  return {
30588
32234
  /**
30589
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerCreate`
30590
- * @summary Create
30591
- * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO
32235
+ * Creates a new shareable invite link. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — copy the URL and distribute it securely. Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
32236
+ * @summary Create invite link
32237
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
30592
32238
  * @param {*} [options] Override http request option.
30593
32239
  * @throws {RequiredError}
30594
32240
  */
30595
- async hookControllerCreate(
30596
- hookCreateDTO?: HookCreateDTO,
32241
+ async inviteLinkControllerCreate(
32242
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
30597
32243
  options?: RawAxiosRequestConfig,
30598
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>> {
30599
- const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerCreate(hookCreateDTO, options);
32244
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
32245
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(
32246
+ inviteLinkCreateInputDTO,
32247
+ options,
32248
+ );
30600
32249
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30601
32250
  const localVarOperationServerBasePath =
30602
- operationServerMap['HookApi.hookControllerCreate']?.[localVarOperationServerIndex]?.url;
32251
+ operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
30603
32252
  return (axios, basePath) =>
30604
32253
  createRequestFunction(
30605
32254
  localVarAxiosArgs,
@@ -30609,29 +32258,20 @@ export const HookApiFp = function (configuration?: Configuration) {
30609
32258
  )(axios, localVarOperationServerBasePath || basePath);
30610
32259
  },
30611
32260
  /**
30612
- * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetExecutions`
30613
- * @summary Get executions
30614
- * @param {string} id
30615
- * @param {any} [success]
30616
- * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
32261
+ * <br> OperationId: `InviteLinkControllerPreview`
32262
+ * @summary Preview
32263
+ * @param {string} token
30617
32264
  * @param {*} [options] Override http request option.
30618
32265
  * @throws {RequiredError}
30619
32266
  */
30620
- async hookControllerGetExecutions(
30621
- id: string,
30622
- success?: any,
30623
- eventSearchInputDTO?: EventSearchInputDTO,
32267
+ async inviteLinkControllerPreview(
32268
+ token: string,
30624
32269
  options?: RawAxiosRequestConfig,
30625
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventOutputArrayDTOAPI>> {
30626
- const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerGetExecutions(
30627
- id,
30628
- success,
30629
- eventSearchInputDTO,
30630
- options,
30631
- );
32270
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkPreviewDTOAPI>> {
32271
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
30632
32272
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30633
32273
  const localVarOperationServerBasePath =
30634
- operationServerMap['HookApi.hookControllerGetExecutions']?.[localVarOperationServerIndex]?.url;
32274
+ operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
30635
32275
  return (axios, basePath) =>
30636
32276
  createRequestFunction(
30637
32277
  localVarAxiosArgs,
@@ -30641,20 +32281,20 @@ export const HookApiFp = function (configuration?: Configuration) {
30641
32281
  )(axios, localVarOperationServerBasePath || basePath);
30642
32282
  },
30643
32283
  /**
30644
- * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetOne`
30645
- * @summary Get one
30646
- * @param {string} id
32284
+ * <br> OperationId: `InviteLinkControllerRedeem`
32285
+ * @summary Redeem
32286
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
30647
32287
  * @param {*} [options] Override http request option.
30648
32288
  * @throws {RequiredError}
30649
32289
  */
30650
- async hookControllerGetOne(
30651
- id: string,
32290
+ async inviteLinkControllerRedeem(
32291
+ redeemInputDTO?: RedeemInputDTO,
30652
32292
  options?: RawAxiosRequestConfig,
30653
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>> {
30654
- const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerGetOne(id, options);
32293
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputWithRolesDTOAPI>> {
32294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
30655
32295
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30656
32296
  const localVarOperationServerBasePath =
30657
- operationServerMap['HookApi.hookControllerGetOne']?.[localVarOperationServerIndex]?.url;
32297
+ operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
30658
32298
  return (axios, basePath) =>
30659
32299
  createRequestFunction(
30660
32300
  localVarAxiosArgs,
@@ -30664,20 +32304,20 @@ export const HookApiFp = function (configuration?: Configuration) {
30664
32304
  )(axios, localVarOperationServerBasePath || basePath);
30665
32305
  },
30666
32306
  /**
30667
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerRemove`
30668
- * @summary Remove
32307
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
32308
+ * @summary Revoke
30669
32309
  * @param {string} id
30670
32310
  * @param {*} [options] Override http request option.
30671
32311
  * @throws {RequiredError}
30672
32312
  */
30673
- async hookControllerRemove(
32313
+ async inviteLinkControllerRevoke(
30674
32314
  id: string,
30675
32315
  options?: RawAxiosRequestConfig,
30676
32316
  ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
30677
- const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerRemove(id, options);
32317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
30678
32318
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30679
32319
  const localVarOperationServerBasePath =
30680
- operationServerMap['HookApi.hookControllerRemove']?.[localVarOperationServerIndex]?.url;
32320
+ operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
30681
32321
  return (axios, basePath) =>
30682
32322
  createRequestFunction(
30683
32323
  localVarAxiosArgs,
@@ -30687,68 +32327,23 @@ export const HookApiFp = function (configuration?: Configuration) {
30687
32327
  )(axios, localVarOperationServerBasePath || basePath);
30688
32328
  },
30689
32329
  /**
30690
- * Search hooks Required permissions: `READ_MODULES`<br> OperationId: `HookControllerSearch`
32330
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
30691
32331
  * @summary Search
30692
- * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO
30693
- * @param {*} [options] Override http request option.
30694
- * @throws {RequiredError}
30695
- */
30696
- async hookControllerSearch(
30697
- hookSearchInputDTO?: HookSearchInputDTO,
30698
- options?: RawAxiosRequestConfig,
30699
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputArrayDTOAPI>> {
30700
- const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerSearch(hookSearchInputDTO, options);
30701
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30702
- const localVarOperationServerBasePath =
30703
- operationServerMap['HookApi.hookControllerSearch']?.[localVarOperationServerIndex]?.url;
30704
- return (axios, basePath) =>
30705
- createRequestFunction(
30706
- localVarAxiosArgs,
30707
- globalAxios,
30708
- BASE_PATH,
30709
- configuration,
30710
- )(axios, localVarOperationServerBasePath || basePath);
30711
- },
30712
- /**
30713
- * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerTrigger`
30714
- * @summary Trigger
30715
- * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO
30716
- * @param {*} [options] Override http request option.
30717
- * @throws {RequiredError}
30718
- */
30719
- async hookControllerTrigger(
30720
- hookTriggerDTO?: HookTriggerDTO,
30721
- options?: RawAxiosRequestConfig,
30722
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30723
- const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerTrigger(hookTriggerDTO, options);
30724
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30725
- const localVarOperationServerBasePath =
30726
- operationServerMap['HookApi.hookControllerTrigger']?.[localVarOperationServerIndex]?.url;
30727
- return (axios, basePath) =>
30728
- createRequestFunction(
30729
- localVarAxiosArgs,
30730
- globalAxios,
30731
- BASE_PATH,
30732
- configuration,
30733
- )(axios, localVarOperationServerBasePath || basePath);
30734
- },
30735
- /**
30736
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerUpdate`
30737
- * @summary Update
30738
- * @param {string} id
30739
- * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO
32332
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
30740
32333
  * @param {*} [options] Override http request option.
30741
32334
  * @throws {RequiredError}
30742
32335
  */
30743
- async hookControllerUpdate(
30744
- id: string,
30745
- hookUpdateDTO?: HookUpdateDTO,
32336
+ async inviteLinkControllerSearch(
32337
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
30746
32338
  options?: RawAxiosRequestConfig,
30747
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>> {
30748
- const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerUpdate(id, hookUpdateDTO, options);
32339
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkOutputArrayDTOAPI>> {
32340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(
32341
+ inviteLinkSearchInputDTO,
32342
+ options,
32343
+ );
30749
32344
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30750
32345
  const localVarOperationServerBasePath =
30751
- operationServerMap['HookApi.hookControllerUpdate']?.[localVarOperationServerIndex]?.url;
32346
+ operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
30752
32347
  return (axios, basePath) =>
30753
32348
  createRequestFunction(
30754
32349
  localVarAxiosArgs,
@@ -30761,215 +32356,158 @@ export const HookApiFp = function (configuration?: Configuration) {
30761
32356
  };
30762
32357
 
30763
32358
  /**
30764
- * HookApi - factory interface
32359
+ * InviteLinkApi - factory interface
30765
32360
  * @export
30766
32361
  */
30767
- export const HookApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30768
- const localVarFp = HookApiFp(configuration);
32362
+ export const InviteLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
32363
+ const localVarFp = InviteLinkApiFp(configuration);
30769
32364
  return {
30770
32365
  /**
30771
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerCreate`
30772
- * @summary Create
30773
- * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO
30774
- * @param {*} [options] Override http request option.
30775
- * @throws {RequiredError}
30776
- */
30777
- hookControllerCreate(
30778
- hookCreateDTO?: HookCreateDTO,
30779
- options?: RawAxiosRequestConfig,
30780
- ): AxiosPromise<HookOutputDTOAPI> {
30781
- return localVarFp.hookControllerCreate(hookCreateDTO, options).then((request) => request(axios, basePath));
30782
- },
30783
- /**
30784
- * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetExecutions`
30785
- * @summary Get executions
30786
- * @param {string} id
30787
- * @param {any} [success]
30788
- * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
32366
+ * Creates a new shareable invite link. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — copy the URL and distribute it securely. Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
32367
+ * @summary Create invite link
32368
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
30789
32369
  * @param {*} [options] Override http request option.
30790
32370
  * @throws {RequiredError}
30791
32371
  */
30792
- hookControllerGetExecutions(
30793
- id: string,
30794
- success?: any,
30795
- eventSearchInputDTO?: EventSearchInputDTO,
32372
+ inviteLinkControllerCreate(
32373
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
30796
32374
  options?: RawAxiosRequestConfig,
30797
- ): AxiosPromise<EventOutputArrayDTOAPI> {
32375
+ ): AxiosPromise<InviteLinkCreateResultDTOAPI> {
30798
32376
  return localVarFp
30799
- .hookControllerGetExecutions(id, success, eventSearchInputDTO, options)
32377
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
30800
32378
  .then((request) => request(axios, basePath));
30801
32379
  },
30802
32380
  /**
30803
- * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetOne`
30804
- * @summary Get one
30805
- * @param {string} id
30806
- * @param {*} [options] Override http request option.
30807
- * @throws {RequiredError}
30808
- */
30809
- hookControllerGetOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<HookOutputDTOAPI> {
30810
- return localVarFp.hookControllerGetOne(id, options).then((request) => request(axios, basePath));
30811
- },
30812
- /**
30813
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerRemove`
30814
- * @summary Remove
30815
- * @param {string} id
32381
+ * <br> OperationId: `InviteLinkControllerPreview`
32382
+ * @summary Preview
32383
+ * @param {string} token
30816
32384
  * @param {*} [options] Override http request option.
30817
32385
  * @throws {RequiredError}
30818
32386
  */
30819
- hookControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
30820
- return localVarFp.hookControllerRemove(id, options).then((request) => request(axios, basePath));
32387
+ inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig): AxiosPromise<InviteLinkPreviewDTOAPI> {
32388
+ return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
30821
32389
  },
30822
32390
  /**
30823
- * Search hooks Required permissions: `READ_MODULES`<br> OperationId: `HookControllerSearch`
30824
- * @summary Search
30825
- * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO
32391
+ * <br> OperationId: `InviteLinkControllerRedeem`
32392
+ * @summary Redeem
32393
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
30826
32394
  * @param {*} [options] Override http request option.
30827
32395
  * @throws {RequiredError}
30828
32396
  */
30829
- hookControllerSearch(
30830
- hookSearchInputDTO?: HookSearchInputDTO,
32397
+ inviteLinkControllerRedeem(
32398
+ redeemInputDTO?: RedeemInputDTO,
30831
32399
  options?: RawAxiosRequestConfig,
30832
- ): AxiosPromise<HookOutputArrayDTOAPI> {
30833
- return localVarFp.hookControllerSearch(hookSearchInputDTO, options).then((request) => request(axios, basePath));
32400
+ ): AxiosPromise<UserOutputWithRolesDTOAPI> {
32401
+ return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
30834
32402
  },
30835
32403
  /**
30836
- * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerTrigger`
30837
- * @summary Trigger
30838
- * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO
32404
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
32405
+ * @summary Revoke
32406
+ * @param {string} id
30839
32407
  * @param {*} [options] Override http request option.
30840
32408
  * @throws {RequiredError}
30841
32409
  */
30842
- hookControllerTrigger(hookTriggerDTO?: HookTriggerDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
30843
- return localVarFp.hookControllerTrigger(hookTriggerDTO, options).then((request) => request(axios, basePath));
32410
+ inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
32411
+ return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
30844
32412
  },
30845
32413
  /**
30846
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerUpdate`
30847
- * @summary Update
30848
- * @param {string} id
30849
- * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO
32414
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
32415
+ * @summary Search
32416
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
30850
32417
  * @param {*} [options] Override http request option.
30851
32418
  * @throws {RequiredError}
30852
32419
  */
30853
- hookControllerUpdate(
30854
- id: string,
30855
- hookUpdateDTO?: HookUpdateDTO,
32420
+ inviteLinkControllerSearch(
32421
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
30856
32422
  options?: RawAxiosRequestConfig,
30857
- ): AxiosPromise<HookOutputDTOAPI> {
30858
- return localVarFp.hookControllerUpdate(id, hookUpdateDTO, options).then((request) => request(axios, basePath));
32423
+ ): AxiosPromise<InviteLinkOutputArrayDTOAPI> {
32424
+ return localVarFp
32425
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
32426
+ .then((request) => request(axios, basePath));
30859
32427
  },
30860
32428
  };
30861
32429
  };
30862
32430
 
30863
32431
  /**
30864
- * HookApi - object-oriented interface
32432
+ * InviteLinkApi - object-oriented interface
30865
32433
  * @export
30866
- * @class HookApi
32434
+ * @class InviteLinkApi
30867
32435
  * @extends {BaseAPI}
30868
32436
  */
30869
- export class HookApi extends BaseAPI {
30870
- /**
30871
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerCreate`
30872
- * @summary Create
30873
- * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO
30874
- * @param {*} [options] Override http request option.
30875
- * @throws {RequiredError}
30876
- * @memberof HookApi
30877
- */
30878
- public hookControllerCreate(hookCreateDTO?: HookCreateDTO, options?: RawAxiosRequestConfig) {
30879
- return HookApiFp(this.configuration)
30880
- .hookControllerCreate(hookCreateDTO, options)
30881
- .then((request) => request(this.axios, this.basePath));
30882
- }
30883
-
32437
+ export class InviteLinkApi extends BaseAPI {
30884
32438
  /**
30885
- * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetExecutions`
30886
- * @summary Get executions
30887
- * @param {string} id
30888
- * @param {any} [success]
30889
- * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
32439
+ * Creates a new shareable invite link. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — copy the URL and distribute it securely. Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
32440
+ * @summary Create invite link
32441
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
30890
32442
  * @param {*} [options] Override http request option.
30891
32443
  * @throws {RequiredError}
30892
- * @memberof HookApi
32444
+ * @memberof InviteLinkApi
30893
32445
  */
30894
- public hookControllerGetExecutions(
30895
- id: string,
30896
- success?: any,
30897
- eventSearchInputDTO?: EventSearchInputDTO,
32446
+ public inviteLinkControllerCreate(
32447
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
30898
32448
  options?: RawAxiosRequestConfig,
30899
32449
  ) {
30900
- return HookApiFp(this.configuration)
30901
- .hookControllerGetExecutions(id, success, eventSearchInputDTO, options)
30902
- .then((request) => request(this.axios, this.basePath));
30903
- }
30904
-
30905
- /**
30906
- * Required permissions: `READ_MODULES`<br> OperationId: `HookControllerGetOne`
30907
- * @summary Get one
30908
- * @param {string} id
30909
- * @param {*} [options] Override http request option.
30910
- * @throws {RequiredError}
30911
- * @memberof HookApi
30912
- */
30913
- public hookControllerGetOne(id: string, options?: RawAxiosRequestConfig) {
30914
- return HookApiFp(this.configuration)
30915
- .hookControllerGetOne(id, options)
32450
+ return InviteLinkApiFp(this.configuration)
32451
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
30916
32452
  .then((request) => request(this.axios, this.basePath));
30917
32453
  }
30918
32454
 
30919
32455
  /**
30920
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerRemove`
30921
- * @summary Remove
30922
- * @param {string} id
32456
+ * <br> OperationId: `InviteLinkControllerPreview`
32457
+ * @summary Preview
32458
+ * @param {string} token
30923
32459
  * @param {*} [options] Override http request option.
30924
32460
  * @throws {RequiredError}
30925
- * @memberof HookApi
32461
+ * @memberof InviteLinkApi
30926
32462
  */
30927
- public hookControllerRemove(id: string, options?: RawAxiosRequestConfig) {
30928
- return HookApiFp(this.configuration)
30929
- .hookControllerRemove(id, options)
32463
+ public inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig) {
32464
+ return InviteLinkApiFp(this.configuration)
32465
+ .inviteLinkControllerPreview(token, options)
30930
32466
  .then((request) => request(this.axios, this.basePath));
30931
32467
  }
30932
32468
 
30933
32469
  /**
30934
- * Search hooks Required permissions: `READ_MODULES`<br> OperationId: `HookControllerSearch`
30935
- * @summary Search
30936
- * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO
32470
+ * <br> OperationId: `InviteLinkControllerRedeem`
32471
+ * @summary Redeem
32472
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
30937
32473
  * @param {*} [options] Override http request option.
30938
32474
  * @throws {RequiredError}
30939
- * @memberof HookApi
32475
+ * @memberof InviteLinkApi
30940
32476
  */
30941
- public hookControllerSearch(hookSearchInputDTO?: HookSearchInputDTO, options?: RawAxiosRequestConfig) {
30942
- return HookApiFp(this.configuration)
30943
- .hookControllerSearch(hookSearchInputDTO, options)
32477
+ public inviteLinkControllerRedeem(redeemInputDTO?: RedeemInputDTO, options?: RawAxiosRequestConfig) {
32478
+ return InviteLinkApiFp(this.configuration)
32479
+ .inviteLinkControllerRedeem(redeemInputDTO, options)
30944
32480
  .then((request) => request(this.axios, this.basePath));
30945
32481
  }
30946
32482
 
30947
32483
  /**
30948
- * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerTrigger`
30949
- * @summary Trigger
30950
- * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO
32484
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
32485
+ * @summary Revoke
32486
+ * @param {string} id
30951
32487
  * @param {*} [options] Override http request option.
30952
32488
  * @throws {RequiredError}
30953
- * @memberof HookApi
32489
+ * @memberof InviteLinkApi
30954
32490
  */
30955
- public hookControllerTrigger(hookTriggerDTO?: HookTriggerDTO, options?: RawAxiosRequestConfig) {
30956
- return HookApiFp(this.configuration)
30957
- .hookControllerTrigger(hookTriggerDTO, options)
32491
+ public inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig) {
32492
+ return InviteLinkApiFp(this.configuration)
32493
+ .inviteLinkControllerRevoke(id, options)
30958
32494
  .then((request) => request(this.axios, this.basePath));
30959
32495
  }
30960
32496
 
30961
32497
  /**
30962
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `HookControllerUpdate`
30963
- * @summary Update
30964
- * @param {string} id
30965
- * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO
32498
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
32499
+ * @summary Search
32500
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
30966
32501
  * @param {*} [options] Override http request option.
30967
32502
  * @throws {RequiredError}
30968
- * @memberof HookApi
32503
+ * @memberof InviteLinkApi
30969
32504
  */
30970
- public hookControllerUpdate(id: string, hookUpdateDTO?: HookUpdateDTO, options?: RawAxiosRequestConfig) {
30971
- return HookApiFp(this.configuration)
30972
- .hookControllerUpdate(id, hookUpdateDTO, options)
32505
+ public inviteLinkControllerSearch(
32506
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
32507
+ options?: RawAxiosRequestConfig,
32508
+ ) {
32509
+ return InviteLinkApiFp(this.configuration)
32510
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
30973
32511
  .then((request) => request(this.axios, this.basePath));
30974
32512
  }
30975
32513
  }
@@ -31212,6 +32750,34 @@ export const MetaApiAxiosParamCreator = function (configuration?: Configuration)
31212
32750
  options: localVarRequestOptions,
31213
32751
  };
31214
32752
  },
32753
+ /**
32754
+ * <br> OperationId: `MetaGetLiveness`
32755
+ * @summary Get liveness
32756
+ * @param {*} [options] Override http request option.
32757
+ * @throws {RequiredError}
32758
+ */
32759
+ metaGetLiveness: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32760
+ const localVarPath = `/livez`;
32761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32763
+ let baseOptions;
32764
+ if (configuration) {
32765
+ baseOptions = configuration.baseOptions;
32766
+ }
32767
+
32768
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
32769
+ const localVarHeaderParameter = {} as any;
32770
+ const localVarQueryParameter = {} as any;
32771
+
32772
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32773
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32774
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32775
+
32776
+ return {
32777
+ url: toPathString(localVarUrlObj),
32778
+ options: localVarRequestOptions,
32779
+ };
32780
+ },
31215
32781
  /**
31216
32782
  * <br> OperationId: `MetaGetMetrics`
31217
32783
  * @summary Get metrics
@@ -31383,6 +32949,27 @@ export const MetaApiFp = function (configuration?: Configuration) {
31383
32949
  configuration,
31384
32950
  )(axios, localVarOperationServerBasePath || basePath);
31385
32951
  },
32952
+ /**
32953
+ * <br> OperationId: `MetaGetLiveness`
32954
+ * @summary Get liveness
32955
+ * @param {*} [options] Override http request option.
32956
+ * @throws {RequiredError}
32957
+ */
32958
+ async metaGetLiveness(
32959
+ options?: RawAxiosRequestConfig,
32960
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthOutputDTO>> {
32961
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
32962
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32963
+ const localVarOperationServerBasePath =
32964
+ operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
32965
+ return (axios, basePath) =>
32966
+ createRequestFunction(
32967
+ localVarAxiosArgs,
32968
+ globalAxios,
32969
+ BASE_PATH,
32970
+ configuration,
32971
+ )(axios, localVarOperationServerBasePath || basePath);
32972
+ },
31386
32973
  /**
31387
32974
  * <br> OperationId: `MetaGetMetrics`
31388
32975
  * @summary Get metrics
@@ -31507,6 +33094,15 @@ export const MetaApiFactory = function (configuration?: Configuration, basePath?
31507
33094
  metaGetHealth(options?: RawAxiosRequestConfig): AxiosPromise<HealthOutputDTO> {
31508
33095
  return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
31509
33096
  },
33097
+ /**
33098
+ * <br> OperationId: `MetaGetLiveness`
33099
+ * @summary Get liveness
33100
+ * @param {*} [options] Override http request option.
33101
+ * @throws {RequiredError}
33102
+ */
33103
+ metaGetLiveness(options?: RawAxiosRequestConfig): AxiosPromise<HealthOutputDTO> {
33104
+ return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
33105
+ },
31510
33106
  /**
31511
33107
  * <br> OperationId: `MetaGetMetrics`
31512
33108
  * @summary Get metrics
@@ -31575,6 +33171,19 @@ export class MetaApi extends BaseAPI {
31575
33171
  .then((request) => request(this.axios, this.basePath));
31576
33172
  }
31577
33173
 
33174
+ /**
33175
+ * <br> OperationId: `MetaGetLiveness`
33176
+ * @summary Get liveness
33177
+ * @param {*} [options] Override http request option.
33178
+ * @throws {RequiredError}
33179
+ * @memberof MetaApi
33180
+ */
33181
+ public metaGetLiveness(options?: RawAxiosRequestConfig) {
33182
+ return MetaApiFp(this.configuration)
33183
+ .metaGetLiveness(options)
33184
+ .then((request) => request(this.axios, this.basePath));
33185
+ }
33186
+
31578
33187
  /**
31579
33188
  * <br> OperationId: `MetaGetMetrics`
31580
33189
  * @summary Get metrics
@@ -38644,7 +40253,7 @@ export const ShopListingApiFp = function (configuration?: Configuration) {
38644
40253
  */
38645
40254
  async shopListingControllerImportListings(
38646
40255
  options?: RawAxiosRequestConfig,
38647
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
40256
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopImportResultDTOAPI>> {
38648
40257
  const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerImportListings(options);
38649
40258
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
38650
40259
  const localVarOperationServerBasePath =
@@ -38767,7 +40376,7 @@ export const ShopListingApiFactory = function (
38767
40376
  * @param {*} [options] Override http request option.
38768
40377
  * @throws {RequiredError}
38769
40378
  */
38770
- shopListingControllerImportListings(options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
40379
+ shopListingControllerImportListings(options?: RawAxiosRequestConfig): AxiosPromise<ShopImportResultDTOAPI> {
38771
40380
  return localVarFp.shopListingControllerImportListings(options).then((request) => request(axios, basePath));
38772
40381
  },
38773
40382
  /**
@@ -39047,17 +40656,419 @@ export const ShopOrderApiAxiosParamCreator = function (configuration?: Configura
39047
40656
  };
39048
40657
  },
39049
40658
  /**
39050
- * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
39051
- * @summary Search orders
39052
- * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40659
+ * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
40660
+ * @summary Search orders
40661
+ * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40662
+ * @param {*} [options] Override http request option.
40663
+ * @throws {RequiredError}
40664
+ */
40665
+ shopOrderControllerSearch: async (
40666
+ shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
40667
+ options: RawAxiosRequestConfig = {},
40668
+ ): Promise<RequestArgs> => {
40669
+ const localVarPath = `/shop/order/search`;
40670
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40671
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40672
+ let baseOptions;
40673
+ if (configuration) {
40674
+ baseOptions = configuration.baseOptions;
40675
+ }
40676
+
40677
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
40678
+ const localVarHeaderParameter = {} as any;
40679
+ const localVarQueryParameter = {} as any;
40680
+
40681
+ // authentication domainAuth required
40682
+
40683
+ localVarHeaderParameter['Content-Type'] = 'application/json';
40684
+
40685
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40686
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40687
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
40688
+ localVarRequestOptions.data = serializeDataIfNeeded(
40689
+ shopOrderSearchInputDTO,
40690
+ localVarRequestOptions,
40691
+ configuration,
40692
+ );
40693
+
40694
+ return {
40695
+ url: toPathString(localVarUrlObj),
40696
+ options: localVarRequestOptions,
40697
+ };
40698
+ },
40699
+ };
40700
+ };
40701
+
40702
+ /**
40703
+ * ShopOrderApi - functional programming interface
40704
+ * @export
40705
+ */
40706
+ export const ShopOrderApiFp = function (configuration?: Configuration) {
40707
+ const localVarAxiosParamCreator = ShopOrderApiAxiosParamCreator(configuration);
40708
+ return {
40709
+ /**
40710
+ * <br> OperationId: `ShopOrderControllerCancel`
40711
+ * @summary Cancel
40712
+ * @param {string} id
40713
+ * @param {*} [options] Override http request option.
40714
+ * @throws {RequiredError}
40715
+ */
40716
+ async shopOrderControllerCancel(
40717
+ id: string,
40718
+ options?: RawAxiosRequestConfig,
40719
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
40720
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCancel(id, options);
40721
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40722
+ const localVarOperationServerBasePath =
40723
+ operationServerMap['ShopOrderApi.shopOrderControllerCancel']?.[localVarOperationServerIndex]?.url;
40724
+ return (axios, basePath) =>
40725
+ createRequestFunction(
40726
+ localVarAxiosArgs,
40727
+ globalAxios,
40728
+ BASE_PATH,
40729
+ configuration,
40730
+ )(axios, localVarOperationServerBasePath || basePath);
40731
+ },
40732
+ /**
40733
+ * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
40734
+ * @summary Claim an order
40735
+ * @param {string} id
40736
+ * @param {*} [options] Override http request option.
40737
+ * @throws {RequiredError}
40738
+ */
40739
+ async shopOrderControllerClaim(
40740
+ id: string,
40741
+ options?: RawAxiosRequestConfig,
40742
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
40743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerClaim(id, options);
40744
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40745
+ const localVarOperationServerBasePath =
40746
+ operationServerMap['ShopOrderApi.shopOrderControllerClaim']?.[localVarOperationServerIndex]?.url;
40747
+ return (axios, basePath) =>
40748
+ createRequestFunction(
40749
+ localVarAxiosArgs,
40750
+ globalAxios,
40751
+ BASE_PATH,
40752
+ configuration,
40753
+ )(axios, localVarOperationServerBasePath || basePath);
40754
+ },
40755
+ /**
40756
+ * <br> OperationId: `ShopOrderControllerCreate`
40757
+ * @summary Create
40758
+ * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
40759
+ * @param {*} [options] Override http request option.
40760
+ * @throws {RequiredError}
40761
+ */
40762
+ async shopOrderControllerCreate(
40763
+ shopOrderCreateDTO?: ShopOrderCreateDTO,
40764
+ options?: RawAxiosRequestConfig,
40765
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
40766
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCreate(shopOrderCreateDTO, options);
40767
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40768
+ const localVarOperationServerBasePath =
40769
+ operationServerMap['ShopOrderApi.shopOrderControllerCreate']?.[localVarOperationServerIndex]?.url;
40770
+ return (axios, basePath) =>
40771
+ createRequestFunction(
40772
+ localVarAxiosArgs,
40773
+ globalAxios,
40774
+ BASE_PATH,
40775
+ configuration,
40776
+ )(axios, localVarOperationServerBasePath || basePath);
40777
+ },
40778
+ /**
40779
+ * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
40780
+ * @summary Get order by ID
40781
+ * @param {string} id
40782
+ * @param {*} [options] Override http request option.
40783
+ * @throws {RequiredError}
40784
+ */
40785
+ async shopOrderControllerGetOne(
40786
+ id: string,
40787
+ options?: RawAxiosRequestConfig,
40788
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
40789
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerGetOne(id, options);
40790
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40791
+ const localVarOperationServerBasePath =
40792
+ operationServerMap['ShopOrderApi.shopOrderControllerGetOne']?.[localVarOperationServerIndex]?.url;
40793
+ return (axios, basePath) =>
40794
+ createRequestFunction(
40795
+ localVarAxiosArgs,
40796
+ globalAxios,
40797
+ BASE_PATH,
40798
+ configuration,
40799
+ )(axios, localVarOperationServerBasePath || basePath);
40800
+ },
40801
+ /**
40802
+ * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
40803
+ * @summary Search orders
40804
+ * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40805
+ * @param {*} [options] Override http request option.
40806
+ * @throws {RequiredError}
40807
+ */
40808
+ async shopOrderControllerSearch(
40809
+ shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
40810
+ options?: RawAxiosRequestConfig,
40811
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputArrayDTOAPI>> {
40812
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerSearch(
40813
+ shopOrderSearchInputDTO,
40814
+ options,
40815
+ );
40816
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40817
+ const localVarOperationServerBasePath =
40818
+ operationServerMap['ShopOrderApi.shopOrderControllerSearch']?.[localVarOperationServerIndex]?.url;
40819
+ return (axios, basePath) =>
40820
+ createRequestFunction(
40821
+ localVarAxiosArgs,
40822
+ globalAxios,
40823
+ BASE_PATH,
40824
+ configuration,
40825
+ )(axios, localVarOperationServerBasePath || basePath);
40826
+ },
40827
+ };
40828
+ };
40829
+
40830
+ /**
40831
+ * ShopOrderApi - factory interface
40832
+ * @export
40833
+ */
40834
+ export const ShopOrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
40835
+ const localVarFp = ShopOrderApiFp(configuration);
40836
+ return {
40837
+ /**
40838
+ * <br> OperationId: `ShopOrderControllerCancel`
40839
+ * @summary Cancel
40840
+ * @param {string} id
40841
+ * @param {*} [options] Override http request option.
40842
+ * @throws {RequiredError}
40843
+ */
40844
+ shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
40845
+ return localVarFp.shopOrderControllerCancel(id, options).then((request) => request(axios, basePath));
40846
+ },
40847
+ /**
40848
+ * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
40849
+ * @summary Claim an order
40850
+ * @param {string} id
40851
+ * @param {*} [options] Override http request option.
40852
+ * @throws {RequiredError}
40853
+ */
40854
+ shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
40855
+ return localVarFp.shopOrderControllerClaim(id, options).then((request) => request(axios, basePath));
40856
+ },
40857
+ /**
40858
+ * <br> OperationId: `ShopOrderControllerCreate`
40859
+ * @summary Create
40860
+ * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
40861
+ * @param {*} [options] Override http request option.
40862
+ * @throws {RequiredError}
40863
+ */
40864
+ shopOrderControllerCreate(
40865
+ shopOrderCreateDTO?: ShopOrderCreateDTO,
40866
+ options?: RawAxiosRequestConfig,
40867
+ ): AxiosPromise<ShopOrderOutputDTOAPI> {
40868
+ return localVarFp
40869
+ .shopOrderControllerCreate(shopOrderCreateDTO, options)
40870
+ .then((request) => request(axios, basePath));
40871
+ },
40872
+ /**
40873
+ * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
40874
+ * @summary Get order by ID
40875
+ * @param {string} id
40876
+ * @param {*} [options] Override http request option.
40877
+ * @throws {RequiredError}
40878
+ */
40879
+ shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
40880
+ return localVarFp.shopOrderControllerGetOne(id, options).then((request) => request(axios, basePath));
40881
+ },
40882
+ /**
40883
+ * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
40884
+ * @summary Search orders
40885
+ * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40886
+ * @param {*} [options] Override http request option.
40887
+ * @throws {RequiredError}
40888
+ */
40889
+ shopOrderControllerSearch(
40890
+ shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
40891
+ options?: RawAxiosRequestConfig,
40892
+ ): AxiosPromise<ShopOrderOutputArrayDTOAPI> {
40893
+ return localVarFp
40894
+ .shopOrderControllerSearch(shopOrderSearchInputDTO, options)
40895
+ .then((request) => request(axios, basePath));
40896
+ },
40897
+ };
40898
+ };
40899
+
40900
+ /**
40901
+ * ShopOrderApi - object-oriented interface
40902
+ * @export
40903
+ * @class ShopOrderApi
40904
+ * @extends {BaseAPI}
40905
+ */
40906
+ export class ShopOrderApi extends BaseAPI {
40907
+ /**
40908
+ * <br> OperationId: `ShopOrderControllerCancel`
40909
+ * @summary Cancel
40910
+ * @param {string} id
40911
+ * @param {*} [options] Override http request option.
40912
+ * @throws {RequiredError}
40913
+ * @memberof ShopOrderApi
40914
+ */
40915
+ public shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig) {
40916
+ return ShopOrderApiFp(this.configuration)
40917
+ .shopOrderControllerCancel(id, options)
40918
+ .then((request) => request(this.axios, this.basePath));
40919
+ }
40920
+
40921
+ /**
40922
+ * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
40923
+ * @summary Claim an order
40924
+ * @param {string} id
40925
+ * @param {*} [options] Override http request option.
40926
+ * @throws {RequiredError}
40927
+ * @memberof ShopOrderApi
40928
+ */
40929
+ public shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig) {
40930
+ return ShopOrderApiFp(this.configuration)
40931
+ .shopOrderControllerClaim(id, options)
40932
+ .then((request) => request(this.axios, this.basePath));
40933
+ }
40934
+
40935
+ /**
40936
+ * <br> OperationId: `ShopOrderControllerCreate`
40937
+ * @summary Create
40938
+ * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
40939
+ * @param {*} [options] Override http request option.
40940
+ * @throws {RequiredError}
40941
+ * @memberof ShopOrderApi
40942
+ */
40943
+ public shopOrderControllerCreate(shopOrderCreateDTO?: ShopOrderCreateDTO, options?: RawAxiosRequestConfig) {
40944
+ return ShopOrderApiFp(this.configuration)
40945
+ .shopOrderControllerCreate(shopOrderCreateDTO, options)
40946
+ .then((request) => request(this.axios, this.basePath));
40947
+ }
40948
+
40949
+ /**
40950
+ * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
40951
+ * @summary Get order by ID
40952
+ * @param {string} id
40953
+ * @param {*} [options] Override http request option.
40954
+ * @throws {RequiredError}
40955
+ * @memberof ShopOrderApi
40956
+ */
40957
+ public shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig) {
40958
+ return ShopOrderApiFp(this.configuration)
40959
+ .shopOrderControllerGetOne(id, options)
40960
+ .then((request) => request(this.axios, this.basePath));
40961
+ }
40962
+
40963
+ /**
40964
+ * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
40965
+ * @summary Search orders
40966
+ * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40967
+ * @param {*} [options] Override http request option.
40968
+ * @throws {RequiredError}
40969
+ * @memberof ShopOrderApi
40970
+ */
40971
+ public shopOrderControllerSearch(shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, options?: RawAxiosRequestConfig) {
40972
+ return ShopOrderApiFp(this.configuration)
40973
+ .shopOrderControllerSearch(shopOrderSearchInputDTO, options)
40974
+ .then((request) => request(this.axios, this.basePath));
40975
+ }
40976
+ }
40977
+
40978
+ /**
40979
+ * StorefrontConfigApi - axios parameter creator
40980
+ * @export
40981
+ */
40982
+ export const StorefrontConfigApiAxiosParamCreator = function (configuration?: Configuration) {
40983
+ return {
40984
+ /**
40985
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
40986
+ * @summary Get effective config
40987
+ * @param {string} gameServerId
40988
+ * @param {*} [options] Override http request option.
40989
+ * @throws {RequiredError}
40990
+ */
40991
+ storefrontConfigControllerGetEffectiveConfig: async (
40992
+ gameServerId: string,
40993
+ options: RawAxiosRequestConfig = {},
40994
+ ): Promise<RequestArgs> => {
40995
+ // verify required parameter 'gameServerId' is not null or undefined
40996
+ assertParamExists('storefrontConfigControllerGetEffectiveConfig', 'gameServerId', gameServerId);
40997
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(
40998
+ `{${'gameServerId'}}`,
40999
+ encodeURIComponent(String(gameServerId)),
41000
+ );
41001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41002
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41003
+ let baseOptions;
41004
+ if (configuration) {
41005
+ baseOptions = configuration.baseOptions;
41006
+ }
41007
+
41008
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
41009
+ const localVarHeaderParameter = {} as any;
41010
+ const localVarQueryParameter = {} as any;
41011
+
41012
+ // authentication domainAuth required
41013
+
41014
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
41015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41016
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
41017
+
41018
+ return {
41019
+ url: toPathString(localVarUrlObj),
41020
+ options: localVarRequestOptions,
41021
+ };
41022
+ },
41023
+ /**
41024
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
41025
+ * @summary List templates
41026
+ * @param {*} [options] Override http request option.
41027
+ * @throws {RequiredError}
41028
+ */
41029
+ storefrontConfigControllerListTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41030
+ const localVarPath = `/storefront/templates`;
41031
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41032
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41033
+ let baseOptions;
41034
+ if (configuration) {
41035
+ baseOptions = configuration.baseOptions;
41036
+ }
41037
+
41038
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
41039
+ const localVarHeaderParameter = {} as any;
41040
+ const localVarQueryParameter = {} as any;
41041
+
41042
+ // authentication domainAuth required
41043
+
41044
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
41045
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41046
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
41047
+
41048
+ return {
41049
+ url: toPathString(localVarUrlObj),
41050
+ options: localVarRequestOptions,
41051
+ };
41052
+ },
41053
+ /**
41054
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
41055
+ * @summary Set config
41056
+ * @param {string} gameServerId
41057
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39053
41058
  * @param {*} [options] Override http request option.
39054
41059
  * @throws {RequiredError}
39055
41060
  */
39056
- shopOrderControllerSearch: async (
39057
- shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
41061
+ storefrontConfigControllerSetConfig: async (
41062
+ gameServerId: string,
41063
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
39058
41064
  options: RawAxiosRequestConfig = {},
39059
41065
  ): Promise<RequestArgs> => {
39060
- const localVarPath = `/shop/order/search`;
41066
+ // verify required parameter 'gameServerId' is not null or undefined
41067
+ assertParamExists('storefrontConfigControllerSetConfig', 'gameServerId', gameServerId);
41068
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(
41069
+ `{${'gameServerId'}}`,
41070
+ encodeURIComponent(String(gameServerId)),
41071
+ );
39061
41072
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
39062
41073
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39063
41074
  let baseOptions;
@@ -39065,7 +41076,7 @@ export const ShopOrderApiAxiosParamCreator = function (configuration?: Configura
39065
41076
  baseOptions = configuration.baseOptions;
39066
41077
  }
39067
41078
 
39068
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
41079
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
39069
41080
  const localVarHeaderParameter = {} as any;
39070
41081
  const localVarQueryParameter = {} as any;
39071
41082
 
@@ -39077,7 +41088,7 @@ export const ShopOrderApiAxiosParamCreator = function (configuration?: Configura
39077
41088
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39078
41089
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
39079
41090
  localVarRequestOptions.data = serializeDataIfNeeded(
39080
- shopOrderSearchInputDTO,
41091
+ storefrontConfigUpsertBody,
39081
41092
  localVarRequestOptions,
39082
41093
  configuration,
39083
41094
  );
@@ -39091,73 +41102,32 @@ export const ShopOrderApiAxiosParamCreator = function (configuration?: Configura
39091
41102
  };
39092
41103
 
39093
41104
  /**
39094
- * ShopOrderApi - functional programming interface
41105
+ * StorefrontConfigApi - functional programming interface
39095
41106
  * @export
39096
41107
  */
39097
- export const ShopOrderApiFp = function (configuration?: Configuration) {
39098
- const localVarAxiosParamCreator = ShopOrderApiAxiosParamCreator(configuration);
41108
+ export const StorefrontConfigApiFp = function (configuration?: Configuration) {
41109
+ const localVarAxiosParamCreator = StorefrontConfigApiAxiosParamCreator(configuration);
39099
41110
  return {
39100
41111
  /**
39101
- * <br> OperationId: `ShopOrderControllerCancel`
39102
- * @summary Cancel
39103
- * @param {string} id
39104
- * @param {*} [options] Override http request option.
39105
- * @throws {RequiredError}
39106
- */
39107
- async shopOrderControllerCancel(
39108
- id: string,
39109
- options?: RawAxiosRequestConfig,
39110
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
39111
- const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCancel(id, options);
39112
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39113
- const localVarOperationServerBasePath =
39114
- operationServerMap['ShopOrderApi.shopOrderControllerCancel']?.[localVarOperationServerIndex]?.url;
39115
- return (axios, basePath) =>
39116
- createRequestFunction(
39117
- localVarAxiosArgs,
39118
- globalAxios,
39119
- BASE_PATH,
39120
- configuration,
39121
- )(axios, localVarOperationServerBasePath || basePath);
39122
- },
39123
- /**
39124
- * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
39125
- * @summary Claim an order
39126
- * @param {string} id
39127
- * @param {*} [options] Override http request option.
39128
- * @throws {RequiredError}
39129
- */
39130
- async shopOrderControllerClaim(
39131
- id: string,
39132
- options?: RawAxiosRequestConfig,
39133
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
39134
- const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerClaim(id, options);
39135
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39136
- const localVarOperationServerBasePath =
39137
- operationServerMap['ShopOrderApi.shopOrderControllerClaim']?.[localVarOperationServerIndex]?.url;
39138
- return (axios, basePath) =>
39139
- createRequestFunction(
39140
- localVarAxiosArgs,
39141
- globalAxios,
39142
- BASE_PATH,
39143
- configuration,
39144
- )(axios, localVarOperationServerBasePath || basePath);
39145
- },
39146
- /**
39147
- * <br> OperationId: `ShopOrderControllerCreate`
39148
- * @summary Create
39149
- * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
41112
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
41113
+ * @summary Get effective config
41114
+ * @param {string} gameServerId
39150
41115
  * @param {*} [options] Override http request option.
39151
41116
  * @throws {RequiredError}
39152
41117
  */
39153
- async shopOrderControllerCreate(
39154
- shopOrderCreateDTO?: ShopOrderCreateDTO,
41118
+ async storefrontConfigControllerGetEffectiveConfig(
41119
+ gameServerId: string,
39155
41120
  options?: RawAxiosRequestConfig,
39156
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
39157
- const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCreate(shopOrderCreateDTO, options);
41121
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI>> {
41122
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerGetEffectiveConfig(
41123
+ gameServerId,
41124
+ options,
41125
+ );
39158
41126
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39159
41127
  const localVarOperationServerBasePath =
39160
- operationServerMap['ShopOrderApi.shopOrderControllerCreate']?.[localVarOperationServerIndex]?.url;
41128
+ operationServerMap['StorefrontConfigApi.storefrontConfigControllerGetEffectiveConfig']?.[
41129
+ localVarOperationServerIndex
41130
+ ]?.url;
39161
41131
  return (axios, basePath) =>
39162
41132
  createRequestFunction(
39163
41133
  localVarAxiosArgs,
@@ -39167,20 +41137,20 @@ export const ShopOrderApiFp = function (configuration?: Configuration) {
39167
41137
  )(axios, localVarOperationServerBasePath || basePath);
39168
41138
  },
39169
41139
  /**
39170
- * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
39171
- * @summary Get order by ID
39172
- * @param {string} id
41140
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
41141
+ * @summary List templates
39173
41142
  * @param {*} [options] Override http request option.
39174
41143
  * @throws {RequiredError}
39175
41144
  */
39176
- async shopOrderControllerGetOne(
39177
- id: string,
41145
+ async storefrontConfigControllerListTemplates(
39178
41146
  options?: RawAxiosRequestConfig,
39179
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
39180
- const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerGetOne(id, options);
41147
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StorefrontTemplateOutputArrayDTOAPI>> {
41148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerListTemplates(options);
39181
41149
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39182
41150
  const localVarOperationServerBasePath =
39183
- operationServerMap['ShopOrderApi.shopOrderControllerGetOne']?.[localVarOperationServerIndex]?.url;
41151
+ operationServerMap['StorefrontConfigApi.storefrontConfigControllerListTemplates']?.[
41152
+ localVarOperationServerIndex
41153
+ ]?.url;
39184
41154
  return (axios, basePath) =>
39185
41155
  createRequestFunction(
39186
41156
  localVarAxiosArgs,
@@ -39190,23 +41160,27 @@ export const ShopOrderApiFp = function (configuration?: Configuration) {
39190
41160
  )(axios, localVarOperationServerBasePath || basePath);
39191
41161
  },
39192
41162
  /**
39193
- * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
39194
- * @summary Search orders
39195
- * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
41163
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
41164
+ * @summary Set config
41165
+ * @param {string} gameServerId
41166
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39196
41167
  * @param {*} [options] Override http request option.
39197
41168
  * @throws {RequiredError}
39198
41169
  */
39199
- async shopOrderControllerSearch(
39200
- shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
41170
+ async storefrontConfigControllerSetConfig(
41171
+ gameServerId: string,
41172
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
39201
41173
  options?: RawAxiosRequestConfig,
39202
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputArrayDTOAPI>> {
39203
- const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerSearch(
39204
- shopOrderSearchInputDTO,
41174
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI>> {
41175
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerSetConfig(
41176
+ gameServerId,
41177
+ storefrontConfigUpsertBody,
39205
41178
  options,
39206
41179
  );
39207
41180
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39208
41181
  const localVarOperationServerBasePath =
39209
- operationServerMap['ShopOrderApi.shopOrderControllerSearch']?.[localVarOperationServerIndex]?.url;
41182
+ operationServerMap['StorefrontConfigApi.storefrontConfigControllerSetConfig']?.[localVarOperationServerIndex]
41183
+ ?.url;
39210
41184
  return (axios, basePath) =>
39211
41185
  createRequestFunction(
39212
41186
  localVarAxiosArgs,
@@ -39219,149 +41193,112 @@ export const ShopOrderApiFp = function (configuration?: Configuration) {
39219
41193
  };
39220
41194
 
39221
41195
  /**
39222
- * ShopOrderApi - factory interface
41196
+ * StorefrontConfigApi - factory interface
39223
41197
  * @export
39224
41198
  */
39225
- export const ShopOrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
39226
- const localVarFp = ShopOrderApiFp(configuration);
41199
+ export const StorefrontConfigApiFactory = function (
41200
+ configuration?: Configuration,
41201
+ basePath?: string,
41202
+ axios?: AxiosInstance,
41203
+ ) {
41204
+ const localVarFp = StorefrontConfigApiFp(configuration);
39227
41205
  return {
39228
41206
  /**
39229
- * <br> OperationId: `ShopOrderControllerCancel`
39230
- * @summary Cancel
39231
- * @param {string} id
39232
- * @param {*} [options] Override http request option.
39233
- * @throws {RequiredError}
39234
- */
39235
- shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
39236
- return localVarFp.shopOrderControllerCancel(id, options).then((request) => request(axios, basePath));
39237
- },
39238
- /**
39239
- * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
39240
- * @summary Claim an order
39241
- * @param {string} id
39242
- * @param {*} [options] Override http request option.
39243
- * @throws {RequiredError}
39244
- */
39245
- shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
39246
- return localVarFp.shopOrderControllerClaim(id, options).then((request) => request(axios, basePath));
39247
- },
39248
- /**
39249
- * <br> OperationId: `ShopOrderControllerCreate`
39250
- * @summary Create
39251
- * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
41207
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
41208
+ * @summary Get effective config
41209
+ * @param {string} gameServerId
39252
41210
  * @param {*} [options] Override http request option.
39253
41211
  * @throws {RequiredError}
39254
41212
  */
39255
- shopOrderControllerCreate(
39256
- shopOrderCreateDTO?: ShopOrderCreateDTO,
41213
+ storefrontConfigControllerGetEffectiveConfig(
41214
+ gameServerId: string,
39257
41215
  options?: RawAxiosRequestConfig,
39258
- ): AxiosPromise<ShopOrderOutputDTOAPI> {
41216
+ ): AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI> {
39259
41217
  return localVarFp
39260
- .shopOrderControllerCreate(shopOrderCreateDTO, options)
41218
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
39261
41219
  .then((request) => request(axios, basePath));
39262
41220
  },
39263
41221
  /**
39264
- * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
39265
- * @summary Get order by ID
39266
- * @param {string} id
41222
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
41223
+ * @summary List templates
39267
41224
  * @param {*} [options] Override http request option.
39268
41225
  * @throws {RequiredError}
39269
41226
  */
39270
- shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
39271
- return localVarFp.shopOrderControllerGetOne(id, options).then((request) => request(axios, basePath));
41227
+ storefrontConfigControllerListTemplates(
41228
+ options?: RawAxiosRequestConfig,
41229
+ ): AxiosPromise<StorefrontTemplateOutputArrayDTOAPI> {
41230
+ return localVarFp.storefrontConfigControllerListTemplates(options).then((request) => request(axios, basePath));
39272
41231
  },
39273
41232
  /**
39274
- * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
39275
- * @summary Search orders
39276
- * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
41233
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
41234
+ * @summary Set config
41235
+ * @param {string} gameServerId
41236
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39277
41237
  * @param {*} [options] Override http request option.
39278
41238
  * @throws {RequiredError}
39279
41239
  */
39280
- shopOrderControllerSearch(
39281
- shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
41240
+ storefrontConfigControllerSetConfig(
41241
+ gameServerId: string,
41242
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
39282
41243
  options?: RawAxiosRequestConfig,
39283
- ): AxiosPromise<ShopOrderOutputArrayDTOAPI> {
41244
+ ): AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI> {
39284
41245
  return localVarFp
39285
- .shopOrderControllerSearch(shopOrderSearchInputDTO, options)
41246
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
39286
41247
  .then((request) => request(axios, basePath));
39287
41248
  },
39288
41249
  };
39289
41250
  };
39290
41251
 
39291
41252
  /**
39292
- * ShopOrderApi - object-oriented interface
41253
+ * StorefrontConfigApi - object-oriented interface
39293
41254
  * @export
39294
- * @class ShopOrderApi
41255
+ * @class StorefrontConfigApi
39295
41256
  * @extends {BaseAPI}
39296
41257
  */
39297
- export class ShopOrderApi extends BaseAPI {
41258
+ export class StorefrontConfigApi extends BaseAPI {
39298
41259
  /**
39299
- * <br> OperationId: `ShopOrderControllerCancel`
39300
- * @summary Cancel
39301
- * @param {string} id
39302
- * @param {*} [options] Override http request option.
39303
- * @throws {RequiredError}
39304
- * @memberof ShopOrderApi
39305
- */
39306
- public shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig) {
39307
- return ShopOrderApiFp(this.configuration)
39308
- .shopOrderControllerCancel(id, options)
39309
- .then((request) => request(this.axios, this.basePath));
39310
- }
39311
-
39312
- /**
39313
- * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
39314
- * @summary Claim an order
39315
- * @param {string} id
39316
- * @param {*} [options] Override http request option.
39317
- * @throws {RequiredError}
39318
- * @memberof ShopOrderApi
39319
- */
39320
- public shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig) {
39321
- return ShopOrderApiFp(this.configuration)
39322
- .shopOrderControllerClaim(id, options)
39323
- .then((request) => request(this.axios, this.basePath));
39324
- }
39325
-
39326
- /**
39327
- * <br> OperationId: `ShopOrderControllerCreate`
39328
- * @summary Create
39329
- * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
41260
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
41261
+ * @summary Get effective config
41262
+ * @param {string} gameServerId
39330
41263
  * @param {*} [options] Override http request option.
39331
41264
  * @throws {RequiredError}
39332
- * @memberof ShopOrderApi
41265
+ * @memberof StorefrontConfigApi
39333
41266
  */
39334
- public shopOrderControllerCreate(shopOrderCreateDTO?: ShopOrderCreateDTO, options?: RawAxiosRequestConfig) {
39335
- return ShopOrderApiFp(this.configuration)
39336
- .shopOrderControllerCreate(shopOrderCreateDTO, options)
41267
+ public storefrontConfigControllerGetEffectiveConfig(gameServerId: string, options?: RawAxiosRequestConfig) {
41268
+ return StorefrontConfigApiFp(this.configuration)
41269
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
39337
41270
  .then((request) => request(this.axios, this.basePath));
39338
41271
  }
39339
41272
 
39340
41273
  /**
39341
- * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
39342
- * @summary Get order by ID
39343
- * @param {string} id
41274
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
41275
+ * @summary List templates
39344
41276
  * @param {*} [options] Override http request option.
39345
41277
  * @throws {RequiredError}
39346
- * @memberof ShopOrderApi
41278
+ * @memberof StorefrontConfigApi
39347
41279
  */
39348
- public shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig) {
39349
- return ShopOrderApiFp(this.configuration)
39350
- .shopOrderControllerGetOne(id, options)
41280
+ public storefrontConfigControllerListTemplates(options?: RawAxiosRequestConfig) {
41281
+ return StorefrontConfigApiFp(this.configuration)
41282
+ .storefrontConfigControllerListTemplates(options)
39351
41283
  .then((request) => request(this.axios, this.basePath));
39352
41284
  }
39353
41285
 
39354
41286
  /**
39355
- * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
39356
- * @summary Search orders
39357
- * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
41287
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
41288
+ * @summary Set config
41289
+ * @param {string} gameServerId
41290
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39358
41291
  * @param {*} [options] Override http request option.
39359
41292
  * @throws {RequiredError}
39360
- * @memberof ShopOrderApi
41293
+ * @memberof StorefrontConfigApi
39361
41294
  */
39362
- public shopOrderControllerSearch(shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, options?: RawAxiosRequestConfig) {
39363
- return ShopOrderApiFp(this.configuration)
39364
- .shopOrderControllerSearch(shopOrderSearchInputDTO, options)
41295
+ public storefrontConfigControllerSetConfig(
41296
+ gameServerId: string,
41297
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
41298
+ options?: RawAxiosRequestConfig,
41299
+ ) {
41300
+ return StorefrontConfigApiFp(this.configuration)
41301
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
39365
41302
  .then((request) => request(this.axios, this.basePath));
39366
41303
  }
39367
41304
  }
@@ -39949,6 +41886,36 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
39949
41886
  options: localVarRequestOptions,
39950
41887
  };
39951
41888
  },
41889
+ /**
41890
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
41891
+ * @summary Count billable dashboard users
41892
+ * @param {*} [options] Override http request option.
41893
+ * @throws {RequiredError}
41894
+ */
41895
+ userControllerCountBillableDashboardUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41896
+ const localVarPath = `/user/count`;
41897
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41898
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41899
+ let baseOptions;
41900
+ if (configuration) {
41901
+ baseOptions = configuration.baseOptions;
41902
+ }
41903
+
41904
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
41905
+ const localVarHeaderParameter = {} as any;
41906
+ const localVarQueryParameter = {} as any;
41907
+
41908
+ // authentication domainAuth required
41909
+
41910
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
41911
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41912
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
41913
+
41914
+ return {
41915
+ url: toPathString(localVarUrlObj),
41916
+ options: localVarRequestOptions,
41917
+ };
41918
+ },
39952
41919
  /**
39953
41920
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
39954
41921
  * @summary Create
@@ -40054,6 +42021,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
40054
42021
  * @summary Invite
40055
42022
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
40056
42023
  * @param {*} [options] Override http request option.
42024
+ * @deprecated
40057
42025
  * @throws {RequiredError}
40058
42026
  */
40059
42027
  userControllerInvite: async (
@@ -40455,6 +42423,27 @@ export const UserApiFp = function (configuration?: Configuration) {
40455
42423
  configuration,
40456
42424
  )(axios, localVarOperationServerBasePath || basePath);
40457
42425
  },
42426
+ /**
42427
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
42428
+ * @summary Count billable dashboard users
42429
+ * @param {*} [options] Override http request option.
42430
+ * @throws {RequiredError}
42431
+ */
42432
+ async userControllerCountBillableDashboardUsers(
42433
+ options?: RawAxiosRequestConfig,
42434
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountOutputDTOAPI>> {
42435
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerCountBillableDashboardUsers(options);
42436
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
42437
+ const localVarOperationServerBasePath =
42438
+ operationServerMap['UserApi.userControllerCountBillableDashboardUsers']?.[localVarOperationServerIndex]?.url;
42439
+ return (axios, basePath) =>
42440
+ createRequestFunction(
42441
+ localVarAxiosArgs,
42442
+ globalAxios,
42443
+ BASE_PATH,
42444
+ configuration,
42445
+ )(axios, localVarOperationServerBasePath || basePath);
42446
+ },
40458
42447
  /**
40459
42448
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
40460
42449
  * @summary Create
@@ -40527,6 +42516,7 @@ export const UserApiFp = function (configuration?: Configuration) {
40527
42516
  * @summary Invite
40528
42517
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
40529
42518
  * @param {*} [options] Override http request option.
42519
+ * @deprecated
40530
42520
  * @throws {RequiredError}
40531
42521
  */
40532
42522
  async userControllerInvite(
@@ -40784,6 +42774,15 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
40784
42774
  .userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options)
40785
42775
  .then((request) => request(axios, basePath));
40786
42776
  },
42777
+ /**
42778
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
42779
+ * @summary Count billable dashboard users
42780
+ * @param {*} [options] Override http request option.
42781
+ * @throws {RequiredError}
42782
+ */
42783
+ userControllerCountBillableDashboardUsers(options?: RawAxiosRequestConfig): AxiosPromise<UserCountOutputDTOAPI> {
42784
+ return localVarFp.userControllerCountBillableDashboardUsers(options).then((request) => request(axios, basePath));
42785
+ },
40787
42786
  /**
40788
42787
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
40789
42788
  * @summary Create
@@ -40821,6 +42820,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
40821
42820
  * @summary Invite
40822
42821
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
40823
42822
  * @param {*} [options] Override http request option.
42823
+ * @deprecated
40824
42824
  * @throws {RequiredError}
40825
42825
  */
40826
42826
  userControllerInvite(
@@ -40962,6 +42962,19 @@ export class UserApi extends BaseAPI {
40962
42962
  .then((request) => request(this.axios, this.basePath));
40963
42963
  }
40964
42964
 
42965
+ /**
42966
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
42967
+ * @summary Count billable dashboard users
42968
+ * @param {*} [options] Override http request option.
42969
+ * @throws {RequiredError}
42970
+ * @memberof UserApi
42971
+ */
42972
+ public userControllerCountBillableDashboardUsers(options?: RawAxiosRequestConfig) {
42973
+ return UserApiFp(this.configuration)
42974
+ .userControllerCountBillableDashboardUsers(options)
42975
+ .then((request) => request(this.axios, this.basePath));
42976
+ }
42977
+
40965
42978
  /**
40966
42979
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
40967
42980
  * @summary Create
@@ -41008,6 +43021,7 @@ export class UserApi extends BaseAPI {
41008
43021
  * @summary Invite
41009
43022
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
41010
43023
  * @param {*} [options] Override http request option.
43024
+ * @deprecated
41011
43025
  * @throws {RequiredError}
41012
43026
  * @memberof UserApi
41013
43027
  */