api: update typespec & other dependencies

This commit is contained in:
2025-05-09 23:59:59 -04:00
parent aceda8c083
commit 566f969715
5 changed files with 819 additions and 184 deletions

View File

@@ -122,7 +122,7 @@ namespace EmoteManagement {
/** /**
* Modify an existing emote. * Modify an existing emote.
*/ */
@patch @patch(#{ implicitOptionality: false })
@operationId("UpdateEmote") @operationId("UpdateEmote")
@route("/emotes/{emoteID}") @route("/emotes/{emoteID}")
op update(@path emoteID: id, @body emote: Emote): UpdatedEmote | ErrBadParameters | ErrAuth; op update(@path emoteID: id, @body emote: Emote): UpdatedEmote | ErrBadParameters | ErrAuth;

View File

@@ -5,16 +5,16 @@
"peerDependencies": { "peerDependencies": {
"@typespec/compiler": "^1.0.0-rc.1", "@typespec/compiler": "^1.0.0-rc.1",
"@typespec/http": "^1.0.0-rc.1", "@typespec/http": "^1.0.0-rc.1",
"@typespec/rest": "^0.69.0",
"@typespec/openapi": "^1.0.0-rc.1", "@typespec/openapi": "^1.0.0-rc.1",
"@typespec/openapi3": "^1.0.0-rc.1" "@typespec/openapi3": "^1.0.0-rc.1",
"@typespec/rest": "^0.69.0"
}, },
"devDependencies": { "devDependencies": {
"@typespec/compiler": "^1.0.0-rc.1", "@typespec/compiler": "^1.0.0",
"@typespec/http": "^1.0.0-rc.1", "@typespec/http": "^1.0.1",
"@typespec/rest": "^0.69.0", "@typespec/openapi": "^1.0.0",
"@typespec/openapi": "^1.0.0-rc.1", "@typespec/openapi3": "^1.0.0",
"@typespec/openapi3": "^1.0.0-rc.1" "@typespec/rest": "^0.69.0"
}, },
"private": true "private": true
} }

View File

@@ -488,9 +488,9 @@ components:
type: string type: string
description: Search tags for the emote. description: Search tags for the emote.
attributions: attributions:
type: array type: object
items: unevaluatedProperties:
$ref: '#/components/schemas/Models.Attribution' $ref: '#/components/schemas/Models.CreateAttribution'
description: People who contributed to the work. description: People who contributed to the work.
restrictions: restrictions:
type: array type: array
@@ -501,15 +501,7 @@ components:
allOf: allOf:
- $ref: '#/components/schemas/Models.id' - $ref: '#/components/schemas/Models.id'
description: Older emote version, if any. description: Older emote version, if any.
description: |- description: ''
A copy of the input model `T` with only the properties that are visible during the
"Create" resource lifecycle phase.
This transformation is recursive, and will include only properties that have the
`Lifecycle.Create` visibility modifier.
If a `NameTemplate` is provided, the new model will be named according to the template.
The template uses the same syntax as the `@friendlyName` decorator.
Models.Attribution: Models.Attribution:
type: object type: object
required: required:
@@ -546,6 +538,24 @@ components:
type: string type: string
description: Name of the user on the connected platform. description: Name of the user on the connected platform.
description: Active connection between an emote set and an external platform. description: Active connection between an emote set and an external platform.
Models.CreateAttribution:
type: object
required:
- text
- links
properties:
text:
type: string
description: Text displayed for the attribution, typically their name.
links:
type: array
items:
type: string
format: uri
description: Links associated with the attributed person.
description: |-
Emote work attributions.
These may be links to Ligmotes users or to general social media.
Models.Emote: Models.Emote:
type: object type: object
required: required:
@@ -681,6 +691,10 @@ components:
description: Emote set details. description: Emote set details.
Models.EmoteUpdate: Models.EmoteUpdate:
type: object type: object
required:
- name
- tags
- attributions
properties: properties:
name: name:
type: string type: string

View File

@@ -5,9 +5,9 @@
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {
"@typespec/prettier-plugin-typespec": "1.0.0-rc.1", "@typespec/prettier-plugin-typespec": "1.0.0-rc.1",
"eslint-config-prettier": "^10.0.1", "eslint-config-prettier": "^10.1.5",
"eslint-plugin-svelte": "^3.0.0", "eslint-plugin-svelte": "^3.5.1",
"prettier": "^3.4.2", "prettier": "^3.5.3",
"prettier-plugin-svelte": "^3.3.3" "prettier-plugin-svelte": "^3.3.3"
}, },
"pnpm": { "pnpm": {

943
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff