@wix/auto_sdk_git-code-store_projects 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +75 -36
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +75 -36
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +75 -36
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +75 -36
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +75 -36
- package/build/internal/cjs/meta.d.ts +75 -36
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +75 -36
- package/build/internal/es/meta.d.mts +75 -36
- package/package.json +4 -4
package/build/es/meta.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/codestore-v2-project-projects.http.ts","../../src/codestore-v2-project-projects.types.ts","../../src/codestore-v2-project-projects.meta.ts"],"sourcesContent":["import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n { path: 'expiresAt' },\n { path: 'revision.creationTime' },\n];\nconst TRANSFORM_PATHS_1 = [{ path: 'expiresAt' }];\nconst TRANSFORM_PATHS_2 = [{ path: 'revision.creationTime' }];\n\nfunction resolveWixCodestoreV2GitCodeStoreManagedProjectManagementUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_api/git-code-store',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/git-code-store',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/git-code-store',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/git-code-store',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/codestore/v2/git-code-store-projects',\n destPath: '/v2/git-code-store-projects',\n },\n ],\n _: [\n {\n srcPath: '/codestore/v2/git-code-store-projects',\n destPath: '/v2/git-code-store-projects',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_git-code-store_projects';\n\n/**\n * Generates a temporary URL to download all tracked files at one revision as a ZIP.\n *\n * Includes hidden directories, binary files and materialized LFS objects; excludes Git history.\n * Defaults to main. Omit `revisionId` to download the current branch head.\n * Supply the returned revision when committing uploaded code unless force is true.\n * Supports at most 10,000 tracked files, 256 MiB expanded, and a 64 MiB ZIP.\n * Rejects unsafe paths, submodules, special files, and dangling or escaping symlinks.\n * Requires an authenticated user with read access to the app or its companion site.\n */\nexport function generateGitCodeStoreProjectDownloadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateGitCodeStoreProjectDownloadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.codestore.v2.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.codestore.v2.GitCodeStoreManagedProjectManagement.GenerateGitCodeStoreProjectDownloadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCodestoreV2GitCodeStoreManagedProjectManagementUrl({\n protoPath:\n '/v2/git-code-store-projects/{managedProjectId}/generate-download-url',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generateGitCodeStoreProjectDownloadUrl;\n}\n\n/**\n * Generates a temporary, project-scoped URL for uploading a ZIP with HTTP PUT.\n *\n * PUT the ZIP with the returned headers, then call\n * [Commit Git Code Store Project Upload](https://dev.wix.com/docs/api-reference/account-level/git-codestore/commit-git-code-store-project-upload).\n * The 64 MiB compressed size limit is checked when committing the upload, not by the signed PUT.\n * Uploading alone never changes the repository. ZIP paths must be relative to its root.\n * Requires an authenticated user with update access to the app or its companion site.\n */\nexport function generateGitCodeStoreProjectUploadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateGitCodeStoreProjectUploadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.codestore.v2.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.codestore.v2.GitCodeStoreManagedProjectManagement.GenerateGitCodeStoreProjectUploadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCodestoreV2GitCodeStoreManagedProjectManagementUrl({\n protoPath:\n '/v2/git-code-store-projects/{managedProjectId}/generate-upload-url',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generateGitCodeStoreProjectUploadUrl;\n}\n\n/**\n * Commits and pushes a previously uploaded ZIP's contents to an existing branch.\n *\n * Replaces the complete tracked file tree. Does not publish or deploy the application.\n * Files omitted from the ZIP are deleted. Creates one child commit and preserves history; never resets the branch history.\n * Defaults to main. An empty ZIP intentionally removes all files. An unchanged tree creates no commit.\n * Unless force is true, a stale expected head fails even for unchanged input.\n * Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict.\n * Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries.\n * Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository.\n * After a timeout, call [Generate Git Code Store Project Download Url](https://dev.wix.com/docs/api-reference/account-level/git-codestore/generate-git-code-store-project-download-url)\n * for the same branch with `revisionId` omitted.\n * Compare its revision and downloaded tree with your intended changes before retrying.\n * A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout.\n * Requires an authenticated user with update access to the app or its companion site.\n */\nexport function commitGitCodeStoreProjectUpload(\n payload: object\n): RequestOptionsFactory<any> {\n function __commitGitCodeStoreProjectUpload({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.codestore.v2.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.codestore.v2.GitCodeStoreManagedProjectManagement.CommitGitCodeStoreProjectUpload',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCodestoreV2GitCodeStoreManagedProjectManagementUrl({\n protoPath:\n '/v2/git-code-store-projects/{managedProjectId}/commit-upload',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __commitGitCodeStoreProjectUpload;\n}\n","/**\n * Virtual entity representing the codestore v2 project.\n * All persistence lives on wix.appmanagedprojects.v1.AppManagedProject;\n * this entity exists to anchor the v2 service to its own FQDN.\n */\nexport interface Project {\n /**\n * Structural placeholder. The entity is virtual (persistence: NONE);\n * all real state lives on wix.appmanagedprojects.v1.AppManagedProject.\n * @format GUID\n */\n id?: string;\n}\n\nexport interface GitCodeStoreProjectCreated {\n /**\n * The ID of the managed project for which the git code store project was created.\n * @format GUID\n */\n managedProjectId?: string;\n /** The git code store options of the created project. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n}\n\n/**\n * GitCodeStoreOptions represents per-project state for a git code store project.\n * Stored on the AppManagedProject entity.\n */\nexport interface GitCodeStoreOptions extends GitCodeStoreOptionsOptionsOneOf {\n s3Options?: GitCodeStoreOptionsS3Options;\n githubOptions?: GitHubOptions;\n /**\n * The git remote URL of the linked project.\n * @maxLength 200\n * @immutable\n */\n gitRemoteUrl?: string;\n gitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface GitCodeStoreOptionsOptionsOneOf {\n s3Options?: GitCodeStoreOptionsS3Options;\n githubOptions?: GitHubOptions;\n}\n\nexport enum GitRemoteType {\n S3 = 'S3',\n GITHUB = 'GITHUB',\n}\n\n/** @enumType */\nexport type GitRemoteTypeWithLiterals = GitRemoteType | 'S3' | 'GITHUB';\n\nexport interface GitCodeStoreOptionsS3Options {\n /**\n * S3 access key id.\n * @maxLength 20\n */\n accessKeyId?: string;\n /**\n * S3 secret access key.\n * @maxLength 40\n */\n secretAccessKey?: string;\n}\n\nexport interface GitHubOptions {\n /**\n * GitHub App installation ID for this project.\n * @maxLength 200\n */\n appInstallationId?: string;\n}\n\nexport interface GitCodeStoreProjectTransferred {\n /**\n * The ID of the managed project that was transferred.\n * @format GUID\n */\n managedProjectId?: string;\n /** The updated git code store options after the transfer. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n}\n\nexport interface GitCodeStoreProjectDeleted {\n /**\n * The ID of the managed project whose git code store project was deleted.\n * @format GUID\n */\n managedProjectId?: string;\n}\n\nexport interface GenerateGitCodeStoreProjectDownloadUrlRequest {\n /**\n * ID of the existing AppManagedProject whose code will be downloaded.\n * This identifies the managed project, not its site or a legacy v1 Code Store project.\n * @format GUID\n */\n managedProjectId: string;\n /**\n * Existing branch. Defaults to main.\n * @minLength 1\n * @maxLength 250\n */\n branchName?: string | null;\n /**\n * Optional full commit SHA, reachable from the selected branch. Defaults to its head.\n * @minLength 40\n * @maxLength 40\n */\n revisionId?: string | null;\n}\n\nexport interface GenerateGitCodeStoreProjectDownloadUrlResponse {\n /**\n * Signed URL for downloading the complete ZIP with HTTP GET. Valid for 5 minutes.\n * Anyone holding this URL can download the ZIP until it expires; no additional authorization is required.\n * @format WEB_URL\n */\n downloadUrl?: string;\n /** Expiration of the signed URL; credential expiry or revocation can invalidate it earlier. */\n expiresAt?: Date | null;\n /** Revision included in the ZIP. Use its id as the expected head when committing an upload. */\n revision?: Revision;\n /**\n * Resolved branch name.\n * @maxLength 250\n */\n branchName?: string;\n}\n\nexport interface Revision {\n /**\n * Revision identifier\n * @readonly\n * @maxLength 40\n */\n id?: string | null;\n /**\n * Revision description message\n * @readonly\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Creation time\n * @readonly\n */\n creationTime?: Date | null;\n /** Author details */\n author?: Author;\n}\n\nexport interface Author {\n /**\n * Author name\n * @readonly\n * @maxLength 100\n */\n name?: string;\n /**\n * Author email\n * @readonly\n * @format EMAIL\n */\n email?: string;\n}\n\nexport interface GenerateGitCodeStoreProjectUploadUrlRequest {\n /**\n * ID of the existing AppManagedProject receiving the upload.\n * Use the same `managedProjectId` for downloading, uploading, and committing.\n * @format GUID\n */\n managedProjectId: string;\n}\n\nexport interface GenerateGitCodeStoreProjectUploadUrlResponse {\n /**\n * Project-scoped upload identifier. Pass it to CommitGitCodeStoreProjectUpload after PUT succeeds.\n * @format GUID\n */\n uploadId?: string;\n /**\n * Signed URL accepting HTTP PUT for one staged object. Valid for 5 minutes.\n * Anyone holding this URL can replace the staged object until it expires.\n * @format WEB_URL\n */\n uploadUrl?: string;\n /**\n * Required headers for the PUT, in addition to headers automatically set by the HTTP client.\n * @maxSize 20\n */\n headers?: Record<string, string>;\n /** Expiration of the signed URL; credential expiry or revocation can invalidate it earlier. */\n expiresAt?: Date | null;\n}\n\nexport interface GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest {\n /**\n * Managed project that issued the upload identifier.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Identifier returned by GenerateGitCodeStoreProjectUploadUrl. PUT must have completed.\n * The staged object must be at most 64 MiB and less than one hour old.\n * @format GUID\n */\n uploadId?: string;\n}\n\nexport interface GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse {\n /**\n * Signed HTTP GET URL for the staged ZIP, valid for at most five minutes.\n * Anyone holding the URL and required headers can download it until expiry.\n * @format WEB_URL\n */\n downloadUrl?: string;\n /**\n * Required GET headers, including If-Match binding the download to the checked object.\n * Do not omit or modify them. No Wix authorization header is needed for the GET.\n * @maxSize 20\n */\n headers?: Record<string, string>;\n /** Capped by the remaining one-hour upload lifetime. Credentials can invalidate it earlier. */\n expiresAt?: Date | null;\n}\n\nexport interface CommitGitCodeStoreProjectUploadRequest {\n /**\n * ID of the existing AppManagedProject to update. Must be the same project that issued `uploadId`.\n * @format GUID\n */\n managedProjectId: string;\n /**\n * Identifier returned by GenerateGitCodeStoreProjectUploadUrl.\n * The ZIP must have been uploaded within the last hour.\n * @format GUID\n */\n uploadId: string;\n /**\n * Existing branch. Defaults to main.\n * @minLength 1\n * @maxLength 250\n */\n branchName?: string | null;\n /**\n * Full SHA from the download URL response. Required unless force is true; ignored when force is true.\n * Prevents replacing code changed since the download. The handler requires exactly 40 hexadecimal characters\n * when force is false; missing, empty, abbreviated, or non-hexadecimal values are rejected before reading the upload.\n * @maxLength 40\n */\n expectedHeadRevisionId?: string;\n /** Message and author for the replacement commit. */\n commit: GitCodeStoreProjectCommitOptions;\n /**\n * Replace the latest branch tree even if it changed since download. Defaults to false.\n * Preserves history by creating a normal commit; concurrent writes can still cause a conflict.\n */\n force?: boolean;\n}\n\n/** Git commit metadata supplied by the caller when creating a revision. */\nexport interface GitCodeStoreProjectCommitOptions {\n /**\n * Commit message.\n * @minLength 1\n * @maxLength 2000\n */\n message?: string;\n /** Commit author. */\n author?: GitCodeStoreProjectCommitAuthor;\n}\n\n/** Git commit author supplied by the caller when creating a revision. */\nexport interface GitCodeStoreProjectCommitAuthor {\n /**\n * Author name.\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /**\n * Author email.\n * @format EMAIL\n */\n email?: string;\n}\n\nexport interface CommitGitCodeStoreProjectUploadResponse {\n /** New revision, or the existing revision when the file tree is unchanged. */\n revision?: Revision;\n /**\n * Resolved branch name.\n * @minLength 1\n * @maxLength 250\n */\n branchName?: string;\n /** Whether a replacement commit was created. */\n changed?: boolean;\n}\n\nexport interface CreateGitCodeStoreProjectRequest {\n /**\n * The ID of the managed project to link the git code store project to.\n * @format GUID\n */\n managedProjectId?: string;\n /** Optional. Per-project overrides. If not supplied, defaults from the GitCodeStoreConfig will be used. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n /** Initial revision details for the first commit of the new project. */\n initialRevision?: Revision;\n /**\n * List of files (text only) to be created as part of the project's initial revision.\n * @minSize 1\n * @maxSize 200\n */\n files?: FileInfo[];\n /** Type of git remote used for the project being created. */\n gitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\nexport interface FileInfo {\n /**\n * Path of the file.\n * @minLength 1\n * @maxLength 250\n */\n path?: string;\n /**\n * Content of the file.\n * @maxLength 3100000\n */\n content?: string;\n}\n\nexport interface CreateGitCodeStoreProjectResponse {\n /** The created git code store options to be persisted on the AppManagedProject entity. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n}\n\nexport interface TransferGitCodeStoreProjectRequest {\n /**\n * The ID of the managed project being transferred.\n * @format GUID\n */\n managedProjectId?: string;\n}\n\nexport interface TransferGitCodeStoreProjectResponse {\n /** The updated git code store options after the transfer. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n}\n\nexport interface DeleteGitCodeStoreProjectRequest {\n /**\n * The ID of the managed project whose git code store project should be deleted.\n * @format GUID\n */\n managedProjectId?: string;\n /** Type of git remote of the project being deleted. */\n gitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\nexport interface DeleteGitCodeStoreProjectResponse {}\n\nexport interface CloneGitCodeStoreProjectRequest {\n /**\n * The ID of the managed project whose repository is the clone source.\n * Its current `GitCodeStoreOptions` (and resolved `GitCodeStoreConfig` for\n * GitHub-backed projects) are looked up by this service.\n * @format GUID\n */\n sourceManagedProjectId?: string;\n /**\n * The ID of the managed project that will own the newly created git code store project.\n * The target must be empty and is initialized as an S3 repository with every source branch.\n * Each branch contains its source head's files in one new parentless commit, without source history.\n * A failed partial clone must be retried with a new empty target.\n * @format GUID\n */\n targetManagedProjectId?: string;\n /**\n * Optional files to create or replace in every target branch's initial commit.\n * Use this to patch files that must reference the target project rather than the source\n * (for example, wix.config.mjs with the target's appId). Paths must follow the\n * same repository-relative contract as wix.codestore.v1.FileInfo.path.\n * @maxSize 20\n */\n overrideFiles?: FileInfo[];\n}\n\nexport interface CloneGitCodeStoreProjectResponse {\n /** The S3 `GitCodeStoreOptions` for the target. Caller persists on AppManagedProject. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n /**\n * The new commit hash on the source's default branch in the target repository.\n * @maxLength 40\n */\n commitHash?: string | null;\n}\n\nexport interface MigrateGitCodeStoreProjectRequest\n extends MigrateGitCodeStoreProjectRequestTargetOptionsOneOf {\n /** Target S3 options. Required when `target_git_remote_type` is S3. */\n s3Options?: MigrateGitCodeStoreProjectRequestS3Options;\n /** Target GitHub options. Required when `target_git_remote_type` is GITHUB. */\n githubOptions?: MigrateGitCodeStoreProjectRequestGithubOptions;\n /**\n * The ID of the managed project being migrated.\n * @format GUID\n */\n managedProjectId?: string;\n /** Target git remote type of the project (after the migration). */\n targetGitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface MigrateGitCodeStoreProjectRequestTargetOptionsOneOf {\n /** Target S3 options. Required when `target_git_remote_type` is S3. */\n s3Options?: MigrateGitCodeStoreProjectRequestS3Options;\n /** Target GitHub options. Required when `target_git_remote_type` is GITHUB. */\n githubOptions?: MigrateGitCodeStoreProjectRequestGithubOptions;\n}\n\nexport interface MigrateGitCodeStoreProjectRequestS3Options {}\n\nexport interface MigrateGitCodeStoreProjectRequestGithubOptions {\n /**\n * GitHub App ID.\n * @format GUID\n */\n githubAppId?: string;\n /**\n * GitHub App Installation ID.\n * @maxLength 200\n */\n appInstallationId?: string;\n /**\n * Remote URL of the GitHub repository.\n * @format WEB_URL\n * @maxLength 200\n */\n gitRemoteUrl?: string;\n}\n\nexport interface MigrateGitCodeStoreProjectResponse {\n /**\n * The updated git code store options after the migration, as persisted on\n * the AppManagedProject's instance_config.git_code_store_options.\n */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n}\n\nexport interface ListGitCodeStoreProjectRevisionsRequest {\n /**\n * The ID of the managed project whose revisions to list.\n * @format GUID\n */\n managedProjectId?: string;\n}\n\nexport interface ListGitCodeStoreProjectRevisionsResponse {\n /** List of revisions, ordered newest to oldest. */\n revisions?: Revision[];\n}\n\nexport interface GetGitCodeStoreProjectCredentialsRequest {\n /**\n * The ID of the managed project to retrieve credentials for.\n * @format GUID\n */\n managedProjectId?: string;\n}\n\nexport interface GetGitCodeStoreProjectCredentialsResponse {\n /** Git credentials for accessing the project's repository. */\n gitCredentials?: GitCredentials;\n}\n\nexport interface GitCredentials extends GitCredentialsOptionsOneOf {\n /** Options for S3 git remote. */\n s3Options?: S3Options;\n /** Options for GitHub git remote. */\n githubOptions?: GithubOptions;\n /**\n * Git-remote url.\n * @maxLength 200\n */\n gitRemoteUrl?: string;\n /** Type of git remote used for the project. */\n gitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface GitCredentialsOptionsOneOf {\n /** Options for S3 git remote. */\n s3Options?: S3Options;\n /** Options for GitHub git remote. */\n githubOptions?: GithubOptions;\n}\n\nexport interface S3Options {\n /**\n * S3 access key id.\n * @maxLength 20\n */\n accessKeyId?: string;\n /**\n * S3 secret access key.\n * @maxLength 40\n */\n secretAccessKey?: string;\n /**\n * S3 secret access key.\n * @maxLength 2048\n */\n sessionToken?: string;\n}\n\nexport interface GithubOptions {\n /**\n * GitHub app installation access token.\n * @maxLength 2048\n */\n accessToken?: string;\n /**\n * GitHub repo url, that includes access token and can be used as a remote url\n * in git, without additional auth configuration.\n * @maxLength 2048\n */\n authorizedGitRemoteUrl?: string;\n}\n\nexport interface GetGitCodeStoreProjectFileRequest {\n /**\n * The ID of the managed project to read the file from.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Path of the file to read, relative to the repository root.\n * @minLength 1\n * @maxLength 500\n */\n filePath?: string;\n /**\n * Optional. Commit hash to read the file from.\n * If not provided, the latest revision of the main branch is used.\n * @maxLength 40\n */\n commitHash?: string | null;\n}\n\nexport interface GetGitCodeStoreProjectFileResponse {\n /** The requested file with its content. */\n file?: FileInfo;\n /** The revision the file was read from. */\n revision?: Revision;\n}\n\n/** Selects the branch whose current head revision to retrieve. */\nexport interface GetGitCodeStoreProjectHeadRevisionRequest {\n /**\n * The ID of the managed project.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Optional. Existing branch to read from. Defaults to the main branch.\n * @maxLength 250\n */\n branchName?: string | null;\n}\n\n/** Current branch head, without file content or revision history. */\nexport interface GetGitCodeStoreProjectHeadRevisionResponse {\n /** The head revision observed when the request was handled. */\n revision?: Revision;\n /**\n * Branch whose head revision was retrieved.\n * @maxLength 250\n */\n branchName?: string;\n}\n\n/** Exact paths to read from a single snapshot. */\nexport interface BulkGetGitCodeStoreProjectFilesRequest {\n /**\n * The ID of the managed project to read files from.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Paths of up to 100 files to read, relative to the repository root.\n * The complete serialized response must fit within 4 MiB, including error results and metadata.\n * For larger reads, use smaller batches pinned to the same revision_id.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 500\n */\n filePaths?: string[];\n /**\n * Optional. Existing branch to read from.\n * Defaults to the main branch; revision_id selects the snapshot.\n * @maxLength 250\n */\n branchName?: string | null;\n /**\n * Optional. Exact revision to read, allowing multiple batches to use the same snapshot.\n * Must be reachable from branch_name, or main when branch_name is omitted.\n * When omitted, reads the current branch head. Use a full revision.id returned by this API.\n * @minLength 40\n * @maxLength 40\n */\n revisionId?: string | null;\n}\n\n/** Response containing selected file contents and the revision they were read from. */\nexport interface BulkGetGitCodeStoreProjectFilesResponse {\n /**\n * One result per requested path, in the same order as file_paths.\n * @maxSize 100\n */\n results?: BulkGetGitCodeStoreProjectFileResult[];\n /** The exact revision the files were read from, including when revision_id was supplied. */\n revision?: Revision;\n /**\n * Branch the files were read from.\n * @maxLength 250\n */\n branchName?: string;\n}\n\n/** Outcome for one requested repository-relative path. */\nexport interface BulkGetGitCodeStoreProjectFileResult\n extends BulkGetGitCodeStoreProjectFileResultResultOneOf {\n /** Content when the requested path is a readable file. */\n file?: GitCodeStoreProjectFile;\n /** Failure for this path; other paths may succeed in the same response. */\n error?: BulkGetGitCodeStoreProjectFileError;\n /**\n * Requested path, relative to the repository root.\n * @minLength 1\n * @maxLength 500\n */\n path?: string;\n}\n\n/** @oneof */\nexport interface BulkGetGitCodeStoreProjectFileResultResultOneOf {\n /** Content when the requested path is a readable file. */\n file?: GitCodeStoreProjectFile;\n /** Failure for this path; other paths may succeed in the same response. */\n error?: BulkGetGitCodeStoreProjectFileError;\n}\n\n/** A file's repository-relative path and UTF-8 content, shared by reads and PUTs. */\nexport interface GitCodeStoreProjectFile {\n /**\n * Path relative to the repository root.\n * @minLength 1\n * @maxLength 500\n */\n path?: string;\n /**\n * Complete UTF-8 content. Empty content is valid; the service enforces a 1 MiB byte limit.\n * @maxLength 1048576\n */\n content?: string;\n}\n\n/** Failure specific to a requested path. Snapshot and size failures fail the RPC. */\nexport interface BulkGetGitCodeStoreProjectFileError {\n /**\n * Stable code. Missing paths return GIT_PROJECT_FILE_NOT_FOUND.\n * @maxLength 100\n */\n applicationCode?: string;\n /**\n * Human-readable explanation; callers should match application_code.\n * @maxLength 1000\n */\n message?: string;\n}\n\n/** Request to create one commit from selected file puts and deletes. */\nexport interface CommitGitCodeStoreProjectFileChangesRequest {\n /**\n * The ID of the managed project to change.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Up to 100 file puts and deletes to apply in one commit, in request order.\n * The complete serialized request must fit within 4 MiB, including metadata.\n * Requests above the gRPC receiver limit may be rejected before API validation.\n * Paths are repository-relative; traversal, .git metadata, and symlink traversal are rejected.\n * @minSize 1\n * @maxSize 100\n */\n fileChanges?: GitCodeStoreProjectFileChange[];\n /**\n * The revision ID the caller expects at the target branch head.\n * @minLength 40\n * @maxLength 40\n */\n expectedHeadRevisionId?: string;\n /**\n * Optional. Existing branch to commit to.\n * If not provided, changes are committed to the main branch.\n * @maxLength 250\n */\n branchName?: string | null;\n /** Commit metadata for the created revision. */\n commit?: GitCodeStoreProjectCommitOptions;\n}\n\n/** One operation in an atomic file-change commit. Select exactly one operation. */\nexport interface GitCodeStoreProjectFileChange\n extends GitCodeStoreProjectFileChangeChangeOneOf {\n /** Creates or replaces a file with its complete content. */\n put?: GitCodeStoreProjectFile;\n /** Deletes an existing file at the given path. */\n delete?: GitCodeStoreProjectFileReference;\n}\n\n/** @oneof */\nexport interface GitCodeStoreProjectFileChangeChangeOneOf {\n /** Creates or replaces a file with its complete content. */\n put?: GitCodeStoreProjectFile;\n /** Deletes an existing file at the given path. */\n delete?: GitCodeStoreProjectFileReference;\n}\n\n/** Identifies the file to delete; no content is needed. */\nexport interface GitCodeStoreProjectFileReference {\n /**\n * Path relative to the repository root.\n * @minLength 1\n * @maxLength 500\n */\n path?: string;\n}\n\n/** Response describing the target branch state after a file changes request. */\nexport interface CommitGitCodeStoreProjectFileChangesResponse {\n /** Whether this request created a commit or left the file tree unchanged. */\n result?: ResultWithLiterals;\n /**\n * The current target branch revision after the call.\n * For NO_CHANGES this is the unchanged branch head.\n */\n revision?: Revision;\n /**\n * Branch the file changes were applied to.\n * @maxLength 250\n */\n branchName?: string;\n}\n\n/** Outcome of the file changes request. */\nexport enum Result {\n /** A new commit was created on the target branch. */\n COMMITTED = 'COMMITTED',\n /** The resulting file tree is unchanged; no commit was created. */\n NO_CHANGES = 'NO_CHANGES',\n}\n\n/** @enumType */\nexport type ResultWithLiterals = Result | 'COMMITTED' | 'NO_CHANGES';\n\nexport interface ListGitCodeStoreProjectFolderContentRequest {\n /**\n * The ID of the managed project whose folder to list.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Optional. Folder to list, relative to the repository root (for example `src/components`).\n * Surrounding slashes are ignored, so `/` is equivalent to not providing a folder at all.\n * If not provided, the repository root is listed.\n * @maxLength 500\n */\n folderPath?: string | null;\n /**\n * Optional. Commit hash to list the folder at.\n * If not provided, the latest revision of the main branch is used.\n * @maxLength 40\n */\n commitHash?: string | null;\n /**\n * Optional. How many levels below `folder_path` to include, defaulting to 1 - the\n * folder's own content. Levels are cumulative: `depth` 4 returns everything from\n * level 1 through level 4 inclusive. With `depth` 3 over `a/b/c/d/file.js` and\n * `a/b/foo.js`, the response holds the file `a/b/foo.js` and the folders `a`,\n * `a/b` and `a/b/c`, while `a/b/c/d` and the file below it sit too deep.\n * A tree shallower than `depth` simply yields everything it has.\n * @min 1\n * @max 10\n */\n depth?: number | null;\n}\n\nexport interface ListGitCodeStoreProjectFolderContentResponse {\n /**\n * Files from every level up to `depth` below the requested folder, ordered by path.\n * Symlinks are reported here, since git stores a symlink as a file. More than 500\n * files in total returns TOO_MANY_PROJECT_FILES.\n * @maxSize 500\n */\n files?: FileEntry[];\n /**\n * Folders from every level up to `depth` below the requested folder, ordered by path.\n * The repository's own `.git` metadata is never listed or traversed. More than 500\n * folders in total returns TOO_MANY_PROJECT_FILES.\n * @maxSize 500\n */\n folders?: FolderEntry[];\n /** The revision the folder was listed at. */\n revision?: Revision;\n}\n\n/** A file directly inside the listed folder. */\nexport interface FileEntry {\n /**\n * Name of the file within the listed folder, with no path separators.\n * @minLength 1\n * @maxLength 250\n */\n name?: string;\n /**\n * Full path of the file relative to the repository root. Pass this to\n * GetGitCodeStoreProjectFile to read the file's content.\n * @minLength 1\n * @maxLength 500\n */\n path?: string;\n}\n\n/**\n * A folder directly inside the listed folder. Git tracks no directory of its own,\n * so a folder appears here only because it contains at least one file, at any depth.\n */\nexport interface FolderEntry {\n /**\n * Name of the folder within the listed folder, with no path separators.\n * @minLength 1\n * @maxLength 250\n */\n name?: string;\n /**\n * Full path of the folder relative to the repository root. Pass this back as\n * `folder_path` to list the next level down.\n * @minLength 1\n * @maxLength 500\n */\n path?: string;\n}\n\nexport interface ValidateAndResolveConfigRequest {\n /**\n * The ID of the AppManagedProjectConfig being validated.\n * @format GUID\n */\n managedProjectConfigId?: string;\n /** The GitCodeStoreConfig to validate. */\n gitCodeStoreConfig?: GitCodeStoreConfig;\n}\n\n/**\n * GitCodeStoreConfig represents the kind of code store configuration that\n * projects created under an AppManagedProjectConfig will use.\n */\nexport interface GitCodeStoreConfig\n extends GitCodeStoreConfigGitRemoteOptionsOneOf {\n /** Options for GitHub git remote. */\n githubAppOptions?: GithubAppOptions;\n /** Options for S3 git remote. */\n s3Options?: GitCodeStoreConfigS3Options;\n /**\n * Type of git remote used for projects under this config.\n * @immutable\n */\n gitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface GitCodeStoreConfigGitRemoteOptionsOneOf {\n /** Options for GitHub git remote. */\n githubAppOptions?: GithubAppOptions;\n /** Options for S3 git remote. */\n s3Options?: GitCodeStoreConfigS3Options;\n}\n\nexport interface GithubAppOptions {\n /**\n * The GitHub App ID that owns repositories created under this config.\n * @maxLength 200\n * @immutable\n */\n appId?: string;\n}\n\nexport interface GitCodeStoreConfigS3Options {}\n\nexport interface ValidateAndResolveConfigResponse {\n /** The GitCodeStoreConfig after validation, to be stored. */\n gitCodeStoreConfig?: GitCodeStoreConfig;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type GenerateGitCodeStoreProjectDownloadUrlApplicationErrors =\n | {\n code?: 'GIT_BRANCH_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIT_COMMIT_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_REPOSITORY_ARCHIVE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'REPOSITORY_ARCHIVE_TOO_LARGE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CommitGitCodeStoreProjectUploadApplicationErrors =\n | {\n code?: 'GIT_HEAD_COMMIT_MISMATCH';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIT_BRANCH_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'REPOSITORY_UPLOAD_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_REPOSITORY_ARCHIVE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'REPOSITORY_ARCHIVE_TOO_LARGE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIT_PUSH_CONFLICT';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixCodestoreV2Project from './codestore-v2-project-projects.http.js';\nimport * as ambassadorWixCodestoreV2ProjectTypes from './codestore-v2-project-projects.types.js';\nimport * as ambassadorWixCodestoreV2ProjectUniversalTypes from './codestore-v2-project-projects.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function generateGitCodeStoreProjectDownloadUrl(): __PublicMethodMetaInfo<\n 'POST',\n { managedProjectId: string },\n ambassadorWixCodestoreV2ProjectUniversalTypes.GenerateGitCodeStoreProjectDownloadUrlRequest,\n ambassadorWixCodestoreV2ProjectTypes.GenerateGitCodeStoreProjectDownloadUrlRequest,\n ambassadorWixCodestoreV2ProjectUniversalTypes.GenerateGitCodeStoreProjectDownloadUrlResponse,\n ambassadorWixCodestoreV2ProjectTypes.GenerateGitCodeStoreProjectDownloadUrlResponse\n> {\n const payload = { managedProjectId: ':managedProjectId' } as any;\n\n const getRequestOptions =\n ambassadorWixCodestoreV2Project.generateGitCodeStoreProjectDownloadUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/git-code-store-projects/{managedProjectId}/generate-download-url',\n pathParams: { managedProjectId: 'managedProjectId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateGitCodeStoreProjectUploadUrl(): __PublicMethodMetaInfo<\n 'POST',\n { managedProjectId: string },\n ambassadorWixCodestoreV2ProjectUniversalTypes.GenerateGitCodeStoreProjectUploadUrlRequest,\n ambassadorWixCodestoreV2ProjectTypes.GenerateGitCodeStoreProjectUploadUrlRequest,\n ambassadorWixCodestoreV2ProjectUniversalTypes.GenerateGitCodeStoreProjectUploadUrlResponse,\n ambassadorWixCodestoreV2ProjectTypes.GenerateGitCodeStoreProjectUploadUrlResponse\n> {\n const payload = { managedProjectId: ':managedProjectId' } as any;\n\n const getRequestOptions =\n ambassadorWixCodestoreV2Project.generateGitCodeStoreProjectUploadUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/git-code-store-projects/{managedProjectId}/generate-upload-url',\n pathParams: { managedProjectId: 'managedProjectId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function commitGitCodeStoreProjectUpload(): __PublicMethodMetaInfo<\n 'POST',\n { managedProjectId: string },\n ambassadorWixCodestoreV2ProjectUniversalTypes.CommitGitCodeStoreProjectUploadRequest,\n ambassadorWixCodestoreV2ProjectTypes.CommitGitCodeStoreProjectUploadRequest,\n ambassadorWixCodestoreV2ProjectUniversalTypes.CommitGitCodeStoreProjectUploadResponse,\n ambassadorWixCodestoreV2ProjectTypes.CommitGitCodeStoreProjectUploadResponse\n> {\n const payload = { managedProjectId: ':managedProjectId' } as any;\n\n const getRequestOptions =\n ambassadorWixCodestoreV2Project.commitGitCodeStoreProjectUpload(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/git-code-store-projects/{managedProjectId}/commit-upload',\n pathParams: { managedProjectId: 'managedProjectId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Project as ProjectOriginal,\n GitCodeStoreProjectCreated as GitCodeStoreProjectCreatedOriginal,\n GitCodeStoreOptions as GitCodeStoreOptionsOriginal,\n GitCodeStoreOptionsOptionsOneOf as GitCodeStoreOptionsOptionsOneOfOriginal,\n GitRemoteType as GitRemoteTypeOriginal,\n GitRemoteTypeWithLiterals as GitRemoteTypeWithLiteralsOriginal,\n GitCodeStoreOptionsS3Options as GitCodeStoreOptionsS3OptionsOriginal,\n GitHubOptions as GitHubOptionsOriginal,\n GitCodeStoreProjectTransferred as GitCodeStoreProjectTransferredOriginal,\n GitCodeStoreProjectDeleted as GitCodeStoreProjectDeletedOriginal,\n GenerateGitCodeStoreProjectDownloadUrlRequest as GenerateGitCodeStoreProjectDownloadUrlRequestOriginal,\n GenerateGitCodeStoreProjectDownloadUrlResponse as GenerateGitCodeStoreProjectDownloadUrlResponseOriginal,\n Revision as RevisionOriginal,\n Author as AuthorOriginal,\n GenerateGitCodeStoreProjectUploadUrlRequest as GenerateGitCodeStoreProjectUploadUrlRequestOriginal,\n GenerateGitCodeStoreProjectUploadUrlResponse as GenerateGitCodeStoreProjectUploadUrlResponseOriginal,\n GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest as GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequestOriginal,\n GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse as GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponseOriginal,\n CommitGitCodeStoreProjectUploadRequest as CommitGitCodeStoreProjectUploadRequestOriginal,\n GitCodeStoreProjectCommitOptions as GitCodeStoreProjectCommitOptionsOriginal,\n GitCodeStoreProjectCommitAuthor as GitCodeStoreProjectCommitAuthorOriginal,\n CommitGitCodeStoreProjectUploadResponse as CommitGitCodeStoreProjectUploadResponseOriginal,\n CreateGitCodeStoreProjectRequest as CreateGitCodeStoreProjectRequestOriginal,\n FileInfo as FileInfoOriginal,\n CreateGitCodeStoreProjectResponse as CreateGitCodeStoreProjectResponseOriginal,\n TransferGitCodeStoreProjectRequest as TransferGitCodeStoreProjectRequestOriginal,\n TransferGitCodeStoreProjectResponse as TransferGitCodeStoreProjectResponseOriginal,\n DeleteGitCodeStoreProjectRequest as DeleteGitCodeStoreProjectRequestOriginal,\n DeleteGitCodeStoreProjectResponse as DeleteGitCodeStoreProjectResponseOriginal,\n CloneGitCodeStoreProjectRequest as CloneGitCodeStoreProjectRequestOriginal,\n CloneGitCodeStoreProjectResponse as CloneGitCodeStoreProjectResponseOriginal,\n MigrateGitCodeStoreProjectRequest as MigrateGitCodeStoreProjectRequestOriginal,\n MigrateGitCodeStoreProjectRequestTargetOptionsOneOf as MigrateGitCodeStoreProjectRequestTargetOptionsOneOfOriginal,\n MigrateGitCodeStoreProjectRequestS3Options as MigrateGitCodeStoreProjectRequestS3OptionsOriginal,\n MigrateGitCodeStoreProjectRequestGithubOptions as MigrateGitCodeStoreProjectRequestGithubOptionsOriginal,\n MigrateGitCodeStoreProjectResponse as MigrateGitCodeStoreProjectResponseOriginal,\n ListGitCodeStoreProjectRevisionsRequest as ListGitCodeStoreProjectRevisionsRequestOriginal,\n ListGitCodeStoreProjectRevisionsResponse as ListGitCodeStoreProjectRevisionsResponseOriginal,\n GetGitCodeStoreProjectCredentialsRequest as GetGitCodeStoreProjectCredentialsRequestOriginal,\n GetGitCodeStoreProjectCredentialsResponse as GetGitCodeStoreProjectCredentialsResponseOriginal,\n GitCredentials as GitCredentialsOriginal,\n GitCredentialsOptionsOneOf as GitCredentialsOptionsOneOfOriginal,\n S3Options as S3OptionsOriginal,\n GithubOptions as GithubOptionsOriginal,\n GetGitCodeStoreProjectFileRequest as GetGitCodeStoreProjectFileRequestOriginal,\n GetGitCodeStoreProjectFileResponse as GetGitCodeStoreProjectFileResponseOriginal,\n GetGitCodeStoreProjectHeadRevisionRequest as GetGitCodeStoreProjectHeadRevisionRequestOriginal,\n GetGitCodeStoreProjectHeadRevisionResponse as GetGitCodeStoreProjectHeadRevisionResponseOriginal,\n BulkGetGitCodeStoreProjectFilesRequest as BulkGetGitCodeStoreProjectFilesRequestOriginal,\n BulkGetGitCodeStoreProjectFilesResponse as BulkGetGitCodeStoreProjectFilesResponseOriginal,\n BulkGetGitCodeStoreProjectFileResult as BulkGetGitCodeStoreProjectFileResultOriginal,\n BulkGetGitCodeStoreProjectFileResultResultOneOf as BulkGetGitCodeStoreProjectFileResultResultOneOfOriginal,\n GitCodeStoreProjectFile as GitCodeStoreProjectFileOriginal,\n BulkGetGitCodeStoreProjectFileError as BulkGetGitCodeStoreProjectFileErrorOriginal,\n CommitGitCodeStoreProjectFileChangesRequest as CommitGitCodeStoreProjectFileChangesRequestOriginal,\n GitCodeStoreProjectFileChange as GitCodeStoreProjectFileChangeOriginal,\n GitCodeStoreProjectFileChangeChangeOneOf as GitCodeStoreProjectFileChangeChangeOneOfOriginal,\n GitCodeStoreProjectFileReference as GitCodeStoreProjectFileReferenceOriginal,\n CommitGitCodeStoreProjectFileChangesResponse as CommitGitCodeStoreProjectFileChangesResponseOriginal,\n Result as ResultOriginal,\n ResultWithLiterals as ResultWithLiteralsOriginal,\n ListGitCodeStoreProjectFolderContentRequest as ListGitCodeStoreProjectFolderContentRequestOriginal,\n ListGitCodeStoreProjectFolderContentResponse as ListGitCodeStoreProjectFolderContentResponseOriginal,\n FileEntry as FileEntryOriginal,\n FolderEntry as FolderEntryOriginal,\n ValidateAndResolveConfigRequest as ValidateAndResolveConfigRequestOriginal,\n GitCodeStoreConfig as GitCodeStoreConfigOriginal,\n GitCodeStoreConfigGitRemoteOptionsOneOf as GitCodeStoreConfigGitRemoteOptionsOneOfOriginal,\n GithubAppOptions as GithubAppOptionsOriginal,\n GitCodeStoreConfigS3Options as GitCodeStoreConfigS3OptionsOriginal,\n ValidateAndResolveConfigResponse as ValidateAndResolveConfigResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n GenerateGitCodeStoreProjectDownloadUrlApplicationErrors as GenerateGitCodeStoreProjectDownloadUrlApplicationErrorsOriginal,\n CommitGitCodeStoreProjectUploadApplicationErrors as CommitGitCodeStoreProjectUploadApplicationErrorsOriginal,\n} from './codestore-v2-project-projects.types.js';\n"],"mappings":"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","names":["payload","GitRemoteType","Result","WebhookIdentityType","generateGitCodeStoreProjectDownloadUrl","generateGitCodeStoreProjectUploadUrl","commitGitCodeStoreProjectUpload"]}
|
|
1
|
+
{"version":3,"sources":["../../src/codestore-v2-project-projects.http.ts","../../src/codestore-v2-project-projects.types.ts","../../src/codestore-v2-project-projects.meta.ts"],"sourcesContent":["import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n { path: 'expiresAt' },\n { path: 'revision.creationTime' },\n];\nconst TRANSFORM_PATHS_1 = [{ path: 'expiresAt' }];\nconst TRANSFORM_PATHS_2 = [{ path: 'revision.creationTime' }];\n\nfunction resolveWixCodestoreV2GitCodeStoreManagedProjectManagementUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_api/git-code-store',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/git-code-store',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/git-code-store',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/git-code-store',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/codestore/v2/git-code-store-projects',\n destPath: '/v2/git-code-store-projects',\n },\n ],\n _: [\n {\n srcPath: '/codestore/v2/git-code-store-projects',\n destPath: '/v2/git-code-store-projects',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_git-code-store_projects';\n\n/**\n * Generates a temporary URL to download all tracked files at one revision as a ZIP.\n *\n * Includes hidden directories, binary files and materialized LFS objects; excludes Git history.\n * Defaults to main. Omit `revisionId` to download the current branch head.\n * Supply the returned revision when committing uploaded code unless force is true.\n * Supports at most 10,000 tracked files, 256 MiB expanded, and a 64 MiB ZIP.\n * Rejects unsafe paths, submodules, special files, and dangling or escaping symlinks.\n * Requires an authenticated user with read access to the app or its companion site.\n */\nexport function generateGitCodeStoreProjectDownloadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateGitCodeStoreProjectDownloadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.codestore.v2.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.codestore.v2.GitCodeStoreManagedProjectManagement.GenerateGitCodeStoreProjectDownloadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCodestoreV2GitCodeStoreManagedProjectManagementUrl({\n protoPath:\n '/v2/git-code-store-projects/{managedProjectId}/generate-download-url',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generateGitCodeStoreProjectDownloadUrl;\n}\n\n/**\n * Generates a temporary, project-scoped URL for uploading a ZIP with HTTP PUT.\n *\n * PUT the ZIP with the returned headers, then call\n * [Commit Git Code Store Project Upload](https://dev.wix.com/docs/api-reference/account-level/git-codestore/commit-git-code-store-project-upload).\n * The 64 MiB compressed size limit is checked when committing the upload, not by the signed PUT.\n * Uploading alone never changes the repository. ZIP paths must be relative to its root.\n * Requires an authenticated user with update access to the app or its companion site.\n */\nexport function generateGitCodeStoreProjectUploadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateGitCodeStoreProjectUploadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.codestore.v2.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.codestore.v2.GitCodeStoreManagedProjectManagement.GenerateGitCodeStoreProjectUploadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCodestoreV2GitCodeStoreManagedProjectManagementUrl({\n protoPath:\n '/v2/git-code-store-projects/{managedProjectId}/generate-upload-url',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generateGitCodeStoreProjectUploadUrl;\n}\n\n/**\n * Commits and pushes a previously uploaded ZIP's contents to an existing branch.\n *\n * Replaces the complete tracked file tree. Does not publish or deploy the application.\n * Files omitted from the ZIP are deleted. Creates one child commit and preserves history; never resets the branch history.\n * Defaults to main. An empty ZIP intentionally removes all files. An unchanged tree creates no commit.\n * Unless force is true, a stale expected head fails even for unchanged input.\n * Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict.\n * Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries.\n * Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository.\n * After a timeout, call [Generate Git Code Store Project Download Url](https://dev.wix.com/docs/api-reference/account-level/git-codestore/generate-git-code-store-project-download-url)\n * for the same branch with `revisionId` omitted.\n * Compare its revision and downloaded tree with your intended changes before retrying.\n * A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout.\n * Requires an authenticated user with update access to the app or its companion site.\n */\nexport function commitGitCodeStoreProjectUpload(\n payload: object\n): RequestOptionsFactory<any> {\n function __commitGitCodeStoreProjectUpload({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.codestore.v2.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.codestore.v2.GitCodeStoreManagedProjectManagement.CommitGitCodeStoreProjectUpload',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCodestoreV2GitCodeStoreManagedProjectManagementUrl({\n protoPath:\n '/v2/git-code-store-projects/{managedProjectId}/commit-upload',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __commitGitCodeStoreProjectUpload;\n}\n","/**\n * Virtual entity representing the codestore v2 project.\n * All persistence lives on wix.appmanagedprojects.v1.AppManagedProject;\n * this entity exists to anchor the v2 service to its own FQDN.\n */\nexport interface Project {\n /**\n * Structural placeholder. The entity is virtual (persistence: NONE);\n * all real state lives on wix.appmanagedprojects.v1.AppManagedProject.\n * @format GUID\n */\n id?: string;\n}\n\nexport interface GitCodeStoreProjectCreated {\n /**\n * The ID of the managed project for which the git code store project was created.\n * @format GUID\n */\n managedProjectId?: string;\n /** The git code store options of the created project. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n}\n\n/**\n * GitCodeStoreOptions represents per-project state for a git code store project.\n * Stored on the AppManagedProject entity.\n */\nexport interface GitCodeStoreOptions extends GitCodeStoreOptionsOptionsOneOf {\n s3Options?: GitCodeStoreOptionsS3Options;\n githubOptions?: GitHubOptions;\n /**\n * The git remote URL of the linked project.\n * @maxLength 200\n * @immutable\n */\n gitRemoteUrl?: string;\n gitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface GitCodeStoreOptionsOptionsOneOf {\n s3Options?: GitCodeStoreOptionsS3Options;\n githubOptions?: GitHubOptions;\n}\n\nexport enum GitRemoteType {\n S3 = 'S3',\n GITHUB = 'GITHUB',\n}\n\n/** @enumType */\nexport type GitRemoteTypeWithLiterals = GitRemoteType | 'S3' | 'GITHUB';\n\nexport interface GitCodeStoreOptionsS3Options {\n /**\n * S3 access key id.\n * @maxLength 20\n */\n accessKeyId?: string;\n /**\n * S3 secret access key.\n * @maxLength 40\n */\n secretAccessKey?: string;\n}\n\nexport interface GitHubOptions {\n /**\n * GitHub App installation ID for this project.\n * @maxLength 200\n */\n appInstallationId?: string;\n}\n\nexport interface GitCodeStoreProjectTransferred {\n /**\n * The ID of the managed project that was transferred.\n * @format GUID\n */\n managedProjectId?: string;\n /** The updated git code store options after the transfer. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n}\n\nexport interface GitCodeStoreProjectDeleted {\n /**\n * The ID of the managed project whose git code store project was deleted.\n * @format GUID\n */\n managedProjectId?: string;\n}\n\nexport interface GenerateGitCodeStoreProjectDownloadUrlRequest {\n /**\n * ID of the existing AppManagedProject whose code will be downloaded.\n * This identifies the managed project, not its site or a legacy v1 Code Store project.\n * @format GUID\n */\n managedProjectId: string;\n /**\n * Existing branch. Defaults to main.\n * @minLength 1\n * @maxLength 250\n */\n branchName?: string | null;\n /**\n * Optional full commit SHA, reachable from the selected branch. Defaults to its head.\n * @minLength 40\n * @maxLength 40\n */\n revisionId?: string | null;\n}\n\nexport interface GenerateGitCodeStoreProjectDownloadUrlResponse {\n /**\n * Signed URL for downloading the complete ZIP with HTTP GET. Valid for 5 minutes.\n * Anyone holding this URL can download the ZIP until it expires; no additional authorization is required.\n * @format WEB_URL\n */\n downloadUrl?: string;\n /** Expiration of the signed URL; credential expiry or revocation can invalidate it earlier. */\n expiresAt?: Date | null;\n /** Revision included in the ZIP. Use its id as the expected head when committing an upload. */\n revision?: Revision;\n /**\n * Resolved branch name.\n * @maxLength 250\n */\n branchName?: string;\n}\n\nexport interface Revision {\n /**\n * Revision identifier\n * @readonly\n * @maxLength 40\n */\n id?: string | null;\n /**\n * Revision description message\n * @readonly\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Creation time\n * @readonly\n */\n creationTime?: Date | null;\n /** Author details */\n author?: Author;\n}\n\nexport interface Author {\n /**\n * Author name\n * @readonly\n * @maxLength 100\n */\n name?: string;\n /**\n * Author email\n * @readonly\n * @format EMAIL\n */\n email?: string;\n}\n\nexport interface GenerateGitCodeStoreProjectUploadUrlRequest {\n /**\n * ID of the existing AppManagedProject receiving the upload.\n * Use the same `managedProjectId` for downloading, uploading, and committing.\n * @format GUID\n */\n managedProjectId: string;\n}\n\nexport interface GenerateGitCodeStoreProjectUploadUrlResponse {\n /**\n * Project-scoped upload identifier. Pass it to CommitGitCodeStoreProjectUpload after PUT succeeds.\n * @format GUID\n */\n uploadId?: string;\n /**\n * Signed URL accepting HTTP PUT for one staged object. Valid for 5 minutes.\n * Anyone holding this URL can replace the staged object until it expires.\n * @format WEB_URL\n */\n uploadUrl?: string;\n /**\n * Required headers for the PUT, in addition to headers automatically set by the HTTP client.\n * @maxSize 20\n */\n headers?: Record<string, string>;\n /** Expiration of the signed URL; credential expiry or revocation can invalidate it earlier. */\n expiresAt?: Date | null;\n}\n\nexport interface GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest {\n /**\n * Managed project that issued the upload identifier.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Identifier returned by GenerateGitCodeStoreProjectUploadUrl. PUT must have completed.\n * The staged object must be at most 64 MiB and less than one hour old.\n * @format GUID\n */\n uploadId?: string;\n}\n\nexport interface GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse {\n /**\n * Signed HTTP GET URL for the staged ZIP, valid for at most five minutes.\n * Anyone holding the URL and required headers can download it until expiry.\n * @format WEB_URL\n */\n downloadUrl?: string;\n /**\n * Required GET headers, including If-Match binding the download to the checked object.\n * Do not omit or modify them. No Wix authorization header is needed for the GET.\n * @maxSize 20\n */\n headers?: Record<string, string>;\n /** Capped by the remaining one-hour upload lifetime. Credentials can invalidate it earlier. */\n expiresAt?: Date | null;\n}\n\nexport interface CommitGitCodeStoreProjectUploadRequest {\n /**\n * ID of the existing AppManagedProject to update. Must be the same project that issued `uploadId`.\n * @format GUID\n */\n managedProjectId: string;\n /**\n * Identifier returned by GenerateGitCodeStoreProjectUploadUrl.\n * The ZIP must have been uploaded within the last hour.\n * @format GUID\n */\n uploadId: string;\n /**\n * Existing branch. Defaults to main.\n * @minLength 1\n * @maxLength 250\n */\n branchName?: string | null;\n /**\n * Full SHA from the download URL response. Required unless force is true; ignored when force is true.\n * Prevents replacing code changed since the download. The handler requires exactly 40 hexadecimal characters\n * when force is false; missing, empty, abbreviated, or non-hexadecimal values are rejected before reading the upload.\n * @maxLength 40\n */\n expectedHeadRevisionId?: string;\n /** Message and author for the replacement commit. */\n commit: GitCodeStoreProjectCommitOptions;\n /**\n * Replace the latest branch tree even if it changed since download. Defaults to false.\n * Preserves history by creating a normal commit; concurrent writes can still cause a conflict.\n */\n force?: boolean;\n}\n\n/** Git commit metadata supplied by the caller when creating a revision. */\nexport interface GitCodeStoreProjectCommitOptions {\n /**\n * Commit message.\n * @minLength 1\n * @maxLength 2000\n */\n message?: string;\n /** Commit author. */\n author?: GitCodeStoreProjectCommitAuthor;\n}\n\n/** Git commit author supplied by the caller when creating a revision. */\nexport interface GitCodeStoreProjectCommitAuthor {\n /**\n * Author name.\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /**\n * Author email.\n * @format EMAIL\n */\n email?: string;\n}\n\nexport interface CommitGitCodeStoreProjectUploadResponse {\n /** New revision, or the existing revision when the file tree is unchanged. */\n revision?: Revision;\n /**\n * Resolved branch name.\n * @minLength 1\n * @maxLength 250\n */\n branchName?: string;\n /** Whether a replacement commit was created. */\n changed?: boolean;\n}\n\nexport interface CreateGitCodeStoreProjectRequest {\n /**\n * The ID of the managed project to link the git code store project to.\n * @format GUID\n */\n managedProjectId?: string;\n /** Optional. Per-project overrides. If not supplied, defaults from the GitCodeStoreConfig will be used. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n /** Initial revision details for the first commit of the new project. */\n initialRevision?: Revision;\n /**\n * List of files (text only) to be created as part of the project's initial revision.\n * @minSize 1\n * @maxSize 200\n */\n files?: FileInfo[];\n /** Type of git remote used for the project being created. */\n gitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\nexport interface FileInfo {\n /**\n * Path of the file.\n * @minLength 1\n * @maxLength 250\n */\n path?: string;\n /**\n * Content of the file.\n * @maxLength 3100000\n */\n content?: string;\n}\n\nexport interface CreateGitCodeStoreProjectResponse {\n /** The created git code store options to be persisted on the AppManagedProject entity. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n}\n\nexport interface TransferGitCodeStoreProjectRequest {\n /**\n * The ID of the managed project being transferred.\n * @format GUID\n */\n managedProjectId?: string;\n}\n\nexport interface TransferGitCodeStoreProjectResponse {\n /** The updated git code store options after the transfer. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n}\n\nexport interface DeleteGitCodeStoreProjectRequest {\n /**\n * The ID of the managed project whose git code store project should be deleted.\n * @format GUID\n */\n managedProjectId?: string;\n /** Type of git remote of the project being deleted. */\n gitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\nexport interface DeleteGitCodeStoreProjectResponse {}\n\nexport interface CloneGitCodeStoreProjectRequest {\n /**\n * The ID of the managed project whose repository is the clone source.\n * Its current `GitCodeStoreOptions` (and resolved `GitCodeStoreConfig` for\n * GitHub-backed projects) are looked up by this service.\n * @format GUID\n */\n sourceManagedProjectId?: string;\n /**\n * The ID of the managed project that will own the newly created git code store project.\n * The target must be empty and is initialized as an S3 repository with every source branch.\n * Each branch contains its source head's files in one new parentless commit, without source history.\n * A failed partial clone must be retried with a new empty target.\n * @format GUID\n */\n targetManagedProjectId?: string;\n /**\n * Optional files to create or replace in every target branch's initial commit.\n * Use this to patch files that must reference the target project rather than the source\n * (for example, wix.config.mjs with the target's appId). Paths must follow the\n * same repository-relative contract as wix.codestore.v1.FileInfo.path.\n * @maxSize 20\n */\n overrideFiles?: FileInfo[];\n}\n\nexport interface CloneGitCodeStoreProjectResponse {\n /** The S3 `GitCodeStoreOptions` for the target. Caller persists on AppManagedProject. */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n /**\n * The new commit hash on the source's default branch in the target repository.\n * @maxLength 40\n */\n commitHash?: string | null;\n}\n\nexport interface MigrateGitCodeStoreProjectRequest\n extends MigrateGitCodeStoreProjectRequestTargetOptionsOneOf {\n /** Target S3 options. Required when `target_git_remote_type` is S3. */\n s3Options?: MigrateGitCodeStoreProjectRequestS3Options;\n /** Target GitHub options. Required when `target_git_remote_type` is GITHUB. */\n githubOptions?: MigrateGitCodeStoreProjectRequestGithubOptions;\n /**\n * The ID of the managed project being migrated.\n * @format GUID\n */\n managedProjectId?: string;\n /** Target git remote type of the project (after the migration). */\n targetGitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface MigrateGitCodeStoreProjectRequestTargetOptionsOneOf {\n /** Target S3 options. Required when `target_git_remote_type` is S3. */\n s3Options?: MigrateGitCodeStoreProjectRequestS3Options;\n /** Target GitHub options. Required when `target_git_remote_type` is GITHUB. */\n githubOptions?: MigrateGitCodeStoreProjectRequestGithubOptions;\n}\n\nexport interface MigrateGitCodeStoreProjectRequestS3Options {}\n\nexport interface MigrateGitCodeStoreProjectRequestGithubOptions {\n /**\n * GitHub App ID.\n * @format GUID\n */\n githubAppId?: string;\n /**\n * GitHub App Installation ID.\n * @maxLength 200\n */\n appInstallationId?: string;\n /**\n * Remote URL of the GitHub repository.\n * @format WEB_URL\n * @maxLength 200\n */\n gitRemoteUrl?: string;\n}\n\nexport interface MigrateGitCodeStoreProjectResponse {\n /**\n * The updated git code store options after the migration, as persisted on\n * the AppManagedProject's instance_config.git_code_store_options.\n */\n gitCodeStoreOptions?: GitCodeStoreOptions;\n}\n\nexport interface ListGitCodeStoreProjectRevisionsRequest {\n /**\n * The ID of the managed project whose revisions to list.\n * @format GUID\n */\n managedProjectId?: string;\n}\n\nexport interface ListGitCodeStoreProjectRevisionsResponse {\n /** List of revisions, ordered newest to oldest. */\n revisions?: Revision[];\n}\n\nexport interface GetGitCodeStoreProjectCredentialsRequest {\n /**\n * The ID of the managed project to retrieve credentials for.\n * @format GUID\n */\n managedProjectId?: string;\n}\n\nexport interface GetGitCodeStoreProjectCredentialsResponse {\n /** Git credentials for accessing the project's repository. */\n gitCredentials?: GitCredentials;\n}\n\nexport interface GitCredentials extends GitCredentialsOptionsOneOf {\n /** Options for S3 git remote. */\n s3Options?: S3Options;\n /** Options for GitHub git remote. */\n githubOptions?: GithubOptions;\n /**\n * Git-remote url.\n * @maxLength 200\n */\n gitRemoteUrl?: string;\n /** Type of git remote used for the project. */\n gitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface GitCredentialsOptionsOneOf {\n /** Options for S3 git remote. */\n s3Options?: S3Options;\n /** Options for GitHub git remote. */\n githubOptions?: GithubOptions;\n}\n\nexport interface S3Options {\n /**\n * S3 access key id.\n * @maxLength 20\n */\n accessKeyId?: string;\n /**\n * S3 secret access key.\n * @maxLength 40\n */\n secretAccessKey?: string;\n /**\n * S3 secret access key.\n * @maxLength 2048\n */\n sessionToken?: string;\n}\n\nexport interface GithubOptions {\n /**\n * GitHub app installation access token.\n * @maxLength 2048\n */\n accessToken?: string;\n /**\n * GitHub repo url, that includes access token and can be used as a remote url\n * in git, without additional auth configuration.\n * @maxLength 2048\n */\n authorizedGitRemoteUrl?: string;\n}\n\nexport interface GetGitCodeStoreProjectFileRequest {\n /**\n * The ID of the managed project to read the file from.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Path of the file to read, relative to the repository root.\n * @minLength 1\n * @maxLength 500\n */\n filePath?: string;\n /**\n * Optional. Commit hash to read the file from.\n * If not provided, the latest revision of the main branch is used.\n * @maxLength 40\n */\n commitHash?: string | null;\n}\n\nexport interface GetGitCodeStoreProjectFileResponse {\n /** The requested file with its content. */\n file?: FileInfo;\n /** The revision the file was read from. */\n revision?: Revision;\n}\n\n/** Selects the branch whose current head revision to retrieve. */\nexport interface GetGitCodeStoreProjectHeadRevisionRequest {\n /**\n * The ID of the managed project.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Optional. Existing branch to read from. Defaults to the main branch.\n * @maxLength 250\n */\n branchName?: string | null;\n}\n\n/** Current branch head, without file content or revision history. */\nexport interface GetGitCodeStoreProjectHeadRevisionResponse {\n /** The head revision observed when the request was handled. */\n revision?: Revision;\n /**\n * Branch whose head revision was retrieved.\n * @maxLength 250\n */\n branchName?: string;\n}\n\n/** Selects a complete repository tree at one immutable revision. */\nexport interface GetGitCodeStoreProjectTreeRequest {\n /**\n * The ID of the managed project.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Existing branch to read. Defaults to main.\n * @maxLength 250\n */\n branchName?: string | null;\n /**\n * Optional exact revision reachable from the selected branch. Defaults to its current head.\n * @minLength 40\n * @maxLength 40\n */\n revisionId?: string | null;\n}\n\n/** Complete tree, without file contents. Files and folders together are limited to 10,000 entries. */\nexport interface GetGitCodeStoreProjectTreeResponse {\n /**\n * All file paths, sorted lexicographically. Includes symlinks without following them.\n * @maxSize 10000\n */\n files?: FileEntry[];\n /**\n * All folder paths, sorted lexicographically. Excludes the repository root.\n * @maxSize 10000\n */\n folders?: FolderEntry[];\n /** The exact revision used to read this tree. */\n revision?: Revision;\n /**\n * The resolved branch.\n * @maxLength 250\n */\n branchName?: string;\n}\n\n/** A file directly inside the listed folder. */\nexport interface FileEntry {\n /**\n * Name of the file within the listed folder, with no path separators.\n * @minLength 1\n * @maxLength 250\n */\n name?: string;\n /**\n * Full path of the file relative to the repository root. Pass this to\n * GetGitCodeStoreProjectFile to read the file's content.\n * @minLength 1\n * @maxLength 500\n */\n path?: string;\n}\n\n/**\n * A folder directly inside the listed folder. Git tracks no directory of its own,\n * so a folder appears here only because it contains at least one file, at any depth.\n */\nexport interface FolderEntry {\n /**\n * Name of the folder within the listed folder, with no path separators.\n * @minLength 1\n * @maxLength 250\n */\n name?: string;\n /**\n * Full path of the folder relative to the repository root. Pass this back as\n * `folder_path` to list the next level down.\n * @minLength 1\n * @maxLength 500\n */\n path?: string;\n}\n\n/** Exact paths to read from a single snapshot. */\nexport interface BulkGetGitCodeStoreProjectFilesRequest {\n /**\n * The ID of the managed project to read files from.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Paths of up to 100 files to read, relative to the repository root.\n * The complete serialized response must fit within 4 MiB, including error results and metadata.\n * For larger reads, use smaller batches pinned to the same revision_id.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 500\n */\n filePaths?: string[];\n /**\n * Optional. Existing branch to read from.\n * Defaults to the main branch; revision_id selects the snapshot.\n * @maxLength 250\n */\n branchName?: string | null;\n /**\n * Optional. Exact revision to read, allowing multiple batches to use the same snapshot.\n * Must be reachable from branch_name, or main when branch_name is omitted.\n * When omitted, reads the current branch head. Use a full revision.id returned by this API.\n * @minLength 40\n * @maxLength 40\n */\n revisionId?: string | null;\n}\n\n/** Response containing selected file contents and the revision they were read from. */\nexport interface BulkGetGitCodeStoreProjectFilesResponse {\n /**\n * One result per requested path, in the same order as file_paths.\n * @maxSize 100\n */\n results?: BulkGetGitCodeStoreProjectFileResult[];\n /** The exact revision the files were read from, including when revision_id was supplied. */\n revision?: Revision;\n /**\n * Branch the files were read from.\n * @maxLength 250\n */\n branchName?: string;\n}\n\n/** Outcome for one requested repository-relative path. */\nexport interface BulkGetGitCodeStoreProjectFileResult\n extends BulkGetGitCodeStoreProjectFileResultResultOneOf {\n /** Content when the requested path is a readable file. */\n file?: GitCodeStoreProjectFile;\n /** Failure for this path; other paths may succeed in the same response. */\n error?: BulkGetGitCodeStoreProjectFileError;\n /**\n * Requested path, relative to the repository root.\n * @minLength 1\n * @maxLength 500\n */\n path?: string;\n}\n\n/** @oneof */\nexport interface BulkGetGitCodeStoreProjectFileResultResultOneOf {\n /** Content when the requested path is a readable file. */\n file?: GitCodeStoreProjectFile;\n /** Failure for this path; other paths may succeed in the same response. */\n error?: BulkGetGitCodeStoreProjectFileError;\n}\n\n/** A file's repository-relative path and UTF-8 content, shared by reads and PUTs. */\nexport interface GitCodeStoreProjectFile {\n /**\n * Path relative to the repository root.\n * @minLength 1\n * @maxLength 500\n */\n path?: string;\n /**\n * Complete UTF-8 content. Empty content is valid; the service enforces a 1 MiB byte limit.\n * @maxLength 1048576\n */\n content?: string;\n}\n\n/** Failure specific to a requested path. Snapshot and size failures fail the RPC. */\nexport interface BulkGetGitCodeStoreProjectFileError {\n /**\n * Stable code. Missing paths return GIT_PROJECT_FILE_NOT_FOUND.\n * @maxLength 100\n */\n applicationCode?: string;\n /**\n * Human-readable explanation; callers should match application_code.\n * @maxLength 1000\n */\n message?: string;\n}\n\n/** Request to create one commit from selected file puts and deletes. */\nexport interface CommitGitCodeStoreProjectFileChangesRequest {\n /**\n * The ID of the managed project to change.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Up to 100 file puts and deletes to apply in one commit, in request order.\n * The complete serialized request must fit within 4 MiB, including metadata.\n * Requests above the gRPC receiver limit may be rejected before API validation.\n * Paths are repository-relative; traversal, .git metadata, and symlink traversal are rejected.\n * @minSize 1\n * @maxSize 100\n */\n fileChanges?: GitCodeStoreProjectFileChange[];\n /**\n * The revision ID the caller expects at the target branch head.\n * @minLength 40\n * @maxLength 40\n */\n expectedHeadRevisionId?: string;\n /**\n * Optional. Existing branch to commit to.\n * If not provided, changes are committed to the main branch.\n * @maxLength 250\n */\n branchName?: string | null;\n /** Commit metadata for the created revision. */\n commit?: GitCodeStoreProjectCommitOptions;\n}\n\n/** One operation in an atomic file-change commit. Select exactly one operation. */\nexport interface GitCodeStoreProjectFileChange\n extends GitCodeStoreProjectFileChangeChangeOneOf {\n /** Creates or replaces a file with its complete content. */\n put?: GitCodeStoreProjectFile;\n /** Deletes an existing file at the given path. */\n delete?: GitCodeStoreProjectFileReference;\n}\n\n/** @oneof */\nexport interface GitCodeStoreProjectFileChangeChangeOneOf {\n /** Creates or replaces a file with its complete content. */\n put?: GitCodeStoreProjectFile;\n /** Deletes an existing file at the given path. */\n delete?: GitCodeStoreProjectFileReference;\n}\n\n/** Identifies the file to delete; no content is needed. */\nexport interface GitCodeStoreProjectFileReference {\n /**\n * Path relative to the repository root.\n * @minLength 1\n * @maxLength 500\n */\n path?: string;\n}\n\n/** Response describing the target branch state after a file changes request. */\nexport interface CommitGitCodeStoreProjectFileChangesResponse {\n /** Whether this request created a commit or left the file tree unchanged. */\n result?: ResultWithLiterals;\n /**\n * The current target branch revision after the call.\n * For NO_CHANGES this is the unchanged branch head.\n */\n revision?: Revision;\n /**\n * Branch the file changes were applied to.\n * @maxLength 250\n */\n branchName?: string;\n}\n\n/** Outcome of the file changes request. */\nexport enum Result {\n /** A new commit was created on the target branch. */\n COMMITTED = 'COMMITTED',\n /** The resulting file tree is unchanged; no commit was created. */\n NO_CHANGES = 'NO_CHANGES',\n}\n\n/** @enumType */\nexport type ResultWithLiterals = Result | 'COMMITTED' | 'NO_CHANGES';\n\nexport interface ListGitCodeStoreProjectFolderContentRequest {\n /**\n * The ID of the managed project whose folder to list.\n * @format GUID\n */\n managedProjectId?: string;\n /**\n * Optional. Folder to list, relative to the repository root (for example `src/components`).\n * Surrounding slashes are ignored, so `/` is equivalent to not providing a folder at all.\n * If not provided, the repository root is listed.\n * @maxLength 500\n */\n folderPath?: string | null;\n /**\n * Optional. Commit hash to list the folder at.\n * If not provided, the latest revision of the main branch is used.\n * @maxLength 40\n */\n commitHash?: string | null;\n /**\n * Optional. How many levels below `folder_path` to include, defaulting to 1 - the\n * folder's own content. Levels are cumulative: `depth` 4 returns everything from\n * level 1 through level 4 inclusive. With `depth` 3 over `a/b/c/d/file.js` and\n * `a/b/foo.js`, the response holds the file `a/b/foo.js` and the folders `a`,\n * `a/b` and `a/b/c`, while `a/b/c/d` and the file below it sit too deep.\n * A tree shallower than `depth` simply yields everything it has.\n * @min 1\n * @max 10\n */\n depth?: number | null;\n}\n\nexport interface ListGitCodeStoreProjectFolderContentResponse {\n /**\n * Files from every level up to `depth` below the requested folder, ordered by path.\n * Symlinks are reported here, since git stores a symlink as a file. More than 500\n * files in total returns TOO_MANY_PROJECT_FILES.\n * @maxSize 500\n */\n files?: FileEntry[];\n /**\n * Folders from every level up to `depth` below the requested folder, ordered by path.\n * The repository's own `.git` metadata is never listed or traversed. More than 500\n * folders in total returns TOO_MANY_PROJECT_FILES.\n * @maxSize 500\n */\n folders?: FolderEntry[];\n /** The revision the folder was listed at. */\n revision?: Revision;\n}\n\nexport interface ValidateAndResolveConfigRequest {\n /**\n * The ID of the AppManagedProjectConfig being validated.\n * @format GUID\n */\n managedProjectConfigId?: string;\n /** The GitCodeStoreConfig to validate. */\n gitCodeStoreConfig?: GitCodeStoreConfig;\n}\n\n/**\n * GitCodeStoreConfig represents the kind of code store configuration that\n * projects created under an AppManagedProjectConfig will use.\n */\nexport interface GitCodeStoreConfig\n extends GitCodeStoreConfigGitRemoteOptionsOneOf {\n /** Options for GitHub git remote. */\n githubAppOptions?: GithubAppOptions;\n /** Options for S3 git remote. */\n s3Options?: GitCodeStoreConfigS3Options;\n /**\n * Type of git remote used for projects under this config.\n * @immutable\n */\n gitRemoteType?: GitRemoteTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface GitCodeStoreConfigGitRemoteOptionsOneOf {\n /** Options for GitHub git remote. */\n githubAppOptions?: GithubAppOptions;\n /** Options for S3 git remote. */\n s3Options?: GitCodeStoreConfigS3Options;\n}\n\nexport interface GithubAppOptions {\n /**\n * The GitHub App ID that owns repositories created under this config.\n * @maxLength 200\n * @immutable\n */\n appId?: string;\n}\n\nexport interface GitCodeStoreConfigS3Options {}\n\nexport interface ValidateAndResolveConfigResponse {\n /** The GitCodeStoreConfig after validation, to be stored. */\n gitCodeStoreConfig?: GitCodeStoreConfig;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type GenerateGitCodeStoreProjectDownloadUrlApplicationErrors =\n | {\n code?: 'GIT_BRANCH_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIT_COMMIT_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_REPOSITORY_ARCHIVE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'REPOSITORY_ARCHIVE_TOO_LARGE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CommitGitCodeStoreProjectUploadApplicationErrors =\n | {\n code?: 'GIT_HEAD_COMMIT_MISMATCH';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIT_BRANCH_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'REPOSITORY_UPLOAD_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_REPOSITORY_ARCHIVE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'REPOSITORY_ARCHIVE_TOO_LARGE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIT_PUSH_CONFLICT';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixCodestoreV2Project from './codestore-v2-project-projects.http.js';\nimport * as ambassadorWixCodestoreV2ProjectTypes from './codestore-v2-project-projects.types.js';\nimport * as ambassadorWixCodestoreV2ProjectUniversalTypes from './codestore-v2-project-projects.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function generateGitCodeStoreProjectDownloadUrl(): __PublicMethodMetaInfo<\n 'POST',\n { managedProjectId: string },\n ambassadorWixCodestoreV2ProjectUniversalTypes.GenerateGitCodeStoreProjectDownloadUrlRequest,\n ambassadorWixCodestoreV2ProjectTypes.GenerateGitCodeStoreProjectDownloadUrlRequest,\n ambassadorWixCodestoreV2ProjectUniversalTypes.GenerateGitCodeStoreProjectDownloadUrlResponse,\n ambassadorWixCodestoreV2ProjectTypes.GenerateGitCodeStoreProjectDownloadUrlResponse\n> {\n const payload = { managedProjectId: ':managedProjectId' } as any;\n\n const getRequestOptions =\n ambassadorWixCodestoreV2Project.generateGitCodeStoreProjectDownloadUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/git-code-store-projects/{managedProjectId}/generate-download-url',\n pathParams: { managedProjectId: 'managedProjectId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateGitCodeStoreProjectUploadUrl(): __PublicMethodMetaInfo<\n 'POST',\n { managedProjectId: string },\n ambassadorWixCodestoreV2ProjectUniversalTypes.GenerateGitCodeStoreProjectUploadUrlRequest,\n ambassadorWixCodestoreV2ProjectTypes.GenerateGitCodeStoreProjectUploadUrlRequest,\n ambassadorWixCodestoreV2ProjectUniversalTypes.GenerateGitCodeStoreProjectUploadUrlResponse,\n ambassadorWixCodestoreV2ProjectTypes.GenerateGitCodeStoreProjectUploadUrlResponse\n> {\n const payload = { managedProjectId: ':managedProjectId' } as any;\n\n const getRequestOptions =\n ambassadorWixCodestoreV2Project.generateGitCodeStoreProjectUploadUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/git-code-store-projects/{managedProjectId}/generate-upload-url',\n pathParams: { managedProjectId: 'managedProjectId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function commitGitCodeStoreProjectUpload(): __PublicMethodMetaInfo<\n 'POST',\n { managedProjectId: string },\n ambassadorWixCodestoreV2ProjectUniversalTypes.CommitGitCodeStoreProjectUploadRequest,\n ambassadorWixCodestoreV2ProjectTypes.CommitGitCodeStoreProjectUploadRequest,\n ambassadorWixCodestoreV2ProjectUniversalTypes.CommitGitCodeStoreProjectUploadResponse,\n ambassadorWixCodestoreV2ProjectTypes.CommitGitCodeStoreProjectUploadResponse\n> {\n const payload = { managedProjectId: ':managedProjectId' } as any;\n\n const getRequestOptions =\n ambassadorWixCodestoreV2Project.commitGitCodeStoreProjectUpload(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/git-code-store-projects/{managedProjectId}/commit-upload',\n pathParams: { managedProjectId: 'managedProjectId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Project as ProjectOriginal,\n GitCodeStoreProjectCreated as GitCodeStoreProjectCreatedOriginal,\n GitCodeStoreOptions as GitCodeStoreOptionsOriginal,\n GitCodeStoreOptionsOptionsOneOf as GitCodeStoreOptionsOptionsOneOfOriginal,\n GitRemoteType as GitRemoteTypeOriginal,\n GitRemoteTypeWithLiterals as GitRemoteTypeWithLiteralsOriginal,\n GitCodeStoreOptionsS3Options as GitCodeStoreOptionsS3OptionsOriginal,\n GitHubOptions as GitHubOptionsOriginal,\n GitCodeStoreProjectTransferred as GitCodeStoreProjectTransferredOriginal,\n GitCodeStoreProjectDeleted as GitCodeStoreProjectDeletedOriginal,\n GenerateGitCodeStoreProjectDownloadUrlRequest as GenerateGitCodeStoreProjectDownloadUrlRequestOriginal,\n GenerateGitCodeStoreProjectDownloadUrlResponse as GenerateGitCodeStoreProjectDownloadUrlResponseOriginal,\n Revision as RevisionOriginal,\n Author as AuthorOriginal,\n GenerateGitCodeStoreProjectUploadUrlRequest as GenerateGitCodeStoreProjectUploadUrlRequestOriginal,\n GenerateGitCodeStoreProjectUploadUrlResponse as GenerateGitCodeStoreProjectUploadUrlResponseOriginal,\n GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest as GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequestOriginal,\n GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse as GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponseOriginal,\n CommitGitCodeStoreProjectUploadRequest as CommitGitCodeStoreProjectUploadRequestOriginal,\n GitCodeStoreProjectCommitOptions as GitCodeStoreProjectCommitOptionsOriginal,\n GitCodeStoreProjectCommitAuthor as GitCodeStoreProjectCommitAuthorOriginal,\n CommitGitCodeStoreProjectUploadResponse as CommitGitCodeStoreProjectUploadResponseOriginal,\n CreateGitCodeStoreProjectRequest as CreateGitCodeStoreProjectRequestOriginal,\n FileInfo as FileInfoOriginal,\n CreateGitCodeStoreProjectResponse as CreateGitCodeStoreProjectResponseOriginal,\n TransferGitCodeStoreProjectRequest as TransferGitCodeStoreProjectRequestOriginal,\n TransferGitCodeStoreProjectResponse as TransferGitCodeStoreProjectResponseOriginal,\n DeleteGitCodeStoreProjectRequest as DeleteGitCodeStoreProjectRequestOriginal,\n DeleteGitCodeStoreProjectResponse as DeleteGitCodeStoreProjectResponseOriginal,\n CloneGitCodeStoreProjectRequest as CloneGitCodeStoreProjectRequestOriginal,\n CloneGitCodeStoreProjectResponse as CloneGitCodeStoreProjectResponseOriginal,\n MigrateGitCodeStoreProjectRequest as MigrateGitCodeStoreProjectRequestOriginal,\n MigrateGitCodeStoreProjectRequestTargetOptionsOneOf as MigrateGitCodeStoreProjectRequestTargetOptionsOneOfOriginal,\n MigrateGitCodeStoreProjectRequestS3Options as MigrateGitCodeStoreProjectRequestS3OptionsOriginal,\n MigrateGitCodeStoreProjectRequestGithubOptions as MigrateGitCodeStoreProjectRequestGithubOptionsOriginal,\n MigrateGitCodeStoreProjectResponse as MigrateGitCodeStoreProjectResponseOriginal,\n ListGitCodeStoreProjectRevisionsRequest as ListGitCodeStoreProjectRevisionsRequestOriginal,\n ListGitCodeStoreProjectRevisionsResponse as ListGitCodeStoreProjectRevisionsResponseOriginal,\n GetGitCodeStoreProjectCredentialsRequest as GetGitCodeStoreProjectCredentialsRequestOriginal,\n GetGitCodeStoreProjectCredentialsResponse as GetGitCodeStoreProjectCredentialsResponseOriginal,\n GitCredentials as GitCredentialsOriginal,\n GitCredentialsOptionsOneOf as GitCredentialsOptionsOneOfOriginal,\n S3Options as S3OptionsOriginal,\n GithubOptions as GithubOptionsOriginal,\n GetGitCodeStoreProjectFileRequest as GetGitCodeStoreProjectFileRequestOriginal,\n GetGitCodeStoreProjectFileResponse as GetGitCodeStoreProjectFileResponseOriginal,\n GetGitCodeStoreProjectHeadRevisionRequest as GetGitCodeStoreProjectHeadRevisionRequestOriginal,\n GetGitCodeStoreProjectHeadRevisionResponse as GetGitCodeStoreProjectHeadRevisionResponseOriginal,\n GetGitCodeStoreProjectTreeRequest as GetGitCodeStoreProjectTreeRequestOriginal,\n GetGitCodeStoreProjectTreeResponse as GetGitCodeStoreProjectTreeResponseOriginal,\n FileEntry as FileEntryOriginal,\n FolderEntry as FolderEntryOriginal,\n BulkGetGitCodeStoreProjectFilesRequest as BulkGetGitCodeStoreProjectFilesRequestOriginal,\n BulkGetGitCodeStoreProjectFilesResponse as BulkGetGitCodeStoreProjectFilesResponseOriginal,\n BulkGetGitCodeStoreProjectFileResult as BulkGetGitCodeStoreProjectFileResultOriginal,\n BulkGetGitCodeStoreProjectFileResultResultOneOf as BulkGetGitCodeStoreProjectFileResultResultOneOfOriginal,\n GitCodeStoreProjectFile as GitCodeStoreProjectFileOriginal,\n BulkGetGitCodeStoreProjectFileError as BulkGetGitCodeStoreProjectFileErrorOriginal,\n CommitGitCodeStoreProjectFileChangesRequest as CommitGitCodeStoreProjectFileChangesRequestOriginal,\n GitCodeStoreProjectFileChange as GitCodeStoreProjectFileChangeOriginal,\n GitCodeStoreProjectFileChangeChangeOneOf as GitCodeStoreProjectFileChangeChangeOneOfOriginal,\n GitCodeStoreProjectFileReference as GitCodeStoreProjectFileReferenceOriginal,\n CommitGitCodeStoreProjectFileChangesResponse as CommitGitCodeStoreProjectFileChangesResponseOriginal,\n Result as ResultOriginal,\n ResultWithLiterals as ResultWithLiteralsOriginal,\n ListGitCodeStoreProjectFolderContentRequest as ListGitCodeStoreProjectFolderContentRequestOriginal,\n ListGitCodeStoreProjectFolderContentResponse as ListGitCodeStoreProjectFolderContentResponseOriginal,\n ValidateAndResolveConfigRequest as ValidateAndResolveConfigRequestOriginal,\n GitCodeStoreConfig as GitCodeStoreConfigOriginal,\n GitCodeStoreConfigGitRemoteOptionsOneOf as GitCodeStoreConfigGitRemoteOptionsOneOfOriginal,\n GithubAppOptions as GithubAppOptionsOriginal,\n GitCodeStoreConfigS3Options as GitCodeStoreConfigS3OptionsOriginal,\n ValidateAndResolveConfigResponse as ValidateAndResolveConfigResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n GenerateGitCodeStoreProjectDownloadUrlApplicationErrors as GenerateGitCodeStoreProjectDownloadUrlApplicationErrorsOriginal,\n CommitGitCodeStoreProjectUploadApplicationErrors as CommitGitCodeStoreProjectUploadApplicationErrorsOriginal,\n} from './codestore-v2-project-projects.types.js';\n"],"mappings":"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","names":["payload","GitRemoteType","Result","WebhookIdentityType","generateGitCodeStoreProjectDownloadUrl","generateGitCodeStoreProjectUploadUrl","commitGitCodeStoreProjectUpload"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { GenerateGitCodeStoreProjectDownloadUrlOptions, GenerateGitCodeStoreProjectDownloadUrlResponse, GenerateGitCodeStoreProjectDownloadUrlApplicationErrors, GenerateGitCodeStoreProjectUploadUrlResponse, CommitGitCodeStoreProjectUploadOptions, CommitGitCodeStoreProjectUploadResponse, CommitGitCodeStoreProjectUploadApplicationErrors } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, ActionEvent, Author, BulkGetGitCodeStoreProjectFileError, BulkGetGitCodeStoreProjectFileResult, BulkGetGitCodeStoreProjectFileResultResultOneOf, BulkGetGitCodeStoreProjectFilesRequest, BulkGetGitCodeStoreProjectFilesResponse, CloneGitCodeStoreProjectRequest, CloneGitCodeStoreProjectResponse, CommitGitCodeStoreProjectFileChangesRequest, CommitGitCodeStoreProjectFileChangesResponse, CommitGitCodeStoreProjectUploadRequest, CreateGitCodeStoreProjectRequest, CreateGitCodeStoreProjectResponse, DeleteGitCodeStoreProjectRequest, DeleteGitCodeStoreProjectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FileEntry, FileInfo, FolderEntry, GenerateGitCodeStoreProjectDownloadUrlRequest, GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest, GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse, GenerateGitCodeStoreProjectUploadUrlRequest, GetGitCodeStoreProjectCredentialsRequest, GetGitCodeStoreProjectCredentialsResponse, GetGitCodeStoreProjectFileRequest, GetGitCodeStoreProjectFileResponse, GetGitCodeStoreProjectHeadRevisionRequest, GetGitCodeStoreProjectHeadRevisionResponse, GitCodeStoreConfig, GitCodeStoreConfigGitRemoteOptionsOneOf, GitCodeStoreConfigS3Options, GitCodeStoreOptions, GitCodeStoreOptionsOptionsOneOf, GitCodeStoreOptionsS3Options, GitCodeStoreProjectCommitAuthor, GitCodeStoreProjectCommitOptions, GitCodeStoreProjectCreated, GitCodeStoreProjectDeleted, GitCodeStoreProjectFile, GitCodeStoreProjectFileChange, GitCodeStoreProjectFileChangeChangeOneOf, GitCodeStoreProjectFileReference, GitCodeStoreProjectTransferred, GitCredentials, GitCredentialsOptionsOneOf, GitHubOptions, GitRemoteType, GitRemoteTypeWithLiterals, GithubAppOptions, GithubOptions, IdentificationData, IdentificationDataIdOneOf, ListGitCodeStoreProjectFolderContentRequest, ListGitCodeStoreProjectFolderContentResponse, ListGitCodeStoreProjectRevisionsRequest, ListGitCodeStoreProjectRevisionsResponse, MessageEnvelope, MigrateGitCodeStoreProjectRequest, MigrateGitCodeStoreProjectRequestGithubOptions, MigrateGitCodeStoreProjectRequestS3Options, MigrateGitCodeStoreProjectRequestTargetOptionsOneOf, MigrateGitCodeStoreProjectResponse, Project, RestoreInfo, Result, ResultWithLiterals, Revision, S3Options, TransferGitCodeStoreProjectRequest, TransferGitCodeStoreProjectResponse, ValidateAndResolveConfigRequest, ValidateAndResolveConfigResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, ActionEvent, Author, BulkGetGitCodeStoreProjectFileError, BulkGetGitCodeStoreProjectFileResult, BulkGetGitCodeStoreProjectFileResultResultOneOf, BulkGetGitCodeStoreProjectFilesRequest, BulkGetGitCodeStoreProjectFilesResponse, CloneGitCodeStoreProjectRequest, CloneGitCodeStoreProjectResponse, CommitGitCodeStoreProjectFileChangesRequest, CommitGitCodeStoreProjectFileChangesResponse, CommitGitCodeStoreProjectUploadRequest, CreateGitCodeStoreProjectRequest, CreateGitCodeStoreProjectResponse, DeleteGitCodeStoreProjectRequest, DeleteGitCodeStoreProjectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FileEntry, FileInfo, FolderEntry, GenerateGitCodeStoreProjectDownloadUrlRequest, GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest, GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse, GenerateGitCodeStoreProjectUploadUrlRequest, GetGitCodeStoreProjectCredentialsRequest, GetGitCodeStoreProjectCredentialsResponse, GetGitCodeStoreProjectFileRequest, GetGitCodeStoreProjectFileResponse, GetGitCodeStoreProjectHeadRevisionRequest, GetGitCodeStoreProjectHeadRevisionResponse, GetGitCodeStoreProjectTreeRequest, GetGitCodeStoreProjectTreeResponse, GitCodeStoreConfig, GitCodeStoreConfigGitRemoteOptionsOneOf, GitCodeStoreConfigS3Options, GitCodeStoreOptions, GitCodeStoreOptionsOptionsOneOf, GitCodeStoreOptionsS3Options, GitCodeStoreProjectCommitAuthor, GitCodeStoreProjectCommitOptions, GitCodeStoreProjectCreated, GitCodeStoreProjectDeleted, GitCodeStoreProjectFile, GitCodeStoreProjectFileChange, GitCodeStoreProjectFileChangeChangeOneOf, GitCodeStoreProjectFileReference, GitCodeStoreProjectTransferred, GitCredentials, GitCredentialsOptionsOneOf, GitHubOptions, GitRemoteType, GitRemoteTypeWithLiterals, GithubAppOptions, GithubOptions, IdentificationData, IdentificationDataIdOneOf, ListGitCodeStoreProjectFolderContentRequest, ListGitCodeStoreProjectFolderContentResponse, ListGitCodeStoreProjectRevisionsRequest, ListGitCodeStoreProjectRevisionsResponse, MessageEnvelope, MigrateGitCodeStoreProjectRequest, MigrateGitCodeStoreProjectRequestGithubOptions, MigrateGitCodeStoreProjectRequestS3Options, MigrateGitCodeStoreProjectRequestTargetOptionsOneOf, MigrateGitCodeStoreProjectResponse, Project, RestoreInfo, Result, ResultWithLiterals, Revision, S3Options, TransferGitCodeStoreProjectRequest, TransferGitCodeStoreProjectResponse, ValidateAndResolveConfigRequest, ValidateAndResolveConfigResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function generateGitCodeStoreProjectDownloadUrl$1(httpClient: HttpClient): GenerateGitCodeStoreProjectDownloadUrlSignature;
|
|
6
6
|
interface GenerateGitCodeStoreProjectDownloadUrlSignature {
|
|
@@ -541,6 +541,80 @@ interface GetGitCodeStoreProjectHeadRevisionResponse {
|
|
|
541
541
|
*/
|
|
542
542
|
branchName?: string;
|
|
543
543
|
}
|
|
544
|
+
/** Selects a complete repository tree at one immutable revision. */
|
|
545
|
+
interface GetGitCodeStoreProjectTreeRequest {
|
|
546
|
+
/**
|
|
547
|
+
* The ID of the managed project.
|
|
548
|
+
* @format GUID
|
|
549
|
+
*/
|
|
550
|
+
managedProjectId?: string;
|
|
551
|
+
/**
|
|
552
|
+
* Existing branch to read. Defaults to main.
|
|
553
|
+
* @maxLength 250
|
|
554
|
+
*/
|
|
555
|
+
branchName?: string | null;
|
|
556
|
+
/**
|
|
557
|
+
* Optional exact revision reachable from the selected branch. Defaults to its current head.
|
|
558
|
+
* @minLength 40
|
|
559
|
+
* @maxLength 40
|
|
560
|
+
*/
|
|
561
|
+
revisionId?: string | null;
|
|
562
|
+
}
|
|
563
|
+
/** Complete tree, without file contents. Files and folders together are limited to 10,000 entries. */
|
|
564
|
+
interface GetGitCodeStoreProjectTreeResponse {
|
|
565
|
+
/**
|
|
566
|
+
* All file paths, sorted lexicographically. Includes symlinks without following them.
|
|
567
|
+
* @maxSize 10000
|
|
568
|
+
*/
|
|
569
|
+
files?: FileEntry[];
|
|
570
|
+
/**
|
|
571
|
+
* All folder paths, sorted lexicographically. Excludes the repository root.
|
|
572
|
+
* @maxSize 10000
|
|
573
|
+
*/
|
|
574
|
+
folders?: FolderEntry[];
|
|
575
|
+
/** The exact revision used to read this tree. */
|
|
576
|
+
revision?: Revision;
|
|
577
|
+
/**
|
|
578
|
+
* The resolved branch.
|
|
579
|
+
* @maxLength 250
|
|
580
|
+
*/
|
|
581
|
+
branchName?: string;
|
|
582
|
+
}
|
|
583
|
+
/** A file directly inside the listed folder. */
|
|
584
|
+
interface FileEntry {
|
|
585
|
+
/**
|
|
586
|
+
* Name of the file within the listed folder, with no path separators.
|
|
587
|
+
* @minLength 1
|
|
588
|
+
* @maxLength 250
|
|
589
|
+
*/
|
|
590
|
+
name?: string;
|
|
591
|
+
/**
|
|
592
|
+
* Full path of the file relative to the repository root. Pass this to
|
|
593
|
+
* GetGitCodeStoreProjectFile to read the file's content.
|
|
594
|
+
* @minLength 1
|
|
595
|
+
* @maxLength 500
|
|
596
|
+
*/
|
|
597
|
+
path?: string;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* A folder directly inside the listed folder. Git tracks no directory of its own,
|
|
601
|
+
* so a folder appears here only because it contains at least one file, at any depth.
|
|
602
|
+
*/
|
|
603
|
+
interface FolderEntry {
|
|
604
|
+
/**
|
|
605
|
+
* Name of the folder within the listed folder, with no path separators.
|
|
606
|
+
* @minLength 1
|
|
607
|
+
* @maxLength 250
|
|
608
|
+
*/
|
|
609
|
+
name?: string;
|
|
610
|
+
/**
|
|
611
|
+
* Full path of the folder relative to the repository root. Pass this back as
|
|
612
|
+
* `folder_path` to list the next level down.
|
|
613
|
+
* @minLength 1
|
|
614
|
+
* @maxLength 500
|
|
615
|
+
*/
|
|
616
|
+
path?: string;
|
|
617
|
+
}
|
|
544
618
|
/** Exact paths to read from a single snapshot. */
|
|
545
619
|
interface BulkGetGitCodeStoreProjectFilesRequest {
|
|
546
620
|
/**
|
|
@@ -762,41 +836,6 @@ interface ListGitCodeStoreProjectFolderContentResponse {
|
|
|
762
836
|
/** The revision the folder was listed at. */
|
|
763
837
|
revision?: Revision;
|
|
764
838
|
}
|
|
765
|
-
/** A file directly inside the listed folder. */
|
|
766
|
-
interface FileEntry {
|
|
767
|
-
/**
|
|
768
|
-
* Name of the file within the listed folder, with no path separators.
|
|
769
|
-
* @minLength 1
|
|
770
|
-
* @maxLength 250
|
|
771
|
-
*/
|
|
772
|
-
name?: string;
|
|
773
|
-
/**
|
|
774
|
-
* Full path of the file relative to the repository root. Pass this to
|
|
775
|
-
* GetGitCodeStoreProjectFile to read the file's content.
|
|
776
|
-
* @minLength 1
|
|
777
|
-
* @maxLength 500
|
|
778
|
-
*/
|
|
779
|
-
path?: string;
|
|
780
|
-
}
|
|
781
|
-
/**
|
|
782
|
-
* A folder directly inside the listed folder. Git tracks no directory of its own,
|
|
783
|
-
* so a folder appears here only because it contains at least one file, at any depth.
|
|
784
|
-
*/
|
|
785
|
-
interface FolderEntry {
|
|
786
|
-
/**
|
|
787
|
-
* Name of the folder within the listed folder, with no path separators.
|
|
788
|
-
* @minLength 1
|
|
789
|
-
* @maxLength 250
|
|
790
|
-
*/
|
|
791
|
-
name?: string;
|
|
792
|
-
/**
|
|
793
|
-
* Full path of the folder relative to the repository root. Pass this back as
|
|
794
|
-
* `folder_path` to list the next level down.
|
|
795
|
-
* @minLength 1
|
|
796
|
-
* @maxLength 500
|
|
797
|
-
*/
|
|
798
|
-
path?: string;
|
|
799
|
-
}
|
|
800
839
|
interface ValidateAndResolveConfigRequest {
|
|
801
840
|
/**
|
|
802
841
|
* The ID of the AppManagedProjectConfig being validated.
|
|
@@ -1146,4 +1185,4 @@ interface CommitGitCodeStoreProjectUploadOptions {
|
|
|
1146
1185
|
force?: boolean;
|
|
1147
1186
|
}
|
|
1148
1187
|
|
|
1149
|
-
export { type AccountInfo, type ActionEvent, type Author, type BulkGetGitCodeStoreProjectFileError, type BulkGetGitCodeStoreProjectFileResult, type BulkGetGitCodeStoreProjectFileResultResultOneOf, type BulkGetGitCodeStoreProjectFilesRequest, type BulkGetGitCodeStoreProjectFilesResponse, type CloneGitCodeStoreProjectRequest, type CloneGitCodeStoreProjectResponse, type CommitGitCodeStoreProjectFileChangesRequest, type CommitGitCodeStoreProjectFileChangesResponse, type CommitGitCodeStoreProjectUploadApplicationErrors, type CommitGitCodeStoreProjectUploadOptions, type CommitGitCodeStoreProjectUploadRequest, type CommitGitCodeStoreProjectUploadResponse, type CreateGitCodeStoreProjectRequest, type CreateGitCodeStoreProjectResponse, type DeleteGitCodeStoreProjectRequest, type DeleteGitCodeStoreProjectResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FileEntry, type FileInfo, type FolderEntry, type GenerateGitCodeStoreProjectDownloadUrlApplicationErrors, type GenerateGitCodeStoreProjectDownloadUrlOptions, type GenerateGitCodeStoreProjectDownloadUrlRequest, type GenerateGitCodeStoreProjectDownloadUrlResponse, type GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest, type GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse, type GenerateGitCodeStoreProjectUploadUrlRequest, type GenerateGitCodeStoreProjectUploadUrlResponse, type GetGitCodeStoreProjectCredentialsRequest, type GetGitCodeStoreProjectCredentialsResponse, type GetGitCodeStoreProjectFileRequest, type GetGitCodeStoreProjectFileResponse, type GetGitCodeStoreProjectHeadRevisionRequest, type GetGitCodeStoreProjectHeadRevisionResponse, type GitCodeStoreConfig, type GitCodeStoreConfigGitRemoteOptionsOneOf, type GitCodeStoreConfigS3Options, type GitCodeStoreOptions, type GitCodeStoreOptionsOptionsOneOf, type GitCodeStoreOptionsS3Options, type GitCodeStoreProjectCommitAuthor, type GitCodeStoreProjectCommitOptions, type GitCodeStoreProjectCreated, type GitCodeStoreProjectDeleted, type GitCodeStoreProjectFile, type GitCodeStoreProjectFileChange, type GitCodeStoreProjectFileChangeChangeOneOf, type GitCodeStoreProjectFileReference, type GitCodeStoreProjectTransferred, type GitCredentials, type GitCredentialsOptionsOneOf, type GitHubOptions, GitRemoteType, type GitRemoteTypeWithLiterals, type GithubAppOptions, type GithubOptions, type IdentificationData, type IdentificationDataIdOneOf, type ListGitCodeStoreProjectFolderContentRequest, type ListGitCodeStoreProjectFolderContentResponse, type ListGitCodeStoreProjectRevisionsRequest, type ListGitCodeStoreProjectRevisionsResponse, type MessageEnvelope, type MigrateGitCodeStoreProjectRequest, type MigrateGitCodeStoreProjectRequestGithubOptions, type MigrateGitCodeStoreProjectRequestS3Options, type MigrateGitCodeStoreProjectRequestTargetOptionsOneOf, type MigrateGitCodeStoreProjectResponse, type Project, type RestoreInfo, Result, type ResultWithLiterals, type Revision, type S3Options, type TransferGitCodeStoreProjectRequest, type TransferGitCodeStoreProjectResponse, type ValidateAndResolveConfigRequest, type ValidateAndResolveConfigResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, commitGitCodeStoreProjectUpload, generateGitCodeStoreProjectDownloadUrl, generateGitCodeStoreProjectUploadUrl };
|
|
1188
|
+
export { type AccountInfo, type ActionEvent, type Author, type BulkGetGitCodeStoreProjectFileError, type BulkGetGitCodeStoreProjectFileResult, type BulkGetGitCodeStoreProjectFileResultResultOneOf, type BulkGetGitCodeStoreProjectFilesRequest, type BulkGetGitCodeStoreProjectFilesResponse, type CloneGitCodeStoreProjectRequest, type CloneGitCodeStoreProjectResponse, type CommitGitCodeStoreProjectFileChangesRequest, type CommitGitCodeStoreProjectFileChangesResponse, type CommitGitCodeStoreProjectUploadApplicationErrors, type CommitGitCodeStoreProjectUploadOptions, type CommitGitCodeStoreProjectUploadRequest, type CommitGitCodeStoreProjectUploadResponse, type CreateGitCodeStoreProjectRequest, type CreateGitCodeStoreProjectResponse, type DeleteGitCodeStoreProjectRequest, type DeleteGitCodeStoreProjectResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FileEntry, type FileInfo, type FolderEntry, type GenerateGitCodeStoreProjectDownloadUrlApplicationErrors, type GenerateGitCodeStoreProjectDownloadUrlOptions, type GenerateGitCodeStoreProjectDownloadUrlRequest, type GenerateGitCodeStoreProjectDownloadUrlResponse, type GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest, type GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse, type GenerateGitCodeStoreProjectUploadUrlRequest, type GenerateGitCodeStoreProjectUploadUrlResponse, type GetGitCodeStoreProjectCredentialsRequest, type GetGitCodeStoreProjectCredentialsResponse, type GetGitCodeStoreProjectFileRequest, type GetGitCodeStoreProjectFileResponse, type GetGitCodeStoreProjectHeadRevisionRequest, type GetGitCodeStoreProjectHeadRevisionResponse, type GetGitCodeStoreProjectTreeRequest, type GetGitCodeStoreProjectTreeResponse, type GitCodeStoreConfig, type GitCodeStoreConfigGitRemoteOptionsOneOf, type GitCodeStoreConfigS3Options, type GitCodeStoreOptions, type GitCodeStoreOptionsOptionsOneOf, type GitCodeStoreOptionsS3Options, type GitCodeStoreProjectCommitAuthor, type GitCodeStoreProjectCommitOptions, type GitCodeStoreProjectCreated, type GitCodeStoreProjectDeleted, type GitCodeStoreProjectFile, type GitCodeStoreProjectFileChange, type GitCodeStoreProjectFileChangeChangeOneOf, type GitCodeStoreProjectFileReference, type GitCodeStoreProjectTransferred, type GitCredentials, type GitCredentialsOptionsOneOf, type GitHubOptions, GitRemoteType, type GitRemoteTypeWithLiterals, type GithubAppOptions, type GithubOptions, type IdentificationData, type IdentificationDataIdOneOf, type ListGitCodeStoreProjectFolderContentRequest, type ListGitCodeStoreProjectFolderContentResponse, type ListGitCodeStoreProjectRevisionsRequest, type ListGitCodeStoreProjectRevisionsResponse, type MessageEnvelope, type MigrateGitCodeStoreProjectRequest, type MigrateGitCodeStoreProjectRequestGithubOptions, type MigrateGitCodeStoreProjectRequestS3Options, type MigrateGitCodeStoreProjectRequestTargetOptionsOneOf, type MigrateGitCodeStoreProjectResponse, type Project, type RestoreInfo, Result, type ResultWithLiterals, type Revision, type S3Options, type TransferGitCodeStoreProjectRequest, type TransferGitCodeStoreProjectResponse, type ValidateAndResolveConfigRequest, type ValidateAndResolveConfigResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, commitGitCodeStoreProjectUpload, generateGitCodeStoreProjectDownloadUrl, generateGitCodeStoreProjectUploadUrl };
|
|
@@ -542,6 +542,80 @@ interface GetGitCodeStoreProjectHeadRevisionResponse {
|
|
|
542
542
|
*/
|
|
543
543
|
branchName?: string;
|
|
544
544
|
}
|
|
545
|
+
/** Selects a complete repository tree at one immutable revision. */
|
|
546
|
+
interface GetGitCodeStoreProjectTreeRequest {
|
|
547
|
+
/**
|
|
548
|
+
* The ID of the managed project.
|
|
549
|
+
* @format GUID
|
|
550
|
+
*/
|
|
551
|
+
managedProjectId?: string;
|
|
552
|
+
/**
|
|
553
|
+
* Existing branch to read. Defaults to main.
|
|
554
|
+
* @maxLength 250
|
|
555
|
+
*/
|
|
556
|
+
branchName?: string | null;
|
|
557
|
+
/**
|
|
558
|
+
* Optional exact revision reachable from the selected branch. Defaults to its current head.
|
|
559
|
+
* @minLength 40
|
|
560
|
+
* @maxLength 40
|
|
561
|
+
*/
|
|
562
|
+
revisionId?: string | null;
|
|
563
|
+
}
|
|
564
|
+
/** Complete tree, without file contents. Files and folders together are limited to 10,000 entries. */
|
|
565
|
+
interface GetGitCodeStoreProjectTreeResponse {
|
|
566
|
+
/**
|
|
567
|
+
* All file paths, sorted lexicographically. Includes symlinks without following them.
|
|
568
|
+
* @maxSize 10000
|
|
569
|
+
*/
|
|
570
|
+
files?: FileEntry[];
|
|
571
|
+
/**
|
|
572
|
+
* All folder paths, sorted lexicographically. Excludes the repository root.
|
|
573
|
+
* @maxSize 10000
|
|
574
|
+
*/
|
|
575
|
+
folders?: FolderEntry[];
|
|
576
|
+
/** The exact revision used to read this tree. */
|
|
577
|
+
revision?: Revision;
|
|
578
|
+
/**
|
|
579
|
+
* The resolved branch.
|
|
580
|
+
* @maxLength 250
|
|
581
|
+
*/
|
|
582
|
+
branchName?: string;
|
|
583
|
+
}
|
|
584
|
+
/** A file directly inside the listed folder. */
|
|
585
|
+
interface FileEntry {
|
|
586
|
+
/**
|
|
587
|
+
* Name of the file within the listed folder, with no path separators.
|
|
588
|
+
* @minLength 1
|
|
589
|
+
* @maxLength 250
|
|
590
|
+
*/
|
|
591
|
+
name?: string;
|
|
592
|
+
/**
|
|
593
|
+
* Full path of the file relative to the repository root. Pass this to
|
|
594
|
+
* GetGitCodeStoreProjectFile to read the file's content.
|
|
595
|
+
* @minLength 1
|
|
596
|
+
* @maxLength 500
|
|
597
|
+
*/
|
|
598
|
+
path?: string;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* A folder directly inside the listed folder. Git tracks no directory of its own,
|
|
602
|
+
* so a folder appears here only because it contains at least one file, at any depth.
|
|
603
|
+
*/
|
|
604
|
+
interface FolderEntry {
|
|
605
|
+
/**
|
|
606
|
+
* Name of the folder within the listed folder, with no path separators.
|
|
607
|
+
* @minLength 1
|
|
608
|
+
* @maxLength 250
|
|
609
|
+
*/
|
|
610
|
+
name?: string;
|
|
611
|
+
/**
|
|
612
|
+
* Full path of the folder relative to the repository root. Pass this back as
|
|
613
|
+
* `folder_path` to list the next level down.
|
|
614
|
+
* @minLength 1
|
|
615
|
+
* @maxLength 500
|
|
616
|
+
*/
|
|
617
|
+
path?: string;
|
|
618
|
+
}
|
|
545
619
|
/** Exact paths to read from a single snapshot. */
|
|
546
620
|
interface BulkGetGitCodeStoreProjectFilesRequest {
|
|
547
621
|
/**
|
|
@@ -763,41 +837,6 @@ interface ListGitCodeStoreProjectFolderContentResponse {
|
|
|
763
837
|
/** The revision the folder was listed at. */
|
|
764
838
|
revision?: Revision;
|
|
765
839
|
}
|
|
766
|
-
/** A file directly inside the listed folder. */
|
|
767
|
-
interface FileEntry {
|
|
768
|
-
/**
|
|
769
|
-
* Name of the file within the listed folder, with no path separators.
|
|
770
|
-
* @minLength 1
|
|
771
|
-
* @maxLength 250
|
|
772
|
-
*/
|
|
773
|
-
name?: string;
|
|
774
|
-
/**
|
|
775
|
-
* Full path of the file relative to the repository root. Pass this to
|
|
776
|
-
* GetGitCodeStoreProjectFile to read the file's content.
|
|
777
|
-
* @minLength 1
|
|
778
|
-
* @maxLength 500
|
|
779
|
-
*/
|
|
780
|
-
path?: string;
|
|
781
|
-
}
|
|
782
|
-
/**
|
|
783
|
-
* A folder directly inside the listed folder. Git tracks no directory of its own,
|
|
784
|
-
* so a folder appears here only because it contains at least one file, at any depth.
|
|
785
|
-
*/
|
|
786
|
-
interface FolderEntry {
|
|
787
|
-
/**
|
|
788
|
-
* Name of the folder within the listed folder, with no path separators.
|
|
789
|
-
* @minLength 1
|
|
790
|
-
* @maxLength 250
|
|
791
|
-
*/
|
|
792
|
-
name?: string;
|
|
793
|
-
/**
|
|
794
|
-
* Full path of the folder relative to the repository root. Pass this back as
|
|
795
|
-
* `folder_path` to list the next level down.
|
|
796
|
-
* @minLength 1
|
|
797
|
-
* @maxLength 500
|
|
798
|
-
*/
|
|
799
|
-
path?: string;
|
|
800
|
-
}
|
|
801
840
|
interface ValidateAndResolveConfigRequest {
|
|
802
841
|
/**
|
|
803
842
|
* The ID of the AppManagedProjectConfig being validated.
|
|
@@ -1105,4 +1144,4 @@ declare function commitGitCodeStoreProjectUpload(): __PublicMethodMetaInfo<'POST
|
|
|
1105
1144
|
managedProjectId: string;
|
|
1106
1145
|
}, CommitGitCodeStoreProjectUploadRequest$1, CommitGitCodeStoreProjectUploadRequest, CommitGitCodeStoreProjectUploadResponse$1, CommitGitCodeStoreProjectUploadResponse>;
|
|
1107
1146
|
|
|
1108
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type Author as AuthorOriginal, type BulkGetGitCodeStoreProjectFileError as BulkGetGitCodeStoreProjectFileErrorOriginal, type BulkGetGitCodeStoreProjectFileResult as BulkGetGitCodeStoreProjectFileResultOriginal, type BulkGetGitCodeStoreProjectFileResultResultOneOf as BulkGetGitCodeStoreProjectFileResultResultOneOfOriginal, type BulkGetGitCodeStoreProjectFilesRequest as BulkGetGitCodeStoreProjectFilesRequestOriginal, type BulkGetGitCodeStoreProjectFilesResponse as BulkGetGitCodeStoreProjectFilesResponseOriginal, type CloneGitCodeStoreProjectRequest as CloneGitCodeStoreProjectRequestOriginal, type CloneGitCodeStoreProjectResponse as CloneGitCodeStoreProjectResponseOriginal, type CommitGitCodeStoreProjectFileChangesRequest as CommitGitCodeStoreProjectFileChangesRequestOriginal, type CommitGitCodeStoreProjectFileChangesResponse as CommitGitCodeStoreProjectFileChangesResponseOriginal, type CommitGitCodeStoreProjectUploadApplicationErrors as CommitGitCodeStoreProjectUploadApplicationErrorsOriginal, type CommitGitCodeStoreProjectUploadRequest as CommitGitCodeStoreProjectUploadRequestOriginal, type CommitGitCodeStoreProjectUploadResponse as CommitGitCodeStoreProjectUploadResponseOriginal, type CreateGitCodeStoreProjectRequest as CreateGitCodeStoreProjectRequestOriginal, type CreateGitCodeStoreProjectResponse as CreateGitCodeStoreProjectResponseOriginal, type DeleteGitCodeStoreProjectRequest as DeleteGitCodeStoreProjectRequestOriginal, type DeleteGitCodeStoreProjectResponse as DeleteGitCodeStoreProjectResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FileEntry as FileEntryOriginal, type FileInfo as FileInfoOriginal, type FolderEntry as FolderEntryOriginal, type GenerateGitCodeStoreProjectDownloadUrlApplicationErrors as GenerateGitCodeStoreProjectDownloadUrlApplicationErrorsOriginal, type GenerateGitCodeStoreProjectDownloadUrlRequest as GenerateGitCodeStoreProjectDownloadUrlRequestOriginal, type GenerateGitCodeStoreProjectDownloadUrlResponse as GenerateGitCodeStoreProjectDownloadUrlResponseOriginal, type GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest as GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequestOriginal, type GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse as GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponseOriginal, type GenerateGitCodeStoreProjectUploadUrlRequest as GenerateGitCodeStoreProjectUploadUrlRequestOriginal, type GenerateGitCodeStoreProjectUploadUrlResponse as GenerateGitCodeStoreProjectUploadUrlResponseOriginal, type GetGitCodeStoreProjectCredentialsRequest as GetGitCodeStoreProjectCredentialsRequestOriginal, type GetGitCodeStoreProjectCredentialsResponse as GetGitCodeStoreProjectCredentialsResponseOriginal, type GetGitCodeStoreProjectFileRequest as GetGitCodeStoreProjectFileRequestOriginal, type GetGitCodeStoreProjectFileResponse as GetGitCodeStoreProjectFileResponseOriginal, type GetGitCodeStoreProjectHeadRevisionRequest as GetGitCodeStoreProjectHeadRevisionRequestOriginal, type GetGitCodeStoreProjectHeadRevisionResponse as GetGitCodeStoreProjectHeadRevisionResponseOriginal, type GitCodeStoreConfigGitRemoteOptionsOneOf as GitCodeStoreConfigGitRemoteOptionsOneOfOriginal, type GitCodeStoreConfig as GitCodeStoreConfigOriginal, type GitCodeStoreConfigS3Options as GitCodeStoreConfigS3OptionsOriginal, type GitCodeStoreOptionsOptionsOneOf as GitCodeStoreOptionsOptionsOneOfOriginal, type GitCodeStoreOptions as GitCodeStoreOptionsOriginal, type GitCodeStoreOptionsS3Options as GitCodeStoreOptionsS3OptionsOriginal, type GitCodeStoreProjectCommitAuthor as GitCodeStoreProjectCommitAuthorOriginal, type GitCodeStoreProjectCommitOptions as GitCodeStoreProjectCommitOptionsOriginal, type GitCodeStoreProjectCreated as GitCodeStoreProjectCreatedOriginal, type GitCodeStoreProjectDeleted as GitCodeStoreProjectDeletedOriginal, type GitCodeStoreProjectFileChangeChangeOneOf as GitCodeStoreProjectFileChangeChangeOneOfOriginal, type GitCodeStoreProjectFileChange as GitCodeStoreProjectFileChangeOriginal, type GitCodeStoreProjectFile as GitCodeStoreProjectFileOriginal, type GitCodeStoreProjectFileReference as GitCodeStoreProjectFileReferenceOriginal, type GitCodeStoreProjectTransferred as GitCodeStoreProjectTransferredOriginal, type GitCredentialsOptionsOneOf as GitCredentialsOptionsOneOfOriginal, type GitCredentials as GitCredentialsOriginal, type GitHubOptions as GitHubOptionsOriginal, GitRemoteType as GitRemoteTypeOriginal, type GitRemoteTypeWithLiterals as GitRemoteTypeWithLiteralsOriginal, type GithubAppOptions as GithubAppOptionsOriginal, type GithubOptions as GithubOptionsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListGitCodeStoreProjectFolderContentRequest as ListGitCodeStoreProjectFolderContentRequestOriginal, type ListGitCodeStoreProjectFolderContentResponse as ListGitCodeStoreProjectFolderContentResponseOriginal, type ListGitCodeStoreProjectRevisionsRequest as ListGitCodeStoreProjectRevisionsRequestOriginal, type ListGitCodeStoreProjectRevisionsResponse as ListGitCodeStoreProjectRevisionsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigrateGitCodeStoreProjectRequestGithubOptions as MigrateGitCodeStoreProjectRequestGithubOptionsOriginal, type MigrateGitCodeStoreProjectRequest as MigrateGitCodeStoreProjectRequestOriginal, type MigrateGitCodeStoreProjectRequestS3Options as MigrateGitCodeStoreProjectRequestS3OptionsOriginal, type MigrateGitCodeStoreProjectRequestTargetOptionsOneOf as MigrateGitCodeStoreProjectRequestTargetOptionsOneOfOriginal, type MigrateGitCodeStoreProjectResponse as MigrateGitCodeStoreProjectResponseOriginal, type Project as ProjectOriginal, type RestoreInfo as RestoreInfoOriginal, Result as ResultOriginal, type ResultWithLiterals as ResultWithLiteralsOriginal, type Revision as RevisionOriginal, type S3Options as S3OptionsOriginal, type TransferGitCodeStoreProjectRequest as TransferGitCodeStoreProjectRequestOriginal, type TransferGitCodeStoreProjectResponse as TransferGitCodeStoreProjectResponseOriginal, type ValidateAndResolveConfigRequest as ValidateAndResolveConfigRequestOriginal, type ValidateAndResolveConfigResponse as ValidateAndResolveConfigResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, commitGitCodeStoreProjectUpload, generateGitCodeStoreProjectDownloadUrl, generateGitCodeStoreProjectUploadUrl };
|
|
1147
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type Author as AuthorOriginal, type BulkGetGitCodeStoreProjectFileError as BulkGetGitCodeStoreProjectFileErrorOriginal, type BulkGetGitCodeStoreProjectFileResult as BulkGetGitCodeStoreProjectFileResultOriginal, type BulkGetGitCodeStoreProjectFileResultResultOneOf as BulkGetGitCodeStoreProjectFileResultResultOneOfOriginal, type BulkGetGitCodeStoreProjectFilesRequest as BulkGetGitCodeStoreProjectFilesRequestOriginal, type BulkGetGitCodeStoreProjectFilesResponse as BulkGetGitCodeStoreProjectFilesResponseOriginal, type CloneGitCodeStoreProjectRequest as CloneGitCodeStoreProjectRequestOriginal, type CloneGitCodeStoreProjectResponse as CloneGitCodeStoreProjectResponseOriginal, type CommitGitCodeStoreProjectFileChangesRequest as CommitGitCodeStoreProjectFileChangesRequestOriginal, type CommitGitCodeStoreProjectFileChangesResponse as CommitGitCodeStoreProjectFileChangesResponseOriginal, type CommitGitCodeStoreProjectUploadApplicationErrors as CommitGitCodeStoreProjectUploadApplicationErrorsOriginal, type CommitGitCodeStoreProjectUploadRequest as CommitGitCodeStoreProjectUploadRequestOriginal, type CommitGitCodeStoreProjectUploadResponse as CommitGitCodeStoreProjectUploadResponseOriginal, type CreateGitCodeStoreProjectRequest as CreateGitCodeStoreProjectRequestOriginal, type CreateGitCodeStoreProjectResponse as CreateGitCodeStoreProjectResponseOriginal, type DeleteGitCodeStoreProjectRequest as DeleteGitCodeStoreProjectRequestOriginal, type DeleteGitCodeStoreProjectResponse as DeleteGitCodeStoreProjectResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FileEntry as FileEntryOriginal, type FileInfo as FileInfoOriginal, type FolderEntry as FolderEntryOriginal, type GenerateGitCodeStoreProjectDownloadUrlApplicationErrors as GenerateGitCodeStoreProjectDownloadUrlApplicationErrorsOriginal, type GenerateGitCodeStoreProjectDownloadUrlRequest as GenerateGitCodeStoreProjectDownloadUrlRequestOriginal, type GenerateGitCodeStoreProjectDownloadUrlResponse as GenerateGitCodeStoreProjectDownloadUrlResponseOriginal, type GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest as GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequestOriginal, type GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse as GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponseOriginal, type GenerateGitCodeStoreProjectUploadUrlRequest as GenerateGitCodeStoreProjectUploadUrlRequestOriginal, type GenerateGitCodeStoreProjectUploadUrlResponse as GenerateGitCodeStoreProjectUploadUrlResponseOriginal, type GetGitCodeStoreProjectCredentialsRequest as GetGitCodeStoreProjectCredentialsRequestOriginal, type GetGitCodeStoreProjectCredentialsResponse as GetGitCodeStoreProjectCredentialsResponseOriginal, type GetGitCodeStoreProjectFileRequest as GetGitCodeStoreProjectFileRequestOriginal, type GetGitCodeStoreProjectFileResponse as GetGitCodeStoreProjectFileResponseOriginal, type GetGitCodeStoreProjectHeadRevisionRequest as GetGitCodeStoreProjectHeadRevisionRequestOriginal, type GetGitCodeStoreProjectHeadRevisionResponse as GetGitCodeStoreProjectHeadRevisionResponseOriginal, type GetGitCodeStoreProjectTreeRequest as GetGitCodeStoreProjectTreeRequestOriginal, type GetGitCodeStoreProjectTreeResponse as GetGitCodeStoreProjectTreeResponseOriginal, type GitCodeStoreConfigGitRemoteOptionsOneOf as GitCodeStoreConfigGitRemoteOptionsOneOfOriginal, type GitCodeStoreConfig as GitCodeStoreConfigOriginal, type GitCodeStoreConfigS3Options as GitCodeStoreConfigS3OptionsOriginal, type GitCodeStoreOptionsOptionsOneOf as GitCodeStoreOptionsOptionsOneOfOriginal, type GitCodeStoreOptions as GitCodeStoreOptionsOriginal, type GitCodeStoreOptionsS3Options as GitCodeStoreOptionsS3OptionsOriginal, type GitCodeStoreProjectCommitAuthor as GitCodeStoreProjectCommitAuthorOriginal, type GitCodeStoreProjectCommitOptions as GitCodeStoreProjectCommitOptionsOriginal, type GitCodeStoreProjectCreated as GitCodeStoreProjectCreatedOriginal, type GitCodeStoreProjectDeleted as GitCodeStoreProjectDeletedOriginal, type GitCodeStoreProjectFileChangeChangeOneOf as GitCodeStoreProjectFileChangeChangeOneOfOriginal, type GitCodeStoreProjectFileChange as GitCodeStoreProjectFileChangeOriginal, type GitCodeStoreProjectFile as GitCodeStoreProjectFileOriginal, type GitCodeStoreProjectFileReference as GitCodeStoreProjectFileReferenceOriginal, type GitCodeStoreProjectTransferred as GitCodeStoreProjectTransferredOriginal, type GitCredentialsOptionsOneOf as GitCredentialsOptionsOneOfOriginal, type GitCredentials as GitCredentialsOriginal, type GitHubOptions as GitHubOptionsOriginal, GitRemoteType as GitRemoteTypeOriginal, type GitRemoteTypeWithLiterals as GitRemoteTypeWithLiteralsOriginal, type GithubAppOptions as GithubAppOptionsOriginal, type GithubOptions as GithubOptionsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListGitCodeStoreProjectFolderContentRequest as ListGitCodeStoreProjectFolderContentRequestOriginal, type ListGitCodeStoreProjectFolderContentResponse as ListGitCodeStoreProjectFolderContentResponseOriginal, type ListGitCodeStoreProjectRevisionsRequest as ListGitCodeStoreProjectRevisionsRequestOriginal, type ListGitCodeStoreProjectRevisionsResponse as ListGitCodeStoreProjectRevisionsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigrateGitCodeStoreProjectRequestGithubOptions as MigrateGitCodeStoreProjectRequestGithubOptionsOriginal, type MigrateGitCodeStoreProjectRequest as MigrateGitCodeStoreProjectRequestOriginal, type MigrateGitCodeStoreProjectRequestS3Options as MigrateGitCodeStoreProjectRequestS3OptionsOriginal, type MigrateGitCodeStoreProjectRequestTargetOptionsOneOf as MigrateGitCodeStoreProjectRequestTargetOptionsOneOfOriginal, type MigrateGitCodeStoreProjectResponse as MigrateGitCodeStoreProjectResponseOriginal, type Project as ProjectOriginal, type RestoreInfo as RestoreInfoOriginal, Result as ResultOriginal, type ResultWithLiterals as ResultWithLiteralsOriginal, type Revision as RevisionOriginal, type S3Options as S3OptionsOriginal, type TransferGitCodeStoreProjectRequest as TransferGitCodeStoreProjectRequestOriginal, type TransferGitCodeStoreProjectResponse as TransferGitCodeStoreProjectResponseOriginal, type ValidateAndResolveConfigRequest as ValidateAndResolveConfigRequestOriginal, type ValidateAndResolveConfigResponse as ValidateAndResolveConfigResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, commitGitCodeStoreProjectUpload, generateGitCodeStoreProjectDownloadUrl, generateGitCodeStoreProjectUploadUrl };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { GenerateGitCodeStoreProjectDownloadUrlOptions, GenerateGitCodeStoreProjectDownloadUrlResponse, GenerateGitCodeStoreProjectDownloadUrlApplicationErrors, GenerateGitCodeStoreProjectUploadUrlResponse, CommitGitCodeStoreProjectUploadOptions, CommitGitCodeStoreProjectUploadResponse, CommitGitCodeStoreProjectUploadApplicationErrors } from './index.typings.mjs';
|
|
3
|
-
export { AccountInfo, ActionEvent, Author, BulkGetGitCodeStoreProjectFileError, BulkGetGitCodeStoreProjectFileResult, BulkGetGitCodeStoreProjectFileResultResultOneOf, BulkGetGitCodeStoreProjectFilesRequest, BulkGetGitCodeStoreProjectFilesResponse, CloneGitCodeStoreProjectRequest, CloneGitCodeStoreProjectResponse, CommitGitCodeStoreProjectFileChangesRequest, CommitGitCodeStoreProjectFileChangesResponse, CommitGitCodeStoreProjectUploadRequest, CreateGitCodeStoreProjectRequest, CreateGitCodeStoreProjectResponse, DeleteGitCodeStoreProjectRequest, DeleteGitCodeStoreProjectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FileEntry, FileInfo, FolderEntry, GenerateGitCodeStoreProjectDownloadUrlRequest, GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest, GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse, GenerateGitCodeStoreProjectUploadUrlRequest, GetGitCodeStoreProjectCredentialsRequest, GetGitCodeStoreProjectCredentialsResponse, GetGitCodeStoreProjectFileRequest, GetGitCodeStoreProjectFileResponse, GetGitCodeStoreProjectHeadRevisionRequest, GetGitCodeStoreProjectHeadRevisionResponse, GitCodeStoreConfig, GitCodeStoreConfigGitRemoteOptionsOneOf, GitCodeStoreConfigS3Options, GitCodeStoreOptions, GitCodeStoreOptionsOptionsOneOf, GitCodeStoreOptionsS3Options, GitCodeStoreProjectCommitAuthor, GitCodeStoreProjectCommitOptions, GitCodeStoreProjectCreated, GitCodeStoreProjectDeleted, GitCodeStoreProjectFile, GitCodeStoreProjectFileChange, GitCodeStoreProjectFileChangeChangeOneOf, GitCodeStoreProjectFileReference, GitCodeStoreProjectTransferred, GitCredentials, GitCredentialsOptionsOneOf, GitHubOptions, GitRemoteType, GitRemoteTypeWithLiterals, GithubAppOptions, GithubOptions, IdentificationData, IdentificationDataIdOneOf, ListGitCodeStoreProjectFolderContentRequest, ListGitCodeStoreProjectFolderContentResponse, ListGitCodeStoreProjectRevisionsRequest, ListGitCodeStoreProjectRevisionsResponse, MessageEnvelope, MigrateGitCodeStoreProjectRequest, MigrateGitCodeStoreProjectRequestGithubOptions, MigrateGitCodeStoreProjectRequestS3Options, MigrateGitCodeStoreProjectRequestTargetOptionsOneOf, MigrateGitCodeStoreProjectResponse, Project, RestoreInfo, Result, ResultWithLiterals, Revision, S3Options, TransferGitCodeStoreProjectRequest, TransferGitCodeStoreProjectResponse, ValidateAndResolveConfigRequest, ValidateAndResolveConfigResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, ActionEvent, Author, BulkGetGitCodeStoreProjectFileError, BulkGetGitCodeStoreProjectFileResult, BulkGetGitCodeStoreProjectFileResultResultOneOf, BulkGetGitCodeStoreProjectFilesRequest, BulkGetGitCodeStoreProjectFilesResponse, CloneGitCodeStoreProjectRequest, CloneGitCodeStoreProjectResponse, CommitGitCodeStoreProjectFileChangesRequest, CommitGitCodeStoreProjectFileChangesResponse, CommitGitCodeStoreProjectUploadRequest, CreateGitCodeStoreProjectRequest, CreateGitCodeStoreProjectResponse, DeleteGitCodeStoreProjectRequest, DeleteGitCodeStoreProjectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FileEntry, FileInfo, FolderEntry, GenerateGitCodeStoreProjectDownloadUrlRequest, GenerateGitCodeStoreProjectStagedUploadDownloadUrlRequest, GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse, GenerateGitCodeStoreProjectUploadUrlRequest, GetGitCodeStoreProjectCredentialsRequest, GetGitCodeStoreProjectCredentialsResponse, GetGitCodeStoreProjectFileRequest, GetGitCodeStoreProjectFileResponse, GetGitCodeStoreProjectHeadRevisionRequest, GetGitCodeStoreProjectHeadRevisionResponse, GetGitCodeStoreProjectTreeRequest, GetGitCodeStoreProjectTreeResponse, GitCodeStoreConfig, GitCodeStoreConfigGitRemoteOptionsOneOf, GitCodeStoreConfigS3Options, GitCodeStoreOptions, GitCodeStoreOptionsOptionsOneOf, GitCodeStoreOptionsS3Options, GitCodeStoreProjectCommitAuthor, GitCodeStoreProjectCommitOptions, GitCodeStoreProjectCreated, GitCodeStoreProjectDeleted, GitCodeStoreProjectFile, GitCodeStoreProjectFileChange, GitCodeStoreProjectFileChangeChangeOneOf, GitCodeStoreProjectFileReference, GitCodeStoreProjectTransferred, GitCredentials, GitCredentialsOptionsOneOf, GitHubOptions, GitRemoteType, GitRemoteTypeWithLiterals, GithubAppOptions, GithubOptions, IdentificationData, IdentificationDataIdOneOf, ListGitCodeStoreProjectFolderContentRequest, ListGitCodeStoreProjectFolderContentResponse, ListGitCodeStoreProjectRevisionsRequest, ListGitCodeStoreProjectRevisionsResponse, MessageEnvelope, MigrateGitCodeStoreProjectRequest, MigrateGitCodeStoreProjectRequestGithubOptions, MigrateGitCodeStoreProjectRequestS3Options, MigrateGitCodeStoreProjectRequestTargetOptionsOneOf, MigrateGitCodeStoreProjectResponse, Project, RestoreInfo, Result, ResultWithLiterals, Revision, S3Options, TransferGitCodeStoreProjectRequest, TransferGitCodeStoreProjectResponse, ValidateAndResolveConfigRequest, ValidateAndResolveConfigResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function generateGitCodeStoreProjectDownloadUrl$1(httpClient: HttpClient): GenerateGitCodeStoreProjectDownloadUrlSignature;
|
|
6
6
|
interface GenerateGitCodeStoreProjectDownloadUrlSignature {
|