Skip to content

Commit

Permalink
Merge pull-request #57
Browse files Browse the repository at this point in the history
  • Loading branch information
emostov committed Nov 16, 2023
2 parents f937905 + 9619c97 commit 01304c3
Showing 1 changed file with 132 additions and 64 deletions.
196 changes: 132 additions & 64 deletions api/public_api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,32 @@
"tags": ["Policies"]
}
},
"/public/v1/query/list_private_key_tags": {
"post": {
"summary": "List Private Key Tags",
"description": "List all Private Key Tags within an Organization",
"operationId": "ListPrivateKeyTags",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/ListPrivateKeyTagsResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ListPrivateKeyTagsRequest"
}
}
],
"tags": ["Private Key Tags"]
}
},
"/public/v1/query/list_private_keys": {
"post": {
"summary": "List Private Keys",
Expand All @@ -325,6 +351,32 @@
"tags": ["Private Keys"]
}
},
"/public/v1/query/list_user_tags": {
"post": {
"summary": "List User Tags",
"description": "List all User Tags within an Organization",
"operationId": "ListUserTags",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/ListUserTagsResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ListUserTagsRequest"
}
}
],
"tags": ["User Tags"]
}
},
"/public/v1/query/list_users": {
"post": {
"summary": "List Users",
Expand Down Expand Up @@ -1079,32 +1131,6 @@
"tags": ["Signers"]
}
},
"/public/v1/submit/update_allowed_origins": {
"post": {
"summary": "Update Allowed Origins",
"description": "Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations.",
"operationId": "UpdateAllowedOrigins",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/ActivityResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/UpdateAllowedOriginsRequest"
}
}
],
"tags": ["Features"]
}
},
"/public/v1/submit/update_policy": {
"post": {
"summary": "Update Policy",
Expand Down Expand Up @@ -3084,7 +3110,10 @@
},
"FeatureName": {
"type": "string",
"enum": ["FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"]
"enum": [
"FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
"FEATURE_NAME_WEBAUTHN_ORIGINS"
]
},
"GetActivitiesRequest": {
"type": "object",
Expand Down Expand Up @@ -3706,6 +3735,54 @@
"senderUserId"
]
},
"ListPrivateKeyTagsRequest": {
"type": "object",
"properties": {
"organizationId": {
"type": "string",
"description": "Unique identifier for a given Organization."
}
},
"required": ["organizationId"]
},
"ListPrivateKeyTagsResponse": {
"type": "object",
"properties": {
"privateKeyTags": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1.Tag"
},
"description": "A list of Private Key Tags"
}
},
"required": ["privateKeyTags"]
},
"ListUserTagsRequest": {
"type": "object",
"properties": {
"organizationId": {
"type": "string",
"description": "Unique identifier for a given Organization."
}
},
"required": ["organizationId"]
},
"ListUserTagsResponse": {
"type": "object",
"properties": {
"userTags": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1.Tag"
},
"description": "A list of User Tags"
}
},
"required": ["userTags"]
},
"MnemonicLanguage": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -4540,6 +4617,10 @@
}
}
},
"TagType": {
"type": "string",
"enum": ["TAG_TYPE_USER", "TAG_TYPE_PRIVATE_KEY"]
},
"TransactionType": {
"type": "string",
"enum": ["TRANSACTION_TYPE_ETHEREUM"]
Expand All @@ -4557,27 +4638,6 @@
},
"required": ["allowedOrigins"]
},
"UpdateAllowedOriginsRequest": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS"]
},
"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/UpdateAllowedOriginsIntent"
}
},
"required": ["type", "timestampMs", "organizationId", "parameters"]
},
"UpdateAllowedOriginsResult": {
"type": "object"
},
Expand Down Expand Up @@ -4873,10 +4933,6 @@
"type": "string",
"description": "The user's email address."
},
"accessType": {
"$ref": "#/definitions/AccessType",
"description": "The User's permissible access method(s)."
},
"authenticators": {
"type": "array",
"items": {
Expand Down Expand Up @@ -4910,7 +4966,6 @@
"required": [
"userId",
"userName",
"accessType",
"authenticators",
"apiKeys",
"userTags",
Expand Down Expand Up @@ -4976,10 +5031,6 @@
"type": "string",
"description": "The user's email address."
},
"accessType": {
"$ref": "#/definitions/AccessType",
"description": "The User's permissible access method(s)."
},
"apiKeys": {
"type": "array",
"items": {
Expand All @@ -5004,13 +5055,7 @@
"description": "A list of User Tag IDs."
}
},
"required": [
"userName",
"accessType",
"apiKeys",
"authenticators",
"userTags"
]
"required": ["userName", "apiKeys", "authenticators", "userTags"]
},
"Vote": {
"type": "object",
Expand Down Expand Up @@ -5250,6 +5295,29 @@
}
},
"required": ["seconds", "nanos"]
},
"v1.Tag": {
"type": "object",
"properties": {
"tagId": {
"type": "string",
"description": "Unique identifier for a given Tag."
},
"tagName": {
"type": "string",
"description": "Human-readable name for a Tag."
},
"tagType": {
"$ref": "#/definitions/TagType"
},
"createdAt": {
"$ref": "#/definitions/external.data.v1.Timestamp"
},
"updatedAt": {
"$ref": "#/definitions/external.data.v1.Timestamp"
}
},
"required": ["tagId", "tagName", "tagType", "createdAt", "updatedAt"]
}
},
"securityDefinitions": {
Expand Down

0 comments on commit 01304c3

Please sign in to comment.