@openfort/openfort-node 0.6.9 → 0.6.11

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.
Files changed (108) hide show
  1. package/dist/apis/policiesApiWrapper.d.ts +10 -0
  2. package/dist/apis/policiesApiWrapper.js +14 -0
  3. package/dist/apis/policiesApiWrapper.js.map +1 -1
  4. package/dist/generated/apis/AccountsApi.d.ts +1 -1
  5. package/dist/generated/apis/AccountsApi.js +1 -1
  6. package/dist/generated/apis/ContractsApi.d.ts +3 -3
  7. package/dist/generated/apis/ContractsApi.js +3 -3
  8. package/dist/generated/apis/InventoriesApi.d.ts +6 -6
  9. package/dist/generated/apis/InventoriesApi.js +6 -6
  10. package/dist/generated/apis/OAuthApi.d.ts +102 -0
  11. package/dist/generated/apis/OAuthApi.js +358 -0
  12. package/dist/generated/apis/OAuthApi.js.map +1 -0
  13. package/dist/generated/apis/PlayersApi.d.ts +8 -8
  14. package/dist/generated/apis/PlayersApi.js +8 -8
  15. package/dist/generated/apis/PoliciesApi.d.ts +34 -7
  16. package/dist/generated/apis/PoliciesApi.js +120 -7
  17. package/dist/generated/apis/PoliciesApi.js.map +1 -1
  18. package/dist/generated/apis/PolicyRulesApi.d.ts +1 -1
  19. package/dist/generated/apis/PolicyRulesApi.js +1 -1
  20. package/dist/generated/apis/SessionsApi.d.ts +3 -3
  21. package/dist/generated/apis/SessionsApi.js +3 -3
  22. package/dist/generated/apis/TransactionIntentsApi.d.ts +6 -6
  23. package/dist/generated/apis/TransactionIntentsApi.js +6 -6
  24. package/dist/generated/index.d.ts +1 -1
  25. package/dist/generated/index.js +2 -1
  26. package/dist/generated/index.js.map +1 -1
  27. package/dist/generated/models/AccelbyteOauthConfig.d.ts +48 -0
  28. package/dist/generated/models/AccelbyteOauthConfig.js +59 -0
  29. package/dist/generated/models/AccelbyteOauthConfig.js.map +1 -0
  30. package/dist/generated/models/AccountListQueries.d.ts +1 -1
  31. package/dist/generated/models/AuthResponse.d.ts +6 -0
  32. package/dist/generated/models/AuthResponse.js.map +1 -1
  33. package/dist/generated/models/CancelTransferOwnershipRequest.d.ts +1 -1
  34. package/dist/generated/models/CompleteRecoveryRequest.d.ts +1 -1
  35. package/dist/generated/models/CreateAccountRequest.d.ts +1 -1
  36. package/dist/generated/models/CreatePlayerSessionRequest.d.ts +1 -1
  37. package/dist/generated/models/CreateSessionRequest.d.ts +2 -2
  38. package/dist/generated/models/CreateTransactionIntentRequest.d.ts +2 -2
  39. package/dist/generated/models/EstimateTransactionIntentGasResult.d.ts +16 -0
  40. package/dist/generated/models/EstimateTransactionIntentGasResult.js +24 -0
  41. package/dist/generated/models/EstimateTransactionIntentGasResult.js.map +1 -1
  42. package/dist/generated/models/OAuthConfigListResponse.d.ts +35 -0
  43. package/dist/generated/models/OAuthConfigListResponse.js +35 -0
  44. package/dist/generated/models/OAuthConfigListResponse.js.map +1 -0
  45. package/dist/generated/models/OAuthConfigRequest.d.ts +32 -0
  46. package/dist/generated/models/OAuthConfigRequest.js +35 -0
  47. package/dist/generated/models/OAuthConfigRequest.js.map +1 -0
  48. package/dist/generated/models/OAuthConfigResponse.d.ts +32 -0
  49. package/dist/generated/models/OAuthConfigResponse.js +35 -0
  50. package/dist/generated/models/OAuthConfigResponse.js.map +1 -0
  51. package/dist/generated/models/OAuthProvider.d.ts +15 -0
  52. package/dist/generated/models/OAuthProvider.js +14 -0
  53. package/dist/generated/models/OAuthProvider.js.map +1 -0
  54. package/dist/generated/models/OAuthProviderACCELBYTE.d.ts +12 -0
  55. package/dist/generated/models/OAuthProviderACCELBYTE.js +14 -0
  56. package/dist/generated/models/OAuthProviderACCELBYTE.js.map +1 -0
  57. package/dist/generated/models/OAuthRequest.d.ts +34 -0
  58. package/dist/generated/models/OAuthRequest.js +35 -0
  59. package/dist/generated/models/OAuthRequest.js.map +1 -0
  60. package/dist/generated/models/ObjectSerializer.d.ts +7 -0
  61. package/dist/generated/models/ObjectSerializer.js +19 -0
  62. package/dist/generated/models/ObjectSerializer.js.map +1 -1
  63. package/dist/generated/models/PlayerCancelTransferOwnershipRequest.d.ts +1 -1
  64. package/dist/generated/models/PlayerInventoryListQueries.d.ts +1 -1
  65. package/dist/generated/models/PlayerTransferOwnershipRequest.d.ts +2 -2
  66. package/dist/generated/models/Policy.d.ts +1 -0
  67. package/dist/generated/models/Policy.js +6 -0
  68. package/dist/generated/models/Policy.js.map +1 -1
  69. package/dist/generated/models/PolicyListQueries.d.ts +4 -0
  70. package/dist/generated/models/PolicyListQueries.js +6 -0
  71. package/dist/generated/models/PolicyListQueries.js.map +1 -1
  72. package/dist/generated/models/PolicyResponse.d.ts +1 -0
  73. package/dist/generated/models/PolicyResponse.js +6 -0
  74. package/dist/generated/models/PolicyResponse.js.map +1 -1
  75. package/dist/generated/models/PolicyRuleListQueries.d.ts +1 -1
  76. package/dist/generated/models/PolicyStrategyRequest.d.ts +3 -3
  77. package/dist/generated/models/ResponseResponse.d.ts +2 -6
  78. package/dist/generated/models/ResponseResponse.js.map +1 -1
  79. package/dist/generated/models/RevokeSessionPlayerRequest.d.ts +1 -1
  80. package/dist/generated/models/RevokeSessionRequest.d.ts +2 -2
  81. package/dist/generated/models/SessionListQueries.d.ts +1 -1
  82. package/dist/generated/models/StartRecoveryRequest.d.ts +1 -1
  83. package/dist/generated/models/TransactionIntentListQueries.d.ts +2 -2
  84. package/dist/generated/models/TransactionIntentResponsePlayer.d.ts +1 -1
  85. package/dist/generated/models/TransactionIntentResponsePlayer.js +1 -1
  86. package/dist/generated/models/TransactionIntentResponsePolicy.d.ts +2 -1
  87. package/dist/generated/models/TransactionIntentResponsePolicy.js +7 -1
  88. package/dist/generated/models/TransactionIntentResponsePolicy.js.map +1 -1
  89. package/dist/generated/models/TransferOwnershipRequest.d.ts +1 -1
  90. package/dist/generated/models/all.d.ts +7 -0
  91. package/dist/generated/models/all.js +7 -0
  92. package/dist/generated/models/all.js.map +1 -1
  93. package/dist/generated/types/ObjectParamAPI.d.ts +172 -34
  94. package/dist/generated/types/ObjectParamAPI.js +84 -15
  95. package/dist/generated/types/ObjectParamAPI.js.map +1 -1
  96. package/dist/generated/types/ObservableAPI.d.ts +96 -35
  97. package/dist/generated/types/ObservableAPI.js +215 -37
  98. package/dist/generated/types/ObservableAPI.js.map +1 -1
  99. package/dist/generated/types/PromiseAPI.d.ts +94 -35
  100. package/dist/generated/types/PromiseAPI.js +128 -48
  101. package/dist/generated/types/PromiseAPI.js.map +1 -1
  102. package/dist/index.js.map +1 -1
  103. package/dist/version.d.ts +1 -1
  104. package/dist/version.js +1 -1
  105. package/dist/version.js.map +1 -1
  106. package/package.json +1 -1
  107. package/rome.json +1 -1
  108. package/tsconfig.tsbuildinfo +1 -1
