Skip to content

Commit

Permalink
fix: /world response type
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrt1n committed Aug 20, 2024
1 parent b0961d2 commit 15be50f
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
version: 0.10.1
version: 0.10.2
additionalDependencies:
dependencies:
viem: ^2.19.1
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ speakeasyVersion: 1.376.0
sources:
cardinal:
sourceNamespace: cardinal
sourceRevisionDigest: sha256:a9c5bd20d2d3d407c7a93e845ed63a364e0af21fa9177aafed20ca3602237d77
sourceBlobDigest: sha256:7be001c1c4319284e0013cd840895f81e89f69f351b814ce6dd35a3132d33010
sourceRevisionDigest: sha256:88376b5540e3140bc14317677394a1f9c6b92ea115a823a2af65aa6a40bb4b90
sourceBlobDigest: sha256:ee6858159eef08c3ef4349b0b359d9bcc8207a5c3e6ac67dc52a017aa4799b2e
tags:
- latest
targets:
cardinal-ts:
source: cardinal
sourceNamespace: cardinal
sourceRevisionDigest: sha256:a9c5bd20d2d3d407c7a93e845ed63a364e0af21fa9177aafed20ca3602237d77
sourceBlobDigest: sha256:7be001c1c4319284e0013cd840895f81e89f69f351b814ce6dd35a3132d33010
sourceRevisionDigest: sha256:88376b5540e3140bc14317677394a1f9c6b92ea115a823a2af65aa6a40bb4b90
sourceBlobDigest: sha256:ee6858159eef08c3ef4349b0b359d9bcc8207a5c3e6ac67dc52a017aa4799b2e
outLocation: cardinal/sdk/typescript
workflow:
workflowVersion: 1.0.0
Expand Down
7 changes: 3 additions & 4 deletions cardinal/sdk/typescript/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 156883ba-7f38-4ec6-b684-ccf304078a11
management:
docChecksum: da89e2e77785777b1978d881d516a4df
docChecksum: c59efc63a3471b9ba779ad372e0eb81a
docVersion: 0.0.1
speakeasyVersion: 1.376.0
generationVersion: 2.402.5
releaseVersion: 0.10.1
configChecksum: 5f5ca0feab724ac955bf571129932c8e
releaseVersion: 0.10.2
configChecksum: fbee4070a2380f36f8dfcbabfcf817ec
features:
typescript:
additionalDependencies: 0.1.0
Expand Down Expand Up @@ -97,7 +97,6 @@ generatedFiles:
- docs/models/components/cardinalserverhandlerposttransactionresponse.md
- docs/models/components/cardinalserverhandlertransaction.md
- docs/models/components/cardinalserverhandlergetworldresponse.md
- docs/models/components/fields.md
- docs/models/components/pkgworlddevworldenginecardinaltypesfielddetail.md
- docs/models/operations/postquerygamequerynamerequest.md
- docs/models/operations/posttxgametxnameglobals.md
Expand Down
14 changes: 0 additions & 14 deletions cardinal/sdk/typescript/docs/models/components/fields.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ let value: PkgWorldDevWorldEngineCardinalTypesFieldDetail = {};

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `fields` | Record<string, [components.Fields](../../models/components/fields.md)> | :heavy_minus_sign: | variable name and type |
| `name` | *string* | :heavy_minus_sign: | name of the message or query |
| `url` | *string* | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- |
| `fields` | Record<string, *any*> | :heavy_minus_sign: | variable name and type |
| `name` | *string* | :heavy_minus_sign: | name of the message or query |
| `url` | *string* | :heavy_minus_sign: | N/A |
2 changes: 1 addition & 1 deletion cardinal/sdk/typescript/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "cardinal",
"version": "0.10.1",
"version": "0.10.2",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions cardinal/sdk/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cardinal/sdk/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cardinal",
"version": "0.10.1",
"version": "0.10.2",
"author": "Argus Labs",
"main": "./index.js",
"sideEffects": false,
Expand Down
4 changes: 2 additions & 2 deletions cardinal/sdk/typescript/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.0.1",
sdkVersion: "0.10.1",
sdkVersion: "0.10.2",
genVersion: "2.402.5",
userAgent: "speakeasy-sdk/typescript 0.10.1 2.402.5 0.0.1 cardinal",
userAgent: "speakeasy-sdk/typescript 0.10.2 2.402.5 0.0.1 cardinal",
} as const;
Original file line number Diff line number Diff line change
Expand Up @@ -4,56 +4,32 @@

import * as z from "zod";

export type Fields = {};

export type PkgWorldDevWorldEngineCardinalTypesFieldDetail = {
/**
* variable name and type
*/
fields?: { [k: string]: Fields } | undefined;
fields?: { [k: string]: any } | undefined;
/**
* name of the message or query
*/
name?: string | undefined;
url?: string | undefined;
};

/** @internal */
export const Fields$inboundSchema: z.ZodType<Fields, z.ZodTypeDef, unknown> = z.object({});

/** @internal */
export type Fields$Outbound = {};

/** @internal */
export const Fields$outboundSchema: z.ZodType<Fields$Outbound, z.ZodTypeDef, Fields> = z.object({});

/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export namespace Fields$ {
/** @deprecated use `Fields$inboundSchema` instead. */
export const inboundSchema = Fields$inboundSchema;
/** @deprecated use `Fields$outboundSchema` instead. */
export const outboundSchema = Fields$outboundSchema;
/** @deprecated use `Fields$Outbound` instead. */
export type Outbound = Fields$Outbound;
}

/** @internal */
export const PkgWorldDevWorldEngineCardinalTypesFieldDetail$inboundSchema: z.ZodType<
PkgWorldDevWorldEngineCardinalTypesFieldDetail,
z.ZodTypeDef,
unknown
> = z.object({
fields: z.record(z.lazy(() => Fields$inboundSchema)).optional(),
fields: z.record(z.any()).optional(),
name: z.string().optional(),
url: z.string().optional(),
});

/** @internal */
export type PkgWorldDevWorldEngineCardinalTypesFieldDetail$Outbound = {
fields?: { [k: string]: Fields$Outbound } | undefined;
fields?: { [k: string]: any } | undefined;
name?: string | undefined;
url?: string | undefined;
};
Expand All @@ -64,7 +40,7 @@ export const PkgWorldDevWorldEngineCardinalTypesFieldDetail$outboundSchema: z.Zo
z.ZodTypeDef,
PkgWorldDevWorldEngineCardinalTypesFieldDetail
> = z.object({
fields: z.record(z.lazy(() => Fields$outboundSchema)).optional(),
fields: z.record(z.any()).optional(),
name: z.string().optional(),
url: z.string().optional(),
});
Expand Down
4 changes: 1 addition & 3 deletions cardinal/server/docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -670,9 +670,7 @@
"properties": {
"fields": {
"type": "object",
"additionalProperties": {
"type": "object"
},
"additionalProperties": {},
"description": "variable name and type"
},
"name": {
Expand Down
2 changes: 2 additions & 0 deletions scripts/pre-speakeasy.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ data.paths['/query/game/{queryName}'].post.responses['200'].content['application
delete data.components.schemas['cardinal_server_handler.Transaction'].properties.body.properties
data.components.schemas['cardinal_server_handler.Transaction'].properties.body.additionalProperties = {}

// GET /world
data.components.schemas['pkg_world_dev_world-engine_cardinal_types.FieldDetail'].properties.fields.additionalProperties = {}

/// ---------------------------------------------------------------------------
/// Apply changes
Expand Down

0 comments on commit 15be50f

Please sign in to comment.