Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v2024.5.9 #6

Merged
merged 2 commits into from
May 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 129 additions & 3 deletions turnkey_client_inputs/public_api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,32 @@
"tags": ["Private Keys"]
}
},
"/public/v1/submit/create_read_only_session": {
"post": {
"summary": "Create Read Only Session",
"description": "Create a read only session for a user (valid for 1 hour)",
"operationId": "CreateReadOnlySession",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/ActivityResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CreateReadOnlySessionRequest"
}
}
],
"tags": ["Sessions"]
}
},
"/public/v1/submit/create_sub_organization": {
"post": {
"summary": "Create Sub-Organization",
Expand Down Expand Up @@ -1751,6 +1777,10 @@
},
"updatedAt": {
"$ref": "#/definitions/external.data.v1.Timestamp"
},
"failure": {
"$ref": "#/definitions/Status",
"description": "Failure reason of the intended action."
}
},
"required": [
Expand Down Expand Up @@ -1854,7 +1884,8 @@
"ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY",
"ACTIVITY_TYPE_IMPORT_PRIVATE_KEY",
"ACTIVITY_TYPE_CREATE_POLICIES",
"ACTIVITY_TYPE_SIGN_RAW_PAYLOADS"
"ACTIVITY_TYPE_SIGN_RAW_PAYLOADS",
"ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION"
]
},
"AddressFormat": {
Expand All @@ -1868,6 +1899,15 @@
"ADDRESS_FORMAT_TRON"
]
},
"Any": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"ApiKey": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2676,6 +2716,68 @@
},
"required": ["privateKeys"]
},
"CreateReadOnlySessionIntent": {
"type": "object"
},
"CreateReadOnlySessionRequest": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION"]
},
"timestampMs": {
"type": "string",
"description": "Timestamp (in milliseconds) of the request, used to verify liveness of user requests."
},
"organizationId": {
"type": "string",
"description": "Unique identifier for a given Organization."
},
"parameters": {
"$ref": "#/definitions/CreateReadOnlySessionIntent"
}
},
"required": ["type", "timestampMs", "organizationId", "parameters"]
},
"CreateReadOnlySessionResult": {
"type": "object",
"properties": {
"organizationId": {
"type": "string",
"description": "Unique identifier for a given Organization. If the request is being made by a user and their Sub-Organization ID is unknown, this can be the Parent Organization ID. However, using the Sub-Organization ID is preferred due to performance reasons."
},
"organizationName": {
"type": "string",
"description": "Human-readable name for an Organization."
},
"userId": {
"type": "string",
"description": "Unique identifier for a given User."
},
"username": {
"type": "string",
"description": "Human-readable name for a User."
},
"session": {
"type": "string",
"description": "String representing a read only session"
},
"sessionExpiry": {
"type": "string",
"format": "uint64",
"description": "UTC timestamp in seconds representing the expiry time for the read only session."
}
},
"required": [
"organizationId",
"organizationName",
"userId",
"username",
"session",
"sessionExpiry"
]
},
"CreateSubOrganizationIntent": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -4697,9 +4799,11 @@
},
"signRawPayloadsIntent": {
"$ref": "#/definitions/SignRawPayloadsIntent"
},
"createReadOnlySessionIntent": {
"$ref": "#/definitions/CreateReadOnlySessionIntent"
}
},
"required": ["createOrganizationIntent"]
}
},
"InvitationParams": {
"type": "object",
Expand Down Expand Up @@ -5300,6 +5404,9 @@
},
"signRawPayloadsResult": {
"$ref": "#/definitions/SignRawPayloadsResult"
},
"createReadOnlySessionResult": {
"$ref": "#/definitions/CreateReadOnlySessionResult"
}
}
},
Expand Down Expand Up @@ -5705,6 +5812,25 @@
}
}
},
"Status": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/Any"
}
}
}
},
"TagType": {
"type": "string",
"enum": ["TAG_TYPE_USER", "TAG_TYPE_PRIVATE_KEY"]
Expand Down
Loading