@dazl/internal-api-client 1.16.0 → 1.17.0

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.
@@ -80,7 +80,7 @@ export interface Config {
80
80
  requestValidator?: (data: unknown) => Promise<unknown>;
81
81
  /**
82
82
  * A function transforming response data before it's returned. This is useful
83
- * for post-processing data, e.g. converting ISO strings into Date objects.
83
+ * for post-processing data, e.g., converting ISO strings into Date objects.
84
84
  */
85
85
  responseTransformer?: (data: unknown) => Promise<unknown>;
86
86
  /**
@@ -126,7 +126,7 @@ export function getValidRequestBody(options: {
126
126
  return hasSerializedBody ? options.serializedBody : null;
127
127
  }
128
128
 
129
- // not all clients implement a serializedBody property (i.e. client-axios)
129
+ // not all clients implement a serializedBody property (i.e., client-axios)
130
130
  return options.body !== '' ? options.body : null;
131
131
  }
132
132
 
package/src/index.ts CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  export { client, type CreateClientConfig } from './client.gen.ts';
4
4
  export { Admin, Billing, Capture, Comments, EnvConfig, GitHub, Media, type Options, Project, Publish, Search, Template, User, UserSettings } from './sdk.gen.ts';
5
- export type { AcceptProjectInvitationData, AcceptProjectInvitationError, AcceptProjectInvitationErrors, AcceptProjectInvitationResponse, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainError, AddCustomDomainErrors, AddCustomDomainResponse, AddCustomDomainResponses, AdminCleanupProjectData, AdminCleanupProjectError, AdminCleanupProjectErrors, AdminCleanupProjectResponse, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateError, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponse, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogError, AdminCloneProjectLogErrors, AdminCloneProjectLogResponse, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectError, AdminDeleteProjectErrors, AdminDeleteProjectResponse, AdminDeleteProjectResponses, AdminUpdateCreditsData, AdminUpdateCreditsError, AdminUpdateCreditsErrors, AdminUpdateCreditsResponse, AdminUpdateCreditsResponses, BillingPrice, BillingProduct, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdError, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponse, CancelScheduledUpdateByDazlIdResponses, CleanupProjectInput, ClientOptions, CloneProjectCreateInput, CloneProjectLogInput, CloseFeatureToggleData, CloseFeatureToggleError, CloseFeatureToggleErrors, CloseFeatureToggleResponse, CloseFeatureToggleResponses, CommentContext, CommentResolved, ConnectUserData, ConnectUserError, ConnectUserErrors, ConnectUserResponse, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionError, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponse, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionError, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponse, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaError, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateRepositoryData, CreateRepositoryError, CreateRepositoryErrors, CreateRepositoryResponse, CreateRepositoryResponses, CreateTemplateData, CreateTemplateError, CreateTemplateErrors, CreateTemplateResponse, CreateTemplateResponses, CreateUserData, CreateUserError, CreateUserErrors, CreateUserResponse, CreateUserResponses, CustomerInfo, DeleteCustomDomainData, DeleteCustomDomainError, DeleteCustomDomainErrors, DeleteCustomDomainResponse, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectInput, DeleteProjectInvitationData, DeleteProjectInvitationError, DeleteProjectInvitationErrors, DeleteProjectInvitationResponse, DeleteProjectInvitationResponses, DeleteProjectMemberData, DeleteProjectMemberError, DeleteProjectMemberErrors, DeleteProjectMemberResponse, DeleteProjectMemberResponses, DeleteProjectResponse, DeleteProjectResponses, DeleteSiteData, DeleteSiteError, DeleteSiteErrors, DeleteSiteResponse, DeleteSiteResponses, DeleteTemplateData, DeleteTemplateError, DeleteTemplateErrors, DeleteTemplateResponse, DeleteTemplateResponses, Deployment, DuplicateProjectData, DuplicateProjectError, DuplicateProjectErrors, DuplicateProjectResponse, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdError, EnsureSiteIdErrors, EnsureSiteIdResponse, EnsureSiteIdResponses, ErrorResponse, FeatureToggle, GetAccountScreenshotsData, GetAccountScreenshotsError, GetAccountScreenshotsErrors, GetAccountScreenshotsResponse, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsError, GetAllProductsErrors, GetAllProductsResponse, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdError, GetByDazlIdErrors, GetByDazlIdResponse, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainError, GetCustomDomainErrors, GetCustomDomainResponse, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdError, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponse, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigError, GetEntriConfigErrors, GetEntriConfigResponse, GetEntriConfigResponses, GetFeatureTogglesData, GetFeatureTogglesError, GetFeatureTogglesErrors, GetFeatureTogglesResponse, GetFeatureTogglesResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdError, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponse, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsError, GetInstallationsErrors, GetInstallationsResponse, GetInstallationsResponses, GetInstallationUrlData, GetInstallationUrlError, GetInstallationUrlErrors, GetInstallationUrlResponse, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployError, GetLatestDeployErrors, GetLatestDeployResponse, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeError, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponse, GetMaxCreditsForDefaultFreeResponses, GetPriceByIdData, GetPriceByIdError, GetPriceByIdErrors, GetPriceByIdResponse, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdError, GetProjectByIdErrors, GetProjectByIdResponse, GetProjectByIdResponses, GetProjectCollaboratorsData, GetProjectCollaboratorsError, GetProjectCollaboratorsErrors, GetProjectCollaboratorsResponse, GetProjectCollaboratorsResponses, GetProjectInfoData, GetProjectInfoError, GetProjectInfoErrors, GetProjectInfoResponse, GetProjectInfoResponses, GetProjectScreenshotsData, GetProjectScreenshotsError, GetProjectScreenshotsErrors, GetProjectScreenshotsResponse, GetProjectScreenshotsResponses, GetPublicTemplatesData, GetPublicTemplatesError, GetPublicTemplatesErrors, GetPublicTemplatesResponse, GetPublicTemplatesResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateResponse, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationError, GetUploadConfigurationErrors, GetUploadConfigurationResponse, GetUploadConfigurationResponses, GetUserByDazlIdData, GetUserByDazlIdError, GetUserByDazlIdErrors, GetUserByDazlIdResponse, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdError, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponse, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoError, GetUserInfoErrors, GetUserInfoResponse, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsError, GetUserProjectsErrors, GetUserProjectsResponse, GetUserProjectsResponses, GetUsersByDazlIdsData, GetUsersByDazlIdsError, GetUsersByDazlIdsErrors, GetUsersByDazlIdsResponse, GetUsersByDazlIdsResponses, GetUserTemplatesData, GetUserTemplatesError, GetUserTemplatesErrors, GetUserTemplatesResponse, GetUserTemplatesResponses, InternalCreateCommentData, InternalCreateCommentError, InternalCreateCommentErrors, InternalCreateCommentInput, InternalCreateCommentResponse, InternalCreateCommentResponses, InternalCreateReplyData, InternalCreateReplyError, InternalCreateReplyErrors, InternalCreateReplyInput, InternalCreateReplyResponse, InternalCreateReplyResponses, InternalDeleteCommentData, InternalDeleteCommentError, InternalDeleteCommentErrors, InternalDeleteCommentResponse, InternalDeleteCommentResponses, InternalDeleteReplyData, InternalDeleteReplyError, InternalDeleteReplyErrors, InternalDeleteReplyResponse, InternalDeleteReplyResponses, InternalEditCommentData, InternalEditCommentError, InternalEditCommentErrors, InternalEditCommentInput, InternalEditCommentResponse, InternalEditCommentResponses, InternalEditReplyData, InternalEditReplyError, InternalEditReplyErrors, InternalEditReplyInput, InternalEditReplyResponse, InternalEditReplyResponses, InternalListProjectCommentsData, InternalListProjectCommentsError, InternalListProjectCommentsErrors, InternalListProjectCommentsResponse, InternalListProjectCommentsResponses, InternalReopenCommentData, InternalReopenCommentError, InternalReopenCommentErrors, InternalReopenCommentResponse, InternalReopenCommentResponses, InternalResolveCommentData, InternalResolveCommentError, InternalResolveCommentErrors, InternalResolveCommentResponse, InternalResolveCommentResponses, InviteProjectMemberData, InviteProjectMemberError, InviteProjectMemberErrors, InviteProjectMemberResponse, InviteProjectMemberResponses, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, MediaFileList, MediaItem, OpenFeatureToggleData, OpenFeatureToggleError, OpenFeatureToggleErrors, OpenFeatureToggleResponse, OpenFeatureToggleResponses, OwnerDazlId, PageCommentContext, ProjectRaw, ProjectWithScreenshot, PurgeUserAccountData, PurgeUserAccountError, PurgeUserAccountErrors, PurgeUserAccountInput, PurgeUserAccountResponse, PurgeUserAccountResponses, ScheduledUpdate, ScrapePageContentData, ScrapePageContentError, ScrapePageContentErrors, ScrapePageContentResponse, ScrapePageContentResponses, Screenshot, SearchWebData, SearchWebError, SearchWebErrors, SearchWebResponse, SearchWebResponses, StageCommentContext, StripeProduct, TakeScreenshotData, TakeScreenshotError, TakeScreenshotErrors, TakeScreenshotResponse, TakeScreenshotResponses, TemplateRaw, UpdateByDazlIdData, UpdateByDazlIdError, UpdateByDazlIdErrors, UpdateByDazlIdResponse, UpdateByDazlIdResponses, UpdateCreditsInput, UpdateEnvVarsData, UpdateEnvVarsError, UpdateEnvVarsErrors, UpdateEnvVarsResponse, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectError, UpdateProjectErrors, UpdateProjectResponse, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateError, UpdateTemplateErrors, UpdateTemplateResponse, UpdateTemplateResponses, UpdateUserData, UpdateUserError, UpdateUserErrors, UpdateUserResponse, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionError, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponse, UpdateUserSubscriptionResponses, UploadConfiguration, UpsertDeployInDbData, UpsertDeployInDbError, UpsertDeployInDbErrors, UpsertDeployInDbResponse, UpsertDeployInDbResponses, UserDisplayInfoResponse, UserMention, UserRaw } from './types.gen.ts';
5
+ export type { AcceptProjectInvitationData, AcceptProjectInvitationError, AcceptProjectInvitationErrors, AcceptProjectInvitationResponse, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainError, AddCustomDomainErrors, AddCustomDomainResponse, AddCustomDomainResponses, AdminCleanupProjectData, AdminCleanupProjectError, AdminCleanupProjectErrors, AdminCleanupProjectResponse, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateError, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponse, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogError, AdminCloneProjectLogErrors, AdminCloneProjectLogResponse, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectError, AdminDeleteProjectErrors, AdminDeleteProjectResponse, AdminDeleteProjectResponses, AdminUpdateCreditsData, AdminUpdateCreditsError, AdminUpdateCreditsErrors, AdminUpdateCreditsResponse, AdminUpdateCreditsResponses, BillingPrice, BillingProduct, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdError, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponse, CancelScheduledUpdateByDazlIdResponses, CleanupProjectInput, ClientOptions, CloneProjectCreateInput, CloneProjectLogInput, CloseFeatureToggleData, CloseFeatureToggleError, CloseFeatureToggleErrors, CloseFeatureToggleResponse, CloseFeatureToggleResponses, CommentContext, CommentResolved, ConnectUserData, ConnectUserError, ConnectUserErrors, ConnectUserResponse, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionError, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponse, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionError, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponse, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaError, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateRepositoryData, CreateRepositoryError, CreateRepositoryErrors, CreateRepositoryResponse, CreateRepositoryResponses, CreateTemplateData, CreateTemplateError, CreateTemplateErrors, CreateTemplateResponse, CreateTemplateResponses, CreateUserData, CreateUserError, CreateUserErrors, CreateUserResponse, CreateUserResponses, CustomerInfo, DeleteCustomDomainData, DeleteCustomDomainError, DeleteCustomDomainErrors, DeleteCustomDomainResponse, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectInput, DeleteProjectInvitationData, DeleteProjectInvitationError, DeleteProjectInvitationErrors, DeleteProjectInvitationResponse, DeleteProjectInvitationResponses, DeleteProjectMemberData, DeleteProjectMemberError, DeleteProjectMemberErrors, DeleteProjectMemberResponse, DeleteProjectMemberResponses, DeleteProjectResponse, DeleteProjectResponses, DeleteSiteData, DeleteSiteError, DeleteSiteErrors, DeleteSiteResponse, DeleteSiteResponses, DeleteTemplateData, DeleteTemplateError, DeleteTemplateErrors, DeleteTemplateResponse, DeleteTemplateResponses, Deployment, DuplicateProjectData, DuplicateProjectError, DuplicateProjectErrors, DuplicateProjectResponse, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdError, EnsureSiteIdErrors, EnsureSiteIdResponse, EnsureSiteIdResponses, ErrorResponse, FeatureToggle, GetAccountScreenshotsData, GetAccountScreenshotsError, GetAccountScreenshotsErrors, GetAccountScreenshotsResponse, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsError, GetAllProductsErrors, GetAllProductsResponse, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdError, GetByDazlIdErrors, GetByDazlIdResponse, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainError, GetCustomDomainErrors, GetCustomDomainResponse, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdError, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponse, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigError, GetEntriConfigErrors, GetEntriConfigResponse, GetEntriConfigResponses, GetFeatureTogglesData, GetFeatureTogglesError, GetFeatureTogglesErrors, GetFeatureTogglesResponse, GetFeatureTogglesResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdError, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponse, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsError, GetInstallationsErrors, GetInstallationsResponse, GetInstallationsResponses, GetInstallationUrlData, GetInstallationUrlError, GetInstallationUrlErrors, GetInstallationUrlResponse, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployError, GetLatestDeployErrors, GetLatestDeployResponse, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeError, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponse, GetMaxCreditsForDefaultFreeResponses, GetPriceByIdData, GetPriceByIdError, GetPriceByIdErrors, GetPriceByIdResponse, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdError, GetProjectByIdErrors, GetProjectByIdResponse, GetProjectByIdResponses, GetProjectCollaboratorsData, GetProjectCollaboratorsError, GetProjectCollaboratorsErrors, GetProjectCollaboratorsResponse, GetProjectCollaboratorsResponses, GetProjectInfoData, GetProjectInfoError, GetProjectInfoErrors, GetProjectInfoResponse, GetProjectInfoResponses, GetProjectScreenshotsData, GetProjectScreenshotsError, GetProjectScreenshotsErrors, GetProjectScreenshotsResponse, GetProjectScreenshotsResponses, GetPublicTemplatesData, GetPublicTemplatesError, GetPublicTemplatesErrors, GetPublicTemplatesResponse, GetPublicTemplatesResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateResponse, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationError, GetUploadConfigurationErrors, GetUploadConfigurationResponse, GetUploadConfigurationResponses, GetUserByDazlIdData, GetUserByDazlIdError, GetUserByDazlIdErrors, GetUserByDazlIdResponse, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdError, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponse, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoError, GetUserInfoErrors, GetUserInfoResponse, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsError, GetUserProjectsErrors, GetUserProjectsResponse, GetUserProjectsResponses, GetUsersByDazlIdsData, GetUsersByDazlIdsError, GetUsersByDazlIdsErrors, GetUsersByDazlIdsResponse, GetUsersByDazlIdsResponses, GetUserTemplatesData, GetUserTemplatesError, GetUserTemplatesErrors, GetUserTemplatesResponse, GetUserTemplatesResponses, InternalCreateCommentData, InternalCreateCommentError, InternalCreateCommentErrors, InternalCreateCommentInput, InternalCreateCommentResponse, InternalCreateCommentResponses, InternalCreateReplyData, InternalCreateReplyError, InternalCreateReplyErrors, InternalCreateReplyInput, InternalCreateReplyResponse, InternalCreateReplyResponses, InternalDeleteCommentData, InternalDeleteCommentError, InternalDeleteCommentErrors, InternalDeleteCommentResponse, InternalDeleteCommentResponses, InternalDeleteReplyData, InternalDeleteReplyError, InternalDeleteReplyErrors, InternalDeleteReplyResponse, InternalDeleteReplyResponses, InternalEditCommentData, InternalEditCommentError, InternalEditCommentErrors, InternalEditCommentInput, InternalEditCommentResponse, InternalEditCommentResponses, InternalEditReplyData, InternalEditReplyError, InternalEditReplyErrors, InternalEditReplyInput, InternalEditReplyResponse, InternalEditReplyResponses, InternalGetProjectCommentData, InternalGetProjectCommentError, InternalGetProjectCommentErrors, InternalGetProjectCommentResponse, InternalGetProjectCommentResponses, InternalListProjectCommentsData, InternalListProjectCommentsError, InternalListProjectCommentsErrors, InternalListProjectCommentsResponse, InternalListProjectCommentsResponses, InternalReopenCommentData, InternalReopenCommentError, InternalReopenCommentErrors, InternalReopenCommentResponse, InternalReopenCommentResponses, InternalResolveCommentData, InternalResolveCommentError, InternalResolveCommentErrors, InternalResolveCommentResponse, InternalResolveCommentResponses, InviteProjectMemberData, InviteProjectMemberError, InviteProjectMemberErrors, InviteProjectMemberResponse, InviteProjectMemberResponses, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, MediaFileList, MediaItem, OpenFeatureToggleData, OpenFeatureToggleError, OpenFeatureToggleErrors, OpenFeatureToggleResponse, OpenFeatureToggleResponses, OwnerDazlId, PageCommentContext, ProjectRaw, ProjectWithScreenshot, PurgeUserAccountData, PurgeUserAccountError, PurgeUserAccountErrors, PurgeUserAccountInput, PurgeUserAccountResponse, PurgeUserAccountResponses, ScheduledUpdate, ScrapePageContentData, ScrapePageContentError, ScrapePageContentErrors, ScrapePageContentResponse, ScrapePageContentResponses, Screenshot, SearchWebData, SearchWebError, SearchWebErrors, SearchWebResponse, SearchWebResponses, StageCommentContext, StripeProduct, TakeScreenshotData, TakeScreenshotError, TakeScreenshotErrors, TakeScreenshotResponse, TakeScreenshotResponses, TemplateRaw, UpdateByDazlIdData, UpdateByDazlIdError, UpdateByDazlIdErrors, UpdateByDazlIdResponse, UpdateByDazlIdResponses, UpdateCreditsInput, UpdateEnvVarsData, UpdateEnvVarsError, UpdateEnvVarsErrors, UpdateEnvVarsResponse, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectError, UpdateProjectErrors, UpdateProjectResponse, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateError, UpdateTemplateErrors, UpdateTemplateResponse, UpdateTemplateResponses, UpdateUserData, UpdateUserError, UpdateUserErrors, UpdateUserResponse, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionError, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponse, UpdateUserSubscriptionResponses, UploadConfiguration, UpsertDeployInDbData, UpsertDeployInDbError, UpsertDeployInDbErrors, UpsertDeployInDbResponse, UpsertDeployInDbResponses, UserDisplayInfoResponse, UserMention, UserRaw } from './types.gen.ts';
package/src/sdk.gen.ts CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { client } from './client.gen.ts';
4
4
  import type { Client, Options as Options2, TDataShape } from './client/index.ts';
5
- import type { AcceptProjectInvitationData, AcceptProjectInvitationErrors, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainErrors, AddCustomDomainResponses, AdminCleanupProjectData, AdminCleanupProjectErrors, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogErrors, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectErrors, AdminDeleteProjectResponses, AdminUpdateCreditsData, AdminUpdateCreditsErrors, AdminUpdateCreditsResponses, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, CloseFeatureToggleData, CloseFeatureToggleErrors, CloseFeatureToggleResponses, ConnectUserData, ConnectUserErrors, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateRepositoryData, CreateRepositoryErrors, CreateRepositoryResponses, CreateTemplateData, CreateTemplateErrors, CreateTemplateResponses, CreateUserData, CreateUserErrors, CreateUserResponses, DeleteCustomDomainData, DeleteCustomDomainErrors, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectInvitationData, DeleteProjectInvitationErrors, DeleteProjectInvitationResponses, DeleteProjectMemberData, DeleteProjectMemberErrors, DeleteProjectMemberResponses, DeleteProjectResponses, DeleteSiteData, DeleteSiteErrors, DeleteSiteResponses, DeleteTemplateData, DeleteTemplateErrors, DeleteTemplateResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAccountScreenshotsData, GetAccountScreenshotsErrors, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainErrors, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigErrors, GetEntriConfigResponses, GetFeatureTogglesData, GetFeatureTogglesErrors, GetFeatureTogglesResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsErrors, GetInstallationsResponses, GetInstallationUrlData, GetInstallationUrlErrors, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponses, GetPriceByIdData, GetPriceByIdErrors, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectCollaboratorsData, GetProjectCollaboratorsErrors, GetProjectCollaboratorsResponses, GetProjectInfoData, GetProjectInfoErrors, GetProjectInfoResponses, GetProjectScreenshotsData, GetProjectScreenshotsErrors, GetProjectScreenshotsResponses, GetPublicTemplatesData, GetPublicTemplatesErrors, GetPublicTemplatesResponses, GetTemplateData, GetTemplateErrors, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserByDazlIdData, GetUserByDazlIdErrors, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoErrors, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsErrors, GetUserProjectsResponses, GetUsersByDazlIdsData, GetUsersByDazlIdsErrors, GetUsersByDazlIdsResponses, GetUserTemplatesData, GetUserTemplatesErrors, GetUserTemplatesResponses, InternalCreateCommentData, InternalCreateCommentErrors, InternalCreateCommentResponses, InternalCreateReplyData, InternalCreateReplyErrors, InternalCreateReplyResponses, InternalDeleteCommentData, InternalDeleteCommentErrors, InternalDeleteCommentResponses, InternalDeleteReplyData, InternalDeleteReplyErrors, InternalDeleteReplyResponses, InternalEditCommentData, InternalEditCommentErrors, InternalEditCommentResponses, InternalEditReplyData, InternalEditReplyErrors, InternalEditReplyResponses, InternalListProjectCommentsData, InternalListProjectCommentsErrors, InternalListProjectCommentsResponses, InternalReopenCommentData, InternalReopenCommentErrors, InternalReopenCommentResponses, InternalResolveCommentData, InternalResolveCommentErrors, InternalResolveCommentResponses, InviteProjectMemberData, InviteProjectMemberErrors, InviteProjectMemberResponses, ListFilesData, ListFilesErrors, ListFilesResponses, OpenFeatureToggleData, OpenFeatureToggleErrors, OpenFeatureToggleResponses, PurgeUserAccountData, PurgeUserAccountErrors, PurgeUserAccountResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, SearchWebData, SearchWebErrors, SearchWebResponses, TakeScreenshotData, TakeScreenshotErrors, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdErrors, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsErrors, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateErrors, UpdateTemplateResponses, UpdateUserData, UpdateUserErrors, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponses, UpsertDeployInDbData, UpsertDeployInDbErrors, UpsertDeployInDbResponses } from './types.gen.ts';
5
+ import type { AcceptProjectInvitationData, AcceptProjectInvitationErrors, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainErrors, AddCustomDomainResponses, AdminCleanupProjectData, AdminCleanupProjectErrors, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogErrors, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectErrors, AdminDeleteProjectResponses, AdminUpdateCreditsData, AdminUpdateCreditsErrors, AdminUpdateCreditsResponses, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, CloseFeatureToggleData, CloseFeatureToggleErrors, CloseFeatureToggleResponses, ConnectUserData, ConnectUserErrors, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateRepositoryData, CreateRepositoryErrors, CreateRepositoryResponses, CreateTemplateData, CreateTemplateErrors, CreateTemplateResponses, CreateUserData, CreateUserErrors, CreateUserResponses, DeleteCustomDomainData, DeleteCustomDomainErrors, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectInvitationData, DeleteProjectInvitationErrors, DeleteProjectInvitationResponses, DeleteProjectMemberData, DeleteProjectMemberErrors, DeleteProjectMemberResponses, DeleteProjectResponses, DeleteSiteData, DeleteSiteErrors, DeleteSiteResponses, DeleteTemplateData, DeleteTemplateErrors, DeleteTemplateResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAccountScreenshotsData, GetAccountScreenshotsErrors, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainErrors, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigErrors, GetEntriConfigResponses, GetFeatureTogglesData, GetFeatureTogglesErrors, GetFeatureTogglesResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsErrors, GetInstallationsResponses, GetInstallationUrlData, GetInstallationUrlErrors, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponses, GetPriceByIdData, GetPriceByIdErrors, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectCollaboratorsData, GetProjectCollaboratorsErrors, GetProjectCollaboratorsResponses, GetProjectInfoData, GetProjectInfoErrors, GetProjectInfoResponses, GetProjectScreenshotsData, GetProjectScreenshotsErrors, GetProjectScreenshotsResponses, GetPublicTemplatesData, GetPublicTemplatesErrors, GetPublicTemplatesResponses, GetTemplateData, GetTemplateErrors, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserByDazlIdData, GetUserByDazlIdErrors, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoErrors, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsErrors, GetUserProjectsResponses, GetUsersByDazlIdsData, GetUsersByDazlIdsErrors, GetUsersByDazlIdsResponses, GetUserTemplatesData, GetUserTemplatesErrors, GetUserTemplatesResponses, InternalCreateCommentData, InternalCreateCommentErrors, InternalCreateCommentResponses, InternalCreateReplyData, InternalCreateReplyErrors, InternalCreateReplyResponses, InternalDeleteCommentData, InternalDeleteCommentErrors, InternalDeleteCommentResponses, InternalDeleteReplyData, InternalDeleteReplyErrors, InternalDeleteReplyResponses, InternalEditCommentData, InternalEditCommentErrors, InternalEditCommentResponses, InternalEditReplyData, InternalEditReplyErrors, InternalEditReplyResponses, InternalGetProjectCommentData, InternalGetProjectCommentErrors, InternalGetProjectCommentResponses, InternalListProjectCommentsData, InternalListProjectCommentsErrors, InternalListProjectCommentsResponses, InternalReopenCommentData, InternalReopenCommentErrors, InternalReopenCommentResponses, InternalResolveCommentData, InternalResolveCommentErrors, InternalResolveCommentResponses, InviteProjectMemberData, InviteProjectMemberErrors, InviteProjectMemberResponses, ListFilesData, ListFilesErrors, ListFilesResponses, OpenFeatureToggleData, OpenFeatureToggleErrors, OpenFeatureToggleResponses, PurgeUserAccountData, PurgeUserAccountErrors, PurgeUserAccountResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, SearchWebData, SearchWebErrors, SearchWebResponses, TakeScreenshotData, TakeScreenshotErrors, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdErrors, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsErrors, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateErrors, UpdateTemplateResponses, UpdateUserData, UpdateUserErrors, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponses, UpsertDeployInDbData, UpsertDeployInDbErrors, UpsertDeployInDbResponses } from './types.gen.ts';
6
6
 
7
7
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
8
8
  /**
@@ -293,13 +293,17 @@ export class Project {
293
293
  }
294
294
 
295
295
  export class Comments {
296
- public static internalListProjectComments<ThrowOnError extends boolean = false>(options: Options<InternalListProjectCommentsData, ThrowOnError>) {
297
- return (options.client ?? client).get<InternalListProjectCommentsResponses, InternalListProjectCommentsErrors, ThrowOnError>({ url: '/project/{projectId}/comments', ...options });
296
+ public static internalDeleteComment<ThrowOnError extends boolean = false>(options: Options<InternalDeleteCommentData, ThrowOnError>) {
297
+ return (options.client ?? client).delete<InternalDeleteCommentResponses, InternalDeleteCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}', ...options });
298
298
  }
299
299
 
300
- public static internalCreateComment<ThrowOnError extends boolean = false>(options: Options<InternalCreateCommentData, ThrowOnError>) {
301
- return (options.client ?? client).post<InternalCreateCommentResponses, InternalCreateCommentErrors, ThrowOnError>({
302
- url: '/project/{projectId}/comments',
300
+ public static internalGetProjectComment<ThrowOnError extends boolean = false>(options: Options<InternalGetProjectCommentData, ThrowOnError>) {
301
+ return (options.client ?? client).get<InternalGetProjectCommentResponses, InternalGetProjectCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}', ...options });
302
+ }
303
+
304
+ public static internalEditComment<ThrowOnError extends boolean = false>(options: Options<InternalEditCommentData, ThrowOnError>) {
305
+ return (options.client ?? client).patch<InternalEditCommentResponses, InternalEditCommentErrors, ThrowOnError>({
306
+ url: '/project/{projectId}/comments/{commentId}',
303
307
  ...options,
304
308
  headers: {
305
309
  'Content-Type': 'application/json',
@@ -308,13 +312,13 @@ export class Comments {
308
312
  });
309
313
  }
310
314
 
311
- public static internalDeleteComment<ThrowOnError extends boolean = false>(options: Options<InternalDeleteCommentData, ThrowOnError>) {
312
- return (options.client ?? client).delete<InternalDeleteCommentResponses, InternalDeleteCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}', ...options });
315
+ public static internalListProjectComments<ThrowOnError extends boolean = false>(options: Options<InternalListProjectCommentsData, ThrowOnError>) {
316
+ return (options.client ?? client).get<InternalListProjectCommentsResponses, InternalListProjectCommentsErrors, ThrowOnError>({ url: '/project/{projectId}/comments', ...options });
313
317
  }
314
318
 
315
- public static internalEditComment<ThrowOnError extends boolean = false>(options: Options<InternalEditCommentData, ThrowOnError>) {
316
- return (options.client ?? client).patch<InternalEditCommentResponses, InternalEditCommentErrors, ThrowOnError>({
317
- url: '/project/{projectId}/comments/{commentId}',
319
+ public static internalCreateComment<ThrowOnError extends boolean = false>(options: Options<InternalCreateCommentData, ThrowOnError>) {
320
+ return (options.client ?? client).post<InternalCreateCommentResponses, InternalCreateCommentErrors, ThrowOnError>({
321
+ url: '/project/{projectId}/comments',
318
322
  ...options,
319
323
  headers: {
320
324
  'Content-Type': 'application/json',
package/src/types.gen.ts CHANGED
@@ -147,6 +147,7 @@ export type InternalCreateCommentInput = {
147
147
  export type InternalEditCommentInput = {
148
148
  content: string;
149
149
  mentions?: Array<UserMention>;
150
+ editorDazlUserId?: string;
150
151
  };
151
152
 
152
153
  export type InternalCreateReplyInput = {
@@ -158,6 +159,7 @@ export type InternalCreateReplyInput = {
158
159
  export type InternalEditReplyInput = {
159
160
  content: string;
160
161
  mentions?: Array<UserMention>;
162
+ editorDazlUserId?: string;
161
163
  };
162
164
 
163
165
  export type TemplateRaw = {
@@ -2742,16 +2744,76 @@ export type DeleteProjectInvitationResponses = {
2742
2744
 
2743
2745
  export type DeleteProjectInvitationResponse = DeleteProjectInvitationResponses[keyof DeleteProjectInvitationResponses];
2744
2746
 
2745
- export type InternalListProjectCommentsData = {
2747
+ export type InternalDeleteCommentData = {
2748
+ body?: never;
2749
+ path: {
2750
+ projectId: string;
2751
+ commentId: string;
2752
+ };
2753
+ query?: {
2754
+ editorDazlUserId?: string;
2755
+ };
2756
+ url: '/project/{projectId}/comments/{commentId}';
2757
+ };
2758
+
2759
+ export type InternalDeleteCommentErrors = {
2760
+ /**
2761
+ * Bad request - Invalid parameters or malformed JSON
2762
+ */
2763
+ 400: {
2764
+ message: string;
2765
+ issues?: string;
2766
+ };
2767
+ /**
2768
+ * Unauthorized
2769
+ */
2770
+ 401: ErrorResponse;
2771
+ /**
2772
+ * Forbidden
2773
+ */
2774
+ 403: ErrorResponse;
2775
+ /**
2776
+ * Not Found
2777
+ */
2778
+ 404: ErrorResponse;
2779
+ /**
2780
+ * Conflict
2781
+ */
2782
+ 409: ErrorResponse;
2783
+ /**
2784
+ * Internal server error
2785
+ */
2786
+ 500: ErrorResponse;
2787
+ /**
2788
+ * Service Unavailable
2789
+ */
2790
+ 503: ErrorResponse;
2791
+ };
2792
+
2793
+ export type InternalDeleteCommentError = InternalDeleteCommentErrors[keyof InternalDeleteCommentErrors];
2794
+
2795
+ export type InternalDeleteCommentResponses = {
2796
+ /**
2797
+ * Acknowledges that the comment was deleted
2798
+ */
2799
+ 200: {
2800
+ success: true;
2801
+ };
2802
+ };
2803
+
2804
+ export type InternalDeleteCommentResponse = InternalDeleteCommentResponses[keyof InternalDeleteCommentResponses];
2805
+
2806
+ export type InternalGetProjectCommentData = {
2746
2807
  body?: never;
2747
2808
  path: {
2748
2809
  projectId: string;
2810
+ commentId: string;
2749
2811
  };
2750
2812
  query?: never;
2751
- url: '/project/{projectId}/comments';
2813
+ url: '/project/{projectId}/comments/{commentId}';
2752
2814
  };
