Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions openapi/components/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,20 @@ inventoryTemplateId:
type: string
example: invt_00000000-0000-0000-0000-000000000000
description: Must be a valid inventory template ID.
inventoryHolderId:
name: holderId
in: query
required: false
schema:
$ref: ./schemas/UserID.yaml
description: The UserID of the owner of the inventory; defaults to the currently authenticated user.
inventoryEquipSlot:
name: equipSlot
in: query
required: false
schema:
$ref: ./schemas/InventoryEquipSlot.yaml
description: Filter for inventory retrieval.
inventorySortOrder:
name: order
in: query
Expand Down Expand Up @@ -654,3 +668,15 @@ storeView:
required: false
schema:
$ref: ./schemas/StoreView.yaml
subscriptionId:
name: subscriptionId
in: query
required: true
schema:
type: string
mostRecentFlag:
name: mostRecent
in: query
required: false
schema:
type: boolean
6 changes: 6 additions & 0 deletions openapi/components/paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,14 @@
$ref: "./paths/economy.yaml#/paths/~1Admin~1transactions~1{transactionId}"
'/auth/user/subscription':
$ref: "./paths/economy.yaml#/paths/~1auth~1user~1subscription"
'/user/subscription/recent':
$ref: "./paths/economy.yaml#/paths/~1user~1subscription~1recent"
'/user/bulk/gift/purchases':
$ref: "./paths/economy.yaml#/paths/~1user~1bulk~1gift~1purchases"
'/users/{userId}/subscription/eligible':
$ref: "./paths/economy.yaml#/paths/~1users~1{userId}~1subscription~1eligible"
'/users/{userId}/credits/eligible':
$ref: "./paths/economy.yaml#/paths/~1users~1{userId}~1credits~1eligible"
'/subscriptions':
$ref: "./paths/economy.yaml#/paths/~1subscriptions"
'/licenseGroups/{licenseGroupId}':
Expand Down
65 changes: 65 additions & 0 deletions openapi/components/paths/economy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,36 @@ paths:
tags:
- economy
description: Get a list of all current user subscriptions.
/user/subscription/recent:
get:
summary: Get Recent Subscription
operationId: getRecentSubscription
security:
- authCookie: []
responses:
'200':
$ref: ../responses/economy/UserSubscriptionResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
tags:
- economy
description: Get the most recent user subscription.
/user/bulk/gift/purchases:
parameters:
- $ref: ../parameters.yaml#/mostRecentFlag
get:
summary: Get Bulk Gift Purchases
operationId: getBulkGiftPurchases
security:
- authCookie: []
responses:
'200':
$ref: ../responses/economy/BulkPurchasesListResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
tags:
- economy
description: Get bulk gift purchases made by the user.
'/users/{userId}/subscription/eligible':
parameters:
- $ref: ../parameters.yaml#/userId
Expand All @@ -99,6 +129,23 @@ paths:
tags:
- economy
description: Get the user's eligibility status for subscriptions.
'/users/{userId}/credits/eligible':
parameters:
- $ref: ../parameters.yaml#/userId
- $ref: ../parameters.yaml#/subscriptionId
get:
summary: Get User Credits Eligiblity
operationId: getUserCreditsEligible
security:
- authCookie: []
responses:
'200':
$ref: ../responses/economy/UserCreditsEligibleResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
tags:
- economy
description: Get the user's eligibility status for subscriptions based on available credits.
/subscriptions:
get:
summary: List Subscriptions
Expand Down Expand Up @@ -211,6 +258,24 @@ paths:
tags:
- economy
description: 'Gets the status of the agreement of a user to the Tilia TOS'
put:
summary: Update Tilia TOS Agreement Status
operationId: updateTiliaTos
security:
- authCookie: []
responses:
'200':
$ref: ../responses/economy/UpdateTiliaTOSResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
tags:
- economy
requestBody:
content:
application/json:
schema:
$ref: ../requests/UpdateTiliaTOSRequest.yaml
description: 'Updates the status of the agreement of a user to the Tilia TOS'
'/user/{userId}/balance':
parameters:
- $ref: ../parameters.yaml#/userId
Expand Down
17 changes: 17 additions & 0 deletions openapi/components/paths/inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ paths:
parameters:
- $ref: ../parameters.yaml#/number
- $ref: ../parameters.yaml#/offset
- $ref: ../parameters.yaml#/inventoryHolderId
- $ref: ../parameters.yaml#/inventoryEquipSlot
- $ref: ../parameters.yaml#/inventorySortOrder
- $ref: ../parameters.yaml#/inventoryItemTags
- $ref: ../parameters.yaml#/inventoryItemTypes
Expand All @@ -25,6 +27,8 @@ paths:
$ref: ../responses/inventory/InventoryResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
'403':
$ref: ../responses/NoPermission.yaml
tags:
- inventory
description: Returns an Inventory object.
Expand Down Expand Up @@ -62,6 +66,19 @@ paths:
schema:
$ref: ../requests/UpdateInventoryItemRequest.yaml
description: Returns the modified InventoryItem object as held by the currently logged in user.
delete:
summary: Delete Own Inventory Item
operationId: deleteOwnInventoryItem
security:
- authCookie: []
responses:
'200':
$ref: ../responses/inventory/DeleteInventoryItemResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
tags:
- inventory
description: Deletes an InventoryItem from the inventory of the currently logged in user.
'/users/{userId}/inventory/{inventoryItemId}':
parameters:
- $ref: ../parameters.yaml#/userId
Expand Down
4 changes: 4 additions & 0 deletions openapi/components/requests/UpdateInventoryItemRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ type: object
properties:
isArchived:
type: boolean
isSeen:
type: boolean
userAttributes:
$ref: ../schemas/InventoryUserAttributes.yaml
7 changes: 7 additions & 0 deletions openapi/components/requests/UpdateTiliaTOSRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: UpdateTiliaTOSRequest
type: object
properties:
accepted:
type: boolean
required:
- accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: Returns a list of ??? objects.
content:
application/json:
schema:
type: array
items:
type: object
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: Returns a UserSubscription object.
content:
application/json:
schema:
type: object
nullable: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: Returns a single UserCreditsEligible object.
content:
application/json:
schema:
$ref: ../../schemas/UserCreditsEligible.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: Returns a UserSubscription object.
content:
application/json:
schema:
$ref: ../../schemas/UserSubscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: Returns an SuccessFlag object.
content:
application/json:
schema:
$ref: ../../schemas/SuccessFlag.yaml
12 changes: 12 additions & 0 deletions openapi/components/schemas/InventoryDefaultAttributes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
title: InventoryDefaultAttributes
type: object
additionalProperties:
type: object
properties:
defaultValue:
type: string
validator:
type: object
properties:
type:
type: string
8 changes: 8 additions & 0 deletions openapi/components/schemas/InventoryEquipSlot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: InventoryEquipSlot
type: string
enum:
- ""
- drone
- portal
default: ""
example: drone
2 changes: 2 additions & 0 deletions openapi/components/schemas/InventoryFlag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ enum:
- trashable
- cloneable
- ugc
- equippable
- unique
default: instantiatable
example: consumable
15 changes: 15 additions & 0 deletions openapi/components/schemas/InventoryItem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@ properties:
format: date-time
type: string
example: '2025-06-13T05:00:45.455Z'
defaultAttributes:
$ref: ./InventoryDefaultAttributes.yaml
description:
type: string
equipSlot:
$ref: ./InventoryEquipSlot.yaml
equipSlots:
type: array
items:
$ref: ./InventoryEquipSlot.yaml
expiryDate:
format: date-time
type: string
Expand Down Expand Up @@ -56,9 +64,14 @@ properties:
format: date-time
type: string
example: '2025-06-25T00:34:15.965Z'
userAttributes:
$ref: ./InventoryUserAttributes.yaml
validateUserAttributes:
type: boolean
required:
- collections
- created_at
- defaultAttributes
- description
- expiryDate
- flags
Expand All @@ -76,3 +89,5 @@ required:
- template_created_at
- template_updated_at
- updated_at
- userAttributes
- validateUserAttributes
2 changes: 2 additions & 0 deletions openapi/components/schemas/InventoryItemType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ enum:
- prop
- emoji
- sticker
- droneskin
- portalskin
default: bundle
example: prop
9 changes: 9 additions & 0 deletions openapi/components/schemas/InventoryUserAttributes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: InventoryUserAttributes
type: object
properties:
primaryColor:
type: string
secondaryColor:
type: string
trailColor:
type: string
7 changes: 7 additions & 0 deletions openapi/components/schemas/SuccessFlag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: SuccessFlag
type: object
properties:
success:
type: boolean
required:
- success
9 changes: 9 additions & 0 deletions openapi/components/schemas/UserCreditsEligible.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: UserCreditsEligible
type: object
properties:
eligible:
type: boolean
reason:
type: string
required:
- eligible