@paynow-gg/typescript-sdk 1.0.50 → 1.0.52

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.
@@ -778,6 +778,43 @@ export interface paths {
778
778
  patch?: never;
779
779
  trace?: never;
780
780
  };
781
+ "/v1/stores/{storeId}/gameservers/{gameServerId}/console": {
782
+ parameters: {
783
+ query?: never;
784
+ header?: never;
785
+ path?: never;
786
+ cookie?: never;
787
+ };
788
+ /** Get the associated console for a game server. */
789
+ get: operations["GameServers_GetGameServerConsole"];
790
+ put?: never;
791
+ /** Create a console for a game server. */
792
+ post: operations["GameServers_CreateGameServerConsole"];
793
+ /** Delete an associated game server console. */
794
+ delete: operations["GameServers_DeleteGameServerConsole"];
795
+ options?: never;
796
+ head?: never;
797
+ /** Update a console for a game server. */
798
+ patch: operations["GameServers_UpdateGameServerConsole"];
799
+ trace?: never;
800
+ };
801
+ "/v1/stores/{storeId}/gameservers/{gameServerId}/console/messages": {
802
+ parameters: {
803
+ query?: never;
804
+ header?: never;
805
+ path?: never;
806
+ cookie?: never;
807
+ };
808
+ /** Get console messages for a game server. */
809
+ get: operations["GameServers_GetGameServerConsoleMessages"];
810
+ put?: never;
811
+ post?: never;
812
+ delete?: never;
813
+ options?: never;
814
+ head?: never;
815
+ patch?: never;
816
+ trace?: never;
817
+ };
781
818
  "/v1/stores/{storeId}/gameservers": {
782
819
  parameters: {
783
820
  query?: never;
@@ -2422,6 +2459,15 @@ export interface components {
2422
2459
  CreateDownloadableFileDownloadUrlResponseDto: {
2423
2460
  download_signed_url: string;
2424
2461
  };
2462
+ CreateGameServerConsoleDto: {
2463
+ type: components["schemas"]["GameServerConsoleTypeDto"];
2464
+ enabled: boolean;
2465
+ host: string;
2466
+ /** Format: int32 */
2467
+ port: number;
2468
+ password?: string;
2469
+ secure: boolean;
2470
+ };
2425
2471
  CreateGameServerDto: {
2426
2472
  name: string;
2427
2473
  enabled: boolean;
@@ -2928,6 +2974,39 @@ export interface components {
2928
2974
  * @example 411486491630370816
2929
2975
  */
2930
2976
  FlakeId: string;
2977
+ /** @enum {string} */
2978
+ GameServerConsoleConnectionStatusDto: "unknown" | "disconnected" | "connecting" | "connected" | "backoff";
2979
+ GameServerConsoleDto: {
2980
+ game_server_id: components["schemas"]["FlakeId"];
2981
+ store_id: components["schemas"]["FlakeId"];
2982
+ type: components["schemas"]["GameServerConsoleTypeDto"];
2983
+ enabled: boolean;
2984
+ assigned_runner_id: string;
2985
+ connection_status: components["schemas"]["GameServerConsoleConnectionStatusDto"];
2986
+ /** Format: date-time */
2987
+ last_heartbeat_at?: null | string;
2988
+ host: string;
2989
+ /** Format: int32 */
2990
+ port: number;
2991
+ password?: null | string;
2992
+ secure: boolean;
2993
+ /** Format: date-time */
2994
+ created_at: string;
2995
+ created_by: components["schemas"]["ActorDto"];
2996
+ /** Format: date-time */
2997
+ updated_at?: null | string;
2998
+ updated_by?: components["schemas"]["ActorDto"];
2999
+ };
3000
+ GameServerConsoleMessageDto: {
3001
+ type: components["schemas"]["GameServerConsoleMessageTypeDto"];
3002
+ message: string;
3003
+ /** Format: date-time */
3004
+ time: string;
3005
+ };
3006
+ /** @enum {string} */
3007
+ GameServerConsoleMessageTypeDto: "unknown" | "output" | "command" | "response" | "system";
3008
+ /** @enum {string} */
3009
+ GameServerConsoleTypeDto: "unknown" | "rust";
2931
3010
  /** @description Represents a game server in the PayNow system with authentication tokens and linking information. */
2932
3011
  GameServerDto: {
2933
3012
  id: components["schemas"]["FlakeId"];
@@ -5057,14 +5136,23 @@ export interface components {
5057
5136
  tax_jurisdictions: components["schemas"]["SalesTaxJurisdictionDto"][];
5058
5137
  /** @description IP address of the customer at the time of subscription. */
5059
5138
  customer_ip?: null | string;
5060
- /** @description Indicates whether this subscription is a gift. */
5139
+ /**
5140
+ * @deprecated
5141
+ * @description Indicates whether this subscription is a gift.
5142
+ */
5061
5143
  gift: boolean;
5062
5144
  gift_to_customer?: components["schemas"]["CustomerDto"];
5063
5145
  product_id: components["schemas"]["FlakeId"];
5064
5146
  product_version_id: components["schemas"]["FlakeId"];
5065
- /** @description Name of the product associated with this subscription. */
5147
+ /**
5148
+ * @deprecated
5149
+ * @description Name of the product associated with this subscription.
5150
+ */
5066
5151
  product_name: string;
5067
- /** @description URL for the product image. */
5152
+ /**
5153
+ * @deprecated
5154
+ * @description URL for the product image.
5155
+ */
5068
5156
  product_image_url?: null | string;
5069
5157
  /**
5070
5158
  * Format: int32
@@ -5074,14 +5162,21 @@ export interface components {
5074
5162
  interval_scale: components["schemas"]["ProductSubscriptionIntervalScale"];
5075
5163
  /** @description Currency code used for billing this subscription. */
5076
5164
  currency: string;
5077
- /** @description Indicates whether tax is included in the base price itself. */
5165
+ /**
5166
+ * @deprecated
5167
+ * @description Indicates whether tax is included in the base price itself.
5168
+ */
5078
5169
  tax_inclusive: boolean;
5079
5170
  /**
5080
5171
  * Format: int64
5172
+ * @deprecated
5081
5173
  * @description Base price of the subscription in smallest currency units (e.g., cents).
5082
5174
  */
5083
5175
  price: number;
5084
- /** @description Formatted string representation of the price. */
5176
+ /**
5177
+ * @deprecated
5178
+ * @description Formatted string representation of the price.
5179
+ */
5085
5180
  price_str: string;
5086
5181
  /**
5087
5182
  * Format: int64
@@ -5213,7 +5308,10 @@ export interface components {
5213
5308
  readonly initial_presentment_total_amount_str?: null | string;
5214
5309
  /** @description The foreign exchange rate applied (if presentment currency differs from settlement currency). */
5215
5310
  fx_rate?: null | string;
5216
- /** @description Identifier for the pricing region associated with this subscription. */
5311
+ /**
5312
+ * @deprecated
5313
+ * @description Identifier for the pricing region associated with this subscription.
5314
+ */
5217
5315
  pricing_region_id?: null | string;
5218
5316
  /**
5219
5317
  * Format: date-time
@@ -5262,6 +5360,8 @@ export interface components {
5262
5360
  canceled_at?: null | string;
5263
5361
  /** @description Reason provided for cancellation. */
5264
5362
  cancel_reason?: null | string;
5363
+ /** @description Associated subscription lines. */
5364
+ readonly lines: components["schemas"]["SubscriptionLineDto"][];
5265
5365
  };
5266
5366
  StoreTrustDto: {
5267
5367
  store_id: components["schemas"]["FlakeId"];
@@ -5328,6 +5428,162 @@ export interface components {
5328
5428
  updated_at: string;
5329
5429
  updated_by: components["schemas"]["ActorDto"];
5330
5430
  };
5431
+ /** @description Represents a line item within a subscription. */
5432
+ SubscriptionLineDto: {
5433
+ id: components["schemas"]["FlakeId"];
5434
+ subscription_id: components["schemas"]["FlakeId"];
5435
+ checkout_line_id?: components["schemas"]["FlakeId"];
5436
+ initial_order_line_id?: components["schemas"]["FlakeId"];
5437
+ /** @description Identifier for the pricing region associated with this subscription line. */
5438
+ pricing_region_id?: null | string;
5439
+ gift_to_customer_id?: components["schemas"]["FlakeId"];
5440
+ selected_gameserver_id?: components["schemas"]["FlakeId"];
5441
+ sale_id?: components["schemas"]["FlakeId"];
5442
+ trial_id?: components["schemas"]["FlakeId"];
5443
+ product_id: components["schemas"]["FlakeId"];
5444
+ product_version_id: components["schemas"]["FlakeId"];
5445
+ /** @description Name of the product associated with this subscription line. */
5446
+ product_name: string;
5447
+ /** @description URL for the product image. */
5448
+ product_image_url?: null | string;
5449
+ /** @description Indicates whether tax is included in the base price itself. */
5450
+ tax_inclusive: boolean;
5451
+ /** @description Currency code for this subscription line. */
5452
+ currency: string;
5453
+ /**
5454
+ * Format: int64
5455
+ * @description Base price of the subscription line in smallest currency units (e.g., cents).
5456
+ */
5457
+ price: number;
5458
+ /**
5459
+ * Format: int64
5460
+ * @description Amount of discount applied in smallest currency units.
5461
+ */
5462
+ discount_amount: number;
5463
+ /** @description Formatted string representation of the discount amount. */
5464
+ readonly discount_amount_str: string;
5465
+ /**
5466
+ * Format: int64
5467
+ * @description Subtotal amount in smallest currency units.
5468
+ */
5469
+ subtotal_amount: number;
5470
+ /** @description Formatted string representation of the subtotal amount. */
5471
+ readonly subtotal_amount_str: string;
5472
+ /**
5473
+ * Format: int64
5474
+ * @description Tax amount in smallest currency units.
5475
+ */
5476
+ tax_amount: number;
5477
+ /** @description Formatted string representation of the tax amount. */
5478
+ readonly tax_amount_str: string;
5479
+ /**
5480
+ * Format: int64
5481
+ * @description Total amount in smallest currency units.
5482
+ */
5483
+ total_amount: number;
5484
+ /** @description Formatted string representation of the total amount. */
5485
+ readonly total_amount_str: string;
5486
+ /**
5487
+ * Format: int64
5488
+ * @description Initial discount amount in smallest currency units for the first billing cycle.
5489
+ */
5490
+ initial_discount_amount: number;
5491
+ /** @description Formatted string representation of the initial discount amount. */
5492
+ readonly initial_discount_amount_str: string;
5493
+ /**
5494
+ * Format: int64
5495
+ * @description Initial subtotal amount in smallest currency units for the first billing cycle.
5496
+ */
5497
+ initial_subtotal_amount: number;
5498
+ /** @description Formatted string representation of the initial subtotal amount. */
5499
+ readonly initial_subtotal_amount_str: string;
5500
+ /**
5501
+ * Format: int64
5502
+ * @description Initial gift card usage amount in smallest currency units.
5503
+ */
5504
+ initial_giftcard_usage_amount: number;
5505
+ /** @description Formatted string representation of the initial gift card usage amount. */
5506
+ readonly initial_giftcard_usage_amount_str: string;
5507
+ /**
5508
+ * Format: int64
5509
+ * @description Initial tax amount in smallest currency units for the first billing cycle.
5510
+ */
5511
+ initial_tax_amount: number;
5512
+ /** @description Formatted string representation of the initial tax amount. */
5513
+ readonly initial_tax_amount_str: string;
5514
+ /**
5515
+ * Format: int64
5516
+ * @description Initial total amount in smallest currency units for the first billing cycle.
5517
+ */
5518
+ initial_total_amount: number;
5519
+ /** @description Formatted string representation of the initial total amount. */
5520
+ readonly initial_total_amount_str: string;
5521
+ /** @description Presentment currency code (currency shown to customer). */
5522
+ presentment_currency?: null | string;
5523
+ /**
5524
+ * Format: int64
5525
+ * @description Presentment subtotal amount in smallest currency units.
5526
+ */
5527
+ presentment_subtotal_amount?: null | number;
5528
+ /** @description Formatted string representation of the presentment subtotal amount. */
5529
+ readonly presentment_subtotal_amount_str?: null | string;
5530
+ /**
5531
+ * Format: int64
5532
+ * @description Presentment discount amount in smallest currency units.
5533
+ */
5534
+ presentment_discount_amount?: null | number;
5535
+ /** @description Formatted string representation of the presentment discount amount. */
5536
+ readonly presentment_discount_amount_str?: null | string;
5537
+ /**
5538
+ * Format: int64
5539
+ * @description Presentment tax amount in smallest currency units.
5540
+ */
5541
+ presentment_tax_amount?: null | number;
5542
+ /** @description Formatted string representation of the presentment tax amount. */
5543
+ readonly presentment_tax_amount_str?: null | string;
5544
+ /**
5545
+ * Format: int64
5546
+ * @description Presentment total amount in smallest currency units.
5547
+ */
5548
+ presentment_total_amount?: null | number;
5549
+ /** @description Formatted string representation of the presentment total amount. */
5550
+ readonly presentment_total_amount_str?: null | string;
5551
+ /**
5552
+ * Format: int64
5553
+ * @description Initial presentment discount amount in smallest currency units for the first billing cycle.
5554
+ */
5555
+ initial_presentment_discount_amount?: null | number;
5556
+ /** @description Formatted string representation of the initial presentment discount amount. */
5557
+ readonly initial_presentment_discount_amount_str?: null | string;
5558
+ /**
5559
+ * Format: int64
5560
+ * @description Initial presentment subtotal amount in smallest currency units for the first billing cycle.
5561
+ */
5562
+ initial_presentment_subtotal_amount?: null | number;
5563
+ /** @description Formatted string representation of the initial presentment subtotal amount. */
5564
+ readonly initial_presentment_subtotal_amount_str?: null | string;
5565
+ /**
5566
+ * Format: int64
5567
+ * @description Initial presentment gift card usage amount in smallest currency units.
5568
+ */
5569
+ initial_presentment_giftcard_usage_amount?: null | number;
5570
+ /** @description Formatted string representation of the initial presentment gift card usage amount. */
5571
+ readonly initial_presentment_giftcard_usage_amount_str?: null | string;
5572
+ /**
5573
+ * Format: int64
5574
+ * @description Initial presentment tax amount in smallest currency units for the first billing cycle.
5575
+ */
5576
+ initial_presentment_tax_amount?: null | number;
5577
+ /** @description Formatted string representation of the initial presentment tax amount. */
5578
+ readonly initial_presentment_tax_amount_str?: null | string;
5579
+ /**
5580
+ * Format: int64
5581
+ * @description Initial presentment total amount in smallest currency units for the first billing cycle.
5582
+ */
5583
+ initial_presentment_total_amount?: null | number;
5584
+ /** @description Formatted string representation of the initial presentment total amount. */
5585
+ readonly initial_presentment_total_amount_str?: null | string;
5586
+ };
5331
5587
  /**
5332
5588
  * @description Represents the current state of a subscription.
5333
5589
  * @enum {string}
@@ -5586,6 +5842,14 @@ export interface components {
5586
5842
  /** Format: date-time */
5587
5843
  expires_at?: null | string;
5588
5844
  };
5845
+ UpdateGameServerConsoleDto: {
5846
+ enabled?: boolean;
5847
+ host?: string;
5848
+ /** Format: int32 */
5849
+ port?: number;
5850
+ password?: string;
5851
+ secure?: boolean;
5852
+ };
5589
5853
  UpdateGameServerDto: {
5590
5854
  name?: string;
5591
5855
  enabled?: boolean;
@@ -8007,6 +8271,171 @@ export interface operations {
8007
8271
  };
8008
8272
  };
8009
8273
  };
8274
+ GameServers_GetGameServerConsole: {
8275
+ parameters: {
8276
+ query?: never;
8277
+ header?: never;
8278
+ path: {
8279
+ gameServerId: components["schemas"]["FlakeId"];
8280
+ };
8281
+ cookie?: never;
8282
+ };
8283
+ requestBody?: never;
8284
+ responses: {
8285
+ /** @description OK */
8286
+ 200: {
8287
+ headers: {
8288
+ [name: string]: unknown;
8289
+ };
8290
+ content: {
8291
+ "application/json": components["schemas"]["GameServerConsoleDto"];
8292
+ };
8293
+ };
8294
+ /** @description Error response */
8295
+ default: {
8296
+ headers: {
8297
+ [name: string]: unknown;
8298
+ };
8299
+ content: {
8300
+ "application/json": components["schemas"]["PayNowError"];
8301
+ };
8302
+ };
8303
+ };
8304
+ };
8305
+ GameServers_CreateGameServerConsole: {
8306
+ parameters: {
8307
+ query?: never;
8308
+ header?: never;
8309
+ path: {
8310
+ gameServerId: components["schemas"]["FlakeId"];
8311
+ };
8312
+ cookie?: never;
8313
+ };
8314
+ requestBody?: {
8315
+ content: {
8316
+ "application/json": components["schemas"]["CreateGameServerConsoleDto"];
8317
+ "text/json": components["schemas"]["CreateGameServerConsoleDto"];
8318
+ "application/*+json": components["schemas"]["CreateGameServerConsoleDto"];
8319
+ };
8320
+ };
8321
+ responses: {
8322
+ /** @description OK */
8323
+ 200: {
8324
+ headers: {
8325
+ [name: string]: unknown;
8326
+ };
8327
+ content: {
8328
+ "application/json": components["schemas"]["GameServerConsoleDto"];
8329
+ };
8330
+ };
8331
+ /** @description Error response */
8332
+ default: {
8333
+ headers: {
8334
+ [name: string]: unknown;
8335
+ };
8336
+ content: {
8337
+ "application/json": components["schemas"]["PayNowError"];
8338
+ };
8339
+ };
8340
+ };
8341
+ };
8342
+ GameServers_DeleteGameServerConsole: {
8343
+ parameters: {
8344
+ query?: never;
8345
+ header?: never;
8346
+ path: {
8347
+ gameServerId: components["schemas"]["FlakeId"];
8348
+ };
8349
+ cookie?: never;
8350
+ };
8351
+ requestBody?: never;
8352
+ responses: {
8353
+ /** @description No Content */
8354
+ 204: {
8355
+ headers: {
8356
+ [name: string]: unknown;
8357
+ };
8358
+ content?: never;
8359
+ };
8360
+ /** @description Error response */
8361
+ default: {
8362
+ headers: {
8363
+ [name: string]: unknown;
8364
+ };
8365
+ content: {
8366
+ "application/json": components["schemas"]["PayNowError"];
8367
+ };
8368
+ };
8369
+ };
8370
+ };
8371
+ GameServers_UpdateGameServerConsole: {
8372
+ parameters: {
8373
+ query?: never;
8374
+ header?: never;
8375
+ path: {
8376
+ gameServerId: components["schemas"]["FlakeId"];
8377
+ };
8378
+ cookie?: never;
8379
+ };
8380
+ requestBody?: {
8381
+ content: {
8382
+ "application/json": components["schemas"]["UpdateGameServerConsoleDto"];
8383
+ "text/json": components["schemas"]["UpdateGameServerConsoleDto"];
8384
+ "application/*+json": components["schemas"]["UpdateGameServerConsoleDto"];
8385
+ };
8386
+ };
8387
+ responses: {
8388
+ /** @description OK */
8389
+ 200: {
8390
+ headers: {
8391
+ [name: string]: unknown;
8392
+ };
8393
+ content: {
8394
+ "application/json": components["schemas"]["GameServerConsoleDto"];
8395
+ };
8396
+ };
8397
+ /** @description Error response */
8398
+ default: {
8399
+ headers: {
8400
+ [name: string]: unknown;
8401
+ };
8402
+ content: {
8403
+ "application/json": components["schemas"]["PayNowError"];
8404
+ };
8405
+ };
8406
+ };
8407
+ };
8408
+ GameServers_GetGameServerConsoleMessages: {
8409
+ parameters: {
8410
+ query?: never;
8411
+ header?: never;
8412
+ path: {
8413
+ gameServerId: components["schemas"]["FlakeId"];
8414
+ };
8415
+ cookie?: never;
8416
+ };
8417
+ requestBody?: never;
8418
+ responses: {
8419
+ /** @description OK */
8420
+ 200: {
8421
+ headers: {
8422
+ [name: string]: unknown;
8423
+ };
8424
+ content: {
8425
+ "application/json": components["schemas"]["GameServerConsoleMessageDto"][];
8426
+ };
8427
+ };
8428
+ /** @description Error response */
8429
+ default: {
8430
+ headers: {
8431
+ [name: string]: unknown;
8432
+ };
8433
+ content: {
8434
+ "application/json": components["schemas"]["PayNowError"];
8435
+ };
8436
+ };
8437
+ };
8438
+ };
8010
8439
  GameServers_GetGameServers: {
8011
8440
  parameters: {
8012
8441
  query?: never;
@@ -11204,6 +11633,26 @@ export declare const operationMappings: {
11204
11633
  readonly method: "DELETE";
11205
11634
  readonly path: "/v1/stores/{storeId}/products/{productId}/downloadable-files/{downloadableFileId}";
11206
11635
  };
11636
+ readonly GameServers_GetGameServerConsole: {
11637
+ readonly method: "GET";
11638
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/console";
11639
+ };
11640
+ readonly GameServers_CreateGameServerConsole: {
11641
+ readonly method: "POST";
11642
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/console";
11643
+ };
11644
+ readonly GameServers_UpdateGameServerConsole: {
11645
+ readonly method: "PATCH";
11646
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/console";
11647
+ };
11648
+ readonly GameServers_DeleteGameServerConsole: {
11649
+ readonly method: "DELETE";
11650
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/console";
11651
+ };
11652
+ readonly GameServers_GetGameServerConsoleMessages: {
11653
+ readonly method: "GET";
11654
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/console/messages";
11655
+ };
11207
11656
  readonly GameServers_GetGameServers: {
11208
11657
  readonly method: "GET";
11209
11658
  readonly path: "/v1/stores/{storeId}/gameservers";