2753
2815
 
2754
- export type InternalListProjectCommentsErrors = {
2816
+ export type InternalGetProjectCommentErrors = {
2755
2817
  /**
2756
2818
  * Bad request - Invalid parameters or malformed JSON
2757
2819
  */
@@ -2785,14 +2847,14 @@ export type InternalListProjectCommentsErrors = {
2785
2847
  503: ErrorResponse;
2786
2848
  };
2787
2849
 
2788
- export type InternalListProjectCommentsError = InternalListProjectCommentsErrors[keyof InternalListProjectCommentsErrors];
2850
+ export type InternalGetProjectCommentError = InternalGetProjectCommentErrors[keyof InternalGetProjectCommentErrors];
2789
2851
 
2790
- export type InternalListProjectCommentsResponses = {
2852
+ export type InternalGetProjectCommentResponses = {
2791
2853
  /**
2792
- * Returns the list of comments for the project
2854
+ * Returns comment by id for the project
2793
2855
  */
2794
2856
  200: {
2795
- comments: Array<{
2857
+ comment: {
2796
2858
  commentId: string;
2797
2859
  author: {
2798
2860
  dazlUserId: string;
@@ -2815,22 +2877,23 @@ export type InternalListProjectCommentsResponses = {
2815
2877
  }>;
2816
2878
  resolved?: CommentResolved;
2817
2879
  context?: CommentContext;
2818
- }>;
2880
+ };
2819
2881
  };
2820
2882
  };
2821
2883
 
2822
- export type InternalListProjectCommentsResponse = InternalListProjectCommentsResponses[keyof InternalListProjectCommentsResponses];
2884
+ export type InternalGetProjectCommentResponse = InternalGetProjectCommentResponses[keyof InternalGetProjectCommentResponses];
2823
2885
 
2824
- export type InternalCreateCommentData = {
2825
- body: InternalCreateCommentInput;
2886
+ export type InternalEditCommentData = {
2887
+ body: InternalEditCommentInput;
2826
2888
  path: {
2827
2889
  projectId: string;
2890
+ commentId: string;
2828
2891
  };
2829
2892
  query?: never;
2830
- url: '/project/{projectId}/comments';
2893
+ url: '/project/{projectId}/comments/{commentId}';
2831
2894
  };
2832
2895
 
2833
- export type InternalCreateCommentErrors = {
2896
+ export type InternalEditCommentErrors = {
2834
2897
  /**
2835
2898
  * Bad request - Invalid parameters or malformed JSON
2836
2899
  */
@@ -2864,11 +2927,11 @@ export type InternalCreateCommentErrors = {
2864
2927
  503: ErrorResponse;
2865
2928
  };
2866
2929
 
2867
- export type InternalCreateCommentError = InternalCreateCommentErrors[keyof InternalCreateCommentErrors];
2930
+ export type InternalEditCommentError = InternalEditCommentErrors[keyof InternalEditCommentErrors];
2868
2931
 
2869
- export type InternalCreateCommentResponses = {
2932
+ export type InternalEditCommentResponses = {
2870
2933
  /**
2871
- * Returns the created comment
2934
+ * Returns the updated comment
2872
2935
  */
2873
2936
  200: {
2874
2937
  comment: {
@@ -2898,19 +2961,18 @@ export type InternalCreateCommentResponses = {
2898
2961
  };
2899
2962
  };
2900
2963
 
2901
- export type InternalCreateCommentResponse = InternalCreateCommentResponses[keyof InternalCreateCommentResponses];
2964
+ export type InternalEditCommentResponse = InternalEditCommentResponses[keyof InternalEditCommentResponses];
2902
2965
 
2903
- export type InternalDeleteCommentData = {
2966
+ export type InternalListProjectCommentsData = {
2904
2967
  body?: never;
2905
2968
  path: {
2906
2969
  projectId: string;
2907
- commentId: string;
2908
2970
  };
2909
2971
  query?: never;
2910
- url: '/project/{projectId}/comments/{commentId}';
2972
+ url: '/project/{projectId}/comments';
2911
2973
  };
2912
2974
 
2913
- export type InternalDeleteCommentErrors = {
2975
+ export type InternalListProjectCommentsErrors = {
2914
2976
  /**
2915
2977
  * Bad request - Invalid parameters or malformed JSON
2916
2978
  */
@@ -2944,30 +3006,52 @@ export type InternalDeleteCommentErrors = {
2944
3006
  503: ErrorResponse;
2945
3007
  };
2946
3008
 
2947
- export type InternalDeleteCommentError = InternalDeleteCommentErrors[keyof InternalDeleteCommentErrors];
3009
+ export type InternalListProjectCommentsError = InternalListProjectCommentsErrors[keyof InternalListProjectCommentsErrors];
2948
3010
 
2949
- export type InternalDeleteCommentResponses = {
3011
+ export type InternalListProjectCommentsResponses = {
2950
3012
  /**
2951
- * Acknowledges that the comment was deleted
3013
+ * Returns the list of comments for the project
2952
3014
  */
2953
3015
  200: {
2954
- success: true;
3016
+ comments: Array<{
3017
+ commentId: string;
3018
+ author: {
3019
+ dazlUserId: string;
3020
+ };
3021
+ content: string;
3022
+ mentions: Array<UserMention>;
3023
+ createdAt: string;
3024
+ updatedAt: string;
3025
+ lastActivityAt: string;
3026
+ isEdited: boolean;
3027
+ replies: Array<{
3028
+ replyId: string;
3029
+ author: {
3030
+ dazlUserId: string;
3031
+ };
3032
+ content: string;
3033
+ mentions: Array<UserMention>;
3034
+ createdAt: string;
3035
+ updatedAt: string;
3036
+ }>;
3037
+ resolved?: CommentResolved;
3038
+ context?: CommentContext;
3039
+ }>;
2955
3040
  };
2956
3041
  };
2957
3042
 
2958
- export type InternalDeleteCommentResponse = InternalDeleteCommentResponses[keyof InternalDeleteCommentResponses];
3043
+ export type InternalListProjectCommentsResponse = InternalListProjectCommentsResponses[keyof InternalListProjectCommentsResponses];
2959
3044
 
2960
- export type InternalEditCommentData = {
2961
- body: InternalEditCommentInput;
3045
+ export type InternalCreateCommentData = {
3046
+ body: InternalCreateCommentInput;
2962
3047
  path: {
2963
3048
  projectId: string;
2964
- commentId: string;
2965
3049
  };
2966
3050
  query?: never;
2967
- url: '/project/{projectId}/comments/{commentId}';
3051
+ url: '/project/{projectId}/comments';
2968
3052
  };
2969
3053
 
2970
- export type InternalEditCommentErrors = {
3054
+ export type InternalCreateCommentErrors = {
2971
3055
  /**
2972
3056
  * Bad request - Invalid parameters or malformed JSON
2973
3057
  */
@@ -3001,11 +3085,11 @@ export type InternalEditCommentErrors = {
3001
3085
  503: ErrorResponse;
3002
3086
  };
3003
3087
 
3004
- export type InternalEditCommentError = InternalEditCommentErrors[keyof InternalEditCommentErrors];
3088
+ export type InternalCreateCommentError = InternalCreateCommentErrors[keyof InternalCreateCommentErrors];
3005
3089
 
3006
- export type InternalEditCommentResponses = {
3090
+ export type InternalCreateCommentResponses = {
3007
3091
  /**
3008
- * Returns the updated comment
3092
+ * Returns the created comment
3009
3093
  */
3010
3094
  200: {
3011
3095
  comment: {
@@ -3035,7 +3119,7 @@ export type InternalEditCommentResponses = {
3035
3119
  };
3036
3120
  };
3037
3121
 
3038
- export type InternalEditCommentResponse = InternalEditCommentResponses[keyof InternalEditCommentResponses];
3122
+ export type InternalCreateCommentResponse = InternalCreateCommentResponses[keyof InternalCreateCommentResponses];
3039
3123
 
3040
3124
  export type InternalResolveCommentData = {
3041
3125
  body?: never;
@@ -3272,7 +3356,9 @@ export type InternalDeleteReplyData = {
3272
3356
  commentId: string;
3273
3357
  replyId: string;
3274
3358
  };
3275
- query?: never;
3359
+ query?: {
3360
+ editorDazlUserId?: string;
3361
+ };
3276
3362
  url: '/project/{projectId}/comments/{commentId}/replies/{replyId}';
3277
3363
  };
3278
3364