@paynow-gg/typescript-sdk 1.0.48 → 1.0.49

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.
@@ -1411,6 +1411,30 @@ export interface paths {
1411
1411
  patch: operations["Sales_UpdateSale"];
1412
1412
  trace?: never;
1413
1413
  };
1414
+ "/v1/stores": {
1415
+ parameters: {
1416
+ query?: never;
1417
+ header?: never;
1418
+ path?: never;
1419
+ cookie?: never;
1420
+ };
1421
+ /**
1422
+ * Get stores
1423
+ * @description Retrieves all stores accessible to the authenticated user or API key.
1424
+ */
1425
+ get: operations["Store_GetStores"];
1426
+ put?: never;
1427
+ /**
1428
+ * Create a store
1429
+ * @description Creates a new store for the authenticated user.
1430
+ */
1431
+ post: operations["Store_CreateStore"];
1432
+ delete?: never;
1433
+ options?: never;
1434
+ head?: never;
1435
+ patch?: never;
1436
+ trace?: never;
1437
+ };
1414
1438
  "/v1/stores/{storeId}": {
1415
1439
  parameters: {
1416
1440
  query?: never;
@@ -1418,15 +1442,87 @@ export interface paths {
1418
1442
  path?: never;
1419
1443
  cookie?: never;
1420
1444
  };
1445
+ /**
1446
+ * Get a store
1447
+ * @description Retrieves a single store by its ID.
1448
+ */
1421
1449
  get: operations["Store_GetStore"];
1422
1450
  put?: never;
1423
1451
  post?: never;
1424
1452
  delete?: never;
1425
1453
  options?: never;
1426
1454
  head?: never;
1455
+ /**
1456
+ * Update a store
1457
+ * @description Partially updates a store's configuration using the provided fields.
1458
+ */
1459
+ patch: operations["Store_UpdateStore"];
1460
+ trace?: never;
1461
+ };
1462
+ "/v1/stores/{storeId}/members": {
1463
+ parameters: {
1464
+ query?: never;
1465
+ header?: never;
1466
+ path?: never;
1467
+ cookie?: never;
1468
+ };
1469
+ /**
1470
+ * List store members
1471
+ * @description Retrieves all members who have access to the specified store.
1472
+ */
1473
+ get: operations["Store_GetStoreMembers"];
1474
+ put?: never;
1475
+ post?: never;
1476
+ delete?: never;
1477
+ options?: never;
1478
+ head?: never;
1479
+ patch?: never;
1480
+ trace?: never;
1481
+ };
1482
+ "/v1/stores/{storeId}/members/{memberId}/permissions": {
1483
+ parameters: {
1484
+ query?: never;
1485
+ header?: never;
1486
+ path?: never;
1487
+ cookie?: never;
1488
+ };
1489
+ /**
1490
+ * Get store member permissions
1491
+ * @description Retrieves the resolved permissions map for a specific member of a store.
1492
+ */
1493
+ get: operations["Store_GetStoreMemberPermissions"];
1494
+ put?: never;
1495
+ post?: never;
1496
+ delete?: never;
1497
+ options?: never;
1498
+ head?: never;
1427
1499
  patch?: never;
1428
1500
  trace?: never;
1429
1501
  };
1502
+ "/v1/stores/{storeId}/members/{memberId}": {
1503
+ parameters: {
1504
+ query?: never;
1505
+ header?: never;
1506
+ path?: never;
1507
+ cookie?: never;
1508
+ };
1509
+ get?: never;
1510
+ put?: never;
1511
+ post?: never;
1512
+ /**
1513
+ * Remove a store member
1514
+ * @description Removes the specified member from the store, revoking their access.
1515
+ */
1516
+ delete: operations["Store_KickStoreMember"];
1517
+ options?: never;
1518
+ head?: never;
1519
+ /**
1520
+ * Update a store member
1521
+ * @description Updates the role assigned to a specific member of the store.
1522
+ */
1523
+ patch: operations["Store_UpdateStoreMember"];
1524
+ trace?: never;
1525
+ };
1430
1526
  "/v1/stores/{storeId}/subscriptions": {
1431
1527
  parameters: {
1432
1528
  query?: never;
@@ -2377,6 +2473,20 @@ export interface components {
2377
2473
  /** Format: date-time */
2378
2474
  ends_at?: null | string;
2379
2475
  };
2476
+ CreateStoreDto: {
2477
+ slug: string;
2478
+ name: string;
2479
+ platform: string;
2480
+ game: string;
2481
+ currency: string;
2482
+ description: string;
2483
+ website_url?: string;
2484
+ contact_email?: string;
2485
+ support_email?: string;
2486
+ support_url?: string;
2487
+ integration_type?: string;
2488
+ minecraft_bedrock_username_prefix?: string;
2489
+ };
2380
2490
  CreateStorePaymentSettingsDto: {
2381
2491
  show_all_payment_methods_for_subscriptions: boolean;
2382
2492
  store_tax_inclusive_pricing: boolean;
@@ -3594,7 +3704,7 @@ export interface components {
3594
3704
  payer_name?: null | string;
3595
3705
  };
3596
3706
  /** @enum {string} */
3597
- PayNowActorType: "anonymous" | "user" | "customer" | "api_key" | "game_server" | "admin" | "internal" | "platform" | "global_customer";
3707
+ PayNowActorType: "anonymous" | "user" | "api_key" | "customer" | "game_server" | "internal" | "admin" | "platform" | "global_customer";
3598
3708
  /** @description Represents a PayNow error */
3599
3709
  PayNowError: {
3600
3710
  /**
@@ -4847,19 +4957,34 @@ export interface components {
4847
4957
  /** @description The list of members who have access to manage this store. */
4848
4958
  members?: null | components["schemas"]["StoreMemberDto"][];
4849
4959
  };
4960
+ /** @description Represents a member of a PayNow store. */
4850
4961
  StoreMemberDto: {
4962
+ id: components["schemas"]["FlakeId"];
4963
+ user_id: components["schemas"]["FlakeId"];
4851
4964
  user: components["schemas"]["StoreMemberUserDto"];
4852
- /** Format: date-time */
4965
+ /**
4966
+ * Format: date-time
4967
+ * @description The UTC timestamp when the member was added to the store.
4968
+ */
4853
4969
  added_at?: null | string;
4854
4970
  added_by?: components["schemas"]["ActorDto"];
4855
4971
  role_id?: components["schemas"]["FlakeId"];
4856
4972
  };
4973
+ /** @description Represents identity and profile information for a store member. */
4857
4974
  StoreMemberUserDto: {
4858
4975
  type: components["schemas"]["PayNowActorType"];
4859
4976
  id: components["schemas"]["FlakeId"];
4860
- email: string;
4861
- first_name: string;
4862
- last_name: string;
4977
+ /** @description The email address associated with the user.
4978
+ * Only visible if you are the store owner. */
4979
+ email?: null | string;
4980
+ /** @description The first name of the actor.
4981
+ * Hidden if the user has a set nickname, and you are not the store owner. */
4982
+ first_name?: null | string;
4983
+ /** @description The last name of the actor.
4984
+ * Hidden if the user has a set nickname, and you are not the store owner. */
4985
+ last_name?: null | string;
4986
+ /** @description The nickname of the user. */
4987
+ nickname?: null | string;
4863
4988
  };
4864
4989
  /** @description Store payment configuration settings. */
4865
4990
  StorePaymentSettingsDto: {
@@ -5510,6 +5635,23 @@ export interface components {
5510
5635
  /** Format: date-time */
5511
5636
  ends_at?: null | string;
5512
5637
  };
5638
+ UpdateStoreDto: {
5639
+ slug?: string;
5640
+ name?: string;
5641
+ platform?: string;
5642
+ game?: string;
5643
+ description?: string;
5644
+ website_url?: string;
5645
+ contact_email?: string;
5646
+ support_email?: string;
5647
+ support_url?: string;
5648
+ integration_type?: string;
5649
+ live_mode?: boolean;
5650
+ minecraft_bedrock_username_prefix?: string;
5651
+ };
5652
+ UpdateStoreMemberDto: {
5653
+ role_id: components["schemas"]["FlakeId"];
5654
+ };
5513
5655
  UpdateStorePaymentSettingsDto: {
5514
5656
  show_all_payment_methods_for_subscriptions?: boolean;
5515
5657
  store_tax_inclusive_pricing?: boolean;
@@ -9738,6 +9880,70 @@ export interface operations {
9738
9880
  };
9739
9881
  };
9740
9882
  };
9883
+ Store_GetStores: {
9884
+ parameters: {
9885
+ query?: never;
9886
+ header?: never;
9887
+ path?: never;
9888
+ cookie?: never;
9889
+ };
9890
+ requestBody?: never;
9891
+ responses: {
9892
+ /** @description OK */
9893
+ 200: {
9894
+ headers: {
9895
+ [name: string]: unknown;
9896
+ };
9897
+ content: {
9898
+ "application/json": components["schemas"]["StoreDto"][];
9899
+ };
9900
+ };
9901
+ /** @description Error response */
9902
+ default: {
9903
+ headers: {
9904
+ [name: string]: unknown;
9905
+ };
9906
+ content: {
9907
+ "application/json": components["schemas"]["PayNowError"];
9908
+ };
9909
+ };
9910
+ };
9911
+ };
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
+ };
9741
9947
  Store_GetStore: {
9742
9948
  parameters: {
9743
9949
  query?: never;
@@ -9749,6 +9955,169 @@ export interface operations {
9749
9955
  responses: {
9750
9956
  /** @description OK */
9751
9957
  200: {
9958
+ headers: {
9959
+ [name: string]: unknown;
9960
+ };
9961
+ content: {
9962
+ "application/json": components["schemas"]["StoreDto"];
9963
+ };
9964
+ };
9965
+ /** @description Error response */
9966
+ default: {
9967
+ headers: {
9968
+ [name: string]: unknown;
9969
+ };
9970
+ content: {
9971
+ "application/json": components["schemas"]["PayNowError"];
9972
+ };
9973
+ };
9974
+ };
9975
+ };
9976
+ Store_UpdateStore: {
9977
+ parameters: {
9978
+ query?: never;
9979
+ header?: never;
9980
+ path?: never;
9981
+ cookie?: never;
9982
+ };
9983
+ requestBody?: {
9984
+ content: {
9985
+ "application/json": components["schemas"]["UpdateStoreDto"];
9986
+ "text/json": components["schemas"]["UpdateStoreDto"];
9987
+ "application/*+json": components["schemas"]["UpdateStoreDto"];
9988
+ };
9989
+ };
9990
+ responses: {
9991
+ /** @description OK */
9992
+ 200: {
9993
+ headers: {
9994
+ [name: string]: unknown;
9995
+ };
9996
+ content: {
9997
+ "application/json": components["schemas"]["StoreDto"];
9998
+ };
9999
+ };
10000
+ /** @description Error response */
10001
+ default: {
10002
+ headers: {
10003
+ [name: string]: unknown;
10004
+ };
10005
+ content: {
10006
+ "application/json": components["schemas"]["PayNowError"];
10007
+ };
10008
+ };
10009
+ };
10010
+ };
10011
+ Store_GetStoreMembers: {
10012
+ parameters: {
10013
+ query?: never;
10014
+ header?: never;
10015
+ path?: never;
10016
+ cookie?: never;
10017
+ };
10018
+ requestBody?: never;
10019
+ responses: {
10020
+ /** @description OK */
10021
+ 200: {
10022
+ headers: {
10023
+ [name: string]: unknown;
10024
+ };
10025
+ content: {
10026
+ "application/json": components["schemas"]["StoreMemberDto"][];
10027
+ };
10028
+ };
10029
+ /** @description Error response */
10030
+ default: {
10031
+ headers: {
10032
+ [name: string]: unknown;
10033
+ };
10034
+ content: {
10035
+ "application/json": components["schemas"]["PayNowError"];
10036
+ };
10037
+ };
10038
+ };
10039
+ };
10040
+ Store_GetStoreMemberPermissions: {
10041
+ parameters: {
10042
+ query?: never;
10043
+ header?: never;
10044
+ path: {
10045
+ memberId: components["schemas"]["FlakeId"];
10046
+ };
10047
+ cookie?: never;
10048
+ };
10049
+ requestBody?: never;
10050
+ responses: {
10051
+ /** @description OK */
10052
+ 200: {
10053
+ headers: {
10054
+ [name: string]: unknown;
10055
+ };
10056
+ content: {
10057
+ "application/json": {
10058
+ [key: string]: boolean;
10059
+ };
10060
+ };
10061
+ };
10062
+ /** @description Error response */
10063
+ default: {
10064
+ headers: {
10065
+ [name: string]: unknown;
10066
+ };
10067
+ content: {
10068
+ "application/json": components["schemas"]["PayNowError"];
10069
+ };
10070
+ };
10071
+ };
10072
+ };
10073
+ Store_KickStoreMember: {
10074
+ parameters: {
10075
+ query?: never;
10076
+ header?: never;
10077
+ path: {
10078
+ memberId: components["schemas"]["FlakeId"];
10079
+ };
10080
+ cookie?: never;
10081
+ };
10082
+ requestBody?: never;
10083
+ responses: {
10084
+ /** @description No Content */
10085
+ 204: {
10086
+ headers: {
10087
+ [name: string]: unknown;
10088
+ };
10089
+ content?: never;
10090
+ };
10091
+ /** @description Error response */
10092
+ default: {
10093
+ headers: {
10094
+ [name: string]: unknown;
10095
+ };
10096
+ content: {
10097
+ "application/json": components["schemas"]["PayNowError"];
10098
+ };
10099
+ };
10100
+ };
10101
+ };
10102
+ Store_UpdateStoreMember: {
10103
+ parameters: {
10104
+ query?: never;
10105
+ header?: never;
10106
+ path: {
10107
+ memberId: components["schemas"]["FlakeId"];
10108
+ };
10109
+ cookie?: never;
10110
+ };
10111
+ requestBody?: {
10112
+ content: {
10113
+ "application/json": components["schemas"]["UpdateStoreMemberDto"];
10114
+ "text/json": components["schemas"]["UpdateStoreMemberDto"];
10115
+ "application/*+json": components["schemas"]["UpdateStoreMemberDto"];
10116
+ };
10117
+ };
10118
+ responses: {
10119
+ /** @description No Content */
10120
+ 204: {
9752
10121
  headers: {
9753
10122
  [name: string]: unknown;
9754
10123
  };
@@ -11090,10 +11459,38 @@ export declare const operationMappings: {
11090
11459
  readonly method: "PATCH";
11091
11460
  readonly path: "/v1/stores/{storeId}/sales/{saleId}";
11092
11461
  };
11462
+ readonly Store_CreateStore: {
11463
+ readonly method: "POST";
11464
+ readonly path: "/v1/stores";
11465
+ };
11466
+ readonly Store_GetStores: {
11467
+ readonly method: "GET";
11468
+ readonly path: "/v1/stores";
11469
+ };
11470
+ readonly Store_UpdateStore: {
11471
+ readonly method: "PATCH";
11472
+ readonly path: "/v1/stores/{storeId}";
11473
+ };
11093
11474
  readonly Store_GetStore: {
11094
11475
  readonly method: "GET";
11095
11476
  readonly path: "/v1/stores/{storeId}";
11096
11477
  };
11478
+ readonly Store_GetStoreMembers: {
11479
+ readonly method: "GET";
11480
+ readonly path: "/v1/stores/{storeId}/members";
11481
+ };
11482
+ readonly Store_GetStoreMemberPermissions: {
11483
+ readonly method: "GET";
11484
+ readonly path: "/v1/stores/{storeId}/members/{memberId}/permissions";
11485
+ };
11486
+ readonly Store_KickStoreMember: {
11487
+ readonly method: "DELETE";
11488
+ readonly path: "/v1/stores/{storeId}/members/{memberId}";
11489
+ };
11490
+ readonly Store_UpdateStoreMember: {
11491
+ readonly method: "PATCH";
11492
+ readonly path: "/v1/stores/{storeId}/members/{memberId}";
11493
+ };
11097
11494
  readonly Subscriptions_GetSubscriptions: {
11098
11495
  readonly method: "GET";
11099
11496
  readonly path: "/v1/stores/{storeId}/subscriptions";