A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(openapi): use a regular int64 type for visionary slot user id
Hampus Kraftb19e9fb243b5
diff --git a/fluxer_docs/api-reference/openapi.json b/fluxer_docs/api-reference/openapi.jsonindex 87c7f70c2..b1d7fdd83 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.mdxindex bf5e66e79..2cd10df6e 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) |<a id="resolvereportrequest"></a>diff --git a/fluxer_docs/resources/common.mdx b/fluxer_docs/resources/common.mdxindex 591ac44b8..16831a698 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 |<a id="discoveryapplicationrequest"></a>@@ -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 |<a id="discoverycategorylistresponse"></a>@@ -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.mdxindex e10992d6c..7174647d2 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) |<a id="priceidsresponsecurrency"></a>diff --git a/packages/schema/src/domains/admin/AdminSchemas.tsx b/packages/schema/src/domains/admin/AdminSchemas.tsxindex 0146c4759..545af2b0c 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<typeof ShrinkVisionarySlotsReqexport const ReserveVisionarySlotRequest = z.object({slot_index: Int32Type.min(1).describe('Slot index to reserve (must be >= 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)',),});