@@ -25,6 +25,11 @@ import { GetSigninUrlResponse } from '../models/GetSigninUrlResponse';
25
25
  import { InventoryListResponse } from '../models/InventoryListResponse';
26
26
  import { InventoryResponse } from '../models/InventoryResponse';
27
27
  import { LoginRequest } from '../models/LoginRequest';
28
+ import { OAuthConfigListResponse } from '../models/OAuthConfigListResponse';
29
+ import { OAuthConfigRequest } from '../models/OAuthConfigRequest';
30
+ import { OAuthConfigResponse } from '../models/OAuthConfigResponse';
31
+ import { OAuthProvider } from '../models/OAuthProvider';
32
+ import { OAuthRequest } from '../models/OAuthRequest';
28
33
  import { ObsoleteInventoryResponse } from '../models/ObsoleteInventoryResponse';
29
34
  import { PlayerCancelTransferOwnershipRequest } from '../models/PlayerCancelTransferOwnershipRequest';
30
35
  import { PlayerListResponse } from '../models/PlayerListResponse';
@@ -112,7 +117,7 @@ export interface AccountsApiGetAccountRequest {
112
117
  }
113
118
  export interface AccountsApiGetAccountsRequest {
114
119
  /**
115
- * Specifies the unique player ID
120
+ * Specifies the unique player ID (starts with pla_)
116
121
  * @type string
117
122
  * @memberof AccountsApigetAccounts
118
123
  */
@@ -319,7 +324,7 @@ export interface ContractsApiCreateContractRequest {
319
324
  }
320
325
  export interface ContractsApiDeleteContractRequest {
321
326
  /**
322
- * Specifies the unique contract ID.
327
+ * Specifies the unique contract ID (starts with con_).
323
328
  * @type string
324
329
  * @memberof ContractsApideleteContract
325
330
  */
@@ -327,7 +332,7 @@ export interface ContractsApiDeleteContractRequest {
327
332
  }
328
333
  export interface ContractsApiGetContractRequest {
329
334
  /**
330
- * Specifies the unique contract ID.
335
+ * Specifies the unique contract ID (starts with con_).
331
336
  * @type string
332
337
  * @memberof ContractsApigetContract
333
338
  */
@@ -379,7 +384,7 @@ export interface ContractsApiGetContractsRequest {
379
384
  }
380
385
  export interface ContractsApiUpdateContractRequest {
381
386
  /**
382
- * Specifies the unique contract ID.
387
+ * Specifies the unique contract ID (starts with con_).
383
388
  * @type string
384
389
  * @memberof ContractsApiupdateContract
385
390
  */
@@ -532,7 +537,7 @@ export interface InventoriesApiGetAccountNftInventoryRequest {
532
537
  }
533
538
  export interface InventoriesApiGetPlayerCryptoCurrencyInventoryRequest {
534
539
  /**
535
- * Specifies the unique player ID.
540
+ * Specifies the unique player ID (starts with pla_).
536
541
  * @type string
537
542
  * @memberof InventoriesApigetPlayerCryptoCurrencyInventory
538
543
  */
@@ -562,7 +567,7 @@ export interface InventoriesApiGetPlayerCryptoCurrencyInventoryRequest {
562
567
  */
563
568
  order?: SortOrder;
564
569
  /**
565
- * Filter by contract ID.
570
+ * Filter by contract ID (starts with con_).
566
571
  * @type Array<string>
567
572
  * @memberof InventoriesApigetPlayerCryptoCurrencyInventory
568
573
  */
@@ -570,7 +575,7 @@ export interface InventoriesApiGetPlayerCryptoCurrencyInventoryRequest {
570
575
  }
571
576
  export interface InventoriesApiGetPlayerInventoryRequest {
572
577
  /**
573
- * Specifies the unique player ID.
578
+ * Specifies the unique player ID (starts with pla_).
574
579
  * @type string
575
580
  * @memberof InventoriesApigetPlayerInventory
576
581
  */
@@ -584,7 +589,7 @@ export interface InventoriesApiGetPlayerInventoryRequest {
584
589
  }
585
590
  export interface InventoriesApiGetPlayerNativeInventoryRequest {
586
591
  /**
587
- * Specifies the unique player ID.
592
+ * Specifies the unique player ID (starts with pla_).
588
593
  * @type string
589
594
  * @memberof InventoriesApigetPlayerNativeInventory
590
595
  */
@@ -598,7 +603,7 @@ export interface InventoriesApiGetPlayerNativeInventoryRequest {
598
603
  }
599
604
  export interface InventoriesApiGetPlayerNftInventoryRequest {
600
605
  /**
601
- * Specifies the unique player ID.
606
+ * Specifies the unique player ID (starts with pla_).
602
607
  * @type string
603
608
  * @memberof InventoriesApigetPlayerNftInventory
604
609
  */
@@ -628,7 +633,7 @@ export interface InventoriesApiGetPlayerNftInventoryRequest {
628
633
  */
629
634
  order?: SortOrder;
630
635
  /**
631
- * Filter by contract ID.
636
+ * Filter by contract ID (starts with con_).
632
637
  * @type Array<string>
633
638
  * @memberof InventoriesApigetPlayerNftInventory
634
639
  */
@@ -678,6 +683,107 @@ export declare class ObjectInventoriesApi {
678
683
  */
679
684
  getPlayerNftInventory(param: InventoriesApiGetPlayerNftInventoryRequest, options?: Configuration): Promise<InventoryListResponse>;
680
685
  }
686
+ import { OAuthApiRequestFactory, OAuthApiResponseProcessor } from "../apis/OAuthApi";
687
+ export interface OAuthApiAuthRequest {
688
+ /**
689
+ * OAuth provider
690
+ * @type OAuthProvider
691
+ * @memberof OAuthApiauth
692
+ */
693
+ provider: OAuthProvider;
694
+ /**
695
+ * Request body
696
+ * @type OAuthRequest
697
+ * @memberof OAuthApiauth
698
+ */
699
+ oAuthRequest: OAuthRequest;
700
+ }
701
+ export interface OAuthApiCreateOAuthConfigRequest {
702
+ /**
703
+ * Specifies the oauth provider type.
704
+ * @type OAuthProvider
705
+ * @memberof OAuthApicreateOAuthConfig
706
+ */
707
+ provider: OAuthProvider;
708
+ /**
709
+ * Specifies the oauth provider specific configuration.
710
+ * @type OAuthConfigRequest
711
+ * @memberof OAuthApicreateOAuthConfig
712
+ */
713
+ oAuthConfigRequest: OAuthConfigRequest;
714
+ }
715
+ export interface OAuthApiDeleteOAuthConfigRequest {
716
+ /**
717
+ * Specifies the oauth provider type.
718
+ * @type OAuthProvider
719
+ * @memberof OAuthApideleteOAuthConfig
720
+ */
721
+ provider: OAuthProvider;
722
+ }
723
+ export interface OAuthApiGetOAuthConfigRequest {
724
+ /**
725
+ * Specifies the oauth provider type.
726
+ * @type OAuthProvider
727
+ * @memberof OAuthApigetOAuthConfig
728
+ */
729
+ provider: OAuthProvider;
730
+ }
731
+ export interface OAuthApiListOAuthConfigRequest {
732
+ }
733
+ export interface OAuthApiUpdateOAuthConfigRequest {
734
+ /**
735
+ * Specifies the oauth provider type.
736
+ * @type OAuthProvider
737
+ * @memberof OAuthApiupdateOAuthConfig
738
+ */
739
+ provider: OAuthProvider;
740
+ /**
741
+ * Specifies the oauth provider specific configuration.
742
+ * @type OAuthConfigRequest
743
+ * @memberof OAuthApiupdateOAuthConfig
744
+ */
745
+ oAuthConfigRequest: OAuthConfigRequest;
746
+ }
747
+ export declare class ObjectOAuthApi {
748
+ private api;
749
+ constructor(configuration: Configuration, requestFactory?: OAuthApiRequestFactory, responseProcessor?: OAuthApiResponseProcessor);
750
+ /**
751
+ * The endpoint verifies the token generated by OAuth provider, creates or retrieves a player based on his email, and returns the jwt token for the player together with the player id.
752
+ * Authorize user with token.
753
+ * @param param the request object
754
+ */
755
+ auth(param: OAuthApiAuthRequest, options?: Configuration): Promise<AuthResponse>;
756
+ /**
757
+ * The endpoint creates oauth configuration for the current project environment.
758
+ * Create oauth configuration.
759
+ * @param param the request object
760
+ */
761
+ createOAuthConfig(param: OAuthApiCreateOAuthConfigRequest, options?: Configuration): Promise<void>;
762
+ /**
763
+ * The endpoint deletes oauth configuration for specified provider for the current project environment.
764
+ * Delete oauth configuration.
765
+ * @param param the request object
766
+ */
767
+ deleteOAuthConfig(param: OAuthApiDeleteOAuthConfigRequest, options?: Configuration): Promise<void>;
768
+ /**
769
+ * The endpoint retrieves oauth configuration for specified provider for the current project environment.
770
+ * Get oauth configuration.
771
+ * @param param the request object
772
+ */
773
+ getOAuthConfig(param: OAuthApiGetOAuthConfigRequest, options?: Configuration): Promise<OAuthConfigResponse>;
774
+ /**
775
+ * The endpoint retrieves the list of oauth configurations for the current project environment.
776
+ * List of oauth configurations.
777
+ * @param param the request object
778
+ */
779
+ listOAuthConfig(param?: OAuthApiListOAuthConfigRequest, options?: Configuration): Promise<OAuthConfigListResponse>;
780
+ /**
781
+ * The endpoint updates oauth configuration for specified provider for the current project environment.
782
+ * Update oauth configuration.
783
+ * @param param the request object
784
+ */
785
+ updateOAuthConfig(param: OAuthApiUpdateOAuthConfigRequest, options?: Configuration): Promise<void>;
786
+ }
681
787
  import { PlayersApiRequestFactory, PlayersApiResponseProcessor } from "../apis/PlayersApi";
682
788
  export interface PlayersApiCancelTransferAccountOwnershipRequest {
683
789
  /**
@@ -703,7 +809,7 @@ export interface PlayersApiCreatePlayerRequest {
703
809
  }
704
810
  export interface PlayersApiCreatePlayerAccountRequest {
705
811
  /**
706
- * Specifies the unique player ID.
812
+ * Specifies the unique player ID (starts with pla_).
707
813
  * @type string
708
814
  * @memberof PlayersApicreatePlayerAccount
709
815
  */
@@ -717,7 +823,7 @@ export interface PlayersApiCreatePlayerAccountRequest {
717
823
  }
718
824
  export interface PlayersApiCreatePlayerSessionRequest {
719
825
  /**
720
- * Specifies the unique player ID.
826
+ * Specifies the unique player ID (starts with pla_).
721
827
  * @type string
722
828
  * @memberof PlayersApicreatePlayerSession
723
829
  */
@@ -731,7 +837,7 @@ export interface PlayersApiCreatePlayerSessionRequest {
731
837
  }
732
838
  export interface PlayersApiGetPlayerRequest {
733
839
  /**
734
- * Specifies the unique player ID.
840
+ * Specifies the unique player ID (starts with pla_).
735
841
  * @type string
736
842
  * @memberof PlayersApigetPlayer
737
843
  */
@@ -745,7 +851,7 @@ export interface PlayersApiGetPlayerRequest {
745
851
  }
746
852
  export interface PlayersApiGetPlayerAccountsRequest {
747
853
  /**
748
- * Specifies the unique player ID.
854
+ * Specifies the unique player ID (starts with pla_).
749
855
  * @type string
750
856
  * @memberof PlayersApigetPlayerAccounts
751
857
  */
@@ -805,7 +911,7 @@ export interface PlayersApiObsoleteCancelTransferAccountOwnershipRequest {
805
911
  }
806
912
  export interface PlayersApiObsoleteRequestTransferAccountOwnershipRequest {
807
913
  /**
808
- * Specifies the unique player ID.
914
+ * Specifies the unique player ID (starts with pla_).
809
915
  * @type string
810
916
  * @memberof PlayersApiobsoleteRequestTransferAccountOwnership
811
917
  */
@@ -819,7 +925,7 @@ export interface PlayersApiObsoleteRequestTransferAccountOwnershipRequest {
819
925
  }
820
926
  export interface PlayersApiRequestTransferAccountOwnershipRequest {
821
927
  /**
822
- * Specifies the unique player ID.
928
+ * Specifies the unique player ID (starts with pla_).
823
929
  * @type string
824
930
  * @memberof PlayersApirequestTransferAccountOwnership
825
931
  */
@@ -833,7 +939,7 @@ export interface PlayersApiRequestTransferAccountOwnershipRequest {
833
939
  }
834
940
  export interface PlayersApiRevokePlayerSessionRequest {
835
941
  /**
836
- * Specifies the unique player ID.
942
+ * Specifies the unique player ID (starts with pla_).
837
943
  * @type string
838
944
  * @memberof PlayersApirevokePlayerSession
839
945
  */
@@ -847,7 +953,7 @@ export interface PlayersApiRevokePlayerSessionRequest {
847
953
  }
848
954
  export interface PlayersApiUpdatePlayerRequest {
849
955
  /**
850
- * Specifies the unique player ID.
956
+ * Specifies the unique player ID (starts with pla_).
851
957
  * @type string
852
958
  * @memberof PlayersApiupdatePlayer
853
959
  */
@@ -976,7 +1082,7 @@ export interface PoliciesApiCreatePolicyRequest {
976
1082
  }
977
1083
  export interface PoliciesApiCreatePolicyAllowFunctionRequest {
978
1084
  /**
979
- * Specifies the unique policy ID.
1085
+ * Specifies the unique policy ID (starts with pol_).
980
1086
  * @type string
981
1087
  * @memberof PoliciesApicreatePolicyAllowFunction
982
1088
  */
@@ -990,12 +1096,28 @@ export interface PoliciesApiCreatePolicyAllowFunctionRequest {
990
1096
  }
991
1097
  export interface PoliciesApiDeletePolicyRequest {
992
1098
  /**
993
- * Specifies the unique policy ID.
1099
+ * Specifies the unique policy ID (starts with pol_).
994
1100
  * @type string
995
1101
  * @memberof PoliciesApideletePolicy
996
1102
  */
997
1103
  id: string;
998
1104
  }
1105
+ export interface PoliciesApiDisablePolicyRequest {
1106
+ /**
1107
+ * Specifies the unique policy ID (starts with pol_).
1108
+ * @type string
1109
+ * @memberof PoliciesApidisablePolicy
1110
+ */
1111
+ id: string;
1112
+ }
1113
+ export interface PoliciesApiEnablePolicyRequest {
1114
+ /**
1115
+ * Specifies the unique policy ID (starts with pol_).
1116
+ * @type string
1117
+ * @memberof PoliciesApienablePolicy
1118
+ */
1119
+ id: string;
1120
+ }
999
1121
  export interface PoliciesApiGetPoliciesRequest {
1000
1122
  /**
1001
1123
  * Specifies the maximum number of records to return.
@@ -1039,10 +1161,16 @@ export interface PoliciesApiGetPoliciesRequest {
1039
1161
  * @memberof PoliciesApigetPolicies
1040
1162
  */
1041
1163
  chainId?: number;
1164
+ /**
1165
+ * Specifies whether to include enabled contracts.
1166
+ * @type boolean
1167
+ * @memberof PoliciesApigetPolicies
1168
+ */
1169
+ enabled?: boolean;
1042
1170
  }
1043
1171
  export interface PoliciesApiGetPolicyRequest {
1044
1172
  /**
1045
- * Specifies the unique policy ID.
1173
+ * Specifies the unique policy ID (starts with pol_).
1046
1174
  * @type string
1047
1175
  * @memberof PoliciesApigetPolicy
1048
1176
  */
@@ -1056,7 +1184,7 @@ export interface PoliciesApiGetPolicyRequest {
1056
1184
  }
1057
1185
  export interface PoliciesApiGetPolicyAllowFunctionsRequest {
1058
1186
  /**
1059
- * Specifies the unique policy ID.
1187
+ * Specifies the unique policy ID (starts with pol_).
1060
1188
  * @type string
1061
1189
  * @memberof PoliciesApigetPolicyAllowFunctions
1062
1190
  */
@@ -1070,7 +1198,7 @@ export interface PoliciesApiGetPolicyAllowFunctionsRequest {
1070
1198
  }
1071
1199
  export interface PoliciesApiGetPolicyTotalGasUsageRequest {
1072
1200
  /**
1073
- * Specifies the unique policy ID.
1201
+ * Specifies the unique policy ID (starts with pol_).
1074
1202
  * @type string
1075
1203
  * @memberof PoliciesApigetPolicyTotalGasUsage
1076
1204
  */
@@ -1078,7 +1206,7 @@ export interface PoliciesApiGetPolicyTotalGasUsageRequest {
1078
1206
  }
1079
1207
  export interface PoliciesApiUpdatePolicyRequest {
1080
1208
  /**
1081
- * Specifies the unique policy ID.
1209
+ * Specifies the unique policy ID (starts with pol_).
1082
1210
  * @type string
1083
1211
  * @memberof PoliciesApiupdatePolicy
1084
1212
  */
@@ -1128,6 +1256,16 @@ export declare class ObjectPoliciesApi {
1128
1256
  * @param param the request object
1129
1257
  */
1130
1258
  deletePolicy(param: PoliciesApiDeletePolicyRequest, options?: Configuration): Promise<PolicyDeleteResponse>;
1259
+ /**
1260
+ * Disable a policy object.
1261
+ * @param param the request object
1262
+ */
1263
+ disablePolicy(param: PoliciesApiDisablePolicyRequest, options?: Configuration): Promise<PolicyResponse>;
1264
+ /**
1265
+ * Enable a policy object.
1266
+ * @param param the request object
1267
+ */
1268
+ enablePolicy(param: PoliciesApiEnablePolicyRequest, options?: Configuration): Promise<PolicyResponse>;
1131
1269
  /**
1132
1270
  * List policies.
1133
1271
  * @param param the request object
@@ -1178,7 +1316,7 @@ export interface PolicyRulesApiDeletePolicyRulesRequest {
1178
1316
  }
1179
1317
  export interface PolicyRulesApiGetPolicyRulesRequest {
1180
1318
  /**
1181
- * Specifies the unique policy ID.
1319
+ * Specifies the unique policy ID (starts with pol_).
1182
1320
  * @type string
1183
1321
  * @memberof PolicyRulesApigetPolicyRules
1184
1322
  */
@@ -1257,7 +1395,7 @@ export interface SessionsApiCreateSessionRequest {
1257
1395
  }
1258
1396
  export interface SessionsApiGetPlayerSessionsRequest {
1259
1397
  /**
1260
- * The player ID
1398
+ * The player ID (starts with pla_)
1261
1399
  * @type string
1262
1400
  * @memberof SessionsApigetPlayerSessions
1263
1401
  */
@@ -1289,7 +1427,7 @@ export interface SessionsApiGetPlayerSessionsRequest {
1289
1427
  }
1290
1428
  export interface SessionsApiGetSessionRequest {
1291
1429
  /**
1292
- * Specifies the unique session ID.
1430
+ * Specifies the unique session ID (starts with ses_).
1293
1431
  * @type string
1294
1432
  * @memberof SessionsApigetSession
1295
1433
  */
@@ -1311,7 +1449,7 @@ export interface SessionsApiRevokeSessionRequest {
1311
1449
  }
1312
1450
  export interface SessionsApiSignatureSessionRequest {
1313
1451
  /**
1314
- * Specifies the unique session ID.
1452
+ * Specifies the unique session ID (starts with ses_).
1315
1453
  * @type string
1316
1454
  * @memberof SessionsApisignatureSession
1317
1455
  */
@@ -1371,7 +1509,7 @@ export interface TransactionIntentsApiEstimateTransactionIntentCostRequest {
1371
1509
  }
1372
1510
  export interface TransactionIntentsApiGetTransactionIntentRequest {
1373
1511
  /**
1374
- * Specifies the unique transaction intent ID.
1512
+ * Specifies the unique transaction intent ID (starts with tin_).
1375
1513
  * @type string
1376
1514
  * @memberof TransactionIntentsApigetTransactionIntent
1377
1515
  */
@@ -1421,13 +1559,13 @@ export interface TransactionIntentsApiGetTransactionIntentsRequest {
1421
1559
  */
1422
1560
  accountId?: Array<string>;
1423
1561
  /**
1424
- * Filter by player ID.
1562
+ * Filter by player ID (starts with pla_).
1425
1563
  * @type Array&lt;string&gt;
1426
1564
  * @memberof TransactionIntentsApigetTransactionIntents
1427
1565
  */
1428
1566
  playerId?: Array<string>;
1429
1567
  /**
1430
- * Filter by policy ID.
1568
+ * Filter by policy ID (starts with pol_).
1431
1569
  * @type Array&lt;string&gt;
1432
1570
  * @memberof TransactionIntentsApigetTransactionIntents
1433
1571
  */
@@ -1435,7 +1573,7 @@ export interface TransactionIntentsApiGetTransactionIntentsRequest {
1435
1573
  }
1436
1574
  export interface TransactionIntentsApiSignatureRequest {
1437
1575
  /**
1438
- * Specifies the unique transaction intent ID.
1576
+ * Specifies the unique transaction intent ID (starts with tin_).
1439
1577
  * @type string
1440
1578
  * @memberof TransactionIntentsApisignature
1441
1579
  */
@@ -1457,7 +1595,7 @@ export declare class ObjectTransactionIntentsApi {
1457
1595
  */
1458
1596
  createTransactionIntent(param: TransactionIntentsApiCreateTransactionIntentRequest, options?: Configuration): Promise<TransactionIntentResponse>;
1459
1597
  /**
1460
- * Estimate the gas cost of creating a transaction intent and putting it onchain.
1598
+ * Estimate the gas cost of creating a transaction intent and putting it on chain. If a policy that includes payment of gas in ERC-20 tokens is provided, an extra field `estimatedTXGasFeeToken` is returned with the estimated amount of tokens.
1461
1599
  * Estimate gas cost of creating a transaction
1462
1600
  * @param param the request object
1463
1601
  */
@@ -1473,7 +1611,7 @@ export declare class ObjectTransactionIntentsApi {
1473
1611
  */
1474
1612
  getTransactionIntents(param?: TransactionIntentsApiGetTransactionIntentsRequest, options?: Configuration): Promise<TransactionIntentListResponse>;
1475
1613
  /**
1476
- * This endpoint is used to put a userOperationHash signature on-chain. This means players that have informed (and use) an [externally-owned account (EOA)](https://ethereum.org/en/developers/docs/accounts/) to authorize operations, such as registering a session key, for their gaming accounts. Given that players with non-custodial accounts are the only ones in possession of the private key, they must sign the information inside the `nextAction` value received from the `POST` API endpoint that creates a transaction_intent, even with their session-keys. Once signed, the client needs to send the signed message using the `/signature` endpoint or use one of the available client-side libraries to do so.
1614
+ * This endpoint is used to send the signed userOperationHash. For non-custodial smart accounts, each on chain action using their wallet, they must sign the userOperationHash received from the `POST` API endpoint that creates a transactionIntent.
1477
1615
  * Confirms the creation of a transaction intent with an external owner.
1478
1616
  * @param param the request object
1479
1617
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectTransactionIntentsApi = exports.ObjectSessionsApi = exports.ObjectPolicyRulesApi = exports.ObjectPoliciesApi = exports.ObjectPlayersAuthenticationApi = exports.ObjectPlayersApi = exports.ObjectInventoriesApi = exports.ObjectGoogleAuthenticationApi = exports.ObjectContractsApi = exports.ObjectConfigAuthenticationApi = exports.ObjectAuthenticationApi = exports.ObjectAccountsApi = void 0;
3
+ exports.ObjectTransactionIntentsApi = exports.ObjectSessionsApi = exports.ObjectPolicyRulesApi = exports.ObjectPoliciesApi = exports.ObjectPlayersAuthenticationApi = exports.ObjectPlayersApi = exports.ObjectOAuthApi = exports.ObjectInventoriesApi = exports.ObjectGoogleAuthenticationApi = exports.ObjectContractsApi = exports.ObjectConfigAuthenticationApi = exports.ObjectAuthenticationApi = exports.ObjectAccountsApi = void 0;
4
4
  const ObservableAPI_1 = require("./ObservableAPI");
5
5
  class ObjectAccountsApi {
6
6
  constructor(configuration, requestFactory, responseProcessor) {
@@ -249,9 +249,64 @@ class ObjectInventoriesApi {
249
249
  }
250
250
  exports.ObjectInventoriesApi = ObjectInventoriesApi;
251
251
  const ObservableAPI_7 = require("./ObservableAPI");
252
+ class ObjectOAuthApi {
253
+ constructor(configuration, requestFactory, responseProcessor) {
254
+ this.api = new ObservableAPI_7.ObservableOAuthApi(configuration, requestFactory, responseProcessor);
255
+ }
256
+ /**
257
+ * The endpoint verifies the token generated by OAuth provider, creates or retrieves a player based on his email, and returns the jwt token for the player together with the player id.
258
+ * Authorize user with token.
259
+ * @param param the request object
260
+ */
261
+ auth(param, options) {
262
+ return this.api.auth(param.provider, param.oAuthRequest, options).toPromise();
263
+ }
264
+ /**
265
+ * The endpoint creates oauth configuration for the current project environment.
266
+ * Create oauth configuration.
267
+ * @param param the request object
268
+ */
269
+ createOAuthConfig(param, options) {
270
+ return this.api.createOAuthConfig(param.provider, param.oAuthConfigRequest, options).toPromise();
271
+ }
272
+ /**
273
+ * The endpoint deletes oauth configuration for specified provider for the current project environment.
274
+ * Delete oauth configuration.
275
+ * @param param the request object
276
+ */
277
+ deleteOAuthConfig(param, options) {
278
+ return this.api.deleteOAuthConfig(param.provider, options).toPromise();
279
+ }
280
+ /**
281
+ * The endpoint retrieves oauth configuration for specified provider for the current project environment.
282
+ * Get oauth configuration.
283
+ * @param param the request object
284
+ */
285
+ getOAuthConfig(param, options) {
286
+ return this.api.getOAuthConfig(param.provider, options).toPromise();
287
+ }
288
+ /**
289
+ * The endpoint retrieves the list of oauth configurations for the current project environment.
290
+ * List of oauth configurations.
291
+ * @param param the request object
292
+ */
293
+ listOAuthConfig(param = {}, options) {
294
+ return this.api.listOAuthConfig(options).toPromise();
295
+ }
296
+ /**
297
+ * The endpoint updates oauth configuration for specified provider for the current project environment.
298
+ * Update oauth configuration.
299
+ * @param param the request object
300
+ */
301
+ updateOAuthConfig(param, options) {
302
+ return this.api.updateOAuthConfig(param.provider, param.oAuthConfigRequest, options).toPromise();
303
+ }
304
+ }
305
+ exports.ObjectOAuthApi = ObjectOAuthApi;
306
+ const ObservableAPI_8 = require("./ObservableAPI");
252
307
  class ObjectPlayersApi {
253
308
  constructor(configuration, requestFactory, responseProcessor) {
254
- this.api = new ObservableAPI_7.ObservablePlayersApi(configuration, requestFactory, responseProcessor);
309
+ this.api = new ObservableAPI_8.ObservablePlayersApi(configuration, requestFactory, responseProcessor);
255
310
  }
256
311
  /**
257
312
  * This endpoint allows you to cancel a pending transfer of ownership.
@@ -345,10 +400,10 @@ class ObjectPlayersApi {
345
400
  }
346
401
  }
347
402
  exports.ObjectPlayersApi = ObjectPlayersApi;
348
- const ObservableAPI_8 = require("./ObservableAPI");
403
+ const ObservableAPI_9 = require("./ObservableAPI");
349
404
  class ObjectPlayersAuthenticationApi {
350
405
  constructor(configuration, requestFactory, responseProcessor) {
351
- this.api = new ObservableAPI_8.ObservablePlayersAuthenticationApi(configuration, requestFactory, responseProcessor);
406
+ this.api = new ObservableAPI_9.ObservablePlayersAuthenticationApi(configuration, requestFactory, responseProcessor);
352
407
  }
353
408
  /**
354
409
  * List authenticated players.
@@ -359,10 +414,10 @@ class ObjectPlayersAuthenticationApi {
359
414
  }
360
415
  }
361
416
  exports.ObjectPlayersAuthenticationApi = ObjectPlayersAuthenticationApi;
362
- const ObservableAPI_9 = require("./ObservableAPI");
417
+ const ObservableAPI_10 = require("./ObservableAPI");
363
418
  class ObjectPoliciesApi {
364
419
  constructor(configuration, requestFactory, responseProcessor) {
365
- this.api = new ObservableAPI_9.ObservablePoliciesApi(configuration, requestFactory, responseProcessor);
420
+ this.api = new ObservableAPI_10.ObservablePoliciesApi(configuration, requestFactory, responseProcessor);
366
421
  }
367
422
  /**
368
423
  * Create a policy object.
@@ -385,12 +440,26 @@ class ObjectPoliciesApi {
385
440
  deletePolicy(param, options) {
386
441
  return this.api.deletePolicy(param.id, options).toPromise();
387
442
  }
443
+ /**
444
+ * Disable a policy object.
445
+ * @param param the request object
446
+ */
447
+ disablePolicy(param, options) {
448
+ return this.api.disablePolicy(param.id, options).toPromise();
449
+ }
450
+ /**
451
+ * Enable a policy object.
452
+ * @param param the request object
453
+ */
454
+ enablePolicy(param, options) {
455
+ return this.api.enablePolicy(param.id, options).toPromise();
456
+ }
388
457
  /**
389
458
  * List policies.
390
459
  * @param param the request object
391
460
  */
392
461
  getPolicies(param = {}, options) {
393
- return this.api.getPolicies(param.limit, param.skip, param.order, param.expand, param.name, param.deleted, param.chainId, options).toPromise();
462
+ return this.api.getPolicies(param.limit, param.skip, param.order, param.expand, param.name, param.deleted, param.chainId, param.enabled, options).toPromise();
394
463
  }
395
464
  /**
396
465
  * Get a policy object.
@@ -429,10 +498,10 @@ class ObjectPoliciesApi {
429
498
  }
430
499
  }
431
500
  exports.ObjectPoliciesApi = ObjectPoliciesApi;
432
- const ObservableAPI_10 = require("./ObservableAPI");
501
+ const ObservableAPI_11 = require("./ObservableAPI");
433
502
  class ObjectPolicyRulesApi {
434
503
  constructor(configuration, requestFactory, responseProcessor) {
435
- this.api = new ObservableAPI_10.ObservablePolicyRulesApi(configuration, requestFactory, responseProcessor);
504
+ this.api = new ObservableAPI_11.ObservablePolicyRulesApi(configuration, requestFactory, responseProcessor);
436
505
  }
437
506
  /**
438
507
  * Create a policy rule object.
@@ -464,10 +533,10 @@ class ObjectPolicyRulesApi {
464
533
  }
465
534
  }
466
535
  exports.ObjectPolicyRulesApi = ObjectPolicyRulesApi;
467
- const ObservableAPI_11 = require("./ObservableAPI");
536
+ const ObservableAPI_12 = require("./ObservableAPI");
468
537
  class ObjectSessionsApi {
469
538
  constructor(configuration, requestFactory, responseProcessor) {
470
- this.api = new ObservableAPI_11.ObservableSessionsApi(configuration, requestFactory, responseProcessor);
539
+ this.api = new ObservableAPI_12.ObservableSessionsApi(configuration, requestFactory, responseProcessor);
471
540
  }
472
541
  /**
473
542
  * Create a session key.
@@ -506,10 +575,10 @@ class ObjectSessionsApi {
506
575
  }
507
576
  }
508
577
  exports.ObjectSessionsApi = ObjectSessionsApi;
509
- const ObservableAPI_12 = require("./ObservableAPI");
578
+ const ObservableAPI_13 = require("./ObservableAPI");
510
579
  class ObjectTransactionIntentsApi {
511
580
  constructor(configuration, requestFactory, responseProcessor) {
512
- this.api = new ObservableAPI_12.ObservableTransactionIntentsApi(configuration, requestFactory, responseProcessor);
581
+ this.api = new ObservableAPI_13.ObservableTransactionIntentsApi(configuration, requestFactory, responseProcessor);
513
582
  }
514
583
  /**
515
584
  * Retrieve a transaction intent by providing their id on Openfort. Transaction intents that have not been processed yet, have the `response` attribute as undefined.
@@ -520,7 +589,7 @@ class ObjectTransactionIntentsApi {
520
589
  return this.api.createTransactionIntent(param.createTransactionIntentRequest, options).toPromise();
521
590
  }
522
591
  /**
523
- * Estimate the gas cost of creating a transaction intent and putting it onchain.
592
+ * Estimate the gas cost of creating a transaction intent and putting it on chain. If a policy that includes payment of gas in ERC-20 tokens is provided, an extra field `estimatedTXGasFeeToken` is returned with the estimated amount of tokens.
524
593
  * Estimate gas cost of creating a transaction
525
594
  * @param param the request object
526
595
  */
@@ -542,7 +611,7 @@ class ObjectTransactionIntentsApi {
542
611
  return this.api.getTransactionIntents(param.limit, param.skip, param.order, param.expand, param.chainId, param.accountId, param.playerId, param.policyId, options).toPromise();
543
612
  }
544
613
  /**
545
- * This endpoint is used to put a userOperationHash signature on-chain. This means players that have informed (and use) an [externally-owned account (EOA)](https://ethereum.org/en/developers/docs/accounts/) to authorize operations, such as registering a session key, for their gaming accounts. Given that players with non-custodial accounts are the only ones in possession of the private key, they must sign the information inside the `nextAction` value received from the `POST` API endpoint that creates a transaction_intent, even with their session-keys. Once signed, the client needs to send the signed message using the `/signature` endpoint or use one of the available client-side libraries to do so.
614
+ * This endpoint is used to send the signed userOperationHash. For non-custodial smart accounts, each on chain action using their wallet, they must sign the userOperationHash received from the `POST` API endpoint that creates a transactionIntent.
546
615
  * Confirms the creation of a transaction intent with an external owner.
547
616
  * @param param the request object
548
617
  */