{
	"openapi": "3.0.0",
	"components": {
		"examples": {},
		"headers": {},
		"parameters": {},
		"requestBodies": {},
		"responses": {},
		"schemas": {
			"IMeResponse": {
				"properties": {
					"OrgId": {
						"type": "string",
						"description": "The organisation id",
						"example": "1234567890"
					},
					"UserId": {
						"type": "string",
						"description": "The user id",
						"example": "1234567890"
					},
					"Tags": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "The tags of the user",
						"example": [
							"Planner",
							"Admin"
						]
					}
				},
				"required": [
					"OrgId",
					"UserId",
					"Tags"
				],
				"type": "object",
				"additionalProperties": false
			},
			"DeliveryMediumType": {
				"type": "string",
				"enum": [
					"EMAIL",
					"SMS"
				]
			},
			"CodeDeliveryDetailsType": {
				"description": "<p>The delivery details for an email or SMS message that Amazon Cognito sent for authentication or\n            verification.</p>",
				"properties": {
					"Destination": {
						"type": "string",
						"description": "<p>The email address or phone number destination where Amazon Cognito sent the code.</p>"
					},
					"DeliveryMedium": {
						"$ref": "#/components/schemas/DeliveryMediumType",
						"description": "<p>The method that Amazon Cognito used to send the code.</p>"
					},
					"AttributeName": {
						"type": "string",
						"description": "<p>The name of the attribute that Amazon Cognito verifies with the code.</p>"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ResponseMetadata": {
				"properties": {
					"httpStatusCode": {
						"type": "number",
						"format": "double",
						"description": "The status code of the last HTTP response received for this operation."
					},
					"requestId": {
						"type": "string",
						"description": "A unique identifier for the last request sent for this operation. Often\nrequested by AWS service teams to aid in debugging."
					},
					"extendedRequestId": {
						"type": "string",
						"description": "A secondary identifier for the last request sent. Used for debugging."
					},
					"cfId": {
						"type": "string",
						"description": "A tertiary identifier for the last request sent. Used for debugging."
					},
					"attempts": {
						"type": "number",
						"format": "double",
						"description": "The number of times this operation was attempted."
					},
					"totalRetryDelay": {
						"type": "number",
						"format": "double",
						"description": "The total amount of time (in milliseconds) that was spent waiting between\nretry attempts."
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"GetUserAttributeVerificationCodeCommandOutput": {
				"properties": {
					"CodeDeliveryDetails": {
						"$ref": "#/components/schemas/CodeDeliveryDetailsType",
						"description": "<p>Information about the delivery destination of the user attribute verification\n            code.</p>"
					},
					"$metadata": {
						"$ref": "#/components/schemas/ResponseMetadata",
						"description": "Metadata pertaining to this request."
					}
				},
				"required": [
					"$metadata"
				],
				"type": "object",
				"additionalProperties": false
			},
			"VerifyUserAttributeCommandOutput": {
				"properties": {
					"$metadata": {
						"$ref": "#/components/schemas/ResponseMetadata",
						"description": "Metadata pertaining to this request."
					}
				},
				"required": [
					"$metadata"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Pick_IUser.Exclude_keyofIUser.Tags__": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The user ID",
						"example": "666666666666666666666666"
					},
					"Email": {
						"type": "string",
						"description": "The user email",
						"example": "user@example.com"
					},
					"FirstName": {
						"type": "string",
						"description": "The user first name",
						"example": "John"
					},
					"LastName": {
						"type": "string",
						"description": "The user last name",
						"example": "Doe"
					},
					"Active": {
						"type": "boolean",
						"description": "The user active status",
						"example": true
					},
					"CustomerID": {
						"type": "string",
						"description": "The user customer ID",
						"example": "1234567890"
					},
					"TrialActivated": {
						"type": "boolean",
						"description": "The user trial activated status",
						"example": true
					},
					"UserId": {
						"type": "string",
						"description": "The user Cognito ID",
						"example": "1234567890"
					}
				},
				"required": [
					"_id",
					"Email",
					"FirstName",
					"LastName",
					"Active",
					"UserId"
				],
				"type": "object",
				"description": "From T, pick a set of properties whose keys are in the union K"
			},
			"Omit_IUser.Tags_": {
				"$ref": "#/components/schemas/Pick_IUser.Exclude_keyofIUser.Tags__",
				"description": "Construct a type with the properties of T except for those in type K."
			},
			"Record_string.number_": {
				"properties": {},
				"additionalProperties": {
					"type": "number",
					"format": "double"
				},
				"type": "object",
				"description": "Construct a type with a set of properties K of type T"
			},
			"UserResponse": {
				"allOf": [
					{
						"$ref": "#/components/schemas/Omit_IUser.Tags_"
					},
					{
						"properties": {
							"FilteredScopeValues": {
								"$ref": "#/components/schemas/Record_string.number_",
								"description": "The scope values for the filtered scope comparisons (only present when scopeComparisons filter is applied)\nKeys are in format \"{resourceName}.{scopeKey}\"",
								"example": {
									"CAD.maxProjects": 10
								}
							},
							"HasFilteredResource": {
								"type": "boolean",
								"description": "Indicates if the user has the filtered resource (only present when resources filter is applied)",
								"example": true
							},
							"Tags": {
								"items": {
									"type": "string"
								},
								"type": "array",
								"description": "The tags of the user",
								"example": [
									"Planner",
									"Admin"
								]
							},
							"OrgId": {
								"type": "string",
								"description": "The organisation id of the user",
								"example": "1234567890"
							},
							"UnpaidExportTransactionCount": {
								"type": "number",
								"format": "double",
								"description": "The unpaid export transaction count of the user",
								"example": 1
							}
						},
						"type": "object"
					}
				]
			},
			"ISearchUsersResponse": {
				"properties": {
					"users": {
						"items": {
							"$ref": "#/components/schemas/UserResponse"
						},
						"type": "array",
						"description": "The users of the organisation",
						"example": [
							{
								"Email": "user@example.com",
								"FirstName": "John",
								"LastName": "Doe",
								"UserId": "1234567890",
								"Active": true,
								"Tags": [
									"Planner",
									"Admin"
								]
							}
						]
					},
					"pageNumber": {
						"type": "number",
						"format": "double",
						"description": "The page number",
						"example": 1
					},
					"pageSize": {
						"type": "number",
						"format": "double",
						"description": "The page size",
						"example": 10
					},
					"totalCount": {
						"type": "number",
						"format": "double",
						"description": "The total count",
						"example": 100
					},
					"totalPages": {
						"type": "number",
						"format": "double",
						"description": "The total pages",
						"example": 10
					}
				},
				"required": [
					"users",
					"pageNumber",
					"pageSize",
					"totalCount",
					"totalPages"
				],
				"type": "object",
				"additionalProperties": false
			},
			"SearchParams": {
				"properties": {
					"searchText": {
						"type": "string",
						"description": "The search text",
						"example": "searchText"
					},
					"filterBy": {
						"properties": {},
						"additionalProperties": {},
						"type": "object",
						"description": "The filter by object",
						"example": {
							"key": "value"
						}
					},
					"pageNumber": {
						"type": "number",
						"format": "double",
						"description": "The page number",
						"example": 1
					},
					"pageSize": {
						"type": "number",
						"format": "double",
						"description": "The page size",
						"example": 10
					}
				},
				"required": [
					"pageNumber",
					"pageSize"
				],
				"type": "object",
				"additionalProperties": false
			},
			"IUser": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The user ID",
						"example": "666666666666666666666666"
					},
					"Email": {
						"type": "string",
						"description": "The user email",
						"example": "user@example.com"
					},
					"FirstName": {
						"type": "string",
						"description": "The user first name",
						"example": "John"
					},
					"LastName": {
						"type": "string",
						"description": "The user last name",
						"example": "Doe"
					},
					"Active": {
						"type": "boolean",
						"description": "The user active status",
						"example": true
					},
					"Tags": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "The user tags",
						"example": [
							"Tester",
							"Admin"
						]
					},
					"CustomerID": {
						"type": "string",
						"description": "The user customer ID",
						"example": "1234567890"
					},
					"TrialActivated": {
						"type": "boolean",
						"description": "The user trial activated status",
						"example": true
					},
					"UserId": {
						"type": "string",
						"description": "The user Cognito ID",
						"example": "1234567890"
					}
				},
				"required": [
					"_id",
					"Email",
					"FirstName",
					"LastName",
					"Active",
					"Tags",
					"UserId"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ScopeType": {
				"enum": [
					"flag",
					"boolean",
					"number",
					"string",
					"date",
					"enum"
				],
				"type": "string"
			},
			"IScope": {
				"properties": {
					"_id": {
						"type": "string"
					},
					"key": {
						"type": "string"
					},
					"type": {
						"$ref": "#/components/schemas/ScopeType",
						"description": "The type of the scope. Must be one of: 'flag', 'boolean', 'number', 'string', 'date', 'enum'",
						"example": "flag"
					},
					"value": {
						"anyOf": [
							{
								"type": "string"
							},
							{
								"type": "number",
								"format": "double"
							},
							{
								"type": "boolean"
							},
							{
								"type": "string",
								"format": "date-time"
							}
						]
					},
					"allowedValues": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "Allowed values for enum type scopes. Required when type is \"enum\".",
						"example": [
							"option1",
							"option2",
							"option3"
						]
					}
				},
				"required": [
					"_id",
					"key",
					"value"
				],
				"type": "object",
				"additionalProperties": false
			},
			"IUserResource": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The resource ID",
						"example": "666666666666666666666666"
					},
					"ResourceName": {
						"type": "string",
						"description": "The resource name",
						"example": "Resource"
					},
					"Scopes": {
						"items": {
							"$ref": "#/components/schemas/IScope"
						},
						"type": "array",
						"description": "The scopes"
					},
					"Active": {
						"type": "boolean",
						"description": "The resource active status",
						"example": true
					}
				},
				"required": [
					"_id",
					"ResourceName",
					"Scopes",
					"Active"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ITransaction": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The transaction ID",
						"example": "666666666666666666666666"
					},
					"UserId": {
						"type": "string",
						"description": "The user ID",
						"example": "1234567890"
					},
					"EventName": {
						"type": "string",
						"description": "The event name",
						"example": "Event"
					},
					"ActionName": {
						"type": "string",
						"description": "The action name",
						"example": "Action"
					},
					"TransactionDate": {
						"type": "string",
						"format": "date-time",
						"description": "The transaction date",
						"example": "2021-01-01T00:00:00.000Z"
					},
					"ExtraInfo": {
						"description": "The extra info",
						"example": "Extra info"
					}
				},
				"required": [
					"_id",
					"UserId",
					"EventName",
					"TransactionDate"
				],
				"type": "object",
				"additionalProperties": false
			},
			"IOrganisation": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The organisation ID",
						"example": "666666666666666666666666"
					},
					"Active": {
						"type": "boolean",
						"description": "The organisation active status",
						"example": true
					},
					"Users": {
						"items": {
							"$ref": "#/components/schemas/IUser"
						},
						"type": "array",
						"description": "The users"
					},
					"Resources": {
						"items": {
							"$ref": "#/components/schemas/IUserResource"
						},
						"type": "array",
						"description": "The resources"
					},
					"Transactions": {
						"items": {
							"$ref": "#/components/schemas/ITransaction"
						},
						"type": "array",
						"description": "The transactions"
					}
				},
				"required": [
					"_id",
					"Active",
					"Users",
					"Resources",
					"Transactions"
				],
				"type": "object",
				"additionalProperties": false
			},
			"UserCreateParams": {
				"properties": {
					"Email": {
						"type": "string",
						"description": "The email of the user",
						"example": "user@example.com"
					},
					"FirstName": {
						"type": "string",
						"description": "The first name of the user",
						"example": "John"
					},
					"LastName": {
						"type": "string",
						"description": "The last name of the user",
						"example": "Doe"
					},
					"UserId": {
						"type": "string",
						"description": "The cognito user id",
						"example": "1234567890"
					}
				},
				"required": [
					"Email",
					"FirstName",
					"LastName",
					"UserId"
				],
				"type": "object",
				"additionalProperties": false
			},
			"IUserDetailsResponse": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The organisation id",
						"example": "1234567890"
					},
					"User": {
						"$ref": "#/components/schemas/UserResponse",
						"description": "The user details",
						"example": {
							"Email": "user@example.com",
							"FirstName": "John",
							"LastName": "Doe",
							"UserId": "1234567890",
							"Active": true,
							"Tags": [
								"Planner",
								"Admin"
							]
						}
					},
					"Transaction": {
						"properties": {
							"CancelledTransactionCount": {
								"type": "number",
								"format": "double",
								"description": "The cancelled transaction count",
								"example": 0
							},
							"UnPaidTransactionCount": {
								"type": "number",
								"format": "double",
								"description": "The unpaid transaction count",
								"example": 50
							},
							"PaidTransactionCount": {
								"type": "number",
								"format": "double",
								"description": "The paid transaction count",
								"example": 50
							},
							"TransactionCount": {
								"type": "number",
								"format": "double",
								"description": "The transaction count",
								"example": 100
							}
						},
						"required": [
							"CancelledTransactionCount",
							"UnPaidTransactionCount",
							"PaidTransactionCount",
							"TransactionCount"
						],
						"type": "object",
						"description": "The transaction details",
						"example": {
							"TransactionCount": 100,
							"PaidTransactionCount": 50,
							"UnPaidTransactionCount": 50,
							"CancelledTransactionCount": 0
						}
					},
					"Balance": {
						"properties": {},
						"additionalProperties": {},
						"type": "object",
						"description": "The balance of the user",
						"example": {
							"USD": 100,
							"EUR": 50
						}
					}
				},
				"required": [
					"_id",
					"User",
					"Transaction",
					"Balance"
				],
				"type": "object",
				"additionalProperties": false
			},
			"UserUpdateParams": {
				"properties": {
					"tags": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "The tags of the user",
						"example": [
							"Planner",
							"Admin"
						]
					},
					"isActive": {
						"type": "boolean",
						"description": "The active status of the user",
						"example": true
					},
					"trialActivated": {
						"type": "boolean",
						"description": "The trial activated status of the user",
						"example": true
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"IAction": {
				"properties": {
					"_id": {
						"type": "string"
					},
					"name": {
						"type": "string",
						"description": "The name of the action"
					},
					"active": {
						"type": "boolean",
						"description": "Whether the action is active"
					},
					"value": {
						"type": "number",
						"format": "double",
						"description": "The credit value of the action"
					},
					"minVersion": {
						"type": "string",
						"description": "The minimum version of the action"
					}
				},
				"required": [
					"_id",
					"name",
					"active",
					"value"
				],
				"type": "object",
				"additionalProperties": false
			},
			"IDownloadLink": {
				"properties": {
					"slug": {
						"type": "string",
						"description": "The slug of the download link"
					},
					"operatingSystem": {
						"type": "string",
						"description": "The operating system of the download link"
					},
					"distro": {
						"type": "string",
						"description": "The distro of the download link"
					},
					"architecture": {
						"type": "string",
						"description": "The architecture of the download link"
					},
					"fileType": {
						"type": "string",
						"description": "The file type of the download link"
					},
					"version": {
						"type": "string",
						"description": "The version of the download link"
					},
					"environment": {
						"type": "string",
						"description": "The environment of the download link"
					},
					"url": {
						"type": "string",
						"description": "The url of the download link"
					},
					"isDefault": {
						"type": "boolean",
						"description": "Whether the download link is the default link"
					}
				},
				"required": [
					"slug",
					"operatingSystem",
					"url"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Pick_IResource.Exclude_keyofIResource.Scopes__": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The resource ID",
						"example": "666666666666666666666666"
					},
					"Active": {
						"type": "boolean",
						"description": "Whether the resource is active (enabled)"
					},
					"ResourceName": {
						"type": "string",
						"description": "The name of the resource"
					},
					"DisplayName": {
						"type": "string",
						"description": "The display name of the resource"
					},
					"Actions": {
						"items": {
							"$ref": "#/components/schemas/IAction"
						},
						"type": "array",
						"description": "The actions of the resource"
					},
					"AccessDefault": {
						"type": "boolean",
						"description": "Whether the user has access to the resource by default"
					},
					"DownloadLink": {
						"type": "string",
						"deprecated": true
					},
					"DownloadLinks": {
						"items": {
							"$ref": "#/components/schemas/IDownloadLink"
						},
						"type": "array",
						"description": "The download links of the resource"
					},
					"IconUrl": {
						"type": "string",
						"description": "The icon url of the resource"
					}
				},
				"required": [
					"_id",
					"Active",
					"ResourceName",
					"Actions",
					"AccessDefault"
				],
				"type": "object",
				"description": "From T, pick a set of properties whose keys are in the union K"
			},
			"Omit_IResource.Scopes_": {
				"$ref": "#/components/schemas/Pick_IResource.Exclude_keyofIResource.Scopes__",
				"description": "Construct a type with the properties of T except for those in type K."
			},
			"IUserResourceAdmin": {
				"allOf": [
					{
						"$ref": "#/components/schemas/Omit_IResource.Scopes_"
					},
					{
						"properties": {
							"Scopes": {
								"items": {
									"$ref": "#/components/schemas/IScope"
								},
								"type": "array",
								"description": "The scopes of the user resource (raw array format for admin endpoints)"
							}
						},
						"required": [
							"Scopes"
						],
						"type": "object"
					}
				]
			},
			"IUserResourceDetailsResponseAdmin": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The organisation id",
						"example": "666666666666666666666666"
					},
					"ResourceName": {
						"type": "string",
						"description": "The resource name",
						"example": "ResourceName"
					},
					"Scopes": {
						"items": {
							"$ref": "#/components/schemas/IScope"
						},
						"type": "array",
						"description": "The scopes of the user resource (raw array format for admin endpoints)"
					},
					"Active": {
						"type": "boolean",
						"description": "The active status of the user resource",
						"example": true
					}
				},
				"required": [
					"_id",
					"ResourceName",
					"Scopes",
					"Active"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ScopeValue": {
				"anyOf": [
					{
						"type": "string"
					},
					{
						"type": "number",
						"format": "double"
					},
					{
						"type": "boolean"
					},
					{
						"type": "string",
						"format": "date-time"
					}
				]
			},
			"UserScopes": {
				"properties": {},
				"type": "object",
				"additionalProperties": {
					"$ref": "#/components/schemas/ScopeValue"
				}
			},
			"IUserTransactionsResponse": {
				"properties": {
					"transactions": {
						"items": {
							"$ref": "#/components/schemas/ITransaction"
						},
						"type": "array",
						"description": "The transactions"
					},
					"pageNumber": {
						"type": "number",
						"format": "double",
						"description": "The page number"
					},
					"pageSize": {
						"type": "number",
						"format": "double",
						"description": "The page size"
					},
					"totalCount": {
						"type": "number",
						"format": "double",
						"description": "The total count"
					},
					"totalPages": {
						"type": "number",
						"format": "double",
						"description": "The total pages"
					}
				},
				"required": [
					"transactions",
					"pageNumber",
					"pageSize",
					"totalCount",
					"totalPages"
				],
				"type": "object",
				"additionalProperties": false
			},
			"TRANSACTION_STATUS": {
				"enum": [
					"Paid",
					"Unpaid",
					"Cancelled"
				],
				"type": "string"
			},
			"OperationResult": {
				"properties": {
					"error": {
						"type": "string"
					},
					"success": {
						"type": "boolean"
					}
				},
				"required": [
					"success"
				],
				"type": "object"
			},
			"BulkUserResult": {
				"properties": {
					"userId": {
						"type": "string",
						"description": "The user ID"
					},
					"success": {
						"type": "boolean",
						"description": "Whether all operations succeeded for this user"
					},
					"error": {
						"type": "string",
						"description": "Error message if any operation failed"
					},
					"operations": {
						"properties": {
							"updateScopes": {
								"$ref": "#/components/schemas/OperationResult"
							},
							"removeScopes": {
								"$ref": "#/components/schemas/OperationResult"
							},
							"addScopes": {
								"$ref": "#/components/schemas/OperationResult"
							},
							"resourceStatus": {
								"$ref": "#/components/schemas/OperationResult"
							},
							"resources": {
								"$ref": "#/components/schemas/OperationResult"
							},
							"tags": {
								"$ref": "#/components/schemas/OperationResult"
							},
							"accountStatus": {
								"$ref": "#/components/schemas/OperationResult"
							}
						},
						"type": "object",
						"description": "Per-operation results"
					}
				},
				"required": [
					"userId",
					"success",
					"operations"
				],
				"type": "object",
				"additionalProperties": false
			},
			"BulkUserResponse": {
				"properties": {
					"totalUsers": {
						"type": "number",
						"format": "double",
						"description": "Total number of users in the request"
					},
					"successfulUsers": {
						"type": "number",
						"format": "double",
						"description": "Number of users with all operations successful"
					},
					"failedUsers": {
						"type": "number",
						"format": "double",
						"description": "Number of users with at least one failed operation"
					},
					"results": {
						"items": {
							"$ref": "#/components/schemas/BulkUserResult"
						},
						"type": "array",
						"description": "Per-user results"
					},
					"operationId": {
						"type": "string",
						"description": "Unique identifier for this bulk operation (for audit log lookup)"
					}
				},
				"required": [
					"totalUsers",
					"successfulUsers",
					"failedUsers",
					"results"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ScopeAddRemove": {
				"properties": {
					"resourceName": {
						"type": "string",
						"description": "The resource name"
					},
					"scopeNames": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "The scope names to add or remove"
					}
				},
				"required": [
					"resourceName",
					"scopeNames"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ScopeUpdate": {
				"properties": {
					"resourceName": {
						"type": "string",
						"description": "The resource name to update scopes for"
					},
					"scopes": {
						"properties": {},
						"additionalProperties": {},
						"type": "object",
						"description": "The scopes to upsert (key-value pairs). Use index signature to allow TSOA validation to accept arbitrary keys."
					}
				},
				"required": [
					"resourceName",
					"scopes"
				],
				"type": "object",
				"additionalProperties": false
			},
			"BulkOperations": {
				"properties": {
					"enableAccounts": {
						"type": "boolean",
						"description": "Enable accounts for selected users"
					},
					"disableAccounts": {
						"type": "boolean",
						"description": "Disable accounts for selected users"
					},
					"addTags": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "Tags to add to selected users"
					},
					"removeTags": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "Tags to remove from selected users"
					},
					"addResources": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "Resources to add to selected users"
					},
					"removeResources": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "Resources to remove from selected users"
					},
					"enableResources": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "Enable resources for selected users (set Active=true)"
					},
					"disableResources": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "Disable resources for selected users (set Active=false)"
					},
					"addScopes": {
						"items": {
							"$ref": "#/components/schemas/ScopeAddRemove"
						},
						"type": "array",
						"description": "Add scopes with default values from template (error if scope already exists)"
					},
					"removeScopes": {
						"items": {
							"$ref": "#/components/schemas/ScopeAddRemove"
						},
						"type": "array",
						"description": "Remove specific scopes by name"
					},
					"updateScopes": {
						"items": {
							"$ref": "#/components/schemas/ScopeUpdate"
						},
						"type": "array",
						"description": "Upsert scopes (update existing, add if missing) - does NOT replace entire array"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"BulkUserOperation": {
				"properties": {
					"userIds": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "Array of user IDs (Cognito User IDs) to perform bulk operations on",
						"example": [
							"4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a",
							"ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
						]
					},
					"operations": {
						"$ref": "#/components/schemas/BulkOperations",
						"description": "The operations to perform on the selected users"
					}
				},
				"required": [
					"userIds",
					"operations"
				],
				"type": "object",
				"additionalProperties": false
			},
			"TestResponse": {
				"properties": {
					"message": {
						"type": "string"
					},
					"receivedAt": {
						"type": "string"
					}
				},
				"required": [
					"message",
					"receivedAt"
				],
				"type": "object",
				"additionalProperties": false
			},
			"TestRequest": {
				"properties": {
					"message": {
						"type": "string"
					}
				},
				"required": [
					"message"
				],
				"type": "object",
				"additionalProperties": false
			},
			"mongoose.ApplyVersionKey_mongoose.Default__v_mongoose.ApplyFlattenTransforms_mongoose.ApplyVirtuals_mongoose.Require_id_DocType_.TVirtuals.O_.O_.TSchemaOptions_.O.TSchemaOptions_": {
				"$ref": "#/components/schemas/mongoose.ApplyVersionKey_mongoose.Default__v_mongoose.ApplyFlattenTransforms_mongoose.ApplyVirtuals_mongoose.Require_id_DocType_.TVirtuals.O_.O_.TSchemaOptions_.O.TSchemaOptions_"
			},
			"mongoose.ToObjectReturnType_DocType.TVirtuals.O.TSchemaOptions_": {
				"$ref": "#/components/schemas/mongoose.ApplyVersionKey_mongoose.Default__v_mongoose.ApplyFlattenTransforms_mongoose.ApplyVirtuals_mongoose.Require_id_DocType_.TVirtuals.O_.O_.TSchemaOptions_.O.TSchemaOptions_",
				"description": "Computes the return type of toObject/toJSON based on the provided options.\nUses a single-pass transform for flatten operations to correctly handle all combinations."
			},
			"mongoose.Document_unknown.__.ITag.__.___": {
				"$ref": "#/components/schemas/mongoose.ToObjectReturnType_DocType.TVirtuals.O.TSchemaOptions_",
				"description": "Generic types for Document:\n*  T - the type of _id\n*  TQueryHelpers - Object with any helpers that should be mixed into the Query type\n*  DocType - the type of the actual Document created"
			},
			"ITag": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The tag ID",
						"example": "666666666666666666666666"
					},
					"TagName": {
						"type": "string",
						"description": "The tag name",
						"example": "Planner"
					},
					"Description": {
						"type": "string",
						"description": "The tag description",
						"example": "This is a planner tag"
					},
					"Color": {
						"type": "string",
						"description": "The tag color",
						"example": "#000000"
					}
				},
				"required": [
					"_id",
					"TagName",
					"Color"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Required___id-string__": {
				"properties": {},
				"type": "object",
				"description": "Make all properties in T required"
			},
			"Pick_ITag.Exclude_keyofITag._id-or-TagName__": {
				"properties": {
					"Description": {
						"type": "string",
						"description": "The tag description",
						"example": "This is a planner tag"
					},
					"Color": {
						"type": "string",
						"description": "The tag color",
						"example": "#000000"
					}
				},
				"required": [
					"Color"
				],
				"type": "object",
				"description": "From T, pick a set of properties whose keys are in the union K"
			},
			"Omit_ITag._id-or-TagName_": {
				"$ref": "#/components/schemas/Pick_ITag.Exclude_keyofITag._id-or-TagName__",
				"description": "Construct a type with the properties of T except for those in type K."
			},
			"TagParams": {
				"$ref": "#/components/schemas/Omit_ITag._id-or-TagName_"
			},
			"DeleteResult": {
				"properties": {
					"acknowledged": {
						"type": "boolean",
						"description": "Indicates whether this write result was acknowledged. If not, then all other members of this result will be undefined."
					},
					"deletedCount": {
						"type": "number",
						"format": "double",
						"description": "The number of documents that were deleted"
					}
				},
				"required": [
					"acknowledged",
					"deletedCount"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ErrorResponse": {
				"properties": {
					"errorCode": {
						"type": "string",
						"description": "The error code identifier (e.g., \"BAD_REQUEST\", \"NOT_FOUND\")."
					},
					"internalMessage": {
						"type": "string",
						"description": "The internal message to handle within internal systems (This is the original error message)."
					},
					"message": {
						"type": "string",
						"description": "The message to display to the user (This is a user friendly message without HTML tags)."
					},
					"htmlMessage": {
						"type": "string",
						"description": "The HTML message to display to the user (This is the HTML version of the user friendly message)."
					}
				},
				"required": [
					"internalMessage",
					"message",
					"htmlMessage"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Record_string.any_": {
				"properties": {},
				"additionalProperties": {},
				"type": "object",
				"description": "Construct a type with a set of properties K of type T"
			},
			"Partial_ExportActionPayload_": {
				"anyOf": [
					{
						"properties": {
							"plan": {
								"properties": {
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The plan object",
								"example": {
									"uuid": "1234567890",
									"name": "Plan Name"
								}
							},
							"guide": {
								"properties": {
									"export_date": {
										"type": "number",
										"format": "double"
									},
									"fixation_pins": {
										"items": {
											"type": "string"
										},
										"type": "array"
									},
									"implants": {
										"items": {
											"type": "string"
										},
										"type": "array"
									},
									"uuid": {
										"type": "string"
									}
								},
								"additionalProperties": {},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The guide object",
								"example": {
									"uuid": "1234567890",
									"implants": [
										"1234567890",
										"1234567890"
									],
									"fixation_pins": [
										"1234567890",
										"1234567890"
									]
								}
							},
							"application": {
								"properties": {
									"os": {
										"type": "string"
									},
									"commit": {
										"type": "string"
									},
									"version": {
										"type": "string"
									},
									"name": {
										"type": "string"
									}
								},
								"additionalProperties": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										},
										{
											"type": "boolean"
										}
									]
								},
								"type": "object",
								"description": "The application object",
								"example": {
									"name": "CAD",
									"version": "1.0.0"
								}
							},
							"patient": {
								"properties": {
									"dpsx_file_name": {
										"type": "string"
									},
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"type": "object",
								"description": "The patient object",
								"example": {
									"uuid": "1234567890",
									"name": "Patient Name",
									"dpsx_file_name": "Patient File Name"
								}
							}
						},
						"additionalProperties": {},
						"type": "object"
					},
					{
						"properties": {
							"plan": {
								"properties": {
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The plan object",
								"example": {
									"uuid": "1234567890",
									"name": "Plan Name"
								}
							},
							"surface": {
								"properties": {
									"export_date": {
										"type": "number",
										"format": "double"
									},
									"uuid": {
										"type": "string"
									}
								},
								"additionalProperties": {},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The surface object",
								"example": {
									"uuid": "1234567890"
								}
							},
							"application": {
								"properties": {
									"os": {
										"type": "string"
									},
									"commit": {
										"type": "string"
									},
									"version": {
										"type": "string"
									},
									"name": {
										"type": "string"
									}
								},
								"additionalProperties": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										},
										{
											"type": "boolean"
										}
									]
								},
								"type": "object",
								"description": "The application object",
								"example": {
									"name": "CAD",
									"version": "1.0.0"
								}
							},
							"patient": {
								"properties": {
									"dpsx_file_name": {
										"type": "string"
									},
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"type": "object",
								"description": "The patient object",
								"example": {
									"uuid": "1234567890",
									"name": "Patient Name",
									"dpsx_file_name": "Patient File Name"
								}
							}
						},
						"additionalProperties": {},
						"type": "object"
					},
					{
						"properties": {
							"plan": {
								"properties": {
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The plan object",
								"example": {
									"uuid": "1234567890",
									"name": "Plan Name"
								}
							},
							"tooth-restoration": {
								"properties": {
									"tooth_number": {
										"anyOf": [
											{
												"type": "string"
											},
											{
												"type": "number",
												"format": "double"
											}
										]
									},
									"export_date": {
										"type": "number",
										"format": "double"
									},
									"kind": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"additionalProperties": {},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The tooth_restoration object",
								"example": {
									"uuid": "1234567890",
									"kind": "kind",
									"export_date": "2021-01-01",
									"tooth_number": "1"
								}
							},
							"tooth_restoration": {
								"properties": {
									"tooth_number": {
										"anyOf": [
											{
												"type": "string"
											},
											{
												"type": "number",
												"format": "double"
											}
										]
									},
									"export_date": {
										"type": "number",
										"format": "double"
									},
									"kind": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"additionalProperties": {},
								"required": [
									"uuid"
								],
								"type": "object"
							},
							"application": {
								"properties": {
									"os": {
										"type": "string"
									},
									"commit": {
										"type": "string"
									},
									"version": {
										"type": "string"
									},
									"name": {
										"type": "string"
									}
								},
								"additionalProperties": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										},
										{
											"type": "boolean"
										}
									]
								},
								"type": "object",
								"description": "The application object",
								"example": {
									"name": "CAD",
									"version": "1.0.0"
								}
							},
							"patient": {
								"properties": {
									"dpsx_file_name": {
										"type": "string"
									},
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"type": "object",
								"description": "The patient object",
								"example": {
									"uuid": "1234567890",
									"name": "Patient Name",
									"dpsx_file_name": "Patient File Name"
								}
							}
						},
						"additionalProperties": {},
						"type": "object"
					},
					{
						"properties": {
							"plan": {
								"properties": {
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The plan object",
								"example": {
									"uuid": "1234567890",
									"name": "Plan Name"
								}
							},
							"crown_over_implant": {
								"properties": {
									"tooth_number": {
										"anyOf": [
											{
												"type": "string"
											},
											{
												"type": "number",
												"format": "double"
											}
										]
									},
									"export_date": {
										"type": "number",
										"format": "double"
									},
									"uuid": {
										"type": "string"
									}
								},
								"additionalProperties": {},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The crown_over_implant object",
								"example": {
									"uuid": "1234567890",
									"export_date": 1736589680,
									"tooth_number": 3
								}
							},
							"application": {
								"properties": {
									"os": {
										"type": "string"
									},
									"commit": {
										"type": "string"
									},
									"version": {
										"type": "string"
									},
									"name": {
										"type": "string"
									}
								},
								"additionalProperties": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										},
										{
											"type": "boolean"
										}
									]
								},
								"type": "object",
								"description": "The application object",
								"example": {
									"name": "CAD",
									"version": "1.0.0"
								}
							},
							"patient": {
								"properties": {
									"dpsx_file_name": {
										"type": "string"
									},
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"type": "object",
								"description": "The patient object",
								"example": {
									"uuid": "1234567890",
									"name": "Patient Name",
									"dpsx_file_name": "Patient File Name"
								}
							}
						},
						"additionalProperties": {},
						"type": "object"
					},
					{
						"properties": {
							"plan": {
								"properties": {
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The plan object",
								"example": {
									"uuid": "1234567890",
									"name": "Plan Name"
								}
							},
							"bridge": {
								"properties": {
									"tooth_numbers": {
										"items": {
											"anyOf": [
												{
													"type": "string"
												},
												{
													"type": "number",
													"format": "double"
												}
											]
										},
										"type": "array"
									},
									"number_of_units": {
										"anyOf": [
											{
												"type": "string"
											},
											{
												"type": "number",
												"format": "double"
											}
										]
									},
									"export_date": {
										"type": "number",
										"format": "double"
									},
									"uuid": {
										"type": "string"
									}
								},
								"additionalProperties": {},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The bridge object",
								"example": {
									"uuid": "1234567890",
									"export_date": "2021-01-01",
									"number_of_units": "1",
									"tooth_numbers": [
										"1",
										"2"
									]
								}
							},
							"application": {
								"properties": {
									"os": {
										"type": "string"
									},
									"commit": {
										"type": "string"
									},
									"version": {
										"type": "string"
									},
									"name": {
										"type": "string"
									}
								},
								"additionalProperties": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										},
										{
											"type": "boolean"
										}
									]
								},
								"type": "object",
								"description": "The application object",
								"example": {
									"name": "CAD",
									"version": "1.0.0"
								}
							},
							"patient": {
								"properties": {
									"dpsx_file_name": {
										"type": "string"
									},
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"type": "object",
								"description": "The patient object",
								"example": {
									"uuid": "1234567890",
									"name": "Patient Name",
									"dpsx_file_name": "Patient File Name"
								}
							}
						},
						"additionalProperties": {},
						"type": "object"
					},
					{
						"properties": {
							"plan": {
								"properties": {
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The plan object",
								"example": {
									"uuid": "1234567890",
									"name": "Plan Name"
								}
							},
							"splint": {
								"properties": {
									"thickness": {
										"anyOf": [
											{
												"type": "string"
											},
											{
												"type": "number",
												"format": "double"
											}
										]
									},
									"export_date": {
										"type": "number",
										"format": "double"
									},
									"kind": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"additionalProperties": {},
								"required": [
									"uuid"
								],
								"type": "object",
								"description": "The splint object",
								"example": {
									"uuid": "1234567890",
									"export_date": "2021-01-01",
									"thickness": "1",
									"kind": "basic"
								}
							},
							"application": {
								"properties": {
									"os": {
										"type": "string"
									},
									"commit": {
										"type": "string"
									},
									"version": {
										"type": "string"
									},
									"name": {
										"type": "string"
									}
								},
								"additionalProperties": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										},
										{
											"type": "boolean"
										}
									]
								},
								"type": "object",
								"description": "The application object",
								"example": {
									"name": "CAD",
									"version": "1.0.0"
								}
							},
							"patient": {
								"properties": {
									"dpsx_file_name": {
										"type": "string"
									},
									"name": {
										"type": "string"
									},
									"uuid": {
										"type": "string"
									}
								},
								"type": "object",
								"description": "The patient object",
								"example": {
									"uuid": "1234567890",
									"name": "Patient Name",
									"dpsx_file_name": "Patient File Name"
								}
							}
						},
						"additionalProperties": {},
						"type": "object"
					}
				],
				"description": "Make all properties in T optional"
			},
			"ExportActionResult": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The _id of the organization"
					},
					"error": {
						"type": "string",
						"description": "The error message if failed"
					},
					"success": {
						"type": "boolean",
						"description": "The success message if successful"
					},
					"transactionId": {
						"type": "string",
						"description": "The transaction ID if successful"
					},
					"count": {
						"type": "number",
						"format": "double",
						"description": "The number of transactions"
					},
					"referenceId": {
						"type": "string",
						"description": "The Reference ID of the transaction"
					},
					"payload": {
						"$ref": "#/components/schemas/Partial_ExportActionPayload_",
						"description": "The original payload object (without application, plan, patient) for mapping"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ExportPayload": {
				"description": "The payload for exporting a guide\nused with actionName \"Export\" - deprecated - use ExportSurgicalGuidePayload instead",
				"properties": {
					"application": {
						"properties": {
							"os": {
								"type": "string",
								"description": "Application OS"
							},
							"commit": {
								"type": "string",
								"description": "Application Commit"
							},
							"version": {
								"type": "string",
								"description": "Application Version"
							},
							"name": {
								"type": "string",
								"description": "ResourceName (Application Name)"
							}
						},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object",
						"description": "The application object",
						"example": {
							"name": "CAD",
							"version": "1.0.0"
						}
					},
					"patient": {
						"properties": {
							"dpsx_file_name": {
								"type": "string"
							},
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"type": "object",
						"description": "The patient object",
						"example": {
							"uuid": "1234567890",
							"name": "Patient Name",
							"dpsx_file_name": "Patient File Name"
						}
					},
					"plan": {
						"properties": {
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The plan object",
						"example": {
							"uuid": "1234567890",
							"name": "Plan Name"
						}
					},
					"guide": {
						"properties": {
							"export_date": {
								"type": "number",
								"format": "double"
							},
							"fixation_pins": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"implants": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"uuid": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The guide object",
						"example": {
							"uuid": "1234567890",
							"implants": [
								"1234567890",
								"1234567890"
							],
							"fixation_pins": [
								"1234567890",
								"1234567890"
							]
						}
					}
				},
				"required": [
					"application",
					"plan",
					"guide"
				],
				"type": "object",
				"additionalProperties": {},
				"deprecated": true
			},
			"ExportStackableGuidePayload": {
				"description": "The payload for exporting a stackable guide\nused with actionName \"ExportStackableGuide\"",
				"properties": {
					"application": {
						"properties": {
							"os": {
								"type": "string",
								"description": "Application OS"
							},
							"commit": {
								"type": "string",
								"description": "Application Commit"
							},
							"version": {
								"type": "string",
								"description": "Application Version"
							},
							"name": {
								"type": "string",
								"description": "ResourceName (Application Name)"
							}
						},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object",
						"description": "The application object",
						"example": {
							"name": "CAD",
							"version": "1.0.0"
						}
					},
					"patient": {
						"properties": {
							"dpsx_file_name": {
								"type": "string"
							},
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"type": "object",
						"description": "The patient object",
						"example": {
							"uuid": "1234567890",
							"name": "Patient Name",
							"dpsx_file_name": "Patient File Name"
						}
					},
					"plan": {
						"properties": {
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The plan object",
						"example": {
							"uuid": "1234567890",
							"name": "Plan Name"
						}
					},
					"guide": {
						"properties": {
							"export_date": {
								"type": "number",
								"format": "double"
							},
							"fixation_pins": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"implants": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"uuid": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The guide object",
						"example": {
							"uuid": "1234567890",
							"implants": [
								"1234567890",
								"1234567890"
							],
							"fixation_pins": [
								"1234567890",
								"1234567890"
							]
						}
					}
				},
				"required": [
					"application",
					"plan",
					"guide"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"ExportSurgicalGuidePayload": {
				"description": "The payload for exporting a surgical guide\nused with actionName \"ExportSurgicalGuide\"",
				"properties": {
					"application": {
						"properties": {
							"os": {
								"type": "string",
								"description": "Application OS"
							},
							"commit": {
								"type": "string",
								"description": "Application Commit"
							},
							"version": {
								"type": "string",
								"description": "Application Version"
							},
							"name": {
								"type": "string",
								"description": "ResourceName (Application Name)"
							}
						},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object",
						"description": "The application object",
						"example": {
							"name": "CAD",
							"version": "1.0.0"
						}
					},
					"patient": {
						"properties": {
							"dpsx_file_name": {
								"type": "string"
							},
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"type": "object",
						"description": "The patient object",
						"example": {
							"uuid": "1234567890",
							"name": "Patient Name",
							"dpsx_file_name": "Patient File Name"
						}
					},
					"plan": {
						"properties": {
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The plan object",
						"example": {
							"uuid": "1234567890",
							"name": "Plan Name"
						}
					},
					"guide": {
						"properties": {
							"export_date": {
								"type": "number",
								"format": "double"
							},
							"fixation_pins": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"implants": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"uuid": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The guide object",
						"example": {
							"uuid": "1234567890",
							"implants": [
								"1234567890",
								"1234567890"
							],
							"fixation_pins": [
								"1234567890",
								"1234567890"
							]
						}
					}
				},
				"required": [
					"application",
					"plan",
					"guide"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"ExportSegmentedSurfacePayload": {
				"description": "The payload for exporting a segmented surface\nused with actionName \"ExportSegmentedSurface\"",
				"properties": {
					"application": {
						"properties": {
							"os": {
								"type": "string",
								"description": "Application OS"
							},
							"commit": {
								"type": "string",
								"description": "Application Commit"
							},
							"version": {
								"type": "string",
								"description": "Application Version"
							},
							"name": {
								"type": "string",
								"description": "ResourceName (Application Name)"
							}
						},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object",
						"description": "The application object",
						"example": {
							"name": "CAD",
							"version": "1.0.0"
						}
					},
					"patient": {
						"properties": {
							"dpsx_file_name": {
								"type": "string"
							},
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"type": "object",
						"description": "The patient object",
						"example": {
							"uuid": "1234567890",
							"name": "Patient Name",
							"dpsx_file_name": "Patient File Name"
						}
					},
					"plan": {
						"properties": {
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The plan object",
						"example": {
							"uuid": "1234567890",
							"name": "Plan Name"
						}
					},
					"surface": {
						"properties": {
							"export_date": {
								"type": "number",
								"format": "double"
							},
							"uuid": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The surface object",
						"example": {
							"uuid": "1234567890"
						}
					}
				},
				"required": [
					"application",
					"plan",
					"surface"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"ExportToothRestorationPayload": {
				"properties": {
					"application": {
						"properties": {
							"os": {
								"type": "string",
								"description": "Application OS"
							},
							"commit": {
								"type": "string",
								"description": "Application Commit"
							},
							"version": {
								"type": "string",
								"description": "Application Version"
							},
							"name": {
								"type": "string",
								"description": "ResourceName (Application Name)"
							}
						},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object",
						"description": "The application object",
						"example": {
							"name": "CAD",
							"version": "1.0.0"
						}
					},
					"patient": {
						"properties": {
							"dpsx_file_name": {
								"type": "string"
							},
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"type": "object",
						"description": "The patient object",
						"example": {
							"uuid": "1234567890",
							"name": "Patient Name",
							"dpsx_file_name": "Patient File Name"
						}
					},
					"plan": {
						"properties": {
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The plan object",
						"example": {
							"uuid": "1234567890",
							"name": "Plan Name"
						}
					},
					"tooth-restoration": {
						"properties": {
							"tooth_number": {
								"anyOf": [
									{
										"type": "string"
									},
									{
										"type": "number",
										"format": "double"
									}
								]
							},
							"export_date": {
								"type": "number",
								"format": "double"
							},
							"kind": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The tooth_restoration object",
						"example": {
							"uuid": "1234567890",
							"kind": "kind",
							"export_date": "2021-01-01",
							"tooth_number": "1"
						}
					},
					"tooth_restoration": {
						"properties": {
							"tooth_number": {
								"anyOf": [
									{
										"type": "string"
									},
									{
										"type": "number",
										"format": "double"
									}
								]
							},
							"export_date": {
								"type": "number",
								"format": "double"
							},
							"kind": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"required": [
							"uuid"
						],
						"type": "object"
					}
				},
				"required": [
					"application",
					"plan"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"ExportCrownOverImplantPayload": {
				"properties": {
					"application": {
						"properties": {
							"os": {
								"type": "string",
								"description": "Application OS"
							},
							"commit": {
								"type": "string",
								"description": "Application Commit"
							},
							"version": {
								"type": "string",
								"description": "Application Version"
							},
							"name": {
								"type": "string",
								"description": "ResourceName (Application Name)"
							}
						},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object",
						"description": "The application object",
						"example": {
							"name": "CAD",
							"version": "1.0.0"
						}
					},
					"patient": {
						"properties": {
							"dpsx_file_name": {
								"type": "string"
							},
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"type": "object",
						"description": "The patient object",
						"example": {
							"uuid": "1234567890",
							"name": "Patient Name",
							"dpsx_file_name": "Patient File Name"
						}
					},
					"plan": {
						"properties": {
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The plan object",
						"example": {
							"uuid": "1234567890",
							"name": "Plan Name"
						}
					},
					"crown_over_implant": {
						"properties": {
							"tooth_number": {
								"anyOf": [
									{
										"type": "string"
									},
									{
										"type": "number",
										"format": "double"
									}
								]
							},
							"export_date": {
								"type": "number",
								"format": "double"
							},
							"uuid": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The crown_over_implant object",
						"example": {
							"uuid": "1234567890",
							"export_date": 1736589680,
							"tooth_number": 3
						}
					}
				},
				"required": [
					"application",
					"plan",
					"crown_over_implant"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"ExportBridgePayload": {
				"properties": {
					"application": {
						"properties": {
							"os": {
								"type": "string",
								"description": "Application OS"
							},
							"commit": {
								"type": "string",
								"description": "Application Commit"
							},
							"version": {
								"type": "string",
								"description": "Application Version"
							},
							"name": {
								"type": "string",
								"description": "ResourceName (Application Name)"
							}
						},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object",
						"description": "The application object",
						"example": {
							"name": "CAD",
							"version": "1.0.0"
						}
					},
					"patient": {
						"properties": {
							"dpsx_file_name": {
								"type": "string"
							},
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"type": "object",
						"description": "The patient object",
						"example": {
							"uuid": "1234567890",
							"name": "Patient Name",
							"dpsx_file_name": "Patient File Name"
						}
					},
					"plan": {
						"properties": {
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The plan object",
						"example": {
							"uuid": "1234567890",
							"name": "Plan Name"
						}
					},
					"bridge": {
						"properties": {
							"tooth_numbers": {
								"items": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										}
									]
								},
								"type": "array"
							},
							"number_of_units": {
								"anyOf": [
									{
										"type": "string"
									},
									{
										"type": "number",
										"format": "double"
									}
								]
							},
							"export_date": {
								"type": "number",
								"format": "double"
							},
							"uuid": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The bridge object",
						"example": {
							"uuid": "1234567890",
							"export_date": "2021-01-01",
							"number_of_units": "1",
							"tooth_numbers": [
								"1",
								"2"
							]
						}
					}
				},
				"required": [
					"application",
					"plan",
					"bridge"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"ExportSplintPayload": {
				"description": "CW-5256\nThe payload for exporting a splint\nused with actionName \"ExportSplint\"",
				"properties": {
					"application": {
						"properties": {
							"os": {
								"type": "string",
								"description": "Application OS"
							},
							"commit": {
								"type": "string",
								"description": "Application Commit"
							},
							"version": {
								"type": "string",
								"description": "Application Version"
							},
							"name": {
								"type": "string",
								"description": "ResourceName (Application Name)"
							}
						},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object",
						"description": "The application object",
						"example": {
							"name": "CAD",
							"version": "1.0.0"
						}
					},
					"patient": {
						"properties": {
							"dpsx_file_name": {
								"type": "string"
							},
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"type": "object",
						"description": "The patient object",
						"example": {
							"uuid": "1234567890",
							"name": "Patient Name",
							"dpsx_file_name": "Patient File Name"
						}
					},
					"plan": {
						"properties": {
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The plan object",
						"example": {
							"uuid": "1234567890",
							"name": "Plan Name"
						}
					},
					"splint": {
						"properties": {
							"thickness": {
								"anyOf": [
									{
										"type": "string"
									},
									{
										"type": "number",
										"format": "double"
									}
								]
							},
							"export_date": {
								"type": "number",
								"format": "double"
							},
							"kind": {
								"anyOf": [
									{
										"type": "string"
									},
									{
										"type": "string",
										"enum": [
											"basic"
										]
									}
								]
							},
							"uuid": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"required": [
							"uuid"
						],
						"type": "object",
						"description": "The splint object",
						"example": {
							"uuid": "1234567890",
							"export_date": "2021-01-01",
							"thickness": "1",
							"kind": "basic"
						}
					}
				},
				"required": [
					"application",
					"plan",
					"splint"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"BasePayload": {
				"properties": {
					"application": {
						"properties": {
							"os": {
								"type": "string",
								"description": "Application OS"
							},
							"commit": {
								"type": "string",
								"description": "Application Commit"
							},
							"version": {
								"type": "string",
								"description": "Application Version"
							},
							"name": {
								"type": "string",
								"description": "ResourceName (Application Name)"
							}
						},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object",
						"description": "The application object",
						"example": {
							"name": "CAD",
							"version": "1.0.0"
						}
					},
					"patient": {
						"properties": {
							"dpsx_file_name": {
								"type": "string"
							},
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"type": "object",
						"description": "The patient object",
						"example": {
							"uuid": "1234567890",
							"name": "Patient Name",
							"dpsx_file_name": "Patient File Name"
						}
					}
				},
				"required": [
					"application"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"ValidateModelGenerationPayload": {
				"$ref": "#/components/schemas/BasePayload"
			},
			"ActionPayloadTypes": {
				"anyOf": [
					{
						"$ref": "#/components/schemas/ExportPayload"
					},
					{
						"$ref": "#/components/schemas/ExportStackableGuidePayload"
					},
					{
						"$ref": "#/components/schemas/ExportSurgicalGuidePayload"
					},
					{
						"$ref": "#/components/schemas/ExportSegmentedSurfacePayload"
					},
					{
						"$ref": "#/components/schemas/ExportToothRestorationPayload"
					},
					{
						"$ref": "#/components/schemas/ExportCrownOverImplantPayload"
					},
					{
						"$ref": "#/components/schemas/ExportBridgePayload"
					},
					{
						"$ref": "#/components/schemas/ExportSplintPayload"
					},
					{
						"$ref": "#/components/schemas/ValidateModelGenerationPayload"
					}
				]
			},
			"BulkActionResponse": {
				"properties": {
					"results": {
						"items": {
							"$ref": "#/components/schemas/ExportActionResult"
						},
						"type": "array",
						"description": "Array of results matching the input payloads array order\nEach result contains either transaction details or error message"
					}
				},
				"required": [
					"results"
				],
				"type": "object",
				"additionalProperties": false
			},
			"BulkExportRequestPayloadWithoutActionName": {
				"properties": {
					"application": {
						"properties": {
							"os": {
								"type": "string",
								"description": "Application OS"
							},
							"commit": {
								"type": "string",
								"description": "Application Commit"
							},
							"version": {
								"type": "string",
								"description": "Application Version"
							},
							"name": {
								"type": "string",
								"description": "ResourceName (Application Name)"
							}
						},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object",
						"description": "The application object",
						"example": {
							"name": "CAD",
							"version": "1.0.0"
						}
					},
					"patient": {
						"properties": {
							"dpsx_file_name": {
								"type": "string"
							},
							"name": {
								"type": "string"
							},
							"uuid": {
								"type": "string"
							}
						},
						"type": "object",
						"description": "The patient object",
						"example": {
							"uuid": "1234567890",
							"name": "Patient Name",
							"dpsx_file_name": "Patient File Name"
						}
					},
					"surgical-guide": {
						"items": {
							"properties": {
								"export_date": {
									"type": "number",
									"format": "double"
								},
								"fixation_pins": {
									"items": {
										"type": "string"
									},
									"type": "array"
								},
								"implants": {
									"items": {
										"type": "string"
									},
									"type": "array"
								},
								"uuid": {
									"type": "string"
								}
							},
							"additionalProperties": {},
							"required": [
								"uuid"
							],
							"type": "object"
						},
						"type": "array"
					},
					"surgical_guide": {
						"items": {
							"properties": {
								"export_date": {
									"type": "number",
									"format": "double"
								},
								"fixation_pins": {
									"items": {
										"type": "string"
									},
									"type": "array"
								},
								"implants": {
									"items": {
										"type": "string"
									},
									"type": "array"
								},
								"uuid": {
									"type": "string"
								}
							},
							"additionalProperties": {},
							"required": [
								"uuid"
							],
							"type": "object"
						},
						"type": "array"
					},
					"stackable-guide": {
						"items": {
							"properties": {
								"export_date": {
									"type": "number",
									"format": "double"
								},
								"fixation_pins": {
									"items": {
										"type": "string"
									},
									"type": "array"
								},
								"implants": {
									"items": {
										"type": "string"
									},
									"type": "array"
								},
								"uuid": {
									"type": "string"
								}
							},
							"additionalProperties": {},
							"required": [
								"uuid"
							],
							"type": "object"
						},
						"type": "array"
					},
					"stackable_guide": {
						"items": {
							"properties": {
								"export_date": {
									"type": "number",
									"format": "double"
								},
								"fixation_pins": {
									"items": {
										"type": "string"
									},
									"type": "array"
								},
								"implants": {
									"items": {
										"type": "string"
									},
									"type": "array"
								},
								"uuid": {
									"type": "string"
								}
							},
							"additionalProperties": {},
							"required": [
								"uuid"
							],
							"type": "object"
						},
						"type": "array"
					},
					"surface": {
						"items": {
							"properties": {
								"export_date": {
									"type": "number",
									"format": "double"
								},
								"uuid": {
									"type": "string"
								}
							},
							"additionalProperties": {},
							"required": [
								"uuid"
							],
							"type": "object"
						},
						"type": "array"
					},
					"tooth-restoration": {
						"items": {
							"properties": {
								"tooth_number": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										}
									]
								},
								"export_date": {
									"type": "number",
									"format": "double"
								},
								"kind": {
									"type": "string"
								},
								"uuid": {
									"type": "string"
								}
							},
							"additionalProperties": {},
							"required": [
								"uuid"
							],
							"type": "object"
						},
						"type": "array"
					},
					"tooth_restoration": {
						"items": {
							"properties": {
								"tooth_number": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										}
									]
								},
								"export_date": {
									"type": "number",
									"format": "double"
								},
								"kind": {
									"type": "string"
								},
								"uuid": {
									"type": "string"
								}
							},
							"additionalProperties": {},
							"required": [
								"uuid"
							],
							"type": "object"
						},
						"type": "array"
					},
					"crown_over_implant": {
						"items": {
							"properties": {
								"tooth_number": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										}
									]
								},
								"export_date": {
									"type": "number",
									"format": "double"
								},
								"uuid": {
									"type": "string"
								}
							},
							"additionalProperties": {},
							"required": [
								"uuid"
							],
							"type": "object"
						},
						"type": "array"
					},
					"bridge": {
						"items": {
							"properties": {
								"tooth_numbers": {
									"items": {
										"anyOf": [
											{
												"type": "string"
											},
											{
												"type": "number",
												"format": "double"
											}
										]
									},
									"type": "array"
								},
								"number_of_units": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										}
									]
								},
								"export_date": {
									"type": "number",
									"format": "double"
								},
								"uuid": {
									"type": "string"
								}
							},
							"additionalProperties": {},
							"required": [
								"uuid"
							],
							"type": "object"
						},
						"type": "array"
					},
					"splint": {
						"items": {
							"properties": {
								"thickness": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "number",
											"format": "double"
										}
									]
								},
								"export_date": {
									"type": "number",
									"format": "double"
								},
								"kind": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"type": "string",
											"enum": [
												"basic"
											]
										}
									]
								},
								"uuid": {
									"type": "string"
								}
							},
							"additionalProperties": {},
							"required": [
								"uuid"
							],
							"type": "object"
						},
						"type": "array"
					}
				},
				"required": [
					"application"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"IResource": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The resource ID",
						"example": "666666666666666666666666"
					},
					"ResourceName": {
						"type": "string",
						"description": "The name of the resource"
					},
					"DisplayName": {
						"type": "string",
						"description": "The display name of the resource"
					},
					"Scopes": {
						"items": {
							"$ref": "#/components/schemas/IScope"
						},
						"type": "array",
						"description": "The scopes of the resource"
					},
					"Actions": {
						"items": {
							"$ref": "#/components/schemas/IAction"
						},
						"type": "array",
						"description": "The actions of the resource"
					},
					"AccessDefault": {
						"type": "boolean",
						"description": "Whether the user has access to the resource by default"
					},
					"DownloadLink": {
						"type": "string",
						"deprecated": true
					},
					"DownloadLinks": {
						"items": {
							"$ref": "#/components/schemas/IDownloadLink"
						},
						"type": "array",
						"description": "The download links of the resource"
					},
					"IconUrl": {
						"type": "string",
						"description": "The icon url of the resource"
					},
					"Active": {
						"type": "boolean",
						"description": "Whether the resource is active (enabled)"
					}
				},
				"required": [
					"_id",
					"ResourceName",
					"Scopes",
					"Actions",
					"AccessDefault",
					"Active"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Partial_Omit_IScope._id__": {
				"properties": {
					"type": {
						"$ref": "#/components/schemas/ScopeType",
						"description": "The type of the scope. Must be one of: 'flag', 'boolean', 'number', 'string', 'date', 'enum'",
						"example": "flag"
					},
					"key": {
						"type": "string"
					},
					"value": {
						"anyOf": [
							{
								"type": "string"
							},
							{
								"type": "number",
								"format": "double"
							},
							{
								"type": "boolean"
							},
							{
								"type": "string",
								"format": "date-time"
							}
						]
					},
					"allowedValues": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"description": "Allowed values for enum type scopes. Required when type is \"enum\".",
						"example": [
							"option1",
							"option2",
							"option3"
						]
					}
				},
				"type": "object",
				"description": "Make all properties in T optional"
			},
			"ScopeInput": {
				"allOf": [
					{
						"$ref": "#/components/schemas/Partial_Omit_IScope._id__"
					},
					{
						"properties": {
							"_id": {
								"type": "string"
							}
						},
						"type": "object"
					}
				]
			},
			"DownloadLinkInput": {
				"properties": {
					"isDefault": {
						"type": "boolean",
						"description": "Whether the download link is the default link"
					},
					"url": {
						"type": "string",
						"description": "The url of the download link"
					},
					"environment": {
						"type": "string",
						"description": "The environment of the download link"
					},
					"version": {
						"type": "string",
						"description": "The version of the download link"
					},
					"fileType": {
						"type": "string",
						"description": "The file type of the download link"
					},
					"architecture": {
						"type": "string",
						"description": "The architecture of the download link"
					},
					"distro": {
						"type": "string",
						"description": "The distro of the download link"
					},
					"operatingSystem": {
						"type": "string",
						"description": "The operating system of the download link"
					}
				},
				"required": [
					"url",
					"operatingSystem"
				],
				"type": "object",
				"description": "DownloadLinks: [{\nOperatingSystem: enum('Windows', 'Linux', 'macOS', 'Other'),\nDistro?: enum('Ubuntu', 'Debian', 'Fedora', 'CentOS', 'Other'),\nArchitecture?: enum('x64', 'x86', 'arm64', 'arm32', 'other'),\nFileType?: enum('exe', 'msi', 'deb', 'rpm', 'pkg', 'AppImage', 'AppBundle', 'DMG', 'other'),\nVersion?: string,\nEnvironment?: string,\nUrl: string,\n}],"
			},
			"ResourceCreateParams": {
				"properties": {
					"ResourceName": {
						"type": "string",
						"description": "The resource name",
						"example": "Planner"
					},
					"AccessDefault": {
						"type": "boolean",
						"description": "The default user access for the resource",
						"example": true
					},
					"Scopes": {
						"items": {
							"$ref": "#/components/schemas/ScopeInput"
						},
						"type": "array",
						"description": "The scopes for the resource",
						"example": [
							{
								"key": "maxProjects",
								"type": "number",
								"value": 10
							}
						]
					},
					"DownloadLink": {
						"type": "string",
						"example": "https://www.google.com",
						"deprecated": true
					},
					"DownloadLinks": {
						"items": {
							"$ref": "#/components/schemas/DownloadLinkInput"
						},
						"type": "array",
						"description": "The download links",
						"example": [
							{
								"key": "downloadLinkKey",
								"type": "downloadLinkType",
								"value": "downloadLinkValue"
							}
						]
					}
				},
				"required": [
					"ResourceName",
					"AccessDefault"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Partial_Omit_IResource.Scopes-or-Actions-or-DownloadLinks__": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The resource ID",
						"example": "666666666666666666666666"
					},
					"Active": {
						"type": "boolean",
						"description": "Whether the resource is active (enabled)"
					},
					"ResourceName": {
						"type": "string",
						"description": "The name of the resource"
					},
					"DisplayName": {
						"type": "string",
						"description": "The display name of the resource"
					},
					"AccessDefault": {
						"type": "boolean",
						"description": "Whether the user has access to the resource by default"
					},
					"DownloadLink": {
						"type": "string",
						"deprecated": true
					},
					"IconUrl": {
						"type": "string",
						"description": "The icon url of the resource"
					}
				},
				"type": "object",
				"description": "Make all properties in T optional"
			},
			"Partial_Omit_IAction._id__": {
				"properties": {
					"name": {
						"type": "string",
						"description": "The name of the action"
					},
					"value": {
						"type": "number",
						"format": "double",
						"description": "The credit value of the action"
					},
					"active": {
						"type": "boolean",
						"description": "Whether the action is active"
					},
					"minVersion": {
						"type": "string",
						"description": "The minimum version of the action"
					}
				},
				"type": "object",
				"description": "Make all properties in T optional"
			},
			"ResourceActionInput": {
				"allOf": [
					{
						"$ref": "#/components/schemas/Partial_Omit_IAction._id__"
					},
					{
						"properties": {
							"_id": {
								"type": "string"
							}
						},
						"type": "object"
					}
				]
			},
			"ResourceUpdateParams": {
				"allOf": [
					{
						"$ref": "#/components/schemas/Partial_Omit_IResource.Scopes-or-Actions-or-DownloadLinks__"
					},
					{
						"properties": {
							"DownloadLinks": {
								"items": {
									"$ref": "#/components/schemas/DownloadLinkInput"
								},
								"type": "array",
								"description": "The download links",
								"example": [
									{
										"key": "downloadLinkKey",
										"type": "downloadLinkType",
										"value": "downloadLinkValue"
									}
								]
							},
							"Actions": {
								"items": {
									"$ref": "#/components/schemas/ResourceActionInput"
								},
								"type": "array",
								"description": "The actions",
								"example": [
									{
										"key": "actionKey",
										"type": "actionType",
										"value": "actionValue"
									}
								]
							},
							"Scopes": {
								"items": {
									"$ref": "#/components/schemas/ScopeInput"
								},
								"type": "array",
								"description": "The scopes",
								"example": [
									{
										"key": "scopeKey",
										"type": "scopeType",
										"value": "scopeValue"
									}
								]
							},
							"DisplayName": {
								"type": "string",
								"description": "The display name",
								"example": "Planner"
							},
							"IconUrl": {
								"type": "string",
								"description": "The icon url",
								"example": "https://www.google.com"
							}
						},
						"type": "object"
					}
				]
			},
			"Permission": {
				"enum": [
					"admin.super",
					"admin.read",
					"admin.write",
					"admin.delete",
					"admin.manage",
					"credentials.read",
					"credentials.write",
					"credentials.delete",
					"credentials.manage"
				],
				"type": "string"
			},
			"IPermissionCondition": {
				"properties": {
					"type": {
						"type": "string",
						"enum": [
							"AND",
							"OR",
							"NOT",
							"PERMISSION"
						],
						"description": "The type of condition (AND, OR, NOT, PERMISSION)",
						"example": "AND"
					},
					"permission": {
						"$ref": "#/components/schemas/Permission",
						"description": "The permission name (only for PERMISSION type)",
						"example": "user.read"
					},
					"conditions": {
						"items": {
							"$ref": "#/components/schemas/IPermissionCondition"
						},
						"type": "array",
						"description": "Array of sub-conditions (for AND, OR, NOT types)"
					}
				},
				"required": [
					"type"
				],
				"type": "object",
				"additionalProperties": false
			},
			"IEndpointPermission": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The endpoint ID",
						"example": "666666666666666666666666"
					},
					"endpointName": {
						"type": "string",
						"description": "The endpoint name/identifier",
						"example": "GET:/api/users"
					},
					"method": {
						"type": "string",
						"description": "The HTTP method",
						"example": "GET"
					},
					"path": {
						"type": "string",
						"description": "The endpoint path",
						"example": "/api/users"
					},
					"requiredPermission": {
						"$ref": "#/components/schemas/IPermissionCondition",
						"description": "The permission condition required to access this endpoint"
					},
					"active": {
						"type": "boolean",
						"description": "Whether the endpoint permission is active",
						"example": true
					},
					"description": {
						"type": "string",
						"description": "Description of the endpoint",
						"example": "Get all users"
					},
					"createdAt": {
						"type": "string",
						"format": "date-time",
						"description": "Creation date",
						"example": "2024-01-01T00:00:00.000Z"
					},
					"updatedAt": {
						"type": "string",
						"format": "date-time",
						"description": "Last update date",
						"example": "2024-01-01T00:00:00.000Z"
					}
				},
				"required": [
					"_id",
					"endpointName",
					"method",
					"path",
					"requiredPermission",
					"active",
					"createdAt",
					"updatedAt"
				],
				"type": "object",
				"additionalProperties": false
			},
			"CreateEndpointPermissionParams": {
				"properties": {
					"endpointName": {
						"type": "string"
					},
					"method": {
						"type": "string"
					},
					"path": {
						"type": "string"
					},
					"requiredPermission": {
						"$ref": "#/components/schemas/IPermissionCondition"
					},
					"description": {
						"type": "string"
					}
				},
				"required": [
					"endpointName",
					"method",
					"path",
					"requiredPermission"
				],
				"type": "object",
				"additionalProperties": false
			},
			"UpdateEndpointPermissionParams": {
				"properties": {
					"method": {
						"type": "string"
					},
					"path": {
						"type": "string"
					},
					"requiredPermission": {
						"$ref": "#/components/schemas/IPermissionCondition"
					},
					"description": {
						"type": "string"
					},
					"active": {
						"type": "boolean"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"IUserPermission": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The user permission ID",
						"example": "666666666666666666666666"
					},
					"userId": {
						"type": "string",
						"description": "The user ID (Cognito User ID)",
						"example": "1234567890"
					},
					"permissions": {
						"items": {
							"$ref": "#/components/schemas/Permission"
						},
						"type": "array",
						"description": "Array of permission names granted to the user",
						"example": [
							"user.read",
							"user.write",
							"admin.super"
						]
					},
					"active": {
						"type": "boolean",
						"description": "Whether the user permissions are active",
						"example": true
					},
					"createdAt": {
						"type": "string",
						"format": "date-time",
						"description": "Creation date",
						"example": "2024-01-01T00:00:00.000Z"
					},
					"updatedAt": {
						"type": "string",
						"format": "date-time",
						"description": "Last update date",
						"example": "2024-01-01T00:00:00.000Z"
					}
				},
				"required": [
					"_id",
					"userId",
					"permissions",
					"active",
					"createdAt",
					"updatedAt"
				],
				"type": "object",
				"additionalProperties": false
			},
			"UpsertUserPermissionParams": {
				"properties": {
					"userId": {
						"type": "string"
					},
					"permissions": {
						"items": {
							"$ref": "#/components/schemas/Permission"
						},
						"type": "array"
					}
				},
				"required": [
					"userId",
					"permissions"
				],
				"type": "object",
				"additionalProperties": false
			},
			"IUserPermissionWithDetails": {
				"properties": {
					"_id": {
						"type": "string",
						"description": "The user permission ID",
						"example": "666666666666666666666666"
					},
					"userId": {
						"type": "string",
						"description": "The user ID (Cognito User ID)",
						"example": "1234567890"
					},
					"permissions": {
						"items": {
							"$ref": "#/components/schemas/Permission"
						},
						"type": "array",
						"description": "Array of permission names granted to the user",
						"example": [
							"user.read",
							"user.write",
							"admin.super"
						]
					},
					"active": {
						"type": "boolean",
						"description": "Whether the user permissions are active",
						"example": true
					},
					"createdAt": {
						"type": "string",
						"format": "date-time",
						"description": "Creation date",
						"example": "2024-01-01T00:00:00.000Z"
					},
					"updatedAt": {
						"type": "string",
						"format": "date-time",
						"description": "Last update date",
						"example": "2024-01-01T00:00:00.000Z"
					},
					"userDetails": {
						"properties": {
							"Tags": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"Active": {
								"type": "boolean"
							},
							"LastName": {
								"type": "string"
							},
							"FirstName": {
								"type": "string"
							},
							"Email": {
								"type": "string"
							}
						},
						"required": [
							"Tags",
							"Active",
							"LastName",
							"FirstName",
							"Email"
						],
						"type": "object"
					}
				},
				"required": [
					"_id",
					"userId",
					"permissions",
					"active",
					"createdAt",
					"updatedAt"
				],
				"type": "object",
				"additionalProperties": false
			},
			"UpdateUserPermissionParams": {
				"properties": {
					"permissions": {
						"items": {
							"$ref": "#/components/schemas/Permission"
						},
						"type": "array"
					},
					"active": {
						"type": "boolean"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"IngestTransaction": {
				"description": "This is a mock controller for testing purposes,\nit resembles the external billing API (case-cloud), and for now have 3 endpoints (ingestTransactions)\nthe return value will be based on the request body, specifically the plan.uuid field in the ingested transaction",
				"properties": {
					"cc_response": {
						"properties": {
							"error_message": {
								"type": "string"
							},
							"error_code": {
								"anyOf": [
									{
										"type": "string"
									},
									{
										"type": "number",
										"format": "double"
									}
								]
							}
						},
						"type": "object"
					},
					"timeStamp": {
						"type": "string"
					},
					"id": {
						"type": "string"
					},
					"event": {
						"type": "string"
					}
				},
				"required": [
					"timeStamp",
					"id",
					"event"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"IngestTransactionBody": {
				"properties": {
					"transactions": {
						"items": {
							"$ref": "#/components/schemas/IngestTransaction"
						},
						"type": "array"
					}
				},
				"required": [
					"transactions"
				],
				"type": "object",
				"additionalProperties": false
			},
			"IErrorResponse": {
				"properties": {
					"error": {
						"type": "string"
					},
					"message": {
						"type": "string"
					},
					"code": {
						"type": "number",
						"format": "double"
					}
				},
				"required": [
					"error",
					"message"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ClientAppUrlMockScenario": {
				"type": "string",
				"enum": [
					"urlA",
					"urlB",
					"empty",
					"error"
				]
			},
			"ViewResponse": {
				"properties": {
					"template": {
						"type": "string"
					},
					"data": {
						"properties": {
							"scripts": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"styles": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"title": {
								"type": "string"
							},
							"clientApp": {
								"type": "boolean"
							},
							"layout": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"required": [
							"layout"
						],
						"type": "object"
					}
				},
				"required": [
					"template",
					"data"
				],
				"type": "object",
				"additionalProperties": false
			},
			"LogLevel": {
				"enum": [
					"error",
					"warn",
					"info",
					"http",
					"debug"
				],
				"type": "string"
			},
			"LogEntry": {
				"properties": {
					"id": {
						"type": "string"
					},
					"level": {
						"$ref": "#/components/schemas/LogLevel"
					},
					"message": {
						"type": "string"
					},
					"timestamp": {
						"type": "string"
					},
					"metadata": {
						"properties": {
							"timeDiff": {
								"type": "number",
								"format": "double"
							},
							"requestId": {
								"type": "string"
							},
							"relatedApps": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"userEmail": {
								"type": "string"
							},
							"userName": {
								"type": "string"
							},
							"userId": {
								"type": "string"
							}
						},
						"additionalProperties": {},
						"type": "object"
					},
					"timeDiff": {
						"type": "number",
						"format": "double"
					}
				},
				"required": [
					"id",
					"level",
					"message",
					"timestamp"
				],
				"type": "object",
				"additionalProperties": {}
			},
			"LogPagination": {
				"properties": {
					"total": {
						"type": "number",
						"format": "double"
					},
					"page": {
						"type": "number",
						"format": "double"
					},
					"limit": {
						"type": "number",
						"format": "double"
					},
					"totalPages": {
						"type": "number",
						"format": "double"
					}
				},
				"required": [
					"total",
					"page",
					"limit",
					"totalPages"
				],
				"type": "object",
				"additionalProperties": false
			},
			"LogResponse": {
				"properties": {
					"logs": {
						"items": {
							"$ref": "#/components/schemas/LogEntry"
						},
						"type": "array"
					},
					"pagination": {
						"$ref": "#/components/schemas/LogPagination"
					}
				},
				"required": [
					"logs",
					"pagination"
				],
				"type": "object",
				"additionalProperties": false
			},
			"SORT_ORDERS": {
				"enum": [
					"newest",
					"oldest"
				],
				"type": "string"
			},
			"MetricsResponse": {
				"properties": {
					"errorRates": {
						"items": {
							"properties": {
								"errorRate": {
									"type": "number",
									"format": "double"
								},
								"totalCount": {
									"type": "number",
									"format": "double"
								},
								"errorCount": {
									"type": "number",
									"format": "double"
								},
								"timestamp": {
									"type": "string"
								}
							},
							"required": [
								"errorRate",
								"totalCount",
								"errorCount",
								"timestamp"
							],
							"type": "object"
						},
						"type": "array"
					},
					"requestStats": {
						"properties": {
							"count": {
								"type": "number",
								"format": "double"
							},
							"p99": {
								"type": "number",
								"format": "double"
							},
							"p95": {
								"type": "number",
								"format": "double"
							},
							"avg": {
								"type": "number",
								"format": "double"
							},
							"max": {
								"type": "number",
								"format": "double"
							},
							"min": {
								"type": "number",
								"format": "double"
							}
						},
						"required": [
							"count",
							"p99",
							"p95",
							"avg",
							"max",
							"min"
						],
						"type": "object"
					},
					"topRequestIds": {
						"items": {
							"properties": {
								"errorCount": {
									"type": "number",
									"format": "double"
								},
								"avgDuration": {
									"type": "number",
									"format": "double"
								},
								"count": {
									"type": "number",
									"format": "double"
								},
								"requestId": {
									"type": "string"
								}
							},
							"required": [
								"errorCount",
								"avgDuration",
								"count",
								"requestId"
							],
							"type": "object"
						},
						"type": "array"
					},
					"userActivity": {
						"items": {
							"properties": {
								"errorCount": {
									"type": "number",
									"format": "double"
								},
								"requestCount": {
									"type": "number",
									"format": "double"
								},
								"userName": {
									"type": "string"
								},
								"userId": {
									"type": "string"
								}
							},
							"required": [
								"errorCount",
								"requestCount",
								"userId"
							],
							"type": "object"
						},
						"type": "array"
					},
					"timeWindow": {
						"properties": {
							"end": {
								"type": "string"
							},
							"start": {
								"type": "string"
							}
						},
						"required": [
							"end",
							"start"
						],
						"type": "object"
					}
				},
				"required": [
					"errorRates",
					"requestStats",
					"topRequestIds",
					"userActivity",
					"timeWindow"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Record_string.boolean_": {
				"properties": {},
				"additionalProperties": {
					"type": "boolean"
				},
				"type": "object",
				"description": "Construct a type with a set of properties K of type T"
			},
			"mongoose.Types.ObjectId": {
				"type": "string"
			},
			"LogReturnItem": {
				"properties": {
					"a": {
						"type": "string",
						"description": "The action",
						"example": "Action"
					},
					"ns": {
						"type": "string",
						"description": "The namespace (collection name/path)",
						"example": "organisation.Transactions"
					},
					"t": {
						"type": "string",
						"format": "date-time",
						"description": "The time the log was created",
						"example": "2021-01-01T00:00:00.000Z"
					},
					"d": {
						"properties": {},
						"additionalProperties": {},
						"type": "object",
						"description": "The HTTPRequest Data",
						"example": {
							"key": "value"
						}
					},
					"u": {
						"properties": {
							"n": {
								"type": "string"
							},
							"id": {
								"type": "string"
							}
						},
						"required": [
							"id"
						],
						"type": "object",
						"description": "The user performing the request"
					},
					"cd": {
						"properties": {},
						"additionalProperties": {},
						"type": "object",
						"nullable": true,
						"description": "The collection data (how to get the changed document)"
					},
					"params": {
						"properties": {
							"new": {},
							"old": {}
						},
						"required": [
							"new",
							"old"
						],
						"type": "object",
						"nullable": true,
						"description": "The old and new data for the request"
					},
					"p": {
						"properties": {},
						"additionalProperties": {},
						"type": "object",
						"nullable": true,
						"description": "The path params (?key=value)",
						"example": {
							"key": "value"
						}
					},
					"b": {
						"properties": {},
						"additionalProperties": {},
						"type": "object",
						"nullable": true,
						"description": "The body of the request",
						"example": {
							"key": "value"
						}
					},
					"s": {
						"type": "number",
						"format": "double",
						"description": "The status"
					},
					"_id": {
						"$ref": "#/components/schemas/mongoose.Types.ObjectId",
						"description": "The log ID",
						"example": "666666666666666666666666"
					}
				},
				"required": [
					"a",
					"t",
					"d",
					"u",
					"_id"
				],
				"type": "object",
				"additionalProperties": false
			},
			"LogSearchReturn": {
				"properties": {
					"logs": {
						"items": {
							"$ref": "#/components/schemas/LogReturnItem"
						},
						"type": "array",
						"description": "The logs array"
					},
					"pagination": {
						"properties": {
							"totalItems": {
								"type": "number",
								"format": "double"
							},
							"totalPages": {
								"type": "number",
								"format": "double"
							},
							"page": {
								"type": "number",
								"format": "double"
							}
						},
						"required": [
							"totalItems",
							"totalPages",
							"page"
						],
						"type": "object",
						"description": "The pagination object",
						"example": {
							"page": 1,
							"totalPages": 10,
							"totalItems": 100
						}
					}
				},
				"required": [
					"logs",
					"pagination"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ILocalization": {
				"properties": {
					"userMessage": {
						"type": "string",
						"description": "Plain text user-friendly message template with variable placeholders"
					},
					"htmlMessage": {
						"type": "string",
						"description": "HTML template for rich user messages with variable placeholders"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"IVariableDefinition": {
				"properties": {
					"name": {
						"type": "string",
						"description": "The name of the variable (e.g., \"userId\", \"resourceName\")"
					},
					"description": {
						"type": "string",
						"description": "Description of what this variable represents"
					},
					"required": {
						"type": "boolean",
						"description": "Whether this variable is required for the error message"
					},
					"defaultValue": {
						"type": "string",
						"description": "Default value if not provided (can use {{env.VAR_NAME}} syntax)"
					}
				},
				"required": [
					"name",
					"description"
				],
				"type": "object",
				"additionalProperties": false
			},
			"IErrorMessageMetadata": {
				"properties": {
					"deprecatedAt": {
						"type": "string",
						"format": "date-time",
						"description": "When this error message was deprecated (if applicable)"
					},
					"replacedBy": {
						"type": "string",
						"description": "The error code this message replaces (if deprecated)"
					},
					"notes": {
						"type": "string",
						"description": "Additional notes or context about this error"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ErrorMessageDTO": {
				"properties": {
					"errorCode": {
						"type": "string"
					},
					"category": {
						"type": "string"
					},
					"httpStatus": {
						"type": "number",
						"format": "double"
					},
					"internalMessage": {
						"type": "string"
					},
					"userMessage": {
						"type": "string"
					},
					"htmlMessage": {
						"type": "string"
					},
					"localizations": {
						"properties": {},
						"additionalProperties": {
							"$ref": "#/components/schemas/ILocalization"
						},
						"type": "object"
					},
					"variables": {
						"items": {
							"$ref": "#/components/schemas/IVariableDefinition"
						},
						"type": "array"
					},
					"isActive": {
						"type": "boolean"
					},
					"metadata": {
						"$ref": "#/components/schemas/IErrorMessageMetadata"
					},
					"createdAt": {
						"type": "string",
						"format": "date-time"
					},
					"updatedAt": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"errorCode",
					"category",
					"httpStatus",
					"internalMessage",
					"userMessage",
					"htmlMessage",
					"isActive",
					"createdAt",
					"updatedAt"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ErrorMessageCreateParams": {
				"properties": {
					"errorCode": {
						"type": "string",
						"description": "Unique identifier for the error (required)"
					},
					"category": {
						"type": "string",
						"description": "Category for grouping errors (defaults to 'general')"
					},
					"httpStatus": {
						"type": "number",
						"format": "double",
						"description": "HTTP status code (defaults to 500)"
					},
					"internalMessage": {
						"type": "string",
						"description": "Internal/developer message (defaults to 'An error occurred')"
					},
					"userMessage": {
						"type": "string",
						"description": "Plain text user message (has default fallback)"
					},
					"htmlMessage": {
						"type": "string",
						"description": "HTML user message (has default fallback)"
					},
					"localizations": {
						"properties": {},
						"additionalProperties": {
							"$ref": "#/components/schemas/ILocalization"
						},
						"type": "object",
						"description": "Localization overrides for different languages/locales"
					},
					"variables": {
						"items": {
							"$ref": "#/components/schemas/IVariableDefinition"
						},
						"type": "array",
						"description": "Variable definitions for interpolation"
					},
					"isActive": {
						"type": "boolean",
						"description": "Whether the error is active (defaults to true)"
					},
					"metadata": {
						"$ref": "#/components/schemas/IErrorMessageMetadata",
						"description": "Additional metadata"
					}
				},
				"required": [
					"errorCode"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ErrorMessageUpdateParams": {
				"properties": {
					"category": {
						"type": "string"
					},
					"httpStatus": {
						"type": "number",
						"format": "double"
					},
					"internalMessage": {
						"type": "string"
					},
					"userMessage": {
						"type": "string"
					},
					"htmlMessage": {
						"type": "string"
					},
					"localizations": {
						"properties": {},
						"additionalProperties": {
							"$ref": "#/components/schemas/ILocalization"
						},
						"type": "object"
					},
					"variables": {
						"items": {
							"$ref": "#/components/schemas/IVariableDefinition"
						},
						"type": "array"
					},
					"isActive": {
						"type": "boolean"
					},
					"metadata": {
						"$ref": "#/components/schemas/IErrorMessageMetadata"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ImportTranslationsResult": {
				"properties": {
					"total": {
						"type": "number",
						"format": "double"
					},
					"new": {
						"type": "number",
						"format": "double"
					},
					"updated": {
						"type": "number",
						"format": "double"
					},
					"unchanged": {
						"type": "number",
						"format": "double"
					},
					"invalid": {
						"type": "number",
						"format": "double"
					},
					"errors": {
						"items": {
							"type": "string"
						},
						"type": "array"
					}
				},
				"required": [
					"total",
					"new",
					"updated",
					"unchanged",
					"invalid",
					"errors"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ImportTranslationItem": {
				"properties": {
					"errorCode": {
						"type": "string"
					},
					"locale": {
						"type": "string"
					},
					"userMessage": {
						"type": "string"
					},
					"htmlMessage": {
						"type": "string"
					}
				},
				"required": [
					"errorCode",
					"locale"
				],
				"type": "object",
				"additionalProperties": false
			},
			"InterpolateRequest": {
				"description": "Request body for interpolation endpoint",
				"properties": {
					"errorCode": {
						"type": "string"
					},
					"variables": {
						"properties": {},
						"additionalProperties": {
							"anyOf": [
								{
									"type": "string"
								},
								{
									"type": "number",
									"format": "double"
								},
								{
									"type": "boolean"
								}
							]
						},
						"type": "object"
					},
					"locale": {
						"type": "string"
					}
				},
				"required": [
					"errorCode"
				],
				"type": "object",
				"additionalProperties": false
			},
			"DocManifest": {
				"description": "Documentation entry from manifest",
				"properties": {
					"id": {
						"type": "string"
					},
					"title": {
						"type": "string"
					},
					"section": {
						"type": "string"
					},
					"subsection": {
						"type": "string"
					},
					"subsectionOrder": {
						"type": "number",
						"format": "double"
					},
					"order": {
						"type": "number",
						"format": "double"
					},
					"file": {
						"type": "string"
					}
				},
				"required": [
					"id",
					"title",
					"section",
					"order",
					"file"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ClientRegistrationResponse": {
				"properties": {
					"encryptedCredentials": {
						"type": "string"
					}
				},
				"required": [
					"encryptedCredentials"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ClientRegistrationRequest": {
				"properties": {
					"clientId": {
						"type": "string"
					},
					"resourceName": {
						"type": "string"
					},
					"publicKey": {
						"type": "string"
					},
					"description": {
						"type": "string"
					}
				},
				"required": [
					"clientId",
					"resourceName",
					"publicKey"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ApiKeyResponse": {
				"properties": {
					"apiKey": {
						"type": "string"
					}
				},
				"required": [
					"apiKey"
				],
				"type": "object",
				"additionalProperties": false
			},
			"CredentialExample": {
				"properties": {
					"_id": {
						"type": "string"
					},
					"applicationId": {
						"type": "string"
					},
					"applicationName": {
						"type": "string"
					},
					"apiKey": {
						"type": "string"
					},
					"isActive": {
						"type": "boolean"
					},
					"lastUsed": {
						"type": "string",
						"format": "date-time"
					},
					"createdAt": {
						"type": "string",
						"format": "date-time"
					},
					"updatedAt": {
						"type": "string",
						"format": "date-time"
					},
					"description": {
						"type": "string"
					},
					"clientId": {
						"type": "string"
					},
					"resourceName": {
						"type": "string"
					},
					"userId": {
						"type": "string"
					},
					"registeredAt": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"_id",
					"applicationId",
					"applicationName",
					"apiKey",
					"isActive",
					"lastUsed",
					"createdAt",
					"updatedAt"
				],
				"type": "object",
				"additionalProperties": false
			},
			"CredentialsResponse": {
				"properties": {
					"credentials": {
						"items": {
							"$ref": "#/components/schemas/CredentialExample"
						},
						"type": "array"
					}
				},
				"required": [
					"credentials"
				],
				"type": "object",
				"additionalProperties": false
			},
			"RevokeCredentialResponse": {
				"properties": {
					"success": {
						"type": "boolean"
					},
					"message": {
						"type": "string"
					}
				},
				"required": [
					"success",
					"message"
				],
				"type": "object",
				"additionalProperties": false
			},
			"UpdateCredentialDescriptionBody": {
				"properties": {
					"description": {
						"type": "string"
					}
				},
				"required": [
					"description"
				],
				"type": "object",
				"additionalProperties": false
			},
			"LoginResponse": {
				"properties": {
					"accessToken": {
						"type": "string"
					},
					"idToken": {
						"type": "string"
					},
					"refreshToken": {
						"type": "string"
					},
					"user": {
						"properties": {
							"groups": {
								"items": {
									"type": "string"
								},
								"type": "array"
							},
							"sub": {
								"type": "string"
							},
							"email_verified": {
								"type": "boolean"
							},
							"name": {
								"type": "string"
							},
							"email": {
								"type": "string"
							},
							"username": {
								"type": "string"
							}
						},
						"required": [
							"groups",
							"sub",
							"email_verified",
							"name",
							"email",
							"username"
						],
						"type": "object"
					}
				},
				"required": [
					"accessToken",
					"idToken",
					"user"
				],
				"type": "object",
				"additionalProperties": false
			},
			"LoginRequest": {
				"properties": {
					"email": {
						"type": "string"
					},
					"password": {
						"type": "string"
					}
				},
				"required": [
					"email",
					"password"
				],
				"type": "object",
				"additionalProperties": false
			},
			"UserInfoResponse": {
				"properties": {
					"email": {
						"type": "string"
					},
					"username": {
						"type": "string"
					},
					"name": {
						"type": "string"
					},
					"email_verified": {
						"type": "boolean"
					},
					"role": {
						"type": "string"
					},
					"department": {
						"type": "string"
					},
					"given_name": {
						"type": "string"
					},
					"family_name": {
						"type": "string"
					},
					"phone_number": {
						"type": "string"
					},
					"phone_number_verified": {
						"type": "boolean"
					},
					"groups": {
						"items": {
							"type": "string"
						},
						"type": "array"
					}
				},
				"type": "object",
				"additionalProperties": {}
			},
			"RefreshTokenRequest": {
				"properties": {
					"refreshToken": {
						"type": "string"
					}
				},
				"required": [
					"refreshToken"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Record_RESOURCES.string-Array_": {
				"properties": {
					"CAD": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"CADDESIGN": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"SEGMENTATION": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"PLANNER": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"LAUNCHER": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"SCANNER": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"CASECLOUD": {
						"items": {
							"type": "string"
						},
						"type": "array"
					}
				},
				"required": [
					"CAD",
					"CADDESIGN",
					"SEGMENTATION",
					"PLANNER",
					"LAUNCHER",
					"SCANNER",
					"CASECLOUD"
				],
				"type": "object",
				"description": "Construct a type with a set of properties K of type T"
			},
			"ResourceAppMappingValue": {
				"$ref": "#/components/schemas/Record_RESOURCES.string-Array_"
			},
			"AppSettingDTO_ResourceAppMappingValue_": {
				"properties": {
					"key": {
						"type": "string"
					},
					"value": {
						"$ref": "#/components/schemas/ResourceAppMappingValue"
					},
					"createdAt": {
						"type": "string",
						"format": "date-time"
					},
					"updatedAt": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"key",
					"value",
					"createdAt",
					"updatedAt"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Pick_IAction.Exclude_keyofIAction._id__": {
				"properties": {
					"name": {
						"type": "string",
						"description": "The name of the action"
					},
					"value": {
						"type": "number",
						"format": "double",
						"description": "The credit value of the action"
					},
					"active": {
						"type": "boolean",
						"description": "Whether the action is active"
					},
					"minVersion": {
						"type": "string",
						"description": "The minimum version of the action"
					}
				},
				"required": [
					"name",
					"value",
					"active"
				],
				"type": "object",
				"description": "From T, pick a set of properties whose keys are in the union K"
			},
			"Omit_IAction._id_": {
				"$ref": "#/components/schemas/Pick_IAction.Exclude_keyofIAction._id__",
				"description": "Construct a type with the properties of T except for those in type K."
			},
			"ActionInput": {
				"properties": {
					"name": {
						"type": "string",
						"description": "The name of the action"
					},
					"active": {
						"type": "boolean",
						"description": "Whether the action is active"
					},
					"value": {
						"type": "number",
						"format": "double",
						"description": "The credit value of the action"
					},
					"minVersion": {
						"type": "string",
						"description": "The minimum version of the action"
					}
				},
				"required": [
					"name"
				],
				"type": "object",
				"additionalProperties": false
			}
		},
		"securitySchemes": {
			"jwt": {
				"type": "http",
				"scheme": "bearer",
				"bearerFormat": "JWT",
				"description": "Enter JWT Bearer Token"
			}
		}
	},
	"info": {
		"title": "Atomica User Resources",
		"version": "1.1.0",
		"description": "Atomica user resources management system for managing user access to apps such as Atomica Implant Planner, Atomica Segmentation, and Atomica Guide Design.",
		"license": {
			"name": "ISC"
		},
		"contact": {
			"name": "Atomica.Ai",
			"email": "Info@Atomica.Ai",
			"url": "https://atomica.ai/"
		}
	},
	"paths": {
		"/users/me": {
			"get": {
				"operationId": "GetMe",
				"responses": {
					"200": {
						"description": "User details including organization and tags",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IMeResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"OrgId": "1234567890",
											"UserId": "1234567890",
											"Tags": [
												"Planner",
												"Admin"
											]
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves authenticated user's information.",
				"summary": "Users - Profile - Get current user",
				"tags": [
					"Usable-Externally",
					"Client-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/users/{userId}/token-scopes": {
			"get": {
				"operationId": "GetUserTokenScopes",
				"responses": {
					"200": {
						"description": "User's resource access configuration",
						"content": {
							"application/json": {
								"schema": {
									"properties": {},
									"additionalProperties": {},
									"type": "object"
								},
								"examples": {
									"Example 1": {
										"value": {}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves resource access scopes for a user.",
				"summary": "Users - Access - Get resource scopes",
				"tags": [
					"Client-Users"
				],
				"security": [],
				"parameters": [
					{
						"description": "Cognito user identifier",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					}
				]
			}
		},
		"/users/send-verification-sms": {
			"get": {
				"operationId": "SendVerificationSms",
				"responses": {
					"200": {
						"description": "Verification status",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetUserAttributeVerificationCodeCommandOutput"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "User Not Found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Initiates SMS verification process.",
				"summary": "Users - Verification - Send SMS code",
				"tags": [
					"Client-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/users/verify-phone-number": {
			"post": {
				"operationId": "VerifyPhoneNumber",
				"responses": {
					"200": {
						"description": "Verification result",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/VerifyUserAttributeCommandOutput"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "User Not Found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Validates SMS verification code.",
				"summary": "Users - Verification - Verify phone",
				"tags": [
					"Client-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"code": {
										"type": "string"
									}
								},
								"required": [
									"code"
								],
								"type": "object"
							}
						}
					}
				}
			}
		},
		"/api/admin/users": {
			"post": {
				"operationId": "SearchUsers",
				"responses": {
					"200": {
						"description": "The search results",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ISearchUsersResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"users": [],
											"pageNumber": 1,
											"pageSize": 10,
											"totalCount": 0,
											"totalPages": 0
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint searches for users based on specified criteria.",
				"summary": "Admin - Users - Search users",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "The search parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SearchParams",
								"description": "The search parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/users/create": {
			"post": {
				"operationId": "CreateUser",
				"responses": {
					"200": {
						"description": "- The created user",
						"content": {
							"application/json": {
								"schema": {
									"allOf": [
										{
											"$ref": "#/components/schemas/IOrganisation"
										}
									],
									"nullable": true
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "1234567890",
											"Active": true,
											"Users": [],
											"Resources": [],
											"Transactions": []
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint creates a new user. The request body should contain the user details.",
				"summary": "Admin - Users - Create user",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "- The user creation parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/UserCreateParams",
								"description": "- The user creation parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/users/{userId}": {
			"get": {
				"operationId": "GetUserDetails",
				"responses": {
					"200": {
						"description": "- The user details",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IUserDetailsResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "1234567890",
											"User": {
												"_id": "1234567890",
												"Email": "user@example.com",
												"FirstName": "John",
												"LastName": "Doe",
												"UserId": "1234567890",
												"Active": true,
												"Tags": [
													"Planner",
													"Admin"
												]
											},
											"Transaction": {
												"TransactionCount": 100,
												"PaidTransactionCount": 50,
												"UnPaidTransactionCount": 50,
												"CancelledTransactionCount": 0
											},
											"Balance": {
												"USD": 100,
												"EUR": 50
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint retrieves the details of a user based on the provided user ID.",
				"summary": "Admin - Users - Get user details",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					}
				]
			},
			"put": {
				"operationId": "UpdateUserDetails",
				"responses": {
					"200": {
						"description": "- The updated user details",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IUserDetailsResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "1234567890",
											"User": {
												"_id": "1234567890",
												"Email": "user@example.com",
												"FirstName": "John",
												"LastName": "Doe",
												"UserId": "1234567890",
												"Active": true,
												"Tags": [
													"Planner",
													"Admin"
												]
											},
											"Transaction": {
												"TransactionCount": 100,
												"PaidTransactionCount": 50,
												"UnPaidTransactionCount": 50,
												"CancelledTransactionCount": 0
											},
											"Balance": {
												"USD": 100,
												"EUR": 50
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint updates the user details. The request body should contain the user details.",
				"summary": "Admin - Users - Update user details",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					}
				],
				"requestBody": {
					"description": "- The user update parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/UserUpdateParams",
								"description": "- The user update parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/users/{userId}/resources": {
			"get": {
				"operationId": "GetUserAllResources",
				"responses": {
					"200": {
						"description": "- The user resources",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"$ref": "#/components/schemas/IUserResourceAdmin"
									},
									"type": "array"
								},
								"examples": {
									"Example 1": {
										"value": [
											{
												"_id": "1234567890",
												"ResourceName": "ResourceName",
												"Scopes": [
													{
														"_id": "66eabfd712ecded9abd9b88a",
														"key": "NumberScope",
														"type": "number",
														"value": 1
													}
												],
												"Active": true,
												"Actions": [],
												"AccessDefault": true,
												"DownloadLink": "https://example.com",
												"IconUrl": "https://example.com"
											}
										]
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint retrieves all resources for a user.",
				"summary": "Admin - Users - Get all user resources",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					}
				]
			}
		},
		"/api/admin/users/{userId}/resources/{resourceName}": {
			"get": {
				"operationId": "GetUserResource",
				"responses": {
					"200": {
						"description": "- The user resource",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IUserResourceDetailsResponseAdmin"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "1234567890",
											"ResourceName": "ResourceName",
											"Scopes": [
												{
													"_id": "66eabfd712ecded9abd9b88a",
													"key": "NumberScope",
													"type": "number",
													"value": 1
												}
											],
											"Active": true
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint retrieves the details of a specific resource for a user.",
				"summary": "Admin - Get user resource",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					},
					{
						"description": "- The name of the resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				]
			},
			"post": {
				"operationId": "AddUserResource",
				"responses": {
					"200": {
						"description": "- The user resource",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"$ref": "#/components/schemas/IUserResourceAdmin"
									},
									"type": "array"
								},
								"examples": {
									"Example 1": {
										"value": [
											{
												"_id": "1234567890",
												"ResourceName": "ResourceName",
												"Scopes": [
													{
														"_id": "66eabfd712ecded9abd9b88a",
														"key": "NumberScope",
														"type": "number",
														"value": 1
													}
												],
												"Active": true,
												"Actions": [],
												"AccessDefault": true,
												"DownloadLink": "https://example.com",
												"IconUrl": "https://example.com"
											}
										]
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint adds a user resource. The request body should contain the resource name.",
				"summary": "Admin - Users  - Add user resource",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					},
					{
						"description": "- The name of the resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				]
			},
			"put": {
				"operationId": "UpdateUserResource",
				"responses": {
					"200": {
						"description": "- The user resource",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"$ref": "#/components/schemas/IUserResourceAdmin"
									},
									"type": "array"
								},
								"examples": {
									"Example 1": {
										"value": [
											{
												"_id": "1234567890",
												"ResourceName": "ResourceName",
												"Scopes": [
													{
														"_id": "66eabfd712ecded9abd9b88a",
														"key": "NumberScope",
														"type": "number",
														"value": 1
													}
												],
												"Active": true,
												"Actions": [],
												"AccessDefault": true,
												"DownloadLink": "https://example.com",
												"IconUrl": "https://example.com"
											}
										]
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint updates the user resource. The request body should contain the resource details.",
				"summary": "Admin - Users - Update user resource",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					},
					{
						"description": "- The name of the resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"Scopes": {
										"$ref": "#/components/schemas/UserScopes"
									}
								},
								"required": [
									"Scopes"
								],
								"type": "object"
							}
						}
					}
				}
			},
			"delete": {
				"operationId": "DeleteUserResource",
				"responses": {
					"200": {
						"description": "- The user resource",
						"content": {
							"application/json": {
								"schema": {
									"type": "boolean"
								},
								"examples": {
									"Example 1": {
										"value": [
											{
												"_id": "1234567890",
												"ResourceName": "ResourceName",
												"Scopes": {
													"key": "value"
												},
												"Active": true,
												"Actions": [],
												"AccessDefault": true,
												"DownloadLink": "https://example.com",
												"IconUrl": "https://example.com"
											}
										]
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint deletes a user resource. The request body should contain the resource name.",
				"summary": "Admin - Users - Delete user resource",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					},
					{
						"description": "- The name of the resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				]
			}
		},
		"/api/admin/users/{userId}/resources/{resourceName}/toggle": {
			"put": {
				"operationId": "ToggleUserResource",
				"responses": {
					"200": {
						"description": "- The user resource",
						"content": {
							"application/json": {
								"schema": {},
								"examples": {
									"Example 1": {
										"value": [
											{
												"_id": "1234567890",
												"ResourceName": "ResourceName",
												"Scopes": {
													"key": "value"
												},
												"Active": true,
												"Actions": [],
												"AccessDefault": true,
												"DownloadLink": "https://example.com",
												"IconUrl": "https://example.com"
											}
										]
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint toggles the user resource. The request body should contain the resource name.",
				"summary": "Admin - Users - Toggle user resource",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					},
					{
						"description": "- The name of the resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				]
			}
		},
		"/api/admin/users/{userId}/transactions": {
			"post": {
				"operationId": "SearchUserTransactions",
				"responses": {
					"200": {
						"description": "- The user transactions",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IUserTransactionsResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"transactions": [],
											"pageNumber": 1,
											"pageSize": 10,
											"totalCount": 0,
											"totalPages": 0
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint retrieves the transactions for a user based on the provided search parameters.",
				"summary": "Admin - Users - Search user transactions",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					}
				],
				"requestBody": {
					"description": "- The search parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SearchParams",
								"description": "- The search parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/users/{userId}/transactions/export": {
			"get": {
				"operationId": "ExportUserTransactions",
				"responses": {
					"200": {
						"description": "OK"
					},
					"204": {
						"description": "No content"
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint exports user transactions to CSV format.",
				"summary": "Admin - Users - Export transactions to CSV",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "The user's ID",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					},
					{
						"description": "Whether to spread extra info into columns",
						"in": "query",
						"name": "spreadExtraInfo",
						"required": false,
						"schema": {
							"type": "boolean"
						},
						"example": true
					}
				]
			}
		},
		"/api/admin/users/{userId}/transactions/{transactionId}": {
			"get": {
				"operationId": "GetUserTransaction",
				"responses": {
					"200": {
						"description": "- The user transaction",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ITransaction"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "1234567890",
											"UserId": "1234567890",
											"EventName": "Event",
											"ActionName": "Action",
											"TransactionDate": "2024-12-03T13:25:40.957Z",
											"ExtraInfo": {}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint retrieves the details of a specific transaction for a user.",
				"summary": "Admin - Users - Get user transaction",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					},
					{
						"description": "- The id of the transaction",
						"in": "path",
						"name": "transactionId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"example": "1234567890"
					}
				]
			},
			"put": {
				"operationId": "UpdateUserTransaction",
				"responses": {
					"200": {
						"description": "- The user transaction",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ITransaction"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "1234567890",
											"UserId": "1234567890",
											"EventName": "Event",
											"ActionName": "Action",
											"TransactionDate": "2024-12-03T13:25:40.957Z",
											"ExtraInfo": {}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "This endpoint updates the user transaction. The request body should contain the transaction status.",
				"summary": "Admin - Users - Update user transaction",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The cognito id of the user",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
							},
							"Example 2": {
								"value": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b"
							},
							"Example 3": {
								"value": "3adeb475-7eb6-4f89-a0da-6b973e51ce5c"
							},
							"Example 4": {
								"value": "8bf5467b-332b-4867-956e-cd583afe13fc"
							}
						}
					},
					{
						"description": "- The id of the transaction",
						"in": "path",
						"name": "transactionId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"example": "1234567890"
					}
				],
				"requestBody": {
					"description": "- The transaction status",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"Status": {
										"$ref": "#/components/schemas/TRANSACTION_STATUS"
									}
								},
								"required": [
									"Status"
								],
								"type": "object",
								"description": "- The transaction status"
							}
						}
					}
				}
			}
		},
		"/api/admin/users/bulk-update": {
			"post": {
				"operationId": "BulkUpdateUsers",
				"responses": {
					"200": {
						"description": "- The bulk update results with per-user success/failure status",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/BulkUserResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"totalUsers": 2,
											"successfulUsers": 2,
											"failedUsers": 0,
											"results": [
												{
													"userId": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a",
													"success": true,
													"operations": {
														"accountStatus": {
															"success": true
														},
														"tags": {
															"success": true
														}
													}
												},
												{
													"userId": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b",
													"success": true,
													"operations": {
														"accountStatus": {
															"success": true
														},
														"tags": {
															"success": true
														}
													}
												}
											]
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					}
				},
				"description": "This endpoint performs bulk updates on multiple users. Supports enabling/disabling accounts, managing tags, resources, and scopes.",
				"summary": "Admin - Users - Bulk update users",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "- The bulk operation parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/BulkUserOperation",
								"description": "- The bulk operation parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/users/bulk-update-transactional": {
			"post": {
				"operationId": "BulkUpdateUsersTransactional",
				"responses": {
					"200": {
						"description": "- The bulk update results (all succeed or all fail)",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/BulkUserResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"totalUsers": 2,
											"successfulUsers": 2,
											"failedUsers": 0,
											"results": [
												{
													"userId": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a",
													"success": true,
													"operations": {
														"accountStatus": {
															"success": true
														},
														"tags": {
															"success": true
														}
													}
												},
												{
													"userId": "ea11a4e0-1238-4c47-a6ec-5a3234485a6b",
													"success": true,
													"operations": {
														"accountStatus": {
															"success": true
														},
														"tags": {
															"success": true
														}
													}
												}
											]
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request - Transaction aborted if any user fails"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					}
				},
				"description": "This endpoint performs transactional bulk updates on multiple users. All changes are atomic - if any user fails, all changes are rolled back.",
				"summary": "Admin - Users - Bulk update users (transactional)",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "- The bulk operation parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/BulkUserOperation",
								"description": "- The bulk operation parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/users/bulk-update/account-status": {
			"post": {
				"operationId": "BulkUpdateAccountStatus",
				"responses": {
					"200": {
						"description": "- The bulk update results",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/BulkUserResponse"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					}
				},
				"description": "Convenience endpoint for bulk account status updates only.",
				"summary": "Admin - Users - Bulk update account status",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "- The request body with userIds and enable flag",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"enable": {
										"type": "boolean"
									},
									"userIds": {
										"items": {
											"type": "string"
										},
										"type": "array"
									}
								},
								"required": [
									"enable",
									"userIds"
								],
								"type": "object",
								"description": "- The request body with userIds and enable flag"
							}
						}
					}
				}
			}
		},
		"/api/admin/users/bulk-update/tags": {
			"post": {
				"operationId": "BulkUpdateTags",
				"responses": {
					"200": {
						"description": "- The bulk update results",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/BulkUserResponse"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					}
				},
				"description": "Convenience endpoint for bulk tag updates only.",
				"summary": "Admin - Users - Bulk update tags",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "- The request body with userIds and tags to add/remove",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"removeTags": {
										"items": {
											"type": "string"
										},
										"type": "array"
									},
									"addTags": {
										"items": {
											"type": "string"
										},
										"type": "array"
									},
									"userIds": {
										"items": {
											"type": "string"
										},
										"type": "array"
									}
								},
								"required": [
									"userIds"
								],
								"type": "object",
								"description": "- The request body with userIds and tags to add/remove"
							}
						}
					}
				}
			}
		},
		"/api/admin/users/bulk-update/resources": {
			"post": {
				"operationId": "BulkUpdateResources",
				"responses": {
					"200": {
						"description": "- The bulk update results",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/BulkUserResponse"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					}
				},
				"description": "Convenience endpoint for bulk resource updates only.",
				"summary": "Admin - Users - Bulk update resources",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "- The request body with userIds and resources to add/remove/enable/disable",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"disableResources": {
										"items": {
											"type": "string"
										},
										"type": "array"
									},
									"enableResources": {
										"items": {
											"type": "string"
										},
										"type": "array"
									},
									"removeResources": {
										"items": {
											"type": "string"
										},
										"type": "array"
									},
									"addResources": {
										"items": {
											"type": "string"
										},
										"type": "array"
									},
									"userIds": {
										"items": {
											"type": "string"
										},
										"type": "array"
									}
								},
								"required": [
									"userIds"
								],
								"type": "object",
								"description": "- The request body with userIds and resources to add/remove/enable/disable"
							}
						}
					}
				}
			}
		},
		"/api/admin/users/bulk-update/scopes": {
			"post": {
				"operationId": "BulkUpdateScopes",
				"responses": {
					"200": {
						"description": "- The bulk update results",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/BulkUserResponse"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					}
				},
				"description": "Convenience endpoint for bulk scope updates only.",
				"summary": "Admin - Users - Bulk update scopes",
				"tags": [
					"Admin-Users"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "- The request body with userIds and scope operations",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"updateScopes": {
										"items": {
											"$ref": "#/components/schemas/ScopeUpdate"
										},
										"type": "array"
									},
									"removeScopes": {
										"items": {
											"$ref": "#/components/schemas/ScopeAddRemove"
										},
										"type": "array"
									},
									"addScopes": {
										"items": {
											"$ref": "#/components/schemas/ScopeAddRemove"
										},
										"type": "array"
									},
									"userIds": {
										"items": {
											"type": "string"
										},
										"type": "array"
									}
								},
								"required": [
									"userIds"
								],
								"type": "object",
								"description": "- The request body with userIds and scope operations"
							}
						}
					}
				}
			}
		},
		"/test/secure": {
			"post": {
				"operationId": "TestSecureEndpoint",
				"responses": {
					"200": {
						"description": "The test response containing the message and timestamp",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/TestResponse"
								}
							}
						}
					}
				},
				"description": "This endpoint tests the HMAC authentication.\nIt accepts a message in the request body and returns it with a timestamp.",
				"summary": "Client - HMAC - Test secure endpoint",
				"tags": [
					"Client-HMAC"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "The API key for authentication",
						"in": "header",
						"name": "x-api-key",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "The request timestamp",
						"in": "header",
						"name": "x-timestamp",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "The unique request ID",
						"in": "header",
						"name": "x-request-id",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "The HMAC signature",
						"in": "header",
						"name": "x-signature",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"description": "The request body containing the message",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/TestRequest",
								"description": "The request body containing the message"
							}
						}
					}
				}
			}
		},
		"/api/admin/tags": {
			"get": {
				"operationId": "GetTags",
				"responses": {
					"200": {
						"description": "- The tags",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"allOf": [
											{
												"$ref": "#/components/schemas/mongoose.Document_unknown.__.ITag.__.___"
											},
											{
												"$ref": "#/components/schemas/ITag"
											},
											{
												"$ref": "#/components/schemas/Required___id-string__"
											},
											{
												"properties": {
													"__v": {
														"type": "number",
														"format": "double"
													}
												},
												"required": [
													"__v"
												],
												"type": "object"
											}
										]
									},
									"type": "array"
								},
								"examples": {
									"Example 1": {
										"value": [
											{
												"_id": "666666666666666666666666",
												"TagName": "Planner",
												"Color": "#000000"
											}
										]
									}
								}
							}
						}
					},
					"404": {
						"description": "Tags not found"
					}
				},
				"description": "Retrieves all tags from the database.",
				"summary": "Admin - Tags - Get all tags",
				"tags": [
					"Admin-Tags"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/tags/{tagName}": {
			"post": {
				"operationId": "AddTag",
				"responses": {
					"200": {
						"description": "The created tag",
						"content": {
							"application/json": {
								"schema": {
									"allOf": [
										{
											"$ref": "#/components/schemas/mongoose.Document_unknown.__.ITag.__.___"
										},
										{
											"$ref": "#/components/schemas/ITag"
										},
										{
											"$ref": "#/components/schemas/Required___id-string__"
										},
										{
											"properties": {
												"__v": {
													"type": "number",
													"format": "double"
												}
											},
											"required": [
												"__v"
											],
											"type": "object"
										}
									]
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "666666666666666666666666",
											"TagName": "Planner",
											"Color": "#000000"
										}
									}
								}
							}
						}
					},
					"201": {
						"description": "Created"
					},
					"400": {
						"description": "Bad Request"
					},
					"404": {
						"description": "Tag not found"
					}
				},
				"description": "Creates a new tag with the specified name and parameters.",
				"summary": "Admin - Tags - Create new tag",
				"tags": [
					"Admin-Tags"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "The name of the tag",
						"in": "path",
						"name": "tagName",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"description": "The tag parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/TagParams",
								"description": "The tag parameters"
							}
						}
					}
				}
			},
			"delete": {
				"operationId": "DeleteTag",
				"responses": {
					"200": {
						"description": "- The deleted tag",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/DeleteResult"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "666666666666666666666666",
											"TagName": "Planner",
											"Color": "#000000"
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"404": {
						"description": "Tag not found"
					}
				},
				"description": "Delete a tag by name",
				"summary": "Admin - Tags - Delete a tag",
				"tags": [
					"Admin-Tags"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The tag name",
						"in": "path",
						"name": "tagName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"example": "Planner"
					}
				]
			}
		},
		"/": {
			"get": {
				"operationId": "GetAllResources",
				"responses": {
					"200": {
						"description": "List of accessible resources with their display names and icons",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"properties": {
											"IconUrl": {
												"type": "string"
											},
											"DisplayName": {
												"type": "string"
											},
											"ResourceName": {
												"type": "string"
											}
										},
										"required": [
											"IconUrl",
											"DisplayName",
											"ResourceName"
										],
										"type": "object"
									},
									"type": "array"
								},
								"examples": {
									"Example 1": {
										"value": [
											{
												"ResourceName": "PLANNER",
												"DisplayName": "PLANNER",
												"IconUrl": "https://placehold.co/400x100"
											},
											{
												"ResourceName": "LAUNCHER",
												"DisplayName": "LAUNCHER",
												"IconUrl": "https://placehold.co/400x100"
											}
										]
									}
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Retrieves available resources for the authenticated user.",
				"summary": "Client - Resources - List available resources",
				"tags": [
					"Client-Resources",
					"Usable-Externally"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/{resourceName}/access": {
			"get": {
				"operationId": "GetResourceAccess",
				"responses": {
					"200": {
						"description": "Access details and scopes",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Record_string.any_"
								},
								"examples": {
									"Example 1": {
										"value": {
											"resourceName": "CAD",
											"scopes": {
												"EnableSurgicalGuideExport": true,
												"AvailableSurgicalGuideExport": "2",
												"ExpireIn": "2025-08-05T19:04:35.106Z"
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "User does not have access to resource",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Resource not found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"422": {
						"description": "Unprocessable Entity",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Verifies user's access to a specific resource.",
				"summary": "Client - Access - Check resource access",
				"tags": [
					"Client-Resources",
					"Usable-Externally"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Name of the resource to check",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				]
			}
		},
		"/{resourceName}/download": {
			"get": {
				"operationId": "DownloadResource",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {}
							}
						}
					},
					"302": {
						"description": "Found"
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Resource not found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"422": {
						"description": "Unprocessable Entity",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Downloads default version of a resource.",
				"summary": "Client - Download - Get resource default version",
				"tags": [
					"Client-Resources",
					"Usable-Externally"
				],
				"security": [],
				"parameters": [
					{
						"description": "Target resource name",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				]
			}
		},
		"/{resourceName}/download/{slug}": {
			"get": {
				"operationId": "DownloadResourceBySlug",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {}
							}
						}
					},
					"302": {
						"description": "Found"
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Resource not found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"422": {
						"description": "Unprocessable Entity",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Downloads specific version of a resource by slug.",
				"summary": "Client - Download - Get resource by version",
				"tags": [
					"Client-Resources",
					"Usable-Externally"
				],
				"security": [],
				"parameters": [
					{
						"description": "Target resource name",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					},
					{
						"description": "Version identifier",
						"in": "path",
						"name": "slug",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "windows"
							},
							"Example 2": {
								"value": "mac"
							},
							"Example 3": {
								"value": "linux"
							}
						}
					}
				]
			}
		},
		"/{resourceName}/action/{actionName}": {
			"post": {
				"operationId": "TriggerAction",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ExportActionResult"
								},
								"examples": {
									"Surgical Guide Export": {
										"value": {
											"request": {
												"resourceName": "Planner",
												"actionName": "ExportSurgicalGuide",
												"body": {
													"plan": {
														"uuid": "1234567890",
														"name": "Plan Name"
													},
													"patient": {
														"uuid": "1234567890",
														"name": "Patient Name",
														"dpsx_file_name": "Patient File Name"
													},
													"guide": {
														"uuid": "1234567890",
														"implants": [
															"1234567890",
															"1234567890"
														],
														"fixation_pins": [
															"1234567890",
															"1234567890"
														]
													},
													"application": {
														"name": "CAD",
														"version": "1.0.0"
													}
												}
											}
										}
									},
									"Stackable Guide Export": {
										"value": {
											"request": {
												"resourceName": "Planner",
												"actionName": "ExportStackableGuide",
												"body": {
													"plan": {
														"uuid": "1234567890",
														"name": "Plan Name"
													},
													"patient": {
														"uuid": "1234567890",
														"name": "Patient Name",
														"dpsx_file_name": "Patient File Name"
													},
													"guide": {
														"uuid": "1234567890",
														"implants": [
															"1234567890",
															"1234567890"
														],
														"fixation_pins": [
															"1234567890",
															"1234567890"
														]
													},
													"application": {
														"name": "CAD",
														"version": "1.0.0"
													}
												}
											}
										}
									},
									"Segmented Surface Export": {
										"value": {
											"request": {
												"resourceName": "Planner",
												"actionName": "ExportSegmentedSurface",
												"body": {
													"plan": {
														"uuid": "1234567890",
														"name": "Plan Name"
													},
													"patient": {
														"uuid": "1234567890",
														"name": "Patient Name",
														"dpsx_file_name": "Patient File Name"
													},
													"surface": {
														"uuid": "1234567890"
													},
													"application": {
														"name": "CAD",
														"version": "1.0.0"
													}
												}
											}
										}
									},
									"Crown Export": {
										"value": {
											"request": {
												"resourceName": "Planner",
												"actionName": "ExportToothRestoration",
												"body": {
													"plan": {
														"uuid": "1234567890",
														"name": "Plan Name"
													},
													"patient": {
														"uuid": "1234567890",
														"name": "Patient Name",
														"dpsx_file_name": "Patient File Name"
													},
													"tooth_restoration": {
														"uuid": "1234567890",
														"kind": "crown_export"
													},
													"application": {
														"name": "CAD",
														"version": "1.0.0"
													}
												}
											}
										}
									},
									"Inlay Export": {
										"value": {
											"request": {
												"resourceName": "Planner",
												"actionName": "ExportToothRestoration",
												"body": {
													"plan": {
														"uuid": "1234567890",
														"name": "Plan Name"
													},
													"patient": {
														"uuid": "1234567890",
														"name": "Patient Name",
														"dpsx_file_name": "Patient File Name"
													},
													"tooth_restoration": {
														"uuid": "1234567890",
														"kind": "inlay_export"
													},
													"application": {
														"name": "CAD",
														"version": "1.0.0"
													}
												}
											}
										}
									},
									"Onlay Export": {
										"value": {
											"request": {
												"resourceName": "Planner",
												"actionName": "ExportToothRestoration",
												"body": {
													"plan": {
														"uuid": "1234567890",
														"name": "Plan Name"
													},
													"patient": {
														"uuid": "1234567890",
														"name": "Patient Name",
														"dpsx_file_name": "Patient File Name"
													},
													"tooth_restoration": {
														"uuid": "1234567890",
														"kind": "onlay_export"
													},
													"application": {
														"name": "CAD",
														"version": "1.0.0"
													}
												}
											}
										}
									},
									"Bridge Export": {
										"value": {
											"request": {
												"resourceName": "Planner",
												"actionName": "ExportBridge",
												"body": {
													"plan": {
														"uuid": "1234567890",
														"name": "Plan Name"
													},
													"patient": {
														"uuid": "1234567890",
														"name": "Patient Name",
														"dpsx_file_name": "Patient File Name"
													},
													"bridge": {
														"uuid": "1234567890"
													},
													"application": {
														"name": "CAD",
														"version": "1.0.0"
													}
												}
											}
										}
									},
									"Legacy Export (Deprecated)": {
										"value": {
											"request": {
												"resourceName": "Planner",
												"actionName": "Export",
												"body": {
													"plan": {
														"uuid": "1234567890",
														"name": "Plan Name"
													},
													"guide": {
														"uuid": "1234567890",
														"implants": [
															"1234567890",
															"1234567890"
														],
														"fixation_pins": [
															"1234567890",
															"1234567890"
														]
													},
													"application": {
														"name": "CAD",
														"version": "1.0.0"
													}
												}
											}
										}
									},
									"Splint Export": {
										"value": {
											"request": {
												"resourceName": "Planner",
												"actionName": "ExportSplint",
												"body": {
													"plan": {
														"uuid": "1234567890",
														"name": "Plan Name"
													},
													"patient": {
														"uuid": "1234567890",
														"name": "Patient Name",
														"dpsx_file_name": "Patient File Name"
													},
													"splint": {
														"uuid": "1234567890",
														"kind": "basic",
														"thickness": "1"
													},
													"application": {
														"name": "CAD",
														"version": "1.0.0"
													}
												}
											}
										}
									},
									"Validate Model Generation": {
										"value": {
											"success": true
										}
									}
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "No access to action",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Action not found in resource",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Executes a single action on a resource.",
				"summary": "Client - Actions - Execute single action (Deprecated)",
				"tags": [
					"Client-Resources",
					"Usable-Externally"
				],
				"deprecated": true,
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- Target resource name",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					},
					{
						"description": "- Target resource action",
						"in": "path",
						"name": "actionName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "ExportSurgicalGuide"
							},
							"Example 2": {
								"value": "ExportStackableGuide"
							},
							"Example 3": {
								"value": "ExportSegmentedSurface"
							},
							"Example 4": {
								"value": "ExportToothRestoration"
							},
							"Example 5": {
								"value": "ExportBridge"
							},
							"Example 6": {
								"value": "Export"
							},
							"Example 7": {
								"value": "ValidateModelGeneration"
							}
						}
					}
				],
				"requestBody": {
					"description": "- The payload for the action",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ActionPayloadTypes",
								"description": "- The payload for the action"
							}
						}
					}
				}
			}
		},
		"/{resourceName}/actions": {
			"get": {
				"operationId": "GetAvailableActions",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"type": "string"
									},
									"type": "array"
								},
								"examples": {
									"CAD Actions": {
										"value": [
											"Export",
											"ExportSurgicalGuide",
											"ExportStackableGuide",
											"ExportSegmentedSurface"
										]
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Resource not found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"422": {
						"description": "Unprocessable Entity",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Lists available actions for a resource.",
				"summary": "Client - Actions - List available actions",
				"tags": [
					"Client-Resources",
					"Usable-Externally"
				],
				"security": [],
				"parameters": [
					{
						"description": "Target resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				]
			}
		},
		"/{resourceName}/bulk": {
			"post": {
				"operationId": "TriggerBulk",
				"responses": {
					"200": {
						"description": "Bulk operation results",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/BulkActionResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "No access to action",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Action not found in resource",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Executes multiple actions on a resource.",
				"summary": "Client - Actions - Execute bulk actions",
				"tags": [
					"Client-Resources",
					"Usable-Externally"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Target resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/BulkExportRequestPayloadWithoutActionName"
							}
						}
					}
				}
			}
		},
		"/api/v2/{resourceName}/bulk": {
			"post": {
				"operationId": "TriggerBulkV2",
				"responses": {
					"200": {
						"description": "Bulk operation results",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/BulkActionResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "No access to action",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Action not found in resource",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Executes multiple actions with HMAC authentication.",
				"summary": "Client - Actions - Execute authenticated bulk actions",
				"tags": [
					"Client-Resources",
					"Usable-Externally"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Target resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					},
					{
						"description": "API authentication key",
						"in": "header",
						"name": "x-api-key",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Request timestamp",
						"in": "header",
						"name": "x-timestamp",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Request identifier",
						"in": "header",
						"name": "x-request-id",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "HMAC signature",
						"in": "header",
						"name": "x-signature",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"description": "Actions to execute",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/BulkExportRequestPayloadWithoutActionName",
								"description": "Actions to execute"
							}
						}
					}
				}
			}
		},
		"/api/admin/resources": {
			"post": {
				"operationId": "CreateResource",
				"responses": {
					"200": {
						"description": "The newly created resource",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IResource"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "653a248b8782b7e0ecc3dc6f",
											"ResourceName": "PLANNER_TEST",
											"Scopes": [
												{
													"key": "ExpireIn",
													"type": "date",
													"value": "7776000",
													"_id": "66eabfd712ecded9abd9b88a"
												}
											],
											"AccessDefault": false,
											"DownloadLink": "https://360imaging.blob.core.windows.net/public/dps2-planner/AtomicaImplantPlanner6.0.1.exe",
											"Active": true,
											"Actions": [],
											"DownloadLinks": [
												{
													"slug": "windows",
													"operatingSystem": "Windows",
													"distro": "",
													"architecture": "",
													"fileType": "",
													"version": "@latest",
													"environment": "@production",
													"url": "https://360imaging.blob.core.windows.net/public/dps2-planner/AtomicaImplantPlanner6.0.1.exe",
													"isDefault": true
												}
											]
										}
									}
								}
							}
						}
					},
					"201": {
						"description": "Created"
					},
					"400": {
						"description": "Bad Request"
					},
					"404": {
						"description": "Resource not found"
					}
				},
				"description": "Creates a new resource with specified configuration.",
				"summary": "Admin - Resources - Create new resource",
				"tags": [
					"Admin-Resources"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "Resource configuration details",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ResourceCreateParams",
								"description": "Resource configuration details"
							}
						}
					}
				}
			},
			"get": {
				"operationId": "GetAllResourcesDetails",
				"responses": {
					"200": {
						"description": "Array of resource configurations",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"$ref": "#/components/schemas/IResource"
									},
									"type": "array"
								},
								"examples": {
									"Example 1": {
										"value": [
											{
												"_id": "653a248b8782b7e0ecc3dc6f",
												"ResourceName": "PLANNER",
												"Scopes": [
													{
														"key": "ExpireIn",
														"type": "date",
														"value": "7776000",
														"_id": "66eabfd712ecded9abd9b88a"
													}
												],
												"AccessDefault": false,
												"DownloadLink": "https://360imaging.blob.core.windows.net/public/dps2-planner/AtomicaImplantPlanner6.0.1.exe",
												"Active": true,
												"Actions": [],
												"DownloadLinks": [
													{
														"slug": "windows",
														"operatingSystem": "Windows",
														"distro": "",
														"architecture": "",
														"fileType": "",
														"version": "@latest",
														"environment": "@production",
														"url": "https://360imaging.blob.core.windows.net/public/dps2-planner/AtomicaImplantPlanner6.0.1.exe",
														"isDefault": true
													}
												]
											},
											{
												"_id": "669cd0628108d2c26ae2f696",
												"ResourceName": "LAUNCHER",
												"AccessDefault": false,
												"DownloadLink": "non",
												"Active": true,
												"Scopes": [],
												"Actions": [],
												"DownloadLinks": [
													{
														"slug": "linux-debian-x64-exe-v2.0.2",
														"operatingSystem": "Linux",
														"distro": "Debian",
														"architecture": "x64",
														"fileType": "exe",
														"version": "v2.0.2",
														"url": "https://360imaging.blob.core.windows.net/public/dps2-planner/AtomicaImplantPlanner6.0.1.exe",
														"isDefault": true
													}
												]
											}
										]
									}
								}
							}
						}
					},
					"404": {
						"description": "Resource not found"
					}
				},
				"description": "Retrieves all resources in the system.",
				"summary": "Admin - Resources - List all resources",
				"tags": [
					"Admin-Resources"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "includeInactive Whether to include inactive resources",
						"in": "query",
						"name": "includeInactive",
						"required": false,
						"schema": {
							"type": "boolean"
						}
					}
				]
			},
			"put": {
				"operationId": "UpdateResourceDetails",
				"responses": {
					"200": {
						"description": "The updated resource",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IResource"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "653a248b8782b7e0ecc3dc6f",
											"ResourceName": "PLANNER_TEST",
											"Scopes": [
												{
													"key": "ExpireIn",
													"type": "date",
													"value": "7776000",
													"_id": "66eabfd712ecded9abd9b88a"
												}
											],
											"AccessDefault": false,
											"DownloadLink": "https://360imaging.blob.core.windows.net/public/dps2-planner/AtomicaImplantPlanner6.0.1.exe",
											"Active": true,
											"Actions": [],
											"DownloadLinks": [
												{
													"slug": "windows",
													"operatingSystem": "Windows",
													"distro": "",
													"architecture": "",
													"fileType": "",
													"version": "@latest",
													"environment": "@production",
													"url": "https://360imaging.blob.core.windows.net/public/dps2-planner/AtomicaImplantPlanner6.0.1.exe",
													"isDefault": true
												}
											]
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"404": {
						"description": "Resource not found"
					}
				},
				"description": "Updates an existing resource configuration.",
				"summary": "Admin - Resources - Update resource",
				"tags": [
					"Admin-Resources"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "Resource update configuration",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ResourceUpdateParams",
								"description": "Resource update configuration"
							}
						}
					}
				}
			}
		},
		"/api/v1/admin/permission/endpoints": {
			"post": {
				"operationId": "CreateEndpointPermission",
				"responses": {
					"200": {
						"description": "Created endpoint permission",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IEndpointPermission"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "507f1f77bcf86cd799439011",
											"endpointName": "GET:/api/users",
											"method": "GET",
											"path": "/api/users",
											"requiredPermission": {
												"type": "PERMISSION",
												"permission": "credentials.read"
											},
											"description": "Get all users",
											"active": true,
											"createdAt": "2026-08-16T08:49:01.984Z",
											"updatedAt": "2026-08-16T08:49:01.984Z"
										}
									}
								}
							}
						}
					},
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"409": {
						"description": "Conflict",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "SuperAdmin only - Creates a new permission configuration for an endpoint.",
				"summary": "Permissions - Endpoints - Create endpoint permission",
				"tags": [
					"Admin-Permissions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "Endpoint permission configuration",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CreateEndpointPermissionParams",
								"description": "Endpoint permission configuration"
							}
						}
					}
				}
			},
			"get": {
				"operationId": "GetAllEndpointPermissions",
				"responses": {
					"200": {
						"description": "Array of endpoint permissions",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"$ref": "#/components/schemas/IEndpointPermission"
									},
									"type": "array"
								},
								"examples": {
									"Example 1": {
										"value": [
											{
												"_id": "507f1f77bcf86cd799439011",
												"endpointName": "GET:/api/users",
												"method": "GET",
												"path": "/api/users",
												"requiredPermission": {
													"type": "PERMISSION",
													"permission": "credentials.read"
												},
												"description": "Get all users",
												"active": true,
												"createdAt": "2026-08-16T08:49:01.986Z",
												"updatedAt": "2026-08-16T08:49:01.986Z"
											}
										]
									}
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "SuperAdmin only - Retrieves all configured endpoint permissions.",
				"summary": "Permissions - Endpoints - List all permissions",
				"tags": [
					"Admin-Permissions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/v1/admin/permission/endpoints/{id}": {
			"get": {
				"operationId": "GetEndpointPermission",
				"responses": {
					"200": {
						"description": "Single endpoint permission",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IEndpointPermission"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "507f1f77bcf86cd799439011",
											"endpointName": "GET:/api/users",
											"method": "GET",
											"path": "/api/users",
											"requiredPermission": {
												"type": "PERMISSION",
												"permission": "credentials.read"
											},
											"description": "Get all users",
											"active": true,
											"createdAt": "2026-08-16T08:49:01.986Z",
											"updatedAt": "2026-08-16T08:49:01.986Z"
										}
									}
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "SuperAdmin only - Retrieves a specific endpoint permission configuration.",
				"summary": "Permissions - Endpoints - Get single permission",
				"tags": [
					"Admin-Permissions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Endpoint permission ID",
						"in": "path",
						"name": "id",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			},
			"put": {
				"operationId": "UpdateEndpointPermission",
				"responses": {
					"200": {
						"description": "Modified endpoint permission",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IEndpointPermission"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "507f1f77bcf86cd799439011",
											"endpointName": "GET:/api/users",
											"method": "GET",
											"path": "/api/users",
											"requiredPermission": {
												"type": "AND",
												"conditions": [
													{
														"type": "PERMISSION",
														"permission": "credentials.read"
													},
													{
														"type": "PERMISSION",
														"permission": "credentials.write"
													}
												]
											},
											"description": "Get all users with enhanced permissions",
											"active": true,
											"createdAt": "2026-08-16T08:49:01.987Z",
											"updatedAt": "2026-08-16T08:49:01.987Z"
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "SuperAdmin only - Updates an existing endpoint permission configuration.",
				"summary": "Permissions - Endpoints - Update permission",
				"tags": [
					"Admin-Permissions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Endpoint permission ID",
						"in": "path",
						"name": "id",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"description": "Updated configuration",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/UpdateEndpointPermissionParams",
								"description": "Updated configuration"
							}
						}
					}
				}
			},
			"delete": {
				"operationId": "DeleteEndpointPermission",
				"responses": {
					"200": {
						"description": "Success confirmation",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"message": {
											"type": "string"
										}
									},
									"required": [
										"message"
									],
									"type": "object"
								},
								"examples": {
									"Example 1": {
										"value": {
											"message": "Endpoint permission deleted successfully"
										}
									}
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "SuperAdmin only - Removes an endpoint permission configuration.",
				"summary": "Permissions - Endpoints - Delete permission",
				"tags": [
					"Admin-Permissions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Endpoint permission ID",
						"in": "path",
						"name": "id",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/api/v1/admin/permission/users": {
			"post": {
				"operationId": "UpsertUserPermission",
				"responses": {
					"200": {
						"description": "Updated user permissions",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IUserPermission"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "507f1f77bcf86cd799439011",
											"userId": "user123",
											"permissions": [
												"credentials.read",
												"credentials.write"
											],
											"active": true,
											"createdAt": "2026-08-16T08:49:01.990Z",
											"updatedAt": "2026-08-16T08:49:01.990Z"
										}
									}
								}
							}
						}
					},
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "SuperAdmin only - Creates or updates permissions for a user.",
				"summary": "Permissions - Users - Upsert user permissions",
				"tags": [
					"Admin-Permissions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "User permission configuration",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/UpsertUserPermissionParams",
								"description": "User permission configuration"
							}
						}
					}
				}
			},
			"get": {
				"operationId": "GetAllUserPermissions",
				"responses": {
					"200": {
						"description": "Array of user permissions with details",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"$ref": "#/components/schemas/IUserPermissionWithDetails"
									},
									"type": "array"
								},
								"examples": {
									"Example 1": {
										"value": [
											{
												"_id": "507f1f77bcf86cd799439011",
												"userId": "user123",
												"permissions": [
													"credentials.read",
													"credentials.write"
												],
												"active": true,
												"createdAt": "2026-08-16T08:49:01.991Z",
												"updatedAt": "2026-08-16T08:49:01.991Z",
												"userDetails": {
													"Email": "user@example.com",
													"FirstName": "John",
													"LastName": "Doe",
													"Active": true,
													"Tags": [
														"Admin"
													]
												}
											}
										]
									}
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "SuperAdmin only - Retrieves permissions for all users with details.",
				"summary": "Permissions - Users - List all user permissions",
				"tags": [
					"Admin-Permissions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/v1/admin/permission/users/{userId}": {
			"get": {
				"operationId": "GetUserPermission",
				"responses": {
					"200": {
						"description": "User permission configuration",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IUserPermission"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "507f1f77bcf86cd799439011",
											"userId": "user123",
											"permissions": [
												"credentials.read",
												"credentials.write"
											],
											"active": true,
											"createdAt": "2026-08-16T08:49:01.992Z",
											"updatedAt": "2026-08-16T08:49:01.992Z"
										}
									}
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "SuperAdmin only - Retrieves permissions for a specific user.",
				"summary": "Permissions - Users - Get user permissions",
				"tags": [
					"Admin-Permissions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Target user ID",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			},
			"put": {
				"operationId": "UpdateUserPermission",
				"responses": {
					"200": {
						"description": "Modified user permissions",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/IUserPermission"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "507f1f77bcf86cd799439011",
											"userId": "user123",
											"permissions": [
												"credentials.read",
												"credentials.write",
												"credentials.delete"
											],
											"active": true,
											"createdAt": "2026-08-16T08:49:01.993Z",
											"updatedAt": "2026-08-16T08:49:01.993Z"
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "SuperAdmin only - Updates permissions for a specific user.",
				"summary": "Permissions - Users - Update user permissions",
				"tags": [
					"Admin-Permissions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Target user ID",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"description": "Updated permissions",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/UpdateUserPermissionParams",
								"description": "Updated permissions"
							}
						}
					}
				}
			},
			"delete": {
				"operationId": "DeleteUserPermission",
				"responses": {
					"200": {
						"description": "Success confirmation",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"message": {
											"type": "string"
										}
									},
									"required": [
										"message"
									],
									"type": "object"
								},
								"examples": {
									"Example 1": {
										"value": {
											"message": "User permissions deleted successfully"
										}
									}
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "SuperAdmin only - Removes all permissions for a user.",
				"summary": "Permissions - Users - Delete user permissions",
				"tags": [
					"Admin-Permissions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Target user ID",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/v1/billings/credits/ingest": {
			"put": {
				"operationId": "IngestTransactions",
				"responses": {
					"200": {
						"description": "Response object to send back HTTP responses",
						"content": {
							"application/json": {
								"schema": {
									"anyOf": [
										{
											"$ref": "#/components/schemas/IErrorResponse"
										},
										{
											"items": {
												"$ref": "#/components/schemas/IngestTransaction"
											},
											"type": "array"
										}
									]
								}
							}
						}
					},
					"204": {
						"description": "No content"
					},
					"400": {
						"description": "Response object to send back HTTP responses",
						"content": {
							"application/json": {
								"schema": {
									"anyOf": [
										{
											"$ref": "#/components/schemas/IErrorResponse"
										},
										{
											"items": {
												"$ref": "#/components/schemas/IngestTransaction"
											},
											"type": "array"
										}
									]
								}
							}
						}
					},
					"500": {
						"description": "Response object to send back HTTP responses",
						"content": {
							"application/json": {
								"schema": {
									"anyOf": [
										{
											"$ref": "#/components/schemas/IErrorResponse"
										},
										{
											"items": {
												"$ref": "#/components/schemas/IngestTransaction"
											},
											"type": "array"
										}
									]
								}
							}
						}
					}
				},
				"description": "Mocks the billing service's transaction ingestion process.\nIt simulates various billing error scenarios based on the transaction data.",
				"summary": "Case Cloud Server - Billing Mocks  - Process billing transactions",
				"tags": [
					"Server-Mocks"
				],
				"security": [],
				"parameters": [],
				"requestBody": {
					"description": "Contains array of transactions to process",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/IngestTransactionBody",
								"description": "Contains array of transactions to process"
							},
							"example": {
								"transactions": [
									{
										"timeStamp": "2023-01-01",
										"id": "tx1",
										"event": "purchase"
									}
								]
							}
						}
					}
				}
			}
		},
		"/v1/users/client-app": {
			"get": {
				"operationId": "GetClientAppUrl",
				"responses": {
					"200": {
						"description": "Response object to send back HTTP responses",
						"content": {
							"application/json": {
								"schema": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"$ref": "#/components/schemas/IErrorResponse"
										}
									]
								}
							}
						}
					},
					"500": {
						"description": "Response object to send back HTTP responses",
						"content": {
							"application/json": {
								"schema": {
									"anyOf": [
										{
											"type": "string"
										},
										{
											"$ref": "#/components/schemas/IErrorResponse"
										}
									]
								}
							}
						}
					}
				},
				"description": "Mocks Case Cloud endpoint for resolving client app URL for a user.\nUse query scenarios to simulate different upstream responses.",
				"summary": "Case Cloud Server - Billing Mocks - Get user client app URL",
				"tags": [
					"Server-Mocks"
				],
				"security": [],
				"parameters": [
					{
						"description": "Mock response scenario selector",
						"in": "query",
						"name": "scenario",
						"required": false,
						"schema": {
							"$ref": "#/components/schemas/ClientAppUrlMockScenario"
						}
					}
				]
			}
		},
		"/admin/logs/viewer": {
			"get": {
				"operationId": "ViewLogs",
				"responses": {
					"200": {
						"description": "The rendered log viewer page template with client data",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ViewResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					}
				},
				"description": "Renders the log viewer page using React.\nIt provides the template and necessary data for the client application.",
				"summary": "Admin - LogViewer - Render log viewer page",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/logs/viewer/data": {
			"get": {
				"operationId": "GetLogs",
				"responses": {
					"200": {
						"description": "Filtered logs response",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LogResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					}
				},
				"description": "Retrieves logs based on provided filters and parameters.\nSupports filtering by level, date range, search terms, and pagination.",
				"summary": "Admin - LogViewer - Get filtered logs",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Log level filter",
						"in": "query",
						"name": "level",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Start date for filtering",
						"in": "query",
						"name": "startDate",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "End date for filtering",
						"in": "query",
						"name": "endDate",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Start time for filtering",
						"in": "query",
						"name": "startTime",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "End time for filtering",
						"in": "query",
						"name": "endTime",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Search term",
						"in": "query",
						"name": "search",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Field to search in",
						"in": "query",
						"name": "searchField",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Time range filter",
						"in": "query",
						"name": "timeRange",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Sort order",
						"in": "query",
						"name": "sortOrder",
						"required": false,
						"schema": {
							"$ref": "#/components/schemas/SORT_ORDERS"
						}
					},
					{
						"description": "Page number",
						"in": "query",
						"name": "page",
						"required": false,
						"schema": {
							"default": 1,
							"format": "double",
							"type": "number"
						}
					},
					{
						"description": "Items per page",
						"in": "query",
						"name": "limit",
						"required": false,
						"schema": {
							"default": 100,
							"format": "double",
							"type": "number"
						}
					},
					{
						"description": "View mode",
						"in": "query",
						"name": "viewMode",
						"required": false,
						"schema": {
							"default": "focused",
							"type": "string",
							"enum": [
								"detailed",
								"table",
								"focused"
							]
						}
					},
					{
						"description": "Related application filter",
						"in": "query",
						"name": "relatedApp",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Request ID filter",
						"in": "query",
						"name": "requestId",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Active files filter",
						"in": "query",
						"name": "activeFiles",
						"required": false,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/api/admin/logs/viewer/metrics": {
			"get": {
				"operationId": "GetMetrics",
				"responses": {
					"200": {
						"description": "Comprehensive metrics data",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/MetricsResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					}
				},
				"description": "Retrieves comprehensive metrics for the logs dashboard.\nIncludes error rates, request statistics, top request IDs, and user activity.",
				"summary": "Admin - LogViewer - Get metrics",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Start date for metrics calculation",
						"in": "query",
						"name": "startDate",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "End date for metrics calculation",
						"in": "query",
						"name": "endDate",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Time range filter",
						"in": "query",
						"name": "timeRange",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Optional request ID filter",
						"in": "query",
						"name": "requestId",
						"required": false,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/api/admin/logs/viewer/request/{requestId}": {
			"get": {
				"operationId": "GetLogsByRequestId",
				"responses": {
					"200": {
						"description": "All logs for the specified request ID",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LogResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Request ID not found"
					}
				},
				"description": "Retrieves all logs for a specific request ID.\nUseful for incident investigation and request tracing.",
				"summary": "Admin - LogViewer - Get logs by request ID",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "The request ID to filter by",
						"in": "path",
						"name": "requestId",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Optional start date filter",
						"in": "query",
						"name": "startDate",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Optional end date filter",
						"in": "query",
						"name": "endDate",
						"required": false,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/api/admin/logs/viewer/by-date/{date}": {
			"get": {
				"operationId": "GetLogFile",
				"responses": {
					"200": {
						"description": "Log file content for the specified date",
						"content": {
							"application/json": {
								"schema": {
									"items": {},
									"type": "array"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Log file not found"
					}
				},
				"description": "Retrieves the content of a log file for a given date.",
				"summary": "Admin - LogViewer - Get log file content by date",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Date of the log file to retrieve",
						"in": "path",
						"name": "date",
						"required": true,
						"schema": {
							"type": "string"
						},
						"example": "2023-10-01"
					}
				]
			}
		},
		"/api/admin/logs/files": {
			"get": {
				"operationId": "GetLogFiles",
				"responses": {
					"200": {
						"description": "List of log files with sizes",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"properties": {
											"size": {
												"type": "number",
												"format": "double"
											},
											"name": {
												"type": "string"
											}
										},
										"required": [
											"size",
											"name"
										],
										"type": "object"
									},
									"type": "array"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					}
				},
				"description": "Retrieves a list of log files with their sizes.",
				"summary": "Admin - LogViewer - Get log files list",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/logs/files/{filename}": {
			"get": {
				"operationId": "GetLogFileContent",
				"responses": {
					"200": {
						"description": "Log file content for the specified filename",
						"content": {
							"application/json": {
								"schema": {
									"items": {},
									"type": "array"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Log file not found"
					}
				},
				"description": "Retrieves the content of a specific log file.",
				"summary": "Admin - LogViewer - Get log file content by filename",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Name of the log file to retrieve",
						"in": "path",
						"name": "filename",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			},
			"delete": {
				"operationId": "DeleteLogFile",
				"responses": {
					"200": {
						"description": "Success"
					},
					"204": {
						"description": "No content"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "File not found"
					}
				},
				"description": "Allows you to delete a specific log file.",
				"summary": "Admin - LogViewer - Delete log file",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Name of the log file to delete",
						"in": "path",
						"name": "filename",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/api/admin/logs/files/download/{filename}": {
			"get": {
				"operationId": "DownloadLogFile",
				"responses": {
					"200": {
						"description": "Log file content for download",
						"content": {
							"application/json": {
								"schema": {}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Log file not found"
					}
				},
				"description": "Allows you to download a specific log file.",
				"summary": "Admin - LogViewer - Download log file",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Name of the log file to download",
						"in": "path",
						"name": "filename",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/api/admin/logs/files/{filename}/archive": {
			"post": {
				"operationId": "ArchiveLogFile",
				"responses": {
					"200": {
						"description": "Success"
					},
					"204": {
						"description": "No content"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "File not found"
					}
				},
				"description": "Allows you to archive a specific log file.",
				"summary": "Admin - LogViewer - Archive log file",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Name of the log file to archive",
						"in": "path",
						"name": "filename",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/api/admin/logs/config/max-size": {
			"post": {
				"operationId": "UpdateMaxFileSize",
				"responses": {
					"200": {
						"description": "Success"
					},
					"204": {
						"description": "No content"
					},
					"400": {
						"description": "Invalid size format"
					},
					"401": {
						"description": "Unauthorized"
					}
				},
				"description": "Updates the maximum file size configuration.",
				"summary": "Admin - LogViewer - Update max file size",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"maxSize": {
										"type": "string"
									}
								},
								"required": [
									"maxSize"
								],
								"type": "object"
							}
						}
					}
				}
			},
			"get": {
				"operationId": "GetCurrentMaxSize",
				"responses": {
					"200": {
						"description": "Current max file size configuration",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"maxSize": {
											"type": "number",
											"format": "double"
										}
									},
									"required": [
										"maxSize"
									],
									"type": "object"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					}
				},
				"description": "Retrieves the current maximum file size configuration.",
				"summary": "Admin - LogViewer - Get current max file size",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/logs/files/delete-bulk": {
			"post": {
				"operationId": "DeleteLogFiles",
				"responses": {
					"200": {
						"description": "Success"
					},
					"204": {
						"description": "No content"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "File not found"
					}
				},
				"description": "Allows you to delete multiple log files at once.",
				"summary": "Admin - LogViewer - Delete multiple log files",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"filenames": {
										"items": {
											"type": "string"
										},
										"type": "array"
									}
								},
								"required": [
									"filenames"
								],
								"type": "object"
							}
						}
					}
				}
			}
		},
		"/api/admin/logs/flags": {
			"get": {
				"operationId": "GetFeatureFlags",
				"responses": {
					"200": {
						"description": "Current feature flags configuration",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Record_string.boolean_"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					}
				},
				"description": "Retrieves the current feature flags configuration.",
				"summary": "Admin - LogViewer - Get feature flags",
				"tags": [
					"Admin-LogViewer"
				],
				"security": [],
				"parameters": []
			}
		},
		"/api/admin/logs/organizations": {
			"post": {
				"operationId": "GetOrganizationLogs",
				"responses": {
					"200": {
						"description": "- The logs search return",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LogSearchReturn"
								},
								"examples": {
									"Example 1": {
										"value": {
											"logs": [],
											"pagination": {
												"totalItems": 0,
												"totalPages": 0,
												"page": 0
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Not Found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves all organization logs.",
				"summary": "Admin - Logs - Get organization logs",
				"tags": [
					"Admin-Logs"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "The search parameters\n- The search parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SearchParams",
								"description": "The search parameters\n- The search parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/logs/organizations/{orgId}/Users": {
			"post": {
				"operationId": "GetOrganizationUsersLogs",
				"responses": {
					"200": {
						"description": "- The logs search return",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LogSearchReturn"
								},
								"examples": {
									"Example 1": {
										"value": {
											"logs": [],
											"pagination": {
												"totalItems": 0,
												"totalPages": 0,
												"page": 0
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Not Found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves all logs related to users in a specific organization.",
				"summary": "Admin - Logs - Get organization users logs",
				"tags": [
					"Admin-Logs"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The organization ID",
						"in": "path",
						"name": "orgId",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"description": "- The search parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SearchParams",
								"description": "- The search parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/logs/organizations/{orgId}/Transactions": {
			"post": {
				"operationId": "GetOrganizationTransactionsLogs",
				"responses": {
					"200": {
						"description": "- The logs search return",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LogSearchReturn"
								},
								"examples": {
									"Example 1": {
										"value": {
											"logs": [],
											"pagination": {
												"totalItems": 0,
												"totalPages": 0,
												"page": 0
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Not Found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves all logs related to transactions in a specific organization.",
				"summary": "Admin - Logs - Get organization transactions logs",
				"tags": [
					"Admin-Logs"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The organization ID",
						"in": "path",
						"name": "orgId",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"description": "- The search parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SearchParams",
								"description": "- The search parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/logs/organizations/{orgId}/Resources": {
			"post": {
				"operationId": "GetOrganizationResourcesLogs",
				"responses": {
					"200": {
						"description": "- The logs search return",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LogSearchReturn"
								},
								"examples": {
									"Example 1": {
										"value": {
											"logs": [],
											"pagination": {
												"totalItems": 0,
												"totalPages": 0,
												"page": 0
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Not Found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves all logs related to resources in a specific organization.",
				"summary": "Admin - Logs - Get organization resources logs",
				"tags": [
					"Admin-Logs"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The organization ID",
						"in": "path",
						"name": "orgId",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"description": "- The search parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SearchParams",
								"description": "- The search parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/logs/resources": {
			"post": {
				"operationId": "GetResourcesLogs",
				"responses": {
					"200": {
						"description": "- The logs search return",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LogSearchReturn"
								},
								"examples": {
									"Example 1": {
										"value": {
											"logs": [],
											"pagination": {
												"totalItems": 0,
												"totalPages": 0,
												"page": 0
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Not Found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves all logs related to resources in the system.",
				"summary": "Admin - Logs - Get resources logs",
				"tags": [
					"Admin-Logs"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "- The search parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SearchParams",
								"description": "- The search parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/logs/tags": {
			"post": {
				"operationId": "GetTagsLogs",
				"responses": {
					"200": {
						"description": "- The logs search return",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LogSearchReturn"
								},
								"examples": {
									"Example 1": {
										"value": {
											"logs": [],
											"pagination": {
												"totalItems": 0,
												"totalPages": 0,
												"page": 0
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Not Found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves all logs related to tags in the system.",
				"summary": "Admin - Logs - Get tags logs",
				"tags": [
					"Admin-Logs"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "- The search parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SearchParams",
								"description": "- The search parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/logs/bulk-user-operations": {
			"post": {
				"operationId": "GetBulkUserOperationsLogs",
				"responses": {
					"200": {
						"description": "- The logs search return",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LogSearchReturn"
								},
								"examples": {
									"Example 1": {
										"value": {
											"logs": [],
											"pagination": {
												"page": 1,
												"totalPages": 0,
												"totalItems": 0
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"404": {
						"description": "Not Found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves audit logs for bulk user operations.",
				"summary": "Admin - Logs - Get bulk user operations logs",
				"tags": [
					"Admin-Logs"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "- The search parameters",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SearchParams",
								"description": "- The search parameters"
							}
						}
					}
				}
			}
		},
		"/api/admin/error-messages": {
			"get": {
				"operationId": "GetAll",
				"responses": {
					"200": {
						"description": "Array of error messages",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"$ref": "#/components/schemas/ErrorMessageDTO"
									},
									"type": "array"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Retrieves all error messages with optional filtering.",
				"summary": "Admin - ErrorMessages - List all error messages",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Optional category filter",
						"in": "query",
						"name": "category",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"description": "Optional HTTP status code filter",
						"in": "query",
						"name": "httpStatus",
						"required": false,
						"schema": {
							"format": "double",
							"type": "number"
						}
					},
					{
						"description": "Optional active status filter",
						"in": "query",
						"name": "isActive",
						"required": false,
						"schema": {
							"type": "boolean"
						}
					}
				]
			},
			"post": {
				"operationId": "Create",
				"responses": {
					"200": {
						"description": "The created error message",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorMessageDTO"
								}
							}
						}
					},
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorMessageDTO"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"409": {
						"description": "Conflict",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Creates a new error message configuration.",
				"summary": "Admin - ErrorMessages - Create error message",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "Error message configuration",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ErrorMessageCreateParams",
								"description": "Error message configuration"
							}
						}
					}
				}
			}
		},
		"/api/admin/error-messages/{errorCode}": {
			"put": {
				"operationId": "Update",
				"responses": {
					"200": {
						"description": "The updated error message",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorMessageDTO"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Updates an existing error message configuration.",
				"summary": "Admin - ErrorMessages - Update error message",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "The unique error code identifier",
						"in": "path",
						"name": "errorCode",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"description": "Partial error message configuration to update",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ErrorMessageUpdateParams",
								"description": "Partial error message configuration to update"
							}
						}
					}
				}
			},
			"delete": {
				"operationId": "Delete",
				"responses": {
					"200": {
						"description": "Success status",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"success": {
											"type": "boolean"
										}
									},
									"required": [
										"success"
									],
									"type": "object"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Deactivates an error message (soft delete).",
				"summary": "Admin - ErrorMessages - Deactivate error message",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "The unique error code identifier",
						"in": "path",
						"name": "errorCode",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			},
			"get": {
				"operationId": "GetByCode",
				"responses": {
					"200": {
						"description": "The error message configuration",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorMessageDTO"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Retrieves a single error message by error code.",
				"summary": "Admin - ErrorMessages - Get error message by code",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "The unique error code identifier",
						"in": "path",
						"name": "errorCode",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/api/admin/error-messages/seed-defaults": {
			"post": {
				"operationId": "SeedDefaults",
				"responses": {
					"200": {
						"description": "Summary of seeding operation",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"deleted": {
											"type": "number",
											"format": "double"
										},
										"skipped": {
											"type": "number",
											"format": "double"
										},
										"updated": {
											"type": "number",
											"format": "double"
										},
										"created": {
											"type": "number",
											"format": "double"
										}
									},
									"required": [
										"deleted",
										"skipped",
										"updated",
										"created"
									],
									"type": "object"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Seeds the database with default error messages from the seed file.",
				"summary": "Admin - ErrorMessages - Seed default error messages",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"mode": {
										"type": "string",
										"enum": [
											"create",
											"upsert",
											"restore"
										]
									}
								},
								"type": "object"
							}
						}
					}
				}
			}
		},
		"/api/admin/error-messages/seed": {
			"post": {
				"operationId": "Seed",
				"responses": {
					"200": {
						"description": "Summary of seeding operation",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"deleted": {
											"type": "number",
											"format": "double"
										},
										"skipped": {
											"type": "number",
											"format": "double"
										},
										"updated": {
											"type": "number",
											"format": "double"
										},
										"created": {
											"type": "number",
											"format": "double"
										}
									},
									"required": [
										"deleted",
										"skipped",
										"updated",
										"created"
									],
									"type": "object"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Seeds the database with custom error messages.",
				"summary": "Admin - ErrorMessages - Seed custom error messages",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "Object containing messages array and optional mode",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"mode": {
										"type": "string",
										"enum": [
											"create",
											"upsert",
											"restore"
										]
									},
									"messages": {
										"items": {
											"$ref": "#/components/schemas/ErrorMessageCreateParams"
										},
										"type": "array"
									}
								},
								"required": [
									"messages"
								],
								"type": "object",
								"description": "Object containing messages array and optional mode"
							}
						}
					}
				}
			}
		},
		"/api/admin/error-messages/refresh-cache": {
			"post": {
				"operationId": "RefreshCache",
				"responses": {
					"200": {
						"description": "Success status",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"success": {
											"type": "boolean"
										}
									},
									"required": [
										"success"
									],
									"type": "object"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Refreshes the in-memory cache of error messages.",
				"summary": "Admin - ErrorMessages - Refresh cache",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/error-messages/categories": {
			"get": {
				"operationId": "GetCategories",
				"responses": {
					"200": {
						"description": "Array of category names",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"type": "string"
									},
									"type": "array"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Retrieves all unique categories of error messages.",
				"summary": "Admin - ErrorMessages - Get all categories",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/error-messages/export-translations/template": {
			"get": {
				"operationId": "GetTranslationTemplate",
				"responses": {
					"200": {
						"description": "CSV template string",
						"content": {
							"application/json": {
								"schema": {
									"type": "string"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Exports an empty CSV template for translations.",
				"summary": "Admin - ErrorMessages - Get translation template",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "Locale to generate template for",
						"in": "query",
						"name": "locale",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/api/admin/error-messages/export": {
			"get": {
				"operationId": "Export",
				"responses": {
					"200": {
						"description": "Array of all error messages",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"$ref": "#/components/schemas/ErrorMessageDTO"
									},
									"type": "array"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Exports all error messages as JSON for backup or documentation.",
				"summary": "Admin - ErrorMessages - Export all error messages",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/error-messages/export-translations/csv": {
			"get": {
				"operationId": "ExportTranslationsCsv",
				"responses": {
					"200": {
						"description": "CSV string of localized translations",
						"content": {
							"application/json": {
								"schema": {
									"type": "string"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Exports all localized translations in CSV format.",
				"summary": "Admin - ErrorMessages - Export translations (CSV)",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/error-messages/import-translations/csv": {
			"post": {
				"operationId": "ImportTranslationsCsv",
				"responses": {
					"200": {
						"description": "Summary of import operation",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"errors": {
											"items": {
												"type": "string"
											},
											"type": "array"
										},
										"updated": {
											"type": "number",
											"format": "double"
										}
									},
									"required": [
										"errors",
										"updated"
									],
									"type": "object"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Imports localized translations from a CSV format.",
				"summary": "Admin - ErrorMessages - Import translations (CSV)",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "Body containing CSV content string",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"properties": {
									"csvContent": {
										"type": "string"
									}
								},
								"required": [
									"csvContent"
								],
								"type": "object",
								"description": "Body containing CSV content string"
							}
						}
					}
				}
			}
		},
		"/api/admin/error-messages/export-translations": {
			"get": {
				"operationId": "ExportTranslations",
				"responses": {
					"200": {
						"description": "Array of localized translations",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"properties": {
											"htmlMessage": {
												"type": "string"
											},
											"userMessage": {
												"type": "string"
											},
											"locale": {
												"type": "string"
											},
											"errorCode": {
												"type": "string"
											}
										},
										"required": [
											"locale",
											"errorCode"
										],
										"type": "object"
									},
									"type": "array"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Exports all localized translations in a flat format.",
				"summary": "Admin - ErrorMessages - Export translations",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/error-messages/import-translations/dry-run": {
			"post": {
				"operationId": "DryRunImportTranslations",
				"responses": {
					"200": {
						"description": "Summary of dry-run operation",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ImportTranslationsResult"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Dry-run import localized translations from a flat format.",
				"summary": "Admin - ErrorMessages - Dry-run import translations",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "Array of localized translations to dry-run",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"items": {
									"$ref": "#/components/schemas/ImportTranslationItem"
								},
								"type": "array",
								"description": "Array of localized translations to dry-run"
							}
						}
					}
				}
			}
		},
		"/api/admin/error-messages/import-translations": {
			"post": {
				"operationId": "ImportTranslations",
				"responses": {
					"200": {
						"description": "Summary of import operation",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"errors": {
											"items": {
												"type": "string"
											},
											"type": "array"
										},
										"updated": {
											"type": "number",
											"format": "double"
										}
									},
									"required": [
										"errors",
										"updated"
									],
									"type": "object"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Imports localized translations from a flat format.",
				"summary": "Admin - ErrorMessages - Import translations",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "Array of localized translations to import",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"items": {
									"properties": {
										"htmlMessage": {
											"type": "string"
										},
										"userMessage": {
											"type": "string"
										},
										"locale": {
											"type": "string"
										},
										"errorCode": {
											"type": "string"
										}
									},
									"required": [
										"locale",
										"errorCode"
									],
									"type": "object"
								},
								"type": "array",
								"description": "Array of localized translations to import"
							}
						}
					}
				}
			}
		},
		"/api/admin/error-messages/interpolate": {
			"post": {
				"operationId": "Interpolate",
				"responses": {
					"200": {
						"description": "Interpolated messages (internal, user, and HTML)",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"htmlMessage": {
											"type": "string"
										},
										"userMessage": {
											"type": "string"
										},
										"internalMessage": {
											"type": "string"
										}
									},
									"required": [
										"htmlMessage",
										"userMessage",
										"internalMessage"
									],
									"type": "object"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Interpolates variables for an error message and returns the resolved messages.",
				"summary": "Admin - ErrorMessages - Interpolate error message",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "Request body containing errorCode and optional variables",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/InterpolateRequest",
								"description": "Request body containing errorCode and optional variables"
							}
						}
					}
				}
			}
		},
		"/api/admin/error-messages/http-status-codes": {
			"get": {
				"operationId": "GetHttpStatusCodes",
				"responses": {
					"200": {
						"description": "Object mapping status code names to values",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Record_string.number_"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"403": {
						"description": "Forbidden",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Gets available HTTP status codes from constants.",
				"summary": "Admin - ErrorMessages - Get HTTP status codes",
				"tags": [
					"Admin-ErrorMessages"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/docs/viewer/*": {
			"get": {
				"operationId": "ViewDocsAllPages",
				"responses": {
					"200": {
						"description": "The rendered docs viewer page with necessary data for the client app.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ViewResponse"
								}
							}
						}
					}
				},
				"description": "Renders the docs viewer page for all documentation pages.\nReturns a template with the necessary data for the client app.",
				"summary": "Docs - Viewer - Render docs viewer for all pages",
				"tags": [
					"Docs-Viewer"
				],
				"security": [],
				"parameters": []
			}
		},
		"/docs/viewer": {
			"get": {
				"operationId": "ViewDocsMainPage",
				"responses": {
					"200": {
						"description": "ViewResponse with template and data for client app",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ViewResponse"
								}
							}
						}
					}
				},
				"description": "Renders the main docs viewer page.",
				"summary": "Docs - Viewer - Render main docs viewer page",
				"tags": [
					"Docs-Viewer"
				],
				"security": [],
				"parameters": []
			}
		},
		"/api/docs/manifest": {
			"get": {
				"operationId": "GetDocsManifest",
				"responses": {
					"200": {
						"description": "Array of manifest entries",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"$ref": "#/components/schemas/DocManifest"
									},
									"type": "array"
								}
							}
						}
					}
				},
				"description": "Retrieves the documentation manifest listing all markdown files.",
				"summary": "Docs - Viewer - Get documentation manifest",
				"tags": [
					"Docs-Viewer"
				],
				"security": [],
				"parameters": []
			}
		},
		"/api/docs/data/{docPath}": {
			"get": {
				"operationId": "GetDocumentation",
				"responses": {
					"200": {
						"description": "Raw markdown content as string",
						"content": {
							"application/json": {
								"schema": {
									"type": "string"
								}
							}
						}
					},
					"404": {
						"description": "Documentation not found"
					}
				},
				"description": "Retrieves the raw markdown content for a specific documentation file.",
				"summary": "Docs - Viewer - Get documentation content by path",
				"tags": [
					"Docs-Viewer"
				],
				"security": [],
				"parameters": [
					{
						"description": "The documentation file path (without .md)",
						"in": "path",
						"name": "docPath",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/admin": {
			"get": {
				"operationId": "ViewDashboard",
				"responses": {
					"200": {
						"description": "The rendered dashboard page with necessary data for the client app.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ViewResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					}
				},
				"description": "Render the main admin dashboard page.\nThis serves as the central hub for all admin tools.",
				"summary": "Admin - Dashboard - Render the admin dashboard",
				"tags": [
					"Admin-Dashboard"
				],
				"security": [],
				"parameters": []
			}
		},
		"/admin/dashboard": {
			"get": {
				"operationId": "RedirectToDashboard",
				"responses": {
					"200": {
						"description": "with template and data for client app",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ViewResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized"
					}
				},
				"description": "Redirects to the dashboard from the root admin path.",
				"summary": "Admin - Dashboard - Redirect to dashboard",
				"tags": [
					"Admin-Dashboard"
				],
				"security": [],
				"parameters": []
			}
		},
		"/clients/register": {
			"post": {
				"operationId": "RegisterClient",
				"responses": {
					"200": {
						"description": "ClientRegistrationResponse with encrypted credentials",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ClientRegistrationResponse"
								}
							}
						}
					}
				},
				"description": "Registers a new client for a specific resource.\nReturns encrypted credentials for the client.",
				"summary": "Client - HMAC Registration - Register a client for a resource",
				"tags": [
					"Usable-Externally",
					"Client-HMAC"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "The client registration request data",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ClientRegistrationRequest",
								"description": "The client registration request data"
							}
						}
					}
				}
			}
		},
		"/clients/register/global": {
			"post": {
				"operationId": "RegisterGlobalClient",
				"responses": {
					"200": {
						"description": "with encrypted credentials",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ClientRegistrationResponse"
								}
							}
						}
					}
				},
				"description": "Registers a new global client for all resources.\nReturns encrypted credentials for the client.",
				"summary": "Client - HMAC Registration - Register a global client",
				"tags": [
					"Client-HMAC"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "The client registration request data",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ClientRegistrationRequest",
								"description": "The client registration request data"
							}
						}
					}
				}
			}
		},
		"/api/admin/client-credentials/api-key/{clientId}": {
			"get": {
				"operationId": "GetApiKeyByClientId",
				"responses": {
					"200": {
						"description": "- The API key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ApiKeyResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"apiKey": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"404": {
						"description": "Client not found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves API key by client ID.",
				"summary": "Admin - ClientCredentials - Get API key by client ID",
				"tags": [
					"Admin-ClientCredentials"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The client ID",
						"in": "path",
						"name": "clientId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"example": "client123"
					}
				]
			}
		},
		"/api/admin/client-credentials/user/{userId}": {
			"get": {
				"operationId": "GetCredentialsByUserId",
				"responses": {
					"200": {
						"description": "- The credentials",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CredentialsResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"credentials": [
												null
											]
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves all credentials registered by a specific user (excluding secret).",
				"summary": "Admin - ClientCredentials - Get credentials by user ID",
				"tags": [
					"Admin-ClientCredentials"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The user ID",
						"in": "path",
						"name": "userId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"example": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a"
					}
				]
			}
		},
		"/api/admin/client-credentials/resource/{resourceName}": {
			"get": {
				"operationId": "GetCredentialsByResourceName",
				"responses": {
					"200": {
						"description": "- The credentials",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CredentialsResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"credentials": [
												null
											]
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves all credentials for a specific resource (excluding secret).",
				"summary": "Admin - ClientCredentials - Get credentials by resource name",
				"tags": [
					"Admin-ClientCredentials"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The resource name",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "CAD"
							},
							"Example 2": {
								"value": "PLANNER"
							}
						}
					}
				]
			}
		},
		"/api/admin/client-credentials/client/{clientId}": {
			"get": {
				"operationId": "GetCredentialsByClientId",
				"responses": {
					"200": {
						"description": "- The credentials",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CredentialsResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"credentials": [
												null
											]
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves all credentials for a specific client ID (excluding secret).",
				"summary": "Admin - ClientCredentials - Get credentials by client ID",
				"tags": [
					"Admin-ClientCredentials"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The client ID",
						"in": "path",
						"name": "clientId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"example": "client123"
					}
				]
			}
		},
		"/api/admin/client-credentials/clients": {
			"get": {
				"operationId": "GetAllClientIds",
				"responses": {
					"200": {
						"description": "- Array of client IDs",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"type": "string"
									},
									"type": "array"
								},
								"examples": {
									"Example 1": {
										"value": [
											"client123",
											"client456",
											"client789"
										]
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves all unique client IDs.",
				"summary": "Admin - ClientCredentials - Get all client IDs",
				"tags": [
					"Admin-ClientCredentials"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/client-credentials/credential/{applicationId}": {
			"get": {
				"operationId": "GetCredentialByApplicationId",
				"responses": {
					"200": {
						"description": "- The credential details",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CredentialExample"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "1234567890",
											"applicationId": "app123",
											"applicationName": "Test App",
											"apiKey": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456",
											"isActive": true,
											"lastUsed": "2026-08-16T08:49:02.029Z",
											"createdAt": "2026-08-16T08:49:02.029Z",
											"updatedAt": "2026-08-16T08:49:02.029Z",
											"description": "Test application",
											"clientId": "client123",
											"resourceName": "CAD",
											"userId": "4d63c7b3-5a96-4b74-9c69-15dc7d8bbb1a",
											"registeredAt": "2026-08-16T08:49:02.029Z"
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"404": {
						"description": "Credential not found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Retrieves credential details by application ID (excluding secret).",
				"summary": "Admin - ClientCredentials - Get credential by application ID",
				"tags": [
					"Admin-ClientCredentials"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The application ID",
						"in": "path",
						"name": "applicationId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"example": "app123"
					}
				]
			}
		},
		"/api/admin/client-credentials/revoke/{credentialId}": {
			"delete": {
				"operationId": "RevokeCredential",
				"responses": {
					"200": {
						"description": "- Success status",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/RevokeCredentialResponse"
								},
								"examples": {
									"Example 1": {
										"value": {
											"success": true,
											"message": "Credential deleted successfully"
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"404": {
						"description": "Credential not found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Revoke a client credential by application ID",
				"summary": "Admin - ClientCredentials - Revoke client credential",
				"tags": [
					"Admin-ClientCredentials"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The credential ID",
						"in": "path",
						"name": "credentialId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"example": "1234567890"
					}
				]
			}
		},
		"/api/admin/client-credentials/description/{credentialId}": {
			"put": {
				"operationId": "UpdateCredentialDescription",
				"responses": {
					"200": {
						"description": "- The updated credential details",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CredentialExample"
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "1234567890",
											"applicationId": "app123",
											"applicationName": "Test App",
											"apiKey": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456",
											"isActive": true,
											"lastUsed": "2026-08-16T08:49:02.030Z",
											"createdAt": "2026-08-16T08:49:02.030Z",
											"updatedAt": "2026-08-16T08:49:02.030Z",
											"description": "New description"
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request"
					},
					"401": {
						"description": "Unauthorized"
					},
					"403": {
						"description": "Forbidden"
					},
					"404": {
						"description": "Credential not found"
					},
					"500": {
						"description": "Internal Server Error"
					}
				},
				"description": "Update the description of a client credential by application ID",
				"summary": "Admin - ClientCredentials - Update credential description",
				"tags": [
					"Admin-ClientCredentials"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "- The credential ID",
						"in": "path",
						"name": "credentialId",
						"required": true,
						"schema": {
							"type": "string"
						},
						"example": "1234567890"
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/UpdateCredentialDescriptionBody"
							}
						}
					}
				}
			}
		},
		"/auth/login": {
			"get": {
				"operationId": "GetLoginPage",
				"responses": {
					"200": {
						"description": "ViewResponse with template and data for rendering",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ViewResponse"
								}
							}
						}
					}
				},
				"description": "Returns the login page template and data for the application.",
				"summary": "Auth - View - Get the login page for the application",
				"tags": [
					"Admin-LogViewer",
					"Authentication"
				],
				"security": [],
				"parameters": []
			}
		},
		"/api/auth/login": {
			"post": {
				"operationId": "Login",
				"responses": {
					"200": {
						"description": "LoginResponse containing tokens and user info",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LoginResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Authenticates a user using AWS Cognito.\nReturns tokens and user info if authentication is successful.",
				"summary": "Auth - Authentication - Login to the application using AWS Cognito",
				"tags": [
					"Admin-LogViewer",
					"Authentication"
				],
				"security": [],
				"parameters": [],
				"requestBody": {
					"description": "The request body containing the email and password of the user",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/LoginRequest",
								"description": "The request body containing the email and password of the user"
							},
							"example": {
								"email": "test@atomica.ai",
								"password": "test123"
							}
						}
					}
				}
			}
		},
		"/api/auth/me": {
			"get": {
				"operationId": "GetCurrentUser",
				"responses": {
					"200": {
						"description": "UserInfoResponse with user details",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/UserInfoResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Retrieves the current authenticated user's information.\nCombines JWT claims and Cognito user attributes.",
				"summary": "Auth - User - Get current authenticated user info",
				"tags": [
					"Admin-LogViewer",
					"Authentication"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/auth/refresh": {
			"post": {
				"operationId": "RefreshToken",
				"responses": {
					"200": {
						"description": "LoginResponse with refreshed tokens and user info",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LoginResponse"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Refreshes the authentication tokens using a refresh token.\nReturns new tokens and user info.",
				"summary": "Auth - Authentication - Refresh authentication tokens",
				"tags": [
					"Admin-LogViewer",
					"Authentication"
				],
				"security": [],
				"parameters": [],
				"requestBody": {
					"description": "The request body containing the refresh token",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/RefreshTokenRequest",
								"description": "The request body containing the refresh token"
							}
						}
					}
				}
			}
		},
		"/api/admin/app-settings/resource-app-mappings": {
			"get": {
				"operationId": "GetResourceAppMappings",
				"responses": {
					"200": {
						"description": "The current resource-app mappings",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/AppSettingDTO_ResourceAppMappingValue_"
								},
								"examples": {
									"Example 1": {
										"value": {
											"key": "resourceAppMappings",
											"value": {
												"undefined": [
													"CASECLOUD"
												]
											},
											"createdAt": "2026-08-16T08:49:02.035Z",
											"updatedAt": "2026-08-16T08:49:02.035Z"
										}
									}
								}
							}
						}
					}
				},
				"description": "Retrieves the current resource to application name mappings.\nIf not set, returns a default where each resource maps to its own name.",
				"summary": "Admin - AppSettings - Get resource to app name mappings",
				"tags": [
					"Admin-AppSettings"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			},
			"put": {
				"operationId": "UpsertResourceAppMappings",
				"responses": {
					"200": {
						"description": "The updated resource-app mappings",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/AppSettingDTO_ResourceAppMappingValue_"
								},
								"examples": {
									"Example 1": {
										"value": {
											"key": "resourceAppMappings",
											"value": {
												"undefined": [
													"CASECLOUD"
												]
											},
											"createdAt": "2026-08-16T08:49:02.036Z",
											"updatedAt": "2026-08-16T08:49:02.036Z"
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request - Validation error (e.g., non-unique app names)",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "Upserts the entire resource to application name mappings object.\nAll app names provided must be unique across all resources.",
				"summary": "Admin - AppSettings - Upsert resource to app name mappings",
				"tags": [
					"Admin-AppSettings"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [],
				"requestBody": {
					"description": "The resource-app mappings object",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ResourceAppMappingValue",
								"description": "The resource-app mappings object"
							}
						}
					}
				}
			}
		},
		"/api/admin/actions": {
			"get": {
				"operationId": "GetAllActions",
				"responses": {
					"200": {
						"description": "An array of actions",
						"content": {
							"application/json": {
								"schema": {
									"items": {
										"$ref": "#/components/schemas/Omit_IAction._id_"
									},
									"type": "array"
								},
								"examples": {
									"Resources": {
										"value": [
											{
												"ResourceName": "LAUNCHER",
												"DisplayName": "LAUNCHER",
												"IconUrl": "https://placehold.co/400x100"
											},
											{
												"ResourceName": "PLANNER",
												"DisplayName": "PLANNER",
												"IconUrl": "https://placehold.co/400x100"
											},
											{
												"ResourceName": "CAD",
												"DisplayName": "CAD",
												"IconUrl": "https://placehold.co/400x100"
											},
											{
												"ResourceName": "CADDESIGN",
												"DisplayName": "CADDESIGN",
												"IconUrl": "https://placehold.co/400x100"
											},
											{
												"ResourceName": "CASECLOUD",
												"DisplayName": "CASECLOUD",
												"IconUrl": "https://placehold.co/400x100"
											}
										]
									}
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "This endpoint retrieves all actions handled by the system.\nIt returns an array of actions, each containing the action name, active status, and value.",
				"summary": "Admin - Actions - Get all actions handled by the system",
				"tags": [
					"Admin-Actions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": []
			}
		},
		"/api/admin/actions/{resourceName}": {
			"get": {
				"operationId": "GetResouceActions",
				"responses": {
					"200": {
						"description": "An array of actions for the specified resource",
						"content": {
							"application/json": {
								"schema": {
									"properties": {
										"_id": {
											"type": "string"
										},
										"Actions": {
											"items": {
												"$ref": "#/components/schemas/IAction"
											},
											"type": "array"
										}
									},
									"required": [
										"_id",
										"Actions"
									],
									"type": "object",
									"nullable": true
								},
								"examples": {
									"Example 1": {
										"value": [
											{
												"name": "ExportStackableGuide",
												"active": true,
												"value": 0,
												"minVersion": "2.3.0",
												"_id": "681b7a4831bf88ed3ed98876"
											},
											{
												"name": "ExportSegmentedSurface",
												"active": true,
												"value": 0,
												"minVersion": "2.3.0",
												"_id": "681b7a4831bf88ed3ed98877"
											},
											{
												"name": "ExportSurgicalGuide",
												"active": true,
												"value": 0,
												"minVersion": "2.3.0",
												"_id": "681b7a4831bf88ed3ed98878"
											},
											{
												"name": "Export",
												"active": true,
												"value": 0,
												"minVersion": "2.3.0",
												"_id": "681b7a4831bf88ed3ed98879"
											}
										]
									}
								}
							}
						}
					},
					"404": {
						"description": "Resource not found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "This endpoint retrieves all actions available in a specific resource.\nThe resource name is passed as a parameter, and the endpoint returns an array of actions for that resource.",
				"summary": "Admin - Actions - Get all actions available in a resource",
				"tags": [
					"Admin-Actions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "The name of the resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				]
			},
			"post": {
				"operationId": "CreateResourceAction",
				"responses": {
					"200": {
						"description": "The created action",
						"content": {
							"application/json": {
								"schema": {
									"allOf": [
										{
											"$ref": "#/components/schemas/IAction"
										}
									],
									"nullable": true
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "6705514b184a97f7d110441d",
											"name": "ExportStackableGuide",
											"minVersion": "2.3.0",
											"active": true,
											"value": 0
										}
									}
								}
							}
						}
					},
					"201": {
						"description": "Created"
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Resource not found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "This endpoint creates a new action for a specific resource.\nIt takes the resource name and action input data as parameters.",
				"summary": "Admin - Actions - Create new action for a resource",
				"tags": [
					"Admin-Actions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "The name of the resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				],
				"requestBody": {
					"description": "The action input data",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ActionInput",
								"description": "The action input data"
							},
							"examples": {
								"Example 1": {
									"value": {
										"name": "ExportStackableGuide",
										"active": true,
										"value": 0,
										"minVersion": "2.3.0"
									}
								},
								"Example 2": {
									"value": {
										"name": "ExportSegmentedSurface",
										"active": true,
										"value": 0,
										"minVersion": "2.3.0"
									}
								},
								"Example 3": {
									"value": {
										"name": "ExportSurgicalGuide",
										"active": true,
										"value": 0,
										"minVersion": "2.3.0"
									}
								}
							}
						}
					}
				}
			},
			"put": {
				"operationId": "UpdateResourceAction",
				"responses": {
					"200": {
						"description": "The updated action",
						"content": {
							"application/json": {
								"schema": {
									"allOf": [
										{
											"$ref": "#/components/schemas/IAction"
										}
									],
									"nullable": true
								},
								"examples": {
									"Example 1": {
										"value": {
											"_id": "6705514b184a97f7d110441d",
											"name": "ExportStackableGuide",
											"minVersion": "2.3.0",
											"active": true,
											"value": 0
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					},
					"404": {
						"description": "Resource or Action not found",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				},
				"description": "This endpoint updates an existing action for a specific resource.\nIt takes the resource name and action input data as parameters.",
				"summary": "Admin - Actions - Update action for a resource",
				"tags": [
					"Admin-Actions"
				],
				"security": [
					{
						"jwt": []
					}
				],
				"parameters": [
					{
						"description": "The name of the resource",
						"in": "path",
						"name": "resourceName",
						"required": true,
						"schema": {
							"type": "string"
						},
						"examples": {
							"Example 1": {
								"value": "Planner"
							},
							"Example 2": {
								"value": "Cad"
							},
							"Example 3": {
								"value": "CadDesign"
							},
							"Example 4": {
								"value": "CaseCloud"
							}
						}
					}
				],
				"requestBody": {
					"description": "The action input data",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ActionInput",
								"description": "The action input data"
							},
							"examples": {
								"Example 1": {
									"value": {
										"name": "ExportStackableGuide",
										"active": true,
										"value": 0,
										"minVersion": "2.3.0"
									}
								},
								"Example 2": {
									"value": {
										"name": "ExportSegmentedSurface",
										"active": true,
										"value": 0,
										"minVersion": "2.3.0"
									}
								},
								"Example 3": {
									"value": {
										"name": "ExportSurgicalGuide",
										"active": true,
										"value": 0,
										"minVersion": "2.3.0"
									}
								}
							}
						}
					}
				}
			}
		}
	},
	"servers": [
		{
			"url": "/"
		}
	],
	"tags": [
		{
			"name": "Usable-Externally",
			"description": "Allowed operations to be used by (Desktop or CaseCloud Team) for managing the client's resources",
			"externalDocs": {
				"description": "Learn more about Usable-Externally",
				"url": "./#/Usable-Externally"
			}
		},
		{
			"name": "Client-Resources",
			"description": "Client operations for managing the client's resources",
			"externalDocs": {
				"description": "Learn more about Client-Resources",
				"url": "./#/Client-Resources"
			}
		},
		{
			"name": "Client-Users",
			"description": "Client operations for managing the client's users",
			"externalDocs": {
				"description": "Learn more about Client-Users",
				"url": "./#/Client-Users"
			}
		},
		{
			"name": "Client-HMAC",
			"description": "Operations for HMAC authentication and validation",
			"externalDocs": {
				"description": "Learn more about Client-HMAC",
				"url": "./#/Client-HMAC"
			}
		},
		{
			"name": "Admin-Resources",
			"description": "Admin operations for managing Atomica resources (viewing, creating, updating, or deleting)",
			"externalDocs": {
				"description": "Learn more about Admin-Resources",
				"url": "./#/Admin-Resources"
			}
		},
		{
			"name": "Admin-Actions",
			"description": "Admin operations for managing actions related to Atomica resources",
			"externalDocs": {
				"description": "Learn more about Admin-Actions",
				"url": "./#/Admin-Actions"
			}
		},
		{
			"name": "Admin-Dashboard",
			"description": "Admin operations for viewing the dashboard and statistics",
			"externalDocs": {
				"description": "Learn more about Admin-Dashboard",
				"url": "./#/Admin-Dashboard"
			}
		},
		{
			"name": "Admin-Users",
			"description": "Admin operations for managing Atomica users and their access",
			"externalDocs": {
				"description": "Learn more about Admin-Users",
				"url": "./#/Admin-Users"
			}
		},
		{
			"name": "Admin-AppSettings",
			"description": "Admin operations for managing application settings",
			"externalDocs": {
				"description": "Learn more about Admin-AppSettings",
				"url": "./#/Admin-AppSettings"
			}
		},
		{
			"name": "Admin-ErrorMessages",
			"description": "Admin operations for managing error messages and responses",
			"externalDocs": {
				"description": "Learn more about Admin-ErrorMessages",
				"url": "./#/Admin-ErrorMessages"
			}
		},
		{
			"name": "Admin-Permissions",
			"description": "Operations for managing permissions and roles",
			"externalDocs": {
				"description": "Learn more about Admin-Permissions",
				"url": "./#/Admin-Permissions"
			}
		},
		{
			"name": "Admin-ClientCredentials",
			"description": "Admin operations for managing client credentials and API keys",
			"externalDocs": {
				"description": "Learn more about Admin-ClientCredentials",
				"url": "./#/Admin-ClientCredentials"
			}
		},
		{
			"name": "Admin-Tags",
			"description": "Admin operations for managing tags associated with Atomica users",
			"externalDocs": {
				"description": "Learn more about Admin-Tags",
				"url": "./#/Admin-Tags"
			}
		},
		{
			"name": "Admin-Logs",
			"description": "Admin operations for recording system actions and logs",
			"externalDocs": {
				"description": "Learn more about Admin-Logs",
				"url": "./#/Admin-Logs"
			}
		},
		{
			"name": "Admin-LogViewer",
			"description": "Admin operations for viewing logs in a user-friendly manner",
			"externalDocs": {
				"description": "Learn more about Admin-LogViewer",
				"url": "./#/Admin-LogViewer"
			}
		},
		{
			"name": "Authentication",
			"description": "Operations for user authentication and authorization",
			"externalDocs": {
				"description": "Learn more about Authentication",
				"url": "./#/Authentication"
			}
		},
		{
			"name": "Docs-Viewer",
			"description": "Documentation viewer for the API",
			"externalDocs": {
				"description": "Learn more about Docs-Viewer",
				"url": "./#/Docs-Viewer"
			}
		},
		{
			"name": "Server-Mocks",
			"description": "Mocks for third-party APIs used for testing purposes",
			"externalDocs": {
				"description": "Learn more about Server-Mocks",
				"url": "./#/Server-Mocks"
			}
		}
	]
}