Deprecated API
+ + π View v0 Spec in Schema Explorer + +Stable API - Recommended for production use
+ + π View v1 Spec in Schema Explorer + +Experimental API
+ + π View v2 Spec in Schema Explorer + +{refName};
+ }
+
+ // Handle simple type
+ if (
+ sch.type &&
+ typeof sch.type === "string" &&
+ !sch.properties &&
+ !sch.items
+ ) {
+ let typeStr = sch.type;
+ if (sch.format) typeStr += ` (${sch.format})`;
+ if (sch.minimum !== undefined) typeStr += ` β₯ ${sch.minimum}`;
+ if (sch.maximum !== undefined) typeStr += ` β€ ${sch.maximum}`;
+ return {typeStr};
+ }
+
+ // Handle array
+ if (sch.type === "array" && sch.items) {
+ return <>Array<{renderSchemaContent(sch.items, depth + 1)}>>;
+ }
+
+ // Handle object with properties
+ if (sch.type === "object" && sch.properties) {
+ const props = Object.entries(sch.properties as Record
+ {key}
+ {!required.includes(key) && (
+ ?
+ )}
+
+ :
+ {renderSchemaContent(value, depth + 1)}
+ {typeName};
+ }
+
+ const schemaId = `schema-${version}-${schemaRef}`;
+
+ const handleKeyDown = (e: React.KeyboardEvent) => {
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ setShowSchema(!showSchema);
+ }
+ };
+
+ return (
+ setShowSchema(!showSchema)}
+ onKeyDown={handleKeyDown}
+ role="button"
+ tabIndex={0}
+ aria-expanded={showSchema}
+ aria-controls={schemaId}
+ title="Click to show schema details"
+ >
+ {typeName}
+ {showSchema ? " βΌ" : " βΆ"}
+
+ {showSchema && (
+ + Complete reference for all RPC methods across multiple API versions +
++ Showing {filteredMethods.length} method + {filteredMethods.length !== 1 ? "s" : ""} in{" "} + {selectedVersion.toUpperCase()} +
+
+ {method.name}
+
+ + {method.description} +
+ )} +No parameters
+ ) : ( +
+ {param.name}
+
+ {!param.required && (
+
+ optional
+
+ )}
+ + {param.description} +
+ )} ++ {method.returnDescription} +
+ )} +No methods found matching your search criteria.
+