@paynow-gg/typescript-sdk 1.0.49 → 1.0.51

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;
@@ -1424,11 +1461,7 @@ export interface paths {
1424
1461
  */
1425
1462
  get: operations["Store_GetStores"];
1426
1463
  put?: never;
1427
- /**
1428
- * Create a store
1429
- * @description Creates a new store for the authenticated user.
1430
- */
1431
- post: operations["Store_CreateStore"];
1464
+ post?: never;
1432
1465
  delete?: never;
1433
1466
  options?: never;
1434
1467
  head?: never;
@@ -2426,6 +2459,15 @@ export interface components {
2426
2459
  CreateDownloadableFileDownloadUrlResponseDto: {
2427
2460
  download_signed_url: string;
2428
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
+ };
2429
2471
  CreateGameServerDto: {
2430
2472
  name: string;
2431
2473
  enabled: boolean;
@@ -2932,6 +2974,39 @@ export interface components {
2932
2974
  * @example 411486491630370816
2933
2975
  */
2934
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";
2935
3010
  /** @description Represents a game server in the PayNow system with authentication tokens and linking information. */
2936
3011
  GameServerDto: {
2937
3012
  id: components["schemas"]["FlakeId"];
@@ -5266,6 +5341,8 @@ export interface components {
5266
5341
  canceled_at?: null | string;
5267
5342
  /** @description Reason provided for cancellation. */
5268
5343
  cancel_reason?: null | string;
5344
+ /** @description Associated subscription lines. */
5345
+ readonly lines: components["schemas"]["SubscriptionLineDto"][];
5269
5346
  };
5270
5347
  StoreTrustDto: {
5271
5348
  store_id: components["schemas"]["FlakeId"];
@@ -5332,6 +5409,162 @@ export interface components {
5332
5409
  updated_at: string;
5333
5410
  updated_by: components["schemas"]["ActorDto"];
5334
5411
  };
5412
+ /** @description Represents a line item within a subscription. */
5413
+ SubscriptionLineDto: {
5414
+ id: components["schemas"]["FlakeId"];
5415
+ subscription_id: components["schemas"]["FlakeId"];
5416
+ checkout_line_id?: components["schemas"]["FlakeId"];
5417
+ initial_order_line_id?: components["schemas"]["FlakeId"];
5418
+ /** @description Identifier for the pricing region associated with this subscription line. */
5419
+ pricing_region_id?: null | string;
5420
+ gift_to_customer_id?: components["schemas"]["FlakeId"];
5421
+ selected_gameserver_id?: components["schemas"]["FlakeId"];
5422
+ sale_id?: components["schemas"]["FlakeId"];
5423
+ trial_id?: components["schemas"]["FlakeId"];
5424
+ product_id: components["schemas"]["FlakeId"];
5425
+ product_version_id: components["schemas"]["FlakeId"];
5426
+ /** @description Name of the product associated with this subscription line. */
5427
+ product_name: string;
5428
+ /** @description URL for the product image. */
5429
+ product_image_url?: null | string;
5430
+ /** @description Indicates whether tax is included in the base price itself. */
5431
+ tax_inclusive: boolean;
5432
+ /** @description Currency code for this subscription line. */
5433
+ currency: string;
5434
+ /**
5435
+ * Format: int64
5436
+ * @description Base price of the subscription line in smallest currency units (e.g., cents).
5437
+ */
5438
+ price: number;
5439
+ /**
5440
+ * Format: int64
5441
+ * @description Amount of discount applied in smallest currency units.
5442
+ */
5443
+ discount_amount: number;
5444
+ /** @description Formatted string representation of the discount amount. */
5445
+ readonly discount_amount_str: string;
5446
+ /**
5447
+ * Format: int64
5448
+ * @description Subtotal amount in smallest currency units.
5449
+ */
5450
+ subtotal_amount: number;
5451
+ /** @description Formatted string representation of the subtotal amount. */
5452
+ readonly subtotal_amount_str: string;
5453
+ /**
5454
+ * Format: int64
5455
+ * @description Tax amount in smallest currency units.
5456
+ */
5457
+ tax_amount: number;
5458
+ /** @description Formatted string representation of the tax amount. */
5459
+ readonly tax_amount_str: string;
5460
+ /**
5461
+ * Format: int64
5462
+ * @description Total amount in smallest currency units.
5463
+ */
5464
+ total_amount: number;
5465
+ /** @description Formatted string representation of the total amount. */
5466
+ readonly total_amount_str: string;
5467
+ /**
5468
+ * Format: int64
5469
+ * @description Initial discount amount in smallest currency units for the first billing cycle.
5470
+ */
5471
+ initial_discount_amount: number;
5472
+ /** @description Formatted string representation of the initial discount amount. */
5473
+ readonly initial_discount_amount_str: string;
5474
+ /**
5475
+ * Format: int64
5476
+ * @description Initial subtotal amount in smallest currency units for the first billing cycle.
5477
+ */
5478
+ initial_subtotal_amount: number;
5479
+ /** @description Formatted string representation of the initial subtotal amount. */
5480
+ readonly initial_subtotal_amount_str: string;
5481
+ /**
5482
+ * Format: int64
5483
+ * @description Initial gift card usage amount in smallest currency units.
5484
+ */
5485
+ initial_giftcard_usage_amount: number;
5486
+ /** @description Formatted string representation of the initial gift card usage amount. */
5487
+ readonly initial_giftcard_usage_amount_str: string;
5488
+ /**
5489
+ * Format: int64
5490
+ * @description Initial tax amount in smallest currency units for the first billing cycle.
5491
+ */
5492
+ initial_tax_amount: number;
5493
+ /** @description Formatted string representation of the initial tax amount. */
5494
+ readonly initial_tax_amount_str: string;
5495
+ /**
5496
+ * Format: int64
5497
+ * @description Initial total amount in smallest currency units for the first billing cycle.
5498
+ */
5499
+ initial_total_amount: number;
5500
+ /** @description Formatted string representation of the initial total amount. */
5501
+ readonly initial_total_amount_str: string;
5502
+ /** @description Presentment currency code (currency shown to customer). */
5503
+ presentment_currency?: null | string;
5504
+ /**
5505
+ * Format: int64
5506
+ * @description Presentment subtotal amount in smallest currency units.
5507
+ */
5508
+ presentment_subtotal_amount?: null | number;
5509
+ /** @description Formatted string representation of the presentment subtotal amount. */
5510
+ readonly presentment_subtotal_amount_str?: null | string;
5511
+ /**
5512
+ * Format: int64
5513
+ * @description Presentment discount amount in smallest currency units.
5514
+ */
5515
+ presentment_discount_amount?: null | number;
5516
+ /** @description Formatted string representation of the presentment discount amount. */
5517
+ readonly presentment_discount_amount_str?: null | string;
5518
+ /**
5519
+ * Format: int64
5520
+ * @description Presentment tax amount in smallest currency units.
5521
+ */
5522
+ presentment_tax_amount?: null | number;
5523
+ /** @description Formatted string representation of the presentment tax amount. */
5524
+ readonly presentment_tax_amount_str?: null | string;
5525
+ /**
5526
+ * Format: int64
5527
+ * @description Presentment total amount in smallest currency units.
5528
+ */
5529
+ presentment_total_amount?: null | number;
5530
+ /** @description Formatted string representation of the presentment total amount. */
5531
+ readonly presentment_total_amount_str?: null | string;
5532
+ /**
5533
+ * Format: int64
5534
+ * @description Initial presentment discount amount in smallest currency units for the first billing cycle.
5535
+ */
5536
+ initial_presentment_discount_amount?: null | number;
5537
+ /** @description Formatted string representation of the initial presentment discount amount. */
5538
+ readonly initial_presentment_discount_amount_str?: null | string;
5539
+ /**
5540
+ * Format: int64
5541
+ * @description Initial presentment subtotal amount in smallest currency units for the first billing cycle.
5542
+ */
5543
+ initial_presentment_subtotal_amount?: null | number;
5544
+ /** @description Formatted string representation of the initial presentment subtotal amount. */
5545
+ readonly initial_presentment_subtotal_amount_str?: null | string;
5546
+ /**
5547
+ * Format: int64
5548
+ * @description Initial presentment gift card usage amount in smallest currency units.
5549
+ */
5550
+ initial_presentment_giftcard_usage_amount?: null | number;
5551
+ /** @description Formatted string representation of the initial presentment gift card usage amount. */
5552
+ readonly initial_presentment_giftcard_usage_amount_str?: null | string;
5553
+ /**
5554
+ * Format: int64
5555
+ * @description Initial presentment tax amount in smallest currency units for the first billing cycle.
5556
+ */
5557
+ initial_presentment_tax_amount?: null | number;
5558
+ /** @description Formatted string representation of the initial presentment tax amount. */
5559
+ readonly initial_presentment_tax_amount_str?: null | string;
5560
+ /**
5561
+ * Format: int64
5562
+ * @description Initial presentment total amount in smallest currency units for the first billing cycle.
5563
+ */
5564
+ initial_presentment_total_amount?: null | number;
5565
+ /** @description Formatted string representation of the initial presentment total amount. */
5566
+ readonly initial_presentment_total_amount_str?: null | string;
5567
+ };
5335
5568
  /**
5336
5569
  * @description Represents the current state of a subscription.
5337
5570
  * @enum {string}
@@ -5590,6 +5823,14 @@ export interface components {
5590
5823
  /** Format: date-time */
5591
5824
  expires_at?: null | string;
5592
5825
  };
5826
+ UpdateGameServerConsoleDto: {
5827
+ enabled?: boolean;
5828
+ host?: string;
5829
+ /** Format: int32 */
5830
+ port?: number;
5831
+ password?: string;
5832
+ secure?: boolean;
5833
+ };
5593
5834
  UpdateGameServerDto: {
5594
5835
  name?: string;
5595
5836
  enabled?: boolean;
@@ -8011,6 +8252,171 @@ export interface operations {
8011
8252
  };
8012
8253
  };
8013
8254
  };
8255
+ GameServers_GetGameServerConsole: {
8256
+ parameters: {
8257
+ query?: never;
8258
+ header?: never;
8259
+ path: {
8260
+ gameServerId: components["schemas"]["FlakeId"];
8261
+ };
8262
+ cookie?: never;
8263
+ };
8264
+ requestBody?: never;
8265
+ responses: {
8266
+ /** @description OK */
8267
+ 200: {
8268
+ headers: {
8269
+ [name: string]: unknown;
8270
+ };
8271
+ content: {
8272
+ "application/json": components["schemas"]["GameServerConsoleDto"];
8273
+ };
8274
+ };
8275
+ /** @description Error response */
8276
+ default: {
8277
+ headers: {
8278
+ [name: string]: unknown;
8279
+ };
8280
+ content: {
8281
+ "application/json": components["schemas"]["PayNowError"];
8282
+ };
8283
+ };
8284
+ };
8285
+ };
8286
+ GameServers_CreateGameServerConsole: {
8287
+ parameters: {
8288
+ query?: never;
8289
+ header?: never;
8290
+ path: {
8291
+ gameServerId: components["schemas"]["FlakeId"];
8292
+ };
8293
+ cookie?: never;
8294
+ };
8295
+ requestBody?: {
8296
+ content: {
8297
+ "application/json": components["schemas"]["CreateGameServerConsoleDto"];
8298
+ "text/json": components["schemas"]["CreateGameServerConsoleDto"];
8299
+ "application/*+json": components["schemas"]["CreateGameServerConsoleDto"];
8300
+ };
8301
+ };
8302
+ responses: {
8303
+ /** @description OK */
8304
+ 200: {
8305
+ headers: {
8306
+ [name: string]: unknown;
8307
+ };
8308
+ content: {
8309
+ "application/json": components["schemas"]["GameServerConsoleDto"];
8310
+ };
8311
+ };
8312
+ /** @description Error response */
8313
+ default: {
8314
+ headers: {
8315
+ [name: string]: unknown;
8316
+ };
8317
+ content: {
8318
+ "application/json": components["schemas"]["PayNowError"];
8319
+ };
8320
+ };
8321
+ };
8322
+ };
8323
+ GameServers_DeleteGameServerConsole: {
8324
+ parameters: {
8325
+ query?: never;
8326
+ header?: never;
8327
+ path: {
8328
+ gameServerId: components["schemas"]["FlakeId"];
8329
+ };
8330
+ cookie?: never;
8331
+ };
8332
+ requestBody?: never;
8333
+ responses: {
8334
+ /** @description No Content */
8335
+ 204: {
8336
+ headers: {
8337
+ [name: string]: unknown;
8338
+ };
8339
+ content?: never;
8340
+ };
8341
+ /** @description Error response */
8342
+ default: {
8343
+ headers: {
8344
+ [name: string]: unknown;
8345
+ };
8346
+ content: {
8347
+ "application/json": components["schemas"]["PayNowError"];
8348
+ };
8349
+ };
8350
+ };
8351
+ };
8352
+ GameServers_UpdateGameServerConsole: {
8353
+ parameters: {
8354
+ query?: never;
8355
+ header?: never;
8356
+ path: {
8357
+ gameServerId: components["schemas"]["FlakeId"];
8358
+ };
8359
+ cookie?: never;
8360
+ };
8361
+ requestBody?: {
8362
+ content: {
8363
+ "application/json": components["schemas"]["UpdateGameServerConsoleDto"];
8364
+ "text/json": components["schemas"]["UpdateGameServerConsoleDto"];
8365
+ "application/*+json": components["schemas"]["UpdateGameServerConsoleDto"];
8366
+ };
8367
+ };
8368
+ responses: {
8369
+ /** @description OK */
8370
+ 200: {
8371
+ headers: {
8372
+ [name: string]: unknown;
8373
+ };
8374
+ content: {
8375
+ "application/json": components["schemas"]["GameServerConsoleDto"];
8376
+ };
8377
+ };
8378
+ /** @description Error response */
8379
+ default: {
8380
+ headers: {
8381
+ [name: string]: unknown;
8382
+ };
8383
+ content: {
8384
+ "application/json": components["schemas"]["PayNowError"];
8385
+ };
8386
+ };
8387
+ };
8388
+ };
8389
+ GameServers_GetGameServerConsoleMessages: {
8390
+ parameters: {
8391
+ query?: never;
8392
+ header?: never;
8393
+ path: {
8394
+ gameServerId: components["schemas"]["FlakeId"];
8395
+ };
8396
+ cookie?: never;
8397
+ };
8398
+ requestBody?: never;
8399
+ responses: {
8400
+ /** @description OK */
8401
+ 200: {
8402
+ headers: {
8403
+ [name: string]: unknown;
8404
+ };
8405
+ content: {
8406
+ "application/json": components["schemas"]["GameServerConsoleMessageDto"][];
8407
+ };
8408
+ };
8409
+ /** @description Error response */
8410
+ default: {
8411
+ headers: {
8412
+ [name: string]: unknown;
8413
+ };
8414
+ content: {
8415
+ "application/json": components["schemas"]["PayNowError"];
8416
+ };
8417
+ };
8418
+ };
8419
+ };
8014
8420
  GameServers_GetGameServers: {
8015
8421
  parameters: {
8016
8422
  query?: never;
@@ -9909,41 +10315,6 @@ export interface operations {
9909
10315
  };
9910
10316
  };
9911
10317
  };
9912
- Store_CreateStore: {
9913
- parameters: {
9914
- query?: never;
9915
- header?: never;
9916
- path?: never;
9917
- cookie?: never;
9918
- };
9919
- requestBody?: {
9920
- content: {
9921
- "application/json": components["schemas"]["CreateStoreDto"];
9922
- "text/json": components["schemas"]["CreateStoreDto"];
9923
- "application/*+json": components["schemas"]["CreateStoreDto"];
9924
- };
9925
- };
9926
- responses: {
9927
- /** @description OK */
9928
- 200: {
9929
- headers: {
9930
- [name: string]: unknown;
9931
- };
9932
- content: {
9933
- "application/json": components["schemas"]["StoreDto"];
9934
- };
9935
- };
9936
- /** @description Error response */
9937
- default: {
9938
- headers: {
9939
- [name: string]: unknown;
9940
- };
9941
- content: {
9942
- "application/json": components["schemas"]["PayNowError"];
9943
- };
9944
- };
9945
- };
9946
- };
9947
10318
  Store_GetStore: {
9948
10319
  parameters: {
9949
10320
  query?: never;
@@ -11243,6 +11614,26 @@ export declare const operationMappings: {
11243
11614
  readonly method: "DELETE";
11244
11615
  readonly path: "/v1/stores/{storeId}/products/{productId}/downloadable-files/{downloadableFileId}";
11245
11616
  };
11617
+ readonly GameServers_GetGameServerConsole: {
11618
+ readonly method: "GET";
11619
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/console";
11620
+ };
11621
+ readonly GameServers_CreateGameServerConsole: {
11622
+ readonly method: "POST";
11623
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/console";
11624
+ };
11625
+ readonly GameServers_UpdateGameServerConsole: {
11626
+ readonly method: "PATCH";
11627
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/console";
11628
+ };
11629
+ readonly GameServers_DeleteGameServerConsole: {
11630
+ readonly method: "DELETE";
11631
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/console";
11632
+ };
11633
+ readonly GameServers_GetGameServerConsoleMessages: {
11634
+ readonly method: "GET";
11635
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/console/messages";
11636
+ };
11246
11637
  readonly GameServers_GetGameServers: {
11247
11638
  readonly method: "GET";
11248
11639
  readonly path: "/v1/stores/{storeId}/gameservers";
@@ -11459,10 +11850,6 @@ export declare const operationMappings: {
11459
11850
  readonly method: "PATCH";
11460
11851
  readonly path: "/v1/stores/{storeId}/sales/{saleId}";
11461
11852
  };
11462
- readonly Store_CreateStore: {
11463
- readonly method: "POST";
11464
- readonly path: "/v1/stores";
11465
- };
11466
11853
  readonly Store_GetStores: {
11467
11854
  readonly method: "GET";
11468
11855
  readonly path: "/v1/stores";