diff --git a/fluxer_docs/api-reference/openapi.json b/fluxer_docs/api-reference/openapi.json index 87c7f70c..b1d7fdd8 100644 --- a/fluxer_docs/api-reference/openapi.json +++ b/fluxer_docs/api-reference/openapi.json @@ -62477,9 +62477,9 @@ "type": "string", "description": "Discovery description" }, - "category_id": { + "category_type": { "type": "number", - "description": "Discovery category ID" + "description": "Discovery category type" }, "applied_at": { "type": "string", @@ -62512,7 +62512,7 @@ "guild_id", "status", "description", - "category_id", + "category_type", "applied_at" ] }, @@ -67240,7 +67240,7 @@ "user_id": { "anyOf": [ { - "$ref": "#/components/schemas/SnowflakeType" + "$ref": "#/components/schemas/Int64StringType" }, { "type": "null" @@ -67296,7 +67296,7 @@ "user_id": { "anyOf": [ { - "$ref": "#/components/schemas/SnowflakeType" + "$ref": "#/components/schemas/Int64StringType" }, { "type": "null" @@ -73535,9 +73535,9 @@ ], "description": "Discovery description" }, - "category_id": { + "category_type": { "type": "number", - "description": "Discovery category ID" + "description": "Discovery category type" }, "member_count": { "type": "number", @@ -73562,7 +73562,7 @@ "required": [ "id", "name", - "category_id", + "category_type", "member_count", "online_count", "features", @@ -75223,17 +75223,17 @@ "maxLength": 300, "description": "Description for discovery listing" }, - "category_id": { + "category_type": { "type": "integer", "minimum": 0, "maximum": 8, "format": "int32", - "description": "Discovery category ID" + "description": "Discovery category type" } }, "required": [ "description", - "category_id" + "category_type" ] }, "DiscoveryApplicationPatchRequest": { @@ -75245,12 +75245,12 @@ "maxLength": 300, "description": "Updated description for discovery listing" }, - "category_id": { + "category_type": { "type": "integer", "minimum": 0, "maximum": 8, "format": "int32", - "description": "Updated discovery category ID" + "description": "Updated discovery category type" } } }, diff --git a/fluxer_docs/resources/admin.mdx b/fluxer_docs/resources/admin.mdx index bf5e66e7..2cd10df6 100644 --- a/fluxer_docs/resources/admin.mdx +++ b/fluxer_docs/resources/admin.mdx @@ -657,7 +657,7 @@ description: 'Admin object schemas from the Fluxer API.' | Field | Type | Description | |-------|------|-------------| | applied_at | string | Application timestamp | -| category_id | number | Discovery category ID | +| category_type | number | Discovery category type | | description | string | Discovery description | | guild_id | [SnowflakeType](#snowflaketype) | Guild ID | | review_reason? | ?string | Review reason | @@ -2151,7 +2151,7 @@ Type: [MessageShredStatusNotFoundResponse](#messageshredstatusnotfoundresponse) | Field | Type | Description | |-------|------|-------------| | slot_index | integer (int32) | Slot index to reserve (must be >= 1) | -| user_id | ?[SnowflakeType](#snowflaketype) | User ID to reserve the slot for, or null to unreserve (special value -1 is also valid) | +| user_id | ?[Int64StringType](#int64stringtype) | User ID to reserve the slot for, or null to unreserve (special value -1 is also valid) | diff --git a/fluxer_docs/resources/common.mdx b/fluxer_docs/resources/common.mdx index 591ac44b..16831a69 100644 --- a/fluxer_docs/resources/common.mdx +++ b/fluxer_docs/resources/common.mdx @@ -103,7 +103,7 @@ Type: [ConnectionResponse](#connectionresponse)[] | Field | Type | Description | |-------|------|-------------| -| category_id? | integer (int32) | Updated discovery category ID | +| category_type? | integer (int32) | Updated discovery category type | | description? | string | Updated description for discovery listing | @@ -116,7 +116,7 @@ Type: [ConnectionResponse](#connectionresponse)[] | Field | Type | Description | |-------|------|-------------| -| category_id | integer (int32) | Discovery category ID | +| category_type | integer (int32) | Discovery category type | | description | string | Description for discovery listing | @@ -157,7 +157,7 @@ Type: [DiscoveryCategoryResponse](#discoverycategoryresponse)[] | Field | Type | Description | |-------|------|-------------| -| category_id | number | Discovery category ID | +| category_type | number | Discovery category type | | description? | ?string | Discovery description | | features | string[] | Guild feature flags | | icon? | ?string | Guild icon hash | diff --git a/fluxer_docs/resources/premium.mdx b/fluxer_docs/resources/premium.mdx index e10992d6..7174647d 100644 --- a/fluxer_docs/resources/premium.mdx +++ b/fluxer_docs/resources/premium.mdx @@ -26,7 +26,7 @@ description: 'Premium object schemas from the Fluxer API.' | Field | Type | Description | |-------|------|-------------| | slot_index | integer (int32) | The slot index | -| user_id | ?[SnowflakeType](#snowflaketype) | User ID that reserved this slot, or null if unreserved (special value -1 is also valid) | +| user_id | ?[Int64StringType](#int64stringtype) | User ID that reserved this slot, or null if unreserved (special value -1 is also valid) | diff --git a/packages/schema/src/domains/admin/AdminSchemas.tsx b/packages/schema/src/domains/admin/AdminSchemas.tsx index 0146c475..545af2b0 100644 --- a/packages/schema/src/domains/admin/AdminSchemas.tsx +++ b/packages/schema/src/domains/admin/AdminSchemas.tsx @@ -990,14 +990,9 @@ export const DeleteApiKeyResponse = z.object({ success: z.literal(true), }); -const SnowflakeOrSentinelType = z - .string() - .regex(/^(-1|0|[1-9][0-9]*)$/) - .describe('fluxer:SnowflakeStringType'); - export const VisionarySlotSchema = z.object({ slot_index: Int32Type.describe('The slot index'), - user_id: SnowflakeOrSentinelType.nullable().describe( + user_id: Int64StringType.nullable().describe( 'User ID that reserved this slot, or null if unreserved (special value -1 is also valid)', ), }); @@ -1028,7 +1023,7 @@ export type ShrinkVisionarySlotsRequest = z.infer= 1)'), - user_id: SnowflakeOrSentinelType.nullable().describe( + user_id: Int64StringType.nullable().describe( 'User ID to reserve the slot for, or null to unreserve (special value -1 is also valid)', ), });