@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
@@ -23,6 +23,16 @@ export declare class PoliciesApiWrapper extends BaseApiWrapper<PoliciesApi> {
23
23
  * @param id
24
24
  */
25
25
  delete(id: string): Promise<PolicyDeleteResponse>;
26
+ /**
27
+ * Disable a policy object.
28
+ * @param id Specifies the unique policy ID.
29
+ */
30
+ disable(id: string): Promise<PolicyResponse>;
31
+ /**
32
+ * Enable a policy object.
33
+ * @param id
34
+ */
35
+ enable(id: string): Promise<PolicyResponse>;
26
36
  /**
27
37
  * Gets all policy objects for a given project.
28
38
  * @param req Criteria to retrieve the policies by
@@ -47,6 +47,20 @@ let PoliciesApiWrapper = class PoliciesApiWrapper extends baseApiWrapper_1.BaseA
47
47
  async delete(id) {
48
48
  return await this.api.deletePolicy(id);
49
49
  }
50
+ /**
51
+ * Disable a policy object.
52
+ * @param id Specifies the unique policy ID.
53
+ */
54
+ async disable(id) {
55
+ return await this.api.disablePolicy(id);
56
+ }
57
+ /**
58
+ * Enable a policy object.
59
+ * @param id
60
+ */
61
+ async enable(id) {
62
+ return await this.api.enablePolicy(id);
63
+ }
50
64
  /**
51
65
  * Gets all policy objects for a given project.
52
66
  * @param req Criteria to retrieve the policies by
@@ -1 +1 @@
1
- {"version":3,"file":"policiesApiWrapper.js","sourceRoot":"","sources":["../../src/apis/policiesApiWr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AC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,iBAAiB,CAAC,GAA6B;QACxD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtE,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,sBAAsB,CAAC,GAAkC;QAClE,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACzD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,mBAAmB,CAAC,GAAqC;QAClE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC;QAC5C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,yBAAyB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;CACJ,CAAA;AAtGY,kBAAkB;IAD9B,mCAAgB;;GACJ,kBAAkB,CAsG9B;AAtGY,gDAAkB"}
@@ -46,7 +46,7 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
46
46
  /**
47
47
  * Returns a list of accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of ten accounts are shown per page.
48
48
  * List accounts of a player.
49
- * @param player Specifies the unique player ID
49
+ * @param player Specifies the unique player ID (starts with pla_)
50
50
  * @param limit Specifies the maximum number of records to return.
51
51
  * @param skip Specifies the offset for the first records to return.
52
52
  * @param order Specifies the order in which to sort the results.
@@ -164,7 +164,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
164
164
  /**
165
165
  * Returns a list of accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of ten accounts are shown per page.
166
166
  * List accounts of a player.
167
- * @param player Specifies the unique player ID
167
+ * @param player Specifies the unique player ID (starts with pla_)
168
168
  * @param limit Specifies the maximum number of records to return.
169
169
  * @param skip Specifies the offset for the first records to return.
170
170
  * @param order Specifies the order in which to sort the results.
@@ -20,13 +20,13 @@ export declare class ContractsApiRequestFactory extends BaseAPIRequestFactory {
20
20
  /**
21
21
  * Delete a contract from the project by providing its contract id.
22
22
  * Deletes a contract object.
23
- * @param id Specifies the unique contract ID.
23
+ * @param id Specifies the unique contract ID (starts with con_).
24
24
  */
25
25
  deleteContract(id: string, _options?: Configuration): Promise<RequestContext>;
26
26
  /**
27
27
  * Retrieve a contract by providing their contract id.
28
28
  * Get a contract.
29
- * @param id Specifies the unique contract ID.
29
+ * @param id Specifies the unique contract ID (starts with con_).
30
30
  */
31
31
  getContract(id: string, _options?: Configuration): Promise<RequestContext>;
32
32
  /**
@@ -43,7 +43,7 @@ export declare class ContractsApiRequestFactory extends BaseAPIRequestFactory {
43
43
  getContracts(limit?: number, skip?: number, order?: SortOrder, name?: string, deleted?: boolean, chainId?: number, address?: string, _options?: Configuration): Promise<RequestContext>;
44
44
  /**
45
45
  * Updates a contract object.
46
- * @param id Specifies the unique contract ID.
46
+ * @param id Specifies the unique contract ID (starts with con_).
47
47
  * @param updateContractRequest
48
48
  */
49
49
  updateContract(id: string, updateContractRequest: UpdateContractRequest, _options?: Configuration): Promise<RequestContext>;
@@ -49,7 +49,7 @@ class ContractsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
49
49
  /**
50
50
  * Delete a contract from the project by providing its contract id.
51
51
  * Deletes a contract object.
52
- * @param id Specifies the unique contract ID.
52
+ * @param id Specifies the unique contract ID (starts with con_).
53
53
  */
54
54
  async deleteContract(id, _options) {
55
55
  let _config = _options || this.configuration;
@@ -78,7 +78,7 @@ class ContractsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
78
78
  /**
79
79
  * Retrieve a contract by providing their contract id.
80
80
  * Get a contract.
81
- * @param id Specifies the unique contract ID.
81
+ * @param id Specifies the unique contract ID (starts with con_).
82
82
  */
83
83
  async getContract(id, _options) {
84
84
  let _config = _options || this.configuration;
@@ -164,7 +164,7 @@ class ContractsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
164
164
  }
165
165
  /**
166
166
  * Updates a contract object.
167
- * @param id Specifies the unique contract ID.
167
+ * @param id Specifies the unique contract ID (starts with con_).
168
168
  * @param updateContractRequest
169
169
  */
170
170
  async updateContract(id, updateContractRequest, _options) {
@@ -39,34 +39,34 @@ export declare class InventoriesApiRequestFactory extends BaseAPIRequestFactory
39
39
  getAccountNftInventory(id: string, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<RequestContext>;
40
40
  /**
41
41
  * Get cryptocurrency list of player.
42
- * @param id Specifies the unique player ID.
42
+ * @param id Specifies the unique player ID (starts with pla_).
43
43
  * @param chainId Filter by chain id.
44
44
  * @param limit Specifies the maximum number of records to return.
45
45
  * @param skip Specifies the offset for the first records to return.
46
46
  * @param order Specifies the order in which to sort the results.
47
- * @param contractId Filter by contract ID.
47
+ * @param contractId Filter by contract ID (starts with con_).
48
48
  */
49
49
  getPlayerCryptoCurrencyInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<RequestContext>;
50
50
  /**
51
51
  * Get inventory of player.
52
- * @param id Specifies the unique player ID.
52
+ * @param id Specifies the unique player ID (starts with pla_).
53
53
  * @param chainId Filter by chain id.
54
54
  */
55
55
  getPlayerInventory(id: string, chainId: number, _options?: Configuration): Promise<RequestContext>;
56
56
  /**
57
57
  * Get native token list of player.
58
- * @param id Specifies the unique player ID.
58
+ * @param id Specifies the unique player ID (starts with pla_).
59
59
  * @param chainId Filter by chain id.
60
60
  */
61
61
  getPlayerNativeInventory(id: string, chainId: number, _options?: Configuration): Promise<RequestContext>;
62
62
  /**
63
63
  * Get NFTs list of player.
64
- * @param id Specifies the unique player ID.
64
+ * @param id Specifies the unique player ID (starts with pla_).
65
65
  * @param chainId Filter by chain id.
66
66
  * @param limit Specifies the maximum number of records to return.
67
67
  * @param skip Specifies the offset for the first records to return.
68
68
  * @param order Specifies the order in which to sort the results.
69
- * @param contractId Filter by contract ID.
69
+ * @param contractId Filter by contract ID (starts with con_).
70
70
  */
71
71
  getPlayerNftInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<RequestContext>;
72
72
  }
@@ -165,12 +165,12 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
165
165
  }
166
166
  /**
167
167
  * Get cryptocurrency list of player.
168
- * @param id Specifies the unique player ID.
168
+ * @param id Specifies the unique player ID (starts with pla_).
169
169
  * @param chainId Filter by chain id.
170
170
  * @param limit Specifies the maximum number of records to return.
171
171
  * @param skip Specifies the offset for the first records to return.
172
172
  * @param order Specifies the order in which to sort the results.
173
- * @param contractId Filter by contract ID.
173
+ * @param contractId Filter by contract ID (starts with con_).
174
174
  */
175
175
  async getPlayerCryptoCurrencyInventory(id, chainId, limit, skip, order, contractId, _options) {
176
176
  let _config = _options || this.configuration;
@@ -222,7 +222,7 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
222
222
  }
223
223
  /**
224
224
  * Get inventory of player.
225
- * @param id Specifies the unique player ID.
225
+ * @param id Specifies the unique player ID (starts with pla_).
226
226
  * @param chainId Filter by chain id.
227
227
  */
228
228
  async getPlayerInventory(id, chainId, _options) {
@@ -259,7 +259,7 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
259
259
  }
260
260
  /**
261
261
  * Get native token list of player.
262
- * @param id Specifies the unique player ID.
262
+ * @param id Specifies the unique player ID (starts with pla_).
263
263
  * @param chainId Filter by chain id.
264
264
  */
265
265
  async getPlayerNativeInventory(id, chainId, _options) {
@@ -296,12 +296,12 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
296
296
  }
297
297
  /**
298
298
  * Get NFTs list of player.
299
- * @param id Specifies the unique player ID.
299
+ * @param id Specifies the unique player ID (starts with pla_).
300
300
  * @param chainId Filter by chain id.
301
301
  * @param limit Specifies the maximum number of records to return.
302
302
  * @param skip Specifies the offset for the first records to return.
303
303
  * @param order Specifies the order in which to sort the results.
304
- * @param contractId Filter by contract ID.
304
+ * @param contractId Filter by contract ID (starts with con_).
305
305
  */
306
306
  async getPlayerNftInventory(id, chainId, limit, skip, order, contractId, _options) {
307
307
  let _config = _options || this.configuration;
@@ -0,0 +1,102 @@
1
+ import { BaseAPIRequestFactory } from './baseapi';
2
+ import { Configuration } from '../configuration';
3
+ import { RequestContext, ResponseContext } from '../http/http';
4
+ import { AuthResponse } from '../models/AuthResponse';
5
+ import { OAuthConfigListResponse } from '../models/OAuthConfigListResponse';
6
+ import { OAuthConfigRequest } from '../models/OAuthConfigRequest';
7
+ import { OAuthConfigResponse } from '../models/OAuthConfigResponse';
8
+ import { OAuthProvider } from '../models/OAuthProvider';
9
+ import { OAuthRequest } from '../models/OAuthRequest';
10
+ /**
11
+ * no description
12
+ */
13
+ export declare class OAuthApiRequestFactory extends BaseAPIRequestFactory {
14
+ /**
15
+ * 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.
16
+ * Authorize user with token.
17
+ * @param provider OAuth provider
18
+ * @param oAuthRequest Request body
19
+ */
20
+ auth(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<RequestContext>;
21
+ /**
22
+ * The endpoint creates oauth configuration for the current project environment.
23
+ * Create oauth configuration.
24
+ * @param provider Specifies the oauth provider type.
25
+ * @param oAuthConfigRequest Specifies the oauth provider specific configuration.
26
+ */
27
+ createOAuthConfig(provider: OAuthProvider, oAuthConfigRequest: OAuthConfigRequest, _options?: Configuration): Promise<RequestContext>;
28
+ /**
29
+ * The endpoint deletes oauth configuration for specified provider for the current project environment.
30
+ * Delete oauth configuration.
31
+ * @param provider Specifies the oauth provider type.
32
+ */
33
+ deleteOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<RequestContext>;
34
+ /**
35
+ * The endpoint retrieves oauth configuration for specified provider for the current project environment.
36
+ * Get oauth configuration.
37
+ * @param provider Specifies the oauth provider type.
38
+ */
39
+ getOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<RequestContext>;
40
+ /**
41
+ * The endpoint retrieves the list of oauth configurations for the current project environment.
42
+ * List of oauth configurations.
43
+ */
44
+ listOAuthConfig(_options?: Configuration): Promise<RequestContext>;
45
+ /**
46
+ * The endpoint updates oauth configuration for specified provider for the current project environment.
47
+ * Update oauth configuration.
48
+ * @param provider Specifies the oauth provider type.
49
+ * @param oAuthConfigRequest Specifies the oauth provider specific configuration.
50
+ */
51
+ updateOAuthConfig(provider: OAuthProvider, oAuthConfigRequest: OAuthConfigRequest, _options?: Configuration): Promise<RequestContext>;
52
+ }
53
+ export declare class OAuthApiResponseProcessor {
54
+ /**
55
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
56
+ * to the expected objects
57
+ *
58
+ * @params response Response returned by the server for a request to auth
59
+ * @throws ApiException if the response code was not in [200, 299]
60
+ */
61
+ auth(response: ResponseContext): Promise<AuthResponse>;
62
+ /**
63
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
64
+ * to the expected objects
65
+ *
66
+ * @params response Response returned by the server for a request to createOAuthConfig
67
+ * @throws ApiException if the response code was not in [200, 299]
68
+ */
69
+ createOAuthConfig(response: ResponseContext): Promise<void>;
70
+ /**
71
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
72
+ * to the expected objects
73
+ *
74
+ * @params response Response returned by the server for a request to deleteOAuthConfig
75
+ * @throws ApiException if the response code was not in [200, 299]
76
+ */
77
+ deleteOAuthConfig(response: ResponseContext): Promise<void>;
78
+ /**
79
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
80
+ * to the expected objects
81
+ *
82
+ * @params response Response returned by the server for a request to getOAuthConfig
83
+ * @throws ApiException if the response code was not in [200, 299]
84
+ */
85
+ getOAuthConfig(response: ResponseContext): Promise<OAuthConfigResponse>;
86
+ /**
87
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
88
+ * to the expected objects
89
+ *
90
+ * @params response Response returned by the server for a request to listOAuthConfig
91
+ * @throws ApiException if the response code was not in [200, 299]
92
+ */
93
+ listOAuthConfig(response: ResponseContext): Promise<OAuthConfigListResponse>;
94
+ /**
95
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
96
+ * to the expected objects
97
+ *
98
+ * @params response Response returned by the server for a request to updateOAuthConfig
99
+ * @throws ApiException if the response code was not in [200, 299]
100
+ */
101
+ updateOAuthConfig(response: ResponseContext): Promise<void>;
102
+ }