import type { Client, Options as Options2, TDataShape } from './client/index.js'; import type { BulkUpdateRepoTagsData, BulkUpdateRepoTagsErrors, BulkUpdateRepoTagsResponses, CreateBookmarkData, CreateBookmarkErrors, CreateBookmarkResponses, CreateChangeData, CreateChangeErrors, CreateChangeResponses, CreateRepoData, CreateRepoErrors, CreateRepoResponses, CreateWebhookTargetData, CreateWebhookTargetErrors, CreateWebhookTargetResponses, DeleteBookmarkData, DeleteBookmarkErrors, DeleteBookmarkResponses, DeleteRepoData, DeleteRepoErrors, DeleteRepoResponses, DeleteWebhookTargetData, DeleteWebhookTargetErrors, DeleteWebhookTargetResponses, GetBookmarkData, GetBookmarkErrors, GetBookmarkResponses, GetChangeData, GetChangeErrors, GetChangeResponses, GetContentData, GetContentErrors, GetContentResponses, GetDiffData, GetDiffErrors, GetDiffResponses, GetOrgData, GetOrgErrors, GetOrgResponses, GetRepoData, GetRepoErrors, GetRepoResponses, GetRepoUpstreamSyncData, GetRepoUpstreamSyncErrors, GetRepoUpstreamSyncResponses, GetWebhookTargetData, GetWebhookTargetErrors, GetWebhookTargetResponses, ListBookmarksData, ListBookmarksErrors, ListBookmarksResponses, ListChangesData, ListChangesErrors, ListChangesResponses, ListReposData, ListReposErrors, ListReposResponses, ListRepoUpstreamSyncsData, ListRepoUpstreamSyncsErrors, ListRepoUpstreamSyncsResponses, ListWebhookTargetsData, ListWebhookTargetsErrors, ListWebhookTargetsResponses, MergeBookmarkData, MergeBookmarkErrors, MergeBookmarkResponses, MoveBookmarkData, MoveBookmarkErrors, MoveBookmarkResponses, SyncUpstreamData, SyncUpstreamErrors, SyncUpstreamResponses, UpdateChangeData, UpdateChangeErrors, UpdateChangeResponses, UpdateRepoData, UpdateRepoErrors, UpdateRepoResponses, UpdateWebhookTargetData, UpdateWebhookTargetErrors, UpdateWebhookTargetResponses, WhoamiData, WhoamiErrors, WhoamiResponses } from './types.gen.js'; export type Options = Options2 & { /** * You can provide a client instance returned by `createClient()` instead of * individual options. This might be also useful if you want to implement a * custom client. */ client?: Client; /** * You can pass arbitrary values through the `meta` object. This can be * used to access values that aren't defined as part of the SDK function. */ meta?: Record; }; /** * Get caller identity * * Get the authenticated organization, effective scopes, and public-key metadata */ export declare const whoami: (options?: Options) => import("./client/types.gen.js").RequestResult; /** * List webhook targets * * List webhook targets configured for the organization */ export declare const listWebhookTargets: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Create webhook target * * Create a webhook target for the organization */ export declare const createWebhookTarget: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Delete webhook target * * Delete a webhook target from the organization */ export declare const deleteWebhookTarget: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Get webhook target * * Get a webhook target by ID */ export declare const getWebhookTarget: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Update webhook target * * Update a webhook target for the organization. Any provided field replaces its current value; omitted fields are left unchanged. Pass `repo_ids: null` to clear the repo filter and make the target org-wide. */ export declare const updateWebhookTarget: (options: Options) => import("./client/types.gen.js").RequestResult; /** * List repositories * * List repositories in the organization using cursor pagination */ export declare const listRepos: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Create repository * * Create a new repository in the organization */ export declare const createRepo: (options: Options) => import("./client/types.gen.js").RequestResult; /** * List upstream syncs * * List syncs for the repository upstream, newest first. */ export declare const listRepoUpstreamSyncs: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Sync upstream * * Enqueue a sync for the repository upstream. Returns the sync, which the worker processes asynchronously. Read `repo.upstream.latest_sync`, fetch `GET /:repo/upstream/syncs/:syncId`, or list `GET /:repo/upstream/syncs` for status. */ export declare const syncUpstream: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Get upstream sync * * Get one sync for the repository upstream. */ export declare const getRepoUpstreamSync: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Delete repository * * Permanently delete a repository and all its data */ export declare const deleteRepo: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Get repository * * Get metadata for a specific repository */ export declare const getRepo: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Update repository * * Update repository name, default bookmark, or tags. Tags are patched: omitted keys are unchanged, string values add or update a tag, and null values remove a tag. */ export declare const updateRepo: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Bulk update tags * * Bulk set or remove a tag across repositories. This operation is idempotent. */ export declare const bulkUpdateRepoTags: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Get content * * Get file content or directory listing at a path. Use Accept: application/json for the JSON union response, or Accept: application/octet-stream for raw file bytes. Directory + octet-stream requests return 406 Not Acceptable. * * File, symlink, and directory responses include an optional `metadata` field with the path's metadata when any is set; the field is omitted otherwise. Values are plain UTF-8 strings. Directory listings additionally surface per-entry metadata inline on each row in `entries[]` (also UTF-8 strings, omitted when empty). Reads at a historical `change_id` return today's metadata for the resolved path, not the values as of that change (metadata is stored separately from Git history). * * Directory listings can be filtered by metadata predicates: `?metadata[key]=value`, repeatable. Multiple keys are AND-ed (exact-value match). Entries without metadata (or with mismatched values) are dropped from `entries[]`. The filter is ignored when the resolved path is a file or symlink. */ export declare const getContent: (options: Options) => import("./client/types.gen.js").RequestResult; /** * List bookmarks * * List bookmarks in a repository, optionally filtered by a bookmark-name glob */ export declare const listBookmarks: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Create bookmark * * Create a new bookmark from an existing change id */ export declare const createBookmark: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Delete bookmark * * Delete a bookmark from a repository */ export declare const deleteBookmark: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Get bookmark * * Get a single bookmark by name */ export declare const getBookmark: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Move bookmark * * Move an existing bookmark forward to a different change. Backward or sideways moves require allow_backwards. */ export declare const moveBookmark: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Merge bookmarks * * Merge the source bookmark into the target bookmark. The target bookmark is advanced to the merge result. */ export declare const mergeBookmark: (options: Options) => import("./client/types.gen.js").RequestResult; /** * List changes * * List current reachable changes for a repository bookmark */ export declare const listChanges: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Create change * * Create a new change on top of an existing base change, optionally applying initial file operations. File content must be base64-encoded. */ export declare const createChange: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Get change * * Retrieve a specific change by its JJ change id */ export declare const getChange: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Patch change * * Patch an existing change by updating metadata and/or applying file operations, then snapshot the result into a new change-owned commit. File content must be base64-encoded. When the change is conflicted, `files` writes are refused; submit a `resolutions` array instead to incrementally resolve conflicts — when every contested path is resolved the change becomes clean. `files` and `resolutions` are mutually exclusive on a single PATCH. A PATCH on a conflicted change without `resolutions` returns 409 MERGE_CONFLICT with a `details.conflict_paths` array listing the still-conflicted paths. */ export declare const updateChange: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Get diff * * Retrieve the diff between two change ids. In the JSON response, conflicted paths are excluded from `entries[]` and surface only in `conflicted_entries[]` (with per-side target/base/source content); the two arrays are mutually exclusive. When the client requests `Accept: text/plain`, the response is a full unified patch that includes every changed path, with conflicted paths rendered inline using JJ-style `<<<<<<<` / `>>>>>>>` markers. */ export declare const getDiff: (options: Options) => import("./client/types.gen.js").RequestResult; /** * Get organization * * Get organization metadata and repository counts */ export declare const getOrg: (options: Options) => import("./client/types.gen.js").RequestResult; //# sourceMappingURL=sdk.gen.d.ts.map