@openfort/openfort-node 0.7.1 → 0.7.2
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.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +499 -378
- package/dist/index.d.ts +499 -378
- package/dist/index.js +191 -134
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +183 -130
- package/dist/index.mjs.map +1 -1
- package/examples/contracts/createContract.ts +1 -1
- package/examples/exchange/createSwap.ts +2 -1
- package/openapi-auth.json +86 -53
- package/openapi.json +336 -52
- package/package.json +2 -2
package/openapi.json
CHANGED
|
@@ -5860,6 +5860,12 @@
|
|
|
5860
5860
|
"recoveryMethodDetails": {
|
|
5861
5861
|
"$ref": "#/components/schemas/RecoveryMethodDetails"
|
|
5862
5862
|
},
|
|
5863
|
+
"custody": {
|
|
5864
|
+
"type": "string",
|
|
5865
|
+
"enum": ["Developer", "User"],
|
|
5866
|
+
"description": "Indicates key custody: \"Developer\" for server-managed keys (WALLTEE), \"User\" for user-managed keys (DB).",
|
|
5867
|
+
"example": "Developer"
|
|
5868
|
+
},
|
|
5863
5869
|
"recoveryShare": {
|
|
5864
5870
|
"type": "string",
|
|
5865
5871
|
"description": "The recovery share for the user's embedded signer.\nThis should be stored securely and provided to the user for account recovery."
|
|
@@ -5873,6 +5879,7 @@
|
|
|
5873
5879
|
"chainType",
|
|
5874
5880
|
"createdAt",
|
|
5875
5881
|
"updatedAt",
|
|
5882
|
+
"custody",
|
|
5876
5883
|
"recoveryShare"
|
|
5877
5884
|
],
|
|
5878
5885
|
"type": "object",
|
|
@@ -6081,6 +6088,13 @@
|
|
|
6081
6088
|
"description": "Optional name for the wallet.",
|
|
6082
6089
|
"example": "Treasury Wallet"
|
|
6083
6090
|
},
|
|
6091
|
+
"custody": {
|
|
6092
|
+
"type": "string",
|
|
6093
|
+
"enum": ["Developer"],
|
|
6094
|
+
"nullable": false,
|
|
6095
|
+
"description": "Key custody: always \"Developer\" for backend wallets (server-managed keys in TEE).",
|
|
6096
|
+
"example": "Developer"
|
|
6097
|
+
},
|
|
6084
6098
|
"createdAt": {
|
|
6085
6099
|
"type": "integer",
|
|
6086
6100
|
"format": "int32",
|
|
@@ -6097,6 +6111,7 @@
|
|
|
6097
6111
|
"id",
|
|
6098
6112
|
"address",
|
|
6099
6113
|
"chainType",
|
|
6114
|
+
"custody",
|
|
6100
6115
|
"createdAt",
|
|
6101
6116
|
"updatedAt"
|
|
6102
6117
|
],
|
|
@@ -6562,6 +6577,12 @@
|
|
|
6562
6577
|
},
|
|
6563
6578
|
"recoveryMethodDetails": {
|
|
6564
6579
|
"$ref": "#/components/schemas/RecoveryMethodDetails"
|
|
6580
|
+
},
|
|
6581
|
+
"custody": {
|
|
6582
|
+
"type": "string",
|
|
6583
|
+
"enum": ["Developer", "User"],
|
|
6584
|
+
"description": "Indicates key custody: \"Developer\" for server-managed keys (WALLTEE), \"User\" for user-managed keys (DB).",
|
|
6585
|
+
"example": "Developer"
|
|
6565
6586
|
}
|
|
6566
6587
|
},
|
|
6567
6588
|
"required": [
|
|
@@ -6571,7 +6592,8 @@
|
|
|
6571
6592
|
"address",
|
|
6572
6593
|
"chainType",
|
|
6573
6594
|
"createdAt",
|
|
6574
|
-
"updatedAt"
|
|
6595
|
+
"updatedAt",
|
|
6596
|
+
"custody"
|
|
6575
6597
|
],
|
|
6576
6598
|
"type": "object",
|
|
6577
6599
|
"additionalProperties": false
|
|
@@ -14827,6 +14849,90 @@
|
|
|
14827
14849
|
}
|
|
14828
14850
|
}
|
|
14829
14851
|
},
|
|
14852
|
+
"/v1/logs": {
|
|
14853
|
+
"get": {
|
|
14854
|
+
"operationId": "GetProjectLogs",
|
|
14855
|
+
"responses": {
|
|
14856
|
+
"200": {
|
|
14857
|
+
"description": "Successful response.",
|
|
14858
|
+
"content": {
|
|
14859
|
+
"application/json": {
|
|
14860
|
+
"schema": {
|
|
14861
|
+
"$ref": "#/components/schemas/ProjectLogs"
|
|
14862
|
+
}
|
|
14863
|
+
}
|
|
14864
|
+
}
|
|
14865
|
+
},
|
|
14866
|
+
"401": {
|
|
14867
|
+
"description": "Error response."
|
|
14868
|
+
}
|
|
14869
|
+
},
|
|
14870
|
+
"summary": "Get logs for a project.",
|
|
14871
|
+
"tags": ["Logs"],
|
|
14872
|
+
"security": [
|
|
14873
|
+
{
|
|
14874
|
+
"sk": []
|
|
14875
|
+
},
|
|
14876
|
+
{
|
|
14877
|
+
"user_project": []
|
|
14878
|
+
}
|
|
14879
|
+
],
|
|
14880
|
+
"parameters": [
|
|
14881
|
+
{
|
|
14882
|
+
"description": ".",
|
|
14883
|
+
"in": "query",
|
|
14884
|
+
"name": "method",
|
|
14885
|
+
"required": false,
|
|
14886
|
+
"schema": {
|
|
14887
|
+
"type": "array",
|
|
14888
|
+
"items": {
|
|
14889
|
+
"type": "string"
|
|
14890
|
+
}
|
|
14891
|
+
}
|
|
14892
|
+
},
|
|
14893
|
+
{
|
|
14894
|
+
"description": "Specifies the unique project ID.",
|
|
14895
|
+
"in": "query",
|
|
14896
|
+
"name": "id",
|
|
14897
|
+
"required": false,
|
|
14898
|
+
"schema": {
|
|
14899
|
+
"type": "string"
|
|
14900
|
+
}
|
|
14901
|
+
}
|
|
14902
|
+
]
|
|
14903
|
+
}
|
|
14904
|
+
},
|
|
14905
|
+
"/v1/logs/webhook": {
|
|
14906
|
+
"get": {
|
|
14907
|
+
"operationId": "GetWebhookLogsByProjectId",
|
|
14908
|
+
"responses": {
|
|
14909
|
+
"200": {
|
|
14910
|
+
"description": "Successful response.",
|
|
14911
|
+
"content": {
|
|
14912
|
+
"application/json": {
|
|
14913
|
+
"schema": {
|
|
14914
|
+
"$ref": "#/components/schemas/ProjectLogs"
|
|
14915
|
+
}
|
|
14916
|
+
}
|
|
14917
|
+
}
|
|
14918
|
+
},
|
|
14919
|
+
"401": {
|
|
14920
|
+
"description": "Error response."
|
|
14921
|
+
}
|
|
14922
|
+
},
|
|
14923
|
+
"summary": "Get webhook logs for a project.",
|
|
14924
|
+
"tags": ["Logs"],
|
|
14925
|
+
"security": [
|
|
14926
|
+
{
|
|
14927
|
+
"sk": []
|
|
14928
|
+
},
|
|
14929
|
+
{
|
|
14930
|
+
"user_project": []
|
|
14931
|
+
}
|
|
14932
|
+
],
|
|
14933
|
+
"parameters": []
|
|
14934
|
+
}
|
|
14935
|
+
},
|
|
14830
14936
|
"/v1/graphql": {
|
|
14831
14937
|
"post": {
|
|
14832
14938
|
"operationId": "Query",
|
|
@@ -16166,7 +16272,7 @@
|
|
|
16166
16272
|
},
|
|
16167
16273
|
"description": "Returns a list of accounts for the given player.\n\nThis object represents a player's account, which is a blockchain smart account that can be used to interact with the blockchain.\n\nThe accounts are returned sorted by creation date, with the most recently created accounts appearing first.\n\nReturns the latest 10 transaction intents for each account.\n\nBy default, a maximum of 10 accounts are shown per page.",
|
|
16168
16274
|
"summary": "List accounts of a player.",
|
|
16169
|
-
"tags": ["
|
|
16275
|
+
"tags": ["accs v1"],
|
|
16170
16276
|
"security": [
|
|
16171
16277
|
{
|
|
16172
16278
|
"pk_access_token": []
|
|
@@ -16308,7 +16414,7 @@
|
|
|
16308
16414
|
},
|
|
16309
16415
|
"description": "Creates a new blockchain account for the provided player. If not player is provided, a new one will be created.\n\nAccount creation does not consume any gas. All accounts of a player will use the same address across blockchains.\n\nEach player can only have one account per chain.",
|
|
16310
16416
|
"summary": "Create an account object.",
|
|
16311
|
-
"tags": ["
|
|
16417
|
+
"tags": ["accs v1"],
|
|
16312
16418
|
"security": [
|
|
16313
16419
|
{
|
|
16314
16420
|
"pk_access_token": []
|
|
@@ -16383,7 +16489,7 @@
|
|
|
16383
16489
|
},
|
|
16384
16490
|
"description": "Retrieves the details of an existing account.\n\nSupply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.\n\nReturns the latest 10 transaction intents created by this account.",
|
|
16385
16491
|
"summary": "Get existing account.",
|
|
16386
|
-
"tags": ["
|
|
16492
|
+
"tags": ["accs v1"],
|
|
16387
16493
|
"security": [
|
|
16388
16494
|
{
|
|
16389
16495
|
"sk": []
|
|
@@ -16432,7 +16538,9 @@
|
|
|
16432
16538
|
"description": "Error response."
|
|
16433
16539
|
}
|
|
16434
16540
|
},
|
|
16435
|
-
"
|
|
16541
|
+
"description": "Disables an account.\n\nAccounts won't be shown for user and won't be accessible for transactions.",
|
|
16542
|
+
"summary": "Disable account by id.",
|
|
16543
|
+
"tags": ["accs v1"],
|
|
16436
16544
|
"security": [
|
|
16437
16545
|
{
|
|
16438
16546
|
"pk_access_token": []
|
|
@@ -16544,7 +16652,7 @@
|
|
|
16544
16652
|
},
|
|
16545
16653
|
"description": "Perform a request to change the owner of an account.\n\nTo perform an update on the owner of an account, first you must provide a new owner address.\nOnce requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.",
|
|
16546
16654
|
"summary": "Request transfer ownership of account.",
|
|
16547
|
-
"tags": ["
|
|
16655
|
+
"tags": ["accs v1"],
|
|
16548
16656
|
"security": [
|
|
16549
16657
|
{
|
|
16550
16658
|
"sk": []
|
|
@@ -16656,7 +16764,7 @@
|
|
|
16656
16764
|
},
|
|
16657
16765
|
"description": "Cancel a pending transfer of ownership.",
|
|
16658
16766
|
"summary": "Cancel request to transfer ownership of an account.",
|
|
16659
|
-
"tags": ["
|
|
16767
|
+
"tags": ["accs v1"],
|
|
16660
16768
|
"security": [
|
|
16661
16769
|
{
|
|
16662
16770
|
"sk": []
|
|
@@ -16720,7 +16828,7 @@
|
|
|
16720
16828
|
},
|
|
16721
16829
|
"description": "**Custodial Accounts only** - Signs the typed repositories value with types repositories structure for domain using the [EIP-712](https://eips.ethereum.org/EIPS/eip-712) specification.",
|
|
16722
16830
|
"summary": "Sign a given payload",
|
|
16723
|
-
"tags": ["
|
|
16831
|
+
"tags": ["accs v1"],
|
|
16724
16832
|
"security": [
|
|
16725
16833
|
{
|
|
16726
16834
|
"sk": []
|
|
@@ -16800,7 +16908,7 @@
|
|
|
16800
16908
|
},
|
|
16801
16909
|
"description": "Synchronize the account state with the blockchain.\nSpecifically, it updates the account owner and whether its deployed or not.",
|
|
16802
16910
|
"summary": "Sync account state with the blockchain",
|
|
16803
|
-
"tags": ["
|
|
16911
|
+
"tags": ["accs v1"],
|
|
16804
16912
|
"security": [
|
|
16805
16913
|
{
|
|
16806
16914
|
"sk": []
|
|
@@ -16870,7 +16978,7 @@
|
|
|
16870
16978
|
},
|
|
16871
16979
|
"description": "This endpoint can be used to deploy a smart contract account that was counterfactually generated.",
|
|
16872
16980
|
"summary": "Deploy an account.",
|
|
16873
|
-
"tags": ["
|
|
16981
|
+
"tags": ["accs v1"],
|
|
16874
16982
|
"security": [
|
|
16875
16983
|
{
|
|
16876
16984
|
"sk": []
|
|
@@ -16984,7 +17092,7 @@
|
|
|
16984
17092
|
}
|
|
16985
17093
|
},
|
|
16986
17094
|
"summary": "Start a recovery process of a recoverable account.",
|
|
16987
|
-
"tags": ["
|
|
17095
|
+
"tags": ["accs v1"],
|
|
16988
17096
|
"security": [
|
|
16989
17097
|
{
|
|
16990
17098
|
"sk": []
|
|
@@ -17095,7 +17203,7 @@
|
|
|
17095
17203
|
}
|
|
17096
17204
|
},
|
|
17097
17205
|
"summary": "Complete a recovery process of a recoverable account.",
|
|
17098
|
-
"tags": ["
|
|
17206
|
+
"tags": ["accs v1"],
|
|
17099
17207
|
"security": [
|
|
17100
17208
|
{
|
|
17101
17209
|
"sk": []
|
|
@@ -17193,7 +17301,7 @@
|
|
|
17193
17301
|
}
|
|
17194
17302
|
},
|
|
17195
17303
|
"description": "Retrieves an authenticated users.\n\nUsers have linked accounts and are authenticated with a provider.",
|
|
17196
|
-
"summary": "
|
|
17304
|
+
"summary": "List authenticated users.",
|
|
17197
17305
|
"tags": ["Users"],
|
|
17198
17306
|
"security": [
|
|
17199
17307
|
{
|
|
@@ -17299,7 +17407,7 @@
|
|
|
17299
17407
|
}
|
|
17300
17408
|
},
|
|
17301
17409
|
"description": "Retrieves an authenticated user.\n\nUsers have linked accounts and are authenticated with a provider.",
|
|
17302
|
-
"summary": "
|
|
17410
|
+
"summary": "Get authenticated user by id.",
|
|
17303
17411
|
"tags": ["Users"],
|
|
17304
17412
|
"security": [
|
|
17305
17413
|
{
|
|
@@ -17350,7 +17458,7 @@
|
|
|
17350
17458
|
}
|
|
17351
17459
|
},
|
|
17352
17460
|
"description": "It will delete all linked accounts the user is authenticated with.\nIf the user has a linked embedded signer, it will be deleted as well.",
|
|
17353
|
-
"summary": "
|
|
17461
|
+
"summary": "Delete user by id.",
|
|
17354
17462
|
"tags": ["Users"],
|
|
17355
17463
|
"security": [
|
|
17356
17464
|
{
|
|
@@ -17800,7 +17908,7 @@
|
|
|
17800
17908
|
"tags": ["Backend Wallets"],
|
|
17801
17909
|
"security": [
|
|
17802
17910
|
{
|
|
17803
|
-
"
|
|
17911
|
+
"user_project": []
|
|
17804
17912
|
}
|
|
17805
17913
|
],
|
|
17806
17914
|
"parameters": [],
|
|
@@ -17915,9 +18023,9 @@
|
|
|
17915
18023
|
"description": "Error response."
|
|
17916
18024
|
}
|
|
17917
18025
|
},
|
|
17918
|
-
"description": "Returns a list of accounts for the given user.\n\nThis object represents a user's account, which is a blockchain smart account that can be used to interact with the blockchain.\n\nThe accounts are returned sorted by creation date, with the most recently created accounts appearing first
|
|
17919
|
-
"summary": "List accounts
|
|
17920
|
-
"tags": ["
|
|
18026
|
+
"description": "Returns a list of accounts for the given user.\n\nThis object represents a user's account, which is a blockchain smart account that can be used to interact with the blockchain.\n\nThe accounts are returned sorted by creation date, with the most recently created accounts appearing first.",
|
|
18027
|
+
"summary": "List user accounts.",
|
|
18028
|
+
"tags": ["accs v2"],
|
|
17921
18029
|
"security": [
|
|
17922
18030
|
{
|
|
17923
18031
|
"pk_access_token": []
|
|
@@ -18054,7 +18162,9 @@
|
|
|
18054
18162
|
"description": "Error response."
|
|
18055
18163
|
}
|
|
18056
18164
|
},
|
|
18057
|
-
"
|
|
18165
|
+
"description": "Creates a new blockchain account for a user.\n\nAccount creation does not consume any gas. The account can be used to interact with the blockchain.",
|
|
18166
|
+
"summary": "Create new account.",
|
|
18167
|
+
"tags": ["accs v2"],
|
|
18058
18168
|
"security": [
|
|
18059
18169
|
{
|
|
18060
18170
|
"sk": []
|
|
@@ -18091,7 +18201,9 @@
|
|
|
18091
18201
|
"description": "Error response."
|
|
18092
18202
|
}
|
|
18093
18203
|
},
|
|
18094
|
-
"
|
|
18204
|
+
"description": "Retrieves the signer ID associated with a given blockchain address.",
|
|
18205
|
+
"summary": "Get signer ID by address.",
|
|
18206
|
+
"tags": ["accs v2"],
|
|
18095
18207
|
"security": [
|
|
18096
18208
|
{
|
|
18097
18209
|
"pk_access_token": []
|
|
@@ -18139,7 +18251,9 @@
|
|
|
18139
18251
|
"description": "Error response."
|
|
18140
18252
|
}
|
|
18141
18253
|
},
|
|
18142
|
-
"
|
|
18254
|
+
"description": "Retrieves the details of an existing account.\n\nSupply the unique account ID and Openfort will return the corresponding account information.",
|
|
18255
|
+
"summary": "Get existing account.",
|
|
18256
|
+
"tags": ["accs v2"],
|
|
18143
18257
|
"security": [
|
|
18144
18258
|
{
|
|
18145
18259
|
"pk_access_token": []
|
|
@@ -18189,7 +18303,8 @@
|
|
|
18189
18303
|
}
|
|
18190
18304
|
},
|
|
18191
18305
|
"description": "Removes an account from a project.",
|
|
18192
|
-
"
|
|
18306
|
+
"summary": "Delete account.",
|
|
18307
|
+
"tags": ["accs v2"],
|
|
18193
18308
|
"security": [
|
|
18194
18309
|
{
|
|
18195
18310
|
"user_project": []
|
|
@@ -18228,7 +18343,9 @@
|
|
|
18228
18343
|
"description": "Error response."
|
|
18229
18344
|
}
|
|
18230
18345
|
},
|
|
18231
|
-
"
|
|
18346
|
+
"description": "Switches the blockchain network for an existing account.\n\nThis allows moving an account between different blockchain networks while maintaining the same account identity.",
|
|
18347
|
+
"summary": "Switch account blockchain.",
|
|
18348
|
+
"tags": ["accs v2"],
|
|
18232
18349
|
"security": [
|
|
18233
18350
|
{
|
|
18234
18351
|
"pk_access_token": []
|
|
@@ -18296,7 +18413,7 @@
|
|
|
18296
18413
|
},
|
|
18297
18414
|
"description": "Get or create a new session for the player based on the refresh token.",
|
|
18298
18415
|
"summary": "Refresh or create auth session.",
|
|
18299
|
-
"tags": ["
|
|
18416
|
+
"tags": ["auth v1"],
|
|
18300
18417
|
"security": [
|
|
18301
18418
|
{
|
|
18302
18419
|
"pk": []
|
|
@@ -18328,7 +18445,7 @@
|
|
|
18328
18445
|
},
|
|
18329
18446
|
"description": "When using Openfort Auth, the endpoint logs out the player.",
|
|
18330
18447
|
"summary": "Log out a player.",
|
|
18331
|
-
"tags": ["
|
|
18448
|
+
"tags": ["auth v1"],
|
|
18332
18449
|
"security": [
|
|
18333
18450
|
{
|
|
18334
18451
|
"pk_access_token": []
|
|
@@ -18376,7 +18493,7 @@
|
|
|
18376
18493
|
},
|
|
18377
18494
|
"description": "Create a challenge to link external wallet to the player.",
|
|
18378
18495
|
"summary": "Initialize SIWE.",
|
|
18379
|
-
"tags": ["
|
|
18496
|
+
"tags": ["auth v1"],
|
|
18380
18497
|
"security": [
|
|
18381
18498
|
{
|
|
18382
18499
|
"pk": []
|
|
@@ -18446,7 +18563,7 @@
|
|
|
18446
18563
|
}
|
|
18447
18564
|
},
|
|
18448
18565
|
"summary": "Authenticate player with SIWE",
|
|
18449
|
-
"tags": ["
|
|
18566
|
+
"tags": ["auth v1"],
|
|
18450
18567
|
"security": [
|
|
18451
18568
|
{
|
|
18452
18569
|
"pk": []
|
|
@@ -18487,7 +18604,7 @@
|
|
|
18487
18604
|
}
|
|
18488
18605
|
},
|
|
18489
18606
|
"summary": "Unlink external wallet.",
|
|
18490
|
-
"tags": ["
|
|
18607
|
+
"tags": ["auth v1"],
|
|
18491
18608
|
"security": [
|
|
18492
18609
|
{
|
|
18493
18610
|
"pk_access_token": []
|
|
@@ -18531,7 +18648,7 @@
|
|
|
18531
18648
|
}
|
|
18532
18649
|
},
|
|
18533
18650
|
"summary": "Link external wallet.",
|
|
18534
|
-
"tags": ["
|
|
18651
|
+
"tags": ["auth v1"],
|
|
18535
18652
|
"security": [
|
|
18536
18653
|
{
|
|
18537
18654
|
"pk_access_token": []
|
|
@@ -18603,7 +18720,7 @@
|
|
|
18603
18720
|
},
|
|
18604
18721
|
"description": "Create and authenticate a player based on email and password.",
|
|
18605
18722
|
"summary": "Email and password signup.",
|
|
18606
|
-
"tags": ["
|
|
18723
|
+
"tags": ["auth v1"],
|
|
18607
18724
|
"security": [
|
|
18608
18725
|
{
|
|
18609
18726
|
"pk": []
|
|
@@ -18678,7 +18795,7 @@
|
|
|
18678
18795
|
},
|
|
18679
18796
|
"description": "Authenticate a player based on email and password.",
|
|
18680
18797
|
"summary": "Email and password login.",
|
|
18681
|
-
"tags": ["
|
|
18798
|
+
"tags": ["auth v1"],
|
|
18682
18799
|
"security": [
|
|
18683
18800
|
{
|
|
18684
18801
|
"pk": []
|
|
@@ -18719,7 +18836,7 @@
|
|
|
18719
18836
|
},
|
|
18720
18837
|
"description": "Start the Email Verification process for a player.",
|
|
18721
18838
|
"summary": "Request an Email Verification.",
|
|
18722
|
-
"tags": ["
|
|
18839
|
+
"tags": ["auth v1"],
|
|
18723
18840
|
"security": [
|
|
18724
18841
|
{
|
|
18725
18842
|
"pk": []
|
|
@@ -18751,7 +18868,7 @@
|
|
|
18751
18868
|
},
|
|
18752
18869
|
"description": "Verify a player's email address.",
|
|
18753
18870
|
"summary": "Verify an email.",
|
|
18754
|
-
"tags": ["
|
|
18871
|
+
"tags": ["auth v1"],
|
|
18755
18872
|
"security": [
|
|
18756
18873
|
{
|
|
18757
18874
|
"pk": []
|
|
@@ -18783,7 +18900,7 @@
|
|
|
18783
18900
|
},
|
|
18784
18901
|
"description": "Start the Reset process for a player's password.",
|
|
18785
18902
|
"summary": "Request a Reset password.",
|
|
18786
|
-
"tags": ["
|
|
18903
|
+
"tags": ["auth v1"],
|
|
18787
18904
|
"security": [
|
|
18788
18905
|
{
|
|
18789
18906
|
"pk": []
|
|
@@ -18815,7 +18932,7 @@
|
|
|
18815
18932
|
},
|
|
18816
18933
|
"description": "Reset a player's password.",
|
|
18817
18934
|
"summary": "Reset a password.",
|
|
18818
|
-
"tags": ["
|
|
18935
|
+
"tags": ["auth v1"],
|
|
18819
18936
|
"security": [
|
|
18820
18937
|
{
|
|
18821
18938
|
"pk": []
|
|
@@ -18859,7 +18976,7 @@
|
|
|
18859
18976
|
"description": ""
|
|
18860
18977
|
}
|
|
18861
18978
|
},
|
|
18862
|
-
"tags": ["
|
|
18979
|
+
"tags": ["auth v1"],
|
|
18863
18980
|
"security": [
|
|
18864
18981
|
{
|
|
18865
18982
|
"pk_access_token": []
|
|
@@ -18908,7 +19025,7 @@
|
|
|
18908
19025
|
"description": ""
|
|
18909
19026
|
}
|
|
18910
19027
|
},
|
|
18911
|
-
"tags": ["
|
|
19028
|
+
"tags": ["auth v1"],
|
|
18912
19029
|
"security": [
|
|
18913
19030
|
{
|
|
18914
19031
|
"pk_access_token": []
|
|
@@ -18970,7 +19087,7 @@
|
|
|
18970
19087
|
},
|
|
18971
19088
|
"description": "Authenticate a player from an identity token.",
|
|
18972
19089
|
"summary": "OIDC Identity token.",
|
|
18973
|
-
"tags": ["
|
|
19090
|
+
"tags": ["auth v1"],
|
|
18974
19091
|
"security": [
|
|
18975
19092
|
{
|
|
18976
19093
|
"pk": []
|
|
@@ -19017,7 +19134,7 @@
|
|
|
19017
19134
|
}
|
|
19018
19135
|
},
|
|
19019
19136
|
"summary": "Initialize OAuth.",
|
|
19020
|
-
"tags": ["
|
|
19137
|
+
"tags": ["auth v1"],
|
|
19021
19138
|
"security": [
|
|
19022
19139
|
{
|
|
19023
19140
|
"pk": []
|
|
@@ -19064,7 +19181,7 @@
|
|
|
19064
19181
|
}
|
|
19065
19182
|
},
|
|
19066
19183
|
"summary": "Initialize Link OAuth.",
|
|
19067
|
-
"tags": ["
|
|
19184
|
+
"tags": ["auth v1"],
|
|
19068
19185
|
"security": [
|
|
19069
19186
|
{
|
|
19070
19187
|
"pk_access_token": []
|
|
@@ -19114,7 +19231,7 @@
|
|
|
19114
19231
|
}
|
|
19115
19232
|
},
|
|
19116
19233
|
"summary": "Initialize Link OAuth.",
|
|
19117
|
-
"tags": ["
|
|
19234
|
+
"tags": ["auth v1"],
|
|
19118
19235
|
"security": [
|
|
19119
19236
|
{
|
|
19120
19237
|
"pk_access_token": []
|
|
@@ -19164,7 +19281,7 @@
|
|
|
19164
19281
|
}
|
|
19165
19282
|
},
|
|
19166
19283
|
"summary": "Initialize OAuth.",
|
|
19167
|
-
"tags": ["
|
|
19284
|
+
"tags": ["auth v1"],
|
|
19168
19285
|
"security": [
|
|
19169
19286
|
{
|
|
19170
19287
|
"pk": []
|
|
@@ -19221,7 +19338,7 @@
|
|
|
19221
19338
|
}
|
|
19222
19339
|
},
|
|
19223
19340
|
"summary": "Authenticate player with oauth token.",
|
|
19224
|
-
"tags": ["
|
|
19341
|
+
"tags": ["auth v1"],
|
|
19225
19342
|
"security": [
|
|
19226
19343
|
{
|
|
19227
19344
|
"pk": []
|
|
@@ -19282,7 +19399,7 @@
|
|
|
19282
19399
|
}
|
|
19283
19400
|
},
|
|
19284
19401
|
"summary": "Verify oauth token of a third party auth provider.",
|
|
19285
|
-
"tags": ["
|
|
19402
|
+
"tags": ["auth v1"],
|
|
19286
19403
|
"security": [
|
|
19287
19404
|
{
|
|
19288
19405
|
"pk": []
|
|
@@ -19358,7 +19475,7 @@
|
|
|
19358
19475
|
},
|
|
19359
19476
|
"description": "The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.\n\nReturns the latest 10 transaction intents for the player.",
|
|
19360
19477
|
"summary": "Retrieve player by oauth token.",
|
|
19361
|
-
"tags": ["AdminAuthentication", "
|
|
19478
|
+
"tags": ["AdminAuthentication", "auth v1"],
|
|
19362
19479
|
"security": [
|
|
19363
19480
|
{
|
|
19364
19481
|
"sk": []
|
|
@@ -19412,7 +19529,7 @@
|
|
|
19412
19529
|
}
|
|
19413
19530
|
},
|
|
19414
19531
|
"summary": "Unlink OAuth account",
|
|
19415
|
-
"tags": ["
|
|
19532
|
+
"tags": ["auth v1"],
|
|
19416
19533
|
"security": [
|
|
19417
19534
|
{
|
|
19418
19535
|
"pk_access_token": []
|
|
@@ -19536,6 +19653,146 @@
|
|
|
19536
19653
|
}
|
|
19537
19654
|
}
|
|
19538
19655
|
},
|
|
19656
|
+
"/iam/v1/oauth/callback": {
|
|
19657
|
+
"get": {
|
|
19658
|
+
"operationId": "DeprecatedCallbackOAuth",
|
|
19659
|
+
"responses": {
|
|
19660
|
+
"302": {
|
|
19661
|
+
"description": "Redirect",
|
|
19662
|
+
"content": {
|
|
19663
|
+
"application/json": {
|
|
19664
|
+
"schema": {}
|
|
19665
|
+
}
|
|
19666
|
+
}
|
|
19667
|
+
},
|
|
19668
|
+
"409": {
|
|
19669
|
+
"description": "User already exists"
|
|
19670
|
+
}
|
|
19671
|
+
},
|
|
19672
|
+
"summary": "oauth callback.",
|
|
19673
|
+
"tags": ["AdminAuthentication"],
|
|
19674
|
+
"deprecated": true,
|
|
19675
|
+
"security": [],
|
|
19676
|
+
"parameters": [
|
|
19677
|
+
{
|
|
19678
|
+
"description": "Specifies the oauth code.",
|
|
19679
|
+
"in": "query",
|
|
19680
|
+
"name": "code",
|
|
19681
|
+
"required": true,
|
|
19682
|
+
"schema": {
|
|
19683
|
+
"type": "string"
|
|
19684
|
+
}
|
|
19685
|
+
},
|
|
19686
|
+
{
|
|
19687
|
+
"description": "Specifies the oauth state.",
|
|
19688
|
+
"in": "query",
|
|
19689
|
+
"name": "state",
|
|
19690
|
+
"required": true,
|
|
19691
|
+
"schema": {
|
|
19692
|
+
"type": "string"
|
|
19693
|
+
}
|
|
19694
|
+
}
|
|
19695
|
+
]
|
|
19696
|
+
}
|
|
19697
|
+
},
|
|
19698
|
+
"/iam/v1/oauth/grant/{provider}": {
|
|
19699
|
+
"post": {
|
|
19700
|
+
"operationId": "GrantOAuth",
|
|
19701
|
+
"responses": {
|
|
19702
|
+
"200": {
|
|
19703
|
+
"description": "Successful response.",
|
|
19704
|
+
"content": {
|
|
19705
|
+
"application/json": {
|
|
19706
|
+
"schema": {
|
|
19707
|
+
"$ref": "#/components/schemas/GrantOAuthResponse"
|
|
19708
|
+
}
|
|
19709
|
+
}
|
|
19710
|
+
}
|
|
19711
|
+
},
|
|
19712
|
+
"409": {
|
|
19713
|
+
"description": "User already exists"
|
|
19714
|
+
}
|
|
19715
|
+
},
|
|
19716
|
+
"summary": "oauth grant.",
|
|
19717
|
+
"tags": ["AdminAuthentication"],
|
|
19718
|
+
"security": [
|
|
19719
|
+
{
|
|
19720
|
+
"pk": []
|
|
19721
|
+
}
|
|
19722
|
+
],
|
|
19723
|
+
"parameters": [
|
|
19724
|
+
{
|
|
19725
|
+
"description": "Specifies the oauth provider.",
|
|
19726
|
+
"in": "path",
|
|
19727
|
+
"name": "provider",
|
|
19728
|
+
"required": true,
|
|
19729
|
+
"schema": {
|
|
19730
|
+
"$ref": "#/components/schemas/OAuthProvider"
|
|
19731
|
+
}
|
|
19732
|
+
}
|
|
19733
|
+
],
|
|
19734
|
+
"requestBody": {
|
|
19735
|
+
"required": true,
|
|
19736
|
+
"content": {
|
|
19737
|
+
"application/json": {
|
|
19738
|
+
"schema": {
|
|
19739
|
+
"$ref": "#/components/schemas/GrantCallbackRequest"
|
|
19740
|
+
}
|
|
19741
|
+
}
|
|
19742
|
+
}
|
|
19743
|
+
}
|
|
19744
|
+
}
|
|
19745
|
+
},
|
|
19746
|
+
"/iam/v1/oauth/callback/{provider}": {
|
|
19747
|
+
"get": {
|
|
19748
|
+
"operationId": "CallbackOAuth",
|
|
19749
|
+
"responses": {
|
|
19750
|
+
"302": {
|
|
19751
|
+
"description": "Redirect",
|
|
19752
|
+
"content": {
|
|
19753
|
+
"application/json": {
|
|
19754
|
+
"schema": {}
|
|
19755
|
+
}
|
|
19756
|
+
}
|
|
19757
|
+
},
|
|
19758
|
+
"409": {
|
|
19759
|
+
"description": "User already exists"
|
|
19760
|
+
}
|
|
19761
|
+
},
|
|
19762
|
+
"summary": "oauth callback.",
|
|
19763
|
+
"tags": ["AdminAuthentication"],
|
|
19764
|
+
"security": [],
|
|
19765
|
+
"parameters": [
|
|
19766
|
+
{
|
|
19767
|
+
"description": "Specifies the oauth code.",
|
|
19768
|
+
"in": "query",
|
|
19769
|
+
"name": "code",
|
|
19770
|
+
"required": true,
|
|
19771
|
+
"schema": {
|
|
19772
|
+
"type": "string"
|
|
19773
|
+
}
|
|
19774
|
+
},
|
|
19775
|
+
{
|
|
19776
|
+
"description": "Specifies the oauth state.",
|
|
19777
|
+
"in": "query",
|
|
19778
|
+
"name": "state",
|
|
19779
|
+
"required": true,
|
|
19780
|
+
"schema": {
|
|
19781
|
+
"type": "string"
|
|
19782
|
+
}
|
|
19783
|
+
},
|
|
19784
|
+
{
|
|
19785
|
+
"description": "Specifies the oauth provider.",
|
|
19786
|
+
"in": "path",
|
|
19787
|
+
"name": "provider",
|
|
19788
|
+
"required": true,
|
|
19789
|
+
"schema": {
|
|
19790
|
+
"$ref": "#/components/schemas/OAuthProvider"
|
|
19791
|
+
}
|
|
19792
|
+
}
|
|
19793
|
+
]
|
|
19794
|
+
}
|
|
19795
|
+
},
|
|
19539
19796
|
"/iam/v1/oauth/{provider}": {
|
|
19540
19797
|
"get": {
|
|
19541
19798
|
"operationId": "GetOAuthConfig",
|
|
@@ -19667,7 +19924,7 @@
|
|
|
19667
19924
|
},
|
|
19668
19925
|
"description": "Create a guest player.",
|
|
19669
19926
|
"summary": "Create a guest player.",
|
|
19670
|
-
"tags": ["
|
|
19927
|
+
"tags": ["auth v1"],
|
|
19671
19928
|
"security": [
|
|
19672
19929
|
{
|
|
19673
19930
|
"pk": []
|
|
@@ -20172,7 +20429,7 @@
|
|
|
20172
20429
|
},
|
|
20173
20430
|
"description": "Get the jwks.json file.\n\nYou can use the jwks.json file to verify the signature of a JWT token issued by Openfort Auth.",
|
|
20174
20431
|
"summary": "Get the jwks.json file.",
|
|
20175
|
-
"tags": ["
|
|
20432
|
+
"tags": ["auth v1"],
|
|
20176
20433
|
"security": [],
|
|
20177
20434
|
"parameters": [
|
|
20178
20435
|
{
|
|
@@ -20222,7 +20479,7 @@
|
|
|
20222
20479
|
"description": "Error response."
|
|
20223
20480
|
}
|
|
20224
20481
|
},
|
|
20225
|
-
"tags": ["
|
|
20482
|
+
"tags": ["auth v1"],
|
|
20226
20483
|
"security": [
|
|
20227
20484
|
{
|
|
20228
20485
|
"pk_access_token": []
|
|
@@ -20340,7 +20597,8 @@
|
|
|
20340
20597
|
"description": "Error response."
|
|
20341
20598
|
}
|
|
20342
20599
|
},
|
|
20343
|
-
"
|
|
20600
|
+
"summary": "Get user information.",
|
|
20601
|
+
"tags": ["auth v2"],
|
|
20344
20602
|
"security": [
|
|
20345
20603
|
{
|
|
20346
20604
|
"pk_third_party": []
|
|
@@ -20393,7 +20651,7 @@
|
|
|
20393
20651
|
}
|
|
20394
20652
|
},
|
|
20395
20653
|
"summary": "Verify oauth token of a third party auth provider.",
|
|
20396
|
-
"tags": ["
|
|
20654
|
+
"tags": ["auth v2"],
|
|
20397
20655
|
"security": [
|
|
20398
20656
|
{
|
|
20399
20657
|
"pk": []
|
|
@@ -20421,5 +20679,31 @@
|
|
|
20421
20679
|
"url": "https://api.openfort.io",
|
|
20422
20680
|
"description": "Openfort API Server"
|
|
20423
20681
|
}
|
|
20682
|
+
],
|
|
20683
|
+
"x-tagGroups": [
|
|
20684
|
+
{
|
|
20685
|
+
"name": "Users",
|
|
20686
|
+
"tags": ["Users"]
|
|
20687
|
+
},
|
|
20688
|
+
{
|
|
20689
|
+
"name": "Accounts",
|
|
20690
|
+
"tags": ["accs v1", "accs v2"]
|
|
20691
|
+
},
|
|
20692
|
+
{
|
|
20693
|
+
"name": "Transactions",
|
|
20694
|
+
"tags": ["TransactionIntents"]
|
|
20695
|
+
},
|
|
20696
|
+
{
|
|
20697
|
+
"name": "Authentication",
|
|
20698
|
+
"tags": ["auth v1", "auth v2"]
|
|
20699
|
+
},
|
|
20700
|
+
{
|
|
20701
|
+
"name": "Session keys",
|
|
20702
|
+
"tags": ["Sessions"]
|
|
20703
|
+
},
|
|
20704
|
+
{
|
|
20705
|
+
"name": "Sponsor transactions & Models",
|
|
20706
|
+
"tags": ["Policies"]
|
|
20707
|
+
}
|
|
20424
20708
|
]
|
|
20425
20709
|
}
|