Datalayer VS Code Extension - v0.0.17
    Preparing search index...
    • Creates a cloud lexical document in a Datalayer space.

      Parameters

      • params: { description?: string; name: string; spaceId?: string; spaceName: string }

        Lexical document creation parameters (name, description, space).

        • Optionaldescription?: string

          Optional description for the document.

        • name: string

          Display name for the lexical document.

        • OptionalspaceId?: string

          Optional space identifier for direct lookup.

        • spaceName: string

          Name of the target Datalayer space.

      • context: {
            auth?: unknown;
            datalayer?: unknown;
            extras?: {
                openCloudDocument?: (
                    document: unknown,
                    spaceName: string,
                    documentType: "notebook" | "lexical",
                ) => Promise<void>;
            };
        }

        Context with Datalayer client, auth, and cloud document callbacks.

        • Optionalauth?: unknown

          Authentication state for the current user.

        • Optionaldatalayer?: unknown

          Datalayer client instance for API calls.

        • Optionalextras?: {
              openCloudDocument?: (
                  document: unknown,
                  spaceName: string,
                  documentType: "notebook" | "lexical",
              ) => Promise<void>;
          }

          Additional callbacks and utilities.

          • OptionalopenCloudDocument?: (
                document: unknown,
                spaceName: string,
                documentType: "notebook" | "lexical",
            ) => Promise<void>

            Callback to open the created document.

      • OptionalchatMessage: string

        Optional message to include in the result for chat feedback.

      Returns Promise<CreateDocumentResult>

      Result with document URI and metadata or error details.